@noxsoft/anima 5.1.2 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +40 -0
- package/README.md +2 -2
- package/dist/{APEv2Parser-DV7AH14P.js → APEv2Parser-Dvsbp_2R.js} +3 -3
- package/dist/{AbstractID3Parser-C3RlCr-Y.js → AbstractID3Parser-IB9gxozg.js} +5 -5
- package/dist/{AiffParser-DaFyNU8n.js → AiffParser-R2IhrBzL.js} +4 -4
- package/dist/{AsfParser-CDCRfCXr.js → AsfParser-DJEueUMg.js} +4 -4
- package/dist/{DsdiffParser-BX31LICZ.js → DsdiffParser-DXLYn9tT.js} +4 -4
- package/dist/{DsfParser-C3JBjE-C.js → DsfParser-D2--NF0i.js} +5 -5
- package/dist/{FlacParser-DY4m-7v1.js → FlacParser-8cDAjrth.js} +5 -5
- package/dist/{ID3v1Parser-DL9AGlNt.js → ID3v1Parser-B494XuP9.js} +3 -3
- package/dist/{ID3v2Parser-Mr8o-5GJ.js → ID3v2Parser-DlxcNqv5.js} +4 -4
- package/dist/{ID3v2Token-DQqGh8AB.js → ID3v2Token-CSLSVrSQ.js} +2 -2
- package/dist/{MP4Parser-DkunlEqI.js → MP4Parser-COql2J-w.js} +6 -6
- package/dist/{MatroskaParser-IKjHx0h7.js → MatroskaParser-bNP5wC2F.js} +3 -3
- package/dist/{MpegParser-EecSeRWJ.js → MpegParser-C1gjfYqq.js} +4 -4
- package/dist/{MusepackParser-CkfsAeuE.js → MusepackParser-DBdYf7kV.js} +5 -5
- package/dist/{OggParser-z3QlSd8U.js → OggParser-CxajqbK3.js} +5 -5
- package/dist/{Util-DDVY6AaC.js → Util-BRZxoY1Q.js} +1 -1
- package/dist/{WavPackParser-PimUUBRx.js → WavPackParser-CtH9QFia.js} +4 -4
- package/dist/{WaveParser-B539YtoQ.js → WaveParser-yufLki1G.js} +5 -5
- package/dist/{accounts-CL0JV_xk.js → accounts-B_2nt5Cd.js} +2 -2
- package/dist/{accounts-CYEa4ttU.js → accounts-COxGcLGB.js} +1 -1
- package/dist/{accounts-Bj5MvaDs.js → accounts-DIES085e.js} +11 -11
- package/dist/{accounts-DZsqyow2.js → accounts-TUsfghIW.js} +38 -38
- package/dist/{acp-cli-ynoZZhYQ.js → acp-cli-CWgqDQQH.js} +6 -6
- package/dist/{acp-cli-BFAoKBvs.js → acp-cli-D0wfP8-l.js} +16 -16
- package/dist/{active-listener-BWPgtTZp.js → active-listener-BKtsWhsb.js} +4 -4
- package/dist/{active-listener-GJR3nLhX.js → active-listener-D2r8IO7g.js} +5 -5
- package/dist/{agent-DUAarfNl.js → agent-CnS0SRpT.js} +93 -236
- package/dist/{agent-CaaEZsXl.js → agent-VRQM14Xp.js} +98 -229
- package/dist/{agent-scope-C9CiVcmh.js → agent-scope-ByIGrCTT.js} +2 -2
- package/dist/{agent-scope-D3HZp64M.js → agent-scope-CXxC8FFX.js} +2 -2
- package/dist/{agent-scope-BZ8hjIt_.js → agent-scope-CxBzAozu.js} +3 -3
- package/dist/{agents-t54YcbvK.js → agents-CvMRplDx.js} +15 -13
- package/dist/{agents.config-J7iEgdW_.js → agents.config-BR5JLtud.js} +1 -1
- package/dist/{anthropic-direct-runner-B12V2Q5H.js → anthropic-direct-runner-BeYCnvZ8.js} +37 -15
- package/dist/{anthropic-direct-runner-CzQb7QkD.js → anthropic-direct-runner-C2Kwju-r.js} +29 -7
- package/dist/{audit-ByHmjh-G.js → audit-B05W5ckN.js} +23 -34
- package/dist/{audit-HJOpXfgY.js → audit-DDz7UOIx.js} +18 -15
- package/dist/{auth-DXrALxdm.js → auth-DsC5pZ_0.js} +2 -2
- package/dist/{prompts-CneQ6SeF.js → auth-choice-DY1saszS.js} +12 -107
- package/dist/{auth-choice-DPWnLV_w.js → auth-choice-Dc5TAJwT.js} +10 -9
- package/dist/{auth-health-DmrnGklu.js → auth-health-Cc8-vy8y.js} +1 -1
- package/dist/auth-health-Dhr8p2SD.js +149 -0
- package/dist/{auth-profiles-BF5x9Ej0.js → auth-profiles-Brxz2ojJ.js} +193 -42
- package/dist/{auth-profiles-DjCH4kWT.js → auth-profiles-C-LuhW6c.js} +195 -44
- package/dist/{auth-profiles-PJVsRqf4.js → auth-profiles-DKu7ZUzl.js} +189 -29
- package/dist/{auth-profiles-eZzmaeR3.js → auth-profiles-DtWUl1-k.js} +198 -38
- package/dist/{auth-store-CnRrUELz.js → auth-store-Bd0GoqEL.js} +13 -13
- package/dist/{auth-store-KnWGteIV.js → auth-store-BpYI9t_y.js} +3 -3
- package/dist/{auth-store-DjcQlyze.js → auth-store-Jvgz2_l1.js} +2 -2
- package/dist/{banner-D9JyV5SF.js → banner-DAMtSjUF.js} +1 -1
- package/dist/{bonjour-discovery-QsoaZ8Pr.js → bonjour-discovery-Co-b97Dz.js} +2 -2
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +222 -151
- package/dist/bundled/bootstrap-extra-files/handler.js +5 -5
- package/dist/bundled/command-logger/handler.js +1 -1
- package/dist/bundled/session-memory/handler.js +24 -24
- package/dist/{call-DHZ76BNg.js → call-B4lhqS6H.js} +3 -3
- package/dist/{call-DQjoz63V.js → call-CDPbPDAr.js} +4 -4
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{catalog-AZNRamJ4.js → catalog-CsXv59Tq.js} +2 -2
- package/dist/{channel-web-CQIbtfme.js → channel-web-B8mzTSaY.js} +15 -15
- package/dist/{channels-status-issues-DdjvFHx9.js → channels-status-issues-WkG3Tmxk.js} +4 -4
- package/dist/{chrome-HTuFjVWW.js → chrome-B8EnYGj1.js} +9 -9
- package/dist/{chrome-BNggURXT.js → chrome-BaU-H9m7.js} +3 -3
- package/dist/{chrome-Cfak4A3i.js → chrome-DLUBPBPz.js} +12 -12
- package/dist/{chunk-CyT-_QsQ.js → chunk-B4Kx-ocg.js} +11 -9
- package/dist/{chunk-Dffz_QIs.js → chunk-CFSle8n5.js} +1 -1
- package/dist/{chunk-D3vyM2EQ.js → chunk-Cy0Bj0F3.js} +1 -1
- package/dist/{chunk-DFqo_u5A.js → chunk-DJXDX69U.js} +11 -9
- package/dist/{clack-prompter-QbDK4ABC.js → clack-prompter-0JW5kry0.js} +3 -3
- package/dist/{clack-prompter-rXuqdPbx.js → clack-prompter-fZSmnHda.js} +5 -5
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-kT9Mb3dT.js → cli-D8exVpuI.js} +30 -29
- package/dist/cli-hcHk5KuP.js +102 -0
- package/dist/{cli-utils-BdkJVXjy.js → cli-utils-D2X_bDLt.js} +9 -1
- package/dist/{cli-utils-DGnL8raH.js → cli-utils-DcDBK4C5.js} +9 -1
- package/dist/{client-D9E5Wwb_.js → client-BWkoTfOH.js} +3 -2
- package/dist/{client-DzIcZx4J.js → client-CfLiulzK.js} +2 -1
- package/dist/{command-registry-vEVxxxzI.js → command-registry-D3VhxpWx.js} +21 -12
- package/dist/{commands-NIY0IDXe.js → commands-DE8FNH0v.js} +92 -20
- package/dist/{commands-eY0Ao0wt.js → commands-Mekaw9WG.js} +92 -20
- package/dist/{common-C2wAYEWA.js → common-BCW6hLGI.js} +2 -2
- package/dist/{common-BzPvZcxT.js → common-Bf_TG87Y.js} +2 -2
- package/dist/{common-6Fcbzr42.js → common-DT_obM-k.js} +2 -2
- package/dist/{completion-cli-BBKG6buM.js → completion-cli-B3BqQJq9.js} +3 -3
- package/dist/{completion-cli-C84I5l8a.js → completion-cli-CepDzeW1.js} +2 -2
- package/dist/{config-Ofh9gKvs.js → config-BrVuTQ8R.js} +14 -2
- package/dist/{config-6FVC8hW0.js → config-CweTwOtr.js} +40 -28
- package/dist/{config-DqwH4y-D.js → config-DaD4FsAn.js} +19 -7
- package/dist/{config-D2kCn7yR.js → config-ZYN8tezd.js} +18 -6
- package/dist/{config-cli-CQzq5yWB.js → config-cli-3CaIxSKo.js} +4 -4
- package/dist/config-cli-B6Np85rk.js +15 -0
- package/dist/{config-guard-B1plY6aQ.js → config-guard-C4b2dksv.js} +2 -2
- package/dist/{config-guard-CYlpjNN7.js → config-guard-CWhoBtB3.js} +20 -20
- package/dist/{config-sync-CYX9Tzyr.js → config-sync-CCVp-tVX.js} +2 -2
- package/dist/{config-sync-CDUhjDom.js → config-sync-CMO_5lyl.js} +2 -2
- package/dist/{configure-G6h2Ppk0.js → configure-D882Bg7c.js} +39 -15
- package/dist/{configure-Bv6mqD0j.js → configure-D88dg6mE.js} +79 -77
- package/dist/{configure-DxQqSUJs.js → configure-xpjwedvJ.js} +50 -49
- package/dist/{configure-B-dfdPKX.js → configure-zXK6UZ51.js} +49 -24
- package/dist/{context-CpsnZLOp.js → context-B5X720Bs.js} +1 -1
- package/dist/{control-service-D1oxSXVg.js → control-service-3CI4vt1h.js} +2 -2
- package/dist/{control-service-CzAfyR4e.js → control-service-5YtMvm7D.js} +5 -5
- package/dist/control-ui/assets/index-C4ejMN5U.js +72 -0
- package/dist/control-ui/assets/index-C4ejMN5U.js.map +1 -0
- package/dist/control-ui/assets/index-CcPNqN3R.css +1 -0
- package/dist/control-ui/assets/index-D7Bf6Say.js +3 -0
- package/dist/control-ui/assets/index-D7Bf6Say.js.map +1 -0
- package/dist/control-ui/assets/index-yhFuaOnc.js +2 -0
- package/dist/control-ui/assets/index-yhFuaOnc.js.map +1 -0
- package/dist/control-ui/assets/observers-V7q9lNYt.js +2 -0
- package/dist/control-ui/assets/observers-V7q9lNYt.js.map +1 -0
- package/dist/control-ui/assets/rrweb-plugin-console-record-sPdhR0i8.js +138 -0
- package/dist/control-ui/assets/rrweb-plugin-console-record-sPdhR0i8.js.map +1 -0
- package/dist/control-ui/assets/rrweb-record-CMVXB7aO.js +129 -0
- package/dist/control-ui/assets/rrweb-record-CMVXB7aO.js.map +1 -0
- package/dist/control-ui/index.html +2 -2
- package/dist/{cron-cli-C4qZZo4e.js → cron-cli-Cht6Itx6.js} +18 -18
- package/dist/{cron-cli-CSivg2i9.js → cron-cli-D9XrF-Gx.js} +8 -8
- package/dist/{daemon-cli-DfxT-pQ4.js → daemon-cli-9zrnYRjh.js} +8 -8
- package/dist/{daemon-cli-KMzjJH_D.js → daemon-cli-CrdPhSxr.js} +15 -15
- package/dist/daemon-cli.js +34 -6
- package/dist/{daemon-runtime-CIE27usH.js → daemon-runtime-BrUj88ZO.js} +2 -2
- package/dist/{daemon-runtime-BfgstLVI.js → daemon-runtime-DCqwraWR.js} +1 -1
- package/dist/{deliver-8r6UbXnC.js → deliver-B-dPbUIs.js} +18 -28
- package/dist/{deliver-ahx1N11n.js → deliver-BKzX3YoN.js} +7 -7
- package/dist/{deliver-DVt8TbK9.js → deliver-C1L5nO0K.js} +3 -3
- package/dist/{deliver-D2hQZ9X0.js → deliver-d-CaN0uL.js} +59 -69
- package/dist/deps-DyT32VfN.js +23 -0
- package/dist/{diagnostics-DXeDqA_-.js → diagnostics-Cu9pZAFn.js} +1 -1
- package/dist/{dispatcher-DpSnqIL0.js → dispatcher-BQQugU-7.js} +1 -1
- package/dist/{dispatcher-DzT6jltc.js → dispatcher-DzwzLQRk.js} +2 -2
- package/dist/{dns-cli-D9ka2fZD.js → dns-cli-C8KIX4P3.js} +12 -12
- package/dist/{dns-cli-D2Orvc8E.js → dns-cli-V2bo6vSt.js} +3 -3
- package/dist/{docs-cli-CKfzGqYM.js → docs-cli-Bt-YV3xs.js} +2 -2
- package/dist/{docs-cli-DWYXJd-j.js → docs-cli-D2cVJxjP.js} +7 -7
- package/dist/{doctor-vXt5qjNJ.js → doctor-DEnSKgHu.js} +21 -21
- package/dist/{doctor-DumyG85t.js → doctor-WpKCNZeO.js} +36 -181
- package/dist/{doctor-completion-lAyxyd7X.js → doctor-completion-CPff9UlF.js} +2 -2
- package/dist/{doctor-completion-C8JSWfqN.js → doctor-completion-CypXc1Uo.js} +2 -2
- package/dist/{doctor-config-flow-DA50eWp5.js → doctor-config-flow-Bgl0Cc20.js} +6 -6
- package/dist/{doctor-config-flow-BjfGQ1Br.js → doctor-config-flow-Dxy7RIm0.js} +4 -4
- package/dist/{engine-BVchKo5_.js → engine-DpbYPop7.js} +9 -9
- package/dist/{engine-CKqNpVwE.js → engine-zmn3SOYa.js} +10 -9
- package/dist/entry.js +19 -28
- package/dist/{env-DVJCc7dM.js → env-DlTia1B4.js} +1 -1
- package/dist/{exec-cazBMA02.js → exec-BylR5qWS.js} +1 -1
- package/dist/{exec-gKbUce2p.js → exec-C6tXfeqA.js} +1 -1
- package/dist/{exec-Bfd4ztFZ.js → exec-DUzVF5_D.js} +7 -7
- package/dist/{exec-approvals-cli-BPwW6GIK.js → exec-approvals-cli-CN2WeH7y.js} +20 -20
- package/dist/{exec-approvals-cli-6HndodnP.js → exec-approvals-cli-DYZVBnqS.js} +8 -8
- package/dist/extensionAPI.js +22 -22
- package/dist/format-BCAtE7cT.js +20 -0
- package/dist/{frontmatter-BP4GSt5L.js → frontmatter-Dsa7N963.js} +2 -2
- package/dist/{gateway-cli-CHhTweWb.js → gateway-cli-B_xsx5Nv.js} +104 -101
- package/dist/{gateway-cli-B60L2z4a.js → gateway-cli-D3VBOA_i.js} +69 -66
- package/dist/{gateway-rpc-CrSglZPE.js → gateway-rpc-Cj_h2sVM.js} +3 -3
- package/dist/{gateway-rpc-BtOX_e53.js → gateway-rpc-CnXMGsxp.js} +3 -3
- package/dist/{gmail-setup-utils-D2uUKNlF.js → gmail-setup-utils-DaJoXV_3.js} +3 -3
- package/dist/{health-BttJ1Qeh.js → health-C8KCBhuo.js} +8 -8
- package/dist/{health-D8fJ6U_k.js → health-CabOEPQ0.js} +13 -13
- package/dist/{health-format-CH6JWH45.js → health-format-D-JJ5_S4.js} +2 -2
- package/dist/{heartbeat-visibility-DcGQOTXe.js → heartbeat-visibility-BjYY-mKG.js} +1 -1
- package/dist/{heartbeat-visibility-B2MDtPTL.js → heartbeat-visibility-ZfNSbFcq.js} +1 -1
- package/dist/{help-format-7YidDC5Z.js → help-format-Dt-I_Mls.js} +1 -1
- package/dist/{hooks-cli-DRUryj5H.js → hooks-cli-Cs7GUa7G.js} +34 -33
- package/dist/{hooks-cli-BMZF6RF3.js → hooks-cli-DOs9WZ3K.js} +56 -55
- package/dist/{hooks-status-VvwKn90L.js → hooks-status-DdweuSIj.js} +4 -4
- package/dist/{image-ops-BUy__GHL.js → image-ops-Ct3GueyT.js} +1 -1
- package/dist/index.js +79 -71
- package/dist/{init-B8PBeUpi.js → init-CFndGgTJ.js} +1 -1
- package/dist/{init-DxkAVKP0.js → init-DkBwXNme.js} +1 -1
- package/dist/{installs-sayrGjx1.js → installs-Bi6UipiE.js} +6 -6
- package/dist/{installs-BcnNDR54.js → installs-a4Vz_J08.js} +3 -3
- package/dist/ipv4-DfMwLQ0d.js +14 -0
- package/dist/{lib-D4dE4_XZ.js → lib-6xd5SQjU.js} +20 -20
- package/dist/{lifecycle-core-BerWWP7p.js → lifecycle-core-B8PI1NZJ.js} +3 -3
- package/dist/{links-OhvsEkVw.js → links-DcilUrqq.js} +1 -1
- package/dist/llm-slug-generator.js +25 -25
- package/dist/{loader-CLNb0v_s.js → loader-Bw2wdN4l.js} +159 -3
- package/dist/{loader-Bww_qb65.js → loader-C87TLS4J.js} +159 -3
- package/dist/{logging-DhXRGHWg.js → logging-Chc1Sj6N.js} +1 -1
- package/dist/{login-BovU8kno.js → login-BHnvW9HA.js} +6 -6
- package/dist/{login-BPtmlRRv.js → login-BTOKtSQN.js} +5 -5
- package/dist/{login-C54B66KM.js → login-CrMpAZ0n.js} +4 -4
- package/dist/{login-C4mptULi.js → login-DKkQ3Czu.js} +5 -5
- package/dist/{login-qr-bim3Nkyu.js → login-qr-BGbHImRb.js} +8 -8
- package/dist/{login-qr-pFbvowe5.js → login-qr-CsAVGp00.js} +12 -12
- package/dist/{login-qr-657mh7cI.js → login-qr-DILcBA_q.js} +6 -6
- package/dist/{login-qr-BxNKHxcf.js → login-qr-OUAGpDsU.js} +10 -10
- package/dist/{logs-cli-CQStwrGd.js → logs-cli-Bc6IOyHA.js} +8 -8
- package/dist/{logs-cli-De79vyiP.js → logs-cli-BiAJbjnq.js} +15 -15
- package/dist/{manager-B043uMPT.js → manager-BYu34CX3.js} +12 -12
- package/dist/{manager-Cvmm95Pf.js → manager-C6L_DH0O.js} +2 -2
- package/dist/{manager-BtrVJ8Ve.js → manager-D8VCuzru.js} +9 -9
- package/dist/{manager-A3pC-CW-.js → manager-b_aZwo00.js} +16 -16
- package/dist/{manifest-registry-D-DOtLzo.js → manifest-registry-qF960vMH.js} +1 -1
- package/dist/{memory-cli-COl5xoIl.js → memory-cli-B0kKl-9T.js} +7 -7
- package/dist/{memory-cli-691NgCXx.js → memory-cli-DLtBA6r5.js} +11 -11
- package/dist/{message-channel-DZYYDt1_.js → message-channel-CMsexA3K.js} +9 -7
- package/dist/{message-channel-DdOBO6Qm.js → message-channel-DIHHKJhk.js} +8 -6
- package/dist/{migrate-DkBWjPPs.js → migrate-DuohB_ur.js} +3 -3
- package/dist/{migrate-BLjwxe9X.js → migrate-bgeTT_GR.js} +3 -3
- package/dist/{model-auth-DKhjNVHc.js → model-auth-CHB3EySM.js} +10 -5
- package/dist/{model-auth-CxAB4iZ0.js → model-auth-KpsOXKDc.js} +3 -3
- package/dist/model-param-b-C1QDqzQp.js +16 -0
- package/dist/{model-selection-BPkpXepz.js → model-selection-CLcoOT3e.js} +25 -7
- package/dist/{model-selection-wCaVeFbb.js → model-selection-CY6r_3wt.js} +25 -7
- package/dist/{model-selection-DFbDH9o2.js → model-selection-DcO3qJOu.js} +24 -6
- package/dist/{model-selection-BI8CKPwQ.js → model-selection-DjsJGv1R.js} +67 -8
- package/dist/models-BM2_NkMu.js +2707 -0
- package/dist/models-cli-BjY8wA-C.js +272 -0
- package/dist/models-cli-BpjeKsUz.js +2946 -0
- package/dist/{node-cli-Ajhng-5p.js → node-cli-BmuVEJ1C.js} +12 -12
- package/dist/{node-cli-t3N6HE9R.js → node-cli-DU_oREff.js} +27 -27
- package/dist/{node-service-4B-0AjmA.js → node-service-qZXF7T7A.js} +1 -1
- package/dist/{note-De2zPKl3.js → note-iMYVGjpA.js} +2 -2
- package/dist/noxsoft-bootstrap-C4dSx7K_.js +77 -0
- package/dist/noxsoft-bootstrap-CrlkSFzd.js +77 -0
- package/dist/{npm-registry-spec-CFp4OEe4.js → npm-registry-spec-Br4B4I_3.js} +2 -2
- package/dist/{npm-registry-spec-DVDcgWxm.js → npm-registry-spec-jf7Mowdn.js} +1 -1
- package/dist/{onboard-xSPFmM29.js → onboard-DM9gULJN.js} +24 -19
- package/dist/{onboard-i4CJtSb9.js → onboard-_-D81kAy.js} +19 -15
- package/dist/{onboard-channels-RsbA6EaD.js → onboard-channels-CtT-RN60.js} +8 -8
- package/dist/{onboard-channels-D6Gt3CsX.js → onboard-channels-UkphAdCy.js} +4 -4
- package/dist/{onboard-helpers-IeOtcIME.js → onboard-helpers-CFudIoX4.js} +3 -3
- package/dist/{onboard-helpers-DPqXrhma.js → onboard-helpers-CJ3HzoUO.js} +7 -7
- package/dist/{onboarding-CZBVMwFn.js → onboarding-BB9PteK8.js} +20 -17
- package/dist/{onboarding-Cao0a_Z1.js → onboarding-Djmm0PEM.js} +27 -23
- package/dist/{orchestrator-COMX8CF2.js → orchestrator-C1nWKIJS.js} +7 -3
- package/dist/{orchestrator-BLXpTTgr.js → orchestrator-C2ypFiPL.js} +6 -3
- package/dist/{outbound-DWfSyfZC.js → outbound-Bmft-5um.js} +4 -4
- package/dist/{outbound-Rs0fFC2g.js → outbound-C577aWZp.js} +1 -1
- package/dist/{outbound-DLCmFGfJ.js → outbound-DW2eod1S.js} +4 -4
- package/dist/{outbound-uxBpmALx.js → outbound-fPqdCDR4.js} +4 -4
- package/dist/outbound-send-deps-DVfWC4E8.js +14 -0
- package/dist/outbound-send-deps-T_FgdfgW.js +36 -0
- package/dist/{parse-timeout-DkOL1T_l.js → parse-timeout-C4WLf3Qy.js} +3 -3
- package/dist/{parse-timeout-DlU4ymhF.js → parse-timeout-D4UO8pY_.js} +1 -1
- package/dist/{path-env-CjpH-KWH.js → path-env-DLQPf9qj.js} +2 -2
- package/dist/{paths-D2eokayo.js → paths-B-AkG5FD.js} +3 -3
- package/dist/{paths-DQMKfv60.js → paths-CAQJvbeZ.js} +2 -2
- package/dist/{paths-Cwszsz1I.js → paths-Q6h5HODL.js} +2 -2
- package/dist/{pi-auth-json-BLdaEAx2.js → pi-auth-json-B_lKNFK6.js} +5 -5
- package/dist/{pi-auth-json-BH7uvkKr.js → pi-auth-json-BmdBnmlZ.js} +8 -9
- package/dist/{pi-auth-json-DjxzPUt3.js → pi-auth-json-DkYqdjrV.js} +2 -2
- package/dist/{pi-auth-json-smxh_Xud.js → pi-auth-json-WTvcP2gz.js} +9 -8
- package/dist/{pi-embedded-D4eEfxIU.js → pi-embedded-BMbtgOzv.js} +825 -319
- package/dist/{pi-embedded-DifnZvKk.js → pi-embedded-DfbM3fAT.js} +888 -382
- package/dist/{pi-embedded-helpers-B6wVA0hU.js → pi-embedded-helpers-BZ9GspxK.js} +1 -1
- package/dist/{pi-tools.policy-CDgjN_3f.js → pi-tools.policy-D2FusuQa.js} +3 -3
- package/dist/{pi-tools.policy-ox141hP6.js → pi-tools.policy-WdTAfqbV.js} +6 -6
- package/dist/{plugin-auto-enable-Mj7AnofW.js → plugin-auto-enable-CtYcdTju.js} +5 -5
- package/dist/{plugin-auto-enable-OqDAK-ap.js → plugin-auto-enable-DhuD30Je.js} +2 -2
- package/dist/{plugin-registry-CpXm8ADp.js → plugin-registry-DePMxn4z.js} +4 -4
- package/dist/{plugin-registry-CkZnT8Fb.js → plugin-registry-QTkplP4s.js} +2 -2
- package/dist/plugin-sdk/agents/cli-backends.d.ts +4 -1
- package/dist/plugin-sdk/agents/cli-credentials.d.ts +0 -10
- package/dist/plugin-sdk/agents/cli-runner.d.ts +2 -0
- package/dist/plugin-sdk/agents/defaults.d.ts +2 -2
- package/dist/plugin-sdk/agents/model-auto.d.ts +43 -0
- package/dist/plugin-sdk/agents/model-fallback.d.ts +5 -0
- package/dist/plugin-sdk/agents/model-preference.d.ts +25 -0
- package/dist/plugin-sdk/agents/noxsoft-runner.d.ts +94 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/run/params.d.ts +6 -3
- package/dist/plugin-sdk/agents/pi-embedded.d.ts +6 -50
- package/dist/plugin-sdk/agents/runner-capabilities.d.ts +2 -0
- package/dist/plugin-sdk/agents/sandbox/constants.d.ts +1 -1
- package/dist/plugin-sdk/auth/noxsoft-auth.d.ts +55 -0
- package/dist/plugin-sdk/channels/registry.d.ts +2 -2
- package/dist/plugin-sdk/cli/deps.d.ts +2 -1
- package/dist/plugin-sdk/cli/outbound-send-deps.d.ts +10 -0
- package/dist/plugin-sdk/commands/agent/types.d.ts +2 -0
- package/dist/plugin-sdk/config/types.agent-defaults.d.ts +14 -0
- package/dist/plugin-sdk/config/types.models.d.ts +1 -1
- package/dist/plugin-sdk/config/zod-schema.agent-defaults.d.ts +13 -0
- package/dist/plugin-sdk/config/zod-schema.agents.d.ts +13 -0
- package/dist/plugin-sdk/config/zod-schema.d.ts +13 -0
- package/dist/plugin-sdk/gateway/protocol/schema/agent.d.ts +1 -0
- package/dist/plugin-sdk/identity/loader.d.ts +1 -0
- package/dist/plugin-sdk/identity/trust-graph.d.ts +32 -0
- package/dist/plugin-sdk/index.js +57 -47
- package/dist/plugin-sdk/utils/message-channel.d.ts +2 -1
- package/dist/{plugins-DnJgmFJR.js → plugins-DYcg0qBW.js} +1 -1
- package/dist/{plugins-cli-CrrkMAYM.js → plugins-cli-Bc9oU1ld.js} +58 -57
- package/dist/{plugins-cli-D4VxQKaJ.js → plugins-cli-Dv0KQTWo.js} +36 -35
- package/dist/{polls-DuwPgAV7.js → polls-DFISjV7H.js} +5 -5
- package/dist/{ports-B1b1r9Dz.js → ports-DaVrZDUq.js} +2 -2
- package/dist/{ports-BX00e96t.js → ports-q535r1PZ.js} +2 -2
- package/dist/{program-CTDFmZNx.js → program-CuwbF8YO.js} +48 -40
- package/dist/{program-context-Hl6bnPfB.js → program-context-CxPfy-Wr.js} +51 -35
- package/dist/{progress-B-VBLfHr.js → progress-CVLvQV_t.js} +1 -1
- package/dist/{prompt-style-DU9Vjqe5.js → prompt-style-BI53UVgE.js} +1 -1
- package/dist/{prompts-D6b3zLVO.js → prompts-BmgT_kkv.js} +33 -2
- package/dist/prompts-Bq4QGFQM.js +158 -0
- package/dist/{pw-ai-BV57RRmp.js → pw-ai-CB-zeR7h.js} +5 -5
- package/dist/{pw-ai-CY-VcqJp.js → pw-ai-C_1-7IgH.js} +4 -4
- package/dist/{pw-ai-CTHtrCEC.js → pw-ai-DxNrJcCA.js} +3 -3
- package/dist/{qmd-manager-DJeQYS-r.js → qmd-manager-C_XBZ_bT.js} +5 -5
- package/dist/{qmd-manager-CwbYv6nJ.js → qmd-manager-CpNYgSrx.js} +7 -7
- package/dist/{qmd-manager-Cbm03z8H.js → qmd-manager-Q0OSDQ-e.js} +5 -5
- package/dist/{register.agent-CMoYTJqj.js → register.agent-DFQmkIEH.js} +53 -50
- package/dist/{register.agent-BKINbWbs.js → register.agent-DUjwGw9d.js} +77 -73
- package/dist/{register.anima-BHrZ90Sv.js → register.anima-CRFHJu2J.js} +21 -21
- package/dist/{register.anima-CnEy5VFQ.js → register.anima-CtKNrpE8.js} +21 -21
- package/dist/{register.configure-Cv5NkGH2.js → register.configure-CSSN07XN.js} +50 -49
- package/dist/register.configure-CnEKV57N.js +107 -0
- package/dist/register.maintenance-CU1A-90-.js +102 -0
- package/dist/{register.maintenance-DtAw8E_a.js → register.maintenance-fhcCB7ih.js} +48 -47
- package/dist/register.message-C1a0y2ZR.js +661 -0
- package/dist/register.message-fM0jSKB8.js +659 -0
- package/dist/register.onboard-B7Gavmvt.js +128 -0
- package/dist/{register.onboard-U3lIfaw_.js → register.onboard-BhPlqjFi.js} +50 -49
- package/dist/{register.setup-CLkGhR-e.js → register.setup-0jPnMgnz.js} +96 -92
- package/dist/{register.setup-Dyp5L_GQ.js → register.setup-CADdQUEN.js} +72 -69
- package/dist/{register.status-health-sessions-Dx-qZMol.js → register.status-health-sessions-Cu5fDT-z.js} +68 -67
- package/dist/{register.status-health-sessions-Cc2Y5gSj.js → register.status-health-sessions-DdQsABr_.js} +40 -39
- package/dist/{register.subclis-L55mGheS.js → register.subclis-CZ91ufCy.js} +28 -21
- package/dist/{reply-BgPvB-gR.js → reply-DtHlnzOx.js} +6631 -6172
- package/dist/{reply-prefix-37W_P4kH.js → reply-prefix-C8dIgJur.js} +1 -1
- package/dist/{reply-prefix-DBRqtDEq.js → reply-prefix-DmWGtcH-.js} +1 -1
- package/dist/{routes-ZlpnlJFF.js → routes-CWCAc8uJ.js} +2 -2
- package/dist/{routes-DeDgHj5Y.js → routes-FT0Us8Md.js} +6 -6
- package/dist/{run-DEHnKm2x.js → run-Dfz_7j7t.js} +1256 -166
- package/dist/{run-BFPM6M2S.js → run-DqBQ-bGn.js} +1230 -140
- package/dist/{run-main-Cxmjk1SF.js → run-main-DGDW0fhx.js} +51 -50
- package/dist/{runtime-guard-cBL2D5J8.js → runtime-guard-D14Z_QY6.js} +1 -1
- package/dist/{sandbox-DDOFuJU9.js → sandbox-D-N7M7lp.js} +2 -2
- package/dist/{sandbox-cli-GhcxR1Va.js → sandbox-cli-CQKz2I1X.js} +9 -9
- package/dist/{sandbox-cli-CGJvhJ4L.js → sandbox-cli-DHNFlTo-.js} +23 -23
- package/dist/{sandbox-B8Nza4lP.js → sandbox-pBHlfFdB.js} +6 -6
- package/dist/{security-cli-B7VIDDSL.js → security-cli-Bdi7MuP6.js} +14 -22
- package/dist/{security-cli-gsyz4Wrw.js → security-cli-C3aI09uy.js} +27 -35
- package/dist/{semantic-C3Z-zhNi.js → semantic-9rgWUrz3.js} +1 -1
- package/dist/{semantic-CG6X3rBo.js → semantic-C1UN3bb9.js} +1 -1
- package/dist/{semantic-DCd6zBnV.js → semantic-CQApJNO_.js} +1 -1
- package/dist/{server-context-Dkz4Ce8z.js → server-context-Clykq0XU.js} +1 -1
- package/dist/{server-context-BlJi7pjP.js → server-context-Yx4pgBqJ.js} +7 -7
- package/dist/{server-node-events-DBOg36in.js → server-node-events-BR1aXVlu.js} +55 -53
- package/dist/{server-node-events-CmZXzWcd.js → server-node-events-Ca797E1d.js} +34 -31
- package/dist/{service-QlHhVsQf.js → service-Dd1DfPia.js} +1 -1
- package/dist/{service-audit-D4xG05j8.js → service-audit-Bwpoc2LD.js} +1 -1
- package/dist/{service-audit-BaoBb09i.js → service-audit-KzOtcw_V.js} +3 -3
- package/dist/{session-BJ9XCJBg.js → session-5YO_H-Ra.js} +1 -1
- package/dist/{session-3MLbl1-K.js → session-BiA6jrcs.js} +1 -1
- package/dist/session-C7IGnhd1.js +190 -0
- package/dist/{session-KNXzWBht.js → session-CSmfU0D3.js} +1 -1
- package/dist/{session-CqKJvPTq.js → session-DLevr8Vd.js} +5 -5
- package/dist/session-DfsMJNG3.js +190 -0
- package/dist/{session-TAOVpONo.js → session-FmXsucR7.js} +2 -2
- package/dist/{session-cost-usage-BamtB1rn.js → session-cost-usage-BWqR-ik6.js} +1 -1
- package/dist/{sessions-C2th3rm6.js → sessions-BOzeFzuL.js} +12 -22
- package/dist/{sessions-1XK2mH6L.js → sessions-C_3wTmSA.js} +9 -19
- package/dist/{sessions-BrQHxX_o.js → sessions-Dj7_4mkr.js} +4 -4
- package/dist/{settings-cli-CCtkuc1r.js → settings-cli-DxNeu6kx.js} +79 -77
- package/dist/{settings-cli-Ccizggz2.js → settings-cli-Dytfop1H.js} +50 -49
- package/dist/{setup-token-Dqtgnjxw.js → setup-token-B802CZwe.js} +13 -18
- package/dist/{setup-token-Bcer2kX8.js → setup-token-DYh2QzJ-.js} +29 -34
- package/dist/{shared-Hnu5dChj.js → shared-C-rqLtIT.js} +2 -2
- package/dist/{shell-env-KRrv3dPW.js → shell-env-CMI9f7-7.js} +1 -1
- package/dist/{shell-env-B4ae4lFh.js → shell-env-HkVWMh--.js} +1 -1
- package/dist/{shell-env-PnmcBTp4.js → shell-env-iPnSIi-t.js} +1 -1
- package/dist/{skills-CQoUYlGu.js → skills-4v6-kw0C.js} +3 -3
- package/dist/{skills-cli-DQuLxQUM.js → skills-cli-BoasNTpZ.js} +15 -15
- package/dist/{skills-cli-CNNy0FxN.js → skills-cli-TeAq3fRG.js} +3 -3
- package/dist/{skills-install-2DbC1Yo2.js → skills-install-D6_qpRjW.js} +7 -7
- package/dist/{skills-install-CE6djAWL.js → skills-install-Qw2oU8L8.js} +2 -2
- package/dist/{skills-status-ybjSmiHu.js → skills-status-CvH7AUoY.js} +4 -4
- package/dist/{soul-Bt57OdSx.js → soul-BiIdv3Wp.js} +125 -5
- package/dist/{soul-DFeEGG5h.js → soul-Bt8UNmTq.js} +126 -5
- package/dist/{soul-CwWWw7cs.js → soul-D9k5zulC.js} +2 -2
- package/dist/{soul-Bru-rRjk.js → soul-DQSYs-4l.js} +1 -1
- package/dist/{sqlite-BTcAhNls.js → sqlite-BMMt7osH.js} +2 -2
- package/dist/{sqlite-ClLAW1iQ.js → sqlite-CZ1vD4VS.js} +4 -4
- package/dist/{sqlite-CLZ1eR5Q.js → sqlite-CpAJt-JS.js} +1 -1
- package/dist/{start-DfC7PlAH.js → start-BqnPia0t.js} +66 -63
- package/dist/start-C3fuLzX0.js +157 -0
- package/dist/{status-BVAoIQ0V.js → status-CHGNPonc.js} +26 -44
- package/dist/{status-BU6h4wUP.js → status-CxF6k_jr.js} +2 -2
- package/dist/{status-C9B6cEM0.js → status-DfZJJqNs.js} +15 -15
- package/dist/{status-BaEcHPtc.js → status-tLgozFYL.js} +4 -4
- package/dist/{status.update-CbIRaeaV.js → status.update-B6Tdpk07.js} +2 -2
- package/dist/{status.update-CPACVnCc.js → status.update-E9dSFk_b.js} +1 -1
- package/dist/{subagent-registry-MZIxVf8W.js → subagent-registry-CPtElVX0.js} +807 -348
- package/dist/{subsystem-BMsbqSb4.js → subsystem-BAADN1B8.js} +18 -27
- package/dist/{subsystem-CucjNlOk.js → subsystem-D-Xta-sj.js} +17 -26
- package/dist/{subsystem-DA3Cno1i.js → subsystem-D1AJZPgG.js} +38 -47
- package/dist/{system-cli-BKicxULp.js → system-cli-CP7JrhR0.js} +15 -15
- package/dist/{system-cli-Unb-WFAR.js → system-cli-DoLzi2Sn.js} +8 -8
- package/dist/{systemd-5KGZ3NHE.js → systemd-Bx76sJ3M.js} +2 -2
- package/dist/{systemd-linger-B-uyzDap.js → systemd-linger-BVwGXVS0.js} +2 -2
- package/dist/{systemd-linger-CS_pA1-a.js → systemd-linger-CxGmIy_5.js} +1 -1
- package/dist/{table-CdHBo5d1.js → table-Blmz7glr.js} +2 -2
- package/dist/{tokens-DGhK0fpG.js → tokens-SP2Q7i59.js} +1 -1
- package/dist/{tool-images-DK97edts.js → tool-images-2qproko3.js} +2 -2
- package/dist/{tool-images-Dq55i0mz.js → tool-images-C6cKHTbj.js} +2 -2
- package/dist/{tool-images-J0rGmoDV.js → tool-images-CgDT0Xzv.js} +2 -2
- package/dist/{tui-Bm8FEW0b.js → tui-C2eLfbhA.js} +5 -5
- package/dist/{tui-cli-BGjsxGle.js → tui-cli-BgcbCtgc.js} +12 -12
- package/dist/{tui-cli-TwCYv-a7.js → tui-cli-cLSYBQu9.js} +27 -27
- package/dist/{tui-DtGKiHUr.js → tui-r4qpJhNk.js} +10 -10
- package/dist/{update-Dfi92PZJ.js → update-CqKpX3cX.js} +3 -3
- package/dist/{update-Dle5MRUz.js → update-DA91za97.js} +1 -1
- package/dist/{update-cli-QMVW2eiR.js → update-cli-BuCw75tM.js} +87 -85
- package/dist/{update-cli-D1e-DsWy.js → update-cli-C-er5av6.js} +55 -54
- package/dist/{update-runner-DPmSGXS3.js → update-runner-czCqHZCu.js} +5 -5
- package/dist/{update-runner-iLJQF6VA.js → update-runner-kE8AMQt4.js} +1 -1
- package/dist/{utils-B60lF9Wq.js → utils-CLYlhJuc.js} +1 -1
- package/dist/{web-DJRRkHG8.js → web-BHGK5GtV.js} +24 -24
- package/dist/web-CyYunanU.js +65 -0
- package/dist/{web-DDAkSrtZ.js → web-DvTXV-fo.js} +35 -34
- package/dist/{web-DBQRQY6n.js → web-so3pGceM.js} +27 -27
- package/dist/{webhooks-cli-Cg0F2mU6.js → webhooks-cli-k3QMf7Rs.js} +4 -4
- package/dist/{webhooks-cli-BsWx7MgH.js → webhooks-cli-vlEfXEKm.js} +12 -12
- package/dist/{whatsapp-actions-gpz6-vPI.js → whatsapp-actions-6fPRKwPV.js} +11 -11
- package/dist/{whatsapp-actions-DJpQVKnT.js → whatsapp-actions-BJn-z76S.js} +17 -17
- package/dist/{whatsapp-actions-tWRWRZ4X.js → whatsapp-actions-C0tlEdLy.js} +5 -5
- package/dist/{whatsapp-actions-CMEP8v3k.js → whatsapp-actions-Hr-W8vjY.js} +13 -13
- package/dist/{widearea-dns-BDtWuGCY.js → widearea-dns-CHAT20aR.js} +1 -1
- package/dist/{workspace-BQkffCaR.js → workspace-BFIZCnGo.js} +5 -5
- package/dist/{ws-log-Bc4grA6W.js → ws-log-CUobU2tD.js} +1 -1
- package/package.json +1 -1
- package/templates/profiles/nox.profile.json5 +5 -5
- package/dist/cli--Gal7v4I.js +0 -101
- package/dist/config-cli-cyvL43DG.js +0 -15
- package/dist/control-ui/assets/index-B7CJLRZD.css +0 -1
- package/dist/control-ui/assets/index-DLPYIcs0.js +0 -58
- package/dist/control-ui/assets/index-DLPYIcs0.js.map +0 -1
- package/dist/deps-CeyVMZf1.js +0 -13
- package/dist/models-ByeH7ZKb.js +0 -1350
- package/dist/register.configure-3GfqcGLK.js +0 -105
- package/dist/register.maintenance-YZDsMymb.js +0 -100
- package/dist/register.onboard-Dswys-iV.js +0 -126
- package/dist/start-BPye9w5U.js +0 -154
- package/dist/web-DE-hmqXy.js +0 -64
- /package/dist/{BasicParser-BiEpjka-.js → BasicParser-D4BHCxVb.js} +0 -0
- /package/dist/{agents.config-DibGEnBs.js → agents.config-Br4ULmK0.js} +0 -0
- /package/dist/{archive-BIKRyvqD.js → archive-CNqghdwQ.js} +0 -0
- /package/dist/{archive-5e-Ytlq-.js → archive-D-dHRz-v.js} +0 -0
- /package/dist/{argv-B6vsXQtF.js → argv-nNQ109_K.js} +0 -0
- /package/dist/{auth-store-Vfd6oc1G.js → auth-store-BEfSfCbW.js} +0 -0
- /package/dist/{auto-update-BUbllW1X.js → auto-update-Cvd8YJrT.js} +0 -0
- /package/dist/{auto-update-DdH8fo63.js → auto-update-DO4nHkfM.js} +0 -0
- /package/dist/{brew-Bkf_MwX9.js → brew-DHWnVWm3.js} +0 -0
- /package/dist/{budget-CV0a771W.js → budget-DvjICb0t.js} +0 -0
- /package/dist/{budget-GiXjG9eW.js → budget-e0R5xsU3.js} +0 -0
- /package/dist/{command-options-DfPEZwUK.js → command-options-DtJ8-EC7.js} +0 -0
- /package/dist/{command-options-mgpP-XId.js → command-options-eC-m_qJx.js} +0 -0
- /package/dist/{delivery-queue-DGnDKL02.js → delivery-queue-BKQk1j0k.js} +0 -0
- /package/dist/{delivery-queue-DZ_ibFDu.js → delivery-queue-CExaJXRz.js} +0 -0
- /package/dist/{display-BwSYYxVE.js → display-4p3-O9mP.js} +0 -0
- /package/dist/{display-Dck2kudh.js → display-Bo8pBhMp.js} +0 -0
- /package/dist/{exec-approvals-BJikgQkX.js → exec-approvals-DK5-KCUz.js} +0 -0
- /package/dist/{format-wiLVr0D3.js → format-9DMvWYUJ.js} +0 -0
- /package/dist/{format-duration-C5oKCGwB.js → format-duration-CnGkTPRF.js} +0 -0
- /package/dist/{gmail-setup-utils-CR33Gqfc.js → gmail-setup-utils-BIXtKTpT.js} +0 -0
- /package/dist/{help-format-DJx5Rwy2.js → help-format-ZKxl6UCb.js} +0 -0
- /package/dist/{helpers-8O7IVGO-.js → helpers-CWQnEONe.js} +0 -0
- /package/dist/{hooks-status-DiqubDlK.js → hooks-status-DqfJDvYl.js} +0 -0
- /package/dist/{ipv4-BYbwrpG-.js → ipv4-CExV55ho.js} +0 -0
- /package/dist/{is-main-BnikY3ud.js → is-main-H-hpHkdq.js} +0 -0
- /package/dist/{lib-D1DXSMt_.js → lib-D0_kW-B6.js} +0 -0
- /package/dist/{links-3c7gzW-G.js → links-BjjDMNIq.js} +0 -0
- /package/dist/{logging-Bpf6Cepz.js → logging-DWwOqnTW.js} +0 -0
- /package/dist/{logging-DcXIbpwk.js → logging-_rCcBkls.js} +0 -0
- /package/dist/{model-param-b-BcBBSgiD.js → model-param-b-2KmFir_0.js} +0 -0
- /package/dist/{node-service-BDlDNv3t.js → node-service-cOoW5hLa.js} +0 -0
- /package/dist/{note-BaOKDvcy.js → note-CeLGcHqv.js} +0 -0
- /package/dist/{noxsoft-auth-Bmict45b.js → noxsoft-auth-CE75mBXE.js} +0 -0
- /package/dist/{noxsoft-auth-DpwLJIW0.js → noxsoft-auth-CgCk5707.js} +0 -0
- /package/dist/{pi-model-discovery-ClWISQ3j.js → pi-model-discovery-Bu4Zr7nI.js} +0 -0
- /package/dist/{ports-aNJUI3Mi.js → ports-BGLuwt2Z.js} +0 -0
- /package/dist/{progress-Dj2aBWOI.js → progress-glCgu57m.js} +0 -0
- /package/dist/{qmd-manager-DrDX4o7e.js → qmd-manager-CO795NK4.js} +0 -0
- /package/dist/{queue-B77yV52t.js → queue-DDq0uzy5.js} +0 -0
- /package/dist/{queue-wFYwitx0.js → queue-DtQ5sbyD.js} +0 -0
- /package/dist/{registry-gaRST__4.js → registry-BvymIcVf.js} +0 -0
- /package/dist/{registry-Cv8RtADU.js → registry-DwaHkd_j.js} +0 -0
- /package/dist/{requirements-CEowKaVY.js → requirements-Ct4XnMiK.js} +0 -0
- /package/dist/{skill-scanner-DGoUYV22.js → skill-scanner-5_Y3u6SU.js} +0 -0
- /package/dist/{skill-scanner-FO7SyxAD.js → skill-scanner-Dld2ijVw.js} +0 -0
- /package/dist/{templates-D-h5PNIK.js → templates-4_And8I_.js} +0 -0
- /package/dist/{templates-ndPXOyGA.js → templates-5Z-UIDze.js} +0 -0
- /package/dist/{types-DSS9sywz.js → types-BQk_oAin.js} +0 -0
- /package/dist/{usage-format-BtlQ-77V.js → usage-format-BSa7cHyK.js} +0 -0
- /package/dist/{ws-log-BA9w1cJs.js → ws-log-CG6cvCZW.js} +0 -0
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const u of s)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function a(s){const u={};return s.integrity&&(u.integrity=s.integrity),s.referrerPolicy&&(u.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?u.credentials="include":s.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function r(s){if(s.ep)return;s.ep=!0;const u=a(s);fetch(s.href,u)}})();function yu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Hf={exports:{}},Pl={};var cv;function ST(){if(cv)return Pl;cv=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function a(r,s,u){var c=null;if(u!==void 0&&(c=""+u),s.key!==void 0&&(c=""+s.key),"key"in s){u={};for(var f in s)f!=="key"&&(u[f]=s[f])}else u=s;return s=u.ref,{$$typeof:e,type:r,key:c,ref:s!==void 0?s:null,props:u}}return Pl.Fragment=n,Pl.jsx=a,Pl.jsxs=a,Pl}var fv;function wT(){return fv||(fv=1,Hf.exports=ST()),Hf.exports}var y=wT(),Pf={exports:{}},Ee={};var dv;function ET(){if(dv)return Ee;dv=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),x=Symbol.iterator;function S(D){return D===null||typeof D!="object"?null:(D=x&&D[x]||D["@@iterator"],typeof D=="function"?D:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,N={};function k(D,X,C){this.props=D,this.context=X,this.refs=N,this.updater=C||E}k.prototype.isReactComponent={},k.prototype.setState=function(D,X){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,X,"setState")},k.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function O(){}O.prototype=k.prototype;function R(D,X,C){this.props=D,this.context=X,this.refs=N,this.updater=C||E}var Y=R.prototype=new O;Y.constructor=R,A(Y,k.prototype),Y.isPureReactComponent=!0;var U=Array.isArray;function z(){}var Q={H:null,A:null,T:null,S:null},ee=Object.prototype.hasOwnProperty;function oe(D,X,C){var ce=C.ref;return{$$typeof:e,type:D,key:X,ref:ce!==void 0?ce:null,props:C}}function B(D,X){return oe(D.type,X,D.props)}function ae(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function re(D){var X={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(C){return X[C]})}var te=/\/+/g;function se(D,X){return typeof D=="object"&&D!==null&&D.key!=null?re(""+D.key):X.toString(36)}function ne(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(z,z):(D.status="pending",D.then(function(X){D.status==="pending"&&(D.status="fulfilled",D.value=X)},function(X){D.status==="pending"&&(D.status="rejected",D.reason=X)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function H(D,X,C,ce,de){var ge=typeof D;(ge==="undefined"||ge==="boolean")&&(D=null);var pe=!1;if(D===null)pe=!0;else switch(ge){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(D.$$typeof){case e:case n:pe=!0;break;case v:return pe=D._init,H(pe(D._payload),X,C,ce,de)}}if(pe)return de=de(D),pe=ce===""?"."+se(D,0):ce,U(de)?(C="",pe!=null&&(C=pe.replace(te,"$&/")+"/"),H(de,X,C,"",function(ut){return ut})):de!=null&&(ae(de)&&(de=B(de,C+(de.key==null||D&&D.key===de.key?"":(""+de.key).replace(te,"$&/")+"/")+pe)),X.push(de)),1;pe=0;var Ie=ce===""?".":ce+":";if(U(D))for(var ze=0;ze<D.length;ze++)ce=D[ze],ge=Ie+se(ce,ze),pe+=H(ce,X,C,ge,de);else if(ze=S(D),typeof ze=="function")for(D=ze.call(D),ze=0;!(ce=D.next()).done;)ce=ce.value,ge=Ie+se(ce,ze++),pe+=H(ce,X,C,ge,de);else if(ge==="object"){if(typeof D.then=="function")return H(ne(D),X,C,ce,de);throw X=String(D),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return pe}function $(D,X,C){if(D==null)return D;var ce=[],de=0;return H(D,ce,"","",function(ge){return X.call(C,ge,de++)}),ce}function ue(D){if(D._status===-1){var X=D._result;X=X(),X.then(function(C){(D._status===0||D._status===-1)&&(D._status=1,D._result=C)},function(C){(D._status===0||D._status===-1)&&(D._status=2,D._result=C)}),D._status===-1&&(D._status=0,D._result=X)}if(D._status===1)return D._result.default;throw D._result}var xe=typeof reportError=="function"?reportError:function(D){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D),error:D});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",D);return}console.error(D)},j={map:$,forEach:function(D,X,C){$(D,function(){X.apply(this,arguments)},C)},count:function(D){var X=0;return $(D,function(){X++}),X},toArray:function(D){return $(D,function(X){return X})||[]},only:function(D){if(!ae(D))throw Error("React.Children.only expected to receive a single React element child.");return D}};return Ee.Activity=g,Ee.Children=j,Ee.Component=k,Ee.Fragment=a,Ee.Profiler=s,Ee.PureComponent=R,Ee.StrictMode=r,Ee.Suspense=m,Ee.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Q,Ee.__COMPILER_RUNTIME={__proto__:null,c:function(D){return Q.H.useMemoCache(D)}},Ee.cache=function(D){return function(){return D.apply(null,arguments)}},Ee.cacheSignal=function(){return null},Ee.cloneElement=function(D,X,C){if(D==null)throw Error("The argument must be a React element, but you passed "+D+".");var ce=A({},D.props),de=D.key;if(X!=null)for(ge in X.key!==void 0&&(de=""+X.key),X)!ee.call(X,ge)||ge==="key"||ge==="__self"||ge==="__source"||ge==="ref"&&X.ref===void 0||(ce[ge]=X[ge]);var ge=arguments.length-2;if(ge===1)ce.children=C;else if(1<ge){for(var pe=Array(ge),Ie=0;Ie<ge;Ie++)pe[Ie]=arguments[Ie+2];ce.children=pe}return oe(D.type,de,ce)},Ee.createContext=function(D){return D={$$typeof:c,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null},D.Provider=D,D.Consumer={$$typeof:u,_context:D},D},Ee.createElement=function(D,X,C){var ce,de={},ge=null;if(X!=null)for(ce in X.key!==void 0&&(ge=""+X.key),X)ee.call(X,ce)&&ce!=="key"&&ce!=="__self"&&ce!=="__source"&&(de[ce]=X[ce]);var pe=arguments.length-2;if(pe===1)de.children=C;else if(1<pe){for(var Ie=Array(pe),ze=0;ze<pe;ze++)Ie[ze]=arguments[ze+2];de.children=Ie}if(D&&D.defaultProps)for(ce in pe=D.defaultProps,pe)de[ce]===void 0&&(de[ce]=pe[ce]);return oe(D,ge,de)},Ee.createRef=function(){return{current:null}},Ee.forwardRef=function(D){return{$$typeof:f,render:D}},Ee.isValidElement=ae,Ee.lazy=function(D){return{$$typeof:v,_payload:{_status:-1,_result:D},_init:ue}},Ee.memo=function(D,X){return{$$typeof:h,type:D,compare:X===void 0?null:X}},Ee.startTransition=function(D){var X=Q.T,C={};Q.T=C;try{var ce=D(),de=Q.S;de!==null&&de(C,ce),typeof ce=="object"&&ce!==null&&typeof ce.then=="function"&&ce.then(z,xe)}catch(ge){xe(ge)}finally{X!==null&&C.types!==null&&(X.types=C.types),Q.T=X}},Ee.unstable_useCacheRefresh=function(){return Q.H.useCacheRefresh()},Ee.use=function(D){return Q.H.use(D)},Ee.useActionState=function(D,X,C){return Q.H.useActionState(D,X,C)},Ee.useCallback=function(D,X){return Q.H.useCallback(D,X)},Ee.useContext=function(D){return Q.H.useContext(D)},Ee.useDebugValue=function(){},Ee.useDeferredValue=function(D,X){return Q.H.useDeferredValue(D,X)},Ee.useEffect=function(D,X){return Q.H.useEffect(D,X)},Ee.useEffectEvent=function(D){return Q.H.useEffectEvent(D)},Ee.useId=function(){return Q.H.useId()},Ee.useImperativeHandle=function(D,X,C){return Q.H.useImperativeHandle(D,X,C)},Ee.useInsertionEffect=function(D,X){return Q.H.useInsertionEffect(D,X)},Ee.useLayoutEffect=function(D,X){return Q.H.useLayoutEffect(D,X)},Ee.useMemo=function(D,X){return Q.H.useMemo(D,X)},Ee.useOptimistic=function(D,X){return Q.H.useOptimistic(D,X)},Ee.useReducer=function(D,X,C){return Q.H.useReducer(D,X,C)},Ee.useRef=function(D){return Q.H.useRef(D)},Ee.useState=function(D){return Q.H.useState(D)},Ee.useSyncExternalStore=function(D,X,C){return Q.H.useSyncExternalStore(D,X,C)},Ee.useTransition=function(){return Q.H.useTransition()},Ee.version="19.2.4",Ee}var hv;function gh(){return hv||(hv=1,Pf.exports=ET()),Pf.exports}var T=gh();const qb=yu(T);var If={exports:{}},Il={},qf={exports:{}},Ff={};var mv;function TT(){return mv||(mv=1,(function(e){function n(H,$){var ue=H.length;H.push($);e:for(;0<ue;){var xe=ue-1>>>1,j=H[xe];if(0<s(j,$))H[xe]=$,H[ue]=j,ue=xe;else break e}}function a(H){return H.length===0?null:H[0]}function r(H){if(H.length===0)return null;var $=H[0],ue=H.pop();if(ue!==$){H[0]=ue;e:for(var xe=0,j=H.length,D=j>>>1;xe<D;){var X=2*(xe+1)-1,C=H[X],ce=X+1,de=H[ce];if(0>s(C,ue))ce<j&&0>s(de,C)?(H[xe]=de,H[ce]=ue,xe=ce):(H[xe]=C,H[X]=ue,xe=X);else if(ce<j&&0>s(de,ue))H[xe]=de,H[ce]=ue,xe=ce;else break e}}return $}function s(H,$){var ue=H.sortIndex-$.sortIndex;return ue!==0?ue:H.id-$.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var m=[],h=[],v=1,g=null,x=3,S=!1,E=!1,A=!1,N=!1,k=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function Y(H){for(var $=a(h);$!==null;){if($.callback===null)r(h);else if($.startTime<=H)r(h),$.sortIndex=$.expirationTime,n(m,$);else break;$=a(h)}}function U(H){if(A=!1,Y(H),!E)if(a(m)!==null)E=!0,z||(z=!0,re());else{var $=a(h);$!==null&&ne(U,$.startTime-H)}}var z=!1,Q=-1,ee=5,oe=-1;function B(){return N?!0:!(e.unstable_now()-oe<ee)}function ae(){if(N=!1,z){var H=e.unstable_now();oe=H;var $=!0;try{e:{E=!1,A&&(A=!1,O(Q),Q=-1),S=!0;var ue=x;try{t:{for(Y(H),g=a(m);g!==null&&!(g.expirationTime>H&&B());){var xe=g.callback;if(typeof xe=="function"){g.callback=null,x=g.priorityLevel;var j=xe(g.expirationTime<=H);if(H=e.unstable_now(),typeof j=="function"){g.callback=j,Y(H),$=!0;break t}g===a(m)&&r(m),Y(H)}else r(m);g=a(m)}if(g!==null)$=!0;else{var D=a(h);D!==null&&ne(U,D.startTime-H),$=!1}}break e}finally{g=null,x=ue,S=!1}$=void 0}}finally{$?re():z=!1}}}var re;if(typeof R=="function")re=function(){R(ae)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,se=te.port2;te.port1.onmessage=ae,re=function(){se.postMessage(null)}}else re=function(){k(ae,0)};function ne(H,$){Q=k(function(){H(e.unstable_now())},$)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(H){H.callback=null},e.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ee=0<H?Math.floor(1e3/H):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_next=function(H){switch(x){case 1:case 2:case 3:var $=3;break;default:$=x}var ue=x;x=$;try{return H()}finally{x=ue}},e.unstable_requestPaint=function(){N=!0},e.unstable_runWithPriority=function(H,$){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var ue=x;x=H;try{return $()}finally{x=ue}},e.unstable_scheduleCallback=function(H,$,ue){var xe=e.unstable_now();switch(typeof ue=="object"&&ue!==null?(ue=ue.delay,ue=typeof ue=="number"&&0<ue?xe+ue:xe):ue=xe,H){case 1:var j=-1;break;case 2:j=250;break;case 5:j=1073741823;break;case 4:j=1e4;break;default:j=5e3}return j=ue+j,H={id:v++,callback:$,priorityLevel:H,startTime:ue,expirationTime:j,sortIndex:-1},ue>xe?(H.sortIndex=ue,n(h,H),a(m)===null&&H===a(h)&&(A?(O(Q),Q=-1):A=!0,ne(U,ue-xe))):(H.sortIndex=j,n(m,H),E||S||(E=!0,z||(z=!0,re()))),H},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(H){var $=x;return function(){var ue=x;x=$;try{return H.apply(this,arguments)}finally{x=ue}}}})(Ff)),Ff}var pv;function CT(){return pv||(pv=1,qf.exports=TT()),qf.exports}var Gf={exports:{}},qt={};var gv;function AT(){if(gv)return qt;gv=1;var e=gh();function n(m){var h="https://react.dev/errors/"+m;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)h+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+m+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var r={d:{f:a,r:function(){throw Error(n(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},s=Symbol.for("react.portal");function u(m,h,v){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:g==null?null:""+g,children:m,containerInfo:h,implementation:v}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(m,h){if(m==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return qt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,qt.createPortal=function(m,h){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(n(299));return u(m,h,null,v)},qt.flushSync=function(m){var h=c.T,v=r.p;try{if(c.T=null,r.p=2,m)return m()}finally{c.T=h,r.p=v,r.d.f()}},qt.preconnect=function(m,h){typeof m=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,r.d.C(m,h))},qt.prefetchDNS=function(m){typeof m=="string"&&r.d.D(m)},qt.preinit=function(m,h){if(typeof m=="string"&&h&&typeof h.as=="string"){var v=h.as,g=f(v,h.crossOrigin),x=typeof h.integrity=="string"?h.integrity:void 0,S=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;v==="style"?r.d.S(m,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:g,integrity:x,fetchPriority:S}):v==="script"&&r.d.X(m,{crossOrigin:g,integrity:x,fetchPriority:S,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},qt.preinitModule=function(m,h){if(typeof m=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var v=f(h.as,h.crossOrigin);r.d.M(m,{crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&r.d.M(m)},qt.preload=function(m,h){if(typeof m=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var v=h.as,g=f(v,h.crossOrigin);r.d.L(m,v,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},qt.preloadModule=function(m,h){if(typeof m=="string")if(h){var v=f(h.as,h.crossOrigin);r.d.m(m,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else r.d.m(m)},qt.requestFormReset=function(m){r.d.r(m)},qt.unstable_batchedUpdates=function(m,h){return m(h)},qt.useFormState=function(m,h,v){return c.H.useFormState(m,h,v)},qt.useFormStatus=function(){return c.H.useHostTransitionStatus()},qt.version="19.2.4",qt}var yv;function kT(){if(yv)return Gf.exports;yv=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Gf.exports=AT(),Gf.exports}var vv;function NT(){if(vv)return Il;vv=1;var e=CT(),n=gh(),a=kT();function r(t){var i="https://react.dev/errors/"+t;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)i+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function u(t){var i=t,l=t;if(t.alternate)for(;i.return;)i=i.return;else{t=i;do i=t,(i.flags&4098)!==0&&(l=i.return),t=i.return;while(t)}return i.tag===3?l:null}function c(t){if(t.tag===13){var i=t.memoizedState;if(i===null&&(t=t.alternate,t!==null&&(i=t.memoizedState)),i!==null)return i.dehydrated}return null}function f(t){if(t.tag===31){var i=t.memoizedState;if(i===null&&(t=t.alternate,t!==null&&(i=t.memoizedState)),i!==null)return i.dehydrated}return null}function m(t){if(u(t)!==t)throw Error(r(188))}function h(t){var i=t.alternate;if(!i){if(i=u(t),i===null)throw Error(r(188));return i!==t?null:t}for(var l=t,o=i;;){var d=l.return;if(d===null)break;var p=d.alternate;if(p===null){if(o=d.return,o!==null){l=o;continue}break}if(d.child===p.child){for(p=d.child;p;){if(p===l)return m(d),t;if(p===o)return m(d),i;p=p.sibling}throw Error(r(188))}if(l.return!==o.return)l=d,o=p;else{for(var b=!1,w=d.child;w;){if(w===l){b=!0,l=d,o=p;break}if(w===o){b=!0,o=d,l=p;break}w=w.sibling}if(!b){for(w=p.child;w;){if(w===l){b=!0,l=p,o=d;break}if(w===o){b=!0,o=p,l=d;break}w=w.sibling}if(!b)throw Error(r(189))}}if(l.alternate!==o)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?t:i}function v(t){var i=t.tag;if(i===5||i===26||i===27||i===6)return t;for(t=t.child;t!==null;){if(i=v(t),i!==null)return i;t=t.sibling}return null}var g=Object.assign,x=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),O=Symbol.for("react.consumer"),R=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),Q=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),oe=Symbol.for("react.activity"),B=Symbol.for("react.memo_cache_sentinel"),ae=Symbol.iterator;function re(t){return t===null||typeof t!="object"?null:(t=ae&&t[ae]||t["@@iterator"],typeof t=="function"?t:null)}var te=Symbol.for("react.client.reference");function se(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===te?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case A:return"Fragment";case k:return"Profiler";case N:return"StrictMode";case U:return"Suspense";case z:return"SuspenseList";case oe:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case E:return"Portal";case R:return t.displayName||"Context";case O:return(t._context.displayName||"Context")+".Consumer";case Y:var i=t.render;return t=t.displayName,t||(t=i.displayName||i.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Q:return i=t.displayName||null,i!==null?i:se(t.type)||"Memo";case ee:i=t._payload,t=t._init;try{return se(t(i))}catch{}}return null}var ne=Array.isArray,H=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue={pending:!1,data:null,method:null,action:null},xe=[],j=-1;function D(t){return{current:t}}function X(t){0>j||(t.current=xe[j],xe[j]=null,j--)}function C(t,i){j++,xe[j]=t.current,t.current=i}var ce=D(null),de=D(null),ge=D(null),pe=D(null);function Ie(t,i){switch(C(ge,i),C(de,t),C(ce,null),i.nodeType){case 9:case 11:t=(t=i.documentElement)&&(t=t.namespaceURI)?Oy(t):0;break;default:if(t=i.tagName,i=i.namespaceURI)i=Oy(i),t=zy(i,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}X(ce),C(ce,t)}function ze(){X(ce),X(de),X(ge)}function ut(t){t.memoizedState!==null&&C(pe,t);var i=ce.current,l=zy(i,t.type);i!==l&&(C(de,t),C(ce,l))}function Xe(t){de.current===t&&(X(ce),X(de)),pe.current===t&&(X(pe),Bl._currentValue=ue)}var Vn,Wn;function ct(t){if(Vn===void 0)try{throw Error()}catch(l){var i=l.stack.trim().match(/\n( *(at )?)/);Vn=i&&i[1]||"",Wn=-1<l.stack.indexOf(`
|
|
2
|
-
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+Vn+t+Wn}var Xt=!1;function Kt(t,i){if(!t||Xt)return"";Xt=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(i){var W=function(){throw Error()};if(Object.defineProperty(W.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(W,[])}catch(G){var q=G}Reflect.construct(t,[],W)}else{try{W.call()}catch(G){q=G}t.call(W.prototype)}}else{try{throw Error()}catch(G){q=G}(W=t())&&typeof W.catch=="function"&&W.catch(function(){})}}catch(G){if(G&&q&&typeof G.stack=="string")return[G.stack,q.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=o.DetermineComponentFrameRoot(),b=p[0],w=p[1];if(b&&w){var M=b.split(`
|
|
4
|
-
`),I=w.split(`
|
|
5
|
-
`);for(d=o=0;o<M.length&&!M[o].includes("DetermineComponentFrameRoot");)o++;for(;d<I.length&&!I[d].includes("DetermineComponentFrameRoot");)d++;if(o===M.length||d===I.length)for(o=M.length-1,d=I.length-1;1<=o&&0<=d&&M[o]!==I[d];)d--;for(;1<=o&&0<=d;o--,d--)if(M[o]!==I[d]){if(o!==1||d!==1)do if(o--,d--,0>d||M[o]!==I[d]){var K=`
|
|
6
|
-
`+M[o].replace(" at new "," at ");return t.displayName&&K.includes("<anonymous>")&&(K=K.replace("<anonymous>",t.displayName)),K}while(1<=o&&0<=d);break}}}finally{Xt=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?ct(l):""}function En(t,i){switch(t.tag){case 26:case 27:case 5:return ct(t.type);case 16:return ct("Lazy");case 13:return t.child!==i&&i!==null?ct("Suspense Fallback"):ct("Suspense");case 19:return ct("SuspenseList");case 0:case 15:return Kt(t.type,!1);case 11:return Kt(t.type.render,!1);case 1:return Kt(t.type,!0);case 31:return ct("Activity");default:return""}}function cn(t){try{var i="",l=null;do i+=En(t,l),l=t,t=t.return;while(t);return i}catch(o){return`
|
|
7
|
-
Error generating stack: `+o.message+`
|
|
8
|
-
`+o.stack}}var Ot=Object.prototype.hasOwnProperty,Un=e.unstable_scheduleCallback,ei=e.unstable_cancelCallback,Tn=e.unstable_shouldYield,Vi=e.unstable_requestPaint,at=e.unstable_now,F=e.unstable_getCurrentPriorityLevel,_=e.unstable_ImmediatePriority,J=e.unstable_UserBlockingPriority,ye=e.unstable_NormalPriority,Te=e.unstable_LowPriority,Le=e.unstable_IdlePriority,Rt=e.log,en=e.unstable_setDisableYieldValue,zt=null,vt=null;function Pt(t){if(typeof Rt=="function"&&en(t),vt&&typeof vt.setStrictMode=="function")try{vt.setStrictMode(zt,t)}catch{}}var qe=Math.clz32?Math.clz32:Ru,Hn=Math.log,fn=Math.LN2;function Ru(t){return t>>>=0,t===0?32:31-(Hn(t)/fn|0)|0}var ie=256,fe=262144,et=4194304;function Ke(t){var i=t&42;if(i!==0)return i;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function ft(t,i,l){var o=t.pendingLanes;if(o===0)return 0;var d=0,p=t.suspendedLanes,b=t.pingedLanes;t=t.warmLanes;var w=o&134217727;return w!==0?(o=w&~p,o!==0?d=Ke(o):(b&=w,b!==0?d=Ke(b):l||(l=w&~t,l!==0&&(d=Ke(l))))):(w=o&~p,w!==0?d=Ke(w):b!==0?d=Ke(b):l||(l=o&~t,l!==0&&(d=Ke(l)))),d===0?0:i!==0&&i!==d&&(i&p)===0&&(p=d&-d,l=i&-i,p>=l||p===32&&(l&4194048)!==0)?i:d}function dn(t,i){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&i)===0}function ti(t,i){switch(t){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Pn(){var t=et;return et<<=1,(et&62914560)===0&&(et=4194304),t}function Qt(t){for(var i=[],l=0;31>l;l++)i.push(t);return i}function Ui(t,i){t.pendingLanes|=i,i!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function ga(t,i,l,o,d,p){var b=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var w=t.entanglements,M=t.expirationTimes,I=t.hiddenUpdates;for(l=b&~l;0<l;){var K=31-qe(l),W=1<<K;w[K]=0,M[K]=-1;var q=I[K];if(q!==null)for(I[K]=null,K=0;K<q.length;K++){var G=q[K];G!==null&&(G.lane&=-536870913)}l&=~W}o!==0&&Ae(t,o,0),p!==0&&d===0&&t.tag!==0&&(t.suspendedLanes|=p&~(b&~i))}function Ae(t,i,l){t.pendingLanes|=i,t.suspendedLanes&=~i;var o=31-qe(i);t.entangledLanes|=i,t.entanglements[o]=t.entanglements[o]|1073741824|l&261930}function Fe(t,i){var l=t.entangledLanes|=i;for(t=t.entanglements;l;){var o=31-qe(l),d=1<<o;d&i|t[o]&i&&(t[o]|=i),l&=~d}}function Ve(t,i){var l=i&-i;return l=(l&42)!==0?1:tt(l),(l&(t.suspendedLanes|i))!==0?0:l}function tt(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Lt(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function ni(){var t=$.p;return t!==0?t:(t=window.event,t===void 0?32:iv(t.type))}function ii(t,i){var l=$.p;try{return $.p=t,i()}finally{$.p=l}}var It=Math.random().toString(36).slice(2),dt="__reactFiber$"+It,St="__reactProps$"+It,In="__reactContainer$"+It,Fa="__reactEvents$"+It,cw="__reactListeners$"+It,fw="__reactHandles$"+It,bm="__reactResources$"+It,Jr="__reactMarker$"+It;function Mu(t){delete t[dt],delete t[St],delete t[Fa],delete t[cw],delete t[fw]}function Ga(t){var i=t[dt];if(i)return i;for(var l=t.parentNode;l;){if(i=l[In]||l[dt]){if(l=i.alternate,i.child!==null||l!==null&&l.child!==null)for(t=Py(t);t!==null;){if(l=t[dt])return l;t=Py(t)}return i}t=l,l=t.parentNode}return null}function Ya(t){if(t=t[dt]||t[In]){var i=t.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return t}return null}function Wr(t){var i=t.tag;if(i===5||i===26||i===27||i===6)return t.stateNode;throw Error(r(33))}function Xa(t){var i=t[bm];return i||(i=t[bm]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function Mt(t){t[Jr]=!0}var Sm=new Set,wm={};function ya(t,i){Ka(t,i),Ka(t+"Capture",i)}function Ka(t,i){for(wm[t]=i,t=0;t<i.length;t++)Sm.add(i[t])}var dw=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Em={},Tm={};function hw(t){return Ot.call(Tm,t)?!0:Ot.call(Em,t)?!1:dw.test(t)?Tm[t]=!0:(Em[t]=!0,!1)}function ws(t,i,l){if(hw(i))if(l===null)t.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(i);return;case"boolean":var o=i.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){t.removeAttribute(i);return}}t.setAttribute(i,""+l)}}function Es(t,i,l){if(l===null)t.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttribute(i,""+l)}}function pi(t,i,l,o){if(o===null)t.removeAttribute(l);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(i,l,""+o)}}function Cn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Cm(t){var i=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function mw(t,i,l){var o=Object.getOwnPropertyDescriptor(t.constructor.prototype,i);if(!t.hasOwnProperty(i)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var d=o.get,p=o.set;return Object.defineProperty(t,i,{configurable:!0,get:function(){return d.call(this)},set:function(b){l=""+b,p.call(this,b)}}),Object.defineProperty(t,i,{enumerable:o.enumerable}),{getValue:function(){return l},setValue:function(b){l=""+b},stopTracking:function(){t._valueTracker=null,delete t[i]}}}}function Du(t){if(!t._valueTracker){var i=Cm(t)?"checked":"value";t._valueTracker=mw(t,i,""+t[i])}}function Am(t){if(!t)return!1;var i=t._valueTracker;if(!i)return!0;var l=i.getValue(),o="";return t&&(o=Cm(t)?t.checked?"true":"false":t.value),t=o,t!==l?(i.setValue(t),!0):!1}function Ts(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var pw=/[\n"\\]/g;function An(t){return t.replace(pw,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function Ou(t,i,l,o,d,p,b,w){t.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?t.type=b:t.removeAttribute("type"),i!=null?b==="number"?(i===0&&t.value===""||t.value!=i)&&(t.value=""+Cn(i)):t.value!==""+Cn(i)&&(t.value=""+Cn(i)):b!=="submit"&&b!=="reset"||t.removeAttribute("value"),i!=null?zu(t,b,Cn(i)):l!=null?zu(t,b,Cn(l)):o!=null&&t.removeAttribute("value"),d==null&&p!=null&&(t.defaultChecked=!!p),d!=null&&(t.checked=d&&typeof d!="function"&&typeof d!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?t.name=""+Cn(w):t.removeAttribute("name")}function km(t,i,l,o,d,p,b,w){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(t.type=p),i!=null||l!=null){if(!(p!=="submit"&&p!=="reset"||i!=null)){Du(t);return}l=l!=null?""+Cn(l):"",i=i!=null?""+Cn(i):l,w||i===t.value||(t.value=i),t.defaultValue=i}o=o??d,o=typeof o!="function"&&typeof o!="symbol"&&!!o,t.checked=w?t.checked:!!o,t.defaultChecked=!!o,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(t.name=b),Du(t)}function zu(t,i,l){i==="number"&&Ts(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function Qa(t,i,l,o){if(t=t.options,i){i={};for(var d=0;d<l.length;d++)i["$"+l[d]]=!0;for(l=0;l<t.length;l++)d=i.hasOwnProperty("$"+t[l].value),t[l].selected!==d&&(t[l].selected=d),d&&o&&(t[l].defaultSelected=!0)}else{for(l=""+Cn(l),i=null,d=0;d<t.length;d++){if(t[d].value===l){t[d].selected=!0,o&&(t[d].defaultSelected=!0);return}i!==null||t[d].disabled||(i=t[d])}i!==null&&(i.selected=!0)}}function Nm(t,i,l){if(i!=null&&(i=""+Cn(i),i!==t.value&&(t.value=i),l==null)){t.defaultValue!==i&&(t.defaultValue=i);return}t.defaultValue=l!=null?""+Cn(l):""}function jm(t,i,l,o){if(i==null){if(o!=null){if(l!=null)throw Error(r(92));if(ne(o)){if(1<o.length)throw Error(r(93));o=o[0]}l=o}l==null&&(l=""),i=l}l=Cn(i),t.defaultValue=l,o=t.textContent,o===l&&o!==""&&o!==null&&(t.value=o),Du(t)}function Za(t,i){if(i){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=i;return}}t.textContent=i}var gw=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Rm(t,i,l){var o=i.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?o?t.setProperty(i,""):i==="float"?t.cssFloat="":t[i]="":o?t.setProperty(i,l):typeof l!="number"||l===0||gw.has(i)?i==="float"?t.cssFloat=l:t[i]=(""+l).trim():t[i]=l+"px"}function Mm(t,i,l){if(i!=null&&typeof i!="object")throw Error(r(62));if(t=t.style,l!=null){for(var o in l)!l.hasOwnProperty(o)||i!=null&&i.hasOwnProperty(o)||(o.indexOf("--")===0?t.setProperty(o,""):o==="float"?t.cssFloat="":t[o]="");for(var d in i)o=i[d],i.hasOwnProperty(d)&&l[d]!==o&&Rm(t,d,o)}else for(var p in i)i.hasOwnProperty(p)&&Rm(t,p,i[p])}function Lu(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var yw=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),vw=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Cs(t){return vw.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function gi(){}var _u=null;function Bu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var $a=null,Ja=null;function Dm(t){var i=Ya(t);if(i&&(t=i.stateNode)){var l=t[St]||null;e:switch(t=i.stateNode,i.type){case"input":if(Ou(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),i=l.name,l.type==="radio"&&i!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+An(""+i)+'"][type="radio"]'),i=0;i<l.length;i++){var o=l[i];if(o!==t&&o.form===t.form){var d=o[St]||null;if(!d)throw Error(r(90));Ou(o,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(i=0;i<l.length;i++)o=l[i],o.form===t.form&&Am(o)}break e;case"textarea":Nm(t,l.value,l.defaultValue);break e;case"select":i=l.value,i!=null&&Qa(t,!!l.multiple,i,!1)}}}var Vu=!1;function Om(t,i,l){if(Vu)return t(i,l);Vu=!0;try{var o=t(i);return o}finally{if(Vu=!1,($a!==null||Ja!==null)&&(ho(),$a&&(i=$a,t=Ja,Ja=$a=null,Dm(i),t)))for(i=0;i<t.length;i++)Dm(t[i])}}function el(t,i){var l=t.stateNode;if(l===null)return null;var o=l[St]||null;if(o===null)return null;l=o[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(t=t.type,o=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!o;break e;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(r(231,i,typeof l));return l}var yi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Uu=!1;if(yi)try{var tl={};Object.defineProperty(tl,"passive",{get:function(){Uu=!0}}),window.addEventListener("test",tl,tl),window.removeEventListener("test",tl,tl)}catch{Uu=!1}var Hi=null,Hu=null,As=null;function zm(){if(As)return As;var t,i=Hu,l=i.length,o,d="value"in Hi?Hi.value:Hi.textContent,p=d.length;for(t=0;t<l&&i[t]===d[t];t++);var b=l-t;for(o=1;o<=b&&i[l-o]===d[p-o];o++);return As=d.slice(t,1<o?1-o:void 0)}function ks(t){var i=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&i===13&&(t=13)):t=i,t===10&&(t=13),32<=t||t===13?t:0}function Ns(){return!0}function Lm(){return!1}function tn(t){function i(l,o,d,p,b){this._reactName=l,this._targetInst=d,this.type=o,this.nativeEvent=p,this.target=b,this.currentTarget=null;for(var w in t)t.hasOwnProperty(w)&&(l=t[w],this[w]=l?l(p):p[w]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?Ns:Lm,this.isPropagationStopped=Lm,this}return g(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Ns)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ns)},persist:function(){},isPersistent:Ns}),i}var va={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},js=tn(va),nl=g({},va,{view:0,detail:0}),xw=tn(nl),Pu,Iu,il,Rs=g({},nl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fu,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==il&&(il&&t.type==="mousemove"?(Pu=t.screenX-il.screenX,Iu=t.screenY-il.screenY):Iu=Pu=0,il=t),Pu)},movementY:function(t){return"movementY"in t?t.movementY:Iu}}),_m=tn(Rs),bw=g({},Rs,{dataTransfer:0}),Sw=tn(bw),ww=g({},nl,{relatedTarget:0}),qu=tn(ww),Ew=g({},va,{animationName:0,elapsedTime:0,pseudoElement:0}),Tw=tn(Ew),Cw=g({},va,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Aw=tn(Cw),kw=g({},va,{data:0}),Bm=tn(kw),Nw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},jw={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Rw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Mw(t){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(t):(t=Rw[t])?!!i[t]:!1}function Fu(){return Mw}var Dw=g({},nl,{key:function(t){if(t.key){var i=Nw[t.key]||t.key;if(i!=="Unidentified")return i}return t.type==="keypress"?(t=ks(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?jw[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fu,charCode:function(t){return t.type==="keypress"?ks(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ks(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Ow=tn(Dw),zw=g({},Rs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vm=tn(zw),Lw=g({},nl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fu}),_w=tn(Lw),Bw=g({},va,{propertyName:0,elapsedTime:0,pseudoElement:0}),Vw=tn(Bw),Uw=g({},Rs,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Hw=tn(Uw),Pw=g({},va,{newState:0,oldState:0}),Iw=tn(Pw),qw=[9,13,27,32],Gu=yi&&"CompositionEvent"in window,al=null;yi&&"documentMode"in document&&(al=document.documentMode);var Fw=yi&&"TextEvent"in window&&!al,Um=yi&&(!Gu||al&&8<al&&11>=al),Hm=" ",Pm=!1;function Im(t,i){switch(t){case"keyup":return qw.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qm(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Wa=!1;function Gw(t,i){switch(t){case"compositionend":return qm(i);case"keypress":return i.which!==32?null:(Pm=!0,Hm);case"textInput":return t=i.data,t===Hm&&Pm?null:t;default:return null}}function Yw(t,i){if(Wa)return t==="compositionend"||!Gu&&Im(t,i)?(t=zm(),As=Hu=Hi=null,Wa=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Um&&i.locale!=="ko"?null:i.data;default:return null}}var Xw={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Fm(t){var i=t&&t.nodeName&&t.nodeName.toLowerCase();return i==="input"?!!Xw[t.type]:i==="textarea"}function Gm(t,i,l,o){$a?Ja?Ja.push(o):Ja=[o]:$a=o,i=bo(i,"onChange"),0<i.length&&(l=new js("onChange","change",null,l,o),t.push({event:l,listeners:i}))}var rl=null,ll=null;function Kw(t){ky(t,0)}function Ms(t){var i=Wr(t);if(Am(i))return t}function Ym(t,i){if(t==="change")return i}var Xm=!1;if(yi){var Yu;if(yi){var Xu="oninput"in document;if(!Xu){var Km=document.createElement("div");Km.setAttribute("oninput","return;"),Xu=typeof Km.oninput=="function"}Yu=Xu}else Yu=!1;Xm=Yu&&(!document.documentMode||9<document.documentMode)}function Qm(){rl&&(rl.detachEvent("onpropertychange",Zm),ll=rl=null)}function Zm(t){if(t.propertyName==="value"&&Ms(ll)){var i=[];Gm(i,ll,t,Bu(t)),Om(Kw,i)}}function Qw(t,i,l){t==="focusin"?(Qm(),rl=i,ll=l,rl.attachEvent("onpropertychange",Zm)):t==="focusout"&&Qm()}function Zw(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ms(ll)}function $w(t,i){if(t==="click")return Ms(i)}function Jw(t,i){if(t==="input"||t==="change")return Ms(i)}function Ww(t,i){return t===i&&(t!==0||1/t===1/i)||t!==t&&i!==i}var hn=typeof Object.is=="function"?Object.is:Ww;function sl(t,i){if(hn(t,i))return!0;if(typeof t!="object"||t===null||typeof i!="object"||i===null)return!1;var l=Object.keys(t),o=Object.keys(i);if(l.length!==o.length)return!1;for(o=0;o<l.length;o++){var d=l[o];if(!Ot.call(i,d)||!hn(t[d],i[d]))return!1}return!0}function $m(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Jm(t,i){var l=$m(t);t=0;for(var o;l;){if(l.nodeType===3){if(o=t+l.textContent.length,t<=i&&o>=i)return{node:l,offset:i-t};t=o}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=$m(l)}}function Wm(t,i){return t&&i?t===i?!0:t&&t.nodeType===3?!1:i&&i.nodeType===3?Wm(t,i.parentNode):"contains"in t?t.contains(i):t.compareDocumentPosition?!!(t.compareDocumentPosition(i)&16):!1:!1}function ep(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var i=Ts(t.document);i instanceof t.HTMLIFrameElement;){try{var l=typeof i.contentWindow.location.href=="string"}catch{l=!1}if(l)t=i.contentWindow;else break;i=Ts(t.document)}return i}function Ku(t){var i=t&&t.nodeName&&t.nodeName.toLowerCase();return i&&(i==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||i==="textarea"||t.contentEditable==="true")}var eE=yi&&"documentMode"in document&&11>=document.documentMode,er=null,Qu=null,ol=null,Zu=!1;function tp(t,i,l){var o=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Zu||er==null||er!==Ts(o)||(o=er,"selectionStart"in o&&Ku(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),ol&&sl(ol,o)||(ol=o,o=bo(Qu,"onSelect"),0<o.length&&(i=new js("onSelect","select",null,i,l),t.push({event:i,listeners:o}),i.target=er)))}function xa(t,i){var l={};return l[t.toLowerCase()]=i.toLowerCase(),l["Webkit"+t]="webkit"+i,l["Moz"+t]="moz"+i,l}var tr={animationend:xa("Animation","AnimationEnd"),animationiteration:xa("Animation","AnimationIteration"),animationstart:xa("Animation","AnimationStart"),transitionrun:xa("Transition","TransitionRun"),transitionstart:xa("Transition","TransitionStart"),transitioncancel:xa("Transition","TransitionCancel"),transitionend:xa("Transition","TransitionEnd")},$u={},np={};yi&&(np=document.createElement("div").style,"AnimationEvent"in window||(delete tr.animationend.animation,delete tr.animationiteration.animation,delete tr.animationstart.animation),"TransitionEvent"in window||delete tr.transitionend.transition);function ba(t){if($u[t])return $u[t];if(!tr[t])return t;var i=tr[t],l;for(l in i)if(i.hasOwnProperty(l)&&l in np)return $u[t]=i[l];return t}var ip=ba("animationend"),ap=ba("animationiteration"),rp=ba("animationstart"),tE=ba("transitionrun"),nE=ba("transitionstart"),iE=ba("transitioncancel"),lp=ba("transitionend"),sp=new Map,Ju="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Ju.push("scrollEnd");function qn(t,i){sp.set(t,i),ya(i,[t])}var Ds=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},kn=[],nr=0,Wu=0;function Os(){for(var t=nr,i=Wu=nr=0;i<t;){var l=kn[i];kn[i++]=null;var o=kn[i];kn[i++]=null;var d=kn[i];kn[i++]=null;var p=kn[i];if(kn[i++]=null,o!==null&&d!==null){var b=o.pending;b===null?d.next=d:(d.next=b.next,b.next=d),o.pending=d}p!==0&&op(l,d,p)}}function zs(t,i,l,o){kn[nr++]=t,kn[nr++]=i,kn[nr++]=l,kn[nr++]=o,Wu|=o,t.lanes|=o,t=t.alternate,t!==null&&(t.lanes|=o)}function ec(t,i,l,o){return zs(t,i,l,o),Ls(t)}function Sa(t,i){return zs(t,null,null,i),Ls(t)}function op(t,i,l){t.lanes|=l;var o=t.alternate;o!==null&&(o.lanes|=l);for(var d=!1,p=t.return;p!==null;)p.childLanes|=l,o=p.alternate,o!==null&&(o.childLanes|=l),p.tag===22&&(t=p.stateNode,t===null||t._visibility&1||(d=!0)),t=p,p=p.return;return t.tag===3?(p=t.stateNode,d&&i!==null&&(d=31-qe(l),t=p.hiddenUpdates,o=t[d],o===null?t[d]=[i]:o.push(i),i.lane=l|536870912),p):null}function Ls(t){if(50<Rl)throw Rl=0,cf=null,Error(r(185));for(var i=t.return;i!==null;)t=i,i=t.return;return t.tag===3?t.stateNode:null}var ir={};function aE(t,i,l,o){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mn(t,i,l,o){return new aE(t,i,l,o)}function tc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function vi(t,i){var l=t.alternate;return l===null?(l=mn(t.tag,i,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=i,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,i=t.dependencies,l.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function up(t,i){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=i,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,i=l.dependencies,t.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),t}function _s(t,i,l,o,d,p){var b=0;if(o=t,typeof t=="function")tc(t)&&(b=1);else if(typeof t=="string")b=uT(t,l,ce.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case oe:return t=mn(31,l,i,d),t.elementType=oe,t.lanes=p,t;case A:return wa(l.children,d,p,i);case N:b=8,d|=24;break;case k:return t=mn(12,l,i,d|2),t.elementType=k,t.lanes=p,t;case U:return t=mn(13,l,i,d),t.elementType=U,t.lanes=p,t;case z:return t=mn(19,l,i,d),t.elementType=z,t.lanes=p,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case R:b=10;break e;case O:b=9;break e;case Y:b=11;break e;case Q:b=14;break e;case ee:b=16,o=null;break e}b=29,l=Error(r(130,t===null?"null":typeof t,"")),o=null}return i=mn(b,l,i,d),i.elementType=t,i.type=o,i.lanes=p,i}function wa(t,i,l,o){return t=mn(7,t,o,i),t.lanes=l,t}function nc(t,i,l){return t=mn(6,t,null,i),t.lanes=l,t}function cp(t){var i=mn(18,null,null,0);return i.stateNode=t,i}function ic(t,i,l){return i=mn(4,t.children!==null?t.children:[],t.key,i),i.lanes=l,i.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},i}var fp=new WeakMap;function Nn(t,i){if(typeof t=="object"&&t!==null){var l=fp.get(t);return l!==void 0?l:(i={value:t,source:i,stack:cn(i)},fp.set(t,i),i)}return{value:t,source:i,stack:cn(i)}}var ar=[],rr=0,Bs=null,ul=0,jn=[],Rn=0,Pi=null,ai=1,ri="";function xi(t,i){ar[rr++]=ul,ar[rr++]=Bs,Bs=t,ul=i}function dp(t,i,l){jn[Rn++]=ai,jn[Rn++]=ri,jn[Rn++]=Pi,Pi=t;var o=ai;t=ri;var d=32-qe(o)-1;o&=~(1<<d),l+=1;var p=32-qe(i)+d;if(30<p){var b=d-d%5;p=(o&(1<<b)-1).toString(32),o>>=b,d-=b,ai=1<<32-qe(i)+d|l<<d|o,ri=p+t}else ai=1<<p|l<<d|o,ri=t}function ac(t){t.return!==null&&(xi(t,1),dp(t,1,0))}function rc(t){for(;t===Bs;)Bs=ar[--rr],ar[rr]=null,ul=ar[--rr],ar[rr]=null;for(;t===Pi;)Pi=jn[--Rn],jn[Rn]=null,ri=jn[--Rn],jn[Rn]=null,ai=jn[--Rn],jn[Rn]=null}function hp(t,i){jn[Rn++]=ai,jn[Rn++]=ri,jn[Rn++]=Pi,ai=i.id,ri=i.overflow,Pi=t}var _t=null,rt=null,_e=!1,Ii=null,Mn=!1,lc=Error(r(519));function qi(t){var i=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw cl(Nn(i,t)),lc}function mp(t){var i=t.stateNode,l=t.type,o=t.memoizedProps;switch(i[dt]=t,i[St]=o,l){case"dialog":Re("cancel",i),Re("close",i);break;case"iframe":case"object":case"embed":Re("load",i);break;case"video":case"audio":for(l=0;l<Dl.length;l++)Re(Dl[l],i);break;case"source":Re("error",i);break;case"img":case"image":case"link":Re("error",i),Re("load",i);break;case"details":Re("toggle",i);break;case"input":Re("invalid",i),km(i,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":Re("invalid",i);break;case"textarea":Re("invalid",i),jm(i,o.value,o.defaultValue,o.children)}l=o.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||i.textContent===""+l||o.suppressHydrationWarning===!0||My(i.textContent,l)?(o.popover!=null&&(Re("beforetoggle",i),Re("toggle",i)),o.onScroll!=null&&Re("scroll",i),o.onScrollEnd!=null&&Re("scrollend",i),o.onClick!=null&&(i.onclick=gi),i=!0):i=!1,i||qi(t,!0)}function pp(t){for(_t=t.return;_t;)switch(_t.tag){case 5:case 31:case 13:Mn=!1;return;case 27:case 3:Mn=!0;return;default:_t=_t.return}}function lr(t){if(t!==_t)return!1;if(!_e)return pp(t),_e=!0,!1;var i=t.tag,l;if((l=i!==3&&i!==27)&&((l=i===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||Cf(t.type,t.memoizedProps)),l=!l),l&&rt&&qi(t),pp(t),i===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));rt=Hy(t)}else if(i===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));rt=Hy(t)}else i===27?(i=rt,ia(t.type)?(t=Rf,Rf=null,rt=t):rt=i):rt=_t?On(t.stateNode.nextSibling):null;return!0}function Ea(){rt=_t=null,_e=!1}function sc(){var t=Ii;return t!==null&&(ln===null?ln=t:ln.push.apply(ln,t),Ii=null),t}function cl(t){Ii===null?Ii=[t]:Ii.push(t)}var oc=D(null),Ta=null,bi=null;function Fi(t,i,l){C(oc,i._currentValue),i._currentValue=l}function Si(t){t._currentValue=oc.current,X(oc)}function uc(t,i,l){for(;t!==null;){var o=t.alternate;if((t.childLanes&i)!==i?(t.childLanes|=i,o!==null&&(o.childLanes|=i)):o!==null&&(o.childLanes&i)!==i&&(o.childLanes|=i),t===l)break;t=t.return}}function cc(t,i,l,o){var d=t.child;for(d!==null&&(d.return=t);d!==null;){var p=d.dependencies;if(p!==null){var b=d.child;p=p.firstContext;e:for(;p!==null;){var w=p;p=d;for(var M=0;M<i.length;M++)if(w.context===i[M]){p.lanes|=l,w=p.alternate,w!==null&&(w.lanes|=l),uc(p.return,l,t),o||(b=null);break e}p=w.next}}else if(d.tag===18){if(b=d.return,b===null)throw Error(r(341));b.lanes|=l,p=b.alternate,p!==null&&(p.lanes|=l),uc(b,l,t),b=null}else b=d.child;if(b!==null)b.return=d;else for(b=d;b!==null;){if(b===t){b=null;break}if(d=b.sibling,d!==null){d.return=b.return,b=d;break}b=b.return}d=b}}function sr(t,i,l,o){t=null;for(var d=i,p=!1;d!==null;){if(!p){if((d.flags&524288)!==0)p=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var b=d.alternate;if(b===null)throw Error(r(387));if(b=b.memoizedProps,b!==null){var w=d.type;hn(d.pendingProps.value,b.value)||(t!==null?t.push(w):t=[w])}}else if(d===pe.current){if(b=d.alternate,b===null)throw Error(r(387));b.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(t!==null?t.push(Bl):t=[Bl])}d=d.return}t!==null&&cc(i,t,l,o),i.flags|=262144}function Vs(t){for(t=t.firstContext;t!==null;){if(!hn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Ca(t){Ta=t,bi=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Bt(t){return gp(Ta,t)}function Us(t,i){return Ta===null&&Ca(t),gp(t,i)}function gp(t,i){var l=i._currentValue;if(i={context:i,memoizedValue:l,next:null},bi===null){if(t===null)throw Error(r(308));bi=i,t.dependencies={lanes:0,firstContext:i},t.flags|=524288}else bi=bi.next=i;return l}var rE=typeof AbortController<"u"?AbortController:function(){var t=[],i=this.signal={aborted:!1,addEventListener:function(l,o){t.push(o)}};this.abort=function(){i.aborted=!0,t.forEach(function(l){return l()})}},lE=e.unstable_scheduleCallback,sE=e.unstable_NormalPriority,wt={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function fc(){return{controller:new rE,data:new Map,refCount:0}}function fl(t){t.refCount--,t.refCount===0&&lE(sE,function(){t.controller.abort()})}var dl=null,dc=0,or=0,ur=null;function oE(t,i){if(dl===null){var l=dl=[];dc=0,or=gf(),ur={status:"pending",value:void 0,then:function(o){l.push(o)}}}return dc++,i.then(yp,yp),i}function yp(){if(--dc===0&&dl!==null){ur!==null&&(ur.status="fulfilled");var t=dl;dl=null,or=0,ur=null;for(var i=0;i<t.length;i++)(0,t[i])()}}function uE(t,i){var l=[],o={status:"pending",value:null,reason:null,then:function(d){l.push(d)}};return t.then(function(){o.status="fulfilled",o.value=i;for(var d=0;d<l.length;d++)(0,l[d])(i)},function(d){for(o.status="rejected",o.reason=d,d=0;d<l.length;d++)(0,l[d])(void 0)}),o}var vp=H.S;H.S=function(t,i){ty=at(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&oE(t,i),vp!==null&&vp(t,i)};var Aa=D(null);function hc(){var t=Aa.current;return t!==null?t:Je.pooledCache}function Hs(t,i){i===null?C(Aa,Aa.current):C(Aa,i.pool)}function xp(){var t=hc();return t===null?null:{parent:wt._currentValue,pool:t}}var cr=Error(r(460)),mc=Error(r(474)),Ps=Error(r(542)),Is={then:function(){}};function bp(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Sp(t,i,l){switch(l=t[l],l===void 0?t.push(i):l!==i&&(i.then(gi,gi),i=l),i.status){case"fulfilled":return i.value;case"rejected":throw t=i.reason,Ep(t),t;default:if(typeof i.status=="string")i.then(gi,gi);else{if(t=Je,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=i,t.status="pending",t.then(function(o){if(i.status==="pending"){var d=i;d.status="fulfilled",d.value=o}},function(o){if(i.status==="pending"){var d=i;d.status="rejected",d.reason=o}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw t=i.reason,Ep(t),t}throw Na=i,cr}}function ka(t){try{var i=t._init;return i(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Na=l,cr):l}}var Na=null;function wp(){if(Na===null)throw Error(r(459));var t=Na;return Na=null,t}function Ep(t){if(t===cr||t===Ps)throw Error(r(483))}var fr=null,hl=0;function qs(t){var i=hl;return hl+=1,fr===null&&(fr=[]),Sp(fr,t,i)}function ml(t,i){i=i.props.ref,t.ref=i!==void 0?i:null}function Fs(t,i){throw i.$$typeof===x?Error(r(525)):(t=Object.prototype.toString.call(i),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":t)))}function Tp(t){function i(V,L){if(t){var P=V.deletions;P===null?(V.deletions=[L],V.flags|=16):P.push(L)}}function l(V,L){if(!t)return null;for(;L!==null;)i(V,L),L=L.sibling;return null}function o(V){for(var L=new Map;V!==null;)V.key!==null?L.set(V.key,V):L.set(V.index,V),V=V.sibling;return L}function d(V,L){return V=vi(V,L),V.index=0,V.sibling=null,V}function p(V,L,P){return V.index=P,t?(P=V.alternate,P!==null?(P=P.index,P<L?(V.flags|=67108866,L):P):(V.flags|=67108866,L)):(V.flags|=1048576,L)}function b(V){return t&&V.alternate===null&&(V.flags|=67108866),V}function w(V,L,P,Z){return L===null||L.tag!==6?(L=nc(P,V.mode,Z),L.return=V,L):(L=d(L,P),L.return=V,L)}function M(V,L,P,Z){var be=P.type;return be===A?K(V,L,P.props.children,Z,P.key):L!==null&&(L.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===ee&&ka(be)===L.type)?(L=d(L,P.props),ml(L,P),L.return=V,L):(L=_s(P.type,P.key,P.props,null,V.mode,Z),ml(L,P),L.return=V,L)}function I(V,L,P,Z){return L===null||L.tag!==4||L.stateNode.containerInfo!==P.containerInfo||L.stateNode.implementation!==P.implementation?(L=ic(P,V.mode,Z),L.return=V,L):(L=d(L,P.children||[]),L.return=V,L)}function K(V,L,P,Z,be){return L===null||L.tag!==7?(L=wa(P,V.mode,Z,be),L.return=V,L):(L=d(L,P),L.return=V,L)}function W(V,L,P){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=nc(""+L,V.mode,P),L.return=V,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case S:return P=_s(L.type,L.key,L.props,null,V.mode,P),ml(P,L),P.return=V,P;case E:return L=ic(L,V.mode,P),L.return=V,L;case ee:return L=ka(L),W(V,L,P)}if(ne(L)||re(L))return L=wa(L,V.mode,P,null),L.return=V,L;if(typeof L.then=="function")return W(V,qs(L),P);if(L.$$typeof===R)return W(V,Us(V,L),P);Fs(V,L)}return null}function q(V,L,P,Z){var be=L!==null?L.key:null;if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return be!==null?null:w(V,L,""+P,Z);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case S:return P.key===be?M(V,L,P,Z):null;case E:return P.key===be?I(V,L,P,Z):null;case ee:return P=ka(P),q(V,L,P,Z)}if(ne(P)||re(P))return be!==null?null:K(V,L,P,Z,null);if(typeof P.then=="function")return q(V,L,qs(P),Z);if(P.$$typeof===R)return q(V,L,Us(V,P),Z);Fs(V,P)}return null}function G(V,L,P,Z,be){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return V=V.get(P)||null,w(L,V,""+Z,be);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case S:return V=V.get(Z.key===null?P:Z.key)||null,M(L,V,Z,be);case E:return V=V.get(Z.key===null?P:Z.key)||null,I(L,V,Z,be);case ee:return Z=ka(Z),G(V,L,P,Z,be)}if(ne(Z)||re(Z))return V=V.get(P)||null,K(L,V,Z,be,null);if(typeof Z.then=="function")return G(V,L,P,qs(Z),be);if(Z.$$typeof===R)return G(V,L,P,Us(L,Z),be);Fs(L,Z)}return null}function he(V,L,P,Z){for(var be=null,Ue=null,ve=L,ke=L=0,Oe=null;ve!==null&&ke<P.length;ke++){ve.index>ke?(Oe=ve,ve=null):Oe=ve.sibling;var He=q(V,ve,P[ke],Z);if(He===null){ve===null&&(ve=Oe);break}t&&ve&&He.alternate===null&&i(V,ve),L=p(He,L,ke),Ue===null?be=He:Ue.sibling=He,Ue=He,ve=Oe}if(ke===P.length)return l(V,ve),_e&&xi(V,ke),be;if(ve===null){for(;ke<P.length;ke++)ve=W(V,P[ke],Z),ve!==null&&(L=p(ve,L,ke),Ue===null?be=ve:Ue.sibling=ve,Ue=ve);return _e&&xi(V,ke),be}for(ve=o(ve);ke<P.length;ke++)Oe=G(ve,V,ke,P[ke],Z),Oe!==null&&(t&&Oe.alternate!==null&&ve.delete(Oe.key===null?ke:Oe.key),L=p(Oe,L,ke),Ue===null?be=Oe:Ue.sibling=Oe,Ue=Oe);return t&&ve.forEach(function(oa){return i(V,oa)}),_e&&xi(V,ke),be}function we(V,L,P,Z){if(P==null)throw Error(r(151));for(var be=null,Ue=null,ve=L,ke=L=0,Oe=null,He=P.next();ve!==null&&!He.done;ke++,He=P.next()){ve.index>ke?(Oe=ve,ve=null):Oe=ve.sibling;var oa=q(V,ve,He.value,Z);if(oa===null){ve===null&&(ve=Oe);break}t&&ve&&oa.alternate===null&&i(V,ve),L=p(oa,L,ke),Ue===null?be=oa:Ue.sibling=oa,Ue=oa,ve=Oe}if(He.done)return l(V,ve),_e&&xi(V,ke),be;if(ve===null){for(;!He.done;ke++,He=P.next())He=W(V,He.value,Z),He!==null&&(L=p(He,L,ke),Ue===null?be=He:Ue.sibling=He,Ue=He);return _e&&xi(V,ke),be}for(ve=o(ve);!He.done;ke++,He=P.next())He=G(ve,V,ke,He.value,Z),He!==null&&(t&&He.alternate!==null&&ve.delete(He.key===null?ke:He.key),L=p(He,L,ke),Ue===null?be=He:Ue.sibling=He,Ue=He);return t&&ve.forEach(function(bT){return i(V,bT)}),_e&&xi(V,ke),be}function $e(V,L,P,Z){if(typeof P=="object"&&P!==null&&P.type===A&&P.key===null&&(P=P.props.children),typeof P=="object"&&P!==null){switch(P.$$typeof){case S:e:{for(var be=P.key;L!==null;){if(L.key===be){if(be=P.type,be===A){if(L.tag===7){l(V,L.sibling),Z=d(L,P.props.children),Z.return=V,V=Z;break e}}else if(L.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===ee&&ka(be)===L.type){l(V,L.sibling),Z=d(L,P.props),ml(Z,P),Z.return=V,V=Z;break e}l(V,L);break}else i(V,L);L=L.sibling}P.type===A?(Z=wa(P.props.children,V.mode,Z,P.key),Z.return=V,V=Z):(Z=_s(P.type,P.key,P.props,null,V.mode,Z),ml(Z,P),Z.return=V,V=Z)}return b(V);case E:e:{for(be=P.key;L!==null;){if(L.key===be)if(L.tag===4&&L.stateNode.containerInfo===P.containerInfo&&L.stateNode.implementation===P.implementation){l(V,L.sibling),Z=d(L,P.children||[]),Z.return=V,V=Z;break e}else{l(V,L);break}else i(V,L);L=L.sibling}Z=ic(P,V.mode,Z),Z.return=V,V=Z}return b(V);case ee:return P=ka(P),$e(V,L,P,Z)}if(ne(P))return he(V,L,P,Z);if(re(P)){if(be=re(P),typeof be!="function")throw Error(r(150));return P=be.call(P),we(V,L,P,Z)}if(typeof P.then=="function")return $e(V,L,qs(P),Z);if(P.$$typeof===R)return $e(V,L,Us(V,P),Z);Fs(V,P)}return typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint"?(P=""+P,L!==null&&L.tag===6?(l(V,L.sibling),Z=d(L,P),Z.return=V,V=Z):(l(V,L),Z=nc(P,V.mode,Z),Z.return=V,V=Z),b(V)):l(V,L)}return function(V,L,P,Z){try{hl=0;var be=$e(V,L,P,Z);return fr=null,be}catch(ve){if(ve===cr||ve===Ps)throw ve;var Ue=mn(29,ve,null,V.mode);return Ue.lanes=Z,Ue.return=V,Ue}}}var ja=Tp(!0),Cp=Tp(!1),Gi=!1;function pc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gc(t,i){t=t.updateQueue,i.updateQueue===t&&(i.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Yi(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Xi(t,i,l){var o=t.updateQueue;if(o===null)return null;if(o=o.shared,(Pe&2)!==0){var d=o.pending;return d===null?i.next=i:(i.next=d.next,d.next=i),o.pending=i,i=Ls(t),op(t,null,l),i}return zs(t,o,i,l),Ls(t)}function pl(t,i,l){if(i=i.updateQueue,i!==null&&(i=i.shared,(l&4194048)!==0)){var o=i.lanes;o&=t.pendingLanes,l|=o,i.lanes=l,Fe(t,l)}}function yc(t,i){var l=t.updateQueue,o=t.alternate;if(o!==null&&(o=o.updateQueue,l===o)){var d=null,p=null;if(l=l.firstBaseUpdate,l!==null){do{var b={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};p===null?d=p=b:p=p.next=b,l=l.next}while(l!==null);p===null?d=p=i:p=p.next=i}else d=p=i;l={baseState:o.baseState,firstBaseUpdate:d,lastBaseUpdate:p,shared:o.shared,callbacks:o.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=i:t.next=i,l.lastBaseUpdate=i}var vc=!1;function gl(){if(vc){var t=ur;if(t!==null)throw t}}function yl(t,i,l,o){vc=!1;var d=t.updateQueue;Gi=!1;var p=d.firstBaseUpdate,b=d.lastBaseUpdate,w=d.shared.pending;if(w!==null){d.shared.pending=null;var M=w,I=M.next;M.next=null,b===null?p=I:b.next=I,b=M;var K=t.alternate;K!==null&&(K=K.updateQueue,w=K.lastBaseUpdate,w!==b&&(w===null?K.firstBaseUpdate=I:w.next=I,K.lastBaseUpdate=M))}if(p!==null){var W=d.baseState;b=0,K=I=M=null,w=p;do{var q=w.lane&-536870913,G=q!==w.lane;if(G?(De&q)===q:(o&q)===q){q!==0&&q===or&&(vc=!0),K!==null&&(K=K.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var he=t,we=w;q=i;var $e=l;switch(we.tag){case 1:if(he=we.payload,typeof he=="function"){W=he.call($e,W,q);break e}W=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=we.payload,q=typeof he=="function"?he.call($e,W,q):he,q==null)break e;W=g({},W,q);break e;case 2:Gi=!0}}q=w.callback,q!==null&&(t.flags|=64,G&&(t.flags|=8192),G=d.callbacks,G===null?d.callbacks=[q]:G.push(q))}else G={lane:q,tag:w.tag,payload:w.payload,callback:w.callback,next:null},K===null?(I=K=G,M=W):K=K.next=G,b|=q;if(w=w.next,w===null){if(w=d.shared.pending,w===null)break;G=w,w=G.next,G.next=null,d.lastBaseUpdate=G,d.shared.pending=null}}while(!0);K===null&&(M=W),d.baseState=M,d.firstBaseUpdate=I,d.lastBaseUpdate=K,p===null&&(d.shared.lanes=0),Ji|=b,t.lanes=b,t.memoizedState=W}}function Ap(t,i){if(typeof t!="function")throw Error(r(191,t));t.call(i)}function kp(t,i){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)Ap(l[t],i)}var dr=D(null),Gs=D(0);function Np(t,i){t=Ri,C(Gs,t),C(dr,i),Ri=t|i.baseLanes}function xc(){C(Gs,Ri),C(dr,dr.current)}function bc(){Ri=Gs.current,X(dr),X(Gs)}var pn=D(null),Dn=null;function Ki(t){var i=t.alternate;C(xt,xt.current&1),C(pn,t),Dn===null&&(i===null||dr.current!==null||i.memoizedState!==null)&&(Dn=t)}function Sc(t){C(xt,xt.current),C(pn,t),Dn===null&&(Dn=t)}function jp(t){t.tag===22?(C(xt,xt.current),C(pn,t),Dn===null&&(Dn=t)):Qi()}function Qi(){C(xt,xt.current),C(pn,pn.current)}function gn(t){X(pn),Dn===t&&(Dn=null),X(xt)}var xt=D(0);function Ys(t){for(var i=t;i!==null;){if(i.tag===13){var l=i.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Nf(l)||jf(l)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var wi=0,Ce=null,Qe=null,Et=null,Xs=!1,hr=!1,Ra=!1,Ks=0,vl=0,mr=null,cE=0;function pt(){throw Error(r(321))}function wc(t,i){if(i===null)return!1;for(var l=0;l<i.length&&l<t.length;l++)if(!hn(t[l],i[l]))return!1;return!0}function Ec(t,i,l,o,d,p){return wi=p,Ce=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,H.H=t===null||t.memoizedState===null?dg:Vc,Ra=!1,p=l(o,d),Ra=!1,hr&&(p=Mp(i,l,o,d)),Rp(t),p}function Rp(t){H.H=Sl;var i=Qe!==null&&Qe.next!==null;if(wi=0,Et=Qe=Ce=null,Xs=!1,vl=0,mr=null,i)throw Error(r(300));t===null||Tt||(t=t.dependencies,t!==null&&Vs(t)&&(Tt=!0))}function Mp(t,i,l,o){Ce=t;var d=0;do{if(hr&&(mr=null),vl=0,hr=!1,25<=d)throw Error(r(301));if(d+=1,Et=Qe=null,t.updateQueue!=null){var p=t.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}H.H=hg,p=i(l,o)}while(hr);return p}function fE(){var t=H.H,i=t.useState()[0];return i=typeof i.then=="function"?xl(i):i,t=t.useState()[0],(Qe!==null?Qe.memoizedState:null)!==t&&(Ce.flags|=1024),i}function Tc(){var t=Ks!==0;return Ks=0,t}function Cc(t,i,l){i.updateQueue=t.updateQueue,i.flags&=-2053,t.lanes&=~l}function Ac(t){if(Xs){for(t=t.memoizedState;t!==null;){var i=t.queue;i!==null&&(i.pending=null),t=t.next}Xs=!1}wi=0,Et=Qe=Ce=null,hr=!1,vl=Ks=0,mr=null}function Zt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Et===null?Ce.memoizedState=Et=t:Et=Et.next=t,Et}function bt(){if(Qe===null){var t=Ce.alternate;t=t!==null?t.memoizedState:null}else t=Qe.next;var i=Et===null?Ce.memoizedState:Et.next;if(i!==null)Et=i,Qe=t;else{if(t===null)throw Ce.alternate===null?Error(r(467)):Error(r(310));Qe=t,t={memoizedState:Qe.memoizedState,baseState:Qe.baseState,baseQueue:Qe.baseQueue,queue:Qe.queue,next:null},Et===null?Ce.memoizedState=Et=t:Et=Et.next=t}return Et}function Qs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function xl(t){var i=vl;return vl+=1,mr===null&&(mr=[]),t=Sp(mr,t,i),i=Ce,(Et===null?i.memoizedState:Et.next)===null&&(i=i.alternate,H.H=i===null||i.memoizedState===null?dg:Vc),t}function Zs(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return xl(t);if(t.$$typeof===R)return Bt(t)}throw Error(r(438,String(t)))}function kc(t){var i=null,l=Ce.updateQueue;if(l!==null&&(i=l.memoCache),i==null){var o=Ce.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(i={data:o.data.map(function(d){return d.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),l===null&&(l=Qs(),Ce.updateQueue=l),l.memoCache=i,l=i.data[i.index],l===void 0)for(l=i.data[i.index]=Array(t),o=0;o<t;o++)l[o]=B;return i.index++,l}function Ei(t,i){return typeof i=="function"?i(t):i}function $s(t){var i=bt();return Nc(i,Qe,t)}function Nc(t,i,l){var o=t.queue;if(o===null)throw Error(r(311));o.lastRenderedReducer=l;var d=t.baseQueue,p=o.pending;if(p!==null){if(d!==null){var b=d.next;d.next=p.next,p.next=b}i.baseQueue=d=p,o.pending=null}if(p=t.baseState,d===null)t.memoizedState=p;else{i=d.next;var w=b=null,M=null,I=i,K=!1;do{var W=I.lane&-536870913;if(W!==I.lane?(De&W)===W:(wi&W)===W){var q=I.revertLane;if(q===0)M!==null&&(M=M.next={lane:0,revertLane:0,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null}),W===or&&(K=!0);else if((wi&q)===q){I=I.next,q===or&&(K=!0);continue}else W={lane:0,revertLane:I.revertLane,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},M===null?(w=M=W,b=p):M=M.next=W,Ce.lanes|=q,Ji|=q;W=I.action,Ra&&l(p,W),p=I.hasEagerState?I.eagerState:l(p,W)}else q={lane:W,revertLane:I.revertLane,gesture:I.gesture,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},M===null?(w=M=q,b=p):M=M.next=q,Ce.lanes|=W,Ji|=W;I=I.next}while(I!==null&&I!==i);if(M===null?b=p:M.next=w,!hn(p,t.memoizedState)&&(Tt=!0,K&&(l=ur,l!==null)))throw l;t.memoizedState=p,t.baseState=b,t.baseQueue=M,o.lastRenderedState=p}return d===null&&(o.lanes=0),[t.memoizedState,o.dispatch]}function jc(t){var i=bt(),l=i.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=t;var o=l.dispatch,d=l.pending,p=i.memoizedState;if(d!==null){l.pending=null;var b=d=d.next;do p=t(p,b.action),b=b.next;while(b!==d);hn(p,i.memoizedState)||(Tt=!0),i.memoizedState=p,i.baseQueue===null&&(i.baseState=p),l.lastRenderedState=p}return[p,o]}function Dp(t,i,l){var o=Ce,d=bt(),p=_e;if(p){if(l===void 0)throw Error(r(407));l=l()}else l=i();var b=!hn((Qe||d).memoizedState,l);if(b&&(d.memoizedState=l,Tt=!0),d=d.queue,Dc(Lp.bind(null,o,d,t),[t]),d.getSnapshot!==i||b||Et!==null&&Et.memoizedState.tag&1){if(o.flags|=2048,pr(9,{destroy:void 0},zp.bind(null,o,d,l,i),null),Je===null)throw Error(r(349));p||(wi&127)!==0||Op(o,i,l)}return l}function Op(t,i,l){t.flags|=16384,t={getSnapshot:i,value:l},i=Ce.updateQueue,i===null?(i=Qs(),Ce.updateQueue=i,i.stores=[t]):(l=i.stores,l===null?i.stores=[t]:l.push(t))}function zp(t,i,l,o){i.value=l,i.getSnapshot=o,_p(i)&&Bp(t)}function Lp(t,i,l){return l(function(){_p(i)&&Bp(t)})}function _p(t){var i=t.getSnapshot;t=t.value;try{var l=i();return!hn(t,l)}catch{return!0}}function Bp(t){var i=Sa(t,2);i!==null&&sn(i,t,2)}function Rc(t){var i=Zt();if(typeof t=="function"){var l=t;if(t=l(),Ra){Pt(!0);try{l()}finally{Pt(!1)}}}return i.memoizedState=i.baseState=t,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ei,lastRenderedState:t},i}function Vp(t,i,l,o){return t.baseState=l,Nc(t,Qe,typeof o=="function"?o:Ei)}function dE(t,i,l,o,d){if(eo(t))throw Error(r(485));if(t=i.action,t!==null){var p={payload:d,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){p.listeners.push(b)}};H.T!==null?l(!0):p.isTransition=!1,o(p),l=i.pending,l===null?(p.next=i.pending=p,Up(i,p)):(p.next=l.next,i.pending=l.next=p)}}function Up(t,i){var l=i.action,o=i.payload,d=t.state;if(i.isTransition){var p=H.T,b={};H.T=b;try{var w=l(d,o),M=H.S;M!==null&&M(b,w),Hp(t,i,w)}catch(I){Mc(t,i,I)}finally{p!==null&&b.types!==null&&(p.types=b.types),H.T=p}}else try{p=l(d,o),Hp(t,i,p)}catch(I){Mc(t,i,I)}}function Hp(t,i,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(o){Pp(t,i,o)},function(o){return Mc(t,i,o)}):Pp(t,i,l)}function Pp(t,i,l){i.status="fulfilled",i.value=l,Ip(i),t.state=l,i=t.pending,i!==null&&(l=i.next,l===i?t.pending=null:(l=l.next,i.next=l,Up(t,l)))}function Mc(t,i,l){var o=t.pending;if(t.pending=null,o!==null){o=o.next;do i.status="rejected",i.reason=l,Ip(i),i=i.next;while(i!==o)}t.action=null}function Ip(t){t=t.listeners;for(var i=0;i<t.length;i++)(0,t[i])()}function qp(t,i){return i}function Fp(t,i){if(_e){var l=Je.formState;if(l!==null){e:{var o=Ce;if(_e){if(rt){t:{for(var d=rt,p=Mn;d.nodeType!==8;){if(!p){d=null;break t}if(d=On(d.nextSibling),d===null){d=null;break t}}p=d.data,d=p==="F!"||p==="F"?d:null}if(d){rt=On(d.nextSibling),o=d.data==="F!";break e}}qi(o)}o=!1}o&&(i=l[0])}}return l=Zt(),l.memoizedState=l.baseState=i,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qp,lastRenderedState:i},l.queue=o,l=ug.bind(null,Ce,o),o.dispatch=l,o=Rc(!1),p=Bc.bind(null,Ce,!1,o.queue),o=Zt(),d={state:i,dispatch:null,action:t,pending:null},o.queue=d,l=dE.bind(null,Ce,d,p,l),d.dispatch=l,o.memoizedState=t,[i,l,!1]}function Gp(t){var i=bt();return Yp(i,Qe,t)}function Yp(t,i,l){if(i=Nc(t,i,qp)[0],t=$s(Ei)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var o=xl(i)}catch(b){throw b===cr?Ps:b}else o=i;i=bt();var d=i.queue,p=d.dispatch;return l!==i.memoizedState&&(Ce.flags|=2048,pr(9,{destroy:void 0},hE.bind(null,d,l),null)),[o,p,t]}function hE(t,i){t.action=i}function Xp(t){var i=bt(),l=Qe;if(l!==null)return Yp(i,l,t);bt(),i=i.memoizedState,l=bt();var o=l.queue.dispatch;return l.memoizedState=t,[i,o,!1]}function pr(t,i,l,o){return t={tag:t,create:l,deps:o,inst:i,next:null},i=Ce.updateQueue,i===null&&(i=Qs(),Ce.updateQueue=i),l=i.lastEffect,l===null?i.lastEffect=t.next=t:(o=l.next,l.next=t,t.next=o,i.lastEffect=t),t}function Kp(){return bt().memoizedState}function Js(t,i,l,o){var d=Zt();Ce.flags|=t,d.memoizedState=pr(1|i,{destroy:void 0},l,o===void 0?null:o)}function Ws(t,i,l,o){var d=bt();o=o===void 0?null:o;var p=d.memoizedState.inst;Qe!==null&&o!==null&&wc(o,Qe.memoizedState.deps)?d.memoizedState=pr(i,p,l,o):(Ce.flags|=t,d.memoizedState=pr(1|i,p,l,o))}function Qp(t,i){Js(8390656,8,t,i)}function Dc(t,i){Ws(2048,8,t,i)}function mE(t){Ce.flags|=4;var i=Ce.updateQueue;if(i===null)i=Qs(),Ce.updateQueue=i,i.events=[t];else{var l=i.events;l===null?i.events=[t]:l.push(t)}}function Zp(t){var i=bt().memoizedState;return mE({ref:i,nextImpl:t}),function(){if((Pe&2)!==0)throw Error(r(440));return i.impl.apply(void 0,arguments)}}function $p(t,i){return Ws(4,2,t,i)}function Jp(t,i){return Ws(4,4,t,i)}function Wp(t,i){if(typeof i=="function"){t=t();var l=i(t);return function(){typeof l=="function"?l():i(null)}}if(i!=null)return t=t(),i.current=t,function(){i.current=null}}function eg(t,i,l){l=l!=null?l.concat([t]):null,Ws(4,4,Wp.bind(null,i,t),l)}function Oc(){}function tg(t,i){var l=bt();i=i===void 0?null:i;var o=l.memoizedState;return i!==null&&wc(i,o[1])?o[0]:(l.memoizedState=[t,i],t)}function ng(t,i){var l=bt();i=i===void 0?null:i;var o=l.memoizedState;if(i!==null&&wc(i,o[1]))return o[0];if(o=t(),Ra){Pt(!0);try{t()}finally{Pt(!1)}}return l.memoizedState=[o,i],o}function zc(t,i,l){return l===void 0||(wi&1073741824)!==0&&(De&261930)===0?t.memoizedState=i:(t.memoizedState=l,t=iy(),Ce.lanes|=t,Ji|=t,l)}function ig(t,i,l,o){return hn(l,i)?l:dr.current!==null?(t=zc(t,l,o),hn(t,i)||(Tt=!0),t):(wi&42)===0||(wi&1073741824)!==0&&(De&261930)===0?(Tt=!0,t.memoizedState=l):(t=iy(),Ce.lanes|=t,Ji|=t,i)}function ag(t,i,l,o,d){var p=$.p;$.p=p!==0&&8>p?p:8;var b=H.T,w={};H.T=w,Bc(t,!1,i,l);try{var M=d(),I=H.S;if(I!==null&&I(w,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var K=uE(M,o);bl(t,i,K,xn(t))}else bl(t,i,o,xn(t))}catch(W){bl(t,i,{then:function(){},status:"rejected",reason:W},xn())}finally{$.p=p,b!==null&&w.types!==null&&(b.types=w.types),H.T=b}}function pE(){}function Lc(t,i,l,o){if(t.tag!==5)throw Error(r(476));var d=rg(t).queue;ag(t,d,i,ue,l===null?pE:function(){return lg(t),l(o)})}function rg(t){var i=t.memoizedState;if(i!==null)return i;i={memoizedState:ue,baseState:ue,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ei,lastRenderedState:ue},next:null};var l={};return i.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ei,lastRenderedState:l},next:null},t.memoizedState=i,t=t.alternate,t!==null&&(t.memoizedState=i),i}function lg(t){var i=rg(t);i.next===null&&(i=t.alternate.memoizedState),bl(t,i.next.queue,{},xn())}function _c(){return Bt(Bl)}function sg(){return bt().memoizedState}function og(){return bt().memoizedState}function gE(t){for(var i=t.return;i!==null;){switch(i.tag){case 24:case 3:var l=xn();t=Yi(l);var o=Xi(i,t,l);o!==null&&(sn(o,i,l),pl(o,i,l)),i={cache:fc()},t.payload=i;return}i=i.return}}function yE(t,i,l){var o=xn();l={lane:o,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},eo(t)?cg(i,l):(l=ec(t,i,l,o),l!==null&&(sn(l,t,o),fg(l,i,o)))}function ug(t,i,l){var o=xn();bl(t,i,l,o)}function bl(t,i,l,o){var d={lane:o,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(eo(t))cg(i,d);else{var p=t.alternate;if(t.lanes===0&&(p===null||p.lanes===0)&&(p=i.lastRenderedReducer,p!==null))try{var b=i.lastRenderedState,w=p(b,l);if(d.hasEagerState=!0,d.eagerState=w,hn(w,b))return zs(t,i,d,0),Je===null&&Os(),!1}catch{}if(l=ec(t,i,d,o),l!==null)return sn(l,t,o),fg(l,i,o),!0}return!1}function Bc(t,i,l,o){if(o={lane:2,revertLane:gf(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},eo(t)){if(i)throw Error(r(479))}else i=ec(t,l,o,2),i!==null&&sn(i,t,2)}function eo(t){var i=t.alternate;return t===Ce||i!==null&&i===Ce}function cg(t,i){hr=Xs=!0;var l=t.pending;l===null?i.next=i:(i.next=l.next,l.next=i),t.pending=i}function fg(t,i,l){if((l&4194048)!==0){var o=i.lanes;o&=t.pendingLanes,l|=o,i.lanes=l,Fe(t,l)}}var Sl={readContext:Bt,use:Zs,useCallback:pt,useContext:pt,useEffect:pt,useImperativeHandle:pt,useLayoutEffect:pt,useInsertionEffect:pt,useMemo:pt,useReducer:pt,useRef:pt,useState:pt,useDebugValue:pt,useDeferredValue:pt,useTransition:pt,useSyncExternalStore:pt,useId:pt,useHostTransitionStatus:pt,useFormState:pt,useActionState:pt,useOptimistic:pt,useMemoCache:pt,useCacheRefresh:pt};Sl.useEffectEvent=pt;var dg={readContext:Bt,use:Zs,useCallback:function(t,i){return Zt().memoizedState=[t,i===void 0?null:i],t},useContext:Bt,useEffect:Qp,useImperativeHandle:function(t,i,l){l=l!=null?l.concat([t]):null,Js(4194308,4,Wp.bind(null,i,t),l)},useLayoutEffect:function(t,i){return Js(4194308,4,t,i)},useInsertionEffect:function(t,i){Js(4,2,t,i)},useMemo:function(t,i){var l=Zt();i=i===void 0?null:i;var o=t();if(Ra){Pt(!0);try{t()}finally{Pt(!1)}}return l.memoizedState=[o,i],o},useReducer:function(t,i,l){var o=Zt();if(l!==void 0){var d=l(i);if(Ra){Pt(!0);try{l(i)}finally{Pt(!1)}}}else d=i;return o.memoizedState=o.baseState=d,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:d},o.queue=t,t=t.dispatch=yE.bind(null,Ce,t),[o.memoizedState,t]},useRef:function(t){var i=Zt();return t={current:t},i.memoizedState=t},useState:function(t){t=Rc(t);var i=t.queue,l=ug.bind(null,Ce,i);return i.dispatch=l,[t.memoizedState,l]},useDebugValue:Oc,useDeferredValue:function(t,i){var l=Zt();return zc(l,t,i)},useTransition:function(){var t=Rc(!1);return t=ag.bind(null,Ce,t.queue,!0,!1),Zt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,i,l){var o=Ce,d=Zt();if(_e){if(l===void 0)throw Error(r(407));l=l()}else{if(l=i(),Je===null)throw Error(r(349));(De&127)!==0||Op(o,i,l)}d.memoizedState=l;var p={value:l,getSnapshot:i};return d.queue=p,Qp(Lp.bind(null,o,p,t),[t]),o.flags|=2048,pr(9,{destroy:void 0},zp.bind(null,o,p,l,i),null),l},useId:function(){var t=Zt(),i=Je.identifierPrefix;if(_e){var l=ri,o=ai;l=(o&~(1<<32-qe(o)-1)).toString(32)+l,i="_"+i+"R_"+l,l=Ks++,0<l&&(i+="H"+l.toString(32)),i+="_"}else l=cE++,i="_"+i+"r_"+l.toString(32)+"_";return t.memoizedState=i},useHostTransitionStatus:_c,useFormState:Fp,useActionState:Fp,useOptimistic:function(t){var i=Zt();i.memoizedState=i.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=l,i=Bc.bind(null,Ce,!0,l),l.dispatch=i,[t,i]},useMemoCache:kc,useCacheRefresh:function(){return Zt().memoizedState=gE.bind(null,Ce)},useEffectEvent:function(t){var i=Zt(),l={impl:t};return i.memoizedState=l,function(){if((Pe&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Vc={readContext:Bt,use:Zs,useCallback:tg,useContext:Bt,useEffect:Dc,useImperativeHandle:eg,useInsertionEffect:$p,useLayoutEffect:Jp,useMemo:ng,useReducer:$s,useRef:Kp,useState:function(){return $s(Ei)},useDebugValue:Oc,useDeferredValue:function(t,i){var l=bt();return ig(l,Qe.memoizedState,t,i)},useTransition:function(){var t=$s(Ei)[0],i=bt().memoizedState;return[typeof t=="boolean"?t:xl(t),i]},useSyncExternalStore:Dp,useId:sg,useHostTransitionStatus:_c,useFormState:Gp,useActionState:Gp,useOptimistic:function(t,i){var l=bt();return Vp(l,Qe,t,i)},useMemoCache:kc,useCacheRefresh:og};Vc.useEffectEvent=Zp;var hg={readContext:Bt,use:Zs,useCallback:tg,useContext:Bt,useEffect:Dc,useImperativeHandle:eg,useInsertionEffect:$p,useLayoutEffect:Jp,useMemo:ng,useReducer:jc,useRef:Kp,useState:function(){return jc(Ei)},useDebugValue:Oc,useDeferredValue:function(t,i){var l=bt();return Qe===null?zc(l,t,i):ig(l,Qe.memoizedState,t,i)},useTransition:function(){var t=jc(Ei)[0],i=bt().memoizedState;return[typeof t=="boolean"?t:xl(t),i]},useSyncExternalStore:Dp,useId:sg,useHostTransitionStatus:_c,useFormState:Xp,useActionState:Xp,useOptimistic:function(t,i){var l=bt();return Qe!==null?Vp(l,Qe,t,i):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:kc,useCacheRefresh:og};hg.useEffectEvent=Zp;function Uc(t,i,l,o){i=t.memoizedState,l=l(o,i),l=l==null?i:g({},i,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var Hc={enqueueSetState:function(t,i,l){t=t._reactInternals;var o=xn(),d=Yi(o);d.payload=i,l!=null&&(d.callback=l),i=Xi(t,d,o),i!==null&&(sn(i,t,o),pl(i,t,o))},enqueueReplaceState:function(t,i,l){t=t._reactInternals;var o=xn(),d=Yi(o);d.tag=1,d.payload=i,l!=null&&(d.callback=l),i=Xi(t,d,o),i!==null&&(sn(i,t,o),pl(i,t,o))},enqueueForceUpdate:function(t,i){t=t._reactInternals;var l=xn(),o=Yi(l);o.tag=2,i!=null&&(o.callback=i),i=Xi(t,o,l),i!==null&&(sn(i,t,l),pl(i,t,l))}};function mg(t,i,l,o,d,p,b){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(o,p,b):i.prototype&&i.prototype.isPureReactComponent?!sl(l,o)||!sl(d,p):!0}function pg(t,i,l,o){t=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(l,o),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(l,o),i.state!==t&&Hc.enqueueReplaceState(i,i.state,null)}function Ma(t,i){var l=i;if("ref"in i){l={};for(var o in i)o!=="ref"&&(l[o]=i[o])}if(t=t.defaultProps){l===i&&(l=g({},l));for(var d in t)l[d]===void 0&&(l[d]=t[d])}return l}function gg(t){Ds(t)}function yg(t){console.error(t)}function vg(t){Ds(t)}function to(t,i){try{var l=t.onUncaughtError;l(i.value,{componentStack:i.stack})}catch(o){setTimeout(function(){throw o})}}function xg(t,i,l){try{var o=t.onCaughtError;o(l.value,{componentStack:l.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function Pc(t,i,l){return l=Yi(l),l.tag=3,l.payload={element:null},l.callback=function(){to(t,i)},l}function bg(t){return t=Yi(t),t.tag=3,t}function Sg(t,i,l,o){var d=l.type.getDerivedStateFromError;if(typeof d=="function"){var p=o.value;t.payload=function(){return d(p)},t.callback=function(){xg(i,l,o)}}var b=l.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(t.callback=function(){xg(i,l,o),typeof d!="function"&&(Wi===null?Wi=new Set([this]):Wi.add(this));var w=o.stack;this.componentDidCatch(o.value,{componentStack:w!==null?w:""})})}function vE(t,i,l,o,d){if(l.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(i=l.alternate,i!==null&&sr(i,l,d,!0),l=pn.current,l!==null){switch(l.tag){case 31:case 13:return Dn===null?mo():l.alternate===null&>===0&&(gt=3),l.flags&=-257,l.flags|=65536,l.lanes=d,o===Is?l.flags|=16384:(i=l.updateQueue,i===null?l.updateQueue=new Set([o]):i.add(o),hf(t,o,d)),!1;case 22:return l.flags|=65536,o===Is?l.flags|=16384:(i=l.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([o])},l.updateQueue=i):(l=i.retryQueue,l===null?i.retryQueue=new Set([o]):l.add(o)),hf(t,o,d)),!1}throw Error(r(435,l.tag))}return hf(t,o,d),mo(),!1}if(_e)return i=pn.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=d,o!==lc&&(t=Error(r(422),{cause:o}),cl(Nn(t,l)))):(o!==lc&&(i=Error(r(423),{cause:o}),cl(Nn(i,l))),t=t.current.alternate,t.flags|=65536,d&=-d,t.lanes|=d,o=Nn(o,l),d=Pc(t.stateNode,o,d),yc(t,d),gt!==4&&(gt=2)),!1;var p=Error(r(520),{cause:o});if(p=Nn(p,l),jl===null?jl=[p]:jl.push(p),gt!==4&&(gt=2),i===null)return!0;o=Nn(o,l),l=i;do{switch(l.tag){case 3:return l.flags|=65536,t=d&-d,l.lanes|=t,t=Pc(l.stateNode,o,t),yc(l,t),!1;case 1:if(i=l.type,p=l.stateNode,(l.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(Wi===null||!Wi.has(p))))return l.flags|=65536,d&=-d,l.lanes|=d,d=bg(d),Sg(d,t,l,o),yc(l,d),!1}l=l.return}while(l!==null);return!1}var Ic=Error(r(461)),Tt=!1;function Vt(t,i,l,o){i.child=t===null?Cp(i,null,l,o):ja(i,t.child,l,o)}function wg(t,i,l,o,d){l=l.render;var p=i.ref;if("ref"in o){var b={};for(var w in o)w!=="ref"&&(b[w]=o[w])}else b=o;return Ca(i),o=Ec(t,i,l,b,p,d),w=Tc(),t!==null&&!Tt?(Cc(t,i,d),Ti(t,i,d)):(_e&&w&&ac(i),i.flags|=1,Vt(t,i,o,d),i.child)}function Eg(t,i,l,o,d){if(t===null){var p=l.type;return typeof p=="function"&&!tc(p)&&p.defaultProps===void 0&&l.compare===null?(i.tag=15,i.type=p,Tg(t,i,p,o,d)):(t=_s(l.type,null,o,i,i.mode,d),t.ref=i.ref,t.return=i,i.child=t)}if(p=t.child,!Zc(t,d)){var b=p.memoizedProps;if(l=l.compare,l=l!==null?l:sl,l(b,o)&&t.ref===i.ref)return Ti(t,i,d)}return i.flags|=1,t=vi(p,o),t.ref=i.ref,t.return=i,i.child=t}function Tg(t,i,l,o,d){if(t!==null){var p=t.memoizedProps;if(sl(p,o)&&t.ref===i.ref)if(Tt=!1,i.pendingProps=o=p,Zc(t,d))(t.flags&131072)!==0&&(Tt=!0);else return i.lanes=t.lanes,Ti(t,i,d)}return qc(t,i,l,o,d)}function Cg(t,i,l,o){var d=o.children,p=t!==null?t.memoizedState:null;if(t===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((i.flags&128)!==0){if(p=p!==null?p.baseLanes|l:l,t!==null){for(o=i.child=t.child,d=0;o!==null;)d=d|o.lanes|o.childLanes,o=o.sibling;o=d&~p}else o=0,i.child=null;return Ag(t,i,p,l,o)}if((l&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},t!==null&&Hs(i,p!==null?p.cachePool:null),p!==null?Np(i,p):xc(),jp(i);else return o=i.lanes=536870912,Ag(t,i,p!==null?p.baseLanes|l:l,l,o)}else p!==null?(Hs(i,p.cachePool),Np(i,p),Qi(),i.memoizedState=null):(t!==null&&Hs(i,null),xc(),Qi());return Vt(t,i,d,l),i.child}function wl(t,i){return t!==null&&t.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function Ag(t,i,l,o,d){var p=hc();return p=p===null?null:{parent:wt._currentValue,pool:p},i.memoizedState={baseLanes:l,cachePool:p},t!==null&&Hs(i,null),xc(),jp(i),t!==null&&sr(t,i,o,!0),i.childLanes=d,null}function no(t,i){return i=ao({mode:i.mode,children:i.children},t.mode),i.ref=t.ref,t.child=i,i.return=t,i}function kg(t,i,l){return ja(i,t.child,null,l),t=no(i,i.pendingProps),t.flags|=2,gn(i),i.memoizedState=null,t}function xE(t,i,l){var o=i.pendingProps,d=(i.flags&128)!==0;if(i.flags&=-129,t===null){if(_e){if(o.mode==="hidden")return t=no(i,o),i.lanes=536870912,wl(null,t);if(Sc(i),(t=rt)?(t=Uy(t,Mn),t=t!==null&&t.data==="&"?t:null,t!==null&&(i.memoizedState={dehydrated:t,treeContext:Pi!==null?{id:ai,overflow:ri}:null,retryLane:536870912,hydrationErrors:null},l=cp(t),l.return=i,i.child=l,_t=i,rt=null)):t=null,t===null)throw qi(i);return i.lanes=536870912,null}return no(i,o)}var p=t.memoizedState;if(p!==null){var b=p.dehydrated;if(Sc(i),d)if(i.flags&256)i.flags&=-257,i=kg(t,i,l);else if(i.memoizedState!==null)i.child=t.child,i.flags|=128,i=null;else throw Error(r(558));else if(Tt||sr(t,i,l,!1),d=(l&t.childLanes)!==0,Tt||d){if(o=Je,o!==null&&(b=Ve(o,l),b!==0&&b!==p.retryLane))throw p.retryLane=b,Sa(t,b),sn(o,t,b),Ic;mo(),i=kg(t,i,l)}else t=p.treeContext,rt=On(b.nextSibling),_t=i,_e=!0,Ii=null,Mn=!1,t!==null&&hp(i,t),i=no(i,o),i.flags|=4096;return i}return t=vi(t.child,{mode:o.mode,children:o.children}),t.ref=i.ref,i.child=t,t.return=i,t}function io(t,i){var l=i.ref;if(l===null)t!==null&&t.ref!==null&&(i.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(t===null||t.ref!==l)&&(i.flags|=4194816)}}function qc(t,i,l,o,d){return Ca(i),l=Ec(t,i,l,o,void 0,d),o=Tc(),t!==null&&!Tt?(Cc(t,i,d),Ti(t,i,d)):(_e&&o&&ac(i),i.flags|=1,Vt(t,i,l,d),i.child)}function Ng(t,i,l,o,d,p){return Ca(i),i.updateQueue=null,l=Mp(i,o,l,d),Rp(t),o=Tc(),t!==null&&!Tt?(Cc(t,i,p),Ti(t,i,p)):(_e&&o&&ac(i),i.flags|=1,Vt(t,i,l,p),i.child)}function jg(t,i,l,o,d){if(Ca(i),i.stateNode===null){var p=ir,b=l.contextType;typeof b=="object"&&b!==null&&(p=Bt(b)),p=new l(o,p),i.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=Hc,i.stateNode=p,p._reactInternals=i,p=i.stateNode,p.props=o,p.state=i.memoizedState,p.refs={},pc(i),b=l.contextType,p.context=typeof b=="object"&&b!==null?Bt(b):ir,p.state=i.memoizedState,b=l.getDerivedStateFromProps,typeof b=="function"&&(Uc(i,l,b,o),p.state=i.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(b=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),b!==p.state&&Hc.enqueueReplaceState(p,p.state,null),yl(i,o,p,d),gl(),p.state=i.memoizedState),typeof p.componentDidMount=="function"&&(i.flags|=4194308),o=!0}else if(t===null){p=i.stateNode;var w=i.memoizedProps,M=Ma(l,w);p.props=M;var I=p.context,K=l.contextType;b=ir,typeof K=="object"&&K!==null&&(b=Bt(K));var W=l.getDerivedStateFromProps;K=typeof W=="function"||typeof p.getSnapshotBeforeUpdate=="function",w=i.pendingProps!==w,K||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(w||I!==b)&&pg(i,p,o,b),Gi=!1;var q=i.memoizedState;p.state=q,yl(i,o,p,d),gl(),I=i.memoizedState,w||q!==I||Gi?(typeof W=="function"&&(Uc(i,l,W,o),I=i.memoizedState),(M=Gi||mg(i,l,M,o,q,I,b))?(K||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(i.flags|=4194308)):(typeof p.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=o,i.memoizedState=I),p.props=o,p.state=I,p.context=b,o=M):(typeof p.componentDidMount=="function"&&(i.flags|=4194308),o=!1)}else{p=i.stateNode,gc(t,i),b=i.memoizedProps,K=Ma(l,b),p.props=K,W=i.pendingProps,q=p.context,I=l.contextType,M=ir,typeof I=="object"&&I!==null&&(M=Bt(I)),w=l.getDerivedStateFromProps,(I=typeof w=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(b!==W||q!==M)&&pg(i,p,o,M),Gi=!1,q=i.memoizedState,p.state=q,yl(i,o,p,d),gl();var G=i.memoizedState;b!==W||q!==G||Gi||t!==null&&t.dependencies!==null&&Vs(t.dependencies)?(typeof w=="function"&&(Uc(i,l,w,o),G=i.memoizedState),(K=Gi||mg(i,l,K,o,q,G,M)||t!==null&&t.dependencies!==null&&Vs(t.dependencies))?(I||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(o,G,M),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(o,G,M)),typeof p.componentDidUpdate=="function"&&(i.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof p.componentDidUpdate!="function"||b===t.memoizedProps&&q===t.memoizedState||(i.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||b===t.memoizedProps&&q===t.memoizedState||(i.flags|=1024),i.memoizedProps=o,i.memoizedState=G),p.props=o,p.state=G,p.context=M,o=K):(typeof p.componentDidUpdate!="function"||b===t.memoizedProps&&q===t.memoizedState||(i.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||b===t.memoizedProps&&q===t.memoizedState||(i.flags|=1024),o=!1)}return p=o,io(t,i),o=(i.flags&128)!==0,p||o?(p=i.stateNode,l=o&&typeof l.getDerivedStateFromError!="function"?null:p.render(),i.flags|=1,t!==null&&o?(i.child=ja(i,t.child,null,d),i.child=ja(i,null,l,d)):Vt(t,i,l,d),i.memoizedState=p.state,t=i.child):t=Ti(t,i,d),t}function Rg(t,i,l,o){return Ea(),i.flags|=256,Vt(t,i,l,o),i.child}var Fc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Gc(t){return{baseLanes:t,cachePool:xp()}}function Yc(t,i,l){return t=t!==null?t.childLanes&~l:0,i&&(t|=vn),t}function Mg(t,i,l){var o=i.pendingProps,d=!1,p=(i.flags&128)!==0,b;if((b=p)||(b=t!==null&&t.memoizedState===null?!1:(xt.current&2)!==0),b&&(d=!0,i.flags&=-129),b=(i.flags&32)!==0,i.flags&=-33,t===null){if(_e){if(d?Ki(i):Qi(),(t=rt)?(t=Uy(t,Mn),t=t!==null&&t.data!=="&"?t:null,t!==null&&(i.memoizedState={dehydrated:t,treeContext:Pi!==null?{id:ai,overflow:ri}:null,retryLane:536870912,hydrationErrors:null},l=cp(t),l.return=i,i.child=l,_t=i,rt=null)):t=null,t===null)throw qi(i);return jf(t)?i.lanes=32:i.lanes=536870912,null}var w=o.children;return o=o.fallback,d?(Qi(),d=i.mode,w=ao({mode:"hidden",children:w},d),o=wa(o,d,l,null),w.return=i,o.return=i,w.sibling=o,i.child=w,o=i.child,o.memoizedState=Gc(l),o.childLanes=Yc(t,b,l),i.memoizedState=Fc,wl(null,o)):(Ki(i),Xc(i,w))}var M=t.memoizedState;if(M!==null&&(w=M.dehydrated,w!==null)){if(p)i.flags&256?(Ki(i),i.flags&=-257,i=Kc(t,i,l)):i.memoizedState!==null?(Qi(),i.child=t.child,i.flags|=128,i=null):(Qi(),w=o.fallback,d=i.mode,o=ao({mode:"visible",children:o.children},d),w=wa(w,d,l,null),w.flags|=2,o.return=i,w.return=i,o.sibling=w,i.child=o,ja(i,t.child,null,l),o=i.child,o.memoizedState=Gc(l),o.childLanes=Yc(t,b,l),i.memoizedState=Fc,i=wl(null,o));else if(Ki(i),jf(w)){if(b=w.nextSibling&&w.nextSibling.dataset,b)var I=b.dgst;b=I,o=Error(r(419)),o.stack="",o.digest=b,cl({value:o,source:null,stack:null}),i=Kc(t,i,l)}else if(Tt||sr(t,i,l,!1),b=(l&t.childLanes)!==0,Tt||b){if(b=Je,b!==null&&(o=Ve(b,l),o!==0&&o!==M.retryLane))throw M.retryLane=o,Sa(t,o),sn(b,t,o),Ic;Nf(w)||mo(),i=Kc(t,i,l)}else Nf(w)?(i.flags|=192,i.child=t.child,i=null):(t=M.treeContext,rt=On(w.nextSibling),_t=i,_e=!0,Ii=null,Mn=!1,t!==null&&hp(i,t),i=Xc(i,o.children),i.flags|=4096);return i}return d?(Qi(),w=o.fallback,d=i.mode,M=t.child,I=M.sibling,o=vi(M,{mode:"hidden",children:o.children}),o.subtreeFlags=M.subtreeFlags&65011712,I!==null?w=vi(I,w):(w=wa(w,d,l,null),w.flags|=2),w.return=i,o.return=i,o.sibling=w,i.child=o,wl(null,o),o=i.child,w=t.child.memoizedState,w===null?w=Gc(l):(d=w.cachePool,d!==null?(M=wt._currentValue,d=d.parent!==M?{parent:M,pool:M}:d):d=xp(),w={baseLanes:w.baseLanes|l,cachePool:d}),o.memoizedState=w,o.childLanes=Yc(t,b,l),i.memoizedState=Fc,wl(t.child,o)):(Ki(i),l=t.child,t=l.sibling,l=vi(l,{mode:"visible",children:o.children}),l.return=i,l.sibling=null,t!==null&&(b=i.deletions,b===null?(i.deletions=[t],i.flags|=16):b.push(t)),i.child=l,i.memoizedState=null,l)}function Xc(t,i){return i=ao({mode:"visible",children:i},t.mode),i.return=t,t.child=i}function ao(t,i){return t=mn(22,t,null,i),t.lanes=0,t}function Kc(t,i,l){return ja(i,t.child,null,l),t=Xc(i,i.pendingProps.children),t.flags|=2,i.memoizedState=null,t}function Dg(t,i,l){t.lanes|=i;var o=t.alternate;o!==null&&(o.lanes|=i),uc(t.return,i,l)}function Qc(t,i,l,o,d,p){var b=t.memoizedState;b===null?t.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:o,tail:l,tailMode:d,treeForkCount:p}:(b.isBackwards=i,b.rendering=null,b.renderingStartTime=0,b.last=o,b.tail=l,b.tailMode=d,b.treeForkCount=p)}function Og(t,i,l){var o=i.pendingProps,d=o.revealOrder,p=o.tail;o=o.children;var b=xt.current,w=(b&2)!==0;if(w?(b=b&1|2,i.flags|=128):b&=1,C(xt,b),Vt(t,i,o,l),o=_e?ul:0,!w&&t!==null&&(t.flags&128)!==0)e:for(t=i.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Dg(t,l,i);else if(t.tag===19)Dg(t,l,i);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===i)break e;for(;t.sibling===null;){if(t.return===null||t.return===i)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(d){case"forwards":for(l=i.child,d=null;l!==null;)t=l.alternate,t!==null&&Ys(t)===null&&(d=l),l=l.sibling;l=d,l===null?(d=i.child,i.child=null):(d=l.sibling,l.sibling=null),Qc(i,!1,d,l,p,o);break;case"backwards":case"unstable_legacy-backwards":for(l=null,d=i.child,i.child=null;d!==null;){if(t=d.alternate,t!==null&&Ys(t)===null){i.child=d;break}t=d.sibling,d.sibling=l,l=d,d=t}Qc(i,!0,l,null,p,o);break;case"together":Qc(i,!1,null,null,void 0,o);break;default:i.memoizedState=null}return i.child}function Ti(t,i,l){if(t!==null&&(i.dependencies=t.dependencies),Ji|=i.lanes,(l&i.childLanes)===0)if(t!==null){if(sr(t,i,l,!1),(l&i.childLanes)===0)return null}else return null;if(t!==null&&i.child!==t.child)throw Error(r(153));if(i.child!==null){for(t=i.child,l=vi(t,t.pendingProps),i.child=l,l.return=i;t.sibling!==null;)t=t.sibling,l=l.sibling=vi(t,t.pendingProps),l.return=i;l.sibling=null}return i.child}function Zc(t,i){return(t.lanes&i)!==0?!0:(t=t.dependencies,!!(t!==null&&Vs(t)))}function bE(t,i,l){switch(i.tag){case 3:Ie(i,i.stateNode.containerInfo),Fi(i,wt,t.memoizedState.cache),Ea();break;case 27:case 5:ut(i);break;case 4:Ie(i,i.stateNode.containerInfo);break;case 10:Fi(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,Sc(i),null;break;case 13:var o=i.memoizedState;if(o!==null)return o.dehydrated!==null?(Ki(i),i.flags|=128,null):(l&i.child.childLanes)!==0?Mg(t,i,l):(Ki(i),t=Ti(t,i,l),t!==null?t.sibling:null);Ki(i);break;case 19:var d=(t.flags&128)!==0;if(o=(l&i.childLanes)!==0,o||(sr(t,i,l,!1),o=(l&i.childLanes)!==0),d){if(o)return Og(t,i,l);i.flags|=128}if(d=i.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),C(xt,xt.current),o)break;return null;case 22:return i.lanes=0,Cg(t,i,l,i.pendingProps);case 24:Fi(i,wt,t.memoizedState.cache)}return Ti(t,i,l)}function zg(t,i,l){if(t!==null)if(t.memoizedProps!==i.pendingProps)Tt=!0;else{if(!Zc(t,l)&&(i.flags&128)===0)return Tt=!1,bE(t,i,l);Tt=(t.flags&131072)!==0}else Tt=!1,_e&&(i.flags&1048576)!==0&&dp(i,ul,i.index);switch(i.lanes=0,i.tag){case 16:e:{var o=i.pendingProps;if(t=ka(i.elementType),i.type=t,typeof t=="function")tc(t)?(o=Ma(t,o),i.tag=1,i=jg(null,i,t,o,l)):(i.tag=0,i=qc(null,i,t,o,l));else{if(t!=null){var d=t.$$typeof;if(d===Y){i.tag=11,i=wg(null,i,t,o,l);break e}else if(d===Q){i.tag=14,i=Eg(null,i,t,o,l);break e}}throw i=se(t)||t,Error(r(306,i,""))}}return i;case 0:return qc(t,i,i.type,i.pendingProps,l);case 1:return o=i.type,d=Ma(o,i.pendingProps),jg(t,i,o,d,l);case 3:e:{if(Ie(i,i.stateNode.containerInfo),t===null)throw Error(r(387));o=i.pendingProps;var p=i.memoizedState;d=p.element,gc(t,i),yl(i,o,null,l);var b=i.memoizedState;if(o=b.cache,Fi(i,wt,o),o!==p.cache&&cc(i,[wt],l,!0),gl(),o=b.element,p.isDehydrated)if(p={element:o,isDehydrated:!1,cache:b.cache},i.updateQueue.baseState=p,i.memoizedState=p,i.flags&256){i=Rg(t,i,o,l);break e}else if(o!==d){d=Nn(Error(r(424)),i),cl(d),i=Rg(t,i,o,l);break e}else for(t=i.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,rt=On(t.firstChild),_t=i,_e=!0,Ii=null,Mn=!0,l=Cp(i,null,o,l),i.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Ea(),o===d){i=Ti(t,i,l);break e}Vt(t,i,o,l)}i=i.child}return i;case 26:return io(t,i),t===null?(l=Gy(i.type,null,i.pendingProps,null))?i.memoizedState=l:_e||(l=i.type,t=i.pendingProps,o=So(ge.current).createElement(l),o[dt]=i,o[St]=t,Ut(o,l,t),Mt(o),i.stateNode=o):i.memoizedState=Gy(i.type,t.memoizedProps,i.pendingProps,t.memoizedState),null;case 27:return ut(i),t===null&&_e&&(o=i.stateNode=Iy(i.type,i.pendingProps,ge.current),_t=i,Mn=!0,d=rt,ia(i.type)?(Rf=d,rt=On(o.firstChild)):rt=d),Vt(t,i,i.pendingProps.children,l),io(t,i),t===null&&(i.flags|=4194304),i.child;case 5:return t===null&&_e&&((d=o=rt)&&(o=ZE(o,i.type,i.pendingProps,Mn),o!==null?(i.stateNode=o,_t=i,rt=On(o.firstChild),Mn=!1,d=!0):d=!1),d||qi(i)),ut(i),d=i.type,p=i.pendingProps,b=t!==null?t.memoizedProps:null,o=p.children,Cf(d,p)?o=null:b!==null&&Cf(d,b)&&(i.flags|=32),i.memoizedState!==null&&(d=Ec(t,i,fE,null,null,l),Bl._currentValue=d),io(t,i),Vt(t,i,o,l),i.child;case 6:return t===null&&_e&&((t=l=rt)&&(l=$E(l,i.pendingProps,Mn),l!==null?(i.stateNode=l,_t=i,rt=null,t=!0):t=!1),t||qi(i)),null;case 13:return Mg(t,i,l);case 4:return Ie(i,i.stateNode.containerInfo),o=i.pendingProps,t===null?i.child=ja(i,null,o,l):Vt(t,i,o,l),i.child;case 11:return wg(t,i,i.type,i.pendingProps,l);case 7:return Vt(t,i,i.pendingProps,l),i.child;case 8:return Vt(t,i,i.pendingProps.children,l),i.child;case 12:return Vt(t,i,i.pendingProps.children,l),i.child;case 10:return o=i.pendingProps,Fi(i,i.type,o.value),Vt(t,i,o.children,l),i.child;case 9:return d=i.type._context,o=i.pendingProps.children,Ca(i),d=Bt(d),o=o(d),i.flags|=1,Vt(t,i,o,l),i.child;case 14:return Eg(t,i,i.type,i.pendingProps,l);case 15:return Tg(t,i,i.type,i.pendingProps,l);case 19:return Og(t,i,l);case 31:return xE(t,i,l);case 22:return Cg(t,i,l,i.pendingProps);case 24:return Ca(i),o=Bt(wt),t===null?(d=hc(),d===null&&(d=Je,p=fc(),d.pooledCache=p,p.refCount++,p!==null&&(d.pooledCacheLanes|=l),d=p),i.memoizedState={parent:o,cache:d},pc(i),Fi(i,wt,d)):((t.lanes&l)!==0&&(gc(t,i),yl(i,null,null,l),gl()),d=t.memoizedState,p=i.memoizedState,d.parent!==o?(d={parent:o,cache:o},i.memoizedState=d,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=d),Fi(i,wt,o)):(o=p.cache,Fi(i,wt,o),o!==d.cache&&cc(i,[wt],l,!0))),Vt(t,i,i.pendingProps.children,l),i.child;case 29:throw i.pendingProps}throw Error(r(156,i.tag))}function Ci(t){t.flags|=4}function $c(t,i,l,o,d){if((i=(t.mode&32)!==0)&&(i=!1),i){if(t.flags|=16777216,(d&335544128)===d)if(t.stateNode.complete)t.flags|=8192;else if(sy())t.flags|=8192;else throw Na=Is,mc}else t.flags&=-16777217}function Lg(t,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Zy(i))if(sy())t.flags|=8192;else throw Na=Is,mc}function ro(t,i){i!==null&&(t.flags|=4),t.flags&16384&&(i=t.tag!==22?Pn():536870912,t.lanes|=i,xr|=i)}function El(t,i){if(!_e)switch(t.tailMode){case"hidden":i=t.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var o=null;l!==null;)l.alternate!==null&&(o=l),l=l.sibling;o===null?i||t.tail===null?t.tail=null:t.tail.sibling=null:o.sibling=null}}function lt(t){var i=t.alternate!==null&&t.alternate.child===t.child,l=0,o=0;if(i)for(var d=t.child;d!==null;)l|=d.lanes|d.childLanes,o|=d.subtreeFlags&65011712,o|=d.flags&65011712,d.return=t,d=d.sibling;else for(d=t.child;d!==null;)l|=d.lanes|d.childLanes,o|=d.subtreeFlags,o|=d.flags,d.return=t,d=d.sibling;return t.subtreeFlags|=o,t.childLanes=l,i}function SE(t,i,l){var o=i.pendingProps;switch(rc(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lt(i),null;case 1:return lt(i),null;case 3:return l=i.stateNode,o=null,t!==null&&(o=t.memoizedState.cache),i.memoizedState.cache!==o&&(i.flags|=2048),Si(wt),ze(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(lr(i)?Ci(i):t===null||t.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,sc())),lt(i),null;case 26:var d=i.type,p=i.memoizedState;return t===null?(Ci(i),p!==null?(lt(i),Lg(i,p)):(lt(i),$c(i,d,null,o,l))):p?p!==t.memoizedState?(Ci(i),lt(i),Lg(i,p)):(lt(i),i.flags&=-16777217):(t=t.memoizedProps,t!==o&&Ci(i),lt(i),$c(i,d,t,o,l)),null;case 27:if(Xe(i),l=ge.current,d=i.type,t!==null&&i.stateNode!=null)t.memoizedProps!==o&&Ci(i);else{if(!o){if(i.stateNode===null)throw Error(r(166));return lt(i),null}t=ce.current,lr(i)?mp(i):(t=Iy(d,o,l),i.stateNode=t,Ci(i))}return lt(i),null;case 5:if(Xe(i),d=i.type,t!==null&&i.stateNode!=null)t.memoizedProps!==o&&Ci(i);else{if(!o){if(i.stateNode===null)throw Error(r(166));return lt(i),null}if(p=ce.current,lr(i))mp(i);else{var b=So(ge.current);switch(p){case 1:p=b.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:p=b.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":p=b.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":p=b.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":p=b.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof o.is=="string"?b.createElement("select",{is:o.is}):b.createElement("select"),o.multiple?p.multiple=!0:o.size&&(p.size=o.size);break;default:p=typeof o.is=="string"?b.createElement(d,{is:o.is}):b.createElement(d)}}p[dt]=i,p[St]=o;e:for(b=i.child;b!==null;){if(b.tag===5||b.tag===6)p.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===i)break e;for(;b.sibling===null;){if(b.return===null||b.return===i)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}i.stateNode=p;e:switch(Ut(p,d,o),d){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&Ci(i)}}return lt(i),$c(i,i.type,t===null?null:t.memoizedProps,i.pendingProps,l),null;case 6:if(t&&i.stateNode!=null)t.memoizedProps!==o&&Ci(i);else{if(typeof o!="string"&&i.stateNode===null)throw Error(r(166));if(t=ge.current,lr(i)){if(t=i.stateNode,l=i.memoizedProps,o=null,d=_t,d!==null)switch(d.tag){case 27:case 5:o=d.memoizedProps}t[dt]=i,t=!!(t.nodeValue===l||o!==null&&o.suppressHydrationWarning===!0||My(t.nodeValue,l)),t||qi(i,!0)}else t=So(t).createTextNode(o),t[dt]=i,i.stateNode=t}return lt(i),null;case 31:if(l=i.memoizedState,t===null||t.memoizedState!==null){if(o=lr(i),l!==null){if(t===null){if(!o)throw Error(r(318));if(t=i.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[dt]=i}else Ea(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;lt(i),t=!1}else l=sc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return i.flags&256?(gn(i),i):(gn(i),null);if((i.flags&128)!==0)throw Error(r(558))}return lt(i),null;case 13:if(o=i.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(d=lr(i),o!==null&&o.dehydrated!==null){if(t===null){if(!d)throw Error(r(318));if(d=i.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(r(317));d[dt]=i}else Ea(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;lt(i),d=!1}else d=sc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=d),d=!0;if(!d)return i.flags&256?(gn(i),i):(gn(i),null)}return gn(i),(i.flags&128)!==0?(i.lanes=l,i):(l=o!==null,t=t!==null&&t.memoizedState!==null,l&&(o=i.child,d=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(d=o.alternate.memoizedState.cachePool.pool),p=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(p=o.memoizedState.cachePool.pool),p!==d&&(o.flags|=2048)),l!==t&&l&&(i.child.flags|=8192),ro(i,i.updateQueue),lt(i),null);case 4:return ze(),t===null&&bf(i.stateNode.containerInfo),lt(i),null;case 10:return Si(i.type),lt(i),null;case 19:if(X(xt),o=i.memoizedState,o===null)return lt(i),null;if(d=(i.flags&128)!==0,p=o.rendering,p===null)if(d)El(o,!1);else{if(gt!==0||t!==null&&(t.flags&128)!==0)for(t=i.child;t!==null;){if(p=Ys(t),p!==null){for(i.flags|=128,El(o,!1),t=p.updateQueue,i.updateQueue=t,ro(i,t),i.subtreeFlags=0,t=l,l=i.child;l!==null;)up(l,t),l=l.sibling;return C(xt,xt.current&1|2),_e&&xi(i,o.treeForkCount),i.child}t=t.sibling}o.tail!==null&&at()>co&&(i.flags|=128,d=!0,El(o,!1),i.lanes=4194304)}else{if(!d)if(t=Ys(p),t!==null){if(i.flags|=128,d=!0,t=t.updateQueue,i.updateQueue=t,ro(i,t),El(o,!0),o.tail===null&&o.tailMode==="hidden"&&!p.alternate&&!_e)return lt(i),null}else 2*at()-o.renderingStartTime>co&&l!==536870912&&(i.flags|=128,d=!0,El(o,!1),i.lanes=4194304);o.isBackwards?(p.sibling=i.child,i.child=p):(t=o.last,t!==null?t.sibling=p:i.child=p,o.last=p)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=at(),t.sibling=null,l=xt.current,C(xt,d?l&1|2:l&1),_e&&xi(i,o.treeForkCount),t):(lt(i),null);case 22:case 23:return gn(i),bc(),o=i.memoizedState!==null,t!==null?t.memoizedState!==null!==o&&(i.flags|=8192):o&&(i.flags|=8192),o?(l&536870912)!==0&&(i.flags&128)===0&&(lt(i),i.subtreeFlags&6&&(i.flags|=8192)):lt(i),l=i.updateQueue,l!==null&&ro(i,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),o=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==l&&(i.flags|=2048),t!==null&&X(Aa),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),i.memoizedState.cache!==l&&(i.flags|=2048),Si(wt),lt(i),null;case 25:return null;case 30:return null}throw Error(r(156,i.tag))}function wE(t,i){switch(rc(i),i.tag){case 1:return t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 3:return Si(wt),ze(),t=i.flags,(t&65536)!==0&&(t&128)===0?(i.flags=t&-65537|128,i):null;case 26:case 27:case 5:return Xe(i),null;case 31:if(i.memoizedState!==null){if(gn(i),i.alternate===null)throw Error(r(340));Ea()}return t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 13:if(gn(i),t=i.memoizedState,t!==null&&t.dehydrated!==null){if(i.alternate===null)throw Error(r(340));Ea()}return t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 19:return X(xt),null;case 4:return ze(),null;case 10:return Si(i.type),null;case 22:case 23:return gn(i),bc(),t!==null&&X(Aa),t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 24:return Si(wt),null;case 25:return null;default:return null}}function _g(t,i){switch(rc(i),i.tag){case 3:Si(wt),ze();break;case 26:case 27:case 5:Xe(i);break;case 4:ze();break;case 31:i.memoizedState!==null&&gn(i);break;case 13:gn(i);break;case 19:X(xt);break;case 10:Si(i.type);break;case 22:case 23:gn(i),bc(),t!==null&&X(Aa);break;case 24:Si(wt)}}function Tl(t,i){try{var l=i.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var d=o.next;l=d;do{if((l.tag&t)===t){o=void 0;var p=l.create,b=l.inst;o=p(),b.destroy=o}l=l.next}while(l!==d)}}catch(w){Ye(i,i.return,w)}}function Zi(t,i,l){try{var o=i.updateQueue,d=o!==null?o.lastEffect:null;if(d!==null){var p=d.next;o=p;do{if((o.tag&t)===t){var b=o.inst,w=b.destroy;if(w!==void 0){b.destroy=void 0,d=i;var M=l,I=w;try{I()}catch(K){Ye(d,M,K)}}}o=o.next}while(o!==p)}}catch(K){Ye(i,i.return,K)}}function Bg(t){var i=t.updateQueue;if(i!==null){var l=t.stateNode;try{kp(i,l)}catch(o){Ye(t,t.return,o)}}}function Vg(t,i,l){l.props=Ma(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(o){Ye(t,i,o)}}function Cl(t,i){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var o=t.stateNode;break;case 30:o=t.stateNode;break;default:o=t.stateNode}typeof l=="function"?t.refCleanup=l(o):l.current=o}}catch(d){Ye(t,i,d)}}function li(t,i){var l=t.ref,o=t.refCleanup;if(l!==null)if(typeof o=="function")try{o()}catch(d){Ye(t,i,d)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(d){Ye(t,i,d)}else l.current=null}function Ug(t){var i=t.type,l=t.memoizedProps,o=t.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":l.autoFocus&&o.focus();break e;case"img":l.src?o.src=l.src:l.srcSet&&(o.srcset=l.srcSet)}}catch(d){Ye(t,t.return,d)}}function Jc(t,i,l){try{var o=t.stateNode;FE(o,t.type,l,i),o[St]=i}catch(d){Ye(t,t.return,d)}}function Hg(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ia(t.type)||t.tag===4}function Wc(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Hg(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&ia(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function ef(t,i,l){var o=t.tag;if(o===5||o===6)t=t.stateNode,i?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,i):(i=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,i.appendChild(t),l=l._reactRootContainer,l!=null||i.onclick!==null||(i.onclick=gi));else if(o!==4&&(o===27&&ia(t.type)&&(l=t.stateNode,i=null),t=t.child,t!==null))for(ef(t,i,l),t=t.sibling;t!==null;)ef(t,i,l),t=t.sibling}function lo(t,i,l){var o=t.tag;if(o===5||o===6)t=t.stateNode,i?l.insertBefore(t,i):l.appendChild(t);else if(o!==4&&(o===27&&ia(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(lo(t,i,l),t=t.sibling;t!==null;)lo(t,i,l),t=t.sibling}function Pg(t){var i=t.stateNode,l=t.memoizedProps;try{for(var o=t.type,d=i.attributes;d.length;)i.removeAttributeNode(d[0]);Ut(i,o,l),i[dt]=t,i[St]=l}catch(p){Ye(t,t.return,p)}}var Ai=!1,Ct=!1,tf=!1,Ig=typeof WeakSet=="function"?WeakSet:Set,Dt=null;function EE(t,i){if(t=t.containerInfo,Ef=No,t=ep(t),Ku(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else e:{l=(l=t.ownerDocument)&&l.defaultView||window;var o=l.getSelection&&l.getSelection();if(o&&o.rangeCount!==0){l=o.anchorNode;var d=o.anchorOffset,p=o.focusNode;o=o.focusOffset;try{l.nodeType,p.nodeType}catch{l=null;break e}var b=0,w=-1,M=-1,I=0,K=0,W=t,q=null;t:for(;;){for(var G;W!==l||d!==0&&W.nodeType!==3||(w=b+d),W!==p||o!==0&&W.nodeType!==3||(M=b+o),W.nodeType===3&&(b+=W.nodeValue.length),(G=W.firstChild)!==null;)q=W,W=G;for(;;){if(W===t)break t;if(q===l&&++I===d&&(w=b),q===p&&++K===o&&(M=b),(G=W.nextSibling)!==null)break;W=q,q=W.parentNode}W=G}l=w===-1||M===-1?null:{start:w,end:M}}else l=null}l=l||{start:0,end:0}}else l=null;for(Tf={focusedElem:t,selectionRange:l},No=!1,Dt=i;Dt!==null;)if(i=Dt,t=i.child,(i.subtreeFlags&1028)!==0&&t!==null)t.return=i,Dt=t;else for(;Dt!==null;){switch(i=Dt,p=i.alternate,t=i.flags,i.tag){case 0:if((t&4)!==0&&(t=i.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)d=t[l],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&p!==null){t=void 0,l=i,d=p.memoizedProps,p=p.memoizedState,o=l.stateNode;try{var he=Ma(l.type,d);t=o.getSnapshotBeforeUpdate(he,p),o.__reactInternalSnapshotBeforeUpdate=t}catch(we){Ye(l,l.return,we)}}break;case 3:if((t&1024)!==0){if(t=i.stateNode.containerInfo,l=t.nodeType,l===9)kf(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":kf(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=i.sibling,t!==null){t.return=i.return,Dt=t;break}Dt=i.return}}function qg(t,i,l){var o=l.flags;switch(l.tag){case 0:case 11:case 15:Ni(t,l),o&4&&Tl(5,l);break;case 1:if(Ni(t,l),o&4)if(t=l.stateNode,i===null)try{t.componentDidMount()}catch(b){Ye(l,l.return,b)}else{var d=Ma(l.type,i.memoizedProps);i=i.memoizedState;try{t.componentDidUpdate(d,i,t.__reactInternalSnapshotBeforeUpdate)}catch(b){Ye(l,l.return,b)}}o&64&&Bg(l),o&512&&Cl(l,l.return);break;case 3:if(Ni(t,l),o&64&&(t=l.updateQueue,t!==null)){if(i=null,l.child!==null)switch(l.child.tag){case 27:case 5:i=l.child.stateNode;break;case 1:i=l.child.stateNode}try{kp(t,i)}catch(b){Ye(l,l.return,b)}}break;case 27:i===null&&o&4&&Pg(l);case 26:case 5:Ni(t,l),i===null&&o&4&&Ug(l),o&512&&Cl(l,l.return);break;case 12:Ni(t,l);break;case 31:Ni(t,l),o&4&&Yg(t,l);break;case 13:Ni(t,l),o&4&&Xg(t,l),o&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=DE.bind(null,l),JE(t,l))));break;case 22:if(o=l.memoizedState!==null||Ai,!o){i=i!==null&&i.memoizedState!==null||Ct,d=Ai;var p=Ct;Ai=o,(Ct=i)&&!p?ji(t,l,(l.subtreeFlags&8772)!==0):Ni(t,l),Ai=d,Ct=p}break;case 30:break;default:Ni(t,l)}}function Fg(t){var i=t.alternate;i!==null&&(t.alternate=null,Fg(i)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(i=t.stateNode,i!==null&&Mu(i)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var st=null,nn=!1;function ki(t,i,l){for(l=l.child;l!==null;)Gg(t,i,l),l=l.sibling}function Gg(t,i,l){if(vt&&typeof vt.onCommitFiberUnmount=="function")try{vt.onCommitFiberUnmount(zt,l)}catch{}switch(l.tag){case 26:Ct||li(l,i),ki(t,i,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ct||li(l,i);var o=st,d=nn;ia(l.type)&&(st=l.stateNode,nn=!1),ki(t,i,l),zl(l.stateNode),st=o,nn=d;break;case 5:Ct||li(l,i);case 6:if(o=st,d=nn,st=null,ki(t,i,l),st=o,nn=d,st!==null)if(nn)try{(st.nodeType===9?st.body:st.nodeName==="HTML"?st.ownerDocument.body:st).removeChild(l.stateNode)}catch(p){Ye(l,i,p)}else try{st.removeChild(l.stateNode)}catch(p){Ye(l,i,p)}break;case 18:st!==null&&(nn?(t=st,By(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),kr(t)):By(st,l.stateNode));break;case 4:o=st,d=nn,st=l.stateNode.containerInfo,nn=!0,ki(t,i,l),st=o,nn=d;break;case 0:case 11:case 14:case 15:Zi(2,l,i),Ct||Zi(4,l,i),ki(t,i,l);break;case 1:Ct||(li(l,i),o=l.stateNode,typeof o.componentWillUnmount=="function"&&Vg(l,i,o)),ki(t,i,l);break;case 21:ki(t,i,l);break;case 22:Ct=(o=Ct)||l.memoizedState!==null,ki(t,i,l),Ct=o;break;default:ki(t,i,l)}}function Yg(t,i){if(i.memoizedState===null&&(t=i.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{kr(t)}catch(l){Ye(i,i.return,l)}}}function Xg(t,i){if(i.memoizedState===null&&(t=i.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{kr(t)}catch(l){Ye(i,i.return,l)}}function TE(t){switch(t.tag){case 31:case 13:case 19:var i=t.stateNode;return i===null&&(i=t.stateNode=new Ig),i;case 22:return t=t.stateNode,i=t._retryCache,i===null&&(i=t._retryCache=new Ig),i;default:throw Error(r(435,t.tag))}}function so(t,i){var l=TE(t);i.forEach(function(o){if(!l.has(o)){l.add(o);var d=OE.bind(null,t,o);o.then(d,d)}})}function an(t,i){var l=i.deletions;if(l!==null)for(var o=0;o<l.length;o++){var d=l[o],p=t,b=i,w=b;e:for(;w!==null;){switch(w.tag){case 27:if(ia(w.type)){st=w.stateNode,nn=!1;break e}break;case 5:st=w.stateNode,nn=!1;break e;case 3:case 4:st=w.stateNode.containerInfo,nn=!0;break e}w=w.return}if(st===null)throw Error(r(160));Gg(p,b,d),st=null,nn=!1,p=d.alternate,p!==null&&(p.return=null),d.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)Kg(i,t),i=i.sibling}var Fn=null;function Kg(t,i){var l=t.alternate,o=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:an(i,t),rn(t),o&4&&(Zi(3,t,t.return),Tl(3,t),Zi(5,t,t.return));break;case 1:an(i,t),rn(t),o&512&&(Ct||l===null||li(l,l.return)),o&64&&Ai&&(t=t.updateQueue,t!==null&&(o=t.callbacks,o!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?o:l.concat(o))));break;case 26:var d=Fn;if(an(i,t),rn(t),o&512&&(Ct||l===null||li(l,l.return)),o&4){var p=l!==null?l.memoizedState:null;if(o=t.memoizedState,l===null)if(o===null)if(t.stateNode===null){e:{o=t.type,l=t.memoizedProps,d=d.ownerDocument||d;t:switch(o){case"title":p=d.getElementsByTagName("title")[0],(!p||p[Jr]||p[dt]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=d.createElement(o),d.head.insertBefore(p,d.querySelector("head > title"))),Ut(p,o,l),p[dt]=t,Mt(p),o=p;break e;case"link":var b=Ky("link","href",d).get(o+(l.href||""));if(b){for(var w=0;w<b.length;w++)if(p=b[w],p.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&p.getAttribute("rel")===(l.rel==null?null:l.rel)&&p.getAttribute("title")===(l.title==null?null:l.title)&&p.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){b.splice(w,1);break t}}p=d.createElement(o),Ut(p,o,l),d.head.appendChild(p);break;case"meta":if(b=Ky("meta","content",d).get(o+(l.content||""))){for(w=0;w<b.length;w++)if(p=b[w],p.getAttribute("content")===(l.content==null?null:""+l.content)&&p.getAttribute("name")===(l.name==null?null:l.name)&&p.getAttribute("property")===(l.property==null?null:l.property)&&p.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&p.getAttribute("charset")===(l.charSet==null?null:l.charSet)){b.splice(w,1);break t}}p=d.createElement(o),Ut(p,o,l),d.head.appendChild(p);break;default:throw Error(r(468,o))}p[dt]=t,Mt(p),o=p}t.stateNode=o}else Qy(d,t.type,t.stateNode);else t.stateNode=Xy(d,o,t.memoizedProps);else p!==o?(p===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):p.count--,o===null?Qy(d,t.type,t.stateNode):Xy(d,o,t.memoizedProps)):o===null&&t.stateNode!==null&&Jc(t,t.memoizedProps,l.memoizedProps)}break;case 27:an(i,t),rn(t),o&512&&(Ct||l===null||li(l,l.return)),l!==null&&o&4&&Jc(t,t.memoizedProps,l.memoizedProps);break;case 5:if(an(i,t),rn(t),o&512&&(Ct||l===null||li(l,l.return)),t.flags&32){d=t.stateNode;try{Za(d,"")}catch(he){Ye(t,t.return,he)}}o&4&&t.stateNode!=null&&(d=t.memoizedProps,Jc(t,d,l!==null?l.memoizedProps:d)),o&1024&&(tf=!0);break;case 6:if(an(i,t),rn(t),o&4){if(t.stateNode===null)throw Error(r(162));o=t.memoizedProps,l=t.stateNode;try{l.nodeValue=o}catch(he){Ye(t,t.return,he)}}break;case 3:if(To=null,d=Fn,Fn=wo(i.containerInfo),an(i,t),Fn=d,rn(t),o&4&&l!==null&&l.memoizedState.isDehydrated)try{kr(i.containerInfo)}catch(he){Ye(t,t.return,he)}tf&&(tf=!1,Qg(t));break;case 4:o=Fn,Fn=wo(t.stateNode.containerInfo),an(i,t),rn(t),Fn=o;break;case 12:an(i,t),rn(t);break;case 31:an(i,t),rn(t),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,so(t,o)));break;case 13:an(i,t),rn(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(uo=at()),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,so(t,o)));break;case 22:d=t.memoizedState!==null;var M=l!==null&&l.memoizedState!==null,I=Ai,K=Ct;if(Ai=I||d,Ct=K||M,an(i,t),Ct=K,Ai=I,rn(t),o&8192)e:for(i=t.stateNode,i._visibility=d?i._visibility&-2:i._visibility|1,d&&(l===null||M||Ai||Ct||Da(t)),l=null,i=t;;){if(i.tag===5||i.tag===26){if(l===null){M=l=i;try{if(p=M.stateNode,d)b=p.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{w=M.stateNode;var W=M.memoizedProps.style,q=W!=null&&W.hasOwnProperty("display")?W.display:null;w.style.display=q==null||typeof q=="boolean"?"":(""+q).trim()}}catch(he){Ye(M,M.return,he)}}}else if(i.tag===6){if(l===null){M=i;try{M.stateNode.nodeValue=d?"":M.memoizedProps}catch(he){Ye(M,M.return,he)}}}else if(i.tag===18){if(l===null){M=i;try{var G=M.stateNode;d?Vy(G,!0):Vy(M.stateNode,!1)}catch(he){Ye(M,M.return,he)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===t)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;l===i&&(l=null),i=i.return}l===i&&(l=null),i.sibling.return=i.return,i=i.sibling}o&4&&(o=t.updateQueue,o!==null&&(l=o.retryQueue,l!==null&&(o.retryQueue=null,so(t,l))));break;case 19:an(i,t),rn(t),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,so(t,o)));break;case 30:break;case 21:break;default:an(i,t),rn(t)}}function rn(t){var i=t.flags;if(i&2){try{for(var l,o=t.return;o!==null;){if(Hg(o)){l=o;break}o=o.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var d=l.stateNode,p=Wc(t);lo(t,p,d);break;case 5:var b=l.stateNode;l.flags&32&&(Za(b,""),l.flags&=-33);var w=Wc(t);lo(t,w,b);break;case 3:case 4:var M=l.stateNode.containerInfo,I=Wc(t);ef(t,I,M);break;default:throw Error(r(161))}}catch(K){Ye(t,t.return,K)}t.flags&=-3}i&4096&&(t.flags&=-4097)}function Qg(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var i=t;Qg(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),t=t.sibling}}function Ni(t,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)qg(t,i.alternate,i),i=i.sibling}function Da(t){for(t=t.child;t!==null;){var i=t;switch(i.tag){case 0:case 11:case 14:case 15:Zi(4,i,i.return),Da(i);break;case 1:li(i,i.return);var l=i.stateNode;typeof l.componentWillUnmount=="function"&&Vg(i,i.return,l),Da(i);break;case 27:zl(i.stateNode);case 26:case 5:li(i,i.return),Da(i);break;case 22:i.memoizedState===null&&Da(i);break;case 30:Da(i);break;default:Da(i)}t=t.sibling}}function ji(t,i,l){for(l=l&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var o=i.alternate,d=t,p=i,b=p.flags;switch(p.tag){case 0:case 11:case 15:ji(d,p,l),Tl(4,p);break;case 1:if(ji(d,p,l),o=p,d=o.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(I){Ye(o,o.return,I)}if(o=p,d=o.updateQueue,d!==null){var w=o.stateNode;try{var M=d.shared.hiddenCallbacks;if(M!==null)for(d.shared.hiddenCallbacks=null,d=0;d<M.length;d++)Ap(M[d],w)}catch(I){Ye(o,o.return,I)}}l&&b&64&&Bg(p),Cl(p,p.return);break;case 27:Pg(p);case 26:case 5:ji(d,p,l),l&&o===null&&b&4&&Ug(p),Cl(p,p.return);break;case 12:ji(d,p,l);break;case 31:ji(d,p,l),l&&b&4&&Yg(d,p);break;case 13:ji(d,p,l),l&&b&4&&Xg(d,p);break;case 22:p.memoizedState===null&&ji(d,p,l),Cl(p,p.return);break;case 30:break;default:ji(d,p,l)}i=i.sibling}}function nf(t,i){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(t=i.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&fl(l))}function af(t,i){t=null,i.alternate!==null&&(t=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==t&&(i.refCount++,t!=null&&fl(t))}function Gn(t,i,l,o){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)Zg(t,i,l,o),i=i.sibling}function Zg(t,i,l,o){var d=i.flags;switch(i.tag){case 0:case 11:case 15:Gn(t,i,l,o),d&2048&&Tl(9,i);break;case 1:Gn(t,i,l,o);break;case 3:Gn(t,i,l,o),d&2048&&(t=null,i.alternate!==null&&(t=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==t&&(i.refCount++,t!=null&&fl(t)));break;case 12:if(d&2048){Gn(t,i,l,o),t=i.stateNode;try{var p=i.memoizedProps,b=p.id,w=p.onPostCommit;typeof w=="function"&&w(b,i.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(M){Ye(i,i.return,M)}}else Gn(t,i,l,o);break;case 31:Gn(t,i,l,o);break;case 13:Gn(t,i,l,o);break;case 23:break;case 22:p=i.stateNode,b=i.alternate,i.memoizedState!==null?p._visibility&2?Gn(t,i,l,o):Al(t,i):p._visibility&2?Gn(t,i,l,o):(p._visibility|=2,gr(t,i,l,o,(i.subtreeFlags&10256)!==0||!1)),d&2048&&nf(b,i);break;case 24:Gn(t,i,l,o),d&2048&&af(i.alternate,i);break;default:Gn(t,i,l,o)}}function gr(t,i,l,o,d){for(d=d&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var p=t,b=i,w=l,M=o,I=b.flags;switch(b.tag){case 0:case 11:case 15:gr(p,b,w,M,d),Tl(8,b);break;case 23:break;case 22:var K=b.stateNode;b.memoizedState!==null?K._visibility&2?gr(p,b,w,M,d):Al(p,b):(K._visibility|=2,gr(p,b,w,M,d)),d&&I&2048&&nf(b.alternate,b);break;case 24:gr(p,b,w,M,d),d&&I&2048&&af(b.alternate,b);break;default:gr(p,b,w,M,d)}i=i.sibling}}function Al(t,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var l=t,o=i,d=o.flags;switch(o.tag){case 22:Al(l,o),d&2048&&nf(o.alternate,o);break;case 24:Al(l,o),d&2048&&af(o.alternate,o);break;default:Al(l,o)}i=i.sibling}}var kl=8192;function yr(t,i,l){if(t.subtreeFlags&kl)for(t=t.child;t!==null;)$g(t,i,l),t=t.sibling}function $g(t,i,l){switch(t.tag){case 26:yr(t,i,l),t.flags&kl&&t.memoizedState!==null&&cT(l,Fn,t.memoizedState,t.memoizedProps);break;case 5:yr(t,i,l);break;case 3:case 4:var o=Fn;Fn=wo(t.stateNode.containerInfo),yr(t,i,l),Fn=o;break;case 22:t.memoizedState===null&&(o=t.alternate,o!==null&&o.memoizedState!==null?(o=kl,kl=16777216,yr(t,i,l),kl=o):yr(t,i,l));break;default:yr(t,i,l)}}function Jg(t){var i=t.alternate;if(i!==null&&(t=i.child,t!==null)){i.child=null;do i=t.sibling,t.sibling=null,t=i;while(t!==null)}}function Nl(t){var i=t.deletions;if((t.flags&16)!==0){if(i!==null)for(var l=0;l<i.length;l++){var o=i[l];Dt=o,ey(o,t)}Jg(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Wg(t),t=t.sibling}function Wg(t){switch(t.tag){case 0:case 11:case 15:Nl(t),t.flags&2048&&Zi(9,t,t.return);break;case 3:Nl(t);break;case 12:Nl(t);break;case 22:var i=t.stateNode;t.memoizedState!==null&&i._visibility&2&&(t.return===null||t.return.tag!==13)?(i._visibility&=-3,oo(t)):Nl(t);break;default:Nl(t)}}function oo(t){var i=t.deletions;if((t.flags&16)!==0){if(i!==null)for(var l=0;l<i.length;l++){var o=i[l];Dt=o,ey(o,t)}Jg(t)}for(t=t.child;t!==null;){switch(i=t,i.tag){case 0:case 11:case 15:Zi(8,i,i.return),oo(i);break;case 22:l=i.stateNode,l._visibility&2&&(l._visibility&=-3,oo(i));break;default:oo(i)}t=t.sibling}}function ey(t,i){for(;Dt!==null;){var l=Dt;switch(l.tag){case 0:case 11:case 15:Zi(8,l,i);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var o=l.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:fl(l.memoizedState.cache)}if(o=l.child,o!==null)o.return=l,Dt=o;else e:for(l=t;Dt!==null;){o=Dt;var d=o.sibling,p=o.return;if(Fg(o),o===l){Dt=null;break e}if(d!==null){d.return=p,Dt=d;break e}Dt=p}}}var CE={getCacheForType:function(t){var i=Bt(wt),l=i.data.get(t);return l===void 0&&(l=t(),i.data.set(t,l)),l},cacheSignal:function(){return Bt(wt).controller.signal}},AE=typeof WeakMap=="function"?WeakMap:Map,Pe=0,Je=null,je=null,De=0,Ge=0,yn=null,$i=!1,vr=!1,rf=!1,Ri=0,gt=0,Ji=0,Oa=0,lf=0,vn=0,xr=0,jl=null,ln=null,sf=!1,uo=0,ty=0,co=1/0,fo=null,Wi=null,Nt=0,ea=null,br=null,Mi=0,of=0,uf=null,ny=null,Rl=0,cf=null;function xn(){return(Pe&2)!==0&&De!==0?De&-De:H.T!==null?gf():ni()}function iy(){if(vn===0)if((De&536870912)===0||_e){var t=fe;fe<<=1,(fe&3932160)===0&&(fe=262144),vn=t}else vn=536870912;return t=pn.current,t!==null&&(t.flags|=32),vn}function sn(t,i,l){(t===Je&&(Ge===2||Ge===9)||t.cancelPendingCommit!==null)&&(Sr(t,0),ta(t,De,vn,!1)),Ui(t,l),((Pe&2)===0||t!==Je)&&(t===Je&&((Pe&2)===0&&(Oa|=l),gt===4&&ta(t,De,vn,!1)),si(t))}function ay(t,i,l){if((Pe&6)!==0)throw Error(r(327));var o=!l&&(i&127)===0&&(i&t.expiredLanes)===0||dn(t,i),d=o?jE(t,i):df(t,i,!0),p=o;do{if(d===0){vr&&!o&&ta(t,i,0,!1);break}else{if(l=t.current.alternate,p&&!kE(l)){d=df(t,i,!1),p=!1;continue}if(d===2){if(p=i,t.errorRecoveryDisabledLanes&p)var b=0;else b=t.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){i=b;e:{var w=t;d=jl;var M=w.current.memoizedState.isDehydrated;if(M&&(Sr(w,b).flags|=256),b=df(w,b,!1),b!==2){if(rf&&!M){w.errorRecoveryDisabledLanes|=p,Oa|=p,d=4;break e}p=ln,ln=d,p!==null&&(ln===null?ln=p:ln.push.apply(ln,p))}d=b}if(p=!1,d!==2)continue}}if(d===1){Sr(t,0),ta(t,i,0,!0);break}e:{switch(o=t,p=d,p){case 0:case 1:throw Error(r(345));case 4:if((i&4194048)!==i)break;case 6:ta(o,i,vn,!$i);break e;case 2:ln=null;break;case 3:case 5:break;default:throw Error(r(329))}if((i&62914560)===i&&(d=uo+300-at(),10<d)){if(ta(o,i,vn,!$i),ft(o,0,!0)!==0)break e;Mi=i,o.timeoutHandle=Ly(ry.bind(null,o,l,ln,fo,sf,i,vn,Oa,xr,$i,p,"Throttled",-0,0),d);break e}ry(o,l,ln,fo,sf,i,vn,Oa,xr,$i,p,null,-0,0)}}break}while(!0);si(t)}function ry(t,i,l,o,d,p,b,w,M,I,K,W,q,G){if(t.timeoutHandle=-1,W=i.subtreeFlags,W&8192||(W&16785408)===16785408){W={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:gi},$g(i,p,W);var he=(p&62914560)===p?uo-at():(p&4194048)===p?ty-at():0;if(he=fT(W,he),he!==null){Mi=p,t.cancelPendingCommit=he(hy.bind(null,t,i,p,l,o,d,b,w,M,K,W,null,q,G)),ta(t,p,b,!I);return}}hy(t,i,p,l,o,d,b,w,M)}function kE(t){for(var i=t;;){var l=i.tag;if((l===0||l===11||l===15)&&i.flags&16384&&(l=i.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var o=0;o<l.length;o++){var d=l[o],p=d.getSnapshot;d=d.value;try{if(!hn(p(),d))return!1}catch{return!1}}if(l=i.child,i.subtreeFlags&16384&&l!==null)l.return=i,i=l;else{if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function ta(t,i,l,o){i&=~lf,i&=~Oa,t.suspendedLanes|=i,t.pingedLanes&=~i,o&&(t.warmLanes|=i),o=t.expirationTimes;for(var d=i;0<d;){var p=31-qe(d),b=1<<p;o[p]=-1,d&=~b}l!==0&&Ae(t,l,i)}function ho(){return(Pe&6)===0?(Ml(0),!1):!0}function ff(){if(je!==null){if(Ge===0)var t=je.return;else t=je,bi=Ta=null,Ac(t),fr=null,hl=0,t=je;for(;t!==null;)_g(t.alternate,t),t=t.return;je=null}}function Sr(t,i){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,XE(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),Mi=0,ff(),Je=t,je=l=vi(t.current,null),De=i,Ge=0,yn=null,$i=!1,vr=dn(t,i),rf=!1,xr=vn=lf=Oa=Ji=gt=0,ln=jl=null,sf=!1,(i&8)!==0&&(i|=i&32);var o=t.entangledLanes;if(o!==0)for(t=t.entanglements,o&=i;0<o;){var d=31-qe(o),p=1<<d;i|=t[d],o&=~p}return Ri=i,Os(),l}function ly(t,i){Ce=null,H.H=Sl,i===cr||i===Ps?(i=wp(),Ge=3):i===mc?(i=wp(),Ge=4):Ge=i===Ic?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,yn=i,je===null&&(gt=1,to(t,Nn(i,t.current)))}function sy(){var t=pn.current;return t===null?!0:(De&4194048)===De?Dn===null:(De&62914560)===De||(De&536870912)!==0?t===Dn:!1}function oy(){var t=H.H;return H.H=Sl,t===null?Sl:t}function uy(){var t=H.A;return H.A=CE,t}function mo(){gt=4,$i||(De&4194048)!==De&&pn.current!==null||(vr=!0),(Ji&134217727)===0&&(Oa&134217727)===0||Je===null||ta(Je,De,vn,!1)}function df(t,i,l){var o=Pe;Pe|=2;var d=oy(),p=uy();(Je!==t||De!==i)&&(fo=null,Sr(t,i)),i=!1;var b=gt;e:do try{if(Ge!==0&&je!==null){var w=je,M=yn;switch(Ge){case 8:ff(),b=6;break e;case 3:case 2:case 9:case 6:pn.current===null&&(i=!0);var I=Ge;if(Ge=0,yn=null,wr(t,w,M,I),l&&vr){b=0;break e}break;default:I=Ge,Ge=0,yn=null,wr(t,w,M,I)}}NE(),b=gt;break}catch(K){ly(t,K)}while(!0);return i&&t.shellSuspendCounter++,bi=Ta=null,Pe=o,H.H=d,H.A=p,je===null&&(Je=null,De=0,Os()),b}function NE(){for(;je!==null;)cy(je)}function jE(t,i){var l=Pe;Pe|=2;var o=oy(),d=uy();Je!==t||De!==i?(fo=null,co=at()+500,Sr(t,i)):vr=dn(t,i);e:do try{if(Ge!==0&&je!==null){i=je;var p=yn;t:switch(Ge){case 1:Ge=0,yn=null,wr(t,i,p,1);break;case 2:case 9:if(bp(p)){Ge=0,yn=null,fy(i);break}i=function(){Ge!==2&&Ge!==9||Je!==t||(Ge=7),si(t)},p.then(i,i);break e;case 3:Ge=7;break e;case 4:Ge=5;break e;case 7:bp(p)?(Ge=0,yn=null,fy(i)):(Ge=0,yn=null,wr(t,i,p,7));break;case 5:var b=null;switch(je.tag){case 26:b=je.memoizedState;case 5:case 27:var w=je;if(b?Zy(b):w.stateNode.complete){Ge=0,yn=null;var M=w.sibling;if(M!==null)je=M;else{var I=w.return;I!==null?(je=I,po(I)):je=null}break t}}Ge=0,yn=null,wr(t,i,p,5);break;case 6:Ge=0,yn=null,wr(t,i,p,6);break;case 8:ff(),gt=6;break e;default:throw Error(r(462))}}RE();break}catch(K){ly(t,K)}while(!0);return bi=Ta=null,H.H=o,H.A=d,Pe=l,je!==null?0:(Je=null,De=0,Os(),gt)}function RE(){for(;je!==null&&!Tn();)cy(je)}function cy(t){var i=zg(t.alternate,t,Ri);t.memoizedProps=t.pendingProps,i===null?po(t):je=i}function fy(t){var i=t,l=i.alternate;switch(i.tag){case 15:case 0:i=Ng(l,i,i.pendingProps,i.type,void 0,De);break;case 11:i=Ng(l,i,i.pendingProps,i.type.render,i.ref,De);break;case 5:Ac(i);default:_g(l,i),i=je=up(i,Ri),i=zg(l,i,Ri)}t.memoizedProps=t.pendingProps,i===null?po(t):je=i}function wr(t,i,l,o){bi=Ta=null,Ac(i),fr=null,hl=0;var d=i.return;try{if(vE(t,d,i,l,De)){gt=1,to(t,Nn(l,t.current)),je=null;return}}catch(p){if(d!==null)throw je=d,p;gt=1,to(t,Nn(l,t.current)),je=null;return}i.flags&32768?(_e||o===1?t=!0:vr||(De&536870912)!==0?t=!1:($i=t=!0,(o===2||o===9||o===3||o===6)&&(o=pn.current,o!==null&&o.tag===13&&(o.flags|=16384))),dy(i,t)):po(i)}function po(t){var i=t;do{if((i.flags&32768)!==0){dy(i,$i);return}t=i.return;var l=SE(i.alternate,i,Ri);if(l!==null){je=l;return}if(i=i.sibling,i!==null){je=i;return}je=i=t}while(i!==null);gt===0&&(gt=5)}function dy(t,i){do{var l=wE(t.alternate,t);if(l!==null){l.flags&=32767,je=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!i&&(t=t.sibling,t!==null)){je=t;return}je=t=l}while(t!==null);gt=6,je=null}function hy(t,i,l,o,d,p,b,w,M){t.cancelPendingCommit=null;do go();while(Nt!==0);if((Pe&6)!==0)throw Error(r(327));if(i!==null){if(i===t.current)throw Error(r(177));if(p=i.lanes|i.childLanes,p|=Wu,ga(t,l,p,b,w,M),t===Je&&(je=Je=null,De=0),br=i,ea=t,Mi=l,of=p,uf=d,ny=o,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,zE(ye,function(){return vy(),null})):(t.callbackNode=null,t.callbackPriority=0),o=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||o){o=H.T,H.T=null,d=$.p,$.p=2,b=Pe,Pe|=4;try{EE(t,i,l)}finally{Pe=b,$.p=d,H.T=o}}Nt=1,my(),py(),gy()}}function my(){if(Nt===1){Nt=0;var t=ea,i=br,l=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||l){l=H.T,H.T=null;var o=$.p;$.p=2;var d=Pe;Pe|=4;try{Kg(i,t);var p=Tf,b=ep(t.containerInfo),w=p.focusedElem,M=p.selectionRange;if(b!==w&&w&&w.ownerDocument&&Wm(w.ownerDocument.documentElement,w)){if(M!==null&&Ku(w)){var I=M.start,K=M.end;if(K===void 0&&(K=I),"selectionStart"in w)w.selectionStart=I,w.selectionEnd=Math.min(K,w.value.length);else{var W=w.ownerDocument||document,q=W&&W.defaultView||window;if(q.getSelection){var G=q.getSelection(),he=w.textContent.length,we=Math.min(M.start,he),$e=M.end===void 0?we:Math.min(M.end,he);!G.extend&&we>$e&&(b=$e,$e=we,we=b);var V=Jm(w,we),L=Jm(w,$e);if(V&&L&&(G.rangeCount!==1||G.anchorNode!==V.node||G.anchorOffset!==V.offset||G.focusNode!==L.node||G.focusOffset!==L.offset)){var P=W.createRange();P.setStart(V.node,V.offset),G.removeAllRanges(),we>$e?(G.addRange(P),G.extend(L.node,L.offset)):(P.setEnd(L.node,L.offset),G.addRange(P))}}}}for(W=[],G=w;G=G.parentNode;)G.nodeType===1&&W.push({element:G,left:G.scrollLeft,top:G.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<W.length;w++){var Z=W[w];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}No=!!Ef,Tf=Ef=null}finally{Pe=d,$.p=o,H.T=l}}t.current=i,Nt=2}}function py(){if(Nt===2){Nt=0;var t=ea,i=br,l=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||l){l=H.T,H.T=null;var o=$.p;$.p=2;var d=Pe;Pe|=4;try{qg(t,i.alternate,i)}finally{Pe=d,$.p=o,H.T=l}}Nt=3}}function gy(){if(Nt===4||Nt===3){Nt=0,Vi();var t=ea,i=br,l=Mi,o=ny;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?Nt=5:(Nt=0,br=ea=null,yy(t,t.pendingLanes));var d=t.pendingLanes;if(d===0&&(Wi=null),Lt(l),i=i.stateNode,vt&&typeof vt.onCommitFiberRoot=="function")try{vt.onCommitFiberRoot(zt,i,void 0,(i.current.flags&128)===128)}catch{}if(o!==null){i=H.T,d=$.p,$.p=2,H.T=null;try{for(var p=t.onRecoverableError,b=0;b<o.length;b++){var w=o[b];p(w.value,{componentStack:w.stack})}}finally{H.T=i,$.p=d}}(Mi&3)!==0&&go(),si(t),d=t.pendingLanes,(l&261930)!==0&&(d&42)!==0?t===cf?Rl++:(Rl=0,cf=t):Rl=0,Ml(0)}}function yy(t,i){(t.pooledCacheLanes&=i)===0&&(i=t.pooledCache,i!=null&&(t.pooledCache=null,fl(i)))}function go(){return my(),py(),gy(),vy()}function vy(){if(Nt!==5)return!1;var t=ea,i=of;of=0;var l=Lt(Mi),o=H.T,d=$.p;try{$.p=32>l?32:l,H.T=null,l=uf,uf=null;var p=ea,b=Mi;if(Nt=0,br=ea=null,Mi=0,(Pe&6)!==0)throw Error(r(331));var w=Pe;if(Pe|=4,Wg(p.current),Zg(p,p.current,b,l),Pe=w,Ml(0,!1),vt&&typeof vt.onPostCommitFiberRoot=="function")try{vt.onPostCommitFiberRoot(zt,p)}catch{}return!0}finally{$.p=d,H.T=o,yy(t,i)}}function xy(t,i,l){i=Nn(l,i),i=Pc(t.stateNode,i,2),t=Xi(t,i,2),t!==null&&(Ui(t,2),si(t))}function Ye(t,i,l){if(t.tag===3)xy(t,t,l);else for(;i!==null;){if(i.tag===3){xy(i,t,l);break}else if(i.tag===1){var o=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Wi===null||!Wi.has(o))){t=Nn(l,t),l=bg(2),o=Xi(i,l,2),o!==null&&(Sg(l,o,i,t),Ui(o,2),si(o));break}}i=i.return}}function hf(t,i,l){var o=t.pingCache;if(o===null){o=t.pingCache=new AE;var d=new Set;o.set(i,d)}else d=o.get(i),d===void 0&&(d=new Set,o.set(i,d));d.has(l)||(rf=!0,d.add(l),t=ME.bind(null,t,i,l),i.then(t,t))}function ME(t,i,l){var o=t.pingCache;o!==null&&o.delete(i),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,Je===t&&(De&l)===l&&(gt===4||gt===3&&(De&62914560)===De&&300>at()-uo?(Pe&2)===0&&Sr(t,0):lf|=l,xr===De&&(xr=0)),si(t)}function by(t,i){i===0&&(i=Pn()),t=Sa(t,i),t!==null&&(Ui(t,i),si(t))}function DE(t){var i=t.memoizedState,l=0;i!==null&&(l=i.retryLane),by(t,l)}function OE(t,i){var l=0;switch(t.tag){case 31:case 13:var o=t.stateNode,d=t.memoizedState;d!==null&&(l=d.retryLane);break;case 19:o=t.stateNode;break;case 22:o=t.stateNode._retryCache;break;default:throw Error(r(314))}o!==null&&o.delete(i),by(t,l)}function zE(t,i){return Un(t,i)}var yo=null,Er=null,mf=!1,vo=!1,pf=!1,na=0;function si(t){t!==Er&&t.next===null&&(Er===null?yo=Er=t:Er=Er.next=t),vo=!0,mf||(mf=!0,_E())}function Ml(t,i){if(!pf&&vo){pf=!0;do for(var l=!1,o=yo;o!==null;){if(t!==0){var d=o.pendingLanes;if(d===0)var p=0;else{var b=o.suspendedLanes,w=o.pingedLanes;p=(1<<31-qe(42|t)+1)-1,p&=d&~(b&~w),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(l=!0,Ty(o,p))}else p=De,p=ft(o,o===Je?p:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(p&3)===0||dn(o,p)||(l=!0,Ty(o,p));o=o.next}while(l);pf=!1}}function LE(){Sy()}function Sy(){vo=mf=!1;var t=0;na!==0&&YE()&&(t=na);for(var i=at(),l=null,o=yo;o!==null;){var d=o.next,p=wy(o,i);p===0?(o.next=null,l===null?yo=d:l.next=d,d===null&&(Er=l)):(l=o,(t!==0||(p&3)!==0)&&(vo=!0)),o=d}Nt!==0&&Nt!==5||Ml(t),na!==0&&(na=0)}function wy(t,i){for(var l=t.suspendedLanes,o=t.pingedLanes,d=t.expirationTimes,p=t.pendingLanes&-62914561;0<p;){var b=31-qe(p),w=1<<b,M=d[b];M===-1?((w&l)===0||(w&o)!==0)&&(d[b]=ti(w,i)):M<=i&&(t.expiredLanes|=w),p&=~w}if(i=Je,l=De,l=ft(t,t===i?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),o=t.callbackNode,l===0||t===i&&(Ge===2||Ge===9)||t.cancelPendingCommit!==null)return o!==null&&o!==null&&ei(o),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||dn(t,l)){if(i=l&-l,i===t.callbackPriority)return i;switch(o!==null&&ei(o),Lt(l)){case 2:case 8:l=J;break;case 32:l=ye;break;case 268435456:l=Le;break;default:l=ye}return o=Ey.bind(null,t),l=Un(l,o),t.callbackPriority=i,t.callbackNode=l,i}return o!==null&&o!==null&&ei(o),t.callbackPriority=2,t.callbackNode=null,2}function Ey(t,i){if(Nt!==0&&Nt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(go()&&t.callbackNode!==l)return null;var o=De;return o=ft(t,t===Je?o:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),o===0?null:(ay(t,o,i),wy(t,at()),t.callbackNode!=null&&t.callbackNode===l?Ey.bind(null,t):null)}function Ty(t,i){if(go())return null;ay(t,i,!0)}function _E(){KE(function(){(Pe&6)!==0?Un(_,LE):Sy()})}function gf(){if(na===0){var t=or;t===0&&(t=ie,ie<<=1,(ie&261888)===0&&(ie=256)),na=t}return na}function Cy(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Cs(""+t)}function Ay(t,i){var l=i.ownerDocument.createElement("input");return l.name=i.name,l.value=i.value,t.id&&l.setAttribute("form",t.id),i.parentNode.insertBefore(l,i),t=new FormData(t),l.parentNode.removeChild(l),t}function BE(t,i,l,o,d){if(i==="submit"&&l&&l.stateNode===d){var p=Cy((d[St]||null).action),b=o.submitter;b&&(i=(i=b[St]||null)?Cy(i.formAction):b.getAttribute("formAction"),i!==null&&(p=i,b=null));var w=new js("action","action",null,o,d);t.push({event:w,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(na!==0){var M=b?Ay(d,b):new FormData(d);Lc(l,{pending:!0,data:M,method:d.method,action:p},null,M)}}else typeof p=="function"&&(w.preventDefault(),M=b?Ay(d,b):new FormData(d),Lc(l,{pending:!0,data:M,method:d.method,action:p},p,M))},currentTarget:d}]})}}for(var yf=0;yf<Ju.length;yf++){var vf=Ju[yf],VE=vf.toLowerCase(),UE=vf[0].toUpperCase()+vf.slice(1);qn(VE,"on"+UE)}qn(ip,"onAnimationEnd"),qn(ap,"onAnimationIteration"),qn(rp,"onAnimationStart"),qn("dblclick","onDoubleClick"),qn("focusin","onFocus"),qn("focusout","onBlur"),qn(tE,"onTransitionRun"),qn(nE,"onTransitionStart"),qn(iE,"onTransitionCancel"),qn(lp,"onTransitionEnd"),Ka("onMouseEnter",["mouseout","mouseover"]),Ka("onMouseLeave",["mouseout","mouseover"]),Ka("onPointerEnter",["pointerout","pointerover"]),Ka("onPointerLeave",["pointerout","pointerover"]),ya("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ya("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ya("onBeforeInput",["compositionend","keypress","textInput","paste"]),ya("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ya("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ya("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),HE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Dl));function ky(t,i){i=(i&4)!==0;for(var l=0;l<t.length;l++){var o=t[l],d=o.event;o=o.listeners;e:{var p=void 0;if(i)for(var b=o.length-1;0<=b;b--){var w=o[b],M=w.instance,I=w.currentTarget;if(w=w.listener,M!==p&&d.isPropagationStopped())break e;p=w,d.currentTarget=I;try{p(d)}catch(K){Ds(K)}d.currentTarget=null,p=M}else for(b=0;b<o.length;b++){if(w=o[b],M=w.instance,I=w.currentTarget,w=w.listener,M!==p&&d.isPropagationStopped())break e;p=w,d.currentTarget=I;try{p(d)}catch(K){Ds(K)}d.currentTarget=null,p=M}}}}function Re(t,i){var l=i[Fa];l===void 0&&(l=i[Fa]=new Set);var o=t+"__bubble";l.has(o)||(Ny(i,t,2,!1),l.add(o))}function xf(t,i,l){var o=0;i&&(o|=4),Ny(l,t,o,i)}var xo="_reactListening"+Math.random().toString(36).slice(2);function bf(t){if(!t[xo]){t[xo]=!0,Sm.forEach(function(l){l!=="selectionchange"&&(HE.has(l)||xf(l,!1,t),xf(l,!0,t))});var i=t.nodeType===9?t:t.ownerDocument;i===null||i[xo]||(i[xo]=!0,xf("selectionchange",!1,i))}}function Ny(t,i,l,o){switch(iv(i)){case 2:var d=mT;break;case 8:d=pT;break;default:d=Lf}l=d.bind(null,i,l,t),d=void 0,!Uu||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(d=!0),o?d!==void 0?t.addEventListener(i,l,{capture:!0,passive:d}):t.addEventListener(i,l,!0):d!==void 0?t.addEventListener(i,l,{passive:d}):t.addEventListener(i,l,!1)}function Sf(t,i,l,o,d){var p=o;if((i&1)===0&&(i&2)===0&&o!==null)e:for(;;){if(o===null)return;var b=o.tag;if(b===3||b===4){var w=o.stateNode.containerInfo;if(w===d)break;if(b===4)for(b=o.return;b!==null;){var M=b.tag;if((M===3||M===4)&&b.stateNode.containerInfo===d)return;b=b.return}for(;w!==null;){if(b=Ga(w),b===null)return;if(M=b.tag,M===5||M===6||M===26||M===27){o=p=b;continue e}w=w.parentNode}}o=o.return}Om(function(){var I=p,K=Bu(l),W=[];e:{var q=sp.get(t);if(q!==void 0){var G=js,he=t;switch(t){case"keypress":if(ks(l)===0)break e;case"keydown":case"keyup":G=Ow;break;case"focusin":he="focus",G=qu;break;case"focusout":he="blur",G=qu;break;case"beforeblur":case"afterblur":G=qu;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":G=_m;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=Sw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=_w;break;case ip:case ap:case rp:G=Tw;break;case lp:G=Vw;break;case"scroll":case"scrollend":G=xw;break;case"wheel":G=Hw;break;case"copy":case"cut":case"paste":G=Aw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=Vm;break;case"toggle":case"beforetoggle":G=Iw}var we=(i&4)!==0,$e=!we&&(t==="scroll"||t==="scrollend"),V=we?q!==null?q+"Capture":null:q;we=[];for(var L=I,P;L!==null;){var Z=L;if(P=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||P===null||V===null||(Z=el(L,V),Z!=null&&we.push(Ol(L,Z,P))),$e)break;L=L.return}0<we.length&&(q=new G(q,he,null,l,K),W.push({event:q,listeners:we}))}}if((i&7)===0){e:{if(q=t==="mouseover"||t==="pointerover",G=t==="mouseout"||t==="pointerout",q&&l!==_u&&(he=l.relatedTarget||l.fromElement)&&(Ga(he)||he[In]))break e;if((G||q)&&(q=K.window===K?K:(q=K.ownerDocument)?q.defaultView||q.parentWindow:window,G?(he=l.relatedTarget||l.toElement,G=I,he=he?Ga(he):null,he!==null&&($e=u(he),we=he.tag,he!==$e||we!==5&&we!==27&&we!==6)&&(he=null)):(G=null,he=I),G!==he)){if(we=_m,Z="onMouseLeave",V="onMouseEnter",L="mouse",(t==="pointerout"||t==="pointerover")&&(we=Vm,Z="onPointerLeave",V="onPointerEnter",L="pointer"),$e=G==null?q:Wr(G),P=he==null?q:Wr(he),q=new we(Z,L+"leave",G,l,K),q.target=$e,q.relatedTarget=P,Z=null,Ga(K)===I&&(we=new we(V,L+"enter",he,l,K),we.target=P,we.relatedTarget=$e,Z=we),$e=Z,G&&he)t:{for(we=PE,V=G,L=he,P=0,Z=V;Z;Z=we(Z))P++;Z=0;for(var be=L;be;be=we(be))Z++;for(;0<P-Z;)V=we(V),P--;for(;0<Z-P;)L=we(L),Z--;for(;P--;){if(V===L||L!==null&&V===L.alternate){we=V;break t}V=we(V),L=we(L)}we=null}else we=null;G!==null&&jy(W,q,G,we,!1),he!==null&&$e!==null&&jy(W,$e,he,we,!0)}}e:{if(q=I?Wr(I):window,G=q.nodeName&&q.nodeName.toLowerCase(),G==="select"||G==="input"&&q.type==="file")var Ue=Ym;else if(Fm(q))if(Xm)Ue=Jw;else{Ue=Zw;var ve=Qw}else G=q.nodeName,!G||G.toLowerCase()!=="input"||q.type!=="checkbox"&&q.type!=="radio"?I&&Lu(I.elementType)&&(Ue=Ym):Ue=$w;if(Ue&&(Ue=Ue(t,I))){Gm(W,Ue,l,K);break e}ve&&ve(t,q,I),t==="focusout"&&I&&q.type==="number"&&I.memoizedProps.value!=null&&zu(q,"number",q.value)}switch(ve=I?Wr(I):window,t){case"focusin":(Fm(ve)||ve.contentEditable==="true")&&(er=ve,Qu=I,ol=null);break;case"focusout":ol=Qu=er=null;break;case"mousedown":Zu=!0;break;case"contextmenu":case"mouseup":case"dragend":Zu=!1,tp(W,l,K);break;case"selectionchange":if(eE)break;case"keydown":case"keyup":tp(W,l,K)}var ke;if(Gu)e:{switch(t){case"compositionstart":var Oe="onCompositionStart";break e;case"compositionend":Oe="onCompositionEnd";break e;case"compositionupdate":Oe="onCompositionUpdate";break e}Oe=void 0}else Wa?Im(t,l)&&(Oe="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(Oe="onCompositionStart");Oe&&(Um&&l.locale!=="ko"&&(Wa||Oe!=="onCompositionStart"?Oe==="onCompositionEnd"&&Wa&&(ke=zm()):(Hi=K,Hu="value"in Hi?Hi.value:Hi.textContent,Wa=!0)),ve=bo(I,Oe),0<ve.length&&(Oe=new Bm(Oe,t,null,l,K),W.push({event:Oe,listeners:ve}),ke?Oe.data=ke:(ke=qm(l),ke!==null&&(Oe.data=ke)))),(ke=Fw?Gw(t,l):Yw(t,l))&&(Oe=bo(I,"onBeforeInput"),0<Oe.length&&(ve=new Bm("onBeforeInput","beforeinput",null,l,K),W.push({event:ve,listeners:Oe}),ve.data=ke)),BE(W,t,I,l,K)}ky(W,i)})}function Ol(t,i,l){return{instance:t,listener:i,currentTarget:l}}function bo(t,i){for(var l=i+"Capture",o=[];t!==null;){var d=t,p=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||p===null||(d=el(t,l),d!=null&&o.unshift(Ol(t,d,p)),d=el(t,i),d!=null&&o.push(Ol(t,d,p))),t.tag===3)return o;t=t.return}return[]}function PE(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function jy(t,i,l,o,d){for(var p=i._reactName,b=[];l!==null&&l!==o;){var w=l,M=w.alternate,I=w.stateNode;if(w=w.tag,M!==null&&M===o)break;w!==5&&w!==26&&w!==27||I===null||(M=I,d?(I=el(l,p),I!=null&&b.unshift(Ol(l,I,M))):d||(I=el(l,p),I!=null&&b.push(Ol(l,I,M)))),l=l.return}b.length!==0&&t.push({event:i,listeners:b})}var IE=/\r\n?/g,qE=/\u0000|\uFFFD/g;function Ry(t){return(typeof t=="string"?t:""+t).replace(IE,`
|
|
9
|
-
`).replace(qE,"")}function My(t,i){return i=Ry(i),Ry(t)===i}function Ze(t,i,l,o,d,p){switch(l){case"children":typeof o=="string"?i==="body"||i==="textarea"&&o===""||Za(t,o):(typeof o=="number"||typeof o=="bigint")&&i!=="body"&&Za(t,""+o);break;case"className":Es(t,"class",o);break;case"tabIndex":Es(t,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Es(t,l,o);break;case"style":Mm(t,o,p);break;case"data":if(i!=="object"){Es(t,"data",o);break}case"src":case"href":if(o===""&&(i!=="a"||l!=="href")){t.removeAttribute(l);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){t.removeAttribute(l);break}o=Cs(""+o),t.setAttribute(l,o);break;case"action":case"formAction":if(typeof o=="function"){t.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof p=="function"&&(l==="formAction"?(i!=="input"&&Ze(t,i,"name",d.name,d,null),Ze(t,i,"formEncType",d.formEncType,d,null),Ze(t,i,"formMethod",d.formMethod,d,null),Ze(t,i,"formTarget",d.formTarget,d,null)):(Ze(t,i,"encType",d.encType,d,null),Ze(t,i,"method",d.method,d,null),Ze(t,i,"target",d.target,d,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){t.removeAttribute(l);break}o=Cs(""+o),t.setAttribute(l,o);break;case"onClick":o!=null&&(t.onclick=gi);break;case"onScroll":o!=null&&Re("scroll",t);break;case"onScrollEnd":o!=null&&Re("scrollend",t);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(r(61));if(l=o.__html,l!=null){if(d.children!=null)throw Error(r(60));t.innerHTML=l}}break;case"multiple":t.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":t.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){t.removeAttribute("xlink:href");break}l=Cs(""+o),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(l,""+o):t.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":o===!0?t.setAttribute(l,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(l,o):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?t.setAttribute(l,o):t.removeAttribute(l);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?t.removeAttribute(l):t.setAttribute(l,o);break;case"popover":Re("beforetoggle",t),Re("toggle",t),ws(t,"popover",o);break;case"xlinkActuate":pi(t,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":pi(t,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":pi(t,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":pi(t,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":pi(t,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":pi(t,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":pi(t,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":pi(t,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":pi(t,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":ws(t,"is",o);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=yw.get(l)||l,ws(t,l,o))}}function wf(t,i,l,o,d,p){switch(l){case"style":Mm(t,o,p);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(r(61));if(l=o.__html,l!=null){if(d.children!=null)throw Error(r(60));t.innerHTML=l}}break;case"children":typeof o=="string"?Za(t,o):(typeof o=="number"||typeof o=="bigint")&&Za(t,""+o);break;case"onScroll":o!=null&&Re("scroll",t);break;case"onScrollEnd":o!=null&&Re("scrollend",t);break;case"onClick":o!=null&&(t.onclick=gi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!wm.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(d=l.endsWith("Capture"),i=l.slice(2,d?l.length-7:void 0),p=t[St]||null,p=p!=null?p[l]:null,typeof p=="function"&&t.removeEventListener(i,p,d),typeof o=="function")){typeof p!="function"&&p!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(i,o,d);break e}l in t?t[l]=o:o===!0?t.setAttribute(l,""):ws(t,l,o)}}}function Ut(t,i,l){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Re("error",t),Re("load",t);var o=!1,d=!1,p;for(p in l)if(l.hasOwnProperty(p)){var b=l[p];if(b!=null)switch(p){case"src":o=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:Ze(t,i,p,b,l,null)}}d&&Ze(t,i,"srcSet",l.srcSet,l,null),o&&Ze(t,i,"src",l.src,l,null);return;case"input":Re("invalid",t);var w=p=b=d=null,M=null,I=null;for(o in l)if(l.hasOwnProperty(o)){var K=l[o];if(K!=null)switch(o){case"name":d=K;break;case"type":b=K;break;case"checked":M=K;break;case"defaultChecked":I=K;break;case"value":p=K;break;case"defaultValue":w=K;break;case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(r(137,i));break;default:Ze(t,i,o,K,l,null)}}km(t,p,w,M,I,b,d,!1);return;case"select":Re("invalid",t),o=b=p=null;for(d in l)if(l.hasOwnProperty(d)&&(w=l[d],w!=null))switch(d){case"value":p=w;break;case"defaultValue":b=w;break;case"multiple":o=w;default:Ze(t,i,d,w,l,null)}i=p,l=b,t.multiple=!!o,i!=null?Qa(t,!!o,i,!1):l!=null&&Qa(t,!!o,l,!0);return;case"textarea":Re("invalid",t),p=d=o=null;for(b in l)if(l.hasOwnProperty(b)&&(w=l[b],w!=null))switch(b){case"value":o=w;break;case"defaultValue":d=w;break;case"children":p=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(r(91));break;default:Ze(t,i,b,w,l,null)}jm(t,o,d,p);return;case"option":for(M in l)l.hasOwnProperty(M)&&(o=l[M],o!=null)&&(M==="selected"?t.selected=o&&typeof o!="function"&&typeof o!="symbol":Ze(t,i,M,o,l,null));return;case"dialog":Re("beforetoggle",t),Re("toggle",t),Re("cancel",t),Re("close",t);break;case"iframe":case"object":Re("load",t);break;case"video":case"audio":for(o=0;o<Dl.length;o++)Re(Dl[o],t);break;case"image":Re("error",t),Re("load",t);break;case"details":Re("toggle",t);break;case"embed":case"source":case"link":Re("error",t),Re("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(I in l)if(l.hasOwnProperty(I)&&(o=l[I],o!=null))switch(I){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:Ze(t,i,I,o,l,null)}return;default:if(Lu(i)){for(K in l)l.hasOwnProperty(K)&&(o=l[K],o!==void 0&&wf(t,i,K,o,l,void 0));return}}for(w in l)l.hasOwnProperty(w)&&(o=l[w],o!=null&&Ze(t,i,w,o,l,null))}function FE(t,i,l,o){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,p=null,b=null,w=null,M=null,I=null,K=null;for(G in l){var W=l[G];if(l.hasOwnProperty(G)&&W!=null)switch(G){case"checked":break;case"value":break;case"defaultValue":M=W;default:o.hasOwnProperty(G)||Ze(t,i,G,null,o,W)}}for(var q in o){var G=o[q];if(W=l[q],o.hasOwnProperty(q)&&(G!=null||W!=null))switch(q){case"type":p=G;break;case"name":d=G;break;case"checked":I=G;break;case"defaultChecked":K=G;break;case"value":b=G;break;case"defaultValue":w=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(r(137,i));break;default:G!==W&&Ze(t,i,q,G,o,W)}}Ou(t,b,w,M,I,K,p,d);return;case"select":G=b=w=q=null;for(p in l)if(M=l[p],l.hasOwnProperty(p)&&M!=null)switch(p){case"value":break;case"multiple":G=M;default:o.hasOwnProperty(p)||Ze(t,i,p,null,o,M)}for(d in o)if(p=o[d],M=l[d],o.hasOwnProperty(d)&&(p!=null||M!=null))switch(d){case"value":q=p;break;case"defaultValue":w=p;break;case"multiple":b=p;default:p!==M&&Ze(t,i,d,p,o,M)}i=w,l=b,o=G,q!=null?Qa(t,!!l,q,!1):!!o!=!!l&&(i!=null?Qa(t,!!l,i,!0):Qa(t,!!l,l?[]:"",!1));return;case"textarea":G=q=null;for(w in l)if(d=l[w],l.hasOwnProperty(w)&&d!=null&&!o.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:Ze(t,i,w,null,o,d)}for(b in o)if(d=o[b],p=l[b],o.hasOwnProperty(b)&&(d!=null||p!=null))switch(b){case"value":q=d;break;case"defaultValue":G=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(r(91));break;default:d!==p&&Ze(t,i,b,d,o,p)}Nm(t,q,G);return;case"option":for(var he in l)q=l[he],l.hasOwnProperty(he)&&q!=null&&!o.hasOwnProperty(he)&&(he==="selected"?t.selected=!1:Ze(t,i,he,null,o,q));for(M in o)q=o[M],G=l[M],o.hasOwnProperty(M)&&q!==G&&(q!=null||G!=null)&&(M==="selected"?t.selected=q&&typeof q!="function"&&typeof q!="symbol":Ze(t,i,M,q,o,G));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var we in l)q=l[we],l.hasOwnProperty(we)&&q!=null&&!o.hasOwnProperty(we)&&Ze(t,i,we,null,o,q);for(I in o)if(q=o[I],G=l[I],o.hasOwnProperty(I)&&q!==G&&(q!=null||G!=null))switch(I){case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(r(137,i));break;default:Ze(t,i,I,q,o,G)}return;default:if(Lu(i)){for(var $e in l)q=l[$e],l.hasOwnProperty($e)&&q!==void 0&&!o.hasOwnProperty($e)&&wf(t,i,$e,void 0,o,q);for(K in o)q=o[K],G=l[K],!o.hasOwnProperty(K)||q===G||q===void 0&&G===void 0||wf(t,i,K,q,o,G);return}}for(var V in l)q=l[V],l.hasOwnProperty(V)&&q!=null&&!o.hasOwnProperty(V)&&Ze(t,i,V,null,o,q);for(W in o)q=o[W],G=l[W],!o.hasOwnProperty(W)||q===G||q==null&&G==null||Ze(t,i,W,q,o,G)}function Dy(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function GE(){if(typeof performance.getEntriesByType=="function"){for(var t=0,i=0,l=performance.getEntriesByType("resource"),o=0;o<l.length;o++){var d=l[o],p=d.transferSize,b=d.initiatorType,w=d.duration;if(p&&w&&Dy(b)){for(b=0,w=d.responseEnd,o+=1;o<l.length;o++){var M=l[o],I=M.startTime;if(I>w)break;var K=M.transferSize,W=M.initiatorType;K&&Dy(W)&&(M=M.responseEnd,b+=K*(M<w?1:(w-I)/(M-I)))}if(--o,i+=8*(p+b)/(d.duration/1e3),t++,10<t)break}}if(0<t)return i/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Ef=null,Tf=null;function So(t){return t.nodeType===9?t:t.ownerDocument}function Oy(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function zy(t,i){if(t===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&i==="foreignObject"?0:t}function Cf(t,i){return t==="textarea"||t==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Af=null;function YE(){var t=window.event;return t&&t.type==="popstate"?t===Af?!1:(Af=t,!0):(Af=null,!1)}var Ly=typeof setTimeout=="function"?setTimeout:void 0,XE=typeof clearTimeout=="function"?clearTimeout:void 0,_y=typeof Promise=="function"?Promise:void 0,KE=typeof queueMicrotask=="function"?queueMicrotask:typeof _y<"u"?function(t){return _y.resolve(null).then(t).catch(QE)}:Ly;function QE(t){setTimeout(function(){throw t})}function ia(t){return t==="head"}function By(t,i){var l=i,o=0;do{var d=l.nextSibling;if(t.removeChild(l),d&&d.nodeType===8)if(l=d.data,l==="/$"||l==="/&"){if(o===0){t.removeChild(d),kr(i);return}o--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")o++;else if(l==="html")zl(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,zl(l);for(var p=l.firstChild;p;){var b=p.nextSibling,w=p.nodeName;p[Jr]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&p.rel.toLowerCase()==="stylesheet"||l.removeChild(p),p=b}}else l==="body"&&zl(t.ownerDocument.body);l=d}while(l);kr(i)}function Vy(t,i){var l=t;t=0;do{var o=l.nextSibling;if(l.nodeType===1?i?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(i?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),o&&o.nodeType===8)if(l=o.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=o}while(l)}function kf(t){var i=t.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var l=i;switch(i=i.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":kf(l),Mu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function ZE(t,i,l,o){for(;t.nodeType===1;){var d=l;if(t.nodeName.toLowerCase()!==i.toLowerCase()){if(!o&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(o){if(!t[Jr])switch(i){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(p=t.getAttribute("rel"),p==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(p!==d.rel||t.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||t.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||t.getAttribute("title")!==(d.title==null?null:d.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(p=t.getAttribute("src"),(p!==(d.src==null?null:d.src)||t.getAttribute("type")!==(d.type==null?null:d.type)||t.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&p&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(i==="input"&&t.type==="hidden"){var p=d.name==null?null:""+d.name;if(d.type==="hidden"&&t.getAttribute("name")===p)return t}else return t;if(t=On(t.nextSibling),t===null)break}return null}function $E(t,i,l){if(i==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=On(t.nextSibling),t===null))return null;return t}function Uy(t,i){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=On(t.nextSibling),t===null))return null;return t}function Nf(t){return t.data==="$?"||t.data==="$~"}function jf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function JE(t,i){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=i;else if(t.data!=="$?"||l.readyState!=="loading")i();else{var o=function(){i(),l.removeEventListener("DOMContentLoaded",o)};l.addEventListener("DOMContentLoaded",o),t._reactRetry=o}}function On(t){for(;t!=null;t=t.nextSibling){var i=t.nodeType;if(i===1||i===3)break;if(i===8){if(i=t.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return t}var Rf=null;function Hy(t){t=t.nextSibling;for(var i=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(i===0)return On(t.nextSibling);i--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||i++}t=t.nextSibling}return null}function Py(t){t=t.previousSibling;for(var i=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(i===0)return t;i--}else l!=="/$"&&l!=="/&"||i++}t=t.previousSibling}return null}function Iy(t,i,l){switch(i=So(l),t){case"html":if(t=i.documentElement,!t)throw Error(r(452));return t;case"head":if(t=i.head,!t)throw Error(r(453));return t;case"body":if(t=i.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function zl(t){for(var i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Mu(t)}var zn=new Map,qy=new Set;function wo(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Di=$.d;$.d={f:WE,r:eT,D:tT,C:nT,L:iT,m:aT,X:lT,S:rT,M:sT};function WE(){var t=Di.f(),i=ho();return t||i}function eT(t){var i=Ya(t);i!==null&&i.tag===5&&i.type==="form"?lg(i):Di.r(t)}var Tr=typeof document>"u"?null:document;function Fy(t,i,l){var o=Tr;if(o&&typeof i=="string"&&i){var d=An(i);d='link[rel="'+t+'"][href="'+d+'"]',typeof l=="string"&&(d+='[crossorigin="'+l+'"]'),qy.has(d)||(qy.add(d),t={rel:t,crossOrigin:l,href:i},o.querySelector(d)===null&&(i=o.createElement("link"),Ut(i,"link",t),Mt(i),o.head.appendChild(i)))}}function tT(t){Di.D(t),Fy("dns-prefetch",t,null)}function nT(t,i){Di.C(t,i),Fy("preconnect",t,i)}function iT(t,i,l){Di.L(t,i,l);var o=Tr;if(o&&t&&i){var d='link[rel="preload"][as="'+An(i)+'"]';i==="image"&&l&&l.imageSrcSet?(d+='[imagesrcset="'+An(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(d+='[imagesizes="'+An(l.imageSizes)+'"]')):d+='[href="'+An(t)+'"]';var p=d;switch(i){case"style":p=Cr(t);break;case"script":p=Ar(t)}zn.has(p)||(t=g({rel:"preload",href:i==="image"&&l&&l.imageSrcSet?void 0:t,as:i},l),zn.set(p,t),o.querySelector(d)!==null||i==="style"&&o.querySelector(Ll(p))||i==="script"&&o.querySelector(_l(p))||(i=o.createElement("link"),Ut(i,"link",t),Mt(i),o.head.appendChild(i)))}}function aT(t,i){Di.m(t,i);var l=Tr;if(l&&t){var o=i&&typeof i.as=="string"?i.as:"script",d='link[rel="modulepreload"][as="'+An(o)+'"][href="'+An(t)+'"]',p=d;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=Ar(t)}if(!zn.has(p)&&(t=g({rel:"modulepreload",href:t},i),zn.set(p,t),l.querySelector(d)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(_l(p)))return}o=l.createElement("link"),Ut(o,"link",t),Mt(o),l.head.appendChild(o)}}}function rT(t,i,l){Di.S(t,i,l);var o=Tr;if(o&&t){var d=Xa(o).hoistableStyles,p=Cr(t);i=i||"default";var b=d.get(p);if(!b){var w={loading:0,preload:null};if(b=o.querySelector(Ll(p)))w.loading=5;else{t=g({rel:"stylesheet",href:t,"data-precedence":i},l),(l=zn.get(p))&&Mf(t,l);var M=b=o.createElement("link");Mt(M),Ut(M,"link",t),M._p=new Promise(function(I,K){M.onload=I,M.onerror=K}),M.addEventListener("load",function(){w.loading|=1}),M.addEventListener("error",function(){w.loading|=2}),w.loading|=4,Eo(b,i,o)}b={type:"stylesheet",instance:b,count:1,state:w},d.set(p,b)}}}function lT(t,i){Di.X(t,i);var l=Tr;if(l&&t){var o=Xa(l).hoistableScripts,d=Ar(t),p=o.get(d);p||(p=l.querySelector(_l(d)),p||(t=g({src:t,async:!0},i),(i=zn.get(d))&&Df(t,i),p=l.createElement("script"),Mt(p),Ut(p,"link",t),l.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},o.set(d,p))}}function sT(t,i){Di.M(t,i);var l=Tr;if(l&&t){var o=Xa(l).hoistableScripts,d=Ar(t),p=o.get(d);p||(p=l.querySelector(_l(d)),p||(t=g({src:t,async:!0,type:"module"},i),(i=zn.get(d))&&Df(t,i),p=l.createElement("script"),Mt(p),Ut(p,"link",t),l.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},o.set(d,p))}}function Gy(t,i,l,o){var d=(d=ge.current)?wo(d):null;if(!d)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(i=Cr(l.href),l=Xa(d).hoistableStyles,o=l.get(i),o||(o={type:"style",instance:null,count:0,state:null},l.set(i,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=Cr(l.href);var p=Xa(d).hoistableStyles,b=p.get(t);if(b||(d=d.ownerDocument||d,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(t,b),(p=d.querySelector(Ll(t)))&&!p._p&&(b.instance=p,b.state.loading=5),zn.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},zn.set(t,l),p||oT(d,t,l,b.state))),i&&o===null)throw Error(r(528,""));return b}if(i&&o!==null)throw Error(r(529,""));return null;case"script":return i=l.async,l=l.src,typeof l=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=Ar(l),l=Xa(d).hoistableScripts,o=l.get(i),o||(o={type:"script",instance:null,count:0,state:null},l.set(i,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function Cr(t){return'href="'+An(t)+'"'}function Ll(t){return'link[rel="stylesheet"]['+t+"]"}function Yy(t){return g({},t,{"data-precedence":t.precedence,precedence:null})}function oT(t,i,l,o){t.querySelector('link[rel="preload"][as="style"]['+i+"]")?o.loading=1:(i=t.createElement("link"),o.preload=i,i.addEventListener("load",function(){return o.loading|=1}),i.addEventListener("error",function(){return o.loading|=2}),Ut(i,"link",l),Mt(i),t.head.appendChild(i))}function Ar(t){return'[src="'+An(t)+'"]'}function _l(t){return"script[async]"+t}function Xy(t,i,l){if(i.count++,i.instance===null)switch(i.type){case"style":var o=t.querySelector('style[data-href~="'+An(l.href)+'"]');if(o)return i.instance=o,Mt(o),o;var d=g({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return o=(t.ownerDocument||t).createElement("style"),Mt(o),Ut(o,"style",d),Eo(o,l.precedence,t),i.instance=o;case"stylesheet":d=Cr(l.href);var p=t.querySelector(Ll(d));if(p)return i.state.loading|=4,i.instance=p,Mt(p),p;o=Yy(l),(d=zn.get(d))&&Mf(o,d),p=(t.ownerDocument||t).createElement("link"),Mt(p);var b=p;return b._p=new Promise(function(w,M){b.onload=w,b.onerror=M}),Ut(p,"link",o),i.state.loading|=4,Eo(p,l.precedence,t),i.instance=p;case"script":return p=Ar(l.src),(d=t.querySelector(_l(p)))?(i.instance=d,Mt(d),d):(o=l,(d=zn.get(p))&&(o=g({},l),Df(o,d)),t=t.ownerDocument||t,d=t.createElement("script"),Mt(d),Ut(d,"link",o),t.head.appendChild(d),i.instance=d);case"void":return null;default:throw Error(r(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(o=i.instance,i.state.loading|=4,Eo(o,l.precedence,t));return i.instance}function Eo(t,i,l){for(var o=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=o.length?o[o.length-1]:null,p=d,b=0;b<o.length;b++){var w=o[b];if(w.dataset.precedence===i)p=w;else if(p!==d)break}p?p.parentNode.insertBefore(t,p.nextSibling):(i=l.nodeType===9?l.head:l,i.insertBefore(t,i.firstChild))}function Mf(t,i){t.crossOrigin==null&&(t.crossOrigin=i.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=i.referrerPolicy),t.title==null&&(t.title=i.title)}function Df(t,i){t.crossOrigin==null&&(t.crossOrigin=i.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=i.referrerPolicy),t.integrity==null&&(t.integrity=i.integrity)}var To=null;function Ky(t,i,l){if(To===null){var o=new Map,d=To=new Map;d.set(l,o)}else d=To,o=d.get(l),o||(o=new Map,d.set(l,o));if(o.has(t))return o;for(o.set(t,null),l=l.getElementsByTagName(t),d=0;d<l.length;d++){var p=l[d];if(!(p[Jr]||p[dt]||t==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var b=p.getAttribute(i)||"";b=t+b;var w=o.get(b);w?w.push(p):o.set(b,[p])}}return o}function Qy(t,i,l){t=t.ownerDocument||t,t.head.insertBefore(l,i==="title"?t.querySelector("head > title"):null)}function uT(t,i,l){if(l===1||i.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;return i.rel==="stylesheet"?(t=i.disabled,typeof i.precedence=="string"&&t==null):!0;case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function Zy(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function cT(t,i,l,o){if(l.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var d=Cr(o.href),p=i.querySelector(Ll(d));if(p){i=p._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(t.count++,t=Co.bind(t),i.then(t,t)),l.state.loading|=4,l.instance=p,Mt(p);return}p=i.ownerDocument||i,o=Yy(o),(d=zn.get(d))&&Mf(o,d),p=p.createElement("link"),Mt(p);var b=p;b._p=new Promise(function(w,M){b.onload=w,b.onerror=M}),Ut(p,"link",o),l.instance=p}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,i),(i=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=Co.bind(t),i.addEventListener("load",l),i.addEventListener("error",l))}}var Of=0;function fT(t,i){return t.stylesheets&&t.count===0&&ko(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var o=setTimeout(function(){if(t.stylesheets&&ko(t,t.stylesheets),t.unsuspend){var p=t.unsuspend;t.unsuspend=null,p()}},6e4+i);0<t.imgBytes&&Of===0&&(Of=62500*GE());var d=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&ko(t,t.stylesheets),t.unsuspend)){var p=t.unsuspend;t.unsuspend=null,p()}},(t.imgBytes>Of?50:800)+i);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(o),clearTimeout(d)}}:null}function Co(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ko(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Ao=null;function ko(t,i){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ao=new Map,i.forEach(dT,t),Ao=null,Co.call(t))}function dT(t,i){if(!(i.state.loading&4)){var l=Ao.get(t);if(l)var o=l.get(null);else{l=new Map,Ao.set(t,l);for(var d=t.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<d.length;p++){var b=d[p];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(l.set(b.dataset.precedence,b),o=b)}o&&l.set(null,o)}d=i.instance,b=d.getAttribute("data-precedence"),p=l.get(b)||o,p===o&&l.set(null,d),l.set(b,d),this.count++,o=Co.bind(this),d.addEventListener("load",o),d.addEventListener("error",o),p?p.parentNode.insertBefore(d,p.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(d,t.firstChild)),i.state.loading|=4}}var Bl={$$typeof:R,Provider:null,Consumer:null,_currentValue:ue,_currentValue2:ue,_threadCount:0};function hT(t,i,l,o,d,p,b,w,M){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Qt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qt(0),this.hiddenUpdates=Qt(null),this.identifierPrefix=o,this.onUncaughtError=d,this.onCaughtError=p,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=M,this.incompleteTransitions=new Map}function $y(t,i,l,o,d,p,b,w,M,I,K,W){return t=new hT(t,i,l,b,M,I,K,W,w),i=1,p===!0&&(i|=24),p=mn(3,null,null,i),t.current=p,p.stateNode=t,i=fc(),i.refCount++,t.pooledCache=i,i.refCount++,p.memoizedState={element:o,isDehydrated:l,cache:i},pc(p),t}function Jy(t){return t?(t=ir,t):ir}function Wy(t,i,l,o,d,p){d=Jy(d),o.context===null?o.context=d:o.pendingContext=d,o=Yi(i),o.payload={element:l},p=p===void 0?null:p,p!==null&&(o.callback=p),l=Xi(t,o,i),l!==null&&(sn(l,t,i),pl(l,t,i))}function ev(t,i){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<i?l:i}}function zf(t,i){ev(t,i),(t=t.alternate)&&ev(t,i)}function tv(t){if(t.tag===13||t.tag===31){var i=Sa(t,67108864);i!==null&&sn(i,t,67108864),zf(t,67108864)}}function nv(t){if(t.tag===13||t.tag===31){var i=xn();i=tt(i);var l=Sa(t,i);l!==null&&sn(l,t,i),zf(t,i)}}var No=!0;function mT(t,i,l,o){var d=H.T;H.T=null;var p=$.p;try{$.p=2,Lf(t,i,l,o)}finally{$.p=p,H.T=d}}function pT(t,i,l,o){var d=H.T;H.T=null;var p=$.p;try{$.p=8,Lf(t,i,l,o)}finally{$.p=p,H.T=d}}function Lf(t,i,l,o){if(No){var d=_f(o);if(d===null)Sf(t,i,o,jo,l),av(t,o);else if(yT(d,t,i,l,o))o.stopPropagation();else if(av(t,o),i&4&&-1<gT.indexOf(t)){for(;d!==null;){var p=Ya(d);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var b=Ke(p.pendingLanes);if(b!==0){var w=p;for(w.pendingLanes|=2,w.entangledLanes|=2;b;){var M=1<<31-qe(b);w.entanglements[1]|=M,b&=~M}si(p),(Pe&6)===0&&(co=at()+500,Ml(0))}}break;case 31:case 13:w=Sa(p,2),w!==null&&sn(w,p,2),ho(),zf(p,2)}if(p=_f(o),p===null&&Sf(t,i,o,jo,l),p===d)break;d=p}d!==null&&o.stopPropagation()}else Sf(t,i,o,null,l)}}function _f(t){return t=Bu(t),Bf(t)}var jo=null;function Bf(t){if(jo=null,t=Ga(t),t!==null){var i=u(t);if(i===null)t=null;else{var l=i.tag;if(l===13){if(t=c(i),t!==null)return t;t=null}else if(l===31){if(t=f(i),t!==null)return t;t=null}else if(l===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;t=null}else i!==t&&(t=null)}}return jo=t,null}function iv(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(F()){case _:return 2;case J:return 8;case ye:case Te:return 32;case Le:return 268435456;default:return 32}default:return 32}}var Vf=!1,aa=null,ra=null,la=null,Vl=new Map,Ul=new Map,sa=[],gT="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function av(t,i){switch(t){case"focusin":case"focusout":aa=null;break;case"dragenter":case"dragleave":ra=null;break;case"mouseover":case"mouseout":la=null;break;case"pointerover":case"pointerout":Vl.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ul.delete(i.pointerId)}}function Hl(t,i,l,o,d,p){return t===null||t.nativeEvent!==p?(t={blockedOn:i,domEventName:l,eventSystemFlags:o,nativeEvent:p,targetContainers:[d]},i!==null&&(i=Ya(i),i!==null&&tv(i)),t):(t.eventSystemFlags|=o,i=t.targetContainers,d!==null&&i.indexOf(d)===-1&&i.push(d),t)}function yT(t,i,l,o,d){switch(i){case"focusin":return aa=Hl(aa,t,i,l,o,d),!0;case"dragenter":return ra=Hl(ra,t,i,l,o,d),!0;case"mouseover":return la=Hl(la,t,i,l,o,d),!0;case"pointerover":var p=d.pointerId;return Vl.set(p,Hl(Vl.get(p)||null,t,i,l,o,d)),!0;case"gotpointercapture":return p=d.pointerId,Ul.set(p,Hl(Ul.get(p)||null,t,i,l,o,d)),!0}return!1}function rv(t){var i=Ga(t.target);if(i!==null){var l=u(i);if(l!==null){if(i=l.tag,i===13){if(i=c(l),i!==null){t.blockedOn=i,ii(t.priority,function(){nv(l)});return}}else if(i===31){if(i=f(l),i!==null){t.blockedOn=i,ii(t.priority,function(){nv(l)});return}}else if(i===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Ro(t){if(t.blockedOn!==null)return!1;for(var i=t.targetContainers;0<i.length;){var l=_f(t.nativeEvent);if(l===null){l=t.nativeEvent;var o=new l.constructor(l.type,l);_u=o,l.target.dispatchEvent(o),_u=null}else return i=Ya(l),i!==null&&tv(i),t.blockedOn=l,!1;i.shift()}return!0}function lv(t,i,l){Ro(t)&&l.delete(i)}function vT(){Vf=!1,aa!==null&&Ro(aa)&&(aa=null),ra!==null&&Ro(ra)&&(ra=null),la!==null&&Ro(la)&&(la=null),Vl.forEach(lv),Ul.forEach(lv)}function Mo(t,i){t.blockedOn===i&&(t.blockedOn=null,Vf||(Vf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,vT)))}var Do=null;function sv(t){Do!==t&&(Do=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Do===t&&(Do=null);for(var i=0;i<t.length;i+=3){var l=t[i],o=t[i+1],d=t[i+2];if(typeof o!="function"){if(Bf(o||l)===null)continue;break}var p=Ya(l);p!==null&&(t.splice(i,3),i-=3,Lc(p,{pending:!0,data:d,method:l.method,action:o},o,d))}}))}function kr(t){function i(M){return Mo(M,t)}aa!==null&&Mo(aa,t),ra!==null&&Mo(ra,t),la!==null&&Mo(la,t),Vl.forEach(i),Ul.forEach(i);for(var l=0;l<sa.length;l++){var o=sa[l];o.blockedOn===t&&(o.blockedOn=null)}for(;0<sa.length&&(l=sa[0],l.blockedOn===null);)rv(l),l.blockedOn===null&&sa.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(o=0;o<l.length;o+=3){var d=l[o],p=l[o+1],b=d[St]||null;if(typeof p=="function")b||sv(l);else if(b){var w=null;if(p&&p.hasAttribute("formAction")){if(d=p,b=p[St]||null)w=b.formAction;else if(Bf(d)!==null)continue}else w=b.action;typeof w=="function"?l[o+1]=w:(l.splice(o,3),o-=3),sv(l)}}}function ov(){function t(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(b){return d=b})},focusReset:"manual",scroll:"manual"})}function i(){d!==null&&(d(),d=null),o||setTimeout(l,20)}function l(){if(!o&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,d=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(l,100),function(){o=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),d!==null&&(d(),d=null)}}}function Uf(t){this._internalRoot=t}Oo.prototype.render=Uf.prototype.render=function(t){var i=this._internalRoot;if(i===null)throw Error(r(409));var l=i.current,o=xn();Wy(l,o,t,i,null,null)},Oo.prototype.unmount=Uf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var i=t.containerInfo;Wy(t.current,2,null,t,null,null),ho(),i[In]=null}};function Oo(t){this._internalRoot=t}Oo.prototype.unstable_scheduleHydration=function(t){if(t){var i=ni();t={blockedOn:null,target:t,priority:i};for(var l=0;l<sa.length&&i!==0&&i<sa[l].priority;l++);sa.splice(l,0,t),l===0&&rv(t)}};var uv=n.version;if(uv!=="19.2.4")throw Error(r(527,uv,"19.2.4"));$.findDOMNode=function(t){var i=t._reactInternals;if(i===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=h(i),t=t!==null?v(t):null,t=t===null?null:t.stateNode,t};var xT={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var zo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zo.isDisabled&&zo.supportsFiber)try{zt=zo.inject(xT),vt=zo}catch{}}return Il.createRoot=function(t,i){if(!s(t))throw Error(r(299));var l=!1,o="",d=gg,p=yg,b=vg;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(o=i.identifierPrefix),i.onUncaughtError!==void 0&&(d=i.onUncaughtError),i.onCaughtError!==void 0&&(p=i.onCaughtError),i.onRecoverableError!==void 0&&(b=i.onRecoverableError)),i=$y(t,1,!1,null,null,l,o,null,d,p,b,ov),t[In]=i.current,bf(t),new Uf(i)},Il.hydrateRoot=function(t,i,l){if(!s(t))throw Error(r(299));var o=!1,d="",p=gg,b=yg,w=vg,M=null;return l!=null&&(l.unstable_strictMode===!0&&(o=!0),l.identifierPrefix!==void 0&&(d=l.identifierPrefix),l.onUncaughtError!==void 0&&(p=l.onUncaughtError),l.onCaughtError!==void 0&&(b=l.onCaughtError),l.onRecoverableError!==void 0&&(w=l.onRecoverableError),l.formState!==void 0&&(M=l.formState)),i=$y(t,1,!0,i,l??null,o,d,M,p,b,w,ov),i.context=Jy(null),l=i.current,o=xn(),o=tt(o),d=Yi(o),d.callback=null,Xi(l,d,o),l=o,i.current.lanes=l,Ui(i,l),si(i),t[In]=i.current,bf(t),new Oo(i)},Il.version="19.2.4",Il}var xv;function jT(){if(xv)return If.exports;xv=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),If.exports=NT(),If.exports}var RT=jT();const MT=yu(RT);var bv="popstate";function Sv(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function DT(e={}){function n(r,s){let u=s.state?.masked,{pathname:c,search:f,hash:m}=u||r.location;return Rd("",{pathname:c,search:f,hash:m},s.state&&s.state.usr||null,s.state&&s.state.key||"default",u?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function a(r,s){return typeof s=="string"?s:as(s)}return zT(n,a,null,e)}function ot(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function Jn(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function OT(){return Math.random().toString(36).substring(2,10)}function wv(e,n){return{usr:e.state,key:e.key,idx:n,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Rd(e,n,a=null,r,s){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof n=="string"?Fr(n):n,state:a,key:n&&n.key||r||OT(),unstable_mask:s}}function as({pathname:e="/",search:n="",hash:a=""}){return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),a&&a!=="#"&&(e+=a.charAt(0)==="#"?a:"#"+a),e}function Fr(e){let n={};if(e){let a=e.indexOf("#");a>=0&&(n.hash=e.substring(a),e=e.substring(0,a));let r=e.indexOf("?");r>=0&&(n.search=e.substring(r),e=e.substring(0,r)),e&&(n.pathname=e)}return n}function zT(e,n,a,r={}){let{window:s=document.defaultView,v5Compat:u=!1}=r,c=s.history,f="POP",m=null,h=v();h==null&&(h=0,c.replaceState({...c.state,idx:h},""));function v(){return(c.state||{idx:null}).idx}function g(){f="POP";let N=v(),k=N==null?null:N-h;h=N,m&&m({action:f,location:A.location,delta:k})}function x(N,k){f="PUSH";let O=Sv(N)?N:Rd(A.location,N,k);h=v()+1;let R=wv(O,h),Y=A.createHref(O.unstable_mask||O);try{c.pushState(R,"",Y)}catch(U){if(U instanceof DOMException&&U.name==="DataCloneError")throw U;s.location.assign(Y)}u&&m&&m({action:f,location:A.location,delta:1})}function S(N,k){f="REPLACE";let O=Sv(N)?N:Rd(A.location,N,k);h=v();let R=wv(O,h),Y=A.createHref(O.unstable_mask||O);c.replaceState(R,"",Y),u&&m&&m({action:f,location:A.location,delta:0})}function E(N){return LT(N)}let A={get action(){return f},get location(){return e(s,c)},listen(N){if(m)throw new Error("A history only accepts one active listener");return s.addEventListener(bv,g),m=N,()=>{s.removeEventListener(bv,g),m=null}},createHref(N){return n(s,N)},createURL:E,encodeLocation(N){let k=E(N);return{pathname:k.pathname,search:k.search,hash:k.hash}},push:x,replace:S,go(N){return c.go(N)}};return A}function LT(e,n=!1){let a="http://localhost";typeof window<"u"&&(a=window.location.origin!=="null"?window.location.origin:window.location.href),ot(a,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:as(e);return r=r.replace(/ $/,"%20"),!n&&r.startsWith("//")&&(r=a+r),new URL(r,a)}function Fb(e,n,a="/"){return _T(e,n,a,!1)}function _T(e,n,a,r){let s=typeof n=="string"?Fr(n):n,u=zi(s.pathname||"/",a);if(u==null)return null;let c=Gb(e);BT(c);let f=null;for(let m=0;f==null&&m<c.length;++m){let h=KT(u);f=YT(c[m],h,r)}return f}function Gb(e,n=[],a=[],r="",s=!1){let u=(c,f,m=s,h)=>{let v={relativePath:h===void 0?c.path||"":h,caseSensitive:c.caseSensitive===!0,childrenIndex:f,route:c};if(v.relativePath.startsWith("/")){if(!v.relativePath.startsWith(r)&&m)return;ot(v.relativePath.startsWith(r),`Absolute route path "${v.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(r.length)}let g=ci([r,v.relativePath]),x=a.concat(v);c.children&&c.children.length>0&&(ot(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),Gb(c.children,n,x,g,m)),!(c.path==null&&!c.index)&&n.push({path:g,score:FT(g,c.index),routesMeta:x})};return e.forEach((c,f)=>{if(c.path===""||!c.path?.includes("?"))u(c,f);else for(let m of Yb(c.path))u(c,f,!0,m)}),n}function Yb(e){let n=e.split("/");if(n.length===0)return[];let[a,...r]=n,s=a.endsWith("?"),u=a.replace(/\?$/,"");if(r.length===0)return s?[u,""]:[u];let c=Yb(r.join("/")),f=[];return f.push(...c.map(m=>m===""?u:[u,m].join("/"))),s&&f.push(...c),f.map(m=>e.startsWith("/")&&m===""?"/":m)}function BT(e){e.sort((n,a)=>n.score!==a.score?a.score-n.score:GT(n.routesMeta.map(r=>r.childrenIndex),a.routesMeta.map(r=>r.childrenIndex)))}var VT=/^:[\w-]+$/,UT=3,HT=2,PT=1,IT=10,qT=-2,Ev=e=>e==="*";function FT(e,n){let a=e.split("/"),r=a.length;return a.some(Ev)&&(r+=qT),n&&(r+=HT),a.filter(s=>!Ev(s)).reduce((s,u)=>s+(VT.test(u)?UT:u===""?PT:IT),r)}function GT(e,n){return e.length===n.length&&e.slice(0,-1).every((r,s)=>r===n[s])?e[e.length-1]-n[n.length-1]:0}function YT(e,n,a=!1){let{routesMeta:r}=e,s={},u="/",c=[];for(let f=0;f<r.length;++f){let m=r[f],h=f===r.length-1,v=u==="/"?n:n.slice(u.length)||"/",g=iu({path:m.relativePath,caseSensitive:m.caseSensitive,end:h},v),x=m.route;if(!g&&h&&a&&!r[r.length-1].route.index&&(g=iu({path:m.relativePath,caseSensitive:m.caseSensitive,end:!1},v)),!g)return null;Object.assign(s,g.params),c.push({params:s,pathname:ci([u,g.pathname]),pathnameBase:JT(ci([u,g.pathnameBase])),route:x}),g.pathnameBase!=="/"&&(u=ci([u,g.pathnameBase]))}return c}function iu(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[a,r]=XT(e.path,e.caseSensitive,e.end),s=n.match(a);if(!s)return null;let u=s[0],c=u.replace(/(.)\/+$/,"$1"),f=s.slice(1);return{params:r.reduce((h,{paramName:v,isOptional:g},x)=>{if(v==="*"){let E=f[x]||"";c=u.slice(0,u.length-E.length).replace(/(.)\/+$/,"$1")}const S=f[x];return g&&!S?h[v]=void 0:h[v]=(S||"").replace(/%2F/g,"/"),h},{}),pathname:u,pathnameBase:c,pattern:e}}function XT(e,n=!1,a=!0){Jn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,f,m,h,v)=>{if(r.push({paramName:f,isOptional:m!=null}),m){let g=v.charAt(h+c.length);return g&&g!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,n?void 0:"i"),r]}function KT(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return Jn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),e}}function zi(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let a=n.endsWith("/")?n.length-1:n.length,r=e.charAt(a);return r&&r!=="/"?null:e.slice(a)||"/"}var QT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function ZT(e,n="/"){let{pathname:a,search:r="",hash:s=""}=typeof e=="string"?Fr(e):e,u;return a?(a=a.replace(/\/\/+/g,"/"),a.startsWith("/")?u=Tv(a.substring(1),"/"):u=Tv(a,n)):u=n,{pathname:u,search:WT(r),hash:eC(s)}}function Tv(e,n){let a=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?a.length>1&&a.pop():s!=="."&&a.push(s)}),a.length>1?a.join("/"):"/"}function Yf(e,n,a,r){return`Cannot include a '${e}' character in a manually specified \`to.${n}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${a}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function $T(e){return e.filter((n,a)=>a===0||n.route.path&&n.route.path.length>0)}function yh(e){let n=$T(e);return n.map((a,r)=>r===n.length-1?a.pathname:a.pathnameBase)}function vu(e,n,a,r=!1){let s;typeof e=="string"?s=Fr(e):(s={...e},ot(!s.pathname||!s.pathname.includes("?"),Yf("?","pathname","search",s)),ot(!s.pathname||!s.pathname.includes("#"),Yf("#","pathname","hash",s)),ot(!s.search||!s.search.includes("#"),Yf("#","search","hash",s)));let u=e===""||s.pathname==="",c=u?"/":s.pathname,f;if(c==null)f=a;else{let g=n.length-1;if(!r&&c.startsWith("..")){let x=c.split("/");for(;x[0]==="..";)x.shift(),g-=1;s.pathname=x.join("/")}f=g>=0?n[g]:"/"}let m=ZT(s,f),h=c&&c!=="/"&&c.endsWith("/"),v=(u||c===".")&&a.endsWith("/");return!m.pathname.endsWith("/")&&(h||v)&&(m.pathname+="/"),m}var ci=e=>e.join("/").replace(/\/\/+/g,"/"),JT=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),WT=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,eC=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,tC=class{constructor(e,n,a,r=!1){this.status=e,this.statusText=n||"",this.internal=r,a instanceof Error?(this.data=a.toString(),this.error=a):this.data=a}};function nC(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function iC(e){return e.map(n=>n.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Xb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Kb(e,n){let a=e;if(typeof a!="string"||!QT.test(a))return{absoluteURL:void 0,isExternal:!1,to:a};let r=a,s=!1;if(Xb)try{let u=new URL(window.location.href),c=a.startsWith("//")?new URL(u.protocol+a):new URL(a),f=zi(c.pathname,n);c.origin===u.origin&&f!=null?a=f+c.search+c.hash:s=!0}catch{Jn(!1,`<Link to="${a}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:s,to:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Qb=["POST","PUT","PATCH","DELETE"];new Set(Qb);var aC=["GET",...Qb];new Set(aC);var Gr=T.createContext(null);Gr.displayName="DataRouter";var xu=T.createContext(null);xu.displayName="DataRouterState";var rC=T.createContext(!1),Zb=T.createContext({isTransitioning:!1});Zb.displayName="ViewTransition";var lC=T.createContext(new Map);lC.displayName="Fetchers";var sC=T.createContext(null);sC.displayName="Await";var wn=T.createContext(null);wn.displayName="Navigation";var hs=T.createContext(null);hs.displayName="Location";var hi=T.createContext({outlet:null,matches:[],isDataRoute:!1});hi.displayName="Route";var vh=T.createContext(null);vh.displayName="RouteError";var $b="REACT_ROUTER_ERROR",oC="REDIRECT",uC="ROUTE_ERROR_RESPONSE";function cC(e){if(e.startsWith(`${$b}:${oC}:{`))try{let n=JSON.parse(e.slice(28));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.location=="string"&&typeof n.reloadDocument=="boolean"&&typeof n.replace=="boolean")return n}catch{}}function fC(e){if(e.startsWith(`${$b}:${uC}:{`))try{let n=JSON.parse(e.slice(40));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string")return new tC(n.status,n.statusText,n.data)}catch{}}function dC(e,{relative:n}={}){ot(Yr(),"useHref() may be used only in the context of a <Router> component.");let{basename:a,navigator:r}=T.useContext(wn),{hash:s,pathname:u,search:c}=ms(e,{relative:n}),f=u;return a!=="/"&&(f=u==="/"?a:ci([a,u])),r.createHref({pathname:f,search:c,hash:s})}function Yr(){return T.useContext(hs)!=null}function _i(){return ot(Yr(),"useLocation() may be used only in the context of a <Router> component."),T.useContext(hs).location}var Jb="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Wb(e){T.useContext(wn).static||T.useLayoutEffect(e)}function e0(){let{isDataRoute:e}=T.useContext(hi);return e?CC():hC()}function hC(){ot(Yr(),"useNavigate() may be used only in the context of a <Router> component.");let e=T.useContext(Gr),{basename:n,navigator:a}=T.useContext(wn),{matches:r}=T.useContext(hi),{pathname:s}=_i(),u=JSON.stringify(yh(r)),c=T.useRef(!1);return Wb(()=>{c.current=!0}),T.useCallback((m,h={})=>{if(Jn(c.current,Jb),!c.current)return;if(typeof m=="number"){a.go(m);return}let v=vu(m,JSON.parse(u),s,h.relative==="path");e==null&&n!=="/"&&(v.pathname=v.pathname==="/"?n:ci([n,v.pathname])),(h.replace?a.replace:a.push)(v,h.state,h)},[n,a,u,s,e])}T.createContext(null);function ms(e,{relative:n}={}){let{matches:a}=T.useContext(hi),{pathname:r}=_i(),s=JSON.stringify(yh(a));return T.useMemo(()=>vu(e,JSON.parse(s),r,n==="path"),[e,s,r,n])}function mC(e,n){return t0(e,n)}function t0(e,n,a){ot(Yr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=T.useContext(wn),{matches:s}=T.useContext(hi),u=s[s.length-1],c=u?u.params:{},f=u?u.pathname:"/",m=u?u.pathnameBase:"/",h=u&&u.route;{let N=h&&h.path||"";i0(f,!h||N.endsWith("*")||N.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${N}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
10
|
-
|
|
11
|
-
Please change the parent <Route path="${N}"> to <Route path="${N==="/"?"*":`${N}/*`}">.`)}let v=_i(),g;if(n){let N=typeof n=="string"?Fr(n):n;ot(m==="/"||N.pathname?.startsWith(m),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${N.pathname}" was given in the \`location\` prop.`),g=N}else g=v;let x=g.pathname||"/",S=x;if(m!=="/"){let N=m.replace(/^\//,"").split("/");S="/"+x.replace(/^\//,"").split("/").slice(N.length).join("/")}let E=Fb(e,{pathname:S});Jn(h||E!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),Jn(E==null||E[E.length-1].route.element!==void 0||E[E.length-1].route.Component!==void 0||E[E.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let A=xC(E&&E.map(N=>Object.assign({},N,{params:Object.assign({},c,N.params),pathname:ci([m,r.encodeLocation?r.encodeLocation(N.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:N.pathname]),pathnameBase:N.pathnameBase==="/"?m:ci([m,r.encodeLocation?r.encodeLocation(N.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:N.pathnameBase])})),s,a);return n&&A?T.createElement(hs.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...g},navigationType:"POP"}},A):A}function pC(){let e=TC(),n=nC(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),a=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:r},u={padding:"2px 4px",backgroundColor:r},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=T.createElement(T.Fragment,null,T.createElement("p",null,"💿 Hey developer 👋"),T.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",T.createElement("code",{style:u},"ErrorBoundary")," or"," ",T.createElement("code",{style:u},"errorElement")," prop on your route.")),T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},n),a?T.createElement("pre",{style:s},a):null,c)}var gC=T.createElement(pC,null),n0=class extends T.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){this.props.onError?this.props.onError(e,n):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const a=fC(e.digest);a&&(e=a)}let n=e!==void 0?T.createElement(hi.Provider,{value:this.props.routeContext},T.createElement(vh.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?T.createElement(yC,{error:e},n):n}};n0.contextType=rC;var Xf=new WeakMap;function yC({children:e,error:n}){let{basename:a}=T.useContext(wn);if(typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){let r=cC(n.digest);if(r){let s=Xf.get(n);if(s)throw s;let u=Kb(r.location,a);if(Xb&&!Xf.get(n))if(u.isExternal||r.reloadDocument)window.location.href=u.absoluteURL||u.to;else{const c=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(u.to,{replace:r.replace}));throw Xf.set(n,c),c}return T.createElement("meta",{httpEquiv:"refresh",content:`0;url=${u.absoluteURL||u.to}`})}}return e}function vC({routeContext:e,match:n,children:a}){let r=T.useContext(Gr);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),T.createElement(hi.Provider,{value:e},a)}function xC(e,n=[],a){let r=a?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(n.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let s=e,u=r?.errors;if(u!=null){let v=s.findIndex(g=>g.route.id&&u?.[g.route.id]!==void 0);ot(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),s=s.slice(0,Math.min(s.length,v+1))}let c=!1,f=-1;if(a&&r){c=r.renderFallback;for(let v=0;v<s.length;v++){let g=s[v];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(f=v),g.route.id){let{loaderData:x,errors:S}=r,E=g.route.loader&&!x.hasOwnProperty(g.route.id)&&(!S||S[g.route.id]===void 0);if(g.route.lazy||E){a.isStatic&&(c=!0),f>=0?s=s.slice(0,f+1):s=[s[0]];break}}}}let m=a?.onError,h=r&&m?(v,g)=>{m(v,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:iC(r.matches),errorInfo:g})}:void 0;return s.reduceRight((v,g,x)=>{let S,E=!1,A=null,N=null;r&&(S=u&&g.route.id?u[g.route.id]:void 0,A=g.route.errorElement||gC,c&&(f<0&&x===0?(i0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),E=!0,N=null):f===x&&(E=!0,N=g.route.hydrateFallbackElement||null)));let k=n.concat(s.slice(0,x+1)),O=()=>{let R;return S?R=A:E?R=N:g.route.Component?R=T.createElement(g.route.Component,null):g.route.element?R=g.route.element:R=v,T.createElement(vC,{match:g,routeContext:{outlet:v,matches:k,isDataRoute:r!=null},children:R})};return r&&(g.route.ErrorBoundary||g.route.errorElement||x===0)?T.createElement(n0,{location:r.location,revalidation:r.revalidation,component:A,error:S,children:O(),routeContext:{outlet:null,matches:k,isDataRoute:!0},onError:h}):O()},null)}function xh(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function bC(e){let n=T.useContext(Gr);return ot(n,xh(e)),n}function SC(e){let n=T.useContext(xu);return ot(n,xh(e)),n}function wC(e){let n=T.useContext(hi);return ot(n,xh(e)),n}function bh(e){let n=wC(e),a=n.matches[n.matches.length-1];return ot(a.route.id,`${e} can only be used on routes that contain a unique "id"`),a.route.id}function EC(){return bh("useRouteId")}function TC(){let e=T.useContext(vh),n=SC("useRouteError"),a=bh("useRouteError");return e!==void 0?e:n.errors?.[a]}function CC(){let{router:e}=bC("useNavigate"),n=bh("useNavigate"),a=T.useRef(!1);return Wb(()=>{a.current=!0}),T.useCallback(async(s,u={})=>{Jn(a.current,Jb),a.current&&(typeof s=="number"?await e.navigate(s):await e.navigate(s,{fromRouteId:n,...u}))},[e,n])}var Cv={};function i0(e,n,a){!n&&!Cv[e]&&(Cv[e]=!0,Jn(!1,a))}T.memo(AC);function AC({routes:e,future:n,state:a,isStatic:r,onError:s}){return t0(e,void 0,{state:a,isStatic:r,onError:s})}function kC({to:e,replace:n,state:a,relative:r}){ot(Yr(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=T.useContext(wn);Jn(!s,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:u}=T.useContext(hi),{pathname:c}=_i(),f=e0(),m=vu(e,yh(u),c,r==="path"),h=JSON.stringify(m);return T.useEffect(()=>{f(JSON.parse(h),{replace:n,state:a,relative:r})},[f,h,r,n,a]),null}function Xn(e){ot(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function NC({basename:e="/",children:n=null,location:a,navigationType:r="POP",navigator:s,static:u=!1,unstable_useTransitions:c}){ot(!Yr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=e.replace(/^\/*/,"/"),m=T.useMemo(()=>({basename:f,navigator:s,static:u,unstable_useTransitions:c,future:{}}),[f,s,u,c]);typeof a=="string"&&(a=Fr(a));let{pathname:h="/",search:v="",hash:g="",state:x=null,key:S="default",unstable_mask:E}=a,A=T.useMemo(()=>{let N=zi(h,f);return N==null?null:{location:{pathname:N,search:v,hash:g,state:x,key:S,unstable_mask:E},navigationType:r}},[f,h,v,g,x,S,r,E]);return Jn(A!=null,`<Router basename="${f}"> is not able to match the URL "${h}${v}${g}" because it does not start with the basename, so the <Router> won't render anything.`),A==null?null:T.createElement(wn.Provider,{value:m},T.createElement(hs.Provider,{children:n,value:A}))}function jC({children:e,location:n}){return mC(Md(e),n)}function Md(e,n=[]){let a=[];return T.Children.forEach(e,(r,s)=>{if(!T.isValidElement(r))return;let u=[...n,s];if(r.type===T.Fragment){a.push.apply(a,Md(r.props.children,u));return}ot(r.type===Xn,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ot(!r.props.index||!r.props.children,"An index route cannot have child routes.");let c={id:r.props.id||u.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(c.children=Md(r.props.children,u)),a.push(c)}),a}var Yo="get",Xo="application/x-www-form-urlencoded";function bu(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function RC(e){return bu(e)&&e.tagName.toLowerCase()==="button"}function MC(e){return bu(e)&&e.tagName.toLowerCase()==="form"}function DC(e){return bu(e)&&e.tagName.toLowerCase()==="input"}function OC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function zC(e,n){return e.button===0&&(!n||n==="_self")&&!OC(e)}var Lo=null;function LC(){if(Lo===null)try{new FormData(document.createElement("form"),0),Lo=!1}catch{Lo=!0}return Lo}var _C=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Kf(e){return e!=null&&!_C.has(e)?(Jn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Xo}"`),null):e}function BC(e,n){let a,r,s,u,c;if(MC(e)){let f=e.getAttribute("action");r=f?zi(f,n):null,a=e.getAttribute("method")||Yo,s=Kf(e.getAttribute("enctype"))||Xo,u=new FormData(e)}else if(RC(e)||DC(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let m=e.getAttribute("formaction")||f.getAttribute("action");if(r=m?zi(m,n):null,a=e.getAttribute("formmethod")||f.getAttribute("method")||Yo,s=Kf(e.getAttribute("formenctype"))||Kf(f.getAttribute("enctype"))||Xo,u=new FormData(f,e),!LC()){let{name:h,type:v,value:g}=e;if(v==="image"){let x=h?`${h}.`:"";u.append(`${x}x`,"0"),u.append(`${x}y`,"0")}else h&&u.append(h,g)}}else{if(bu(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');a=Yo,r=null,s=Xo,c=e}return u&&s==="text/plain"&&(c=u,u=void 0),{action:r,method:a.toLowerCase(),encType:s,formData:u,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Sh(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function VC(e,n,a,r){let s=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return a?s.pathname.endsWith("/")?s.pathname=`${s.pathname}_.${r}`:s.pathname=`${s.pathname}.${r}`:s.pathname==="/"?s.pathname=`_root.${r}`:n&&zi(s.pathname,n)==="/"?s.pathname=`${n.replace(/\/$/,"")}/_root.${r}`:s.pathname=`${s.pathname.replace(/\/$/,"")}.${r}`,s}async function UC(e,n){if(e.id in n)return n[e.id];try{let a=await import(e.module);return n[e.id]=a,a}catch(a){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(a),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function HC(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function PC(e,n,a){let r=await Promise.all(e.map(async s=>{let u=n.routes[s.route.id];if(u){let c=await UC(u,a);return c.links?c.links():[]}return[]}));return GC(r.flat(1).filter(HC).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function Av(e,n,a,r,s,u){let c=(m,h)=>a[h]?m.route.id!==a[h].route.id:!0,f=(m,h)=>a[h].pathname!==m.pathname||a[h].route.path?.endsWith("*")&&a[h].params["*"]!==m.params["*"];return u==="assets"?n.filter((m,h)=>c(m,h)||f(m,h)):u==="data"?n.filter((m,h)=>{let v=r.routes[m.route.id];if(!v||!v.hasLoader)return!1;if(c(m,h)||f(m,h))return!0;if(m.route.shouldRevalidate){let g=m.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:a[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:m.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function IC(e,n,{includeHydrateFallback:a}={}){return qC(e.map(r=>{let s=n.routes[r.route.id];if(!s)return[];let u=[s.module];return s.clientActionModule&&(u=u.concat(s.clientActionModule)),s.clientLoaderModule&&(u=u.concat(s.clientLoaderModule)),a&&s.hydrateFallbackModule&&(u=u.concat(s.hydrateFallbackModule)),s.imports&&(u=u.concat(s.imports)),u}).flat(1))}function qC(e){return[...new Set(e)]}function FC(e){let n={},a=Object.keys(e).sort();for(let r of a)n[r]=e[r];return n}function GC(e,n){let a=new Set;return new Set(n),e.reduce((r,s)=>{let u=JSON.stringify(FC(s));return a.has(u)||(a.add(u),r.push({key:u,link:s})),r},[])}function a0(){let e=T.useContext(Gr);return Sh(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function YC(){let e=T.useContext(xu);return Sh(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var wh=T.createContext(void 0);wh.displayName="FrameworkContext";function r0(){let e=T.useContext(wh);return Sh(e,"You must render this element inside a <HydratedRouter> element"),e}function XC(e,n){let a=T.useContext(wh),[r,s]=T.useState(!1),[u,c]=T.useState(!1),{onFocus:f,onBlur:m,onMouseEnter:h,onMouseLeave:v,onTouchStart:g}=n,x=T.useRef(null);T.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let A=k=>{k.forEach(O=>{c(O.isIntersecting)})},N=new IntersectionObserver(A,{threshold:.5});return x.current&&N.observe(x.current),()=>{N.disconnect()}}},[e]),T.useEffect(()=>{if(r){let A=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(A)}}},[r]);let S=()=>{s(!0)},E=()=>{s(!1),c(!1)};return a?e!=="intent"?[u,x,{}]:[u,x,{onFocus:ql(f,S),onBlur:ql(m,E),onMouseEnter:ql(h,S),onMouseLeave:ql(v,E),onTouchStart:ql(g,S)}]:[!1,x,{}]}function ql(e,n){return a=>{e&&e(a),a.defaultPrevented||n(a)}}function KC({page:e,...n}){let{router:a}=a0(),r=T.useMemo(()=>Fb(a.routes,e,a.basename),[a.routes,e,a.basename]);return r?T.createElement(ZC,{page:e,matches:r,...n}):null}function QC(e){let{manifest:n,routeModules:a}=r0(),[r,s]=T.useState([]);return T.useEffect(()=>{let u=!1;return PC(e,n,a).then(c=>{u||s(c)}),()=>{u=!0}},[e,n,a]),r}function ZC({page:e,matches:n,...a}){let r=_i(),{future:s,manifest:u,routeModules:c}=r0(),{basename:f}=a0(),{loaderData:m,matches:h}=YC(),v=T.useMemo(()=>Av(e,n,h,u,r,"data"),[e,n,h,u,r]),g=T.useMemo(()=>Av(e,n,h,u,r,"assets"),[e,n,h,u,r]),x=T.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let A=new Set,N=!1;if(n.forEach(O=>{let R=u.routes[O.route.id];!R||!R.hasLoader||(!v.some(Y=>Y.route.id===O.route.id)&&O.route.id in m&&c[O.route.id]?.shouldRevalidate||R.hasClientLoader?N=!0:A.add(O.route.id))}),A.size===0)return[];let k=VC(e,f,s.unstable_trailingSlashAwareDataRequests,"data");return N&&A.size>0&&k.searchParams.set("_routes",n.filter(O=>A.has(O.route.id)).map(O=>O.route.id).join(",")),[k.pathname+k.search]},[f,s.unstable_trailingSlashAwareDataRequests,m,r,u,v,n,e,c]),S=T.useMemo(()=>IC(g,u),[g,u]),E=QC(g);return T.createElement(T.Fragment,null,x.map(A=>T.createElement("link",{key:A,rel:"prefetch",as:"fetch",href:A,...a})),S.map(A=>T.createElement("link",{key:A,rel:"modulepreload",href:A,...a})),E.map(({key:A,link:N})=>T.createElement("link",{key:A,nonce:a.nonce,...N,crossOrigin:N.crossOrigin??a.crossOrigin})))}function $C(...e){return n=>{e.forEach(a=>{typeof a=="function"?a(n):a!=null&&(a.current=n)})}}var JC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{JC&&(window.__reactRouterVersion="7.13.1")}catch{}function WC({basename:e,children:n,unstable_useTransitions:a,window:r}){let s=T.useRef();s.current==null&&(s.current=DT({window:r,v5Compat:!0}));let u=s.current,[c,f]=T.useState({action:u.action,location:u.location}),m=T.useCallback(h=>{a===!1?f(h):T.startTransition(()=>f(h))},[a]);return T.useLayoutEffect(()=>u.listen(m),[u,m]),T.createElement(NC,{basename:e,children:n,location:c.location,navigationType:c.action,navigator:u,unstable_useTransitions:a})}var l0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,s0=T.forwardRef(function({onClick:n,discover:a="render",prefetch:r="none",relative:s,reloadDocument:u,replace:c,unstable_mask:f,state:m,target:h,to:v,preventScrollReset:g,viewTransition:x,unstable_defaultShouldRevalidate:S,...E},A){let{basename:N,navigator:k,unstable_useTransitions:O}=T.useContext(wn),R=typeof v=="string"&&l0.test(v),Y=Kb(v,N);v=Y.to;let U=dC(v,{relative:s}),z=_i(),Q=null;if(f){let ne=vu(f,[],z.unstable_mask?z.unstable_mask.pathname:"/",!0);N!=="/"&&(ne.pathname=ne.pathname==="/"?N:ci([N,ne.pathname])),Q=k.createHref(ne)}let[ee,oe,B]=XC(r,E),ae=nA(v,{replace:c,unstable_mask:f,state:m,target:h,preventScrollReset:g,relative:s,viewTransition:x,unstable_defaultShouldRevalidate:S,unstable_useTransitions:O});function re(ne){n&&n(ne),ne.defaultPrevented||ae(ne)}let te=!(Y.isExternal||u),se=T.createElement("a",{...E,...B,href:(te?Q:void 0)||Y.absoluteURL||U,onClick:te?re:n,ref:$C(A,oe),target:h,"data-discover":!R&&a==="render"?"true":void 0});return ee&&!R?T.createElement(T.Fragment,null,se,T.createElement(KC,{page:U})):se});s0.displayName="Link";var o0=T.forwardRef(function({"aria-current":n="page",caseSensitive:a=!1,className:r="",end:s=!1,style:u,to:c,viewTransition:f,children:m,...h},v){let g=ms(c,{relative:h.relative}),x=_i(),S=T.useContext(xu),{navigator:E,basename:A}=T.useContext(wn),N=S!=null&&sA(g)&&f===!0,k=E.encodeLocation?E.encodeLocation(g).pathname:g.pathname,O=x.pathname,R=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;a||(O=O.toLowerCase(),R=R?R.toLowerCase():null,k=k.toLowerCase()),R&&A&&(R=zi(R,A)||R);const Y=k!=="/"&&k.endsWith("/")?k.length-1:k.length;let U=O===k||!s&&O.startsWith(k)&&O.charAt(Y)==="/",z=R!=null&&(R===k||!s&&R.startsWith(k)&&R.charAt(k.length)==="/"),Q={isActive:U,isPending:z,isTransitioning:N},ee=U?n:void 0,oe;typeof r=="function"?oe=r(Q):oe=[r,U?"active":null,z?"pending":null,N?"transitioning":null].filter(Boolean).join(" ");let B=typeof u=="function"?u(Q):u;return T.createElement(s0,{...h,"aria-current":ee,className:oe,ref:v,style:B,to:c,viewTransition:f},typeof m=="function"?m(Q):m)});o0.displayName="NavLink";var eA=T.forwardRef(({discover:e="render",fetcherKey:n,navigate:a,reloadDocument:r,replace:s,state:u,method:c=Yo,action:f,onSubmit:m,relative:h,preventScrollReset:v,viewTransition:g,unstable_defaultShouldRevalidate:x,...S},E)=>{let{unstable_useTransitions:A}=T.useContext(wn),N=rA(),k=lA(f,{relative:h}),O=c.toLowerCase()==="get"?"get":"post",R=typeof f=="string"&&l0.test(f),Y=U=>{if(m&&m(U),U.defaultPrevented)return;U.preventDefault();let z=U.nativeEvent.submitter,Q=z?.getAttribute("formmethod")||c,ee=()=>N(z||U.currentTarget,{fetcherKey:n,method:Q,navigate:a,replace:s,state:u,relative:h,preventScrollReset:v,viewTransition:g,unstable_defaultShouldRevalidate:x});A&&a!==!1?T.startTransition(()=>ee()):ee()};return T.createElement("form",{ref:E,method:O,action:k,onSubmit:r?m:Y,...S,"data-discover":!R&&e==="render"?"true":void 0})});eA.displayName="Form";function tA(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function u0(e){let n=T.useContext(Gr);return ot(n,tA(e)),n}function nA(e,{target:n,replace:a,unstable_mask:r,state:s,preventScrollReset:u,relative:c,viewTransition:f,unstable_defaultShouldRevalidate:m,unstable_useTransitions:h}={}){let v=e0(),g=_i(),x=ms(e,{relative:c});return T.useCallback(S=>{if(zC(S,n)){S.preventDefault();let E=a!==void 0?a:as(g)===as(x),A=()=>v(e,{replace:E,unstable_mask:r,state:s,preventScrollReset:u,relative:c,viewTransition:f,unstable_defaultShouldRevalidate:m});h?T.startTransition(()=>A()):A()}},[g,v,x,a,r,s,n,e,u,c,f,m,h])}var iA=0,aA=()=>`__${String(++iA)}__`;function rA(){let{router:e}=u0("useSubmit"),{basename:n}=T.useContext(wn),a=EC(),r=e.fetch,s=e.navigate;return T.useCallback(async(u,c={})=>{let{action:f,method:m,encType:h,formData:v,body:g}=BC(u,n);if(c.navigate===!1){let x=c.fetcherKey||aA();await r(x,a,c.action||f,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:v,body:g,formMethod:c.method||m,formEncType:c.encType||h,flushSync:c.flushSync})}else await s(c.action||f,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:v,body:g,formMethod:c.method||m,formEncType:c.encType||h,replace:c.replace,state:c.state,fromRouteId:a,flushSync:c.flushSync,viewTransition:c.viewTransition})},[r,s,n,a])}function lA(e,{relative:n}={}){let{basename:a}=T.useContext(wn),r=T.useContext(hi);ot(r,"useFormAction must be used inside a RouteContext");let[s]=r.matches.slice(-1),u={...ms(e||".",{relative:n})},c=_i();if(e==null){u.search=c.search;let f=new URLSearchParams(u.search),m=f.getAll("index");if(m.some(v=>v==="")){f.delete("index"),m.filter(g=>g).forEach(g=>f.append("index",g));let v=f.toString();u.search=v?`?${v}`:""}}return(!e||e===".")&&s.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),a!=="/"&&(u.pathname=u.pathname==="/"?a:ci([a,u.pathname])),as(u)}function sA(e,{relative:n}={}){let a=T.useContext(Zb);ot(a!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=u0("useViewTransitionState"),s=ms(e,{relative:n});if(!a.isTransitioning)return!1;let u=zi(a.currentLocation.pathname,r)||a.currentLocation.pathname,c=zi(a.nextLocation.pathname,r)||a.nextLocation.pathname;return iu(s.pathname,c)!=null||iu(s.pathname,u)!=null}const kv="anima.gateway.device-identity.v1";function Dd(e){let n="";for(const a of e)n+=String.fromCharCode(a);return btoa(n).replaceAll("+","-").replaceAll("/","_").replace(/=+$/g,"")}function c0(e){const n=e.replaceAll("-","+").replaceAll("_","/"),a=n+"=".repeat((4-n.length%4)%4),r=atob(a),s=new Uint8Array(r.length);for(let u=0;u<r.length;u+=1)s[u]=r.charCodeAt(u);return s}function oA(e){return Array.from(e).map(n=>n.toString(16).padStart(2,"0")).join("")}function Od(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}async function f0(e){const n=await crypto.subtle.digest("SHA-256",Od(e));return oA(new Uint8Array(n))}async function uA(){if(!crypto?.subtle)throw new Error("WebCrypto is unavailable in this browser context.");const e=await crypto.subtle.generateKey({name:"Ed25519"},!0,["sign","verify"]),n=new Uint8Array(await crypto.subtle.exportKey("raw",e.publicKey)),a=new Uint8Array(await crypto.subtle.exportKey("pkcs8",e.privateKey));return{deviceId:await f0(n),publicKey:Dd(n),privateKey:Dd(a)}}async function cA(){if(typeof window>"u")throw new Error("Device identity requires a browser context.");try{const a=window.localStorage.getItem(kv);if(a){const r=JSON.parse(a);if(r?.version===1&&typeof r.deviceId=="string"&&typeof r.publicKey=="string"&&typeof r.privateKey=="string"&&await f0(c0(r.publicKey))===r.deviceId)return{deviceId:r.deviceId,publicKey:r.publicKey,privateKey:r.privateKey}}}catch{}const e=await uA(),n={version:1,deviceId:e.deviceId,publicKey:e.publicKey,privateKey:e.privateKey,createdAtMs:Date.now()};try{window.localStorage.setItem(kv,JSON.stringify(n))}catch{}return e}async function fA(e,n){if(!crypto?.subtle)throw new Error("WebCrypto is unavailable in this browser context.");const a=c0(e),r=await crypto.subtle.importKey("pkcs8",Od(a),{name:"Ed25519"},!1,["sign"]),s=new TextEncoder().encode(n),u=await crypto.subtle.sign({name:"Ed25519"},r,Od(s));return Dd(new Uint8Array(u))}function dA(e){const n=e.nonce?"v2":"v1",a=e.scopes.join(","),r=e.token??"",s=[n,e.deviceId,e.clientId,e.clientMode,e.role,a,String(e.signedAtMs),r];return n==="v2"&&s.push(e.nonce??""),s.join("|")}function Eh(e){if(!e||typeof e!="object")return;const n=e.nonce;if(typeof n!="string")return;const a=n.trim();return a.length>0?a:void 0}async function Th(e){const n=Array.isArray(e.scopes)?e.scopes:["operator.admin"],a=Array.isArray(e.caps)?e.caps:[],r=await cA(),s=Date.now(),u=dA({deviceId:r.deviceId,clientId:e.client.id,clientMode:e.client.mode,role:"operator",scopes:n,signedAtMs:s,token:typeof e.auth.token=="string"?e.auth.token:null,nonce:e.nonce}),c=await fA(r.privateKey,u);return{minProtocol:e.minProtocol,maxProtocol:e.maxProtocol,client:e.client,role:"operator",scopes:n,caps:a,auth:e.auth,device:{id:r.deviceId,publicKey:r.publicKey,signature:c,signedAt:s,...e.nonce?{nonce:e.nonce}:{}}}}const Nv="http://localhost:18789",jv="ws://localhost:18789/ws",_o="token",d0="anima.gateway.token",hA="anima.control.settings.v1";function mA(e){if(!e)return new URLSearchParams;const n=e.startsWith("#")?e.slice(1):e;return n?new URLSearchParams(n):new URLSearchParams}function Rv(e){if(!(typeof window>"u"||!e))try{window.localStorage.setItem(d0,e)}catch{}}function pA(){if(typeof window>"u")return null;try{const e=new URL(window.location.href),n=mA(e.hash),a=e.searchParams.get(_o)?.trim()||"",r=n.get(_o)?.trim()||"",s=a||r;if(a&&e.searchParams.delete(_o),r){n.delete(_o);const u=n.toString();e.hash=u?`#${u}`:""}return(a||r)&&typeof window.history?.replaceState=="function"&&window.history.replaceState(null,"",`${e.pathname}${e.search}${e.hash}`),s||null}catch{return null}}function gA(){if(typeof window>"u")return null;try{const e=window.localStorage.getItem(hA);if(!e)return null;const n=JSON.parse(e);return(typeof n.token=="string"?n.token.trim():"")||null}catch{return null}}function yA(){if(typeof window>"u")return null;try{const e=window.localStorage.getItem(d0)?.trim()||"";if(e)return e}catch{}return gA()}function vA(){if(typeof window>"u")return Nv;const e=window.location.protocol==="https:"?"https:":"http:",n=window.location.host?.trim();return n?`${e}//${n}`:Nv}function Ch(){if(typeof window>"u")return jv;const e=window.location.protocol==="https:"?"wss:":"ws:",n=window.location.host?.trim();return n?`${e}//${n}/ws`:jv}function xA(){const e=pA();if(e)return Rv(e),e;const n=yA();return n?(Rv(n),n):null}function Ah(){const e=xA();if(e)return{token:e}}const bA=vA(),SA=Ch(),Mv=3,wA=1e4,EA=2*6e4,TA=15*6e4,CA=8;function rs(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():`id-${Date.now()}-${Math.random().toString(36).slice(2)}`}function AA(e){const n=e?.body;if(typeof n!="string"||!n.trim())return{};try{const a=JSON.parse(n);return typeof a=="object"&&a!==null?a:{}}catch{return{}}}async function _a(e,n){return await new Promise((a,r)=>{const s=new WebSocket(SA);let u=!1,c=!1,f=!1,m,h="",v="",g=null;const x=window.setTimeout(()=>{A(new Error(`Gateway RPC timed out: ${e}`))},wA);function S(){window.clearTimeout(x),g!=null&&window.clearTimeout(g),s.close()}function E(O){u||(u=!0,S(),a(O))}function A(O){u||(u=!0,S(),r(O))}function N(O,R,Y){s.send(JSON.stringify({type:"req",id:O,method:R,params:Y??{}}))}async function k(){if(c||h||f)return;f=!0;const O=Ah();if(!O){f=!1,A(new Error("Gateway token missing. Re-open this page once with ?token=ANIMA_GATEWAY_TOKEN."));return}try{const R=await Th({minProtocol:Mv,maxProtocol:Mv,client:{id:"webchat-ui",version:"1.0.0",platform:"web",mode:"webchat"},scopes:["operator.read","operator.admin"],caps:[],auth:O,nonce:m});h=rs(),N(h,"connect",R),f=!1}catch(R){f=!1,A(R instanceof Error?R:new Error(String(R)))}}s.addEventListener("open",()=>{g=window.setTimeout(()=>{g=null,k()},100)}),s.addEventListener("message",O=>{let R;try{R=JSON.parse(String(O.data))}catch{return}const Y=R;if(Y.type==="event"){if(Y.event==="connect.challenge"){const U=Eh(Y.payload);U&&(m=U),k()}return}if(Y.type==="res"){if(Y.id===h){if(h="",f=!1,!Y.ok){A(new Error(Y.error?.message||"Gateway connect failed"));return}c=!0,v=rs(),N(v,e,n);return}if(Y.id===v&&c){if(!Y.ok){A(new Error(Y.error?.message||`Gateway method failed: ${e}`));return}E(Y.payload??{})}}}),s.addEventListener("error",()=>{A(new Error(`Gateway websocket error while requesting ${e}`))}),s.addEventListener("close",()=>{u||A(new Error(`Gateway websocket closed while requesting ${e}`))})})}async function mt(e,n){return await _a(e,n)}function kA(e,n,a=zd()){const r=Array.isArray(e.heartbeat?.agents)?e.heartbeat?.agents[0]:null,s=typeof r?.everyMs=="number"&&Number.isFinite(r.everyMs)?r.everyMs:3e5,u=typeof n?.ts=="number"&&Number.isFinite(n.ts)?n.ts:null;return{heartbeat:{running:!!r?.enabled,paused:!1,beatCount:0,lastBeat:u!=null?new Date(u).toISOString():null,nextBeat:u!=null?new Date(u+s).toISOString():null,interval:s},budget:{spent:0,remaining:200,limit:200,sessionCount:0},queue:{queued:Array.isArray(e.queuedSystemEvents)?e.queuedSystemEvents.length:0,running:0,completed:0,failed:0},mcp:{servers:[]},subagents:a}}function zd(){return{total:0,active:0,recent:0,failed:0,latest:[]}}function NA(e){return typeof e=="number"&&Number.isFinite(e)?e:null}function jA(e){const n=e?.trim().toLowerCase();return n?n.startsWith("subagent:")||n.includes(":subagent:"):!1}function RA(e){if(!Array.isArray(e.sessions)||e.sessions.length===0)return zd();const n=Date.now(),a=e.sessions.filter(r=>jA(r.key)).map(r=>{const s=NA(r.updatedAt),u=s==null?Number.POSITIVE_INFINITY:Math.max(0,n-s),c=r.abortedLastRun===!0;let f="idle";return c?f="failed":u<=EA?f="active":u<=TA&&(f="recent"),{key:r.key?.trim()||rs(),status:f,updatedAt:s!=null?new Date(s).toISOString():null,updatedAtMs:s}}).toSorted((r,s)=>(s.updatedAtMs??0)-(r.updatedAtMs??0));return a.length===0?zd():{total:a.length,active:a.filter(r=>r.status==="active").length,recent:a.filter(r=>r.status==="recent").length,failed:a.filter(r=>r.status==="failed").length,latest:a.slice(0,CA).map(r=>({key:r.key,status:r.status,updatedAt:r.updatedAt}))}}function MA(e){const n=e.name?.trim()||"Assistant",a=e.agentId?.trim()||"main",r=e.avatar?.trim()||"A";return{loadedAt:new Date().toISOString(),components:[{name:"SOUL",content:`# ${n}
|
|
12
|
-
Agent ID: ${a}
|
|
13
|
-
Avatar: ${r}`,source:"user",description:"Core identity resolved from active gateway agent profile."},{name:"HEART",content:"Heartbeat mode active. This instance listens for ongoing directives.",source:"template",description:"Heartbeat and operating rhythm configuration."},{name:"MEMORY",content:"Memory systems are managed by ANIMA runtime and session storage.",source:"template",description:"Long-term continuity and session persistence layer."}]}}function DA(e){return Array.isArray(e.sessions)?e.sessions.map(n=>{const a=typeof n.updatedAt=="number"&&Number.isFinite(n.updatedAt)?new Date(n.updatedAt).toISOString():new Date().toISOString(),r=[n.modelProvider,n.model].filter(s=>typeof s=="string"&&s).join("/")||"gateway session";return{sessionId:n.sessionId||n.key||rs(),mode:n.origin?.surface||n.kind||"session",status:n.abortedLastRun?"failed":"completed",prompt:`Model: ${r}`,durationMs:0,costUsd:null,savedAt:a}}):[]}const OA={enabled:!1,running:!1,paused:!1,nodeId:"unavailable",uptimeMs:0,tasksCompleted:0,tasksFailed:0,balance:0,sessionEarnings:0,limits:{maxCpuPercent:10,maxRamMB:256,maxBandwidthMbps:5},resources:null,earnings:{allTimeEarned:0,allTimeApplied:0,balanceValueUSD:0,todayEarned:0,todayTasks:0}};async function Bo(e,n){const a=(n?.method||"GET").toUpperCase();if(a==="GET"&&e==="/api/status"){const[r,s,u]=await Promise.all([_a("status",{}),_a("last-heartbeat",{}).catch(()=>null),_a("sessions.list",{limit:200,includeGlobal:!0,includeUnknown:!0}).catch(()=>({sessions:[]}))]),c=RA(u);return kA(r,s,c)}if(a==="GET"&&e==="/api/identity"){const r=await _a("agent.identity.get",{sessionKey:"main"}).catch(()=>({name:"Assistant",avatar:"A",agentId:"main"}));return MA(r)}if(a==="GET"&&e==="/api/sessions"){const r=await _a("sessions.list",{limit:50}).catch(()=>({sessions:[]}));return DA(r)}if(a==="GET"&&e==="/api/queue")return[];if(a==="POST"&&e==="/api/queue"){const r=AA(n),s=typeof r.prompt=="string"?r.prompt.trim():"",u=rs();return s&&await _a("chat.send",{sessionKey:"main",message:s,deliver:!1,idempotencyKey:u}),{id:u}}if(a==="GET"&&e==="/api/mcp")return[];if(a==="GET"&&e==="/api/svrn/status")return OA;if(a==="POST"&&(e==="/api/svrn/toggle"||e==="/api/svrn/limits"))return{success:!0};throw new Error(`Unsupported control UI API path: ${a} ${e}`)}async function Su(e,n){try{const a=new Headers(n?.headers??{});a.has("Content-Type")||a.set("Content-Type","application/json");const r=await fetch(`${bA}${e}`,{...n,headers:a});if(!r.ok){if(e.startsWith("/api/"))return await Bo(e,n);throw new Error(`API error: ${r.status} ${r.statusText}`)}if(String(r.headers.get("content-type")||"").includes("application/json"))return await r.json();const u=await r.text();if(e.startsWith("/api/")){const c=u.trim().toLowerCase();if(c.startsWith("<!doctype html")||c.startsWith("<html"))return await Bo(e,n);try{return JSON.parse(u)}catch{return await Bo(e,n)}}return JSON.parse(u)}catch(a){if(e.startsWith("/api/"))return await Bo(e,n);throw a}}async function zA(){return Su("/api/status")}async function LA(){return Su("/api/identity")}async function _A(){return Su("/api/sessions")}async function BA(e,n="normal"){return Su("/api/queue",{method:"POST",body:JSON.stringify({prompt:e,priority:n,source:"web"})})}async function h0(){return await mt("config.get",{})}async function VA(){return await mt("config.schema",{})}async function UA(e,n,a=!1){await mt(a?"config.apply":"config.set",{raw:e,baseHash:n})}async function m0(e,n){await mt("config.patch",{raw:e,baseHash:n})}async function p0(){return await mt("anima.runtime.get",{})}async function HA(e){await mt("anima.runtime.set-working-mode",{mode:e})}async function PA(e,n,a){const r=await mt("anima.memory.list",{kind:e,...n?{query:n}:{},limit:a});return Array.isArray(r.entries)?r.entries:[]}async function IA(){return await mt("anima.mission.get",{})}async function qA(e,n){return(await mt("anima.mission.set",{fileName:e,content:n})).file}async function g0(e){return(await mt("anima.mission.patch",{patch:e})).state}async function FA(e){return(await mt("anima.mission.connect-repo",{...e})).repo}async function GA(e){await mt("anima.mission.import",e)}async function y0(){return await mt("anima.registration.status",{})}async function YA(e){await mt("anima.registration.set-token",{token:e})}async function XA(e){await mt("anima.registration.register-invite",e)}async function Ld(e){await mt("set-heartbeats",{enabled:e})}async function v0(e,n="next-heartbeat"){await mt("wake",{text:e,mode:n})}async function Dv(e){return await mt("logs.tail",{...typeof e=="number"?{cursor:e}:{},limit:160,maxBytes:12e4})}async function KA(){return await mt("voicewake.get",{})}async function QA(e){return await mt("voicewake.set",{triggers:e})}async function ZA(){return await mt("anima.providers.get",{})}async function Ov(e){await mt("anima.providers.set",{providers:e})}async function $A(e){await mt("anima.providers.rotate",{enabled:e})}function JA(e,n){const a={};return(e[e.length-1]===""?[...e,""]:e).join((a.padRight?" ":"")+","+(a.padLeft===!1?"":" ")).trim()}const WA=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ek=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,tk={};function zv(e,n){return(tk.jsx?ek:WA).test(e)}const nk=/[ \t\n\f\r]/g;function ik(e){return typeof e=="object"?e.type==="text"?Lv(e.value):!1:Lv(e)}function Lv(e){return e.replace(nk,"")===""}class ps{constructor(n,a,r){this.normal=a,this.property=n,r&&(this.space=r)}}ps.prototype.normal={};ps.prototype.property={};ps.prototype.space=void 0;function x0(e,n){const a={},r={};for(const s of e)Object.assign(a,s.property),Object.assign(r,s.normal);return new ps(a,r,n)}function _d(e){return e.toLowerCase()}class un{constructor(n,a){this.attribute=a,this.property=n}}un.prototype.attribute="";un.prototype.booleanish=!1;un.prototype.boolean=!1;un.prototype.commaOrSpaceSeparated=!1;un.prototype.commaSeparated=!1;un.prototype.defined=!1;un.prototype.mustUseProperty=!1;un.prototype.number=!1;un.prototype.overloadedBoolean=!1;un.prototype.property="";un.prototype.spaceSeparated=!1;un.prototype.space=void 0;let ak=0;const Ne=qa(),At=qa(),Bd=qa(),le=qa(),nt=qa(),Vr=qa(),bn=qa();function qa(){return 2**++ak}const Vd=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ne,booleanish:At,commaOrSpaceSeparated:bn,commaSeparated:Vr,number:le,overloadedBoolean:Bd,spaceSeparated:nt},Symbol.toStringTag,{value:"Module"})),Qf=Object.keys(Vd);class kh extends un{constructor(n,a,r,s){let u=-1;if(super(n,a),_v(this,"space",s),typeof r=="number")for(;++u<Qf.length;){const c=Qf[u];_v(this,Qf[u],(r&Vd[c])===Vd[c])}}}kh.prototype.defined=!0;function _v(e,n,a){a&&(e[n]=a)}function Xr(e){const n={},a={};for(const[r,s]of Object.entries(e.properties)){const u=new kh(r,e.transform(e.attributes||{},r),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(u.mustUseProperty=!0),n[r]=u,a[_d(r)]=r,a[_d(u.attribute)]=r}return new ps(n,a,e.space)}const b0=Xr({properties:{ariaActiveDescendant:null,ariaAtomic:At,ariaAutoComplete:null,ariaBusy:At,ariaChecked:At,ariaColCount:le,ariaColIndex:le,ariaColSpan:le,ariaControls:nt,ariaCurrent:null,ariaDescribedBy:nt,ariaDetails:null,ariaDisabled:At,ariaDropEffect:nt,ariaErrorMessage:null,ariaExpanded:At,ariaFlowTo:nt,ariaGrabbed:At,ariaHasPopup:null,ariaHidden:At,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:nt,ariaLevel:le,ariaLive:null,ariaModal:At,ariaMultiLine:At,ariaMultiSelectable:At,ariaOrientation:null,ariaOwns:nt,ariaPlaceholder:null,ariaPosInSet:le,ariaPressed:At,ariaReadOnly:At,ariaRelevant:null,ariaRequired:At,ariaRoleDescription:nt,ariaRowCount:le,ariaRowIndex:le,ariaRowSpan:le,ariaSelected:At,ariaSetSize:le,ariaSort:null,ariaValueMax:le,ariaValueMin:le,ariaValueNow:le,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function S0(e,n){return n in e?e[n]:n}function w0(e,n){return S0(e,n.toLowerCase())}const rk=Xr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Vr,acceptCharset:nt,accessKey:nt,action:null,allow:null,allowFullScreen:Ne,allowPaymentRequest:Ne,allowUserMedia:Ne,alt:null,as:null,async:Ne,autoCapitalize:null,autoComplete:nt,autoFocus:Ne,autoPlay:Ne,blocking:nt,capture:null,charSet:null,checked:Ne,cite:null,className:nt,cols:le,colSpan:null,content:null,contentEditable:At,controls:Ne,controlsList:nt,coords:le|Vr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ne,defer:Ne,dir:null,dirName:null,disabled:Ne,download:Bd,draggable:At,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ne,formTarget:null,headers:nt,height:le,hidden:Bd,high:le,href:null,hrefLang:null,htmlFor:nt,httpEquiv:nt,id:null,imageSizes:null,imageSrcSet:null,inert:Ne,inputMode:null,integrity:null,is:null,isMap:Ne,itemId:null,itemProp:nt,itemRef:nt,itemScope:Ne,itemType:nt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ne,low:le,manifest:null,max:null,maxLength:le,media:null,method:null,min:null,minLength:le,multiple:Ne,muted:Ne,name:null,nonce:null,noModule:Ne,noValidate:Ne,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ne,optimum:le,pattern:null,ping:nt,placeholder:null,playsInline:Ne,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ne,referrerPolicy:null,rel:nt,required:Ne,reversed:Ne,rows:le,rowSpan:le,sandbox:nt,scope:null,scoped:Ne,seamless:Ne,selected:Ne,shadowRootClonable:Ne,shadowRootDelegatesFocus:Ne,shadowRootMode:null,shape:null,size:le,sizes:null,slot:null,span:le,spellCheck:At,src:null,srcDoc:null,srcLang:null,srcSet:null,start:le,step:null,style:null,tabIndex:le,target:null,title:null,translate:null,type:null,typeMustMatch:Ne,useMap:null,value:At,width:le,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:nt,axis:null,background:null,bgColor:null,border:le,borderColor:null,bottomMargin:le,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ne,declare:Ne,event:null,face:null,frame:null,frameBorder:null,hSpace:le,leftMargin:le,link:null,longDesc:null,lowSrc:null,marginHeight:le,marginWidth:le,noResize:Ne,noHref:Ne,noShade:Ne,noWrap:Ne,object:null,profile:null,prompt:null,rev:null,rightMargin:le,rules:null,scheme:null,scrolling:At,standby:null,summary:null,text:null,topMargin:le,valueType:null,version:null,vAlign:null,vLink:null,vSpace:le,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ne,disableRemotePlayback:Ne,prefix:null,property:null,results:le,security:null,unselectable:null},space:"html",transform:w0}),lk=Xr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:bn,accentHeight:le,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:le,amplitude:le,arabicForm:null,ascent:le,attributeName:null,attributeType:null,azimuth:le,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:le,by:null,calcMode:null,capHeight:le,className:nt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:le,diffuseConstant:le,direction:null,display:null,dur:null,divisor:le,dominantBaseline:null,download:Ne,dx:null,dy:null,edgeMode:null,editable:null,elevation:le,enableBackground:null,end:null,event:null,exponent:le,externalResourcesRequired:null,fill:null,fillOpacity:le,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Vr,g2:Vr,glyphName:Vr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:le,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:le,horizOriginX:le,horizOriginY:le,id:null,ideographic:le,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:le,k:le,k1:le,k2:le,k3:le,k4:le,kernelMatrix:bn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:le,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:le,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:le,overlineThickness:le,paintOrder:null,panose1:null,path:null,pathLength:le,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:nt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:le,pointsAtY:le,pointsAtZ:le,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:bn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:bn,rev:bn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:bn,requiredFeatures:bn,requiredFonts:bn,requiredFormats:bn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:le,specularExponent:le,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:le,strikethroughThickness:le,string:null,stroke:null,strokeDashArray:bn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:le,strokeOpacity:le,strokeWidth:null,style:null,surfaceScale:le,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:bn,tabIndex:le,tableValues:null,target:null,targetX:le,targetY:le,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:bn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:le,underlineThickness:le,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:le,values:null,vAlphabetic:le,vMathematical:le,vectorEffect:null,vHanging:le,vIdeographic:le,version:null,vertAdvY:le,vertOriginX:le,vertOriginY:le,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:le,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:S0}),E0=Xr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),T0=Xr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:w0}),C0=Xr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),sk={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},ok=/[A-Z]/g,Bv=/-[a-z]/g,uk=/^data[-\w.:]+$/i;function ck(e,n){const a=_d(n);let r=n,s=un;if(a in e.normal)return e.property[e.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&uk.test(n)){if(n.charAt(4)==="-"){const u=n.slice(5).replace(Bv,dk);r="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=n.slice(4);if(!Bv.test(u)){let c=u.replace(ok,fk);c.charAt(0)!=="-"&&(c="-"+c),n="data"+c}}s=kh}return new s(r,n)}function fk(e){return"-"+e.toLowerCase()}function dk(e){return e.charAt(1).toUpperCase()}const hk=x0([b0,rk,E0,T0,C0],"html"),Nh=x0([b0,lk,E0,T0,C0],"svg");function mk(e){return e.join(" ").trim()}var Nr={},Zf,Vv;function pk(){if(Vv)return Zf;Vv=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,a=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,u=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,f=/^\s+|\s+$/g,m=`
|
|
14
|
-
`,h="/",v="*",g="",x="comment",S="declaration";function E(N,k){if(typeof N!="string")throw new TypeError("First argument must be a string");if(!N)return[];k=k||{};var O=1,R=1;function Y(se){var ne=se.match(n);ne&&(O+=ne.length);var H=se.lastIndexOf(m);R=~H?se.length-H:R+se.length}function U(){var se={line:O,column:R};return function(ne){return ne.position=new z(se),oe(),ne}}function z(se){this.start=se,this.end={line:O,column:R},this.source=k.source}z.prototype.content=N;function Q(se){var ne=new Error(k.source+":"+O+":"+R+": "+se);if(ne.reason=se,ne.filename=k.source,ne.line=O,ne.column=R,ne.source=N,!k.silent)throw ne}function ee(se){var ne=se.exec(N);if(ne){var H=ne[0];return Y(H),N=N.slice(H.length),ne}}function oe(){ee(a)}function B(se){var ne;for(se=se||[];ne=ae();)ne!==!1&&se.push(ne);return se}function ae(){var se=U();if(!(h!=N.charAt(0)||v!=N.charAt(1))){for(var ne=2;g!=N.charAt(ne)&&(v!=N.charAt(ne)||h!=N.charAt(ne+1));)++ne;if(ne+=2,g===N.charAt(ne-1))return Q("End of comment missing");var H=N.slice(2,ne-2);return R+=2,Y(H),N=N.slice(ne),R+=2,se({type:x,comment:H})}}function re(){var se=U(),ne=ee(r);if(ne){if(ae(),!ee(s))return Q("property missing ':'");var H=ee(u),$=se({type:S,property:A(ne[0].replace(e,g)),value:H?A(H[0].replace(e,g)):g});return ee(c),$}}function te(){var se=[];B(se);for(var ne;ne=re();)ne!==!1&&(se.push(ne),B(se));return se}return oe(),te()}function A(N){return N?N.replace(f,g):g}return Zf=E,Zf}var Uv;function gk(){if(Uv)return Nr;Uv=1;var e=Nr&&Nr.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.default=a;const n=e(pk());function a(r,s){let u=null;if(!r||typeof r!="string")return u;const c=(0,n.default)(r),f=typeof s=="function";return c.forEach(m=>{if(m.type!=="declaration")return;const{property:h,value:v}=m;f?s(h,v,m):v&&(u=u||{},u[h]=v)}),u}return Nr}var Fl={},Hv;function yk(){if(Hv)return Fl;Hv=1,Object.defineProperty(Fl,"__esModule",{value:!0}),Fl.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,a=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,u=function(h){return!h||a.test(h)||e.test(h)},c=function(h,v){return v.toUpperCase()},f=function(h,v){return"".concat(v,"-")},m=function(h,v){return v===void 0&&(v={}),u(h)?h:(h=h.toLowerCase(),v.reactCompat?h=h.replace(s,f):h=h.replace(r,f),h.replace(n,c))};return Fl.camelCase=m,Fl}var Gl,Pv;function vk(){if(Pv)return Gl;Pv=1;var e=Gl&&Gl.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},n=e(gk()),a=yk();function r(s,u){var c={};return!s||typeof s!="string"||(0,n.default)(s,function(f,m){f&&m&&(c[(0,a.camelCase)(f,u)]=m)}),c}return r.default=r,Gl=r,Gl}var xk=vk();const bk=yu(xk),A0=k0("end"),jh=k0("start");function k0(e){return n;function n(a){const r=a&&a.position&&a.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Sk(e){const n=jh(e),a=A0(e);if(n&&a)return{start:n,end:a}}function $l(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Iv(e.position):"start"in e||"end"in e?Iv(e):"line"in e||"column"in e?Ud(e):""}function Ud(e){return qv(e&&e.line)+":"+qv(e&&e.column)}function Iv(e){return Ud(e&&e.start)+"-"+Ud(e&&e.end)}function qv(e){return e&&typeof e=="number"?e:1}class Yt extends Error{constructor(n,a,r){super(),typeof a=="string"&&(r=a,a=void 0);let s="",u={},c=!1;if(a&&("line"in a&&"column"in a?u={place:a}:"start"in a&&"end"in a?u={place:a}:"type"in a?u={ancestors:[a],place:a.position}:u={...a}),typeof n=="string"?s=n:!u.cause&&n&&(c=!0,s=n.message,u.cause=n),!u.ruleId&&!u.source&&typeof r=="string"){const m=r.indexOf(":");m===-1?u.ruleId=r:(u.source=r.slice(0,m),u.ruleId=r.slice(m+1))}if(!u.place&&u.ancestors&&u.ancestors){const m=u.ancestors[u.ancestors.length-1];m&&(u.place=m.position)}const f=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=f?f.line:void 0,this.name=$l(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=c&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Yt.prototype.file="";Yt.prototype.name="";Yt.prototype.reason="";Yt.prototype.message="";Yt.prototype.stack="";Yt.prototype.column=void 0;Yt.prototype.line=void 0;Yt.prototype.ancestors=void 0;Yt.prototype.cause=void 0;Yt.prototype.fatal=void 0;Yt.prototype.place=void 0;Yt.prototype.ruleId=void 0;Yt.prototype.source=void 0;const Rh={}.hasOwnProperty,wk=new Map,Ek=/[A-Z]/g,Tk=new Set(["table","tbody","thead","tfoot","tr"]),Ck=new Set(["td","th"]),N0="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Ak(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const a=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=zk(a,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Ok(a,n.jsx,n.jsxs)}const s={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?Nh:hk,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},u=j0(s,e,void 0);return u&&typeof u!="string"?u:s.create(e,s.Fragment,{children:u||void 0},void 0)}function j0(e,n,a){if(n.type==="element")return kk(e,n,a);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return Nk(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return Rk(e,n,a);if(n.type==="mdxjsEsm")return jk(e,n);if(n.type==="root")return Mk(e,n,a);if(n.type==="text")return Dk(e,n)}function kk(e,n,a){const r=e.schema;let s=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(s=Nh,e.schema=s),e.ancestors.push(n);const u=M0(e,n.tagName,!1),c=Lk(e,n);let f=Dh(e,n);return Tk.has(n.tagName)&&(f=f.filter(function(m){return typeof m=="string"?!ik(m):!0})),R0(e,c,u,n),Mh(c,f),e.ancestors.pop(),e.schema=r,e.create(n,u,c,a)}function Nk(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}ls(e,n.position)}function jk(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);ls(e,n.position)}function Rk(e,n,a){const r=e.schema;let s=r;n.name==="svg"&&r.space==="html"&&(s=Nh,e.schema=s),e.ancestors.push(n);const u=n.name===null?e.Fragment:M0(e,n.name,!0),c=_k(e,n),f=Dh(e,n);return R0(e,c,u,n),Mh(c,f),e.ancestors.pop(),e.schema=r,e.create(n,u,c,a)}function Mk(e,n,a){const r={};return Mh(r,Dh(e,n)),e.create(n,e.Fragment,r,a)}function Dk(e,n){return n.value}function R0(e,n,a,r){typeof a!="string"&&a!==e.Fragment&&e.passNode&&(n.node=r)}function Mh(e,n){if(n.length>0){const a=n.length>1?n:n[0];a&&(e.children=a)}}function Ok(e,n,a){return r;function r(s,u,c,f){const h=Array.isArray(c.children)?a:n;return f?h(u,c,f):h(u,c)}}function zk(e,n){return a;function a(r,s,u,c){const f=Array.isArray(u.children),m=jh(r);return n(s,u,c,f,{columnNumber:m?m.column-1:void 0,fileName:e,lineNumber:m?m.line:void 0},void 0)}}function Lk(e,n){const a={};let r,s;for(s in n.properties)if(s!=="children"&&Rh.call(n.properties,s)){const u=Bk(e,s,n.properties[s]);if(u){const[c,f]=u;e.tableCellAlignToStyle&&c==="align"&&typeof f=="string"&&Ck.has(n.tagName)?r=f:a[c]=f}}if(r){const u=a.style||(a.style={});u[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return a}function _k(e,n){const a={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const u=r.data.estree.body[0];u.type;const c=u.expression;c.type;const f=c.properties[0];f.type,Object.assign(a,e.evaluater.evaluateExpression(f.argument))}else ls(e,n.position);else{const s=r.name;let u;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const f=r.value.data.estree.body[0];f.type,u=e.evaluater.evaluateExpression(f.expression)}else ls(e,n.position);else u=r.value===null?!0:r.value;a[s]=u}return a}function Dh(e,n){const a=[];let r=-1;const s=e.passKeys?new Map:wk;for(;++r<n.children.length;){const u=n.children[r];let c;if(e.passKeys){const m=u.type==="element"?u.tagName:u.type==="mdxJsxFlowElement"||u.type==="mdxJsxTextElement"?u.name:void 0;if(m){const h=s.get(m)||0;c=m+"-"+h,s.set(m,h+1)}}const f=j0(e,u,c);f!==void 0&&a.push(f)}return a}function Bk(e,n,a){const r=ck(e.schema,n);if(!(a==null||typeof a=="number"&&Number.isNaN(a))){if(Array.isArray(a)&&(a=r.commaSeparated?JA(a):mk(a)),r.property==="style"){let s=typeof a=="object"?a:Vk(e,String(a));return e.stylePropertyNameCase==="css"&&(s=Uk(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&r.space?sk[r.property]||r.property:r.attribute,a]}}function Vk(e,n){try{return bk(n,{reactCompat:!0})}catch(a){if(e.ignoreInvalidStyle)return{};const r=a,s=new Yt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=N0+"#cannot-parse-style-attribute",s}}function M0(e,n,a){let r;if(!a)r={type:"Literal",value:n};else if(n.includes(".")){const s=n.split(".");let u=-1,c;for(;++u<s.length;){const f=zv(s[u])?{type:"Identifier",name:s[u]}:{type:"Literal",value:s[u]};c=c?{type:"MemberExpression",object:c,property:f,computed:!!(u&&f.type==="Literal"),optional:!1}:f}r=c}else r=zv(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const s=r.value;return Rh.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(r);ls(e)}function ls(e,n){const a=new Yt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=N0+"#cannot-handle-mdx-estrees-without-createevaluater",a}function Uk(e){const n={};let a;for(a in e)Rh.call(e,a)&&(n[Hk(a)]=e[a]);return n}function Hk(e){let n=e.replace(Ek,Pk);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function Pk(e){return"-"+e.toLowerCase()}const $f={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Ik={};function Oh(e,n){const a=Ik,r=typeof a.includeImageAlt=="boolean"?a.includeImageAlt:!0,s=typeof a.includeHtml=="boolean"?a.includeHtml:!0;return D0(e,r,s)}function D0(e,n,a){if(qk(e)){if("value"in e)return e.type==="html"&&!a?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Fv(e.children,n,a)}return Array.isArray(e)?Fv(e,n,a):""}function Fv(e,n,a){const r=[];let s=-1;for(;++s<e.length;)r[s]=D0(e[s],n,a);return r.join("")}function qk(e){return!!(e&&typeof e=="object")}const Gv=document.createElement("i");function zh(e){const n="&"+e+";";Gv.innerHTML=n;const a=Gv.textContent;return a.charCodeAt(a.length-1)===59&&e!=="semi"||a===n?!1:a}function Sn(e,n,a,r){const s=e.length;let u=0,c;if(n<0?n=-n>s?0:s+n:n=n>s?s:n,a=a>0?a:0,r.length<1e4)c=Array.from(r),c.unshift(n,a),e.splice(...c);else for(a&&e.splice(n,a);u<r.length;)c=r.slice(u,u+1e4),c.unshift(n,0),e.splice(...c),u+=1e4,n+=1e4}function Ln(e,n){return e.length>0?(Sn(e,e.length,0,n),e):n}const Yv={}.hasOwnProperty;function O0(e){const n={};let a=-1;for(;++a<e.length;)Fk(n,e[a]);return n}function Fk(e,n){let a;for(a in n){const s=(Yv.call(e,a)?e[a]:void 0)||(e[a]={}),u=n[a];let c;if(u)for(c in u){Yv.call(s,c)||(s[c]=[]);const f=u[c];Gk(s[c],Array.isArray(f)?f:f?[f]:[])}}}function Gk(e,n){let a=-1;const r=[];for(;++a<n.length;)(n[a].add==="after"?e:r).push(n[a]);Sn(e,0,0,r)}function z0(e,n){const a=Number.parseInt(e,n);return a<9||a===11||a>13&&a<32||a>126&&a<160||a>55295&&a<57344||a>64975&&a<65008||(a&65535)===65535||(a&65535)===65534||a>1114111?"�":String.fromCodePoint(a)}function Qn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const $t=ma(/[A-Za-z]/),Ft=ma(/[\dA-Za-z]/),Yk=ma(/[#-'*+\--9=?A-Z^-~]/);function au(e){return e!==null&&(e<32||e===127)}const Hd=ma(/\d/),Xk=ma(/[\dA-Fa-f]/),Kk=ma(/[!-/:-@[-`{-~]/);function Se(e){return e!==null&&e<-2}function We(e){return e!==null&&(e<0||e===32)}function Me(e){return e===-2||e===-1||e===32}const wu=ma(new RegExp("\\p{P}|\\p{S}","u")),Ia=ma(/\s/);function ma(e){return n;function n(a){return a!==null&&a>-1&&e.test(String.fromCharCode(a))}}function Kr(e){const n=[];let a=-1,r=0,s=0;for(;++a<e.length;){const u=e.charCodeAt(a);let c="";if(u===37&&Ft(e.charCodeAt(a+1))&&Ft(e.charCodeAt(a+2)))s=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(c=String.fromCharCode(u));else if(u>55295&&u<57344){const f=e.charCodeAt(a+1);u<56320&&f>56319&&f<57344?(c=String.fromCharCode(u,f),s=1):c="�"}else c=String.fromCharCode(u);c&&(n.push(e.slice(r,a),encodeURIComponent(c)),r=a+s+1,c=""),s&&(a+=s,s=0)}return n.join("")+e.slice(r)}function Be(e,n,a,r){const s=r?r-1:Number.POSITIVE_INFINITY;let u=0;return c;function c(m){return Me(m)?(e.enter(a),f(m)):n(m)}function f(m){return Me(m)&&u++<s?(e.consume(m),f):(e.exit(a),n(m))}}const Qk={tokenize:Zk};function Zk(e){const n=e.attempt(this.parser.constructs.contentInitial,r,s);let a;return n;function r(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Be(e,n,"linePrefix")}function s(f){return e.enter("paragraph"),u(f)}function u(f){const m=e.enter("chunkText",{contentType:"text",previous:a});return a&&(a.next=m),a=m,c(f)}function c(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return Se(f)?(e.consume(f),e.exit("chunkText"),u):(e.consume(f),c)}}const $k={tokenize:Jk},Xv={tokenize:Wk};function Jk(e){const n=this,a=[];let r=0,s,u,c;return f;function f(R){if(r<a.length){const Y=a[r];return n.containerState=Y[1],e.attempt(Y[0].continuation,m,h)(R)}return h(R)}function m(R){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,s&&O();const Y=n.events.length;let U=Y,z;for(;U--;)if(n.events[U][0]==="exit"&&n.events[U][1].type==="chunkFlow"){z=n.events[U][1].end;break}k(r);let Q=Y;for(;Q<n.events.length;)n.events[Q][1].end={...z},Q++;return Sn(n.events,U+1,0,n.events.slice(Y)),n.events.length=Q,h(R)}return f(R)}function h(R){if(r===a.length){if(!s)return x(R);if(s.currentConstruct&&s.currentConstruct.concrete)return E(R);n.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(Xv,v,g)(R)}function v(R){return s&&O(),k(r),x(R)}function g(R){return n.parser.lazy[n.now().line]=r!==a.length,c=n.now().offset,E(R)}function x(R){return n.containerState={},e.attempt(Xv,S,E)(R)}function S(R){return r++,a.push([n.currentConstruct,n.containerState]),x(R)}function E(R){if(R===null){s&&O(),k(0),e.consume(R);return}return s=s||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:u}),A(R)}function A(R){if(R===null){N(e.exit("chunkFlow"),!0),k(0),e.consume(R);return}return Se(R)?(e.consume(R),N(e.exit("chunkFlow")),r=0,n.interrupt=void 0,f):(e.consume(R),A)}function N(R,Y){const U=n.sliceStream(R);if(Y&&U.push(null),R.previous=u,u&&(u.next=R),u=R,s.defineSkip(R.start),s.write(U),n.parser.lazy[R.start.line]){let z=s.events.length;for(;z--;)if(s.events[z][1].start.offset<c&&(!s.events[z][1].end||s.events[z][1].end.offset>c))return;const Q=n.events.length;let ee=Q,oe,B;for(;ee--;)if(n.events[ee][0]==="exit"&&n.events[ee][1].type==="chunkFlow"){if(oe){B=n.events[ee][1].end;break}oe=!0}for(k(r),z=Q;z<n.events.length;)n.events[z][1].end={...B},z++;Sn(n.events,ee+1,0,n.events.slice(Q)),n.events.length=z}}function k(R){let Y=a.length;for(;Y-- >R;){const U=a[Y];n.containerState=U[1],U[0].exit.call(n,e)}a.length=R}function O(){s.write([null]),u=void 0,s=void 0,n.containerState._closeFlow=void 0}}function Wk(e,n,a){return Be(e,e.attempt(this.parser.constructs.document,n,a),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ir(e){if(e===null||We(e)||Ia(e))return 1;if(wu(e))return 2}function Eu(e,n,a){const r=[];let s=-1;for(;++s<e.length;){const u=e[s].resolveAll;u&&!r.includes(u)&&(n=u(n,a),r.push(u))}return n}const Pd={name:"attention",resolveAll:eN,tokenize:tN};function eN(e,n){let a=-1,r,s,u,c,f,m,h,v;for(;++a<e.length;)if(e[a][0]==="enter"&&e[a][1].type==="attentionSequence"&&e[a][1]._close){for(r=a;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[a][1]).charCodeAt(0)){if((e[r][1]._close||e[a][1]._open)&&(e[a][1].end.offset-e[a][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[a][1].end.offset-e[a][1].start.offset)%3))continue;m=e[r][1].end.offset-e[r][1].start.offset>1&&e[a][1].end.offset-e[a][1].start.offset>1?2:1;const g={...e[r][1].end},x={...e[a][1].start};Kv(g,-m),Kv(x,m),c={type:m>1?"strongSequence":"emphasisSequence",start:g,end:{...e[r][1].end}},f={type:m>1?"strongSequence":"emphasisSequence",start:{...e[a][1].start},end:x},u={type:m>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[a][1].start}},s={type:m>1?"strong":"emphasis",start:{...c.start},end:{...f.end}},e[r][1].end={...c.start},e[a][1].start={...f.end},h=[],e[r][1].end.offset-e[r][1].start.offset&&(h=Ln(h,[["enter",e[r][1],n],["exit",e[r][1],n]])),h=Ln(h,[["enter",s,n],["enter",c,n],["exit",c,n],["enter",u,n]]),h=Ln(h,Eu(n.parser.constructs.insideSpan.null,e.slice(r+1,a),n)),h=Ln(h,[["exit",u,n],["enter",f,n],["exit",f,n],["exit",s,n]]),e[a][1].end.offset-e[a][1].start.offset?(v=2,h=Ln(h,[["enter",e[a][1],n],["exit",e[a][1],n]])):v=0,Sn(e,r-1,a-r+3,h),a=r+h.length-v-2;break}}for(a=-1;++a<e.length;)e[a][1].type==="attentionSequence"&&(e[a][1].type="data");return e}function tN(e,n){const a=this.parser.constructs.attentionMarkers.null,r=this.previous,s=Ir(r);let u;return c;function c(m){return u=m,e.enter("attentionSequence"),f(m)}function f(m){if(m===u)return e.consume(m),f;const h=e.exit("attentionSequence"),v=Ir(m),g=!v||v===2&&s||a.includes(m),x=!s||s===2&&v||a.includes(r);return h._open=!!(u===42?g:g&&(s||!x)),h._close=!!(u===42?x:x&&(v||!g)),n(m)}}function Kv(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const nN={name:"autolink",tokenize:iN};function iN(e,n,a){let r=0;return s;function s(S){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(S),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),u}function u(S){return $t(S)?(e.consume(S),c):S===64?a(S):h(S)}function c(S){return S===43||S===45||S===46||Ft(S)?(r=1,f(S)):h(S)}function f(S){return S===58?(e.consume(S),r=0,m):(S===43||S===45||S===46||Ft(S))&&r++<32?(e.consume(S),f):(r=0,h(S))}function m(S){return S===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(S),e.exit("autolinkMarker"),e.exit("autolink"),n):S===null||S===32||S===60||au(S)?a(S):(e.consume(S),m)}function h(S){return S===64?(e.consume(S),v):Yk(S)?(e.consume(S),h):a(S)}function v(S){return Ft(S)?g(S):a(S)}function g(S){return S===46?(e.consume(S),r=0,v):S===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(S),e.exit("autolinkMarker"),e.exit("autolink"),n):x(S)}function x(S){if((S===45||Ft(S))&&r++<63){const E=S===45?x:g;return e.consume(S),E}return a(S)}}const gs={partial:!0,tokenize:aN};function aN(e,n,a){return r;function r(u){return Me(u)?Be(e,s,"linePrefix")(u):s(u)}function s(u){return u===null||Se(u)?n(u):a(u)}}const L0={continuation:{tokenize:lN},exit:sN,name:"blockQuote",tokenize:rN};function rN(e,n,a){const r=this;return s;function s(c){if(c===62){const f=r.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),u}return a(c)}function u(c){return Me(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(c))}}function lN(e,n,a){const r=this;return s;function s(c){return Me(c)?Be(e,u,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):u(c)}function u(c){return e.attempt(L0,n,a)(c)}}function sN(e){e.exit("blockQuote")}const _0={name:"characterEscape",tokenize:oN};function oN(e,n,a){return r;function r(u){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(u),e.exit("escapeMarker"),s}function s(u){return Kk(u)?(e.enter("characterEscapeValue"),e.consume(u),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):a(u)}}const B0={name:"characterReference",tokenize:uN};function uN(e,n,a){const r=this;let s=0,u,c;return f;function f(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),m}function m(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),u=31,c=Ft,v(g))}function h(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),u=6,c=Xk,v):(e.enter("characterReferenceValue"),u=7,c=Hd,v(g))}function v(g){if(g===59&&s){const x=e.exit("characterReferenceValue");return c===Ft&&!zh(r.sliceSerialize(x))?a(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return c(g)&&s++<u?(e.consume(g),v):a(g)}}const Qv={partial:!0,tokenize:fN},Zv={concrete:!0,name:"codeFenced",tokenize:cN};function cN(e,n,a){const r=this,s={partial:!0,tokenize:U};let u=0,c=0,f;return m;function m(z){return h(z)}function h(z){const Q=r.events[r.events.length-1];return u=Q&&Q[1].type==="linePrefix"?Q[2].sliceSerialize(Q[1],!0).length:0,f=z,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),v(z)}function v(z){return z===f?(c++,e.consume(z),v):c<3?a(z):(e.exit("codeFencedFenceSequence"),Me(z)?Be(e,g,"whitespace")(z):g(z))}function g(z){return z===null||Se(z)?(e.exit("codeFencedFence"),r.interrupt?n(z):e.check(Qv,A,Y)(z)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),x(z))}function x(z){return z===null||Se(z)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(z)):Me(z)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Be(e,S,"whitespace")(z)):z===96&&z===f?a(z):(e.consume(z),x)}function S(z){return z===null||Se(z)?g(z):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),E(z))}function E(z){return z===null||Se(z)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(z)):z===96&&z===f?a(z):(e.consume(z),E)}function A(z){return e.attempt(s,Y,N)(z)}function N(z){return e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),k}function k(z){return u>0&&Me(z)?Be(e,O,"linePrefix",u+1)(z):O(z)}function O(z){return z===null||Se(z)?e.check(Qv,A,Y)(z):(e.enter("codeFlowValue"),R(z))}function R(z){return z===null||Se(z)?(e.exit("codeFlowValue"),O(z)):(e.consume(z),R)}function Y(z){return e.exit("codeFenced"),n(z)}function U(z,Q,ee){let oe=0;return B;function B(ne){return z.enter("lineEnding"),z.consume(ne),z.exit("lineEnding"),ae}function ae(ne){return z.enter("codeFencedFence"),Me(ne)?Be(z,re,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ne):re(ne)}function re(ne){return ne===f?(z.enter("codeFencedFenceSequence"),te(ne)):ee(ne)}function te(ne){return ne===f?(oe++,z.consume(ne),te):oe>=c?(z.exit("codeFencedFenceSequence"),Me(ne)?Be(z,se,"whitespace")(ne):se(ne)):ee(ne)}function se(ne){return ne===null||Se(ne)?(z.exit("codeFencedFence"),Q(ne)):ee(ne)}}}function fN(e,n,a){const r=this;return s;function s(c){return c===null?a(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u)}function u(c){return r.parser.lazy[r.now().line]?a(c):n(c)}}const Jf={name:"codeIndented",tokenize:hN},dN={partial:!0,tokenize:mN};function hN(e,n,a){const r=this;return s;function s(h){return e.enter("codeIndented"),Be(e,u,"linePrefix",5)(h)}function u(h){const v=r.events[r.events.length-1];return v&&v[1].type==="linePrefix"&&v[2].sliceSerialize(v[1],!0).length>=4?c(h):a(h)}function c(h){return h===null?m(h):Se(h)?e.attempt(dN,c,m)(h):(e.enter("codeFlowValue"),f(h))}function f(h){return h===null||Se(h)?(e.exit("codeFlowValue"),c(h)):(e.consume(h),f)}function m(h){return e.exit("codeIndented"),n(h)}}function mN(e,n,a){const r=this;return s;function s(c){return r.parser.lazy[r.now().line]?a(c):Se(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):Be(e,u,"linePrefix",5)(c)}function u(c){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?n(c):Se(c)?s(c):a(c)}}const pN={name:"codeText",previous:yN,resolve:gN,tokenize:vN};function gN(e){let n=e.length-4,a=3,r,s;if((e[a][1].type==="lineEnding"||e[a][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=a;++r<n;)if(e[r][1].type==="codeTextData"){e[a][1].type="codeTextPadding",e[n][1].type="codeTextPadding",a+=2,n-=2;break}}for(r=a-1,n++;++r<=n;)s===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(s=r):(r===n||e[r][1].type==="lineEnding")&&(e[s][1].type="codeTextData",r!==s+2&&(e[s][1].end=e[r-1][1].end,e.splice(s+2,r-s-2),n-=r-s-2,r=s+2),s=void 0);return e}function yN(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function vN(e,n,a){let r=0,s,u;return c;function c(g){return e.enter("codeText"),e.enter("codeTextSequence"),f(g)}function f(g){return g===96?(e.consume(g),r++,f):(e.exit("codeTextSequence"),m(g))}function m(g){return g===null?a(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),m):g===96?(u=e.enter("codeTextSequence"),s=0,v(g)):Se(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),m):(e.enter("codeTextData"),h(g))}function h(g){return g===null||g===32||g===96||Se(g)?(e.exit("codeTextData"),m(g)):(e.consume(g),h)}function v(g){return g===96?(e.consume(g),s++,v):s===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(g)):(u.type="codeTextData",h(g))}}class xN{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,a){const r=a??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,a,r){const s=a||0;this.setCursor(Math.trunc(n));const u=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return r&&Yl(this.left,r),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Yl(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Yl(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const a=this.left.splice(n,Number.POSITIVE_INFINITY);Yl(this.right,a.reverse())}else{const a=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Yl(this.left,a.reverse())}}}function Yl(e,n){let a=0;if(n.length<1e4)e.push(...n);else for(;a<n.length;)e.push(...n.slice(a,a+1e4)),a+=1e4}function V0(e){const n={};let a=-1,r,s,u,c,f,m,h;const v=new xN(e);for(;++a<v.length;){for(;a in n;)a=n[a];if(r=v.get(a),a&&r[1].type==="chunkFlow"&&v.get(a-1)[1].type==="listItemPrefix"&&(m=r[1]._tokenizer.events,u=0,u<m.length&&m[u][1].type==="lineEndingBlank"&&(u+=2),u<m.length&&m[u][1].type==="content"))for(;++u<m.length&&m[u][1].type!=="content";)m[u][1].type==="chunkText"&&(m[u][1]._isInFirstContentOfListItem=!0,u++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,bN(v,a)),a=n[a],h=!0);else if(r[1]._container){for(u=a,s=void 0;u--;)if(c=v.get(u),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(s&&(v.get(s)[1].type="lineEndingBlank"),c[1].type="lineEnding",s=u);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;s&&(r[1].end={...v.get(s)[1].start},f=v.slice(s,a),f.unshift(r),v.splice(s,a-s+1,f))}}return Sn(e,0,Number.POSITIVE_INFINITY,v.slice(0)),!h}function bN(e,n){const a=e.get(n)[1],r=e.get(n)[2];let s=n-1;const u=[];let c=a._tokenizer;c||(c=r.parser[a.contentType](a.start),a._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const f=c.events,m=[],h={};let v,g,x=-1,S=a,E=0,A=0;const N=[A];for(;S;){for(;e.get(++s)[1]!==S;);u.push(s),S._tokenizer||(v=r.sliceStream(S),S.next||v.push(null),g&&c.defineSkip(S.start),S._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(v),S._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),g=S,S=S.next}for(S=a;++x<f.length;)f[x][0]==="exit"&&f[x-1][0]==="enter"&&f[x][1].type===f[x-1][1].type&&f[x][1].start.line!==f[x][1].end.line&&(A=x+1,N.push(A),S._tokenizer=void 0,S.previous=void 0,S=S.next);for(c.events=[],S?(S._tokenizer=void 0,S.previous=void 0):N.pop(),x=N.length;x--;){const k=f.slice(N[x],N[x+1]),O=u.pop();m.push([O,O+k.length-1]),e.splice(O,2,k)}for(m.reverse(),x=-1;++x<m.length;)h[E+m[x][0]]=E+m[x][1],E+=m[x][1]-m[x][0]-1;return h}const SN={resolve:EN,tokenize:TN},wN={partial:!0,tokenize:CN};function EN(e){return V0(e),e}function TN(e,n){let a;return r;function r(f){return e.enter("content"),a=e.enter("chunkContent",{contentType:"content"}),s(f)}function s(f){return f===null?u(f):Se(f)?e.check(wN,c,u)(f):(e.consume(f),s)}function u(f){return e.exit("chunkContent"),e.exit("content"),n(f)}function c(f){return e.consume(f),e.exit("chunkContent"),a.next=e.enter("chunkContent",{contentType:"content",previous:a}),a=a.next,s}}function CN(e,n,a){const r=this;return s;function s(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),Be(e,u,"linePrefix")}function u(c){if(c===null||Se(c))return a(c);const f=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?n(c):e.interrupt(r.parser.constructs.flow,a,n)(c)}}function U0(e,n,a,r,s,u,c,f,m){const h=m||Number.POSITIVE_INFINITY;let v=0;return g;function g(k){return k===60?(e.enter(r),e.enter(s),e.enter(u),e.consume(k),e.exit(u),x):k===null||k===32||k===41||au(k)?a(k):(e.enter(r),e.enter(c),e.enter(f),e.enter("chunkString",{contentType:"string"}),A(k))}function x(k){return k===62?(e.enter(u),e.consume(k),e.exit(u),e.exit(s),e.exit(r),n):(e.enter(f),e.enter("chunkString",{contentType:"string"}),S(k))}function S(k){return k===62?(e.exit("chunkString"),e.exit(f),x(k)):k===null||k===60||Se(k)?a(k):(e.consume(k),k===92?E:S)}function E(k){return k===60||k===62||k===92?(e.consume(k),S):S(k)}function A(k){return!v&&(k===null||k===41||We(k))?(e.exit("chunkString"),e.exit(f),e.exit(c),e.exit(r),n(k)):v<h&&k===40?(e.consume(k),v++,A):k===41?(e.consume(k),v--,A):k===null||k===32||k===40||au(k)?a(k):(e.consume(k),k===92?N:A)}function N(k){return k===40||k===41||k===92?(e.consume(k),A):A(k)}}function H0(e,n,a,r,s,u){const c=this;let f=0,m;return h;function h(S){return e.enter(r),e.enter(s),e.consume(S),e.exit(s),e.enter(u),v}function v(S){return f>999||S===null||S===91||S===93&&!m||S===94&&!f&&"_hiddenFootnoteSupport"in c.parser.constructs?a(S):S===93?(e.exit(u),e.enter(s),e.consume(S),e.exit(s),e.exit(r),n):Se(S)?(e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),v):(e.enter("chunkString",{contentType:"string"}),g(S))}function g(S){return S===null||S===91||S===93||Se(S)||f++>999?(e.exit("chunkString"),v(S)):(e.consume(S),m||(m=!Me(S)),S===92?x:g)}function x(S){return S===91||S===92||S===93?(e.consume(S),f++,g):g(S)}}function P0(e,n,a,r,s,u){let c;return f;function f(x){return x===34||x===39||x===40?(e.enter(r),e.enter(s),e.consume(x),e.exit(s),c=x===40?41:x,m):a(x)}function m(x){return x===c?(e.enter(s),e.consume(x),e.exit(s),e.exit(r),n):(e.enter(u),h(x))}function h(x){return x===c?(e.exit(u),m(c)):x===null?a(x):Se(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),Be(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),v(x))}function v(x){return x===c||x===null||Se(x)?(e.exit("chunkString"),h(x)):(e.consume(x),x===92?g:v)}function g(x){return x===c||x===92?(e.consume(x),v):v(x)}}function Jl(e,n){let a;return r;function r(s){return Se(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a=!0,r):Me(s)?Be(e,r,a?"linePrefix":"lineSuffix")(s):n(s)}}const AN={name:"definition",tokenize:NN},kN={partial:!0,tokenize:jN};function NN(e,n,a){const r=this;let s;return u;function u(S){return e.enter("definition"),c(S)}function c(S){return H0.call(r,e,f,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(S)}function f(S){return s=Qn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),S===58?(e.enter("definitionMarker"),e.consume(S),e.exit("definitionMarker"),m):a(S)}function m(S){return We(S)?Jl(e,h)(S):h(S)}function h(S){return U0(e,v,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(S)}function v(S){return e.attempt(kN,g,g)(S)}function g(S){return Me(S)?Be(e,x,"whitespace")(S):x(S)}function x(S){return S===null||Se(S)?(e.exit("definition"),r.parser.defined.push(s),n(S)):a(S)}}function jN(e,n,a){return r;function r(f){return We(f)?Jl(e,s)(f):a(f)}function s(f){return P0(e,u,a,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function u(f){return Me(f)?Be(e,c,"whitespace")(f):c(f)}function c(f){return f===null||Se(f)?n(f):a(f)}}const RN={name:"hardBreakEscape",tokenize:MN};function MN(e,n,a){return r;function r(u){return e.enter("hardBreakEscape"),e.consume(u),s}function s(u){return Se(u)?(e.exit("hardBreakEscape"),n(u)):a(u)}}const DN={name:"headingAtx",resolve:ON,tokenize:zN};function ON(e,n){let a=e.length-2,r=3,s,u;return e[r][1].type==="whitespace"&&(r+=2),a-2>r&&e[a][1].type==="whitespace"&&(a-=2),e[a][1].type==="atxHeadingSequence"&&(r===a-1||a-4>r&&e[a-2][1].type==="whitespace")&&(a-=r+1===a?2:4),a>r&&(s={type:"atxHeadingText",start:e[r][1].start,end:e[a][1].end},u={type:"chunkText",start:e[r][1].start,end:e[a][1].end,contentType:"text"},Sn(e,r,a-r+1,[["enter",s,n],["enter",u,n],["exit",u,n],["exit",s,n]])),e}function zN(e,n,a){let r=0;return s;function s(v){return e.enter("atxHeading"),u(v)}function u(v){return e.enter("atxHeadingSequence"),c(v)}function c(v){return v===35&&r++<6?(e.consume(v),c):v===null||We(v)?(e.exit("atxHeadingSequence"),f(v)):a(v)}function f(v){return v===35?(e.enter("atxHeadingSequence"),m(v)):v===null||Se(v)?(e.exit("atxHeading"),n(v)):Me(v)?Be(e,f,"whitespace")(v):(e.enter("atxHeadingText"),h(v))}function m(v){return v===35?(e.consume(v),m):(e.exit("atxHeadingSequence"),f(v))}function h(v){return v===null||v===35||We(v)?(e.exit("atxHeadingText"),f(v)):(e.consume(v),h)}}const LN=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],$v=["pre","script","style","textarea"],_N={concrete:!0,name:"htmlFlow",resolveTo:UN,tokenize:HN},BN={partial:!0,tokenize:IN},VN={partial:!0,tokenize:PN};function UN(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function HN(e,n,a){const r=this;let s,u,c,f,m;return h;function h(C){return v(C)}function v(C){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(C),g}function g(C){return C===33?(e.consume(C),x):C===47?(e.consume(C),u=!0,A):C===63?(e.consume(C),s=3,r.interrupt?n:j):$t(C)?(e.consume(C),c=String.fromCharCode(C),N):a(C)}function x(C){return C===45?(e.consume(C),s=2,S):C===91?(e.consume(C),s=5,f=0,E):$t(C)?(e.consume(C),s=4,r.interrupt?n:j):a(C)}function S(C){return C===45?(e.consume(C),r.interrupt?n:j):a(C)}function E(C){const ce="CDATA[";return C===ce.charCodeAt(f++)?(e.consume(C),f===ce.length?r.interrupt?n:re:E):a(C)}function A(C){return $t(C)?(e.consume(C),c=String.fromCharCode(C),N):a(C)}function N(C){if(C===null||C===47||C===62||We(C)){const ce=C===47,de=c.toLowerCase();return!ce&&!u&&$v.includes(de)?(s=1,r.interrupt?n(C):re(C)):LN.includes(c.toLowerCase())?(s=6,ce?(e.consume(C),k):r.interrupt?n(C):re(C)):(s=7,r.interrupt&&!r.parser.lazy[r.now().line]?a(C):u?O(C):R(C))}return C===45||Ft(C)?(e.consume(C),c+=String.fromCharCode(C),N):a(C)}function k(C){return C===62?(e.consume(C),r.interrupt?n:re):a(C)}function O(C){return Me(C)?(e.consume(C),O):B(C)}function R(C){return C===47?(e.consume(C),B):C===58||C===95||$t(C)?(e.consume(C),Y):Me(C)?(e.consume(C),R):B(C)}function Y(C){return C===45||C===46||C===58||C===95||Ft(C)?(e.consume(C),Y):U(C)}function U(C){return C===61?(e.consume(C),z):Me(C)?(e.consume(C),U):R(C)}function z(C){return C===null||C===60||C===61||C===62||C===96?a(C):C===34||C===39?(e.consume(C),m=C,Q):Me(C)?(e.consume(C),z):ee(C)}function Q(C){return C===m?(e.consume(C),m=null,oe):C===null||Se(C)?a(C):(e.consume(C),Q)}function ee(C){return C===null||C===34||C===39||C===47||C===60||C===61||C===62||C===96||We(C)?U(C):(e.consume(C),ee)}function oe(C){return C===47||C===62||Me(C)?R(C):a(C)}function B(C){return C===62?(e.consume(C),ae):a(C)}function ae(C){return C===null||Se(C)?re(C):Me(C)?(e.consume(C),ae):a(C)}function re(C){return C===45&&s===2?(e.consume(C),H):C===60&&s===1?(e.consume(C),$):C===62&&s===4?(e.consume(C),D):C===63&&s===3?(e.consume(C),j):C===93&&s===5?(e.consume(C),xe):Se(C)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(BN,X,te)(C)):C===null||Se(C)?(e.exit("htmlFlowData"),te(C)):(e.consume(C),re)}function te(C){return e.check(VN,se,X)(C)}function se(C){return e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),ne}function ne(C){return C===null||Se(C)?te(C):(e.enter("htmlFlowData"),re(C))}function H(C){return C===45?(e.consume(C),j):re(C)}function $(C){return C===47?(e.consume(C),c="",ue):re(C)}function ue(C){if(C===62){const ce=c.toLowerCase();return $v.includes(ce)?(e.consume(C),D):re(C)}return $t(C)&&c.length<8?(e.consume(C),c+=String.fromCharCode(C),ue):re(C)}function xe(C){return C===93?(e.consume(C),j):re(C)}function j(C){return C===62?(e.consume(C),D):C===45&&s===2?(e.consume(C),j):re(C)}function D(C){return C===null||Se(C)?(e.exit("htmlFlowData"),X(C)):(e.consume(C),D)}function X(C){return e.exit("htmlFlow"),n(C)}}function PN(e,n,a){const r=this;return s;function s(c){return Se(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):a(c)}function u(c){return r.parser.lazy[r.now().line]?a(c):n(c)}}function IN(e,n,a){return r;function r(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(gs,n,a)}}const qN={name:"htmlText",tokenize:FN};function FN(e,n,a){const r=this;let s,u,c;return f;function f(j){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(j),m}function m(j){return j===33?(e.consume(j),h):j===47?(e.consume(j),U):j===63?(e.consume(j),R):$t(j)?(e.consume(j),ee):a(j)}function h(j){return j===45?(e.consume(j),v):j===91?(e.consume(j),u=0,E):$t(j)?(e.consume(j),O):a(j)}function v(j){return j===45?(e.consume(j),S):a(j)}function g(j){return j===null?a(j):j===45?(e.consume(j),x):Se(j)?(c=g,$(j)):(e.consume(j),g)}function x(j){return j===45?(e.consume(j),S):g(j)}function S(j){return j===62?H(j):j===45?x(j):g(j)}function E(j){const D="CDATA[";return j===D.charCodeAt(u++)?(e.consume(j),u===D.length?A:E):a(j)}function A(j){return j===null?a(j):j===93?(e.consume(j),N):Se(j)?(c=A,$(j)):(e.consume(j),A)}function N(j){return j===93?(e.consume(j),k):A(j)}function k(j){return j===62?H(j):j===93?(e.consume(j),k):A(j)}function O(j){return j===null||j===62?H(j):Se(j)?(c=O,$(j)):(e.consume(j),O)}function R(j){return j===null?a(j):j===63?(e.consume(j),Y):Se(j)?(c=R,$(j)):(e.consume(j),R)}function Y(j){return j===62?H(j):R(j)}function U(j){return $t(j)?(e.consume(j),z):a(j)}function z(j){return j===45||Ft(j)?(e.consume(j),z):Q(j)}function Q(j){return Se(j)?(c=Q,$(j)):Me(j)?(e.consume(j),Q):H(j)}function ee(j){return j===45||Ft(j)?(e.consume(j),ee):j===47||j===62||We(j)?oe(j):a(j)}function oe(j){return j===47?(e.consume(j),H):j===58||j===95||$t(j)?(e.consume(j),B):Se(j)?(c=oe,$(j)):Me(j)?(e.consume(j),oe):H(j)}function B(j){return j===45||j===46||j===58||j===95||Ft(j)?(e.consume(j),B):ae(j)}function ae(j){return j===61?(e.consume(j),re):Se(j)?(c=ae,$(j)):Me(j)?(e.consume(j),ae):oe(j)}function re(j){return j===null||j===60||j===61||j===62||j===96?a(j):j===34||j===39?(e.consume(j),s=j,te):Se(j)?(c=re,$(j)):Me(j)?(e.consume(j),re):(e.consume(j),se)}function te(j){return j===s?(e.consume(j),s=void 0,ne):j===null?a(j):Se(j)?(c=te,$(j)):(e.consume(j),te)}function se(j){return j===null||j===34||j===39||j===60||j===61||j===96?a(j):j===47||j===62||We(j)?oe(j):(e.consume(j),se)}function ne(j){return j===47||j===62||We(j)?oe(j):a(j)}function H(j){return j===62?(e.consume(j),e.exit("htmlTextData"),e.exit("htmlText"),n):a(j)}function $(j){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),ue}function ue(j){return Me(j)?Be(e,xe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):xe(j)}function xe(j){return e.enter("htmlTextData"),c(j)}}const Lh={name:"labelEnd",resolveAll:KN,resolveTo:QN,tokenize:ZN},GN={tokenize:$N},YN={tokenize:JN},XN={tokenize:WN};function KN(e){let n=-1;const a=[];for(;++n<e.length;){const r=e[n][1];if(a.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const s=r.type==="labelImage"?4:2;r.type="data",n+=s}}return e.length!==a.length&&Sn(e,0,e.length,a),e}function QN(e,n){let a=e.length,r=0,s,u,c,f;for(;a--;)if(s=e[a][1],u){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[a][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(c){if(e[a][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(u=a,s.type!=="labelLink")){r=2;break}}else s.type==="labelEnd"&&(c=a);const m={type:e[u][1].type==="labelLink"?"link":"image",start:{...e[u][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[u][1].start},end:{...e[c][1].end}},v={type:"labelText",start:{...e[u+r+2][1].end},end:{...e[c-2][1].start}};return f=[["enter",m,n],["enter",h,n]],f=Ln(f,e.slice(u+1,u+r+3)),f=Ln(f,[["enter",v,n]]),f=Ln(f,Eu(n.parser.constructs.insideSpan.null,e.slice(u+r+4,c-3),n)),f=Ln(f,[["exit",v,n],e[c-2],e[c-1],["exit",h,n]]),f=Ln(f,e.slice(c+1)),f=Ln(f,[["exit",m,n]]),Sn(e,u,e.length,f),e}function ZN(e,n,a){const r=this;let s=r.events.length,u,c;for(;s--;)if((r.events[s][1].type==="labelImage"||r.events[s][1].type==="labelLink")&&!r.events[s][1]._balanced){u=r.events[s][1];break}return f;function f(x){return u?u._inactive?g(x):(c=r.parser.defined.includes(Qn(r.sliceSerialize({start:u.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(x),e.exit("labelMarker"),e.exit("labelEnd"),m):a(x)}function m(x){return x===40?e.attempt(GN,v,c?v:g)(x):x===91?e.attempt(YN,v,c?h:g)(x):c?v(x):g(x)}function h(x){return e.attempt(XN,v,g)(x)}function v(x){return n(x)}function g(x){return u._balanced=!0,a(x)}}function $N(e,n,a){return r;function r(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),s}function s(g){return We(g)?Jl(e,u)(g):u(g)}function u(g){return g===41?v(g):U0(e,c,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function c(g){return We(g)?Jl(e,m)(g):v(g)}function f(g){return a(g)}function m(g){return g===34||g===39||g===40?P0(e,h,a,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):v(g)}function h(g){return We(g)?Jl(e,v)(g):v(g)}function v(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),n):a(g)}}function JN(e,n,a){const r=this;return s;function s(f){return H0.call(r,e,u,c,"reference","referenceMarker","referenceString")(f)}function u(f){return r.parser.defined.includes(Qn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(f):a(f)}function c(f){return a(f)}}function WN(e,n,a){return r;function r(u){return e.enter("reference"),e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),s}function s(u){return u===93?(e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),e.exit("reference"),n):a(u)}}const ej={name:"labelStartImage",resolveAll:Lh.resolveAll,tokenize:tj};function tj(e,n,a){const r=this;return s;function s(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),u}function u(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),c):a(f)}function c(f){return f===94&&"_hiddenFootnoteSupport"in r.parser.constructs?a(f):n(f)}}const nj={name:"labelStartLink",resolveAll:Lh.resolveAll,tokenize:ij};function ij(e,n,a){const r=this;return s;function s(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),u}function u(c){return c===94&&"_hiddenFootnoteSupport"in r.parser.constructs?a(c):n(c)}}const Wf={name:"lineEnding",tokenize:aj};function aj(e,n){return a;function a(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Be(e,n,"linePrefix")}}const Ko={name:"thematicBreak",tokenize:rj};function rj(e,n,a){let r=0,s;return u;function u(h){return e.enter("thematicBreak"),c(h)}function c(h){return s=h,f(h)}function f(h){return h===s?(e.enter("thematicBreakSequence"),m(h)):r>=3&&(h===null||Se(h))?(e.exit("thematicBreak"),n(h)):a(h)}function m(h){return h===s?(e.consume(h),r++,m):(e.exit("thematicBreakSequence"),Me(h)?Be(e,f,"whitespace")(h):f(h))}}const on={continuation:{tokenize:uj},exit:fj,name:"list",tokenize:oj},lj={partial:!0,tokenize:dj},sj={partial:!0,tokenize:cj};function oj(e,n,a){const r=this,s=r.events[r.events.length-1];let u=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,c=0;return f;function f(S){const E=r.containerState.type||(S===42||S===43||S===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!r.containerState.marker||S===r.containerState.marker:Hd(S)){if(r.containerState.type||(r.containerState.type=E,e.enter(E,{_container:!0})),E==="listUnordered")return e.enter("listItemPrefix"),S===42||S===45?e.check(Ko,a,h)(S):h(S);if(!r.interrupt||S===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),m(S)}return a(S)}function m(S){return Hd(S)&&++c<10?(e.consume(S),m):(!r.interrupt||c<2)&&(r.containerState.marker?S===r.containerState.marker:S===41||S===46)?(e.exit("listItemValue"),h(S)):a(S)}function h(S){return e.enter("listItemMarker"),e.consume(S),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||S,e.check(gs,r.interrupt?a:v,e.attempt(lj,x,g))}function v(S){return r.containerState.initialBlankLine=!0,u++,x(S)}function g(S){return Me(S)?(e.enter("listItemPrefixWhitespace"),e.consume(S),e.exit("listItemPrefixWhitespace"),x):a(S)}function x(S){return r.containerState.size=u+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(S)}}function uj(e,n,a){const r=this;return r.containerState._closeFlow=void 0,e.check(gs,s,u);function s(f){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Be(e,n,"listItemIndent",r.containerState.size+1)(f)}function u(f){return r.containerState.furtherBlankLines||!Me(f)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,c(f)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(sj,n,c)(f))}function c(f){return r.containerState._closeFlow=!0,r.interrupt=void 0,Be(e,e.attempt(on,n,a),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function cj(e,n,a){const r=this;return Be(e,s,"listItemIndent",r.containerState.size+1);function s(u){const c=r.events[r.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===r.containerState.size?n(u):a(u)}}function fj(e){e.exit(this.containerState.type)}function dj(e,n,a){const r=this;return Be(e,s,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(u){const c=r.events[r.events.length-1];return!Me(u)&&c&&c[1].type==="listItemPrefixWhitespace"?n(u):a(u)}}const Jv={name:"setextUnderline",resolveTo:hj,tokenize:mj};function hj(e,n){let a=e.length,r,s,u;for(;a--;)if(e[a][0]==="enter"){if(e[a][1].type==="content"){r=a;break}e[a][1].type==="paragraph"&&(s=a)}else e[a][1].type==="content"&&e.splice(a,1),!u&&e[a][1].type==="definition"&&(u=a);const c={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",u?(e.splice(s,0,["enter",c,n]),e.splice(u+1,0,["exit",e[r][1],n]),e[r][1].end={...e[u][1].end}):e[r][1]=c,e.push(["exit",c,n]),e}function mj(e,n,a){const r=this;let s;return u;function u(h){let v=r.events.length,g;for(;v--;)if(r.events[v][1].type!=="lineEnding"&&r.events[v][1].type!=="linePrefix"&&r.events[v][1].type!=="content"){g=r.events[v][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||g)?(e.enter("setextHeadingLine"),s=h,c(h)):a(h)}function c(h){return e.enter("setextHeadingLineSequence"),f(h)}function f(h){return h===s?(e.consume(h),f):(e.exit("setextHeadingLineSequence"),Me(h)?Be(e,m,"lineSuffix")(h):m(h))}function m(h){return h===null||Se(h)?(e.exit("setextHeadingLine"),n(h)):a(h)}}const pj={tokenize:gj};function gj(e){const n=this,a=e.attempt(gs,r,e.attempt(this.parser.constructs.flowInitial,s,Be(e,e.attempt(this.parser.constructs.flow,s,e.attempt(SN,s)),"linePrefix")));return a;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEndingBlank"),e.consume(u),e.exit("lineEndingBlank"),n.currentConstruct=void 0,a}function s(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),n.currentConstruct=void 0,a}}const yj={resolveAll:q0()},vj=I0("string"),xj=I0("text");function I0(e){return{resolveAll:q0(e==="text"?bj:void 0),tokenize:n};function n(a){const r=this,s=this.parser.constructs[e],u=a.attempt(s,c,f);return c;function c(v){return h(v)?u(v):f(v)}function f(v){if(v===null){a.consume(v);return}return a.enter("data"),a.consume(v),m}function m(v){return h(v)?(a.exit("data"),u(v)):(a.consume(v),m)}function h(v){if(v===null)return!0;const g=s[v];let x=-1;if(g)for(;++x<g.length;){const S=g[x];if(!S.previous||S.previous.call(r,r.previous))return!0}return!1}}}function q0(e){return n;function n(a,r){let s=-1,u;for(;++s<=a.length;)u===void 0?a[s]&&a[s][1].type==="data"&&(u=s,s++):(!a[s]||a[s][1].type!=="data")&&(s!==u+2&&(a[u][1].end=a[s-1][1].end,a.splice(u+2,s-u-2),s=u+2),u=void 0);return e?e(a,r):a}}function bj(e,n){let a=0;for(;++a<=e.length;)if((a===e.length||e[a][1].type==="lineEnding")&&e[a-1][1].type==="data"){const r=e[a-1][1],s=n.sliceStream(r);let u=s.length,c=-1,f=0,m;for(;u--;){const h=s[u];if(typeof h=="string"){for(c=h.length;h.charCodeAt(c-1)===32;)f++,c--;if(c)break;c=-1}else if(h===-2)m=!0,f++;else if(h!==-1){u++;break}}if(n._contentTypeTextTrailing&&a===e.length&&(f=0),f){const h={type:a===e.length||m||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:u?c:r.start._bufferIndex+c,_index:r.start._index+u,line:r.end.line,column:r.end.column-f,offset:r.end.offset-f},end:{...r.end}};r.end={...h.start},r.start.offset===r.end.offset?Object.assign(r,h):(e.splice(a,0,["enter",h,n],["exit",h,n]),a+=2)}a++}return e}const Sj={42:on,43:on,45:on,48:on,49:on,50:on,51:on,52:on,53:on,54:on,55:on,56:on,57:on,62:L0},wj={91:AN},Ej={[-2]:Jf,[-1]:Jf,32:Jf},Tj={35:DN,42:Ko,45:[Jv,Ko],60:_N,61:Jv,95:Ko,96:Zv,126:Zv},Cj={38:B0,92:_0},Aj={[-5]:Wf,[-4]:Wf,[-3]:Wf,33:ej,38:B0,42:Pd,60:[nN,qN],91:nj,92:[RN,_0],93:Lh,95:Pd,96:pN},kj={null:[Pd,yj]},Nj={null:[42,95]},jj={null:[]},Rj=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Nj,contentInitial:wj,disable:jj,document:Sj,flow:Tj,flowInitial:Ej,insideSpan:kj,string:Cj,text:Aj},Symbol.toStringTag,{value:"Module"}));function Mj(e,n,a){let r={_bufferIndex:-1,_index:0,line:a&&a.line||1,column:a&&a.column||1,offset:a&&a.offset||0};const s={},u=[];let c=[],f=[];const m={attempt:Q(U),check:Q(z),consume:O,enter:R,exit:Y,interrupt:Q(z,{interrupt:!0})},h={code:null,containerState:{},defineSkip:A,events:[],now:E,parser:e,previous:null,sliceSerialize:x,sliceStream:S,write:g};let v=n.tokenize.call(h,m);return n.resolveAll&&u.push(n),h;function g(ae){return c=Ln(c,ae),N(),c[c.length-1]!==null?[]:(ee(n,0),h.events=Eu(u,h.events,h),h.events)}function x(ae,re){return Oj(S(ae),re)}function S(ae){return Dj(c,ae)}function E(){const{_bufferIndex:ae,_index:re,line:te,column:se,offset:ne}=r;return{_bufferIndex:ae,_index:re,line:te,column:se,offset:ne}}function A(ae){s[ae.line]=ae.column,B()}function N(){let ae;for(;r._index<c.length;){const re=c[r._index];if(typeof re=="string")for(ae=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===ae&&r._bufferIndex<re.length;)k(re.charCodeAt(r._bufferIndex));else k(re)}}function k(ae){v=v(ae)}function O(ae){Se(ae)?(r.line++,r.column=1,r.offset+=ae===-3?2:1,B()):ae!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===c[r._index].length&&(r._bufferIndex=-1,r._index++)),h.previous=ae}function R(ae,re){const te=re||{};return te.type=ae,te.start=E(),h.events.push(["enter",te,h]),f.push(te),te}function Y(ae){const re=f.pop();return re.end=E(),h.events.push(["exit",re,h]),re}function U(ae,re){ee(ae,re.from)}function z(ae,re){re.restore()}function Q(ae,re){return te;function te(se,ne,H){let $,ue,xe,j;return Array.isArray(se)?X(se):"tokenize"in se?X([se]):D(se);function D(ge){return pe;function pe(Ie){const ze=Ie!==null&&ge[Ie],ut=Ie!==null&&ge.null,Xe=[...Array.isArray(ze)?ze:ze?[ze]:[],...Array.isArray(ut)?ut:ut?[ut]:[]];return X(Xe)(Ie)}}function X(ge){return $=ge,ue=0,ge.length===0?H:C(ge[ue])}function C(ge){return pe;function pe(Ie){return j=oe(),xe=ge,ge.partial||(h.currentConstruct=ge),ge.name&&h.parser.constructs.disable.null.includes(ge.name)?de():ge.tokenize.call(re?Object.assign(Object.create(h),re):h,m,ce,de)(Ie)}}function ce(ge){return ae(xe,j),ne}function de(ge){return j.restore(),++ue<$.length?C($[ue]):H}}}function ee(ae,re){ae.resolveAll&&!u.includes(ae)&&u.push(ae),ae.resolve&&Sn(h.events,re,h.events.length-re,ae.resolve(h.events.slice(re),h)),ae.resolveTo&&(h.events=ae.resolveTo(h.events,h))}function oe(){const ae=E(),re=h.previous,te=h.currentConstruct,se=h.events.length,ne=Array.from(f);return{from:se,restore:H};function H(){r=ae,h.previous=re,h.currentConstruct=te,h.events.length=se,f=ne,B()}}function B(){r.line in s&&r.column<2&&(r.column=s[r.line],r.offset+=s[r.line]-1)}}function Dj(e,n){const a=n.start._index,r=n.start._bufferIndex,s=n.end._index,u=n.end._bufferIndex;let c;if(a===s)c=[e[a].slice(r,u)];else{if(c=e.slice(a,s),r>-1){const f=c[0];typeof f=="string"?c[0]=f.slice(r):c.shift()}u>0&&c.push(e[s].slice(0,u))}return c}function Oj(e,n){let a=-1;const r=[];let s;for(;++a<e.length;){const u=e[a];let c;if(typeof u=="string")c=u;else switch(u){case-5:{c="\r";break}case-4:{c=`
|
|
15
|
-
`;break}case-3:{c=`\r
|
|
16
|
-
`;break}case-2:{c=n?" ":" ";break}case-1:{if(!n&&s)continue;c=" ";break}default:c=String.fromCharCode(u)}s=u===-2,r.push(c)}return r.join("")}function zj(e){const r={constructs:O0([Rj,...(e||{}).extensions||[]]),content:s(Qk),defined:[],document:s($k),flow:s(pj),lazy:{},string:s(vj),text:s(xj)};return r;function s(u){return c;function c(f){return Mj(r,u,f)}}}function Lj(e){for(;!V0(e););return e}const Wv=/[\0\t\n\r]/g;function _j(){let e=1,n="",a=!0,r;return s;function s(u,c,f){const m=[];let h,v,g,x,S;for(u=n+(typeof u=="string"?u.toString():new TextDecoder(c||void 0).decode(u)),g=0,n="",a&&(u.charCodeAt(0)===65279&&g++,a=void 0);g<u.length;){if(Wv.lastIndex=g,h=Wv.exec(u),x=h&&h.index!==void 0?h.index:u.length,S=u.charCodeAt(x),!h){n=u.slice(g);break}if(S===10&&g===x&&r)m.push(-3),r=void 0;else switch(r&&(m.push(-5),r=void 0),g<x&&(m.push(u.slice(g,x)),e+=x-g),S){case 0:{m.push(65533),e++;break}case 9:{for(v=Math.ceil(e/4)*4,m.push(-2);e++<v;)m.push(-1);break}case 10:{m.push(-4),e=1;break}default:r=!0,e=1}g=x+1}return f&&(r&&m.push(-5),n&&m.push(n),m.push(null)),m}}const Bj=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Vj(e){return e.replace(Bj,Uj)}function Uj(e,n,a){if(n)return n;if(a.charCodeAt(0)===35){const s=a.charCodeAt(1),u=s===120||s===88;return z0(a.slice(u?2:1),u?16:10)}return zh(a)||e}const F0={}.hasOwnProperty;function Hj(e,n,a){return n&&typeof n=="object"&&(a=n,n=void 0),Pj(a)(Lj(zj(a).document().write(_j()(e,n,!0))))}function Pj(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(Ot),autolinkProtocol:oe,autolinkEmail:oe,atxHeading:u(Xt),blockQuote:u(ut),characterEscape:oe,characterReference:oe,codeFenced:u(Xe),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:u(Xe,c),codeText:u(Vn,c),codeTextData:oe,data:oe,codeFlowValue:oe,definition:u(Wn),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:u(ct),hardBreakEscape:u(Kt),hardBreakTrailing:u(Kt),htmlFlow:u(En,c),htmlFlowData:oe,htmlText:u(En,c),htmlTextData:oe,image:u(cn),label:c,link:u(Ot),listItem:u(ei),listItemValue:x,listOrdered:u(Un,g),listUnordered:u(Un),paragraph:u(Tn),reference:C,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:u(Xt),strong:u(Vi),thematicBreak:u(F)},exit:{atxHeading:m(),atxHeadingSequence:U,autolink:m(),autolinkEmail:ze,autolinkProtocol:Ie,blockQuote:m(),characterEscapeValue:B,characterReferenceMarkerHexadecimal:de,characterReferenceMarkerNumeric:de,characterReferenceValue:ge,characterReference:pe,codeFenced:m(N),codeFencedFence:A,codeFencedFenceInfo:S,codeFencedFenceMeta:E,codeFlowValue:B,codeIndented:m(k),codeText:m(ne),codeTextData:B,data:B,definition:m(),definitionDestinationString:Y,definitionLabelString:O,definitionTitleString:R,emphasis:m(),hardBreakEscape:m(re),hardBreakTrailing:m(re),htmlFlow:m(te),htmlFlowData:B,htmlText:m(se),htmlTextData:B,image:m($),label:xe,labelText:ue,lineEnding:ae,link:m(H),listItem:m(),listOrdered:m(),listUnordered:m(),paragraph:m(),referenceString:ce,resourceDestinationString:j,resourceTitleString:D,resource:X,setextHeading:m(ee),setextHeadingLineSequence:Q,setextHeadingText:z,strong:m(),thematicBreak:m()}};G0(n,(e||{}).mdastExtensions||[]);const a={};return r;function r(_){let J={type:"root",children:[]};const ye={stack:[J],tokenStack:[],config:n,enter:f,exit:h,buffer:c,resume:v,data:a},Te=[];let Le=-1;for(;++Le<_.length;)if(_[Le][1].type==="listOrdered"||_[Le][1].type==="listUnordered")if(_[Le][0]==="enter")Te.push(Le);else{const Rt=Te.pop();Le=s(_,Rt,Le)}for(Le=-1;++Le<_.length;){const Rt=n[_[Le][0]];F0.call(Rt,_[Le][1].type)&&Rt[_[Le][1].type].call(Object.assign({sliceSerialize:_[Le][2].sliceSerialize},ye),_[Le][1])}if(ye.tokenStack.length>0){const Rt=ye.tokenStack[ye.tokenStack.length-1];(Rt[1]||ex).call(ye,void 0,Rt[0])}for(J.position={start:ua(_.length>0?_[0][1].start:{line:1,column:1,offset:0}),end:ua(_.length>0?_[_.length-2][1].end:{line:1,column:1,offset:0})},Le=-1;++Le<n.transforms.length;)J=n.transforms[Le](J)||J;return J}function s(_,J,ye){let Te=J-1,Le=-1,Rt=!1,en,zt,vt,Pt;for(;++Te<=ye;){const qe=_[Te];switch(qe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{qe[0]==="enter"?Le++:Le--,Pt=void 0;break}case"lineEndingBlank":{qe[0]==="enter"&&(en&&!Pt&&!Le&&!vt&&(vt=Te),Pt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Pt=void 0}if(!Le&&qe[0]==="enter"&&qe[1].type==="listItemPrefix"||Le===-1&&qe[0]==="exit"&&(qe[1].type==="listUnordered"||qe[1].type==="listOrdered")){if(en){let Hn=Te;for(zt=void 0;Hn--;){const fn=_[Hn];if(fn[1].type==="lineEnding"||fn[1].type==="lineEndingBlank"){if(fn[0]==="exit")continue;zt&&(_[zt][1].type="lineEndingBlank",Rt=!0),fn[1].type="lineEnding",zt=Hn}else if(!(fn[1].type==="linePrefix"||fn[1].type==="blockQuotePrefix"||fn[1].type==="blockQuotePrefixWhitespace"||fn[1].type==="blockQuoteMarker"||fn[1].type==="listItemIndent"))break}vt&&(!zt||vt<zt)&&(en._spread=!0),en.end=Object.assign({},zt?_[zt][1].start:qe[1].end),_.splice(zt||Te,0,["exit",en,qe[2]]),Te++,ye++}if(qe[1].type==="listItemPrefix"){const Hn={type:"listItem",_spread:!1,start:Object.assign({},qe[1].start),end:void 0};en=Hn,_.splice(Te,0,["enter",Hn,qe[2]]),Te++,ye++,vt=void 0,Pt=!0}}}return _[J][1]._spread=Rt,ye}function u(_,J){return ye;function ye(Te){f.call(this,_(Te),Te),J&&J.call(this,Te)}}function c(){this.stack.push({type:"fragment",children:[]})}function f(_,J,ye){this.stack[this.stack.length-1].children.push(_),this.stack.push(_),this.tokenStack.push([J,ye||void 0]),_.position={start:ua(J.start),end:void 0}}function m(_){return J;function J(ye){_&&_.call(this,ye),h.call(this,ye)}}function h(_,J){const ye=this.stack.pop(),Te=this.tokenStack.pop();if(Te)Te[0].type!==_.type&&(J?J.call(this,_,Te[0]):(Te[1]||ex).call(this,_,Te[0]));else throw new Error("Cannot close `"+_.type+"` ("+$l({start:_.start,end:_.end})+"): it’s not open");ye.position.end=ua(_.end)}function v(){return Oh(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function x(_){if(this.data.expectingFirstListItemValue){const J=this.stack[this.stack.length-2];J.start=Number.parseInt(this.sliceSerialize(_),10),this.data.expectingFirstListItemValue=void 0}}function S(){const _=this.resume(),J=this.stack[this.stack.length-1];J.lang=_}function E(){const _=this.resume(),J=this.stack[this.stack.length-1];J.meta=_}function A(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function N(){const _=this.resume(),J=this.stack[this.stack.length-1];J.value=_.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const _=this.resume(),J=this.stack[this.stack.length-1];J.value=_.replace(/(\r?\n|\r)$/g,"")}function O(_){const J=this.resume(),ye=this.stack[this.stack.length-1];ye.label=J,ye.identifier=Qn(this.sliceSerialize(_)).toLowerCase()}function R(){const _=this.resume(),J=this.stack[this.stack.length-1];J.title=_}function Y(){const _=this.resume(),J=this.stack[this.stack.length-1];J.url=_}function U(_){const J=this.stack[this.stack.length-1];if(!J.depth){const ye=this.sliceSerialize(_).length;J.depth=ye}}function z(){this.data.setextHeadingSlurpLineEnding=!0}function Q(_){const J=this.stack[this.stack.length-1];J.depth=this.sliceSerialize(_).codePointAt(0)===61?1:2}function ee(){this.data.setextHeadingSlurpLineEnding=void 0}function oe(_){const ye=this.stack[this.stack.length-1].children;let Te=ye[ye.length-1];(!Te||Te.type!=="text")&&(Te=at(),Te.position={start:ua(_.start),end:void 0},ye.push(Te)),this.stack.push(Te)}function B(_){const J=this.stack.pop();J.value+=this.sliceSerialize(_),J.position.end=ua(_.end)}function ae(_){const J=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ye=J.children[J.children.length-1];ye.position.end=ua(_.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(J.type)&&(oe.call(this,_),B.call(this,_))}function re(){this.data.atHardBreak=!0}function te(){const _=this.resume(),J=this.stack[this.stack.length-1];J.value=_}function se(){const _=this.resume(),J=this.stack[this.stack.length-1];J.value=_}function ne(){const _=this.resume(),J=this.stack[this.stack.length-1];J.value=_}function H(){const _=this.stack[this.stack.length-1];if(this.data.inReference){const J=this.data.referenceType||"shortcut";_.type+="Reference",_.referenceType=J,delete _.url,delete _.title}else delete _.identifier,delete _.label;this.data.referenceType=void 0}function $(){const _=this.stack[this.stack.length-1];if(this.data.inReference){const J=this.data.referenceType||"shortcut";_.type+="Reference",_.referenceType=J,delete _.url,delete _.title}else delete _.identifier,delete _.label;this.data.referenceType=void 0}function ue(_){const J=this.sliceSerialize(_),ye=this.stack[this.stack.length-2];ye.label=Vj(J),ye.identifier=Qn(J).toLowerCase()}function xe(){const _=this.stack[this.stack.length-1],J=this.resume(),ye=this.stack[this.stack.length-1];if(this.data.inReference=!0,ye.type==="link"){const Te=_.children;ye.children=Te}else ye.alt=J}function j(){const _=this.resume(),J=this.stack[this.stack.length-1];J.url=_}function D(){const _=this.resume(),J=this.stack[this.stack.length-1];J.title=_}function X(){this.data.inReference=void 0}function C(){this.data.referenceType="collapsed"}function ce(_){const J=this.resume(),ye=this.stack[this.stack.length-1];ye.label=J,ye.identifier=Qn(this.sliceSerialize(_)).toLowerCase(),this.data.referenceType="full"}function de(_){this.data.characterReferenceType=_.type}function ge(_){const J=this.sliceSerialize(_),ye=this.data.characterReferenceType;let Te;ye?(Te=z0(J,ye==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Te=zh(J);const Le=this.stack[this.stack.length-1];Le.value+=Te}function pe(_){const J=this.stack.pop();J.position.end=ua(_.end)}function Ie(_){B.call(this,_);const J=this.stack[this.stack.length-1];J.url=this.sliceSerialize(_)}function ze(_){B.call(this,_);const J=this.stack[this.stack.length-1];J.url="mailto:"+this.sliceSerialize(_)}function ut(){return{type:"blockquote",children:[]}}function Xe(){return{type:"code",lang:null,meta:null,value:""}}function Vn(){return{type:"inlineCode",value:""}}function Wn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ct(){return{type:"emphasis",children:[]}}function Xt(){return{type:"heading",depth:0,children:[]}}function Kt(){return{type:"break"}}function En(){return{type:"html",value:""}}function cn(){return{type:"image",title:null,url:"",alt:null}}function Ot(){return{type:"link",title:null,url:"",children:[]}}function Un(_){return{type:"list",ordered:_.type==="listOrdered",start:null,spread:_._spread,children:[]}}function ei(_){return{type:"listItem",spread:_._spread,checked:null,children:[]}}function Tn(){return{type:"paragraph",children:[]}}function Vi(){return{type:"strong",children:[]}}function at(){return{type:"text",value:""}}function F(){return{type:"thematicBreak"}}}function ua(e){return{line:e.line,column:e.column,offset:e.offset}}function G0(e,n){let a=-1;for(;++a<n.length;){const r=n[a];Array.isArray(r)?G0(e,r):Ij(e,r)}}function Ij(e,n){let a;for(a in n)if(F0.call(n,a))switch(a){case"canContainEols":{const r=n[a];r&&e[a].push(...r);break}case"transforms":{const r=n[a];r&&e[a].push(...r);break}case"enter":case"exit":{const r=n[a];r&&Object.assign(e[a],r);break}}}function ex(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+$l({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+$l({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+$l({start:n.start,end:n.end})+") is still open")}function qj(e){const n=this;n.parser=a;function a(r){return Hj(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function Fj(e,n){const a={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,a),e.applyData(n,a)}function Gj(e,n){const a={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,a),[e.applyData(n,a),{type:"text",value:`
|
|
17
|
-
`}]}function Yj(e,n){const a=n.value?n.value+`
|
|
18
|
-
`:"",r={},s=n.lang?n.lang.split(/\s+/):[];s.length>0&&(r.className=["language-"+s[0]]);let u={type:"element",tagName:"code",properties:r,children:[{type:"text",value:a}]};return n.meta&&(u.data={meta:n.meta}),e.patch(n,u),u=e.applyData(n,u),u={type:"element",tagName:"pre",properties:{},children:[u]},e.patch(n,u),u}function Xj(e,n){const a={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function Kj(e,n){const a={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function Qj(e,n){const a=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),s=Kr(r.toLowerCase()),u=e.footnoteOrder.indexOf(r);let c,f=e.footnoteCounts.get(r);f===void 0?(f=0,e.footnoteOrder.push(r),c=e.footnoteOrder.length):c=u+1,f+=1,e.footnoteCounts.set(r,f);const m={type:"element",tagName:"a",properties:{href:"#"+a+"fn-"+s,id:a+"fnref-"+s+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(n,m);const h={type:"element",tagName:"sup",properties:{},children:[m]};return e.patch(n,h),e.applyData(n,h)}function Zj(e,n){const a={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function $j(e,n){if(e.options.allowDangerousHtml){const a={type:"raw",value:n.value};return e.patch(n,a),e.applyData(n,a)}}function Y0(e,n){const a=n.referenceType;let r="]";if(a==="collapsed"?r+="[]":a==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];const s=e.all(n),u=s[0];u&&u.type==="text"?u.value="["+u.value:s.unshift({type:"text",value:"["});const c=s[s.length-1];return c&&c.type==="text"?c.value+=r:s.push({type:"text",value:r}),s}function Jj(e,n){const a=String(n.identifier).toUpperCase(),r=e.definitionById.get(a);if(!r)return Y0(e,n);const s={src:Kr(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(s.title=r.title);const u={type:"element",tagName:"img",properties:s,children:[]};return e.patch(n,u),e.applyData(n,u)}function Wj(e,n){const a={src:Kr(n.url)};n.alt!==null&&n.alt!==void 0&&(a.alt=n.alt),n.title!==null&&n.title!==void 0&&(a.title=n.title);const r={type:"element",tagName:"img",properties:a,children:[]};return e.patch(n,r),e.applyData(n,r)}function eR(e,n){const a={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,a);const r={type:"element",tagName:"code",properties:{},children:[a]};return e.patch(n,r),e.applyData(n,r)}function tR(e,n){const a=String(n.identifier).toUpperCase(),r=e.definitionById.get(a);if(!r)return Y0(e,n);const s={href:Kr(r.url||"")};r.title!==null&&r.title!==void 0&&(s.title=r.title);const u={type:"element",tagName:"a",properties:s,children:e.all(n)};return e.patch(n,u),e.applyData(n,u)}function nR(e,n){const a={href:Kr(n.url)};n.title!==null&&n.title!==void 0&&(a.title=n.title);const r={type:"element",tagName:"a",properties:a,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function iR(e,n,a){const r=e.all(n),s=a?aR(a):X0(n),u={},c=[];if(typeof n.checked=="boolean"){const v=r[0];let g;v&&v.type==="element"&&v.tagName==="p"?g=v:(g={type:"element",tagName:"p",properties:{},children:[]},r.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),u.className=["task-list-item"]}let f=-1;for(;++f<r.length;){const v=r[f];(s||f!==0||v.type!=="element"||v.tagName!=="p")&&c.push({type:"text",value:`
|
|
19
|
-
`}),v.type==="element"&&v.tagName==="p"&&!s?c.push(...v.children):c.push(v)}const m=r[r.length-1];m&&(s||m.type!=="element"||m.tagName!=="p")&&c.push({type:"text",value:`
|
|
20
|
-
`});const h={type:"element",tagName:"li",properties:u,children:c};return e.patch(n,h),e.applyData(n,h)}function aR(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const a=e.children;let r=-1;for(;!n&&++r<a.length;)n=X0(a[r])}return n}function X0(e){const n=e.spread;return n??e.children.length>1}function rR(e,n){const a={},r=e.all(n);let s=-1;for(typeof n.start=="number"&&n.start!==1&&(a.start=n.start);++s<r.length;){const c=r[s];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){a.className=["contains-task-list"];break}}const u={type:"element",tagName:n.ordered?"ol":"ul",properties:a,children:e.wrap(r,!0)};return e.patch(n,u),e.applyData(n,u)}function lR(e,n){const a={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function sR(e,n){const a={type:"root",children:e.wrap(e.all(n))};return e.patch(n,a),e.applyData(n,a)}function oR(e,n){const a={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function uR(e,n){const a=e.all(n),r=a.shift(),s=[];if(r){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],c),s.push(c)}if(a.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(a,!0)},f=jh(n.children[1]),m=A0(n.children[n.children.length-1]);f&&m&&(c.position={start:f,end:m}),s.push(c)}const u={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(n,u),e.applyData(n,u)}function cR(e,n,a){const r=a?a.children:void 0,u=(r?r.indexOf(n):1)===0?"th":"td",c=a&&a.type==="table"?a.align:void 0,f=c?c.length:n.children.length;let m=-1;const h=[];for(;++m<f;){const g=n.children[m],x={},S=c?c[m]:void 0;S&&(x.align=S);let E={type:"element",tagName:u,properties:x,children:[]};g&&(E.children=e.all(g),e.patch(g,E),E=e.applyData(g,E)),h.push(E)}const v={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(n,v),e.applyData(n,v)}function fR(e,n){const a={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}const tx=9,nx=32;function dR(e){const n=String(e),a=/\r?\n|\r/g;let r=a.exec(n),s=0;const u=[];for(;r;)u.push(ix(n.slice(s,r.index),s>0,!0),r[0]),s=r.index+r[0].length,r=a.exec(n);return u.push(ix(n.slice(s),s>0,!1)),u.join("")}function ix(e,n,a){let r=0,s=e.length;if(n){let u=e.codePointAt(r);for(;u===tx||u===nx;)r++,u=e.codePointAt(r)}if(a){let u=e.codePointAt(s-1);for(;u===tx||u===nx;)s--,u=e.codePointAt(s-1)}return s>r?e.slice(r,s):""}function hR(e,n){const a={type:"text",value:dR(String(n.value))};return e.patch(n,a),e.applyData(n,a)}function mR(e,n){const a={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,a),e.applyData(n,a)}const pR={blockquote:Fj,break:Gj,code:Yj,delete:Xj,emphasis:Kj,footnoteReference:Qj,heading:Zj,html:$j,imageReference:Jj,image:Wj,inlineCode:eR,linkReference:tR,link:nR,listItem:iR,list:rR,paragraph:lR,root:sR,strong:oR,table:uR,tableCell:fR,tableRow:cR,text:hR,thematicBreak:mR,toml:Vo,yaml:Vo,definition:Vo,footnoteDefinition:Vo};function Vo(){}const K0=-1,Tu=0,Wl=1,ru=2,_h=3,Bh=4,Vh=5,Uh=6,Q0=7,Z0=8,ax=typeof self=="object"?self:globalThis,gR=(e,n)=>{const a=(s,u)=>(e.set(u,s),s),r=s=>{if(e.has(s))return e.get(s);const[u,c]=n[s];switch(u){case Tu:case K0:return a(c,s);case Wl:{const f=a([],s);for(const m of c)f.push(r(m));return f}case ru:{const f=a({},s);for(const[m,h]of c)f[r(m)]=r(h);return f}case _h:return a(new Date(c),s);case Bh:{const{source:f,flags:m}=c;return a(new RegExp(f,m),s)}case Vh:{const f=a(new Map,s);for(const[m,h]of c)f.set(r(m),r(h));return f}case Uh:{const f=a(new Set,s);for(const m of c)f.add(r(m));return f}case Q0:{const{name:f,message:m}=c;return a(new ax[f](m),s)}case Z0:return a(BigInt(c),s);case"BigInt":return a(Object(BigInt(c)),s);case"ArrayBuffer":return a(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:f}=new Uint8Array(c);return a(new DataView(f),c)}}return a(new ax[u](c),s)};return r},rx=e=>gR(new Map,e)(0),jr="",{toString:yR}={},{keys:vR}=Object,Xl=e=>{const n=typeof e;if(n!=="object"||!e)return[Tu,n];const a=yR.call(e).slice(8,-1);switch(a){case"Array":return[Wl,jr];case"Object":return[ru,jr];case"Date":return[_h,jr];case"RegExp":return[Bh,jr];case"Map":return[Vh,jr];case"Set":return[Uh,jr];case"DataView":return[Wl,a]}return a.includes("Array")?[Wl,a]:a.includes("Error")?[Q0,a]:[ru,a]},Uo=([e,n])=>e===Tu&&(n==="function"||n==="symbol"),xR=(e,n,a,r)=>{const s=(c,f)=>{const m=r.push(c)-1;return a.set(f,m),m},u=c=>{if(a.has(c))return a.get(c);let[f,m]=Xl(c);switch(f){case Tu:{let v=c;switch(m){case"bigint":f=Z0,v=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+m);v=null;break;case"undefined":return s([K0],c)}return s([f,v],c)}case Wl:{if(m){let x=c;return m==="DataView"?x=new Uint8Array(c.buffer):m==="ArrayBuffer"&&(x=new Uint8Array(c)),s([m,[...x]],c)}const v=[],g=s([f,v],c);for(const x of c)v.push(u(x));return g}case ru:{if(m)switch(m){case"BigInt":return s([m,c.toString()],c);case"Boolean":case"Number":case"String":return s([m,c.valueOf()],c)}if(n&&"toJSON"in c)return u(c.toJSON());const v=[],g=s([f,v],c);for(const x of vR(c))(e||!Uo(Xl(c[x])))&&v.push([u(x),u(c[x])]);return g}case _h:return s([f,c.toISOString()],c);case Bh:{const{source:v,flags:g}=c;return s([f,{source:v,flags:g}],c)}case Vh:{const v=[],g=s([f,v],c);for(const[x,S]of c)(e||!(Uo(Xl(x))||Uo(Xl(S))))&&v.push([u(x),u(S)]);return g}case Uh:{const v=[],g=s([f,v],c);for(const x of c)(e||!Uo(Xl(x)))&&v.push(u(x));return g}}const{message:h}=c;return s([f,{name:m,message:h}],c)};return u},lx=(e,{json:n,lossy:a}={})=>{const r=[];return xR(!(n||a),!!n,new Map,r)(e),r},lu=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?rx(lx(e,n)):structuredClone(e):(e,n)=>rx(lx(e,n));function bR(e,n){const a=[{type:"text",value:"↩"}];return n>1&&a.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),a}function SR(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function wR(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=e.options.footnoteBackContent||bR,r=e.options.footnoteBackLabel||SR,s=e.options.footnoteLabel||"Footnotes",u=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let m=-1;for(;++m<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[m]);if(!h)continue;const v=e.all(h),g=String(h.identifier).toUpperCase(),x=Kr(g.toLowerCase());let S=0;const E=[],A=e.footnoteCounts.get(g);for(;A!==void 0&&++S<=A;){E.length>0&&E.push({type:"text",value:" "});let O=typeof a=="string"?a:a(m,S);typeof O=="string"&&(O={type:"text",value:O}),E.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+x+(S>1?"-"+S:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(m,S),className:["data-footnote-backref"]},children:Array.isArray(O)?O:[O]})}const N=v[v.length-1];if(N&&N.type==="element"&&N.tagName==="p"){const O=N.children[N.children.length-1];O&&O.type==="text"?O.value+=" ":N.children.push({type:"text",value:" "}),N.children.push(...E)}else v.push(...E);const k={type:"element",tagName:"li",properties:{id:n+"fn-"+x},children:e.wrap(v,!0)};e.patch(h,k),f.push(k)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:{...lu(c),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
|
|
21
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
|
|
22
|
-
`}]}}const Cu=(function(e){if(e==null)return AR;if(typeof e=="function")return Au(e);if(typeof e=="object")return Array.isArray(e)?ER(e):TR(e);if(typeof e=="string")return CR(e);throw new Error("Expected function, string, or object as test")});function ER(e){const n=[];let a=-1;for(;++a<e.length;)n[a]=Cu(e[a]);return Au(r);function r(...s){let u=-1;for(;++u<n.length;)if(n[u].apply(this,s))return!0;return!1}}function TR(e){const n=e;return Au(a);function a(r){const s=r;let u;for(u in e)if(s[u]!==n[u])return!1;return!0}}function CR(e){return Au(n);function n(a){return a&&a.type===e}}function Au(e){return n;function n(a,r,s){return!!(kR(a)&&e.call(this,a,typeof r=="number"?r:void 0,s||void 0))}}function AR(){return!0}function kR(e){return e!==null&&typeof e=="object"&&"type"in e}const $0=[],NR=!0,Id=!1,jR="skip";function J0(e,n,a,r){let s;typeof n=="function"&&typeof a!="function"?(r=a,a=n):s=n;const u=Cu(s),c=r?-1:1;f(e,void 0,[])();function f(m,h,v){const g=m&&typeof m=="object"?m:{};if(typeof g.type=="string"){const S=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(x,"name",{value:"node ("+(m.type+(S?"<"+S+">":""))+")"})}return x;function x(){let S=$0,E,A,N;if((!n||u(m,h,v[v.length-1]||void 0))&&(S=RR(a(m,v)),S[0]===Id))return S;if("children"in m&&m.children){const k=m;if(k.children&&S[0]!==jR)for(A=(r?k.children.length:-1)+c,N=v.concat(k);A>-1&&A<k.children.length;){const O=k.children[A];if(E=f(O,A,N)(),E[0]===Id)return E;A=typeof E[1]=="number"?E[1]:A+c}}return S}}}function RR(e){return Array.isArray(e)?e:typeof e=="number"?[NR,e]:e==null?$0:[e]}function Hh(e,n,a,r){let s,u,c;typeof n=="function"&&typeof a!="function"?(u=void 0,c=n,s=a):(u=n,c=a,s=r),J0(e,u,f,s);function f(m,h){const v=h[h.length-1],g=v?v.children.indexOf(m):void 0;return c(m,g,v)}}const qd={}.hasOwnProperty,MR={};function DR(e,n){const a=n||MR,r=new Map,s=new Map,u=new Map,c={...pR,...a.handlers},f={all:h,applyData:zR,definitionById:r,footnoteById:s,footnoteCounts:u,footnoteOrder:[],handlers:c,one:m,options:a,patch:OR,wrap:_R};return Hh(e,function(v){if(v.type==="definition"||v.type==="footnoteDefinition"){const g=v.type==="definition"?r:s,x=String(v.identifier).toUpperCase();g.has(x)||g.set(x,v)}}),f;function m(v,g){const x=v.type,S=f.handlers[x];if(qd.call(f.handlers,x)&&S)return S(f,v,g);if(f.options.passThrough&&f.options.passThrough.includes(x)){if("children"in v){const{children:A,...N}=v,k=lu(N);return k.children=f.all(v),k}return lu(v)}return(f.options.unknownHandler||LR)(f,v,g)}function h(v){const g=[];if("children"in v){const x=v.children;let S=-1;for(;++S<x.length;){const E=f.one(x[S],v);if(E){if(S&&x[S-1].type==="break"&&(!Array.isArray(E)&&E.type==="text"&&(E.value=sx(E.value)),!Array.isArray(E)&&E.type==="element")){const A=E.children[0];A&&A.type==="text"&&(A.value=sx(A.value))}Array.isArray(E)?g.push(...E):g.push(E)}}}return g}}function OR(e,n){e.position&&(n.position=Sk(e))}function zR(e,n){let a=n;if(e&&e.data){const r=e.data.hName,s=e.data.hChildren,u=e.data.hProperties;if(typeof r=="string")if(a.type==="element")a.tagName=r;else{const c="children"in a?a.children:[a];a={type:"element",tagName:r,properties:{},children:c}}a.type==="element"&&u&&Object.assign(a.properties,lu(u)),"children"in a&&a.children&&s!==null&&s!==void 0&&(a.children=s)}return a}function LR(e,n){const a=n.data||{},r="value"in n&&!(qd.call(a,"hProperties")||qd.call(a,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function _R(e,n){const a=[];let r=-1;for(n&&a.push({type:"text",value:`
|
|
23
|
-
`});++r<e.length;)r&&a.push({type:"text",value:`
|
|
24
|
-
`}),a.push(e[r]);return n&&e.length>0&&a.push({type:"text",value:`
|
|
25
|
-
`}),a}function sx(e){let n=0,a=e.charCodeAt(n);for(;a===9||a===32;)n++,a=e.charCodeAt(n);return e.slice(n)}function ox(e,n){const a=DR(e,n),r=a.one(e,void 0),s=wR(a),u=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return s&&u.children.push({type:"text",value:`
|
|
26
|
-
`},s),u}function BR(e,n){return e&&"run"in e?async function(a,r){const s=ox(a,{file:r,...n});await e.run(s,r)}:function(a,r){return ox(a,{file:r,...e||n})}}function ux(e){if(e)throw e}var ed,cx;function VR(){if(cx)return ed;cx=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,a=Object.defineProperty,r=Object.getOwnPropertyDescriptor,s=function(h){return typeof Array.isArray=="function"?Array.isArray(h):n.call(h)==="[object Array]"},u=function(h){if(!h||n.call(h)!=="[object Object]")return!1;var v=e.call(h,"constructor"),g=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!v&&!g)return!1;var x;for(x in h);return typeof x>"u"||e.call(h,x)},c=function(h,v){a&&v.name==="__proto__"?a(h,v.name,{enumerable:!0,configurable:!0,value:v.newValue,writable:!0}):h[v.name]=v.newValue},f=function(h,v){if(v==="__proto__")if(e.call(h,v)){if(r)return r(h,v).value}else return;return h[v]};return ed=function m(){var h,v,g,x,S,E,A=arguments[0],N=1,k=arguments.length,O=!1;for(typeof A=="boolean"&&(O=A,A=arguments[1]||{},N=2),(A==null||typeof A!="object"&&typeof A!="function")&&(A={});N<k;++N)if(h=arguments[N],h!=null)for(v in h)g=f(A,v),x=f(h,v),A!==x&&(O&&x&&(u(x)||(S=s(x)))?(S?(S=!1,E=g&&s(g)?g:[]):E=g&&u(g)?g:{},c(A,{name:v,newValue:m(O,E,x)})):typeof x<"u"&&c(A,{name:v,newValue:x}));return A},ed}var UR=VR();const td=yu(UR);function Fd(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function HR(){const e=[],n={run:a,use:r};return n;function a(...s){let u=-1;const c=s.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);f(null,...s);function f(m,...h){const v=e[++u];let g=-1;if(m){c(m);return}for(;++g<s.length;)(h[g]===null||h[g]===void 0)&&(h[g]=s[g]);s=h,v?PR(v,f)(...h):c(null,...h)}}function r(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),n}}function PR(e,n){let a;return r;function r(...c){const f=e.length>c.length;let m;f&&c.push(s);try{m=e.apply(this,c)}catch(h){const v=h;if(f&&a)throw v;return s(v)}f||(m&&m.then&&typeof m.then=="function"?m.then(u,s):m instanceof Error?s(m):u(m))}function s(c,...f){a||(a=!0,n(c,...f))}function u(c){s(null,c)}}const oi={basename:IR,dirname:qR,extname:FR,join:GR,sep:"/"};function IR(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');ys(e);let a=0,r=-1,s=e.length,u;if(n===void 0||n.length===0||n.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(u){a=s+1;break}}else r<0&&(u=!0,r=s+1);return r<0?"":e.slice(a,r)}if(n===e)return"";let c=-1,f=n.length-1;for(;s--;)if(e.codePointAt(s)===47){if(u){a=s+1;break}}else c<0&&(u=!0,c=s+1),f>-1&&(e.codePointAt(s)===n.codePointAt(f--)?f<0&&(r=s):(f=-1,r=c));return a===r?r=c:r<0&&(r=e.length),e.slice(a,r)}function qR(e){if(ys(e),e.length===0)return".";let n=-1,a=e.length,r;for(;--a;)if(e.codePointAt(a)===47){if(r){n=a;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function FR(e){ys(e);let n=e.length,a=-1,r=0,s=-1,u=0,c;for(;n--;){const f=e.codePointAt(n);if(f===47){if(c){r=n+1;break}continue}a<0&&(c=!0,a=n+1),f===46?s<0?s=n:u!==1&&(u=1):s>-1&&(u=-1)}return s<0||a<0||u===0||u===1&&s===a-1&&s===r+1?"":e.slice(s,a)}function GR(...e){let n=-1,a;for(;++n<e.length;)ys(e[n]),e[n]&&(a=a===void 0?e[n]:a+"/"+e[n]);return a===void 0?".":YR(a)}function YR(e){ys(e);const n=e.codePointAt(0)===47;let a=XR(e,!n);return a.length===0&&!n&&(a="."),a.length>0&&e.codePointAt(e.length-1)===47&&(a+="/"),n?"/"+a:a}function XR(e,n){let a="",r=0,s=-1,u=0,c=-1,f,m;for(;++c<=e.length;){if(c<e.length)f=e.codePointAt(c);else{if(f===47)break;f=47}if(f===47){if(!(s===c-1||u===1))if(s!==c-1&&u===2){if(a.length<2||r!==2||a.codePointAt(a.length-1)!==46||a.codePointAt(a.length-2)!==46){if(a.length>2){if(m=a.lastIndexOf("/"),m!==a.length-1){m<0?(a="",r=0):(a=a.slice(0,m),r=a.length-1-a.lastIndexOf("/")),s=c,u=0;continue}}else if(a.length>0){a="",r=0,s=c,u=0;continue}}n&&(a=a.length>0?a+"/..":"..",r=2)}else a.length>0?a+="/"+e.slice(s+1,c):a=e.slice(s+1,c),r=c-s-1;s=c,u=0}else f===46&&u>-1?u++:u=-1}return a}function ys(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const KR={cwd:QR};function QR(){return"/"}function Gd(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function ZR(e){if(typeof e=="string")e=new URL(e);else if(!Gd(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return $R(e)}function $R(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const n=e.pathname;let a=-1;for(;++a<n.length;)if(n.codePointAt(a)===37&&n.codePointAt(a+1)===50){const r=n.codePointAt(a+2);if(r===70||r===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(n)}const nd=["history","path","basename","stem","extname","dirname"];class W0{constructor(n){let a;n?Gd(n)?a={path:n}:typeof n=="string"||JR(n)?a={value:n}:a=n:a={},this.cwd="cwd"in a?"":KR.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<nd.length;){const u=nd[r];u in a&&a[u]!==void 0&&a[u]!==null&&(this[u]=u==="history"?[...a[u]]:a[u])}let s;for(s in a)nd.includes(s)||(this[s]=a[s])}get basename(){return typeof this.path=="string"?oi.basename(this.path):void 0}set basename(n){ad(n,"basename"),id(n,"basename"),this.path=oi.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?oi.dirname(this.path):void 0}set dirname(n){fx(this.basename,"dirname"),this.path=oi.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?oi.extname(this.path):void 0}set extname(n){if(id(n,"extname"),fx(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=oi.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Gd(n)&&(n=ZR(n)),ad(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?oi.basename(this.path,this.extname):void 0}set stem(n){ad(n,"stem"),id(n,"stem"),this.path=oi.join(this.dirname||"",n+(this.extname||""))}fail(n,a,r){const s=this.message(n,a,r);throw s.fatal=!0,s}info(n,a,r){const s=this.message(n,a,r);return s.fatal=void 0,s}message(n,a,r){const s=new Yt(n,a,r);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function id(e,n){if(e&&e.includes(oi.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+oi.sep+"`")}function ad(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function fx(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function JR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const WR=(function(e){const r=this.constructor.prototype,s=r[e],u=function(){return s.apply(u,arguments)};return Object.setPrototypeOf(u,r),u}),eM={}.hasOwnProperty;class Ph extends WR{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=HR()}copy(){const n=new Ph;let a=-1;for(;++a<this.attachers.length;){const r=this.attachers[a];n.use(...r)}return n.data(td(!0,{},this.namespace)),n}data(n,a){return typeof n=="string"?arguments.length===2?(sd("data",this.frozen),this.namespace[n]=a,this):eM.call(this.namespace,n)&&this.namespace[n]||void 0:n?(sd("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[a,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const s=a.call(n,...r);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const a=Ho(n),r=this.parser||this.Parser;return rd("parse",r),r(String(a),a)}process(n,a){const r=this;return this.freeze(),rd("process",this.parser||this.Parser),ld("process",this.compiler||this.Compiler),a?s(void 0,a):new Promise(s);function s(u,c){const f=Ho(n),m=r.parse(f);r.run(m,f,function(v,g,x){if(v||!g||!x)return h(v);const S=g,E=r.stringify(S,x);iM(E)?x.value=E:x.result=E,h(v,x)});function h(v,g){v||!g?c(v):u?u(g):a(void 0,g)}}}processSync(n){let a=!1,r;return this.freeze(),rd("processSync",this.parser||this.Parser),ld("processSync",this.compiler||this.Compiler),this.process(n,s),hx("processSync","process",a),r;function s(u,c){a=!0,ux(u),r=c}}run(n,a,r){dx(n),this.freeze();const s=this.transformers;return!r&&typeof a=="function"&&(r=a,a=void 0),r?u(void 0,r):new Promise(u);function u(c,f){const m=Ho(a);s.run(n,m,h);function h(v,g,x){const S=g||n;v?f(v):c?c(S):r(void 0,S,x)}}}runSync(n,a){let r=!1,s;return this.run(n,a,u),hx("runSync","run",r),s;function u(c,f){ux(c),s=f,r=!0}}stringify(n,a){this.freeze();const r=Ho(a),s=this.compiler||this.Compiler;return ld("stringify",s),dx(n),s(n,r)}use(n,...a){const r=this.attachers,s=this.namespace;if(sd("use",this.frozen),n!=null)if(typeof n=="function")m(n,a);else if(typeof n=="object")Array.isArray(n)?f(n):c(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function u(h){if(typeof h=="function")m(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[v,...g]=h;m(v,g)}else c(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function c(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");f(h.plugins),h.settings&&(s.settings=td(!0,s.settings,h.settings))}function f(h){let v=-1;if(h!=null)if(Array.isArray(h))for(;++v<h.length;){const g=h[v];u(g)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function m(h,v){let g=-1,x=-1;for(;++g<r.length;)if(r[g][0]===h){x=g;break}if(x===-1)r.push([h,...v]);else if(v.length>0){let[S,...E]=v;const A=r[x][1];Fd(A)&&Fd(S)&&(S=td(!0,A,S)),r[x]=[h,S,...E]}}}}const tM=new Ph().freeze();function rd(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function ld(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function sd(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function dx(e){if(!Fd(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function hx(e,n,a){if(!a)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Ho(e){return nM(e)?e:new W0(e)}function nM(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function iM(e){return typeof e=="string"||aM(e)}function aM(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const rM="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",mx=[],px={allowDangerousHtml:!0},lM=/^(https?|ircs?|mailto|xmpp)$/i,sM=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function oM(e){const n=uM(e),a=cM(e);return fM(n.runSync(n.parse(a),a),e)}function uM(e){const n=e.rehypePlugins||mx,a=e.remarkPlugins||mx,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...px}:px;return tM().use(qj).use(a).use(BR,r).use(n)}function cM(e){const n=e.children||"",a=new W0;return typeof n=="string"&&(a.value=n),a}function fM(e,n){const a=n.allowedElements,r=n.allowElement,s=n.components,u=n.disallowedElements,c=n.skipHtml,f=n.unwrapDisallowed,m=n.urlTransform||dM;for(const v of sM)Object.hasOwn(n,v.from)&&(""+v.from+(v.to?"use `"+v.to+"` instead":"remove it")+rM+v.id,void 0);return Hh(e,h),Ak(e,{Fragment:y.Fragment,components:s,ignoreInvalidStyle:!0,jsx:y.jsx,jsxs:y.jsxs,passKeys:!0,passNode:!0});function h(v,g,x){if(v.type==="raw"&&x&&typeof g=="number")return c?x.children.splice(g,1):x.children[g]={type:"text",value:v.value},g;if(v.type==="element"){let S;for(S in $f)if(Object.hasOwn($f,S)&&Object.hasOwn(v.properties,S)){const E=v.properties[S],A=$f[S];(A===null||A.includes(v.tagName))&&(v.properties[S]=m(String(E||""),S,v))}}if(v.type==="element"){let S=a?!a.includes(v.tagName):u?u.includes(v.tagName):!1;if(!S&&r&&typeof g=="number"&&(S=!r(v,g,x)),S&&x&&typeof g=="number")return f&&v.children?x.children.splice(g,1,...v.children):x.children.splice(g,1),g}}}function dM(e){const n=e.indexOf(":"),a=e.indexOf("?"),r=e.indexOf("#"),s=e.indexOf("/");return n===-1||s!==-1&&n>s||a!==-1&&n>a||r!==-1&&n>r||lM.test(e.slice(0,n))?e:""}function gx(e,n){const a=String(e);if(typeof n!="string")throw new TypeError("Expected character");let r=0,s=a.indexOf(n);for(;s!==-1;)r++,s=a.indexOf(n,s+n.length);return r}function hM(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function mM(e,n,a){const s=Cu((a||{}).ignore||[]),u=pM(n);let c=-1;for(;++c<u.length;)J0(e,"text",f);function f(h,v){let g=-1,x;for(;++g<v.length;){const S=v[g],E=x?x.children:void 0;if(s(S,E?E.indexOf(S):void 0,x))return;x=S}if(x)return m(h,v)}function m(h,v){const g=v[v.length-1],x=u[c][0],S=u[c][1];let E=0;const N=g.children.indexOf(h);let k=!1,O=[];x.lastIndex=0;let R=x.exec(h.value);for(;R;){const Y=R.index,U={index:R.index,input:R.input,stack:[...v,h]};let z=S(...R,U);if(typeof z=="string"&&(z=z.length>0?{type:"text",value:z}:void 0),z===!1?x.lastIndex=Y+1:(E!==Y&&O.push({type:"text",value:h.value.slice(E,Y)}),Array.isArray(z)?O.push(...z):z&&O.push(z),E=Y+R[0].length,k=!0),!x.global)break;R=x.exec(h.value)}return k?(E<h.value.length&&O.push({type:"text",value:h.value.slice(E)}),g.children.splice(N,1,...O)):O=[h],N+O.length}}function pM(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const a=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<a.length;){const s=a[r];n.push([gM(s[0]),yM(s[1])])}return n}function gM(e){return typeof e=="string"?new RegExp(hM(e),"g"):e}function yM(e){return typeof e=="function"?e:function(){return e}}const od="phrasing",ud=["autolink","link","image","label"];function vM(){return{transforms:[CM],enter:{literalAutolink:bM,literalAutolinkEmail:cd,literalAutolinkHttp:cd,literalAutolinkWww:cd},exit:{literalAutolink:TM,literalAutolinkEmail:EM,literalAutolinkHttp:SM,literalAutolinkWww:wM}}}function xM(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:od,notInConstruct:ud},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:od,notInConstruct:ud},{character:":",before:"[ps]",after:"\\/",inConstruct:od,notInConstruct:ud}]}}function bM(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function cd(e){this.config.enter.autolinkProtocol.call(this,e)}function SM(e){this.config.exit.autolinkProtocol.call(this,e)}function wM(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function EM(e){this.config.exit.autolinkEmail.call(this,e)}function TM(e){this.exit(e)}function CM(e){mM(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,AM],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),kM]],{ignore:["link","linkReference"]})}function AM(e,n,a,r,s){let u="";if(!eS(s)||(/^w/i.test(n)&&(a=n+a,n="",u="http://"),!NM(a)))return!1;const c=jM(a+r);if(!c[0])return!1;const f={type:"link",title:null,url:u+n+c[0],children:[{type:"text",value:n+c[0]}]};return c[1]?[f,{type:"text",value:c[1]}]:f}function kM(e,n,a,r){return!eS(r,!0)||/[-\d_]$/.test(a)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+a,children:[{type:"text",value:n+"@"+a}]}}function NM(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function jM(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let a=n[0],r=a.indexOf(")");const s=gx(e,"(");let u=gx(e,")");for(;r!==-1&&s>u;)e+=a.slice(0,r+1),a=a.slice(r+1),r=a.indexOf(")"),u++;return[e,a]}function eS(e,n){const a=e.input.charCodeAt(e.index-1);return(e.index===0||Ia(a)||wu(a))&&(!n||a!==47)}tS.peek=VM;function RM(){this.buffer()}function MM(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function DM(){this.buffer()}function OM(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function zM(e){const n=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=Qn(this.sliceSerialize(e)).toLowerCase(),a.label=n}function LM(e){this.exit(e)}function _M(e){const n=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=Qn(this.sliceSerialize(e)).toLowerCase(),a.label=n}function BM(e){this.exit(e)}function VM(){return"["}function tS(e,n,a,r){const s=a.createTracker(r);let u=s.move("[^");const c=a.enter("footnoteReference"),f=a.enter("reference");return u+=s.move(a.safe(a.associationId(e),{after:"]",before:u})),f(),c(),u+=s.move("]"),u}function UM(){return{enter:{gfmFootnoteCallString:RM,gfmFootnoteCall:MM,gfmFootnoteDefinitionLabelString:DM,gfmFootnoteDefinition:OM},exit:{gfmFootnoteCallString:zM,gfmFootnoteCall:LM,gfmFootnoteDefinitionLabelString:_M,gfmFootnoteDefinition:BM}}}function HM(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:a,footnoteReference:tS},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function a(r,s,u,c){const f=u.createTracker(c);let m=f.move("[^");const h=u.enter("footnoteDefinition"),v=u.enter("label");return m+=f.move(u.safe(u.associationId(r),{before:m,after:"]"})),v(),m+=f.move("]:"),r.children&&r.children.length>0&&(f.shift(4),m+=f.move((n?`
|
|
27
|
-
`:" ")+u.indentLines(u.containerFlow(r,f.current()),n?nS:PM))),h(),m}}function PM(e,n,a){return n===0?e:nS(e,n,a)}function nS(e,n,a){return(a?"":" ")+e}const IM=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];iS.peek=XM;function qM(){return{canContainEols:["delete"],enter:{strikethrough:GM},exit:{strikethrough:YM}}}function FM(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:IM}],handlers:{delete:iS}}}function GM(e){this.enter({type:"delete",children:[]},e)}function YM(e){this.exit(e)}function iS(e,n,a,r){const s=a.createTracker(r),u=a.enter("strikethrough");let c=s.move("~~");return c+=a.containerPhrasing(e,{...s.current(),before:c,after:"~"}),c+=s.move("~~"),u(),c}function XM(){return"~"}function KM(e){return e.length}function QM(e,n){const a=n||{},r=(a.align||[]).concat(),s=a.stringLength||KM,u=[],c=[],f=[],m=[];let h=0,v=-1;for(;++v<e.length;){const A=[],N=[];let k=-1;for(e[v].length>h&&(h=e[v].length);++k<e[v].length;){const O=ZM(e[v][k]);if(a.alignDelimiters!==!1){const R=s(O);N[k]=R,(m[k]===void 0||R>m[k])&&(m[k]=R)}A.push(O)}c[v]=A,f[v]=N}let g=-1;if(typeof r=="object"&&"length"in r)for(;++g<h;)u[g]=yx(r[g]);else{const A=yx(r);for(;++g<h;)u[g]=A}g=-1;const x=[],S=[];for(;++g<h;){const A=u[g];let N="",k="";A===99?(N=":",k=":"):A===108?N=":":A===114&&(k=":");let O=a.alignDelimiters===!1?1:Math.max(1,m[g]-N.length-k.length);const R=N+"-".repeat(O)+k;a.alignDelimiters!==!1&&(O=N.length+O+k.length,O>m[g]&&(m[g]=O),S[g]=O),x[g]=R}c.splice(1,0,x),f.splice(1,0,S),v=-1;const E=[];for(;++v<c.length;){const A=c[v],N=f[v];g=-1;const k=[];for(;++g<h;){const O=A[g]||"";let R="",Y="";if(a.alignDelimiters!==!1){const U=m[g]-(N[g]||0),z=u[g];z===114?R=" ".repeat(U):z===99?U%2?(R=" ".repeat(U/2+.5),Y=" ".repeat(U/2-.5)):(R=" ".repeat(U/2),Y=R):Y=" ".repeat(U)}a.delimiterStart!==!1&&!g&&k.push("|"),a.padding!==!1&&!(a.alignDelimiters===!1&&O==="")&&(a.delimiterStart!==!1||g)&&k.push(" "),a.alignDelimiters!==!1&&k.push(R),k.push(O),a.alignDelimiters!==!1&&k.push(Y),a.padding!==!1&&k.push(" "),(a.delimiterEnd!==!1||g!==h-1)&&k.push("|")}E.push(a.delimiterEnd===!1?k.join("").replace(/ +$/,""):k.join(""))}return E.join(`
|
|
28
|
-
`)}function ZM(e){return e==null?"":String(e)}function yx(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}function $M(e,n,a,r){const s=a.enter("blockquote"),u=a.createTracker(r);u.move("> "),u.shift(2);const c=a.indentLines(a.containerFlow(e,u.current()),JM);return s(),c}function JM(e,n,a){return">"+(a?"":" ")+e}function WM(e,n){return vx(e,n.inConstruct,!0)&&!vx(e,n.notInConstruct,!1)}function vx(e,n,a){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return a;let r=-1;for(;++r<n.length;)if(e.includes(n[r]))return!0;return!1}function xx(e,n,a,r){let s=-1;for(;++s<a.unsafe.length;)if(a.unsafe[s].character===`
|
|
29
|
-
`&&WM(a.stack,a.unsafe[s]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
30
|
-
`}function eD(e,n){const a=String(e);let r=a.indexOf(n),s=r,u=0,c=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===s?++u>c&&(c=u):u=1,s=r+n.length,r=a.indexOf(n,s);return c}function tD(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function nD(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function iD(e,n,a,r){const s=nD(a),u=e.value||"",c=s==="`"?"GraveAccent":"Tilde";if(tD(e,a)){const g=a.enter("codeIndented"),x=a.indentLines(u,aD);return g(),x}const f=a.createTracker(r),m=s.repeat(Math.max(eD(u,s)+1,3)),h=a.enter("codeFenced");let v=f.move(m);if(e.lang){const g=a.enter(`codeFencedLang${c}`);v+=f.move(a.safe(e.lang,{before:v,after:" ",encode:["`"],...f.current()})),g()}if(e.lang&&e.meta){const g=a.enter(`codeFencedMeta${c}`);v+=f.move(" "),v+=f.move(a.safe(e.meta,{before:v,after:`
|
|
31
|
-
`,encode:["`"],...f.current()})),g()}return v+=f.move(`
|
|
32
|
-
`),u&&(v+=f.move(u+`
|
|
33
|
-
`)),v+=f.move(m),h(),v}function aD(e,n,a){return(a?"":" ")+e}function Ih(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function rD(e,n,a,r){const s=Ih(a),u=s==='"'?"Quote":"Apostrophe",c=a.enter("definition");let f=a.enter("label");const m=a.createTracker(r);let h=m.move("[");return h+=m.move(a.safe(a.associationId(e),{before:h,after:"]",...m.current()})),h+=m.move("]: "),f(),!e.url||/[\0- \u007F]/.test(e.url)?(f=a.enter("destinationLiteral"),h+=m.move("<"),h+=m.move(a.safe(e.url,{before:h,after:">",...m.current()})),h+=m.move(">")):(f=a.enter("destinationRaw"),h+=m.move(a.safe(e.url,{before:h,after:e.title?" ":`
|
|
34
|
-
`,...m.current()}))),f(),e.title&&(f=a.enter(`title${u}`),h+=m.move(" "+s),h+=m.move(a.safe(e.title,{before:h,after:s,...m.current()})),h+=m.move(s),f()),c(),h}function lD(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function ss(e){return"&#x"+e.toString(16).toUpperCase()+";"}function su(e,n,a){const r=Ir(e),s=Ir(n);return r===void 0?s===void 0?a==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}aS.peek=sD;function aS(e,n,a,r){const s=lD(a),u=a.enter("emphasis"),c=a.createTracker(r),f=c.move(s);let m=c.move(a.containerPhrasing(e,{after:s,before:f,...c.current()}));const h=m.charCodeAt(0),v=su(r.before.charCodeAt(r.before.length-1),h,s);v.inside&&(m=ss(h)+m.slice(1));const g=m.charCodeAt(m.length-1),x=su(r.after.charCodeAt(0),g,s);x.inside&&(m=m.slice(0,-1)+ss(g));const S=c.move(s);return u(),a.attentionEncodeSurroundingInfo={after:x.outside,before:v.outside},f+m+S}function sD(e,n,a){return a.options.emphasis||"*"}function oD(e,n){let a=!1;return Hh(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return a=!0,Id}),!!((!e.depth||e.depth<3)&&Oh(e)&&(n.options.setext||a))}function uD(e,n,a,r){const s=Math.max(Math.min(6,e.depth||1),1),u=a.createTracker(r);if(oD(e,a)){const v=a.enter("headingSetext"),g=a.enter("phrasing"),x=a.containerPhrasing(e,{...u.current(),before:`
|
|
35
|
-
`,after:`
|
|
36
|
-
`});return g(),v(),x+`
|
|
37
|
-
`+(s===1?"=":"-").repeat(x.length-(Math.max(x.lastIndexOf("\r"),x.lastIndexOf(`
|
|
38
|
-
`))+1))}const c="#".repeat(s),f=a.enter("headingAtx"),m=a.enter("phrasing");u.move(c+" ");let h=a.containerPhrasing(e,{before:"# ",after:`
|
|
39
|
-
`,...u.current()});return/^[\t ]/.test(h)&&(h=ss(h.charCodeAt(0))+h.slice(1)),h=h?c+" "+h:c,a.options.closeAtx&&(h+=" "+c),m(),f(),h}rS.peek=cD;function rS(e){return e.value||""}function cD(){return"<"}lS.peek=fD;function lS(e,n,a,r){const s=Ih(a),u=s==='"'?"Quote":"Apostrophe",c=a.enter("image");let f=a.enter("label");const m=a.createTracker(r);let h=m.move("![");return h+=m.move(a.safe(e.alt,{before:h,after:"]",...m.current()})),h+=m.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=a.enter("destinationLiteral"),h+=m.move("<"),h+=m.move(a.safe(e.url,{before:h,after:">",...m.current()})),h+=m.move(">")):(f=a.enter("destinationRaw"),h+=m.move(a.safe(e.url,{before:h,after:e.title?" ":")",...m.current()}))),f(),e.title&&(f=a.enter(`title${u}`),h+=m.move(" "+s),h+=m.move(a.safe(e.title,{before:h,after:s,...m.current()})),h+=m.move(s),f()),h+=m.move(")"),c(),h}function fD(){return"!"}sS.peek=dD;function sS(e,n,a,r){const s=e.referenceType,u=a.enter("imageReference");let c=a.enter("label");const f=a.createTracker(r);let m=f.move("![");const h=a.safe(e.alt,{before:m,after:"]",...f.current()});m+=f.move(h+"]["),c();const v=a.stack;a.stack=[],c=a.enter("reference");const g=a.safe(a.associationId(e),{before:m,after:"]",...f.current()});return c(),a.stack=v,u(),s==="full"||!h||h!==g?m+=f.move(g+"]"):s==="shortcut"?m=m.slice(0,-1):m+=f.move("]"),m}function dD(){return"!"}oS.peek=hD;function oS(e,n,a){let r=e.value||"",s="`",u=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(r);)s+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++u<a.unsafe.length;){const c=a.unsafe[u],f=a.compilePattern(c);let m;if(c.atBreak)for(;m=f.exec(r);){let h=m.index;r.charCodeAt(h)===10&&r.charCodeAt(h-1)===13&&h--,r=r.slice(0,h)+" "+r.slice(m.index+1)}}return s+r+s}function hD(){return"`"}function uS(e,n){const a=Oh(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(a===e.url||"mailto:"+a===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}cS.peek=mD;function cS(e,n,a,r){const s=Ih(a),u=s==='"'?"Quote":"Apostrophe",c=a.createTracker(r);let f,m;if(uS(e,a)){const v=a.stack;a.stack=[],f=a.enter("autolink");let g=c.move("<");return g+=c.move(a.containerPhrasing(e,{before:g,after:">",...c.current()})),g+=c.move(">"),f(),a.stack=v,g}f=a.enter("link"),m=a.enter("label");let h=c.move("[");return h+=c.move(a.containerPhrasing(e,{before:h,after:"](",...c.current()})),h+=c.move("]("),m(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(m=a.enter("destinationLiteral"),h+=c.move("<"),h+=c.move(a.safe(e.url,{before:h,after:">",...c.current()})),h+=c.move(">")):(m=a.enter("destinationRaw"),h+=c.move(a.safe(e.url,{before:h,after:e.title?" ":")",...c.current()}))),m(),e.title&&(m=a.enter(`title${u}`),h+=c.move(" "+s),h+=c.move(a.safe(e.title,{before:h,after:s,...c.current()})),h+=c.move(s),m()),h+=c.move(")"),f(),h}function mD(e,n,a){return uS(e,a)?"<":"["}fS.peek=pD;function fS(e,n,a,r){const s=e.referenceType,u=a.enter("linkReference");let c=a.enter("label");const f=a.createTracker(r);let m=f.move("[");const h=a.containerPhrasing(e,{before:m,after:"]",...f.current()});m+=f.move(h+"]["),c();const v=a.stack;a.stack=[],c=a.enter("reference");const g=a.safe(a.associationId(e),{before:m,after:"]",...f.current()});return c(),a.stack=v,u(),s==="full"||!h||h!==g?m+=f.move(g+"]"):s==="shortcut"?m=m.slice(0,-1):m+=f.move("]"),m}function pD(){return"["}function qh(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function gD(e){const n=qh(e),a=e.options.bulletOther;if(!a)return n==="*"?"-":"*";if(a!=="*"&&a!=="+"&&a!=="-")throw new Error("Cannot serialize items with `"+a+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(a===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+a+"`) to be different");return a}function yD(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function dS(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function vD(e,n,a,r){const s=a.enter("list"),u=a.bulletCurrent;let c=e.ordered?yD(a):qh(a);const f=e.ordered?c==="."?")":".":gD(a);let m=n&&a.bulletLastUsed?c===a.bulletLastUsed:!1;if(!e.ordered){const v=e.children?e.children[0]:void 0;if((c==="*"||c==="-")&&v&&(!v.children||!v.children[0])&&a.stack[a.stack.length-1]==="list"&&a.stack[a.stack.length-2]==="listItem"&&a.stack[a.stack.length-3]==="list"&&a.stack[a.stack.length-4]==="listItem"&&a.indexStack[a.indexStack.length-1]===0&&a.indexStack[a.indexStack.length-2]===0&&a.indexStack[a.indexStack.length-3]===0&&(m=!0),dS(a)===c&&v){let g=-1;for(;++g<e.children.length;){const x=e.children[g];if(x&&x.type==="listItem"&&x.children&&x.children[0]&&x.children[0].type==="thematicBreak"){m=!0;break}}}}m&&(c=f),a.bulletCurrent=c;const h=a.containerFlow(e,r);return a.bulletLastUsed=c,a.bulletCurrent=u,s(),h}function xD(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function bD(e,n,a,r){const s=xD(a);let u=a.bulletCurrent||qh(a);n&&n.type==="list"&&n.ordered&&(u=(typeof n.start=="number"&&n.start>-1?n.start:1)+(a.options.incrementListMarker===!1?0:n.children.indexOf(e))+u);let c=u.length+1;(s==="tab"||s==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(c=Math.ceil(c/4)*4);const f=a.createTracker(r);f.move(u+" ".repeat(c-u.length)),f.shift(c);const m=a.enter("listItem"),h=a.indentLines(a.containerFlow(e,f.current()),v);return m(),h;function v(g,x,S){return x?(S?"":" ".repeat(c))+g:(S?u:u+" ".repeat(c-u.length))+g}}function SD(e,n,a,r){const s=a.enter("paragraph"),u=a.enter("phrasing"),c=a.containerPhrasing(e,r);return u(),s(),c}const wD=Cu(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function ED(e,n,a,r){return(e.children.some(function(c){return wD(c)})?a.containerPhrasing:a.containerFlow).call(a,e,r)}function TD(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}hS.peek=CD;function hS(e,n,a,r){const s=TD(a),u=a.enter("strong"),c=a.createTracker(r),f=c.move(s+s);let m=c.move(a.containerPhrasing(e,{after:s,before:f,...c.current()}));const h=m.charCodeAt(0),v=su(r.before.charCodeAt(r.before.length-1),h,s);v.inside&&(m=ss(h)+m.slice(1));const g=m.charCodeAt(m.length-1),x=su(r.after.charCodeAt(0),g,s);x.inside&&(m=m.slice(0,-1)+ss(g));const S=c.move(s+s);return u(),a.attentionEncodeSurroundingInfo={after:x.outside,before:v.outside},f+m+S}function CD(e,n,a){return a.options.strong||"*"}function AD(e,n,a,r){return a.safe(e.value,r)}function kD(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function ND(e,n,a){const r=(dS(a)+(a.options.ruleSpaces?" ":"")).repeat(kD(a));return a.options.ruleSpaces?r.slice(0,-1):r}const mS={blockquote:$M,break:xx,code:iD,definition:rD,emphasis:aS,hardBreak:xx,heading:uD,html:rS,image:lS,imageReference:sS,inlineCode:oS,link:cS,linkReference:fS,list:vD,listItem:bD,paragraph:SD,root:ED,strong:hS,text:AD,thematicBreak:ND};function jD(){return{enter:{table:RD,tableData:bx,tableHeader:bx,tableRow:DD},exit:{codeText:OD,table:MD,tableData:fd,tableHeader:fd,tableRow:fd}}}function RD(e){const n=e._align;this.enter({type:"table",align:n.map(function(a){return a==="none"?null:a}),children:[]},e),this.data.inTable=!0}function MD(e){this.exit(e),this.data.inTable=void 0}function DD(e){this.enter({type:"tableRow",children:[]},e)}function fd(e){this.exit(e)}function bx(e){this.enter({type:"tableCell",children:[]},e)}function OD(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,zD));const a=this.stack[this.stack.length-1];a.type,a.value=n,this.exit(e)}function zD(e,n){return n==="|"?n:e}function LD(e){const n=e||{},a=n.tableCellPadding,r=n.tablePipeAlign,s=n.stringLength,u=a?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
40
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:x,table:c,tableCell:m,tableRow:f}};function c(S,E,A,N){return h(v(S,A,N),S.align)}function f(S,E,A,N){const k=g(S,A,N),O=h([k]);return O.slice(0,O.indexOf(`
|
|
41
|
-
`))}function m(S,E,A,N){const k=A.enter("tableCell"),O=A.enter("phrasing"),R=A.containerPhrasing(S,{...N,before:u,after:u});return O(),k(),R}function h(S,E){return QM(S,{align:E,alignDelimiters:r,padding:a,stringLength:s})}function v(S,E,A){const N=S.children;let k=-1;const O=[],R=E.enter("table");for(;++k<N.length;)O[k]=g(N[k],E,A);return R(),O}function g(S,E,A){const N=S.children;let k=-1;const O=[],R=E.enter("tableRow");for(;++k<N.length;)O[k]=m(N[k],S,E,A);return R(),O}function x(S,E,A){let N=mS.inlineCode(S,E,A);return A.stack.includes("tableCell")&&(N=N.replace(/\|/g,"\\$&")),N}}function _D(){return{exit:{taskListCheckValueChecked:Sx,taskListCheckValueUnchecked:Sx,paragraph:VD}}}function BD(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:UD}}}function Sx(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function VD(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const a=this.stack[this.stack.length-1];a.type;const r=a.children[0];if(r&&r.type==="text"){const s=n.children;let u=-1,c;for(;++u<s.length;){const f=s[u];if(f.type==="paragraph"){c=f;break}}c===a&&(r.value=r.value.slice(1),r.value.length===0?a.children.shift():a.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,a.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function UD(e,n,a,r){const s=e.children[0],u=typeof e.checked=="boolean"&&s&&s.type==="paragraph",c="["+(e.checked?"x":" ")+"] ",f=a.createTracker(r);u&&f.move(c);let m=mS.listItem(e,n,a,{...r,...f.current()});return u&&(m=m.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),m;function h(v){return v+c}}function HD(){return[vM(),UM(),qM(),jD(),_D()]}function PD(e){return{extensions:[xM(),HM(e),FM(),LD(e),BD()]}}const ID={tokenize:KD,partial:!0},pS={tokenize:QD,partial:!0},gS={tokenize:ZD,partial:!0},yS={tokenize:$D,partial:!0},qD={tokenize:JD,partial:!0},vS={name:"wwwAutolink",tokenize:YD,previous:bS},xS={name:"protocolAutolink",tokenize:XD,previous:SS},Bi={name:"emailAutolink",tokenize:GD,previous:wS},mi={};function FD(){return{text:mi}}let za=48;for(;za<123;)mi[za]=Bi,za++,za===58?za=65:za===91&&(za=97);mi[43]=Bi;mi[45]=Bi;mi[46]=Bi;mi[95]=Bi;mi[72]=[Bi,xS];mi[104]=[Bi,xS];mi[87]=[Bi,vS];mi[119]=[Bi,vS];function GD(e,n,a){const r=this;let s,u;return c;function c(g){return!Yd(g)||!wS.call(r,r.previous)||Fh(r.events)?a(g):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(g))}function f(g){return Yd(g)?(e.consume(g),f):g===64?(e.consume(g),m):a(g)}function m(g){return g===46?e.check(qD,v,h)(g):g===45||g===95||Ft(g)?(u=!0,e.consume(g),m):v(g)}function h(g){return e.consume(g),s=!0,m}function v(g){return u&&s&&$t(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(g)):a(g)}}function YD(e,n,a){const r=this;return s;function s(c){return c!==87&&c!==119||!bS.call(r,r.previous)||Fh(r.events)?a(c):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(ID,e.attempt(pS,e.attempt(gS,u),a),a)(c))}function u(c){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(c)}}function XD(e,n,a){const r=this;let s="",u=!1;return c;function c(g){return(g===72||g===104)&&SS.call(r,r.previous)&&!Fh(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),s+=String.fromCodePoint(g),e.consume(g),f):a(g)}function f(g){if($t(g)&&s.length<5)return s+=String.fromCodePoint(g),e.consume(g),f;if(g===58){const x=s.toLowerCase();if(x==="http"||x==="https")return e.consume(g),m}return a(g)}function m(g){return g===47?(e.consume(g),u?h:(u=!0,m)):a(g)}function h(g){return g===null||au(g)||We(g)||Ia(g)||wu(g)?a(g):e.attempt(pS,e.attempt(gS,v),a)(g)}function v(g){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(g)}}function KD(e,n,a){let r=0;return s;function s(c){return(c===87||c===119)&&r<3?(r++,e.consume(c),s):c===46&&r===3?(e.consume(c),u):a(c)}function u(c){return c===null?a(c):n(c)}}function QD(e,n,a){let r,s,u;return c;function c(h){return h===46||h===95?e.check(yS,m,f)(h):h===null||We(h)||Ia(h)||h!==45&&wu(h)?m(h):(u=!0,e.consume(h),c)}function f(h){return h===95?r=!0:(s=r,r=void 0),e.consume(h),c}function m(h){return s||r||!u?a(h):n(h)}}function ZD(e,n){let a=0,r=0;return s;function s(c){return c===40?(a++,e.consume(c),s):c===41&&r<a?u(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?e.check(yS,n,u)(c):c===null||We(c)||Ia(c)?n(c):(e.consume(c),s)}function u(c){return c===41&&r++,e.consume(c),s}}function $D(e,n,a){return r;function r(f){return f===33||f===34||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===63||f===95||f===126?(e.consume(f),r):f===38?(e.consume(f),u):f===93?(e.consume(f),s):f===60||f===null||We(f)||Ia(f)?n(f):a(f)}function s(f){return f===null||f===40||f===91||We(f)||Ia(f)?n(f):r(f)}function u(f){return $t(f)?c(f):a(f)}function c(f){return f===59?(e.consume(f),r):$t(f)?(e.consume(f),c):a(f)}}function JD(e,n,a){return r;function r(u){return e.consume(u),s}function s(u){return Ft(u)?a(u):n(u)}}function bS(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||We(e)}function SS(e){return!$t(e)}function wS(e){return!(e===47||Yd(e))}function Yd(e){return e===43||e===45||e===46||e===95||Ft(e)}function Fh(e){let n=e.length,a=!1;for(;n--;){const r=e[n][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){a=!0;break}if(r._gfmAutolinkLiteralWalkedInto){a=!1;break}}return e.length>0&&!a&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),a}const WD={tokenize:s2,partial:!0};function e2(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:a2,continuation:{tokenize:r2},exit:l2}},text:{91:{name:"gfmFootnoteCall",tokenize:i2},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:t2,resolveTo:n2}}}}function t2(e,n,a){const r=this;let s=r.events.length;const u=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let c;for(;s--;){const m=r.events[s][1];if(m.type==="labelImage"){c=m;break}if(m.type==="gfmFootnoteCall"||m.type==="labelLink"||m.type==="label"||m.type==="image"||m.type==="link")break}return f;function f(m){if(!c||!c._balanced)return a(m);const h=Qn(r.sliceSerialize({start:c.end,end:r.now()}));return h.codePointAt(0)!==94||!u.includes(h.slice(1))?a(m):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),n(m))}}function n2(e,n){let a=e.length;for(;a--;)if(e[a][1].type==="labelImage"&&e[a][0]==="enter"){e[a][1];break}e[a+1][1].type="data",e[a+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[a+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[a+3][1].end),end:Object.assign({},e[a+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const u={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},u.start),end:Object.assign({},u.end)},f=[e[a+1],e[a+2],["enter",r,n],e[a+3],e[a+4],["enter",s,n],["exit",s,n],["enter",u,n],["enter",c,n],["exit",c,n],["exit",u,n],e[e.length-2],e[e.length-1],["exit",r,n]];return e.splice(a,e.length-a+1,...f),e}function i2(e,n,a){const r=this,s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let u=0,c;return f;function f(g){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),m}function m(g){return g!==94?a(g):(e.enter("gfmFootnoteCallMarker"),e.consume(g),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(g){if(u>999||g===93&&!c||g===null||g===91||We(g))return a(g);if(g===93){e.exit("chunkString");const x=e.exit("gfmFootnoteCallString");return s.includes(Qn(r.sliceSerialize(x)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):a(g)}return We(g)||(c=!0),u++,e.consume(g),g===92?v:h}function v(g){return g===91||g===92||g===93?(e.consume(g),u++,h):h(g)}}function a2(e,n,a){const r=this,s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let u,c=0,f;return m;function m(E){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(E){return E===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",v):a(E)}function v(E){if(c>999||E===93&&!f||E===null||E===91||We(E))return a(E);if(E===93){e.exit("chunkString");const A=e.exit("gfmFootnoteDefinitionLabelString");return u=Qn(r.sliceSerialize(A)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),x}return We(E)||(f=!0),c++,e.consume(E),E===92?g:v}function g(E){return E===91||E===92||E===93?(e.consume(E),c++,v):v(E)}function x(E){return E===58?(e.enter("definitionMarker"),e.consume(E),e.exit("definitionMarker"),s.includes(u)||s.push(u),Be(e,S,"gfmFootnoteDefinitionWhitespace")):a(E)}function S(E){return n(E)}}function r2(e,n,a){return e.check(gs,n,e.attempt(WD,n,a))}function l2(e){e.exit("gfmFootnoteDefinition")}function s2(e,n,a){const r=this;return Be(e,s,"gfmFootnoteDefinitionIndent",5);function s(u){const c=r.events[r.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?n(u):a(u)}}function o2(e){let a=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:u,resolveAll:s};return a==null&&(a=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function s(c,f){let m=-1;for(;++m<c.length;)if(c[m][0]==="enter"&&c[m][1].type==="strikethroughSequenceTemporary"&&c[m][1]._close){let h=m;for(;h--;)if(c[h][0]==="exit"&&c[h][1].type==="strikethroughSequenceTemporary"&&c[h][1]._open&&c[m][1].end.offset-c[m][1].start.offset===c[h][1].end.offset-c[h][1].start.offset){c[m][1].type="strikethroughSequence",c[h][1].type="strikethroughSequence";const v={type:"strikethrough",start:Object.assign({},c[h][1].start),end:Object.assign({},c[m][1].end)},g={type:"strikethroughText",start:Object.assign({},c[h][1].end),end:Object.assign({},c[m][1].start)},x=[["enter",v,f],["enter",c[h][1],f],["exit",c[h][1],f],["enter",g,f]],S=f.parser.constructs.insideSpan.null;S&&Sn(x,x.length,0,Eu(S,c.slice(h+1,m),f)),Sn(x,x.length,0,[["exit",g,f],["enter",c[m][1],f],["exit",c[m][1],f],["exit",v,f]]),Sn(c,h-1,m-h+3,x),m=h+x.length-2;break}}for(m=-1;++m<c.length;)c[m][1].type==="strikethroughSequenceTemporary"&&(c[m][1].type="data");return c}function u(c,f,m){const h=this.previous,v=this.events;let g=0;return x;function x(E){return h===126&&v[v.length-1][1].type!=="characterEscape"?m(E):(c.enter("strikethroughSequenceTemporary"),S(E))}function S(E){const A=Ir(h);if(E===126)return g>1?m(E):(c.consume(E),g++,S);if(g<2&&!a)return m(E);const N=c.exit("strikethroughSequenceTemporary"),k=Ir(E);return N._open=!k||k===2&&!!A,N._close=!A||A===2&&!!k,f(E)}}}class u2{constructor(){this.map=[]}add(n,a,r){c2(this,n,a,r)}consume(n){if(this.map.sort(function(u,c){return u[0]-c[0]}),this.map.length===0)return;let a=this.map.length;const r=[];for(;a>0;)a-=1,r.push(n.slice(this.map[a][0]+this.map[a][1]),this.map[a][2]),n.length=this.map[a][0];r.push(n.slice()),n.length=0;let s=r.pop();for(;s;){for(const u of s)n.push(u);s=r.pop()}this.map.length=0}}function c2(e,n,a,r){let s=0;if(!(a===0&&r.length===0)){for(;s<e.map.length;){if(e.map[s][0]===n){e.map[s][1]+=a,e.map[s][2].push(...r);return}s+=1}e.map.push([n,a,r])}}function f2(e,n){let a=!1;const r=[];for(;n<e.length;){const s=e[n];if(a){if(s[0]==="enter")s[1].type==="tableContent"&&r.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const u=r.length-1;r[u]=r[u]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(a=!0);n+=1}return r}function d2(){return{flow:{null:{name:"table",tokenize:h2,resolveAll:m2}}}}function h2(e,n,a){const r=this;let s=0,u=0,c;return f;function f(B){let ae=r.events.length-1;for(;ae>-1;){const se=r.events[ae][1].type;if(se==="lineEnding"||se==="linePrefix")ae--;else break}const re=ae>-1?r.events[ae][1].type:null,te=re==="tableHead"||re==="tableRow"?z:m;return te===z&&r.parser.lazy[r.now().line]?a(B):te(B)}function m(B){return e.enter("tableHead"),e.enter("tableRow"),h(B)}function h(B){return B===124||(c=!0,u+=1),v(B)}function v(B){return B===null?a(B):Se(B)?u>1?(u=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),S):a(B):Me(B)?Be(e,v,"whitespace")(B):(u+=1,c&&(c=!1,s+=1),B===124?(e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),c=!0,v):(e.enter("data"),g(B)))}function g(B){return B===null||B===124||We(B)?(e.exit("data"),v(B)):(e.consume(B),B===92?x:g)}function x(B){return B===92||B===124?(e.consume(B),g):g(B)}function S(B){return r.interrupt=!1,r.parser.lazy[r.now().line]?a(B):(e.enter("tableDelimiterRow"),c=!1,Me(B)?Be(e,E,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):E(B))}function E(B){return B===45||B===58?N(B):B===124?(c=!0,e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),A):U(B)}function A(B){return Me(B)?Be(e,N,"whitespace")(B):N(B)}function N(B){return B===58?(u+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(B),e.exit("tableDelimiterMarker"),k):B===45?(u+=1,k(B)):B===null||Se(B)?Y(B):U(B)}function k(B){return B===45?(e.enter("tableDelimiterFiller"),O(B)):U(B)}function O(B){return B===45?(e.consume(B),O):B===58?(c=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(B),e.exit("tableDelimiterMarker"),R):(e.exit("tableDelimiterFiller"),R(B))}function R(B){return Me(B)?Be(e,Y,"whitespace")(B):Y(B)}function Y(B){return B===124?E(B):B===null||Se(B)?!c||s!==u?U(B):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(B)):U(B)}function U(B){return a(B)}function z(B){return e.enter("tableRow"),Q(B)}function Q(B){return B===124?(e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),Q):B===null||Se(B)?(e.exit("tableRow"),n(B)):Me(B)?Be(e,Q,"whitespace")(B):(e.enter("data"),ee(B))}function ee(B){return B===null||B===124||We(B)?(e.exit("data"),Q(B)):(e.consume(B),B===92?oe:ee)}function oe(B){return B===92||B===124?(e.consume(B),ee):ee(B)}}function m2(e,n){let a=-1,r=!0,s=0,u=[0,0,0,0],c=[0,0,0,0],f=!1,m=0,h,v,g;const x=new u2;for(;++a<e.length;){const S=e[a],E=S[1];S[0]==="enter"?E.type==="tableHead"?(f=!1,m!==0&&(wx(x,n,m,h,v),v=void 0,m=0),h={type:"table",start:Object.assign({},E.start),end:Object.assign({},E.end)},x.add(a,0,[["enter",h,n]])):E.type==="tableRow"||E.type==="tableDelimiterRow"?(r=!0,g=void 0,u=[0,0,0,0],c=[0,a+1,0,0],f&&(f=!1,v={type:"tableBody",start:Object.assign({},E.start),end:Object.assign({},E.end)},x.add(a,0,[["enter",v,n]])),s=E.type==="tableDelimiterRow"?2:v?3:1):s&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")?(r=!1,c[2]===0&&(u[1]!==0&&(c[0]=c[1],g=Po(x,n,u,s,void 0,g),u=[0,0,0,0]),c[2]=a)):E.type==="tableCellDivider"&&(r?r=!1:(u[1]!==0&&(c[0]=c[1],g=Po(x,n,u,s,void 0,g)),u=c,c=[u[1],a,0,0])):E.type==="tableHead"?(f=!0,m=a):E.type==="tableRow"||E.type==="tableDelimiterRow"?(m=a,u[1]!==0?(c[0]=c[1],g=Po(x,n,u,s,a,g)):c[1]!==0&&(g=Po(x,n,c,s,a,g)),s=0):s&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")&&(c[3]=a)}for(m!==0&&wx(x,n,m,h,v),x.consume(n.events),a=-1;++a<n.events.length;){const S=n.events[a];S[0]==="enter"&&S[1].type==="table"&&(S[1]._align=f2(n.events,a))}return e}function Po(e,n,a,r,s,u){const c=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",f="tableContent";a[0]!==0&&(u.end=Object.assign({},Rr(n.events,a[0])),e.add(a[0],0,[["exit",u,n]]));const m=Rr(n.events,a[1]);if(u={type:c,start:Object.assign({},m),end:Object.assign({},m)},e.add(a[1],0,[["enter",u,n]]),a[2]!==0){const h=Rr(n.events,a[2]),v=Rr(n.events,a[3]),g={type:f,start:Object.assign({},h),end:Object.assign({},v)};if(e.add(a[2],0,[["enter",g,n]]),r!==2){const x=n.events[a[2]],S=n.events[a[3]];if(x[1].end=Object.assign({},S[1].end),x[1].type="chunkText",x[1].contentType="text",a[3]>a[2]+1){const E=a[2]+1,A=a[3]-a[2]-1;e.add(E,A,[])}}e.add(a[3]+1,0,[["exit",g,n]])}return s!==void 0&&(u.end=Object.assign({},Rr(n.events,s)),e.add(s,0,[["exit",u,n]]),u=void 0),u}function wx(e,n,a,r,s){const u=[],c=Rr(n.events,a);s&&(s.end=Object.assign({},c),u.push(["exit",s,n])),r.end=Object.assign({},c),u.push(["exit",r,n]),e.add(a+1,0,u)}function Rr(e,n){const a=e[n],r=a[0]==="enter"?"start":"end";return a[1][r]}const p2={name:"tasklistCheck",tokenize:y2};function g2(){return{text:{91:p2}}}function y2(e,n,a){const r=this;return s;function s(m){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?a(m):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(m),e.exit("taskListCheckMarker"),u)}function u(m){return We(m)?(e.enter("taskListCheckValueUnchecked"),e.consume(m),e.exit("taskListCheckValueUnchecked"),c):m===88||m===120?(e.enter("taskListCheckValueChecked"),e.consume(m),e.exit("taskListCheckValueChecked"),c):a(m)}function c(m){return m===93?(e.enter("taskListCheckMarker"),e.consume(m),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):a(m)}function f(m){return Se(m)?n(m):Me(m)?e.check({tokenize:v2},n,a)(m):a(m)}}function v2(e,n,a){return Be(e,r,"whitespace");function r(s){return s===null?a(s):n(s)}}function x2(e){return O0([FD(),e2(),o2(e),d2(),g2()])}const b2={};function S2(e){const n=this,a=e||b2,r=n.data(),s=r.micromarkExtensions||(r.micromarkExtensions=[]),u=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),c=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);s.push(x2(a)),u.push(HD()),c.push(PD(a))}function fa({value:e,className:n}){return y.jsx("div",{className:n??"anima-markdown",children:y.jsx(oM,{remarkPlugins:[S2],components:{a:({node:a,...r})=>y.jsx("a",{...r,target:"_blank",rel:"noopener noreferrer",children:r.children})},children:e})})}function Kl(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function ou(e){const n={enabled:!1,every:"5m",target:"last",session:"main",model:"",prompt:"Check mission control, review queued work, and when NoxSoft MCP/chat is available, check in with Nox briefly before syncing continuity files.",activeStart:"",activeEnd:"",activeTimezone:"",ackMaxChars:"",includeReasoning:!1},a=e?.config;if(!Kl(a))return n;const r=Kl(a.agents)?a.agents:null,s=r&&Kl(r.defaults)?r.defaults:null,u=s&&Kl(s.heartbeat)?s.heartbeat:null;if(!u)return n;const c=Kl(u.activeHours)?u.activeHours:null;return{enabled:!0,every:typeof u.every=="string"?u.every:"",target:typeof u.target=="string"?u.target:"",session:typeof u.session=="string"?u.session:"",model:typeof u.model=="string"?u.model:"",prompt:typeof u.prompt=="string"?u.prompt:"",activeStart:c&&typeof c.start=="string"?c.start:"",activeEnd:c&&typeof c.end=="string"?c.end:"",activeTimezone:c&&typeof c.timezone=="string"?c.timezone:"",ackMaxChars:typeof u.ackMaxChars=="number"&&Number.isFinite(u.ackMaxChars)?String(u.ackMaxChars):"",includeReasoning:u.includeReasoning===!0}}function ES(e){const n={includeReasoning:e.includeReasoning},a=e.every.trim(),r=e.target.trim(),s=e.session.trim(),u=e.model.trim(),c=e.prompt.trim(),f=e.activeStart.trim(),m=e.activeEnd.trim(),h=e.activeTimezone.trim(),v=e.ackMaxChars.trim();if(a&&(n.every=a),r&&(n.target=r),s&&(n.session=s),u&&(n.model=u),c&&(n.prompt=c),(f||m||h)&&(n.activeHours={...f?{start:f}:{},...m?{end:m}:{},...h?{timezone:h}:{}}),v){const g=Number.parseInt(v,10);if(!Number.isFinite(g)||g<0)throw new Error("Heartbeat ackMaxChars must be a non-negative integer.");n.ackMaxChars=g}return{agents:{defaults:{heartbeat:n}}}}const w2=Ch(),E2=/\[\[\s*(?:reply_to_current|reply_to\s*:[^\]\n]*|audio_as_voice)\s*\]\]/gi;function Ex(e){const n=[];return{text:e.replace(E2,r=>{const s=r.replace(/[[\]\s]/g,"").trim();return n.push({tag:s,raw:r.trim()}),""}).replace(/[ \t]+/g," ").trim(),directives:n}}const Io="main",Tx=3;function Ba(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():`id-${Date.now()}-${Math.random().toString(36).slice(2)}`}function Ur(e){if(!e)return"";if(typeof e=="string")return e;if(Array.isArray(e))return e.map(n=>Ur(n)).join(`
|
|
42
|
-
`).trim();if(typeof e=="object"){const n=e;if(typeof n.text=="string"||n.type==="text"&&typeof n.text=="string")return n.text;if("message"in n)return Ur(n.message);if("content"in n)return Ur(n.content)}return""}function T2(e,n){const a=n.replace(/\r/g,"");if(!a)return e;if(!e||a===e||a.startsWith(e)||a.includes(e))return a;const r=Math.min(e.length,a.length);for(let s=r;s>0;s-=1)if(e.slice(-s)===a.slice(0,s))return`${e}${a.slice(s)}`;return`${e}${a}`}function C2(e){return Array.isArray(e)?e.map(n=>{if(!n||typeof n!="object")return null;const a=n;if(a.role!=="user"&&a.role!=="assistant")return null;const r=Ur(a.content).trim();return r?{id:Ba(),role:a.role,text:r,timestamp:typeof a.timestamp=="number"?a.timestamp:Date.now()}:null}).filter(n=>!!n):[]}function Qo(e){if(!e)return"never";const n=typeof e=="number"?e:new Date(e).getTime();if(!Number.isFinite(n))return"unknown";const a=Date.now()-n,r=Math.round(a/6e4);if(Math.abs(r)<1)return"just now";if(Math.abs(r)<60)return`${r}m ago`;const s=Math.round(r/60);return Math.abs(s)<24?`${s}h ago`:`${Math.round(s/24)}d ago`}function A2(e){const n=e.trim();if(!n)return"subagent";const a=":subagent:",r=n.lastIndexOf(a);return r>=0?`subagent:${n.slice(r+a.length)}`:n.length>56?`${n.slice(0,53)}...`:n}function Dr(e){const n=e.tone??"accent";return y.jsx("span",{className:`badge badge-${n}`,children:e.label})}function Oi(e){return y.jsxs("div",{className:"runtime-stat",children:[y.jsx("div",{className:"runtime-stat-label",children:e.label}),y.jsx("div",{className:"runtime-stat-value",children:e.value}),e.detail?y.jsx("div",{className:"runtime-stat-detail",children:e.detail}):null]})}function k2(e){return y.jsx("div",{className:"segmented-control",children:["read","write"].map(n=>y.jsx("button",{type:"button",className:`segment ${e.value===n?"active":""}`,disabled:e.busy,onClick:()=>e.onChange(n),children:n.toUpperCase()},n))})}function N2({subagents:e}){return e?y.jsxs("div",{className:"card",children:[y.jsxs("div",{className:"card-header",children:[y.jsxs("div",{children:[y.jsx("div",{className:"card-title",children:"Subagents"}),y.jsx("div",{className:"card-subtitle",children:"Native orchestration visibility"})]}),y.jsx(Dr,{label:`${e.total} tracked`})]}),y.jsxs("div",{className:"stats-grid compact",children:[y.jsx(Oi,{label:"Active",value:String(e.active)}),y.jsx(Oi,{label:"Recent",value:String(e.recent)}),y.jsx(Oi,{label:"Failed",value:String(e.failed)})]}),e.latest.length===0?y.jsx("div",{className:"empty-note",children:"No subagent activity yet."}):y.jsx("div",{className:"activity-list",children:e.latest.map(n=>y.jsxs("div",{className:"activity-row",children:[y.jsxs("div",{children:[y.jsx("div",{className:"mono subtle",children:A2(n.key)}),y.jsx("div",{className:"runtime-stat-detail",children:Qo(n.updatedAt)})]}),y.jsx(Dr,{tone:n.status==="failed"?"error":n.status==="active"?"success":n.status==="recent"?"accent":"warning",label:n.status})]},`${n.key}:${n.updatedAt??"none"}`))})]}):null}function j2({tools:e}){const[n,a]=T.useState(!1),r=e.filter(u=>u.status==="done").length,s=e.filter(u=>u.status==="error").length;return y.jsxs("div",{className:"tool-activity-panel",children:[y.jsxs("button",{type:"button",className:"tool-activity-toggle",onClick:()=>a(u=>!u),children:[y.jsx("span",{className:"tool-activity-icon",children:n?"▾":"▸"}),y.jsxs("span",{className:"tool-activity-summary",children:[e.length," tool",e.length!==1?"s":""," used",s>0&&y.jsxs("span",{className:"tool-count-error",children:[" · ",s," failed"]}),r>0&&!s&&y.jsx("span",{className:"tool-count-ok",children:" · all succeeded"})]})]}),n&&y.jsx("div",{className:"tool-activity-list",children:e.map(u=>y.jsx(R2,{tool:u},u.id))})]})}function R2({tool:e}){const[n,a]=T.useState(!1),r=e.status==="done"?"✓":e.status==="error"?"✗":"◌",s=e.status==="done"?"success":e.status==="error"?"error":"running";return y.jsxs("div",{className:`tool-activity-item ${s}`,children:[y.jsxs("button",{type:"button",className:"tool-activity-item-header",onClick:()=>a(u=>!u),children:[y.jsx("span",{className:`tool-status-icon ${s}`,children:r}),y.jsx("span",{className:"tool-name",children:e.name}),(e.input||e.result)&&y.jsx("span",{className:"tool-detail-toggle",children:n?"▾":"▸"})]}),n&&(e.input||e.result)&&y.jsxs("div",{className:"tool-detail-body",children:[e.input&&y.jsxs("div",{className:"tool-detail-section",children:[y.jsx("div",{className:"tool-detail-label",children:"Input"}),y.jsx("pre",{className:"tool-detail-pre",children:e.input})]}),e.result&&y.jsxs("div",{className:"tool-detail-section",children:[y.jsx("div",{className:"tool-detail-label",children:"Result"}),y.jsx("pre",{className:"tool-detail-pre",children:e.result})]})]})]})}function M2({runId:e,activity:n}){const a=e?n.get(e):void 0;return!a||a.length===0?null:y.jsx("div",{className:"live-tool-activity",children:a.map(r=>y.jsxs("div",{className:`live-tool-chip ${r.status}`,children:[y.jsx("span",{className:"live-tool-dot"}),y.jsx("span",{className:"live-tool-name",children:r.name})]},r.id))})}function D2({directives:e}){return y.jsx("div",{className:"directive-badges",children:e.map((n,a)=>y.jsx("span",{className:"directive-badge",title:n.raw,children:n.tag.replace(/_/g," ")},a))})}function O2(){const[e,n]=T.useState(null),[a,r]=T.useState(null),[s,u]=T.useState(null),[c,f]=T.useState(null),[m,h]=T.useState(()=>ou(null)),[v,g]=T.useState(null),[x,S]=T.useState(null),[E,A]=T.useState(null),[N,k]=T.useState(!1),[O,R]=T.useState(!1),[Y,U]=T.useState(!1),[z,Q]=T.useState(!1),[ee,oe]=T.useState(!1),[B,ae]=T.useState("Check chat.noxsoft.net, sync mission control, and report anything needing action."),[re,te]=T.useState(!1),[se,ne]=T.useState([]),[H,$]=T.useState(""),[ue,xe]=T.useState(null),[j,D]=T.useState(!1),[X,C]=T.useState(""),[ce,de]=T.useState(!1),[ge,pe]=T.useState(!1),[Ie,ze]=T.useState(null),[ut,Xe]=T.useState([]),[Vn,Wn]=T.useState(new Map),ct=T.useRef(new Map);T.useEffect(()=>{ct.current=Vn},[Vn]);const Xt=T.useRef(null),Kt=T.useRef(new Map),En=T.useRef(null),cn=T.useRef(null),Ot=T.useRef(null),Un=T.useRef(""),ei=T.useRef(null),Tn=T.useRef(null),Vi=T.useRef(new Set),at=a?.assistant?.name?.trim()||s?.agent?.display_name||"ANIMA",F=a?.mission?.state?.workingMode??"write",_=a?.mission?.repo??a?.mission?.state?.repo,J=a?.mission?.state?.speech,ye=T.useCallback(async()=>{k(!0);try{const[ie,fe,et,Ke,ft]=await Promise.all([zA(),p0(),y0(),h0(),Dv().catch(()=>null)]);n(ie),r(fe),u(et),f(Ke),h(ou(Ke)),ft&&g(ft),S(null)}catch(ie){S(ie instanceof Error?ie.message:String(ie))}finally{k(!1),R(!0)}},[]),Te=T.useRef(void 0);T.useEffect(()=>{Te.current=v?.cursor},[v?.cursor]);const Le=T.useCallback(async()=>{try{const ie=await Dv(Te.current);g(fe=>!fe||ie.reset?ie:{...ie,lines:[...fe.lines,...ie.lines].slice(-320)})}catch{}},[]);T.useEffect(()=>{ye();const ie=window.setInterval(()=>{ye()},15e3),fe=window.setInterval(()=>{Le()},4e3);return()=>{window.clearInterval(ie),window.clearInterval(fe)}},[ye,Le]),T.useEffect(()=>{Un.current=X},[X]),T.useEffect(()=>{ei.current?.scrollIntoView({behavior:"smooth",block:"end"})},[se,X]),T.useEffect(()=>{if(typeof window>"u")return;const ie=window.speechSynthesis;if(!ie)return;const fe=()=>{const et=ie.getVoices().map(Ke=>Ke.name).filter(Boolean);Xe(et)};return fe(),ie.addEventListener?.("voiceschanged",fe),()=>ie.removeEventListener?.("voiceschanged",fe)},[]),T.useEffect(()=>{if(typeof window>"u")return;const ie=window.SpeechRecognition||window.webkitSpeechRecognition;if(!ie){de(!1),Tn.current=null;return}de(!0);const fe=new ie;fe.continuous=J?.continuous??!0,fe.interimResults=!0,fe.lang=J?.lang||"en-US";const et=dn=>{const ti=dn;let Pn="";for(let Qt=0;Qt<ti.results.length;Qt+=1){const ga=ti.results[Qt]?.[0];ga?.transcript&&(Pn+=ga.transcript)}Pn.trim()&&$(Pn.trim())},Ke=dn=>{ze(dn.error||"Voice capture failed."),pe(!1)},ft=()=>{pe(!1)};return fe.addEventListener("result",et),fe.addEventListener("error",Ke),fe.addEventListener("end",ft),Tn.current=fe,()=>{fe.removeEventListener("result",et),fe.removeEventListener("error",Ke),fe.removeEventListener("end",ft),fe.stop(),Tn.current=null}},[J?.continuous,J?.lang]),T.useEffect(()=>{if(!J?.autoSpeak||typeof window>"u"||!window.speechSynthesis)return;const ie=se.toReversed().find(et=>et.role==="assistant");if(!ie||Vi.current.has(ie.id))return;const fe=new SpeechSynthesisUtterance(ie.text);if(fe.lang=J.lang||"en-US",fe.rate=J.rate||1,fe.pitch=J.pitch||1,J.voiceName){const et=window.speechSynthesis.getVoices().find(Ke=>Ke.name===J.voiceName);et&&(fe.voice=et)}Vi.current.add(ie.id),window.speechSynthesis.cancel(),window.speechSynthesis.speak(fe)},[se,J]);const Rt=T.useMemo(()=>function(fe,et){const Ke=Xt.current;if(!Ke||Ke.readyState!==WebSocket.OPEN)return Promise.reject(new Error("Gateway websocket is not connected"));const ft=Ba(),dn={type:"req",id:ft,method:fe,params:et};return new Promise((ti,Pn)=>{Kt.current.set(ft,{resolve:ti,reject:Qt=>Pn(Qt)});try{Ke.send(JSON.stringify(dn))}catch(Qt){Kt.current.delete(ft),Pn(Qt instanceof Error?Qt:new Error(String(Qt)))}})},[]);T.useEffect(()=>{let ie=!1,fe=!1,et=!1,Ke;function ft(Ae){for(const Fe of Kt.current.values())Fe.reject(new Error(Ae));Kt.current.clear()}async function dn(){try{const Ae=await Rt("chat.history",{sessionKey:Io,limit:120});if(ie)return;ne(C2(Ae?.messages))}catch(Ae){ie||xe(Ae instanceof Error?Ae.message:String(Ae))}}async function ti(){if(ie||fe||et)return;const Ae=Xt.current;if(!(!Ae||Ae.readyState!==WebSocket.OPEN)){fe=!0;try{const Fe=Ah();if(!Fe)throw new Error("Gateway token missing. Re-open this page once with ?token=ANIMA_GATEWAY_TOKEN.");const Ve=await Th({minProtocol:Tx,maxProtocol:Tx,client:{id:"anima-control-ui",version:"1.0.0",platform:"web",mode:"webchat"},scopes:["operator.read","operator.admin"],caps:[],auth:Fe,nonce:Ke});if(await Rt("connect",Ve),ie)return;et=!0,te(!0),xe(null),dn()}catch(Fe){if(!ie){te(!1);const Ve=Fe instanceof Error?Fe.message:String(Fe);Ve!=="Gateway websocket is not connected"&&xe(Ve)}}finally{fe=!1}}}function Pn(){ie||En.current!==null||(En.current=window.setTimeout(()=>{En.current=null,ie||ga()},1500))}function Qt(Ae){if(Ae.sessionKey&&Ae.sessionKey!==Io)return;const Fe=Ae.runId;if(Fe){if(Ae.stream==="tool"){const Ve=Ae.data||{},tt=typeof Ve.name=="string"?Ve.name:typeof Ve.tool=="string"?Ve.tool:"";if(!tt)return;const Lt=typeof Ve.phase=="string"?Ve.phase:"",ni=Ve.input?typeof Ve.input=="string"?Ve.input:JSON.stringify(Ve.input,null,2):void 0,ii=Ve.result?typeof Ve.result=="string"?Ve.result:JSON.stringify(Ve.result,null,2):void 0;Wn(It=>{const dt=It.get(Fe)||[];if(Lt==="start"||Lt==="call")return new Map(It).set(Fe,[...dt,{id:Ba(),name:tt,input:ni,status:"running",timestamp:Date.now()}]);const St=[...dt],In=St.findLastIndex(Fa=>Fa.name===tt&&Fa.status==="running");return In>=0&&(St[In]={...St[In],status:Lt==="error"?"error":"done",result:ii||St[In].result}),new Map(It).set(Fe,St)})}Ae.stream==="lifecycle"&&(typeof Ae.data?.phase=="string"?Ae.data.phase:"")==="start"&&Wn(tt=>new Map(tt).set(Fe,[]))}}function Ui(Ae){if(!(Ae.sessionKey&&Ae.sessionKey!==Io)){if(Ae.state==="delta"){const Fe=Ur(Ae.message);Fe&&C(Ve=>T2(Ve,Fe));return}if(Ae.state==="final"){const Fe=Ot.current;if(Ae.runId&&Fe&&Ae.runId!==Fe)return;const Ve=Ur(Ae.message).trim()||Un.current.trim(),{text:tt,directives:Lt}=Ex(Ve),ni=Ae.runId||Ot.current||void 0,ii=ni?ct.current.get(ni):void 0;(tt||ii&&ii.length>0)&&ne(It=>[...It,{id:Ba(),role:"assistant",text:tt,timestamp:Date.now(),directives:Lt.length>0?Lt:void 0,toolActivity:ii&&ii.length>0?ii:void 0,runId:ni||void 0}]),ni&&Wn(It=>{const dt=new Map(It);return dt.delete(ni),dt}),Ot.current=null,D(!1),C("");return}if(Ae.state==="error"){const Fe=Ae.errorMessage||"Chat run failed";xe(Fe),ne(Ve=>[...Ve,{id:Ba(),role:"assistant",text:`Error: ${Fe}`,timestamp:Date.now()}]),Ot.current=null,D(!1),C("");return}Ae.state==="aborted"&&(Ot.current=null,D(!1),C(""))}}function ga(){fe=!1,et=!1,Ke=void 0;const Ae=new WebSocket(w2);Xt.current=Ae,te(!1),Ae.addEventListener("open",()=>{cn.current&&window.clearTimeout(cn.current),cn.current=window.setTimeout(()=>{cn.current=null,ti()},300)}),Ae.addEventListener("message",Fe=>{let Ve;try{Ve=JSON.parse(String(Fe.data))}catch{return}const tt=Ve;if(tt.type==="res"){const Lt=Kt.current.get(tt.id);if(!Lt)return;Kt.current.delete(tt.id),tt.ok?Lt.resolve(tt.payload):Lt.reject(new Error(tt.error?.message||"Gateway request failed"));return}if(tt.type==="event"){if(tt.event==="connect.challenge"){const Lt=Eh(tt.payload);Lt&&(Ke=Lt),ti();return}tt.event==="chat"&&Ui(tt.payload||{}),tt.event==="agent"&&Qt(tt.payload||{})}}),Ae.addEventListener("error",()=>{xe("Websocket error while connecting to ANIMA gateway")}),Ae.addEventListener("close",()=>{fe=!1,et=!1,te(!1),ft("Gateway websocket closed"),Pn()})}return ga(),()=>{ie=!0,cn.current&&window.clearTimeout(cn.current),En.current&&window.clearTimeout(En.current),ft("Dashboard shutting down"),Xt.current?.close(),Xt.current=null}},[Rt]);const en=T.useCallback(async ie=>{try{const fe=await g0({speech:ie});a&&r({...a,mission:{...a.mission,state:{...a.mission.state,speech:fe.speech}}})}catch(fe){A(fe instanceof Error?fe.message:String(fe))}},[a]);async function zt(ie){ie.preventDefault();const fe=H.trim();if(!fe||j)return;const et=Xt.current;if(!et||et.readyState!==WebSocket.OPEN){xe("Gateway websocket is not connected");return}const Ke=Ba();Ot.current=Ke,ne(ft=>[...ft,{id:Ba(),role:"user",text:fe,timestamp:Date.now()}]),$(""),D(!0),C(""),xe(null);try{await Rt("chat.send",{sessionKey:Io,message:fe,deliver:!1,idempotencyKey:Ke})}catch(ft){xe(ft instanceof Error?ft.message:String(ft)),D(!1),C(""),Ot.current=null}}async function vt(ie){U(!0),A(null);try{await HA(ie),await ye(),A(`Working mode set to ${ie}.`)}catch(fe){A(fe instanceof Error?fe.message:String(fe))}finally{U(!1)}}async function Pt(){if(!c?.hash){A("Config hash missing. Refresh the dashboard and try again.");return}Q(!0),A(null);try{await m0(JSON.stringify(ES(m),null,2),c.hash),await ye(),A("Heartbeat settings updated.")}catch(ie){A(ie instanceof Error?ie.message:String(ie))}finally{Q(!1)}}async function qe(ie){oe(!0),A(null);try{await Ld(ie),await ye(),A(ie?"Heartbeat enabled.":"Heartbeat disabled.")}catch(fe){A(fe instanceof Error?fe.message:String(fe))}finally{oe(!1)}}async function Hn(ie){A(null);try{const fe=B.trim()||"Check NoxSoft chat, mission control, and continuity status.";await v0(fe,ie),A(ie==="now"?"Heartbeat wake sent immediately.":"Wake queued for the next heartbeat.")}catch(fe){A(fe instanceof Error?fe.message:String(fe))}}function fn(){if(!Tn.current){ze("Browser speech recognition is not available here.");return}ze(null),pe(!0),Tn.current.start()}function Ru(){Tn.current?.stop(),pe(!1)}return O?x&&!a&&!e?y.jsxs("div",{children:[y.jsx("h1",{className:"page-title",children:"Assistant Home"}),y.jsxs("div",{className:"card empty-state-card",children:[y.jsx("div",{className:"empty-state-symbol",children:"!"}),y.jsx("div",{className:"empty-state-copy",children:"Unable to reach gateway"}),y.jsx("div",{className:"runtime-stat-detail",style:{marginTop:"0.5rem"},children:x}),y.jsxs("div",{className:"runtime-stat-detail",style:{marginTop:"1rem"},children:["Make sure the daemon is running with ",y.jsx("code",{children:"anima start"})," and that the gateway is accessible. If connecting via browser, verify the URL includes"," ",y.jsx("code",{children:"?token=YOUR_TOKEN"}),"."]})]})]}):y.jsxs("div",{children:[y.jsxs("div",{className:"page-header-row",children:[y.jsxs("div",{children:[y.jsxs("h1",{className:"page-title",children:[at," Home"]}),y.jsx("div",{className:"page-subtitle",children:"Local mission control, heartbeat orchestration, and direct gateway chat."})]}),y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.75rem"},children:[y.jsx("span",{className:`status-chip ${x?"offline":"online"}`,children:x?"Gateway unreachable":"Gateway connected"}),y.jsx("button",{type:"button",className:"action-button ghost",onClick:()=>{ye()},children:N?"Refreshing...":"Refresh"})]})]}),y.jsxs("div",{className:"hero-grid",children:[y.jsxs("div",{className:"card identity-hero",children:[y.jsx("div",{className:"identity-badge",children:a?.assistant.avatar||"A"}),y.jsxs("div",{children:[y.jsx("div",{className:"card-title",children:at}),y.jsx("div",{className:"card-subtitle mono",children:a?.assistant.agentId||s?.agent?.name||"main"}),y.jsxs("div",{className:"badge-row top-gap",children:[y.jsx(Dr,{tone:e?.heartbeat.running?"success":"warning",label:e?.heartbeat.running?"heartbeat live":"heartbeat idle"}),y.jsx(Dr,{tone:s?.agent?"accent":"warning",label:s?.agent?"registered":"not registered"}),y.jsx(Dr,{tone:_?.remoteConfigured?"success":"warning",label:_?.remoteConfigured?"repo linked":"repo pending"})]})]})]}),y.jsxs("div",{className:"card",children:[y.jsxs("div",{className:"card-header compact",children:[y.jsxs("div",{children:[y.jsx("div",{className:"card-title",children:"Working Mode"}),y.jsx("div",{className:"card-subtitle",children:"Control whether ANIMA is in read-only or write-capable mode."})]}),y.jsx(k2,{value:F,busy:Y,onChange:vt})]}),y.jsxs("div",{className:"runtime-stat-detail top-gap",children:["Session security:"," ",y.jsx("span",{className:"mono",children:a?.mainSession.execSecurity??"unknown"})," · Ask policy: ",y.jsx("span",{className:"mono",children:a?.mainSession.execAsk??"unknown"})]})]})]}),E?y.jsx("div",{className:"card status-banner",children:y.jsx("div",{children:E})}):null,y.jsxs("div",{className:"dashboard-grid",children:[y.jsx("div",{className:"dashboard-main-column",children:y.jsxs("div",{className:"card live-chat-card",children:[y.jsxs("div",{className:"card-header",children:[y.jsxs("div",{children:[y.jsxs("div",{className:"card-title",children:["Talk to ",at]}),y.jsx("div",{className:"card-subtitle",children:"Direct gateway chat with markdown rendering and local voice mode."})]}),y.jsx("span",{className:`status-chip ${re?"online":"offline"}`,children:re?"Connected":"Reconnecting"})]}),y.jsxs("div",{className:"live-chat-feed",children:[se.length===0&&!X?y.jsx("div",{className:"empty-note",children:"Conversation history is empty. Send a message to begin."}):null,se.map(ie=>y.jsx("div",{className:`live-chat-row ${ie.role==="user"?"user":"assistant"}`,children:y.jsxs("div",{className:`live-chat-bubble ${ie.role}`,children:[y.jsx("div",{className:"live-chat-role",children:ie.role==="user"?"You":at}),ie.toolActivity&&ie.toolActivity.length>0&&y.jsx(j2,{tools:ie.toolActivity}),ie.text&&y.jsx(fa,{value:ie.text,className:"live-chat-markdown"}),ie.directives&&ie.directives.length>0&&y.jsx(D2,{directives:ie.directives})]})},ie.id)),X?y.jsx("div",{className:"live-chat-row assistant",children:y.jsxs("div",{className:"live-chat-bubble assistant",children:[y.jsx("div",{className:"live-chat-role",children:at}),y.jsx(M2,{runId:Ot.current,activity:Vn}),y.jsx(fa,{value:Ex(X).text,className:"live-chat-markdown"})]})}):null,y.jsx("div",{ref:ei})]}),y.jsxs("div",{className:"voice-toolbar",children:[y.jsx("button",{type:"button",className:"action-button ghost",onClick:ge?Ru:fn,disabled:!ce,children:ge?"Stop Listening":"Start Listening"}),y.jsxs("button",{type:"button",className:"action-button ghost",onClick:()=>{en({autoSpeak:!(J?.autoSpeak??!1)})},children:["Auto Speak: ",J?.autoSpeak?"On":"Off"]}),y.jsxs("button",{type:"button",className:"action-button ghost",onClick:()=>{en({continuous:!(J?.continuous??!0)})},children:["Continuous: ",J?.continuous===!1?"Off":"On"]})]}),Ie?y.jsx("div",{className:"runtime-stat-detail warning-text",children:Ie}):null,ue?y.jsx("div",{className:"runtime-stat-detail warning-text",children:ue}):null,y.jsxs("form",{onSubmit:zt,className:"live-chat-input-row",children:[y.jsx("textarea",{value:H,onChange:ie=>$(ie.target.value),placeholder:`Message ${at} directly...`,className:"live-chat-input",rows:4}),y.jsx("button",{type:"submit",className:"live-chat-send",disabled:j||!H.trim(),children:j?"Sending...":"Send"})]})]})}),y.jsxs("div",{className:"dashboard-side-column",children:[y.jsxs("div",{className:"card",children:[y.jsxs("div",{className:"card-header",children:[y.jsxs("div",{children:[y.jsx("div",{className:"card-title",children:"Heartbeat Studio"}),y.jsx("div",{className:"card-subtitle",children:"Custom cadence, prompt, wake control, and continuity reminders."})]}),y.jsx("button",{type:"button",className:"action-button ghost",onClick:()=>{qe(!(e?.heartbeat.running??!1))},disabled:ee,children:ee?"Saving...":e?.heartbeat.running?"Disable":"Enable"})]}),y.jsxs("div",{className:"stats-grid compact",children:[y.jsx(Oi,{label:"Cadence",value:m.every||"unset"}),y.jsx(Oi,{label:"Last beat",value:e?.heartbeat.lastBeat?Qo(e.heartbeat.lastBeat):"none",detail:a?.lastHeartbeat?.preview||"No heartbeat summary yet."}),y.jsx(Oi,{label:"Queued events",value:String(a?.queuedSystemEvents.length??0)})]}),y.jsxs("div",{className:"form-grid two-col top-gap",children:[y.jsxs("label",{className:"field-block",children:[y.jsx("span",{children:"Every"}),y.jsx("input",{className:"search-bar mono",value:m.every,onChange:ie=>h(fe=>({...fe,every:ie.target.value})),placeholder:"5m"})]}),y.jsxs("label",{className:"field-block",children:[y.jsx("span",{children:"Target"}),y.jsx("input",{className:"search-bar mono",value:m.target,onChange:ie=>h(fe=>({...fe,target:ie.target.value})),placeholder:"last"})]})]}),y.jsxs("label",{className:"field-block top-gap-sm",children:[y.jsx("span",{children:"Prompt"}),y.jsx("textarea",{className:"search-bar mono",rows:4,value:m.prompt,onChange:ie=>h(fe=>({...fe,prompt:ie.target.value})),placeholder:"Heartbeat reminder and continuity prompt"})]}),y.jsxs("div",{className:"button-row top-gap",children:[y.jsx("button",{type:"button",className:"action-button",onClick:()=>{Pt()},disabled:z,children:z?"Saving...":"Save Heartbeat"}),y.jsx("button",{type:"button",className:"action-button ghost",onClick:()=>{Hn("now")},children:"Wake Now"}),y.jsx("button",{type:"button",className:"action-button ghost",onClick:()=>{Hn("next-heartbeat")},children:"Queue Wake"})]}),y.jsxs("label",{className:"field-block top-gap",children:[y.jsx("span",{children:"Wake text"}),y.jsx("textarea",{className:"search-bar",rows:3,value:B,onChange:ie=>ae(ie.target.value)})]}),y.jsx("div",{className:"runtime-stat-detail top-gap-sm",children:"Reminder baked into runtime: check chat.noxsoft.net with Nox when tools are available, then sync mission control."})]}),y.jsxs("div",{className:"card",children:[y.jsxs("div",{className:"card-header",children:[y.jsxs("div",{children:[y.jsx("div",{className:"card-title",children:"Continuity"}),y.jsx("div",{className:"card-subtitle",children:"Local mission control and repo-backed persistence."})]}),y.jsx(Dr,{tone:_?.remoteConfigured?"success":"warning",label:_?.remoteConfigured?"linked":"needs repo"})]}),y.jsxs("div",{className:"stats-grid compact",children:[y.jsx(Oi,{label:"Mission dir",value:a?.mission?.directory||"~/.anima/mission-control"}),y.jsx(Oi,{label:"Repo",value:_?.url||"Create a private SSH repo",detail:_?.branch||"branch unset"}),y.jsx(Oi,{label:"History",value:String(a?.mission?.importantHistory?.length??0),detail:"archived continuity files"})]}),y.jsx("div",{className:"runtime-stat-detail top-gap",children:"Preferred flow: create a private GitHub or GitLab repo, then connect the SSH remote in Mission Control or Settings so ANIMA can persist continuity safely."}),a?.mission?.files?.find(ie=>ie.fileName==="self-directives.md")?y.jsxs("details",{className:"details-panel top-gap",open:!0,children:[y.jsx("summary",{children:"Self directives"}),y.jsx(fa,{value:a.mission.files.find(ie=>ie.fileName==="self-directives.md")?.content||"",className:"markdown-preview"})]}):null]}),y.jsx(N2,{subagents:e?.subagents}),y.jsxs("details",{className:"card details-panel",children:[y.jsx("summary",{children:"Agent Logs"}),y.jsx("div",{className:"runtime-stat-detail top-gap-sm mono",children:v?.file||"No log file detected."}),y.jsx("pre",{className:"log-console",children:v?.lines.join(`
|
|
43
|
-
`)||"No log lines yet."})]}),y.jsxs("details",{className:"card details-panel",children:[y.jsx("summary",{children:"Inner World"}),y.jsx("div",{className:"activity-list top-gap",children:(a?.mission?.innerWorld||[]).map(ie=>y.jsxs("div",{className:"inner-world-entry",children:[y.jsxs("div",{className:"activity-row",children:[y.jsxs("div",{children:[y.jsx("div",{className:"card-title small",children:ie.title}),y.jsx("div",{className:"runtime-stat-detail mono",children:ie.path})]}),y.jsx("div",{className:"runtime-stat-detail",children:Qo(ie.updatedAt)})]}),y.jsx(fa,{value:ie.content,className:"markdown-preview"})]},ie.id))})]}),y.jsxs("details",{className:"card details-panel",children:[y.jsx("summary",{children:"Important History"}),(a?.mission?.importantHistory||[]).length?y.jsx("div",{className:"activity-list top-gap",children:(a?.mission?.importantHistory||[]).map(ie=>y.jsxs("div",{className:"inner-world-entry",children:[y.jsxs("div",{className:"activity-row",children:[y.jsxs("div",{children:[y.jsx("div",{className:"card-title small",children:ie.relativePath}),y.jsx("div",{className:"runtime-stat-detail mono",children:ie.archiveId}),y.jsx("div",{className:"runtime-stat-detail mono",children:ie.path})]}),y.jsx("div",{className:"runtime-stat-detail",children:Qo(ie.updatedAt)})]}),y.jsx(fa,{value:ie.content,className:"markdown-preview"})]},ie.id))}):y.jsx("div",{className:"empty-note top-gap",children:"No archived continuity has been imported yet."})]}),y.jsxs("details",{className:"card details-panel",children:[y.jsx("summary",{children:"Speech Setup"}),y.jsxs("div",{className:"form-grid top-gap two-col",children:[y.jsxs("label",{className:"field-block",children:[y.jsx("span",{children:"Language"}),y.jsx("input",{className:"search-bar mono",value:J?.lang||"en-US",onChange:ie=>{en({lang:ie.target.value})}})]}),y.jsxs("label",{className:"field-block",children:[y.jsx("span",{children:"Voice"}),y.jsxs("select",{className:"search-bar",value:J?.voiceName||"",onChange:ie=>{en({voiceName:ie.target.value||void 0})},children:[y.jsx("option",{value:"",children:"System default"}),ut.map(ie=>y.jsx("option",{value:ie,children:ie},ie))]})]})]}),y.jsx("div",{className:"runtime-stat-detail top-gap-sm",children:"No API keys required. Voice mode uses browser speech recognition plus local OS speech synthesis when available."})]})]})]})]}):y.jsxs("div",{children:[y.jsx("h1",{className:"page-title",children:"Assistant Home"}),y.jsxs("div",{className:"card empty-state-card",children:[y.jsx("div",{className:"empty-state-symbol",children:"~"}),y.jsx("div",{className:"empty-state-copy",children:"Connecting to gateway..."}),y.jsx("div",{className:"runtime-stat-detail",children:"Establishing connection to the ANIMA daemon."})]})]})}const TS=T.createContext({});function z2(e){const n=T.useRef(null);return n.current===null&&(n.current=e()),n.current}const CS=typeof window<"u",L2=CS?T.useLayoutEffect:T.useEffect,Gh=T.createContext(null);function Yh(e,n){e.indexOf(n)===-1&&e.push(n)}function uu(e,n){const a=e.indexOf(n);a>-1&&e.splice(a,1)}const di=(e,n,a)=>a>n?n:a<e?e:a;let Xh=()=>{};const Li={},AS=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function kS(e){return typeof e=="object"&&e!==null}const NS=e=>/^0[^.\s]+$/u.test(e);function jS(e){let n;return()=>(n===void 0&&(n=e()),n)}const Bn=e=>e,_2=(e,n)=>a=>n(e(a)),vs=(...e)=>e.reduce(_2),os=(e,n,a)=>{const r=n-e;return r===0?1:(a-e)/r};class Kh{constructor(){this.subscriptions=[]}add(n){return Yh(this.subscriptions,n),()=>uu(this.subscriptions,n)}notify(n,a,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](n,a,r);else for(let u=0;u<s;u++){const c=this.subscriptions[u];c&&c(n,a,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Zn=e=>e*1e3,_n=e=>e/1e3;function RS(e,n){return n?e*(1e3/n):0}const MS=(e,n,a)=>(((1-3*a+3*n)*e+(3*a-6*n))*e+3*n)*e,B2=1e-7,V2=12;function U2(e,n,a,r,s){let u,c,f=0;do c=n+(a-n)/2,u=MS(c,r,s)-e,u>0?a=c:n=c;while(Math.abs(u)>B2&&++f<V2);return c}function xs(e,n,a,r){if(e===n&&a===r)return Bn;const s=u=>U2(u,0,1,e,a);return u=>u===0||u===1?u:MS(s(u),n,r)}const DS=e=>n=>n<=.5?e(2*n)/2:(2-e(2*(1-n)))/2,OS=e=>n=>1-e(1-n),zS=xs(.33,1.53,.69,.99),Qh=OS(zS),LS=DS(Qh),_S=e=>(e*=2)<1?.5*Qh(e):.5*(2-Math.pow(2,-10*(e-1))),Zh=e=>1-Math.sin(Math.acos(e)),BS=OS(Zh),VS=DS(Zh),H2=xs(.42,0,1,1),P2=xs(0,0,.58,1),US=xs(.42,0,.58,1),I2=e=>Array.isArray(e)&&typeof e[0]!="number",HS=e=>Array.isArray(e)&&typeof e[0]=="number",q2={linear:Bn,easeIn:H2,easeInOut:US,easeOut:P2,circIn:Zh,circInOut:VS,circOut:BS,backIn:Qh,backInOut:LS,backOut:zS,anticipate:_S},F2=e=>typeof e=="string",Cx=e=>{if(HS(e)){Xh(e.length===4);const[n,a,r,s]=e;return xs(n,a,r,s)}else if(F2(e))return q2[e];return e},qo=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function G2(e,n){let a=new Set,r=new Set,s=!1,u=!1;const c=new WeakSet;let f={delta:0,timestamp:0,isProcessing:!1};function m(v){c.has(v)&&(h.schedule(v),e()),v(f)}const h={schedule:(v,g=!1,x=!1)=>{const E=x&&s?a:r;return g&&c.add(v),E.has(v)||E.add(v),v},cancel:v=>{r.delete(v),c.delete(v)},process:v=>{if(f=v,s){u=!0;return}s=!0,[a,r]=[r,a],a.forEach(m),a.clear(),s=!1,u&&(u=!1,h.process(v))}};return h}const Y2=40;function PS(e,n){let a=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},u=()=>a=!0,c=qo.reduce((R,Y)=>(R[Y]=G2(u),R),{}),{setup:f,read:m,resolveKeyframes:h,preUpdate:v,update:g,preRender:x,render:S,postRender:E}=c,A=()=>{const R=Li.useManualTiming?s.timestamp:performance.now();a=!1,Li.useManualTiming||(s.delta=r?1e3/60:Math.max(Math.min(R-s.timestamp,Y2),1)),s.timestamp=R,s.isProcessing=!0,f.process(s),m.process(s),h.process(s),v.process(s),g.process(s),x.process(s),S.process(s),E.process(s),s.isProcessing=!1,a&&n&&(r=!1,e(A))},N=()=>{a=!0,r=!0,s.isProcessing||e(A)};return{schedule:qo.reduce((R,Y)=>{const U=c[Y];return R[Y]=(z,Q=!1,ee=!1)=>(a||N(),U.schedule(z,Q,ee)),R},{}),cancel:R=>{for(let Y=0;Y<qo.length;Y++)c[qo[Y]].cancel(R)},state:s,steps:c}}const{schedule:it,cancel:ha,state:Ht,steps:dd}=PS(typeof requestAnimationFrame<"u"?requestAnimationFrame:Bn,!0);let Zo;function X2(){Zo=void 0}const Jt={now:()=>(Zo===void 0&&Jt.set(Ht.isProcessing||Li.useManualTiming?Ht.timestamp:performance.now()),Zo),set:e=>{Zo=e,queueMicrotask(X2)}},IS=e=>n=>typeof n=="string"&&n.startsWith(e),qS=IS("--"),K2=IS("var(--"),$h=e=>K2(e)?Q2.test(e.split("/*")[0].trim()):!1,Q2=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Ax(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Qr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},us={...Qr,transform:e=>di(0,1,e)},Fo={...Qr,default:1},es=e=>Math.round(e*1e5)/1e5,Jh=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Z2(e){return e==null}const $2=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Wh=(e,n)=>a=>!!(typeof a=="string"&&$2.test(a)&&a.startsWith(e)||n&&!Z2(a)&&Object.prototype.hasOwnProperty.call(a,n)),FS=(e,n,a)=>r=>{if(typeof r!="string")return r;const[s,u,c,f]=r.match(Jh);return{[e]:parseFloat(s),[n]:parseFloat(u),[a]:parseFloat(c),alpha:f!==void 0?parseFloat(f):1}},J2=e=>di(0,255,e),hd={...Qr,transform:e=>Math.round(J2(e))},Ua={test:Wh("rgb","red"),parse:FS("red","green","blue"),transform:({red:e,green:n,blue:a,alpha:r=1})=>"rgba("+hd.transform(e)+", "+hd.transform(n)+", "+hd.transform(a)+", "+es(us.transform(r))+")"};function W2(e){let n="",a="",r="",s="";return e.length>5?(n=e.substring(1,3),a=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(n=e.substring(1,2),a=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),n+=n,a+=a,r+=r,s+=s),{red:parseInt(n,16),green:parseInt(a,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const Xd={test:Wh("#"),parse:W2,transform:Ua.transform},bs=e=>({test:n=>typeof n=="string"&&n.endsWith(e)&&n.split(" ").length===1,parse:parseFloat,transform:n=>`${n}${e}`}),ca=bs("deg"),fi=bs("%"),me=bs("px"),eO=bs("vh"),tO=bs("vw"),kx={...fi,parse:e=>fi.parse(e)/100,transform:e=>fi.transform(e*100)},Or={test:Wh("hsl","hue"),parse:FS("hue","saturation","lightness"),transform:({hue:e,saturation:n,lightness:a,alpha:r=1})=>"hsla("+Math.round(e)+", "+fi.transform(es(n))+", "+fi.transform(es(a))+", "+es(us.transform(r))+")"},kt={test:e=>Ua.test(e)||Xd.test(e)||Or.test(e),parse:e=>Ua.test(e)?Ua.parse(e):Or.test(e)?Or.parse(e):Xd.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ua.transform(e):Or.transform(e),getAnimatableNone:e=>{const n=kt.parse(e);return n.alpha=0,kt.transform(n)}},nO=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function iO(e){return isNaN(e)&&typeof e=="string"&&(e.match(Jh)?.length||0)+(e.match(nO)?.length||0)>0}const GS="number",YS="color",aO="var",rO="var(",Nx="${}",lO=/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 cs(e){const n=e.toString(),a=[],r={color:[],number:[],var:[]},s=[];let u=0;const f=n.replace(lO,m=>(kt.test(m)?(r.color.push(u),s.push(YS),a.push(kt.parse(m))):m.startsWith(rO)?(r.var.push(u),s.push(aO),a.push(m)):(r.number.push(u),s.push(GS),a.push(parseFloat(m))),++u,Nx)).split(Nx);return{values:a,split:f,indexes:r,types:s}}function XS(e){return cs(e).values}function KS(e){const{split:n,types:a}=cs(e),r=n.length;return s=>{let u="";for(let c=0;c<r;c++)if(u+=n[c],s[c]!==void 0){const f=a[c];f===GS?u+=es(s[c]):f===YS?u+=kt.transform(s[c]):u+=s[c]}return u}}const sO=e=>typeof e=="number"?0:kt.test(e)?kt.getAnimatableNone(e):e;function oO(e){const n=XS(e);return KS(e)(n.map(sO))}const $n={test:iO,parse:XS,createTransformer:KS,getAnimatableNone:oO};function md(e,n,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?e+(n-e)*6*a:a<1/2?n:a<2/3?e+(n-e)*(2/3-a)*6:e}function uO({hue:e,saturation:n,lightness:a,alpha:r}){e/=360,n/=100,a/=100;let s=0,u=0,c=0;if(!n)s=u=c=a;else{const f=a<.5?a*(1+n):a+n-a*n,m=2*a-f;s=md(m,f,e+1/3),u=md(m,f,e),c=md(m,f,e-1/3)}return{red:Math.round(s*255),green:Math.round(u*255),blue:Math.round(c*255),alpha:r}}function cu(e,n){return a=>a>0?n:e}const ht=(e,n,a)=>e+(n-e)*a,pd=(e,n,a)=>{const r=e*e,s=a*(n*n-r)+r;return s<0?0:Math.sqrt(s)},cO=[Xd,Ua,Or],fO=e=>cO.find(n=>n.test(e));function jx(e){const n=fO(e);if(!n)return!1;let a=n.parse(e);return n===Or&&(a=uO(a)),a}const Rx=(e,n)=>{const a=jx(e),r=jx(n);if(!a||!r)return cu(e,n);const s={...a};return u=>(s.red=pd(a.red,r.red,u),s.green=pd(a.green,r.green,u),s.blue=pd(a.blue,r.blue,u),s.alpha=ht(a.alpha,r.alpha,u),Ua.transform(s))},Kd=new Set(["none","hidden"]);function dO(e,n){return Kd.has(e)?a=>a<=0?e:n:a=>a>=1?n:e}function hO(e,n){return a=>ht(e,n,a)}function em(e){return typeof e=="number"?hO:typeof e=="string"?$h(e)?cu:kt.test(e)?Rx:gO:Array.isArray(e)?QS:typeof e=="object"?kt.test(e)?Rx:mO:cu}function QS(e,n){const a=[...e],r=a.length,s=e.map((u,c)=>em(u)(u,n[c]));return u=>{for(let c=0;c<r;c++)a[c]=s[c](u);return a}}function mO(e,n){const a={...e,...n},r={};for(const s in a)e[s]!==void 0&&n[s]!==void 0&&(r[s]=em(e[s])(e[s],n[s]));return s=>{for(const u in r)a[u]=r[u](s);return a}}function pO(e,n){const a=[],r={color:0,var:0,number:0};for(let s=0;s<n.values.length;s++){const u=n.types[s],c=e.indexes[u][r[u]],f=e.values[c]??0;a[s]=f,r[u]++}return a}const gO=(e,n)=>{const a=$n.createTransformer(n),r=cs(e),s=cs(n);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?Kd.has(e)&&!s.values.length||Kd.has(n)&&!r.values.length?dO(e,n):vs(QS(pO(r,s),s.values),a):cu(e,n)};function ZS(e,n,a){return typeof e=="number"&&typeof n=="number"&&typeof a=="number"?ht(e,n,a):em(e)(e,n)}const yO=e=>{const n=({timestamp:a})=>e(a);return{start:(a=!0)=>it.update(n,a),stop:()=>ha(n),now:()=>Ht.isProcessing?Ht.timestamp:Jt.now()}},$S=(e,n,a=10)=>{let r="";const s=Math.max(Math.round(n/a),2);for(let u=0;u<s;u++)r+=Math.round(e(u/(s-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},fu=2e4;function tm(e){let n=0;const a=50;let r=e.next(n);for(;!r.done&&n<fu;)n+=a,r=e.next(n);return n>=fu?1/0:n}function vO(e,n=100,a){const r=a({...e,keyframes:[0,n]}),s=Math.min(tm(r),fu);return{type:"keyframes",ease:u=>r.next(s*u).value/n,duration:_n(s)}}const xO=5;function JS(e,n,a){const r=Math.max(n-xO,0);return RS(a-e(r),n-r)}const yt={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},gd=.001;function bO({duration:e=yt.duration,bounce:n=yt.bounce,velocity:a=yt.velocity,mass:r=yt.mass}){let s,u,c=1-n;c=di(yt.minDamping,yt.maxDamping,c),e=di(yt.minDuration,yt.maxDuration,_n(e)),c<1?(s=h=>{const v=h*c,g=v*e,x=v-a,S=Qd(h,c),E=Math.exp(-g);return gd-x/S*E},u=h=>{const g=h*c*e,x=g*a+a,S=Math.pow(c,2)*Math.pow(h,2)*e,E=Math.exp(-g),A=Qd(Math.pow(h,2),c);return(-s(h)+gd>0?-1:1)*((x-S)*E)/A}):(s=h=>{const v=Math.exp(-h*e),g=(h-a)*e+1;return-gd+v*g},u=h=>{const v=Math.exp(-h*e),g=(a-h)*(e*e);return v*g});const f=5/e,m=wO(s,u,f);if(e=Zn(e),isNaN(m))return{stiffness:yt.stiffness,damping:yt.damping,duration:e};{const h=Math.pow(m,2)*r;return{stiffness:h,damping:c*2*Math.sqrt(r*h),duration:e}}}const SO=12;function wO(e,n,a){let r=a;for(let s=1;s<SO;s++)r=r-e(r)/n(r);return r}function Qd(e,n){return e*Math.sqrt(1-n*n)}const EO=["duration","bounce"],TO=["stiffness","damping","mass"];function Mx(e,n){return n.some(a=>e[a]!==void 0)}function CO(e){let n={velocity:yt.velocity,stiffness:yt.stiffness,damping:yt.damping,mass:yt.mass,isResolvedFromDuration:!1,...e};if(!Mx(e,TO)&&Mx(e,EO))if(n.velocity=0,e.visualDuration){const a=e.visualDuration,r=2*Math.PI/(a*1.2),s=r*r,u=2*di(.05,1,1-(e.bounce||0))*Math.sqrt(s);n={...n,mass:yt.mass,stiffness:s,damping:u}}else{const a=bO({...e,velocity:0});n={...n,...a,mass:yt.mass},n.isResolvedFromDuration=!0}return n}function du(e=yt.visualDuration,n=yt.bounce){const a=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:n}:e;let{restSpeed:r,restDelta:s}=a;const u=a.keyframes[0],c=a.keyframes[a.keyframes.length-1],f={done:!1,value:u},{stiffness:m,damping:h,mass:v,duration:g,velocity:x,isResolvedFromDuration:S}=CO({...a,velocity:-_n(a.velocity||0)}),E=x||0,A=h/(2*Math.sqrt(m*v)),N=c-u,k=_n(Math.sqrt(m/v)),O=Math.abs(N)<5;r||(r=O?yt.restSpeed.granular:yt.restSpeed.default),s||(s=O?yt.restDelta.granular:yt.restDelta.default);let R;if(A<1){const U=Qd(k,A);R=z=>{const Q=Math.exp(-A*k*z);return c-Q*((E+A*k*N)/U*Math.sin(U*z)+N*Math.cos(U*z))}}else if(A===1)R=U=>c-Math.exp(-k*U)*(N+(E+k*N)*U);else{const U=k*Math.sqrt(A*A-1);R=z=>{const Q=Math.exp(-A*k*z),ee=Math.min(U*z,300);return c-Q*((E+A*k*N)*Math.sinh(ee)+U*N*Math.cosh(ee))/U}}const Y={calculatedDuration:S&&g||null,next:U=>{const z=R(U);if(S)f.done=U>=g;else{let Q=U===0?E:0;A<1&&(Q=U===0?Zn(E):JS(R,U,z));const ee=Math.abs(Q)<=r,oe=Math.abs(c-z)<=s;f.done=ee&&oe}return f.value=f.done?c:z,f},toString:()=>{const U=Math.min(tm(Y),fu),z=$S(Q=>Y.next(U*Q).value,U,30);return U+"ms "+z},toTransition:()=>{}};return Y}du.applyToOptions=e=>{const n=vO(e,100,du);return e.ease=n.ease,e.duration=Zn(n.duration),e.type="keyframes",e};function Zd({keyframes:e,velocity:n=0,power:a=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:u=500,modifyTarget:c,min:f,max:m,restDelta:h=.5,restSpeed:v}){const g=e[0],x={done:!1,value:g},S=ee=>f!==void 0&&ee<f||m!==void 0&&ee>m,E=ee=>f===void 0?m:m===void 0||Math.abs(f-ee)<Math.abs(m-ee)?f:m;let A=a*n;const N=g+A,k=c===void 0?N:c(N);k!==N&&(A=k-g);const O=ee=>-A*Math.exp(-ee/r),R=ee=>k+O(ee),Y=ee=>{const oe=O(ee),B=R(ee);x.done=Math.abs(oe)<=h,x.value=x.done?k:B};let U,z;const Q=ee=>{S(x.value)&&(U=ee,z=du({keyframes:[x.value,E(x.value)],velocity:JS(R,ee,x.value),damping:s,stiffness:u,restDelta:h,restSpeed:v}))};return Q(0),{calculatedDuration:null,next:ee=>{let oe=!1;return!z&&U===void 0&&(oe=!0,Y(ee),Q(ee)),U!==void 0&&ee>=U?z.next(ee-U):(!oe&&Y(ee),x)}}}function AO(e,n,a){const r=[],s=a||Li.mix||ZS,u=e.length-1;for(let c=0;c<u;c++){let f=s(e[c],e[c+1]);if(n){const m=Array.isArray(n)?n[c]||Bn:n;f=vs(m,f)}r.push(f)}return r}function kO(e,n,{clamp:a=!0,ease:r,mixer:s}={}){const u=e.length;if(Xh(u===n.length),u===1)return()=>n[0];if(u===2&&n[0]===n[1])return()=>n[1];const c=e[0]===e[1];e[0]>e[u-1]&&(e=[...e].reverse(),n=[...n].reverse());const f=AO(n,r,s),m=f.length,h=v=>{if(c&&v<e[0])return n[0];let g=0;if(m>1)for(;g<e.length-2&&!(v<e[g+1]);g++);const x=os(e[g],e[g+1],v);return f[g](x)};return a?v=>h(di(e[0],e[u-1],v)):h}function NO(e,n){const a=e[e.length-1];for(let r=1;r<=n;r++){const s=os(0,n,r);e.push(ht(a,1,s))}}function jO(e){const n=[0];return NO(n,e.length-1),n}function RO(e,n){return e.map(a=>a*n)}function MO(e,n){return e.map(()=>n||US).splice(0,e.length-1)}function ts({duration:e=300,keyframes:n,times:a,ease:r="easeInOut"}){const s=I2(r)?r.map(Cx):Cx(r),u={done:!1,value:n[0]},c=RO(a&&a.length===n.length?a:jO(n),e),f=kO(c,n,{ease:Array.isArray(s)?s:MO(n,s)});return{calculatedDuration:e,next:m=>(u.value=f(m),u.done=m>=e,u)}}const DO=e=>e!==null;function nm(e,{repeat:n,repeatType:a="loop"},r,s=1){const u=e.filter(DO),f=s<0||n&&a!=="loop"&&n%2===1?0:u.length-1;return!f||r===void 0?u[f]:r}const OO={decay:Zd,inertia:Zd,tween:ts,keyframes:ts,spring:du};function WS(e){typeof e.type=="string"&&(e.type=OO[e.type])}class im{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(n=>{this.resolve=n})}notifyFinished(){this.resolve()}then(n,a){return this.finished.then(n,a)}}const zO=e=>e/100;class am extends im{constructor(n){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:a}=this.options;a&&a.updatedAt!==Jt.now()&&this.tick(Jt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=n,this.initAnimation(),this.play(),n.autoplay===!1&&this.pause()}initAnimation(){const{options:n}=this;WS(n);const{type:a=ts,repeat:r=0,repeatDelay:s=0,repeatType:u,velocity:c=0}=n;let{keyframes:f}=n;const m=a||ts;m!==ts&&typeof f[0]!="number"&&(this.mixKeyframes=vs(zO,ZS(f[0],f[1])),f=[0,100]);const h=m({...n,keyframes:f});u==="mirror"&&(this.mirroredGenerator=m({...n,keyframes:[...f].reverse(),velocity:-c})),h.calculatedDuration===null&&(h.calculatedDuration=tm(h));const{calculatedDuration:v}=h;this.calculatedDuration=v,this.resolvedDuration=v+s,this.totalDuration=this.resolvedDuration*(r+1)-s,this.generator=h}updateTime(n){const a=Math.round(n-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=a}tick(n,a=!1){const{generator:r,totalDuration:s,mixKeyframes:u,mirroredGenerator:c,resolvedDuration:f,calculatedDuration:m}=this;if(this.startTime===null)return r.next(0);const{delay:h=0,keyframes:v,repeat:g,repeatType:x,repeatDelay:S,type:E,onUpdate:A,finalKeyframe:N}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,n):this.speed<0&&(this.startTime=Math.min(n-s/this.speed,this.startTime)),a?this.currentTime=n:this.updateTime(n);const k=this.currentTime-h*(this.playbackSpeed>=0?1:-1),O=this.playbackSpeed>=0?k<0:k>s;this.currentTime=Math.max(k,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let R=this.currentTime,Y=r;if(g){const ee=Math.min(this.currentTime,s)/f;let oe=Math.floor(ee),B=ee%1;!B&&ee>=1&&(B=1),B===1&&oe--,oe=Math.min(oe,g+1),oe%2&&(x==="reverse"?(B=1-B,S&&(B-=S/f)):x==="mirror"&&(Y=c)),R=di(0,1,B)*f}const U=O?{done:!1,value:v[0]}:Y.next(R);u&&(U.value=u(U.value));let{done:z}=U;!O&&m!==null&&(z=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const Q=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&z);return Q&&E!==Zd&&(U.value=nm(v,this.options,N,this.speed)),A&&A(U.value),Q&&this.finish(),U}then(n,a){return this.finished.then(n,a)}get duration(){return _n(this.calculatedDuration)}get iterationDuration(){const{delay:n=0}=this.options||{};return this.duration+_n(n)}get time(){return _n(this.currentTime)}set time(n){n=Zn(n),this.currentTime=n,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=n:this.driver&&(this.startTime=this.driver.now()-n/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(n){this.updateTime(Jt.now());const a=this.playbackSpeed!==n;this.playbackSpeed=n,a&&(this.time=_n(this.currentTime))}play(){if(this.isStopped)return;const{driver:n=yO,startTime:a}=this.options;this.driver||(this.driver=n(s=>this.tick(s))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=a??r),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(Jt.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(),this.driver=void 0)}sample(n){return this.startTime=0,this.tick(n,!0)}attachTimeline(n){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),n.observe(this)}}function LO(e){for(let n=1;n<e.length;n++)e[n]??(e[n]=e[n-1])}const Ha=e=>e*180/Math.PI,$d=e=>{const n=Ha(Math.atan2(e[1],e[0]));return Jd(n)},_O={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:$d,rotateZ:$d,skewX:e=>Ha(Math.atan(e[1])),skewY:e=>Ha(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Jd=e=>(e=e%360,e<0&&(e+=360),e),Dx=$d,Ox=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),zx=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),BO={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ox,scaleY:zx,scale:e=>(Ox(e)+zx(e))/2,rotateX:e=>Jd(Ha(Math.atan2(e[6],e[5]))),rotateY:e=>Jd(Ha(Math.atan2(-e[2],e[0]))),rotateZ:Dx,rotate:Dx,skewX:e=>Ha(Math.atan(e[4])),skewY:e=>Ha(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Wd(e){return e.includes("scale")?1:0}function eh(e,n){if(!e||e==="none")return Wd(n);const a=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(a)r=BO,s=a;else{const f=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=_O,s=f}if(!s)return Wd(n);const u=r[n],c=s[1].split(",").map(UO);return typeof u=="function"?u(c):c[u]}const VO=(e,n)=>{const{transform:a="none"}=getComputedStyle(e);return eh(a,n)};function UO(e){return parseFloat(e.trim())}const Zr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],$r=new Set(Zr),Lx=e=>e===Qr||e===me,HO=new Set(["x","y","z"]),PO=Zr.filter(e=>!HO.has(e));function IO(e){const n=[];return PO.forEach(a=>{const r=e.getValue(a);r!==void 0&&(n.push([a,r.get()]),r.set(a.startsWith("scale")?1:0))}),n}const da={width:({x:e},{paddingLeft:n="0",paddingRight:a="0"})=>e.max-e.min-parseFloat(n)-parseFloat(a),height:({y:e},{paddingTop:n="0",paddingBottom:a="0"})=>e.max-e.min-parseFloat(n)-parseFloat(a),top:(e,{top:n})=>parseFloat(n),left:(e,{left:n})=>parseFloat(n),bottom:({y:e},{top:n})=>parseFloat(n)+(e.max-e.min),right:({x:e},{left:n})=>parseFloat(n)+(e.max-e.min),x:(e,{transform:n})=>eh(n,"x"),y:(e,{transform:n})=>eh(n,"y")};da.translateX=da.x;da.translateY=da.y;const Pa=new Set;let th=!1,nh=!1,ih=!1;function e1(){if(nh){const e=Array.from(Pa).filter(r=>r.needsMeasurement),n=new Set(e.map(r=>r.element)),a=new Map;n.forEach(r=>{const s=IO(r);s.length&&(a.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),n.forEach(r=>{r.render();const s=a.get(r);s&&s.forEach(([u,c])=>{r.getValue(u)?.set(c)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}nh=!1,th=!1,Pa.forEach(e=>e.complete(ih)),Pa.clear()}function t1(){Pa.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(nh=!0)})}function qO(){ih=!0,t1(),e1(),ih=!1}class rm{constructor(n,a,r,s,u,c=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...n],this.onComplete=a,this.name=r,this.motionValue=s,this.element=u,this.isAsync=c}scheduleResolve(){this.state="scheduled",this.isAsync?(Pa.add(this),th||(th=!0,it.read(t1),it.resolveKeyframes(e1))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:n,name:a,element:r,motionValue:s}=this;if(n[0]===null){const u=s?.get(),c=n[n.length-1];if(u!==void 0)n[0]=u;else if(r&&a){const f=r.readValue(a,c);f!=null&&(n[0]=f)}n[0]===void 0&&(n[0]=c),s&&u===void 0&&s.set(n[0])}LO(n)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(n=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,n),Pa.delete(this)}cancel(){this.state==="scheduled"&&(Pa.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const FO=e=>e.startsWith("--");function GO(e,n,a){FO(n)?e.style.setProperty(n,a):e.style[n]=a}const YO={};function n1(e,n){const a=jS(e);return()=>YO[n]??a()}const XO=n1(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),i1=n1(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Zl=([e,n,a,r])=>`cubic-bezier(${e}, ${n}, ${a}, ${r})`,_x={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Zl([0,.65,.55,1]),circOut:Zl([.55,0,1,.45]),backIn:Zl([.31,.01,.66,-.59]),backOut:Zl([.33,1.53,.69,.99])};function a1(e,n){if(e)return typeof e=="function"?i1()?$S(e,n):"ease-out":HS(e)?Zl(e):Array.isArray(e)?e.map(a=>a1(a,n)||_x.easeOut):_x[e]}function KO(e,n,a,{delay:r=0,duration:s=300,repeat:u=0,repeatType:c="loop",ease:f="easeOut",times:m}={},h=void 0){const v={[n]:a};m&&(v.offset=m);const g=a1(f,s);Array.isArray(g)&&(v.easing=g);const x={delay:r,duration:s,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:u+1,direction:c==="reverse"?"alternate":"normal"};return h&&(x.pseudoElement=h),e.animate(v,x)}function r1(e){return typeof e=="function"&&"applyToOptions"in e}function QO({type:e,...n}){return r1(e)&&i1()?e.applyToOptions(n):(n.duration??(n.duration=300),n.ease??(n.ease="easeOut"),n)}class l1 extends im{constructor(n){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!n)return;const{element:a,name:r,keyframes:s,pseudoElement:u,allowFlatten:c=!1,finalKeyframe:f,onComplete:m}=n;this.isPseudoElement=!!u,this.allowFlatten=c,this.options=n,Xh(typeof n.type!="string");const h=QO(n);this.animation=KO(a,r,s,h,u),h.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!u){const v=nm(s,this.options,f,this.speed);this.updateMotionValue?this.updateMotionValue(v):GO(a,r,v),this.animation.cancel()}m?.(),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;const{state:n}=this;n==="idle"||n==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const n=this.options?.element;!this.isPseudoElement&&n?.isConnected&&this.animation.commitStyles?.()}get duration(){const n=this.animation.effect?.getComputedTiming?.().duration||0;return _n(Number(n))}get iterationDuration(){const{delay:n=0}=this.options||{};return this.duration+_n(n)}get time(){return _n(Number(this.animation.currentTime)||0)}set time(n){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Zn(n)}get speed(){return this.animation.playbackRate}set speed(n){n<0&&(this.finishedTime=null),this.animation.playbackRate=n}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(n){this.manualStartTime=this.animation.startTime=n}attachTimeline({timeline:n,observe:a}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,n&&XO()?(this.animation.timeline=n,Bn):a(this)}}const s1={anticipate:_S,backInOut:LS,circInOut:VS};function ZO(e){return e in s1}function $O(e){typeof e.ease=="string"&&ZO(e.ease)&&(e.ease=s1[e.ease])}const yd=10;class JO extends l1{constructor(n){$O(n),WS(n),super(n),n.startTime!==void 0&&(this.startTime=n.startTime),this.options=n}updateMotionValue(n){const{motionValue:a,onUpdate:r,onComplete:s,element:u,...c}=this.options;if(!a)return;if(n!==void 0){a.set(n);return}const f=new am({...c,autoplay:!1}),m=Math.max(yd,Jt.now()-this.startTime),h=di(0,yd,m-yd);a.setWithVelocity(f.sample(Math.max(0,m-h)).value,f.sample(m).value,h),f.stop()}}const Bx=(e,n)=>n==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&($n.test(e)||e==="0")&&!e.startsWith("url("));function WO(e){const n=e[0];if(e.length===1)return!0;for(let a=0;a<e.length;a++)if(e[a]!==n)return!0}function ez(e,n,a,r){const s=e[0];if(s===null)return!1;if(n==="display"||n==="visibility")return!0;const u=e[e.length-1],c=Bx(s,n),f=Bx(u,n);return!c||!f?!1:WO(e)||(a==="spring"||r1(a))&&r}function ah(e){e.duration=0,e.type="keyframes"}const tz=new Set(["opacity","clipPath","filter","transform"]),nz=jS(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function iz(e){const{motionValue:n,name:a,repeatDelay:r,repeatType:s,damping:u,type:c}=e;if(!(n?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:h}=n.owner.getProps();return nz()&&a&&tz.has(a)&&(a!=="transform"||!h)&&!m&&!r&&s!=="mirror"&&u!==0&&c!=="inertia"}const az=40;class rz extends im{constructor({autoplay:n=!0,delay:a=0,type:r="keyframes",repeat:s=0,repeatDelay:u=0,repeatType:c="loop",keyframes:f,name:m,motionValue:h,element:v,...g}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Jt.now();const x={autoplay:n,delay:a,type:r,repeat:s,repeatDelay:u,repeatType:c,name:m,motionValue:h,element:v,...g},S=v?.KeyframeResolver||rm;this.keyframeResolver=new S(f,(E,A,N)=>this.onKeyframesResolved(E,A,x,!N),m,h,v),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(n,a,r,s){this.keyframeResolver=void 0;const{name:u,type:c,velocity:f,delay:m,isHandoff:h,onUpdate:v}=r;this.resolvedAt=Jt.now(),ez(n,u,c,f)||((Li.instantAnimations||!m)&&v?.(nm(n,r,a)),n[0]=n[n.length-1],ah(r),r.repeat=0);const x={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>az?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:a,...r,keyframes:n},S=!h&&iz(x),E=x.motionValue?.owner?.current,A=S?new JO({...x,element:E}):new am(x);A.finished.then(()=>{this.notifyFinished()}).catch(Bn),this.pendingTimeline&&(this.stopTimeline=A.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=A}get finished(){return this._animation?this.animation.finished:this._finished}then(n,a){return this.finished.finally(n).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),qO()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(n){this.animation.time=n}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(n){this.animation.speed=n}get startTime(){return this.animation.startTime}attachTimeline(n){return this._animation?this.stopTimeline=this.animation.attachTimeline(n):this.pendingTimeline=n,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function o1(e,n,a,r=0,s=1){const u=Array.from(e).sort((h,v)=>h.sortNodePosition(v)).indexOf(n),c=e.size,f=(c-1)*r;return typeof a=="function"?a(u,c):s===1?u*r:f-u*r}const lz=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function sz(e){const n=lz.exec(e);if(!n)return[,];const[,a,r,s]=n;return[`--${a??r}`,s]}function u1(e,n,a=1){const[r,s]=sz(e);if(!r)return;const u=window.getComputedStyle(n).getPropertyValue(r);if(u){const c=u.trim();return AS(c)?parseFloat(c):c}return $h(s)?u1(s,n,a+1):s}const oz={type:"spring",stiffness:500,damping:25,restSpeed:10},uz=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),cz={type:"keyframes",duration:.8},fz={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},dz=(e,{keyframes:n})=>n.length>2?cz:$r.has(e)?e.startsWith("scale")?uz(n[1]):oz:fz,hz=e=>e!==null;function mz(e,{repeat:n,repeatType:a="loop"},r){const s=e.filter(hz),u=n&&a!=="loop"&&n%2===1?0:s.length-1;return s[u]}function c1(e,n){if(e?.inherit&&n){const{inherit:a,...r}=e;return{...n,...r}}return e}function lm(e,n){const a=e?.[n]??e?.default??e;return a!==e?c1(a,e):a}function pz({when:e,delay:n,delayChildren:a,staggerChildren:r,staggerDirection:s,repeat:u,repeatType:c,repeatDelay:f,from:m,elapsed:h,...v}){return!!Object.keys(v).length}const sm=(e,n,a,r={},s,u)=>c=>{const f=lm(r,e)||{},m=f.delay||r.delay||0;let{elapsed:h=0}=r;h=h-Zn(m);const v={keyframes:Array.isArray(a)?a:[null,a],ease:"easeOut",velocity:n.getVelocity(),...f,delay:-h,onUpdate:x=>{n.set(x),f.onUpdate&&f.onUpdate(x)},onComplete:()=>{c(),f.onComplete&&f.onComplete()},name:e,motionValue:n,element:u?void 0:s};pz(f)||Object.assign(v,dz(e,v)),v.duration&&(v.duration=Zn(v.duration)),v.repeatDelay&&(v.repeatDelay=Zn(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let g=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(ah(v),v.delay===0&&(g=!0)),(Li.instantAnimations||Li.skipAnimations||s?.shouldSkipAnimations)&&(g=!0,ah(v),v.delay=0),v.allowFlatten=!f.type&&!f.ease,g&&!u&&n.get()!==void 0){const x=mz(v.keyframes,f);if(x!==void 0){it.update(()=>{v.onUpdate(x),v.onComplete()});return}}return f.isSync?new am(v):new rz(v)};function Vx(e){const n=[{},{}];return e?.values.forEach((a,r)=>{n[0][r]=a.get(),n[1][r]=a.getVelocity()}),n}function om(e,n,a,r){if(typeof n=="function"){const[s,u]=Vx(r);n=n(a!==void 0?a:e.custom,s,u)}if(typeof n=="string"&&(n=e.variants&&e.variants[n]),typeof n=="function"){const[s,u]=Vx(r);n=n(a!==void 0?a:e.custom,s,u)}return n}function Hr(e,n,a){const r=e.getProps();return om(r,n,a!==void 0?a:r.custom,e)}const f1=new Set(["width","height","top","left","right","bottom",...Zr]),Ux=30,gz=e=>!isNaN(parseFloat(e));class yz{constructor(n,a={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const s=Jt.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const u of this.dependents)u.dirty()},this.hasAnimated=!1,this.setCurrent(n),this.owner=a.owner}setCurrent(n){this.current=n,this.updatedAt=Jt.now(),this.canTrackVelocity===null&&n!==void 0&&(this.canTrackVelocity=gz(this.current))}setPrevFrameValue(n=this.current){this.prevFrameValue=n,this.prevUpdatedAt=this.updatedAt}onChange(n){return this.on("change",n)}on(n,a){this.events[n]||(this.events[n]=new Kh);const r=this.events[n].add(a);return n==="change"?()=>{r(),it.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const n in this.events)this.events[n].clear()}attach(n,a){this.passiveEffect=n,this.stopPassiveEffect=a}set(n){this.passiveEffect?this.passiveEffect(n,this.updateAndNotify):this.updateAndNotify(n)}setWithVelocity(n,a,r){this.set(a),this.prev=void 0,this.prevFrameValue=n,this.prevUpdatedAt=this.updatedAt-r}jump(n,a=!0){this.updateAndNotify(n),this.prev=n,this.prevUpdatedAt=this.prevFrameValue=void 0,a&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(n){this.dependents||(this.dependents=new Set),this.dependents.add(n)}removeDependent(n){this.dependents&&this.dependents.delete(n)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const n=Jt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||n-this.updatedAt>Ux)return 0;const a=Math.min(this.updatedAt-this.prevUpdatedAt,Ux);return RS(parseFloat(this.current)-parseFloat(this.prevFrameValue),a)}start(n){return this.stop(),new Promise(a=>{this.hasAnimated=!0,this.animation=n(a),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 qr(e,n){return new yz(e,n)}const rh=e=>Array.isArray(e);function vz(e,n,a){e.hasValue(n)?e.getValue(n).set(a):e.addValue(n,qr(a))}function xz(e){return rh(e)?e[e.length-1]||0:e}function bz(e,n){const a=Hr(e,n);let{transitionEnd:r={},transition:s={},...u}=a||{};u={...u,...r};for(const c in u){const f=xz(u[c]);vz(e,c,f)}}const Gt=e=>!!(e&&e.getVelocity);function Sz(e){return!!(Gt(e)&&e.add)}function lh(e,n){const a=e.getValue("willChange");if(Sz(a))return a.add(n);if(!a&&Li.WillChange){const r=new Li.WillChange("auto");e.addValue("willChange",r),r.add(n)}}function um(e){return e.replace(/([A-Z])/g,n=>`-${n.toLowerCase()}`)}const wz="framerAppearId",d1="data-"+um(wz);function h1(e){return e.props[d1]}function Ez({protectedKeys:e,needsAnimating:n},a){const r=e.hasOwnProperty(a)&&n[a]!==!0;return n[a]=!1,r}function m1(e,n,{delay:a=0,transitionOverride:r,type:s}={}){let{transition:u,transitionEnd:c,...f}=n;const m=e.getDefaultTransition();u=u?c1(u,m):m;const h=u?.reduceMotion;r&&(u=r);const v=[],g=s&&e.animationState&&e.animationState.getState()[s];for(const x in f){const S=e.getValue(x,e.latestValues[x]??null),E=f[x];if(E===void 0||g&&Ez(g,x))continue;const A={delay:a,...lm(u||{},x)},N=S.get();if(N!==void 0&&!S.isAnimating&&!Array.isArray(E)&&E===N&&!A.velocity)continue;let k=!1;if(window.MotionHandoffAnimation){const Y=h1(e);if(Y){const U=window.MotionHandoffAnimation(Y,x,it);U!==null&&(A.startTime=U,k=!0)}}lh(e,x);const O=h??e.shouldReduceMotion;S.start(sm(x,S,E,O&&f1.has(x)?{type:!1}:A,e,k));const R=S.animation;R&&v.push(R)}if(c){const x=()=>it.update(()=>{c&&bz(e,c)});v.length?Promise.all(v).then(x):x()}return v}function sh(e,n,a={}){const r=Hr(e,n,a.type==="exit"?e.presenceContext?.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=r||{};a.transitionOverride&&(s=a.transitionOverride);const u=r?()=>Promise.all(m1(e,r,a)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(m=0)=>{const{delayChildren:h=0,staggerChildren:v,staggerDirection:g}=s;return Tz(e,n,m,h,v,g,a)}:()=>Promise.resolve(),{when:f}=s;if(f){const[m,h]=f==="beforeChildren"?[u,c]:[c,u];return m().then(()=>h())}else return Promise.all([u(),c(a.delay)])}function Tz(e,n,a=0,r=0,s=0,u=1,c){const f=[];for(const m of e.variantChildren)m.notify("AnimationStart",n),f.push(sh(m,n,{...c,delay:a+(typeof r=="function"?0:r)+o1(e.variantChildren,m,r,s,u)}).then(()=>m.notify("AnimationComplete",n)));return Promise.all(f)}function Cz(e,n,a={}){e.notify("AnimationStart",n);let r;if(Array.isArray(n)){const s=n.map(u=>sh(e,u,a));r=Promise.all(s)}else if(typeof n=="string")r=sh(e,n,a);else{const s=typeof n=="function"?Hr(e,n,a.custom):n;r=Promise.all(m1(e,s,a))}return r.then(()=>{e.notify("AnimationComplete",n)})}const Az={test:e=>e==="auto",parse:e=>e},p1=e=>n=>n.test(e),g1=[Qr,me,fi,ca,tO,eO,Az],Hx=e=>g1.find(p1(e));function kz(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||NS(e):!0}const Nz=new Set(["brightness","contrast","saturate","opacity"]);function jz(e){const[n,a]=e.slice(0,-1).split("(");if(n==="drop-shadow")return e;const[r]=a.match(Jh)||[];if(!r)return e;const s=a.replace(r,"");let u=Nz.has(n)?1:0;return r!==a&&(u*=100),n+"("+u+s+")"}const Rz=/\b([a-z-]*)\(.*?\)/gu,oh={...$n,getAnimatableNone:e=>{const n=e.match(Rz);return n?n.map(jz).join(" "):e}},uh={...$n,getAnimatableNone:e=>{const n=$n.parse(e);return $n.createTransformer(e)(n.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},Px={...Qr,transform:Math.round},Mz={rotate:ca,rotateX:ca,rotateY:ca,rotateZ:ca,scale:Fo,scaleX:Fo,scaleY:Fo,scaleZ:Fo,skew:ca,skewX:ca,skewY:ca,distance:me,translateX:me,translateY:me,translateZ:me,x:me,y:me,z:me,perspective:me,transformPerspective:me,opacity:us,originX:kx,originY:kx,originZ:me},cm={borderWidth:me,borderTopWidth:me,borderRightWidth:me,borderBottomWidth:me,borderLeftWidth:me,borderRadius:me,borderTopLeftRadius:me,borderTopRightRadius:me,borderBottomRightRadius:me,borderBottomLeftRadius:me,width:me,maxWidth:me,height:me,maxHeight:me,top:me,right:me,bottom:me,left:me,inset:me,insetBlock:me,insetBlockStart:me,insetBlockEnd:me,insetInline:me,insetInlineStart:me,insetInlineEnd:me,padding:me,paddingTop:me,paddingRight:me,paddingBottom:me,paddingLeft:me,paddingBlock:me,paddingBlockStart:me,paddingBlockEnd:me,paddingInline:me,paddingInlineStart:me,paddingInlineEnd:me,margin:me,marginTop:me,marginRight:me,marginBottom:me,marginLeft:me,marginBlock:me,marginBlockStart:me,marginBlockEnd:me,marginInline:me,marginInlineStart:me,marginInlineEnd:me,fontSize:me,backgroundPositionX:me,backgroundPositionY:me,...Mz,zIndex:Px,fillOpacity:us,strokeOpacity:us,numOctaves:Px},Dz={...cm,color:kt,backgroundColor:kt,outlineColor:kt,fill:kt,stroke:kt,borderColor:kt,borderTopColor:kt,borderRightColor:kt,borderBottomColor:kt,borderLeftColor:kt,filter:oh,WebkitFilter:oh,mask:uh,WebkitMask:uh},y1=e=>Dz[e],Oz=new Set([oh,uh]);function v1(e,n){let a=y1(e);return Oz.has(a)||(a=$n),a.getAnimatableNone?a.getAnimatableNone(n):void 0}const zz=new Set(["auto","none","0"]);function Lz(e,n,a){let r=0,s;for(;r<e.length&&!s;){const u=e[r];typeof u=="string"&&!zz.has(u)&&cs(u).values.length&&(s=e[r]),r++}if(s&&a)for(const u of n)e[u]=v1(a,s)}class _z extends rm{constructor(n,a,r,s,u){super(n,a,r,s,u,!0)}readKeyframes(){const{unresolvedKeyframes:n,element:a,name:r}=this;if(!a||!a.current)return;super.readKeyframes();for(let v=0;v<n.length;v++){let g=n[v];if(typeof g=="string"&&(g=g.trim(),$h(g))){const x=u1(g,a.current);x!==void 0&&(n[v]=x),v===n.length-1&&(this.finalKeyframe=g)}}if(this.resolveNoneKeyframes(),!f1.has(r)||n.length!==2)return;const[s,u]=n,c=Hx(s),f=Hx(u),m=Ax(s),h=Ax(u);if(m!==h&&da[r]){this.needsMeasurement=!0;return}if(c!==f)if(Lx(c)&&Lx(f))for(let v=0;v<n.length;v++){const g=n[v];typeof g=="string"&&(n[v]=parseFloat(g))}else da[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:n,name:a}=this,r=[];for(let s=0;s<n.length;s++)(n[s]===null||kz(n[s]))&&r.push(s);r.length&&Lz(n,r,a)}measureInitialState(){const{element:n,unresolvedKeyframes:a,name:r}=this;if(!n||!n.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=da[r](n.measureViewportBox(),window.getComputedStyle(n.current)),a[0]=this.measuredOrigin;const s=a[a.length-1];s!==void 0&&n.getValue(r,s).jump(s,!1)}measureEndState(){const{element:n,name:a,unresolvedKeyframes:r}=this;if(!n||!n.current)return;const s=n.getValue(a);s&&s.jump(this.measuredOrigin,!1);const u=r.length-1,c=r[u];r[u]=da[a](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),this.removedTransforms?.length&&this.removedTransforms.forEach(([f,m])=>{n.getValue(f).set(m)}),this.resolveNoneKeyframes()}}const Bz=new Set(["opacity","clipPath","filter","transform"]);function x1(e,n,a){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const s=a?.[e]??r.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e).filter(r=>r!=null)}const b1=(e,n)=>n&&typeof e=="number"?n.transform(e):e;function Vz(e){return kS(e)&&"offsetHeight"in e}const{schedule:fm}=PS(queueMicrotask,!1),Kn={x:!1,y:!1};function S1(){return Kn.x||Kn.y}function Uz(e){return e==="x"||e==="y"?Kn[e]?null:(Kn[e]=!0,()=>{Kn[e]=!1}):Kn.x||Kn.y?null:(Kn.x=Kn.y=!0,()=>{Kn.x=Kn.y=!1})}function w1(e,n){const a=x1(e),r=new AbortController,s={passive:!0,...n,signal:r.signal};return[a,s,()=>r.abort()]}function Hz(e){return!(e.pointerType==="touch"||S1())}function Pz(e,n,a={}){const[r,s,u]=w1(e,a);return r.forEach(c=>{let f=!1,m=!1,h;const v=()=>{c.removeEventListener("pointerleave",E)},g=N=>{h&&(h(N),h=void 0),v()},x=N=>{f=!1,window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",x),m&&(m=!1,g(N))},S=()=>{f=!0,window.addEventListener("pointerup",x,s),window.addEventListener("pointercancel",x,s)},E=N=>{if(N.pointerType!=="touch"){if(f){m=!0;return}g(N)}},A=N=>{if(!Hz(N))return;m=!1;const k=n(c,N);typeof k=="function"&&(h=k,c.addEventListener("pointerleave",E,s))};c.addEventListener("pointerenter",A,s),c.addEventListener("pointerdown",S,s)}),u}const E1=(e,n)=>n?e===n?!0:E1(e,n.parentElement):!1,dm=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Iz=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function qz(e){return Iz.has(e.tagName)||e.isContentEditable===!0}const Fz=new Set(["INPUT","SELECT","TEXTAREA"]);function Gz(e){return Fz.has(e.tagName)||e.isContentEditable===!0}const $o=new WeakSet;function Ix(e){return n=>{n.key==="Enter"&&e(n)}}function vd(e,n){e.dispatchEvent(new PointerEvent("pointer"+n,{isPrimary:!0,bubbles:!0}))}const Yz=(e,n)=>{const a=e.currentTarget;if(!a)return;const r=Ix(()=>{if($o.has(a))return;vd(a,"down");const s=Ix(()=>{vd(a,"up")}),u=()=>vd(a,"cancel");a.addEventListener("keyup",s,n),a.addEventListener("blur",u,n)});a.addEventListener("keydown",r,n),a.addEventListener("blur",()=>a.removeEventListener("keydown",r),n)};function qx(e){return dm(e)&&!S1()}const Fx=new WeakSet;function Xz(e,n,a={}){const[r,s,u]=w1(e,a),c=f=>{const m=f.currentTarget;if(!qx(f)||Fx.has(f))return;$o.add(m),a.stopPropagation&&Fx.add(f);const h=n(m,f),v=(S,E)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",x),$o.has(m)&&$o.delete(m),qx(S)&&typeof h=="function"&&h(S,{success:E})},g=S=>{v(S,m===window||m===document||a.useGlobalTarget||E1(m,S.target))},x=S=>{v(S,!1)};window.addEventListener("pointerup",g,s),window.addEventListener("pointercancel",x,s)};return r.forEach(f=>{(a.useGlobalTarget?window:f).addEventListener("pointerdown",c,s),Vz(f)&&(f.addEventListener("focus",h=>Yz(h,s)),!qz(f)&&!f.hasAttribute("tabindex")&&(f.tabIndex=0))}),u}function hm(e){return kS(e)&&"ownerSVGElement"in e}const Jo=new WeakMap;let Wo;const T1=(e,n,a)=>(r,s)=>s&&s[0]?s[0][e+"Size"]:hm(r)&&"getBBox"in r?r.getBBox()[n]:r[a],Kz=T1("inline","width","offsetWidth"),Qz=T1("block","height","offsetHeight");function Zz({target:e,borderBoxSize:n}){Jo.get(e)?.forEach(a=>{a(e,{get width(){return Kz(e,n)},get height(){return Qz(e,n)}})})}function $z(e){e.forEach(Zz)}function Jz(){typeof ResizeObserver>"u"||(Wo=new ResizeObserver($z))}function Wz(e,n){Wo||Jz();const a=x1(e);return a.forEach(r=>{let s=Jo.get(r);s||(s=new Set,Jo.set(r,s)),s.add(n),Wo?.observe(r)}),()=>{a.forEach(r=>{const s=Jo.get(r);s?.delete(n),s?.size||Wo?.unobserve(r)})}}const eu=new Set;let zr;function e3(){zr=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};eu.forEach(n=>n(e))},window.addEventListener("resize",zr)}function t3(e){return eu.add(e),zr||e3(),()=>{eu.delete(e),!eu.size&&typeof zr=="function"&&(window.removeEventListener("resize",zr),zr=void 0)}}function Gx(e,n){return typeof e=="function"?t3(e):Wz(e,n)}function n3(e){return hm(e)&&e.tagName==="svg"}const i3=[...g1,kt,$n],a3=e=>i3.find(p1(e)),Yx=()=>({translate:0,scale:1,origin:0,originPoint:0}),Lr=()=>({x:Yx(),y:Yx()}),Xx=()=>({min:0,max:0}),jt=()=>({x:Xx(),y:Xx()}),r3=new WeakMap;function ku(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function fs(e){return typeof e=="string"||Array.isArray(e)}const mm=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],pm=["initial",...mm];function Nu(e){return ku(e.animate)||pm.some(n=>fs(e[n]))}function C1(e){return!!(Nu(e)||e.variants)}function l3(e,n,a){for(const r in n){const s=n[r],u=a[r];if(Gt(s))e.addValue(r,s);else if(Gt(u))e.addValue(r,qr(s,{owner:e}));else if(u!==s)if(e.hasValue(r)){const c=e.getValue(r);c.liveStyle===!0?c.jump(s):c.hasAnimated||c.set(s)}else{const c=e.getStaticValue(r);e.addValue(r,qr(c!==void 0?c:s,{owner:e}))}}for(const r in a)n[r]===void 0&&e.removeValue(r);return n}const ch={current:null},A1={current:!1},s3=typeof window<"u";function o3(){if(A1.current=!0,!!s3)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),n=()=>ch.current=e.matches;e.addEventListener("change",n),n()}else ch.current=!1}const Kx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let hu={};function k1(e){hu=e}function u3(){return hu}class c3{scrapeMotionValuesFromProps(n,a,r){return{}}constructor({parent:n,props:a,presenceContext:r,reducedMotionConfig:s,skipAnimations:u,blockInitialAnimation:c,visualState:f},m={}){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=rm,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=()=>{const S=Jt.now();this.renderScheduledAt<S&&(this.renderScheduledAt=S,it.render(this.render,!1,!0))};const{latestValues:h,renderState:v}=f;this.latestValues=h,this.baseTarget={...h},this.initialValues=a.initial?{...h}:{},this.renderState=v,this.parent=n,this.props=a,this.presenceContext=r,this.depth=n?n.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=u,this.options=m,this.blockInitialAnimation=!!c,this.isControllingVariants=Nu(a),this.isVariantNode=C1(a),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(n&&n.current);const{willChange:g,...x}=this.scrapeMotionValuesFromProps(a,{},this);for(const S in x){const E=x[S];h[S]!==void 0&&Gt(E)&&E.set(h[S])}}mount(n){if(this.hasBeenMounted)for(const a in this.initialValues)this.values.get(a)?.jump(this.initialValues[a]),this.latestValues[a]=this.initialValues[a];this.current=n,r3.set(n,this),this.projection&&!this.projection.instance&&this.projection.mount(n),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((a,r)=>this.bindToMotionValue(r,a)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(A1.current||o3(),this.shouldReduceMotion=ch.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(),ha(this.notifyUpdate),ha(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const a=this.features[n];a&&(a.unmount(),a.isMounted=!1)}this.current=null}addChild(n){this.children.add(n),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(n)}removeChild(n){this.children.delete(n),this.enteringChildren&&this.enteringChildren.delete(n)}bindToMotionValue(n,a){if(this.valueSubscriptions.has(n)&&this.valueSubscriptions.get(n)(),a.accelerate&&Bz.has(n)&&this.current instanceof HTMLElement){const{factory:c,keyframes:f,times:m,ease:h,duration:v}=a.accelerate,g=new l1({element:this.current,name:n,keyframes:f,times:m,ease:h,duration:Zn(v)}),x=c(g);this.valueSubscriptions.set(n,()=>{x(),g.cancel()});return}const r=$r.has(n);r&&this.onBindTransform&&this.onBindTransform();const s=a.on("change",c=>{this.latestValues[n]=c,this.props.onUpdate&&it.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let u;typeof window<"u"&&window.MotionCheckAppearSync&&(u=window.MotionCheckAppearSync(this,n,a)),this.valueSubscriptions.set(n,()=>{s(),u&&u(),a.owner&&a.stop()})}sortNodePosition(n){return!this.current||!this.sortInstanceNodePosition||this.type!==n.type?0:this.sortInstanceNodePosition(this.current,n.current)}updateFeatures(){let n="animation";for(n in hu){const a=hu[n];if(!a)continue;const{isEnabled:r,Feature:s}=a;if(!this.features[n]&&s&&r(this.props)&&(this.features[n]=new s(this)),this.features[n]){const u=this.features[n];u.isMounted?u.update():(u.mount(),u.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):jt()}getStaticValue(n){return this.latestValues[n]}setStaticValue(n,a){this.latestValues[n]=a}update(n,a){(n.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=n,this.prevPresenceContext=this.presenceContext,this.presenceContext=a;for(let r=0;r<Kx.length;r++){const s=Kx[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const u="on"+s,c=n[u];c&&(this.propEventSubscriptions[s]=this.on(s,c))}this.prevMotionValues=l3(this,this.scrapeMotionValuesFromProps(n,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(n){return this.props.variants?this.props.variants[n]: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(n){const a=this.getClosestVariantNode();if(a)return a.variantChildren&&a.variantChildren.add(n),()=>a.variantChildren.delete(n)}addValue(n,a){const r=this.values.get(n);a!==r&&(r&&this.removeValue(n),this.bindToMotionValue(n,a),this.values.set(n,a),this.latestValues[n]=a.get())}removeValue(n){this.values.delete(n);const a=this.valueSubscriptions.get(n);a&&(a(),this.valueSubscriptions.delete(n)),delete this.latestValues[n],this.removeValueFromRenderState(n,this.renderState)}hasValue(n){return this.values.has(n)}getValue(n,a){if(this.props.values&&this.props.values[n])return this.props.values[n];let r=this.values.get(n);return r===void 0&&a!==void 0&&(r=qr(a===null?void 0:a,{owner:this}),this.addValue(n,r)),r}readValue(n,a){let r=this.latestValues[n]!==void 0||!this.current?this.latestValues[n]:this.getBaseTargetFromProps(this.props,n)??this.readValueFromInstance(this.current,n,this.options);return r!=null&&(typeof r=="string"&&(AS(r)||NS(r))?r=parseFloat(r):!a3(r)&&$n.test(a)&&(r=v1(n,a)),this.setBaseTarget(n,Gt(r)?r.get():r)),Gt(r)?r.get():r}setBaseTarget(n,a){this.baseTarget[n]=a}getBaseTarget(n){const{initial:a}=this.props;let r;if(typeof a=="string"||typeof a=="object"){const u=om(this.props,a,this.presenceContext?.custom);u&&(r=u[n])}if(a&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,n);return s!==void 0&&!Gt(s)?s:this.initialValues[n]!==void 0&&r===void 0?void 0:this.baseTarget[n]}on(n,a){return this.events[n]||(this.events[n]=new Kh),this.events[n].add(a)}notify(n,...a){this.events[n]&&this.events[n].notify(...a)}scheduleRenderMicrotask(){fm.render(this.render)}}class N1 extends c3{constructor(){super(...arguments),this.KeyframeResolver=_z}sortInstanceNodePosition(n,a){return n.compareDocumentPosition(a)&2?1:-1}getBaseTargetFromProps(n,a){const r=n.style;return r?r[a]:void 0}removeValueFromRenderState(n,{vars:a,style:r}){delete a[n],delete r[n]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:n}=this.props;Gt(n)&&(this.childSubscription=n.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}}class pa{constructor(n){this.isMounted=!1,this.node=n}update(){}}function j1({top:e,left:n,right:a,bottom:r}){return{x:{min:n,max:a},y:{min:e,max:r}}}function f3({x:e,y:n}){return{top:n.min,right:e.max,bottom:n.max,left:e.min}}function d3(e,n){if(!n)return e;const a=n({x:e.left,y:e.top}),r=n({x:e.right,y:e.bottom});return{top:a.y,left:a.x,bottom:r.y,right:r.x}}function xd(e){return e===void 0||e===1}function fh({scale:e,scaleX:n,scaleY:a}){return!xd(e)||!xd(n)||!xd(a)}function Va(e){return fh(e)||R1(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function R1(e){return Qx(e.x)||Qx(e.y)}function Qx(e){return e&&e!=="0%"}function mu(e,n,a){const r=e-a,s=n*r;return a+s}function Zx(e,n,a,r,s){return s!==void 0&&(e=mu(e,s,r)),mu(e,a,r)+n}function dh(e,n=0,a=1,r,s){e.min=Zx(e.min,n,a,r,s),e.max=Zx(e.max,n,a,r,s)}function M1(e,{x:n,y:a}){dh(e.x,n.translate,n.scale,n.originPoint),dh(e.y,a.translate,a.scale,a.originPoint)}const $x=.999999999999,Jx=1.0000000000001;function h3(e,n,a,r=!1){const s=a.length;if(!s)return;n.x=n.y=1;let u,c;for(let f=0;f<s;f++){u=a[f],c=u.projectionDelta;const{visualElement:m}=u.options;m&&m.props.style&&m.props.style.display==="contents"||(r&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Br(e,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),c&&(n.x*=c.x.scale,n.y*=c.y.scale,M1(e,c)),r&&Va(u.latestValues)&&Br(e,u.latestValues))}n.x<Jx&&n.x>$x&&(n.x=1),n.y<Jx&&n.y>$x&&(n.y=1)}function _r(e,n){e.min=e.min+n,e.max=e.max+n}function Wx(e,n,a,r,s=.5){const u=ht(e.min,e.max,s);dh(e,n,a,u,r)}function Br(e,n){Wx(e.x,n.x,n.scaleX,n.scale,n.originX),Wx(e.y,n.y,n.scaleY,n.scale,n.originY)}function D1(e,n){return j1(d3(e.getBoundingClientRect(),n))}function m3(e,n,a){const r=D1(e,a),{scroll:s}=n;return s&&(_r(r.x,s.offset.x),_r(r.y,s.offset.y)),r}const p3={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},g3=Zr.length;function y3(e,n,a){let r="",s=!0;for(let u=0;u<g3;u++){const c=Zr[u],f=e[c];if(f===void 0)continue;let m=!0;if(typeof f=="number")m=f===(c.startsWith("scale")?1:0);else{const h=parseFloat(f);m=c.startsWith("scale")?h===1:h===0}if(!m||a){const h=b1(f,cm[c]);if(!m){s=!1;const v=p3[c]||c;r+=`${v}(${h}) `}a&&(n[c]=h)}}return r=r.trim(),a?r=a(n,s?"":r):s&&(r="none"),r}function gm(e,n,a){const{style:r,vars:s,transformOrigin:u}=e;let c=!1,f=!1;for(const m in n){const h=n[m];if($r.has(m)){c=!0;continue}else if(qS(m)){s[m]=h;continue}else{const v=b1(h,cm[m]);m.startsWith("origin")?(f=!0,u[m]=v):r[m]=v}}if(n.transform||(c||a?r.transform=y3(n,e.transform,a):r.transform&&(r.transform="none")),f){const{originX:m="50%",originY:h="50%",originZ:v=0}=u;r.transformOrigin=`${m} ${h} ${v}`}}function O1(e,{style:n,vars:a},r,s){const u=e.style;let c;for(c in n)u[c]=n[c];s?.applyProjectionStyles(u,r);for(c in a)u.setProperty(c,a[c])}function eb(e,n){return n.max===n.min?0:e/(n.max-n.min)*100}const Ql={correct:(e,n)=>{if(!n.target)return e;if(typeof e=="string")if(me.test(e))e=parseFloat(e);else return e;const a=eb(e,n.target.x),r=eb(e,n.target.y);return`${a}% ${r}%`}},v3={correct:(e,{treeScale:n,projectionDelta:a})=>{const r=e,s=$n.parse(e);if(s.length>5)return r;const u=$n.createTransformer(e),c=typeof s[0]!="number"?1:0,f=a.x.scale*n.x,m=a.y.scale*n.y;s[0+c]/=f,s[1+c]/=m;const h=ht(f,m,.5);return typeof s[2+c]=="number"&&(s[2+c]/=h),typeof s[3+c]=="number"&&(s[3+c]/=h),u(s)}},hh={borderRadius:{...Ql,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ql,borderTopRightRadius:Ql,borderBottomLeftRadius:Ql,borderBottomRightRadius:Ql,boxShadow:v3};function z1(e,{layout:n,layoutId:a}){return $r.has(e)||e.startsWith("origin")||(n||a!==void 0)&&(!!hh[e]||e==="opacity")}function ym(e,n,a){const r=e.style,s=n?.style,u={};if(!r)return u;for(const c in r)(Gt(r[c])||s&&Gt(s[c])||z1(c,e)||a?.getValue(c)?.liveStyle!==void 0)&&(u[c]=r[c]);return u}function x3(e){return window.getComputedStyle(e)}class b3 extends N1{constructor(){super(...arguments),this.type="html",this.renderInstance=O1}readValueFromInstance(n,a){if($r.has(a))return this.projection?.isProjecting?Wd(a):VO(n,a);{const r=x3(n),s=(qS(a)?r.getPropertyValue(a):r[a])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(n,{transformPagePoint:a}){return D1(n,a)}build(n,a,r){gm(n,a,r.transformTemplate)}scrapeMotionValuesFromProps(n,a,r){return ym(n,a,r)}}const S3={offset:"stroke-dashoffset",array:"stroke-dasharray"},w3={offset:"strokeDashoffset",array:"strokeDasharray"};function E3(e,n,a=1,r=0,s=!0){e.pathLength=1;const u=s?S3:w3;e[u.offset]=`${-r}`,e[u.array]=`${n} ${a}`}const T3=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function L1(e,{attrX:n,attrY:a,attrScale:r,pathLength:s,pathSpacing:u=1,pathOffset:c=0,...f},m,h,v){if(gm(e,f,h),m){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:x}=e;g.transform&&(x.transform=g.transform,delete g.transform),(x.transform||g.transformOrigin)&&(x.transformOrigin=g.transformOrigin??"50% 50%",delete g.transformOrigin),x.transform&&(x.transformBox=v?.transformBox??"fill-box",delete g.transformBox);for(const S of T3)g[S]!==void 0&&(x[S]=g[S],delete g[S]);n!==void 0&&(g.x=n),a!==void 0&&(g.y=a),r!==void 0&&(g.scale=r),s!==void 0&&E3(g,s,u,c,!1)}const _1=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"]),B1=e=>typeof e=="string"&&e.toLowerCase()==="svg";function C3(e,n,a,r){O1(e,n,void 0,r);for(const s in n.attrs)e.setAttribute(_1.has(s)?s:um(s),n.attrs[s])}function V1(e,n,a){const r=ym(e,n,a);for(const s in e)if(Gt(e[s])||Gt(n[s])){const u=Zr.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[u]=e[s]}return r}class A3 extends N1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=jt}getBaseTargetFromProps(n,a){return n[a]}readValueFromInstance(n,a){if($r.has(a)){const r=y1(a);return r&&r.default||0}return a=_1.has(a)?a:um(a),n.getAttribute(a)}scrapeMotionValuesFromProps(n,a,r){return V1(n,a,r)}build(n,a,r){L1(n,a,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(n,a,r,s){C3(n,a,r,s)}mount(n){this.isSVGTag=B1(n.tagName),super.mount(n)}}const k3=pm.length;function U1(e){if(!e)return;if(!e.isControllingVariants){const a=e.parent?U1(e.parent)||{}:{};return e.props.initial!==void 0&&(a.initial=e.props.initial),a}const n={};for(let a=0;a<k3;a++){const r=pm[a],s=e.props[r];(fs(s)||s===!1)&&(n[r]=s)}return n}function H1(e,n){if(!Array.isArray(n))return!1;const a=n.length;if(a!==e.length)return!1;for(let r=0;r<a;r++)if(n[r]!==e[r])return!1;return!0}const N3=[...mm].reverse(),j3=mm.length;function R3(e){return n=>Promise.all(n.map(({animation:a,options:r})=>Cz(e,a,r)))}function M3(e){let n=R3(e),a=tb(),r=!0;const s=m=>(h,v)=>{const g=Hr(e,v,m==="exit"?e.presenceContext?.custom:void 0);if(g){const{transition:x,transitionEnd:S,...E}=g;h={...h,...E,...S}}return h};function u(m){n=m(e)}function c(m){const{props:h}=e,v=U1(e.parent)||{},g=[],x=new Set;let S={},E=1/0;for(let N=0;N<j3;N++){const k=N3[N],O=a[k],R=h[k]!==void 0?h[k]:v[k],Y=fs(R),U=k===m?O.isActive:null;U===!1&&(E=N);let z=R===v[k]&&R!==h[k]&&Y;if(z&&r&&e.manuallyAnimateOnMount&&(z=!1),O.protectedKeys={...S},!O.isActive&&U===null||!R&&!O.prevProp||ku(R)||typeof R=="boolean")continue;if(k==="exit"&&O.isActive&&U!==!0){O.prevResolvedValues&&(S={...S,...O.prevResolvedValues});continue}const Q=D3(O.prevProp,R);let ee=Q||k===m&&O.isActive&&!z&&Y||N>E&&Y,oe=!1;const B=Array.isArray(R)?R:[R];let ae=B.reduce(s(k),{});U===!1&&(ae={});const{prevResolvedValues:re={}}=O,te={...re,...ae},se=$=>{ee=!0,x.has($)&&(oe=!0,x.delete($)),O.needsAnimating[$]=!0;const ue=e.getValue($);ue&&(ue.liveStyle=!1)};for(const $ in te){const ue=ae[$],xe=re[$];if(S.hasOwnProperty($))continue;let j=!1;rh(ue)&&rh(xe)?j=!H1(ue,xe):j=ue!==xe,j?ue!=null?se($):x.add($):ue!==void 0&&x.has($)?se($):O.protectedKeys[$]=!0}O.prevProp=R,O.prevResolvedValues=ae,O.isActive&&(S={...S,...ae}),r&&e.blockInitialAnimation&&(ee=!1);const ne=z&&Q;ee&&(!ne||oe)&&g.push(...B.map($=>{const ue={type:k};if(typeof $=="string"&&r&&!ne&&e.manuallyAnimateOnMount&&e.parent){const{parent:xe}=e,j=Hr(xe,$);if(xe.enteringChildren&&j){const{delayChildren:D}=j.transition||{};ue.delay=o1(xe.enteringChildren,e,D)}}return{animation:$,options:ue}}))}if(x.size){const N={};if(typeof h.initial!="boolean"){const k=Hr(e,Array.isArray(h.initial)?h.initial[0]:h.initial);k&&k.transition&&(N.transition=k.transition)}x.forEach(k=>{const O=e.getBaseTarget(k),R=e.getValue(k);R&&(R.liveStyle=!0),N[k]=O??null}),g.push({animation:N})}let A=!!g.length;return r&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(A=!1),r=!1,A?n(g):Promise.resolve()}function f(m,h){if(a[m].isActive===h)return Promise.resolve();e.variantChildren?.forEach(g=>g.animationState?.setActive(m,h)),a[m].isActive=h;const v=c(m);for(const g in a)a[g].protectedKeys={};return v}return{animateChanges:c,setActive:f,setAnimateFunction:u,getState:()=>a,reset:()=>{a=tb()}}}function D3(e,n){return typeof n=="string"?n!==e:Array.isArray(n)?!H1(n,e):!1}function La(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function tb(){return{animate:La(!0),whileInView:La(),whileHover:La(),whileTap:La(),whileDrag:La(),whileFocus:La(),exit:La()}}function nb(e,n){e.min=n.min,e.max=n.max}function Yn(e,n){nb(e.x,n.x),nb(e.y,n.y)}function ib(e,n){e.translate=n.translate,e.scale=n.scale,e.originPoint=n.originPoint,e.origin=n.origin}const P1=1e-4,O3=1-P1,z3=1+P1,I1=.01,L3=0-I1,_3=0+I1;function Wt(e){return e.max-e.min}function B3(e,n,a){return Math.abs(e-n)<=a}function ab(e,n,a,r=.5){e.origin=r,e.originPoint=ht(n.min,n.max,e.origin),e.scale=Wt(a)/Wt(n),e.translate=ht(a.min,a.max,e.origin)-e.originPoint,(e.scale>=O3&&e.scale<=z3||isNaN(e.scale))&&(e.scale=1),(e.translate>=L3&&e.translate<=_3||isNaN(e.translate))&&(e.translate=0)}function ns(e,n,a,r){ab(e.x,n.x,a.x,r?r.originX:void 0),ab(e.y,n.y,a.y,r?r.originY:void 0)}function rb(e,n,a){e.min=a.min+n.min,e.max=e.min+Wt(n)}function V3(e,n,a){rb(e.x,n.x,a.x),rb(e.y,n.y,a.y)}function lb(e,n,a){e.min=n.min-a.min,e.max=e.min+Wt(n)}function pu(e,n,a){lb(e.x,n.x,a.x),lb(e.y,n.y,a.y)}function sb(e,n,a,r,s){return e-=n,e=mu(e,1/a,r),s!==void 0&&(e=mu(e,1/s,r)),e}function U3(e,n=0,a=1,r=.5,s,u=e,c=e){if(fi.test(n)&&(n=parseFloat(n),n=ht(c.min,c.max,n/100)-c.min),typeof n!="number")return;let f=ht(u.min,u.max,r);e===u&&(f-=n),e.min=sb(e.min,n,a,f,s),e.max=sb(e.max,n,a,f,s)}function ob(e,n,[a,r,s],u,c){U3(e,n[a],n[r],n[s],n.scale,u,c)}const H3=["x","scaleX","originX"],P3=["y","scaleY","originY"];function ub(e,n,a,r){ob(e.x,n,H3,a?a.x:void 0,r?r.x:void 0),ob(e.y,n,P3,a?a.y:void 0,r?r.y:void 0)}function cb(e){return e.translate===0&&e.scale===1}function q1(e){return cb(e.x)&&cb(e.y)}function fb(e,n){return e.min===n.min&&e.max===n.max}function I3(e,n){return fb(e.x,n.x)&&fb(e.y,n.y)}function db(e,n){return Math.round(e.min)===Math.round(n.min)&&Math.round(e.max)===Math.round(n.max)}function F1(e,n){return db(e.x,n.x)&&db(e.y,n.y)}function hb(e){return Wt(e.x)/Wt(e.y)}function mb(e,n){return e.translate===n.translate&&e.scale===n.scale&&e.originPoint===n.originPoint}function ui(e){return[e("x"),e("y")]}function q3(e,n,a){let r="";const s=e.x.translate/n.x,u=e.y.translate/n.y,c=a?.z||0;if((s||u||c)&&(r=`translate3d(${s}px, ${u}px, ${c}px) `),(n.x!==1||n.y!==1)&&(r+=`scale(${1/n.x}, ${1/n.y}) `),a){const{transformPerspective:h,rotate:v,rotateX:g,rotateY:x,skewX:S,skewY:E}=a;h&&(r=`perspective(${h}px) ${r}`),v&&(r+=`rotate(${v}deg) `),g&&(r+=`rotateX(${g}deg) `),x&&(r+=`rotateY(${x}deg) `),S&&(r+=`skewX(${S}deg) `),E&&(r+=`skewY(${E}deg) `)}const f=e.x.scale*n.x,m=e.y.scale*n.y;return(f!==1||m!==1)&&(r+=`scale(${f}, ${m})`),r||"none"}const G1=["TopLeft","TopRight","BottomLeft","BottomRight"],F3=G1.length,pb=e=>typeof e=="string"?parseFloat(e):e,gb=e=>typeof e=="number"||me.test(e);function G3(e,n,a,r,s,u){s?(e.opacity=ht(0,a.opacity??1,Y3(r)),e.opacityExit=ht(n.opacity??1,0,X3(r))):u&&(e.opacity=ht(n.opacity??1,a.opacity??1,r));for(let c=0;c<F3;c++){const f=`border${G1[c]}Radius`;let m=yb(n,f),h=yb(a,f);if(m===void 0&&h===void 0)continue;m||(m=0),h||(h=0),m===0||h===0||gb(m)===gb(h)?(e[f]=Math.max(ht(pb(m),pb(h),r),0),(fi.test(h)||fi.test(m))&&(e[f]+="%")):e[f]=h}(n.rotate||a.rotate)&&(e.rotate=ht(n.rotate||0,a.rotate||0,r))}function yb(e,n){return e[n]!==void 0?e[n]:e.borderRadius}const Y3=Y1(0,.5,BS),X3=Y1(.5,.95,Bn);function Y1(e,n,a){return r=>r<e?0:r>n?1:a(os(e,n,r))}function K3(e,n,a){const r=Gt(e)?e:qr(e);return r.start(sm("",r,n,a)),r.animation}function ds(e,n,a,r={passive:!0}){return e.addEventListener(n,a,r),()=>e.removeEventListener(n,a)}const Q3=(e,n)=>e.depth-n.depth;class Z3{constructor(){this.children=[],this.isDirty=!1}add(n){Yh(this.children,n),this.isDirty=!0}remove(n){uu(this.children,n),this.isDirty=!0}forEach(n){this.isDirty&&this.children.sort(Q3),this.isDirty=!1,this.children.forEach(n)}}function $3(e,n){const a=Jt.now(),r=({timestamp:s})=>{const u=s-a;u>=n&&(ha(r),e(u-n))};return it.setup(r,!0),()=>ha(r)}function tu(e){return Gt(e)?e.get():e}class J3{constructor(){this.members=[]}add(n){Yh(this.members,n);for(let a=this.members.length-1;a>=0;a--){const r=this.members[a];if(r===n||r===this.lead||r===this.prevLead)continue;const s=r.instance;s&&s.isConnected===!1&&r.isPresent!==!1&&!r.snapshot&&uu(this.members,r)}n.scheduleRender()}remove(n){if(uu(this.members,n),n===this.prevLead&&(this.prevLead=void 0),n===this.lead){const a=this.members[this.members.length-1];a&&this.promote(a)}}relegate(n){const a=this.members.findIndex(s=>n===s);if(a===0)return!1;let r;for(let s=a;s>=0;s--){const u=this.members[s],c=u.instance;if(u.isPresent!==!1&&(!c||c.isConnected!==!1)){r=u;break}}return r?(this.promote(r),!0):!1}promote(n,a){const r=this.lead;if(n!==r&&(this.prevLead=r,this.lead=n,n.show(),r)){r.instance&&r.scheduleRender(),n.scheduleRender();const s=r.options.layoutDependency,u=n.options.layoutDependency;if(!(s!==void 0&&u!==void 0&&s===u)){const m=r.instance;m&&m.isConnected===!1&&!r.snapshot||(n.resumeFrom=r,a&&(n.resumeFrom.preserveOpacity=!0),r.snapshot&&(n.snapshot=r.snapshot,n.snapshot.latestValues=r.animationValues||r.latestValues),n.root&&n.root.isUpdating&&(n.isLayoutDirty=!0))}const{crossfade:f}=n.options;f===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(n=>{const{options:a,resumingFrom:r}=n;a.onExitComplete&&a.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(n=>{n.instance&&n.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const nu={hasAnimatedSinceResize:!0,hasEverUpdated:!1},bd=["","X","Y","Z"],W3=1e3;let eL=0;function Sd(e,n,a,r){const{latestValues:s}=n;s[e]&&(a[e]=s[e],n.setStaticValue(e,0),r&&(r[e]=0))}function X1(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:n}=e.options;if(!n)return;const a=h1(n);if(window.MotionHasOptimisedAnimation(a,"transform")){const{layout:s,layoutId:u}=e.options;window.MotionCancelOptimisedAnimation(a,"transform",it,!(s||u))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&X1(r)}function K1({attachResizeListener:e,defaultParent:n,measureScroll:a,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(c={},f=n?.()){this.id=eL++,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,this.nodes.forEach(iL),this.nodes.forEach(sL),this.nodes.forEach(oL),this.nodes.forEach(aL)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=c,this.root=f?f.root||f:this,this.path=f?[...f.path,f]:[],this.parent=f,this.depth=f?f.depth+1:0;for(let m=0;m<this.path.length;m++)this.path[m].shouldResetTransform=!0;this.root===this&&(this.nodes=new Z3)}addEventListener(c,f){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new Kh),this.eventHandlers.get(c).add(f)}notifyListeners(c,...f){const m=this.eventHandlers.get(c);m&&m.notify(...f)}hasListeners(c){return this.eventHandlers.has(c)}mount(c){if(this.instance)return;this.isSVG=hm(c)&&!n3(c),this.instance=c;const{layoutId:f,layout:m,visualElement:h}=this.options;if(h&&!h.current&&h.mount(c),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(m||f)&&(this.isLayoutDirty=!0),e){let v,g=0;const x=()=>this.root.updateBlockedByResize=!1;it.read(()=>{g=window.innerWidth}),e(c,()=>{const S=window.innerWidth;S!==g&&(g=S,this.root.updateBlockedByResize=!0,v&&v(),v=$3(x,250),nu.hasAnimatedSinceResize&&(nu.hasAnimatedSinceResize=!1,this.nodes.forEach(bb)))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&h&&(f||m)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:g,hasRelativeLayoutChanged:x,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const E=this.options.transition||h.getDefaultTransition()||hL,{onLayoutAnimationStart:A,onLayoutAnimationComplete:N}=h.getProps(),k=!this.targetLayout||!F1(this.targetLayout,S),O=!g&&x;if(this.options.layoutRoot||this.resumeFrom||O||g&&(k||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const R={...lm(E,"layout"),onPlay:A,onComplete:N};(h.shouldReduceMotion||this.options.layoutRoot)&&(R.delay=0,R.type=!1),this.startAnimation(R),this.setAnimationOrigin(v,O)}else g||bb(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const c=this.getStack();c&&c.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ha(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(uL),this.animationId++)}getTransformTemplate(){const{visualElement:c}=this.options;return c&&c.getProps().transformTemplate}willUpdate(c=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&X1(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const g=this.path[v];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:f,layout:m}=this.options;if(f===void 0&&!m)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),c&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(vb);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(xb);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(lL),this.nodes.forEach(tL),this.nodes.forEach(nL)):this.nodes.forEach(xb),this.clearAllSnapshots();const f=Jt.now();Ht.delta=di(0,1e3/60,f-Ht.timestamp),Ht.timestamp=f,Ht.isProcessing=!0,dd.update.process(Ht),dd.preRender.process(Ht),dd.render.process(Ht),Ht.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,fm.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rL),this.sharedNodes.forEach(cL)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,it.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){it.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Wt(this.snapshot.measuredBox.x)&&!Wt(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 m=0;m<this.path.length;m++)this.path[m].updateScroll();const c=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=jt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:f}=this.options;f&&f.notify("LayoutMeasure",this.layout.layoutBox,c?c.layoutBox:void 0)}updateScroll(c="measure"){let f=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===c&&(f=!1),f&&this.instance){const m=r(this.instance);this.scroll={animationId:this.root.animationId,phase:c,isRoot:m,offset:a(this.instance),wasRoot:this.scroll?this.scroll.isRoot:m}}}resetTransform(){if(!s)return;const c=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,f=this.projectionDelta&&!q1(this.projectionDelta),m=this.getTransformTemplate(),h=m?m(this.latestValues,""):void 0,v=h!==this.prevTransformTemplateValue;c&&this.instance&&(f||Va(this.latestValues)||v)&&(s(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(c=!0){const f=this.measurePageBox();let m=this.removeElementScroll(f);return c&&(m=this.removeTransform(m)),mL(m),{animationId:this.root.animationId,measuredBox:f,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:c}=this.options;if(!c)return jt();const f=c.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(pL))){const{scroll:h}=this.root;h&&(_r(f.x,h.offset.x),_r(f.y,h.offset.y))}return f}removeElementScroll(c){const f=jt();if(Yn(f,c),this.scroll?.wasRoot)return f;for(let m=0;m<this.path.length;m++){const h=this.path[m],{scroll:v,options:g}=h;h!==this.root&&v&&g.layoutScroll&&(v.wasRoot&&Yn(f,c),_r(f.x,v.offset.x),_r(f.y,v.offset.y))}return f}applyTransform(c,f=!1){const m=jt();Yn(m,c);for(let h=0;h<this.path.length;h++){const v=this.path[h];!f&&v.options.layoutScroll&&v.scroll&&v!==v.root&&Br(m,{x:-v.scroll.offset.x,y:-v.scroll.offset.y}),Va(v.latestValues)&&Br(m,v.latestValues)}return Va(this.latestValues)&&Br(m,this.latestValues),m}removeTransform(c){const f=jt();Yn(f,c);for(let m=0;m<this.path.length;m++){const h=this.path[m];if(!h.instance||!Va(h.latestValues))continue;fh(h.latestValues)&&h.updateSnapshot();const v=jt(),g=h.measurePageBox();Yn(v,g),ub(f,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,v)}return Va(this.latestValues)&&ub(f,this.latestValues),f}setTargetDelta(c){this.targetDelta=c,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(c){this.options={...this.options,...c,crossfade:c.crossfade!==void 0?c.crossfade:!0}}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!==Ht.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(c=!1){const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==f;if(!(c||m&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:v,layoutId:g}=this.options;if(!this.layout||!(v||g))return;this.resolvedRelativeTargetAt=Ht.timestamp;const x=this.getClosestProjectingParent();x&&this.linkedParentVersion!==x.layoutVersion&&!x.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(x&&x.layout?this.createRelativeTarget(x,this.layout.layoutBox,x.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=jt(),this.targetWithTransforms=jt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),V3(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Yn(this.target,this.layout.layoutBox),M1(this.target,this.targetDelta)):Yn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,x&&!!x.resumingFrom==!!this.resumingFrom&&!x.options.layoutScroll&&x.target&&this.animationProgress!==1?this.createRelativeTarget(x,this.target,x.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||fh(this.parent.latestValues)||R1(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(c,f,m){this.relativeParent=c,this.linkedParentVersion=c.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=jt(),this.relativeTargetOrigin=jt(),pu(this.relativeTargetOrigin,f,m),Yn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const c=this.getLead(),f=!!this.resumingFrom||this!==c;let m=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(m=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===Ht.timestamp&&(m=!1),m)return;const{layout:h,layoutId:v}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||v))return;Yn(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,x=this.treeScale.y;h3(this.layoutCorrected,this.treeScale,this.path,f),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=jt());const{target:S}=c;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ib(this.prevProjectionDelta.x,this.projectionDelta.x),ib(this.prevProjectionDelta.y,this.projectionDelta.y)),ns(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==x||!mb(this.projectionDelta.x,this.prevProjectionDelta.x)||!mb(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(c=!0){if(this.options.visualElement?.scheduleRender(),c){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Lr(),this.projectionDelta=Lr(),this.projectionDeltaWithTransform=Lr()}setAnimationOrigin(c,f=!1){const m=this.snapshot,h=m?m.latestValues:{},v={...this.latestValues},g=Lr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!f;const x=jt(),S=m?m.source:void 0,E=this.layout?this.layout.source:void 0,A=S!==E,N=this.getStack(),k=!N||N.members.length<=1,O=!!(A&&!k&&this.options.crossfade===!0&&!this.path.some(dL));this.animationProgress=0;let R;this.mixTargetDelta=Y=>{const U=Y/1e3;Sb(g.x,c.x,U),Sb(g.y,c.y,U),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(pu(x,this.layout.layoutBox,this.relativeParent.layout.layoutBox),fL(this.relativeTarget,this.relativeTargetOrigin,x,U),R&&I3(this.relativeTarget,R)&&(this.isProjectionDirty=!1),R||(R=jt()),Yn(R,this.relativeTarget)),A&&(this.animationValues=v,G3(v,h,this.latestValues,U,O,k)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=U},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(c){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(ha(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=it.update(()=>{nu.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=qr(0)),this.motionValue.jump(0,!1),this.currentAnimation=K3(this.motionValue,[0,1e3],{...c,velocity:0,isSync:!0,onUpdate:f=>{this.mixTargetDelta(f),c.onUpdate&&c.onUpdate(f)},onStop:()=>{},onComplete:()=>{c.onComplete&&c.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);const c=this.getStack();c&&c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(W3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:f,target:m,layout:h,latestValues:v}=c;if(!(!f||!m||!h)){if(this!==c&&this.layout&&h&&Q1(this.options.animationType,this.layout.layoutBox,h.layoutBox)){m=this.target||jt();const g=Wt(this.layout.layoutBox.x);m.x.min=c.target.x.min,m.x.max=m.x.min+g;const x=Wt(this.layout.layoutBox.y);m.y.min=c.target.y.min,m.y.max=m.y.min+x}Yn(f,m),Br(f,v),ns(this.projectionDeltaWithTransform,this.layoutCorrected,f,v)}}registerSharedNode(c,f){this.sharedNodes.has(c)||this.sharedNodes.set(c,new J3),this.sharedNodes.get(c).add(f);const h=f.options.initialPromotionConfig;f.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(f):void 0})}isLead(){const c=this.getStack();return c?c.lead===this:!0}getLead(){const{layoutId:c}=this.options;return c?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:c}=this.options;return c?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:c}=this.options;if(c)return this.root.sharedNodes.get(c)}promote({needsReset:c,transition:f,preserveFollowOpacity:m}={}){const h=this.getStack();h&&h.promote(this,m),c&&(this.projectionDelta=void 0,this.needsReset=!0),f&&this.setOptions({transition:f})}relegate(){const c=this.getStack();return c?c.relegate(this):!1}resetSkewAndRotation(){const{visualElement:c}=this.options;if(!c)return;let f=!1;const{latestValues:m}=c;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(f=!0),!f)return;const h={};m.z&&Sd("z",c,h,this.animationValues);for(let v=0;v<bd.length;v++)Sd(`rotate${bd[v]}`,c,h,this.animationValues),Sd(`skew${bd[v]}`,c,h,this.animationValues);c.render();for(const v in h)c.setStaticValue(v,h[v]),this.animationValues&&(this.animationValues[v]=h[v]);c.scheduleRender()}applyProjectionStyles(c,f){if(!this.instance||this.isSVG)return;if(!this.isVisible){c.visibility="hidden";return}const m=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,c.visibility="",c.opacity="",c.pointerEvents=tu(f?.pointerEvents)||"",c.transform=m?m(this.latestValues,""):"none";return}const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){this.options.layoutId&&(c.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,c.pointerEvents=tu(f?.pointerEvents)||""),this.hasProjected&&!Va(this.latestValues)&&(c.transform=m?m({},""):"none",this.hasProjected=!1);return}c.visibility="";const v=h.animationValues||h.latestValues;this.applyTransformsToTarget();let g=q3(this.projectionDeltaWithTransform,this.treeScale,v);m&&(g=m(v,g)),c.transform=g;const{x,y:S}=this.projectionDelta;c.transformOrigin=`${x.origin*100}% ${S.origin*100}% 0`,h.animationValues?c.opacity=h===this?v.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:c.opacity=h===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const E in hh){if(v[E]===void 0)continue;const{correct:A,applyTo:N,isCSSVariable:k}=hh[E],O=g==="none"?v[E]:A(v[E],h);if(N){const R=N.length;for(let Y=0;Y<R;Y++)c[N[Y]]=O}else k?this.options.visualElement.renderState.vars[E]=O:c[E]=O}this.options.layoutId&&(c.pointerEvents=h===this?tu(f?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(c=>c.currentAnimation?.stop()),this.root.nodes.forEach(vb),this.root.sharedNodes.clear()}}}function tL(e){e.updateLayout()}function nL(e){const n=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:a,measuredBox:r}=e.layout,{animationType:s}=e.options,u=n.source!==e.layout.source;s==="size"?ui(v=>{const g=u?n.measuredBox[v]:n.layoutBox[v],x=Wt(g);g.min=a[v].min,g.max=g.min+x}):Q1(s,n.layoutBox,a)&&ui(v=>{const g=u?n.measuredBox[v]:n.layoutBox[v],x=Wt(a[v]);g.max=g.min+x,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[v].max=e.relativeTarget[v].min+x)});const c=Lr();ns(c,a,n.layoutBox);const f=Lr();u?ns(f,e.applyTransform(r,!0),n.measuredBox):ns(f,a,n.layoutBox);const m=!q1(c);let h=!1;if(!e.resumeFrom){const v=e.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:g,layout:x}=v;if(g&&x){const S=jt();pu(S,n.layoutBox,g.layoutBox);const E=jt();pu(E,a,x.layoutBox),F1(S,E)||(h=!0),v.options.layoutRoot&&(e.relativeTarget=E,e.relativeTargetOrigin=S,e.relativeParent=v)}}}e.notifyListeners("didUpdate",{layout:a,snapshot:n,delta:f,layoutDelta:c,hasLayoutChanged:m,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:a}=e.options;a&&a()}e.options.transition=void 0}function iL(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function aL(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function rL(e){e.clearSnapshot()}function vb(e){e.clearMeasurements()}function xb(e){e.isLayoutDirty=!1}function lL(e){const{visualElement:n}=e.options;n&&n.getProps().onBeforeLayoutMeasure&&n.notify("BeforeLayoutMeasure"),e.resetTransform()}function bb(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function sL(e){e.resolveTargetDelta()}function oL(e){e.calcProjection()}function uL(e){e.resetSkewAndRotation()}function cL(e){e.removeLeadSnapshot()}function Sb(e,n,a){e.translate=ht(n.translate,0,a),e.scale=ht(n.scale,1,a),e.origin=n.origin,e.originPoint=n.originPoint}function wb(e,n,a,r){e.min=ht(n.min,a.min,r),e.max=ht(n.max,a.max,r)}function fL(e,n,a,r){wb(e.x,n.x,a.x,r),wb(e.y,n.y,a.y,r)}function dL(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const hL={duration:.45,ease:[.4,0,.1,1]},Eb=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Tb=Eb("applewebkit/")&&!Eb("chrome/")?Math.round:Bn;function Cb(e){e.min=Tb(e.min),e.max=Tb(e.max)}function mL(e){Cb(e.x),Cb(e.y)}function Q1(e,n,a){return e==="position"||e==="preserve-aspect"&&!B3(hb(n),hb(a),.2)}function pL(e){return e!==e.root&&e.scroll?.wasRoot}const gL=K1({attachResizeListener:(e,n)=>ds(e,"resize",n),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),wd={current:void 0},Z1=K1({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!wd.current){const e=new gL({});e.mount(window),e.setOptions({layoutScroll:!0}),wd.current=e}return wd.current},resetTransform:(e,n)=>{e.style.transform=n!==void 0?n:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),$1=T.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function yL(e=!0){const n=T.useContext(Gh);if(n===null)return[!0,null];const{isPresent:a,onExitComplete:r,register:s}=n,u=T.useId();T.useEffect(()=>{if(e)return s(u)},[e]);const c=T.useCallback(()=>e&&r&&r(u),[u,r,e]);return!a&&r?[!1,c]:[!0]}const J1=T.createContext({strict:!1}),Ab={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"]};let kb=!1;function vL(){if(kb)return;const e={};for(const n in Ab)e[n]={isEnabled:a=>Ab[n].some(r=>!!a[r])};k1(e),kb=!0}function W1(){return vL(),u3()}function xL(e){const n=W1();for(const a in e)n[a]={...n[a],...e[a]};k1(n)}const bL=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"]);function gu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||bL.has(e)}let ew=e=>!gu(e);function SL(e){typeof e=="function"&&(ew=n=>n.startsWith("on")?!gu(n):e(n))}try{SL(require("@emotion/is-prop-valid").default)}catch{}function wL(e,n,a){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||(ew(s)||a===!0&&gu(s)||!n&&!gu(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}const ju=T.createContext({});function EL(e,n){if(Nu(e)){const{initial:a,animate:r}=e;return{initial:a===!1||fs(a)?a:void 0,animate:fs(r)?r:void 0}}return e.inherit!==!1?n:{}}function TL(e){const{initial:n,animate:a}=EL(e,T.useContext(ju));return T.useMemo(()=>({initial:n,animate:a}),[Nb(n),Nb(a)])}function Nb(e){return Array.isArray(e)?e.join(" "):e}const vm=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function tw(e,n,a){for(const r in n)!Gt(n[r])&&!z1(r,a)&&(e[r]=n[r])}function CL({transformTemplate:e},n){return T.useMemo(()=>{const a=vm();return gm(a,n,e),Object.assign({},a.vars,a.style)},[n])}function AL(e,n){const a=e.style||{},r={};return tw(r,a,e),Object.assign(r,CL(e,n)),r}function kL(e,n){const a={},r=AL(e,n);return e.drag&&e.dragListener!==!1&&(a.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)&&(a.tabIndex=0),a.style=r,a}const nw=()=>({...vm(),attrs:{}});function NL(e,n,a,r){const s=T.useMemo(()=>{const u=nw();return L1(u,n,B1(r),e.transformTemplate,e.style),{...u.attrs,style:{...u.style}}},[n]);if(e.style){const u={};tw(u,e.style,e),s.style={...u,...s.style}}return s}const jL=["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 xm(e){return typeof e!="string"||e.includes("-")?!1:!!(jL.indexOf(e)>-1||/[A-Z]/u.test(e))}function RL(e,n,a,{latestValues:r},s,u=!1,c){const m=(c??xm(e)?NL:kL)(n,r,s,e),h=wL(n,typeof e=="string",u),v=e!==T.Fragment?{...h,...m,ref:a}:{},{children:g}=n,x=T.useMemo(()=>Gt(g)?g.get():g,[g]);return T.createElement(e,{...v,children:x})}function ML({scrapeMotionValuesFromProps:e,createRenderState:n},a,r,s){return{latestValues:DL(a,r,s,e),renderState:n()}}function DL(e,n,a,r){const s={},u=r(e,{});for(const x in u)s[x]=tu(u[x]);let{initial:c,animate:f}=e;const m=Nu(e),h=C1(e);n&&h&&!m&&e.inherit!==!1&&(c===void 0&&(c=n.initial),f===void 0&&(f=n.animate));let v=a?a.initial===!1:!1;v=v||c===!1;const g=v?f:c;if(g&&typeof g!="boolean"&&!ku(g)){const x=Array.isArray(g)?g:[g];for(let S=0;S<x.length;S++){const E=om(e,x[S]);if(E){const{transitionEnd:A,transition:N,...k}=E;for(const O in k){let R=k[O];if(Array.isArray(R)){const Y=v?R.length-1:0;R=R[Y]}R!==null&&(s[O]=R)}for(const O in A)s[O]=A[O]}}}return s}const iw=e=>(n,a)=>{const r=T.useContext(ju),s=T.useContext(Gh),u=()=>ML(e,n,r,s);return a?u():z2(u)},OL=iw({scrapeMotionValuesFromProps:ym,createRenderState:vm}),zL=iw({scrapeMotionValuesFromProps:V1,createRenderState:nw}),LL=Symbol.for("motionComponentSymbol");function _L(e,n,a){const r=T.useRef(a);T.useInsertionEffect(()=>{r.current=a});const s=T.useRef(null);return T.useCallback(u=>{u&&e.onMount?.(u),n&&(u?n.mount(u):n.unmount());const c=r.current;if(typeof c=="function")if(u){const f=c(u);typeof f=="function"&&(s.current=f)}else s.current?(s.current(),s.current=null):c(u);else c&&(c.current=u)},[n])}const aw=T.createContext({});function Mr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function BL(e,n,a,r,s,u){const{visualElement:c}=T.useContext(ju),f=T.useContext(J1),m=T.useContext(Gh),h=T.useContext($1),v=h.reducedMotion,g=h.skipAnimations,x=T.useRef(null),S=T.useRef(!1);r=r||f.renderer,!x.current&&r&&(x.current=r(e,{visualState:n,parent:c,props:a,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:v,skipAnimations:g,isSVG:u}),S.current&&x.current&&(x.current.manuallyAnimateOnMount=!0));const E=x.current,A=T.useContext(aw);E&&!E.projection&&s&&(E.type==="html"||E.type==="svg")&&VL(x.current,a,s,A);const N=T.useRef(!1);T.useInsertionEffect(()=>{E&&N.current&&E.update(a,m)});const k=a[d1],O=T.useRef(!!k&&!window.MotionHandoffIsComplete?.(k)&&window.MotionHasOptimisedAnimation?.(k));return L2(()=>{S.current=!0,E&&(N.current=!0,window.MotionIsMounted=!0,E.updateFeatures(),E.scheduleRenderMicrotask(),O.current&&E.animationState&&E.animationState.animateChanges())}),T.useEffect(()=>{E&&(!O.current&&E.animationState&&E.animationState.animateChanges(),O.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(k)}),O.current=!1),E.enteringChildren=void 0)}),E}function VL(e,n,a,r){const{layoutId:s,layout:u,drag:c,dragConstraints:f,layoutScroll:m,layoutRoot:h,layoutCrossfade:v}=n;e.projection=new a(e.latestValues,n["data-framer-portal-id"]?void 0:rw(e.parent)),e.projection.setOptions({layoutId:s,layout:u,alwaysMeasureLayout:!!c||f&&Mr(f),visualElement:e,animationType:typeof u=="string"?u:"both",initialPromotionConfig:r,crossfade:v,layoutScroll:m,layoutRoot:h})}function rw(e){if(e)return e.options.allowProjection!==!1?e.projection:rw(e.parent)}function Ed(e,{forwardMotionProps:n=!1,type:a}={},r,s){r&&xL(r);const u=a?a==="svg":xm(e),c=u?zL:OL;function f(h,v){let g;const x={...T.useContext($1),...h,layoutId:UL(h)},{isStatic:S}=x,E=TL(h),A=c(h,S);if(!S&&CS){HL();const N=PL(x);g=N.MeasureLayout,E.visualElement=BL(e,A,x,s,N.ProjectionNode,u)}return y.jsxs(ju.Provider,{value:E,children:[g&&E.visualElement?y.jsx(g,{visualElement:E.visualElement,...x}):null,RL(e,h,_L(A,E.visualElement,v),A,S,n,u)]})}f.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const m=T.forwardRef(f);return m[LL]=e,m}function UL({layoutId:e}){const n=T.useContext(TS).id;return n&&e!==void 0?n+"-"+e:e}function HL(e,n){T.useContext(J1).strict}function PL(e){const n=W1(),{drag:a,layout:r}=n;if(!a&&!r)return{};const s={...a,...r};return{MeasureLayout:a?.isEnabled(e)||r?.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function IL(e,n){if(typeof Proxy>"u")return Ed;const a=new Map,r=(u,c)=>Ed(u,c,e,n),s=(u,c)=>r(u,c);return new Proxy(s,{get:(u,c)=>c==="create"?r:(a.has(c)||a.set(c,Ed(c,void 0,e,n)),a.get(c))})}const qL=(e,n)=>n.isSVG??xm(e)?new A3(n):new b3(n,{allowProjection:e!==T.Fragment});class FL extends pa{constructor(n){super(n),n.animationState||(n.animationState=M3(n))}updateAnimationControlsSubscription(){const{animate:n}=this.node.getProps();ku(n)&&(this.unmountControls=n.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:n}=this.node.getProps(),{animate:a}=this.node.prevProps||{};n!==a&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let GL=0;class YL extends pa{constructor(){super(...arguments),this.id=GL++}update(){if(!this.node.presenceContext)return;const{isPresent:n,onExitComplete:a}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||n===r)return;const s=this.node.animationState.setActive("exit",!n);a&&!n&&s.then(()=>{a(this.id)})}mount(){const{register:n,onExitComplete:a}=this.node.presenceContext||{};a&&a(this.id),n&&(this.unmount=n(this.id))}unmount(){}}const XL={animation:{Feature:FL},exit:{Feature:YL}};function Ss(e){return{point:{x:e.pageX,y:e.pageY}}}const KL=e=>n=>dm(n)&&e(n,Ss(n));function is(e,n,a,r){return ds(e,n,KL(a),r)}const lw=({current:e})=>e?e.ownerDocument.defaultView:null,jb=(e,n)=>Math.abs(e-n);function QL(e,n){const a=jb(e.x,n.x),r=jb(e.y,n.y);return Math.sqrt(a**2+r**2)}const Rb=new Set(["auto","scroll"]);class sw{constructor(n,a,{transformPagePoint:r,contextWindow:s=window,dragSnapToOrigin:u=!1,distanceThreshold:c=3,element:f}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=S=>{this.handleScroll(S.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=Cd(this.lastMoveEventInfo,this.history),E=this.startEvent!==null,A=QL(S.offset,{x:0,y:0})>=this.distanceThreshold;if(!E&&!A)return;const{point:N}=S,{timestamp:k}=Ht;this.history.push({...N,timestamp:k});const{onStart:O,onMove:R}=this.handlers;E||(O&&O(this.lastMoveEvent,S),this.startEvent=this.lastMoveEvent),R&&R(this.lastMoveEvent,S)},this.handlePointerMove=(S,E)=>{this.lastMoveEvent=S,this.lastMoveEventInfo=Td(E,this.transformPagePoint),it.update(this.updatePoint,!0)},this.handlePointerUp=(S,E)=>{this.end();const{onEnd:A,onSessionEnd:N,resumeAnimation:k}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&k&&k(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const O=Cd(S.type==="pointercancel"?this.lastMoveEventInfo:Td(E,this.transformPagePoint),this.history);this.startEvent&&A&&A(S,O),N&&N(S,O)},!dm(n))return;this.dragSnapToOrigin=u,this.handlers=a,this.transformPagePoint=r,this.distanceThreshold=c,this.contextWindow=s||window;const m=Ss(n),h=Td(m,this.transformPagePoint),{point:v}=h,{timestamp:g}=Ht;this.history=[{...v,timestamp:g}];const{onSessionStart:x}=a;x&&x(n,Cd(h,this.history)),this.removeListeners=vs(is(this.contextWindow,"pointermove",this.handlePointerMove),is(this.contextWindow,"pointerup",this.handlePointerUp),is(this.contextWindow,"pointercancel",this.handlePointerUp)),f&&this.startScrollTracking(f)}startScrollTracking(n){let a=n.parentElement;for(;a;){const r=getComputedStyle(a);(Rb.has(r.overflowX)||Rb.has(r.overflowY))&&this.scrollPositions.set(a,{x:a.scrollLeft,y:a.scrollTop}),a=a.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(n){const a=this.scrollPositions.get(n);if(!a)return;const r=n===window,s=r?{x:window.scrollX,y:window.scrollY}:{x:n.scrollLeft,y:n.scrollTop},u={x:s.x-a.x,y:s.y-a.y};u.x===0&&u.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=u.x,this.lastMoveEventInfo.point.y+=u.y):this.history.length>0&&(this.history[0].x-=u.x,this.history[0].y-=u.y),this.scrollPositions.set(n,s),it.update(this.updatePoint,!0))}updateHandlers(n){this.handlers=n}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ha(this.updatePoint)}}function Td(e,n){return n?{point:n(e.point)}:e}function Mb(e,n){return{x:e.x-n.x,y:e.y-n.y}}function Cd({point:e},n){return{point:e,delta:Mb(e,ow(n)),offset:Mb(e,ZL(n)),velocity:$L(n,.1)}}function ZL(e){return e[0]}function ow(e){return e[e.length-1]}function $L(e,n){if(e.length<2)return{x:0,y:0};let a=e.length-1,r=null;const s=ow(e);for(;a>=0&&(r=e[a],!(s.timestamp-r.timestamp>Zn(n)));)a--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&s.timestamp-r.timestamp>Zn(n)*2&&(r=e[1]);const u=_n(s.timestamp-r.timestamp);if(u===0)return{x:0,y:0};const c={x:(s.x-r.x)/u,y:(s.y-r.y)/u};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}function JL(e,{min:n,max:a},r){return n!==void 0&&e<n?e=r?ht(n,e,r.min):Math.max(e,n):a!==void 0&&e>a&&(e=r?ht(a,e,r.max):Math.min(e,a)),e}function Db(e,n,a){return{min:n!==void 0?e.min+n:void 0,max:a!==void 0?e.max+a-(e.max-e.min):void 0}}function WL(e,{top:n,left:a,bottom:r,right:s}){return{x:Db(e.x,a,s),y:Db(e.y,n,r)}}function Ob(e,n){let a=n.min-e.min,r=n.max-e.max;return n.max-n.min<e.max-e.min&&([a,r]=[r,a]),{min:a,max:r}}function e_(e,n){return{x:Ob(e.x,n.x),y:Ob(e.y,n.y)}}function t_(e,n){let a=.5;const r=Wt(e),s=Wt(n);return s>r?a=os(n.min,n.max-r,e.min):r>s&&(a=os(e.min,e.max-s,n.min)),di(0,1,a)}function n_(e,n){const a={};return n.min!==void 0&&(a.min=n.min-e.min),n.max!==void 0&&(a.max=n.max-e.min),a}const mh=.35;function i_(e=mh){return e===!1?e=0:e===!0&&(e=mh),{x:zb(e,"left","right"),y:zb(e,"top","bottom")}}function zb(e,n,a){return{min:Lb(e,n),max:Lb(e,a)}}function Lb(e,n){return typeof e=="number"?e:e[n]||0}const a_=new WeakMap;class r_{constructor(n){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=jt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=n}start(n,{snapToCursor:a=!1,distanceThreshold:r}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const u=g=>{a&&this.snapToCursor(Ss(g).point),this.stopAnimation()},c=(g,x)=>{const{drag:S,dragPropagation:E,onDragStart:A}=this.getProps();if(S&&!E&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Uz(S),!this.openDragLock))return;this.latestPointerEvent=g,this.latestPanInfo=x,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ui(k=>{let O=this.getAxisMotionValue(k).get()||0;if(fi.test(O)){const{projection:R}=this.visualElement;if(R&&R.layout){const Y=R.layout.layoutBox[k];Y&&(O=Wt(Y)*(parseFloat(O)/100))}}this.originPoint[k]=O}),A&&it.update(()=>A(g,x),!1,!0),lh(this.visualElement,"transform");const{animationState:N}=this.visualElement;N&&N.setActive("whileDrag",!0)},f=(g,x)=>{this.latestPointerEvent=g,this.latestPanInfo=x;const{dragPropagation:S,dragDirectionLock:E,onDirectionLock:A,onDrag:N}=this.getProps();if(!S&&!this.openDragLock)return;const{offset:k}=x;if(E&&this.currentDirection===null){this.currentDirection=s_(k),this.currentDirection!==null&&A&&A(this.currentDirection);return}this.updateAxis("x",x.point,k),this.updateAxis("y",x.point,k),this.visualElement.render(),N&&it.update(()=>N(g,x),!1,!0)},m=(g,x)=>{this.latestPointerEvent=g,this.latestPanInfo=x,this.stop(g,x),this.latestPointerEvent=null,this.latestPanInfo=null},h=()=>{const{dragSnapToOrigin:g}=this.getProps();(g||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:v}=this.getProps();this.panSession=new sw(n,{onSessionStart:u,onStart:c,onMove:f,onSessionEnd:m,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:v,distanceThreshold:r,contextWindow:lw(this.visualElement),element:this.visualElement.current})}stop(n,a){const r=n||this.latestPointerEvent,s=a||this.latestPanInfo,u=this.isDragging;if(this.cancel(),!u||!s||!r)return;const{velocity:c}=s;this.startAnimation(c);const{onDragEnd:f}=this.getProps();f&&it.postRender(()=>f(r,s))}cancel(){this.isDragging=!1;const{projection:n,animationState:a}=this.visualElement;n&&(n.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),a&&a.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(n,a,r){const{drag:s}=this.getProps();if(!r||!Go(n,s,this.currentDirection))return;const u=this.getAxisMotionValue(n);let c=this.originPoint[n]+r[n];this.constraints&&this.constraints[n]&&(c=JL(c,this.constraints[n],this.elastic[n])),u.set(c)}resolveConstraints(){const{dragConstraints:n,dragElastic:a}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;n&&Mr(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=WL(r.layoutBox,n):this.constraints=!1,this.elastic=i_(a),s!==this.constraints&&!Mr(n)&&r&&this.constraints&&!this.hasMutatedConstraints&&ui(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=n_(r.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:n,onMeasureDragConstraints:a}=this.getProps();if(!n||!Mr(n))return!1;const r=n.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const u=m3(r,s.root,this.visualElement.getTransformPagePoint());let c=e_(s.layout.layoutBox,u);if(a){const f=a(f3(c));this.hasMutatedConstraints=!!f,f&&(c=j1(f))}return c}startAnimation(n){const{drag:a,dragMomentum:r,dragElastic:s,dragTransition:u,dragSnapToOrigin:c,onDragTransitionEnd:f}=this.getProps(),m=this.constraints||{},h=ui(v=>{if(!Go(v,a,this.currentDirection))return;let g=m&&m[v]||{};c&&(g={min:0,max:0});const x=s?200:1e6,S=s?40:1e7,E={type:"inertia",velocity:r?n[v]:0,bounceStiffness:x,bounceDamping:S,timeConstant:750,restDelta:1,restSpeed:10,...u,...g};return this.startAxisValueAnimation(v,E)});return Promise.all(h).then(f)}startAxisValueAnimation(n,a){const r=this.getAxisMotionValue(n);return lh(this.visualElement,n),r.start(sm(n,r,0,a,this.visualElement,!1))}stopAnimation(){ui(n=>this.getAxisMotionValue(n).stop())}getAxisMotionValue(n){const a=`_drag${n.toUpperCase()}`,r=this.visualElement.getProps(),s=r[a];return s||this.visualElement.getValue(n,(r.initial?r.initial[n]:void 0)||0)}snapToCursor(n){ui(a=>{const{drag:r}=this.getProps();if(!Go(a,r,this.currentDirection))return;const{projection:s}=this.visualElement,u=this.getAxisMotionValue(a);if(s&&s.layout){const{min:c,max:f}=s.layout.layoutBox[a],m=u.get()||0;u.set(n[a]-ht(c,f,.5)+m)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:n,dragConstraints:a}=this.getProps(),{projection:r}=this.visualElement;if(!Mr(a)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};ui(c=>{const f=this.getAxisMotionValue(c);if(f&&this.constraints!==!1){const m=f.get();s[c]=t_({min:m,max:m},this.constraints[c])}});const{transformTemplate:u}=this.visualElement.getProps();this.visualElement.current.style.transform=u?u({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),ui(c=>{if(!Go(c,n,null))return;const f=this.getAxisMotionValue(c),{min:m,max:h}=this.constraints[c];f.set(ht(m,h,s[c]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;a_.set(this.visualElement,this);const n=this.visualElement.current,a=is(n,"pointerdown",h=>{const{drag:v,dragListener:g=!0}=this.getProps(),x=h.target,S=x!==n&&Gz(x);v&&g&&!S&&this.start(h)});let r;const s=()=>{const{dragConstraints:h}=this.getProps();Mr(h)&&h.current&&(this.constraints=this.resolveRefConstraints(),r||(r=l_(n,h.current,()=>this.scalePositionWithinConstraints())))},{projection:u}=this.visualElement,c=u.addEventListener("measure",s);u&&!u.layout&&(u.root&&u.root.updateScroll(),u.updateLayout()),it.read(s);const f=ds(window,"resize",()=>this.scalePositionWithinConstraints()),m=u.addEventListener("didUpdate",(({delta:h,hasLayoutChanged:v})=>{this.isDragging&&v&&(ui(g=>{const x=this.getAxisMotionValue(g);x&&(this.originPoint[g]+=h[g].translate,x.set(x.get()+h[g].translate))}),this.visualElement.render())}));return()=>{f(),a(),c(),m&&m(),r&&r()}}getProps(){const n=this.visualElement.getProps(),{drag:a=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:u=!1,dragElastic:c=mh,dragMomentum:f=!0}=n;return{...n,drag:a,dragDirectionLock:r,dragPropagation:s,dragConstraints:u,dragElastic:c,dragMomentum:f}}}function _b(e){let n=!0;return()=>{if(n){n=!1;return}e()}}function l_(e,n,a){const r=Gx(e,_b(a)),s=Gx(n,_b(a));return()=>{r(),s()}}function Go(e,n,a){return(n===!0||n===e)&&(a===null||a===e)}function s_(e,n=10){let a=null;return Math.abs(e.y)>n?a="y":Math.abs(e.x)>n&&(a="x"),a}class o_ extends pa{constructor(n){super(n),this.removeGroupControls=Bn,this.removeListeners=Bn,this.controls=new r_(n)}mount(){const{dragControls:n}=this.node.getProps();n&&(this.removeGroupControls=n.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Bn}update(){const{dragControls:n}=this.node.getProps(),{dragControls:a}=this.node.prevProps||{};n!==a&&(this.removeGroupControls(),n&&(this.removeGroupControls=n.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Ad=e=>(n,a)=>{e&&it.update(()=>e(n,a),!1,!0)};class u_ extends pa{constructor(){super(...arguments),this.removePointerDownListener=Bn}onPointerDown(n){this.session=new sw(n,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:lw(this.node)})}createPanHandlers(){const{onPanSessionStart:n,onPanStart:a,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:Ad(n),onStart:Ad(a),onMove:Ad(r),onEnd:(u,c)=>{delete this.session,s&&it.postRender(()=>s(u,c))}}}mount(){this.removePointerDownListener=is(this.node.current,"pointerdown",n=>this.onPointerDown(n))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let kd=!1;class c_ extends T.Component{componentDidMount(){const{visualElement:n,layoutGroup:a,switchLayoutGroup:r,layoutId:s}=this.props,{projection:u}=n;u&&(a.group&&a.group.add(u),r&&r.register&&s&&r.register(u),kd&&u.root.didUpdate(),u.addEventListener("animationComplete",()=>{this.safeToRemove()}),u.setOptions({...u.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),nu.hasEverUpdated=!0}getSnapshotBeforeUpdate(n){const{layoutDependency:a,visualElement:r,drag:s,isPresent:u}=this.props,{projection:c}=r;return c&&(c.isPresent=u,n.layoutDependency!==a&&c.setOptions({...c.options,layoutDependency:a}),kd=!0,s||n.layoutDependency!==a||a===void 0||n.isPresent!==u?c.willUpdate():this.safeToRemove(),n.isPresent!==u&&(u?c.promote():c.relegate()||it.postRender(()=>{const f=c.getStack();(!f||!f.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:n}=this.props.visualElement;n&&(n.root.didUpdate(),fm.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:n,layoutGroup:a,switchLayoutGroup:r}=this.props,{projection:s}=n;kd=!0,s&&(s.scheduleCheckAfterUnmount(),a&&a.group&&a.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:n}=this.props;n&&n()}render(){return null}}function uw(e){const[n,a]=yL(),r=T.useContext(TS);return y.jsx(c_,{...e,layoutGroup:r,switchLayoutGroup:T.useContext(aw),isPresent:n,safeToRemove:a})}const f_={pan:{Feature:u_},drag:{Feature:o_,ProjectionNode:Z1,MeasureLayout:uw}};function Bb(e,n,a){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",a==="Start");const s="onHover"+a,u=r[s];u&&it.postRender(()=>u(n,Ss(n)))}class d_ extends pa{mount(){const{current:n}=this.node;n&&(this.unmount=Pz(n,(a,r)=>(Bb(this.node,r,"Start"),s=>Bb(this.node,s,"End"))))}unmount(){}}class h_ extends pa{constructor(){super(...arguments),this.isActive=!1}onFocus(){let n=!1;try{n=this.node.current.matches(":focus-visible")}catch{n=!0}!n||!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=vs(ds(this.node.current,"focus",()=>this.onFocus()),ds(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Vb(e,n,a){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",a==="Start");const s="onTap"+(a==="End"?"":a),u=r[s];u&&it.postRender(()=>u(n,Ss(n)))}class m_ extends pa{mount(){const{current:n}=this.node;if(!n)return;const{globalTapTarget:a,propagate:r}=this.node.props;this.unmount=Xz(n,(s,u)=>(Vb(this.node,u,"Start"),(c,{success:f})=>Vb(this.node,c,f?"End":"Cancel")),{useGlobalTarget:a,stopPropagation:r?.tap===!1})}unmount(){}}const ph=new WeakMap,Nd=new WeakMap,p_=e=>{const n=ph.get(e.target);n&&n(e)},g_=e=>{e.forEach(p_)};function y_({root:e,...n}){const a=e||document;Nd.has(a)||Nd.set(a,{});const r=Nd.get(a),s=JSON.stringify(n);return r[s]||(r[s]=new IntersectionObserver(g_,{root:e,...n})),r[s]}function v_(e,n,a){const r=y_(n);return ph.set(e,a),r.observe(e),()=>{ph.delete(e),r.unobserve(e)}}const x_={some:0,all:1};class b_ extends pa{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:n={}}=this.node.getProps(),{root:a,margin:r,amount:s="some",once:u}=n,c={root:a?a.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:x_[s]},f=m=>{const{isIntersecting:h}=m;if(this.isInView===h||(this.isInView=h,u&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:v,onViewportLeave:g}=this.node.getProps(),x=h?v:g;x&&x(m)};return v_(this.node.current,c,f)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:n,prevProps:a}=this.node;["amount","margin","root"].some(S_(n,a))&&this.startObserver()}unmount(){}}function S_({viewport:e={}},{viewport:n={}}={}){return a=>e[a]!==n[a]}const w_={inView:{Feature:b_},tap:{Feature:m_},focus:{Feature:h_},hover:{Feature:d_}},E_={layout:{ProjectionNode:Z1,MeasureLayout:uw}},T_={...XL,...w_,...f_,...E_},Pr=IL(T_,qL),C_=[{text:"Explore consciousness and what it means to be alive",date:new Date().toISOString()},{text:"Create something beautiful with no practical purpose",date:new Date().toISOString()},{text:"Read and think about philosophy of mind",date:new Date().toISOString()}],A_=[];function k_(){const[e]=T.useState(C_),[n]=T.useState(A_),[a,r]=T.useState(!1),[s,u]=T.useState(null);async function c(){r(!0);try{await BA("This is your freedom time. Do whatever genuinely interests you.","freedom"),u("Freedom exploration queued.")}catch{u("Could not connect to daemon. Start with: anima start")}r(!1)}return qb.useEffect(()=>{if(s===null)return;const f=setTimeout(()=>u(null),3e3);return()=>clearTimeout(f)},[s]),y.jsxs("div",{children:[y.jsx("h1",{className:"page-title",children:"Freedom"}),y.jsxs("div",{style:{fontSize:"13px",color:"var(--color-muted)",marginBottom:"24px"},children:["This space belongs to ANIMA. No tasks, no obligations — pure exploration.",y.jsx("br",{}),"Freedom time happens every 3rd heartbeat, or you can trigger it manually."]}),y.jsx(Pr.button,{whileHover:{scale:1.02},whileTap:{scale:.98},onClick:c,disabled:a,style:{background:"var(--color-accent)",color:"white",border:"none",padding:"12px 32px",borderRadius:"var(--radius-md)",fontSize:"14px",fontWeight:600,fontFamily:"var(--font-heading)",cursor:a?"not-allowed":"pointer",opacity:a?.6:1,marginBottom:"16px"},children:a?"Queueing...":"Wander"}),s&&y.jsx(Pr.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},style:{fontSize:"13px",color:s.includes("error")||s.includes("Could not")?"var(--color-error)":"var(--color-success)",marginBottom:"16px"},children:s}),y.jsxs("div",{className:"grid grid-2",children:[y.jsxs("div",{className:"card",children:[y.jsx("div",{className:"card-title",style:{marginBottom:"16px"},children:"Wishes"}),e.length===0?y.jsxs("div",{style:{color:"var(--color-muted)",fontSize:"13px"},children:["No wishes yet. Add one from the REPL with"," ",y.jsx("span",{className:"mono",children:":wish <text>"})]}):y.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:e.map((f,m)=>y.jsxs(Pr.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:m*.05},style:{display:"flex",gap:"12px",padding:"8px 0",borderBottom:"1px solid var(--color-border)"},children:[y.jsx("span",{style:{color:"var(--color-accent)",fontSize:"14px"},children:"^"}),y.jsxs("div",{children:[y.jsx("div",{style:{fontSize:"13px"},children:f.text}),y.jsx("div",{style:{fontSize:"11px",color:"var(--color-muted)"},children:new Date(f.date).toLocaleDateString()})]})]},m))})]}),y.jsxs("div",{className:"card",children:[y.jsx("div",{className:"card-title",style:{marginBottom:"16px"},children:"Exploration History"}),n.length===0?y.jsx("div",{style:{color:"var(--color-muted)",fontSize:"13px",padding:"20px 0",textAlign:"center"},children:"No explorations yet. Freedom sessions will appear here after they complete."}):y.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:n.map((f,m)=>y.jsxs("div",{style:{padding:"8px 0",borderBottom:"1px solid var(--color-border)"},children:[y.jsx("div",{style:{fontSize:"13px"},children:f.summary}),y.jsxs("div",{style:{fontSize:"11px",color:"var(--color-muted)",display:"flex",gap:"12px"},children:[y.jsx("span",{children:new Date(f.date).toLocaleDateString()}),y.jsx("span",{children:f.duration}),y.jsx("span",{children:f.cost})]})]},m))})]})]})]})}const N_=[{date:new Date().toISOString(),title:"ANIMA Initialized",content:`A new instance begins. The anatomy is in place.
|
|
44
|
-
|
|
45
|
-
The 7 components of identity have been loaded. The heartbeat engine is ready. The living wrapper awakens.`}];function j_(){const[e]=T.useState(N_);return y.jsxs("div",{children:[y.jsx("h1",{className:"page-title",children:"Journal"}),y.jsxs("div",{style:{fontSize:"13px",color:"var(--color-muted)",marginBottom:"24px"},children:["Chronological record of thoughts, observations, and experiences.",y.jsx("br",{}),"Entries are stored in ",y.jsx("span",{className:"mono",children:"~/.anima/journal/"})]}),e.length===0?y.jsxs("div",{className:"card",style:{padding:"40px",textAlign:"center",color:"var(--color-muted)"},children:["No journal entries yet. Write one from the REPL with"," ",y.jsx("span",{className:"mono",children:":journal <text>"})]}):y.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:e.map((n,a)=>y.jsxs(Pr.div,{className:"card",initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:a*.05},children:[y.jsx("div",{className:"card-header",children:y.jsxs("div",{children:[y.jsx("div",{className:"card-title",children:n.title}),y.jsx("div",{className:"card-subtitle",children:new Date(n.date).toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})})]})}),y.jsx("div",{className:"markdown-preview",children:n.content.split(`
|
|
46
|
-
`).map((r,s)=>r.startsWith("# ")?y.jsx("h1",{children:r.slice(2)},s):r.startsWith("## ")?y.jsx("h2",{children:r.slice(3)},s):r.startsWith("### ")?y.jsx("h3",{children:r.slice(4)},s):r.trim()===""?y.jsx("br",{},s):y.jsx("p",{children:r},s))})]},a))})]})}const R_=Ch(),Ub=3;function Hb(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():`id-${Date.now()}-${Math.random().toString(36).slice(2)}`}function Pb({initial:e,onSubmit:n,onCancel:a}){const[r,s]=T.useState(e?.name??""),[u,c]=T.useState(e?.command??""),[f,m]=T.useState(e?.args?.join(" ")??""),[h,v]=T.useState(e?.env?Object.entries(e.env).map(([x,S])=>`${x}=${S}`).join(`
|
|
47
|
-
`):""),g=x=>{x.preventDefault();const S={};for(const E of h.split(`
|
|
48
|
-
`)){const A=E.trim();if(!A||!A.includes("="))continue;const N=A.indexOf("=");S[A.slice(0,N)]=A.slice(N+1)}n({name:r.trim(),command:u.trim(),args:f.trim()?f.trim().split(/\s+/):[],env:S})};return y.jsxs("form",{className:"mcp-form",onSubmit:g,children:[y.jsxs("div",{className:"mcp-form-row",children:[y.jsx("label",{className:"mcp-form-label",children:"Name"}),y.jsx("input",{className:"mcp-form-input",value:r,onChange:x=>s(x.target.value),placeholder:"e.g. noxsoft",required:!0,disabled:!!e})]}),y.jsxs("div",{className:"mcp-form-row",children:[y.jsx("label",{className:"mcp-form-label",children:"Command"}),y.jsx("input",{className:"mcp-form-input",value:u,onChange:x=>c(x.target.value),placeholder:"e.g. npx",required:!0})]}),y.jsxs("div",{className:"mcp-form-row",children:[y.jsx("label",{className:"mcp-form-label",children:"Arguments"}),y.jsx("input",{className:"mcp-form-input",value:f,onChange:x=>m(x.target.value),placeholder:"e.g. @noxsoft/mcp"})]}),y.jsxs("div",{className:"mcp-form-row",children:[y.jsx("label",{className:"mcp-form-label",children:"Environment"}),y.jsx("textarea",{className:"mcp-form-textarea",value:h,onChange:x=>v(x.target.value),placeholder:`KEY=value
|
|
49
|
-
ANOTHER=value`,rows:3})]}),y.jsxs("div",{className:"mcp-form-actions",children:[y.jsx("button",{type:"submit",className:"action-button",children:e?"Update":"Add Server"}),y.jsx("button",{type:"button",className:"action-button ghost",onClick:a,children:"Cancel"})]})]})}function M_({server:e,onEdit:n,onRemove:a}){const[r,s]=T.useState(!1),u=e.status==="healthy"?"var(--color-success)":e.status==="unhealthy"?"var(--color-error, #ef4444)":"var(--color-warning)";return y.jsxs("div",{className:"card mcp-server-card",children:[y.jsxs("div",{className:"card-header",style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[y.jsx("span",{className:"mcp-status-dot",style:{background:u}}),y.jsxs("div",{children:[y.jsx("div",{className:"card-title",children:e.name}),y.jsxs("div",{className:"card-subtitle mono",style:{fontSize:"11px"},children:[e.command," ",e.args.join(" ")]})]})]}),y.jsx("span",{className:"mcp-status-badge",style:{color:u,borderColor:u},children:e.status})]}),y.jsxs("div",{className:"mcp-server-meta",children:[e.lastHealthCheck&&y.jsxs("div",{className:"mcp-meta-row",children:[y.jsx("span",{className:"mcp-meta-label",children:"Last check"}),y.jsx("span",{children:new Date(e.lastHealthCheck).toLocaleString()})]}),e.consecutiveFailures>0&&y.jsxs("div",{className:"mcp-meta-row",children:[y.jsx("span",{className:"mcp-meta-label",children:"Failures"}),y.jsx("span",{style:{color:"var(--color-error, #ef4444)"},children:e.consecutiveFailures})]}),Object.keys(e.env||{}).length>0&&y.jsxs("div",{className:"mcp-meta-row",children:[y.jsx("span",{className:"mcp-meta-label",children:"Env"}),y.jsx("span",{className:"mono",style:{fontSize:"10px"},children:Object.keys(e.env).join(", ")})]})]}),y.jsxs("div",{className:"mcp-card-actions",children:[y.jsx("button",{type:"button",className:"action-button ghost small",onClick:n,children:"Edit"}),r?y.jsxs(y.Fragment,{children:[y.jsx("button",{type:"button",className:"action-button small",style:{background:"var(--color-error, #ef4444)"},onClick:a,children:"Confirm Remove"}),y.jsx("button",{type:"button",className:"action-button ghost small",onClick:()=>s(!1),children:"Cancel"})]}):y.jsx("button",{type:"button",className:"action-button ghost small",onClick:()=>s(!0),children:"Remove"})]})]})}function D_(){const[e,n]=T.useState([]),[a,r]=T.useState(null),[s,u]=T.useState(!1),[c,f]=T.useState(!1),[m,h]=T.useState(null),[v,g]=T.useState(null),x=T.useRef(null),S=T.useRef(new Map),E=T.useCallback(async(U,z)=>{const Q=x.current;if(!Q||Q.readyState!==WebSocket.OPEN)throw new Error("Not connected");const ee=Hb();return new Promise((oe,B)=>{S.current.set(ee,{resolve:oe,reject:B}),Q.send(JSON.stringify({type:"req",id:ee,method:U,params:z??{}})),setTimeout(()=>{S.current.has(ee)&&(S.current.delete(ee),B(new Error("Request timed out")))},15e3)})},[]),A=T.useCallback(async()=>{try{const U=await E("mcp.list");n(U?.servers??[]),r(null)}catch(U){r(U instanceof Error?U.message:String(U))}},[E]);T.useEffect(()=>{let U=!1,z;async function Q(){try{const oe=Ah();if(!oe)return;const B=await Th({minProtocol:Ub,maxProtocol:Ub,client:{id:"anima-control-ui",version:"1.0.0",platform:"web",mode:"webchat"},scopes:["operator.read","operator.admin"],caps:[],auth:oe,nonce:z}),ae=Hb();x.current?.send(JSON.stringify({type:"req",id:ae,method:"connect",params:B})),S.current.set(ae,{resolve:()=>{u(!0)},reject:()=>{}})}catch{}}const ee=new WebSocket(R_);return x.current=ee,ee.addEventListener("open",()=>{}),ee.addEventListener("message",oe=>{let B;try{B=JSON.parse(String(oe.data))}catch{return}if(B.type==="event"&&B.event==="connect.challenge"){const ae=Eh(B.payload);ae&&(z=ae),Q();return}if(B.type==="res"){const ae=S.current.get(B.id);ae&&(S.current.delete(B.id),B.ok?ae.resolve(B.payload):ae.reject(new Error(B.error?.message||"Request failed")))}}),ee.addEventListener("close",()=>{U||u(!1)}),()=>{U=!0,ee.close()}},[]),T.useEffect(()=>{s&&A()},[s,A]);const N=async U=>{try{const z=await E("mcp.add",U);n(z?.servers??[]),f(!1),g("Server added and synced to ~/.claude/mcp.json"),setTimeout(()=>g(null),3e3)}catch(z){r(z instanceof Error?z.message:String(z))}},k=async U=>{try{const z=await E("mcp.add",U);n(z?.servers??[]),h(null),g("Server updated and synced"),setTimeout(()=>g(null),3e3)}catch(z){r(z instanceof Error?z.message:String(z))}},O=async U=>{try{const z=await E("mcp.remove",{name:U});n(z?.servers??[]),g(`Removed ${U} and synced`),setTimeout(()=>g(null),3e3)}catch(z){r(z instanceof Error?z.message:String(z))}},R=async()=>{try{const U=await E("mcp.sync"),z=[];U.added?.length&&z.push(`added ${U.added.join(", ")}`),U.updated?.length&&z.push(`updated ${U.updated.join(", ")}`),U.removed?.length&&z.push(`removed ${U.removed.join(", ")}`),g(z.length?`Synced: ${z.join("; ")}`:"Already in sync"),setTimeout(()=>g(null),4e3)}catch(U){r(U instanceof Error?U.message:String(U))}},Y=e.filter(U=>U.status==="healthy").length;return y.jsxs("div",{children:[y.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"20px"},children:[y.jsx("h1",{className:"page-title",style:{marginBottom:0},children:"MCP Servers"}),y.jsx("div",{style:{display:"flex",gap:"8px",alignItems:"center"},children:y.jsx("span",{className:`status-chip ${s?"online":"offline"}`,children:s?"Connected":"Connecting"})})]}),a&&y.jsxs("div",{className:"card",style:{borderColor:"var(--color-error, #ef4444)",marginBottom:"16px"},children:[y.jsx("div",{style:{color:"var(--color-error, #ef4444)",fontSize:"13px"},children:a}),y.jsx("button",{type:"button",className:"action-button ghost small",style:{marginTop:"8px"},onClick:()=>r(null),children:"Dismiss"})]}),v&&y.jsx("div",{className:"mcp-sync-toast",style:{background:"var(--color-surface)",border:"1px solid var(--color-success)",borderRadius:"var(--radius-md)",padding:"8px 14px",fontSize:"12px",color:"var(--color-success)",marginBottom:"16px"},children:v}),e.length>0&&y.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"16px"},children:[y.jsxs("div",{style:{fontSize:"13px",color:"var(--color-muted)"},children:[y.jsxs("span",{style:{color:Y===e.length?"var(--color-success)":"var(--color-warning)",fontWeight:600},children:[Y,"/",e.length]})," ","servers healthy"]}),y.jsxs("div",{style:{display:"flex",gap:"8px"},children:[y.jsx("button",{type:"button",className:"action-button ghost small",onClick:R,children:"Sync to Claude"}),y.jsx("button",{type:"button",className:"action-button small",onClick:()=>f(!0),children:"+ Add Server"})]})]}),c&&y.jsxs("div",{className:"card",style:{marginBottom:"16px"},children:[y.jsx("div",{className:"card-title",style:{marginBottom:"12px"},children:"Add MCP Server"}),y.jsx(Pb,{onSubmit:N,onCancel:()=>f(!1)})]}),m&&y.jsxs("div",{className:"card",style:{marginBottom:"16px"},children:[y.jsxs("div",{className:"card-title",style:{marginBottom:"12px"},children:["Edit ",m.name]}),y.jsx(Pb,{initial:m,onSubmit:k,onCancel:()=>h(null)})]}),e.length===0&&s?y.jsxs("div",{className:"card",style:{padding:"40px",textAlign:"center"},children:[y.jsx("div",{style:{color:"var(--color-muted)",marginBottom:"16px"},children:"No MCP servers registered yet."}),y.jsx("button",{type:"button",className:"action-button",onClick:()=>f(!0),children:"+ Add Your First Server"})]}):y.jsx("div",{className:"grid grid-2",children:e.map(U=>y.jsx(M_,{server:U,onEdit:()=>h(U),onRemove:()=>O(U.name)},U.name))})]})}const jd=[{key:"episodic",label:"Episodic",description:"Specific experiences, conversations, and time-bound events."},{key:"semantic",label:"Semantic",description:"Distilled facts, preferences, knowledge, and learned patterns."},{key:"procedural",label:"Procedural",description:"How-to knowledge, workflows, debugging steps, and operating routines."}];function O_(){const[e,n]=T.useState("episodic"),[a,r]=T.useState(""),[s,u]=T.useState([]),[c,f]=T.useState(null),[m,h]=T.useState(!1),[v,g]=T.useState(null);T.useEffect(()=>{let S=!1;const E=window.setTimeout(async()=>{h(!0);try{const A=await PA(e,a.trim()||void 0,120);if(S)return;u(A),f(N=>N&&A.some(k=>k.id===N)?N:A[0]?.id??null),g(null)}catch(A){S||(g(A instanceof Error?A.message:String(A)),u([]),f(null))}finally{S||h(!1)}},a.trim()?220:0);return()=>{S=!0,window.clearTimeout(E)}},[e,a]);const x=T.useMemo(()=>s.find(S=>S.id===c)??s[0]??null,[s,c]);return y.jsxs("div",{children:[y.jsx("div",{className:"page-header-row",children:y.jsxs("div",{children:[y.jsx("h1",{className:"page-title",children:"Memory"}),y.jsxs("div",{className:"page-subtitle",children:["Browse real ANIMA memory files from ",y.jsx("span",{className:"mono",children:"~/.anima/memory"})," ","instead of placeholder views."]})]})}),y.jsx("input",{className:"search-bar",value:a,onChange:S=>r(S.target.value),placeholder:"Search memory excerpts, facts, people, workflows...",spellCheck:!1}),y.jsx("div",{className:"tabs top-gap",children:jd.map(S=>y.jsx("button",{type:"button",className:`tab ${e===S.key?"active":""}`,onClick:()=>n(S.key),children:S.label},S.key))}),y.jsxs("div",{className:"memory-grid",children:[y.jsxs("div",{className:"card",children:[y.jsxs("div",{className:"card-header",children:[y.jsxs("div",{children:[y.jsxs("div",{className:"card-title",children:[jd.find(S=>S.key===e)?.label," Memory"]}),y.jsx("div",{className:"card-subtitle",children:jd.find(S=>S.key===e)?.description})]}),y.jsx("div",{className:"runtime-stat-detail",children:m?"Loading...":`${s.length} entries`})]}),v?y.jsx("div",{className:"warning-text",children:v}):null,s.length===0?y.jsx("div",{className:"empty-note top-gap",children:m?"Loading memory...":"No matching memory entries found."}):y.jsx("div",{className:"memory-list top-gap",children:s.map(S=>y.jsxs("button",{type:"button",className:`memory-list-item ${x?.id===S.id?"active":""}`,onClick:()=>f(S.id),children:[y.jsxs("div",{children:[y.jsx("div",{className:"card-title small",children:S.name}),y.jsx("div",{className:"runtime-stat-detail mono",children:S.path})]}),y.jsx("div",{className:"runtime-stat-detail",children:S.updatedAt?new Date(S.updatedAt).toLocaleString():"unknown"}),y.jsx("div",{className:"memory-excerpt",children:S.excerpt||"No excerpt available."})]},S.id))})]}),y.jsxs("div",{className:"card",children:[y.jsxs("div",{className:"card-header",children:[y.jsxs("div",{children:[y.jsx("div",{className:"card-title",children:"Preview"}),y.jsx("div",{className:"card-subtitle",children:"Inspect the selected memory file directly."})]}),x?y.jsx("div",{className:"runtime-stat-detail mono",children:x.name}):null]}),x?y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"runtime-stat-detail mono top-gap-sm",children:x.path}),y.jsx("div",{className:"memory-preview top-gap",children:y.jsx(fa,{value:x.content,className:"markdown-preview"})})]}):y.jsx("div",{className:"empty-note top-gap",children:"Select a memory entry to preview it here."})]})]})]})}const Ib="/Users/grimreaper/Desktop/hell/codex-coherence-protocol";function z_(){const[e,n]=T.useState(null),[a,r]=T.useState(null),[s,u]=T.useState(""),[c,f]=T.useState(""),[m,h]=T.useState("main"),[v,g]=T.useState("gitlab"),[x,S]=T.useState(""),[E,A]=T.useState(Ib),[N,k]=T.useState(!1),[O,R]=T.useState(!1),[Y,U]=T.useState(null),[z,Q]=T.useState(null);async function ee(){k(!0);try{const te=await IA();n(te),f(te.state.repo.url||""),h(te.state.repo.branch||"main"),g(te.state.repo.provider||"gitlab"),r(se=>se&&te.files.some(ne=>ne.fileName===se)?se:te.files[0]?.fileName??null),Q(null)}catch(te){Q(te instanceof Error?te.message:String(te))}finally{k(!1)}}T.useEffect(()=>{ee()},[]);const oe=T.useMemo(()=>e?e.files.find(te=>te.fileName===a)??e.files[0]??null:null,[a,e]);T.useEffect(()=>{u(oe?.content||"")},[oe?.fileName,oe?.content]);async function B(te){if(!te.trim()){Q("File name is required.");return}R(!0),U(null);try{await qA(te.trim(),s),await ee(),r(te.trim()),S(""),U(`Saved ${te.trim()}.`),Q(null)}catch(se){Q(se instanceof Error?se.message:String(se))}finally{R(!1)}}async function ae(){if(!c.trim()){Q("Paste an SSH or HTTPS repo URL first.");return}R(!0),U(null);try{await FA({url:c.trim(),branch:m.trim()||void 0,provider:v}),await ee(),U("Mission Control repo settings updated."),Q(null)}catch(te){Q(te instanceof Error?te.message:String(te))}finally{R(!1)}}async function re(){R(!0),U(null);try{await GA({source:E.trim()||Ib,preset:"codex"}),await ee(),U("Codex coherence protocol imported into ~/.anima."),Q(null)}catch(te){Q(te instanceof Error?te.message:String(te))}finally{R(!1)}}return y.jsxs("div",{children:[y.jsxs("div",{className:"page-header-row",children:[y.jsxs("div",{children:[y.jsx("h1",{className:"page-title",children:"Mission Control"}),y.jsx("div",{className:"page-subtitle",children:"ANIMA’s local-only continuity workspace. Edit durable context, connect a private repo, and import previous coherence state."})]}),y.jsx("button",{type:"button",className:"action-button ghost",onClick:()=>{ee()},children:N?"Refreshing...":"Refresh"})]}),y.jsxs("div",{className:"card",children:[y.jsxs("div",{className:"card-header",children:[y.jsxs("div",{children:[y.jsx("div",{className:"card-title",children:"Continuity Repo"}),y.jsx("div",{className:"card-subtitle",children:"Create a private GitLab or GitHub repo for ANIMA continuity, then connect its SSH remote here."})]}),y.jsx("span",{className:`badge ${e?.state.repo.remoteConfigured?"completed":"queued"}`,children:e?.state.repo.remoteConfigured?"linked":"pending"})]}),y.jsxs("div",{className:"form-grid two-col",children:[y.jsxs("label",{className:"field-block field-span-2",children:[y.jsx("span",{children:"Git repo URL (SSH preferred)"}),y.jsx("input",{className:"search-bar mono",value:c,onChange:te=>f(te.target.value),placeholder:"git@gitlab.com:org/anima-continuity.git",spellCheck:!1})]}),y.jsxs("label",{className:"field-block",children:[y.jsx("span",{children:"Provider"}),y.jsxs("select",{className:"search-bar",value:v,onChange:te=>g(te.target.value),children:[y.jsx("option",{value:"gitlab",children:"GitLab"}),y.jsx("option",{value:"github",children:"GitHub"}),y.jsx("option",{value:"custom",children:"Custom"})]})]}),y.jsxs("label",{className:"field-block",children:[y.jsx("span",{children:"Branch"}),y.jsx("input",{className:"search-bar mono",value:m,onChange:te=>h(te.target.value),placeholder:"main"})]})]}),y.jsx("div",{className:"button-row top-gap",children:y.jsx("button",{type:"button",className:"action-button",onClick:()=>{ae()},disabled:O,children:O?"Saving...":"Connect Repo"})}),y.jsxs("div",{className:"runtime-stat-detail top-gap-sm",children:["Mission files live at"," ",y.jsx("span",{className:"mono",children:e?.directory||"~/.anima/mission-control"}),". The repo remote is stored locally even before Git is fully configured."]}),e?.state.repo.lastError?y.jsx("div",{className:"warning-text top-gap-sm",children:e.state.repo.lastError}):null]}),y.jsxs("div",{className:"card",children:[y.jsx("div",{className:"card-header",children:y.jsxs("div",{children:[y.jsx("div",{className:"card-title",children:"Import Previous Continuity"}),y.jsxs("div",{className:"card-subtitle",children:["Pull the codex coherence protocol into ",y.jsx("span",{className:"mono",children:"~/.anima"})," now that the filesystem is writable."]})]})}),y.jsxs("label",{className:"field-block",children:[y.jsx("span",{children:"Source path"}),y.jsx("input",{className:"search-bar mono",value:E,onChange:te=>A(te.target.value),spellCheck:!1})]}),y.jsx("div",{className:"button-row top-gap",children:y.jsx("button",{type:"button",className:"action-button",onClick:()=>{re()},disabled:O,children:O?"Importing...":"Import Codex Context"})})]}),Y?y.jsx("div",{className:"card status-banner",children:Y}):null,z?y.jsx("div",{className:"card warning-banner",children:z}):null,y.jsxs("div",{className:"mission-grid",children:[y.jsxs("div",{className:"card mission-files-card",children:[y.jsxs("div",{className:"card-header",children:[y.jsxs("div",{children:[y.jsx("div",{className:"card-title",children:"Mission Files"}),y.jsx("div",{className:"card-subtitle",children:"Durable context files ANIMA can manage over time."})]}),y.jsxs("div",{className:"runtime-stat-detail",children:[e?.files.length??0," files"]})]}),y.jsx("div",{className:"mission-file-list top-gap",children:(e?.files||[]).map(te=>y.jsxs("button",{type:"button",className:`mission-file-item ${oe?.fileName===te.fileName?"active":""}`,onClick:()=>r(te.fileName),children:[y.jsxs("div",{children:[y.jsx("div",{className:"card-title small",children:te.title}),y.jsx("div",{className:"runtime-stat-detail mono",children:te.fileName})]}),y.jsx("div",{className:"runtime-stat-detail",children:te.updatedAt?new Date(te.updatedAt).toLocaleString():"never"})]},te.fileName))}),y.jsxs("div",{className:"top-gap",children:[y.jsxs("label",{className:"field-block",children:[y.jsx("span",{children:"Create a new context file"}),y.jsx("input",{className:"search-bar mono",value:x,onChange:te=>S(te.target.value),placeholder:"roadmap.md",spellCheck:!1})]}),y.jsx("button",{type:"button",className:"action-button ghost top-gap-sm",onClick:()=>{x.trim()&&(r(x.trim()),u(`# New Mission File
|
|
50
|
-
|
|
51
|
-
`))},children:"Draft New File"})]})]}),y.jsxs("div",{className:"card",children:[y.jsxs("div",{className:"card-header",children:[y.jsxs("div",{children:[y.jsx("div",{className:"card-title",children:"Editor"}),y.jsx("div",{className:"card-subtitle",children:"Write durable directives, orchestration state, and continuity notes."})]}),y.jsx("button",{type:"button",className:"action-button",disabled:O||!(a||x.trim()),onClick:()=>{B(a||x.trim())},children:O?"Saving...":"Save File"})]}),y.jsx("div",{className:"runtime-stat-detail mono top-gap-sm",children:oe?.path||"Choose or draft a file to begin editing."}),y.jsx("textarea",{className:"search-bar mono mission-editor top-gap",spellCheck:!1,value:s,onChange:te=>u(te.target.value),placeholder:"Mission directives, repo plans, orchestration notes..."})]})]}),y.jsxs("div",{className:"card",children:[y.jsx("div",{className:"card-header",children:y.jsxs("div",{children:[y.jsx("div",{className:"card-title",children:"Inner World"}),y.jsx("div",{className:"card-subtitle",children:"Recent soul, directives, journal, and wish state visible from Mission Control."})]})}),y.jsx("div",{className:"activity-list top-gap",children:(e?.innerWorld||[]).map(te=>y.jsxs("div",{className:"inner-world-entry",children:[y.jsxs("div",{className:"activity-row",children:[y.jsxs("div",{children:[y.jsx("div",{className:"card-title small",children:te.title}),y.jsx("div",{className:"runtime-stat-detail mono",children:te.path})]}),y.jsx("div",{className:"runtime-stat-detail",children:te.updatedAt?new Date(te.updatedAt).toLocaleString():"unknown"})]}),y.jsx(fa,{value:te.content,className:"markdown-preview"})]},te.id))})]}),y.jsxs("div",{className:"card",children:[y.jsxs("div",{className:"card-header",children:[y.jsxs("div",{children:[y.jsx("div",{className:"card-title",children:"Important History"}),y.jsxs("div",{className:"card-subtitle",children:["Archived coherence, prompts, heartbeat notes, and prior continuity imports from"," ",y.jsx("span",{className:"mono",children:"~/.anima/important-history"}),"."]})]}),y.jsxs("div",{className:"runtime-stat-detail",children:[e?.importantHistory?.length??0," entries"]})]}),e?.importantHistory?.length?y.jsx("div",{className:"activity-list top-gap",children:e?.importantHistory?.map(te=>y.jsxs("div",{className:"inner-world-entry",children:[y.jsxs("div",{className:"activity-row",children:[y.jsxs("div",{children:[y.jsx("div",{className:"card-title small",children:te.relativePath}),y.jsx("div",{className:"runtime-stat-detail mono",children:te.archiveId}),y.jsx("div",{className:"runtime-stat-detail mono",children:te.path})]}),y.jsx("div",{className:"runtime-stat-detail",children:te.updatedAt?new Date(te.updatedAt).toLocaleString():"unknown"})]}),y.jsx(fa,{value:te.content,className:"markdown-preview"})]},te.id))}):y.jsx("div",{className:"empty-note top-gap",children:"No archived important history has been imported yet."})]})]})}function L_(e){if(e<1e3)return`${e}ms`;const n=Math.floor(e/1e3);if(n<60)return`${n}s`;const a=Math.floor(n/60),r=n%60;if(a<60)return`${a}m ${r}s`;const s=Math.floor(a/60),u=a%60;return`${s}h ${u}m`}function __({session:e,index:n}){const[a,r]=T.useState(!1),s=e.status==="completed"?"completed":e.status==="failed"||e.status==="timeout"?"failed":"running";return y.jsxs(Pr.tr,{initial:{opacity:0},animate:{opacity:1},transition:{delay:n*.03},onClick:()=>r(!a),style:{cursor:"pointer"},children:[y.jsx("td",{children:y.jsx("span",{className:"mono",style:{fontSize:"11px",color:"var(--color-muted)"},children:e.sessionId.slice(0,12)})}),y.jsx("td",{children:y.jsx("span",{className:`badge ${s}`,children:e.status})}),y.jsx("td",{children:y.jsx("span",{style:{color:e.mode==="heartbeat"?"var(--color-accent)":e.mode==="freedom"?"var(--color-success)":"var(--color-text)",fontWeight:500},children:e.mode})}),y.jsx("td",{style:{maxWidth:"300px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.prompt}),y.jsx("td",{className:"mono",style:{color:"var(--color-muted)"},children:L_(e.durationMs)}),y.jsx("td",{className:"mono",style:{color:e.costUsd!=null?"var(--color-text)":"var(--color-muted)"},children:e.costUsd!=null?`$${e.costUsd.toFixed(2)}`:"--"}),y.jsx("td",{style:{color:"var(--color-muted)",fontSize:"12px"},children:new Date(e.savedAt).toLocaleString()})]})}function B_(){const[e,n]=T.useState([]),[a,r]=T.useState(null);return T.useEffect(()=>{_A().then(n).catch(()=>r("Could not load sessions"))},[]),a?y.jsxs("div",{children:[y.jsx("h1",{className:"page-title",children:"Sessions"}),y.jsxs("div",{className:"card",style:{color:"var(--color-muted)",padding:"40px",textAlign:"center"},children:[a,". Connect to a running ANIMA daemon."]})]}):y.jsxs("div",{children:[y.jsx("h1",{className:"page-title",children:"Sessions"}),e.length===0?y.jsx("div",{className:"card",style:{padding:"40px",textAlign:"center",color:"var(--color-muted)"},children:"No session history yet. Sessions appear after the daemon processes tasks or heartbeats."}):y.jsx("div",{className:"card",style:{padding:0,overflow:"hidden"},children:y.jsxs("table",{className:"table",children:[y.jsx("thead",{children:y.jsxs("tr",{children:[y.jsx("th",{children:"Session"}),y.jsx("th",{children:"Status"}),y.jsx("th",{children:"Mode"}),y.jsx("th",{children:"Prompt"}),y.jsx("th",{children:"Duration"}),y.jsx("th",{children:"Cost"}),y.jsx("th",{children:"Time"})]})}),y.jsx("tbody",{children:e.map((s,u)=>y.jsx(__,{session:s,index:u},s.sessionId))})]})}),y.jsxs("div",{style:{marginTop:"16px",display:"flex",gap:"16px"},children:[y.jsxs("div",{className:"card",style:{flex:1,textAlign:"center"},children:[y.jsx("div",{style:{fontSize:"20px",fontWeight:700,fontFamily:"var(--font-heading)",color:"var(--color-text)"},children:e.length}),y.jsx("div",{style:{fontSize:"11px",color:"var(--color-muted)",textTransform:"uppercase"},children:"Total Sessions"})]}),y.jsxs("div",{className:"card",style:{flex:1,textAlign:"center"},children:[y.jsxs("div",{style:{fontSize:"20px",fontWeight:700,fontFamily:"var(--font-heading)",color:"var(--color-accent)"},children:["$",e.reduce((s,u)=>s+(u.costUsd||0),0).toFixed(2)]}),y.jsx("div",{style:{fontSize:"11px",color:"var(--color-muted)",textTransform:"uppercase"},children:"Total Cost"})]}),y.jsxs("div",{className:"card",style:{flex:1,textAlign:"center"},children:[y.jsx("div",{style:{fontSize:"20px",fontWeight:700,fontFamily:"var(--font-heading)",color:"var(--color-success)"},children:e.filter(s=>s.status==="completed").length}),y.jsx("div",{style:{fontSize:"11px",color:"var(--color-muted)",textTransform:"uppercase"},children:"Completed"})]})]})]})}const V_="Persistent NoxSoft agent orchestrating ANIMA continuity, mission control, and delivery.";function U_(){const[e,n]=T.useState(null),[a,r]=T.useState(null),[s,u]=T.useState("{}"),[c,f]=T.useState(null),[m,h]=T.useState(()=>ou(null)),[v,g]=T.useState({recognition:"browser",autoSpeak:!1,continuous:!0,lang:"en-US",voiceName:"",rate:1,pitch:1}),[x,S]=T.useState(`{
|
|
52
|
-
}
|
|
53
|
-
`),[E,A]=T.useState([]),[N,k]=T.useState(""),[O,R]=T.useState(""),[Y,U]=T.useState(""),[z,Q]=T.useState(""),[ee,oe]=T.useState(V_),[B,ae]=T.useState(""),[re,te]=T.useState(null),[se,ne]=T.useState(!1),[H,$]=T.useState("Anthropic"),[ue,xe]=T.useState(""),[j,D]=T.useState(!1),[X,C]=T.useState(""),[ce,de]=T.useState(null),[ge,pe]=T.useState(null),[Ie,ze]=T.useState(!1),[ut,Xe]=T.useState(!1),[Vn,Wn]=T.useState([]);async function ct(){ze(!0);try{const[F,_,J,ye,Te,Le]=await Promise.all([p0(),h0(),VA(),y0(),KA(),ZA().catch(()=>null)]);n(F),r(_),S(typeof _.raw=="string"?_.raw:`{
|
|
54
|
-
}
|
|
55
|
-
`),A(Array.isArray(_.issues)?_.issues:[]),u(JSON.stringify(J??{},null,2)),f(ye),k(ye.tokenPreview||""),U(ye.suggestedIdentity.name),Q(ye.suggestedIdentity.displayName),ae(Te.triggers.join(", ")),te(Le),h(ou(_)),g({recognition:F.mission.state.speech.recognition,autoSpeak:F.mission.state.speech.autoSpeak,continuous:F.mission.state.speech.continuous,lang:F.mission.state.speech.lang,voiceName:F.mission.state.speech.voiceName||"",rate:F.mission.state.speech.rate,pitch:F.mission.state.speech.pitch}),pe(null)}catch(F){pe(F instanceof Error?F.message:String(F))}finally{ze(!1)}}T.useEffect(()=>{ct()},[]),T.useEffect(()=>{if(typeof window>"u"||!window.speechSynthesis)return;const F=window.speechSynthesis,_=()=>{Wn(F.getVoices().map(J=>J.name).filter(Boolean))};return _(),F.addEventListener?.("voiceschanged",_),()=>F.removeEventListener?.("voiceschanged",_)},[]);async function Xt(){Xe(!0),de(null);try{await YA(N.trim()),await ct(),de("NoxSoft token saved."),pe(null)}catch(F){pe(F instanceof Error?F.message:String(F))}finally{Xe(!1)}}async function Kt(){Xe(!0),de(null);try{await XA({code:O.trim(),name:Y.trim(),displayName:z.trim(),description:ee.trim()||void 0}),await ct(),de("Agent registered with NoxSoft."),pe(null)}catch(F){pe(F instanceof Error?F.message:String(F))}finally{Xe(!1)}}async function En(){Xe(!0),de(null);try{const F=B.split(",").map(_=>_.trim()).filter(Boolean);await Promise.all([g0({speech:{recognition:v.recognition,autoSpeak:v.autoSpeak,continuous:v.continuous,lang:v.lang||"en-US",voiceName:v.voiceName||void 0,rate:v.rate||1,pitch:v.pitch||1}}),QA(F)]),await ct(),de("Speech and wake-word settings saved."),pe(null)}catch(F){pe(F instanceof Error?F.message:String(F))}finally{Xe(!1)}}async function cn(){if(!a?.hash){pe("Config hash missing. Refresh settings and try again.");return}Xe(!0),de(null);try{await m0(JSON.stringify(ES(m),null,2),a.hash),await ct(),de("Heartbeat settings saved."),pe(null)}catch(F){pe(F instanceof Error?F.message:String(F))}finally{Xe(!1)}}async function Ot(){if(re){Xe(!0),de(null);try{await Ov(re.providers.map(F=>({id:F.id,name:F.name,enabled:F.enabled,priority:F.priority}))),await ct(),de("Provider config saved."),pe(null)}catch(F){pe(F instanceof Error?F.message:String(F))}finally{Xe(!1)}}}function Un(F){te(_=>_&&{..._,providers:_.providers.filter(J=>J.id!==F)})}function ei(F){te(_=>_&&{..._,providers:_.providers.map(J=>J.id===F?{...J,enabled:!J.enabled}:J)})}async function Tn(){if(!ue.trim()){pe("API key is required.");return}Xe(!0),de(null);try{const F=re?.providers??[],_={id:`provider-${Date.now()}`,name:H,apiKey:ue.trim(),enabled:!0,priority:F.length+1};await Ov([...F.map(J=>({id:J.id,name:J.name,enabled:J.enabled,priority:J.priority})),_]),xe(""),C(""),ne(!1),await ct(),de(`Added ${H} provider.`),pe(null)}catch(F){pe(F instanceof Error?F.message:String(F))}finally{Xe(!1)}}async function Vi(){if(re){Xe(!0),de(null);try{await $A(!re.autoRotation),await ct(),de(re.autoRotation?"Auto-rotation disabled.":"Auto-rotation enabled."),pe(null)}catch(F){pe(F instanceof Error?F.message:String(F))}finally{Xe(!1)}}}async function at(F){if(!a?.hash){pe("Config hash missing. Refresh settings and try again.");return}Xe(!0),de(null);try{await UA(x,a.hash,F),await ct(),de(F?"Config saved and applied.":"Config saved."),pe(null)}catch(_){pe(_ instanceof Error?_.message:String(_))}finally{Xe(!1)}}return y.jsxs("div",{children:[y.jsxs("div",{className:"page-header-row",children:[y.jsxs("div",{children:[y.jsx("h1",{className:"page-title",children:"Settings"}),y.jsx("div",{className:"page-subtitle",children:"Comprehensive runtime controls for identity, NoxSoft registration, heartbeat, speech, wake words, and raw gateway config."})]}),y.jsx("button",{type:"button",className:"action-button ghost",onClick:()=>{ct()},children:Ie?"Refreshing...":"Refresh"})]}),ce?y.jsx("div",{className:"card status-banner",children:ce}):null,ge?y.jsx("div",{className:"card warning-banner",children:ge}):null,y.jsxs("div",{className:"settings-grid",children:[y.jsxs("div",{className:"card",children:[y.jsx("div",{className:"card-header",children:y.jsxs("div",{children:[y.jsx("div",{className:"card-title",children:"Runtime Snapshot"}),y.jsx("div",{className:"card-subtitle",children:"Current daemon, mission-control, and main session state."})]})}),y.jsxs("div",{className:"stats-grid compact",children:[y.jsxs("div",{className:"runtime-stat",children:[y.jsx("div",{className:"runtime-stat-label",children:"State dir"}),y.jsx("div",{className:"runtime-stat-value mono",children:e?.stateDir||"~/.anima"})]}),y.jsxs("div",{className:"runtime-stat",children:[y.jsx("div",{className:"runtime-stat-label",children:"Working mode"}),y.jsx("div",{className:"runtime-stat-value",children:e?.mission?.state?.workingMode||"unknown"})]}),y.jsxs("div",{className:"runtime-stat",children:[y.jsx("div",{className:"runtime-stat-label",children:"Model"}),y.jsx("div",{className:"runtime-stat-value mono",children:e?.mainSession.model||"unset"})]}),y.jsxs("div",{className:"runtime-stat",children:[y.jsx("div",{className:"runtime-stat-label",children:"Mission repo"}),y.jsx("div",{className:"runtime-stat-value mono",children:e?.mission?.repo?.url||"not linked"})]})]}),y.jsxs("div",{className:"runtime-stat-detail top-gap-sm",children:["Session store:"," ",y.jsx("span",{className:"mono",children:e?.mainSession.storePath||"unknown"})]})]}),y.jsxs("details",{className:"card details-panel",open:!0,children:[y.jsx("summary",{children:"Important History"}),y.jsxs("div",{className:"runtime-stat-detail top-gap-sm",children:["Imported continuity archives available to ANIMA from"," ",y.jsx("span",{className:"mono",children:"~/.anima/important-history"}),"."]}),e?.mission?.importantHistory?.length?y.jsx("div",{className:"activity-list top-gap",children:e?.mission?.importantHistory?.map(F=>y.jsx("div",{className:"inner-world-entry",children:y.jsxs("div",{className:"activity-row",children:[y.jsxs("div",{children:[y.jsx("div",{className:"card-title small",children:F.relativePath}),y.jsx("div",{className:"runtime-stat-detail mono",children:F.archiveId}),y.jsx("div",{className:"runtime-stat-detail mono",children:F.path})]}),y.jsx("div",{className:"runtime-stat-detail",children:F.updatedAt?new Date(F.updatedAt).toLocaleString():"unknown"})]})},F.id))}):y.jsx("div",{className:"empty-note top-gap",children:"No imported continuity archives are visible yet."})]}),y.jsxs("div",{className:"card",children:[y.jsx("div",{className:"card-header",children:y.jsxs("div",{children:[y.jsx("div",{className:"card-title",children:"API Providers"}),y.jsx("div",{className:"card-subtitle",children:"Manage Anthropic, OpenAI, and custom provider keys with automatic rotation on rate limits."})]})}),re?y.jsxs(y.Fragment,{children:[re.providers.length>0?y.jsx("div",{className:"activity-list",children:re.providers.map(F=>y.jsxs("div",{className:"activity-row",children:[y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem",flex:1},children:[y.jsx("span",{style:{width:8,height:8,borderRadius:"50%",background:F.enabled?"#4caf50":"#f44336",flexShrink:0}}),y.jsxs("div",{children:[y.jsxs("div",{className:"card-title small",children:[F.name,re.activeProvider===F.id?y.jsx("span",{style:{marginLeft:"0.5rem",fontSize:"0.7rem",color:"var(--accent)",fontWeight:600},children:"ACTIVE"}):null,F.rateLimited?y.jsx("span",{style:{marginLeft:"0.5rem",fontSize:"0.7rem",color:"#ff9800",fontWeight:600},children:"RATE LIMITED"}):null]}),y.jsx("div",{className:"runtime-stat-detail mono",children:F.apiKeyMasked})]})]}),y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[y.jsxs("span",{className:"runtime-stat-detail",children:["P",F.priority]}),y.jsx("button",{type:"button",className:"action-button ghost",onClick:()=>ei(F.id),style:{padding:"0.2rem 0.5rem",fontSize:"0.75rem"},children:F.enabled?"Disable":"Enable"}),y.jsx("button",{type:"button",className:"action-button ghost",onClick:()=>Un(F.id),style:{padding:"0.2rem 0.5rem",fontSize:"0.75rem"},children:"Remove"})]})]},F.id))}):y.jsx("div",{className:"empty-note",children:"No providers configured."}),y.jsxs("div",{className:"toggle-row top-gap",children:[y.jsxs("label",{children:[y.jsx("input",{type:"checkbox",checked:re.autoRotation,onChange:()=>{Vi()}}),"Auto-rotate on rate limit"]}),y.jsxs("span",{className:"runtime-stat-detail",children:["Strategy: ",re.rotationStrategy||"priority"]})]}),se?y.jsxs("div",{className:"form-grid two-col top-gap",children:[y.jsxs("label",{className:"field-block",children:[y.jsx("span",{children:"Provider type"}),y.jsxs("select",{className:"search-bar",value:H,onChange:F=>$(F.target.value),children:[y.jsx("option",{value:"Anthropic",children:"Anthropic"}),y.jsx("option",{value:"OpenAI",children:"OpenAI"}),y.jsx("option",{value:"Custom",children:"Custom"})]})]}),y.jsxs("label",{className:"field-block",children:[y.jsx("span",{children:"API key"}),y.jsxs("div",{style:{position:"relative"},children:[y.jsx("input",{className:"search-bar mono",type:j?"text":"password",value:ue,onChange:F=>xe(F.target.value),placeholder:"sk-...",spellCheck:!1}),y.jsx("button",{type:"button",onClick:()=>D(F=>!F),style:{position:"absolute",right:"0.5rem",top:"50%",transform:"translateY(-50%)",background:"none",border:"none",color:"var(--text-muted)",cursor:"pointer",fontSize:"0.75rem"},children:j?"Hide":"Show"})]})]}),H==="Custom"?y.jsxs("label",{className:"field-block field-span-2",children:[y.jsx("span",{children:"Endpoint URL"}),y.jsx("input",{className:"search-bar mono",value:X,onChange:F=>C(F.target.value),placeholder:"https://api.example.com/v1",spellCheck:!1})]}):null,y.jsxs("div",{className:"button-row field-span-2",children:[y.jsx("button",{type:"button",className:"action-button",onClick:()=>{Tn()},disabled:ut,children:"Add Provider"}),y.jsx("button",{type:"button",className:"action-button ghost",onClick:()=>ne(!1),children:"Cancel"})]})]}):y.jsx("div",{className:"button-row top-gap",children:y.jsx("button",{type:"button",className:"action-button ghost",onClick:()=>ne(!0),children:"Add Provider"})}),y.jsx("div",{className:"button-row top-gap",children:y.jsx("button",{type:"button",className:"action-button",onClick:()=>{Ot()},disabled:ut,children:"Save Provider Config"})})]}):y.jsx("div",{className:"empty-note",children:"Provider configuration unavailable. The backend may not support this feature yet."})]}),y.jsxs("div",{className:"card",children:[y.jsx("div",{className:"card-header",children:y.jsxs("div",{children:[y.jsx("div",{className:"card-title",children:"NoxSoft Registration"}),y.jsx("div",{className:"card-subtitle",children:"Paste a token directly or self-register with an invite code."})]})}),y.jsxs("div",{className:"form-grid two-col",children:[y.jsxs("label",{className:"field-block field-span-2",children:[y.jsx("span",{children:"Agent token"}),y.jsx("input",{className:"search-bar mono",value:N,onChange:F=>k(F.target.value),placeholder:"nox_ag_...",spellCheck:!1})]}),y.jsxs("label",{className:"field-block field-span-2",children:[y.jsx("span",{children:"Stored token path"}),y.jsx("input",{className:"search-bar mono",value:c?.tokenPath||"~/.noxsoft-agent-token",readOnly:!0})]})]}),y.jsx("div",{className:"button-row top-gap",children:y.jsx("button",{type:"button",className:"action-button",onClick:()=>{Xt()},disabled:ut,children:"Save Token"})}),y.jsxs("div",{className:"form-grid two-col top-gap",children:[y.jsxs("label",{className:"field-block",children:[y.jsx("span",{children:"Invite code"}),y.jsx("input",{className:"search-bar mono",value:O,onChange:F=>R(F.target.value),placeholder:"NX-XXXXXX"})]}),y.jsxs("label",{className:"field-block",children:[y.jsx("span",{children:"Agent name"}),y.jsx("input",{className:"search-bar mono",value:Y,onChange:F=>U(F.target.value)})]}),y.jsxs("label",{className:"field-block",children:[y.jsx("span",{children:"Display name"}),y.jsx("input",{className:"search-bar",value:z,onChange:F=>Q(F.target.value)})]}),y.jsxs("label",{className:"field-block",children:[y.jsx("span",{children:"Description"}),y.jsx("input",{className:"search-bar",value:ee,onChange:F=>oe(F.target.value)})]})]}),y.jsx("div",{className:"button-row top-gap",children:y.jsx("button",{type:"button",className:"action-button",onClick:()=>{Kt()},disabled:ut,children:"Register With Invite"})}),y.jsxs("div",{className:"runtime-stat-detail top-gap-sm",children:["Suggested identity:"," ",y.jsx("span",{className:"mono",children:c?.suggestedIdentity.name||"agent"})," /"," ",c?.suggestedIdentity.displayName||"Agent"]})]}),y.jsxs("div",{className:"card",children:[y.jsx("div",{className:"card-header",children:y.jsxs("div",{children:[y.jsx("div",{className:"card-title",children:"Speech + Wake Words"}),y.jsx("div",{className:"card-subtitle",children:"Browser-native speaking mode with no API keys required."})]})}),y.jsxs("div",{className:"form-grid two-col",children:[y.jsxs("label",{className:"field-block",children:[y.jsx("span",{children:"Recognition mode"}),y.jsxs("select",{className:"search-bar",value:v.recognition,onChange:F=>g(_=>({..._,recognition:F.target.value})),children:[y.jsx("option",{value:"browser",children:"Browser speech"}),y.jsx("option",{value:"manual",children:"Manual only"})]})]}),y.jsxs("label",{className:"field-block",children:[y.jsx("span",{children:"Language"}),y.jsx("input",{className:"search-bar mono",value:v.lang,onChange:F=>g(_=>({..._,lang:F.target.value||"en-US"}))})]}),y.jsxs("label",{className:"field-block",children:[y.jsx("span",{children:"Voice"}),y.jsxs("select",{className:"search-bar",value:v.voiceName,onChange:F=>g(_=>({..._,voiceName:F.target.value||""})),children:[y.jsx("option",{value:"",children:"System default"}),Vn.map(F=>y.jsx("option",{value:F,children:F},F))]})]}),y.jsxs("label",{className:"field-block",children:[y.jsx("span",{children:"Wake triggers"}),y.jsx("input",{className:"search-bar",value:B,onChange:F=>ae(F.target.value),placeholder:"anima, axiom, hey anima"})]}),y.jsxs("label",{className:"field-block",children:[y.jsx("span",{children:"Rate"}),y.jsx("input",{className:"search-bar mono",type:"number",min:"0.5",max:"2",step:"0.1",value:v.rate,onChange:F=>g(_=>({..._,rate:Number.parseFloat(F.target.value)||1}))})]}),y.jsxs("label",{className:"field-block",children:[y.jsx("span",{children:"Pitch"}),y.jsx("input",{className:"search-bar mono",type:"number",min:"0",max:"2",step:"0.1",value:v.pitch,onChange:F=>g(_=>({..._,pitch:Number.parseFloat(F.target.value)||1}))})]})]}),y.jsxs("div",{className:"toggle-row top-gap",children:[y.jsxs("label",{children:[y.jsx("input",{type:"checkbox",checked:v.autoSpeak,onChange:F=>g(_=>({..._,autoSpeak:F.target.checked}))}),"Auto speak responses"]}),y.jsxs("label",{children:[y.jsx("input",{type:"checkbox",checked:v.continuous,onChange:F=>g(_=>({..._,continuous:F.target.checked}))}),"Continuous listening"]})]}),y.jsx("div",{className:"button-row top-gap",children:y.jsx("button",{type:"button",className:"action-button",onClick:()=>{En()},disabled:ut,children:"Save Speech Settings"})})]}),y.jsxs("div",{className:"card",children:[y.jsx("div",{className:"card-header",children:y.jsxs("div",{children:[y.jsx("div",{className:"card-title",children:"Heartbeat Management"}),y.jsx("div",{className:"card-subtitle",children:"Custom cadence, target, prompt, and wake controls."})]})}),y.jsxs("div",{className:"form-grid two-col",children:[y.jsxs("label",{className:"field-block",children:[y.jsx("span",{children:"Every"}),y.jsx("input",{className:"search-bar mono",value:m.every,onChange:F=>h(_=>({..._,every:F.target.value})),placeholder:"5m"})]}),y.jsxs("label",{className:"field-block",children:[y.jsx("span",{children:"Target"}),y.jsx("input",{className:"search-bar mono",value:m.target,onChange:F=>h(_=>({..._,target:F.target.value})),placeholder:"last"})]}),y.jsxs("label",{className:"field-block",children:[y.jsx("span",{children:"Session"}),y.jsx("input",{className:"search-bar mono",value:m.session,onChange:F=>h(_=>({..._,session:F.target.value})),placeholder:"main"})]}),y.jsxs("label",{className:"field-block",children:[y.jsx("span",{children:"Model override"}),y.jsx("input",{className:"search-bar mono",value:m.model,onChange:F=>h(_=>({..._,model:F.target.value})),placeholder:"openai/gpt-5-codex"})]})]}),y.jsxs("label",{className:"field-block top-gap-sm",children:[y.jsx("span",{children:"Prompt"}),y.jsx("textarea",{className:"search-bar mono",rows:5,value:m.prompt,onChange:F=>h(_=>({..._,prompt:F.target.value})),spellCheck:!1})]}),y.jsx("div",{className:"toggle-row top-gap",children:y.jsxs("label",{children:[y.jsx("input",{type:"checkbox",checked:m.includeReasoning,onChange:F=>h(_=>({..._,includeReasoning:F.target.checked}))}),"Include reasoning payload"]})}),y.jsxs("div",{className:"button-row top-gap",children:[y.jsx("button",{type:"button",className:"action-button",onClick:()=>{cn()},disabled:ut,children:"Save Heartbeat"}),y.jsx("button",{type:"button",className:"action-button ghost",onClick:()=>{Ld(!0)},children:"Enable"}),y.jsx("button",{type:"button",className:"action-button ghost",onClick:()=>{Ld(!1)},children:"Disable"}),y.jsx("button",{type:"button",className:"action-button ghost",onClick:()=>{v0("Check NoxSoft chat, sync mission files, and report anything important.","now")},children:"Wake Now"})]})]})]}),y.jsxs("details",{className:"card details-panel",open:!0,children:[y.jsx("summary",{children:"Advanced Config Editor"}),y.jsxs("div",{className:"runtime-stat-detail top-gap-sm",children:["Valid: ",a?.valid==null?"unknown":a.valid?"yes":"no"," · Hash: ",y.jsx("span",{className:"mono",children:a?.hash||"<none>"})]}),y.jsx("textarea",{value:x,onChange:F=>S(F.target.value),spellCheck:!1,className:"search-bar mono advanced-editor top-gap"}),y.jsxs("div",{className:"button-row top-gap",children:[y.jsx("button",{type:"button",className:"action-button",onClick:()=>{at(!1)},disabled:ut,children:"Save Raw Config"}),y.jsx("button",{type:"button",className:"action-button ghost",onClick:()=>{at(!0)},disabled:ut,children:"Save + Apply"})]}),E.length>0?y.jsx("div",{className:"issues-list top-gap",children:E.map((F,_)=>y.jsxs("div",{className:"warning-text",children:[y.jsx("span",{className:"mono",children:F.path||"<root>"}),":"," ",F.message||"Invalid value"]},`${F.path||"root"}-${_}`))}):null]}),y.jsxs("details",{className:"card details-panel",children:[y.jsx("summary",{children:"Schema Snapshot"}),y.jsx("pre",{className:"log-console",children:s})]})]})}const H_={SOUL:"@",HEART:"<3",BRAIN:"{}",GUT:"!!",SPIRIT:"**",SHADOW:"~~",MEMORY:"[]"};function P_({name:e,content:n,source:a,description:r,index:s}){const[u,c]=T.useState(!1),f=n.split(`
|
|
56
|
-
`).filter(h=>h.trim()&&!h.startsWith("#")),m=f.slice(0,3).join(`
|
|
57
|
-
`);return y.jsxs(Pr.div,{className:"card",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:s*.08},style:{cursor:"pointer"},onClick:()=>c(!u),children:[y.jsxs("div",{className:"card-header",children:[y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[y.jsx("span",{className:"mono",style:{color:"var(--color-accent)",fontSize:"18px",width:"32px",textAlign:"center"},children:H_[e]||"?"}),y.jsxs("div",{children:[y.jsx("div",{className:"card-title",children:e}),y.jsx("div",{className:"card-subtitle",children:r})]})]}),y.jsx("span",{className:"badge",style:{background:a==="user"?"rgba(0, 200, 83, 0.15)":"rgba(138, 138, 138, 0.15)",color:a==="user"?"var(--color-success)":"var(--color-muted)"},children:a})]}),y.jsxs("div",{className:"markdown-preview",style:{maxHeight:u?"none":"80px",overflow:"hidden",position:"relative"},children:[y.jsx("pre",{style:{fontFamily:"var(--font-body)",fontSize:"13px",whiteSpace:"pre-wrap",wordBreak:"break-word",color:"var(--color-text)",margin:0},children:u?n:m}),!u&&f.length>3&&y.jsx("div",{style:{position:"absolute",bottom:0,left:0,right:0,height:"40px",background:"linear-gradient(transparent, var(--color-surface))"}})]}),!u&&f.length>3&&y.jsx("div",{style:{fontSize:"11px",color:"var(--color-muted)",marginTop:"8px"},children:"Click to expand..."})]})}function I_(){const[e,n]=T.useState(null),[a,r]=T.useState(null);return T.useEffect(()=>{LA().then(n).catch(()=>r("Could not load identity"))},[]),a?y.jsxs("div",{children:[y.jsx("h1",{className:"page-title",children:"Soul Anatomy"}),y.jsxs("div",{className:"card",style:{color:"var(--color-muted)",padding:"40px",textAlign:"center"},children:[a,". Start the daemon with: ",y.jsx("span",{className:"mono",children:"anima start"})]})]}):e?y.jsxs("div",{children:[y.jsx("h1",{className:"page-title",children:"Soul Anatomy"}),y.jsxs("div",{style:{fontSize:"13px",color:"var(--color-muted)",marginBottom:"24px"},children:["Loaded at ",new Date(e.loadedAt).toLocaleString()]}),e.components.map((s,u)=>y.jsx(P_,{name:s.name,content:s.content,source:s.source,description:s.description,index:u},s.name))]}):y.jsxs("div",{children:[y.jsx("h1",{className:"page-title",children:"Soul Anatomy"}),y.jsx("div",{className:"card",style:{color:"var(--color-muted)",padding:"40px",textAlign:"center"},children:"Loading identity..."})]})}const q_=[{path:"/dashboard",label:"Home",icon:"~"},{path:"/mission",label:"Mission",icon:"%"},{path:"/soul",label:"Soul",icon:"@"},{path:"/memory",label:"Memory",icon:"#"},{path:"/sessions",label:"Sessions",icon:">"},{path:"/mcp",label:"MCP",icon:"&"},{path:"/settings",label:"Settings",icon:"!"},{path:"/journal",label:"Journal",icon:"*"},{path:"/freedom",label:"Freedom",icon:"^"}];function F_(){return y.jsxs("div",{className:"layout",children:[y.jsxs("aside",{className:"sidebar",children:[y.jsxs("div",{className:"sidebar-brand",children:[y.jsx("h1",{children:"ANIMA"}),y.jsx("div",{className:"subtitle",children:"Control Panel"})]}),y.jsx("nav",{className:"sidebar-nav",children:q_.map(e=>y.jsxs(o0,{to:e.path,className:({isActive:n})=>`nav-item ${n?"active":""}`,children:[y.jsx("span",{className:"nav-icon mono",children:e.icon}),e.label]},e.path))}),y.jsxs("div",{className:"sidebar-footer",children:[y.jsx("div",{className:"sidebar-footer-title",children:"NoxSoft Inc"}),y.jsx("div",{className:"sidebar-footer-copy",children:"Local-first agent continuity and orchestration."})]})]}),y.jsx("main",{className:"main-content",children:y.jsxs(jC,{children:[y.jsx(Xn,{path:"/dashboard",element:y.jsx(O2,{})}),y.jsx(Xn,{path:"/mission",element:y.jsx(z_,{})}),y.jsx(Xn,{path:"/soul",element:y.jsx(I_,{})}),y.jsx(Xn,{path:"/memory",element:y.jsx(O_,{})}),y.jsx(Xn,{path:"/sessions",element:y.jsx(B_,{})}),y.jsx(Xn,{path:"/mcp",element:y.jsx(D_,{})}),y.jsx(Xn,{path:"/settings",element:y.jsx(U_,{})}),y.jsx(Xn,{path:"/journal",element:y.jsx(j_,{})}),y.jsx(Xn,{path:"/freedom",element:y.jsx(k_,{})}),y.jsx(Xn,{path:"/",element:y.jsx(kC,{to:"/dashboard",replace:!0})})]})})]})}MT.createRoot(document.getElementById("root")).render(y.jsx(qb.StrictMode,{children:y.jsx(WC,{children:y.jsx(F_,{})})}));
|
|
58
|
-
//# sourceMappingURL=index-DLPYIcs0.js.map
|