@litmusio/miravo-cli-linux-arm64 0.0.0-stage → 0.15.9
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/LICENSE +199 -0
- package/NOTICE +9 -0
- package/README.md +6 -2
- package/THIRD_PARTY_LICENSES.txt +15289 -0
- package/THIRD_PARTY_NOTICES.md +995 -0
- package/console-dist/assets/AnimatePresence-DWGUB15i.js +9 -0
- package/console-dist/assets/activity-DruTYzT1.js +1 -0
- package/console-dist/assets/api-13R-Szmo.js +57 -0
- package/console-dist/assets/arrow-up-right-DOENs04V.js +1 -0
- package/console-dist/assets/asset-detail-D142l0Fv.js +1 -0
- package/console-dist/assets/asset-detail-actions-Cf9kIXus.js +1 -0
- package/console-dist/assets/backup-power-B2I59W_p.js +1 -0
- package/console-dist/assets/badge-CdRB4Nd_.js +1 -0
- package/console-dist/assets/boiler-s_q0j7rz.js +1 -0
- package/console-dist/assets/by-path-BVKB6Tic.js +1 -0
- package/console-dist/assets/check-BTUv4z-H.js +1 -0
- package/console-dist/assets/chevron-down-CqA_2_CH.js +1 -0
- package/console-dist/assets/chevron-right-CVrgKBLR.js +1 -0
- package/console-dist/assets/chiller-r7DzAhJq.js +1 -0
- package/console-dist/assets/chunk-6KYCQHYJ-ga3Yekab.js +3 -0
- package/console-dist/assets/circle-x-BRkh0A1P.js +1 -0
- package/console-dist/assets/commercial-building-YWHjdNWm.js +1 -0
- package/console-dist/assets/compressor-ChZLMC94.js +1 -0
- package/console-dist/assets/console-panel-CnTkf-Zr.js +1 -0
- package/console-dist/assets/dialog-BYkdndf9.js +1 -0
- package/console-dist/assets/district-heating-DaU-3LzU.js +1 -0
- package/console-dist/assets/dom-BxZbg3NX.js +1 -0
- package/console-dist/assets/download-CvjDP5mu.js +1 -0
- package/console-dist/assets/fira-code-cyrillic-ext-wght-normal-DhYMMuQd.woff2 +0 -0
- package/console-dist/assets/fira-code-cyrillic-wght-normal-Y3u8pIsh.woff2 +0 -0
- package/console-dist/assets/fira-code-greek-ext-wght-normal-wWus70Ix.woff2 +0 -0
- package/console-dist/assets/fira-code-greek-wght-normal-B2SviObF.woff2 +0 -0
- package/console-dist/assets/fira-code-latin-ext-wght-normal-Dvfvaomy.woff2 +0 -0
- package/console-dist/assets/fira-code-latin-wght-normal-CHoedHDv.woff2 +0 -0
- package/console-dist/assets/fira-code-symbols2-wght-normal-CE6EOz_n.woff2 +0 -0
- package/console-dist/assets/floor-page-CiAcIxAW.js +1 -0
- package/console-dist/assets/floor-page-E-0txA4z.css +1 -0
- package/console-dist/assets/format-YLUJ7AXt.js +1 -0
- package/console-dist/assets/genset-C6_EUoFo.js +1 -0
- package/console-dist/assets/index-Cf8qRbyA.js +15 -0
- package/console-dist/assets/index-eZjXAdLh.css +2 -0
- package/console-dist/assets/loader-circle-w3T2fxvn.js +1 -0
- package/console-dist/assets/login-DP7gR4IQ.js +136 -0
- package/console-dist/assets/not-found-DeZnLH0i.js +1 -0
- package/console-dist/assets/pharma-cleanroom-DvWD_xsO.js +1 -0
- package/console-dist/assets/preload-helper-7y9sWmk5.js +1 -0
- package/console-dist/assets/react-DRt7cCXI.js +1 -0
- package/console-dist/assets/rolldown-runtime-BWaJ3C7D.js +1 -0
- package/console-dist/assets/rtu-ByogcRPI.js +1 -0
- package/console-dist/assets/runtime-link-D88Db2wY.js +1 -0
- package/console-dist/assets/schibsted-grotesk-latin-ext-wght-normal-hsMS0n0O.woff2 +0 -0
- package/console-dist/assets/schibsted-grotesk-latin-wght-normal-Bb8VGrTG.woff2 +0 -0
- package/console-dist/assets/server-B0q1NVkV.js +1 -0
- package/console-dist/assets/shallow-mIK1Qu8X.js +1 -0
- package/console-dist/assets/smart-factory-gfMWfMWM.js +1 -0
- package/console-dist/assets/source-host-miravo-BW-SKMTe.js +1 -0
- package/console-dist/assets/stages-EYRT12Yp.js +1 -0
- package/console-dist/assets/status-DQYLUbXs.js +1 -0
- package/console-dist/assets/tank-Btg5piqB.js +1 -0
- package/console-dist/assets/tooltip-Dfmuq2yz.js +1 -0
- package/console-dist/assets/trash-2-BAh5-hxl.js +1 -0
- package/console-dist/assets/triangle-alert-3Ab-dBrN.js +1 -0
- package/console-dist/assets/use-engine-command-mutation-BXSIzBAw.js +1 -0
- package/console-dist/assets/use-transition-navigate-COPPNZaw.js +2 -0
- package/console-dist/assets/useQuery-BbehJ-ez.js +1 -0
- package/console-dist/assets/utils-D6wrZy-b.js +1 -0
- package/console-dist/assets/validation-6JNiaZvb.js +1 -0
- package/console-dist/assets/vendor-charts-Bquh2dWE.js +56 -0
- package/console-dist/assets/vendor-table-5YnGQUhO.js +4 -0
- package/console-dist/assets/vendor-ui-BGeFlRLR.js +1 -0
- package/console-dist/assets/water-treatment-BkzNjsHx.js +1 -0
- package/console-dist/icon.png +0 -0
- package/console-dist/index.html +53 -0
- package/console-dist/miravo-logo.webp +0 -0
- package/licenses/EPL-2.0.txt +80 -0
- package/licenses/GCC-exception-3.1.txt +33 -0
- package/licenses/GPL-2.0-only.txt +117 -0
- package/licenses/GPL-3.0-only.txt +232 -0
- package/licenses/LGPL-2.1-only.txt +176 -0
- package/licenses/MPL-2.0.txt +373 -0
- package/licenses/OFL-1.1.txt +93 -0
- package/licenses/overrides/@headlessui+vue@1.7.23.txt +24 -0
- package/licenses/overrides/@next+env@16.4.6.txt +24 -0
- package/licenses/overrides/@radix-ui+react-compose-refs@1.1.2.txt +24 -0
- package/licenses/overrides/@radix-ui+react-context@1.1.2.txt +24 -0
- package/licenses/overrides/@radix-ui+react-direction@1.1.1.txt +24 -0
- package/licenses/overrides/@radix-ui+react-id@1.1.1.txt +24 -0
- package/licenses/overrides/@radix-ui+react-use-callback-ref@1.1.1.txt +24 -0
- package/licenses/overrides/@radix-ui+react-use-escape-keydown@1.1.1.txt +24 -0
- package/licenses/overrides/@radix-ui+react-use-layout-effect@1.1.1.txt +24 -0
- package/licenses/overrides/@radix-ui+react-use-rect@1.1.1.txt +24 -0
- package/licenses/overrides/@radix-ui+react-use-size@1.1.1.txt +24 -0
- package/licenses/overrides/@radix-ui+rect@1.1.1.txt +24 -0
- package/licenses/overrides/@replit+codemirror-css-color-picker@6.3.0.txt +6 -0
- package/licenses/overrides/@scalar+openapi-types@0.8.0.txt +24 -0
- package/licenses/overrides/@scalar+openapi-types@0.9.10.txt +24 -0
- package/licenses/overrides/@scalar+openapi-types@0.9.7.txt +24 -0
- package/licenses/overrides/@scalar+openapi-types@0.9.9.txt +24 -0
- package/licenses/overrides/@scalar+postman-to-openapi@0.7.1.txt +24 -0
- package/licenses/overrides/@scalar+schemas@0.19.0.txt +24 -0
- package/licenses/overrides/@scalar+workspace-store@0.46.3.txt +24 -0
- package/licenses/overrides/@scalar+workspace-store@0.75.0.txt +24 -0
- package/licenses/overrides/assert-plus@1.0.0.txt +24 -0
- package/licenses/overrides/client-only@0.0.1.txt +24 -0
- package/licenses/overrides/embla-carousel-react@8.6.0.txt +24 -0
- package/licenses/overrides/embla-carousel-reactive-utils@8.6.0.txt +24 -0
- package/licenses/overrides/embla-carousel@8.6.0.txt +24 -0
- package/licenses/overrides/fastdom@1.0.12.txt +12 -0
- package/licenses/overrides/precond@0.2.3.txt +22 -0
- package/licenses/overrides/react-remove-scroll-bar@2.3.8.txt +24 -0
- package/licenses/overrides/strictdom@1.0.1.txt +12 -0
- package/licenses/overrides/victory-vendor@36.9.2.txt +33 -0
- package/licenses/runtime/Bun-1.4.3-LICENSE.md +85 -0
- package/licenses/runtime/ICU-78.1-LICENSE.txt +568 -0
- package/licenses/runtime/bun-components/boringssl.txt +238 -0
- package/licenses/runtime/bun-components/brotli.txt +19 -0
- package/licenses/runtime/bun-components/c-ares.txt +24 -0
- package/licenses/runtime/bun-components/highway.txt +371 -0
- package/licenses/runtime/bun-components/libarchive.txt +65 -0
- package/licenses/runtime/bun-components/libbase64.txt +28 -0
- package/licenses/runtime/bun-components/libdeflate.txt +22 -0
- package/licenses/runtime/bun-components/libjpeg-turbo.txt +147 -0
- package/licenses/runtime/bun-components/libspng.txt +25 -0
- package/licenses/runtime/bun-components/libuv.txt +19 -0
- package/licenses/runtime/bun-components/libwebp.txt +30 -0
- package/licenses/runtime/bun-components/llvm.txt +311 -0
- package/licenses/runtime/bun-components/lol-html.txt +27 -0
- package/licenses/runtime/bun-components/ls-hpack.txt +21 -0
- package/licenses/runtime/bun-components/ls-qpack.txt +21 -0
- package/licenses/runtime/bun-components/lsquic-chrome.txt +32 -0
- package/licenses/runtime/bun-components/lsquic.txt +21 -0
- package/licenses/runtime/bun-components/mimalloc.txt +21 -0
- package/licenses/runtime/bun-components/picohttpparser.txt +24 -0
- package/licenses/runtime/bun-components/simdutf-apache.txt +201 -0
- package/licenses/runtime/bun-components/simdutf-mit.txt +18 -0
- package/licenses/runtime/bun-components/tigerbeetle.txt +177 -0
- package/licenses/runtime/bun-components/tinycc.txt +504 -0
- package/licenses/runtime/bun-components/typescript-go.txt +55 -0
- package/licenses/runtime/bun-components/usockets.txt +201 -0
- package/licenses/runtime/bun-components/uucode.txt +30 -0
- package/licenses/runtime/bun-components/uwebsockets.txt +201 -0
- package/licenses/runtime/bun-components/xxhash.txt +31 -0
- package/licenses/runtime/bun-components/zlib-ng.txt +19 -0
- package/licenses/runtime/bun-components/zstd-copying.txt +339 -0
- package/licenses/runtime/bun-components/zstd.txt +30 -0
- package/licenses/runtime/musl-1.2.6-COPYRIGHT.txt +193 -0
- package/miravo +4 -0
- package/native/S7-NOTICES.txt +11 -0
- package/native/miravo-s7.node +0 -0
- package/native/s7-source/CMakeLists.txt +23 -0
- package/native/s7-source/NODE-SNAP7-LICENSE +24 -0
- package/native/s7-source/addon.cpp +124 -0
- package/native/s7-source/bridge.cpp +150 -0
- package/native/s7-source/node-api-headers/LICENSE +21 -0
- package/native/s7-source/node-api-headers/include/js_native_api.h +591 -0
- package/native/s7-source/node-api-headers/include/js_native_api_types.h +213 -0
- package/native/s7-source/node-api-headers/include/node_api.h +265 -0
- package/native/s7-source/node-api-headers/include/node_api_types.h +58 -0
- package/native/s7-source/node-api-windows.h +78 -0
- package/native/s7-source/snap7/HISTORY.txt +277 -0
- package/native/s7-source/snap7/gpl.txt +674 -0
- package/native/s7-source/snap7/lgpl-3.0.txt +165 -0
- package/native/s7-source/snap7/src/core/miravo_request_validation.h +72 -0
- package/native/s7-source/snap7/src/core/s7_client.cpp +503 -0
- package/native/s7-source/snap7/src/core/s7_client.h +104 -0
- package/native/s7-source/snap7/src/core/s7_firmware.h +1256 -0
- package/native/s7-source/snap7/src/core/s7_isotcp.cpp +541 -0
- package/native/s7-source/snap7/src/core/s7_isotcp.h +271 -0
- package/native/s7-source/snap7/src/core/s7_micro_client.cpp +3328 -0
- package/native/s7-source/snap7/src/core/s7_micro_client.h +364 -0
- package/native/s7-source/snap7/src/core/s7_partner.cpp +1178 -0
- package/native/s7-source/snap7/src/core/s7_partner.h +284 -0
- package/native/s7-source/snap7/src/core/s7_peer.cpp +121 -0
- package/native/s7-source/snap7/src/core/s7_peer.h +58 -0
- package/native/s7-source/snap7/src/core/s7_server.cpp +2161 -0
- package/native/s7-source/snap7/src/core/s7_server.h +261 -0
- package/native/s7-source/snap7/src/core/s7_text.cpp +788 -0
- package/native/s7-source/snap7/src/core/s7_text.h +49 -0
- package/native/s7-source/snap7/src/core/s7_types.h +1066 -0
- package/native/s7-source/snap7/src/lib/snap7.def +129 -0
- package/native/s7-source/snap7/src/lib/snap7_libmain.cpp +1196 -0
- package/native/s7-source/snap7/src/lib/snap7_libmain.h +201 -0
- package/native/s7-source/snap7/src/sys/snap_msgsock.cpp +958 -0
- package/native/s7-source/snap7/src/sys/snap_msgsock.h +339 -0
- package/native/s7-source/snap7/src/sys/snap_platform.h +152 -0
- package/native/s7-source/snap7/src/sys/snap_sysutils.cpp +73 -0
- package/native/s7-source/snap7/src/sys/snap_sysutils.h +39 -0
- package/native/s7-source/snap7/src/sys/snap_tcpsrvr.cpp +487 -0
- package/native/s7-source/snap7/src/sys/snap_tcpsrvr.h +247 -0
- package/native/s7-source/snap7/src/sys/snap_threads.cpp +162 -0
- package/native/s7-source/snap7/src/sys/snap_threads.h +45 -0
- package/native/s7-source/snap7/src/sys/sol_threads.h +208 -0
- package/native/s7-source/snap7/src/sys/unix_threads.h +228 -0
- package/native/s7-source/snap7/src/sys/win_threads.h +159 -0
- package/nodesets/.ignore +1 -0
- package/nodesets/1.02/FTNIR.NodeSet2.xml +819 -0
- package/nodesets/1.02/Opc.Ua.Adi.NodeSet2.xml +8301 -0
- package/nodesets/1.02/Opc.Ua.Di.NodeSet2.xml +1785 -0
- package/nodesets/Opc.ISA95.NodeSet2.xml +3589 -0
- package/nodesets/Opc.Ua.AMB.NodeSet2.xml +1395 -0
- package/nodesets/Opc.Ua.Adi.NodeSet2.xml +8301 -0
- package/nodesets/Opc.Ua.Adi.Types.xsd +104 -0
- package/nodesets/Opc.Ua.AutoID.NodeSet2.xml +6062 -0
- package/nodesets/Opc.Ua.CNC.NodeSet.xml +15875 -0
- package/nodesets/Opc.Ua.CommercialKitchenEquipment.NodeSet2.xml +12096 -0
- package/nodesets/Opc.Ua.Di.NodeSet2.xml +6042 -0
- package/nodesets/Opc.Ua.Di.Types.xsd +161 -0
- package/nodesets/Opc.Ua.Eumabois.Nodeset2.xml +2483 -0
- package/nodesets/Opc.Ua.Gds.NodeSet2.xml +8282 -0
- package/nodesets/Opc.Ua.Glass.NodeSet2.xml +5100 -0
- package/nodesets/Opc.Ua.IA.NodeSet2.xml +1782 -0
- package/nodesets/Opc.Ua.IOLink.NodeSet2.xml +4374 -0
- package/nodesets/Opc.Ua.IOLinkIODD.NodeSet2.xml +139 -0
- package/nodesets/Opc.Ua.IRDI.NodeSet2.xml +2243 -0
- package/nodesets/Opc.Ua.Ijt.Base.NodeSet2.xml +19459 -0
- package/nodesets/Opc.Ua.Ijt.Tightening.NodeSet2.xml +883 -0
- package/nodesets/Opc.Ua.LADS.NodeSet2.xml +7086 -0
- package/nodesets/Opc.Ua.MachineTool.NodeSet2.xml +7884 -0
- package/nodesets/Opc.Ua.MachineVision.NodeSet2.xml +17324 -0
- package/nodesets/Opc.Ua.Machinery.Jobs.Nodeset2.xml +1249 -0
- package/nodesets/Opc.Ua.Machinery.NodeSet2.xml +2099 -0
- package/nodesets/Opc.Ua.Machinery.ProcessValues.NodeSet2.xml +1858 -0
- package/nodesets/Opc.Ua.Machinery_Result.NodeSet2.xml +2640 -0
- package/nodesets/Opc.Ua.MetalForming.NodeSet2.xml +1577 -0
- package/nodesets/Opc.Ua.NodeSet2.xml +81975 -0
- package/nodesets/Opc.Ua.PADIM.NodeSet2.xml +14131 -0
- package/nodesets/Opc.Ua.PackML.NodeSet2.xml +3030 -0
- package/nodesets/Opc.Ua.Robotics.NodeSet2.xml +7409 -0
- package/nodesets/Opc.Ua.Scales.NodeSet2.xml +15817 -0
- package/nodesets/Opc.Ua.Types.bsd +3499 -0
- package/nodesets/Opc.Ua.Weihenstephan.NodeSet2.xml +821 -0
- package/nodesets/Opc.Ua.Woodworking.NodeSet2.xml +17831 -0
- package/nodesets/UANodeSet.xsd +497 -0
- package/nodesets/opc.ua.isa95-jobcontrol.nodeset2.xml +4594 -0
- package/package.json +37 -4
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import{a as e}from"./rolldown-runtime-BWaJ3C7D.js";import{c as t}from"./vendor-charts-Bquh2dWE.js";import{F as n,j as r}from"./index-Cf8qRbyA.js";import{t as i}from"./use-transition-navigate-COPPNZaw.js";import{b as a,i as o,u as s}from"./api-13R-Szmo.js";import{ot as c}from"./vendor-ui-BGeFlRLR.js";var l=e(t(),1),u=c(),d=`
|
|
2
|
+
@keyframes readout-appear {
|
|
3
|
+
from { opacity: 0; transform: translateY(8px) scale(0.95); }
|
|
4
|
+
to { opacity: 1; transform: translateY(0) scale(1); }
|
|
5
|
+
}
|
|
6
|
+
@keyframes dot-pulse {
|
|
7
|
+
0%, 100% { opacity: 1; }
|
|
8
|
+
50% { opacity: 0.3; }
|
|
9
|
+
}
|
|
10
|
+
@keyframes login-glow-pulse {
|
|
11
|
+
0% { opacity: 0.75; transform: translate(-50%, -50%) scale(1); }
|
|
12
|
+
100% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.03); }
|
|
13
|
+
}
|
|
14
|
+
@keyframes live-dot {
|
|
15
|
+
0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 20%, transparent); }
|
|
16
|
+
50% { box-shadow: 0 0 0 2px transparent; }
|
|
17
|
+
}
|
|
18
|
+
@keyframes terminal-appear {
|
|
19
|
+
from { opacity: 0; transform: translate(-50%, -50%) scale(0.96); }
|
|
20
|
+
to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
|
|
21
|
+
}
|
|
22
|
+
@keyframes terminal-line {
|
|
23
|
+
from { opacity: 0; transform: translateY(4px); }
|
|
24
|
+
to { opacity: 1; transform: translateY(0); }
|
|
25
|
+
}
|
|
26
|
+
@keyframes cursor-blink {
|
|
27
|
+
0%, 49% { opacity: 0.8; }
|
|
28
|
+
50%, 100% { opacity: 0; }
|
|
29
|
+
}
|
|
30
|
+
@keyframes tree-line {
|
|
31
|
+
from { opacity: 0; transform: translateX(-6px); }
|
|
32
|
+
to { opacity: 1; transform: translateX(0); }
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* ── Layout ───────────────────────────────── */
|
|
36
|
+
.login-page {
|
|
37
|
+
display: grid;
|
|
38
|
+
min-height: 100svh;
|
|
39
|
+
grid-template-columns: 1.2fr 1fr;
|
|
40
|
+
}
|
|
41
|
+
.login-left { display: block; order: -1; }
|
|
42
|
+
|
|
43
|
+
@media (max-width: 1023px) {
|
|
44
|
+
.login-page { grid-template-columns: 1fr; }
|
|
45
|
+
.login-left { display: none !important; }
|
|
46
|
+
}
|
|
47
|
+
@media (max-width: 640px) {
|
|
48
|
+
.login-card { padding: 1.75rem !important; }
|
|
49
|
+
.login-form-area { padding: 2rem 1.25rem !important; }
|
|
50
|
+
.login-header { padding: 1rem 1.25rem !important; }
|
|
51
|
+
.login-footer { padding: 0.75rem 1.25rem !important; }
|
|
52
|
+
}
|
|
53
|
+
@media (max-width: 400px) {
|
|
54
|
+
.login-card { padding: 1.5rem !important; }
|
|
55
|
+
.login-form-area { padding: 1.5rem 1rem !important; }
|
|
56
|
+
.login-header { padding: 0.85rem 1rem !important; }
|
|
57
|
+
.login-footer { padding: 0.65rem 1rem !important; }
|
|
58
|
+
.miravo-input { padding: 0.8rem 0.9rem !important; font-size: 1rem !important; }
|
|
59
|
+
.miravo-btn { padding: 0.9rem !important; font-size: 0.95rem !important; }
|
|
60
|
+
}
|
|
61
|
+
@media (max-width: 1023px) {
|
|
62
|
+
.login-form-panel {
|
|
63
|
+
background-image:
|
|
64
|
+
radial-gradient(ellipse 90% 50% at 50% 45%, color-mix(in srgb, var(--primary) 5%, transparent) 0%, transparent 65%),
|
|
65
|
+
radial-gradient(circle, color-mix(in srgb, var(--primary) 6%, transparent) 1px, transparent 1px);
|
|
66
|
+
background-size: auto, 70px 70px;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* ── Form elements ────────────────────────── */
|
|
71
|
+
.miravo-input {
|
|
72
|
+
width: 100%;
|
|
73
|
+
padding: 0.7rem 0.9rem;
|
|
74
|
+
background: var(--secondary);
|
|
75
|
+
border: 1px solid color-mix(in srgb, var(--tooltip-border) 45%, transparent);
|
|
76
|
+
border-radius: 4px;
|
|
77
|
+
color: var(--foreground);
|
|
78
|
+
font-family: var(--font-body);
|
|
79
|
+
font-size: 0.88rem;
|
|
80
|
+
outline: none;
|
|
81
|
+
transition: border-color 0.2s, box-shadow 0.2s;
|
|
82
|
+
box-sizing: border-box;
|
|
83
|
+
}
|
|
84
|
+
.miravo-input:focus {
|
|
85
|
+
border-color: color-mix(in srgb, var(--ring) 55%, transparent);
|
|
86
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 15%, transparent);
|
|
87
|
+
}
|
|
88
|
+
.miravo-input::placeholder {
|
|
89
|
+
color: color-mix(in srgb, var(--tooltip-border) 70%, transparent);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.miravo-btn {
|
|
93
|
+
width: 100%;
|
|
94
|
+
padding: 0.78rem;
|
|
95
|
+
background: var(--primary);
|
|
96
|
+
border: none;
|
|
97
|
+
border-radius: var(--miravo-radius-pill);
|
|
98
|
+
color: var(--primary-foreground);
|
|
99
|
+
font-family: var(--font-heading);
|
|
100
|
+
font-size: 0.88rem;
|
|
101
|
+
font-weight: 700;
|
|
102
|
+
cursor: pointer;
|
|
103
|
+
letter-spacing: -0.01em;
|
|
104
|
+
box-shadow:
|
|
105
|
+
0 0 20px color-mix(in srgb, var(--primary) 15%, transparent),
|
|
106
|
+
0 1px 3px color-mix(in srgb, var(--background) 30%, transparent);
|
|
107
|
+
transition: filter 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s cubic-bezier(0.22, 1, 0.36, 1), transform 0.15s cubic-bezier(0.22, 1, 0.36, 1);
|
|
108
|
+
}
|
|
109
|
+
.miravo-btn:hover:not(:disabled) {
|
|
110
|
+
filter: brightness(1.1);
|
|
111
|
+
box-shadow:
|
|
112
|
+
0 0 30px color-mix(in srgb, var(--primary) 22%, transparent),
|
|
113
|
+
0 2px 8px color-mix(in srgb, var(--background) 40%, transparent);
|
|
114
|
+
transform: translateY(-1px);
|
|
115
|
+
}
|
|
116
|
+
.miravo-btn:active:not(:disabled) { transform: translateY(0); }
|
|
117
|
+
.miravo-btn:disabled { opacity: 0.5; cursor: not-allowed; }
|
|
118
|
+
|
|
119
|
+
.miravo-btn-ghost {
|
|
120
|
+
background: transparent;
|
|
121
|
+
border: none;
|
|
122
|
+
font-family: var(--font-body);
|
|
123
|
+
font-size: 0.78rem;
|
|
124
|
+
color: var(--muted-foreground);
|
|
125
|
+
cursor: pointer;
|
|
126
|
+
transition: color 0.2s;
|
|
127
|
+
padding: 0;
|
|
128
|
+
text-decoration: underline;
|
|
129
|
+
text-underline-offset: 3px;
|
|
130
|
+
text-decoration-color: transparent;
|
|
131
|
+
}
|
|
132
|
+
.miravo-btn-ghost:hover {
|
|
133
|
+
color: var(--foreground);
|
|
134
|
+
text-decoration-color: var(--tooltip-border);
|
|
135
|
+
}
|
|
136
|
+
`;function f({label:e,forId:t,children:n}){return(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`label`,{htmlFor:t,style:{fontFamily:`var(--font-mono)`,fontSize:`0.72rem`,letterSpacing:`0.03em`,color:`var(--muted-foreground)`,display:`block`,marginBottom:`0.5rem`},children:e}),n]})}function p({message:e}){return(0,u.jsx)(`p`,{role:`alert`,style:{fontSize:`0.82rem`,color:`var(--destructive)`,textAlign:`center`,padding:`0.55rem 0.9rem`,background:`color-mix(in srgb, var(--destructive) 6%, transparent)`,border:`1px solid color-mix(in srgb, var(--destructive) 12%, transparent)`,borderRadius:4,margin:`0 0 1rem`},children:e})}function m({onChangePassword:e}){let t=i(),[n,o]=(0,l.useState)(``),[c,d]=(0,l.useState)(``),[m,h]=(0,l.useState)(``),[g,_]=(0,l.useState)(!1);async function v(i){i.preventDefault(),h(``),_(!0);try{(await s(n,c)).changePassword?e(n):(a.removeQueries({queryKey:[`bootstrap`]}),t(`/`,{replace:!0}))}catch(e){h(r(e,`Login failed`))}finally{_(!1)}}return(0,u.jsxs)(`form`,{onSubmit:v,children:[(0,u.jsx)(`div`,{style:{marginBottom:`2rem`},children:(0,u.jsx)(`h1`,{style:{fontFamily:`var(--font-heading)`,fontSize:`1.5rem`,fontWeight:800,color:`var(--foreground)`,letterSpacing:`-0.035em`,lineHeight:1.15,margin:0},children:`Log in`})}),m&&(0,u.jsx)(p,{message:m}),(0,u.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`1.15rem`},children:[(0,u.jsx)(f,{label:`Username`,forId:`username`,children:(0,u.jsx)(`input`,{id:`username`,type:`text`,className:`miravo-input`,autoComplete:`username`,required:!0,value:n,onChange:e=>o(e.target.value)})}),(0,u.jsx)(f,{label:`Password`,forId:`password`,children:(0,u.jsx)(`input`,{id:`password`,type:`password`,className:`miravo-input`,autoComplete:`current-password`,required:!0,value:c,onChange:e=>d(e.target.value)})}),(0,u.jsx)(`button`,{type:`submit`,className:`miravo-btn`,disabled:g,style:{marginTop:`0.5rem`},children:g?`Logging in…`:`Log in`})]})]})}function h({username:e}){let t=i(),[n,s]=(0,l.useState)(``),[c,d]=(0,l.useState)(``),[m,h]=(0,l.useState)(``),[g,_]=(0,l.useState)(!1);async function v(i){if(i.preventDefault(),h(``),n!==c)h(`Passwords do not match`);else if(n.length<6)h(`Password must be at least 6 characters`);else{_(!0);try{await o(e,n),a.removeQueries({queryKey:[`bootstrap`]}),t(`/`,{replace:!0})}catch(e){h(r(e,`Password change failed`))}finally{_(!1)}}}return(0,u.jsxs)(`form`,{onSubmit:v,children:[(0,u.jsxs)(`div`,{style:{marginBottom:`2rem`},children:[(0,u.jsx)(`h1`,{style:{fontFamily:`var(--font-heading)`,fontSize:`1.5rem`,fontWeight:800,color:`var(--foreground)`,letterSpacing:`-0.035em`,lineHeight:1.15,margin:0},children:`Update password`}),(0,u.jsxs)(`p`,{style:{fontSize:`0.82rem`,color:`var(--muted-foreground)`,marginTop:`0.4rem`,lineHeight:1.5},children:[`Default password detected.`,` `,(0,u.jsx)(`span`,{style:{color:`var(--warning)`},children:`Please set a new one.`})]})]}),m&&(0,u.jsx)(p,{message:m}),(0,u.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`1.1rem`},children:[(0,u.jsx)(f,{label:`New password`,forId:`new-password`,children:(0,u.jsx)(`input`,{id:`new-password`,type:`password`,className:`miravo-input`,autoComplete:`new-password`,required:!0,minLength:6,value:n,onChange:e=>s(e.target.value)})}),(0,u.jsx)(f,{label:`Confirm password`,forId:`confirm-password`,children:(0,u.jsx)(`input`,{id:`confirm-password`,type:`password`,className:`miravo-input`,autoComplete:`new-password`,required:!0,minLength:6,value:c,onChange:e=>d(e.target.value)})}),(0,u.jsx)(`button`,{type:`submit`,className:`miravo-btn`,disabled:g,style:{marginTop:`0.4rem`},children:g?`Setting password…`:`Set password`}),(0,u.jsx)(`div`,{style:{textAlign:`center`,marginTop:`0.15rem`},children:(0,u.jsx)(`button`,{type:`button`,className:`miravo-btn-ghost`,onClick:()=>{a.removeQueries({queryKey:[`bootstrap`]}),t(`/`,{replace:!0})},children:`Skip for now`})})]})]})}function g(){let e=(0,l.useRef)(null);return(0,l.useEffect)(()=>{let t=e.current;if(!t)return;let n=t.getContext(`2d`);if(!n)return;let r=t,i=n,a=getComputedStyle(document.documentElement).getPropertyValue(`--primary`).trim(),o=window.devicePixelRatio||1,s=0,c=0,l=0,u=0,d=[],f=[],p=[];function m(){d=[],f=[],p=[];let e=Math.max(15,Math.floor(s*c/35e3));for(let t=0;t<e;t++)d.push({x:0,y:0,bx:25+Math.random()*(s-50),by:25+Math.random()*(c-50),r:1+Math.random()*1.2,phase:Math.random()*Math.PI*2});for(let e=0;e<d.length;e++)for(let t=e+1;t<d.length;t++){let n=d[e],r=d[t];n&&r&&Math.hypot(n.bx-r.bx,n.by-r.by)<160&&Math.random()>.5&&f.push({from:e,to:t})}}function h(){s=r.offsetWidth,c=r.offsetHeight,r.width=s*o,r.height=c*o,i.setTransform(o,0,0,o,0,0),m()}function g(){l+=.016,i.clearRect(0,0,s,c);for(let e of d)e.x=e.bx+Math.sin(l*.15+e.phase)*5,e.y=e.by+Math.cos(l*.1+e.phase*1.3)*4;let e=new Set;for(let t of p)e.add(t.conn.from*256+t.conn.to);i.strokeStyle=a,i.lineWidth=.5;for(let t of f){let n=d[t.from],r=d[t.to];n&&r&&(i.globalAlpha=e.has(t.from*256+t.to)?.04:.012,i.beginPath(),i.moveTo(n.x,n.y),i.lineTo(r.x,r.y),i.stroke())}i.fillStyle=a;for(let e of d){let t=.6+Math.sin(l*.4+e.phase)*.4;i.globalAlpha=.08*t,i.beginPath(),i.arc(e.x,e.y,e.r,0,Math.PI*2),i.fill()}if(Math.random()<.03&&f.length&&p.length<10){let e=f[Math.floor(Math.random()*f.length)];e&&p.push({conn:e,t:0,speed:.002+Math.random()*.003,alpha:.25+Math.random()*.35,size:1+Math.random()*1})}i.fillStyle=a;for(let e=p.length-1;e>=0;e--){let t=p[e];if(!t)continue;if(t.t+=t.speed,t.t>=1){p.splice(e,1);continue}let n=d[t.conn.from],r=d[t.conn.to];if(!n||!r)continue;let a=n.x+(r.x-n.x)*t.t,o=n.y+(r.y-n.y)*t.t;i.globalAlpha=t.alpha*.35,i.beginPath(),i.arc(a,o,t.size,0,Math.PI*2),i.fill()}i.globalAlpha=1,u=requestAnimationFrame(g)}let _=()=>{document.hidden?cancelAnimationFrame(u):u=requestAnimationFrame(g)},v,y=()=>{window.clearTimeout(v),v=window.setTimeout(h,250)};if(!window.matchMedia(`(prefers-reduced-motion: reduce)`).matches)return document.addEventListener(`visibilitychange`,_),window.addEventListener(`resize`,y),h(),g(),()=>{cancelAnimationFrame(u),window.clearTimeout(v),document.removeEventListener(`visibilitychange`,_),window.removeEventListener(`resize`,y)}},[]),(0,u.jsx)(`canvas`,{ref:e,style:{position:`absolute`,inset:0,width:`100%`,height:`100%`}})}var _=[{path:`pump-001/temp`,base:87.3,range:5,decimals:1,unit:`°C`,style:{left:`6%`,top:`18%`},delay:`1.4s`},{path:`comp/pressure`,base:4.21,range:.5,decimals:2,unit:`bar`,style:{right:`5%`,top:`12%`},delay:`1.7s`},{path:`motor/vibration`,base:2.14,range:.3,decimals:2,unit:`mm/s`,style:{left:`4%`,bottom:`18%`},delay:`2.0s`},{path:`gen/power`,base:482,range:20,decimals:0,unit:`kW`,style:{right:`4%`,bottom:`17%`},delay:`2.3s`},{path:`boiler/temp`,base:312,range:8,decimals:0,unit:`°C`,style:{left:`22%`,top:`8%`},delay:`2.6s`},{path:`turb/rpm`,base:1480,range:30,decimals:0,unit:`rpm`,style:{left:0,right:0,marginLeft:`auto`,marginRight:`auto`,width:`max-content`,bottom:`10%`},delay:`2.9s`}];function v(){let[e,t]=(0,l.useState)(()=>_.map(e=>({...e,displayValue:(e.base+(Math.random()-.5)*e.range).toFixed(e.decimals),flash:!1})));return(0,l.useEffect)(()=>{let e;function n(){document.hidden||(t(e=>e.map(e=>({...e,displayValue:(e.base+(Math.random()-.5)*e.range).toFixed(e.decimals),flash:!0}))),window.clearTimeout(e),e=window.setTimeout(()=>{t(e=>e.map(e=>({...e,flash:!1})))},400))}let r=window.setInterval(n,2200);return()=>{window.clearInterval(r),window.clearTimeout(e)}},[]),(0,u.jsx)(`div`,{style:{position:`absolute`,inset:0,zIndex:3,pointerEvents:`none`},children:e.map(e=>(0,u.jsxs)(`div`,{style:{position:`absolute`,...e.style,display:`flex`,alignItems:`center`,gap:`0.45rem`,padding:`0.32rem 0.7rem`,background:`color-mix(in srgb, var(--background) 70%, transparent)`,backdropFilter:`blur(6px)`,WebkitBackdropFilter:`blur(6px)`,border:`1px solid color-mix(in srgb, var(--primary) 8%, transparent)`,borderRadius:4,fontFamily:`var(--font-mono)`,fontSize:`0.61rem`,letterSpacing:`0.02em`,opacity:0,animation:`readout-appear 0.6s cubic-bezier(0.22,1,0.36,1) ${e.delay} forwards`},children:[(0,u.jsx)(`span`,{style:{width:4,height:4,borderRadius:`50%`,background:`var(--primary)`,boxShadow:`0 0 3px color-mix(in srgb, var(--primary) 18%, transparent)`,animation:`dot-pulse 2.5s ease-in-out infinite`,flexShrink:0,display:`block`}}),(0,u.jsx)(`span`,{style:{color:`var(--tooltip-border)`},children:e.path}),(0,u.jsx)(`span`,{style:{color:e.flash?`var(--warning)`:`var(--primary)`,fontWeight:600,minWidth:`3em`,textAlign:`right`,transition:`color 0.4s`},children:e.displayValue}),(0,u.jsx)(`span`,{style:{color:`var(--tooltip-border)`,fontSize:`0.54rem`},children:e.unit})]},e.path))})}var y=`miravo start --template smart-factory`,b=6,x=[{id:`sf`,indent:``,label:`site`,text:`smart-factory`},{id:`l1`,indent:` `,label:`area`,text:`line-1`},{id:`p001`,indent:` `,label:`cell`,text:`pump-001`},{id:`p001-t`,indent:` `,text:`temperature`,value:{base:87.3,range:5,decimals:1,unit:`°C`},protocol:`mqtt`},{id:`p001-p`,indent:` `,text:`pressure`,value:{base:4.21,range:.5,decimals:2,unit:`bar`},protocol:`opcua`},{id:`p001-v`,indent:` `,text:`vibration`,value:{base:2.14,range:.3,decimals:2,unit:`mm/s`},protocol:`modbus`},{id:`b002`,indent:` `,label:`cell`,text:`boiler-002`},{id:`b002-t`,indent:` `,text:`temperature`,value:{base:312,range:8,decimals:0,unit:`°C`},protocol:`mqtt`},{id:`c003`,indent:` `,label:`cell`,text:`comp-003`},{id:`c003-r`,indent:` `,text:`rpm`,value:{base:1480,range:30,decimals:0,unit:`rpm`},protocol:`modbus`},{id:`l2`,indent:` `,label:`area`,text:`line-2`},{id:`t004`,indent:` `,label:`cell`,text:`tank-004`},{id:`t004-l`,indent:` `,text:`level`,value:{base:72.1,range:5,decimals:1,unit:`%`},protocol:`mqtt`},{id:`m005`,indent:` `,label:`cell`,text:`motor-005`},{id:`m005-c`,indent:` `,text:`current`,value:{base:12.4,range:1.5,decimals:1,unit:`A`},protocol:`opcua`}],S=14,C=x.flatMap((e,t)=>e.value?[t]:[]),w=4+x.length,T=.66,E=1.85,D=2.1+w*T*E+1.15*T,O=[{assetId:`p001`,name:`cavitation`,event:`fault:cavitation on pump-001: pressure drop`,resolve:`fault:resolved on pump-001: nominal`,overrides:[{tagId:`p001-t`,base:95.2,range:3},{tagId:`p001-p`,base:1.83,range:.3},{tagId:`p001-v`,base:8.71,range:1.5}]},{assetId:`c003`,name:`bearing-wear`,event:`lifecycle:degraded on comp-003: rpm declining`,resolve:`lifecycle:restored on comp-003: nominal`,overrides:[{tagId:`c003-r`,base:924,range:40}]},{assetId:`m005`,name:`overcurrent`,event:`fault:overcurrent on motor-005: current spike`,resolve:`fault:resolved on motor-005: nominal`,overrides:[{tagId:`m005-c`,base:24.8,range:3}]}],k=new Map(x.map((e,t)=>[e.id,t]));function A(){let[e,t]=(0,l.useState)(0),[n,r]=(0,l.useState)(0),[i,a]=(0,l.useState)(()=>x.map(e=>e.value?(e.value.base+(Math.random()-.5)*e.value.range).toFixed(e.value.decimals):``)),[o,s]=(0,l.useState)(new Set),[c,d]=(0,l.useState)(null),[f,p]=(0,l.useState)(`+231 tags streaming`),m=(0,l.useRef)(new Set);(0,l.useEffect)(()=>{let e={timers:[],typeInt:0,liveInt:0,flashT:0},n=(t,n)=>{e.timers.push(window.setTimeout(t,n))},i=0;return n(()=>{e.typeInt=window.setInterval(()=>{if(i++,t(i),i>=37){window.clearInterval(e.typeInt),n(()=>r(1),400),n(()=>r(2),750),n(()=>r(3),1150);for(let e=0;e<x.length;e++)n(()=>r(4+e),1300+e*110);let t=1300+x.length*110+250;n(()=>r(w),t),n(()=>{e.liveInt=window.setInterval(()=>{let t=2+Math.floor(Math.random()*2),n=[...C.filter(e=>!m.current.has(e))].sort(()=>Math.random()-.5).slice(0,t),r=new Set(n);a(e=>{let t=[...e];for(let e of r){let n=x[e]?.value;n&&(t[e]=(n.base+(Math.random()-.5)*n.range).toFixed(n.decimals))}return t}),s(r),window.clearTimeout(e.flashT),e.flashT=window.setTimeout(()=>s(new Set),350)},1600);let t=0,r=()=>{let e=O[t%O.length];if(!e)return;let i=new Set(e.overrides.map(e=>k.get(e.tagId)).filter(e=>e!==void 0));m.current=i,d({assetId:e.assetId,name:e.name,indices:i}),p(e.event),a(t=>{let n=[...t];for(let t of e.overrides){let e=k.get(t.tagId);if(e!==void 0){let r=x[e];n[e]=(t.base+(Math.random()-.5)*t.range).toFixed(r?.value?.decimals??1)}}return n}),n(()=>{m.current=new Set,d(null),p(e.resolve),a(t=>{let n=[...t];for(let t of e.overrides){let e=k.get(t.tagId);if(e!==void 0){let t=x[e];t?.value&&(n[e]=(t.value.base+(Math.random()-.5)*t.value.range).toFixed(t.value.decimals))}}return n}),n(()=>{p(`+231 tags streaming`),t++,n(r,8e3)},4e3)},1e4)};n(r,8e3)},t+500)}},32)},200),()=>{for(let t of e.timers)window.clearTimeout(t);window.clearInterval(e.typeInt),window.clearInterval(e.liveInt),window.clearTimeout(e.flashT)}},[]);let h=y.slice(0,Math.min(e,b)),g=e>b?y.slice(b,e):``;return(0,u.jsx)(`div`,{style:{position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,zIndex:5,pointerEvents:`none`},children:(0,u.jsxs)(`div`,{style:{border:`1px solid color-mix(in srgb, var(--primary) 10%, transparent)`,borderRadius:4,boxShadow:`none`,overflow:`hidden`,width:540},children:[(0,u.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:6,padding:`0.5rem 0.85rem`,background:`color-mix(in srgb, var(--sidebar) 50%, transparent)`,backdropFilter:`blur(8px)`,WebkitBackdropFilter:`blur(8px)`,borderBottom:`1px solid color-mix(in srgb, var(--primary) 6%, transparent)`},children:[(0,u.jsx)(`span`,{style:{width:7,height:7,borderRadius:`50%`,background:`#ff5f57`,opacity:.5}}),(0,u.jsx)(`span`,{style:{width:7,height:7,borderRadius:`50%`,background:`#febc2e`,opacity:.5}}),(0,u.jsx)(`span`,{style:{width:7,height:7,borderRadius:`50%`,background:`#28c840`,opacity:.5}}),(0,u.jsx)(`span`,{style:{fontFamily:`var(--font-mono)`,fontSize:`0.5rem`,color:`var(--tooltip-foreground)`,marginLeft:`auto`,letterSpacing:`0.04em`,opacity:.5},children:`Factory simulator`})]}),(0,u.jsxs)(`div`,{style:{height:`min(${D}rem, calc(100vh - 11rem))`,overflowY:`auto`,overflowX:`hidden`,background:`color-mix(in srgb, var(--card) 60%, transparent)`,padding:`1rem 1.25rem 1.1rem`,fontFamily:`var(--font-mono)`,fontSize:`${T}rem`,lineHeight:E,whiteSpace:`pre`},children:[(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`span`,{style:{color:`var(--muted-foreground)`},children:`$ `}),(0,u.jsx)(`span`,{style:{color:`var(--primary)`},children:h}),(0,u.jsx)(`span`,{style:{color:`var(--foreground)`,opacity:.9},children:g}),e>0&&e<37&&(0,u.jsx)(`span`,{style:{display:`inline-block`,width:5,height:10,background:`var(--primary)`,verticalAlign:`text-bottom`,marginLeft:1,animation:`cursor-blink 1s step-end infinite`}})]}),n>=1&&(0,u.jsxs)(`div`,{style:{opacity:0,animation:`terminal-line 0.4s ease forwards`},children:[(0,u.jsx)(`span`,{style:{color:`var(--primary)`},children:`✓`}),(0,u.jsx)(`span`,{style:{color:`var(--tooltip-foreground)`},children:` Loaded `}),(0,u.jsx)(`span`,{style:{color:`var(--primary)`},children:`smart-factory`}),(0,u.jsx)(`span`,{style:{color:`var(--muted-foreground)`},children:` · 10 assets · 240 tags`})]}),n>=2&&(0,u.jsxs)(`div`,{style:{opacity:0,animation:`terminal-line 0.4s ease 0.05s forwards`},children:[(0,u.jsx)(`span`,{style:{color:`var(--primary)`},children:`✓`}),(0,u.jsx)(`span`,{style:{color:`var(--tooltip-foreground)`},children:` Protocols `}),(0,u.jsx)(`span`,{style:{color:`var(--muted-foreground)`},children:`mqtt :1883 · opcua :4840 · modbus :1502`})]}),n>=3&&(0,u.jsx)(`div`,{style:{opacity:0,animation:`terminal-line 0.3s ease forwards`,marginTop:`0.6em`}}),x.map((e,t)=>{if(n<4+t)return null;let r=!!e.value;return(0,u.jsxs)(`div`,{style:{opacity:0,animation:`tree-line 0.3s ease forwards`},children:[(0,u.jsx)(`span`,{style:{color:`var(--tooltip-border)`},children:e.indent}),r&&e.value?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`span`,{style:{color:`var(--muted-foreground)`},children:e.text.padEnd(S)}),(0,u.jsx)(`span`,{style:{color:c?.indices.has(t)?`var(--destructive)`:o.has(t)?`var(--primary)`:`var(--foreground)`,transition:`color 0.3s`},children:(i[t]??``).padStart(7)}),(0,u.jsx)(`span`,{style:{color:`var(--tooltip-border)`},children:` ${e.value.unit.padEnd(5)}`}),e.protocol&&(0,u.jsx)(`span`,{style:{color:`var(--tooltip-border)`},children:e.protocol})]}):(0,u.jsxs)(u.Fragment,{children:[e.label&&(0,u.jsx)(`span`,{style:{color:`var(--tooltip-border)`},children:`${e.label}: `}),(0,u.jsx)(`span`,{style:{color:`var(--tooltip-foreground)`},children:e.text}),e.label===`cell`&&c?.assetId===e.id&&(0,u.jsxs)(`span`,{style:{marginLeft:`0.8em`,color:`var(--destructive)`,fontSize:`0.9em`},children:[`: `,c.name]})]})]},e.id)}),n>=w&&(0,u.jsx)(`div`,{style:{opacity:0,animation:`terminal-line 0.4s ease forwards`,marginTop:`0.55em`,textAlign:`right`},children:(0,u.jsx)(`span`,{style:{color:f.includes(`resolved`)||f.includes(`restored`)||f.includes(`fault:`)||f.includes(`lifecycle:`)?`var(--muted-foreground)`:`var(--tooltip-border)`,transition:`color 0.4s`},children:f})})]})]})})}function j(){let[e,t]=(0,l.useState)(!1),[r,i]=(0,l.useState)(``);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`style`,{children:d}),(0,u.jsxs)(`div`,{className:`login-page`,children:[(0,u.jsxs)(`div`,{className:`login-form-panel`,style:{background:`var(--background)`,backgroundImage:`radial-gradient(circle, color-mix(in srgb, var(--primary) 2.2%, transparent) 1px, transparent 1px)`,backgroundSize:`70px 70px`,display:`flex`,flexDirection:`column`,position:`relative`,overflow:`hidden`},children:[(0,u.jsx)(`div`,{style:{position:`absolute`,bottom:-80,right:-80,width:400,height:400,background:`radial-gradient(circle, color-mix(in srgb, var(--primary) 3.5%, transparent) 0%, transparent 65%)`,pointerEvents:`none`}}),(0,u.jsx)(`div`,{className:`login-header`,style:{padding:`1.25rem 2rem`,borderBottom:`1px solid var(--secondary)`,zIndex:1,display:`flex`,alignItems:`center`,justifyContent:`space-between`},children:(0,u.jsxs)(n,{to:`/`,style:{display:`inline-flex`,alignItems:`center`,gap:`0.5rem`,textDecoration:`none`},children:[(0,u.jsx)(`span`,{style:{display:`flex`,width:32,height:32,flexShrink:0,alignItems:`center`,justifyContent:`center`},children:(0,u.jsx)(`img`,{src:`/miravo-logo.webp`,alt:``,width:28,height:28,loading:`eager`,decoding:`async`,style:{display:`block`,width:`100%`,height:`100%`,objectFit:`contain`,transform:`translateY(1.5px)`}})}),(0,u.jsx)(`span`,{style:{fontFamily:`var(--font-heading)`,fontSize:`1.25rem`,fontWeight:600,color:`var(--foreground)`,letterSpacing:`-0.025em`,lineHeight:1},children:`Miravo`}),(0,u.jsx)(`span`,{style:{fontFamily:`var(--font-mono)`,fontSize:`0.52rem`,fontWeight:600,color:`var(--primary)`,background:`color-mix(in srgb, var(--primary) 6%, transparent)`,border:`1px solid color-mix(in srgb, var(--primary) 14%, transparent)`,padding:`0.2rem 0.5rem`,borderRadius:4,lineHeight:1,display:`inline-flex`,alignItems:`center`,alignSelf:`center`},children:`Console`})]})}),(0,u.jsx)(`div`,{className:`login-form-area`,style:{flex:1,display:`flex`,alignItems:`center`,justifyContent:`center`,padding:`2.5rem 2rem`,zIndex:1},children:(0,u.jsx)(`div`,{style:{width:`100%`,maxWidth:370},children:(0,u.jsxs)(`div`,{className:`login-card`,style:{position:`relative`,background:`var(--card)`,border:`1px solid color-mix(in srgb, var(--secondary) 80%, transparent)`,borderRadius:4,overflow:`hidden`,padding:`2.25rem`},children:[(0,u.jsx)(`div`,{style:{position:`absolute`,top:0,left:14,right:14,height:1,background:`linear-gradient(90deg, transparent, color-mix(in srgb, var(--primary) 35%, transparent) 20%, color-mix(in srgb, var(--primary) 35%, transparent) 80%, transparent)`}}),e?(0,u.jsx)(h,{username:r}):(0,u.jsx)(m,{onChangePassword:e=>{i(e),t(!0)}})]})})}),(0,u.jsxs)(`div`,{className:`login-footer`,style:{padding:`0.9rem 2rem`,borderTop:`1px solid var(--secondary)`,display:`flex`,justifyContent:`space-between`,alignItems:`center`,zIndex:1},children:[(0,u.jsx)(`span`,{style:{fontFamily:`var(--font-mono)`,fontSize:`0.6rem`,color:`var(--tooltip-border)`,letterSpacing:`0.04em`},children:`Miravo Console`}),(0,u.jsx)(`span`,{style:{fontFamily:`var(--font-mono)`,fontSize:`0.6rem`,color:`var(--tooltip-border)`,letterSpacing:`0.04em`},children:`© 2026`})]})]}),(0,u.jsxs)(`div`,{className:`login-left`,style:{position:`relative`,background:`var(--background)`,overflow:`hidden`,borderRight:`1px solid color-mix(in srgb, var(--primary) 8%, transparent)`},children:[(0,u.jsx)(`div`,{style:{position:`absolute`,inset:0,zIndex:4,pointerEvents:`none`,opacity:.025,backgroundImage:`url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")`,backgroundSize:`200px 200px`}}),(0,u.jsx)(g,{}),(0,u.jsx)(`div`,{style:{position:`absolute`,inset:0,zIndex:1,background:`radial-gradient(ellipse 75% 70% at 50% 50%, transparent 40%, color-mix(in srgb, var(--background) 55%, transparent) 100%)`,pointerEvents:`none`}}),(0,u.jsx)(`div`,{style:{position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,width:700,height:500,background:`radial-gradient(ellipse at center, color-mix(in srgb, var(--primary) 1.8%, transparent) 0%, transparent 65%)`,pointerEvents:`none`,zIndex:2,animation:`login-glow-pulse 8s ease-in-out infinite alternate`}}),(0,u.jsx)(v,{}),(0,u.jsx)(A,{})]})]})]})}export{j as LoginPage};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./triangle-alert-3Ab-dBrN.js";import{t}from"./arrow-up-right-DOENs04V.js";import{n}from"./utils-D6wrZy-b.js";import{n as r,s as i}from"./chunk-6KYCQHYJ-ga3Yekab.js";import{M as a}from"./index-Cf8qRbyA.js";import{ot as o}from"./vendor-ui-BGeFlRLR.js";var s=n(`house`,[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]]),c=o();function l(){let n=i();return(0,c.jsx)(a,{className:`min-h-full px-6 py-8 md:px-8`,children:(0,c.jsx)(`div`,{className:`mx-auto flex min-h-[calc(100svh-9rem)] max-w-3xl items-center justify-center`,children:(0,c.jsx)(`section`,{className:`relative w-full overflow-hidden rounded-[var(--miravo-radius-stadium-lg)] border border-primary/20 bg-transparent p-8 md:p-10`,children:(0,c.jsxs)(`div`,{className:`relative space-y-8`,children:[(0,c.jsxs)(`div`,{className:`space-y-4`,children:[(0,c.jsx)(`p`,{className:`font-mono text-xs uppercase tracking-[0.4em] text-muted-foreground`,children:`Fault code 404`}),(0,c.jsxs)(`div`,{className:`flex items-end gap-4`,children:[(0,c.jsx)(`span`,{className:`font-heading text-7xl font-black leading-none tracking-[-0.08em] text-transparent [-webkit-text-stroke:1px_color-mix(in_srgb,var(--primary)_55%,transparent)] md:text-9xl`,children:`404`}),(0,c.jsx)(`div`,{className:`mb-2 h-px flex-1 bg-linear-to-r from-primary/60 to-transparent`})]}),(0,c.jsxs)(`div`,{className:`max-w-2xl space-y-3`,children:[(0,c.jsx)(`h1`,{className:`text-4xl font-semibold tracking-[-0.04em] text-foreground md:text-5xl`,children:`Route not found in the control surface`}),(0,c.jsx)(`p`,{className:`max-w-xl text-base text-muted-foreground md:text-lg`,children:`This address does not map to an active console view.`})]})]}),(0,c.jsxs)(`div`,{className:`rounded-[var(--miravo-radius-stadium-sm)] border border-border/80 bg-background/55 p-5 backdrop-blur-sm`,children:[(0,c.jsxs)(`div`,{className:`mb-3 flex items-center gap-2 font-mono text-[0.7rem] uppercase tracking-[0.28em] text-muted-foreground`,children:[(0,c.jsx)(e,{className:`size-3.5 text-primary`}),`Requested path`]}),(0,c.jsx)(`code`,{className:`block overflow-x-auto rounded-[var(--miravo-radius-stadium-sm)] border border-primary/15 bg-background/30 px-4 py-3 font-mono text-sm text-primary`,children:n.pathname})]}),(0,c.jsxs)(`div`,{className:`flex flex-wrap gap-3`,children:[(0,c.jsxs)(r,{to:`/`,className:`inline-flex items-center gap-2 rounded-[var(--miravo-radius-pill)] border border-foreground/15 bg-foreground px-4 py-2.5 font-medium text-background transition hover:bg-foreground/90`,children:[(0,c.jsx)(s,{className:`size-4`}),`Return to Factory`]}),(0,c.jsxs)(r,{to:`/catalog`,className:`group inline-flex items-center gap-3 rounded-[var(--miravo-radius-pill)] border border-foreground/8 bg-background/20 px-3 py-2.5 text-foreground shadow-[inset_0_1px_0_color-mix(in_srgb,var(--foreground)_4%,transparent)] backdrop-blur-sm transition hover:border-primary/30 hover:bg-primary/8 hover:text-primary`,children:[(0,c.jsx)(`span`,{className:`inline-flex size-8 items-center justify-center rounded-[var(--miravo-radius-tight)] border border-foreground/8 bg-foreground/4 text-muted-foreground transition group-hover:border-primary/25 group-hover:bg-primary/12 group-hover:text-primary`,children:(0,c.jsx)(t,{className:`size-4`})}),(0,c.jsx)(`span`,{className:`font-medium tracking-[-0.01em]`,children:`Open Catalog`})]})]})]})})})})}export{l as NotFoundPage};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e}from"./rolldown-runtime-BWaJ3C7D.js";import{n as t,t as n}from"./by-path-BVKB6Tic.js";import{A as r,C as i,D as a,E as o,F as s,H as c,I as l,L as u,O as d,P as f,T as p,V as m,X as h,_ as g,a as ee,b as te,d as _,g as v,h as y,i as ne,j as b,k as x,n as re,o as ie,r as ae,s as oe,t as se,w as ce,x as le,y as ue}from"./status-DQYLUbXs.js";import{a as de,n as fe,o as pe,r as me,t as he}from"./boiler-s_q0j7rz.js";import{r as ge,t as _e}from"./chiller-r7DzAhJq.js";import{C as ve,a as ye,b as be,c as S,d as xe,f as Se,l as C,m as Ce,n as we,s as Te}from"./dom-BxZbg3NX.js";import{a as Ee,i as De,n as Oe,o as ke,r as Ae,s as je,t as Me}from"./rtu-ByogcRPI.js";import{i as Ne,n as Pe,r as Fe,t as Ie}from"./tank-Btg5piqB.js";import{t as Le}from"./stages-EYRT12Yp.js";import{c as Re}from"./vendor-charts-Bquh2dWE.js";import{ot as ze}from"./vendor-ui-BGeFlRLR.js";var Be=[[`gowning`,`cleanroom-zone`,`cleanrooms`,`gowning`,0],[`zoneD`,`cleanroom-zone`,`cleanrooms`,`grade-d`,0],[`zoneC`,`cleanroom-zone`,`cleanrooms`,`grade-c`,0],[`zoneB`,`cleanroom-zone`,`cleanrooms`,`grade-b`,0],[`rtuA`,`hvac-rtu`,`make-up-air`,`rooftop-units`,0],[`rtuB`,`hvac-rtu`,`make-up-air`,`rooftop-units`,1],[`chillerA`,`industrial-chiller`,`utilities`,`chilled-water`,0],[`chillerB`,`industrial-chiller`,`utilities`,`chilled-water`,1],[`pumpA`,`centrifugal-pump`,`utilities`,`chilled-water`,0],[`pumpB`,`centrifugal-pump`,`utilities`,`chilled-water`,1],[`buffer`,`storage-tank`,`utilities`,`chilled-water`,0],[`steam`,`hot-water-boiler`,`utilities`,`clean-steam`,0]],Ve=e=>n(Be,e);function He(e){let t=(e,t,n)=>({key:e,assetId:e,name:t,kind:`utility`,area:n});return[t(e.gowning,`Gowning room`,`Cleanrooms`),t(e.zoneD,`Grade D room`,`Cleanrooms`),t(e.zoneC,`Grade C room`,`Cleanrooms`),t(e.zoneB,`Grade B room`,`Cleanrooms`),t(e.rtuA,`Make-up air unit 1`,`Make-up air`),t(e.rtuB,`Make-up air unit 2`,`Make-up air`),t(e.chillerA,`Chiller 1 (duty)`,`Utilities`),t(e.chillerB,`Chiller 2 (standby)`,`Utilities`),t(e.pumpA,`Chilled-water pump 1`,`Utilities`),t(e.pumpB,`Chilled-water pump 2`,`Utilities`),t(e.buffer,`Chilled-water buffer`,`Utilities`),t(e.steam,`Clean steam generator`,`Utilities`)]}var Ue=60,We=600,Ge=1.4,Ke=16,qe=1.3;function Je(e){let{svg:t,P:n,feed:r}=e,a=(e,t)=>r.num(e,t),o=we(t,`[data-air]`).map(e=>{let n=oe(e),r=e=>we(t,`[data-asset="${n}"] ${e}`),[a=``,o=`0`,s=`0`]=(e.dataset.air??``).split(`|`),c=a.split(` `).filter(Boolean).map(Number),l=r(`[data-fan]`)[0],u=r(`[data-door]`)[0],d=i(t,n);return{id:n,terminals:c,ty:Number(o),tz:Number(s),streams:c.map(()=>p(e,10,`path`,`cr-stream`)),fan:l,fanAt:Te(l?.dataset.fan),door:u,doorAt:Te(u?.dataset.door),doorLamp:r(`[data-door-lamp]`)[0],hum:r(`[data-hum]`)[0],pm:r(`[data-pm]`)[0],staff:r(`[data-staff]`)[0],foul:r(`[data-foul]`),spin:0,rate:0,fall:0,swing:0,fanHeat:le(d,3,2),roomHeat:le(d,4,3),inleak:ue(d)}}),s=new Map(o.map(e=>[e.id,e])),c=e=>a(e,`fan_speed`)>1?v(a(e,`airflow_fraction`)):0;return{draw(t,i,s){let l=e.reducedMotion();for(let e of o){let o=t=>s&&ce(r,e.id,t);e.rate=g(e.rate,a(e.id,`fan_speed`)/100*Ge,t,.8,l),l||(e.spin+=e.rate*y*t),e.fan&&S(e.fan,`d`,_(n,e.fanAt,e.spin));let[u=0,d=0,f=0]=e.fanAt;e.fanHeat.draw(o(`supply_fan_degraded`)&&!l,i,n,[u,d,f]);let p=c(e.id);l||(e.fall+=p*Ke*t);for(let[t,r]of e.terminals.entries())for(let i of e.streams[t]??[]){if(!s||l||p<.02||i.seed>.2+p){ye(i.el,`0`);continue}let t=e.tz-2,a=(e.fall+i.seed*t*3.7)%t,o=r+(i.seed*997%1-.5)*18,c=e.ty+(i.seed*577%1-.5)*14,u=ve([o,c,e.tz-a],n),d=ve([o,c,e.tz-a-4],n);S(i.el,`d`,`M${u[0].toFixed(1)} ${u[1].toFixed(1)}L${d[0].toFixed(1)} ${d[1].toFixed(1)}`),ye(i.el,(Math.sin(Math.PI*a/t)*.5).toFixed(2))}if(e.swing=g(e.swing,a(e.id,`door_open`)>0?qe:0,t,.45,l),e.door){let[t=0,r=0,i=0,a=0,o=0,s=0,c=0,l=0]=e.doorAt,u=(i*Math.cos(e.swing)+o*Math.sin(e.swing))*c,d=(a*Math.cos(e.swing)+s*Math.sin(e.swing))*c,f=[[t,r,0],[t+u,r+d,0],[t+u,r+d,l],[t,r,l]];S(e.door,`d`,`M${f.map(e=>ve(e,n).map(e=>e.toFixed(1)).join(` `)).join(`L`)}Z`)}S(e.doorLamp,`data-s`,o(`door_left_open`)&&Math.sin(i*6)>0?`a`:null);let[m=0,h=0,ee=0,te=0,v=0,ne=0,b=0,x=0]=e.doorAt;e.inleak.draw(o(`pressure_cascade_loss`)&&!l,i,n,[m+ee*b*.5,h+te*b*.5,x*.4],[v,ne]);let re=a(e.id,`running`)>0?r.num(e.id,`particle_action`)>0?`r`:r.num(e.id,`particle_alert`)>0?`a`:`g`:null;S(e.pm,`data-s`,re);let ie=o(`humidifier_failure`)||o(`humidifier_trip`);S(e.hum,`data-s`,ie?Math.sin(i*6)>0?`a`:null:a(e.id,`humidifier_output`)>1?`g`:null),e.staff&&(e.staff.style.opacity=a(e.id,`staffed`)>0?`1`:`0`);let ae=o(`hepa_filter_loading`)?`0.85`:`0`;for(let t of e.foul)t.style.opacity=ae;e.roomHeat.draw(o(`cooling_loss`)&&!l,i,n,[e.terminals[0]??0,e.ty+40,14])}},bar(e){return s.has(e)?v(a(e,`fan_speed`)/100):void 0},needle(e){let[t=``,n]=e.split(`:`);if(s.has(t))return n===`dp`?a(t,`differential_pressure`)/Ue:a(t,`hepa_filter_dp`)/We},airPu:c,humPu:e=>v(a(e,`humidifier_output`)/100)}}var Ye=44,w=[84,108],Xe=[12,36],Ze=36,T=3;function Qe(e,t){return`<path class="cr-glass" d="${e.k.pathOf(t.map(t=>e.at(t)),!0)}"/>`}function $e(e,t,n,r,i){let{slab:a}=e,o=[a({x:t-1,y:n,w:2,d:r-n,r:.3},0,T,{tone:`mid`},2,0)],s=i?[[n,i[0]],[i[1],r]]:[[n,r]];for(let[n=0,r=0]of s)o.push(Qe(e,[[t,n,T],[t,r,T],[t,r,41],[t,n,41]]));let c=new Set([n,r,...i??[],...s.flatMap(([e=0,t=0])=>t-e>60?[(e+t)/2]:[])]);for(let e of c)o.push(a({x:t-1.3,y:e-1.3,w:2.6,d:2.6,r:.3},0,Ye,{tone:`mid`},2,0));return o.push(a({x:t-1.1,y:n,w:2.2,d:r-n,r:.3},41,T,{tone:`mid`},2,0)),i&&o.push(a({x:t-1.1,y:i[0],w:2.2,d:i[1]-i[0],r:.3},Ze,5,{tone:`mid`},2,0)),o.join(``)}function et(e,t,n,r,i){let{slab:a}=e,o=[a({x:n,y:t-1,w:r-n,d:2,r:.3},0,T,{tone:`mid`},2,0)],s=[n,...i.flat(),r];for(let n=0;n<s.length;n+=2){let r=s[n]??0,i=s[n+1]??0;o.push(Qe(e,[[r,t,T],[i,t,T],[i,t,41],[r,t,41]]));let c=Math.max(1,Math.round((i-r)/40));for(let e=0;e<=c;e++){let n=r+(i-r)*e/c;o.push(a({x:n-1.3,y:t-1.3,w:2.6,d:2.6,r:.3},0,Ye,{tone:`mid`},2,0))}}o.push(a({x:n,y:t-1.1,w:r-n,d:2.2,r:.3},41,T,{tone:`mid`},2,0));for(let[e,n]of i)o.push(a({x:e,y:t-1.1,w:n-e,d:2.2,r:.3},Ze,5,{tone:`mid`},2,0));return o.join(``)}function tt(e,t,n){let{cyl:r,slab:i}=e;return`<g class="cr-staff cr-white" data-staff="" style="opacity:0">`+r(t-1.6,n,1.3,0,10,{tone:`hi`,crease:`none`},12)+r(t+1.6,n,1.3,0,10,{tone:`hi`,crease:`none`},12)+r(t,n,3.4,9,10,{tone:`hi`},20)+r(t,n,2.3,19,4.6,{tone:`hi`},16)+i({x:t-1.6,y:n+1.6,w:3.2,d:.8,r:.3},21,1.4,{tone:`lo`},1,0)+`</g>`}function nt(e,t){let{slab:n,cyl:r,D:i,P:a}=e,{x0:o,x1:s}=t,c=(e,t,n,i,a)=>[e+1.5,e+n-1.5].flatMap(e=>[t+1.5,t+i-1.5].map(t=>r(e,t,.8,0,a,{tone:`mid`,crease:`none`},8))).join(``),l=e=>`<g class="cr-white">${e}</g>`,u=(e,t,r,i)=>c(e,t,r,i,16)+l(n({x:e,y:t,w:r,d:i,r:.6},16,1.6,{tone:`hi`},2,.2));switch(t.kind){case`gowning`:return n({x:o+2,y:8,w:9,d:56,r:.4},0,34,{tone:`mid`},2,.2)+u(o+16,58,s-o-20,5)+l(n({x:o+19,y:0,w:30,d:2.4,r:.3},33,1.2,{tone:`hi`},1,0)+[o+22,o+32,o+42].map(e=>n({x:e,y:1,w:6,d:1.6,r:.4},14,18,{tone:`hi`},1,0)).join(``));case`grade-d`:{let t=o+16,[i,a,c,d]=[o+60,50,22,12],f=(e,t,n,i,a=1)=>r(e,t,a,n,i,{tone:`hi`,crease:`none`},10),p=[i+1.5,i+c-1.5].flatMap(e=>[a+1.5,a+d-1.5].map(t=>[e,t])),m=p.map(([e,t])=>r(e,t,1.5,0,2,{tone:`lo`,crease:`none`},10)).join(``)+l(p.map(([e,t])=>f(e,t,2,21)).join(``)+[7,14.5,22].map(e=>n({x:i,y:a,w:c,d,r:.4},e,.8,{tone:`hi`},1,0)).join(``)+[i+1.5,i+c-1.5].map(e=>f(e,a+d-1.5,22.8,9,.7)).join(``)+n({x:i,y:a+d-2.2,w:c,d:1.4,r:.3},31.2,1.2,{tone:`hi`},1,0)+n({x:i+4,y:a+3,w:12,d:6,r:.8},22.8,4,{tone:`mid`},1,.2));return n({x:t,y:2,w:34,d:26,r:1},0,38,{tone:`mid`},2,.4)+`<g transform="${e.front(28)}"><path class="cr-window" d="M${t+5} -30H${t+29}V-12H${t+5}Z"/></g>`+m+u(s-46,18,40,12)}case`grade-c`:{let e=o+34;return[0,1,2].map(t=>r(e+Math.cos(t*2.1)*9,52+Math.sin(t*2.1)*9,.9,0,10,{tone:`mid`,crease:`none`},8)).join(``)+l(r(e,52,12,8,4,{tone:`hi`},36)+r(e,52,13,12,14,{tone:`hi`},40)+r(e,52,11,26,3,{tone:`hi`},36))+r(e,52,3,29,3,{tone:`mid`},16)+u(s-50,20,42,12)}case`grade-b`:{let t=o+12,r=s-o-24,c=[.25,.5,.75].flatMap(e=>[[t+r*e-4,64,27],[t+r*e+4,64,27]]);return n({x:t,y:40,w:r,d:24,r:1},0,18,{tone:`mid`},2,.4)+l(n({x:t+4,y:46,w:r-8,d:8,r:.4},18,2,{tone:`hi`},1,0))+i(Array.from({length:Math.floor((r-12)/4)},(n,r)=>e.at([t+6+r*4,50,21])),{size:.7})+Qe(e,[[t,64,18],[t+r,64,18],[t+r,64,38],[t,64,38]])+Qe(e,[[t+r,40,18],[t+r,64,18],[t+r,64,38],[t+r,40,38]])+n({x:t,y:40,w:r,d:24,r:1},38,1.6,{tone:`mid`},2,.2)+c.map(t=>`<circle class="cr-port" cx="${e.at(t)[0].toFixed(2)}" cy="${e.at(t)[1].toFixed(2)}" r="${(1.6*a.scale).toFixed(2)}"/>`).join(``)}default:return t.kind}}var rt={gowning:[.6,80],"grade-d":[.3,76],"grade-c":[.6,70],"grade-b":[.5,74]};function it(e,t,n,r,i){let{k:a,P:o,S:s,L:c,slab:u,at:d}=e,{x0:f,x1:p}=n,m=p-f,h=[],g=[];for(let e=f+20;e<p;e+=20)g.push(a.segment([e,0,.6],[e,120,.6],o));h.push(s(a.slabOf({x:f,y:0,w:m,d:120,r:0},0,.6,o,1,0),{tone:`lo`,inner:c(g.join(``),{tone:`faint`})})),r&&h.push(u({x:f-4,y:-4,w:4,d:124,r:.3},0,Ye,{tone:`mid`},2,0)),h.push(u({x:f,y:-4,w:m,d:4,r:.3},0,Ye,{tone:`mid`},2,0));let ee=e.front(0),te=n.terminals.map(e=>{let t=[4.5,6,7.5].map(t=>`M${e-7} ${-t}H${e+7}`).join(``);return`<path class="cr-grille" d="M${e-8} -9H${e+8}V-3H${e-8}Z"/><path class="iso-line" data-tone="faint" d="${t}"/>`}).join(``);h.push(`<g transform="${ee}">${te}</g>`),h.push(l(ee,`${t}:dp`,f+10,30,3.6)),h.push(u({x:f+17,y:0,w:7,d:2.4,r:.4},26,8,{tone:`mid`},1,.2));let _=d([f+20.5,2.4,31]);h.push(`<circle class="cr-pm" data-pm="" cx="${_[0].toFixed(2)}" cy="${_[1].toFixed(2)}" r="${(.9*o.scale).toFixed(2)}"/>`),h.push(nt(e,n));let[v,y]=rt[n.kind];h.push(tt(e,f+m*v,y));for(let e of n.terminals)h.push(`<g class="cr-white">${u({x:e-11,y:21,w:22,d:18,r:1},36,3,{tone:`hi`},2,.3)}</g>`);h.push(`<g class="cr-air" data-air="${n.terminals.join(` `)}|30|36"></g>`);let[ne,b,x,re,ie,ae,oe]=n.entry===`west`?[f,w[1],0,-1,1,0,w[1]-w[0]]:[f+Xe[0],120,1,0,0,-1,Xe[1]-Xe[0]];h.push(`<path class="cr-door" data-door="${ne},${b},${x},${re},${ie},${ae},${oe},${Ze}" d=""/>`);let se=d(n.entry===`west`?[f+1.4,w[0]-3,39]:[ne+oe+3,118.6,39]);return h.push(`<circle class="cr-lamp" data-door-lamp="" cx="${se[0].toFixed(2)}" cy="${se[1].toFixed(2)}" r="${(.8*o.scale).toFixed(2)}"/>`),i&&h.push($e(e,p,0,120,w)),h.join(``)}function at(e,t){let n=t[0],r=t[t.length-1];if(!n||!r)return``;let i=t.filter(e=>e.entry===`south`).map(e=>[e.x0+Xe[0],e.x0+Xe[1]]);return $e(e,r.x1,-4,120)+et(e,120,n.x0-4,r.x1,i)}function ot(e,t,n){let{slab:r}=e,i=[],a=Math.max(2,Math.round(t.w/90));for(let e=0;e<=a;e++){let o=t.x+3+(t.w-6)*e/a;for(let e of[t.y+3,t.y+t.d-3])i.push(r({x:o-1.6,y:e-1.6,w:3.2,d:3.2,r:.3},0,n-3,{tone:`mid`},2,0))}return i.push(r(t,n-3,3,{tone:`mid`},2,.3)),i.push(r({x:t.x,y:t.y+t.d-1,w:t.w,d:1,r:.2},n,2,{tone:`lo`},1,0)),i.join(``)}var st=1e3,E=[{kind:`gowning`,x0:-330,x1:-260,terminals:[-295],entry:`south`},{kind:`grade-d`,x0:-260,x1:-120,terminals:[-196,-158],entry:`west`},{kind:`grade-c`,x0:-120,x1:0,terminals:[-90,-35],entry:`west`},{kind:`grade-b`,x0:0,x1:110,terminals:[30,80],entry:`west`}],ct={x:-342,y:-10,w:464,d:160,r:8},lt={x:-336,y:-64,w:452,d:60,r:2},ut={x:-342,y:-400,w:530,d:250,r:8},dt={x:-362,y:-425,w:570,d:595,r:16},ft=be([...Ce(dt,-21,-14),...Ce(ct,-14,60),...Ce(lt,-14,120),...Ce(ut,-14,110)],st,620,{pad:22,azimuth:60}),pt=-36,mt=e=>Math.min(e.x1-e.x0-14,120),ht=e=>[(e.x0+e.x1)/2,pt,49],gt=e=>{let[t,n,r]=ht(e),i=ke(mt(e)),a=e=>[t+e[0],n+e[1],r+e[2]];return{intake:a(i.intake),chwSupply:a(i.chwSupply),chwReturn:a(i.chwReturn),steam:a(i.steam),discharge:a(i.discharge)}},_t=[-202,-135,0],vt=[[-192,-366],[-296,-366]],yt=[-34,36.6,40],bt=[-20,36.6,40],xt=[94,-130,0],D=.8,St=[[-80,-280],[30,-280]],Ct=e=>[(e[0]-xt[0])*D,(e[1]-xt[1])*D,e[2]*D],wt=Ct(f),Tt=Ct(r),Et=[120,-360],O={r:20,h:58,windowX:5,nozzles:[{angle:0,z:0,r:2.6,role:`inlet`,roof:[-10,-5]},{angle:180,z:wt[2],r:2.6,role:`outlet`}]},k=[-38,-360],Dt=.72,Ot=[[128,-250],[-195,-246]],kt=[...E.map(e=>({key:`ahu-${e.kind}`,at:[ht(e)[0],pt],h:83})),...E.map(e=>({key:e.kind,at:[(e.x0+e.x1)/2,0],h:36})),...vt.map((e,t)=>({key:`chiller${t}`,at:e,h:56})),...St.map((e,t)=>({key:`pump${t}`,at:e,h:45*D})),...Ot.map((e,t)=>({key:`rtu${t}`,at:[e[0]+Ae[0],e[1]+Ae[1]],h:40})),{key:`buffer`,at:Et,h:O.h+10},{key:`steam`,at:k,h:60}],At=Le(kt,ft),jt=At.order,Mt=At.slotDepths,Nt=At.depth,A=(e,t,n=1)=>[e[0]+t[0]*n,e[1]+t[1]*n,t[2]*n],j=(e,t,n,r)=>[t??e[0],n??e[1],r??e[2]],Pt=e=>{let t=O.nozzles.find(t=>t.role===e);return t?A(Et,Fe(O,t)):[0,0,0]},[M=[0,0],Ft=[0,0]]=vt,[N=[0,0],P=[0,0]]=St,[It=[0,0],Lt=[0,0]]=Ot,F=e=>{let t=E.find(t=>t.kind===e);if(!t)throw Error(`No room of kind '${e}'. Add it to ROOMS in scene.ts.`);return gt(t)},I=-305,L=72,R=-318,z=84,B=[-130,34],V=[A(k,de,Dt)[0]-16,54],H=[40,108],Rt=-300,U=-82,zt=108,W=-74,Bt=108,G=-66,Vt=108,K=92,Ht=-90,Ut=6,Wt=30,q=e=>A(e,[Tt[0],Tt[1],Tt[2]-3*D]),J=e=>A(e,wt),Y=Pt(`outlet`),Gt=J(P)[0]+13,Kt=-302,qt=J(N)[0]+8,X=e=>A(e,yt),Z=e=>A(e,bt),Jt=A(k,de,Dt),Yt=A(k,me,Dt),Xt=e=>A(e,Ae),Zt=-410,Qt=e=>E.map(t=>e(F(t.kind))[0]),$t=(e,...t)=>{let n=[...Qt(e),...t];return[Math.min(...n)-Ut,Math.max(...n)+Ut]},en=new Map([[`chws:w`,Qt(e=>e.chwSupply).filter(e=>e<B[0]).length],[`chws:e`,Qt(e=>e.chwSupply).filter(e=>e>B[0]).length],[`chwr:w`,Qt(e=>e.chwReturn).filter(e=>e<H[0]).length],[`chwr:e`,Qt(e=>e.chwReturn).filter(e=>e>H[0]).length]]),tn=(e,t,n,[r,i],a,o,s,c)=>[{id:`${e}:w`,medium:t,r:n,...c?{blind:[!0,!1],pts:[[r,o,s],[a,o,s]]}:{blind:[!1,!0],pts:[[a,o,s],[r,o,s]]}},{id:`${e}:e`,medium:t,r:n,...c?{blind:[!1,!0],reverse:!0,pts:[[a,o,s],[i,o,s]]}:{blind:[!1,!0],pts:[[a,o,s],[i,o,s]]}}],nn=E.flatMap(e=>{let t=F(e.kind);return[{id:`chws:${e.kind}`,medium:`coolant`,r:1.8,pts:[j(t.chwSupply,null,W,Bt),j(t.chwSupply,null,W,K),j(t.chwSupply,null,null,K),t.chwSupply]},{id:`chwr:${e.kind}`,medium:`coolantret`,r:1.8,pts:[t.chwReturn,j(t.chwReturn,null,null,K),j(t.chwReturn,null,G,K),j(t.chwReturn,null,G,Vt)]},{id:`steam:${e.kind}`,medium:`steam`,r:1.6,pts:[j(t.steam,null,U,zt),j(t.steam,null,U,K),j(t.steam,null,null,K),t.steam]}]}),rn=E.flatMap(e=>{let t=F(e.kind).discharge,[n=0,...r]=e.terminals,i=e=>[[e,Wt,t[2]],[e,Wt,39]];return[{id:`supply:${e.kind}`,medium:`duct`,r:3,bare:[!1,!0],pts:[t,j(t,null,Wt,null),...i(n)]},...r.map((t,n)=>({id:`supply:${e.kind}:${n+2}`,medium:`duct`,r:3,bare:[!1,!0],pts:i(t)}))]}),an=(e,t,[n,...r])=>{let i=Xt(t),a=F(n??`gowning`).intake,o=a[2];return[{id:`oa:${e}`,medium:`duct`,r:4,pts:[i,j(i,null,null,o),[i[0],Ht,o],j(a,null,Ht,null),a]},...r.map((t,n)=>({id:`oa:${e}:${n+2}`,medium:`duct`,r:4,pts:[j(F(t).intake,null,Ht,null),F(t).intake]}))]},on=[...nn,{id:`suction`,medium:`coolantret`,r:2.6,pts:[Y,j(Y,Gt,null,null),[Gt,Kt,Y[2]]]},{id:`suction:standby`,medium:`coolantret`,r:2.6,pts:[[Gt,Kt,Y[2]],j(J(P),Gt,null,null),J(P)]},{id:`suction:duty`,medium:`coolantret`,r:2.6,pts:[[Gt,Kt,Y[2]],[qt,Kt,Y[2]],j(J(N),qt,null,null),J(N)]},...[[`a`,M],[`b`,Ft]].map(([e,t])=>({id:`out:${e}`,medium:`coolant`,r:2.2,pts:[Z(t),j(Z(t),null,R,null),j(Z(t),null,R,z)]})),{id:`chws:b`,medium:`coolant`,r:2.6,blind:[!0,!1],pts:[[Z(Ft)[0]-Ut,R,z],[Z(M)[0],R,z]]},{id:`chws`,medium:`coolant`,r:2.6,pts:[[Z(M)[0],R,z],[B[0],R,z],[B[0],R,B[1]],[B[0],W,B[1]],[B[0],W,Bt]]},...[[`duty`,N],[`standby`,P]].map(([e,t])=>({id:`discharge:${e}`,medium:`coolantret`,r:3.2*D,fromStub:!0,pts:[q(t),j(q(t),null,null,L),j(q(t),null,I,L)]})),{id:`header:standby`,medium:`coolantret`,r:2.6,blind:[!0,!1],pts:[[q(P)[0]+Ut,I,L],[q(N)[0],I,L]]},{id:`header`,medium:`coolantret`,r:2.6,pts:[[q(N)[0],I,L],[X(M)[0],I,L]]},{id:`header:b`,medium:`coolantret`,r:2.6,blind:[!1,!0],pts:[[X(M)[0],I,L],[X(Ft)[0]-Ut,I,L]]},...[[`a`,M],[`b`,Ft]].map(([e,t])=>({id:`in:${e}`,medium:`coolantret`,r:2.2,pts:[j(X(t),null,I,L),j(X(t),null,I,null),X(t)]})),...tn(`chws`,`coolant`,2.6,$t(e=>e.chwSupply),B[0],W,Bt,!1),...tn(`chwr`,`coolantret`,2.6,$t(e=>e.chwReturn),H[0],G,Vt,!0),{id:`chwr`,medium:`coolantret`,r:2.6,pts:[[H[0],G,Vt],[H[0],Rt,H[1]],[Pt(`inlet`)[0],Rt,H[1]],j(Pt(`inlet`),null,null,H[1]),Pt(`inlet`)]},{id:`steam`,medium:`steam`,r:1.8,pts:[Jt,j(Jt,null,null,V[1]),j(Jt,V[0],null,V[1]),[V[0],U,V[1]],[V[0],U,zt]]},...tn(`steam`,`steam`,1.8,$t(e=>e.steam),V[0],U,zt,!1),{id:`feed`,medium:`pw`,r:1.6,reverse:!0,bare:[!1,!0],pts:[Yt,j(Yt,null,null,50),j(Yt,null,Zt,50),j(Yt,null,Zt,-14)]},...an(`a`,It,[`grade-c`,`grade-b`]),...an(`b`,Lt,[`gowning`,`grade-d`]),...rn],sn=[[B[0],2.6,B[1]],[H[0],2.6,H[1]],[V[0],1.8,V[1]],[Xt(It)[0],4,F(`grade-b`).intake[2]],[Xt(Lt)[0],4,F(`grade-b`).intake[2]]],cn={z:10,flanged:!0,routes:on,posts:[...sn.map(([e,t,n])=>[e,-110,t,n]),...sn.map(([e,t,n])=>[e,-190,t,n,0]),[-300,I,2.6,L,0],[-300,R,2.6,z,0],...[-250,-110,40].map(e=>[e,W,2.6,Bt]),...[-230,-90,45].map(e=>[e,G,2.6,Vt]),...[-240,-110,40].map(e=>[e,U,1.8,zt])]},Q=e=>e>.002?6+26*v(e*2):0,ln=e=>{let{svg:t,feed:n,ids:r}=e,i=te(t),a=Je(e),o=Me(e,i),s=_e(e,i),c=ae(e,i),l=Ie(e),u=he(e,i),d=[a,o,s,c,l,u],f=ne(e,e=>re(n,e,`availability`)),p=ie(e,{needle:e=>a.needle(e)??s.needle(e)??u.needle(e)??0,bar:e=>d.reduce((t,n)=>t??n.bar(e),void 0)??0,alertsHigh:()=>!0,ready:()=>!0}),m=new Map([[`gowning`,r.gowning],[`grade-d`,r.zoneD],[`grade-c`,r.zoneC],[`grade-b`,r.zoneB]]),h=new Map([[`a`,r.chillerA],[`b`,r.chillerB]]),g=()=>c.flowPu(r.pumpA)+c.flowPu(r.pumpB),_=e=>{let t=[r.chillerA,r.chillerB].filter(e=>n.num(e,`coolant_flow_rate`)>0);return t.includes(e)?g()/t.length:0},v=e=>en.get(e)??0,y=(...e)=>e.reduce((e,t)=>e+a.humPu(m.get(t)??``),0),b=ee(e,({id:e})=>{let[t=``,n=``]=e.split(`:`),i=m.get(n);switch(t){case`suction`:case`discharge`:return Q(n===`duty`?c.flowPu(r.pumpA):n===`standby`?c.flowPu(r.pumpB):g());case`header`:return Q(n===`b`?_(r.chillerB):n===`standby`?c.flowPu(r.pumpB):g());case`in`:case`out`:return Q(_(h.get(n)??``));case`chws`:case`chwr`:return Q(i?g()/m.size:n===`b`?_(r.chillerB):n===`w`||n===`e`?g()*v(e)/m.size:g());case`steam`:return Q(i?a.humPu(i):n===`w`?y(`gowning`,`grade-d`,`grade-c`):n===`e`?y(`grade-b`):y(...m.keys()));case`feed`:return Q(y(...m.keys()));case`oa`:return Q(o.airPu(n===`a`?r.rtuA:r.rtuB));case`supply`:return Q(a.airPu(i??``));default:return 0}});return{data(e){f.draw(e)},draw({sdt:e,t,introDone:n}){b.draw(e),p.draw(e,t);for(let r of d)r.draw(e,t,n)},resync(){},status:e=>se(n,e,`availability`)}},un=e(Re(),1),$=ze(),dn={x:-248,y:-164,w:92,d:58,r:3},fn=Pe(O),pn=(e,t)=>s(e,t,`coolantret`,!0),mn=(e,t)=>Ne(e,t,O),hn=(e,t)=>pe(e,t,6),gn=e=>at(e,E);function _n({ids:e}){let t=Se(),n=o(cn,Nt),r=(0,un.useMemo)(()=>u(t,dt)+t.plinth(ct)+t.plinth(ut)+ot(t,lt,49),[t]),i=e=>(0,$.jsx)(xe,{html:`${n.layers[e]??``}<g data-flows="${e}" data-depth="${e===0?-1e9:Mt[e-1]??0}"></g>`,data:{pipes:``}},`pipes-${e}`),s={gowning:e.gowning,"grade-d":e.zoneD,"grade-c":e.zoneC,"grade-b":e.zoneB},c={buffer:(0,$.jsx)(a,{to:x(Et),children:(0,$.jsx)(C,{id:e.buffer,plan:fn,intro:14,draw:mn})}),steam:(0,$.jsx)(a,{to:x(k),scale:Dt,children:(0,$.jsx)(C,{id:e.steam,plan:fe,intro:15,draw:hn})})};for(let[e,t]of E.entries()){let n=s[t.kind],r=(n,r)=>it(n,r,t,e===0,e<E.length-1),i={x:t.x0,y:0,w:t.x1-t.x0,d:120,r:2},o=mt(t);c[t.kind]=(0,$.jsx)(C,{id:n,plan:i,intro:2+e,draw:r}),c[`ahu-${t.kind}`]=(0,$.jsx)(a,{to:ht(t),children:(0,$.jsx)(C,{id:n,plan:Ee(o),intro:6+e,draw:(e,t)=>je(e,t,o)})})}for(let[t,n]of vt.entries())c[`chiller${t}`]=(0,$.jsx)(a,{from:_t,to:x(n),children:(0,$.jsx)(C,{id:t?e.chillerB:e.chillerA,plan:dn,intro:10+t,draw:ge})});for(let[t,n]of St.entries())c[`pump${t}`]=(0,$.jsx)(a,{from:xt,to:x(n),scale:D,children:(0,$.jsx)(C,{id:t?e.pumpB:e.pumpA,plan:b,intro:12+t,draw:pn})});for(let[t,n]of Ot.entries())c[`rtu${t}`]=(0,$.jsx)(a,{to:x(n),children:(0,$.jsx)(C,{id:t?e.rtuB:e.rtuA,plan:Oe,intro:16+t,draw:De})});return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(xe,{html:r,data:{plinth:``}}),i(0),jt.flatMap((e,t)=>[(0,$.jsx)(`g`,{children:c[e.key]},e.key),i(t+1)]),(0,$.jsx)(d,{build:gn,intro:18})]})}var vn=m(ft),yn=c(vn,cn,Nt),bn={width:st,height:620,label:`Isometric model of the Pharma Cleanroom suite: the gowning room and the Grade D, C and B rooms along a viewing corridor, each with its air handler on the mezzanine above; and the utilities yard with two make-up air units, two chillers and their chilled-water pumps, the buffer tank and the clean-steam generator. Every moving part follows live values from the running engine.`,kit:vn,flows:yn.flows,joints:yn.joints,Scene:_n,compose:ln},xn=h({layout:bn,resolve:Ve,things:He,caption:`cleanrooms · air handling · utilities`,mismatch:`This floor expects the Pharma Cleanroom suite: the gowning, Grade D, C and B rooms, two make-up air units, two chillers and two chilled-water pumps, the buffer tank and the clean-steam generator, by area and line.`,statusBasis:`availability`,Overview:t,tab:`Suite`});export{xn as pharmaFloor};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=function(e){return`/`+e},t={},n=function(e){return e.pathname.endsWith(`.css`)},r=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},i=function(i,a,o){let s=Promise.resolve();if(a&&a.length>0){let i,c=document.querySelector(`meta[property=csp-nonce]`),l=c?.nonce||c?.getAttribute(`nonce`);function u(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function d(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}s=u(a.map(a=>{a=e(a,o);let s=d(a),c=n(s);return r(t,s.href,()=>{if(i===void 0){i={all:new Set,styles:new Set};let e=document.getElementsByTagName(`link`);for(let t=e.length-1;t>=0;t--){let n=e[t];i.all.add(n.href),n.rel===`stylesheet`&&i.styles.add(n.href)}}if((c?i.styles:i.all).has(s.href))return;let e=document.createElement(`link`);if(e.rel=c?`stylesheet`:`modulepreload`,c||(e.as=`script`),e.crossOrigin=``,e.href=s.href,l&&e.setAttribute(`nonce`,l),document.head.appendChild(e),c)return new Promise((t,n)=>{let r=i=>{e.removeEventListener(`load`,r),e.removeEventListener(`error`,r),i.type===`error`?n(Error(`Unable to preload CSS for ${s}`)):t(i)};e.addEventListener(`load`,r),e.addEventListener(`error`,r)})})}).filter(e=>e!==void 0))}function c(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return s.then(e=>{for(let t of e||[])t.status===`rejected`&&c(t.reason);return i().catch(c)})};export{i as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,i as t,n,r}from"./rolldown-runtime-BWaJ3C7D.js";import{c as i}from"./vendor-charts-Bquh2dWE.js";import{ot as a}from"./vendor-ui-BGeFlRLR.js";var o=a(),s=e(i(),1),c=(0,s.createContext)({});function l(e){let t=(0,s.useRef)(null);return t.current===null&&(t.current=e()),t.current}var u=typeof window<`u`?s.useLayoutEffect:s.useEffect,d=(0,s.createContext)(null);function f(e,t){e.indexOf(t)===-1&&e.push(t)}function p(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var m=(e,t,n)=>n>t?t:n<e?e:n,h={},g=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),_=e=>typeof e==`object`&&!!e,v=e=>/^0[^.\s]+$/u.test(e);function y(e){let t;return()=>(t===void 0&&(t=e()),t)}var b=e=>e,x=(...e)=>e.reduce((e,t)=>n=>t(e(n))),S=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},C=class{constructor(){this.subscriptions=[]}add(e){return f(this.subscriptions,e),()=>p(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},w=e=>e*1e3,T=e=>e/1e3,E=(e,t)=>t?1e3/t*e:0,D=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,ee=1e-7,te=12;function ne(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=D(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>ee&&++s<te);return o}function re(e,t,n,r){if(e===t&&n===r)return b;let i=t=>ne(t,0,1,e,n);return e=>e===0||e===1?e:D(i(e),t,r)}var ie=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ae=e=>t=>1-e(1-t),oe=re(.33,1.53,.69,.99),se=ae(oe),ce=ie(se),le=e=>e>=1?1:(e*=2)<1?.5*se(e):.5*(2-2**(-10*(e-1))),ue=e=>1-Math.sin(Math.acos(e)),de=ae(ue),fe=ie(ue),pe=re(.42,0,1,1),me=re(0,0,.58,1),he=re(.42,0,.58,1),ge=e=>Array.isArray(e)&&typeof e[0]!=`number`,_e=e=>Array.isArray(e)&&typeof e[0]==`number`,ve={linear:b,easeIn:pe,easeInOut:he,easeOut:me,circIn:ue,circInOut:fe,circOut:de,backIn:se,backInOut:ce,backOut:oe,anticipate:le},ye=e=>typeof e==`string`,be=e=>{if(_e(e)){e.length;let[t,n,r,i]=e;return re(t,n,r,i)}return ye(e)?(ve[e],`${e}`,ve[e]):e},xe=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function Se(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var Ce=40;function we(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=xe.reduce((e,t)=>(e[t]=Se(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,g=()=>{let a=h.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,Ce),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},_=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:xe.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||_(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<xe.length;t++)o[xe[t]].cancel(e)},state:i,steps:o}}var{schedule:O,cancel:k,state:A,steps:Te}=we(typeof requestAnimationFrame<`u`?requestAnimationFrame:b,!0),Ee;function De(){Ee=void 0}var j={now:()=>(Ee===void 0&&j.set(A.isProcessing||h.useManualTiming?A.timestamp:performance.now()),Ee),set:e=>{Ee=e,queueMicrotask(De)}},Oe=e=>t=>typeof t==`string`&&t.startsWith(e),ke=Oe(`--`),Ae=Oe(`var(--`),je=e=>Ae(e)?Me.test(e.split(`/*`)[0].trim()):!1,Me=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Ne(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var Pe={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Fe={...Pe,transform:e=>m(0,1,e)},Ie={...Pe,default:1},Le=e=>Math.round(e*1e5)/1e5,Re=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ze(e){return e==null}var Be=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ve=(e,t)=>n=>!!(typeof n==`string`&&Be.test(n)&&n.startsWith(e)||t&&!ze(n)&&Object.prototype.hasOwnProperty.call(n,t)),He=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Re);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Ue=e=>m(0,255,e),We={...Pe,transform:e=>Math.round(Ue(e))},M={test:Ve(`rgb`,`red`),parse:He(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+We.transform(e)+`, `+We.transform(t)+`, `+We.transform(n)+`, `+Le(Fe.transform(r))+`)`};function Ge(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var Ke={test:Ve(`#`),parse:Ge,transform:M.transform},qe=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),N=qe(`deg`),P=qe(`%`),F=qe(`px`),Je=qe(`vh`),Ye=qe(`vw`),Xe={...P,parse:e=>P.parse(e)/100,transform:e=>P.transform(e*100)},Ze={test:Ve(`hsl`,`hue`),parse:He(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+P.transform(Le(t))+`, `+P.transform(Le(n))+`, `+Le(Fe.transform(r))+`)`},I={test:e=>M.test(e)||Ke.test(e)||Ze.test(e),parse:e=>M.test(e)?M.parse(e):Ze.test(e)?Ze.parse(e):Ke.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?M.transform(e):Ze.transform(e),getAnimatableNone:e=>{let t=I.parse(e);return t.alpha=0,I.transform(t)}},Qe=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function $e(e){return isNaN(e)&&typeof e==`string`&&(e.match(Re)?.length||0)+(e.match(Qe)?.length||0)>0}var et=`number`,tt=`color`,nt=`var`,rt=`var(`,it="${}",at=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ot(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(at,e=>(I.test(e)?(r.color.push(a),i.push(tt),n.push(I.parse(e))):e.startsWith(rt)?(r.var.push(a),i.push(nt),n.push(e)):(r.number.push(a),i.push(et),n.push(parseFloat(e))),++a,it)).split(it),indexes:r,types:i}}function st(e){return ot(e).values}function ct({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===et?Le(r[a]):e===tt?I.transform(r[a]):r[a]}return i}}function lt(e){return ct(ot(e))}var ut=e=>typeof e==`number`?0:I.test(e)?I.getAnimatableNone(e):e,dt=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:ut(e);function ft(e){let t=ot(e);return ct(t)(t.values.map((e,n)=>dt(e,t.split[n])))}var L={test:$e,parse:st,createTransformer:lt,getAnimatableNone:ft};function pt(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function mt({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=pt(s,r,e+1/3),a=pt(s,r,e),o=pt(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function ht(e,t){return n=>n>0?t:e}var R=(e,t,n)=>e+(t-e)*n,gt=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},_t=[Ke,M,Ze],vt=e=>_t.find(t=>t.test(e));function yt(e){let t=vt(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===Ze&&(n=mt(n)),n}var bt=(e,t)=>{let n=yt(e),r=yt(t);if(!n||!r)return ht(e,t);let i={...n};return e=>(i.red=gt(n.red,r.red,e),i.green=gt(n.green,r.green,e),i.blue=gt(n.blue,r.blue,e),i.alpha=R(n.alpha,r.alpha,e),M.transform(i))},xt=new Set([`none`,`hidden`]);function St(e,t){return xt.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Ct(e,t){return n=>R(e,t,n)}function wt(e){return typeof e==`number`?Ct:typeof e==`string`?je(e)?ht:I.test(e)?bt:Ot:Array.isArray(e)?Tt:typeof e==`object`?I.test(e)?bt:Et:ht}function Tt(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>wt(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Et(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=wt(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Dt(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var Ot=(e,t)=>{let n=L.createTransformer(t),r=ot(e),i=ot(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?xt.has(e)&&!i.values.length||xt.has(t)&&!r.values.length?St(e,t):x(Tt(Dt(r,i),i.values),n):(`${e}${t}`,ht(e,t))};function kt(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?R(e,t,n):wt(e)(e,t)}var At=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>O.update(t,e),stop:()=>k(t),now:()=>A.isProcessing?A.timestamp:j.now()}},jt=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Mt=2e4;function Nt(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function Pt(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(Nt(r),Mt);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:T(i)}}var z={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Ft(e,t){return e*Math.sqrt(1-t*t)}var It=12;function Lt(e,t,n){let r=n;for(let n=1;n<It;n++)r-=e(r)/t(r);return r}var Rt=.001;function zt({duration:e=z.duration,bounce:t=z.bounce,velocity:n=z.velocity,mass:r=z.mass}){let i,a;z.maxDuration;let o=1-t;o=m(z.minDamping,z.maxDamping,o),e=m(z.minDuration,z.maxDuration,T(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=Ft(t,o),c=Math.exp(-i);return Rt-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=Ft(t**2,o);return(-i(t)+Rt>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=Lt(i,a,s);if(e=w(e),isNaN(c))return{stiffness:z.stiffness,damping:z.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var Bt=[`duration`,`bounce`],Vt=[`stiffness`,`damping`,`mass`];function Ht(e,t){return t.some(t=>e[t]!==void 0)}function Ut(e){let t={velocity:z.velocity,stiffness:z.stiffness,damping:z.damping,mass:z.mass,isResolvedFromDuration:!1,...e};if(!Ht(e,Vt)&&Ht(e,Bt)){if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*m(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:z.mass,stiffness:i,damping:a}}else{let n=zt({...e,velocity:0});t={...t,...n,mass:z.mass},t.isResolvedFromDuration=!0}}return t}function Wt(e=z.visualDuration,t=z.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Ut({...n,velocity:-T(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=T(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?z.restSpeed.granular:z.restSpeed.default,i||=v?z.restDelta.granular:z.restDelta.default;let y,b,x,S,C,E;if(h<1)x=Ft(_,h),S=(m+h*_*g)/x,y=e=>{let t=Math.exp(-h*_*e);return o-t*(S*Math.sin(x*e)+g*Math.cos(x*e))},C=h*_*S+g*x,E=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+E*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let D={calculatedDuration:p&&d||null,velocity:e=>w(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=w(t*(C*n+E*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=w(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(Nt(D),Mt),t=jt(t=>D.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return D}Wt.applyToOptions=e=>{let t=Pt(e,100,Wt);return e.ease=t.ease,e.duration=w(t.duration),e.type=`keyframes`,e};var Gt=5;function Kt(e,t,n){let r=Math.max(t-Gt,0);return E(n-e(r),t-r)}function qt({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=Wt({keyframes:[f.value,m(f.value)],velocity:Kt(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function Jt(e,t,n){let r=[],i=n||h.mix||kt,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=x(Array.isArray(t)?t[n]||b:t,a)),r.push(a)}return r}function Yt(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=Jt(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=S(e[r],e[r+1],n);return s[r](i)};return n?t=>l(m(e[0],e[a-1],t)):l}function Xt(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=S(0,t,r);e.push(R(n,1,i))}}function Zt(e){let t=[0];return Xt(t,e.length-1),t}function Qt(e,t){return e.map(e=>e*t)}function $t(e,t){return e.map(()=>t||he).splice(0,e.length-1)}function en({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=ge(r)?r.map(be):be(r),a={done:!1,value:t[0]},o=Yt(Qt(n&&n.length===t.length?n:Zt(t),e),t,{ease:Array.isArray(i)?i:$t(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var tn=e=>e!==null;function nn(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(tn),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var rn={decay:qt,inertia:qt,tween:en,keyframes:en,spring:Wt};function an(e){typeof e.type==`string`&&(e.type=rn[e.type])}var on=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},sn=e=>e/100,cn=class extends on{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==j.now()&&this.tick(j.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;an(e);let{type:t=en,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||en;s!==en&&typeof o[0]!=`number`&&(this.mixKeyframes=x(sn,kt(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Nt(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:h,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let _=this.currentTime-c*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?_<0:_>r;this.currentTime=Math.max(_,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let y=this.currentTime,b=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(b=a)),y=m(0,1,n)*o}let x;v?(this.delayState.value=l[0],x=this.delayState):x=b.next(y),i&&!v&&(x.value=i(x.value));let{done:S}=x;!v&&s!==null&&(S=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let C=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&S);return C&&p!==qt&&(x.value=nn(l,this.options,g,this.speed)),h&&h(x.value),C&&this.finish(),x}then(e,t){return this.finished.then(e,t)}get duration(){return T(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+T(e)}get time(){return T(this.currentTime)}set time(e){e=w(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return Kt(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(j.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=T(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=At,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(j.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function ln(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var B=e=>e*180/Math.PI,un=e=>fn(B(Math.atan2(e[1],e[0]))),dn={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:un,rotateZ:un,skewX:e=>B(Math.atan(e[1])),skewY:e=>B(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},fn=e=>(e%=360,e<0&&(e+=360),e),pn=un,mn=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),hn=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),gn={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:mn,scaleY:hn,scale:e=>(mn(e)+hn(e))/2,rotateX:e=>fn(B(Math.atan2(e[6],e[5]))),rotateY:e=>fn(B(Math.atan2(-e[2],e[0]))),rotateZ:pn,rotate:pn,skewX:e=>B(Math.atan(e[4])),skewY:e=>B(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function _n(e){return+!!e.includes(`scale`)}function vn(e,t){if(!e||e===`none`)return _n(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=gn,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=dn,i=t}if(!i)return _n(t);let a=r[t],o=i[1].split(`,`).map(bn);return typeof a==`function`?a(o):o[a]}var yn=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return vn(n,t)};function bn(e){return parseFloat(e.trim())}var xn=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],Sn=new Set([...xn,`pathRotation`]),Cn=e=>e===Pe||e===F,wn=new Set([`x`,`y`,`z`]),Tn=xn.filter(e=>!wn.has(e));function En(e){let t=[];return Tn.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var V={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>vn(t,`x`),y:(e,{transform:t})=>vn(t,`y`)};V.translateX=V.x,V.translateY=V.y;var H=new Set,Dn=!1,On=!1,kn=!1;function An(){if(On){let e=Array.from(H).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=En(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}On=!1,Dn=!1,H.forEach(e=>e.complete(kn)),H.clear()}function jn(){H.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(On=!0)})}function Mn(){kn=!0,jn(),An(),kn=!1}var Nn=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(H.add(this),Dn||(Dn=!0,O.read(jn),O.resolveKeyframes(An))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}ln(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),H.delete(this)}cancel(){this.state===`scheduled`&&(H.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Pn=e=>e.startsWith(`--`);function Fn(e,t,n){Pn(t)?e.style.setProperty(t,n):e.style[t]=n}var In={};function Ln(e,t){let n=y(e);return()=>In[t]??n()}var Rn=Ln(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),zn=Ln(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Bn=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Vn={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Bn([0,.65,.55,1]),circOut:Bn([.55,0,1,.45]),backIn:Bn([.31,.01,.66,-.59]),backOut:Bn([.33,1.53,.69,.99])};function Hn(e,t){if(e)return typeof e==`function`?zn()?jt(e,t):`ease-out`:_e(e)?Bn(e):Array.isArray(e)?e.map(e=>Hn(e,t)||Vn.easeOut):Vn[e]}function Un(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=Hn(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function Wn(e){return typeof e==`function`&&`applyToOptions`in e}function Gn({type:e,...t}){return Wn(e)&&zn()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Kn=class extends on{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=Gn(e);this.animation=Un(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=nn(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Fn(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e!==`idle`&&e!==`finished`&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return T(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+T(e)}get time(){return T(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=w(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Rn()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),b):r(this)}},qn={anticipate:le,backInOut:ce,circInOut:fe};function Jn(e){return e in qn}function Yn(e){typeof e.ease==`string`&&Jn(e.ease)&&(e.ease=qn[e.ease])}var Xn=10,Zn=class extends Kn{constructor(e){Yn(e),an(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new cn({...a,autoplay:!1}),s=Math.max(Xn,j.now()-this.startTime),c=m(0,Xn,s-Xn),l=o.sample(s).value,{name:u}=this.options;i&&u&&Fn(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},Qn=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(L.test(e)||e===`0`)&&!e.startsWith(`url(`));function $n(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function er(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Qn(i,t),s=Qn(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:$n(e)||(n===`spring`||Wn(n))&&r}function tr(e){e.duration=0,e.type=`keyframes`}var nr=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),rr=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function ir(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&rr.test(e[t]))return!0;return!1}var ar=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),or=y(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function sr(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e,c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return or()&&n&&(nr.has(n)||ar.has(n)&&ir(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var cr=40,lr=class extends on{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=j.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||Nn;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=j.now();let u=!0;er(e,i,a,o)||(u=!1,(h.instantAnimations||!s)&&l?.(nn(e,n,t)),e[0]=e[e.length-1],tr(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>cr?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&sr(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new Zn({...d,element:p})}catch{m=new cn(d)}else m=new cn(d);m.finished.then(()=>{this.notifyFinished()}).catch(b),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Mn()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function ur(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var dr=30,fr=e=>!isNaN(parseFloat(e)),pr={current:void 0},mr=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=j.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=j.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=fr(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new C);let n=this.events[e].add(t);return e===`change`?()=>{n(),O.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return pr.current&&pr.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=j.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>dr)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,dr);return E(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function hr(e,t){return new mr(e,t)}function gr(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function _r(e,t){let n=e?.[t]??e?.default??e;return n===e?n:gr(n,e)}var vr={type:`spring`,stiffness:500,damping:25,restSpeed:10},yr=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),br={type:`keyframes`,duration:.8},xr={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Sr=(e,{keyframes:t})=>t.length>2?br:Sn.has(e)?e.startsWith(`scale`)?yr(t[1]):vr:xr,Cr=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function wr(e){for(let t in e)if(!Cr.has(t))return!0;return!1}var Tr=(e,t,n,r={},i,a)=>o=>{let s=_r(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=w(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};wr(s)||Object.assign(u,Sr(e,u)),u.duration&&=w(u.duration),u.repeatDelay&&=w(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(tr(u),u.delay===0&&(d=!0)),(h.instantAnimations||h.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,tr(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=nn(u.keyframes,s);if(e!==void 0){O.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new cn(u):new lr(u)},Er=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Dr(e){let t=Er.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Or(e,t,n=1){`${e}`;let[r,i]=Dr(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return g(e)?parseFloat(e):e}return je(i)?Or(i,t,n+1):i}function kr(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Ar(e,t,n,r){if(typeof t==`function`){let[i,a]=kr(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=kr(r);t=t(n===void 0?e.custom:n,i,a)}return t}function U(e,t,n){let r=e.getProps();return Ar(r,t,n===void 0?r.custom:n,e)}var jr=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...xn]),Mr=e=>Array.isArray(e);function Nr(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,hr(n))}function Pr(e){return Mr(e)?e[e.length-1]||0:e}function Fr(e,t){let{transitionEnd:n={},transition:r={},...i}=U(e,t)||{};i={...i,...n};for(let t in i)Nr(e,t,Pr(i[t]))}var W=e=>!!(e&&e.getVelocity);function Ir(e){return!!(W(e)&&e.add)}function Lr(e,t){let n=e.getValue(`willChange`);if(Ir(n))return n.add(t);if(!n&&h.WillChange){let n=new h.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Rr(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var zr=`data-`+Rr(`framerAppearId`);function Br(e){return e.props[zr]}function Vr({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Hr(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?gr(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&Vr(f,t))continue;let o={delay:n,..._r(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){O.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=Br(e);if(n){let e=window.MotionHandoffAnimation(n,t,O);e!==null&&(o.startTime=e,p=!0)}}Lr(e,t);let m=l??e.shouldReduceMotion;r.start(Tr(t,r,i,m&&jr.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>O.update(()=>{o&&Fr(e,o)});d.length?Promise.all(d).then(t):t()}return d}function Ur(e,t,n={}){let r=U(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(Hr(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return Wr(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}return Promise.all([a(),o(n.delay)])}function Wr(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(Ur(c,t,{...o,delay:n+(typeof r==`function`?0:r)+ur(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function Gr(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>Ur(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=Ur(e,t,n);else{let i=typeof t==`function`?U(e,t,n.custom):t;r=Promise.all(Hr(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var Kr={test:e=>e===`auto`,parse:e=>e},qr=e=>t=>t.test(e),Jr=[Pe,F,P,N,Ye,Je,Kr],Yr=e=>Jr.find(qr(e));function Xr(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||v(e)}var Zr=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Qr(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Re)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Zr.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var $r=/\b([a-z-]*)\(.*?\)/gu,ei={...L,getAnimatableNone:e=>{let t=e.match($r);return t?t.map(Qr).join(` `):e}},ti={...L,getAnimatableNone:e=>{let t=L.parse(e);return L.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},ni={...Pe,transform:Math.round},ri={borderWidth:F,borderTopWidth:F,borderRightWidth:F,borderBottomWidth:F,borderLeftWidth:F,borderRadius:F,borderTopLeftRadius:F,borderTopRightRadius:F,borderBottomRightRadius:F,borderBottomLeftRadius:F,width:F,maxWidth:F,height:F,maxHeight:F,top:F,right:F,bottom:F,left:F,inset:F,insetBlock:F,insetBlockStart:F,insetBlockEnd:F,insetInline:F,insetInlineStart:F,insetInlineEnd:F,padding:F,paddingTop:F,paddingRight:F,paddingBottom:F,paddingLeft:F,paddingBlock:F,paddingBlockStart:F,paddingBlockEnd:F,paddingInline:F,paddingInlineStart:F,paddingInlineEnd:F,margin:F,marginTop:F,marginRight:F,marginBottom:F,marginLeft:F,marginBlock:F,marginBlockStart:F,marginBlockEnd:F,marginInline:F,marginInlineStart:F,marginInlineEnd:F,fontSize:F,backgroundPositionX:F,backgroundPositionY:F,rotate:N,pathRotation:N,rotateX:N,rotateY:N,rotateZ:N,scale:Ie,scaleX:Ie,scaleY:Ie,scaleZ:Ie,skew:N,skewX:N,skewY:N,distance:F,translateX:F,translateY:F,translateZ:F,x:F,y:F,z:F,perspective:F,transformPerspective:F,opacity:Fe,originX:Xe,originY:Xe,originZ:F,zIndex:ni,fillOpacity:Fe,strokeOpacity:Fe,numOctaves:ni},ii={...ri,color:I,backgroundColor:I,outlineColor:I,fill:I,stroke:I,borderColor:I,borderTopColor:I,borderRightColor:I,borderBottomColor:I,borderLeftColor:I,filter:ei,WebkitFilter:ei,mask:ti,WebkitMask:ti},ai=e=>ii[e],oi=new Set([ei,ti]);function si(e,t){let n=ai(e);return oi.has(n)||(n=L),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var ci=new Set([`auto`,`none`,`0`]);function li(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!ci.has(t)&&ot(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=si(n,i)}var ui=class extends Nn{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),je(r))){let i=Or(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!jr.has(n)||e.length!==2)return;let[r,i]=e,a=Yr(r),o=Yr(i);if(Ne(r)!==Ne(i)&&V[n])this.needsMeasurement=!0;else if(a!==o){if(Cn(a)&&Cn(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else V[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Xr(e[t]))&&n.push(t);n.length&&li(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=V[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=V[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},di=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function fi(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var pi=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function mi(e){return _(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:hi,cancel:gi}=we(queueMicrotask,!1),G={x:!1,y:!1};function _i(){return G.x||G.y}function vi(e){return e===`x`||e===`y`?G[e]?null:(G[e]=!0,()=>{G[e]=!1}):G.x||G.y?null:(G.x=G.y=!0,()=>{G.x=G.y=!1})}function yi(e,t){let n=fi(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function bi(e){return!(e.pointerType===`touch`||_i())}function xi(e,t,n={}){let[r,i,a]=yi(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{e.pointerType!==`touch`&&(n?r=!0:s(e))};e.addEventListener(`pointerenter`,n=>{if(!bi(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var Si=(e,t)=>t?e===t||Si(e,t.parentElement):!1,Ci=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,wi=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Ti(e){return wi.has(e.tagName)||e.isContentEditable===!0}var Ei=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function Di(e){return Ei.has(e.tagName)||e.isContentEditable===!0}var Oi=new WeakSet;function ki(e){return t=>{t.key===`Enter`&&e(t)}}function Ai(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var ji=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=ki(()=>{if(Oi.has(n))return;Ai(n,`down`);let e=ki(()=>{Ai(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>Ai(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Mi(e){return Ci(e)&&!_i()}var Ni=new WeakSet;function Pi(e,t,n={}){let[r,i,a]=yi(e,n),o=e=>{let r=e.currentTarget;if(!Mi(e)||Ni.has(e))return;Oi.add(r),n.stopPropagation&&Ni.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),Oi.has(r)&&Oi.delete(r),Mi(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||Si(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),mi(e)&&(e.addEventListener(`focus`,e=>ji(e,i)),!Ti(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Fi(e){return _(e)&&`ownerSVGElement`in e}var Ii=new WeakMap,Li,Ri=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:Fi(r)&&`getBBox`in r?r.getBBox()[t]:r[n],zi=Ri(`inline`,`width`,`offsetWidth`),Bi=Ri(`block`,`height`,`offsetHeight`);function Vi({target:e,borderBoxSize:t}){Ii.get(e)?.forEach(n=>{n(e,{get width(){return zi(e,t)},get height(){return Bi(e,t)}})})}function Hi(e){e.forEach(Vi)}function Ui(){typeof ResizeObserver<`u`&&(Li=new ResizeObserver(Hi))}function Wi(e,t){Li||Ui();let n=fi(e);return n.forEach(e=>{let n=Ii.get(e);n||(n=new Set,Ii.set(e,n)),n.add(t),Li?.observe(e)}),()=>{n.forEach(e=>{let n=Ii.get(e);n?.delete(t),n?.size||Li?.unobserve(e)})}}var Gi=new Set,Ki;function qi(){Ki=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Gi.forEach(t=>t(e))},window.addEventListener(`resize`,Ki)}function Ji(e){return Gi.add(e),Ki||qi(),()=>{Gi.delete(e),!Gi.size&&typeof Ki==`function`&&(window.removeEventListener(`resize`,Ki),Ki=void 0)}}function Yi(e,t){return typeof e==`function`?Ji(e):Wi(e,t)}var Xi={value:null,addProjectionMetrics:null};function Zi(e){return Fi(e)&&e.tagName===`svg`}var Qi=[...Jr,I,L],$i=e=>Qi.find(qr(e)),ea=()=>({translate:0,scale:1,origin:0,originPoint:0}),ta=()=>({x:ea(),y:ea()}),na=()=>({min:0,max:0}),K=()=>({x:na(),y:na()}),ra=new WeakMap;function ia(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function aa(e){return typeof e==`string`||Array.isArray(e)}var oa=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],sa=[`initial`,...oa];function ca(e){return ia(e.animate)||sa.some(t=>aa(e[t]))}function la(e){return!!(ca(e)||e.variants)}function ua(e,t,n){for(let r in t){let i=t[r],a=n[r];if(W(i))e.addValue(r,i);else if(W(a))e.addValue(r,hr(i,{owner:e}));else if(a!==i){if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,hr(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var da={current:null},fa={current:!1},pa=typeof window<`u`;function ma(){if(fa.current=!0,pa){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>da.current=e.matches;e.addEventListener(`change`,t),t()}else da.current=!1}}var ha=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],ga={};function _a(e){ga=e}function va(){return ga}var ya=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Nn,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=j.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,O.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=ca(t),this.isVariantNode=la(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&W(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,ra.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(fa.current||ma(),this.shouldReduceMotion=da.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),k(this.notifyUpdate),k(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&nr.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Kn({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:w(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=Sn.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&O.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in ga){let t=ga[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):K()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<ha.length;t++){let n=ha[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=ua(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=hr(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(g(n)||v(n))?n=parseFloat(n):!$i(n)&&L.test(t)&&(n=si(e,t)),this.setBaseTarget(e,W(n)?n.get():n)),W(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=Ar(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!W(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new C),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){hi.render(this.render)}},ba=class extends ya{constructor(){super(...arguments),this.KeyframeResolver=ui}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;W(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},q=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function xa({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Sa({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Ca(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function wa(e){return e===void 0||e===1}function Ta({scale:e,scaleX:t,scaleY:n}){return!wa(e)||!wa(t)||!wa(n)}function J(e){return Ta(e)||Ea(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Ea(e){return Da(e.x)||Da(e.y)}function Da(e){return e&&e!==`0%`}function Oa(e,t,n){return n+t*(e-n)}function ka(e,t,n,r,i){return i!==void 0&&(e=Oa(e,i,r)),Oa(e,n,r)+t}function Aa(e,t=0,n=1,r,i){e.min=ka(e.min,t,n,r,i),e.max=ka(e.max,t,n,r,i)}function ja(e,{x:t,y:n}){Aa(e.x,t.translate,t.scale,t.originPoint),Aa(e.y,n.translate,n.scale,n.originPoint)}var Ma=.999999999999,Na=1.0000000000001;function Pa(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(Y(e.x,-a.scroll.offset.x),Y(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,ja(e,o)),r&&J(a.latestValues)&&La(e,a.latestValues,a.layout?.layoutBox))}t.x<Na&&t.x>Ma&&(t.x=1),t.y<Na&&t.y>Ma&&(t.y=1)}function Y(e,t){e.min+=t,e.max+=t}function Fa(e,t,n,r,i=.5){Aa(e,t,n,R(e.min,e.max,i),r)}function Ia(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function La(e,t,n){let r=n??e;Fa(e.x,Ia(t.x,r.x),t.scaleX,t.scale,t.originX),Fa(e.y,Ia(t.y,r.y),t.scaleY,t.scale,t.originY)}function Ra(e,t){return xa(Ca(e.getBoundingClientRect(),t))}function za(e,t,n){let r=Ra(e,n),{scroll:i}=t;return i&&(Y(r.x,i.offset.x),Y(r.y,i.offset.y)),r}var Ba={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Va=xn.length;function Ha(e,t,n){let r=``,i=!0;for(let a=0;a<Va;a++){let o=xn[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=pi(s,ri[o]);if(!c){i=!1;let t=Ba[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${pi(a,ri.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function Ua(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(Sn.has(e))o=!0;else if(ke(e))i[e]=n;else{let t=pi(n,ri[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Ha(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function Wa(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function Ga(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Ka={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(F.test(e))e=parseFloat(e);else return e}return`${Ga(e,t.target.x)}% ${Ga(e,t.target.y)}%`}},qa={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=L.parse(e);if(i.length>5)return r;let a=L.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=R(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},Ja={borderRadius:{...Ka,applyTo:[...di]},borderTopLeftRadius:Ka,borderTopRightRadius:Ka,borderBottomLeftRadius:Ka,borderBottomRightRadius:Ka,boxShadow:qa};function Ya(e,{layout:t,layoutId:n}){return Sn.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Ja[e]||e===`opacity`)}function Xa(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(W(r[t])||i&&W(i[t])||Ya(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function Za(e){return window.getComputedStyle(e)}var Qa=class extends ba{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Wa}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(Sn.has(t))return this.projection?.isProjecting?_n(t):yn(e,t);{let n=Za(e),r=(ke(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Ra(e,t)}build(e,t,n){Ua(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Xa(e,t,n)}},$a={offset:`stroke-dashoffset`,array:`stroke-dasharray`},eo={offset:`strokeDashoffset`,array:`strokeDasharray`};function to(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?$a:eo;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var no=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function ro(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(Ua(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of no)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&to(d,i,a,o,!1)}var io=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),ao=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function oo(e,t,n,r){Wa(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(io.has(n)?n:Rr(n),t.attrs[n])}function so(e,t,n){let r=Xa(e,t,n);for(let n in e)if(W(e[n])||W(t[n])){let t=xn.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var co=class extends ba{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=K}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Sn.has(t)){let e=ai(t);return e&&e.default||0}return t=io.has(t)?t:Rr(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return so(e,t,n)}build(e,t,n){ro(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){oo(e,t,n,r)}mount(e){this.isSVGTag=ao(e.tagName),super.mount(e)}},lo=sa.length;function uo(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&uo(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<lo;n++){let r=sa[n],i=e.props[r];(aa(i)||i===!1)&&(t[r]=i)}return t}function fo(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var po=[...oa].reverse(),mo=oa.length;function ho(e){return t=>Promise.all(t.map(({animation:t,options:n})=>Gr(e,t,n)))}function go(e){let t=ho(e),n=vo(),r=!0,i=!1,a=t=>(n,r)=>{let i=U(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=uo(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<mo;t++){let p=po[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=aa(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||ia(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=_o(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},E=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=Mr(t)&&Mr(n)?!fo(t,n)||y:t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let D=v&&y;b&&(!D||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!D&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=U(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=ur(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=U(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=vo(),i=!0}}}function _o(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!fo(t,e):!1}function X(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function vo(){return{animate:X(!0),whileInView:X(),whileHover:X(),whileTap:X(),whileDrag:X(),whileFocus:X(),exit:X()}}function yo(e,t){e.min=t.min,e.max=t.max}function Z(e,t){yo(e.x,t.x),yo(e.y,t.y)}function bo(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var xo=.9999,So=1.0001,Co=-.01,wo=.01;function Q(e){return e.max-e.min}function To(e,t,n){return Math.abs(e-t)<=n}function Eo(e,t,n,r=.5){e.origin=r,e.originPoint=R(t.min,t.max,e.origin),e.scale=Q(n)/Q(t),e.translate=R(n.min,n.max,e.origin)-e.originPoint,(e.scale>=xo&&e.scale<=So||isNaN(e.scale))&&(e.scale=1),(e.translate>=Co&&e.translate<=wo||isNaN(e.translate))&&(e.translate=0)}function Do(e,t,n,r){Eo(e.x,t.x,n.x,r?r.originX:void 0),Eo(e.y,t.y,n.y,r?r.originY:void 0)}function Oo(e,t,n,r=0){e.min=(r?R(n.min,n.max,r):n.min)+t.min,e.max=e.min+Q(t)}function ko(e,t,n,r){Oo(e.x,t.x,n.x,r?.x),Oo(e.y,t.y,n.y,r?.y)}function Ao(e,t,n,r=0){let i=r?R(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Q(t)}function jo(e,t,n,r){Ao(e.x,t.x,n.x,r?.x),Ao(e.y,t.y,n.y,r?.y)}function Mo(e,t,n,r,i){return e-=t,e=Oa(e,1/n,r),i!==void 0&&(e=Oa(e,1/i,r)),e}function No(e,t=0,n=1,r=.5,i,a=e,o=e){if(P.test(t)&&(t=parseFloat(t),t=R(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=R(a.min,a.max,r);e===a&&(s-=t),e.min=Mo(e.min,t,n,s,i),e.max=Mo(e.max,t,n,s,i)}function Po(e,t,[n,r,i],a,o){No(e,t[n],t[r],t[i],t.scale,a,o)}var Fo=[`x`,`scaleX`,`originX`],Io=[`y`,`scaleY`,`originY`];function Lo(e,t,n,r){Po(e.x,t,Fo,n?n.x:void 0,r?r.x:void 0),Po(e.y,t,Io,n?n.y:void 0,r?r.y:void 0)}function Ro(e){return e.translate===0&&e.scale===1}function zo(e){return Ro(e.x)&&Ro(e.y)}function Bo(e,t){return e.min===t.min&&e.max===t.max}function Vo(e,t){return Bo(e.x,t.x)&&Bo(e.y,t.y)}function Ho(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Uo(e,t){return Ho(e.x,t.x)&&Ho(e.y,t.y)}function Wo(e){return Q(e.x)/Q(e.y)}function Go(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function $(e){return[e(`x`),e(`y`)]}function Ko(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var qo=di.length,Jo=e=>typeof e==`string`?parseFloat(e):e,Yo=e=>typeof e==`number`||F.test(e);function Xo(e,t,n,r,i,a){i?(e.opacity=R(0,n.opacity??1,Qo(r)),e.opacityExit=R(t.opacity??1,0,$o(r))):a&&(e.opacity=R(t.opacity??1,n.opacity??1,r));for(let i=0;i<qo;i++){let a=di[i],o=Zo(t,a),s=Zo(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||Yo(o)===Yo(s)?(e[a]=Math.max(R(Jo(o),Jo(s),r),0),(P.test(s)||P.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=R(t.rotate||0,n.rotate||0,r))}function Zo(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Qo=es(0,.5,de),$o=es(.5,.95,b);function es(e,t,n){return r=>r<e?0:r>t?1:n(S(e,t,r))}function ts(e,t,n){let r=W(e)?e:hr(e);return r.start(Tr(``,r,t,n)),r.animation}function ns(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var rs=(e,t)=>e.depth-t.depth,is=class{constructor(){this.children=[],this.isDirty=!1}add(e){f(this.children,e),this.isDirty=!0}remove(e){p(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(rs),this.isDirty=!1,this.children.forEach(e)}};function as(e,t){let n=j.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(k(r),e(a-t))};return O.setup(r,!0),()=>k(r)}function os(e){return W(e)?e.get():e}var ss=class{constructor(){this.members=[]}add(e){f(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;r&&r.isConnected!==!1||n.snapshot||(p(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(p(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},cs={hasAnimatedSinceResize:!0,hasEverUpdated:!1},ls={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},us=[``,`X`,`Y`,`Z`],ds=1e3,fs=0;function ps(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function ms(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Br(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,O,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&ms(r)}function hs({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=fs++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Xi.value&&(ls.nodes=ls.calculatedTargetDeltas=ls.calculatedProjections=0),this.nodes.forEach(vs),this.nodes.forEach(Ds),this.nodes.forEach(Os),this.nodes.forEach(ys),Xi.addProjectionMetrics&&Xi.addProjectionMetrics(ls)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new is)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new C),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=Fi(t)&&!Zi(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;O.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=as(i,250),cs.hasAnimatedSinceResize&&(cs.hasAnimatedSinceResize=!1,this.nodes.forEach(Es)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||Fs,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!Uo(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={..._r(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||Es(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),k(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ks),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ms(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(Ss),this.nodes.forEach(xs);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Cs);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ws),this.nodes.forEach(Ts),this.nodes.forEach(gs),this.nodes.forEach(_s)):this.nodes.forEach(Cs),this.clearAllSnapshots();let e=j.now();A.delta=m(0,1e3/60,e-A.timestamp),A.timestamp=e,A.isProcessing=!0,Te.update.process(A),Te.preRender.process(A),Te.render.process(A),A.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,hi.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(bs),this.sharedNodes.forEach(As)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,O.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){O.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),this.snapshot&&!Q(this.snapshot.measuredBox.x)&&!Q(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=K(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!zo(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||J(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),zs(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return K();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Vs))){let{scroll:e}=this.root;e&&(Y(t.x,e.offset.x),Y(t.y,e.offset.y))}return t}removeElementScroll(e){let t=K();if(Z(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Z(t,e),Y(t.x,i.offset.x),Y(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||K();Z(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(Y(r.x,-n.scroll.offset.x),Y(r.y,-n.scroll.offset.y)),J(n.latestValues)&&La(r,n.latestValues,n.layout?.layoutBox)}return J(this.latestValues)&&La(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=K();Z(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!J(n.latestValues))continue;let r;n.instance&&(Ta(n.latestValues)&&n.updateSnapshot(),r=K(),Z(r,n.measurePageBox())),Lo(t,n.latestValues,n.snapshot?.layoutBox,r)}return J(this.latestValues)&&Lo(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==A.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=A.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=K(),this.targetWithTransforms=K()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ko(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Z(this.target,this.layout.layoutBox),ja(this.target,this.targetDelta)):Z(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),Xi.value&&ls.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Ta(this.parent.latestValues)||Ea(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=K(),this.relativeTargetOrigin=K(),jo(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Z(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===A.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;Z(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Pa(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=K());let{target:s}=e;s?(!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(bo(this.prevProjectionDelta.x,this.projectionDelta.x),bo(this.prevProjectionDelta.y,this.projectionDelta.y)),Do(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&Go(this.projectionDelta.x,this.prevProjectionDelta.x)&&Go(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Xi.value&&ls.calculatedProjections++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ta(),this.projectionDelta=ta(),this.projectionDeltaWithTransform=ta()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=ta();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=K(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!(!c||u||this.options.crossfade!==!0||this.path.some(Ps));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=R(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=R(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(js(o.x,e.x,n),js(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(jo(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Ns(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&Vo(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=K(),Z(f,this.relativeTarget)),c&&(this.animationValues=a,Xo(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(k(this.pendingAnimation),void 0),this.pendingAnimation=O.update(()=>{cs.hasAnimatedSinceResize=!0,this.motionValue||=hr(0),this.motionValue.jump(0,!1),this.currentAnimation=ts(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ds),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&Bs(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||K();let t=Q(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=Q(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Z(t,n),La(t,i),Do(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new ss),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&ps(`z`,e,r,this.animationValues);for(let t=0;t<us.length;t++)ps(`rotate${us[t]}`,e,r,this.animationValues),ps(`skew${us[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=os(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=os(t?.pointerEvents)||``),this.hasProjected&&!J(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=Ko(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,e.opacity=r.animationValues?r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in Ja){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=Ja[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?os(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(xs),this.root.sharedNodes.clear()}}}function gs(e){e.updateLayout()}function _s(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)$(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Q(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;yo(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else Bs(i,t.layoutBox,n)&&$(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Q(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=ta();Do(o,n,t.layoutBox);let s=ta();a?Do(s,e.applyTransform(r,!0),t.measuredBox):Do(s,n,t.layoutBox);let c=!zo(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=K();jo(s,t.layoutBox,i.layoutBox,o);let c=K();jo(c,n,a.layoutBox,o),Uo(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function vs(e){Xi.value&&ls.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function ys(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function bs(e){e.clearSnapshot()}function xs(e){e.clearMeasurements()}function Ss(e){e.isLayoutDirty=!0,e.updateLayout()}function Cs(e){e.isLayoutDirty=!1}function ws(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Ts(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Es(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Ds(e){e.resolveTargetDelta()}function Os(e){e.calcProjection()}function ks(e){e.resetSkewAndRotation()}function As(e){e.removeLeadSnapshot()}function js(e,t,n){e.translate=R(t.translate,0,n),e.scale=R(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ms(e,t,n,r){e.min=R(t.min,n.min,r),e.max=R(t.max,n.max,r)}function Ns(e,t,n,r){Ms(e.x,t.x,n.x,r),Ms(e.y,t.y,n.y,r)}function Ps(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Fs={duration:.45,ease:[.4,0,.1,1]},Is=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ls=Is(`applewebkit/`)&&!Is(`chrome/`)?Math.round:b;function Rs(e){e.min=Ls(e.min),e.max=Ls(e.max)}function zs(e){Rs(e.x),Rs(e.y)}function Bs(e,t,n){return e===`position`||e===`preserve-aspect`&&!To(Wo(t),Wo(n),.2)}function Vs(e){return e!==e.root&&e.scroll?.wasRoot}var Hs=hs({attachResizeListener:(e,t)=>ns(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Us={current:void 0},Ws=hs({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Us.current){let e=new Hs({});e.mount(window),e.setOptions({layoutScroll:!0}),Us.current=e}return Us.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Gs=(0,s.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function Ks(e=!0){let t=(0,s.useContext)(d);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,s.useId)();(0,s.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,s.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var qs=(0,s.createContext)({strict:!1}),Js={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},Ys=!1;function Xs(){if(Ys)return;let e={};for(let t in Js)e[t]={isEnabled:e=>Js[t].some(t=>!!e[t])};_a(e),Ys=!0}function Zs(){return Xs(),va()}function Qs(e){let t=Zs();for(let n in e)t[n]={...t[n],...e[n]};_a(t)}var $s=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function ec(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||$s.has(e)}var tc=r({default:()=>nc}),nc,rc=n((()=>{throw nc={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),ic=e=>!ec(e);function ac(e){typeof e==`function`&&(ic=t=>t.startsWith(`on`)?!ec(t):e(t))}try{ac((rc(),t(tc)).default)}catch{}function oc(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||W(e[i])||(ic(i)||n===!0&&ec(i)||!t&&!ec(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var sc=(0,s.createContext)({});function cc(e,t){if(ca(e)){let{initial:t,animate:n}=e;return{initial:t===!1||aa(t)?t:void 0,animate:aa(n)?n:void 0}}return e.inherit===!1?{}:t}function lc(e){let{initial:t,animate:n}=cc(e,(0,s.useContext)(sc));return(0,s.useMemo)(()=>({initial:t,animate:n}),[uc(t),uc(n)])}function uc(e){return Array.isArray(e)?e.join(` `):e}var dc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function fc(e,t,n){for(let r in t)!W(t[r])&&!Ya(r,n)&&(e[r]=t[r])}function pc({transformTemplate:e},t){return(0,s.useMemo)(()=>{let n=dc();return Ua(n,t,e),Object.assign({},n.vars,n.style)},[t])}function mc(e,t){let n=e.style||{},r={};return fc(r,n,e),Object.assign(r,pc(e,t)),r}function hc(e,t){let n={},r=mc(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var gc=()=>({...dc(),attrs:{}});function _c(e,t,n,r){let i=(0,s.useMemo)(()=>{let n=gc();return ro(n,t,ao(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};fc(t,e.style,e),i.style={...t,...i.style}}return i}var vc=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function yc(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(vc.indexOf(e)>-1||/[A-Z]/u.test(e))}function bc(e,t,n,{latestValues:r},i,a=!1,o){let c=(o??yc(e)?_c:hc)(t,r,i,e),l=oc(t,typeof e==`string`,a),u=e===s.Fragment?{}:{...l,...c,ref:n},{children:d}=t,f=(0,s.useMemo)(()=>W(d)?d.get():d,[d]);return(0,s.createElement)(e,{...u,children:f})}function xc({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Sc(n,r,i,e),renderState:t()}}function Sc(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=os(a[e]);let{initial:o,animate:s}=e,c=ca(e),l=la(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!ia(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=Ar(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var Cc=e=>(t,n)=>{let r=(0,s.useContext)(sc),i=(0,s.useContext)(d),a=()=>xc(e,t,r,i);return n?a():l(a)},wc=Cc({scrapeMotionValuesFromProps:Xa,createRenderState:dc}),Tc=Cc({scrapeMotionValuesFromProps:so,createRenderState:gc}),Ec=Symbol.for(`motionComponentSymbol`);function Dc(e,t,n){let r=(0,s.useRef)(n);(0,s.useInsertionEffect)(()=>{r.current=n});let i=(0,s.useRef)(null);return(0,s.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`){if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n)}else a&&(a.current=n)},[t])}var Oc=(0,s.createContext)({});function kc(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Ac(e,t,n,r,i,a){let{visualElement:o}=(0,s.useContext)(sc),c=(0,s.useContext)(qs),l=(0,s.useContext)(d),f=(0,s.useContext)(Gs),p=f.reducedMotion,m=f.skipAnimations,h=(0,s.useRef)(null),g=(0,s.useRef)(!1);r||=c.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:p,skipAnimations:m,isSVG:a}),g.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));let _=h.current,v=(0,s.useContext)(Oc);_&&!_.projection&&i&&(_.type===`html`||_.type===`svg`)&&jc(h.current,n,i,v);let y=(0,s.useRef)(!1);(0,s.useInsertionEffect)(()=>{_&&y.current&&_.update(n,l)});let b=n[zr],x=(0,s.useRef)(!!b&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(b)&&window.MotionHasOptimisedAnimation?.(b));return u(()=>{g.current=!0,_&&(y.current=!0,window.MotionIsMounted=!0,_.updateFeatures(),_.scheduleRenderMicrotask(),x.current&&_.animationState&&_.animationState.animateChanges())}),(0,s.useEffect)(()=>{_&&(!x.current&&_.animationState&&_.animationState.animateChanges(),x.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(b)}),!1),_.enteringChildren=void 0)}),_}function jc(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Mc(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&kc(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Mc(e){if(e)return e.options.allowProjection===!1?Mc(e.parent):e.projection}function Nc(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&Qs(r);let a=n?n===`svg`:yc(e),c=a?Tc:wc;function l(n,l){let u,d={...(0,s.useContext)(Gs),...n,layoutId:Pc(n)},{isStatic:f}=d,p=lc(n),m=c(n,f);if(!f&&typeof window<`u`){Fc(d,r);let t=Ic(d);u=t.MeasureLayout,p.visualElement=Ac(e,m,d,i,t.ProjectionNode,a)}return(0,o.jsxs)(sc.Provider,{value:p,children:[u&&p.visualElement?(0,o.jsx)(u,{visualElement:p.visualElement,...d}):null,bc(e,n,Dc(m,p.visualElement,l),m,f,t,a)]})}l.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let u=(0,s.forwardRef)(l);return u[Ec]=e,u}function Pc({layoutId:e}){let t=(0,s.useContext)(c).id;return t&&e!==void 0?t+`-`+e:e}function Fc(e,t){(0,s.useContext)(qs).strict}function Ic(e){let{drag:t,layout:n}=Zs();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Lc(e,t){if(typeof Proxy>`u`)return Nc;let n=new Map,r=(n,r)=>Nc(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,Nc(a,void 0,e,t)),n.get(a))})}var Rc=(e,t)=>t.isSVG??yc(e)?new co(t):new Qa(t,{allowProjection:e!==s.Fragment}),zc=class extends q{constructor(e){super(e),e.animationState||=go(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();ia(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},Bc=0,Vc={animation:{Feature:zc},exit:{Feature:class extends q{constructor(){super(...arguments),this.id=Bc++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=U(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function Hc(e){return{point:{x:e.pageX,y:e.pageY}}}var Uc=e=>t=>Ci(t)&&e(t,Hc(t));function Wc(e,t,n,r){return ns(e,t,Uc(n),r)}var Gc=({current:e})=>e?e.ownerDocument.defaultView:null,Kc=(e,t)=>Math.abs(e-t);function qc(e,t){let n=Kc(e.x,t.x),r=Kc(e.y,t.y);return Math.sqrt(n**2+r**2)}var Jc=new Set([`auto`,`scroll`]),Yc=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Xc(this.lastRawMoveEventInfo,this.transformPagePoint));let e=Qc(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=qc(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=A;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=Xc(t,this.transformPagePoint),O.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=Qc(e.type===`pointercancel`?this.lastMoveEventInfo:Xc(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!Ci(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=Xc(Hc(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=A;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,Qc(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=x(Wc(this.contextWindow,`pointermove`,this.handlePointerMove,d),Wc(this.contextWindow,`pointerup`,this.handlePointerUp,d),Wc(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(Jc.has(e.overflowX)||Jc.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),O.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),k(this.updatePoint)}};function Xc(e,t){return t?{point:t(e.point)}:e}function Zc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Qc({point:e},t){return{point:e,delta:Zc(e,el(t)),offset:Zc(e,$c(t)),velocity:tl(t,.1)}}function $c(e){return e[0]}function el(e){return e[e.length-1]}function tl(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=el(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>w(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>w(t)*2&&(r=e[1]);let a=T(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function nl(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?R(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?R(n,e,r.max):Math.min(e,n)),e}function rl(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function il(e,{top:t,left:n,bottom:r,right:i}){return{x:rl(e.x,n,i),y:rl(e.y,t,r)}}function al(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function ol(e,t){return{x:al(e.x,t.x),y:al(e.y,t.y)}}function sl(e,t){let n=.5,r=Q(e),i=Q(t);return i>r?n=S(t.min,t.max-r,e.min):r>i&&(n=S(e.min,e.max-i,t.min)),m(0,1,n)}function cl(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var ll=.35;function ul(e=ll){return e===!1?e=0:e===!0&&(e=ll),{x:dl(e,`left`,`right`),y:dl(e,`top`,`bottom`)}}function dl(e,t,n){return{min:fl(e,t),max:fl(e,n)}}function fl(e,t){return typeof e==`number`?e:e[t]||0}var pl=new WeakMap,ml=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=K(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(Hc(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=vi(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),$(e=>{let t=this.getAxisMotionValue(e).get()||0;if(P.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=Q(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&O.update(()=>i(e,t),!1,!0),Lr(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;r&&this.currentDirection===null?(this.currentDirection=vl(o),this.currentDirection!==null&&i&&i(this.currentDirection)):(this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&O.update(()=>a(e,t),!1,!0))},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new Yc(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:Gc(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&O.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!_l(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=nl(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&kc(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?il(n.layoutBox,e):!1,this.elastic=ul(t),r!==this.constraints&&!kc(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&$(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=cl(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!kc(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=za(n,r.root,this.visualElement.getTransformPagePoint()),a=ol(r.layout.layoutBox,i);if(t){let e=t(Sa(a));this.hasMutatedConstraints=!!e,e&&(a=xa(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=$(o=>{if(!_l(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Lr(this.visualElement,e),n.start(Tr(e,n,0,t,this.visualElement,!1))}stopAnimation(){$(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){$(t=>{let{drag:n}=this.getProps();if(!_l(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-R(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!kc(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};$(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=sl({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),$(t=>{if(!_l(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(R(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;pl.set(this.visualElement,this);let e=this.visualElement.current,t=Wc(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&Di(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();kc(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=gl(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),O.read(r);let o=ns(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&($(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=ll,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function hl(e){let t=!0;return()=>{t?t=!1:e()}}function gl(e,t,n){let r=Yi(e,hl(n)),i=Yi(t,hl(n));return()=>{r(),i()}}function _l(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function vl(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var yl=class extends q{constructor(e){super(e),this.removeGroupControls=b,this.removeListeners=b,this.controls=new ml(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||b}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},bl=e=>(t,n)=>{e&&O.update(()=>e(t,n),!1,!0)},xl=class extends q{constructor(){super(...arguments),this.removePointerDownListener=b}onPointerDown(e){this.session=new Yc(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Gc(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:bl(e),onStart:bl(t),onMove:bl(n),onEnd:(e,t)=>{delete this.session,r&&O.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Wc(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},Sl=!1,Cl=class extends s.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),Sl&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),cs.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a&&(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),Sl=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||O.postRender(()=>{let e=a.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),hi.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;Sl=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function wl(e){let[t,n]=Ks(),r=(0,s.useContext)(c);return(0,o.jsx)(Cl,{...e,layoutGroup:r,switchLayoutGroup:(0,s.useContext)(Oc),isPresent:t,safeToRemove:n})}var Tl={pan:{Feature:xl},drag:{Feature:yl,ProjectionNode:Ws,MeasureLayout:wl}};function El(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&O.postRender(()=>i(t,Hc(t)))}var Dl=class extends q{mount(){let{current:e}=this.node;e&&(this.unmount=xi(e,(e,t)=>(El(this.node,t,`Start`),e=>El(this.node,e,`End`))))}unmount(){}},Ol=class extends q{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}e&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=x(ns(this.node.current,`focus`,()=>this.onFocus()),ns(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function kl(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&O.postRender(()=>i(t,Hc(t)))}var Al=class extends q{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Pi(e,(e,t)=>(kl(this.node,t,`Start`),(e,{success:t})=>kl(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},jl=new WeakMap,Ml=new WeakMap,Nl=e=>{let t=jl.get(e.target);t&&t(e)},Pl=e=>{e.forEach(Nl)};function Fl({root:e,...t}){let n=e||document;Ml.has(n)||Ml.set(n,{});let r=Ml.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Pl,{root:e,...t})),r[i]}function Il(e,t,n){let r=Fl(t);return jl.set(e,n),r.observe(e),()=>{jl.delete(e),r.unobserve(e)}}var Ll={some:0,all:1},Rl=class extends q{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:Ll[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=Il(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(zl(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function zl({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var Bl={inView:{Feature:Rl},tap:{Feature:Al},focus:{Feature:Ol},hover:{Feature:Dl}},Vl={layout:{ProjectionNode:Ws,MeasureLayout:wl}},Hl=Lc({...Vc,...Bl,...Tl,...Vl},Rc);export{ma as a,mi as c,u as d,l as f,Gs as i,gr as l,ac as n,fa as o,c as p,Ks as r,da as s,Hl as t,d as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,o)=>(o=n==null?{}:e(i(n)),l(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)),d=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e);export{u as a,d as i,o as n,c as r,s as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e,n as t,s as n}from"./dom-BxZbg3NX.js";import{C as r,I as i,_ as a,c as o,d as s,g as c,h as l,s as u,w as d,y as f}from"./status-DQYLUbXs.js";var p=15,m=3,h=28,g=31,_=[0,.18,.4,.6,.74,1],v=34;function y(e,t=4){let n=t=>-e/2+e*t,r=e=>(n(_[e]??0)+n(_[e+1]??0))/2;return{intake:[r(0),-15,17],chwSupply:[r(2)-t,-6,35],chwReturn:[r(2)+t,-6,35],steam:[r(3),-6,35],discharge:[r(4),18,22]}}var b=(e,t=!1)=>({x:-e/2,y:-16,w:e+(t?v:0),d:32,r:2});function x(e,t){let{G:n,P:r,S:i,slab:a}=e,o=t/2-1,s=n.frameAlong([o,0,17],[1,0,0]),c=n.frameAlong([o+10,0,17],[1,0,0]);return[a({x:o,y:-12,w:v,d:24,r:1},0,m,{tone:`lo`},2,0),a({x:o+12,y:-9,w:17,d:18,r:1},m,6.6,{tone:`lo`},2,0),i(n.disc(0,9.5,4.6,s,r),{tone:`mid`,crease:`lo`}),i(n.solidOf([[0,6.2],[1.6,7.4],[21,7.4],[22.6,6.2]],c,r),{tone:`mid`,inner:e.k.fadedSvg(n.ribsOf(c,1.6,21,7.4,16,r,{fade:[.1,.55],seams:!0}),{tone:`lo`})}),i(n.disc(22.6,26.4,5.6,c,r),{tone:`mid`}),a({x:o+17,y:-4.2,w:9,d:8.4,r:.8},24,4.4,{tone:`mid`},2,.3)].join(``)}function S(e,t,n,r={}){let{k:a,G:o,P:s,S:c,L:l,D:u,slab:d,cyl:f,hmi:v,at:b}=e,{stubHalf:S=4,humidifier:C=!0,filterGauge:w=!0,fanHook:T=`data-fan`,motor:E=!1}=r,D=e=>-n/2+n*e,O=y(n,S),k=[];k.push(d({x:-n/2,y:-16,w:n,d:32,r:1},0,m,{tone:`lo`},2,0));let A={x:-n/2+1,y:-15,w:n-2,d:30,r:1.2},j=_.slice(1,-1).map(e=>a.segment([D(e),p,m],[D(e),p,g],s)+a.segment([D(e),p,g],[D(e),-15,g],s)).join(``);k.push(c(a.slabOf(A,m,h,s,2,.5),{tone:`mid`,inner:l(j,{tone:`faint`})}));let M=e.front(p),[N,P]=[D(_[1])+2,D(_[2])-2];if(k.push(`<g transform="${M}"><path class="iso-line" data-tone="lo" fill="none" d="M${N} -6H${P}V-28H${N}Z"/><path class="sf-grime" data-foul="" style="opacity:0" d="M${N+.5} -6.5H${P-.5}V-27.5H${N+.5}Z"/></g>`),k.push(u([12,22].map(e=>b([P-2,p,e])),{size:.4})),w&&k.push(i(M,`${t}:hepa`,(N+P)/2-2,22,3)),C){let e=b([O.steam[0],p,11]);k.push(`<circle class="cr-lamp" data-hum="" cx="${e[0].toFixed(2)}" cy="${e[1].toFixed(2)}" r="${(.8*s.scale).toFixed(2)}"/>`)}k.push(v(t,p,D(_[2])+2,D(_[3])-2,7,27));let F=(e,t)=>{let n=o.frameAlong([e[0],e[1],g],[0,0,1]);return c(o.disc(0,e[2]-g-1.4,t,n,s),{tone:`mid`})+c(o.disc(e[2]-g-1.4,e[2]-g,t+1.2,n,s),{tone:`mid`})};k.push(F(O.chwSupply,1.8),F(O.chwReturn,1.8)),C&&k.push(F(O.steam,1.6));let I=(D(_[4])+D(_[5]))/2,L=Math.min(10,(D(_[5])-D(_[4]))/2-3);k.push(f(I,0,L+1,g,1.4,{tone:`mid`},40)),k.push(l(a.ring(I,0,L-1,32.4,s,40),{tone:`lo`}));let R=`${n/2+14},0,17`,z=T===`data-vfan`?` data-axis="z" data-top="${n/2+18},0,25" data-bearing="${R}"`:``;k.push(`<path class="iso-line" data-tone="mid" ${T}="${I},0,32.4,${L-1}"${z} d=""/>`),k.push(l(a.ring(I,0,2,32.4,s,16),{tone:`mid`}));let[B,V,H]=O.discharge,U=o.frameAlong([B,p,H],[0,1,0]);return k.push(c(o.disc(0,V-p-1.4,3,U,s),{tone:`mid`}),c(o.disc(V-p-1.4,V-p,4.2,U,s),{tone:`mid`})),E&&k.push(x(e,n)),k.join(``)}var C=46,w=20,T=4,E=32,D=[-32,0,36],O={x:-46,y:-20,w:92,d:40,r:2};function k(e,t,n=`top`){let{k:r,G:i,P:a,S:o,L:s,D:c,slab:l,cyl:u,hmi:d,screws:f}=e,p=[];p.push(l({x:-44,y:-18,w:88,d:36,r:1},0,T,{tone:`lo`},2,0));let m={x:-46,y:-20,w:92,d:40,r:1.5},h=[];for(let e=-17;e<=17;e+=2)h.push(r.segment([C,e,8],[C,e,28],a));let g=r.segment([4,w,T],[4,w,E],a)+r.segment([4,w,E],[4,-20,E],a);p.push(o(r.slabOf(m,T,28,a,3,.6),{tone:`mid`,inner:s(h.join(``),{tone:`faint`})+s(g,{tone:`lo`})}));let _=e.front(w);p.push(l({x:-43,y:w,w:18,d:5,r:.6},14,16,{tone:`mid`},2,.3));let v=[16,19.5,23,26.5].map(e=>`M-41 ${-e}H-27`).join(``);if(p.push(`<g transform="${e.front(25)}"><path class="iso-line" data-tone="lo" d="${v}"/></g>`),p.push(`<g transform="${_}"><path class="iso-line" data-tone="lo" fill="none" d="M-24 -7H-6V-29H-24Z"/><path class="sf-grime" data-foul="" style="opacity:0" d="M-23.5 -7.5H-6.5V-28.5H-23.5Z"/><path class="iso-line" data-tone="lo" fill="none" d="M24 -7H42V-29H24Z"/></g>`),p.push(c([12,24].flatMap(t=>[e.at([-8,w,t]),e.at([40,w,t])]),{size:.4})),p.push(`<path class="iso-line" data-rtu="33,${w},24" d=""/>`),p.push(d(t,w,7,21,9,27)),n===`top`){let e=i.frameAlong([D[0],D[1],E],[0,0,1]);p.push(o(i.disc(0,2.6,5,e,a),{tone:`mid`}),o(i.disc(2.6,4,6.2,e,a),{tone:`mid`}))}for(let e of[16,34])p.push(u(e,0,9.5,E,2,{tone:`mid`},40)),p.push(s(r.ring(e,0,8,34,a,40),{tone:`lo`})),p.push(`<path class="iso-line" data-tone="mid" data-fan="${e},0,34,8" d=""/>`),p.push(s(r.ring(e,0,1.6,34,a,16),{tone:`mid`}));return p.push(f(r.corners(m,2.5),E)),p.join(``)}function A(i,p){let{svg:m,P:h,feed:g}=i,_=(e,t)=>g.num(e,t),v=t(m,`[data-rtu]`).map(e=>{let i=u(e),a=e=>t(m,`[data-asset="${i}"] ${e}`);return{id:i,leak:o(e.dataset.rtu),fans:a(`[data-fan]`).map(e=>({el:e,at:n(e.dataset.fan)})),foul:a(`[data-foul]`),hiss:f(r(m,i),`frost`),rate:0,spin:0}}),y=new Map(v.map(e=>[e.id,e])),b=e=>c(_(e,`supply_airflow_cfm`)/g.param(e,`rated_airflow_cfm`,12e3));return{draw(t,n,r){let o=i.reducedMotion();for(let i of v){let c=_(i.id,`compressor_stage2_active`)>0?1.4:_(i.id,`compressor_stage1_active`)>0?.9:0;i.rate=a(i.rate,c,t,1.2,o),o||(i.spin+=i.rate*l*t);for(let{el:t,at:n}of i.fans)e(t,`d`,s(h,n,i.spin));let u=e=>r&&d(g,i.id,e);i.hiss.draw(u(`refrigerant_leak`)&&!o,n,h,i.leak,[.3,1]);let f=u(`dirty_filter`)?`0.85`:`0`;for(let e of i.foul)e.style.opacity=f;p(i.id,o?0:u(`compressor_failure`)?.3:0,n)}},bar(e){return y.has(e)?b(e):void 0},airPu:b}}export{b as a,k as i,O as n,y as o,D as r,S as s,A as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=class extends Error{detail;constructor(e){super(e),this.name=`CommandBlockedByRuntimeLink`,this.detail=e}};function t(e){switch(e){case`live`:return null;case`booting`:return`Runtime session is still starting. Try again in a moment.`;case`reconnecting`:return`Miravo is reconnecting. Wait until the link is live, then try again.`;case`resyncing`:return`Miravo is re-syncing. Wait until the link is live, then try again.`;case`unauthenticated`:return`Session is no longer valid on the server. Sign in again if prompted.`;case`fatal`:return`Cannot reach Miravo. Recover from the error screen, then try again.`;default:return e}}function n(n){let r=t(n);if(r)throw new e(r)}export{n,t as r,e as t};
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./utils-D6wrZy-b.js";var t=e(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),n=e(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),r=e(`server`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]);export{n,t as r,r as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e}from"./rolldown-runtime-BWaJ3C7D.js";import{c as t}from"./vendor-charts-Bquh2dWE.js";var n=e(t(),1),r=e=>Symbol.iterator in e,i=e=>`entries`in e,a=(e,t)=>{let n=e instanceof Map?e:new Map(e.entries()),r=t instanceof Map?t:new Map(t.entries());if(n.size!==r.size)return!1;for(let[e,t]of n)if(!r.has(e)||!Object.is(t,r.get(e)))return!1;return!0},o=(e,t)=>{let n=e[Symbol.iterator](),r=t[Symbol.iterator](),i=n.next(),a=r.next();for(;!i.done&&!a.done;){if(!Object.is(i.value,a.value))return!1;i=n.next(),a=r.next()}return!!i.done&&!!a.done};function s(e,t){return Object.is(e,t)?!0:typeof e!=`object`||!e||typeof t!=`object`||!t||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)?!1:r(e)&&r(t)?i(e)&&i(t)?a(e,t):o(e,t):a({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}function c(e){let t=n.useRef(void 0);return n=>{let r=e(n);return s(t.current,r)?t.current:t.current=r}}export{c as t};
|