@theoremjs/studio 0.3.4-next.791.gd4aff2e → 0.3.4-next.797.gfda34c9
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/package.json +4 -4
- package/page/assets/BottomSheet-RjdFLREq.js +1 -0
- package/page/assets/{Card-D_40unTk.js → Card-UzuJJI_o.js} +1 -1
- package/page/assets/Center-CfSYa5SJ.js +1 -0
- package/page/assets/CheckboxInput-DC62lfiG.js +2 -0
- package/page/assets/{CodeBlock-PkWvyBvu.js → CodeBlock-Dcj5-dI6.js} +1 -1
- package/page/assets/{CollapsibleGroup-Dfbkt6Hp.js → CollapsibleGroup-C558j700.js} +1 -1
- package/page/assets/ConsoleFrame-DrdyQQut.js +3 -0
- package/page/assets/DateInput-BrLgvHDz.js +1 -0
- package/page/assets/Dialog-CVk3thtl.js +1 -0
- package/page/assets/FieldStatus-DsLpiRRE.js +1 -0
- package/page/assets/{HStack-cOiUht-L.js → HStack-DxvXX_Xt.js} +1 -1
- package/page/assets/{HoverCard-DMHc1Gh1.js → HoverCard-DM8G9-0E.js} +1 -1
- package/page/assets/{Icon-BWzSKxTK.js → Icon-DQhwzrkL.js} +1 -1
- package/page/assets/IconButton-DkBz0UbI.js +1 -0
- package/page/assets/IconMathFunction-Eux9NbUx.js +1 -0
- package/page/assets/IconMicrophone-CJCgFwEd.js +1 -0
- package/page/assets/IconServer-DIJ0DAhI.js +1 -0
- package/page/assets/IconTool-CnptGEDw.js +1 -0
- package/page/assets/IconWorld-DTIAtVl1.js +1 -0
- package/page/assets/ListItem-DB9l0niX.js +1 -0
- package/page/assets/{MenuBottomSheet-B7Wd2G6Y.js → MenuBottomSheet-rncz9B7t.js} +1 -1
- package/page/assets/{MenuBottomSheetActionList-CG8160ZS.js → MenuBottomSheetActionList-BXRLqw9i.js} +1 -1
- package/page/assets/{OverflowList-BoqbSk8e.js → OverflowList-DCbz0juN.js} +1 -1
- package/page/assets/{SchemaFields-CyHwg9R7.js → SchemaFields-CAn-WHqF.js} +1 -1
- package/page/assets/ScrollableArea-B4atQbG7.js +1 -0
- package/page/assets/SidePanel-CJhDv_-c.js +2 -0
- package/page/assets/{Spinner--TVdDovX.js → Spinner-CB4UUJ5a.js} +1 -1
- package/page/assets/{Stack-DPSs1dBF.js → Stack-BxV67rLm.js} +1 -1
- package/page/assets/{Text-B74VhVA7.js → Text-DsdhhbQq.js} +2 -2
- package/page/assets/{TextInput-6ChkOVD6.js → TextInput-DQESAqpV.js} +1 -1
- package/page/assets/{TimestampHoverCard-G3Y6IWqf.js → TimestampHoverCard-79rKEd7V.js} +1 -1
- package/page/assets/Token-B-NmyYhm.js +1 -0
- package/page/assets/{ToolResultCharts-BfwijGUe.js → ToolResultCharts-DVFoBOYY.js} +1 -1
- package/page/assets/{Toolbar-CvKNAmvy.js → Toolbar-CNNWQDd1.js} +1 -1
- package/page/assets/{Tooltip-DrSpWxD8.js → Tooltip-i8-9gEjh.js} +1 -1
- package/page/assets/TraceInspector-DptkeqdF.js +1 -0
- package/page/assets/{TraceOverview-XX9r1D8m.js → TraceOverview-Bp_udpbT.js} +2 -2
- package/page/assets/{VStack-CEcm-qoM.js → VStack-CdkbS0YS.js} +1 -1
- package/page/assets/{_virtual_studio-type-sources-_88V0ngH.js → _virtual_studio-type-sources-COu6NXwi.js} +1 -0
- package/page/assets/{browser-connection-pOEHwo-t.js → browser-connection-yG5WpBzp.js} +1 -1
- package/page/assets/browser-engine-BhvRjDb0.js +16 -0
- package/page/assets/browser-transport-C_dPoyoi.js +45 -0
- package/page/assets/{compile-DmPv_Q28.js → compile-C9JvVXdv.js} +1 -1
- package/page/assets/{embedding-space-view-JuXKDaFw.js → embedding-space-view-hA6LFkNX.js} +1 -1
- package/page/assets/{export-agent-BrQDFbtn.js → export-agent-tWGoc_gG.js} +1 -1
- package/page/assets/fieldParts-CrDK1ecV.js +1 -0
- package/page/assets/{guardrail-tester-CGUHHsyb.js → guardrail-tester-BLvHVm4_.js} +2 -2
- package/page/assets/{highlightRanges-DvvjZZAv.js → highlightRanges-BfROnk2i.js} +1 -1
- package/page/assets/index-B366WCKO.js +150 -0
- package/page/assets/index-Ch4U1dYD.css +1 -0
- package/page/assets/{inputStyles.stylex-uYr8_KtT.js → inputStyles.stylex-B1aNWR3P.js} +1 -1
- package/page/assets/{json-code-B3yCi0P9.js → json-code-CvBj-YjC.js} +1 -1
- package/page/assets/{labels-provider-BcEDhptf.js → labels-provider-CKypi3Rm.js} +1 -1
- package/page/assets/layerScopedContext-OrLDujSh.js +1 -0
- package/page/assets/{live-messages-BN3y_EFm.js → live-messages-CGCJrd3G.js} +1 -1
- package/page/assets/map-token-BPszkFJ_.css +1 -0
- package/page/assets/map-token-zJGxIUb4.js +1 -0
- package/page/assets/padding.stylex-BWRTzhFl.js +1 -0
- package/page/assets/{prompt-row-U9e86EBE.js → prompt-row-DkxdR4Qu.js} +1 -1
- package/page/assets/read-map-CRTNH0Gp.css +1 -0
- package/page/assets/read-map-CVfRMOdU.js +1 -0
- package/page/assets/{reader-cBBgcaBo.js → reader-Dszdlhfg.js} +1 -1
- package/page/assets/{registry-CfrYwHUL.js → registry-CH73Rdrf.js} +1 -1
- package/page/assets/safeUrl-CYCzKQ-X.js +1 -0
- package/page/assets/{schema-sr1e2jJl.js → schema-DHkmUj_T.js} +1 -1
- package/page/assets/{stub-DSQZeu0x.js → stub-B_588HBv.js} +1 -1
- package/page/assets/{studio-code-pane-Cv1iftvV.js → studio-code-pane-BvTyvYbq.js} +3 -3
- package/page/assets/{studio-console-rtbuaRYe.js → studio-console-BrLdaJd0.js} +1 -1
- package/page/assets/{studio-decision-DVrv-RGx.js → studio-decision-fwn8abEr.js} +1 -1
- package/page/assets/{studio-embedding-BSeoVbNw.js → studio-embedding-BBWJnj2H.js} +2 -2
- package/page/assets/studio-host-console-C01gkXAU.js +2 -0
- package/page/assets/studio-labels-CcyxrH3b.js +3 -0
- package/page/assets/studio-live-B3OKaXnv.js +5 -0
- package/page/assets/studio-map-ClmHWuVQ.js +1 -0
- package/page/assets/{studio-trace-replay-D0L1dc6a.js → studio-trace-replay-YNAJYp9b.js} +2 -2
- package/page/assets/{studio-type-checker-o2Q6t4mP.js → studio-type-checker-DmEXB7gp.js} +1 -1
- package/page/assets/{tool-schema-rEGe7P4c.js → tool-schema-DpOILaLF.js} +5 -5
- package/page/assets/{trace-patterns-86-gKv3I.js → trace-patterns-7ljKzdWI.js} +1 -1
- package/page/assets/{tree-B8V3yBSo.js → tree-D8Bhb2Iv.js} +1 -1
- package/page/assets/{turn-client-DX-EcYHd.js → turn-client-CUnAfL-k.js} +1 -1
- package/page/assets/type-icons-BH_hcYiS.js +1 -0
- package/page/assets/{use-one-call-DM75LWIO.js → use-one-call-CK1XXyNK.js} +1 -1
- package/page/assets/useAnnounce-CRR83ID0.js +1 -0
- package/page/assets/useAnnounceRenderedText-Dmk4UjwU.js +1 -0
- package/page/assets/useClickableContainer-BirAhL6n.js +1 -0
- package/page/assets/{useClipboard-DeMRGvqJ.js → useClipboard-CBYppUy6.js} +1 -1
- package/page/assets/{useKeyboardHint-BIqbBlHw.js → useKeyboardHint-CPYLVCI3.js} +1 -1
- package/page/assets/useLocale-BuRYk4__.js +1 -0
- package/page/assets/useMenuDrillIn-tkh7-uy6.js +1 -0
- package/page/assets/{useMenuPress-DPpqa6F7.js → useMenuPress-C-hKmliO.js} +1 -1
- package/page/assets/usePressFeedback-v6IeHjJ6.js +1 -0
- package/page/assets/{useResolvedRequired-CAelf7J-.js → useResolvedRequired-DgA9eEzw.js} +1 -1
- package/page/assets/useTooltip-CipI1oJa.js +1 -0
- package/page/assets/{workspace-Crzw_eS8.js → workspace-BtgRpaRk.js} +1 -1
- package/page/index.html +62 -52
- package/ui/boot-mark.js +6 -6
- package/ui/lib/boot-sequence.d.ts +0 -1
- package/ui/lib/boot-sequence.js +6 -9
- package/ui/shell-motion.css +5 -0
- package/ui/shell-motion.js +3 -0
- package/page/assets/BottomSheet-CS905Wxu.js +0 -1
- package/page/assets/Center-CgO0c-qo.js +0 -1
- package/page/assets/CheckboxInput-BIFNQqbA.js +0 -2
- package/page/assets/ConsoleFrame-DHaO3liV.js +0 -3
- package/page/assets/DateInput-D8vNhNrf.js +0 -1
- package/page/assets/Dialog-DUNBjHOI.js +0 -1
- package/page/assets/FieldStatus-CSAKvGxp.js +0 -1
- package/page/assets/IconButton-CerBBPke.js +0 -1
- package/page/assets/ListItem-DrfoLYVQ.js +0 -1
- package/page/assets/ScrollableArea-CZpbLBeP.js +0 -1
- package/page/assets/SidePanel-DLgOJwvB.js +0 -2
- package/page/assets/TraceInspector-COPhxkvb.js +0 -1
- package/page/assets/browser-engine-fGGB4Oel.js +0 -16
- package/page/assets/browser-transport-C_esnvOw.js +0 -45
- package/page/assets/fieldParts-CNKpMZ7U.js +0 -1
- package/page/assets/index-Bl2XBXLS.css +0 -1
- package/page/assets/index-D20KCw0I.js +0 -150
- package/page/assets/padding.stylex-B76907Zf.js +0 -1
- package/page/assets/studio-host-console-BGQcO7ev.js +0 -2
- package/page/assets/studio-labels-omhtz_by.js +0 -3
- package/page/assets/studio-live-DTOc_p-I.js +0 -5
- package/page/assets/studio-map-8Pp3DdJv.js +0 -1
- package/page/assets/useAnnounce-DlZth-he.js +0 -1
- package/page/assets/useAnnounceRenderedText-BrbiKE4-.js +0 -1
- package/page/assets/useLocale-DrfYfZTs.js +0 -1
- package/page/assets/useMenuDrillIn-DOLSnkWq.js +0 -1
- package/page/assets/usePressFeedback-CBSbXJuo.js +0 -1
- package/page/assets/useTooltip-BaCjTHk-.js +0 -1
package/page/index.html
CHANGED
|
@@ -10,103 +10,113 @@
|
|
|
10
10
|
href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='7' fill='%23000'/%3E%3Cg transform='translate(4 4)' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4.5 18.5c2 0 3-1.2 4.2-3.4l2.6-5c1-1.9 2.1-3.1 4.2-3.1'/%3E%3Cpath d='M5.5 8.2c1.6-.9 3.2-.4 3.8 1.6l2.3 6.6c.6 1.7 2.1 2.4 3.9 1.7'/%3E%3Ccircle cx='19.5' cy='4.5' r='1.6' fill='%23fff' stroke='none'/%3E%3C/g%3E%3C/svg%3E"
|
|
11
11
|
/>
|
|
12
12
|
<title>theorem studio</title>
|
|
13
|
-
<script type="module" crossorigin src="/studio/assets/index-
|
|
13
|
+
<script type="module" crossorigin src="/studio/assets/index-B366WCKO.js"></script>
|
|
14
14
|
<link rel="modulepreload" crossorigin href="/studio/assets/rolldown-runtime-hePW80VL.js">
|
|
15
15
|
<link rel="modulepreload" crossorigin href="/studio/assets/themeProps-3IqahpCr.js">
|
|
16
16
|
<link rel="modulepreload" crossorigin href="/studio/assets/tokens.stylex-BpCwr7Mf.js">
|
|
17
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/
|
|
17
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/layerScopedContext-OrLDujSh.js">
|
|
18
18
|
<link rel="modulepreload" crossorigin href="/studio/assets/mergeProps-ptS-gIMz.js">
|
|
19
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/
|
|
19
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/padding.stylex-BWRTzhFl.js">
|
|
20
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/Stack-BxV67rLm.js">
|
|
20
21
|
<link rel="modulepreload" crossorigin href="/studio/assets/StackItem-YZCLellt.js">
|
|
21
22
|
<link rel="modulepreload" crossorigin href="/studio/assets/useLayerDismissal-BAnTRYTt.js">
|
|
22
23
|
<link rel="modulepreload" crossorigin href="/studio/assets/devWarning-DxuplmRl.js">
|
|
23
24
|
<link rel="modulepreload" crossorigin href="/studio/assets/useMediaQuery-BCT0NUeZ.js">
|
|
24
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/Icon-
|
|
25
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/Icon-DQhwzrkL.js">
|
|
25
26
|
<link rel="modulepreload" crossorigin href="/studio/assets/focusOutline.stylex-B9nWSXsG.js">
|
|
26
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/
|
|
27
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/usePressFeedback-
|
|
27
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/safeUrl-CYCzKQ-X.js">
|
|
28
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/usePressFeedback-v6IeHjJ6.js">
|
|
29
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/useTooltip-CipI1oJa.js">
|
|
28
30
|
<link rel="modulepreload" crossorigin href="/studio/assets/sharedResizeObserver-4U9Xq5Oq.js">
|
|
29
31
|
<link rel="modulepreload" crossorigin href="/studio/assets/preload-helper-DpV6A1kQ.js">
|
|
30
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/Text-
|
|
31
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/
|
|
32
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/Spinner--TVdDovX.js">
|
|
32
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/Text-DsdhhbQq.js">
|
|
33
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/Spinner-CB4UUJ5a.js">
|
|
33
34
|
<link rel="modulepreload" crossorigin href="/studio/assets/VisuallyHidden-BdRLF-8h.js">
|
|
34
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/IconButton-
|
|
35
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/Tooltip-DrSpWxD8.js">
|
|
36
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/FieldStatus-CSAKvGxp.js">
|
|
35
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/IconButton-DkBz0UbI.js">
|
|
37
36
|
<link rel="modulepreload" crossorigin href="/studio/assets/focusableSelector-DXZeMU85.js">
|
|
38
37
|
<link rel="modulepreload" crossorigin href="/studio/assets/useDevWarning-Z9SoixOP.js">
|
|
39
38
|
<link rel="modulepreload" crossorigin href="/studio/assets/createReactComponent-CZwsv6DD.js">
|
|
40
39
|
<link rel="modulepreload" crossorigin href="/studio/assets/isRtlElement-BG33-k_H.js">
|
|
41
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/
|
|
42
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/
|
|
43
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/
|
|
40
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/useClickableContainer-BirAhL6n.js">
|
|
41
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/useAnnounce-CRR83ID0.js">
|
|
42
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/Tooltip-i8-9gEjh.js">
|
|
43
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/FieldStatus-DsLpiRRE.js">
|
|
44
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/fieldParts-CrDK1ecV.js">
|
|
45
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/useResolvedRequired-DgA9eEzw.js">
|
|
46
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/useAnnounceRenderedText-Dmk4UjwU.js">
|
|
44
47
|
<link rel="modulepreload" crossorigin href="/studio/assets/plainDate-BHiJcj7o.js">
|
|
45
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/OverflowList-
|
|
48
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/OverflowList-DCbz0juN.js">
|
|
46
49
|
<link rel="modulepreload" crossorigin href="/studio/assets/useScrollableArea-DuF_pz9m.js">
|
|
47
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/ScrollableArea-
|
|
48
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/HStack-
|
|
49
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/VStack-
|
|
50
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/ScrollableArea-B4atQbG7.js">
|
|
51
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/HStack-DxvXX_Xt.js">
|
|
52
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/VStack-CdkbS0YS.js">
|
|
50
53
|
<link rel="modulepreload" crossorigin href="/studio/assets/container.stylex-C2nFBhUj.js">
|
|
51
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/Card-
|
|
52
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/SidePanel-
|
|
54
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/Card-UzuJJI_o.js">
|
|
55
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/SidePanel-CJhDv_-c.js">
|
|
53
56
|
<link rel="modulepreload" crossorigin href="/studio/assets/IconAlertTriangle-BqAEqqdU.js">
|
|
54
57
|
<link rel="modulepreload" crossorigin href="/studio/assets/schemas-D7cgkv3L.js">
|
|
55
58
|
<link rel="modulepreload" crossorigin href="/studio/assets/host-patterns-F-KZIzkF.js">
|
|
56
59
|
<link rel="modulepreload" crossorigin href="/studio/assets/shaped-data-F3datIeG.js">
|
|
57
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/tool-schema-
|
|
60
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/tool-schema-DpOILaLF.js">
|
|
58
61
|
<link rel="modulepreload" crossorigin href="/studio/assets/live-ingress-OuSlQ6q7.js">
|
|
59
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/tree-
|
|
60
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/schema-
|
|
61
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/browser-connection-
|
|
62
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/tree-D8Bhb2Iv.js">
|
|
63
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/schema-DHkmUj_T.js">
|
|
64
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/browser-connection-yG5WpBzp.js">
|
|
62
65
|
<link rel="modulepreload" crossorigin href="/studio/assets/types-VfIdu3Jr.js">
|
|
63
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/compile-
|
|
66
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/compile-C9JvVXdv.js">
|
|
64
67
|
<link rel="modulepreload" crossorigin href="/studio/assets/row-keys-WByP9Hsh.js">
|
|
65
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/Center-
|
|
68
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/Center-CfSYa5SJ.js">
|
|
66
69
|
<link rel="modulepreload" crossorigin href="/studio/assets/IconFilter-BO98ezum.js">
|
|
70
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/IconMicrophone-CJCgFwEd.js">
|
|
67
71
|
<link rel="modulepreload" crossorigin href="/studio/assets/IconSearch-BTx66a40.js">
|
|
72
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/IconTool-CnptGEDw.js">
|
|
68
73
|
<link rel="modulepreload" crossorigin href="/studio/assets/trace-schema--4IGmLeE.js">
|
|
69
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/stub-
|
|
70
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/reader-
|
|
71
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/registry-
|
|
72
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/browser-transport-
|
|
74
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/stub-B_588HBv.js">
|
|
75
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/reader-Dszdlhfg.js">
|
|
76
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/registry-CH73Rdrf.js">
|
|
77
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/browser-transport-C_dPoyoi.js">
|
|
73
78
|
<link rel="modulepreload" crossorigin href="/studio/assets/focusReturn-CTppP2k0.js">
|
|
79
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/Token-B-NmyYhm.js">
|
|
74
80
|
<link rel="modulepreload" crossorigin href="/studio/assets/isRenderable-DHkzpAoQ.js">
|
|
75
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/labels-provider-
|
|
76
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/useLocale-
|
|
77
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/CheckboxInput-
|
|
81
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/labels-provider-CKypi3Rm.js">
|
|
82
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/useLocale-BuRYk4__.js">
|
|
83
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/CheckboxInput-DC62lfiG.js">
|
|
78
84
|
<link rel="modulepreload" crossorigin href="/studio/assets/useScrollLock-Dyf6PHJt.js">
|
|
79
85
|
<link rel="modulepreload" crossorigin href="/studio/assets/chainEventHandlers-C6ttXGfW.js">
|
|
80
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/Dialog-
|
|
81
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/useClipboard-
|
|
82
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/highlightRanges-
|
|
83
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/CodeBlock-
|
|
84
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/HoverCard-
|
|
85
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/
|
|
86
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/
|
|
86
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/Dialog-CVk3thtl.js">
|
|
87
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/useClipboard-CBYppUy6.js">
|
|
88
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/highlightRanges-BfROnk2i.js">
|
|
89
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/CodeBlock-Dcj5-dI6.js">
|
|
90
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/HoverCard-DM8G9-0E.js">
|
|
91
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/IconMathFunction-Eux9NbUx.js">
|
|
92
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/IconServer-DIJ0DAhI.js">
|
|
93
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/IconWorld-DTIAtVl1.js">
|
|
94
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/type-icons-BH_hcYiS.js">
|
|
95
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/inputStyles.stylex-B1aNWR3P.js">
|
|
96
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/TextInput-DQESAqpV.js">
|
|
87
97
|
<link rel="modulepreload" crossorigin href="/studio/assets/encode-files-jImBXUB7.js">
|
|
88
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/turn-client-
|
|
98
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/turn-client-CUnAfL-k.js">
|
|
89
99
|
<link rel="modulepreload" crossorigin href="/studio/assets/Badge-D78MvW22.js">
|
|
90
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/CollapsibleGroup-
|
|
91
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/studio-labels-
|
|
92
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/
|
|
100
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/CollapsibleGroup-C558j700.js">
|
|
101
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/studio-labels-CcyxrH3b.js">
|
|
102
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/project-address-DjxPZuyn.js">
|
|
103
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/workspace-BtgRpaRk.js">
|
|
93
104
|
<link rel="modulepreload" crossorigin href="/studio/assets/lent-keys-C32ems-I.js">
|
|
94
105
|
<link rel="modulepreload" crossorigin href="/studio/assets/editors-BJX_S59A.js">
|
|
95
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/project-address-DjxPZuyn.js">
|
|
96
106
|
<link rel="modulepreload" crossorigin href="/studio/assets/people-CIsR0-5R.js">
|
|
97
107
|
<link rel="modulepreload" crossorigin href="/studio/assets/studio-session-ClF2iNCX.js">
|
|
98
108
|
<link rel="modulepreload" crossorigin href="/studio/assets/EmptyState-C_uF9Wyj.js">
|
|
99
109
|
<link rel="modulepreload" crossorigin href="/studio/assets/use-second-ticker-D29e7ivl.js">
|
|
100
110
|
<link rel="modulepreload" crossorigin href="/studio/assets/menuItemRoles-Bod0knkp.js">
|
|
101
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/useMenuPress-
|
|
111
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/useMenuPress-C-hKmliO.js">
|
|
102
112
|
<link rel="modulepreload" crossorigin href="/studio/assets/useAdaptivePresentation-Bma4-u1a.js">
|
|
103
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/useMenuDrillIn-
|
|
113
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/useMenuDrillIn-tkh7-uy6.js">
|
|
104
114
|
<link rel="modulepreload" crossorigin href="/studio/assets/useFocusReturnVisibility-BHKv5Jwr.js">
|
|
105
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/useKeyboardHint-
|
|
106
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/ListItem-
|
|
107
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/MenuBottomSheetActionList-
|
|
115
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/useKeyboardHint-CPYLVCI3.js">
|
|
116
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/ListItem-DB9l0niX.js">
|
|
117
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/MenuBottomSheetActionList-BXRLqw9i.js">
|
|
108
118
|
<link rel="stylesheet" crossorigin href="/studio/assets/use-second-ticker-B-V4bkIB.css">
|
|
109
|
-
<link rel="stylesheet" crossorigin href="/studio/assets/index-
|
|
119
|
+
<link rel="stylesheet" crossorigin href="/studio/assets/index-Ch4U1dYD.css">
|
|
110
120
|
<style>html{color-scheme:dark}html,body{margin:0;background:#000}html[data-boot-pending],html[data-boot-pending] body{background:#262626}html[data-boot-pending] .astryx-app-shell{height:100dvh}html[data-boot-pending] .astryx-app-shell-sidenav{position:absolute;inset-block:0;inset-inline-start:0;z-index:0;width:3rem}html[data-boot-pending] #astryx-app-shell-main{position:relative;z-index:1;width:100%;height:100%;max-width:none;margin:0;border-radius:0;clip-path:none;background:#262626;color:#fff}html[data-boot-pending] #astryx-app-shell-main>:not([data-boot]){visibility:hidden}html[data-boot-pending] [data-boot]{position:absolute;inset:0;z-index:2;display:grid;place-items:center;background:#262626;color:#fff}</style>
|
|
111
121
|
<noscript> <style>html[data-boot-pending],html[data-boot-pending] body{background:#000}html[data-boot-pending] #astryx-app-shell-main>:not([data-boot]){visibility:visible !important}[data-boot]{display:none !important}</style>
|
|
112
122
|
</noscript>
|
package/ui/boot-mark.js
CHANGED
|
@@ -5,13 +5,14 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
5
5
|
* studio also reads a project: its panel pulls in beside the rail first and the read is drawn there
|
|
6
6
|
* as it does.
|
|
7
7
|
*/
|
|
8
|
-
import { useEffect, useRef, useState } from 'react';
|
|
8
|
+
import { lazy, Suspense, useEffect, useRef, useState } from 'react';
|
|
9
9
|
import { bootHolds, HOLD_CAP_MS } from "./lib/boot-hold.js";
|
|
10
10
|
import { runBoot } from "./lib/boot-sequence.js";
|
|
11
|
-
import { ReadMap } from "./read-map.js";
|
|
12
11
|
import { bootHasPlayed, HOLD_MS as FADE_MS, prefersReducedMotion, pullShellIn, revealShell, sleep, } from "./shell-motion.js";
|
|
13
12
|
import { TheoremMark } from "./theorem-mark.js";
|
|
14
13
|
import './boot-mark.css';
|
|
14
|
+
// why: Only a project's read draws the map. A site that mounts the loader has no read to show.
|
|
15
|
+
const ReadMap = lazy(() => import("./read-map.js").then(({ ReadMap }) => ({ default: ReadMap })));
|
|
15
16
|
const DRAW_CAP_MS = 2800;
|
|
16
17
|
const FONT_CAP_MS = 500;
|
|
17
18
|
/** Resolves when the mark's dot has drawn in, at once with reduced motion, or after the cap. */
|
|
@@ -94,8 +95,8 @@ function fontsSettled() {
|
|
|
94
95
|
return Promise.race([document.fonts.ready.then(() => undefined), sleep(FONT_CAP_MS)]);
|
|
95
96
|
}
|
|
96
97
|
/**
|
|
97
|
-
* The mark draws in the shell only
|
|
98
|
-
*
|
|
98
|
+
* The mark draws in the shell only while the page is loading. The moment the page is ready, that
|
|
99
|
+
* same panel pulls in over it, however far the pen has got.
|
|
99
100
|
*/
|
|
100
101
|
function useBootPhase({ shape, reading }) {
|
|
101
102
|
const [phase, setPhase] = useState(() => (bootHasPlayed() ? 'done' : 'draw'));
|
|
@@ -110,7 +111,6 @@ function useBootPhase({ shape, reading }) {
|
|
|
110
111
|
const reduced = prefersReducedMotion();
|
|
111
112
|
return runBoot({
|
|
112
113
|
reads: !reduced && Boolean(latest.current.reading),
|
|
113
|
-
reduced,
|
|
114
114
|
fadeMs: FADE_MS,
|
|
115
115
|
// The page is there with its fonts and everything its opening screen holds the mark for.
|
|
116
116
|
settled: Promise.all([fontsSettled(), bootHolds.settled(pageCommitted())]),
|
|
@@ -160,5 +160,5 @@ export function BootMark(props) {
|
|
|
160
160
|
if (phase === 'done')
|
|
161
161
|
return null;
|
|
162
162
|
const mapped = (phase === 'map' || phase === 'leave') && props.reading;
|
|
163
|
-
return (_jsxs("div", { ref: rootRef, "data-boot": "", "data-phase": phase, role: "status", "aria-live": "polite", "aria-label": "Loading", children: [phase === 'draw' && _jsx(TheoremMark, {}), mapped && _jsx("span", { className: "boot-said", children: "Reading your project" }), mapped && _jsx(ReadMap, { reading: mapped, onDrawn: () => mapDrawn.current() })] }));
|
|
163
|
+
return (_jsxs("div", { ref: rootRef, "data-boot": "", "data-phase": phase, role: "status", "aria-live": "polite", "aria-label": "Loading", children: [phase === 'draw' && _jsx(TheoremMark, {}), mapped && _jsx("span", { className: "boot-said", children: "Reading your project" }), mapped && (_jsx(Suspense, { fallback: null, children: _jsx(ReadMap, { reading: mapped, onDrawn: () => mapDrawn.current() }) }))] }));
|
|
164
164
|
}
|
|
@@ -11,7 +11,6 @@ export type BootPhase = 'draw' | 'map' | 'leave' | 'done';
|
|
|
11
11
|
export interface Boot {
|
|
12
12
|
/** Whether a project is read for the page, and so mapped. Never with reduced motion. */
|
|
13
13
|
reads: boolean;
|
|
14
|
-
reduced: boolean;
|
|
15
14
|
/** How long the map takes to fade. */
|
|
16
15
|
fadeMs: number;
|
|
17
16
|
/** Settles when the page under the loader is on screen with its fonts. */
|
package/ui/lib/boot-sequence.js
CHANGED
|
@@ -3,9 +3,8 @@
|
|
|
3
3
|
* in beside the rail, the map fades, and the panel pulls in to the page. What each step does on
|
|
4
4
|
* screen is the caller's; this only decides when.
|
|
5
5
|
*/
|
|
6
|
-
/** How long the drawn mark is held before
|
|
6
|
+
/** How long the drawn mark is held before a project's map takes over. */
|
|
7
7
|
const HOLD_MS = 90;
|
|
8
|
-
const REDUCED_HOLD_MS = 200;
|
|
9
8
|
/** Runs the loader. The function returned stops it: nothing more is shown or revealed. */
|
|
10
9
|
export function runBoot(boot) {
|
|
11
10
|
let cancelled = false;
|
|
@@ -17,8 +16,8 @@ export function runBoot(boot) {
|
|
|
17
16
|
revealed = true;
|
|
18
17
|
boot.reveal();
|
|
19
18
|
};
|
|
20
|
-
/* A project's read is drawn once the mark is, loaded or not
|
|
21
|
-
|
|
19
|
+
/* A project's read is drawn once the mark is, loaded or not, and the map starts on the panel as
|
|
20
|
+
it pulls in. Settles once the panel is in. */
|
|
22
21
|
const mapped = boot.reads
|
|
23
22
|
? boot
|
|
24
23
|
.markDrawn()
|
|
@@ -31,14 +30,12 @@ export function runBoot(boot) {
|
|
|
31
30
|
return boot.pullIn().then(() => !cancelled);
|
|
32
31
|
})
|
|
33
32
|
: Promise.resolve(false);
|
|
34
|
-
/*
|
|
35
|
-
|
|
33
|
+
/* The mark shows only while the page is not ready: the moment it is, the panel pulls in, wherever
|
|
34
|
+
the pen has got to. A project's map always finishes. */
|
|
36
35
|
void boot.settled
|
|
37
36
|
.then(() => {
|
|
38
|
-
if (!boot.
|
|
37
|
+
if (!boot.reads || (!pulling && !boot.penHasStarted()))
|
|
39
38
|
return undefined;
|
|
40
|
-
if (!boot.reads)
|
|
41
|
-
return boot.markDrawn().then(() => boot.sleep(boot.reduced ? REDUCED_HOLD_MS : HOLD_MS));
|
|
42
39
|
return mapped.then((shown) => {
|
|
43
40
|
if (!shown || cancelled)
|
|
44
41
|
return undefined;
|
package/ui/shell-motion.css
CHANGED
|
@@ -42,6 +42,11 @@
|
|
|
42
42
|
transition: clip-path 640ms cubic-bezier(0.45, 0.02, 0.15, 1);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
/* The first open is not a screen change: the page is ready and only this move holds it back. */
|
|
46
|
+
html[data-shell-first-open] .astryx-app-shell [role="main"] {
|
|
47
|
+
transition-duration: 240ms;
|
|
48
|
+
}
|
|
49
|
+
|
|
45
50
|
html[data-shell-clip="open"] .astryx-app-shell [role="main"] {
|
|
46
51
|
clip-path: inset(0 round 0);
|
|
47
52
|
}
|
package/ui/shell-motion.js
CHANGED
|
@@ -142,6 +142,7 @@ export function settleShell(to) {
|
|
|
142
142
|
delete root.dataset.shellMove;
|
|
143
143
|
delete root.dataset.shellClip;
|
|
144
144
|
delete root.dataset.shellHold;
|
|
145
|
+
delete root.dataset.shellFirstOpen;
|
|
145
146
|
root.style.removeProperty(FRAME_WIDTH);
|
|
146
147
|
if (shown)
|
|
147
148
|
showContent(root);
|
|
@@ -179,6 +180,8 @@ export function revealShell(to) {
|
|
|
179
180
|
root.dataset.shellClip = 'open';
|
|
180
181
|
root.dataset.shellMove = '';
|
|
181
182
|
}
|
|
183
|
+
if (moves)
|
|
184
|
+
root.dataset.shellFirstOpen = '';
|
|
182
185
|
delete root.dataset.bootPending;
|
|
183
186
|
globalThis.dispatchEvent(new Event(SHELL_REVEAL));
|
|
184
187
|
if (!moves) {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,r as t}from"./rolldown-runtime-hePW80VL.js";import{c as n,l as r,n as i,u as a}from"./themeProps-3IqahpCr.js";import{g as o}from"./tokens.stylex-BpCwr7Mf.js";import{_ as s,a as c,c as l,h as u,n as d,t as f,v as p}from"./padding.stylex-B76907Zf.js";import{t as m}from"./mergeProps-ptS-gIMz.js";import{a as h,c as g,i as ee,n as te,t as ne}from"./useLayerDismissal-BAnTRYTt.js";import{t as re}from"./focusReturn-CTppP2k0.js";import{i as _}from"./focusOutline.stylex-B9nWSXsG.js";import{t as v}from"./useMediaQuery-BCT0NUeZ.js";import{t as y}from"./useScrollLock-Dyf6PHJt.js";import{t as b}from"./useDevWarning-Z9SoixOP.js";import{t as x}from"./useScrollableArea-DuF_pz9m.js";import{t as S}from"./container.stylex-C2nFBhUj.js";var C=t(a(),1),w=/^(\d+(?:\.\d+)?|\.\d+)(px|%)$/i;function T(e,t){if(typeof e==`number`)return Number.isFinite(e)&&e>0&&e<=1?e*t:null;let n=w.exec(e.trim());if(n===null)return null;let r=Number.parseFloat(n[1]);return r>0?n[2].toLowerCase()===`%`?r/100*t:r:null}function E(e){return T(e,1)!==null}function ie(e,t){let n=[];for(let r of e){let e=T(r,t);e!==null&&n.push(e)}return n}function ae(e,t,n=48){let r=[0,...t.filter(t=>t>0&&t<e).map(t=>e-t)].sort((e,t)=>e-t),i=[];for(let e of r){let t=i[i.length-1];(t===void 0||e-t>=n)&&i.push(e)}return i}function D(e,t){return t.reduce((t,n)=>Math.abs(n-e)<Math.abs(t-e)?n:t,t[0])}var O=.3;function k(e,t){if(e.length<2||t<=0)return null;let n=e[e.length-1];return t-n<=.25*t?n:null}function A(e,t,n,r){let i=r!==null,a=i?t[t.length-2]:t[t.length-1],o=i?r:n,s=i?O:0;return e<=a?1:e>=o?s:1-(1-s)*((e-a)/(o-a))}function oe(e,t,n,r){let i=t;if(n>0){let e=t.filter(e=>e>=r);e.length>0&&(i=e)}else if(n<0){let e=t.filter(e=>e<=r);e.length>0&&(i=e)}return D(e,i)}var j=`--_sheet-keyboard-inset`,se=new Set([`button`,`checkbox`,`color`,`file`,`hidden`,`image`,`radio`,`range`,`reset`,`submit`]);function M(){return window.visualViewport?.height??window.innerHeight}function N(){return M()>=window.innerHeight-.5}function P(){let e=window.navigator.userAgent;return/iPad|iPhone|iPod/.test(e)||e.includes(`Macintosh`)&&window.navigator.maxTouchPoints>1}function F(e){return e instanceof HTMLTextAreaElement?!e.disabled&&!e.readOnly:e instanceof HTMLInputElement?!e.disabled&&!e.readOnly&&!se.has((e.getAttribute(`type`)??`text`).toLowerCase()):e instanceof HTMLElement&&e.matches(`[contenteditable]:not([contenteditable="false"])`)}function I(e,t){if(!(e instanceof Element))return null;let n=e.closest(`input, textarea, [contenteditable]:not([contenteditable="false"])`);if(t.contains(n)&&F(n))return n;let r=e.closest(`label`),i=r instanceof HTMLLabelElement?r.control:null;return t.contains(i)&&F(i)?i:null}function ce({bodyRef:e,bottomClearance:t,isEnabled:n,isFullyExpanded:r,isPageScrollLocked:i,isSheetTraveling:a,isOpen:o,isPresented:s,sheetRef:c}){let l=(0,C.useRef)(!1),u=(0,C.useRef)(!1),d=(0,C.useRef)(r),f=(0,C.useRef)(o);d.current=r,f.current=o,(0,C.useEffect)(()=>{if(!n||!a)return;let e=c.current,t=document.activeElement;e&&t instanceof HTMLElement&&t!==e&&e.contains(t)&&(u.current=l.current,e.focus({preventScroll:!0}))},[n,a,c]),(0,C.useEffect)(()=>{if(!n||!s||o)return;let e=c.current,t=document.activeElement;e&&t instanceof HTMLElement&&t!==e&&e.contains(t)&&(u.current=l.current,t.blur())},[n,o,s,c]),(0,C.useEffect)(()=>{let r=e.current,a=c.current;if(!n||!s||!r)return;let o=null,p=null,m=P(),h=()=>{r.style.setProperty(j,`0px`),o=null,p=null,l.current=!1,u.current=!1},g=(e,t)=>{if(typeof r.scrollBy!=`function`){r.scrollTop+=e;return}let n=typeof window.matchMedia==`function`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches;r.scrollBy({top:e,behavior:t&&!n?`smooth`:`instant`})},ee=(e,n)=>{let i=r.getBoundingClientRect(),a=e.getBoundingClientRect(),o=M(),s=Math.max(0,i.bottom-o)>0?t:0,c=i.top,l=Math.min(i.bottom,o-s);l<=c||(a.bottom>l?g(a.bottom-l,n):a.top<c&&g(a.top-c,n))},te=e=>{let n=M();if(N()||Math.max(0,e.bodyBottom-n)===0){h();return}let i=Math.max(0,e.bodyBottom-(n-t));r.style.setProperty(j,`${i}px`)},ne=e=>{if(!d.current)return;let t=I(e.relatedTarget,r);if(t){t!==document.activeElement&&t.focus({preventScroll:!0});return}let n=I(e.target,r);f.current&&n&&!e.relatedTarget&&a?.focus({preventScroll:!0})},re=()=>{let e=document.activeElement;if(!d.current||!(e instanceof HTMLElement)||!r.contains(e)||!F(e)){if(u.current&&o){te(o);return}h();return}u.current=!1;let n=r.getBoundingClientRect(),a=M(),s=Math.max(0,n.bottom-a),c=s>0?t:0;o=s>0?{bodyBottom:n.bottom}:null,i&&s>0&&!l.current&&(p={x:window.scrollX,y:window.scrollY}),l.current=s>0;let f=s>0?Math.max(0,n.bottom-(a-c)):0;r.style.setProperty(j,`${f}px`),ee(e,s>0)},_=0,v=()=>{cancelAnimationFrame(_),_=requestAnimationFrame(re)},y=()=>{let e=p;if(e==null||window.scrollX===e.x&&window.scrollY===e.y)return;window.scrollTo(e.x,e.y);let t=document.activeElement;t instanceof HTMLElement&&r.contains(t)&&F(t)&&ee(t,!1)},b=typeof ResizeObserver>`u`?null:new ResizeObserver(v),x=()=>{if(!b)return;b.disconnect();let e=new Set([r]);a&&e.add(a);for(let t of r.children)e.add(t);let t=document.activeElement;if(t instanceof HTMLElement&&r.contains(t))for(let n=t;n&&n!==r;n=n.parentElement)e.add(n);for(let t of e)b.observe(t)},S=typeof MutationObserver>`u`?null:new MutationObserver(e=>{e.every(e=>e.type===`attributes`&&e.target===r)||(x(),v())}),C=()=>{x(),v()},w=()=>{u.current=l.current,v()},T=e=>{e.target===a&&e.propertyName===`transform`&&v()},E=window.visualViewport;return m&&document.addEventListener(`blur`,ne,!0),r.addEventListener(`focusin`,C),r.addEventListener(`focusout`,w),a?.addEventListener(`transitionend`,T),E?.addEventListener(`resize`,v),E?.addEventListener(`scroll`,v),window.addEventListener(`scroll`,y),window.addEventListener(`resize`,v),S?.observe(r,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),x(),v(),()=>{cancelAnimationFrame(_),m&&document.removeEventListener(`blur`,ne,!0),r.removeEventListener(`focusin`,C),r.removeEventListener(`focusout`,w),a?.removeEventListener(`transitionend`,T),E?.removeEventListener(`resize`,v),E?.removeEventListener(`scroll`,v),window.removeEventListener(`scroll`,y),window.removeEventListener(`resize`,v),b?.disconnect(),S?.disconnect(),r.style.removeProperty(j),l.current=!1,u.current=!1}},[e,t,n,i,s,c])}var le=.998/.0020000000000000018,ue=48,de=100,L=.4,fe=40;function R(e){return e.syntheticTouch===!0}var pe=.35,me=4,he=8;function ge(){typeof navigator<`u`&&typeof navigator.vibrate==`function`&&(we()||navigator.vibrate(8))}function _e(e,t){let n=t[0],r=Math.abs(e-n);for(let i of t){let t=Math.abs(e-i);t<r&&(r=t,n=i)}if(r>=fe)return e;let i=r/fe,a=1-i*i;return e+(n-e)*a}function ve(e,t,n){return Math.max(0,e-t-n)}function ye(e){let t=Number.parseFloat(getComputedStyle(e).paddingBlockEnd);return Number.isFinite(t)?t:0}function be(e){if(!e)return 0;let t=ye(e);return Math.max(0,e.scrollHeight-e.clientHeight-t)-e.scrollTop}function z(e){if(e.scrollHeight-e.clientHeight<=1)return!1;let{overflowY:t}=getComputedStyle(e);return t===`auto`||t===`scroll`}function xe(e,t){let n=[];for(let r=e instanceof Element?e:null;r!=null&&r!==t;r=r.parentElement)r instanceof HTMLElement&&z(r)&&n.push(r);return n.push(t),n}function B(e){return e.scrollTop<=0}function V(e){return e.scrollTop+e.clientHeight>=e.scrollHeight-1}function Se(e){return e.every(B)}function Ce(e){return e.every(V)}function H(e,t,n){return Math.max(0,e-n-t)}function we(){return typeof window>`u`||!window.matchMedia?!1:window.matchMedia(`(prefers-reduced-motion: reduce)`).matches}function Te({isOpen:e,canDismiss:t=!0,offscreenBlockEndInset:n=0,onDismiss:r,snapHeights:i,onSnap:a,onScrimOpacity:o}){let[s,c]=(0,C.useState)(0),[l,u]=(0,C.useState)(0),[d,f]=(0,C.useState)(!1),[p,m]=(0,C.useState)(!1),[h,g]=(0,C.useState)(0),[ee,te]=(0,C.useState)(0),[ne,re]=(0,C.useState)(0),_=(0,C.useRef)(0),y=(0,C.useRef)(0),[b,x]=(0,C.useState)(null),[S,w]=(0,C.useState)(!1),T=(0,C.useRef)(0),E=(0,C.useRef)(null),ie=(0,C.useRef)(null),D=(0,C.useRef)(n);D.current=Math.max(0,n);let O=(0,C.useCallback)(e=>{let t=Math.max(0,e);_.current=t,re(t)},[]),j=(0,C.useCallback)(e=>{let t=Math.max(0,e);Math.abs(t-T.current)>.5&&(T.current=t,te(t))},[]),se=(0,C.useCallback)(()=>{w(!0),E.current=null,x(null);let e=ie.current;ie.current=null,e!=null&&j(e)},[j]),M=(0,C.useCallback)((e,t,n,r,i,a,o)=>{let s=ve(e,n,a);o&&Math.abs(r-t)>.5&&!we()?(ie.current=s,E.current=i,x(i)):(ie.current=null,E.current=null,x(null),w(Math.abs(i-n)>.5),j(s))},[j]),N=(0,C.useRef)(0);d||(N.current=l);let P=(0,C.useRef)(e);P.current=e;let F=(0,C.useRef)(i);F.current=i;let I=(0,C.useRef)(r),ce=(0,C.useRef)(t),fe=(0,C.useRef)(a),z=(0,C.useRef)(o);(0,C.useEffect)(()=>{I.current=r,ce.current=t,fe.current=a,z.current=o});let B=(0,C.useRef)(null),V=(0,C.useRef)(0),Te=(0,C.useRef)(null),U=(0,C.useRef)(null),Ee=(0,C.useRef)(null);(0,C.useLayoutEffect)(()=>{if(!S)return;Te.current?.offsetHeight;let e=requestAnimationFrame(()=>{w(!1)});return()=>cancelAnimationFrame(e)},[S]);let De=(0,C.useCallback)(e=>{e<=0||!P.current||N.current>0||(V.current=e,g(t=>t===e?t:e))},[]),Oe=(0,C.useCallback)(e=>{if(Ee.current?.disconnect(),Ee.current=null,Te.current=e,!e||typeof ResizeObserver>`u`){e&&De(e.getBoundingClientRect().height);return}De(e.getBoundingClientRect().height);let t=new ResizeObserver(e=>{let t=e[0];if(t){let e=t.borderBoxSize?.[0]?.blockSize;De(e??t.target.getBoundingClientRect().height)}});t.observe(e),Ee.current=t},[De]);(0,C.useEffect)(()=>()=>Ee.current?.disconnect(),[]),(0,C.useEffect)(()=>{e&&(c(0),u(0),f(!1),m(!1),w(!1),O(0),y.current=0,T.current=0,E.current=null,ie.current=null,te(0),x(null))},[e,O]);let ke=(0,C.useCallback)(()=>V.current>0?V.current:Te.current?.getBoundingClientRect().height??0,[]),W=(0,C.useCallback)(e=>{let t=H(e,0,D.current),n=ae(t,F.current?.()??[]);return{offsets:n,peekOffset:k(n,t)}},[]),Ae=(0,C.useCallback)(()=>{let e=Te.current;if(!e)return V.current;let t=e.style.height;if(t===``)return e.getBoundingClientRect().height;e.style.height=``;let n=e.getBoundingClientRect().height;return e.style.height=t,n},[]),G=(0,C.useCallback)(()=>{if(!P.current||B.current!=null||E.current!=null)return;let e=Ae();if(e<=0)return;let{offsets:t,peekOffset:n}=W(e),r=Math.min(y.current,t.length-1),i=t[r],a=i===n?0:i,o=_.current;if(e===V.current&&Math.abs(i-N.current)<=.5&&Math.abs(a-o)<=.5)return;V.current=e,g(e),y.current=r,M(o,i,a,i,o,be(U.current),!1),O(a),u(i),fe.current?.(H(e,i,D.current));let s=t[t.length-1],c=H(e,s,D.current);z.current?.(A(i,t,s+c*L,n))},[Ae,M,O,W]);(0,C.useEffect)(()=>{if(e&&typeof window<`u`)return window.addEventListener(`resize`,G),window.addEventListener(`orientationchange`,G),()=>{window.removeEventListener(`resize`,G),window.removeEventListener(`orientationchange`,G)}},[e,G]);let je=(0,C.useRef)(!1);(0,C.useLayoutEffect)(()=>{je.current?G():je.current=!0},[G,i]);let Me=(0,C.useCallback)((e,t)=>{let n=Te.current;if(n==null)return;let r=e-t;n.style.transform=r===0?``:`translateY(${r}px)`},[]),K=(0,C.useCallback)(e=>{let t=B.current;if(t==null)return;B.current=null,e?.hasPointerCapture?.(t.pointerId)&&e.releasePointerCapture(t.pointerId),c(t.baseOffset),f(!1),m(!1),M(t.baseLayoutOffset,t.baseOffset,t.baseLayoutOffset,t.renderedOffset,t.layoutOffset,t.naturalEndGap,!0);let{offsets:n,peekOffset:r}=W(t.height),i=n[n.length-1],a=i+H(t.height,i,D.current)*L;z.current?.(A(t.baseOffset,n,a,r))},[M,W]);(0,C.useEffect)(()=>{let e=()=>K(),t=()=>{document.visibilityState===`hidden`&&K()};return window.addEventListener(`blur`,e),document.addEventListener(`visibilitychange`,t),()=>{window.removeEventListener(`blur`,e),document.removeEventListener(`visibilitychange`,t)}},[K]);let Ne=(0,C.useCallback)((e,t,n,r,i,a,o,s,c,l)=>{let{offsets:d,peekOffset:f}=W(n),p=d[d.length-1],m=p+H(n,p,D.current)*L,h=i>ue?e+t*le:e,g=e=>{let t=e===f?0:e;M(o,e,t,s,c,l,!0),O(t),y.current=Math.max(0,d.indexOf(e)),u(e),fe.current?.(H(n,e,D.current)),z.current?.(A(e,d,m,f)),e!==a&&ge()};r>0&&h>m?ce.current?(M(o,a,o,o,o,l,!1),I.current()):g(p):g(oe(Math.min(Math.max(h,0),p),d,r,a))},[M,O,W]),q=(0,C.useCallback)((e,t,n)=>{let r=e.currentTarget,i=R(e);i||r.setPointerCapture?.(e.pointerId);let a=n??e.clientY,o=be(U.current),s=_.current;B.current={syntheticTouch:i,pointerId:e.pointerId,startCoord:a,lastCoord:e.clientY,lastTime:e.timeStamp,samples:[{t:e.timeStamp,y:e.clientY}],velocity:0,height:t,baseOffset:l,baseLayoutOffset:s,renderedOffset:l,layoutOffset:s,naturalEndGap:o,hasTraveled:!1},j(ve(s,s,o)),c(l),f(!0)},[l,j]),Pe=(0,C.useCallback)(e=>{e.button===0&&e.isPrimary&&(e.preventDefault(),q(e,ke()))},[q,ke]),Fe=(0,C.useCallback)(e=>{B.current!=null&&(e.preventDefault(),K(e.currentTarget))},[K]),J=(0,C.useCallback)(e=>{B.current?.syntheticTouch||B.current?.pointerId===e.pointerId&&K()},[K]),Y=(0,C.useCallback)(e=>{let t=B.current;if(!t||t.pointerId!==e.pointerId||t.syntheticTouch&&!R(e))return;let n=e.clientY-t.startCoord;if(e.timeStamp-t.lastTime>0){for(t.lastCoord=e.clientY,t.lastTime=e.timeStamp,t.samples.push({t:e.timeStamp,y:e.clientY});t.samples.length>2&&e.timeStamp-t.samples[0].t>de;)t.samples.shift();let n=t.samples[0],r=Math.min(e.timeStamp-n.t,de);t.velocity=r>0?(e.clientY-n.y)/r:0}let{offsets:r,peekOffset:i}=W(t.height),a=t.baseOffset+n,o=r[r.length-1],s;s=a<0?Math.max(-48,a*pe):a>o?a:_e(a,r);let l=s<t.baseOffset?0:t.baseLayoutOffset,u=l!==t.layoutOffset;t.renderedOffset=s,t.layoutOffset=l,N.current=s,Me(s,l),u&&c(s),!t.hasTraveled&&s!==t.baseOffset&&(t.hasTraveled=!0,m(!0)),j(ve(t.baseLayoutOffset,l,t.naturalEndGap));let d=r[r.length-1],f=d+H(t.height,d,D.current)*L;z.current?.(A(s,r,f,i))},[W,j,Me]),Ie=(0,C.useCallback)(e=>{let t=B.current;if(!t||t.pointerId!==e.pointerId||t.syntheticTouch&&!R(e))return;let n=e.currentTarget,r=e.clientY-t.startCoord,i=Math.max(0,t.baseOffset+r),a=r===0?0:r>0?1:-1,o=e.timeStamp-t.lastTime<de?t.velocity:0;B.current=null,t.syntheticTouch||n.releasePointerCapture?.(e.pointerId),f(!1),m(!1),Ne(i,o,t.height||1,a,Math.abs(r),t.baseOffset,t.baseLayoutOffset,t.renderedOffset,t.layoutOffset,t.naturalEndGap)},[Ne]),X=(0,C.useRef)(null),Le=(0,C.useCallback)(e=>{if(e.button!==0||!e.isPrimary)return;let t=xe(e.target,e.currentTarget);Se(t)?X.current={pointerId:e.pointerId,startCoord:e.clientY,scrollers:t}:X.current=null},[]),Z=(0,C.useCallback)(e=>{if(B.current){Y(e);return}let t=X.current;if(!t||t.pointerId!==e.pointerId)return;let n=e.clientY-t.startCoord;n>he&&Se(t.scrollers)?(X.current=null,q(e,ke(),t.startCoord),Y(e)):n<0&&(X.current=null)},[q,Y,ke]),Re=(0,C.useCallback)(e=>{X.current=null,!B.current?.syntheticTouch&&B.current&&Ie(e)},[Ie]),Q=(0,C.useRef)(null),ze=(0,C.useRef)(null),$=(0,C.useCallback)(e=>{Q.current=null,X.current=null,K(e)},[K]),Be=(0,C.useRef)(q),Ve=(0,C.useRef)(K),He=(0,C.useRef)($),Ue=(0,C.useRef)(Y),We=(0,C.useRef)(Ie),Ge=(0,C.useRef)(ke);(0,C.useEffect)(()=>{Be.current=q,Ve.current=K,He.current=$,Ue.current=Y,We.current=Ie,Ge.current=ke});let Ke=(0,C.useCallback)(e=>{let t=(e,t)=>({syntheticTouch:!0,pointerId:e.identifier,clientY:e.clientY,timeStamp:Date.now(),currentTarget:t,setPointerCapture:()=>{},releasePointerCapture:()=>{}}),n=e=>{let t=e.currentTarget;if(e.touches.length>1){He.current(t);return}let n=e.changedTouches[0];if(!n){Q.current=null;return}let r=xe(e.target,t),i=Se(r),a=Ce(r)&&N.current>0;Q.current={id:n.identifier,startY:n.clientY,scrollers:r,top:i,bottom:a,contentEndY:null,promotedAtContentEnd:!1}},r=e=>{let n=e.currentTarget;if(e.touches.length>1){He.current(n);return}let r=Q.current;if(B.current){let i=[...e.changedTouches].find(e=>e.identifier===B.current?.pointerId);if(!i)return;if(r?.promotedAtContentEnd&&r.contentEndY!=null){if(i.clientY>=r.contentEndY){r.contentEndY=null,r.promotedAtContentEnd=!1,Ve.current(n);return}Ue.current(t(i,n));return}e.preventDefault(),Ue.current(t(i,n));return}if(!r)return;let i=[...e.changedTouches].find(e=>e.identifier===r.id);if(!i)return;let a=i.clientY-r.startY,o=r.top&&a>he&&Se(r.scrollers),s=r.bottom&&a<-8&&Ce(r.scrollers);o||s?(e.preventDefault(),Q.current=null,Be.current(t(i,n),Ge.current(),r.startY),Ue.current(t(i,n))):((r.top&&a<0||r.bottom&&a>0)&&(r.top=!1,r.bottom=!1),N.current>0&&Ce(r.scrollers)?r.contentEndY==null?r.contentEndY=i.clientY:r.contentEndY-i.clientY>=me&&(r.promotedAtContentEnd=!0,Be.current(t(i,n),Ge.current(),r.contentEndY),Ue.current(t(i,n))):r.contentEndY=null)},i=e=>{Q.current=null;let n=B.current?.pointerId;if(n==null)return;let r=[...e.changedTouches].find(e=>e.identifier===n),i=e.currentTarget;r?We.current(t(r,i)):e.touches.length===0&&Ve.current(i)},a=U.current;if(a&&ze.current){let e=ze.current;a.removeEventListener(`touchstart`,e.start),a.removeEventListener(`touchmove`,e.move),a.removeEventListener(`touchend`,e.end),a.removeEventListener(`touchcancel`,e.end)}U.current=e,e?(e.addEventListener(`touchstart`,n,{passive:!0}),e.addEventListener(`touchmove`,r,{passive:!1}),e.addEventListener(`touchend`,i,{passive:!0}),e.addEventListener(`touchcancel`,i,{passive:!0}),ze.current={start:n,move:r,end:i}):ze.current=null},[]),qe=v(`(prefers-reduced-motion: reduce)`),Je=(0,C.useCallback)(e=>{if(T.current<=0)return;let t=ye(e),n=Math.max(0,e.scrollHeight-e.clientHeight-t),r=Math.max(0,e.scrollTop-n);r<T.current-.5&&j(r)},[j]),Ye=(0,C.useCallback)(e=>{B.current==null&&E.current==null&&Je(e.currentTarget)},[Je]),Xe=(0,C.useCallback)(e=>{e.isPrimary?Pe(e):$(e.currentTarget)},[Pe,$]),Ze=(0,C.useCallback)(e=>{e.isPrimary?Le(e):$(e.currentTarget)},[Le,$]),Qe=(0,C.useCallback)(e=>{e.touches.length>1&&$(e.currentTarget)},[$]),$e=(0,C.useCallback)(e=>{let t=B.current;t?.pointerId!==e.pointerId||t.syntheticTouch||K(e.currentTarget)},[K]),et=d?s:l;return{sheetRef:Oe,contentProps:(0,C.useMemo)(()=>({style:{transform:et===0?void 0:`translateY(${et}px)`,transition:e&&(d||S||qe)?`none`:void 0,touchAction:`pinch-zoom`,overscrollBehavior:`contain`}}),[et,d,e,S,qe]),handleProps:(0,C.useMemo)(()=>({style:{touchAction:`pinch-zoom`,cursor:`grab`},onContextMenu:Fe,onLostPointerCapture:J,onPointerDown:Xe,onPointerMove:Y,onPointerUp:Ie,onPointerCancel:$e,onTouchStart:Qe,onTouchMove:Qe}),[Ie,Fe,$e,Xe,Qe,J,Y]),bodyProps:(0,C.useMemo)(()=>({ref:Ke,onContextMenu:Fe,onLostPointerCapture:J,onPointerDown:Ze,onPointerMove:Z,onPointerUp:Re,onPointerCancel:Re,onScroll:Ye}),[Ke,Re,Ze,Z,Ye,Fe,J]),bodyElementRef:U,dragOffset:s,settledOffset:l,isDragging:d,isTraveling:p,activeOffsetRef:N,sheetHeight:h,scrollPreservationInset:ee,settlingLayoutOffset:b,settledLayoutOffset:ne,completeScrollAreaSettle:se}}var U=n(),Ee={hug:`92dvh`,capped:`62dvh`,tall:`92dvh`},De=48,Oe=48,ke=50;o[`--spacing-6`];function W(){return typeof window>`u`?0:window.innerHeight}function Ae(e){let t=``;for(let n of e??[])t+=`${typeof n}:${n}|`;return t}var G={sheet:{kfzvcC:`x67bb7w`,kB7OPa:`x9f619`,kVAEAm:`x1n2onr6`,k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kAzted:`x2lwn1j`,kzqmXN:`xh8yej3`,ks0D6T:`x11gisft`,kWkggS:`x10xzikg`,kEafiO:`x11xkdxz`,kPef9Z:`x13fuv20`,kLZC3w:`x1pc3f07`,k2ei4v:`xgbv0en`,kVhnKS:`x1t7ytsu`,kGJrpR:`x1j92z86`,ke9TFa:`xw8tdv1`,k8ry5P:`x18b5jzi`,kBCPoo:`x1gejf6u`,krdFHd:`x81l70g`,kfmiAY:`x7hs6f1`,kGVxlE:`x1kcpxr7`,kI3sdo:`x1a2a7pz`,kVQacm:`xb3r6kr`,kGO01o:`x1wkw6tp`,k1K539:`x1if0o47`,k3aq6I:`xnn1q72 xhbqy3z`,kSiTet:`x1hc1fzr`,k1ekBW:`xwcsmn1`,kIyJzY:`x80gvsz`,kAMwcw:`xlr8y92`,k6sLGO:`x1q1rmc8`,k6CgDc:`xzg1mie`,$$css:!0},sheetClosing:{k3aq6I:`x1weeur4`,kAMwcw:`xv2sgk5`,$$css:!0},sheetFading:{kSiTet:`xg01cxk`,$$css:!0},sheetInactive:{kfzvcC:`x47corl`,$$css:!0},body:{kzQI83:`x1iyjqo2`,kAzted:`x2lwn1j`,kB7OPa:`x9f619`,kFalU9:`xge0x1e`,kInvED:`x1wfwxd8 x1nw7mhf`,kWkggS:`x10xzikg`,kGO01o:`x18d9i69`,$$css:!0},content:{k1xSpc:`xufnvkl`,kB7OPa:`x9f619`,kZKoxP:`x5yr21d`,kAzted:`x121v3j4`,$$css:!0},tallKeyboardBody:{kFlMNQ:`xrw9175`,k5JduY:`x1s928wv`,kc3QkE:`xhkezso`,k4zj60:`xu6fald`,kloYau:`x2q1x1w`,$$css:!0},budget:{kZKoxP:`x1tpcejd`,$$css:!0},hugHeight:{kZKoxP:`xg7h5cd`,kskxy:`x14bu9tk`,$$css:!0}};function je(e){return e.kind===`open`?e.entering?`entering`:null:e.kind===`retained`?e.motion===`covered`?null:e.motion:e.kind===`exiting`?`exiting`:null}function Me(e,t,n){if(e==null)return n(),()=>{};let r=!1,i=null,a=()=>{r||(r=!0,i!=null&&clearTimeout(i),e.removeEventListener(`transitionend`,o),e.removeEventListener(`transitioncancel`,o),n())},o=n=>{n.target===e&&n.propertyName===t&&a()};e.addEventListener(`transitionend`,o),e.addEventListener(`transitioncancel`,o);let s=getComputedStyle(e);if(e.style.transition.trim()===`none`||s.transition.trim()===`none`)return a(),()=>{};let c=s.transitionProperty.split(`,`).map(e=>e.trim()),l=s.transitionDuration.split(`,`).map(K),u=s.transitionDelay.split(`,`).map(K),d=!1,f=c.reduce((e,n,r)=>{if(n!==t&&n!==`all`)return e;let i=l[r%l.length],a=u[r%u.length];return i==null||a==null?(d=!0,e):Math.max(e,i+a)},0);return d?()=>{e.removeEventListener(`transitionend`,o),e.removeEventListener(`transitioncancel`,o)}:f<=0?(a(),()=>{}):(i=setTimeout(a,f+ke),()=>{i!=null&&clearTimeout(i),e.removeEventListener(`transitionend`,o),e.removeEventListener(`transitioncancel`,o)})}function K(e){let t=e.trim();if(!/^-?(?:\d+|\d*\.\d+)(?:ms|s)$/.test(t))return null;let n=Number.parseFloat(e);return t.endsWith(`ms`)?n:n*1e3}function Ne({ref:e,state:t,height:n,label:a,children:o,padding:g,snapPoints:te,className:ne,style:re,tabIndex:v,xstyle:y,isSwipeDismissAllowed:w=!0,isPageScrollLocked:T=!1,onDismiss:ae,onScrimOpacity:D,onElementChange:O,onMotionStart:k,onMotionComplete:A,...oe}){let j=(0,C.useRef)(null),se=(0,C.useRef)(t),M=(0,C.useRef)(!1),N=(0,C.useRef)(k),P=(0,C.useRef)(A),F=(0,C.useRef)(null),I=(0,C.useRef)(null),le=t.kind===`open`&&t.entering,ue=se.current,de=ue.kind===`open`&&ue.entering;le&&!de?M.current=ue.kind===`retained`:le||(M.current=!1),(0,C.useLayoutEffect)(()=>{se.current=t,N.current=k,P.current=A},[A,k,t]);let L=t.kind===`open`,fe=t.kind!==`hidden`,R=t.kind===`retained`,pe=R||t.kind===`exiting`,me=t.kind===`exiting`,he=R&&t.motion===`fading`,ge=R?t.alignmentOffset:0,_e=Ae(te),ve=(0,C.useRef)(te);ve.current=te;let{snapHeights:ye,ignoredSnapPointsMessage:be}=(0,C.useMemo)(()=>{if(_e===``)return{snapHeights:void 0,ignoredSnapPointsMessage:``};let e=(ve.current??[]).filter(e=>!E(e));return{snapHeights:()=>ie(ve.current??[],W()),ignoredSnapPointsMessage:e.length===0?``:`snapPoints ignored ${JSON.stringify(e)}. A snap point is a viewport fraction above 0 and up to 1 (0.5 is half the screen), a px length ('320px'), or a percentage ('50%').`}},[_e]);b(`BottomSheet`,be,be!==``);let{contentProps:z,handleProps:xe,bodyProps:B,bodyElementRef:V,sheetRef:Se,dragOffset:Ce,settledOffset:H,isDragging:we,isTraveling:ke,sheetHeight:K,scrollPreservationInset:Ne,settlingLayoutOffset:q,settledLayoutOffset:Pe,completeScrollAreaSettle:Fe}=Te({isOpen:L,canDismiss:w,offscreenBlockEndInset:De,onDismiss:ae,snapHeights:ye,onScrimOpacity:D}),{getViewportProps:J,getContentProps:Y}=x({axis:`both`,keyboardAccess:{owner:`contentOrViewport`,label:a},overscroll:`contain`,stickyContainment:`always`}),Ie=(0,C.useCallback)(e=>{Se(e),j.current=e,O?.(e)},[O,Se]);ce({bodyRef:V,bottomClearance:Oe,isEnabled:n===`tall`,isFullyExpanded:H===0,isPageScrollLocked:T,isSheetTraveling:ke,isOpen:L,isPresented:fe,sheetRef:j}),(0,C.useImperativeHandle)(e,()=>j.current,[]);let X=je(t);(0,C.useLayoutEffect)(()=>{if(X!=null){if(F.current=null,I.current=null,X===`entering`&&M.current)I.current=X;else return Me(j.current,X===`fading`?`opacity`:`transform`,()=>{F.current===X?P.current?.(X):I.current=X})}},[X]),(0,C.useLayoutEffect)(()=>{if(q!=null)return Me(j.current,`transform`,Fe)},[Fe,q]),(0,C.useEffect)(()=>{if(X!=null)return N.current?.(X),F.current=X,I.current===X&&(I.current=null,P.current?.(X)),()=>{F.current===X&&(F.current=null),I.current===X&&(I.current=null)}},[X]);let Le=g==null,Z=g??4,Re=s[Z],Q=typeof n==`string`&&n in Ee?Ee[n]:typeof n==`number`?`${n}px`:n,ze=K>0,$=z.style.transform,Be;if(ze){let e=we?Ce<H?0:Pe:q??Pe,t=(we?Ce:H)-e;Be=e>0||we||q!=null?`${Math.max(0,K-Math.max(0,e))}px`:void 0,$=t===0?void 0:`translateY(${t}px)`}let Ve=ge>0?[$,`translateY(${ge}px)`].filter(Boolean).join(` `):$,He=L?$:R?Ve:void 0,Ue=re?.transform;(0,C.useLayoutEffect)(()=>{if(we||Ue!=null)return;let e=j.current;e!=null&&(e.style.transform=He??``)});let We={transition:z.style.transition,touchAction:z.style.touchAction,overscrollBehavior:z.style.overscrollBehavior,height:Be};return(0,U.jsxs)(`div`,{...oe,ref:Ie,tabIndex:v??-1,...m(i(`bottom-sheet`),r(h.reset,ee.reset,G.sheet,l.reset,n===`hug`?G.hugHeight:G.budget,me&&G.sheetClosing,he&&G.sheetFading,pe&&G.sheetInactive,y),ne,{"--_sheet-budget":Q,...L?We:R||me?{height:Be}:{},...re}),children:[(0,U.jsx)(`div`,{className:`x10l6tqk x13vifvy x1o0tod xtijo5x x1vjfegm x78zum5 x6s0dn4 xl56j7k xvpftlf xafqdz2 x1j4r261 x1jm3nie x16khyan`,...xe,"aria-hidden":`true`,children:(0,U.jsx)(`div`,{className:`x1m747yf x11c6zpc xjspbzw x1m4xfpy`})}),(0,U.jsx)(`div`,{...J({...B,...m(r(_.focusVisible,G.body,n===`tall`&&G.tallKeyboardBody),Ne>0?{style:{paddingBlockEnd:`${Ne}px`}}:{})}),children:(0,U.jsx)(`div`,{...Y(r(G.content,...S(Le?{useThemeDefault:`bottom-sheet`}:{paddingInnerX:Re,paddingInnerY:Re,paddingOuterX:Re,paddingOuterY:Re}),!Le&&Z!==4&&u[Z],!Le&&Z!==4&&c[Z],!Le&&Z!==4&&d[Z],!Le&&Z!==4&&f[Z])),children:(0,U.jsx)(p,{children:o})})})]})}Ne.displayName=`BottomSheetPanel`;function q(){return(0,U.jsx)(`div`,{className:`xixxii4 x17y0mx6 x1ey2m1c x1kpxq89 x10xzikg xhtitgo x47corl x1cb67k9 xt2iwb0`,"data-sheet-edge-tint":``,"aria-hidden":`true`})}var Pe=(0,C.createContext)(null);Pe.displayName=`BottomSheetSwitcherContext`;var Fe=e({BottomSheet:()=>Q}),J={dialog:{kVAEAm:`xixxii4`,kpwlN0:`x10a8y8t`,kzqmXN:`x1o6l61p`,kZKoxP:`xtdtrs8`,ks0D6T:`x1x1rfll`,kskxy:`x7ab17h`,kogj98:`x1ghz6dp`,kmVPX3:`x1717udv`,kMzoRj:`xc342km`,ksu8eU:`xng3xce`,kWkggS:`xjbqb8w`,kVQacm:`x1rea2x4`,k1xSpc:`x1s85apg`,kI3sdo:`x1a2a7pz`,$$css:!0},dialogOpen:{k1xSpc:`x1lliihq`,$$css:!0},scrim:{kGyWv1:`xnixb3f`,k5sjJv:`xni466t xxiuuzi`,kND0Po:`xc0dz0a`,k9an0g:`x10buo38`,kb4ib:`x15h3t91`,kwHxkk:`x142juwg`,k4oj2o:`x15l12jy`,$$css:!0},dialogNonModalItem:{kfzvcC:`x47corl`,kzqmXN:`xh8yej3`,kZKoxP:`x5yr21d`,$$css:!0},dialogNonModalItemTop:{kY2c9j:`x1vjfegm`,$$css:!0},scrimClosing:{kb4ib:`x1cz9k3x`,$$css:!0}};function Y(e,t){switch(e){case`active`:return{kind:`open`,entering:!1};case`entering`:return{kind:`open`,entering:!0};case`covered`:case`aligning`:case`fading`:return{kind:`retained`,motion:e,alignmentOffset:t};case`exiting`:return{kind:`exiting`};case`hidden`:return{kind:`hidden`}}}function Ie(e,t){let n=document.activeElement;if(n!=null&&e?.contains(n))return;let r=e?.querySelector(`[data-autofocus]`);r==null?t&&e?.focus({preventScroll:!0}):r.focus({preventScroll:!0})}function X(e){let t=e.ownerDocument.activeElement;t instanceof HTMLElement&&t!==e.ownerDocument.body&&t.blur(),e.showModal()}function Le(e){e.style.setProperty(`--_sheet-scrim-duration`,`0s`),e.style.setProperty(`--_sheet-scrim-opacity`,`0`),X(e),typeof getComputedStyle==`function`&&getComputedStyle(e,`::backdrop`).opacity,e.style.removeProperty(`--_sheet-scrim-duration`)}function Z({ref:e,isOpen:t,onOpenChange:n,label:r,children:i,height:a=`capped`,snapPoints:o,hasScrim:s=!0,finalFocusRef:c,purpose:l=`info`,xstyle:u,...d}){let f=(0,C.useRef)(null),p=(0,C.useRef)(null),m=(0,C.useRef)(null),[h,ee]=(0,C.useState)(t),_=t||h,v=t?{kind:`open`,entering:!1}:h?{kind:`exiting`}:{kind:`hidden`},x=(0,C.useCallback)(()=>{t&&l!==`required`&&n(!1)},[t,n,l]),S=(0,C.useCallback)(()=>{l===`info`&&n(!1)},[n,l]),w=(0,C.useCallback)(e=>{p.current=e},[]),T=(0,C.useCallback)(e=>{f.current?.style.setProperty(`--_sheet-scrim-opacity`,String(e))},[]);(0,C.useEffect)(()=>{let e=f.current;e!=null&&t&&(ee(!0),e.style.setProperty(`--_sheet-scrim-opacity`,`1`),e.open||(s?(m.current=document.activeElement,e.showModal()):e.show(),Ie(p.current,s)))},[s,t]),(0,C.useEffect)(()=>{!t&&h&&s&&T(0)},[T,s,t,h]);let E=(0,C.useCallback)(e=>{if(e!==`exiting`||t)return;let n=f.current;n?.open&&n.close(),ee(!1);let r=c?.current??m.current;r!=null&&re(r),m.current=null},[c,t]);g(),y(_&&s),b(`BottomSheet`,"requires a non-empty `label` for an accessible name; the open sheet has no built-in heading to derive one from.",t&&!r);let{shouldDismissOnCloseRequest:ie}=ne({isActive:_,escapeBehavior:t&&l!==`required`?`close`:`block`,onDismiss:x,getContainer:()=>f.current,isPresent:()=>f.current?.open??!1}),ae=(0,C.useCallback)(e=>{e.target===e.currentTarget&&(e.preventDefault(),ie()&&x())},[x,ie]),D=(0,C.useCallback)(e=>{s&&e.target===e.currentTarget&&S()},[S,s]);return(0,U.jsxs)(`dialog`,{...{0:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1s85apg x1a2a7pz`},8:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1a2a7pz x1lliihq`},4:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1s85apg x1a2a7pz xnixb3f xni466t xxiuuzi xc0dz0a x10buo38 x15h3t91 x142juwg x15l12jy`},12:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1a2a7pz x1lliihq xnixb3f xni466t xxiuuzi xc0dz0a x10buo38 x15h3t91 x142juwg x15l12jy`},2:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1s85apg x1a2a7pz x1cz9k3x`},10:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1a2a7pz x1lliihq x1cz9k3x`},6:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1s85apg x1a2a7pz xnixb3f xni466t xxiuuzi xc0dz0a x10buo38 x142juwg x15l12jy x1cz9k3x`},14:{className:`xixxii4 x10a8y8t x1o6l61p xtdtrs8 x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1a2a7pz x1lliihq xnixb3f xni466t xxiuuzi xc0dz0a x10buo38 x142juwg x15l12jy x1cz9k3x`},1:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1s85apg x1a2a7pz x47corl xfo81ep xh8yej3 x5yr21d`},9:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1a2a7pz x1lliihq x47corl xfo81ep xh8yej3 x5yr21d`},5:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1s85apg x1a2a7pz xnixb3f xni466t xxiuuzi xc0dz0a x10buo38 x15h3t91 x142juwg x15l12jy x47corl xfo81ep xh8yej3 x5yr21d`},13:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1a2a7pz x1lliihq xnixb3f xni466t xxiuuzi xc0dz0a x10buo38 x15h3t91 x142juwg x15l12jy x47corl xfo81ep xh8yej3 x5yr21d`},3:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1s85apg x1a2a7pz x1cz9k3x x47corl xfo81ep xh8yej3 x5yr21d`},11:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1a2a7pz x1lliihq x1cz9k3x x47corl xfo81ep xh8yej3 x5yr21d`},7:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1s85apg x1a2a7pz xnixb3f xni466t xxiuuzi xc0dz0a x10buo38 x142juwg x15l12jy x1cz9k3x x47corl xfo81ep xh8yej3 x5yr21d`},15:{className:`xixxii4 x10a8y8t x1x1rfll x7ab17h x1ghz6dp x1717udv xc342km xng3xce xjbqb8w x1rea2x4 x1a2a7pz x1lliihq xnixb3f xni466t xxiuuzi xc0dz0a x10buo38 x142juwg x15l12jy x1cz9k3x x47corl xfo81ep xh8yej3 x5yr21d`}}[!!_<<3|!!s<<2|!!(s&&!t&&h)<<1|!s],ref:f,"aria-label":r,"aria-hidden":!t&&h?`true`:void 0,"aria-modal":s&&t?`true`:void 0,role:l===`required`?`alertdialog`:void 0,inert:!t&&h?!0:void 0,onCancel:ae,onClick:D,children:[(0,U.jsx)(`div`,{className:`x10l6tqk x17y0mx6 x1ey2m1c x78zum5 xl56j7k x47corl`,children:(0,U.jsx)(Ne,{...d,ref:e,state:v,height:a,label:r,snapPoints:o,isSwipeDismissAllowed:l===`info`,isPageScrollLocked:_&&s,xstyle:u,onDismiss:S,onScrimOpacity:T,onElementChange:w,onMotionComplete:E,children:(0,U.jsx)(te,{children:i})})}),(0,U.jsx)(q,{})]})}function Re({switcher:e,ref:t,sheetId:n,label:i,children:a,height:o=`capped`,snapPoints:s,purpose:c=`info`,xstyle:l,...u}){let{activeSheet:d,hasScrim:f,onActiveSheetChange:p,getSheetPhase:h,getSheetAlignmentOffset:g,hostSheet:ee,isScrimOwner:ne,isFlowClosing:re,registerSheetElement:_,registerSheetDialog:v,registerSheetPurpose:y,onBeforeSheetPresent:x,isCoveredInTopLayer:S,onSheetEnterStart:w,onSheetTransitionComplete:T,onSheetScrimOpacityChange:E,dialogProps:ie,onDialogCancel:ae,onDialogClick:D,onDialogKeyDown:O}=e,k=typeof n==`string`&&n.length>0,A=k?h(n):`hidden`,oe=Y(A,k?g(n):0),j=A===`active`||A===`entering`,se=A===`covered`||A===`aligning`||A===`fading`||A===`exiting`,M=A!==`hidden`,N=A===`active`||A===`entering`,P=k&&ne(n),F=k&&ee===n,I=(0,C.useRef)(null),ce=(0,C.useRef)(null),le=(0,C.useRef)(null),ue=(0,C.useRef)(A),de=ue.current,L=(0,C.useRef)(!1);(0,C.useLayoutEffect)(()=>{ue.current=A},[A]);let fe=(0,C.useCallback)(()=>{c===`info`&&k&&d===n&&p(null)},[d,k,p,c,n]),R=(0,C.useCallback)(e=>{le.current=e,k&&_(n,e)},[k,_,n]),pe=(0,C.useCallback)(e=>{I.current=e,k&&v(n,e)},[k,v,n]),me=(0,C.useCallback)(e=>{e===`entering`&&k&&w(n)},[k,w,n]),he=(0,C.useCallback)(e=>{k&&T({sheetId:n,phase:e})},[k,T,n]),ge=(0,C.useCallback)(e=>{k&&E(n,e)},[k,E,n]);(0,C.useLayoutEffect)(()=>{if(k)return y(n,c),()=>y(n,null)},[k,c,y,n]),(0,C.useLayoutEffect)(()=>{let e=I.current;if(e==null||!k)return;if(!M){e.open&&e.close(),ce.current=null;return}let t=f?`modal`:`non-modal`;e.open&&ce.current!==t&&e.close(),e.open&&f&&j&&S(n)&&e.close(),e.open||(f?(x(n),P?X(e):Le(e)):e.show()),ce.current=t},[f,k,S,j,M,x,P,n]),(0,C.useLayoutEffect)(()=>()=>{let e=I.current;e?.open&&e.close()},[]),(0,C.useEffect)(()=>{if(j){let e=de===`active`||de===`entering`;(!L.current||!e)&&Ie(le.current,f),L.current=!0}else A===`hidden`&&(L.current=!1)},[f,j,A,de]),b(`BottomSheet`,"requires a non-empty `label` for an accessible name; the open sheet has no built-in heading to derive one from.",j&&!i);let{className:_e,style:ve,xstyle:ye,"aria-label":be,"aria-labelledby":z,id:xe,"data-testid":B,...V}=ie,Se=m(r(J.dialog,M&&J.dialogOpen,f&&J.scrim,f&&P&&re&&J.scrimClosing,!f&&J.dialogNonModalItem,!f&&N&&J.dialogNonModalItemTop,ye),_e,ve);return(0,U.jsxs)(`dialog`,{...V,...Se,id:F?xe:void 0,"data-testid":F?B:void 0,ref:pe,"aria-label":be??(z==null?i:void 0),"aria-labelledby":z,"aria-modal":f&&j?`true`:void 0,"aria-hidden":se?`true`:void 0,inert:se?!0:void 0,role:c===`required`?`alertdialog`:V.role,onCancel:ae,onClick:D,onKeyDown:O,children:[(0,U.jsx)(`div`,{...{0:{className:`x10l6tqk x17y0mx6 x1ey2m1c x78zum5 xl56j7k x47corl`},2:{className:`x10l6tqk x17y0mx6 x1ey2m1c xl56j7k x47corl x1s85apg`},1:{className:`x10l6tqk x17y0mx6 x1ey2m1c x78zum5 xl56j7k x47corl x1vjfegm`},3:{className:`x10l6tqk x17y0mx6 x1ey2m1c xl56j7k x47corl x1s85apg x1vjfegm`}}[!M<<1|!!N],hidden:!M,"aria-hidden":se?`true`:void 0,inert:se?!0:void 0,children:(0,U.jsx)(Ne,{...u,ref:t,state:oe,height:o,label:i,snapPoints:s,isSwipeDismissAllowed:c===`info`,isPageScrollLocked:f,xstyle:l,onDismiss:fe,onScrimOpacity:ge,onElementChange:R,onMotionStart:me,onMotionComplete:he,children:(0,U.jsx)(Pe,{value:null,children:(0,U.jsx)(te,{children:a})})})}),M&&(0,U.jsx)(q,{})]})}function Q(e){let t=(0,C.use)(Pe),n=e.sheetId,r=typeof n==`string`&&n.length>0;return b(`BottomSheet`,"requires a non-empty `sheetId` when nested in BottomSheetSwitcher; standalone `isOpen` / `onOpenChange` props are ignored there.",t!=null&&!r),b(`BottomSheet`,"`sheetId` only works inside BottomSheetSwitcher. Use `isOpen` and `onOpenChange` for a standalone sheet.",t==null&&n!=null),t==null?(0,U.jsx)(Z,{...e}):(0,U.jsx)(Re,{...e,switcher:t})}Q.displayName=`BottomSheet`;export{Fe as n,Q as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as e,l as t,n}from"./themeProps-3IqahpCr.js";import{f as r,l as i,p as a,u as o}from"./padding.stylex-B76907Zf.js";import{t as s}from"./mergeProps-ptS-gIMz.js";import{t as c}from"./createReactComponent-CZwsv6DD.js";var l=c(`outline`,`external-link`,`ExternalLink`,[[`path`,{d:`M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6`,key:`svg-0`}],[`path`,{d:`M11 13l9 -9`,key:`svg-1`}],[`path`,{d:`M15 4h5v5`,key:`svg-2`}]]),u=c(`outline`,`microphone`,`Microphone`,[[`path`,{d:`M9 5a3 3 0 0 1 3 -3a3 3 0 0 1 3 3v5a3 3 0 0 1 -3 3a3 3 0 0 1 -3 -3l0 -5`,key:`svg-0`}],[`path`,{d:`M5 10a7 7 0 0 0 14 0`,key:`svg-1`}],[`path`,{d:`M8 21l8 0`,key:`svg-2`}],[`path`,{d:`M12 17l0 4`,key:`svg-3`}]]),d=e(),f={base:{k1xSpc:`x78zum5`,$$css:!0},inline:{k1xSpc:`x3nfvp2`,$$css:!0},alignItemsCenter:{kGNEyG:`x6s0dn4`,$$css:!0},justifyContentCenter:{kjj79g:`xl56j7k`,$$css:!0}},p={sizing:(e,t,n,r)=>[{kzqmXN:e==null?e:`x5lhr3w`,kZKoxP:t==null?t:`x16ye13r`,ks0D6T:n==null?n:`xf68679`,kAzted:r==null?r:`x82snj4`,$$css:!0},{"--x-width":(e=>typeof e==`number`?e+`px`:e??void 0)(e),"--x-height":(e=>typeof e==`number`?e+`px`:e??void 0)(t),"--x-maxWidth":(e=>typeof e==`number`?e+`px`:e??void 0)(n),"--x-minHeight":(e=>typeof e==`number`?e+`px`:e??void 0)(r)}]};function m({axis:e=`both`,width:c,height:l,maxWidth:u,minHeight:m,padding:h,paddingInline:g,paddingInlineStart:_,paddingInlineEnd:v,paddingBlock:y,paddingBlockStart:b,paddingBlockEnd:x,isInline:S=!1,children:C,xstyle:w,className:T,style:E,ref:D,...O}){let k=_??g??h,A=v??g??h,j=b??y??h,M=x??y??h,N=s(n(`center`,{axis:e}),t(S?f.inline:f.base,(e===`both`||e===`vertical`)&&f.alignItemsCenter,(e===`both`||e===`horizontal`)&&f.justifyContentCenter,p.sizing(c??null,l??null,u??null,m??null),k!=null&&a[k],A!=null&&r[A],j!=null&&o[j],M!=null&&i[M],w),T,E);return(0,d.jsx)(`div`,{ref:D,...O,...N,children:C})}m.displayName=`Center`;export{u as n,l as r,m as t};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Tooltip-DrSpWxD8.js","assets/rolldown-runtime-hePW80VL.js","assets/themeProps-3IqahpCr.js","assets/useLayerDismissal-BAnTRYTt.js","assets/useTooltip-BaCjTHk-.js","assets/tokens.stylex-BpCwr7Mf.js","assets/padding.stylex-B76907Zf.js","assets/ItemSwipeLayer-BzVkYf4E.js","assets/mergeProps-ptS-gIMz.js","assets/focusOutline.stylex-B9nWSXsG.js","assets/useMediaQuery-BCT0NUeZ.js","assets/isRtlElement-BG33-k_H.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{c as t,l as n,n as r,u as i}from"./themeProps-3IqahpCr.js";import{t as a}from"./mergeProps-ptS-gIMz.js";import{t as o}from"./isRenderable-DHkzpAoQ.js";import{c as s,t as c,u as l,x as u}from"./Icon-BWzSKxTK.js";import{n as d,r as f,t as p}from"./useResolvedRequired-CAelf7J-.js";import{n as m,r as h,t as g}from"./focusOutline.stylex-B9nWSXsG.js";import{n as _,r as ee,t as te}from"./usePressFeedback-CBSbXJuo.js";import{t as ne}from"./useTooltip-BaCjTHk-.js";import{_ as v,a as re,c as y,d as b,f as x,g as S,h as C,i as w,l as ie,m as ae,n as oe,o as se,p as T,r as ce,s as E,u as le}from"./Text-B74VhVA7.js";import{t as D}from"./preload-helper-DpV6A1kQ.js";import{t as O}from"./Spinner--TVdDovX.js";import{l as ue,r as k,t as de}from"./FieldStatus-CSAKvGxp.js";import{t as A}from"./useDevWarning-Z9SoixOP.js";var j=e(i(),1),M=t(),N=(0,j.lazy)(async()=>D(()=>import(`./Tooltip-DrSpWxD8.js`).then(e=>e.n).then(e=>({default:e.Tooltip})),__vite__mapDeps([0,1,2,3,4,5,6])));function P(e){return e===`display-1`||e===`display-2`||e===`display-3`}var F={1:`h1`,2:`h2`,3:`h3`,4:`h4`,5:`h5`,6:`h6`};function I({level:e,type:t,weight:i,accessibilityLevel:o,color:s=`primary`,display:c=`block`,maxLines:l=0,hasTruncateTooltip:u=!0,wordBreak:d,textWrap:f,justify:p=`start`,hasCapsize:m=!1,hasStrikethrough:h=!1,xstyle:g,className:_,style:ee,children:te,ref:ne,...D}){let O=F[e],ue=o&&o!==e?{"aria-level":o}:{},k=d??(l===1?`break-all`:`break-word`),de=l>0||m?`block`:c,A=t&&P(t)?t:void 0,I=w({maxLines:u===!1?0:l}),L=typeof u==`string`?u:`above`,R=l>0&&u!==!1&&I.isTruncated,z=(0,j.useRef)(null),B=ce(ne,I.ref,z),V=l>1?{WebkitLineClamp:l}:void 0;return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(O,{ref:B,...a(r(`heading`,{level:e,color:s,type:t,weight:i}),n(se[oe(s)],A?x[A]:b[e],A&&y[A],i&&S[i],l===1?ae.singleLine:l>1?ae.multiLine:ie[de],l>0&&v[k],f&&T[f],p!==`start`&&le[p],m&&re.enabled,h&&E.strikethrough,g),_,{...ee,...V}),...ue,...D,children:te}),R&&(0,M.jsx)(j.Suspense,{fallback:null,children:(0,M.jsx)(N,{anchorRef:z,content:(0,M.jsx)(`span`,{...n(C.content),children:I.fullText}),placement:L})})]})}I.displayName=`Heading`;var L={horizontal:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kzqmXN:`xh8yej3`,$$css:!0},vertical:{k1xSpc:`x3nfvp2`,kXwgrk:`xdt5ytf`,kGNEyG:`x6s0dn4`,kZKoxP:`x5yr21d`,$$css:!0}},R={horizontalLine:{kZKoxP:`xsyqizj`,kzQI83:`x1iyjqo2`,kmuXW:`xs83m0k`,$$css:!0},verticalLine:{kzqmXN:`xjk4fl7`,kzQI83:`x1iyjqo2`,kmuXW:`xs83m0k`,$$css:!0},subtle:{kWkggS:`x1m4xfpy`,$$css:!0},strong:{kWkggS:`x7njt3n`,$$css:!0}},z={horizontal:{keTefX:`xojxgvx`,k71WvV:`x1fcf3bl`,kzqmXN:`xx6qvi6`,$$css:!0},vertical:{keoZOQ:`x1sa9bsh`,k1K539:`x6h7pi7`,kZKoxP:`x12qplqi`,$$css:!0}};function B({orientation:e=`horizontal`,label:t,variant:i=`subtle`,isFullBleed:s=!1,xstyle:c,className:l,style:u,ref:d,"aria-label":f,"aria-labelledby":p,...m}){let h=e===`horizontal`,g=o(t),_=(0,j.useId)(),ee=p??(g&&f==null?_:void 0);return(0,M.jsxs)(`div`,{ref:d,...m,role:`separator`,"aria-orientation":e,"aria-label":f,"aria-labelledby":ee,...a(r(`divider`,{variant:i,orientation:e}),n(h?L.horizontal:L.vertical,s&&(h?z.horizontal:z.vertical),c),l,u),children:[(0,M.jsx)(`div`,{...n(h?R.horizontalLine:R.verticalLine,R[i])}),g&&(0,M.jsx)(`div`,{id:_,...{0:{className:`x2lah0s xrrkdod x141an7d x1ltkj2j xv1l7n4`},1:{className:`x2lah0s x141an7d x1ltkj2j xv1l7n4 xnjsko4 x8o8v82`}}[!h|0],children:t}),g&&(0,M.jsx)(`div`,{...n(h?R.horizontalLine:R.verticalLine,R[i])})]})}B.displayName=`Divider`;var V=(0,j.createContext)(null);V.displayName=`ItemDescriptionContext`;var H=[`noopener`,`noreferrer`];function U(e,t){if(e!==`_blank`)return{target:e,rel:t};let n=t?.split(/\s+/).filter(Boolean)??[];for(let e of H)n.includes(e)||n.push(e);return{target:e,rel:n.join(` `)}}var fe=(0,j.lazy)(async()=>D(()=>import(`./ItemSwipeLayer-BzVkYf4E.js`),__vite__mapDeps([7,1,2,8,9,5,10,11]))),pe=new Set([`option`,`tab`,`row`,`gridcell`,`columnheader`,`rowheader`,`treeitem`]),W=new Set([`listitem`]),G={root:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kOIVth:`x1txdalj`,"--_item-inset-inline":`xw1s368`,kg3NbH:`xaip428`,kVAEAm:`x1n2onr6`,kB7OPa:`x9f619`,k9WMMc:`x1yc453h`,kaIpWk:`xh6dtrn`,$$css:!0},alignStart:{kGNEyG:`x1cy8zhl`,$$css:!0},alignFirstLine:{kGNEyG:`x1pha0wt`,$$css:!0},interactive:{kkrTdU:`x1ypdohk x16khyan`,k1ekBW:`x15406qy`,kIyJzY:`xkvfbh3`,kAMwcw:`xlr8y92`,$$css:!0},highlighted:{kWkggS:`x1lmrjuc`,$$css:!0},selected:{kWkggS:`xgcxg3y`,$$css:!0},disabled:{kkrTdU:`xt0e3qv`,kfzvcC:`x47corl`,$$css:!0},linkRoot:{kMwMTN:`x1heor9g`,kybGjl:`x1hl2dhg`,$$css:!0},inlineLabel:{kmuXW:`x2lah0s`,$$css:!0},inlineDescription:{kmuXW:`xs83m0k`,k7Eaqz:`xeuugli`,$$css:!0},label:{kMwMTN:`x5tbw38`,kGuDYH:`xjm74w1`,kLWn49:`xw6l6zx`,$$css:!0},labelSingleTruncate:{kVQacm:`xb3r6kr`,kg5iWk:`xlyipyv`,khDVqt:`xuxw1ft`,$$css:!0},labelMultiTruncate:{kVQacm:`xb3r6kr`,k1xSpc:`x104kibb`,kgKLqz:`x1ua5tub`,$$css:!0},description:{kMwMTN:`x1gb3s7i`,kGuDYH:`x141an7d`,kLWn49:`x1ltkj2j`,$$css:!0},descriptionSingleTruncate:{kVQacm:`xb3r6kr`,kg5iWk:`xlyipyv`,khDVqt:`xuxw1ft`,$$css:!0},descriptionMultiTruncate:{kVQacm:`xb3r6kr`,k1xSpc:`x104kibb`,kgKLqz:`x1ua5tub`,$$css:!0},swipeRoot:{kHBbk8:`xc8icb0`,kFalU9:`xx69xxh`,k3aq6I:`x1kncwj0`,k1ekBW:`xuo13n2`,kIyJzY:`x15p14ac`,kAMwcw:`x158wxwp`,$$css:!0}},me={lineClamp:e=>[{kJFfOR:e==null?e:`x1yhjpo9`,$$css:!0},{"--x-WebkitLineClamp":e??void 0}]},K={compact:{k8WAf4:`xu0wf1k`,$$css:!0},balanced:{k8WAf4:`xce4md1`,$$css:!0},spacious:{k8WAf4:`x8o8v82`,"--_item-inset-inline":`x1ytau7y`,$$css:!0}};function q({as:e=`div`,marker:t,startContent:i,label:s,description:c,endContent:l,align:u=`center`,density:d=`balanced`,labelLines:f,descriptionLines:p,layout:m=`stacked`,onClick:g,interactiveRef:ne,href:v,target:re,rel:y,isHighlighted:b=!1,isSelected:x=!1,isDisabled:S=!1,swipeActions:C,swipeBehavior:w=`reveal`,xstyle:ie,className:ae,style:oe,ref:se,role:T,...E}){let le=te(),D=_(),O=ne!=null,k=(0,j.useRef)(null),{onClick:de}=ue({containerRef:k,interactiveRef:ne??void 0,disabled:S});A(`Item`,"`interactiveRef` is mutually exclusive with `onClick`/`href`. In delegation mode the row only forwards clicks to the referenced control, so `onClick`/`href` are ignored. Drop one of them.",O&&(g!=null||v!=null));let N=g!=null||v!=null||O,{target:P,rel:F}=U(re,y),I=T!=null,L=typeof e!=`string`&&v!=null,R=C?.leading??[],z=C?.trailing??[],B=C!=null&&(R.length>0||z.length>0)&&!S&&!O&&!L&&(T==null||W.has(T));A(`Item`,'`swipeBehavior="commit"` fires only the outermost entry of a side; the other entries have no touch path. Give a committing side one entry, or use `swipeBehavior="reveal"`.',B&&w===`commit`&&(R.length>1||z.length>1));let H=(0,j.useRef)(null),q=(0,j.useRef)(null),he=(0,j.useCallback)(e=>{q.current=e},[]),J=L?{href:S?void 0:v,target:S?void 0:P,rel:S?void 0:F}:null,ge=T!=null&&pe.has(T),_e=(0,j.useId)(),ve=o(c),ye=typeof s==`string`,be=typeof c==`string`,xe=f==null?ye?G.labelSingleTruncate:null:f===1?G.labelSingleTruncate:G.labelMultiTruncate,Y=m===`inline`&&c!=null,X=p==null?be||Y?G.descriptionSingleTruncate:null:p===1?G.descriptionSingleTruncate:G.descriptionMultiTruncate,Z=(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`span`,{...n(G.label,Y&&G.inlineLabel,xe,f!=null&&f>1&&me.lineClamp(f)),children:s}),c!=null&&(0,M.jsx)(`span`,{id:ve?_e:void 0,...n(G.description,Y&&G.inlineDescription,X,p!=null&&p>1&&me.lineClamp(p)),children:c})]}),Se=e=>{S||e.target.closest(`button, a, input, select, textarea`)||g?.(e)},Ce=(0,M.jsxs)(M.Fragment,{children:[t,i!=null&&(0,M.jsx)(`span`,{...{0:{className:`x3psx0u x78zum5`},1:{className:`x3psx0u x78zum5 x6s0dn4 x4jt1l0 xk9ib7f x1xb3ux x1899uy6 x1xcinxp`}}[u===`first-line`|0],children:i}),I||O?(0,M.jsx)(`span`,{...{0:{className:`x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h`},2:{className:`x78zum5 x98rzlu xeuugli x1yc453h x1q0g3np x6s0dn4 x1lfs0n9`},1:{className:`x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h xbyyjgo`},3:{className:`x78zum5 x98rzlu xeuugli x1yc453h x1q0g3np x6s0dn4 x1lfs0n9 xbyyjgo`}}[!!Y<<1|!!S],children:Z}):v!=null&&!L?(0,M.jsx)(D,{href:v,target:P,rel:F,"aria-disabled":S||void 0,tabIndex:S?-1:void 0,...{0:{className:`xmper1u x16khyan x1heor9g x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h x1hl2dhg x1a2a7pz`},2:{className:`xmper1u x16khyan x1heor9g x78zum5 x98rzlu xeuugli x1yc453h x1hl2dhg x1a2a7pz x1q0g3np x6s0dn4 x1lfs0n9`},1:{className:`xmper1u x16khyan x1heor9g x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h x1hl2dhg x1a2a7pz xbyyjgo`},3:{className:`xmper1u x16khyan x1heor9g x78zum5 x98rzlu xeuugli x1yc453h x1hl2dhg x1a2a7pz x1q0g3np x6s0dn4 x1lfs0n9 xbyyjgo`}}[!!Y<<1|!!S],children:Z}):g==null?(0,M.jsx)(`span`,{...{0:{className:`x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h`},2:{className:`x78zum5 x98rzlu xeuugli x1yc453h x1q0g3np x6s0dn4 x1lfs0n9`},1:{className:`x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h xbyyjgo`},3:{className:`x78zum5 x98rzlu xeuugli x1yc453h x1q0g3np x6s0dn4 x1lfs0n9 xbyyjgo`}}[!!Y<<1|!!S],children:Z}):(0,M.jsx)(`button`,{type:`button`,onClick:g,disabled:S,...{0:{className:`xmper1u x16khyan x1heor9g x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h x1a2a7pz`},2:{className:`xmper1u x16khyan x1heor9g x78zum5 x98rzlu xeuugli x1yc453h x1a2a7pz x1q0g3np x6s0dn4 x1lfs0n9`},1:{className:`xmper1u x16khyan x1heor9g x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h x1a2a7pz xbyyjgo`},3:{className:`xmper1u x16khyan x1heor9g x78zum5 x98rzlu xeuugli x1yc453h x1a2a7pz x1q0g3np x6s0dn4 x1lfs0n9 xbyyjgo`}}[!!Y<<1|!!S],children:Z}),l!=null&&(0,M.jsx)(`span`,{...{0:{className:`x3psx0u x78zum5 xvc5jky`},2:{className:`x3psx0u x78zum5 xvc5jky x6s0dn4 x4jt1l0 xk9ib7f x1xb3ux x1899uy6 x1xcinxp`},1:{className:`x3psx0u x78zum5 xvc5jky xbyyjgo`},3:{className:`x3psx0u x78zum5 xvc5jky x6s0dn4 x4jt1l0 xk9ib7f x1xb3ux x1899uy6 x1xcinxp xbyyjgo`}}[(u===`first-line`)<<1|!!S],children:l})]}),we=ce(se,k),Te=ce(O?we:se,B?H:void 0),Q=O?de:I?g:N?Se:void 0,Ee=B&&Q!=null?e=>{q.current?.shouldSuppressClick()!==!0&&Q(e)}:Q,De=B?{onPointerDown:e=>q.current?.handlers.onPointerDown(e),onPointerMove:e=>q.current?.handlers.onPointerMove(e),onPointerUp:e=>q.current?.handlers.onPointerUp(e),onPointerCancel:e=>q.current?.handlers.onPointerCancel(e),onClickCapture:e=>q.current?.handlers.onClickCapture(e),onKeyDown:e=>q.current?.handlers.onKeyDown(e)}:void 0;return(0,M.jsxs)(e,{ref:Te,...E,...De,...J,"aria-selected":ge&&x||void 0,"aria-current":E[`aria-current`]??(x&&!ge?!0:void 0),"aria-disabled":S||void 0,...N?le:void 0,...a(r(`item`,{density:d,align:u}),h.focusWithin(G.root,K[d],u===`start`&&G.alignStart,u===`first-line`&&G.alignFirstLine,N&&G.interactive,N&&ee.backgroundColor,L&&G.linkRoot,b&&G.highlighted,x&&G.selected,S&&!I&&G.disabled,B&&G.swipeRoot,ie),ae,oe),role:T,onClick:Ee,children:[(0,M.jsx)(V,{value:ve?_e:null,children:Ce}),B&&(0,M.jsx)(j.Suspense,{fallback:null,children:(0,M.jsx)(fe,{rootRef:H,onBridge:he,leading:R,trailing:z,behavior:w})})]})}q.displayName=`Item`;var he={x1odsvnm:`x1odsvnm`,$$css:!0},J={box:{kB7OPa:`x9f619`,k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kmuXW:`x2lah0s`,kMzoRj:`x1litavf`,ksu8eU:`x1y0btm7`,kaIpWk:`xx3sua9`,k1ekBW:`xts7igz`,kIyJzY:`xuedmi6 x12w9bfk`,kAMwcw:`xlr8y92`,$$css:!0},unchecked:{kMwMTN:`xqwr325`,kVAM5u:`xvy26l8 xilc7fp`,kWkggS:`x10xzikg xeultfy`,$$css:!0},checked:{kMwMTN:`x17wrial`,kVAM5u:`xad5do x1ozl1p1`,kWkggS:`x1ewilqj x17srpfb`,$$css:!0},disabled:{kSiTet:`xbyyjgo`,kVAM5u:`x14i3s5s x61roa7`,$$css:!0},disabledUnchecked:{kWkggS:`xwmxj5m xqxnq6d`,$$css:!0},checkmark:{k1xSpc:`x1s85apg`,kMwMTN:`x17wrial xs5hli`,$$css:!0},checkmarkVisible:{k1xSpc:`x1lliihq`,$$css:!0},indeterminateMark:{k1xSpc:`x1s85apg`,kWkggS:`x1azo05 xwvh9j7`,kaIpWk:`xjspbzw`,$$css:!0},indeterminateMarkVisible:{k1xSpc:`x1lliihq`,$$css:!0}},ge={sm:{kzqmXN:`xw4jnvo`,kZKoxP:`x1qx5ct2`,$$css:!0},md:{kzqmXN:`xvy4d1p`,kZKoxP:`xxk0z11`,$$css:!0}},_e={sm:{kzqmXN:`xsmyaan`,kZKoxP:`x1kpxq89`,$$css:!0},md:{kzqmXN:`x6jxa94`,kZKoxP:`x1v9usgg`,$$css:!0}},ve={sm:{kzqmXN:`x1fsd2vl`,kZKoxP:`x36qwtl`,$$css:!0},md:{kzqmXN:`xsmyaan`,kZKoxP:`x36qwtl`,$$css:!0}};function ye({state:e,size:t=`md`,isDisabled:i=!1,children:s,ref:c,className:l,style:u,xstyle:d,...f}){let p=e===`checked`,m=e===`indeterminate`,h=p||m;return(0,M.jsx)(`span`,{...f,ref:c,"aria-hidden":`true`,...a(r(`checkbox-indicator`,{size:t,checked:p?`checked`:m?`indeterminate`:null,disabled:i?`disabled`:null}),n(J.box,ge[t],h?J.checked:J.unchecked,i&&J.disabled,i&&!h&&J.disabledUnchecked,d),l,u),children:o(s)?s:(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`svg`,{viewBox:`0 0 10 10`,...a(r(`checkbox-indicator-check`,{size:t}),n(J.checkmark,_e[t],p&&J.checkmarkVisible)),children:(0,M.jsx)(`path`,{d:`M8.5 2.5L4 7.5L1.5 5`,stroke:`currentColor`,strokeWidth:`1.5`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`})}),(0,M.jsx)(`span`,{...a(r(`checkbox-indicator-dash`,{size:t}),n(J.indeterminateMark,ve[t],m&&J.indeterminateMarkVisible))})]})})}ye.displayName=`CheckboxIndicator`;var be={sm:`sm`,md:`sm`},xe={slot:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kmuXW:`x2lah0s`,kzqmXN:`xcdlrvm`,kZKoxP:`x1l36t39`,$$css:!0},enabled:{kMwMTN:`xqwr325`,$$css:!0},disabled:{kMwMTN:`xqa6c3m`,$$css:!0}};function Y({state:e,size:t=`md`,isDisabled:r=!1,children:i,ref:s,className:l,style:u,xstyle:d,...f}){let p=e===`checked`;return o(i)?(0,M.jsx)(`span`,{...f,ref:s,"aria-hidden":`true`,...a(n(xe.slot,r?xe.disabled:xe.enabled,d),l,u),children:i}):p?(0,M.jsx)(c,{...f,"aria-hidden":`true`,icon:`check`,size:be[t],color:r?`disabled`:`accent`,xstyle:d,className:l,style:u}):null}Y.displayName=`CheckIndicator`;var X={circle:{kB7OPa:`x9f619`,k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kmuXW:`x2lah0s`,kMzoRj:`x1litavf`,ksu8eU:`x1y0btm7`,kaIpWk:`xjspbzw`,k1ekBW:`xts7igz`,kIyJzY:`xuedmi6 x12w9bfk`,kAMwcw:`xlr8y92`,$$css:!0},unchecked:{kVAM5u:`xvy26l8 xilc7fp`,kWkggS:`x10xzikg xeultfy`,$$css:!0},checked:{kVAM5u:`xad5do x1ozl1p1`,kWkggS:`x1ewilqj x17srpfb`,$$css:!0},disabled:{kSiTet:`xbyyjgo`,kVAM5u:`x14i3s5s x61roa7`,$$css:!0},disabledUnchecked:{kWkggS:`xwmxj5m xqxnq6d`,$$css:!0},dot:{kaIpWk:`xjspbzw`,kWkggS:`x1azo05 xwvh9j7`,$$css:!0}},Z={sm:{kzqmXN:`xw4jnvo`,kZKoxP:`x1qx5ct2`,$$css:!0},md:{kzqmXN:`xvy4d1p`,kZKoxP:`xxk0z11`,$$css:!0}},Se={sm:{kzqmXN:`x1xc55vz`,kZKoxP:`xdk7pt`,$$css:!0},md:{kzqmXN:`x1fsd2vl`,kZKoxP:`x170jfvy`,$$css:!0}};function Ce({state:e,size:t=`md`,isDisabled:i=!1,children:s,ref:c,className:l,style:u,xstyle:d,...f}){let p=e!==`unchecked`;return(0,M.jsx)(`span`,{...f,ref:c,"aria-hidden":`true`,...a(r(`radio-indicator`,{size:t,checked:p?`checked`:null,disabled:i?`disabled`:null}),n(X.circle,Z[t],p?X.checked:X.unchecked,i&&X.disabled,i&&!p&&X.disabledUnchecked,d),l,u),children:o(s)?s:p&&(0,M.jsx)(`span`,{...a(r(`radio-indicator-dot`,{size:t}),n(X.dot,Se[t]))})})}Ce.displayName=`RadioIndicator`;var we={check:Y,checkbox:ye,radio:Ce};function Te(e){return e==null?null:typeof e==`string`?l(e):e}function Q(e){return Te(e)?.indicators??null}function Ee(e,t){return Q(t)?.[e]??we[e]}function De(e){return Ee(e,s())}function Oe(e,t=!1){let n=(0,j.useCallback)(t=>{let n=e.current?.firstElementChild;n instanceof HTMLElement&&Object.assign(n.style,t?g:m)},[e]),r=(0,j.useCallback)(e=>{if(t)return;let r=e.target;r instanceof HTMLElement&&!r.matches(`:focus-visible`)||n(!0)},[t,n]),i=(0,j.useCallback)(()=>n(!1),[n]);return(0,j.useMemo)(()=>({focusProps:{onFocus:r,onBlur:i}}),[r,i])}var $={container:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kOIVth:`x1txdalj`,$$css:!0},containerLabelHidden:{kOIVth:`xxhr3t`,$$css:!0},checkboxWrapper:{kVAEAm:`x1n2onr6`,k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kmuXW:`x2lah0s`,kHBbk8:`xc8icb0`,$$css:!0},indicatorPressOverlay:{k5JduY:`x1s928wv`,kwXMNM:`x1j6awrg`,kv0HGH:`xarstr8`,kUfP38:`xtb6wbx`,kloYau:`x2q1x1w`,ks3ayO:`xyhc2n1 xzywxsk x1gybruy`,kNctxI:`x1ikgzpo xsozn46`,$$css:!0},input:{kVAEAm:`x10l6tqk`,k87sOh:`xwa60dl`,kogj98:`x1ghz6dp`,kmVPX3:`x1717udv`,kSiTet:`xg01cxk`,kkrTdU:`x1ypdohk x16khyan`,kY2c9j:`x1vjfegm`,$$css:!0},inputCoarse:{kjFi6P:`xkagaj0`,kHzOjL:`x80b3aj`,$$css:!0},inputDisabled:{kkrTdU:`xt0e3qv`,$$css:!0}},ke={sm:{kzqmXN:`xw4jnvo`,kZKoxP:`x1qx5ct2`,$$css:!0},md:{kzqmXN:`xvy4d1p`,kZKoxP:`xxk0z11`,$$css:!0}},Ae={width:e=>[{kzqmXN:e==null?e:`x5lhr3w`,$$css:!0},{"--x-width":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}]};function je({id:e,label:t,isLabelHidden:i=!1,description:o,onChange:s,changeAction:c,isLoading:l=!1,value:m,isDisabled:h=!1,htmlName:g,disabledMessage:_,isReadOnly:v=!1,isOptional:re=!1,isRequired:y=!1,size:b=`md`,onFocus:x,onBlur:S,labelIcon:C,status:w,width:ie,xstyle:ae,className:oe,style:se,ref:T,"aria-describedby":E,...le}){let D=te(),ue=(0,j.useId)(),A=e||ue,N=(0,j.useId)(),P=(0,j.useId)(),F=p({isRequired:y,isOptional:re}),[,I]=(0,j.useTransition)(),[L,R]=(0,j.useOptimistic)(m),z=l||L!==m,B=h&&!!_,V=ne({placement:`above`,focusTrigger:`always`,isEnabled:B}),H=De(`checkbox`),U=(0,j.useRef)(null),fe=u();d(z,fe(`@astryx.spinner.loading`),U);let{focusProps:pe}=Oe(U),W=L===`indeterminate`,G=L===!0,me=(0,j.useCallback)(e=>{e&&(e.indeterminate=W)},[W]),K=[];E&&K.push(E),o&&K.push(N),w?.message&&K.push(P),B&&K.push(V.describedBy);let q=K.length>0?K.join(` `):void 0;return(0,M.jsxs)(`div`,{...a(r(`checkbox-input`,{size:b}),n(ie!=null&&Ae.width(ie),ae),oe,se),children:[(0,M.jsxs)(`div`,{ref:e=>{V.interactionRef(e)},...h?void 0:D,...n($.container,i&&$.containerLabelHidden,!h&&he,!h&&ee.pressedAlpha),children:[(0,M.jsxs)(`div`,{...n($.checkboxWrapper,ke[b],!h&&$.indicatorPressOverlay),...pe,children:[(0,M.jsx)(`input`,{...le,ref:ce(T,me,V.positionRef),id:A,type:`checkbox`,name:h?void 0:g,checked:G,"aria-disabled":h?`true`:void 0,form:h?``:void 0,onClick:h?void 0:le.onClick,readOnly:v,required:y,"aria-required":F?`true`:void 0,onChange:e=>{if(h||z||v){e.target.indeterminate=W;return}let t=e.target.checked;s?.(t,e),c&&!e.defaultPrevented&&I(async()=>{R(t),await c(t,e)})},onFocus:x,onBlur:S,"aria-readonly":v||void 0,"aria-describedby":q,"aria-invalid":w?.type===`error`||void 0,"aria-busy":z||void 0,...n($.input,f.centerInline(`-50%`),$.inputCoarse,ke[b],h&&$.inputDisabled)}),(0,M.jsx)(`span`,{ref:U,className:`xjp7ctv`,children:(0,M.jsx)(H,{state:W?`indeterminate`:G?`checked`:`unchecked`,size:b,isDisabled:h,children:z?(0,M.jsx)(O,{size:`sm`,shade:`inherit`}):null})})]}),(0,M.jsx)(`div`,{className:`x78zum5 xdt5ytf`,children:(0,M.jsx)(k,{...r(`checkbox-label`),label:t,inputID:A,isLabelHidden:i,isDisabled:h,isOptional:re,isRequired:y,labelIcon:C,description:o,descriptionID:N})})]}),w?.message&&(0,M.jsx)(de,{type:w.type,message:w.message,id:P,variant:`detached`}),B&&V.renderTooltip(_)]})}je.displayName=`CheckboxInput`;export{q as a,B as c,he as i,I as l,Oe as n,U as o,De as r,V as s,je as t};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{c as t,u as n}from"./themeProps-3IqahpCr.js";import{a as r,i}from"./useAnnounceRenderedText-BrbiKE4-.js";import{t as a}from"./StackItem-YZCLellt.js";import{c as o}from"./fieldParts-CNKpMZ7U.js";import{t as s}from"./Icon-BWzSKxTK.js";import{_ as c,a as l,b as u,c as d,f,g as ee,i as p,l as m}from"./SidePanel-DLgOJwvB.js";import{t as h}from"./Text-B74VhVA7.js";import{n as g}from"./labels-provider-BcEDhptf.js";import{t as _}from"./useLocale-DrfYfZTs.js";import{n as v,t as te}from"./IconButton-CerBBPke.js";import{r as y}from"./FieldStatus-CSAKvGxp.js";import{n as b}from"./row-keys-WByP9Hsh.js";import{i as ne,r as re,t as x}from"./TextInput-6ChkOVD6.js";import{t as ie}from"./Center-CgO0c-qo.js";import{a as S,o as ae}from"./shaped-data-F3datIeG.js";import{t as C}from"./HStack-cOiUht-L.js";import{t as w}from"./VStack-CEcm-qoM.js";import{t as T}from"./Card-D_40unTk.js";import{n as E}from"./trace-patterns-86-gKv3I.js";import{F as D,G as oe,H as se,N as ce,P as O,U as le,ct as ue,it as de,j as fe,tn as pe}from"./index-D20KCw0I.js";var k=e(n(),1),me=new Set([`image/png`,`image/jpeg`]),A=`image/png,image/jpeg`;function he(e,t){let n=e.replace(/\.[^.]*$/,``).toLowerCase().replace(/[^a-z0-9]+/g,`_`).replace(/^_+|_+$/g,``)||`image`,r=`<${n}>`;for(let e=2;t.includes(r);e+=1)r=`<${n}_${String(e)}>`;return r}async function j(e){if(!me.has(e.type))return null;let t=new Uint8Array(await e.arrayBuffer()),n=``;for(let e=0;e<t.length;e+=32768)n+=String.fromCharCode(...t.subarray(e,e+32768));return{mimeType:e.type,data:btoa(n)}}function M(e){return`data:${e.mimeType};base64,${e.data}`}function N(e,t){return typeof e==`string`?e===t:Array.isArray(e)?e.some(e=>N(e,t)):typeof e==`object`&&e?Object.values(e).some(e=>N(e,t)):!1}function P(e,t){return Object.fromEntries(Object.entries(e).filter(([e])=>N(t,e)))}function F(e,t,n){let r=he(e,[...Object.keys(t),...n.map(e=>`<${e}>`)]);return{key:r.slice(1,-1),reference:r}}function I(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:void 0}function L(e,t){let{images:n,state:r}=t;for(let[i,a]of e){let{key:e,reference:o}=F(i.name,{...t.host,...n},Object.keys(r));n={...n,[o]:a},r={...r,[e]:o}}return{images:n,state:r}}function R(e,t){let n=e;for(let e of t.split(`.`)){if(typeof n!=`object`||!n)return;n=Array.isArray(n)?n[Number(e)]:n[e]}return n}function ge(e,t,n){let r=n===void 0||n in e?n:R(t,n);if(typeof r==`string`&&r in e)return e[r];let i=Object.values(e);return n===void 0&&i.length===1?i[0]:void 0}function _e(e,t,n){return{x:e.left*t,y:e.top*n,width:(e.right-e.left)*t,height:(e.bottom-e.top)*n,line:Math.max(2,Math.round(Math.min(t,n)/200))}}var ve=.45;async function ye(e,t,n){let r=new Image;r.src=e,await r.decode();let i=document.createElement(`canvas`);i.width=r.naturalWidth,i.height=r.naturalHeight;let a=i.getContext(`2d`);if(!a)return e;let o=_e(t,i.width,i.height);return a.drawImage(r,0,0),a.fillStyle=n.shade,a.globalAlpha=ve,a.beginPath(),a.rect(0,0,i.width,i.height),a.rect(o.x,o.y,o.width,o.height),a.fill(`evenodd`),a.globalAlpha=1,a.strokeStyle=n.outline,a.lineWidth=o.line,a.strokeRect(o.x,o.y,o.width,o.height),i.toDataURL(`image/png`)}function be(e){let t=e.right-e.left,n=e.bottom-e.top;return{width:100/t,height:100/n,left:-e.left/t*100,top:-e.top/n*100}}function xe(e){return e.every(e=>typeof e==`string`)}function z(e){return e==null||typeof e==`string`?``:typeof e==`number`?0:typeof e==`boolean`?!1:Array.isArray(e)?[]:Object.fromEntries(Object.entries(e).map(([e,t])=>[e,z(t)]))}function Se(e){let t=e[0];if(typeof t!=`object`||!t||Array.isArray(t))return null;let n=Object.keys(t);return n.length===0||n.length>4||!e.every(e=>typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.keys(e).join()===n.join()&&Object.values(e).every(e=>typeof e!=`object`||!e))?null:n.map(t=>{let n=e.map(e=>String(e[t]??``).length),r=Math.max(t.length,...n);return{key:t,weight:Math.min(4,Math.max(1,Math.round(r/10)))}})}var B=t();function Ce(e){return e===null?[]:Array.isArray(e)?e:[e]}function V(){let e=g(),[t,n]=(0,k.useState)(null);return{read:async e=>{n(null);let t=[];for(let r of Ce(e)){let e=await j(r);e?t.push([r,e]):n(r.name)}return t},status:t===null?void 0:{type:`error`,message:e(`@theorem.decision.image_bad`,{file:t})}}}function we({onImages:e}){let t=g(),{read:n,status:r}=V();return(0,B.jsx)(O,{label:t(`@theorem.decision.add_image`),isLabelHidden:!0,mode:`dropzone`,isMultiple:!0,accept:A,value:null,placeholder:t(`@theorem.decision.add_image_hint`),status:r,statusVariant:`detached`,onChange:t=>{n(t).then(t=>{t.length>0&&e(t)})}})}var Te={search:()=>[],bootstrap:()=>[]},Ee=48;function H(e,t,n){return Math.min(Math.max(e.split(`
|
|
2
|
-
`).length,t),n)}var U=(0,k.createContext)({images:{},onImages:()=>{}});function De({value:e,label:t,isLabelHidden:n}){let r=g(),{images:i,onImages:o}=(0,k.useContext)(U),{read:s,status:c}=V(),[l,u]=(0,k.useState)(!1),d=Object.hasOwn(i,e)?M(i[e]):void 0;return(0,B.jsxs)(C,{gap:2,vAlign:`center`,children:[(0,B.jsx)(ue,{src:d,alt:t,label:e,onClick:d?()=>u(!0):void 0}),d?(0,B.jsx)(de,{isOpen:l,onOpenChange:u,media:{src:d,alt:t,caption:e},hasZoom:!0}):null,(0,B.jsx)(a,{size:`fill`,children:(0,B.jsx)(O,{label:t,isLabelHidden:n,accept:A,value:null,placeholder:r(`@theorem.decision.replace_image`),status:c,statusVariant:`detached`,onChange:t=>{s(t).then(([t])=>{t&&o({...i,[e]:t[1]})})}})})]})}function W({value:e,onChange:t,label:n,isLabelHidden:r}){let{images:i}=(0,k.useContext)(U),[a]=(0,k.useState)(()=>typeof e==`string`&&(e.length>Ee||e.includes(`
|
|
3
|
-
`))),[o]=(0,k.useState)(()=>typeof e==`string`&&Object.hasOwn(i,e));if(o&&typeof e==`string`)return(0,B.jsx)(De,{value:e,label:n,isLabelHidden:r});if(typeof e==`boolean`)return(0,B.jsx)(ce,{label:n,value:e,onChange:t});if(typeof e==`number`)return(0,B.jsx)(oe,{label:n,isLabelHidden:r,size:`sm`,value:e,isWheelEnabled:!1,onChange:t});if(e===null)return(0,B.jsx)(x,{label:n,isLabelHidden:r,size:`sm`,value:``,placeholder:`null`,isDisabled:!0,onChange:()=>{}});let s=String(e);return a?(0,B.jsx)(D,{label:n,isLabelHidden:r,size:`sm`,rows:H(s,2,12),value:s,onChange:t}):(0,B.jsx)(x,{label:n,isLabelHidden:r,size:`sm`,value:s,onChange:t})}function G({label:e,isRequired:t,description:n,children:r}){let i=(0,k.useId)();return(0,B.jsxs)(w,{gap:2,role:`group`,"aria-labelledby":i,children:[(0,B.jsx)(y,{label:e,inputID:``,labelID:i,isGroupLabel:!0,isRequired:t,description:n}),r]})}function K({children:e,...t}){return(0,B.jsx)(G,{...t,children:(0,B.jsx)(`div`,{style:{paddingInlineStart:12,borderInlineStart:`1px solid var(--color-border)`},children:e})})}function q({field:e,onAdd:t}){let n=g();return(0,B.jsx)(C,{children:(0,B.jsx)(v,{label:n(`@theorem.decision.add_item`,{field:e}),size:`sm`,variant:`ghost`,icon:(0,B.jsx)(pe,{size:14}),onClick:t})})}function J({index:e,onRemove:t}){let n=g();return(0,B.jsx)(te,{label:n(`@theorem.decision.remove_item`,{item:n(`@theorem.data.item`,{index:String(e+1)})}),size:`sm`,variant:`ghost`,icon:(0,B.jsx)(o,{size:14}),onClick:t})}function Y({value:e,onChange:t}){return(0,B.jsx)(w,{gap:3,children:Object.entries(e).map(([n,r])=>(0,B.jsx)(X,{label:S(n),value:r,onChange:r=>t({...e,[n]:r})},n))})}function Oe({value:e,onChange:t,label:n}){let r=g(),i=b(e);if(xe(e))return(0,B.jsx)(le,{label:n,size:`sm`,value:e.map((e,t)=>({id:`${String(t)}:${e}`,label:e})),searchSource:Te,hasCreate:!0,debounceMs:0,placeholder:r(`@theorem.decision.add_value`),onChange:e=>t(e.map(e=>e.label))});let o=Se(e),s=(0,B.jsx)(q,{field:n,onAdd:()=>t([...e,z(e.at(-1))])}),c=n=>(0,B.jsx)(J,{index:n,onRemove:()=>{i.drop(n),t(e.filter((e,t)=>t!==n))}});if(o){let r={display:`grid`,gap:8,alignItems:`start`,gridTemplateColumns:`${o.map(e=>`minmax(0, ${String(e.weight)}fr)`).join(` `)} auto`},a=e;return(0,B.jsxs)(G,{label:n,children:[(0,B.jsxs)(`div`,{style:r,"aria-hidden":!0,children:[o.map(e=>(0,B.jsx)(h,{type:`supporting`,color:`secondary`,maxLines:1,children:S(e.key)},e.key)),(0,B.jsx)(`span`,{style:{width:28}})]}),i.rows.map(({index:e,key:n})=>{let i=a[e];return(0,B.jsxs)(`div`,{style:r,children:[o.map(n=>(0,B.jsx)(W,{label:`${S(n.key)} ${String(e+1)}`,isLabelHidden:!0,value:i[n.key]??null,onChange:r=>t(a.map((t,i)=>i===e?{...t,[n.key]:r}:t))},n.key)),c(e)]},n)}),s]})}return(0,B.jsx)(K,{label:n,children:(0,B.jsxs)(w,{gap:3,children:[i.rows.map(({item:n,index:i,key:o})=>{let s=r(`@theorem.data.item`,{index:String(i+1)}),l=n=>t(e.map((e,t)=>t===i?n:e));return(0,B.jsxs)(C,{gap:2,vAlign:`start`,children:[(0,B.jsx)(a,{size:`fill`,children:ae(n)?(0,B.jsx)(W,{label:s,isLabelHidden:!0,value:n,onChange:l}):(0,B.jsx)(X,{label:s,value:n,onChange:l})}),c(i)]},o)}),s]})})}function X({value:e,onChange:t,label:n}){return Array.isArray(e)?(0,B.jsx)(Oe,{label:n,value:e,onChange:t}):typeof e==`object`&&e?(0,B.jsx)(K,{label:n,children:(0,B.jsx)(Y,{value:e,onChange:t})}):(0,B.jsx)(W,{label:n,value:e,onChange:t})}function ke({value:e,onChange:t,label:n}){return typeof e==`object`&&e&&!Array.isArray(e)?(0,B.jsx)(Y,{value:e,onChange:t}):(0,B.jsx)(X,{label:n,value:e,onChange:t})}var Ae={"--theorem-console-card":`var(--color-background-muted)`},Z=`(width < 768px)`,Q=(0,k.createContext)(!0);function je(){return(0,k.useSyncExternalStore)(e=>{let t=globalThis.matchMedia(Z);return t.addEventListener(`change`,e),()=>{t.removeEventListener(`change`,e)}},()=>globalThis.matchMedia(Z).matches,()=>!1)}function Me({flush:e,wide:t,maxWidth:n,children:r}){let i=(0,B.jsx)(ie,{axis:`horizontal`,width:`100%`,minHeight:`100%`,children:(0,B.jsx)(w,{width:`100%`,maxWidth:t?void 0:n,gap:3,padding:4,children:r})});return e?(0,B.jsx)(w,{height:`100%`,paddingInlineStart:3,style:{...Ae,paddingInlineEnd:f(3)},children:(0,B.jsx)(T,{variant:`transparent`,height:`100%`,padding:0,style:{overflowY:`auto`},children:i})}):(0,B.jsx)(p,{inset:`all`,padding:0,isScrollable:!0,children:i})}function Ne({inspector:e,maxWidth:t,flush:n=!1,columns:a=!1,requestLabel:o,className:s,style:c,children:l}){let u=(0,k.useRef)(null),d=e.toggle?(0,B.jsx)(m,{floating:!0,children:e.toggle}):void 0;return(0,B.jsx)(fe,{inspector:e,children:(0,B.jsx)(r,{ref:u,height:`fill`,className:s,style:{position:`relative`,...c},header:d,content:(0,B.jsx)(i,{padding:0,isScrollable:!1,children:(0,B.jsx)(Pe,{layoutRef:u,flush:n,columns:a,maxWidth:t,requestLabel:o,children:l})})})})}function Pe({layoutRef:e,flush:t,columns:n,maxWidth:r,requestLabel:i,children:a}){let o=je(),s=k.Children.toArray(a).length,c=n&&s>1;return c&&!o?(0,B.jsx)($,{requestLabel:i,layoutRef:e,children:a}):(0,B.jsx)(Me,{flush:t,wide:c,maxWidth:r,children:a})}function $({requestLabel:e=`Request`,layoutRef:t,children:n}){let a=g(),o=(0,k.useRef)(null),[s]=(0,k.useState)(()=>t.current?.clientWidth??0),f=ee({defaultSize:s>0?Math.round(s*.4):`40%`,minSize:280,maxSize:c(70,{min:u(280)}),containerRef:o}),[m,h]=k.Children.toArray(n),_={name:e,show:e,hide:e,resize:a(`@theorem.panel.resize`,{name:e})};return(0,B.jsx)(Q,{value:!1,children:(0,B.jsx)(r,{ref:o,height:`fill`,start:(0,B.jsx)(d,{side:`start`,className:`theorem-console-request`,labels:_,resizable:f,open:!0,children:(0,B.jsx)(l,{label:e,children:m})}),content:(0,B.jsx)(i,{padding:0,isScrollable:!1,children:(0,B.jsx)(p,{inset:`beside`,className:`theorem-console-response`,children:h})})})})}function Fe({children:e}){return(0,B.jsx)(T,{variant:`muted`,padding:0,className:`theorem-console-card`,style:E,children:(0,B.jsx)(Q,{value:!1,children:e})})}function Ie({label:e,fill:t=!1,children:n}){return(0,k.use)(Q)?(0,B.jsx)(T,{variant:`muted`,padding:t?0:4,className:`theorem-console-card`,style:E,children:t?n:(0,B.jsx)(w,{height:`100%`,gap:3,children:n})}):t?n:(0,B.jsx)(l,{label:e,padding:4,children:n})}function Le(e){return t=>{t.key===`Enter`&&(t.metaKey||t.ctrlKey)&&(t.preventDefault(),e())}}function Re({title:e,onRun:t,children:n,...r}){let i=g(),a=(0,k.use)(Q),o=(0,B.jsxs)(w,{gap:3,padding:a?void 0:4,onKeyDown:Le(t),children:[(0,B.jsxs)(C,{gap:2,hAlign:`between`,vAlign:`center`,children:[(0,B.jsx)(h,{type:`supporting`,color:`secondary`,as:`h3`,children:e}),r.onView?(0,B.jsx)(se,{label:i(`@theorem.data.json`),tooltip:i(r.view===`json`?`@theorem.decision.fields`:`@theorem.data.json`),size:`sm`,isIconOnly:!0,isDisabled:!r.hasFields,icon:(0,B.jsx)(s,{icon:re,size:`sm`}),pressedIcon:(0,B.jsx)(s,{icon:ne,size:`sm`}),isPressed:r.view===`json`,onPressedChange:e=>{r.onView(e?`json`:`fields`)}}):r.actions]}),n]});return a?(0,B.jsx)(T,{variant:`muted`,padding:4,className:`theorem-console-card`,style:E,children:o}):o}var ze={"--font-family-body":`var(--font-family-code)`};function Be({label:e,text:t,isInvalid:n,onChange:r}){return(0,B.jsx)(D,{label:e,isLabelHidden:!0,value:t,onChange:r,rows:H(t,8,24),hasSpellCheck:!1,status:n?{type:`error`}:void 0,controlStyle:ze})}function Ve({note:e,isReady:t,isRunning:n,runLabel:r,runningLabel:i,stopLabel:a,onRun:o,onStop:s}){return(0,B.jsxs)(C,{gap:3,hAlign:`between`,vAlign:`center`,children:[(0,B.jsx)(h,{type:`supporting`,color:`secondary`,style:t?void 0:{color:`var(--color-error)`},hasTabularNumbers:!0,children:e}),(0,B.jsxs)(C,{gap:2,vAlign:`center`,children:[n?(0,B.jsx)(v,{label:a,variant:`ghost`,onClick:s}):null,(0,B.jsx)(v,{label:n?i:r,variant:`primary`,isLoading:n,isDisabled:!t,onClick:o})]})]})}function He(){let e=_();return(0,k.useMemo)(()=>{let t=new Intl.NumberFormat(e,{style:`unit`,unit:`byte`,unitDisplay:`narrow`}),n=new Intl.NumberFormat(e,{style:`unit`,unit:`kilobyte`,unitDisplay:`narrow`,maximumFractionDigits:1});return e=>e<1024?t.format(e):n.format(e/1024)},[e])}export{I as S,be as _,Ie as a,ye as b,q as c,J as d,ke as f,ge as g,we as h,Re as i,K as l,H as m,Fe as n,Ve as o,U as p,Be as r,He as s,Ne as t,G as u,L as v,P as x,M as y};
|