@objectstack/console 17.5.0 → 17.6.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 +378 -0
- package/dist/.objectstack-injection.json +2 -2
- package/dist/.objectui-sha +1 -1
- package/dist/assets/{ActionResultDialog-CLdIyOW6.js → ActionResultDialog-4kHDGnT3.js} +3 -3
- package/dist/assets/{AiPendingActionsPage-OKYz66yR.js → AiPendingActionsPage-JjOddm0h.js} +1 -1
- package/dist/assets/{ApiConsolePage-CcrKovu8.js → ApiConsolePage-BgS26lbp.js} +1 -1
- package/dist/assets/AppDocsIndex-BDoH5ECM.js +1 -0
- package/dist/assets/{AppManagementPage-D_xz8cTZ.js → AppManagementPage-CCgKmNTj.js} +1 -1
- package/dist/assets/ApprovalsInboxPage-C6S1vk0X.js +1 -0
- package/dist/assets/AuditLogPage-v2dKXMuk.js +1 -0
- package/dist/assets/BookPage-DwFMcTSN.js +1 -0
- package/dist/assets/{ComponentNavView-BxsixSU9.js → ComponentNavView-B5g9c6fx.js} +1 -1
- package/dist/assets/{CreateViewDialog-xyKlpLEW.js → CreateViewDialog-D3l-tYHM.js} +1 -1
- package/dist/assets/DashboardView-BOcovpPd.js +1 -0
- package/dist/assets/DocPage-B6AkH5WI.js +1 -0
- package/dist/assets/{DocsIndex-B2zw_HAp.js → DocsIndex-DwW2QsYY.js} +1 -1
- package/dist/assets/{DocsLayout-DezZ8x7_.js → DocsLayout-D63StSgd.js} +1 -1
- package/dist/assets/DocsSlug-CP9fcabi.js +1 -0
- package/dist/assets/ExpressionProvider-CrL6jhVq.js +1 -0
- package/dist/assets/{FlowRunsPage-CvY3nJMF.js → FlowRunsPage-CxdaiUyk.js} +1 -1
- package/dist/assets/{IntegrationsPage-2leVkVDH.js → IntegrationsPage-DvG0x0Nb.js} +2 -2
- package/dist/assets/{InterfaceListPage-BdECC_i3.js → InterfaceListPage-C4wPYohR.js} +1 -1
- package/dist/assets/{MarketplaceInstalledPage-EPPHSitW.js → MarketplaceInstalledPage-B7KETQG2.js} +1 -1
- package/dist/assets/MarketplacePackagePage-CfgKDpNH.js +4 -0
- package/dist/assets/{MarketplacePage-BnQKykgv.js → MarketplacePage-DNEyU5AE.js} +1 -1
- package/dist/assets/{MetadataInspector-BWxLkr0O.js → MetadataInspector-EP0I3-Kq.js} +1 -1
- package/dist/assets/{ObjectDataPage-BIzp65Mo.js → ObjectDataPage-CykEm9MD.js} +1 -1
- package/dist/assets/PageView-C6u86tni.js +1 -0
- package/dist/assets/{ProfilePage-D2qGgxPK.js → ProfilePage-C3SjXMzi.js} +1 -1
- package/dist/assets/{PublicFormsPage-DlE6tck_.js → PublicFormsPage-D3uCTR-8.js} +1 -1
- package/dist/assets/RecordDetailView-DgR_zhP4.js +3 -0
- package/dist/assets/RecordFormPage-kiJI-ieF.js +1 -0
- package/dist/assets/ReportDefaultInspector-BIinF0EQ.js +1 -0
- package/dist/assets/{ReportView-GIdKJdOt.js → ReportView-BREO-ADE.js} +1 -1
- package/dist/assets/{RuntimeDraftBar-BbMdi3Kp.js → RuntimeDraftBar-BCWfd2yS.js} +1 -1
- package/dist/assets/SchemaForm-C4uMMZ13.js +3 -0
- package/dist/assets/SearchResultsPage-C6Hw_Lpn.js +1 -0
- package/dist/assets/{SettingsHub-BGKIj-Zq.js → SettingsHub-DP1mrzEN.js} +1 -1
- package/dist/assets/SettingsView-u7mc6pcc.js +1 -0
- package/dist/assets/{SkeletonDetail-C8fMI-Mu.js → SkeletonDetail-DIwlbHTr.js} +1 -1
- package/dist/assets/{af-BfSmLD34.js → af-DPUgkQl0.js} +1 -1
- package/dist/assets/ai-DPBykF2N.js +3 -0
- package/dist/assets/{app-shell-eager-leaves-CDVclng4.js → app-shell-eager-leaves-Cf2bM6uT.js} +1 -1
- package/dist/assets/{ar-B9ttrM75.js → ar-B-6GTIRU.js} +1 -1
- package/dist/assets/{ar-DZ-C1rn-cyl.js → ar-DZ-wEl298ti.js} +1 -1
- package/dist/assets/{ar-EG-BaDxKP_o.js → ar-EG-YBT90_S0.js} +1 -1
- package/dist/assets/{ar-MA-DbxNEcmd.js → ar-MA-3uT-EYh6.js} +1 -1
- package/dist/assets/{ar-SA-DeC5LXcX.js → ar-SA-SiQsjhhc.js} +1 -1
- package/dist/assets/{ar-TN-C9KpTFJz.js → ar-TN-CfzXjKzS.js} +1 -1
- package/dist/assets/{az-cMerDwRO.js → az-BqAfcNza.js} +1 -1
- package/dist/assets/{be-ZTSbszQh.js → be-CQgWXa9_.js} +1 -1
- package/dist/assets/{be-tarask-BXZEUrgX.js → be-tarask-BmNg0Sir.js} +1 -1
- package/dist/assets/{bg-BDogpmn5.js → bg-D3evgRuS.js} +1 -1
- package/dist/assets/{bn-Cz04uxmh.js → bn-uItkARwm.js} +1 -1
- package/dist/assets/{bs-CpFnCl-j.js → bs-DueReOpO.js} +1 -1
- package/dist/assets/{ca-CHC4M52Z.js → ca-Cr3AHktR.js} +1 -1
- package/dist/assets/{ckb-Dxw-RNm8.js → ckb-CTi5BET7.js} +1 -1
- package/dist/assets/contracts-DieHW666.js +1 -0
- package/dist/assets/{createDerive-DvA_JGNq.js → createDerive-CjN1i5vn.js} +1 -1
- package/dist/assets/{cs-DsFaJ5Z7.js → cs-43mFX9jr.js} +1 -1
- package/dist/assets/{cy-FH4JFDTs.js → cy-BBSkg3F8.js} +1 -1
- package/dist/assets/{da-D1pVjaAq.js → da-C5oA5qcs.js} +1 -1
- package/dist/assets/data-adapter-Cymvlczj.js +1 -0
- package/dist/assets/{de-AT-DUMQCisj.js → de-AT-CApxwJzu.js} +1 -1
- package/dist/assets/{de-DKrxSvnP.js → de-CPtbLlAf.js} +1 -1
- package/dist/assets/default-inspector-registry-Bs6GBn00.js +1 -0
- package/dist/assets/dist-BF-ssUpn.js +14 -0
- package/dist/assets/{el-l3-bHySV.js → el-Dto2xBQU.js} +1 -1
- package/dist/assets/en-AU-FVwCiDJO.js +1 -0
- package/dist/assets/{en-CA-DGH5NF0a.js → en-CA-DKuJPN1U.js} +1 -1
- package/dist/assets/en-GB-DQ_y5VbJ.js +1 -0
- package/dist/assets/en-IE-DaXOhsZW.js +1 -0
- package/dist/assets/en-IN-CnRZnAom.js +1 -0
- package/dist/assets/en-NZ-CBZLEToK.js +1 -0
- package/dist/assets/en-ZA-BE59v0wZ.js +1 -0
- package/dist/assets/{eo-CL6CXHZx.js → eo-BL8JXIWd.js} +1 -1
- package/dist/assets/{es-BIJ0rksI.js → es-BnoaNxsu.js} +1 -1
- package/dist/assets/{et-BGgMzjm1.js → et-tPYLNenO.js} +1 -1
- package/dist/assets/{eu-CqvAoRrX.js → eu-CUBG6bT0.js} +1 -1
- package/dist/assets/{fa-IR-DNz3oA1-.js → fa-IR-Rr2d9xSs.js} +1 -1
- package/dist/assets/{fi-DNSfKWuW.js → fi-B0NVIZsV.js} +1 -1
- package/dist/assets/{formatLong-CHb9WA3O.js → formatLong-1-gt9bpo.js} +1 -1
- package/dist/assets/{fr-DYRJCirJ.js → fr-BbhHek8e.js} +1 -1
- package/dist/assets/{fr-CA-CotiswPx.js → fr-CA-CBDvLXFg.js} +1 -1
- package/dist/assets/{fr-CH-CpiEYWpc.js → fr-CH-WPNmwPn7.js} +1 -1
- package/dist/assets/framework-DFR4HNtj.js +35 -0
- package/dist/assets/{fy-B69yM3FE.js → fy-DvOBbvEF.js} +1 -1
- package/dist/assets/{gd-BAy8AsX6.js → gd-BQPiTPX5.js} +1 -1
- package/dist/assets/getIcon-Cfwf-Egt.js +1 -0
- package/dist/assets/{gl-soLn_weL.js → gl-BJCXK8uO.js} +1 -1
- package/dist/assets/{gu-B19Yo9yC.js → gu-CctPRz3V.js} +1 -1
- package/dist/assets/{he-DYTPo33p.js → he-CVFMk6p2.js} +1 -1
- package/dist/assets/{hi-D2dIK7Oy.js → hi-Ba30-RwS.js} +1 -1
- package/dist/assets/{highlighted-body-OFNGDK62-CExufvVt.js → highlighted-body-OFNGDK62-BQ57IrBV.js} +1 -1
- package/dist/assets/{hr-BV-VOPMu.js → hr-BZUqTbZs.js} +1 -1
- package/dist/assets/{ht-C7MM4qkS.js → ht-BLe05tPx.js} +1 -1
- package/dist/assets/{hu-Rha1m2Ym.js → hu-2CQ_Mkww.js} +1 -1
- package/dist/assets/{hy-CiTNgbdV.js → hy-CclcPG4H.js} +1 -1
- package/dist/assets/i18n-BnUsCaSC.js +17 -0
- package/dist/assets/i18n-locale-ar-92O_xtDZ.js +4 -0
- package/dist/assets/i18n-locale-de-T5ic3yH9.js +4 -0
- package/dist/assets/i18n-locale-en-rxr7WJYl.js +4 -0
- package/dist/assets/i18n-locale-es-D_WOifJ_.js +4 -0
- package/dist/assets/i18n-locale-fr-3cvyjMkp.js +4 -0
- package/dist/assets/i18n-locale-ja-DXlIkB8I.js +4 -0
- package/dist/assets/i18n-locale-ko-DngRpS45.js +4 -0
- package/dist/assets/i18n-locale-pt-BkPaFCqZ.js +4 -0
- package/dist/assets/i18n-locale-ru-E5wLh-y6.js +4 -0
- package/dist/assets/i18n-locale-zh-BL4_Yand.js +4 -0
- package/dist/assets/{i18n-runtime-CTgAQF4N.js → i18n-runtime-97_bDVjP.js} +1 -1
- package/dist/assets/{id-Cijsfjt-.js → id-6JLB8s-f.js} +1 -1
- package/dist/assets/index-Cadlh4t_.css +2 -0
- package/dist/assets/index-D98sa5GF.js +20 -0
- package/dist/assets/{infrastructure-BHSync5f.js → infrastructure-Cc34lEqb.js} +2 -2
- package/dist/assets/integration-CeAF4JFT.js +1 -0
- package/dist/assets/{is-xS1WTyeC.js → is-to0CWzm1.js} +1 -1
- package/dist/assets/isSameWeek-DBXaA1Gd.js +1 -0
- package/dist/assets/{it-CH-l516ZNXj.js → it-CH-DhdfjP5Z.js} +1 -1
- package/dist/assets/{it-C2i_c9sd.js → it-ea0B8Ujp.js} +1 -1
- package/dist/assets/{ja-D9_ewLny.js → ja-B1bzkgDW.js} +1 -1
- package/dist/assets/{ja-Hira-D_6ExgHw.js → ja-Hira-CMrY5hXO.js} +1 -1
- package/dist/assets/{ka-BYHGyees.js → ka-DKSXLnXP.js} +1 -1
- package/dist/assets/{kk-CbTFtuqb.js → kk-DHwMv8Dn.js} +1 -1
- package/dist/assets/{km-Dr2gwhIn.js → km-tpLG1xNr.js} +1 -1
- package/dist/assets/{kn-CprH8JD7.js → kn-MLreVnHA.js} +1 -1
- package/dist/assets/{ko-CsFS2u5i.js → ko-CI0DBazn.js} +1 -1
- package/dist/assets/{lb-CbFKN7Ob.js → lb-CmL572Xe.js} +1 -1
- package/dist/assets/{lt-Bq0xkLp0.js → lt-DRtUOLdw.js} +1 -1
- package/dist/assets/{lv-Cj6vg6Qo.js → lv-COSHgkOP.js} +1 -1
- package/dist/assets/{match-C_jFGO9e.js → match-B-ergJQb.js} +1 -1
- package/dist/assets/{match-CiPp9BME.js → match-BQoOW8Cj.js} +1 -1
- package/dist/assets/{match-Co4ivumx.js → match-dfBS0YSQ.js} +1 -1
- package/dist/assets/mermaid-GHXKKRXX-Bb17TtNP.js +1 -0
- package/dist/assets/metadata-admin-CABUxbJl.js +9 -0
- package/dist/assets/{mk-MXFM99YL.js → mk-B0IH_YL_.js} +1 -1
- package/dist/assets/{mn-D5Q9B6Jt.js → mn-P-QdQ2n3.js} +1 -1
- package/dist/assets/{ms-CCzPRldx.js → ms-CtyEOINy.js} +1 -1
- package/dist/assets/{mt-mjJpN6xW.js → mt-DfuZ2HRm.js} +1 -1
- package/dist/assets/{nb-BIlNqdEb.js → nb-2Hp-5Tnt.js} +1 -1
- package/dist/assets/{nl-BE-FwXjQsmV.js → nl-BE-mmxbfNoR.js} +1 -1
- package/dist/assets/{nl-D2uBtIxG.js → nl-CZ_nLREz.js} +1 -1
- package/dist/assets/{nn-B0loJ7SV.js → nn-ccWhYsNa.js} +1 -1
- package/dist/assets/{oc-U7-yH1sO.js → oc-z504BFRV.js} +1 -1
- package/dist/assets/{pl-mTy0JYgi.js → pl-DeQ7ASt-.js} +1 -1
- package/dist/assets/plugin-calendar-Cn5HaZU8.js +1 -0
- package/dist/assets/plugin-charts-B6RcFWbo.js +7 -0
- package/dist/assets/plugin-chatbot-Ck47EhDX.js +122 -0
- package/dist/assets/plugin-dashboard-DjEx8e5Y.js +6 -0
- package/dist/assets/plugin-form-CLDvL0up.js +1 -0
- package/dist/assets/plugin-gantt-CrVrxVdi.js +63 -0
- package/dist/assets/plugin-grid-D2rmQEW_.js +11 -0
- package/dist/assets/plugin-kanban-BUNHFfIC.js +1 -0
- package/dist/assets/plugin-map-y-7RQQC5.js +1 -0
- package/dist/assets/{plugin-markdown-D1nTQc1T.js → plugin-markdown-BOkHcir_.js} +1 -1
- package/dist/assets/plugin-report-mT3jpna0.js +59 -0
- package/dist/assets/plugin-timeline-B1EF83D3.js +1 -0
- package/dist/assets/plugin-tree-MTHUt3_S.js +1 -0
- package/dist/assets/plugin-view-DHJI-ahf.js +1 -0
- package/dist/assets/plugins-views-CfkgqD30.js +3 -0
- package/dist/assets/{pt-BR-2KtO5Js1.js → pt-BR-D80_lPYF.js} +1 -1
- package/dist/assets/{pt-Bet5OOQf.js → pt-CJJ1RmXd.js} +1 -1
- package/dist/assets/{ro-37U6sgzi.js → ro-EuFb2TCj.js} +1 -1
- package/dist/assets/{ru-CyuAY-5E.js → ru-CMaVQScp.js} +1 -1
- package/dist/assets/{runtime-metadata-persistence-afAW-MeD.js → runtime-metadata-persistence-ClOTznqa.js} +1 -1
- package/dist/assets/{se-DeJabuC6.js → se-DsfdKLdF.js} +1 -1
- package/dist/assets/{sk-DWEpjfkR.js → sk-BNV9omI8.js} +1 -1
- package/dist/assets/{sl-4oSvNhIR.js → sl-DJS_nINU.js} +1 -1
- package/dist/assets/{sq-BjkBCaXW.js → sq-HEgjcbHe.js} +1 -1
- package/dist/assets/{sr-Dxm1DsRS.js → sr-CO0CFu4X.js} +1 -1
- package/dist/assets/{sr-Latn-Dawg6oP2.js → sr-Latn-eE1Idzey.js} +1 -1
- package/dist/assets/{src-C8NYjdVm.js → src-BU7L2v4J.js} +1 -1
- package/dist/assets/src-BUtIBFDA.js +1 -0
- package/dist/assets/src-C0eXlKtx.js +16 -0
- package/dist/assets/{studioEntry-nXQP3iL0.js → studioEntry-WeMfaSGn.js} +1 -1
- package/dist/assets/{submitRedirect-jK-cEIbP.js → submitRedirect-C2lfZSHt.js} +1 -1
- package/dist/assets/{sv-CROOGJGz.js → sv-5uTzgQT3.js} +1 -1
- package/dist/assets/{ta-BZnTmFI_.js → ta-BzgdkBZG.js} +1 -1
- package/dist/assets/{te-BN0v0x5t.js → te-Ct_pl7ZJ.js} +1 -1
- package/dist/assets/{th-CBjKhp_U.js → th-DouAlk0-.js} +1 -1
- package/dist/assets/{tr-x0Ne4N4H.js → tr-3XNBsI40.js} +1 -1
- package/dist/assets/types-zod-DXpXw10W.js +1 -0
- package/dist/assets/{ug-sgzNhsKo.js → ug-B9n24h9G.js} +1 -1
- package/dist/assets/ui-components-D6cEVg0T.js +37 -0
- package/dist/assets/ui-layout-DgVDuPEM.js +1 -0
- package/dist/assets/{uk-o_DQ5VHJ.js → uk-DCAenByf.js} +1 -1
- package/dist/assets/use-book-data-CwRldFxP.js +1 -0
- package/dist/assets/{useActionModal-CSvbHkQ7.js → useActionModal-Blp4rhOk.js} +1 -1
- package/dist/assets/useCanAuthorMetadata-BxCMgFRf.js +1 -0
- package/dist/assets/useNavSelDeepLink-67Y4qCNO.js +1 -0
- package/dist/assets/useNavTargetLabel-BOJncjIb.js +1 -0
- package/dist/assets/{useOpenRecordList-B5-qaFUx.js → useOpenRecordList-BrwJFojQ.js} +1 -1
- package/dist/assets/{usePackageL10n-CMx66am-.js → usePackageL10n-Ci9uVkRZ.js} +1 -1
- package/dist/assets/{useSettingsLabel-Kkr2q0Oo.js → useSettingsLabel-CeMnMWsh.js} +1 -1
- package/dist/assets/{uz-Cyrl-DbtkQtz_.js → uz-Cyrl-JSeHEqu-.js} +1 -1
- package/dist/assets/{uz-Be41d4jl.js → uz-DT3s9bZS.js} +1 -1
- package/dist/assets/vendor-objectstack-DFqu45yM.js +138 -0
- package/dist/assets/{vi-84mZmklk.js → vi-D2p-h6bY.js} +1 -1
- package/dist/assets/{zh-CN-DD1reegJ.js → zh-CN-DHOKqAit.js} +1 -1
- package/dist/assets/{zh-HK-B05u30WI.js → zh-HK-D4iIPY7I.js} +1 -1
- package/dist/assets/{zh-TW-Bb-WimPD.js → zh-TW-gORQ_tZh.js} +1 -1
- package/dist/chunk-membership.json +100 -90
- package/dist/eager-closure.json +110 -110
- package/dist/index.html +4 -4
- package/dist/sdui.manifest.json +520 -60
- package/package.json +1 -1
- package/dist/assets/AppDocsIndex-F4zDq2zz.js +0 -1
- package/dist/assets/ApprovalsInboxPage-DrEUmaDb.js +0 -1
- package/dist/assets/AuditLogPage-CoghqsZb.js +0 -1
- package/dist/assets/DashboardView-CGC-_Om8.js +0 -1
- package/dist/assets/DocPage-CIZE5kdj.js +0 -1
- package/dist/assets/DocsSlug-DXdFdwlS.js +0 -1
- package/dist/assets/ExpressionProvider-DZfMwyMs.js +0 -1
- package/dist/assets/MarketplacePackagePage-C7NOu2Ir.js +0 -4
- package/dist/assets/PageView-CVLgCRSF.js +0 -1
- package/dist/assets/RecordDetailView-DQKydU7X.js +0 -3
- package/dist/assets/RecordFormPage-BTjwxJIA.js +0 -1
- package/dist/assets/ReportDefaultInspector-DdsQAkd7.js +0 -1
- package/dist/assets/SchemaForm-C8X1ve4p.js +0 -3
- package/dist/assets/SearchResultsPage-Jwhqsdyo.js +0 -1
- package/dist/assets/SettingsView-D8SMKdrc.js +0 -1
- package/dist/assets/appRoute-DbnWDEa1.js +0 -1
- package/dist/assets/data-adapter-DMbe6Njk.js +0 -1
- package/dist/assets/default-inspector-registry-CpL3fFhl.js +0 -1
- package/dist/assets/dist-BXrEV1ag.js +0 -13
- package/dist/assets/en-AU-C6x7mDhH.js +0 -1
- package/dist/assets/en-GB-0-nho2eK.js +0 -1
- package/dist/assets/en-IE-2fC3BkfV.js +0 -1
- package/dist/assets/en-IN-C1QcFhxn.js +0 -1
- package/dist/assets/en-NZ-C80ptZT7.js +0 -1
- package/dist/assets/en-ZA-ByZDrjeb.js +0 -1
- package/dist/assets/framework-DcWkeiND.js +0 -35
- package/dist/assets/getIcon-BEVyC4y3.js +0 -1
- package/dist/assets/i18n-CEKxYdmD.js +0 -9
- package/dist/assets/i18n-locale-ar-DN7sl3GF.js +0 -4
- package/dist/assets/i18n-locale-de-C40JErvb.js +0 -4
- package/dist/assets/i18n-locale-en-CITPDIHy.js +0 -4
- package/dist/assets/i18n-locale-es-C8DdWN6c.js +0 -4
- package/dist/assets/i18n-locale-fr-COIdEZZl.js +0 -4
- package/dist/assets/i18n-locale-ja-DYF_rU_s.js +0 -4
- package/dist/assets/i18n-locale-ko-B-ODYAtX.js +0 -4
- package/dist/assets/i18n-locale-pt-CK1SyBIm.js +0 -4
- package/dist/assets/i18n-locale-ru-jLzvShMO.js +0 -4
- package/dist/assets/i18n-locale-zh-Bf9Gbbvl.js +0 -4
- package/dist/assets/index-CLyvpiGc.css +0 -2
- package/dist/assets/index-CfnfGw5W.js +0 -20
- package/dist/assets/isSameWeek-DWYeNyh8.js +0 -1
- package/dist/assets/mermaid-GHXKKRXX-DVLc_uym.js +0 -1
- package/dist/assets/metadata-admin-CybaOCdO.js +0 -9
- package/dist/assets/nav-selection-Dzm_mA3C.js +0 -1
- package/dist/assets/plugin-calendar-CKRBcML7.js +0 -1
- package/dist/assets/plugin-charts-DGTJxXCB.js +0 -7
- package/dist/assets/plugin-chatbot-DwtwNA-y.js +0 -122
- package/dist/assets/plugin-dashboard-C1AYKmGX.js +0 -6
- package/dist/assets/plugin-form-CV8ZY04-.js +0 -1
- package/dist/assets/plugin-gantt-BRIb2_8G.js +0 -63
- package/dist/assets/plugin-grid-C9h7mRVv.js +0 -11
- package/dist/assets/plugin-kanban-BcJ0Dhys.js +0 -1
- package/dist/assets/plugin-map-D24ZUOUj.js +0 -1
- package/dist/assets/plugin-report-BfGintAq.js +0 -59
- package/dist/assets/plugin-timeline-CbBRq_qt.js +0 -1
- package/dist/assets/plugin-tree-BNX2A5J5.js +0 -1
- package/dist/assets/plugin-view-DzWQWYyH.js +0 -1
- package/dist/assets/plugins-views-DraK4xz0.js +0 -3
- package/dist/assets/src-B8lv0plz.js +0 -18
- package/dist/assets/src-DoDvT77T.js +0 -1
- package/dist/assets/types-zod-Y2RwUUeJ.js +0 -1
- package/dist/assets/ui-components-BTB1NkUW.js +0 -37
- package/dist/assets/ui-layout-bZfafwJa.js +0 -1
- package/dist/assets/use-book-data-C3eyZJSG.js +0 -1
- package/dist/assets/vendor-objectstack-XuWC71M9.js +0 -266
- package/dist/assets/vendor-zod-CHLW1iCr.js +0 -64
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import{o as e,r as t}from"./rolldown-runtime-C0FnF6B9.js";import{h as n,t as r,v as i}from"./vendor-react-BggL7APJ.js";import{Ri as a,Tn as o,Vi as s,Wn as c,Wt as l,Xn as u,Zn as d,gi as f,vn as p,yi as m}from"./vendor-objectstack-DFqu45yM.js";import{Ai as h,At as g,Bi as _,Ci as v,Cr as y,E as b,Ei as x,Er as S,Et as C,F as w,Fr as T,Ft as E,Gi as D,Gr as O,Hi as k,Hr as A,Ir as j,It as M,J as N,Ji as ee,K as P,Li as F,M as I,Mr as te,N as ne,Ni as re,Nr as L,Nt as R,Ot as z,Pt as B,Q as ie,Ri as V,Rr as ae,Rt as H,Si as oe,Sr as U,St as W,T as G,Ti as se,Tr as ce,U as le,Ui as ue,Ur as de,Vr as fe,Wr as pe,Xi as me,Xn as he,Xr as ge,Yi as K,Yn as _e,Zr as ve,Zt as ye,_ as be,_t as xe,a as Se,at as Ce,br as we,bt as Te,c as Ee,d as De,dn as Oe,dt as ke,en as Ae,et as je,fn as Me,fr as Ne,g as Pe,gr as Fe,gt as Ie,hr as Le,i as Re,ia as ze,jr as Be,kt as Ve,l as He,ln as Ue,mn as We,mr as Ge,mt as Ke,na as qe,nt as Je,o as Ye,oi as Xe,ot as Ze,pn as Qe,pr as $e,pt as et,qi as tt,rt as nt,s as rt,tt as it,un as at,vt as ot,w as st,wi as ct,wr as lt,xr as ut,xt as dt,yr as ft,yt as pt,zi as mt,zr as ht}from"./framework-DFR4HNtj.js";import{f as gt,g as _t,h as vt,i as yt,n as bt,o as xt,p as St,t as Ct,w as wt}from"./i18n-runtime-97_bDVjP.js";import{a as Tt,i as Et,n as Dt,o as Ot,r as kt}from"./vendor-ui-utils-DIUdEYii.js";import{$ as At,$t as jt,A as Mt,At as Nt,B as Pt,Bt as Ft,C as It,Cn as Lt,Ct as Rt,D as zt,Dn as Bt,Dt as Vt,E as Ht,Et as Ut,F as Wt,Ft as Gt,G as Kt,Gt as qt,H as Jt,Ht as Yt,I as Xt,It as Zt,J as Qt,Jt as $t,K as en,Kt as tn,L as nn,Lt as rn,M as an,Mt as on,N as sn,Nt as cn,O as ln,On as un,Ot as dn,P as fn,Pt as pn,Q as mn,Qt as hn,R as gn,Rt as _n,S as vn,Sn as yn,St as bn,T as xn,Tn as Sn,Tt as Cn,U as wn,Ut as Tn,V as En,Vt as Dn,W as On,Wt as kn,X as An,Xt as jn,Y as Mn,Yt as Nn,Z as Pn,Zt as Fn,_ as In,_n as Ln,_t as Rn,a as zn,an as Bn,at as Vn,b as Hn,bn as Un,bt as Wn,c as Gn,cn as Kn,ct as qn,d as Jn,dn as Yn,dt as Xn,en as Zn,et as Qn,f as $n,fn as er,ft as tr,g as nr,gn as rr,gt as ir,h as ar,hn as or,ht as sr,i as cr,in as lr,it as ur,j as dr,jt as fr,k as pr,kt as mr,l as hr,ln as gr,lt as _r,m as vr,mn as yr,mt as br,n as xr,nn as Sr,nt as Cr,o as wr,on as Tr,ot as Er,p as Dr,pn as Or,pt as kr,q as Ar,qt as jr,r as Mr,rn as Nr,rt as Pr,s as Fr,sn as Ir,st as Lr,t as Rr,tn as zr,tt as Br,u as Vr,un as Hr,ut as Ur,v as Wr,vn as Gr,vt as Kr,w as qr,wn as Jr,wt as Yr,x as Xr,xn as Zr,xt as Qr,y as $r,yn as ei,yt as ti,z as ni,zt as ri}from"./vendor-radix-DOLScSH1.js";import{n as ii}from"./vendor-icons-core-B8a8C6zl.js";import{t as ai}from"./vendor-icon-arrow-down-Bo-fuW7k.js";import{t as oi}from"./vendor-icon-arrow-left-DmGEbpkA.js";import{t as si}from"./vendor-icon-arrow-right-RqsZZ458.js";import{t as ci}from"./vendor-icon-arrow-up-down-DdDqplfV.js";import{t as li}from"./vendor-icon-arrow-up-CzdjEQwQ.js";import{t as ui}from"./vendor-icon-box-YdZpEqfe.js";import{t as di}from"./vendor-icon-calendar-BsoUBIef.js";import{t as fi}from"./vendor-icon-camera-Cidjovli.js";import{t as pi}from"./vendor-icon-check-vpu9Zukp.js";import{t as mi}from"./vendor-icon-chevron-down-BEf_jTEE.js";import{t as hi}from"./vendor-icon-chevron-left-KnDcuFH1.js";import{t as gi}from"./vendor-icon-chevron-right-DbnKwHYQ.js";import{t as _i}from"./vendor-icon-chevron-up-C-6o_0je.js";import{t as vi}from"./vendor-icon-chevrons-left-gvlDgS8M.js";import{t as yi}from"./vendor-icon-chevrons-right-lic1nOWF.js";import{t as bi}from"./vendor-icon-chevrons-up-down-CbDukqtA.js";import{t as xi}from"./vendor-icon-circle-alert-D1XTr_X9.js";import{t as Si}from"./vendor-icon-circle-check-Bq3OcFQN.js";import{t as Ci}from"./vendor-icon-circle-dot-vUSXdUmv.js";import{t as wi}from"./vendor-icon-circle-question-mark-LshNGnQH.js";import{t as Ti}from"./vendor-icon-circle-x-Nkh1Yr7N.js";import{t as Ei}from"./vendor-icon-circle-5-gUQbxi.js";import{t as Di}from"./vendor-icon-copy-B5M-KdZo.js";import{t as Oi}from"./vendor-icon-crop-DjMq__1_.js";import{t as ki}from"./vendor-icon-crosshair-B_kbYa88.js";import{t as Ai}from"./vendor-icon-database-C8JGjSkn.js";import{t as ji}from"./vendor-icon-dot-CuUcuxvm.js";import{t as Mi}from"./vendor-icon-download-C3csYSaD.js";import{t as Ni}from"./vendor-icon-ellipsis-BjiiCS3N.js";import{t as Pi}from"./vendor-icon-eraser-CoRaZSKu.js";import{t as Fi}from"./vendor-icon-eye-off-Dy3GIcvl.js";import{t as Ii}from"./vendor-icon-eye-C3HaEGOo.js";import{t as Li}from"./vendor-icon-file-question-mark-CDRVvH3W.js";import{t as Ri}from"./vendor-icon-file-CTChzdTZ.js";import{t as zi}from"./vendor-icon-flag-QWvMhB7L.js";import{t as Bi}from"./vendor-icon-folder-open-mGjBJ_Tq.js";import{t as Vi}from"./vendor-icon-folder-GbhohOfU.js";import{t as Hi}from"./vendor-icon-git-branch-CpQpJlYB.js";import{t as Ui}from"./vendor-icon-grip-vertical-B01-ovq0.js";import{t as Wi}from"./vendor-icon-image-D2YAsa8l.js";import{t as Gi}from"./vendor-icon-inbox-ByVQ4l4S.js";import{t as Ki}from"./vendor-icon-info-DBwRTfSE.js";import{t as qi}from"./vendor-icon-link-2-EAo0juhN.js";import{t as Ji}from"./vendor-icon-loader-circle-D3PsuVaD.js";import{t as Yi}from"./vendor-icon-map-pin-BS-hHv53.js";import{t as Xi}from"./vendor-icon-maximize-2-C215UtMO.js";import{t as Zi}from"./vendor-icon-minus-CMTDFpmk.js";import{t as Qi}from"./vendor-icon-octagon-x-DJaJymPi.js";import{t as $i}from"./vendor-icon-panel-left-Cml87N0K.js";import{t as ea}from"./vendor-icon-phone-H1S8HSi1.js";import{t as ta}from"./vendor-icon-plus-BlfcDDsa.js";import{t as na}from"./vendor-icon-qr-code-mzDrPZIo.js";import{t as ra}from"./vendor-icon-redo-2-BJ-uEK0D.js";import{t as ia}from"./vendor-icon-refresh-cw-BGjSPEfJ.js";import{t as aa}from"./vendor-icon-rocket-9sBBTCrW.js";import{t as oa}from"./vendor-icon-rotate-ccw-lr5YKsxC.js";import{t as sa}from"./vendor-icon-rotate-cw-piooiFbz.js";import{t as ca}from"./vendor-icon-save-CuavGNuU.js";import{t as la}from"./vendor-icon-search-B2Uqtp_W.js";import{t as ua}from"./vendor-icon-settings-CYQ7xc_F.js";import{t as da}from"./vendor-icon-shield-check-CdDzbial.js";import{t as fa}from"./vendor-icon-shield-off-DSQNn8og.js";import{t as pa}from"./vendor-icon-sliders-horizontal-BsnKXU0c.js";import{t as ma}from"./vendor-icon-square-dashed-BUavjoUM.js";import{t as ha}from"./vendor-icon-square-pen-CrYOuw6J.js";import{t as ga}from"./vendor-icon-star-DfusowFE.js";import{t as _a}from"./vendor-icon-table-properties-DiJhrFZ3.js";import{t as va}from"./vendor-icon-trash-BLsWkwB9.js";import{t as ya}from"./vendor-icon-trending-down-C8VFA2s8.js";import{t as ba}from"./vendor-icon-trending-up-CBQiG1_M.js";import{t as xa}from"./vendor-icon-triangle-alert-D5n0T3q_.js";import{t as Sa}from"./vendor-icon-undo-2-C9MbW2Vb.js";import{t as Ca}from"./vendor-icon-upload-BZ3rElxe.js";import{t as wa}from"./vendor-icon-workflow-B9ASq0nN.js";import{t as Ta}from"./vendor-icon-x-CcLtgRNL.js";import{a as Ea,m as Da,p as Oa}from"./vendor-markdown-COJFQ_GI.js";var q=e(i(),1),J=r();(0,q.createContext)(null),(0,q.createContext)(null),(0,q.createContext)(null);var ka=(0,q.createContext)(null);function Aa(){return{name:`object-url`,async upload(e){let t=e,n=`name`in t&&t.name||`upload`;return{url:URL.createObjectURL(e),name:n,size:e.size,mimeType:e.type||`application/octet-stream`}}}}function ja(e={}){let t=e.fetchImpl??fetch,n=(e.baseUrl??``).replace(/\/$/,``),r=e.basePath??`/api/v1/storage`,i=e.credentials??`include`,a=e=>/^https?:/i.test(e)?e:`${n}${e}`;return{name:`objectstack-presigned`,async upload(n,o={}){let s=n,c=`name`in s&&s.name||`upload`,l=n.type||`application/octet-stream`,u=await t(a(`${r}/upload/presigned`),{method:`POST`,credentials:i,headers:{"Content-Type":`application/json`},signal:o.signal,body:JSON.stringify({filename:c,mimeType:l,size:n.size,scope:e.scope??o.path})});if(!u.ok){let e=await u.text().catch(()=>``);throw Error(`Presigned upload request failed (${u.status}): ${e||u.statusText}`)}let d=await u.json(),{uploadUrl:f,fileId:p,headers:m}=d?.data??d;if(!f||!p)throw Error(`Presigned upload response missing uploadUrl/fileId`);await Ma(t,a(f),n,{method:`PUT`,headers:{"Content-Type":l,...m??{}},...o});let h=await t(a(`${r}/upload/complete`),{method:`POST`,credentials:i,headers:{"Content-Type":`application/json`},signal:o.signal,body:JSON.stringify({fileId:p})});if(!h.ok){let e=await h.text().catch(()=>``);throw Error(`Upload completion failed (${h.status}): ${e||h.statusText}`)}return{url:a(`${r}/files/${encodeURIComponent(p)}`),name:c,size:n.size,mimeType:l,meta:{fileId:p,scope:e.scope??o.path}}}}}async function Ma(e,t,n,r){let i=r.maxRetries??3,a=r.retryDelayMs??500,o=0;for(;;){if(r.signal?.aborted)throw new DOMException(`aborted`,`AbortError`);try{if(typeof XMLHttpRequest<`u`&&r.onProgress)await Na(t,n,r);else{let i=await e(t,{method:r.method,body:n,headers:r.headers,signal:r.signal});if(!i.ok)throw Error(`Upload failed with status ${i.status}`);r.onProgress?.(1)}return}catch(e){if(e?.name===`AbortError`||o>=i)throw e;let t=a*2**o;o++,await new Promise(e=>setTimeout(e,t))}}}function Na(e,t,n){return new Promise((r,i)=>{let a=new XMLHttpRequest;if(a.open(n.method,e),n.headers)for(let[e,t]of Object.entries(n.headers))a.setRequestHeader(e,t);a.upload.onprogress=e=>{e.lengthComputable&&n.onProgress&&n.onProgress(e.loaded/e.total)},a.onload=()=>{a.status>=200&&a.status<300?(n.onProgress?.(1),r()):i(Error(`Upload failed with status ${a.status}`))},a.onerror=()=>i(Error(`Network error during upload`)),a.onabort=()=>i(new DOMException(`aborted`,`AbortError`)),n.signal&&(n.signal.aborted?a.abort():n.signal.addEventListener(`abort`,()=>a.abort(),{once:!0})),a.send(t)})}var Pa=({adapter:e,children:t})=>{let n=(0,q.useRef)(e??Aa());(0,q.useEffect)(()=>{e&&(n.current=e)},[e]);let r=(0,q.useCallback)((e,t)=>n.current.upload(e,t),[]),i=(0,q.useMemo)(()=>({upload:r,adapter:n.current}),[r]);return(0,J.jsx)(ka.Provider,{value:i,children:t})};function Fa(){let e=(0,q.useContext)(ka),t=(0,q.useMemo)(()=>{let e=Aa();return{upload:(t,n)=>e.upload(t,n),adapter:e}},[]);return e??t}p();function Y(...e){return Tt(Ot(e))}function Ia(e){return!e||Array.isArray(e)&&e.length===0}function La(e,t){return Ia(e)?null:t(e)}function Ra(e){return Ia(e)?null:typeof e==`string`||typeof e==`number`?e:Array.isArray(e)?e.length===1?(0,J.jsx)(Ie,{schema:e[0]}):e.map((e,t)=>(0,J.jsx)(Ie,{schema:e},e.id||t)):(0,J.jsx)(Ie,{schema:e})}function za(e,t){return La(t,t=>{let n=Ra(t);return(0,J.jsx)(e,{asChild:q.isValidElement(n),children:n})})}var Ba=(0,q.forwardRef)(({schema:e,className:t,...n},r)=>{let{"data-obj-id":i,"data-obj-type":a,style:o,...s}=n;return(0,J.jsx)(`div`,{ref:r,className:t,...s,"data-obj-id":i,"data-obj-type":a,style:o,children:Ra(e.children)})});K.register(`div`,Ba,{namespace:`ui`,label:`Container (Deprecated)`,deprecated:{surfaces:[`json`,`html`],replacement:'author "box" for a plain wrapper — the one drop-in swap; reach for "card", "flex", "container", "stack" or "grid" only when you want their layout, and move `body` content into `children` first'},inputs:[{name:`className`,type:`string`},{name:`children`,type:`slot`}],defaultProps:{className:`p-2 sm:p-4 border border-dashed border-gray-300 rounded min-h-[100px]`}});var Va={h1:`text-4xl font-semibold tracking-tight`,h2:`text-3xl font-semibold tracking-tight`,h3:`text-2xl font-semibold tracking-tight`,h4:`text-xl font-semibold tracking-tight`,h5:`text-lg font-semibold tracking-tight`,h6:`text-base font-semibold tracking-tight`,body:`text-sm text-foreground`,caption:`text-xs text-muted-foreground`,overline:`text-xs font-medium uppercase tracking-widest text-muted-foreground`},Ha={h1:`h1`,h2:`h2`,h3:`h3`,h4:`h4`,h5:`h5`,h6:`h6`,body:`span`,caption:`span`,overline:`span`},Ua={left:`block text-left`,center:`block text-center`,right:`block text-right`,justify:`block text-justify`};K.register(`text`,({schema:e,...t})=>{let{style:n,...r}=t,i=r[`data-obj-id`],a=Y(e.variant?Va[e.variant]:void 0,e.align?Ua[e.align]:void 0,e.className||r.className)||void 0;if(i||a){let t=e.variant&&Ha[e.variant]||`span`;return(0,J.jsx)(t,{...mt(r),style:n,className:a,children:e.content})}return(0,J.jsx)(J.Fragment,{children:e.content})},{namespace:`ui`,label:`Text`,inputs:[{name:`content`,type:`string`,required:!0},{name:`variant`,type:`enum`,enum:[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`body`,`caption`,`overline`]},{name:`align`,type:`enum`,enum:[`left`,`center`,`right`,`justify`]}],defaultProps:{content:`Text content`}});var Wa=Symbol.for(`@object-ui/sdui-parser.html-tier-node`);function Ga(e){return e[Wa]=!0,e}function Ka(e){return typeof e==`object`&&!!e&&e[Wa]===!0}var qa=/^on[A-Z]/,Ja=new Set([`dangerouslySetInnerHTML`,`ref`,`key`]),Ya=`type`;function Xa(e,t={}){return new $a(e,t).parseDocument()}var Za=e=>/[A-Za-z]/.test(e),Qa=e=>/[A-Za-z0-9:_-]/.test(e),$a=class{src;opts;pos=0;diagnostics=[];constructor(e,t){this.src=e,this.opts=t}parseDocument(){if(this.skipTrivia(),this.peek()!==`<`)return this.error(`no-root`,`Expected a single root element`),{tree:null,diagnostics:this.diagnostics};let e=this.parseElement();return this.skipTrivia(),e&&this.pos<this.src.length&&this.error(`multiple-roots`,`A page must have exactly one root element`,this.pos),{tree:e,diagnostics:this.diagnostics}}parseElement(){let e=this.pos;if(!this.eat(`<`))return this.error(`expected-element`,`Expected "<"`,e),null;let t=this.readName();if(!t)return this.error(`bad-tag`,`Expected a tag name after "<"`,e),null;this.opts.allowedTags&&!this.opts.allowedTags.has(t)&&this.error(`forbidden-tag`,`<${t}> is not an allowed component`,e,t);let n={};for(;;){this.skipWs();let r=this.peek();if(r===``||r===`>`||r===`/`)break;let i=this.parseAttr(e,t);if(!i)break;i.drop||(n[i.name]=i.value)}this.skipWs();let r;this.eat(`/`)?this.eat(`>`)||this.error(`bad-self-close`,`Malformed self-closing <${t}>`,this.pos,t):this.eat(`>`)?r=this.parseChildren(t):this.error(`unterminated-open-tag`,`Unterminated <${t}> open tag`,e,t);let i=Ga({...n,type:t});return r&&r.length&&(i.children=r),i}parseAttr(e,t){let n=this.readName();if(!n)return this.error(`bad-attr`,`Malformed attribute on <${t}>`,this.pos,t),this.pos++,null;this.skipWs();let r=!0;return this.eat(`=`)&&(this.skipWs(),r=this.parseAttrValue(t)),n===Ya?(this.error(`forbidden-attr`,`Attribute "${Ya}" is not allowed on <${t}> — on this tier the tag name IS the component, so <${t}> already means type "${t}". Delete the attribute, or write the tag of the component you meant.`,e,t),{name:n,value:void 0,drop:!0}):qa.test(n)||Ja.has(n)?(this.error(`forbidden-attr`,`Attribute "${n}" is not allowed on <${t}>`,e,t),{name:`__forbidden_${n}`,value:void 0}):{name:n,value:r}}parseAttrValue(e){let t=this.peek();if(t===`"`||t===`'`)return this.readString(t);if(t===`{`)return eo(this.readBraced());this.error(`bad-attr-value`,`Expected an attribute value on <${e}>`,this.pos,e)}parseChildren(e){let t=[];for(;;){if(this.pos>=this.src.length){this.error(`unclosed-element`,`Unclosed <${e}>`,this.pos,e);break}if(this.src.startsWith(`</`,this.pos)){this.pos+=2,this.skipWs();let t=this.readName();this.skipWs(),this.eat(`>`),t!==e&&this.error(`mismatched-tag`,`Expected </${e}> but found </${t}>`,this.pos,e);break}if(this.src.startsWith(`{/*`,this.pos)){let e=this.src.indexOf(`*/}`,this.pos);e===-1?(this.error(`unclosed-comment`,`Unclosed comment`,this.pos),this.pos=this.src.length):this.pos=e+3;continue}if(this.peek()===`<`){let e=this.parseElement();e&&t.push(e);continue}if(this.peek()===`{`){let e=this.pos;this.readBraced(),this.error(`expression-child`,`Inline {expression} children are not supported yet — bind via a component prop`,e);continue}let n=this.readTextRun().replace(/\s+/g,` `),r=n.trim(),i=t.length>0,a=this.peek()===`<`&&!this.src.startsWith(`</`,this.pos);if(r){let e=i&&n.startsWith(` `)?` `:``,o=a&&n.endsWith(` `)?` `:``;t.push(`${e}${r}${o}`)}else n&&i&&a&&t.push(` `)}return t}peek(){return this.pos<this.src.length?this.src[this.pos]:``}eat(e){return this.src[this.pos]===e&&(this.pos++,!0)}readName(){if(!Za(this.peek()))return``;let e=this.pos;for(this.pos++;this.pos<this.src.length&&Qa(this.src[this.pos]);)this.pos++;return this.src.slice(e,this.pos)}readString(e){this.pos++;let t=this.pos;for(;this.pos<this.src.length&&this.src[this.pos]!==e;)this.pos++;let n=this.src.slice(t,this.pos);return this.eat(e)||this.error(`unterminated-string`,`Unterminated string literal`,t),n}readBraced(){let e=this.pos,t=0,n=null;for(;this.pos<this.src.length;this.pos++){let r=this.src[this.pos];if(n){r===n&&this.src[this.pos-1]!==`\\`&&(n=null);continue}if(r===`"`||r===`'`)n=r;else if(r===`{`)t++;else if(r===`}`&&(t--,t===0)){let t=this.src.slice(e+1,this.pos);return this.pos++,t}}return this.error(`unterminated-brace`,`Unterminated "{"`,e),this.src.slice(e+1)}readTextRun(){let e=this.pos;for(;this.pos<this.src.length&&this.src[this.pos]!==`<`&&this.src[this.pos]!==`{`;)this.pos++;return this.src.slice(e,this.pos)}skipWs(){for(;this.pos<this.src.length&&/\s/.test(this.src[this.pos]);)this.pos++}skipTrivia(){for(;;){if(this.skipWs(),this.src.startsWith(`{/*`,this.pos)){let e=this.src.indexOf(`*/}`,this.pos);this.pos=e===-1?this.src.length:e+3;continue}break}}error(e,t,n,r){this.diagnostics.push({severity:`error`,code:e,message:t,start:n??this.pos,tag:r})}};function eo(e){let t=e.trim();try{return JSON.parse(t)}catch{let e=so(t);return e===to?{$expr:t}:e}}var to=Symbol(`not-a-literal`),no=/[ \t\n\r]/,ro=/[A-Za-z_$]/,io=/[A-Za-z0-9_$]/,ao=/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?/,oo={'"':`"`,"\\":`\\`,"/":`/`,b:`\b`,f:`\f`,n:`
|
|
2
|
+
`,r:`\r`,t:` `};function so(e){let t=new co(e),n=t.value();return n===to?to:(t.ws(),t.done()?n:to)}var co=class{src;pos=0;constructor(e){this.src=e}done(){return this.pos>=this.src.length}ws(){for(;this.pos<this.src.length&&no.test(this.src[this.pos]);)this.pos++}value(){this.ws();let e=this.src[this.pos];return e===void 0?to:e===`"`||e===`'`?this.string(e):e===`[`?this.array():e===`{`?this.object():this.keyword(`true`)?!0:this.keyword(`false`)?!1:this.keyword(`null`)?null:this.number()}keyword(e){if(!this.src.startsWith(e,this.pos))return!1;let t=this.src[this.pos+e.length];return t!==void 0&&io.test(t)?!1:(this.pos+=e.length,!0)}number(){let e=ao.exec(this.src.slice(this.pos));return e?(this.pos+=e[0].length,Number(e[0])):to}string(e){this.pos++;let t=``;for(;;){let n=this.src[this.pos];if(n===void 0)return to;if(n===e)return this.pos++,t;if(n===`\\`){let n=this.src[this.pos+1];if(n===void 0)return to;if(n===`u`){let e=this.src.slice(this.pos+2,this.pos+6);if(!/^[0-9a-fA-F]{4}$/.test(e))return to;t+=String.fromCharCode(parseInt(e,16)),this.pos+=6;continue}if(n===`'`&&e===`'`){t+=`'`,this.pos+=2;continue}let r=oo[n];if(r===void 0)return to;t+=r,this.pos+=2;continue}if(n<` `)return to;t+=n,this.pos++}}array(){this.pos++;let e=[];if(this.ws(),this.src[this.pos]===`]`)return this.pos++,e;for(;;){let t=this.value();if(t===to)return to;e.push(t),this.ws();let n=this.src[this.pos];if(n===`,`){this.pos++;continue}return n===`]`?(this.pos++,e):to}}object(){this.pos++;let e={};if(this.ws(),this.src[this.pos]===`}`)return this.pos++,e;for(;;){this.ws();let t=this.key();if(t===to||(this.ws(),this.src[this.pos]!==`:`))return to;this.pos++;let n=this.value();if(n===to)return to;Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0}),this.ws();let r=this.src[this.pos];if(r===`,`){this.pos++;continue}return r===`}`?(this.pos++,e):to}}key(){let e=this.src[this.pos];if(e===`"`||e===`'`)return this.string(e);if(e!==void 0&&ro.test(e)){let e=this.pos;for(this.pos++;this.pos<this.src.length&&io.test(this.src[this.pos]);)this.pos++;return this.src.slice(e,this.pos)}return to}},lo=new Set([`string`,`number`,`boolean`,`enum`,`array`,`object`,`color`,`date`,`code`,`file`,`slot`]);function uo(e){return e===void 0?[]:Array.isArray(e)?e:[e]}function fo(e){let t=(Array.isArray(e)?e:[e]).filter(e=>typeof e==`string`&&lo.has(e)),n=[...new Set(t)];return n.length===0?`string`:n.length===1?n[0]:n}var po=`unconsumed-widget-option`,mo=new Set([`dashboard`,`dashboard-grid`]),ho=[`dateGranularity`,`description`,`limit`,`sortBy`,`sortOrder`,`stageOrder`],go=new Set(ho),_o=e=>typeof e==`object`&&!!e&&!Array.isArray(e),vo=e=>_o(e)&&`$expr`in e;function yo(e){if(!mo.has(e.type))return[];let t=e.widgets;if(!Array.isArray(t))return[];let n=[];return t.forEach((t,r)=>{if(!_o(t)||vo(t)||t.component!==void 0||t.dataset===void 0||t.dataset===null||t.dataset===``)return;let i=t.options;if(!_o(i)||vo(i)||Array.isArray(t.suppressWarnings)&&t.suppressWarnings.includes(`unconsumed-widget-option`))return;let a=typeof t.id==`string`&&t.id!==``?t.id:`#${r}`,o=typeof t.type==`string`&&t.type!==``?t.type:`widget`;for(let t of Object.keys(i))go.has(t)||n.push({severity:`warning`,code:po,message:`<${e.type}> widget "${a}" (${o}): options.${t} reaches no renderer — dashboard widget renderers read only: ${ho.join(`, `)}`,tag:e.type})}),n}var bo=e=>typeof e==`object`&&!!e&&!Array.isArray(e),xo=e=>Array.isArray(e)||bo(e);function So(e,t,n,r){return t===`body`?xo(n)&&!r?{severity:`warning`,code:`not-a-container`,message:`<${e}> does not accept children — and "body" is the retired spelling of "children" (objectui#6771), so this child list has no door here at all`,tag:e}:{severity:`warning`,code:`unknown-prop`,message:`<${e}> has no prop "body" — the child-list key is "children" ("body" was retired by objectui#6771)`,tag:e}:null}var Co=`children`;function wo(e){return e.inputs.some(e=>e.name===Co)}var To=Object.freeze([{name:`type`,scope:`every-node`,tsType:null},{name:`id`,scope:`every-node`,tsType:`string`},{name:`className`,scope:`every-node`,tsType:`string`},{name:`style`,scope:`every-node`,tsType:`Record<string, unknown>`},{name:`visible`,scope:`every-node`,tsType:`boolean`},{name:`visibleWhen`,scope:`every-node`,tsType:`string`},{name:`visibleOn`,scope:`every-node`,tsType:`string`},{name:`hidden`,scope:`every-node`,tsType:`boolean`},{name:`hiddenOn`,scope:`every-node`,tsType:`string`},{name:`disabled`,scope:`every-node`,tsType:`boolean`},{name:`disabledOn`,scope:`every-node`,tsType:`string`},{name:`bind`,scope:`every-node`,tsType:`string`},{name:`testId`,scope:`every-node`,tsType:`string`},{name:Co,scope:`every-node`,tsType:`unknown`},{name:`name`,scope:`where-undeclared`,tsType:`string`},{name:`label`,scope:`where-undeclared`,tsType:`string | Record<string, string>`},{name:`description`,scope:`where-undeclared`,tsType:`string | Record<string, string>`},{name:`placeholder`,scope:`where-undeclared`,tsType:`string`},{name:`data`,scope:`where-undeclared`,tsType:`unknown`},{name:`ariaLabel`,scope:`where-undeclared`,tsType:`string | { key: string; defaultValue?: string; params?: Record<string, unknown> }`}]),Eo=e=>new Set(To.filter(t=>t.scope===e).map(e=>e.name)),Do=Eo(`every-node`),Oo=Eo(`where-undeclared`),ko=e=>typeof e==`object`&&!!e&&`$expr`in e;function Ao(e,t){let n=[],r=new Set,i=[],a=e=>{if(typeof e==`string`)return;let o=t.components[e.type];if(!o)n.push({severity:`error`,code:`unknown-component`,message:`<${e.type}> is not a known component`,tag:e.type});else{o.namespace&&r.add(o.namespace);let t=new Map(o.inputs.map(e=>[e.name,e]));for(let t of o.inputs)t.required&&!(t.name in e)&&n.push({severity:`error`,code:`missing-required-prop`,message:`<${e.type}> is missing required prop "${t.name}"`,tag:e.type});for(let[r,a]of Object.entries(e)){if(Do.has(r)||Oo.has(r)&&!t.has(r))continue;let s=t.get(r);if(!s){let t=So(e.type,r,a,wo(o));n.push(t??{severity:`warning`,code:`unknown-prop`,message:`<${e.type}> has no prop "${r}"`,tag:e.type});continue}if(s.binding&&i.push({tag:e.type,input:r,kind:s.binding,value:a}),ko(a))n.push({severity:`warning`,code:`inert-expression`,message:`<${e.type}> prop "${r}" is a braced expression this tier never evaluates — the value will be silently ignored at render. This tier materializes LITERALS only (strings, numbers, booleans, null, arrays, objects; quotes may be single or double, object keys may be unquoted), e.g. columns={['name','amount']} works — columns={rows.map((r) => r.name)} cannot`,tag:e.type});else{let t=Io(e.type,s,a);if(t)n.push(t);else{let t=Fo(e.type,s,a);t&&n.push(t)}}}e.children?.length&&!wo(o)&&n.push({severity:`warning`,code:`not-a-container`,message:`<${e.type}> does not accept children`,tag:e.type}),n.push(...yo(e))}e.children&&e.children.forEach(a)};return e&&a(e),{diagnostics:n,requires:[...r],bindings:i}}var jo=e=>(e.enum??[]).map(e=>typeof e==`object`?e.value:e);function Mo(e,t,n){switch(e){case`number`:return typeof n==`number`;case`boolean`:return typeof n==`boolean`;case`string`:case`color`:case`date`:case`code`:case`file`:return typeof n==`string`;case`array`:return Array.isArray(n);case`object`:return typeof n==`object`&&!!n&&!Array.isArray(n);case`enum`:return jo(t).includes(n);default:return!0}}function No(e,t){switch(e){case`number`:return`a number`;case`boolean`:return`a boolean`;case`array`:return`an array`;case`object`:return`an object`;case`enum`:return`one of ${JSON.stringify(jo(t))}`;default:return`a string`}}function Po(e){return Array.isArray(e)?e.map((e,t)=>[String(t),e]):typeof e==`object`&&e?Object.entries(e):null}function Fo(e,t,n){let r=uo(t.of);if(r.length===0)return null;let i=Po(n);if(i===null)return null;let a=i.filter(([,e])=>!r.some(n=>Mo(n,t,e)));if(a.length===0)return null;let o=r.map(e=>No(e,t)).join(` or `);return{severity:r.includes(`enum`)?`error`:`warning`,code:`member-type-mismatch`,message:`<${e}> prop "${t.name}" expected every member to be ${o} — ${a.map(([e])=>`[${e}]`).join(`, `)} ${a.length===1?`is`:`are`} not`,tag:e}}function Io(e,t,n){let r=uo(t.type);return r.length===0||r.some(e=>Mo(e,t,n))?null:r.length===1&&r[0]===`enum`?{severity:`error`,code:`invalid-enum`,message:`<${e}> prop "${t.name}"=${JSON.stringify(n)} is not one of ${JSON.stringify(jo(t))}`,tag:e}:{severity:r.includes(`enum`)?`error`:`warning`,code:`type-mismatch`,message:`<${e}> prop "${t.name}" expected ${r.map(e=>No(e,t)).join(` or `)}`,tag:e}}function Lo(e,t){let n=Xa(e,{allowedTags:new Set(Object.keys(t.components))}),r=Ao(n.tree,t),i=[...n.diagnostics,...r.diagnostics];return{tree:n.tree,diagnostics:i,requires:r.requires,bindings:r.bindings,ok:!i.some(e=>e.severity===`error`)}}function Ro(e,t={}){let n={};for(let r of e)(!t.only||t.only.has(r.type))&&(t.publicOnly&&r.tier!==`public`||(n[r.type]={type:r.type,namespace:r.namespace,isContainer:r.isContainer,tier:r.tier===`html`?`html`:void 0,inputs:(r.inputs??[]).map(e=>({name:e.name,type:fo(e.type),of:e.of===void 0?void 0:fo(e.of),required:e.required,enum:e.enum,binding:e.binding,description:e.description}))}));return{components:n}}var zo=(0,q.forwardRef)(({schema:e,className:t,...n},r)=>{Ka(e);let{"data-obj-id":i,"data-obj-type":a,style:o,...s}=n;return(0,J.jsx)(`span`,{ref:r,className:t,...s,"data-obj-id":i,"data-obj-type":a,style:o,children:Ra(e.children)||e.value})});K.register(`span`,zo,{namespace:`ui`,label:`Inline Container (Deprecated)`,deprecated:{surfaces:[`json`],replacement:`use "badge" for labels, or "text" with a className for inline emphasis`},inputs:[{name:`className`,type:`string`},{name:`children`,type:`slot`,description:"Inline content, rendered ahead of `value`"}],defaultProps:{className:`px-1.5 py-0.5 sm:px-2 sm:py-1`}});var Bo=ei,Vo=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(Gr,{ref:n,className:Y(`border-b`,e),...t}));Vo.displayName=`AccordionItem`;var Ho=q.forwardRef(({className:e,children:t,...n},r)=>(0,J.jsx)(Ln,{className:`flex`,children:(0,J.jsxs)(Un,{ref:r,className:Y(`flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180`,e),...n,children:[t,(0,J.jsx)(mi,{className:`h-4 w-4 shrink-0 transition-transform duration-200`})]})}));Ho.displayName=Un.displayName;var Uo=q.forwardRef(({className:e,children:t,...n},r)=>(0,J.jsx)(rr,{ref:r,className:`overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down`,...n,children:(0,J.jsx)(`div`,{className:Y(`pb-4 pt-0`,e),children:t})}));Uo.displayName=rr.displayName;var Wo=Et(`inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/90`,destructive:`bg-destructive text-destructive-foreground hover:bg-destructive/90`,outline:`border border-input bg-background hover:bg-accent hover:text-accent-foreground`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-10 px-4 py-2`,sm:`h-9 rounded-md px-3`,lg:`h-11 rounded-md px-8`,icon:`h-10 w-10`}},defaultVariants:{variant:`default`,size:`default`}}),X=q.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},a)=>(0,J.jsx)(r?Bt:`button`,{className:Y(Wo({variant:t,size:n,className:e})),ref:a,...i}));X.displayName=`Button`;var Go=Bn,Ko=Ir,qo=lr,Jo=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(Nr,{className:Y(`fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,e),...t,ref:n}));Jo.displayName=Nr.displayName;var Yo=q.forwardRef(({className:e,...t},n)=>(0,J.jsxs)(qo,{children:[(0,J.jsx)(Jo,{}),(0,J.jsx)(zr,{ref:n,className:Y(`fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg`,e),...t})]}));Yo.displayName=zr.displayName;var Xo=({className:e,...t})=>(0,J.jsx)(`div`,{className:Y(`flex flex-col space-y-2 text-center sm:text-left`,e),...t});Xo.displayName=`AlertDialogHeader`;var Zo=({className:e,...t})=>(0,J.jsx)(`div`,{className:Y(`flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2`,e),...t});Zo.displayName=`AlertDialogFooter`;var Qo=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(Tr,{ref:n,className:Y(`text-lg font-semibold`,e),...t}));Qo.displayName=Tr.displayName;var $o=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(Sr,{ref:n,className:Y(`text-sm text-muted-foreground`,e),...t}));$o.displayName=Sr.displayName;var es=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(jt,{ref:n,className:Y(Wo(),e),...t}));es.displayName=jt.displayName;var ts=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(Zn,{ref:n,className:Y(Wo({variant:`outline`}),`mt-2 sm:mt-0`,e),...t}));ts.displayName=Zn.displayName;var ns=Et(`relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground`,{variants:{variant:{default:`bg-background text-foreground`,destructive:`border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive`}},defaultVariants:{variant:`default`}}),rs=q.forwardRef(({className:e,variant:t,...n},r)=>(0,J.jsx)(`div`,{ref:r,role:`alert`,className:Y(ns({variant:t}),e),...n}));rs.displayName=`Alert`;var is=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`h5`,{ref:n,className:Y(`mb-1 font-medium leading-none tracking-tight`,e),...t}));is.displayName=`AlertTitle`;var as=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`div`,{ref:n,className:Y(`text-sm [&_p]:leading-relaxed`,e),...t}));as.displayName=`AlertDescription`;var os=hn,ss=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(Nn,{ref:n,className:Y(`relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full`,e),...t}));ss.displayName=Nn.displayName;var cs=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(Fn,{ref:n,className:Y(`aspect-square h-full w-full`,e),...t}));cs.displayName=Fn.displayName;var ls=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(jn,{ref:n,className:Y(`flex h-full w-full items-center justify-center rounded-full bg-muted`,e),...t}));ls.displayName=jn.displayName;var us=Et(`inline-flex items-center whitespace-nowrap rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2`,{variants:{variant:{default:`border-transparent bg-primary text-primary-foreground hover:bg-primary/80`,secondary:`border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80`,destructive:`border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80`,outline:`text-foreground`}},defaultVariants:{variant:`default`}});function ds({className:e,variant:t,...n}){return(0,J.jsx)(`div`,{className:Y(us({variant:t}),e),...n})}var fs=q.forwardRef(({...e},t)=>(0,J.jsx)(`nav`,{ref:t,"aria-label":`breadcrumb`,...e}));fs.displayName=`Breadcrumb`;var ps=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`ol`,{ref:n,className:Y(`flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5`,e),...t}));ps.displayName=`BreadcrumbList`;var ms=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`li`,{ref:n,className:Y(`inline-flex items-center gap-1.5`,e),...t}));ms.displayName=`BreadcrumbItem`;var hs=q.forwardRef(({asChild:e,className:t,...n},r)=>(0,J.jsx)(e?Bt:`a`,{ref:r,className:Y(`transition-colors hover:text-foreground`,t),...n}));hs.displayName=`BreadcrumbLink`;var gs=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`span`,{ref:n,role:`link`,"aria-disabled":`true`,"aria-current":`page`,className:Y(`font-normal text-foreground`,e),...t}));gs.displayName=`BreadcrumbPage`;var _s=({children:e,className:t,...n})=>(0,J.jsx)(`li`,{role:`presentation`,"aria-hidden":`true`,className:Y(`[&>svg]:w-3.5 [&>svg]:h-3.5`,t),...n,children:e??(0,J.jsx)(gi,{})});_s.displayName=`BreadcrumbSeparator`;var vs=({className:e,...t})=>(0,J.jsxs)(`span`,{role:`presentation`,"aria-hidden":`true`,className:Y(`flex h-9 w-9 items-center justify-center`,e),...t,children:[(0,J.jsx)(Ni,{className:`h-4 w-4`}),(0,J.jsx)(`span`,{className:`sr-only`,children:`More`})]});vs.displayName=`BreadcrumbElipssis`;function ys(e,t,n=`long`){return new Intl.DateTimeFormat(`en-US`,{hour:`numeric`,timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(` `)}var bs={},xs={};function Ss(e,t){try{let n=(bs[e]||=new Intl.DateTimeFormat(`en-US`,{timeZone:e,timeZoneName:`longOffset`}).format)(t).split(`GMT`)[1];return n in xs?xs[n]:ws(n,n.split(`:`))}catch{if(e in xs)return xs[e];let t=e?.match(Cs);return t?ws(e,t.slice(1)):NaN}}var Cs=/([+-]\d\d):?(\d\d)?/;function ws(e,t){let n=+(t[0]||0),r=+(t[1]||0),i=(t[2]||0)/60;return xs[e]=n*60+r>0?n*60+r+i:n*60-r-i}var Ts=class e extends Date{constructor(...e){super(),e.length>1&&typeof e[e.length-1]==`string`&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(Ss(this.timeZone,this))?this.setTime(NaN):e.length?typeof e[0]==`number`&&(e.length===1||e.length===2&&typeof e[1]!=`number`)?this.setTime(e[0]):typeof e[0]==`string`?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),ks(this,e)):this.setTime(Date.now())}static tz(t,...n){return n.length?new e(...n,t):new e(Date.now(),t)}withTimeZone(t){return new e(+this,t)}getTimezoneOffset(){let e=-Ss(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),Ds(this),+this}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}},Es=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!Es.test(e))return;let t=e.replace(Es,`$1UTC`);Ts.prototype[t]&&(e.startsWith(`get`)?Ts.prototype[e]=function(){return this.internal[t]()}:(Ts.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),Os(this),+this},Ts.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Ds(this),+this}))});function Ds(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-Ss(e.timeZone,e)*60))}function Os(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),ks(e)}function ks(e,t){let n=Array.isArray(t)?As(t):+e.internal,r=Ss(e.timeZone,e),i=r>0?Math.floor(r):Math.ceil(r),a=new Date(+e);a.setUTCHours(a.getUTCHours()-1);let o=-new Date(+e).getTimezoneOffset(),s=-new Date(+a).getTimezoneOffset(),c=o-s,l=o;if(c&&o!==i&&Date.prototype.getHours.apply(e)!==(Array.isArray(t)?t[3]||0:e.internal.getUTCHours())){let t=new Date(+e),n=o-i;n&&t.setUTCMinutes(t.getUTCMinutes()+n);let r=Ss(e.timeZone,t);(r>0?Math.floor(r):Math.ceil(r))===i&&(l=s)}let u=l-i;u&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+u);let d=new Date(+e);d.setUTCSeconds(0);let f=o>0?d.getSeconds():(d.getSeconds()-60)%60,p=Math.round(-(Ss(e.timeZone,e)*60))%60;(p||f)&&Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+p+f);let m=Ss(e.timeZone,e),h=m>0?Math.floor(m):Math.ceil(m),g=-new Date(+e).getTimezoneOffset()-h,_=h!==i,v=g-u,y=h-i,b=n-h*60*1e3,x=y>0&&js(e)-n===y*60*1e3&&js(e,b)!==n;if(_&&v&&!x){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+v);let t=Ss(e.timeZone,e),n=h-(t>0?Math.floor(t):Math.ceil(t));n&&v<0&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+n)}Ds(e);let S=(t?n:n+p*1e3)-+e.internal;S&&Math.abs(S)<18e5&&(Date.prototype.setTime.call(e,+e+S),Ds(e))}function As(e){return Date.UTC(e[0],e.length>1?e[1]:0,e.length>2?e[2]:1,...e.slice(3))}function js(e,t){let n=new Date(t??+e);return n.setUTCSeconds(n.getUTCSeconds()-Math.round(-Ss(e.timeZone,n)*60)),+n}var Ms=class e extends Ts{static tz(t,...n){return n.length?new e(...n,t):new e(Date.now(),t)}toISOString(){let[e,t,n]=this.tzComponents(),r=`${e}${t}:${n}`;return this.internal.toISOString().slice(0,-1)+r}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){let[e,t,n,r]=this.internal.toUTCString().split(` `);return`${e?.slice(0,-1)} ${n} ${t} ${r}`}toTimeString(){let e=this.internal.toUTCString().split(` `)[4],[t,n,r]=this.tzComponents();return`${e} GMT${t}${n}${r} (${ys(this.timeZone,this)})`}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}tzComponents(){let e=this.getTimezoneOffset();return[e>0?`-`:`+`,String(Math.floor(Math.abs(e)/60)).padStart(2,`0`),String(Math.abs(e)%60).padStart(2,`0`)]}withTimeZone(t){return new e(+this,t)}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}},Ns=365.2425,Ps=6048e5,Fs=864e5,Is=86400;Is*7,Is*Ns/12*3;var Ls=Symbol.for(`constructDateFrom`);function Rs(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&Ls in e?e[Ls](t):e instanceof Date?new e.constructor(t):new Date(t)}function zs(e,t){return Rs(t||e,e)}function Bs(e,t,n){let r=zs(e,n?.in);return isNaN(t)?Rs(n?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function Vs(e,t,n){let r=zs(e,n?.in);if(isNaN(t))return Rs(n?.in||e,NaN);if(!t)return r;let i=r.getDate(),a=Rs(n?.in||e,r.getTime());return a.setMonth(r.getMonth()+t+1,0),i>=a.getDate()?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}var Hs={};function Us(){return Hs}function Ws(e,t){let n=Us(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=zs(e,t?.in),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function Gs(e,t){return Ws(e,{...t,weekStartsOn:1})}function Ks(e,t){let n=zs(e,t?.in),r=n.getFullYear(),i=Rs(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);let a=Gs(i),o=Rs(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);let s=Gs(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function qs(e){let t=zs(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-n}function Js(e,...t){let n=Rs.bind(null,e||t.find(e=>typeof e==`object`));return t.map(n)}function Ys(e,t){let n=zs(e,t?.in);return n.setHours(0,0,0,0),n}function Xs(e,t,n){let[r,i]=Js(n?.in,e,t),a=Ys(r),o=Ys(i),s=+a-qs(a),c=+o-qs(o);return Math.round((s-c)/Fs)}function Zs(e,t){let n=Ks(e,t),r=Rs(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Gs(r)}function Qs(e,t,n){return Bs(e,t*7,n)}function $s(e,t,n){return Vs(e,t*12,n)}function ec(e,t){let n,r=t?.in;return e.forEach(e=>{!r&&typeof e==`object`&&(r=Rs.bind(null,e));let t=zs(e,r);(!n||n<t||isNaN(+t))&&(n=t)}),Rs(r,n||NaN)}function tc(e,t){let n,r=t?.in;return e.forEach(e=>{!r&&typeof e==`object`&&(r=Rs.bind(null,e));let t=zs(e,r);(!n||n>t||isNaN(+t))&&(n=t)}),Rs(r,n||NaN)}function nc(e,t,n){let[r,i]=Js(n?.in,e,t);return+Ys(r)==+Ys(i)}function rc(e){return e instanceof Date||typeof e==`object`&&Object.prototype.toString.call(e)===`[object Date]`}function ic(e){return!(!rc(e)&&typeof e!=`number`||isNaN(+zs(e)))}function ac(e,t,n){let[r,i]=Js(n?.in,e,t),a=r.getFullYear()-i.getFullYear(),o=r.getMonth()-i.getMonth();return a*12+o}function oc(e,t){let n=zs(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function sc(e,t){let[n,r]=Js(e,t.start,t.end);return{start:n,end:r}}function cc(e,t){let{start:n,end:r}=sc(t?.in,e),i=+n>+r,a=i?+n:+r,o=i?r:n;o.setHours(0,0,0,0),o.setDate(1);let s=t?.step??1;if(!s)return[];s<0&&(s=-s,i=!i);let c=[];for(;+o<=a;)c.push(Rs(n,o)),o.setMonth(o.getMonth()+s);return i?c.reverse():c}function lc(e,t){let n=zs(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function uc(e,t){let n=zs(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function dc(e,t){let n=zs(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function fc(e,t){let{start:n,end:r}=sc(t?.in,e),i=+n>+r,a=i?+n:+r,o=i?r:n;o.setHours(0,0,0,0),o.setMonth(0,1);let s=t?.step??1;if(!s)return[];s<0&&(s=-s,i=!i);let c=[];for(;+o<=a;)c.push(Rs(n,o)),o.setFullYear(o.getFullYear()+s);return i?c.reverse():c}function pc(e,t){let n=Us(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=zs(e,t?.in),a=i.getDay(),o=(a<r?-7:0)+6-(a-r);return i.setDate(i.getDate()+o),i.setHours(23,59,59,999),i}function mc(e,t){return pc(e,{...t,weekStartsOn:1})}var hc={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`1 second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`about 1 hour`,other:`about {{count}} hours`},xHours:{one:`1 hour`,other:`{{count}} hours`},xDays:{one:`1 day`,other:`{{count}} days`},aboutXWeeks:{one:`about 1 week`,other:`about {{count}} weeks`},xWeeks:{one:`1 week`,other:`{{count}} weeks`},aboutXMonths:{one:`about 1 month`,other:`about {{count}} months`},xMonths:{one:`1 month`,other:`{{count}} months`},aboutXYears:{one:`about 1 year`,other:`about {{count}} years`},xYears:{one:`1 year`,other:`{{count}} years`},overXYears:{one:`over 1 year`,other:`over {{count}} years`},almostXYears:{one:`almost 1 year`,other:`almost {{count}} years`}},gc=(e,t,n)=>{let r,i=hc[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r};function _c(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var vc={date:_c({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:_c({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:_c({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},yc={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},bc=(e,t,n,r)=>yc[e];function xc(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}var Sc={ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:xc({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:xc({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:xc({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:xc({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:xc({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})};function Cc(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;let o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?Tc(s,e=>e.test(o)):wc(s,e=>e.test(o)),l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let u=t.slice(o.length);return{value:l,rest:u}}}function wc(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Tc(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Ec(e){return(t,n={})=>{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}var Dc={ordinalNumber:Ec({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:Cc({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:Cc({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:Cc({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:Cc({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:Cc({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},Oc={code:`en-US`,formatDistance:gc,formatLong:vc,formatRelative:bc,localize:Sc,match:Dc,options:{weekStartsOn:0,firstWeekContainsDate:1}};function kc(e,t){let n=zs(e,t?.in);return Xs(n,dc(n))+1}function Ac(e,t){let n=zs(e,t?.in),r=+Gs(n)-Zs(n);return Math.round(r/Ps)+1}function jc(e,t){let n=zs(e,t?.in),r=n.getFullYear(),i=Us(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=Rs(t?.in||e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);let s=Ws(o,t),c=Rs(t?.in||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);let l=Ws(c,t);return+n>=+s?r+1:+n>=+l?r:r-1}function Mc(e,t){let n=Us(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=jc(e,t),a=Rs(t?.in||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),Ws(a,t)}function Nc(e,t){let n=zs(e,t?.in),r=+Ws(n,t)-Mc(n,t);return Math.round(r/Ps)+1}function Pc(e,t){return(e<0?`-`:``)+Math.abs(e).toString().padStart(t,`0`)}var Fc={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return Pc(t===`yy`?r%100:r,t.length)},M(e,t){let n=e.getMonth();return t===`M`?String(n+1):Pc(n+1,2)},d(e,t){return Pc(e.getDate(),t.length)},a(e,t){let n=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.toUpperCase();case`aaa`:return n;case`aaaaa`:return n[0];default:return n===`am`?`a.m.`:`p.m.`}},h(e,t){return Pc(e.getHours()%12||12,t.length)},H(e,t){return Pc(e.getHours(),t.length)},m(e,t){return Pc(e.getMinutes(),t.length)},s(e,t){return Pc(e.getSeconds(),t.length)},S(e,t){let n=t.length,r=e.getMilliseconds();return Pc(Math.trunc(r*10**(n-3)),t.length)}},Ic={am:`am`,pm:`pm`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},Lc={G:function(e,t,n){let r=+(e.getFullYear()>0);switch(t){case`G`:case`GG`:case`GGG`:return n.era(r,{width:`abbreviated`});case`GGGGG`:return n.era(r,{width:`narrow`});default:return n.era(r,{width:`wide`})}},y:function(e,t,n){if(t===`yo`){let t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:`year`})}return Fc.y(e,t)},Y:function(e,t,n,r){let i=jc(e,r),a=i>0?i:1-i;return t===`YY`?Pc(a%100,2):t===`Yo`?n.ordinalNumber(a,{unit:`year`}):Pc(a,t.length)},R:function(e,t){return Pc(Ks(e),t.length)},u:function(e,t){return Pc(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`Q`:return String(r);case`QQ`:return Pc(r,2);case`Qo`:return n.ordinalNumber(r,{unit:`quarter`});case`QQQ`:return n.quarter(r,{width:`abbreviated`,context:`formatting`});case`QQQQQ`:return n.quarter(r,{width:`narrow`,context:`formatting`});default:return n.quarter(r,{width:`wide`,context:`formatting`})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`q`:return String(r);case`qq`:return Pc(r,2);case`qo`:return n.ordinalNumber(r,{unit:`quarter`});case`qqq`:return n.quarter(r,{width:`abbreviated`,context:`standalone`});case`qqqqq`:return n.quarter(r,{width:`narrow`,context:`standalone`});default:return n.quarter(r,{width:`wide`,context:`standalone`})}},M:function(e,t,n){let r=e.getMonth();switch(t){case`M`:case`MM`:return Fc.M(e,t);case`Mo`:return n.ordinalNumber(r+1,{unit:`month`});case`MMM`:return n.month(r,{width:`abbreviated`,context:`formatting`});case`MMMMM`:return n.month(r,{width:`narrow`,context:`formatting`});default:return n.month(r,{width:`wide`,context:`formatting`})}},L:function(e,t,n){let r=e.getMonth();switch(t){case`L`:return String(r+1);case`LL`:return Pc(r+1,2);case`Lo`:return n.ordinalNumber(r+1,{unit:`month`});case`LLL`:return n.month(r,{width:`abbreviated`,context:`standalone`});case`LLLLL`:return n.month(r,{width:`narrow`,context:`standalone`});default:return n.month(r,{width:`wide`,context:`standalone`})}},w:function(e,t,n,r){let i=Nc(e,r);return t===`wo`?n.ordinalNumber(i,{unit:`week`}):Pc(i,t.length)},I:function(e,t,n){let r=Ac(e);return t===`Io`?n.ordinalNumber(r,{unit:`week`}):Pc(r,t.length)},d:function(e,t,n){return t===`do`?n.ordinalNumber(e.getDate(),{unit:`date`}):Fc.d(e,t)},D:function(e,t,n){let r=kc(e);return t===`Do`?n.ordinalNumber(r,{unit:`dayOfYear`}):Pc(r,t.length)},E:function(e,t,n){let r=e.getDay();switch(t){case`E`:case`EE`:case`EEE`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`EEEEE`:return n.day(r,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},e:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`e`:return String(a);case`ee`:return Pc(a,2);case`eo`:return n.ordinalNumber(a,{unit:`day`});case`eee`:return n.day(i,{width:`abbreviated`,context:`formatting`});case`eeeee`:return n.day(i,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(i,{width:`short`,context:`formatting`});default:return n.day(i,{width:`wide`,context:`formatting`})}},c:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`c`:return String(a);case`cc`:return Pc(a,t.length);case`co`:return n.ordinalNumber(a,{unit:`day`});case`ccc`:return n.day(i,{width:`abbreviated`,context:`standalone`});case`ccccc`:return n.day(i,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(i,{width:`short`,context:`standalone`});default:return n.day(i,{width:`wide`,context:`standalone`})}},i:function(e,t,n){let r=e.getDay(),i=r===0?7:r;switch(t){case`i`:return String(i);case`ii`:return Pc(i,t.length);case`io`:return n.ordinalNumber(i,{unit:`day`});case`iii`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`iiiii`:return n.day(r,{width:`narrow`,context:`formatting`});case`iiiiii`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},a:function(e,t,n){let r=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`});case`aaa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`aaaaa`:return n.dayPeriod(r,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(r,{width:`wide`,context:`formatting`})}},b:function(e,t,n){let r=e.getHours(),i;switch(i=r===12?Ic.noon:r===0?Ic.midnight:r/12>=1?`pm`:`am`,t){case`b`:case`bb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`bbb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`bbbbb`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},B:function(e,t,n){let r=e.getHours(),i;switch(i=r>=17?Ic.evening:r>=12?Ic.afternoon:r>=4?Ic.morning:Ic.night,t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`BBBBB`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},h:function(e,t,n){if(t===`ho`){let t=e.getHours()%12;return t===0&&(t=12),n.ordinalNumber(t,{unit:`hour`})}return Fc.h(e,t)},H:function(e,t,n){return t===`Ho`?n.ordinalNumber(e.getHours(),{unit:`hour`}):Fc.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return t===`Ko`?n.ordinalNumber(r,{unit:`hour`}):Pc(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t===`ko`?n.ordinalNumber(r,{unit:`hour`}):Pc(r,t.length)},m:function(e,t,n){return t===`mo`?n.ordinalNumber(e.getMinutes(),{unit:`minute`}):Fc.m(e,t)},s:function(e,t,n){return t===`so`?n.ordinalNumber(e.getSeconds(),{unit:`second`}):Fc.s(e,t)},S:function(e,t){return Fc.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(r===0)return`Z`;switch(t){case`X`:return zc(r);case`XXXX`:case`XX`:return Bc(r);default:return Bc(r,`:`)}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`x`:return zc(r);case`xxxx`:case`xx`:return Bc(r);default:return Bc(r,`:`)}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`O`:case`OO`:case`OOO`:return`GMT`+Rc(r,`:`);default:return`GMT`+Bc(r,`:`)}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`z`:case`zz`:case`zzz`:return`GMT`+Rc(r,`:`);default:return`GMT`+Bc(r,`:`)}},t:function(e,t,n){return Pc(Math.trunc(e/1e3),t.length)},T:function(e,t,n){return Pc(+e,t.length)}};function Rc(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+Pc(a,2)}function zc(e,t){return e%60==0?(e>0?`-`:`+`)+Pc(Math.abs(e)/60,2):Bc(e,t)}function Bc(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=Pc(Math.trunc(r/60),2),a=Pc(r%60,2);return n+i+t+a}var Vc=(e,t)=>{switch(e){case`P`:return t.date({width:`short`});case`PP`:return t.date({width:`medium`});case`PPP`:return t.date({width:`long`});default:return t.date({width:`full`})}},Hc=(e,t)=>{switch(e){case`p`:return t.time({width:`short`});case`pp`:return t.time({width:`medium`});case`ppp`:return t.time({width:`long`});default:return t.time({width:`full`})}},Uc={p:Hc,P:(e,t)=>{let n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Vc(e,t);let a;switch(r){case`P`:a=t.dateTime({width:`short`});break;case`PP`:a=t.dateTime({width:`medium`});break;case`PPP`:a=t.dateTime({width:`long`});break;default:a=t.dateTime({width:`full`})}return a.replace(`{{date}}`,Vc(r,t)).replace(`{{time}}`,Hc(i,t))}},Wc=/^D+$/,Gc=/^Y+$/,Kc=[`D`,`DD`,`YY`,`YYYY`];function qc(e){return Wc.test(e)}function Jc(e){return Gc.test(e)}function Yc(e,t,n){let r=Xc(e,t,n);if(console.warn(r),Kc.includes(e))throw RangeError(r)}function Xc(e,t,n){let r=e[0]===`Y`?`years`:`days of the month`;return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var Zc=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Qc=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,$c=/^'([^]*?)'?$/,el=/''/g,tl=/[a-zA-Z]/;function nl(e,t,n){let r=Us(),i=n?.locale??r.locale??Oc,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=zs(e,n?.in);if(!ic(s))throw RangeError(`Invalid time value`);let c=t.match(Qc).map(e=>{let t=e[0];if(t===`p`||t===`P`){let n=Uc[t];return n(e,i.formatLong)}return e}).join(``).match(Zc).map(e=>{if(e===`''`)return{isToken:!1,value:`'`};let t=e[0];if(t===`'`)return{isToken:!1,value:rl(e)};if(Lc[t])return{isToken:!0,value:e};if(t.match(tl))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));let l={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return c.map(r=>{if(!r.isToken)return r.value;let a=r.value;(!n?.useAdditionalWeekYearTokens&&Jc(a)||!n?.useAdditionalDayOfYearTokens&&qc(a))&&Yc(a,t,String(e));let o=Lc[a[0]];return o(s,a,i.localize,l)}).join(``)}function rl(e){let t=e.match($c);return t?t[1].replace(el,`'`):e}function il(e,t){let n=zs(e,t?.in),r=n.getFullYear(),i=n.getMonth(),a=Rs(n,0);return a.setFullYear(r,i+1,0),a.setHours(0,0,0,0),a.getDate()}function al(e,t){return zs(e,t?.in).getMonth()}function ol(e,t){return zs(e,t?.in).getFullYear()}function sl(e,t){return+zs(e)>+zs(t)}function cl(e,t){return+zs(e)<+zs(t)}function ll(e,t,n){let[r,i]=Js(n?.in,e,t);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function ul(e,t,n){let[r,i]=Js(n?.in,e,t);return r.getFullYear()===i.getFullYear()}function dl(e,t,n){let r=zs(e,n?.in),i=r.getFullYear(),a=r.getDate(),o=Rs(n?.in||e,0);o.setFullYear(i,t,15),o.setHours(0,0,0,0);let s=il(o);return r.setMonth(t,Math.min(a,s)),r}function fl(e,t,n){let r=zs(e,n?.in);return isNaN(+r)?Rs(n?.in||e,NaN):(r.setFullYear(t),r)}var pl=5,ml=4;function hl(e,t){let n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,i=t.addDays(e,-r+1),a=t.addDays(i,34);return t.getMonth(e)===t.getMonth(a)?pl:ml}function gl(e,t){let n=t.startOfMonth(e),r=n.getDay();return r===1?n:r===0?t.addDays(n,-6):t.addDays(n,-1*(r-1))}function _l(e,t){let n=gl(e,t),r=hl(e,t);return t.addDays(n,r*7-1)}var vl={...Oc,labels:{labelDayButton:(e,t,n,r)=>{let i;i=r&&typeof r.format==`function`?r.format.bind(r):(e,t)=>nl(e,t,{locale:Oc,...n});let a=i(e,`PPPP`);return t.today&&(a=`Today, ${a}`),t.selected&&(a=`${a}, selected`),a},labelMonthDropdown:`Choose the Month`,labelNext:`Go to the Next Month`,labelPrevious:`Go to the Previous Month`,labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:`Choose the Year`,labelGrid:(e,t,n)=>{let r;return r=n&&typeof n.format==`function`?n.format.bind(n):(e,n)=>nl(e,n,{locale:Oc,...t}),r(e,`LLLL yyyy`)},labelGridcell:(e,t,n,r)=>{let i;i=r&&typeof r.format==`function`?r.format.bind(r):(e,t)=>nl(e,t,{locale:Oc,...n});let a=i(e,`PPPP`);return t?.today&&(a=`Today, ${a}`),a},labelNav:`Navigation bar`,labelWeekNumberHeader:`Week Number`,labelWeekday:(e,t,n)=>{let r;return r=n&&typeof n.format==`function`?n.format.bind(n):(e,n)=>nl(e,n,{locale:Oc,...t}),r(e,`cccc`)}}},yl=class e{constructor(e,t){this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?Ms.tz(this.options.timeZone):new(this.options.Date??Date),this.newDate=(e,t,n)=>this.overrides?.newDate?this.overrides.newDate(e,t,n):this.options.timeZone?new Ms(e,t,n,this.options.timeZone):new Date(e,t,n),this.addDays=(e,t)=>this.overrides?.addDays?this.overrides.addDays(e,t):Bs(e,t),this.addMonths=(e,t)=>this.overrides?.addMonths?this.overrides.addMonths(e,t):Vs(e,t),this.addWeeks=(e,t)=>this.overrides?.addWeeks?this.overrides.addWeeks(e,t):Qs(e,t),this.addYears=(e,t)=>this.overrides?.addYears?this.overrides.addYears(e,t):$s(e,t),this.differenceInCalendarDays=(e,t)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(e,t):Xs(e,t),this.differenceInCalendarMonths=(e,t)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(e,t):ac(e,t),this.eachMonthOfInterval=e=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(e):cc(e),this.eachYearOfInterval=e=>{let t=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(e):fc(e),n=new Set(t.map(e=>this.getYear(e)));if(n.size===t.length)return t;let r=[];return n.forEach(e=>{r.push(new Date(e,0,1))}),r},this.endOfBroadcastWeek=e=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(e):_l(e,this),this.endOfISOWeek=e=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(e):mc(e),this.endOfMonth=e=>this.overrides?.endOfMonth?this.overrides.endOfMonth(e):oc(e),this.endOfWeek=(e,t)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(e,t):pc(e,this.options),this.endOfYear=e=>this.overrides?.endOfYear?this.overrides.endOfYear(e):uc(e),this.format=(e,t,n)=>{let r=this.overrides?.format?this.overrides.format(e,t,this.options):nl(e,t,this.options);return this.options.numerals&&this.options.numerals!==`latn`?this.replaceDigits(r):r},this.getISOWeek=e=>this.overrides?.getISOWeek?this.overrides.getISOWeek(e):Ac(e),this.getMonth=(e,t)=>this.overrides?.getMonth?this.overrides.getMonth(e,this.options):al(e,this.options),this.getYear=(e,t)=>this.overrides?.getYear?this.overrides.getYear(e,this.options):ol(e,this.options),this.getWeek=(e,t)=>this.overrides?.getWeek?this.overrides.getWeek(e,this.options):Nc(e,this.options),this.isAfter=(e,t)=>this.overrides?.isAfter?this.overrides.isAfter(e,t):sl(e,t),this.isBefore=(e,t)=>this.overrides?.isBefore?this.overrides.isBefore(e,t):cl(e,t),this.isDate=e=>this.overrides?.isDate?this.overrides.isDate(e):rc(e),this.isSameDay=(e,t)=>this.overrides?.isSameDay?this.overrides.isSameDay(e,t):nc(e,t),this.isSameMonth=(e,t)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(e,t):ll(e,t),this.isSameYear=(e,t)=>this.overrides?.isSameYear?this.overrides.isSameYear(e,t):ul(e,t),this.max=e=>this.overrides?.max?this.overrides.max(e):ec(e),this.min=e=>this.overrides?.min?this.overrides.min(e):tc(e),this.setMonth=(e,t)=>this.overrides?.setMonth?this.overrides.setMonth(e,t):dl(e,t),this.setYear=(e,t)=>this.overrides?.setYear?this.overrides.setYear(e,t):fl(e,t),this.startOfBroadcastWeek=(e,t)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(e,this):gl(e,this),this.startOfDay=e=>this.overrides?.startOfDay?this.overrides.startOfDay(e):Ys(e),this.startOfISOWeek=e=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(e):Gs(e),this.startOfMonth=e=>this.overrides?.startOfMonth?this.overrides.startOfMonth(e):lc(e),this.startOfWeek=(e,t)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(e,this.options):Ws(e,this.options),this.startOfYear=e=>this.overrides?.startOfYear?this.overrides.startOfYear(e):dc(e),this.options={locale:vl,...e},this.overrides=t}getDigitMap(){let{numerals:e=`latn`}=this.options,t=new Intl.NumberFormat(`en-US`,{numberingSystem:e}),n={};for(let e=0;e<10;e++)n[e.toString()]=t.format(e);return n}replaceDigits(e){let t=this.getDigitMap();return e.replace(/\d/g,e=>t[e]||e)}formatNumber(e){return this.replaceDigits(e.toString())}getMonthYearOrder(){let t=this.options.locale?.code;return t&&e.yearFirstLocales.has(t)?`year-first`:`month-first`}formatMonthYear(t){let{locale:n,timeZone:r,numerals:i}=this.options,a=n?.code;if(a&&e.yearFirstLocales.has(a))try{return new Intl.DateTimeFormat(a,{month:`long`,year:`numeric`,timeZone:r,numberingSystem:i}).format(t)}catch{}let o=this.getMonthYearOrder()===`year-first`?`y LLLL`:`LLLL y`;return this.format(t,o)}};yl.yearFirstLocales=new Set([`eu`,`hu`,`ja`,`ja-Hira`,`ja-JP`,`ko`,`ko-KR`,`lt`,`lt-LT`,`lv`,`lv-LV`,`mn`,`mn-MN`,`zh`,`zh-CN`,`zh-HK`,`zh-TW`]);var bl=new yl,xl=class{constructor(e,t,n=bl){this.date=e,this.displayMonth=t,this.outside=!(!t||n.isSameMonth(e,t)),this.dateLib=n,this.isoDate=n.format(e,`yyyy-MM-dd`),this.displayMonthId=n.format(t,`yyyy-MM`),this.dateMonthId=n.format(e,`yyyy-MM`)}isEqualTo(e){return this.dateLib.isSameDay(e.date,this.date)&&this.dateLib.isSameMonth(e.displayMonth,this.displayMonth)}},Sl=class{constructor(e,t){this.date=e,this.weeks=t}},Cl=class{constructor(e,t){this.days=t,this.weekNumber=e}};function wl(e){return q.createElement(`span`,{...e})}function Tl(e){let{size:t=24,orientation:n=`left`,className:r,style:i}=e;return q.createElement(`svg`,{className:r,style:i,width:t,height:t,viewBox:`0 0 24 24`},n===`up`&&q.createElement(`polygon`,{points:`6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28`}),n===`down`&&q.createElement(`polygon`,{points:`6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72`}),n===`left`&&q.createElement(`polygon`,{points:`16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20`}),n===`right`&&q.createElement(`polygon`,{points:`8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20`}))}function El(e){let{day:t,modifiers:n,...r}=e;return q.createElement(`td`,{...r})}function Dl(e){let{day:t,modifiers:n,...r}=e,i=q.useRef(null);return q.useEffect(()=>{n.focused&&i.current?.focus()},[n.focused]),q.createElement(`button`,{ref:i,...r})}var Z;(function(e){e.Root=`root`,e.Chevron=`chevron`,e.Day=`day`,e.DayButton=`day_button`,e.CaptionLabel=`caption_label`,e.Dropdowns=`dropdowns`,e.Dropdown=`dropdown`,e.DropdownRoot=`dropdown_root`,e.Footer=`footer`,e.MonthGrid=`month_grid`,e.MonthCaption=`month_caption`,e.MonthsDropdown=`months_dropdown`,e.Month=`month`,e.Months=`months`,e.Nav=`nav`,e.NextMonthButton=`button_next`,e.PreviousMonthButton=`button_previous`,e.Week=`week`,e.Weeks=`weeks`,e.Weekday=`weekday`,e.Weekdays=`weekdays`,e.WeekNumber=`week_number`,e.WeekNumberHeader=`week_number_header`,e.YearsDropdown=`years_dropdown`})(Z||={});var Ol;(function(e){e.disabled=`disabled`,e.hidden=`hidden`,e.outside=`outside`,e.focused=`focused`,e.today=`today`})(Ol||={});var kl;(function(e){e.range_end=`range_end`,e.range_middle=`range_middle`,e.range_start=`range_start`,e.selected=`selected`})(kl||={});var Al;(function(e){e.weeks_before_enter=`weeks_before_enter`,e.weeks_before_exit=`weeks_before_exit`,e.weeks_after_enter=`weeks_after_enter`,e.weeks_after_exit=`weeks_after_exit`,e.caption_after_enter=`caption_after_enter`,e.caption_after_exit=`caption_after_exit`,e.caption_before_enter=`caption_before_enter`,e.caption_before_exit=`caption_before_exit`})(Al||={});var jl=(0,q.createContext)(void 0);function Ml(){let e=(0,q.useContext)(jl);if(e===void 0)throw Error(`useDayPicker() must be used within a custom component.`);return e}function Nl(e){let{options:t,className:n,...r}=e,{classNames:i,components:a,styles:o}=Ml(),s=[i[Z.Dropdown],n].join(` `),c=t?.find(({value:e})=>e===r.value);return q.createElement(`span`,{"data-disabled":r.disabled,className:i[Z.DropdownRoot],style:o?.[Z.DropdownRoot]},q.createElement(a.Select,{className:s,...r},t?.map(({value:e,label:t,disabled:n})=>q.createElement(a.Option,{key:e,value:e,disabled:n},t))),q.createElement(`span`,{className:i[Z.CaptionLabel],style:o?.[Z.CaptionLabel],"aria-hidden":!0},c?.label,q.createElement(a.Chevron,{orientation:`down`,size:18,className:i[Z.Chevron],style:o?.[Z.Chevron]})))}function Pl(e){return q.createElement(`div`,{...e})}function Fl(e){return q.createElement(`div`,{...e})}function Il(e){let{calendarMonth:t,displayIndex:n,...r}=e;return q.createElement(`div`,{...r},e.children)}function Ll(e){let{calendarMonth:t,displayIndex:n,...r}=e;return q.createElement(`div`,{...r})}function Rl(e){return q.createElement(`table`,{...e})}function zl(e){return q.createElement(`div`,{...e})}function Bl(e){let{components:t}=Ml();return q.createElement(t.Dropdown,{...e})}function Vl(e){let{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:i,...a}=e,{components:o,classNames:s,styles:c,labels:{labelPrevious:l,labelNext:u}}=Ml(),d=(0,q.useCallback)(e=>{i&&n?.(e)},[i,n]),f=(0,q.useCallback)(e=>{r&&t?.(e)},[r,t]);return q.createElement(`nav`,{...a},q.createElement(o.PreviousMonthButton,{type:`button`,className:s[Z.PreviousMonthButton],style:c?.[Z.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":!r||void 0,"aria-label":l(r),onClick:f},q.createElement(o.Chevron,{disabled:!r||void 0,className:s[Z.Chevron],style:c?.[Z.Chevron],orientation:`left`})),q.createElement(o.NextMonthButton,{type:`button`,className:s[Z.NextMonthButton],style:c?.[Z.NextMonthButton],tabIndex:i?void 0:-1,"aria-disabled":!i||void 0,"aria-label":u(i),onClick:d},q.createElement(o.Chevron,{disabled:!i||void 0,orientation:`right`,className:s[Z.Chevron],style:c?.[Z.Chevron]})))}function Hl(e){return q.createElement(`button`,{...e})}function Ul(e){return q.createElement(`option`,{...e})}function Wl(e){return q.createElement(`button`,{...e})}function Gl(e){let{rootRef:t,...n}=e;return q.createElement(`div`,{...n,ref:t})}function Kl(e){return q.createElement(`select`,{...e})}function ql(e){let{week:t,...n}=e;return q.createElement(`tr`,{...n})}function Jl(e){return q.createElement(`th`,{...e})}function Yl(e){return q.createElement(`thead`,{"aria-hidden":!0},q.createElement(`tr`,{...e}))}function Xl(e){let{week:t,...n}=e;return q.createElement(`th`,{...n})}function Zl(e){return q.createElement(`th`,{...e})}function Ql(e){return q.createElement(`tbody`,{...e})}function $l(e){let{components:t}=Ml();return q.createElement(t.Dropdown,{...e})}var eu=t({CaptionLabel:()=>wl,Chevron:()=>Tl,Day:()=>El,DayButton:()=>Dl,Dropdown:()=>Nl,DropdownNav:()=>Pl,Footer:()=>Fl,Month:()=>Il,MonthCaption:()=>Ll,MonthGrid:()=>Rl,Months:()=>zl,MonthsDropdown:()=>Bl,Nav:()=>Vl,NextMonthButton:()=>Hl,Option:()=>Ul,PreviousMonthButton:()=>Wl,Root:()=>Gl,Select:()=>Kl,Week:()=>ql,WeekNumber:()=>Xl,WeekNumberHeader:()=>Zl,Weekday:()=>Jl,Weekdays:()=>Yl,Weeks:()=>Ql,YearsDropdown:()=>$l});function tu(e,t,n=!1,r=bl){let{from:i,to:a}=e,{differenceInCalendarDays:o,isSameDay:s}=r;return i&&a?(o(a,i)<0&&([i,a]=[a,i]),o(t,i)>=+!!n&&o(a,t)>=+!!n):!n&&a?s(a,t):!n&&i?s(i,t):!1}function nu(e){return!!(e&&typeof e==`object`&&`before`in e&&`after`in e)}function ru(e){return!!(e&&typeof e==`object`&&`from`in e)}function iu(e){return!!(e&&typeof e==`object`&&`after`in e)}function au(e){return!!(e&&typeof e==`object`&&`before`in e)}function ou(e){return!!(e&&typeof e==`object`&&`dayOfWeek`in e)}function su(e,t){return Array.isArray(e)&&e.every(t.isDate)}function cu(e,t,n=bl){let r=Array.isArray(t)?t:[t],{isSameDay:i,differenceInCalendarDays:a,isAfter:o}=n;return r.some(t=>{if(typeof t==`boolean`)return t;if(n.isDate(t))return i(e,t);if(su(t,n))return t.some(t=>i(e,t));if(ru(t))return tu(t,e,!1,n);if(ou(t))return Array.isArray(t.dayOfWeek)?t.dayOfWeek.includes(e.getDay()):t.dayOfWeek===e.getDay();if(nu(t)){let n=a(t.before,e),r=a(t.after,e),i=n>0,s=r<0;return o(t.before,t.after)?s&&i:i||s}return iu(t)?a(e,t.after)>0:au(t)?a(t.before,e)>0:typeof t==`function`&&t(e)})}function lu(e,t,n,r,i){let{disabled:a,hidden:o,modifiers:s,showOutsideDays:c,broadcastCalendar:l,today:u=i.today()}=t,{isSameDay:d,isSameMonth:f,startOfMonth:p,isBefore:m,endOfMonth:h,isAfter:g}=i,_=n&&p(n),v=r&&h(r),y={[Ol.focused]:[],[Ol.outside]:[],[Ol.disabled]:[],[Ol.hidden]:[],[Ol.today]:[]},b={};for(let t of e){let{date:e,displayMonth:n}=t,r=!(!n||f(e,n)),p=!!(_&&m(e,_)),h=!!(v&&g(e,v)),x=!!(a&&cu(e,a,i)),S=!!(o&&cu(e,o,i))||p||h||!l&&!c&&r||l&&c===!1&&r,C=d(e,u);r&&y.outside.push(t),x&&y.disabled.push(t),S&&y.hidden.push(t),C&&y.today.push(t),s&&Object.keys(s).forEach(n=>{let r=s?.[n];r&&cu(e,r,i)&&(b[n]?b[n].push(t):b[n]=[t])})}return e=>{let t={[Ol.focused]:!1,[Ol.disabled]:!1,[Ol.hidden]:!1,[Ol.outside]:!1,[Ol.today]:!1},n={};for(let n in y)t[n]=y[n].some(t=>t===e);for(let t in b)n[t]=b[t].some(t=>t===e);return{...t,...n}}}function uu(e,t,n={}){return Object.entries(e).filter(([,e])=>e===!0).reduce((e,[r])=>(n[r]?e.push(n[r]):t[Ol[r]]?e.push(t[Ol[r]]):t[kl[r]]&&e.push(t[kl[r]]),e),[t[Z.Day]])}function du(e){return{...eu,...e}}function fu(e){let t={"data-mode":e.mode??void 0,"data-required":`required`in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([e,n])=>{e.startsWith(`data-`)&&(t[e]=n)}),t}function pu(){let e={};for(let t in Z)e[Z[t]]=`rdp-${Z[t]}`;for(let t in Ol)e[Ol[t]]=`rdp-${Ol[t]}`;for(let t in kl)e[kl[t]]=`rdp-${kl[t]}`;for(let t in Al)e[Al[t]]=`rdp-${Al[t]}`;return e}function mu(e,t,n){return(n??new yl(t)).formatMonthYear(e)}function hu(e,t,n){return(n??new yl(t)).format(e,`d`)}function gu(e,t=bl){return t.format(e,`LLLL`)}function _u(e,t,n){return(n??new yl(t)).format(e,`cccccc`)}function vu(e,t=bl){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function yu(){return``}function bu(e,t=bl){return t.format(e,`yyyy`)}var xu=t({formatCaption:()=>mu,formatDay:()=>hu,formatMonthDropdown:()=>gu,formatWeekNumber:()=>vu,formatWeekNumberHeader:()=>yu,formatWeekdayName:()=>_u,formatYearDropdown:()=>bu});function Su(e){return{...xu,...e}}function Cu(e,t,n,r){let i=(r??new yl(n)).format(e,`PPPP`);return t.today&&(i=`Today, ${i}`),t.selected&&(i=`${i}, selected`),i}function wu(e,t,n){return(n??new yl(t)).formatMonthYear(e)}function Tu(e,t,n,r){let i=(r??new yl(n)).format(e,`PPPP`);return t?.today&&(i=`Today, ${i}`),i}function Eu(e){return`Choose the Month`}function Du(){return``}var Ou=`Go to the Next Month`;function ku(e,t){return Ou}function Au(e){return`Go to the Previous Month`}function ju(e,t,n){return(n??new yl(t)).format(e,`cccc`)}function Mu(e,t){return`Week ${e}`}function Nu(e){return`Week Number`}function Pu(e){return`Choose the Year`}var Fu=t({labelDayButton:()=>Cu,labelGrid:()=>wu,labelGridcell:()=>Tu,labelMonthDropdown:()=>Eu,labelNav:()=>Du,labelNext:()=>ku,labelPrevious:()=>Au,labelWeekNumber:()=>Mu,labelWeekNumberHeader:()=>Nu,labelWeekday:()=>ju,labelYearDropdown:()=>Pu}),Iu=(e,t,n)=>t||(n?typeof n==`function`?n:(...e)=>n:e);function Lu(e,t){let n=t.locale?.labels??{};return{...Fu,...e??{},labelDayButton:Iu(Cu,e?.labelDayButton,n.labelDayButton),labelMonthDropdown:Iu(Eu,e?.labelMonthDropdown,n.labelMonthDropdown),labelNext:Iu(ku,e?.labelNext,n.labelNext),labelPrevious:Iu(Au,e?.labelPrevious,n.labelPrevious),labelWeekNumber:Iu(Mu,e?.labelWeekNumber,n.labelWeekNumber),labelYearDropdown:Iu(Pu,e?.labelYearDropdown,n.labelYearDropdown),labelGrid:Iu(wu,e?.labelGrid,n.labelGrid),labelGridcell:Iu(Tu,e?.labelGridcell,n.labelGridcell),labelNav:Iu(Du,e?.labelNav,n.labelNav),labelWeekNumberHeader:Iu(Nu,e?.labelWeekNumberHeader,n.labelWeekNumberHeader),labelWeekday:Iu(ju,e?.labelWeekday,n.labelWeekday)}}function Ru(e,t,n,r,i){let{startOfMonth:a,startOfYear:o,endOfYear:s,eachMonthOfInterval:c,getMonth:l}=i;return c({start:o(e),end:s(e)}).map(e=>{let o=r.formatMonthDropdown(e,i);return{value:l(e),label:o,disabled:t&&e<a(t)||n&&e>a(n)||!1}})}function zu(e,t={},n={}){let r={...t?.[Z.Day]};return Object.entries(e).filter(([,e])=>e===!0).forEach(([e])=>{r={...r,...n?.[e]}}),r}function Bu(e,t,n,r){let i=r??e.today(),a=n?e.startOfBroadcastWeek(i,e):t?e.startOfISOWeek(i):e.startOfWeek(i),o=[];for(let t=0;t<7;t++){let n=e.addDays(a,t);o.push(n)}return o}function Vu(e,t,n,r,i=!1){if(!e||!t)return;let{startOfYear:a,endOfYear:o,eachYearOfInterval:s,getYear:c}=r,l=s({start:a(e),end:o(t)});return i&&l.reverse(),l.map(e=>{let t=n.formatYearDropdown(e,r);return{value:c(e),label:t,disabled:!1}})}function Hu(e,t={}){let{weekStartsOn:n,locale:r}=t,i=n??r?.options?.weekStartsOn??0,a=t=>{let n=typeof t==`number`||typeof t==`string`?new Date(t):t;return new Ms(n.getFullYear(),n.getMonth(),n.getDate(),12,0,0,e)},o=e=>{let t=a(e);return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)};return{today:()=>a(Ms.tz(e)),newDate:(t,n,r)=>new Ms(t,n,r,12,0,0,e),startOfDay:e=>a(e),startOfWeek:(e,t)=>{let n=a(e),r=t?.weekStartsOn??i,o=(n.getDay()-r+7)%7;return n.setDate(n.getDate()-o),n},startOfISOWeek:e=>{let t=a(e),n=(t.getDay()-1+7)%7;return t.setDate(t.getDate()-n),t},startOfMonth:e=>{let t=a(e);return t.setDate(1),t},startOfYear:e=>{let t=a(e);return t.setMonth(0,1),t},endOfWeek:(e,t)=>{let n=a(e),r=(((t?.weekStartsOn??i)+6)%7-n.getDay()+7)%7;return n.setDate(n.getDate()+r),n},endOfISOWeek:e=>{let t=a(e),n=(7-t.getDay())%7;return t.setDate(t.getDate()+n),t},endOfMonth:e=>{let t=a(e);return t.setMonth(t.getMonth()+1,0),t},endOfYear:e=>{let t=a(e);return t.setMonth(11,31),t},eachMonthOfInterval:t=>{let n=a(t.start),r=a(t.end),i=[],o=new Ms(n.getFullYear(),n.getMonth(),1,12,0,0,e),s=r.getFullYear()*12+r.getMonth();for(;o.getFullYear()*12+o.getMonth()<=s;)i.push(new Ms(o,e)),o.setMonth(o.getMonth()+1,1);return i},addDays:(e,t)=>{let n=a(e);return n.setDate(n.getDate()+t),n},addWeeks:(e,t)=>{let n=a(e);return n.setDate(n.getDate()+t*7),n},addMonths:(e,t)=>{let n=a(e);return n.setMonth(n.getMonth()+t),n},addYears:(e,t)=>{let n=a(e);return n.setFullYear(n.getFullYear()+t),n},eachYearOfInterval:t=>{let n=a(t.start),r=a(t.end),i=[],o=new Ms(n.getFullYear(),0,1,12,0,0,e);for(;o.getFullYear()<=r.getFullYear();)i.push(new Ms(o,e)),o.setFullYear(o.getFullYear()+1,0,1);return i},getWeek:(e,t)=>Nc(o(e),{weekStartsOn:t?.weekStartsOn??i,firstWeekContainsDate:t?.firstWeekContainsDate??r?.options?.firstWeekContainsDate??1}),getISOWeek:e=>Ac(o(e)),differenceInCalendarDays:(e,t)=>Xs(o(e),o(t)),differenceInCalendarMonths:(e,t)=>ac(o(e),o(t))}}var Uu=e=>e instanceof HTMLElement?e:null,Wu=e=>[...e.querySelectorAll(`[data-animated-month]`)??[]],Gu=e=>Uu(e.querySelector(`[data-animated-month]`)),Ku=e=>Uu(e.querySelector(`[data-animated-caption]`)),qu=e=>Uu(e.querySelector(`[data-animated-weeks]`)),Ju=e=>Uu(e.querySelector(`[data-animated-nav]`)),Yu=e=>Uu(e.querySelector(`[data-animated-weekdays]`));function Xu(e,t,{classNames:n,months:r,focused:i,dateLib:a}){let o=(0,q.useRef)(null),s=(0,q.useRef)(r),c=(0,q.useRef)(!1);(0,q.useLayoutEffect)(()=>{let l=s.current;if(s.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||l.length===0||r.length!==l.length)return;let u=a.isSameMonth(r[0].date,l[0].date),d=a.isAfter(r[0].date,l[0].date),f=d?n[Al.caption_after_enter]:n[Al.caption_before_enter],p=d?n[Al.weeks_after_enter]:n[Al.weeks_before_enter],m=o.current,h=e.current.cloneNode(!0);if(h instanceof HTMLElement?(Wu(h).forEach(e=>{if(!(e instanceof HTMLElement))return;let t=Gu(e);t&&e.contains(t)&&e.removeChild(t);let n=Ku(e);n&&n.classList.remove(f);let r=qu(e);r&&r.classList.remove(p)}),o.current=h):o.current=null,c.current||u||i)return;let g=m instanceof HTMLElement?Wu(m):[],_=Wu(e.current);if(_?.every(e=>e instanceof HTMLElement)&&g?.every(e=>e instanceof HTMLElement)){c.current=!0;let t=[];e.current.style.isolation=`isolate`;let r=Ju(e.current);r&&(r.style.zIndex=`1`),_.forEach((i,a)=>{let o=g[a];if(!o)return;i.style.position=`relative`,i.style.overflow=`hidden`;let s=Ku(i);s&&s.classList.add(f);let l=qu(i);l&&l.classList.add(p);let u=()=>{c.current=!1,e.current&&(e.current.style.isolation=``),r&&(r.style.zIndex=``),s&&s.classList.remove(f),l&&l.classList.remove(p),i.style.position=``,i.style.overflow=``,i.contains(o)&&i.removeChild(o)};t.push(u),o.style.pointerEvents=`none`,o.style.position=`absolute`,o.style.overflow=`hidden`,o.setAttribute(`aria-hidden`,`true`);let m=Yu(o);m&&(m.style.opacity=`0`);let h=Ku(o);h&&(h.classList.add(d?n[Al.caption_before_exit]:n[Al.caption_after_exit]),h.addEventListener(`animationend`,u));let _=qu(o);_&&_.classList.add(d?n[Al.weeks_before_exit]:n[Al.weeks_after_exit]),i.insertBefore(o,i.firstChild)})}})}function Zu(e,t,n,r){let i=e[0],a=e[e.length-1],{ISOWeek:o,fixedWeeks:s,broadcastCalendar:c}=n??{},{addDays:l,differenceInCalendarDays:u,differenceInCalendarMonths:d,endOfBroadcastWeek:f,endOfISOWeek:p,endOfMonth:m,endOfWeek:h,isAfter:g,startOfBroadcastWeek:_,startOfISOWeek:v,startOfWeek:y}=r,b=c?_(i,r):o?v(i):y(i),x=c?f(a):o?p(m(a)):h(m(a)),S=t&&(c?f(t):o?p(t):h(t)),C=u(S&&g(x,S)?S:x,b),w=d(a,i)+1,T=[];for(let e=0;e<=C;e++){let t=l(b,e);T.push(t)}let E=(c?35:42)*w;if(s&&T.length<E){let e=E-T.length;for(let t=0;t<e;t++){let e=l(T[T.length-1],1);T.push(e)}}return T}function Qu(e){let t=[];return e.reduce((e,n)=>{let r=n.weeks.reduce((e,t)=>e.concat(t.days.slice()),t.slice());return e.concat(r.slice())},t.slice())}function $u(e,t,n,r){let{numberOfMonths:i=1}=n,a=[];for(let n=0;n<i;n++){let i=r.addMonths(e,n);if(t&&i>t)break;a.push(i)}return a}function ed(e,t,n,r){let{month:i,defaultMonth:a,today:o=r.today(),numberOfMonths:s=1}=e,c=i||a||o,{differenceInCalendarMonths:l,addMonths:u,startOfMonth:d}=r;return n&&l(n,c)<s-1&&(c=u(n,-1*(s-1))),t&&l(c,t)<0&&(c=t),d(c)}function td(e,t,n,r){let{addDays:i,endOfBroadcastWeek:a,endOfISOWeek:o,endOfMonth:s,endOfWeek:c,getISOWeek:l,getWeek:u,startOfBroadcastWeek:d,startOfISOWeek:f,startOfWeek:p}=r,m=e.reduce((e,m)=>{let h=n.broadcastCalendar?d(m,r):n.ISOWeek?f(m):p(m),g=n.broadcastCalendar?a(m):n.ISOWeek?o(s(m)):c(s(m)),_=t.filter(e=>e>=h&&e<=g),v=n.broadcastCalendar?35:42;if(n.fixedWeeks&&_.length<v){let e=t.filter(e=>{let t=v-_.length;return e>g&&e<=i(g,t)});_.push(...e)}let y=new Sl(m,_.reduce((e,t)=>{let i=n.ISOWeek?l(t):u(t),a=e.find(e=>e.weekNumber===i),o=new xl(t,m,r);return a?a.days.push(o):e.push(new Cl(i,[o])),e},[]));return e.push(y),e},[]);return n.reverseMonths?m.reverse():m}function nd(e,t){let{startMonth:n,endMonth:r}=e,{startOfYear:i,startOfDay:a,startOfMonth:o,endOfMonth:s,addYears:c,endOfYear:l,today:u}=t,d=e.captionLayout===`dropdown`||e.captionLayout===`dropdown-years`;return n?n=o(n):!n&&d&&(n=i(c(e.today??u(),-100))),r?r=s(r):!r&&d&&(r=l(e.today??u())),[n&&a(n),r&&a(r)]}function rd(e,t,n,r){if(n.disableNavigation)return;let{pagedNavigation:i,numberOfMonths:a=1}=n,{startOfMonth:o,addMonths:s,differenceInCalendarMonths:c}=r,l=i?a:1,u=o(e);if(!t||!(c(t,e)<a))return s(u,l)}function id(e,t,n,r){if(n.disableNavigation)return;let{pagedNavigation:i,numberOfMonths:a}=n,{startOfMonth:o,addMonths:s,differenceInCalendarMonths:c}=r,l=i?a??1:1,u=o(e);if(!t||!(c(u,t)<=0))return s(u,-l)}function ad(e){return e.reduce((e,t)=>e.concat(t.weeks.slice()),[].slice())}function od(e,t){let[n,r]=(0,q.useState)(e);return[t===void 0?n:t,r]}function sd(e,t){let[n,r]=nd(e,t),{startOfMonth:i,endOfMonth:a}=t,o=ed(e,n,r,t),[s,c]=od(o,e.month?o:void 0);(0,q.useEffect)(()=>{let i=ed(e,n,r,t);c(i)},[e.timeZone]);let{months:l,weeks:u,days:d,previousMonth:f,nextMonth:p}=(0,q.useMemo)(()=>{let i=$u(s,r,{numberOfMonths:e.numberOfMonths},t),o=td(i,Zu(i,e.endMonth?a(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t);return{months:o,weeks:ad(o),days:Qu(o),previousMonth:id(s,n,e,t),nextMonth:rd(s,r,e,t)}},[t,s.getTime(),r?.getTime(),n?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:m,onMonthChange:h}=e,g=e=>u.some(t=>t.days.some(t=>t.isEqualTo(e))),_=e=>{if(m)return;let t=i(e);n&&t<i(n)&&(t=i(n)),r&&t>i(r)&&(t=i(r)),c(t),h?.(t)};return{months:l,weeks:u,days:d,navStart:n,navEnd:r,previousMonth:f,nextMonth:p,goToMonth:_,goToDay:e=>{g(e)||_(e.date)}}}var cd;(function(e){e[e.Today=0]=`Today`,e[e.Selected=1]=`Selected`,e[e.LastFocused=2]=`LastFocused`,e[e.FocusedModifier=3]=`FocusedModifier`})(cd||={});function ld(e){return!e[Ol.disabled]&&!e[Ol.hidden]&&!e[Ol.outside]}function ud(e,t,n,r){let i,a=-1;for(let o of e){let e=t(o);ld(e)&&(e[Ol.focused]&&a<cd.FocusedModifier?(i=o,a=cd.FocusedModifier):r?.isEqualTo(o)&&a<cd.LastFocused?(i=o,a=cd.LastFocused):n(o.date)&&a<cd.Selected?(i=o,a=cd.Selected):e[Ol.today]&&a<cd.Today&&(i=o,a=cd.Today))}return i||=e.find(e=>ld(t(e))),i}function dd(e,t,n,r,i,a,o){let{ISOWeek:s,broadcastCalendar:c}=a,{addDays:l,addMonths:u,addWeeks:d,addYears:f,endOfBroadcastWeek:p,endOfISOWeek:m,endOfWeek:h,max:g,min:_,startOfBroadcastWeek:v,startOfISOWeek:y,startOfWeek:b}=o,x={day:l,week:d,month:u,year:f,startOfWeek:e=>c?v(e,o):s?y(e):b(e),endOfWeek:e=>c?p(e):s?m(e):h(e)}[e](n,t===`after`?1:-1);return t===`before`&&r?x=g([r,x]):t===`after`&&i&&(x=_([i,x])),x}function fd(e,t,n,r,i,a,o,s=0){if(s>365)return;let c=dd(e,t,n.date,r,i,a,o),l=!!(a.disabled&&cu(c,a.disabled,o)),u=!!(a.hidden&&cu(c,a.hidden,o)),d=new xl(c,c,o);return!l&&!u?d:fd(e,t,d,r,i,a,o,s+1)}function pd(e,t,n,r,i){let{autoFocus:a}=e,[o,s]=(0,q.useState)(),c=ud(t.days,n,r||(()=>!1),o),[l,u]=(0,q.useState)(a?c:void 0);return{isFocusTarget:e=>!!c?.isEqualTo(e),setFocused:u,focused:l,blur:()=>{s(l),u(void 0)},moveFocus:(n,r)=>{if(!l)return;let a=fd(n,r,l,t.navStart,t.navEnd,e,i);a&&(!e.disableNavigation||t.days.some(e=>e.isEqualTo(a)))&&(t.goToDay(a),u(a))}}}function md(e,t){let{selected:n,required:r,onSelect:i}=e,[a,o]=od(n,i?n:void 0),s=i?n:a,{isSameDay:c}=t,l=e=>s?.some(t=>c(t,e))??!1,{min:u,max:d}=e;return{selected:s,select:(e,t,n)=>{let a=[...s??[]];if(l(e)){if(s?.length===u||r&&s?.length===1)return;a=s?.filter(t=>!c(t,e))}else a=s?.length===d?[e]:[...a,e];return i||o(a),i?.(a,e,t,n),a},isSelected:l}}function hd(e,t,n=0,r=0,i=!1,a=bl){let{from:o,to:s}=t||{},{isSameDay:c,isAfter:l,isBefore:u}=a,d;if(!o&&!s)d={from:e,to:n>0?void 0:e};else if(o&&!s)d=c(o,e)?n===0?{from:o,to:e}:i?{from:o,to:void 0}:void 0:u(e,o)?{from:e,to:o}:{from:o,to:e};else if(o&&s){if(c(o,e)&&c(s,e))d=i?{from:o,to:s}:void 0;else if(c(o,e))d={from:o,to:n>0?void 0:e};else if(c(s,e))d={from:e,to:n>0?void 0:e};else if(u(e,o))d={from:e,to:s};else if(l(e,o))d={from:o,to:e};else if(l(e,s))d={from:o,to:e};else throw Error(`Invalid range`)}if(d?.from&&d?.to){let t=a.differenceInCalendarDays(d.to,d.from);(r>0&&t>r||n>1&&t<n)&&(d={from:e,to:void 0})}return d}function gd(e,t,n=bl){let r=Array.isArray(t)?t:[t],i=e.from,a=n.differenceInCalendarDays(e.to,e.from),o=Math.min(a,6);for(let e=0;e<=o;e++){if(r.includes(i.getDay()))return!0;i=n.addDays(i,1)}return!1}function _d(e,t,n=bl){return tu(e,t.from,!1,n)||tu(e,t.to,!1,n)||tu(t,e.from,!1,n)||tu(t,e.to,!1,n)}function vd(e,t,n=bl){let r=Array.isArray(t)?t:[t];if(r.filter(e=>typeof e!=`function`).some(t=>typeof t==`boolean`?t:n.isDate(t)?tu(e,t,!1,n):su(t,n)?t.some(t=>tu(e,t,!1,n)):ru(t)?t.from&&t.to?_d(e,{from:t.from,to:t.to},n):!1:ou(t)?gd(e,t.dayOfWeek,n):nu(t)?n.isAfter(t.before,t.after)?_d(e,{from:n.addDays(t.after,1),to:n.addDays(t.before,-1)},n):cu(e.from,t,n)||cu(e.to,t,n):iu(t)||au(t)?cu(e.from,t,n)||cu(e.to,t,n):!1))return!0;let i=r.filter(e=>typeof e==`function`);if(i.length){let t=e.from,r=n.differenceInCalendarDays(e.to,e.from);for(let e=0;e<=r;e++){if(i.some(e=>e(t)))return!0;t=n.addDays(t,1)}}return!1}function yd(e,t){let{disabled:n,excludeDisabled:r,resetOnSelect:i,selected:a,required:o,onSelect:s}=e,[c,l]=od(a,s?a:void 0),u=s?a:c;return{selected:u,select:(a,c,d)=>{let{min:f,max:p}=e,m;if(a){let e=u?.from,n=u?.to,r=!!e&&!!n,s=!!e&&!!n&&t.isSameDay(e,n)&&t.isSameDay(a,e);m=i&&(r||!u?.from)?!o&&s?void 0:{from:a,to:void 0}:hd(a,u,f,p,o,t)}return r&&n&&m?.from&&m.to&&vd({from:m.from,to:m.to},n,t)&&(m.from=a,m.to=void 0),s||l(m),s?.(m,a,c,d),m},isSelected:e=>u&&tu(u,e,!1,t)}}function bd(e,t){let{selected:n,required:r,onSelect:i}=e,[a,o]=od(n,i?n:void 0),s=i?n:a,{isSameDay:c}=t;return{selected:s,select:(e,t,n)=>{let a=e;return!r&&s&&s&&c(e,s)&&(a=void 0),i||o(a),i?.(a,e,t,n),a},isSelected:e=>s?c(s,e):!1}}function xd(e,t){let n=bd(e,t),r=md(e,t),i=yd(e,t);switch(e.mode){case`single`:return n;case`multiple`:return r;case`range`:return i;default:return}}function Sd(e,t){return e instanceof Ms&&e.timeZone===t?e:new Ms(e,t)}function Cd(e,t,n){if(!n)return Sd(e,t);let r=Sd(e,t),i=new Ms(r.getFullYear(),r.getMonth(),r.getDate(),12,0,0,t);return new Date(i.getTime())}function wd(e,t,n){return typeof e==`boolean`||typeof e==`function`?e:e instanceof Date?Cd(e,t,n):Array.isArray(e)?e.map(e=>e instanceof Date?Cd(e,t,n):e):ru(e)?{...e,from:e.from?Sd(e.from,t):e.from,to:e.to?Sd(e.to,t):e.to}:nu(e)?{before:Cd(e.before,t,n),after:Cd(e.after,t,n)}:iu(e)?{after:Cd(e.after,t,n)}:au(e)?{before:Cd(e.before,t,n)}:e}function Td(e,t,n){return e&&(Array.isArray(e)?e.map(e=>wd(e,t,n)):wd(e,t,n))}function Ed(e){let t=e,n=t.timeZone;if(n&&(t={...e,timeZone:n},t.today&&(t.today=Sd(t.today,n)),t.month&&(t.month=Sd(t.month,n)),t.defaultMonth&&(t.defaultMonth=Sd(t.defaultMonth,n)),t.startMonth&&(t.startMonth=Sd(t.startMonth,n)),t.endMonth&&(t.endMonth=Sd(t.endMonth,n)),t.mode===`single`&&t.selected?t.selected=Sd(t.selected,n):t.mode===`multiple`&&t.selected?t.selected=t.selected?.map(e=>Sd(e,n)):t.mode===`range`&&t.selected&&(t.selected={from:t.selected.from?Sd(t.selected.from,n):t.selected.from,to:t.selected.to?Sd(t.selected.to,n):t.selected.to}),t.disabled!==void 0&&(t.disabled=Td(t.disabled,n)),t.hidden!==void 0&&(t.hidden=Td(t.hidden,n)),t.modifiers)){let e={};Object.keys(t.modifiers).forEach(r=>{e[r]=Td(t.modifiers?.[r],n)}),t.modifiers=e}let{components:r,formatters:i,labels:a,dateLib:o,locale:s,classNames:c}=(0,q.useMemo)(()=>{let e={...vl,...t.locale},n=t.broadcastCalendar?1:t.weekStartsOn,r=t.noonSafe&&t.timeZone?Hu(t.timeZone,{weekStartsOn:n,locale:e}):void 0,i=t.dateLib&&r?{...r,...t.dateLib}:t.dateLib??r,a=new yl({locale:e,weekStartsOn:n,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},i);return{dateLib:a,components:du(t.components),formatters:Su(t.formatters),labels:Lu(t.labels,a.options),locale:e,classNames:{...pu(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.noonSafe,t.components,t.formatters,t.labels,t.classNames]);t.today||(t={...t,today:o.today()});let{captionLayout:l,mode:u,navLayout:d,numberOfMonths:f=1,onDayBlur:p,onDayClick:m,onDayFocus:h,onDayKeyDown:g,onDayMouseEnter:_,onDayMouseLeave:v,onNextClick:y,onPrevClick:b,showWeekNumber:x,styles:S}=t,{formatCaption:C,formatDay:w,formatMonthDropdown:T,formatWeekNumber:E,formatWeekNumberHeader:D,formatWeekdayName:O,formatYearDropdown:k}=i,A=sd(t,o),{days:j,months:M,navStart:N,navEnd:ee,previousMonth:P,nextMonth:F,goToMonth:I}=A,te=lu(j,t,N,ee,o),{isSelected:ne,select:re,selected:L}=xd(t,o)??{},{blur:R,focused:z,isFocusTarget:B,moveFocus:ie,setFocused:V}=pd(t,A,te,ne??(()=>!1),o),{labelDayButton:ae,labelGridcell:H,labelGrid:oe,labelMonthDropdown:U,labelNav:W,labelPrevious:G,labelNext:se,labelWeekday:ce,labelWeekNumber:le,labelWeekNumberHeader:ue,labelYearDropdown:de}=a,fe=(0,q.useMemo)(()=>Bu(o,t.ISOWeek,t.broadcastCalendar,t.today),[o,t.ISOWeek,t.broadcastCalendar,t.today]),pe=u!==void 0||m!==void 0,me=(0,q.useCallback)(()=>{P&&(I(P),b?.(P))},[P,I,b]),he=(0,q.useCallback)(()=>{F&&(I(F),y?.(F))},[I,F,y]),ge=(0,q.useCallback)((e,t)=>n=>{n.preventDefault(),n.stopPropagation(),V(e),!t.disabled&&(re?.(e.date,t,n),m?.(e.date,t,n))},[re,m,V]),K=(0,q.useCallback)((e,t)=>n=>{V(e),h?.(e.date,t,n)},[h,V]),_e=(0,q.useCallback)((e,t)=>n=>{R(),p?.(e.date,t,n)},[R,p]),ve=(0,q.useCallback)((e,n)=>r=>{let i={ArrowLeft:[r.shiftKey?`month`:`day`,t.dir===`rtl`?`after`:`before`],ArrowRight:[r.shiftKey?`month`:`day`,t.dir===`rtl`?`before`:`after`],ArrowDown:[r.shiftKey?`year`:`week`,`after`],ArrowUp:[r.shiftKey?`year`:`week`,`before`],PageUp:[r.shiftKey?`year`:`month`,`before`],PageDown:[r.shiftKey?`year`:`month`,`after`],Home:[`startOfWeek`,`before`],End:[`endOfWeek`,`after`]};if(i[r.key]){r.preventDefault(),r.stopPropagation();let[e,t]=i[r.key];ie(e,t)}g?.(e.date,n,r)},[ie,g,t.dir]),ye=(0,q.useCallback)((e,t)=>n=>{_?.(e.date,t,n)},[_]),be=(0,q.useCallback)((e,t)=>n=>{v?.(e.date,t,n)},[v]),xe=(0,q.useCallback)((e,t)=>n=>{let r=Number(n.target.value),i=o.setMonth(o.startOfMonth(e),r);I(o.addMonths(i,-t))},[o,I]),Se=(0,q.useCallback)((e,t)=>n=>{let r=Number(n.target.value),i=o.setYear(o.startOfMonth(e),r);I(o.addMonths(i,-t))},[o,I]),{className:Ce,style:we}=(0,q.useMemo)(()=>({className:[c[Z.Root],t.className].filter(Boolean).join(` `),style:{...S?.[Z.Root],...t.style}}),[c,t.className,t.style,S]),Te=fu(t),Ee=e=>{let t=S?.[Z.Dropdown],n=S?.[e];if(t||n)return{...t,...n}},De=(0,q.useRef)(null);Xu(De,!!t.animate,{classNames:c,months:M,focused:z,dateLib:o});let Oe={dayPickerProps:t,selected:L,select:re,isSelected:ne,months:M,nextMonth:F,previousMonth:P,goToMonth:I,getModifiers:te,components:r,classNames:c,styles:S,labels:a,formatters:i};return q.createElement(jl.Provider,{value:Oe},q.createElement(r.Root,{rootRef:t.animate?De:void 0,className:Ce,style:we,dir:t.dir,id:t.id,lang:t.lang??s.code,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t[`aria-label`],"aria-labelledby":t[`aria-labelledby`],...Te},q.createElement(r.Months,{className:c[Z.Months],style:S?.[Z.Months]},!t.hideNavigation&&!d&&q.createElement(r.Nav,{"data-animated-nav":t.animate?`true`:void 0,className:c[Z.Nav],style:S?.[Z.Nav],"aria-label":W(),onPreviousClick:me,onNextClick:he,previousMonth:P,nextMonth:F}),M.map((e,n)=>{let a=t.reverseMonths?M.length-1-n:n;return q.createElement(r.Month,{"data-animated-month":t.animate?`true`:void 0,className:c[Z.Month],style:S?.[Z.Month],key:n,displayIndex:n,calendarMonth:e},d===`around`&&!t.hideNavigation&&n===0&&q.createElement(r.PreviousMonthButton,{type:`button`,className:c[Z.PreviousMonthButton],style:S?.[Z.PreviousMonthButton],tabIndex:P?void 0:-1,"aria-disabled":!P||void 0,"aria-label":G(P),onClick:me,"data-animated-button":t.animate?`true`:void 0},q.createElement(r.Chevron,{disabled:!P||void 0,className:c[Z.Chevron],style:S?.[Z.Chevron],orientation:t.dir===`rtl`?`right`:`left`})),q.createElement(r.MonthCaption,{"data-animated-caption":t.animate?`true`:void 0,className:c[Z.MonthCaption],style:S?.[Z.MonthCaption],calendarMonth:e,displayIndex:n},l?.startsWith(`dropdown`)?q.createElement(r.DropdownNav,{className:c[Z.Dropdowns],style:S?.[Z.Dropdowns]},(()=>{let n=l===`dropdown`||l===`dropdown-months`?q.createElement(r.MonthsDropdown,{key:`month`,className:c[Z.MonthsDropdown],"aria-label":U(),disabled:!!t.disableNavigation,onChange:xe(e.date,a),options:Ru(e.date,N,ee,i,o),style:Ee(Z.MonthsDropdown),value:o.getMonth(e.date)}):q.createElement(`span`,{key:`month`},T(e.date,o)),s=l===`dropdown`||l===`dropdown-years`?q.createElement(r.YearsDropdown,{key:`year`,className:c[Z.YearsDropdown],"aria-label":de(o.options),disabled:!!t.disableNavigation,onChange:Se(e.date,a),options:Vu(N,ee,i,o,!!t.reverseYears),style:Ee(Z.YearsDropdown),value:o.getYear(e.date)}):q.createElement(`span`,{key:`year`},k(e.date,o));return o.getMonthYearOrder()===`year-first`?[s,n]:[n,s]})(),q.createElement(`span`,{role:`status`,"aria-live":`polite`,style:{border:0,clip:`rect(0 0 0 0)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,width:`1px`,whiteSpace:`nowrap`,wordWrap:`normal`}},C(e.date,o.options,o))):q.createElement(r.CaptionLabel,{className:c[Z.CaptionLabel],style:S?.[Z.CaptionLabel],role:`status`,"aria-live":`polite`},C(e.date,o.options,o))),d===`around`&&!t.hideNavigation&&n===f-1&&q.createElement(r.NextMonthButton,{type:`button`,className:c[Z.NextMonthButton],style:S?.[Z.NextMonthButton],tabIndex:F?void 0:-1,"aria-disabled":!F||void 0,"aria-label":se(F),onClick:he,"data-animated-button":t.animate?`true`:void 0},q.createElement(r.Chevron,{disabled:!F||void 0,className:c[Z.Chevron],style:S?.[Z.Chevron],orientation:t.dir===`rtl`?`left`:`right`})),n===f-1&&d===`after`&&!t.hideNavigation&&q.createElement(r.Nav,{"data-animated-nav":t.animate?`true`:void 0,className:c[Z.Nav],style:S?.[Z.Nav],"aria-label":W(),onPreviousClick:me,onNextClick:he,previousMonth:P,nextMonth:F}),q.createElement(r.MonthGrid,{role:`grid`,"aria-multiselectable":u===`multiple`||u===`range`,"aria-label":oe(e.date,o.options,o)||void 0,className:c[Z.MonthGrid],style:S?.[Z.MonthGrid]},!t.hideWeekdays&&q.createElement(r.Weekdays,{"data-animated-weekdays":t.animate?`true`:void 0,className:c[Z.Weekdays],style:S?.[Z.Weekdays]},x&&q.createElement(r.WeekNumberHeader,{"aria-label":ue(o.options),className:c[Z.WeekNumberHeader],style:S?.[Z.WeekNumberHeader],scope:`col`},D()),fe.map(e=>q.createElement(r.Weekday,{"aria-label":ce(e,o.options,o),className:c[Z.Weekday],key:String(e),style:S?.[Z.Weekday],scope:`col`},O(e,o.options,o)))),q.createElement(r.Weeks,{"data-animated-weeks":t.animate?`true`:void 0,className:c[Z.Weeks],style:S?.[Z.Weeks]},e.weeks.map(e=>q.createElement(r.Week,{className:c[Z.Week],key:e.weekNumber,style:S?.[Z.Week],week:e},x&&q.createElement(r.WeekNumber,{week:e,style:S?.[Z.WeekNumber],"aria-label":le(e.weekNumber,{locale:s}),className:c[Z.WeekNumber],scope:`row`,role:`rowheader`},E(e.weekNumber,o)),e.days.map(e=>{let{date:n}=e,i=te(e);if(i[Ol.focused]=!i.hidden&&!!z?.isEqualTo(e),i[kl.selected]=ne?.(n)||i.selected,ru(L)){let{from:e,to:t}=L;i[kl.range_start]=!!(e&&t&&o.isSameDay(n,e)),i[kl.range_end]=!!(e&&t&&o.isSameDay(n,t)),i[kl.range_middle]=tu(L,n,!0,o)}let a=zu(i,S,t.modifiersStyles),s=uu(i,c,t.modifiersClassNames),l=!pe&&!i.hidden?H(n,i,o.options,o):void 0;return q.createElement(r.Day,{key:`${e.isoDate}_${e.displayMonthId}`,day:e,modifiers:i,className:s.join(` `),style:a,role:`gridcell`,"aria-selected":i.selected||void 0,"aria-label":l,"data-day":e.isoDate,"data-month":e.outside?e.dateMonthId:void 0,"data-selected":i.selected||void 0,"data-disabled":i.disabled||void 0,"data-hidden":i.hidden||void 0,"data-outside":e.outside||void 0,"data-focused":i.focused||void 0,"data-today":i.today||void 0},!i.hidden&&pe?q.createElement(r.DayButton,{className:c[Z.DayButton],style:S?.[Z.DayButton],type:`button`,day:e,modifiers:i,disabled:!i.focused&&i.disabled||void 0,"aria-disabled":i.focused&&i.disabled||void 0,tabIndex:B(e)?0:-1,"aria-label":ae(n,i,o.options,o),onClick:ge(e,i),onBlur:_e(e,i),onFocus:K(e,i),onKeyDown:ve(e,i),onMouseEnter:ye(e,i),onMouseLeave:be(e,i)},w(n,o.options,o)):!i.hidden&&w(e.date,o.options,o))}))))))})),t.footer&&q.createElement(r.Footer,{className:c[Z.Footer],style:S?.[Z.Footer],role:`status`,"aria-live":`polite`},t.footer)))}var Dd=`en-US`,Od=Object.freeze({af:()=>n(()=>import(`./af-DPUgkQl0.js`).then(e=>e.af),[],import.meta.url),ar:()=>n(()=>import(`./ar-B-6GTIRU.js`).then(e=>e.ar),[],import.meta.url),"ar-DZ":()=>n(()=>import(`./ar-DZ-wEl298ti.js`).then(e=>e.arDZ),[],import.meta.url),"ar-EG":()=>n(()=>import(`./ar-EG-YBT90_S0.js`).then(e=>e.arEG),[],import.meta.url),"ar-MA":()=>n(()=>import(`./ar-MA-3uT-EYh6.js`).then(e=>e.arMA),[],import.meta.url),"ar-SA":()=>n(()=>import(`./ar-SA-SiQsjhhc.js`).then(e=>e.arSA),[],import.meta.url),"ar-TN":()=>n(()=>import(`./ar-TN-CfzXjKzS.js`).then(e=>e.arTN),[],import.meta.url),az:()=>n(()=>import(`./az-BqAfcNza.js`).then(e=>e.az),[],import.meta.url),be:()=>n(()=>import(`./be-CQgWXa9_.js`).then(e=>e.be),[],import.meta.url),"be-tarask":()=>n(()=>import(`./be-tarask-BmNg0Sir.js`).then(e=>e.beTarask),[],import.meta.url),bg:()=>n(()=>import(`./bg-D3evgRuS.js`).then(e=>e.bg),[],import.meta.url),bn:()=>n(()=>import(`./bn-uItkARwm.js`).then(e=>e.bn),[],import.meta.url),bs:()=>n(()=>import(`./bs-DueReOpO.js`).then(e=>e.bs),[],import.meta.url),ca:()=>n(()=>import(`./ca-Cr3AHktR.js`).then(e=>e.ca),[],import.meta.url),ckb:()=>n(()=>import(`./ckb-CTi5BET7.js`).then(e=>e.ckb),[],import.meta.url),cs:()=>n(()=>import(`./cs-43mFX9jr.js`).then(e=>e.cs),[],import.meta.url),cy:()=>n(()=>import(`./cy-BBSkg3F8.js`).then(e=>e.cy),[],import.meta.url),da:()=>n(()=>import(`./da-C5oA5qcs.js`).then(e=>e.da),[],import.meta.url),de:()=>n(()=>import(`./de-CPtbLlAf.js`).then(e=>e.de),[],import.meta.url),"de-AT":()=>n(()=>import(`./de-AT-CApxwJzu.js`).then(e=>e.deAT),[],import.meta.url),el:()=>n(()=>import(`./el-Dto2xBQU.js`).then(e=>e.el),[],import.meta.url),"en-AU":()=>n(()=>import(`./en-AU-FVwCiDJO.js`).then(e=>e.enAU),[],import.meta.url),"en-CA":()=>n(()=>import(`./en-CA-DKuJPN1U.js`).then(e=>e.enCA),[],import.meta.url),"en-GB":()=>n(()=>import(`./en-GB-DQ_y5VbJ.js`).then(e=>e.enGB),[],import.meta.url),"en-IE":()=>n(()=>import(`./en-IE-DaXOhsZW.js`).then(e=>e.enIE),[],import.meta.url),"en-IN":()=>n(()=>import(`./en-IN-CnRZnAom.js`).then(e=>e.enIN),[],import.meta.url),"en-NZ":()=>n(()=>import(`./en-NZ-CBZLEToK.js`).then(e=>e.enNZ),[],import.meta.url),"en-ZA":()=>n(()=>import(`./en-ZA-BE59v0wZ.js`).then(e=>e.enZA),[],import.meta.url),eo:()=>n(()=>import(`./eo-BL8JXIWd.js`).then(e=>e.eo),[],import.meta.url),es:()=>n(()=>import(`./es-BnoaNxsu.js`).then(e=>e.es),[],import.meta.url),et:()=>n(()=>import(`./et-tPYLNenO.js`).then(e=>e.et),[],import.meta.url),eu:()=>n(()=>import(`./eu-CUBG6bT0.js`).then(e=>e.eu),[],import.meta.url),"fa-IR":()=>n(()=>import(`./fa-IR-Rr2d9xSs.js`).then(e=>e.faIR),[],import.meta.url),fi:()=>n(()=>import(`./fi-B0NVIZsV.js`).then(e=>e.fi),[],import.meta.url),fr:()=>n(()=>import(`./fr-BbhHek8e.js`).then(e=>e.fr),[],import.meta.url),"fr-CA":()=>n(()=>import(`./fr-CA-CBDvLXFg.js`).then(e=>e.frCA),[],import.meta.url),"fr-CH":()=>n(()=>import(`./fr-CH-WPNmwPn7.js`).then(e=>e.frCH),[],import.meta.url),fy:()=>n(()=>import(`./fy-DvOBbvEF.js`).then(e=>e.fy),[],import.meta.url),gd:()=>n(()=>import(`./gd-BQPiTPX5.js`).then(e=>e.gd),[],import.meta.url),gl:()=>n(()=>import(`./gl-BJCXK8uO.js`).then(e=>e.gl),[],import.meta.url),gu:()=>n(()=>import(`./gu-CctPRz3V.js`).then(e=>e.gu),[],import.meta.url),he:()=>n(()=>import(`./he-CVFMk6p2.js`).then(e=>e.he),[],import.meta.url),hi:()=>n(()=>import(`./hi-Ba30-RwS.js`).then(e=>e.hi),[],import.meta.url),hr:()=>n(()=>import(`./hr-BZUqTbZs.js`).then(e=>e.hr),[],import.meta.url),ht:()=>n(()=>import(`./ht-BLe05tPx.js`).then(e=>e.ht),[],import.meta.url),hu:()=>n(()=>import(`./hu-2CQ_Mkww.js`).then(e=>e.hu),[],import.meta.url),hy:()=>n(()=>import(`./hy-CclcPG4H.js`).then(e=>e.hy),[],import.meta.url),id:()=>n(()=>import(`./id-6JLB8s-f.js`).then(e=>e.id),[],import.meta.url),is:()=>n(()=>import(`./is-to0CWzm1.js`).then(e=>e.is),[],import.meta.url),it:()=>n(()=>import(`./it-ea0B8Ujp.js`).then(e=>e.it),[],import.meta.url),"it-CH":()=>n(()=>import(`./it-CH-DhdfjP5Z.js`).then(e=>e.itCH),[],import.meta.url),ja:()=>n(()=>import(`./ja-B1bzkgDW.js`).then(e=>e.ja),[],import.meta.url),"ja-Hira":()=>n(()=>import(`./ja-Hira-CMrY5hXO.js`).then(e=>e.jaHira),[],import.meta.url),ka:()=>n(()=>import(`./ka-DKSXLnXP.js`).then(e=>e.ka),[],import.meta.url),kk:()=>n(()=>import(`./kk-DHwMv8Dn.js`).then(e=>e.kk),[],import.meta.url),km:()=>n(()=>import(`./km-tpLG1xNr.js`).then(e=>e.km),[],import.meta.url),kn:()=>n(()=>import(`./kn-MLreVnHA.js`).then(e=>e.kn),[],import.meta.url),ko:()=>n(()=>import(`./ko-CI0DBazn.js`).then(e=>e.ko),[],import.meta.url),lb:()=>n(()=>import(`./lb-CmL572Xe.js`).then(e=>e.lb),[],import.meta.url),lt:()=>n(()=>import(`./lt-DRtUOLdw.js`).then(e=>e.lt),[],import.meta.url),lv:()=>n(()=>import(`./lv-COSHgkOP.js`).then(e=>e.lv),[],import.meta.url),mk:()=>n(()=>import(`./mk-B0IH_YL_.js`).then(e=>e.mk),[],import.meta.url),mn:()=>n(()=>import(`./mn-P-QdQ2n3.js`).then(e=>e.mn),[],import.meta.url),ms:()=>n(()=>import(`./ms-CtyEOINy.js`).then(e=>e.ms),[],import.meta.url),mt:()=>n(()=>import(`./mt-DfuZ2HRm.js`).then(e=>e.mt),[],import.meta.url),nb:()=>n(()=>import(`./nb-2Hp-5Tnt.js`).then(e=>e.nb),[],import.meta.url),nl:()=>n(()=>import(`./nl-CZ_nLREz.js`).then(e=>e.nl),[],import.meta.url),"nl-BE":()=>n(()=>import(`./nl-BE-mmxbfNoR.js`).then(e=>e.nlBE),[],import.meta.url),nn:()=>n(()=>import(`./nn-ccWhYsNa.js`).then(e=>e.nn),[],import.meta.url),oc:()=>n(()=>import(`./oc-z504BFRV.js`).then(e=>e.oc),[],import.meta.url),pl:()=>n(()=>import(`./pl-DeQ7ASt-.js`).then(e=>e.pl),[],import.meta.url),pt:()=>n(()=>import(`./pt-CJJ1RmXd.js`).then(e=>e.pt),[],import.meta.url),"pt-BR":()=>n(()=>import(`./pt-BR-D80_lPYF.js`).then(e=>e.ptBR),[],import.meta.url),ro:()=>n(()=>import(`./ro-EuFb2TCj.js`).then(e=>e.ro),[],import.meta.url),ru:()=>n(()=>import(`./ru-CMaVQScp.js`).then(e=>e.ru),[],import.meta.url),se:()=>n(()=>import(`./se-DsfdKLdF.js`).then(e=>e.se),[],import.meta.url),sk:()=>n(()=>import(`./sk-BNV9omI8.js`).then(e=>e.sk),[],import.meta.url),sl:()=>n(()=>import(`./sl-DJS_nINU.js`).then(e=>e.sl),[],import.meta.url),sq:()=>n(()=>import(`./sq-HEgjcbHe.js`).then(e=>e.sq),[],import.meta.url),sr:()=>n(()=>import(`./sr-CO0CFu4X.js`).then(e=>e.sr),[],import.meta.url),"sr-Latn":()=>n(()=>import(`./sr-Latn-eE1Idzey.js`).then(e=>e.srLatn),[],import.meta.url),sv:()=>n(()=>import(`./sv-5uTzgQT3.js`).then(e=>e.sv),[],import.meta.url),ta:()=>n(()=>import(`./ta-BzgdkBZG.js`).then(e=>e.ta),[],import.meta.url),te:()=>n(()=>import(`./te-Ct_pl7ZJ.js`).then(e=>e.te),[],import.meta.url),th:()=>n(()=>import(`./th-DouAlk0-.js`).then(e=>e.th),[],import.meta.url),tr:()=>n(()=>import(`./tr-3XNBsI40.js`).then(e=>e.tr),[],import.meta.url),ug:()=>n(()=>import(`./ug-B9n24h9G.js`).then(e=>e.ug),[],import.meta.url),uk:()=>n(()=>import(`./uk-DCAenByf.js`).then(e=>e.uk),[],import.meta.url),uz:()=>n(()=>import(`./uz-DT3s9bZS.js`).then(e=>e.uz),[],import.meta.url),"uz-Cyrl":()=>n(()=>import(`./uz-Cyrl-JSeHEqu-.js`).then(e=>e.uzCyrl),[],import.meta.url),vi:()=>n(()=>import(`./vi-D2p-h6bY.js`).then(e=>e.vi),[],import.meta.url),"zh-CN":()=>n(()=>import(`./zh-CN-DHOKqAit.js`).then(e=>e.zhCN),[],import.meta.url),"zh-HK":()=>n(()=>import(`./zh-HK-D4iIPY7I.js`).then(e=>e.zhHK),[],import.meta.url),"zh-TW":()=>n(()=>import(`./zh-TW-gORQ_tZh.js`).then(e=>e.zhTW),[],import.meta.url)});Object.freeze([Dd,...Object.keys(Od)]);var kd=new Map([[Dd,Oc]]),Ad=new Map,jd=new Map;function Md(e){return e===Dd||Object.prototype.hasOwnProperty.call(Od,e)}function Nd(e){let t=jd.get(e);if(t!==void 0)return t;let n=Dd;try{let t=new Intl.Locale(e),{language:r,script:i,region:a}=t.maximize();n=[t.baseName,a?`${r}-${a}`:void 0,i?`${r}-${i}`:void 0,r].find(e=>!!e&&Md(e))??Dd}catch{}return jd.set(e,n),n}function Pd(e){let t=kd.get(e);if(t)return Promise.resolve(t);let n=Ad.get(e);if(n)return n;let r=Object.prototype.hasOwnProperty.call(Od,e)?Od[e]:void 0;if(!r)return Promise.resolve(Oc);let i=r().then(t=>(kd.set(e,t),t)).finally(()=>{Ad.delete(e)});return Ad.set(e,i),i}function Fd(e){let t=Ct(),n=Nd(e??t),[,r]=q.useReducer(e=>e+1,0),i=kd.get(n);return q.useEffect(()=>{if(kd.has(n))return;let e=!0;return Pd(n).then(()=>{e&&r()},()=>{}),()=>{e=!1}},[n]),i??Oc}function Id({className:e,classNames:t,showOutsideDays:n=!0,captionLayout:r=`label`,buttonVariant:i=`ghost`,formatters:a,components:o,localeTag:s,...c}){let l=pu(),u=Fd(s);return(0,J.jsx)(Ed,{locale:u,showOutsideDays:n,className:Y(`bg-background group/calendar p-3 [--cell-size:2rem] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent`,String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:r,formatters:{formatMonthDropdown:e=>e.toLocaleString(`default`,{month:`short`}),...a},classNames:{root:Y(`w-fit`,l.root),months:Y(`relative flex flex-col gap-4 md:flex-row`,l.months),month:Y(`flex w-full flex-col gap-4`,l.month),nav:Y(`absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1`,l.nav),button_previous:Y(Wo({variant:i}),`h-(--cell-size) w-(--cell-size) select-none p-0 aria-disabled:opacity-50`,l.button_previous),button_next:Y(Wo({variant:i}),`h-(--cell-size) w-(--cell-size) select-none p-0 aria-disabled:opacity-50`,l.button_next),month_caption:Y(`flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)`,l.month_caption),dropdowns:Y(`flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium`,l.dropdowns),dropdown_root:Y(`has-focus:border-ring border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] relative rounded-md border`,l.dropdown_root),dropdown:Y(`bg-popover absolute inset-0 opacity-0`,l.dropdown),caption_label:Y(`select-none font-medium`,r===`label`?`text-sm`:`[&>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md pl-2 pr-1 text-sm [&>svg]:size-3.5`,l.caption_label),weekdays:Y(`flex`,l.weekdays),weekday:Y(`text-muted-foreground flex-1 select-none rounded-md text-[0.8rem] font-normal`,l.weekday),week:Y(`mt-2 flex w-full`,l.week),week_number_header:Y(`w-(--cell-size) select-none`,l.week_number_header),week_number:Y(`text-muted-foreground select-none text-[0.8rem]`,l.week_number),day:Y(`group/day relative aspect-square h-full w-full select-none p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md`,l.day),range_start:Y(`bg-accent rounded-l-md`,l.range_start),range_middle:Y(`rounded-none`,l.range_middle),range_end:Y(`bg-accent rounded-r-md`,l.range_end),today:Y(`bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none`,l.today),outside:Y(`text-muted-foreground aria-selected:text-muted-foreground`,l.outside),disabled:Y(`text-muted-foreground opacity-50`,l.disabled),hidden:Y(`invisible`,l.hidden),...t},components:{Root:({className:e,rootRef:t,...n})=>(0,J.jsx)(`div`,{"data-slot":`calendar`,ref:t,className:Y(e),...n}),Chevron:({className:e,orientation:t,...n})=>t===`left`?(0,J.jsx)(hi,{className:Y(`size-4`,e),...n}):t===`right`?(0,J.jsx)(gi,{className:Y(`size-4`,e),...n}):(0,J.jsx)(mi,{className:Y(`size-4`,e),...n}),DayButton:Ld,WeekNumber:({children:e,...t})=>(0,J.jsx)(`td`,{...t,children:(0,J.jsx)(`div`,{className:`flex size-(--cell-size) items-center justify-center text-center`,children:e})}),...o},...c})}function Ld({className:e,day:t,modifiers:n,...r}){let i=pu(),a=q.useRef(null);return q.useEffect(()=>{n.focused&&a.current?.focus()},[n.focused]),(0,J.jsx)(X,{ref:a,variant:`ghost`,size:`icon`,"data-day":t.date.toLocaleDateString(),"data-selected-single":n.selected&&!n.range_start&&!n.range_end&&!n.range_middle,"data-range-start":n.range_start,"data-range-end":n.range_end,"data-range-middle":n.range_middle,className:Y(`data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 flex aspect-square h-auto w-full min-w-(--cell-size) flex-col gap-1 font-normal leading-none data-[range-end=true]:rounded-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] [&>span]:text-xs [&>span]:opacity-70`,i.day,e),...r})}var Rd=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`div`,{ref:n,className:Y(`rounded-lg border bg-card text-card-foreground shadow-sm`,e),...t}));Rd.displayName=`Card`;var zd=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`div`,{ref:n,className:Y(`flex flex-col space-y-1.5 p-6`,e),...t}));zd.displayName=`CardHeader`;var Bd=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`div`,{ref:n,className:Y(`text-2xl font-semibold leading-none tracking-tight`,e),...t}));Bd.displayName=`CardTitle`;var Vd=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`div`,{ref:n,className:Y(`text-sm text-muted-foreground`,e),...t}));Vd.displayName=`CardDescription`;var Hd=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`div`,{ref:n,className:Y(`p-6 pt-0`,e),...t}));Hd.displayName=`CardContent`;var Ud=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`div`,{ref:n,className:Y(`flex items-center p-6 pt-0`,e),...t}));Ud.displayName=`CardFooter`;function Wd(e){return Object.prototype.toString.call(e)===`[object Object]`}function Gd(e){return Wd(e)||Array.isArray(e)}function Kd(){return!!(typeof window<`u`&&window.document&&window.document.createElement)}function qd(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||JSON.stringify(Object.keys(e.breakpoints||{}))!==JSON.stringify(Object.keys(t.breakpoints||{}))?!1:n.every(n=>{let r=e[n],i=t[n];return typeof r==`function`?`${r}`==`${i}`:!Gd(r)||!Gd(i)?r===i:qd(r,i)})}function Jd(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function Yd(e,t){if(e.length!==t.length)return!1;let n=Jd(e),r=Jd(t);return n.every((e,t)=>{let n=r[t];return qd(e,n)})}function Xd(e){return typeof e==`number`}function Zd(e){return typeof e==`string`}function Qd(e){return typeof e==`boolean`}function $d(e){return Object.prototype.toString.call(e)===`[object Object]`}function ef(e){return Math.abs(e)}function tf(e){return Math.sign(e)}function nf(e,t){return ef(e-t)}function rf(e,t){return e===0||t===0||ef(e)<=ef(t)?0:ef(nf(ef(e),ef(t))/e)}function af(e){return Math.round(e*100)/100}function of(e){return df(e).map(Number)}function sf(e){return e[cf(e)]}function cf(e){return Math.max(0,e.length-1)}function lf(e,t){return t===cf(e)}function uf(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function df(e){return Object.keys(e)}function ff(e,t){return[e,t].reduce((e,t)=>(df(t).forEach(n=>{let r=e[n],i=t[n];e[n]=$d(r)&&$d(i)?ff(r,i):i}),e),{})}function pf(e,t){return t.MouseEvent!==void 0&&e instanceof t.MouseEvent}function mf(e,t){let n={start:r,center:i,end:a};function r(){return 0}function i(e){return a(e)/2}function a(e){return t-e}function o(r,i){return Zd(e)?n[e](r):e(t,r,i)}return{measure:o}}function hf(){let e=[];function t(t,n,i,a={passive:!0}){let o;if(`addEventListener`in t)t.addEventListener(n,i,a),o=()=>t.removeEventListener(n,i,a);else{let e=t;e.addListener(i),o=()=>e.removeListener(i)}return e.push(o),r}function n(){e=e.filter(e=>e())}let r={add:t,clear:n};return r}function gf(e,t,n,r){let i=hf(),a=1e3/60,o=null,s=0,c=0;function l(){i.add(e,`visibilitychange`,()=>{e.hidden&&m()})}function u(){p(),i.clear()}function d(e){if(!c)return;o||(o=e,n(),n());let i=e-o;for(o=e,s+=i;s>=a;)n(),s-=a;r(s/a),c&&=t.requestAnimationFrame(d)}function f(){c||=t.requestAnimationFrame(d)}function p(){t.cancelAnimationFrame(c),o=null,s=0,c=0}function m(){o=null,s=0}return{init:l,destroy:u,start:f,stop:p,update:n,render:r}}function _f(e,t){let n=t===`rtl`,r=e===`y`,i=r?`y`:`x`,a=r?`x`:`y`,o=!r&&n?-1:1,s=u(),c=d();function l(e){let{height:t,width:n}=e;return r?t:n}function u(){return r?`top`:n?`right`:`left`}function d(){return r?`bottom`:n?`left`:`right`}function f(e){return e*o}return{scroll:i,cross:a,startEdge:s,endEdge:c,measureSize:l,direction:f}}function vf(e=0,t=0){let n=ef(e-t);function r(t){return t<e}function i(e){return e>t}function a(e){return r(e)||i(e)}function o(n){return a(n)?r(n)?e:t:n}function s(e){return n?e-n*Math.ceil((e-t)/n):e}return{length:n,max:t,min:e,constrain:o,reachedAny:a,reachedMax:i,reachedMin:r,removeOffset:s}}function yf(e,t,n){let{constrain:r}=vf(0,e),i=e+1,a=o(t);function o(e){return n?ef((i+e)%i):r(e)}function s(){return a}function c(e){return a=o(e),d}function l(e){return u().set(s()+e)}function u(){return yf(e,s(),n)}let d={get:s,set:c,add:l,clone:u};return d}function bf(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v){let{cross:y,direction:b}=e,x=[`INPUT`,`SELECT`,`TEXTAREA`],S={passive:!1},C=hf(),w=hf(),T=vf(50,225).constrain(p.measure(20)),E={mouse:300,touch:400},D={mouse:500,touch:600},O=m?43:25,k=!1,A=0,j=0,M=!1,N=!1,ee=!1,P=!1;function F(e){if(!v)return;function n(t){(Qd(v)||v(e,t))&&R(t)}let r=t;C.add(r,`dragstart`,e=>e.preventDefault(),S).add(r,`touchmove`,()=>void 0,S).add(r,`touchend`,()=>void 0).add(r,`touchstart`,n).add(r,`mousedown`,n).add(r,`touchcancel`,B).add(r,`contextmenu`,B).add(r,`click`,ie,!0)}function I(){C.clear(),w.clear()}function te(){let e=P?n:t;w.add(e,`touchmove`,z,S).add(e,`touchend`,B).add(e,`mousemove`,z,S).add(e,`mouseup`,B)}function ne(e){let t=e.nodeName||``;return x.includes(t)}function re(){return(m?D:E)[P?`mouse`:`touch`]}function L(e,t){let n=d.add(tf(e)*-1),r=u.byDistance(e,!m).distance;return m||ef(e)<T?r:g&&t?r*.5:u.byIndex(n.get(),0).distance}function R(e){let t=pf(e,r);P=t,ee=m&&t&&!e.buttons&&k,k=nf(i.get(),o.get())>=2,!(t&&e.button!==0)&&(ne(e.target)||(M=!0,a.pointerDown(e),l.useFriction(0).useDuration(0),i.set(o),te(),A=a.readPoint(e),j=a.readPoint(e,y),f.emit(`pointerDown`)))}function z(e){if(!pf(e,r)&&e.touches.length>=2)return B(e);let t=a.readPoint(e),n=a.readPoint(e,y),o=nf(t,A),c=nf(n,j);if(!N&&!P&&(!e.cancelable||(N=o>c,!N)))return B(e);let u=a.pointerMove(e);o>h&&(ee=!0),l.useFriction(.3).useDuration(.75),s.start(),i.add(b(u)),e.preventDefault()}function B(e){let t=u.byDistance(0,!1).index!==d.get(),n=a.pointerUp(e)*re(),r=L(b(n),t),i=rf(n,r),o=O-10*i,s=_+i/50;N=!1,M=!1,w.clear(),l.useDuration(o).useFriction(s),c.distance(r,!m),P=!1,f.emit(`pointerUp`)}function ie(e){ee&&=(e.stopPropagation(),e.preventDefault(),!1)}function V(){return M}return{init:F,destroy:I,pointerDown:V}}function xf(e,t){let n,r;function i(e){return e.timeStamp}function a(n,r){let i=`client${(r||e.scroll)===`x`?`X`:`Y`}`;return(pf(n,t)?n:n.touches[0])[i]}function o(e){return n=e,r=e,a(e)}function s(e){let t=a(e)-a(r),o=i(e)-i(n)>170;return r=e,o&&(n=e),t}function c(e){if(!n||!r)return 0;let t=a(r)-a(n),o=i(e)-i(n),s=i(e)-i(r)>170,c=t/o;return o&&!s&&ef(c)>.1?c:0}return{pointerDown:o,pointerMove:s,pointerUp:c,readPoint:a}}function Sf(){function e(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;return{top:t,right:n+r,bottom:t+i,left:n,width:r,height:i}}return{measure:e}}function Cf(e){function t(t){return t/100*e}return{measure:t}}function wf(e,t,n,r,i,a,o){let s=[e].concat(r),c,l,u=[],d=!1;function f(e){return i.measureSize(o.measure(e))}function p(i){if(!a)return;l=f(e),u=r.map(f);function o(n){for(let a of n){if(d)return;let n=a.target===e,o=r.indexOf(a.target),s=n?l:u[o];if(ef(f(n?e:r[o])-s)>=.5){i.reInit(),t.emit(`resize`);break}}}c=new ResizeObserver(e=>{(Qd(a)||a(i,e))&&o(e)}),n.requestAnimationFrame(()=>{s.forEach(e=>c.observe(e))})}function m(){d=!0,c&&c.disconnect()}return{init:p,destroy:m}}function Tf(e,t,n,r,i,a){let o=0,s=0,c=i,l=a,u=e.get(),d=0;function f(){let t=r.get()-e.get(),i=!c,a=0;return i?(o=0,n.set(r),e.set(r),a=t):(n.set(e),o+=t/c,o*=l,u+=o,e.add(o),a=u-d),s=tf(a),d=u,x}function p(){return ef(r.get()-t.get())<.001}function m(){return c}function h(){return s}function g(){return o}function _(){return y(i)}function v(){return b(a)}function y(e){return c=e,x}function b(e){return l=e,x}let x={direction:h,duration:m,velocity:g,seek:f,settled:p,useBaseFriction:v,useBaseDuration:_,useFriction:b,useDuration:y};return x}function Ef(e,t,n,r,i){let a=i.measure(10),o=i.measure(50),s=vf(.1,.99),c=!1;function l(){return!(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(i){if(!l())return;let c=ef(e[e.reachedMin(t.get())?`min`:`max`]-t.get()),u=n.get()-t.get(),d=s.constrain(c/o);n.subtract(u*d),!i&&ef(u)<a&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function d(e){c=!e}return{shouldConstrain:l,constrain:u,toggleActive:d}}function Df(e,t,n,r,i){let a=vf(-t+e,0),o=d(),s=u(),c=f();function l(e,t){return nf(e,t)<=1}function u(){let e=o[0],t=sf(o);return vf(o.lastIndexOf(e),o.indexOf(t)+1)}function d(){return n.map((e,t)=>{let{min:r,max:i}=a,o=a.constrain(e),s=!t,c=lf(n,t);return s?i:c||l(r,o)?r:l(i,o)?i:o}).map(e=>parseFloat(e.toFixed(3)))}function f(){if(t<=e+i)return[a.max];if(r===`keepSnaps`)return o;let{min:n,max:c}=s;return o.slice(n,c)}return{snapsContained:c,scrollContainLimit:s}}function Of(e,t,n){let r=t[0];return{limit:vf(n?r-e:sf(t),r)}}function kf(e,t,n,r){let i=.1,{reachedMin:a,reachedMax:o}=vf(t.min+i,t.max+i);function s(e){return e===1?o(n.get()):e===-1&&a(n.get())}function c(t){if(!s(t))return;let n=t*-1*e;r.forEach(e=>e.add(n))}return{loop:c}}function Af(e){let{max:t,length:n}=e;function r(e){let r=e-t;return n?r/-n:0}return{get:r}}function jf(e,t,n,r,i){let{startEdge:a,endEdge:o}=e,{groupSlides:s}=i,c=d().map(t.measure),l=f(),u=p();function d(){return s(r).map(e=>sf(e)[o]-e[0][a]).map(ef)}function f(){return r.map(e=>n[a]-e[a]).map(e=>-ef(e))}function p(){return s(l).map(e=>e[0]).map((e,t)=>e+c[t])}return{snaps:l,snapsAligned:u}}function Mf(e,t,n,r,i,a){let{groupSlides:o}=i,{min:s,max:c}=r,l=u();function u(){let r=o(a),i=!e||t===`keepSnaps`;return n.length===1?[a]:i?r:r.slice(s,c).map((e,t,n)=>{let r=!t,i=lf(n,t);return r?uf(sf(n[0])+1):i?uf(cf(a)-sf(n)[0]+1,sf(n)[0]):e})}return{slideRegistry:l}}function Nf(e,t,n,r,i){let{reachedAny:a,removeOffset:o,constrain:s}=r;function c(e){return e.concat().sort((e,t)=>ef(e)-ef(t))[0]}function l(n){let r=e?o(n):s(n),{index:i}=t.map((e,t)=>({diff:u(e-r,0),index:t})).sort((e,t)=>ef(e.diff)-ef(t.diff))[0];return{index:i,distance:r}}function u(t,r){let i=[t,t+n,t-n];if(!e)return t;if(!r)return c(i);let a=i.filter(e=>tf(e)===r);return a.length?c(a):sf(i)-n}function d(e,n){return{index:e,distance:u(t[e]-i.get(),n)}}function f(n,r){let o=i.get()+n,{index:s,distance:c}=l(o),d=!e&&a(o);return!r||d?{index:s,distance:n}:{index:s,distance:n+u(t[s]-c,0)}}return{byDistance:f,byIndex:d,shortcut:u}}function Pf(e,t,n,r,i,a,o){function s(i){let s=i.distance,c=i.index!==t.get();a.add(s),s&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),c&&(n.set(t.get()),t.set(i.index),o.emit(`select`))}function c(e,t){s(i.byDistance(e,t))}function l(e,n){let r=t.clone().set(e);s(i.byIndex(r.get(),n))}return{distance:c,index:l}}function Ff(e,t,n,r,i,a,o,s){let c={passive:!0,capture:!0},l=0;function u(u){if(!s)return;function f(t){if(new Date().getTime()-l>10)return;o.emit(`slideFocusStart`),e.scrollLeft=0;let a=n.findIndex(e=>e.includes(t));Xd(a)&&(i.useDuration(0),r.index(a,0),o.emit(`slideFocus`))}a.add(document,`keydown`,d,!1),t.forEach((e,t)=>{a.add(e,`focus`,e=>{(Qd(s)||s(u,e))&&f(t)},c)})}function d(e){e.code===`Tab`&&(l=new Date().getTime())}return{init:u}}function If(e){let t=e;function n(){return t}function r(e){t=o(e)}function i(e){t+=o(e)}function a(e){t-=o(e)}function o(e){return Xd(e)?e:e.get()}return{get:n,set:r,add:i,subtract:a}}function Lf(e,t){let n=e.scroll===`x`?o:s,r=t.style,i=null,a=!1;function o(e){return`translate3d(${e}px,0px,0px)`}function s(e){return`translate3d(0px,${e}px,0px)`}function c(t){if(a)return;let o=af(e.direction(t));o!==i&&(r.transform=n(o),i=o)}function l(e){a=!e}function u(){a||(r.transform=``,t.getAttribute(`style`)||t.removeAttribute(`style`))}return{clear:u,to:c,toggleActive:l}}function Rf(e,t,n,r,i,a,o,s,c){let l=.5,u=of(i),d=of(i).reverse(),f=_().concat(v());function p(e,t){return e.reduce((e,t)=>e-i[t],t)}function m(e,t){return e.reduce((e,n)=>p(e,t)>0?e.concat([n]):e,[])}function h(e){return a.map((n,i)=>({start:n-r[i]+l+e,end:n+t-l+e}))}function g(t,r,i){let a=h(r);return t.map(t=>{let r=i?0:-n,o=i?n:0,l=i?`end`:`start`,u=a[t][l];return{index:t,loopPoint:u,slideLocation:If(-1),translate:Lf(e,c[t]),target:()=>s.get()>u?r:o}})}function _(){let e=o[0];return g(m(d,e),n,!1)}function v(){let e=t-o[0]-1;return g(m(u,e),-n,!0)}function y(){return f.every(({index:e})=>p(u.filter(t=>t!==e),t)<=.1)}function b(){f.forEach(e=>{let{target:t,translate:n,slideLocation:r}=e,i=t();i!==r.get()&&(n.to(i),r.set(i))})}function x(){f.forEach(e=>e.translate.clear())}return{canLoop:y,clear:x,loop:b,loopPoints:f}}function zf(e,t,n){let r,i=!1;function a(a){if(!n)return;function o(e){for(let n of e)if(n.type===`childList`){a.reInit(),t.emit(`slidesChanged`);break}}r=new MutationObserver(e=>{i||(Qd(n)||n(a,e))&&o(e)}),r.observe(e,{childList:!0})}function o(){r&&r.disconnect(),i=!0}return{init:a,destroy:o}}function Bf(e,t,n,r){let i={},a=null,o=null,s,c=!1;function l(){s=new IntersectionObserver(e=>{c||(e.forEach(e=>{let n=t.indexOf(e.target);i[n]=e}),a=null,o=null,n.emit(`slidesInView`))},{root:e.parentElement,threshold:r}),t.forEach(e=>s.observe(e))}function u(){s&&s.disconnect(),c=!0}function d(e){return df(i).reduce((t,n)=>{let r=parseInt(n),{isIntersecting:a}=i[r];return(e&&a||!e&&!a)&&t.push(r),t},[])}function f(e=!0){if(e&&a)return a;if(!e&&o)return o;let t=d(e);return e&&(a=t),e||(o=t),t}return{init:l,destroy:u,get:f}}function Vf(e,t,n,r,i,a){let{measureSize:o,startEdge:s,endEdge:c}=e,l=n[0]&&i,u=m(),d=h(),f=n.map(o),p=g();function m(){if(!l)return 0;let e=n[0];return ef(t[s]-e[s])}function h(){if(!l)return 0;let e=a.getComputedStyle(sf(r));return parseFloat(e.getPropertyValue(`margin-${c}`))}function g(){return n.map((e,t,n)=>{let r=!t,i=lf(n,t);return r?f[t]+u:i?f[t]+d:n[t+1][s]-e[s]}).map(ef)}return{slideSizes:f,slideSizesWithGaps:p,startGap:u,endGap:d}}function Hf(e,t,n,r,i,a,o,s,c){let{startEdge:l,endEdge:u,direction:d}=e,f=Xd(n);function p(e,t){return of(e).filter(e=>e%t===0).map(n=>e.slice(n,n+t))}function m(e){return e.length?of(e).reduce((n,f,p)=>{let m=sf(n)||0,h=m===0,g=f===cf(e),_=i[l]-a[m][l],v=i[l]-a[f][u],y=!r&&h?d(o):0,b=ef(v-(!r&&g?d(s):0)-(_+y));return p&&b>t+c&&n.push(f),g&&n.push(e.length),n},[]).map((t,n,r)=>{let i=Math.max(r[n-1]||0);return e.slice(i,t)}):[]}function h(e){return f?p(e,n):m(e)}return{groupSlides:h}}function Uf(e,t,n,r,i,a,o){let{align:s,axis:c,direction:l,startIndex:u,loop:d,duration:f,dragFree:p,dragThreshold:m,inViewThreshold:h,slidesToScroll:g,skipSnaps:_,containScroll:v,watchResize:y,watchSlides:b,watchDrag:x,watchFocus:S}=a,C=Sf(),w=C.measure(t),T=n.map(C.measure),E=_f(c,l),D=E.measureSize(w),O=Cf(D),k=mf(s,D),A=!d&&!!v,{slideSizes:j,slideSizesWithGaps:M,startGap:N,endGap:ee}=Vf(E,w,T,n,d||!!v,i),P=Hf(E,D,g,d,w,T,N,ee,2),{snaps:F,snapsAligned:I}=jf(E,k,w,T,P),te=-sf(F)+sf(M),{snapsContained:ne,scrollContainLimit:re}=Df(D,te,I,v,2),L=A?ne:I,{limit:R}=Of(te,L,d),z=yf(cf(L),u,d),B=z.clone(),ie=of(n),V=({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}})=>{r||n.constrain(e.pointerDown()),t.seek()},ae=({scrollBody:e,translate:t,location:n,offsetLocation:r,previousLocation:i,scrollLooper:a,slideLooper:o,dragHandler:s,animation:c,eventHandler:l,scrollBounds:u,options:{loop:d}},f)=>{let p=e.settled(),m=!u.shouldConstrain(),h=d?p:p&&m,g=h&&!s.pointerDown();g&&c.stop();let _=n.get()*f+i.get()*(1-f);r.set(_),d&&(a.loop(e.direction()),o.loop()),t.to(r.get()),g&&l.emit(`settle`),h||l.emit(`scroll`)},H=gf(r,i,()=>V(K),e=>ae(K,e)),oe=.68,U=L[z.get()],W=If(U),G=If(U),se=If(U),ce=If(U),le=Tf(W,se,G,ce,f,oe),ue=Nf(d,L,te,R,ce),de=Pf(H,z,B,le,ue,ce,o),fe=Af(R),pe=hf(),me=Bf(t,n,o,h),{slideRegistry:he}=Mf(A,v,L,re,P,ie),ge=Ff(e,n,he,de,le,pe,o,S),K={ownerDocument:r,ownerWindow:i,eventHandler:o,containerRect:w,slideRects:T,animation:H,axis:E,dragHandler:bf(E,e,r,i,ce,xf(E,i),W,H,de,le,ue,z,o,O,p,m,_,oe,x),eventStore:pe,percentOfView:O,index:z,indexPrevious:B,limit:R,location:W,offsetLocation:se,previousLocation:G,options:a,resizeHandler:wf(t,o,i,n,E,y,C),scrollBody:le,scrollBounds:Ef(R,se,ce,le,O),scrollLooper:kf(te,R,se,[W,se,G,ce]),scrollProgress:fe,scrollSnapList:L.map(fe.get),scrollSnaps:L,scrollTarget:ue,scrollTo:de,slideLooper:Rf(E,D,te,j,M,F,L,se,n),slideFocus:ge,slidesHandler:zf(t,o,b),slidesInView:me,slideIndexes:ie,slideRegistry:he,slidesToScroll:P,target:ce,translate:Lf(E,t)};return K}function Wf(){let e={},t;function n(e){t=e}function r(t){return e[t]||[]}function i(e){return r(e).forEach(n=>n(t,e)),c}function a(t,n){return e[t]=r(t).concat([n]),c}function o(t,n){return e[t]=r(t).filter(e=>e!==n),c}function s(){e={}}let c={init:n,emit:i,off:o,on:a,clear:s};return c}var Gf={align:`center`,axis:`x`,container:null,slides:null,containScroll:`trimSnaps`,direction:`ltr`,slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Kf(e){function t(e,t){return ff(e,t||{})}function n(n){let r=n.breakpoints||{};return t(n,df(r).filter(t=>e.matchMedia(t).matches).map(e=>r[e]).reduce((e,n)=>t(e,n),{}))}function r(t){return t.map(e=>df(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function qf(e){let t=[];function n(n,r){return t=r.filter(({options:t})=>e.optionsAtMedia(t).active!==!1),t.forEach(t=>t.init(n,e)),r.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})}function r(){t=t.filter(e=>e.destroy())}return{init:n,destroy:r}}function Jf(e,t,n){let r=e.ownerDocument,i=r.defaultView,a=Kf(i),o=qf(a),s=hf(),c=Wf(),{mergeOptions:l,optionsAtMedia:u,optionsMediaQueries:d}=a,{on:f,off:p,emit:m}=c,h=D,g=!1,_,v=l(Gf,Jf.globalOptions),y=l(v),b=[],x,S,C;function w(){let{container:t,slides:n}=y;S=(Zd(t)?e.querySelector(t):t)||e.children[0];let r=Zd(n)?S.querySelectorAll(n):n;C=[].slice.call(r||S.children)}function T(t){let n=Uf(e,S,C,r,i,t,c);return t.loop&&!n.slideLooper.canLoop()?T(Object.assign({},t,{loop:!1})):n}function E(e,t){g||(v=l(v,e),y=u(v),b=t||b,w(),_=T(y),d([v,...b.map(({options:e})=>e)]).forEach(e=>s.add(e,`change`,D)),y.active&&(_.translate.to(_.location.get()),_.animation.init(),_.slidesInView.init(),_.slideFocus.init(V),_.eventHandler.init(V),_.resizeHandler.init(V),_.slidesHandler.init(V),_.options.loop&&_.slideLooper.loop(),S.offsetParent&&C.length&&_.dragHandler.init(V),x=o.init(V,b)))}function D(e,t){let n=I();O(),E(l({startIndex:n},e),t),c.emit(`reInit`)}function O(){_.dragHandler.destroy(),_.eventStore.clear(),_.translate.clear(),_.slideLooper.clear(),_.resizeHandler.destroy(),_.slidesHandler.destroy(),_.slidesInView.destroy(),_.animation.destroy(),o.destroy(),s.clear()}function k(){g||(g=!0,s.clear(),O(),c.emit(`destroy`),c.clear())}function A(e,t,n){y.active&&!g&&(_.scrollBody.useBaseFriction().useDuration(t===!0?0:y.duration),_.scrollTo.index(e,n||0))}function j(e){A(_.index.add(1).get(),e,-1)}function M(e){A(_.index.add(-1).get(),e,1)}function N(){return _.index.add(1).get()!==I()}function ee(){return _.index.add(-1).get()!==I()}function P(){return _.scrollSnapList}function F(){return _.scrollProgress.get(_.offsetLocation.get())}function I(){return _.index.get()}function te(){return _.indexPrevious.get()}function ne(){return _.slidesInView.get()}function re(){return _.slidesInView.get(!1)}function L(){return x}function R(){return _}function z(){return e}function B(){return S}function ie(){return C}let V={canScrollNext:N,canScrollPrev:ee,containerNode:B,internalEngine:R,destroy:k,off:p,on:f,emit:m,plugins:L,previousScrollSnap:te,reInit:h,rootNode:z,scrollNext:j,scrollPrev:M,scrollProgress:F,scrollSnapList:P,scrollTo:A,selectedScrollSnap:I,slideNodes:ie,slidesInView:ne,slidesNotInView:re};return E(t,n),setTimeout(()=>c.emit(`init`),0),V}Jf.globalOptions=void 0;function Yf(e={},t=[]){let n=(0,q.useRef)(e),r=(0,q.useRef)(t),[i,a]=(0,q.useState)(),[o,s]=(0,q.useState)(),c=(0,q.useCallback)(()=>{i&&i.reInit(n.current,r.current)},[i]);return(0,q.useEffect)(()=>{qd(n.current,e)||(n.current=e,c())},[e,c]),(0,q.useEffect)(()=>{Yd(r.current,t)||(r.current=t,c())},[t,c]),(0,q.useEffect)(()=>{if(Kd()&&o){Jf.globalOptions=Yf.globalOptions;let e=Jf(o,n.current,r.current);return a(e),()=>e.destroy()}a(void 0)},[o,a]),[s,i]}Yf.globalOptions=void 0;var Xf=q.createContext(null);function Zf(){let e=q.useContext(Xf);if(!e)throw Error(`useCarousel must be used within a <Carousel />`);return e}var Qf=q.forwardRef(({orientation:e=`horizontal`,opts:t,setApi:n,plugins:r,className:i,children:a,...o},s)=>{let[c,l]=Yf({...t,axis:e===`horizontal`?`x`:`y`},r),[u,d]=q.useState(!1),[f,p]=q.useState(!1),m=q.useCallback(e=>{e&&(d(e.canScrollPrev()),p(e.canScrollNext()))},[]),h=q.useCallback(()=>{l?.scrollPrev()},[l]),g=q.useCallback(()=>{l?.scrollNext()},[l]),_=q.useCallback(e=>{e.key===`ArrowLeft`?(e.preventDefault(),h()):e.key===`ArrowRight`&&(e.preventDefault(),g())},[h,g]);return q.useEffect(()=>{l&&n&&n(l)},[l,n]),q.useEffect(()=>{if(l)return m(l),l.on(`reInit`,m),l.on(`select`,m),()=>{l?.off(`select`,m)}},[l,m]),(0,J.jsx)(Xf.Provider,{value:{carouselRef:c,api:l,opts:t,orientation:e||(t?.axis===`y`?`vertical`:`horizontal`),scrollPrev:h,scrollNext:g,canScrollPrev:u,canScrollNext:f},children:(0,J.jsx)(`div`,{ref:s,onKeyDownCapture:_,className:Y(`relative`,i),role:`region`,"aria-roledescription":`carousel`,...o,children:a})})});Qf.displayName=`Carousel`;var $f=q.forwardRef(({className:e,...t},n)=>{let{carouselRef:r,orientation:i}=Zf();return(0,J.jsx)(`div`,{ref:r,className:`overflow-hidden`,children:(0,J.jsx)(`div`,{ref:n,className:Y(`flex`,i===`horizontal`?`-ml-4`:`-mt-4 flex-col`,e),...t})})});$f.displayName=`CarouselContent`;var ep=q.forwardRef(({className:e,...t},n)=>{let{orientation:r}=Zf();return(0,J.jsx)(`div`,{ref:n,role:`group`,"aria-roledescription":`slide`,className:Y(`min-w-0 shrink-0 grow-0 basis-full`,r===`horizontal`?`pl-4`:`pt-4`,e),...t})});ep.displayName=`CarouselItem`;var tp=q.forwardRef(({className:e,variant:t=`outline`,size:n=`icon`,...r},i)=>{let{orientation:a,scrollPrev:o,canScrollPrev:s}=Zf();return(0,J.jsxs)(X,{ref:i,variant:t,size:n,className:Y(`absolute h-8 w-8 rounded-full`,a===`horizontal`?`-left-12 top-1/2 -translate-y-1/2`:`-top-12 left-1/2 -translate-x-1/2 rotate-90`,e),disabled:!s,onClick:o,...r,children:[(0,J.jsx)(oi,{className:`h-4 w-4`}),(0,J.jsx)(`span`,{className:`sr-only`,children:`Previous slide`})]})});tp.displayName=`CarouselPrevious`;var np=q.forwardRef(({className:e,variant:t=`outline`,size:n=`icon`,...r},i)=>{let{orientation:a,scrollNext:o,canScrollNext:s}=Zf();return(0,J.jsxs)(X,{ref:i,variant:t,size:n,className:Y(`absolute h-8 w-8 rounded-full`,a===`horizontal`?`-right-12 top-1/2 -translate-y-1/2`:`-bottom-12 left-1/2 -translate-x-1/2 rotate-90`,e),disabled:!s,onClick:o,...r,children:[(0,J.jsx)(si,{className:`h-4 w-4`}),(0,J.jsx)(`span`,{className:`sr-only`,children:`Next slide`})]})});np.displayName=`CarouselNext`;var rp=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(jr,{ref:n,className:Y(`grid place-content-center peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground`,e),...t,children:(0,J.jsx)($t,{className:Y(`grid place-content-center text-current`),children:(0,J.jsx)(pi,{className:`h-4 w-4`})})}));rp.displayName=jr.displayName;var ip=Lt,ap=yn,op=Zr,sp=1,cp=.9,lp=.8,up=.17,dp=.1,fp=.999,pp=.9999,mp=.99,hp=/[\\\/_+.#"@\[\(\{&]/,gp=/[\\\/_+.#"@\[\(\{&]/g,_p=/[\s-]/,vp=/[\s-]/g;function yp(e,t,n,r,i,a,o){if(a===t.length)return i===e.length?sp:mp;var s=`${i},${a}`;if(o[s]!==void 0)return o[s];for(var c=r.charAt(a),l=n.indexOf(c,i),u=0,d,f,p,m;l>=0;)d=yp(e,t,n,r,l+1,a+1,o),d>u&&(l===i?d*=sp:hp.test(e.charAt(l-1))?(d*=lp,p=e.slice(i,l-1).match(gp),p&&i>0&&(d*=fp**+p.length)):_p.test(e.charAt(l-1))?(d*=cp,m=e.slice(i,l-1).match(vp),m&&i>0&&(d*=fp**+m.length)):(d*=up,i>0&&(d*=fp**+(l-i))),e.charAt(l)!==t.charAt(a)&&(d*=pp)),(d<dp&&n.charAt(l-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(l-1)!==r.charAt(a))&&(f=yp(e,t,n,r,l+1,a+2,o),f*dp>d&&(d=f*dp)),d>u&&(u=d),l=n.indexOf(c,l+1);return o[s]=u,u}function bp(e){return e.toLowerCase().replace(vp,` `)}function xp(e,t,n){return e=n&&n.length>0?`${e+` `+n.join(` `)}`:e,yp(e,t,bp(e),bp(t),0,0,{})}var Sp=`[cmdk-group=""]`,Cp=`[cmdk-group-items=""]`,wp=`[cmdk-group-heading=""]`,Tp=`[cmdk-item=""]`,Ep=`${Tp}:not([aria-disabled="true"])`,Dp=`cmdk-item-select`,Op=`data-value`,kp=(e,t,n)=>xp(e,t,n),Ap=q.createContext(void 0),jp=()=>q.useContext(Ap),Mp=q.createContext(void 0),Np=()=>q.useContext(Mp),Pp=q.createContext(void 0),Fp=q.forwardRef((e,t)=>{let n=Yp(()=>({search:``,value:e.value??e.defaultValue??``,selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}})),r=Yp(()=>new Set),i=Yp(()=>new Map),a=Yp(()=>new Map),o=Yp(()=>new Set),s=qp(e),{label:c,children:l,value:u,onValueChange:d,filter:f,shouldFilter:p,loop:m,disablePointerSelection:h=!1,vimBindings:g=!0,..._}=e,v=Jr(),y=Jr(),b=Jr(),x=q.useRef(null),S=Qp();Jp(()=>{if(u!==void 0){let e=u.trim();n.current.value=e,C.emit()}},[u]),Jp(()=>{S(6,k)},[]);let C=q.useMemo(()=>({subscribe:e=>(o.current.add(e),()=>o.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var i,a,o;if(!Object.is(n.current[e],t)){if(n.current[e]=t,e===`search`)O(),E(),S(1,D);else if(e===`value`){if(document.activeElement.hasAttribute(`cmdk-input`)||document.activeElement.hasAttribute(`cmdk-root`)){let e=document.getElementById(b);e?e.focus():(i=document.getElementById(v))==null||i.focus()}if(S(7,()=>{n.current.selectedItemId=A()?.id,C.emit()}),r||S(5,k),s.current?.value!==void 0){let e=t??``;(o=(a=s.current).onValueChange)==null||o.call(a,e);return}}C.emit()}},emit:()=>{o.current.forEach(e=>e())}}),[]),w=q.useMemo(()=>({value:(e,t,r)=>{t!==a.current.get(e)?.value&&(a.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,T(t,r)),S(2,()=>{E(),C.emit()}))},item:(e,t)=>(r.current.add(e),t&&(i.current.has(t)?i.current.get(t).add(e):i.current.set(t,new Set([e]))),S(3,()=>{O(),E(),n.current.value||D(),C.emit()}),()=>{a.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=A();S(4,()=>{O(),t?.getAttribute(`id`)===e&&D(),C.emit()})}),group:e=>(i.current.has(e)||i.current.set(e,new Set),()=>{a.current.delete(e),i.current.delete(e)}),filter:()=>s.current.shouldFilter,label:c||e[`aria-label`],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:v,inputId:b,labelId:y,listInnerRef:x}),[]);function T(e,t){let r=s.current?.filter??kp;return e?r(e,n.current.search,t):0}function E(){if(!n.current.search||s.current.shouldFilter===!1)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach(n=>{let r=i.current.get(n),a=0;r.forEach(t=>{let n=e.get(t);a=Math.max(n,a)}),t.push([n,a])});let r=x.current;j().sort((t,n)=>{let r=t.getAttribute(`id`),i=n.getAttribute(`id`);return(e.get(i)??0)-(e.get(r)??0)}).forEach(e=>{let t=e.closest(Cp);t?t.appendChild(e.parentElement===t?e:e.closest(`${Cp} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${Cp} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{let t=x.current?.querySelector(`${Sp}[${Op}="${encodeURIComponent(e[0])}"]`);t?.parentElement.appendChild(t)})}function D(){let e=j().find(e=>e.getAttribute(`aria-disabled`)!==`true`)?.getAttribute(Op);C.setState(`value`,e||void 0)}function O(){if(!n.current.search||s.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let e=0;for(let t of r.current){let r=T(a.current.get(t)?.value??``,a.current.get(t)?.keywords??[]);n.current.filtered.items.set(t,r),r>0&&e++}for(let[e,t]of i.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=e}function k(){var e;let t=A();t&&(t.parentElement?.firstChild===t&&((e=t.closest(Sp)?.querySelector(wp))==null||e.scrollIntoView({block:`nearest`})),t.scrollIntoView({block:`nearest`}))}function A(){return x.current?.querySelector(`${Tp}[aria-selected="true"]`)}function j(){return Array.from(x.current?.querySelectorAll(Ep)||[])}function M(e){let t=j()[e];t&&C.setState(`value`,t.getAttribute(Op))}function N(e){var t;let n=A(),r=j(),i=r.findIndex(e=>e===n),a=r[i+e];(t=s.current)!=null&&t.loop&&(a=i+e<0?r[r.length-1]:i+e===r.length?r[0]:r[i+e]),a&&C.setState(`value`,a.getAttribute(Op))}function ee(e){let t=A()?.closest(Sp),n;for(;t&&!n;)t=e>0?Gp(t,Sp):Kp(t,Sp),n=t?.querySelector(Ep);n?C.setState(`value`,n.getAttribute(Op)):N(e)}let P=()=>M(j().length-1),F=e=>{e.preventDefault(),e.metaKey?P():e.altKey?ee(1):N(1)},I=e=>{e.preventDefault(),e.metaKey?M(0):e.altKey?ee(-1):N(-1)};return q.createElement(Sn.div,{ref:t,tabIndex:-1,..._,"cmdk-root":``,onKeyDown:e=>{var t;(t=_.onKeyDown)==null||t.call(_,e);let n=e.nativeEvent.isComposing||e.keyCode===229;if(!(e.defaultPrevented||n))switch(e.key){case`n`:case`j`:g&&e.ctrlKey&&F(e);break;case`ArrowDown`:F(e);break;case`p`:case`k`:g&&e.ctrlKey&&I(e);break;case`ArrowUp`:I(e);break;case`Home`:e.preventDefault(),M(0);break;case`End`:e.preventDefault(),P();break;case`Enter`:{e.preventDefault();let t=A();if(t){let e=new Event(Dp);t.dispatchEvent(e)}}}}},q.createElement(`label`,{"cmdk-label":``,htmlFor:w.inputId,id:w.labelId,style:tm},c),em(e,e=>q.createElement(Mp.Provider,{value:C},q.createElement(Ap.Provider,{value:w},e))))}),Ip=q.forwardRef((e,t)=>{let n=Jr(),r=q.useRef(null),i=q.useContext(Pp),a=jp(),o=qp(e),s=o.current?.forceMount??i?.forceMount;Jp(()=>{if(!s)return a.item(n,i?.id)},[s]);let c=Zp(n,r,[e.value,e.children,r],e.keywords),l=Np(),u=Xp(e=>e.value&&e.value===c.current),d=Xp(e=>s||a.filter()===!1?!0:!e.search||e.filtered.items.get(n)>0);q.useEffect(()=>{let t=r.current;if(t&&!e.disabled)return t.addEventListener(Dp,f),()=>t.removeEventListener(Dp,f)},[d,e.onSelect,e.disabled]);function f(){var e,t;p(),(t=(e=o.current).onSelect)==null||t.call(e,c.current)}function p(){l.setState(`value`,c.current,!0)}if(!d)return null;let{disabled:m,value:h,onSelect:g,forceMount:_,keywords:v,...y}=e;return q.createElement(Sn.div,{ref:un(r,t),...y,id:n,"cmdk-item":``,role:`option`,"aria-disabled":!!m,"aria-selected":!!u,"data-disabled":!!m,"data-selected":!!u,onPointerMove:m||a.getDisablePointerSelection()?void 0:p,onClick:m?void 0:f},e.children)}),Lp=q.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:i,...a}=e,o=Jr(),s=q.useRef(null),c=q.useRef(null),l=Jr(),u=jp(),d=Xp(e=>i||u.filter()===!1?!0:!e.search||e.filtered.groups.has(o));Jp(()=>u.group(o),[]),Zp(o,s,[e.value,e.heading,c]);let f=q.useMemo(()=>({id:o,forceMount:i}),[i]);return q.createElement(Sn.div,{ref:un(s,t),...a,"cmdk-group":``,role:`presentation`,hidden:!d||void 0},n&&q.createElement(`div`,{ref:c,"cmdk-group-heading":``,"aria-hidden":!0,id:l},n),em(e,e=>q.createElement(`div`,{"cmdk-group-items":``,role:`group`,"aria-labelledby":n?l:void 0},q.createElement(Pp.Provider,{value:f},e))))}),Rp=q.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,i=q.useRef(null),a=Xp(e=>!e.search);return!n&&!a?null:q.createElement(Sn.div,{ref:un(i,t),...r,"cmdk-separator":``,role:`separator`})}),zp=q.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,i=e.value!=null,a=Np(),o=Xp(e=>e.search),s=Xp(e=>e.selectedItemId),c=jp();return q.useEffect(()=>{e.value!=null&&a.setState(`search`,e.value)},[e.value]),q.createElement(Sn.input,{ref:t,...r,"cmdk-input":``,autoComplete:`off`,autoCorrect:`off`,spellCheck:!1,"aria-autocomplete":`list`,role:`combobox`,"aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":s,id:c.inputId,type:`text`,value:i?e.value:o,onChange:e=>{i||a.setState(`search`,e.target.value),n?.(e.target.value)}})}),Bp=q.forwardRef((e,t)=>{let{children:n,label:r=`Suggestions`,...i}=e,a=q.useRef(null),o=q.useRef(null),s=Xp(e=>e.selectedItemId),c=jp();return q.useEffect(()=>{if(o.current&&a.current){let e=o.current,t=a.current,n,r=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{let n=e.offsetHeight;t.style.setProperty(`--cmdk-list-height`,n.toFixed(1)+`px`)})});return r.observe(e),()=>{cancelAnimationFrame(n),r.unobserve(e)}}},[]),q.createElement(Sn.div,{ref:un(a,t),...i,"cmdk-list":``,role:`listbox`,tabIndex:-1,"aria-activedescendant":s,"aria-label":r,id:c.listId},em(e,e=>q.createElement(`div`,{ref:un(o,c.listInnerRef),"cmdk-list-sizer":``},e)))}),Vp=q.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:i,contentClassName:a,container:o,...s}=e;return q.createElement(Kn,{open:n,onOpenChange:r},q.createElement(Or,{container:o},q.createElement(er,{"cmdk-overlay":``,className:i}),q.createElement(Hr,{"aria-label":e.label,"cmdk-dialog":``,className:a},q.createElement(Fp,{ref:t,...s}))))}),Hp=q.forwardRef((e,t)=>Xp(e=>e.filtered.count===0)?q.createElement(Sn.div,{ref:t,...e,"cmdk-empty":``,role:`presentation`}):null),Up=q.forwardRef((e,t)=>{let{progress:n,children:r,label:i=`Loading...`,...a}=e;return q.createElement(Sn.div,{ref:t,...a,"cmdk-loading":``,role:`progressbar`,"aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},em(e,e=>q.createElement(`div`,{"aria-hidden":!0},e)))}),Wp=Object.assign(Fp,{List:Bp,Item:Ip,Input:zp,Group:Lp,Separator:Rp,Dialog:Vp,Empty:Hp,Loading:Up});function Gp(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function Kp(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function qp(e){let t=q.useRef(e);return Jp(()=>{t.current=e}),t}var Jp=typeof window>`u`?q.useEffect:q.useLayoutEffect;function Yp(e){let t=q.useRef();return t.current===void 0&&(t.current=e()),t}function Xp(e){let t=Np(),n=()=>e(t.snapshot());return q.useSyncExternalStore(t.subscribe,n,n)}function Zp(e,t,n,r=[]){let i=q.useRef(),a=jp();return Jp(()=>{var o;let s=(()=>{for(let e of n){if(typeof e==`string`)return e.trim();if(typeof e==`object`&&`current`in e)return e.current?e.current.textContent?.trim():i.current}})(),c=r.map(e=>e.trim());a.value(e,s,c),(o=t.current)==null||o.setAttribute(Op,s),i.current=s}),i}var Qp=()=>{let[e,t]=q.useState(),n=Yp(()=>new Map);return Jp(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}};function $p(e){let t=e.type;return typeof t==`function`?t(e.props):`render`in t?t.render(e.props):e}function em({asChild:e,children:t},n){return e&&q.isValidElement(t)?q.cloneElement($p(t),{ref:t.ref},n(t.props.children)):n(t)}var tm={position:`absolute`,width:`1px`,height:`1px`,padding:`0`,margin:`-1px`,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,borderWidth:`0`},nm=vt({"common.close":`Close`},`common.close`);function rm(){let{t:e}=nm();return(0,J.jsx)(`span`,{className:`sr-only`,children:e(`common.close`)})}var im=Kn,am=or,om=Or,sm=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(er,{ref:n,className:Y(`fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,e),...t}));sm.displayName=er.displayName;var cm=q.forwardRef(({className:e,children:t,...n},r)=>(0,J.jsxs)(om,{children:[(0,J.jsx)(sm,{}),(0,J.jsxs)(Hr,{ref:r,className:Y(`fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg`,e),...n,children:[t,(0,J.jsxs)(gr,{className:`absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground`,children:[(0,J.jsx)(Ta,{className:`h-4 w-4`}),(0,J.jsx)(rm,{})]})]})]}));cm.displayName=Hr.displayName;var lm=({className:e,...t})=>(0,J.jsx)(`div`,{className:Y(`flex flex-col space-y-1.5 text-center sm:text-left`,e),...t});lm.displayName=`DialogHeader`;var um=({className:e,...t})=>(0,J.jsx)(`div`,{className:Y(`flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2`,e),...t});um.displayName=`DialogFooter`;var dm=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(yr,{ref:n,className:Y(`text-lg font-semibold leading-none tracking-tight`,e),...t}));dm.displayName=yr.displayName;var fm=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(Yn,{ref:n,className:Y(`text-sm text-muted-foreground`,e),...t}));fm.displayName=Yn.displayName;var pm=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(Wp,{ref:n,className:Y(`flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground`,e),...t}));pm.displayName=Wp.displayName;var mm=({children:e,contentProps:t,title:n=`Command Palette`,description:r,...i})=>{let{className:a,...o}=t??{};return(0,J.jsx)(im,{...i,children:(0,J.jsxs)(cm,{className:Y(`overflow-hidden p-0 shadow-lg`,a),...o,children:[(0,J.jsx)(dm,{className:`sr-only`,children:n}),r?(0,J.jsx)(fm,{className:`sr-only`,children:r}):null,(0,J.jsx)(pm,{className:`[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5`,children:e})]})})},hm=q.forwardRef(({className:e,...t},n)=>(0,J.jsxs)(`div`,{className:`flex items-center border-b px-3`,"cmdk-input-wrapper":``,children:[(0,J.jsx)(la,{className:`mr-2 h-4 w-4 shrink-0 opacity-50`}),(0,J.jsx)(Wp.Input,{ref:n,className:Y(`flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50`,e),...t})]}));hm.displayName=Wp.Input.displayName;var gm=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(Wp.List,{ref:n,className:Y(`max-h-[300px] overflow-y-auto overflow-x-hidden`,e),...t}));gm.displayName=Wp.List.displayName;var _m=q.forwardRef((e,t)=>(0,J.jsx)(Wp.Empty,{ref:t,className:`py-6 text-center text-sm`,...e}));_m.displayName=Wp.Empty.displayName;var vm=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(Wp.Group,{ref:n,className:Y(`overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground`,e),...t}));vm.displayName=Wp.Group.displayName;var ym=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(Wp.Separator,{ref:n,className:Y(`-mx-1 h-px bg-border`,e),...t}));ym.displayName=Wp.Separator.displayName;var bm=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(Wp.Item,{ref:n,className:Y(`relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,e),...t}));bm.displayName=Wp.Item.displayName;var xm=Dn,Sm=tn,Cm=Tn,wm=q.forwardRef(({className:e,inset:t,children:n,...r},i)=>(0,J.jsxs)(qt,{ref:i,className:Y(`flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground`,t&&`pl-8`,e),...r,children:[n,(0,J.jsx)(gi,{className:`ml-auto h-4 w-4`})]}));wm.displayName=qt.displayName;var Tm=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(kn,{ref:n,className:Y(`z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-context-menu-content-transform-origin)`,e),...t}));Tm.displayName=kn.displayName;var Em=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(ri,{children:(0,J.jsx)(Gt,{ref:n,className:Y(`z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-context-menu-content-transform-origin)`,e),...t})}));Em.displayName=Gt.displayName;var Dm=q.forwardRef(({className:e,inset:t,...n},r)=>(0,J.jsx)(Zt,{ref:r,className:Y(`relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,t&&`pl-8`,e),...n}));Dm.displayName=Zt.displayName;var Om=q.forwardRef(({className:e,children:t,checked:n,...r},i)=>(0,J.jsxs)(pn,{ref:i,className:Y(`relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,e),checked:n,...r,children:[(0,J.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,J.jsx)(rn,{children:(0,J.jsx)(pi,{className:`h-4 w-4`})})}),t]}));Om.displayName=pn.displayName;var km=q.forwardRef(({className:e,children:t,...n},r)=>(0,J.jsxs)(Ft,{ref:r,className:Y(`relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,e),...n,children:[(0,J.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,J.jsx)(rn,{children:(0,J.jsx)(Ei,{className:`h-2 w-2 fill-current`})})}),t]}));km.displayName=Ft.displayName;var Am=q.forwardRef(({className:e,inset:t,...n},r)=>(0,J.jsx)(_n,{ref:r,className:Y(`px-2 py-1.5 text-sm font-semibold text-foreground`,t&&`pl-8`,e),...n}));Am.displayName=_n.displayName;var jm=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(Yt,{ref:n,className:Y(`-mx-1 my-1 h-px bg-border`,e),...t}));jm.displayName=Yt.displayName;var Mm=({className:e,...t})=>(0,J.jsx)(`span`,{className:Y(`ml-auto text-xs tracking-widest text-muted-foreground`,e),...t});Mm.displayName=`ContextMenuShortcut`;function Nm(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}var Pm=q.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:`bottom`,shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),Fm=()=>{let e=q.useContext(Pm);if(!e)throw Error(`useDrawerContext must be used within a Drawer.Root`);return e};Nm(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
|
|
3
|
+
[data-state=closed]
|
|
4
|
+
){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);function Im(){let e=navigator.userAgent;return typeof window<`u`&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))}function Lm(){return Hm(/^Mac/)}function Rm(){return Hm(/^iPhone/)}function zm(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function Bm(){return Hm(/^iPad/)||Lm()&&navigator.maxTouchPoints>1}function Vm(){return Rm()||Bm()}function Hm(e){return typeof window<`u`&&window.navigator!=null?e.test(window.navigator.platform):void 0}var Um=24,Wm=typeof window<`u`?q.useLayoutEffect:q.useEffect;function Gm(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}var Km=typeof document<`u`&&window.visualViewport;function qm(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function Jm(e){for(qm(e)&&(e=e.parentElement);e&&!qm(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}var Ym=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]),Xm=0,Zm;function Qm(e={}){let{isDisabled:t}=e;Wm(()=>{if(!t)return Xm++,Xm===1&&Vm()&&(Zm=$m()),()=>{Xm--,Xm===0&&Zm?.()}},[t])}function $m(){let e,t=0,n=n=>{e=Jm(n.target),(e!==document.documentElement||e!==document.body)&&(t=n.changedTouches[0].pageY)},r=n=>{if(!e||e===document.documentElement||e===document.body){n.preventDefault();return}let r=n.changedTouches[0].pageY,i=e.scrollTop,a=e.scrollHeight-e.clientHeight;a!==0&&((i<=0&&r>t||i>=a&&r<t)&&n.preventDefault(),t=r)},i=e=>{let t=e.target;rh(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform=`translateY(-2000px)`,t.focus(),requestAnimationFrame(()=>{t.style.transform=``}))},a=e=>{let t=e.target;rh(t)&&(t.style.transform=`translateY(-2000px)`,requestAnimationFrame(()=>{t.style.transform=``,Km&&(Km.height<window.innerHeight?requestAnimationFrame(()=>{nh(t)}):Km.addEventListener(`resize`,()=>nh(t),{once:!0}))}))},o=()=>{window.scrollTo(0,0)},s=window.pageXOffset,c=window.pageYOffset,l=Gm(eh(document.documentElement,`paddingRight`,`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let u=Gm(th(document,`touchstart`,n,{passive:!1,capture:!0}),th(document,`touchmove`,r,{passive:!1,capture:!0}),th(document,`touchend`,i,{passive:!1,capture:!0}),th(document,`focus`,a,!0),th(window,`scroll`,o));return()=>{l(),u(),window.scrollTo(s,c)}}function eh(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function th(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function nh(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=Jm(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let n=t.getBoundingClientRect().top,r=e.getBoundingClientRect().top;e.getBoundingClientRect().bottom>t.getBoundingClientRect().bottom+Um&&(t.scrollTop+=r-n)}e=t.parentElement}}function rh(e){return e instanceof HTMLInputElement&&!Ym.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function ih(e,t){typeof e==`function`?e(t):e!=null&&(e.current=t)}function ah(...e){return t=>e.forEach(e=>ih(e,t))}function oh(...e){return q.useCallback(ah(...e),e)}var sh=new WeakMap;function ch(e,t,n=!1){if(!e||!(e instanceof HTMLElement))return;let r={};Object.entries(t).forEach(([t,n])=>{if(t.startsWith(`--`)){e.style.setProperty(t,n);return}r[t]=e.style[t],e.style[t]=n}),!n&&sh.set(e,r)}function lh(e,t){if(!e||!(e instanceof HTMLElement))return;let n=sh.get(e);n&&(e.style[t]=n[t])}var uh=e=>{switch(e){case`top`:case`bottom`:return!0;case`left`:case`right`:return!1;default:return e}};function dh(e,t){if(!e)return null;let n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform,i=r.match(/^matrix3d\((.+)\)$/);return i?parseFloat(i[1].split(`, `)[uh(t)?13:12]):(i=r.match(/^matrix\((.+)\)$/),i?parseFloat(i[1].split(`, `)[uh(t)?5:4]):null)}function fh(e){return 8*(Math.log(e+1)-2)}function ph(e,t){if(!e)return()=>{};let n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}var mh={DURATION:.5,EASE:[.32,.72,0,1]},hh=.4,gh=.25,_h=100,vh=8,yh=16,bh=26,xh=`vaul-dragging`;function Sh(e){let t=q.useRef(e);return q.useEffect(()=>{t.current=e}),q.useMemo(()=>(...e)=>t.current==null?void 0:t.current.call(t,...e),[])}function Ch({defaultProp:e,onChange:t}){let n=q.useState(e),[r]=n,i=q.useRef(r),a=Sh(t);return q.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}function wh({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=Ch({defaultProp:t,onChange:n}),a=e!==void 0,o=a?e:r,s=Sh(n);return[o,q.useCallback(t=>{if(a){let n=typeof t==`function`?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}function Th({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:i,fadeFromIndex:a,onSnapPointChange:o,direction:s=`bottom`,container:c,snapToSequentialPoint:l}){let[u,d]=wh({prop:e,defaultProp:n?.[0],onChange:t}),[f,p]=q.useState(typeof window<`u`?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);q.useEffect(()=>{function e(){p({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]);let m=q.useMemo(()=>u===n?.[n.length-1]||null,[n,u]),h=q.useMemo(()=>n?.findIndex(e=>e===u)??null,[n,u]),g=n&&n.length>0&&(a||a===0)&&!Number.isNaN(a)&&n[a]===u||!n,_=q.useMemo(()=>{let e=c?{width:c.getBoundingClientRect().width,height:c.getBoundingClientRect().height}:typeof window<`u`?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};return n?.map(t=>{let n=typeof t==`string`,r=0;if(n&&(r=parseInt(t,10)),uh(s)){let i=n?r:f?t*e.height:0;return f?s===`bottom`?e.height-i:-e.height+i:i}let i=n?r:f?t*e.width:0;return f?s===`right`?e.width-i:-e.width+i:i})??[]},[n,f,c]),v=q.useMemo(()=>h===null?null:_?.[h],[_,h]),y=q.useCallback(e=>{let t=_?.findIndex(t=>t===e)??null;o(t),ch(r.current,{transition:`transform ${mh.DURATION}s cubic-bezier(${mh.EASE.join(`,`)})`,transform:uh(s)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`}),_&&t!==_.length-1&&a!==void 0&&t!==a&&t<a?ch(i.current,{transition:`opacity ${mh.DURATION}s cubic-bezier(${mh.EASE.join(`,`)})`,opacity:`0`}):ch(i.current,{transition:`opacity ${mh.DURATION}s cubic-bezier(${mh.EASE.join(`,`)})`,opacity:`1`}),d(n?.[Math.max(t,0)])},[r.current,n,_,a,i,d]);q.useEffect(()=>{if(u||e){let t=n?.findIndex(t=>t===e||t===u)??-1;_&&t!==-1&&typeof _[t]==`number`&&y(_[t])}},[u,e,n,_,y]);function b({draggedDistance:e,closeDrawer:t,velocity:r,dismissible:o}){if(a===void 0)return;let c=s===`bottom`||s===`right`?(v??0)-e:(v??0)+e,u=h===a-1,d=h===0,f=e>0;if(u&&ch(i.current,{transition:`opacity ${mh.DURATION}s cubic-bezier(${mh.EASE.join(`,`)})`}),!l&&r>2&&!f){o?t():y(_[0]);return}if(!l&&r>2&&f&&_&&n){y(_[n.length-1]);return}let p=_?.reduce((e,t)=>typeof e!=`number`||typeof t!=`number`?e:Math.abs(t-c)<Math.abs(e-c)?t:e),g=uh(s)?window.innerHeight:window.innerWidth;if(r>hh&&Math.abs(e)<g*.4){let e=f?1:-1;if(e>0&&m&&n){y(_[n.length-1]);return}if(d&&e<0&&o&&t(),h===null)return;y(_[h+e]);return}y(p)}function x({draggedDistance:e}){if(v===null)return;let t=s===`bottom`||s===`right`?v-e:v+e;(s===`bottom`||s===`right`)&&t<_[_.length-1]||(s===`top`||s===`left`)&&t>_[_.length-1]||ch(r.current,{transform:uh(s)?`translate3d(0, ${t}px, 0)`:`translate3d(${t}px, 0, 0)`})}function S(e,t){if(!n||typeof h!=`number`||!_||a===void 0)return null;let r=h===a-1;if(h>=a&&t)return 0;if(r&&!t)return 1;if(!g&&!r)return null;let i=r?h+1:h-1,o=r?_[i]-_[i-1]:_[i+1]-_[i],s=e/Math.abs(o);return r?1-s:s}return{isLastSnapPoint:m,activeSnapPoint:u,shouldFade:g,getPercentageDragged:S,setActiveSnapPoint:d,activeSnapPointIndex:h,onRelease:b,onDrag:x,snapPointsOffset:_}}function Eh(){let{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:i}=Fm(),a=q.useRef(null),o=(0,q.useMemo)(()=>document.body.style.backgroundColor,[]);function s(){return(window.innerWidth-bh)/window.innerWidth}q.useEffect(()=>{if(t&&n){a.current&&clearTimeout(a.current);let t=document.querySelector(`[data-vaul-drawer-wrapper]`)||document.querySelector(`[vaul-drawer-wrapper]`);if(!t)return;r&&!i&&ph(document.body,{background:`black`}),ph(t,{transformOrigin:uh(e)?`top`:`left`,transitionProperty:`transform, border-radius`,transitionDuration:`${mh.DURATION}s`,transitionTimingFunction:`cubic-bezier(${mh.EASE.join(`,`)})`});let n=ph(t,{borderRadius:`${vh}px`,overflow:`hidden`,...uh(e)?{transform:`scale(${s()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${s()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{n(),a.current=window.setTimeout(()=>{o?document.body.style.background=o:document.body.style.removeProperty(`background`)},mh.DURATION*1e3)}}},[t,n,o])}var Dh=null;function Oh({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:i,noBodyStyles:a}){let[o,s]=q.useState(()=>typeof window<`u`?window.location.href:``),c=q.useRef(0),l=q.useCallback(()=>{if(zm()&&Dh===null&&e&&!a){Dh={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:`unset`};let{scrollX:e,innerHeight:t}=window;document.body.style.setProperty(`position`,`fixed`,`important`),Object.assign(document.body.style,{top:`${-c.current}px`,left:`${-e}px`,right:`0px`,height:`auto`}),window.setTimeout(()=>window.requestAnimationFrame(()=>{let e=t-window.innerHeight;e&&c.current>=t&&(document.body.style.top=`${-(c.current+e)}px`)}),300)}},[e]),u=q.useCallback(()=>{if(zm()&&Dh!==null&&!a){let e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);Object.assign(document.body.style,Dh),window.requestAnimationFrame(()=>{if(i&&o!==window.location.href){s(window.location.href);return}window.scrollTo(t,e)}),Dh=null}},[o]);return q.useEffect(()=>{function e(){c.current=window.scrollY}return e(),window.addEventListener(`scroll`,e),()=>{window.removeEventListener(`scroll`,e)}},[]),q.useEffect(()=>{if(t)return()=>{typeof document>`u`||document.querySelector(`[data-vaul-drawer]`)||u()}},[t,u]),q.useEffect(()=>{!n&&r&&(e?(!window.matchMedia(`(display-mode: standalone)`).matches&&l(),t||window.setTimeout(()=>{u()},500)):u())},[e,r,o,t,n,l,u]),{restorePositionSetting:u}}function kh({open:e,onOpenChange:t,children:n,onDrag:r,onRelease:i,snapPoints:a,shouldScaleBackground:o=!1,setBackgroundColorOnScale:s=!0,closeThreshold:c=gh,scrollLockTimeout:l=_h,dismissible:u=!0,handleOnly:d=!1,fadeFromIndex:f=a&&a.length-1,activeSnapPoint:p,setActiveSnapPoint:m,fixed:h,modal:g=!0,onClose:_,nested:v,noBodyStyles:y=!1,direction:b=`bottom`,defaultOpen:x=!1,disablePreventScroll:S=!0,snapToSequentialPoint:C=!1,preventScrollRestoration:w=!1,repositionInputs:T=!0,onAnimationEnd:E,container:D,autoFocus:O=!1}){let[k=!1,A]=wh({defaultProp:x,prop:e,onChange:e=>{t?.(e),!e&&!v&&me(),setTimeout(()=>{E?.(e)},mh.DURATION*1e3),e&&!g&&typeof window<`u`&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents=`auto`}),e||(document.body.style.pointerEvents=`auto`)}}),[j,M]=q.useState(!1),[N,ee]=q.useState(!1),[P,F]=q.useState(!1),I=q.useRef(null),te=q.useRef(null),ne=q.useRef(null),re=q.useRef(null),L=q.useRef(null),R=q.useRef(!1),z=q.useRef(null),B=q.useRef(0),ie=q.useRef(!1),V=q.useRef(!x),ae=q.useRef(0),H=q.useRef(null),oe=q.useRef(H.current?.getBoundingClientRect().height||0),U=q.useRef(H.current?.getBoundingClientRect().width||0),W=q.useRef(0),{activeSnapPoint:G,activeSnapPointIndex:se,setActiveSnapPoint:ce,onRelease:le,snapPointsOffset:ue,onDrag:de,shouldFade:fe,getPercentageDragged:pe}=Th({snapPoints:a,activeSnapPointProp:p,setActiveSnapPointProp:m,drawerRef:H,fadeFromIndex:f,overlayRef:I,onSnapPointChange:q.useCallback(e=>{a&&e===ue.length-1&&(te.current=new Date)},[]),direction:b,container:D,snapToSequentialPoint:C});Qm({isDisabled:!k||N||!g||P||!j||!T||!S});let{restorePositionSetting:me}=Oh({isOpen:k,modal:g,nested:v??!1,hasBeenOpened:j,preventScrollRestoration:w,noBodyStyles:y});function he(){return(window.innerWidth-bh)/window.innerWidth}function ge(e){(u||a)&&(!H.current||H.current.contains(e.target))&&(oe.current=H.current?.getBoundingClientRect().height||0,U.current=H.current?.getBoundingClientRect().width||0,ee(!0),ne.current=new Date,Vm()&&window.addEventListener(`touchend`,()=>R.current=!1,{once:!0}),e.target.setPointerCapture(e.pointerId),B.current=uh(b)?e.pageY:e.pageX)}function K(e,t){let n=e,r=window.getSelection()?.toString(),i=H.current?dh(H.current,b):null,a=new Date;if(n.tagName===`SELECT`||n.hasAttribute(`data-vaul-no-drag`)||n.closest(`[data-vaul-no-drag]`))return!1;if(b===`right`||b===`left`)return!0;if(te.current&&a.getTime()-te.current.getTime()<500)return!1;if(i!==null&&(b===`bottom`?i>0:i<0))return!0;if(r&&r.length>0)return!1;if(L.current&&a.getTime()-L.current.getTime()<l&&i===0||t)return L.current=a,!1;for(;n;){if(n.scrollHeight>n.clientHeight){if(n.scrollTop!==0)return L.current=new Date,!1;if(n.getAttribute(`role`)===`dialog`)return!0}n=n.parentNode}return!0}function _e(e){if(H.current&&N){let t=b===`bottom`||b===`right`?1:-1,n=(B.current-(uh(b)?e.pageY:e.pageX))*t,i=n>0,s=a&&!u&&!i;if(s&&se===0)return;let c=Math.abs(n),l=document.querySelector(`[data-vaul-drawer-wrapper]`),d=c/(b===`bottom`||b===`top`?oe.current:U.current),p=pe(c,i);if(p!==null&&(d=p),s&&d>=1||!R.current&&!K(e.target,i))return;if(H.current.classList.add(xh),R.current=!0,ch(H.current,{transition:`none`}),ch(I.current,{transition:`none`}),a&&de({draggedDistance:n}),i&&!a){let e=fh(n),r=Math.min(e*-1,0)*t;ch(H.current,{transform:uh(b)?`translate3d(0, ${r}px, 0)`:`translate3d(${r}px, 0, 0)`});return}let m=1-d;if((fe||f&&se===f-1)&&(r?.(e,d),ch(I.current,{opacity:`${m}`,transition:`none`},!0)),l&&I.current&&o){let e=Math.min(he()+d*(1-he()),1),t=8-d*8,n=Math.max(0,14-d*14);ch(l,{borderRadius:`${t}px`,transform:uh(b)?`scale(${e}) translate3d(0, ${n}px, 0)`:`scale(${e}) translate3d(${n}px, 0, 0)`,transition:`none`},!0)}if(!a){let e=c*t;ch(H.current,{transform:uh(b)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}}}q.useEffect(()=>{window.requestAnimationFrame(()=>{V.current=!0})},[]),q.useEffect(()=>{var e;function t(){if(!H.current||!T)return;let e=document.activeElement;if(rh(e)||ie.current){let e=window.visualViewport?.height||0,t=window.innerHeight,n=t-e,r=H.current.getBoundingClientRect().height||0,i=r>t*.8;W.current||=r;let o=H.current.getBoundingClientRect().top;if(Math.abs(ae.current-n)>60&&(ie.current=!ie.current),a&&a.length>0&&ue&&se){let e=ue[se]||0;n+=e}if(ae.current=n,r>e||ie.current){let t=H.current.getBoundingClientRect().height,r=t;t>e&&(r=e-(i?o:bh)),h?H.current.style.height=`${t-Math.max(n,0)}px`:H.current.style.height=`${Math.max(r,e-o)}px`}else Im()||(H.current.style.height=`${W.current}px`);a&&a.length>0&&!ie.current?H.current.style.bottom=`0px`:H.current.style.bottom=`${Math.max(n,0)}px`}}return(e=window.visualViewport)==null||e.addEventListener(`resize`,t),()=>window.visualViewport?.removeEventListener(`resize`,t)},[se,a,ue]);function ve(e){be(),_?.(),e||A(!1),setTimeout(()=>{a&&ce(a[0])},mh.DURATION*1e3)}function ye(){if(!H.current)return;let e=document.querySelector(`[data-vaul-drawer-wrapper]`),t=dh(H.current,b);ch(H.current,{transform:`translate3d(0, 0, 0)`,transition:`transform ${mh.DURATION}s cubic-bezier(${mh.EASE.join(`,`)})`}),ch(I.current,{transition:`opacity ${mh.DURATION}s cubic-bezier(${mh.EASE.join(`,`)})`,opacity:`1`}),o&&t&&t>0&&k&&ch(e,{borderRadius:`${vh}px`,overflow:`hidden`,...uh(b)?{transform:`scale(${he()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:`top`}:{transform:`scale(${he()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:`left`},transitionProperty:`transform, border-radius`,transitionDuration:`${mh.DURATION}s`,transitionTimingFunction:`cubic-bezier(${mh.EASE.join(`,`)})`},!0)}function be(){N&&H.current&&(H.current.classList.remove(xh),R.current=!1,ee(!1),re.current=new Date)}function xe(e){if(!N||!H.current)return;H.current.classList.remove(xh),R.current=!1,ee(!1),re.current=new Date;let t=dh(H.current,b);if(!e||!K(e.target,!1)||!t||Number.isNaN(t)||ne.current===null)return;let n=re.current.getTime()-ne.current.getTime(),r=B.current-(uh(b)?e.pageY:e.pageX),o=Math.abs(r)/n;if(o>.05&&(F(!0),setTimeout(()=>{F(!1)},200)),a){le({draggedDistance:r*(b===`bottom`||b===`right`?1:-1),closeDrawer:ve,velocity:o,dismissible:u}),i?.(e,!0);return}if(b===`bottom`||b===`right`?r>0:r<0){ye(),i?.(e,!0);return}if(o>hh){ve(),i?.(e,!1);return}let s=Math.min(H.current.getBoundingClientRect().height??0,window.innerHeight),l=Math.min(H.current.getBoundingClientRect().width??0,window.innerWidth);if(Math.abs(t)>=(b===`left`||b===`right`?l:s)*c){ve(),i?.(e,!1);return}i?.(e,!0),ye()}q.useEffect(()=>(k&&(ch(document.documentElement,{scrollBehavior:`auto`}),te.current=new Date),()=>{lh(document.documentElement,`scrollBehavior`)}),[k]);function Se(e){let t=e?(window.innerWidth-yh)/window.innerWidth:1,n=e?-16:0;z.current&&window.clearTimeout(z.current),ch(H.current,{transition:`transform ${mh.DURATION}s cubic-bezier(${mh.EASE.join(`,`)})`,transform:uh(b)?`scale(${t}) translate3d(0, ${n}px, 0)`:`scale(${t}) translate3d(${n}px, 0, 0)`}),!e&&H.current&&(z.current=setTimeout(()=>{let e=dh(H.current,b);ch(H.current,{transition:`none`,transform:uh(b)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})},500))}function Ce(e,t){if(t<0)return;let n=(window.innerWidth-yh)/window.innerWidth,r=n+t*(1-n),i=-16+t*yh;ch(H.current,{transform:uh(b)?`scale(${r}) translate3d(0, ${i}px, 0)`:`scale(${r}) translate3d(${i}px, 0, 0)`,transition:`none`})}function we(e,t){let n=uh(b)?window.innerHeight:window.innerWidth,r=t?(n-yh)/n:1,i=t?-16:0;t&&ch(H.current,{transition:`transform ${mh.DURATION}s cubic-bezier(${mh.EASE.join(`,`)})`,transform:uh(b)?`scale(${r}) translate3d(0, ${i}px, 0)`:`scale(${r}) translate3d(${i}px, 0, 0)`})}return q.useEffect(()=>{g||window.requestAnimationFrame(()=>{document.body.style.pointerEvents=`auto`})},[g]),q.createElement(Kn,{defaultOpen:x,onOpenChange:e=>{(u||e)&&(e?M(!0):ve(!0),A(e))},open:k},q.createElement(Pm.Provider,{value:{activeSnapPoint:G,snapPoints:a,setActiveSnapPoint:ce,drawerRef:H,overlayRef:I,onOpenChange:t,onPress:ge,onRelease:xe,onDrag:_e,dismissible:u,shouldAnimate:V,handleOnly:d,isOpen:k,isDragging:N,shouldFade:fe,closeDrawer:ve,onNestedDrag:Ce,onNestedOpenChange:Se,onNestedRelease:we,keyboardIsOpen:ie,modal:g,snapPointsOffset:ue,activeSnapPointIndex:se,direction:b,shouldScaleBackground:o,setBackgroundColorOnScale:s,noBodyStyles:y,container:D,autoFocus:O}},n))}var Ah=q.forwardRef(function({...e},t){let{overlayRef:n,snapPoints:r,onRelease:i,shouldFade:a,isOpen:o,modal:s,shouldAnimate:c}=Fm(),l=oh(t,n),u=r&&r.length>0;if(!s)return null;let d=q.useCallback(e=>i(e),[i]);return q.createElement(er,{onMouseUp:d,ref:l,"data-vaul-overlay":``,"data-vaul-snap-points":o&&u?`true`:`false`,"data-vaul-snap-points-overlay":o&&a?`true`:`false`,"data-vaul-animate":c?.current?`true`:`false`,...e})});Ah.displayName=`Drawer.Overlay`;var jh=q.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...r},i){let{drawerRef:a,onPress:o,onRelease:s,onDrag:c,keyboardIsOpen:l,snapPointsOffset:u,activeSnapPointIndex:d,modal:f,isOpen:p,direction:m,snapPoints:h,container:g,handleOnly:_,shouldAnimate:v,autoFocus:y}=Fm(),[b,x]=q.useState(!1),S=oh(i,a),C=q.useRef(null),w=q.useRef(null),T=q.useRef(!1),E=h&&h.length>0;Eh();let D=(e,t,n=0)=>{if(T.current)return!0;let r=Math.abs(e.y),i=Math.abs(e.x),a=i>r,o=[`bottom`,`right`].includes(t)?1:-1;if(t===`left`||t===`right`){if(!(e.x*o<0)&&i>=0&&i<=n)return a}else if(!(e.y*o<0)&&r>=0&&r<=n)return!a;return T.current=!0,!0};q.useEffect(()=>{E&&window.requestAnimationFrame(()=>{x(!0)})},[]);function O(e){C.current=null,T.current=!1,s(e)}return q.createElement(Hr,{"data-vaul-drawer-direction":m,"data-vaul-drawer":``,"data-vaul-delayed-snap-points":b?`true`:`false`,"data-vaul-snap-points":p&&E?`true`:`false`,"data-vaul-custom-container":g?`true`:`false`,"data-vaul-animate":v?.current?`true`:`false`,...r,ref:S,style:u&&u.length>0?{"--snap-point-height":`${u[d??0]}px`,...t}:t,onPointerDown:e=>{_||(r.onPointerDown==null||r.onPointerDown.call(r,e),C.current={x:e.pageX,y:e.pageY},o(e))},onOpenAutoFocus:e=>{n?.(e),y||e.preventDefault()},onPointerDownOutside:t=>{if(e?.(t),!f||t.defaultPrevented){t.preventDefault();return}l.current&&=!1},onFocusOutside:e=>{if(!f){e.preventDefault();return}},onPointerMove:e=>{if(w.current=e,_||(r.onPointerMove==null||r.onPointerMove.call(r,e),!C.current))return;let t=e.pageY-C.current.y,n=e.pageX-C.current.x,i=e.pointerType===`touch`?10:2;D({x:n,y:t},m,i)?c(e):(Math.abs(n)>i||Math.abs(t)>i)&&(C.current=null)},onPointerUp:e=>{r.onPointerUp==null||r.onPointerUp.call(r,e),C.current=null,T.current=!1,s(e)},onPointerOut:e=>{r.onPointerOut==null||r.onPointerOut.call(r,e),O(w.current)},onContextMenu:e=>{r.onContextMenu==null||r.onContextMenu.call(r,e),w.current&&O(w.current)}})});jh.displayName=`Drawer.Content`;var Mh=250,Nh=120,Ph=q.forwardRef(function({preventCycle:e=!1,children:t,...n},r){let{closeDrawer:i,isDragging:a,snapPoints:o,activeSnapPoint:s,setActiveSnapPoint:c,dismissible:l,handleOnly:u,isOpen:d,onPress:f,onDrag:p}=Fm(),m=q.useRef(null),h=q.useRef(!1);function g(){if(h.current){y();return}window.setTimeout(()=>{_()},Nh)}function _(){if(a||e||h.current){y();return}if(y(),!o||o.length===0){l||i();return}if(s===o[o.length-1]&&l){i();return}let t=o.findIndex(e=>e===s);if(t===-1)return;let n=o[t+1];c(n)}function v(){m.current=window.setTimeout(()=>{h.current=!0},Mh)}function y(){m.current&&window.clearTimeout(m.current),h.current=!1}return q.createElement(`div`,{onClick:g,onPointerCancel:y,onPointerDown:e=>{u&&f(e),v()},onPointerMove:e=>{u&&p(e)},ref:r,"data-vaul-drawer-visible":d?`true`:`false`,"data-vaul-handle":``,"aria-hidden":`true`,...n},q.createElement(`span`,{"data-vaul-handle-hitarea":``,"aria-hidden":`true`},t))});Ph.displayName=`Drawer.Handle`;function Fh({onDrag:e,onOpenChange:t,open:n,...r}){let{onNestedDrag:i,onNestedOpenChange:a,onNestedRelease:o}=Fm();if(!i)throw Error(`Drawer.NestedRoot must be placed in another drawer`);return q.createElement(kh,{nested:!0,open:n,onClose:()=>{a(!1)},onDrag:(t,n)=>{i(t,n),e?.(t,n)},onOpenChange:e=>{e&&a(e),t?.(e)},onRelease:o,...r})}function Ih(e){let t=Fm(),{container:n=t.container,...r}=e;return q.createElement(Or,{container:n,...r})}var Lh={Root:kh,NestedRoot:Fh,Content:jh,Overlay:Ah,Trigger:or,Portal:Ih,Handle:Ph,Close:gr,Title:yr,Description:Yn},Rh=({shouldScaleBackground:e=!0,...t})=>(0,J.jsx)(Lh.Root,{shouldScaleBackground:e,...t});Rh.displayName=`Drawer`;var zh=Lh.Trigger,Bh=Lh.Portal,Vh=Lh.Close,Hh=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(Lh.Overlay,{ref:n,className:Y(`fixed inset-0 z-50 bg-black/80`,e),...t}));Hh.displayName=Lh.Overlay.displayName;var Uh=q.forwardRef(({className:e,children:t,...n},r)=>(0,J.jsxs)(Bh,{children:[(0,J.jsx)(Hh,{}),(0,J.jsxs)(Lh.Content,{ref:r,className:Y(`fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background`,e),...n,children:[(0,J.jsx)(`div`,{className:`mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted`}),t]})]}));Uh.displayName=`DrawerContent`;var Wh=({className:e,...t})=>(0,J.jsx)(`div`,{className:Y(`grid gap-1.5 p-4 text-center sm:text-left`,e),...t});Wh.displayName=`DrawerHeader`;var Gh=({className:e,...t})=>(0,J.jsx)(`div`,{className:Y(`mt-auto flex flex-col gap-2 p-4`,e),...t});Gh.displayName=`DrawerFooter`;var Kh=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(Lh.Title,{ref:n,className:Y(`text-lg font-semibold leading-none tracking-tight`,e),...t}));Kh.displayName=Lh.Title.displayName;var qh=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(Lh.Description,{ref:n,className:Y(`text-sm text-muted-foreground`,e),...t}));qh.displayName=Lh.Description.displayName;var Jh=dn,Yh=cn,Xh=bn,Zh=Nt,Qh=q.forwardRef(({className:e,inset:t,children:n,...r},i)=>(0,J.jsxs)(on,{ref:i,className:Y(`flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,t&&`pl-8`,e),...r,children:[n,(0,J.jsx)(gi,{className:`ml-auto`})]}));Qh.displayName=on.displayName;var $h=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(fr,{ref:n,className:Y(`z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-dropdown-menu-content-transform-origin)`,e),...t}));$h.displayName=fr.displayName;var eg=q.forwardRef(({className:e,sideOffset:t=4,...n},r)=>(0,J.jsx)(Ut,{children:(0,J.jsx)(Qr,{ref:r,sideOffset:t,className:Y(`z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-dropdown-menu-content-transform-origin)`,e),...n})}));eg.displayName=Qr.displayName;var tg=q.forwardRef(({className:e,inset:t,...n},r)=>(0,J.jsx)(Rt,{ref:r,className:Y(`relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,t&&`pl-8`,e),...n}));tg.displayName=Rt.displayName;var ng=q.forwardRef(({className:e,children:t,checked:n,...r},i)=>(0,J.jsxs)(Wn,{ref:i,className:Y(`relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,e),checked:n,...r,children:[(0,J.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,J.jsx)(Yr,{children:(0,J.jsx)(pi,{className:`h-4 w-4`})})}),t]}));ng.displayName=Wn.displayName;var rg=q.forwardRef(({className:e,children:t,...n},r)=>(0,J.jsxs)(Vt,{ref:r,className:Y(`relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,e),...n,children:[(0,J.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,J.jsx)(Yr,{children:(0,J.jsx)(Ei,{className:`h-2 w-2 fill-current`})})}),t]}));rg.displayName=Vt.displayName;var ig=q.forwardRef(({className:e,inset:t,...n},r)=>(0,J.jsx)(Cn,{ref:r,className:Y(`px-2 py-1.5 text-sm font-semibold`,t&&`pl-8`,e),...n}));ig.displayName=Cn.displayName;var ag=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(mr,{ref:n,className:Y(`-mx-1 my-1 h-px bg-muted`,e),...t}));ag.displayName=mr.displayName;var og=e=>e.type===`checkbox`,sg=e=>e.type===`file`,cg=e=>e instanceof Date,lg=e=>e==null,ug=e=>typeof e==`object`,dg=e=>!lg(e)&&!Array.isArray(e)&&ug(e)&&!cg(e),fg=e=>dg(e)&&e.target?og(e.target)?e.target.checked:sg(e.target)?e.target.files:e.target.value:e,pg=(e,t)=>t.split(`.`).some((t,n,r)=>!isNaN(Number(t))&&e.has(r.slice(0,n).join(`.`))),mg=e=>{let t=e.constructor&&e.constructor.prototype;return dg(t)&&t.hasOwnProperty(`isPrototypeOf`)},hg=typeof window<`u`&&window.HTMLElement!==void 0&&typeof document<`u`;function gg(e){if(e instanceof Date)return new Date(e);let t=typeof FileList<`u`&&e instanceof FileList;if(hg&&(e instanceof Blob||t))return e;let n=Array.isArray(e);if(!n&&!(dg(e)&&mg(e)))return e;let r=n?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=gg(e[t]));return r}var _g={BLUR:`blur`,FOCUS_OUT:`focusout`,CHANGE:`change`,SUBMIT:`submit`,TRIGGER:`trigger`,VALID:`valid`},vg={onBlur:`onBlur`,onChange:`onChange`,onSubmit:`onSubmit`,onTouched:`onTouched`,all:`all`},yg={max:`max`,min:`min`,maxLength:`maxLength`,minLength:`minLength`,pattern:`pattern`,required:`required`,validate:`validate`},bg=`root`,xg=[`__proto__`,`constructor`,`prototype`],Sg=/^\w*$/,Cg=e=>Sg.test(e),wg=e=>e===void 0,Tg=/[.[\]'"]/,Eg=e=>e.split(Tg).filter(Boolean),Q=(e,t,n)=>{if(!t||!dg(e))return n;let r=Cg(t)?[t]:Eg(t);if(r.some(e=>xg.includes(e)))return n;let i=r.reduce((e,t)=>lg(e)?void 0:e[t],e);return wg(i)||i===e?wg(e[t])?n:e[t]:i},Dg=e=>typeof e==`boolean`,Og=e=>typeof e==`function`,kg=(e,t,n)=>{let r=-1,i=Cg(t)?[t]:Eg(t),a=i.length,o=a-1;for(;++r<a;){let t=i[r],a=n;if(r!==o){let n=e[t];a=dg(n)||Array.isArray(n)?n:isNaN(+i[r+1])?{}:[]}if(xg.includes(t))return;e[t]=a,e=e[t]}},Ag=q.createContext(null);Ag.displayName=`HookFormControlContext`;var jg=()=>q.useContext(Ag),Mg=(e,t,n,r=!0)=>{let i={};for(let a in e)Object.defineProperty(i,a,{get:()=>{let i=a;return t._proxyFormState[i]!==vg.all&&(t._proxyFormState[i]=!r||vg.all),n&&(n[i]=!0),e[i]}});return i},Ng=hg?q.useLayoutEffect:q.useEffect,Pg=e=>lg(e)||!ug(e),Fg=(e,t)=>t.length===0&&!Array.isArray(e)&&!mg(e);function Ig(e,t,n=new WeakMap){if(e===t)return!0;if(Pg(e)||Pg(t))return Object.is(e,t);if(cg(e)&&cg(t))return Object.is(e.getTime(),t.getTime());let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(Fg(e,r)||Fg(t,i))return Object.is(e,t);if(!r.length&&Array.isArray(e)!==Array.isArray(t))return!1;let a=n.get(e);if(a&&a.has(t))return!0;if(a)a.add(t);else{let r=new WeakSet;r.add(t),n.set(e,r)}for(let i of r){let r=e[i];if(!(i in t))return!1;if(i!==`ref`){let e=t[i];if(cg(r)&&cg(e)||(dg(r)||Array.isArray(r))&&(dg(e)||Array.isArray(e))?!Ig(r,e,n):!Object.is(r,e))return!1}}return!0}function Lg(){let e=q.useRef(!1),t=q.useRef(void 0);return{resyncIfNeeded:q.useCallback((n,r,i)=>{if(n&&e.current){let e=r();Ig(t.current,e)||i(e)}e.current=!0},[]),snapshot:q.useCallback((e,n)=>{e&&(t.current=gg(n()))},[])}}function Rg(e){let t=jg(),{control:n=t,disabled:r,name:i,exact:a}=e||{},[o,s]=q.useState(()=>({...n._formState,defaultValues:n._defaultValues})),c=q.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),{resyncIfNeeded:l,snapshot:u}=Lg();return Ng(()=>{let e=()=>({...n._formState,defaultValues:n._defaultValues});l(!r,e,s);let t=n._subscribe({name:i,formState:c.current,exact:a,callback:e=>{!r&&s({...n._formState,...e,defaultValues:n._defaultValues})}});return()=>{t(),u(!r,e)}},[i,r,a,l,u]),q.useEffect(()=>{c.current.isValid&&n._setValid(!0)},[n]),q.useMemo(()=>Mg(o,n,c.current,!1),[o,n])}var zg=e=>typeof e==`string`,Bg=(e,t,n,r,i)=>zg(e)?(r&&t.watch.add(e),Q(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),Q(n,e))):(r&&(t.watchAll=!0),n);function Vg(e){let t=jg(),{control:n=t,name:r,defaultValue:i,disabled:a,exact:o,compute:s}=e||{},c=q.useRef(i),l=q.useRef(s),u=q.useRef(void 0),d=q.useRef(n),f=q.useRef(r);l.current=s;let[p,m]=q.useState(()=>{let e=n._getWatch(r,c.current);return l.current?l.current(e):e}),h=q.useCallback(e=>{let t=Bg(r,n._names,e||n._formValues,!1,c.current);return l.current?l.current(t):t},[n._formValues,n._names,r]),g=q.useCallback(e=>{if(!a){let t=Bg(r,n._names,e||n._formValues,!1,c.current);if(l.current){let e=l.current(t);Ig(e,u.current)||(m(e),u.current=e)}else m(t)}},[n._formValues,n._names,a,r]),{resyncIfNeeded:_,snapshot:v}=Lg(),y=q.useRef(g);y.current=g;let b=q.useRef(h);b.current=h,Ng(()=>{d.current!==n||!Ig(f.current,r)?(d.current=n,f.current=r,y.current()):_(!a,()=>b.current(),e=>{m(e),u.current=e});let e=n._subscribe({name:r,formState:{values:!0},exact:o,callback:e=>{y.current(e.values)}});return()=>{e(),v(!a,()=>b.current())}},[n,o,r,a,_,v]),q.useEffect(()=>n._removeUnmounted());let x=d.current!==n,S=f.current,C=q.useMemo(()=>{if(a)return null;let e=!x&&!Ig(S,r);return x||e?h():null},[a,x,r,S,h]);return C===null?p:C}function Hg(e){let t=jg(),{name:n,disabled:r,control:i=t,shouldUnregister:a,defaultValue:o,exact:s=!0}=e,c=pg(i._names.array,n),l=Vg({control:i,name:n,defaultValue:q.useMemo(()=>Q(i._formValues,n,Q(i._defaultValues,n,o)),[i,n,o]),exact:s}),u=Rg({control:i,name:n,exact:s}),d=q.useRef(e),f=q.useRef(null),p=q.useRef(i.register(n,{...e.rules,value:l,...Dg(e.disabled)?{disabled:e.disabled}:{}}));d.current=e;let m=q.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Q(u.errors,n)},isDirty:{enumerable:!0,get:()=>!!Q(u.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Q(u.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Q(u.validatingFields,n)},error:{enumerable:!0,get:()=>Q(u.errors,n)}}),[u,n]),h=q.useCallback(e=>{let t=fg(e);return Q(i._fields,n)||(p.current=i.register(n,{...d.current.rules,value:t})),p.current.onChange({target:{value:fg(e),name:n},type:_g.CHANGE})},[n,i]),g=q.useCallback(()=>p.current.onBlur({target:{value:Q(i._formValues,n),name:n},type:_g.BLUR}),[n,i._formValues]),_=q.useCallback(e=>{e&&(f.current={focus:()=>Og(e.focus)&&e.focus(),select:()=>Og(e.select)&&e.select(),setCustomValidity:t=>Og(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>Og(e.reportValidity)&&e.reportValidity()});let t=Q(i._fields,n);t&&t._f&&e&&(t._f.ref=f.current)},[i._fields,n]),v=q.useMemo(()=>({name:n,value:l,...Dg(r)||u.disabled?{disabled:u.disabled||r}:{},onChange:h,onBlur:g,ref:_}),[n,r,u.disabled,h,g,_,l]);return q.useEffect(()=>{let e=i._options.shouldUnregister||a;p.current=i.register(n,{...d.current.rules,...Dg(d.current.disabled)?{disabled:d.current.disabled}:{}});let t=(e,t)=>{let n=Q(i._fields,e);n&&n._f&&(n._f.mount=t)};if(t(n,!0),e){let e=gg(Q(a?i._defaultValues:i._options.values||i._defaultValues,n,Q(i._options.defaultValues,n,d.current.defaultValue)));kg(i._defaultValues,n,e),wg(Q(i._formValues,n))&&kg(i._formValues,n,e)}if(!c&&i.register(n),f.current){let e=Q(i._fields,n);e&&e._f&&(e._f.ref=f.current)}return()=>{(c?e&&!i._state.action:e)?i.unregister(n):t(n,!1)}},[n,i,c,a]),q.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),q.useMemo(()=>({field:v,formState:u,fieldState:m}),[v,u,m])}var Ug=e=>e.render(Hg(e)),Wg=e=>({isOnSubmit:!e||e===vg.onSubmit,isOnBlur:e===vg.onBlur,isOnChange:e===vg.onChange,isOnAll:e===vg.all,isOnTouch:e===vg.onTouched}),Gg=(e,t,n)=>{if(n)return!1;if(t.watchAll||t.watch.has(e))return!0;for(let n of t.watch)if(e.startsWith(n)&&e.charAt(n.length)===`.`)return!0;return!1},Kg=(e,t,n,r)=>{for(let i of n||Object.keys(e)){if(i===`_f`)continue;let a=n?Q(e,i):e[i];if(a){let{_f:e}=a;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r||e.ref&&t(e.ref,e.name)&&!r)return!0;if(Kg(a,t))break}else if((dg(a)||Array.isArray(a))&&Kg(a,t))break}}},qg=(e,t,n)=>{let r=Q(e,n),i=Array.isArray(r)?r:[];return kg(i,bg,t[n]),kg(e,n,i),e},Jg=e=>dg(e)&&!Object.keys(e).length,Yg=e=>{if(!hg)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Xg=e=>e.type===`radio`,Zg=e=>e instanceof RegExp,Qg=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},$g={value:!1,isValid:!1},e_={value:!0,isValid:!0},t_=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!wg(e[0].attributes.value)?wg(e[0].value)||e[0].value===``?e_:{value:e[0].value,isValid:!0}:e_:$g}return $g},n_={isValid:!1,value:null},r_=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,n_):n_;function i_(e,t,n=`validate`){if(zg(e)||Array.isArray(e)&&e.every(zg)||Dg(e)&&!e)return{type:n,message:zg(e)?e:``,ref:t}}var a_=e=>dg(e)&&!Zg(e)?e:{value:e,message:``},o_=async(e,t,n,r,i,a)=>{let{ref:o,refs:s,required:c,maxLength:l,minLength:u,min:d,max:f,pattern:p,validate:m,name:h,valueAsNumber:g,mount:_}=e._f,v=Q(n,h);if(!_||t.has(h))return{};let y=s?s[0]:o,b=e=>{if(i&&y.reportValidity){let t=Dg(e)?``:e||``;s?s.forEach(e=>e.setCustomValidity(t)):y.setCustomValidity(t),y.reportValidity()}},x={},S=Xg(o),C=og(o),w=S||C,T=(g||sg(o))&&wg(o.value)&&wg(v)||Yg(o)&&o.value===``||v===``||Array.isArray(v)&&!v.length,E=Qg.bind(null,h,r,x),D=(e,t,n,r=yg.maxLength,i=yg.minLength)=>{let a=e?t:n;x[h]={type:e?r:i,message:a,ref:o,...E(e?r:i,a)}};if(a?!Array.isArray(v)||!v.length:c&&(!w&&(T||lg(v))||Dg(v)&&!v||C&&!t_(s).isValid||S&&!r_(s).isValid)){let{value:e,message:t}=zg(c)?{value:!!c,message:c}:a_(c);if(e&&(x[h]={type:yg.required,message:t,ref:y,...E(yg.required,t)},!r))return b(t),x}if(!T&&(!lg(d)||!lg(f))){let e,t,n=a_(f),i=a_(d);if(!lg(v)&&!cg(v)&&!isNaN(v)){let r=o.valueAsNumber||v&&+v;lg(n.value)||(e=r>n.value),lg(i.value)||(t=r<i.value)}else{let r=o.valueAsDate||new Date(v),a=e=>new Date(new Date().toDateString()+` `+e),s=o.type==`time`,c=o.type==`week`;zg(n.value)&&v&&(e=s?a(v)>a(n.value):c?v>n.value:r>new Date(n.value)),zg(i.value)&&v&&(t=s?a(v)<a(i.value):c?v<i.value:r<new Date(i.value))}if((e||t)&&(D(!!e,n.message,i.message,yg.max,yg.min),!r))return b(x[h].message),x}if((l||u)&&!T&&(zg(v)||a&&Array.isArray(v))){let e=a_(l),t=a_(u),n=!lg(e.value)&&v.length>+e.value,i=!lg(t.value)&&v.length<+t.value;if((n||i)&&(D(n,e.message,t.message),!r))return b(x[h].message),x}if(p&&!T&&zg(v)){let{value:e,message:t}=a_(p);if(Zg(e)&&!v.match(e)&&(x[h]={type:yg.pattern,message:t,ref:o,...E(yg.pattern,t)},!r))return b(t),x}if(m){if(Og(m)){let e=i_(await m(v,n),y);if(e&&(x[h]={...e,...E(yg.validate,e.message)},!r))return b(e.message),x}else if(dg(m)){let e={};for(let t in m){if(!Jg(e)&&!r)break;let i=i_(await m[t](v,n),y,t);i&&(e={...i,...E(t,i.message)},b(i.message),r&&(x[h]=e))}if(!Jg(e)&&(x[h]={ref:y,...e},!r))return x}}return b(!0),x},s_=e=>Array.isArray(e)?e:[e],c_=e=>Array.isArray(e)?e.filter(Boolean):[];function l_(e,t){let n=t.length-1,r=0;for(;r<n;){if(lg(e)){e=void 0;break}e=e[t[r]],r++}return e}function u_(e){for(let t in e)if(e.hasOwnProperty(t)&&!wg(e[t]))return!1;return!0}function d_(e,t){if(zg(t)&&Object.prototype.hasOwnProperty.call(e,t))return delete e[t],e;let n=Array.isArray(t)?t:Cg(t)?[t]:Eg(t);if(n.some(e=>xg.includes(String(e))))return e;let r=n.length===1?e:l_(e,n),i=n.length-1,a=n[i];return r&&delete r[a],i!==0&&(dg(r)&&Jg(r)||Array.isArray(r)&&u_(r))&&d_(e,n.slice(0,-1)),e}var f_=e=>{let t={};for(let n of Object.keys(e))if(ug(e[n])&&e[n]!==null&&!cg(e[n])){let r=f_(e[n]);for(let e of Object.keys(r))t[`${n}.${e}`]=r[e]}else t[n]=e[n];return t},p_=q.createContext(null);p_.displayName=`HookFormContext`;var m_=()=>q.useContext(p_),h_=({children:e,watch:t,getValues:n,getFieldState:r,setError:i,clearErrors:a,setValue:o,setValues:s,trigger:c,formState:l,resetField:u,reset:d,resetDefaultValues:f,handleSubmit:p,unregister:m,control:h,register:g,setFocus:_,subscribe:v})=>{let y=q.useMemo(()=>({watch:t,getValues:n,getFieldState:r,setError:i,clearErrors:a,setValue:o,setValues:s,trigger:c,formState:l,resetField:u,reset:d,resetDefaultValues:f,handleSubmit:p,unregister:m,control:h,register:g,setFocus:_,subscribe:v}),[a,h,l,r,n,p,g,d,f,u,i,_,o,s,v,c,m,t]);return q.createElement(p_.Provider,{value:y},q.createElement(Ag.Provider,{value:y.control},e))},g_=()=>{let e=[];return{get observers(){return e},next:t=>{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}};function __(e,t){let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],a=t[r];if(i&&dg(i)&&a){let e=__(i,a);dg(e)&&(n[r]=e)}else e[r]&&(n[r]=a)}return n}var v_=e=>e.type===`select-multiple`,y_=e=>Xg(e)||og(e),b_=e=>Yg(e)&&e.isConnected;function x_(e){return Array.isArray(e)||dg(e)}function S_(e,t,n=``,r=[]){for(let i in e){let a=n?`${n}.${i}`:i,o=e[i];x_(o)&&x_(Q(t,a))?S_(o,t,a,r):r.push(a)}return r}var C_=e=>{for(let t in e)if(Og(e[t]))return!0;return!1};function w_(e){return Array.isArray(e)||dg(e)&&!C_(e)}function T_(e){return!!(e&&`_f`in e)}function E_(e){return Array.isArray(e)?!e.some(e=>!wg(e)):!Object.keys(e).length}function D_(e,t){Array.isArray(e)?e[t]=void 0:delete e[t]}function O_(e,t={},n){for(let r in e){let i=e[r],a=n&&n[r];w_(i)&&(!Array.isArray(i)||!T_(a))?(t[r]=Array.isArray(i)?[]:{},O_(i,t[r],a),E_(t[r])&&D_(t,r)):wg(i)||(t[r]=!0)}return t}function k_(e,t,n,r){n||=O_(t,{},r);for(let i in e){let a=e[i],o=r&&r[i];w_(a)&&(!Array.isArray(a)||!T_(o))?(wg(t)||Pg(n[i])?n[i]=O_(a,Array.isArray(a)?[]:{},o):k_(a,lg(t)?{}:t[i],n[i],o),E_(n[i])&&D_(n,i)):Ig(a,t[i])?D_(n,i):n[i]=!0}return n}var A_=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>wg(e)?e:t?e===``?NaN:e&&+e:n&&zg(e)?new Date(e):r?r(e):e;function j_(e){let t=e.ref;return sg(t)?t.files:Xg(t)?r_(e.refs).value:v_(t)?[...t.selectedOptions].map(({value:e})=>e):og(t)?t_(e.refs).value:A_(t.value,e)}var M_=(e,t,n,r)=>{let i={};for(let n of e){let e=Q(t,n);e&&kg(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},N_=e=>wg(e)?e:Zg(e)?e.source:dg(e)?Zg(e.value)?e.value.source:e.value:e,P_=`AsyncFunction`,F_=e=>{if(!e||!e.validate)return!1;if(Og(e.validate))return e.validate.constructor.name===P_;if(dg(e.validate)){for(let t in e.validate)if(e.validate[t].constructor.name===P_)return!0}return!1},I_=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function L_(e,t,n){let r=Q(e,n);if(r||Cg(n))return{error:r,name:n};let i=n.split(`.`);for(;i.length;){let r=i.join(`.`),a=Q(t,r),o=Q(e,r);if(a&&!Array.isArray(a)&&n!==r)return{name:n};if(o&&o.type)return{name:r,error:o};if(o&&o.root&&o.root.type)return{name:`${r}.root`,error:o.root};i.pop()}return{name:n}}var R_=(e,t,n,r)=>{n(e);let i=Object.keys(e).filter(e=>e!==`name`);return!i.length||r&&i.length>=Object.keys(t).length||i.find(e=>t[e]===(!r||vg.all))},z_=(e,t,n)=>!e||!t||e===t||s_(e).some(e=>e&&(n?e===t||e.startsWith(t+`.`):e.startsWith(t)||t.startsWith(e))),B_=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:!(n?r.isOnChange:i.isOnChange)||e,V_=(e,t)=>{let n=Q(e,t);!c_(n).length&&!(n!=null&&n.root)&&d_(e,t)},H_={mode:vg.onSubmit,reValidateMode:vg.onChange,shouldFocusError:!0},U_=`form`,W_=(e,t)=>{for(let n in e)n in t||delete e[n];Object.assign(e,t)},G_={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function K_(e={}){let t={...H_,...e},n={...gg(G_),isLoading:Og(t.defaultValues),errors:t.errors||{},disabled:t.disabled||!1},r={},i=(dg(t.defaultValues)||dg(t.values))&&gg(t.defaultValues||t.values)||{},a=t.shouldUnregister?{}:gg(i),o={action:!1,actionArrayLengths:new Map,mount:!1,watch:!1,keepIsValid:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},c={},l={},u=0,d=Wg(t.mode),f=Wg(t.reValidateMode),p={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},m={...p},h={...m},g={array:g_(),state:g_()},_=0,v=t.criteriaMode===vg.all,y=(e,t)=>n=>{clearTimeout(l[e]),l[e]=setTimeout(t,n)},b=async e=>{if(!o.keepIsValid&&!t.disabled&&(m.isValid||h.isValid||e)){let e=++_,i;t.resolver?(i=Jg((await j()).errors),e===_&&x()):i=await ee({fields:r,onlyCheckValid:!0,eventType:_g.VALID}),e===_&&i!==n.isValid&&g.state.next({isValid:i})}},x=(e,r)=>{!t.disabled&&(m.isValidating||m.validatingFields||h.isValidating||h.validatingFields)&&((e||Array.from(s.mount)).forEach(e=>{e&&(r?kg(n.validatingFields,e,r):d_(n.validatingFields,e))}),g.state.next({validatingFields:n.validatingFields,isValidating:!Jg(n.validatingFields)}))},S=()=>{n.dirtyFields=k_(i,a,void 0,r)},C=(e,i=[],s,c,l=!0,u=!0)=>{if(c&&s&&!t.disabled){if(o.action=!0,!o.actionArrayLengths.has(e)){let t=Q(r,e);o.actionArrayLengths.set(e,Array.isArray(t)?t.length:0)}if(u&&Array.isArray(Q(r,e))){let t=s(Q(r,e),c.argA,c.argB);l&&kg(r,e,t)}if(u&&Array.isArray(Q(n.errors,e))){let t=Q(n.errors,e),r=t.root,i=s(t,c.argA,c.argB)||t;r&&(i.root=r),l&&kg(n.errors,e,i),V_(n.errors,e)}if((m.touchedFields||h.touchedFields)&&u&&Array.isArray(Q(n.touchedFields,e))){let t=s(Q(n.touchedFields,e),c.argA,c.argB);l&&kg(n.touchedFields,e,t)}(m.dirtyFields||h.dirtyFields)&&S(),g.state.next({name:e,isDirty:F(e,i),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else kg(a,e,i)},w=(e,t)=>{kg(n.errors,e,t),n.errors={...n.errors},g.state.next({errors:n.errors})},T=e=>{n.errors=e,g.state.next({errors:n.errors,isValid:!1})},E=e=>{let t=Cg(e)?[e]:Eg(e),n=a,r=i;for(let e=0;e<t.length-1;e++){let i=t[e];if(n=lg(n)?n:n[i],r=lg(r)?r:r[i],n===null&&r!==null)return!0}return!1},D=e=>{if(!o.actionArrayLengths.size)return!1;let t=Cg(e)?[e]:Eg(e),n=a,r=``,i=-1,s=0;for(let e=0;e<t.length;e++){if(lg(n))return!1;let a=t[e];if(r=r?`${r}.${a}`:a,Array.isArray(n)&&+a>=n.length)return i===-1?!1:e!==i||+a<s;o.actionArrayLengths.has(r)&&(i=e+1,s=o.actionArrayLengths.get(r)),n=n[a]}return!1},O=(t,c,l,u)=>{let d=Q(r,t);if(d){if(E(t)||D(t))return;let r=wg(Q(a,t)),f=Q(a,t,wg(l)?Q(i,t):l);wg(f)||u&&u.defaultChecked||c?kg(a,t,c?f:j_(d._f)):ne(t,f),o.mount&&!o.action&&(b(),r&&n.isDirty&&(m.isDirty||h.isDirty)&&(F()||(n.isDirty=!1,g.state.next({...n}))),e.shouldUnregister&&r&&!wg(Q(a,t))&&Gg(t,s)&&(o.watch=!0))}},k=(e,o,s,c,l)=>{let u=!1,d=!1,f={name:e};if(!t.disabled||c===!0){if(!s||c){let t=Ig(Q(i,e),o);(m.isDirty||h.isDirty)&&(d=n.isDirty,n.isDirty=f.isDirty=!t||F(),u=d!==f.isDirty),d=!!Q(n.dirtyFields,e),t===n.isDirty?t?d_(n.dirtyFields,e):kg(n.dirtyFields,e,!0):W_(n.dirtyFields,k_(i,a,void 0,r)),f.dirtyFields=n.dirtyFields,u||=(m.dirtyFields||h.dirtyFields)&&d!==!t}if(s){let t=Q(n.touchedFields,e);t||(kg(n.touchedFields,e,s),f.touchedFields=n.touchedFields,u||=(m.touchedFields||h.touchedFields)&&t!==s)}u&&l&&g.state.next(f)}return u?f:{}},A=(e,r,i,a)=>{let o=Q(n.errors,e),s=(m.isValid||h.isValid)&&Dg(r)&&n.isValid!==r;if(t.delayError&&i?(c[e]=y(e,()=>w(e,i)),c[e](t.delayError)):(clearTimeout(l[e]),delete c[e],i?kg(n.errors,e,i):d_(n.errors,e),n.errors={...n.errors}),(i?!Ig(o,i):o)||!Jg(a)||s){let t={...a,...s&&Dg(r)?{isValid:r}:{},errors:n.errors,name:e};n={...n,...t},g.state.next(t)}},j=async e=>(x(e,!0),await t.resolver(a,t.context,M_(e||s.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),M=async e=>{let{errors:t}=await j(e);if(x(e),e){for(let r of e){let e=Q(t,r);e?s.array.has(r)&&dg(e)&&!Object.keys(e).some(e=>!Number.isNaN(Number(e)))?qg(n.errors,{[r]:e},r):kg(n.errors,r,e):d_(n.errors,r)}n.errors={...n.errors}}else n.errors=t;return t},N=async({name:t,eventType:r})=>{if(e.validate){let i=await e.validate({formValues:a,formState:n,name:t,eventType:r});if(dg(i))for(let e in i){let t=i[e];t&&U(`${U_}.${e}`,{message:zg(t.message)?t.message:``,type:t.type||yg.validate})}else zg(i)||!i?U(U_,{message:i||``,type:yg.validate}):oe(U_);return i}return!0},ee=async({fields:r,onlyCheckValid:i,name:o,eventType:c,context:l={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(l.runRootValidation=!0,!await N({name:o,eventType:c})&&(l.valid=!1,i)))return l.valid;for(let o in r){let u=r[o];if(u){let{_f:r,...d}=u;if(r){let o=s.array.has(r.name),c=u._f&&F_(u._f),d=m.validatingFields||m.isValidating||h.validatingFields||h.isValidating;c&&d&&x([r.name],!0);let f=await o_(u,s.disabled,a,v,t.shouldUseNativeValidation&&!i,o);if(c&&d&&x([r.name]),f[r.name]&&(l.valid=!1,i)||(!i&&(Q(f,r.name)?o?qg(n.errors,f,r.name):kg(n.errors,r.name,f[r.name]):d_(n.errors,r.name)),e.shouldUseNativeValidation&&f[r.name]))break}!Jg(d)&&await ee({context:l,onlyCheckValid:i,fields:d,name:o,eventType:c})}}return l.valid},P=()=>{for(let e of s.unMount){let t=Q(r,e);t&&(t._f.refs?t._f.refs.every(e=>!b_(e)):!b_(t._f.ref))&&ce(e)}s.unMount=new Set},F=(e,t)=>(e&&t&&kg(a,e,t),!Ig(o.mount?a:i,i)),I=(e,t,n)=>Bg(e,s,{...o.mount?a:wg(t)||zg(e)?i:t},n,t),te=e=>c_(Q(o.mount?a:i,e,t.shouldUnregister?Q(i,e,[]):[])),ne=(e,t,n={},i=!1,o=!1,s=!1)=>{let c=Q(r,e),l=t;if(c){let n=c._f;n&&(!n.disabled&&kg(a,e,A_(t,n)),l=Yg(n.ref)&&lg(t)?``:t,v_(n.ref)?[...n.ref.options].forEach(e=>e.selected=l.includes(e.value)):n.refs?og(n.ref)?n.refs.forEach(e=>{(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(l)?!!l.find(t=>t===e.value):l===e.value||!!l)}):n.refs.forEach(e=>e.checked=e.value===l):sg(n.ref)?n.ref.value=``:(n.ref.value=l,!n.ref.type&&!o&&!s&&g.state.next({name:e,values:i?a:gg(a)})))}(n.shouldDirty||n.shouldTouch)&&k(e,l,n.shouldTouch,n.shouldDirty,!o),n.shouldValidate&&V(e,{delayError:n.delayError})},re=(e,t,n,i=!1,o=!1,c=!1)=>{s.array.has(e)&&g.array.next({name:e,values:i?a:gg(a)});for(let a in t){if(!t.hasOwnProperty(a))return;let l=t[a],u=e+`.`+a,d=Q(r,u);(s.array.has(e)||dg(l)||d&&!d._f)&&!cg(l)?re(u,l,n,i,o,c):ne(u,l,n,i,o,c)}},L=(e,t,i,c,l=!1)=>{let u=Q(r,e),d=s.array.has(e),f=c?t:gg(t),p=Ig(Q(a,e),f);if(p||kg(a,e,f),d)g.array.next({name:e,values:c?a:gg(a)}),(m.isDirty||m.dirtyFields||h.isDirty||h.dirtyFields)&&i.shouldDirty&&(S(),l||g.state.next({name:e,dirtyFields:n.dirtyFields,isDirty:F(e,f)}));else{let t=Array.isArray(f)&&!f.length||Jg(f),n=!p&&!l;!u||u._f||lg(f)||t?ne(e,f,i,c,l,n):re(e,f,i,c,l,n)}if(!p&&!l){let t=Gg(e,s),r=c?a:gg(a);g.state.next({...t&&n,name:o.mount||t?e:void 0,values:r})}},R=(e,t,n={})=>L(e,t,n,!1),z=(e,t={})=>{let r=Og(e)?e(a):e;if(!Ig(a,r)){a={...a,...r};let e=f_(r);for(let n of s.mount)n in e&&L(n,e[n],t,!0,!0);g.state.next({...n,name:void 0,type:void 0,...u?{values:a}:{}}),t.shouldValidate&&b()}},B=async i=>{o.mount=!0;let l=i.target,p=l.name,_=!0,y=Q(r,p),S=e=>{_=Number.isNaN(e)||cg(e)&&isNaN(e.getTime())||Ig(e,Q(a,p,e))};if(y){let o,C,w=l.type?j_(y._f):fg(i),T=i.type===_g.BLUR||i.type===_g.FOCUS_OUT,E=!I_(y._f)&&!e.validate&&!t.resolver&&!Q(n.errors,p)&&!y._f.deps,D=E||B_(T,Q(n.touchedFields,p),n.isSubmitted,f,d),O=Gg(p,s,T);if(kg(a,p,w),T){if(!l||!l.readOnly){y._f.onBlur&&y._f.onBlur(i);let e=c[p];e&&e(0)}}else y._f.onChange&&y._f.onChange(i);let M=k(p,w,T),P=!Jg(M)||O;if(!T&&g.state.next({name:p,type:i.type,...u?{values:gg(a)}:{}}),D)return(!E||!n.isValid)&&(m.isValid||h.isValid)&&(t.mode===`onBlur`?T&&b():T||b()),P&&g.state.next({name:p,...O?{}:M});if(!t.resolver&&e.validate&&await N({name:p,eventType:i.type}),!T&&O&&g.state.next({...n}),t.resolver){let{errors:e}=await j([p]);if(x([p]),S(w),!_){!Jg(M)&&g.state.next(M);return}let t=L_(n.errors,r,p),i=L_(e,r,t.name||p);o=i.error,p=i.name,C=Jg(e)}else x([p],!0),o=(await o_(y,s.disabled,a,v,t.shouldUseNativeValidation))[p],x([p]),S(w),_&&(o?C=!1:(m.isValid||h.isValid)&&(C=await ee({fields:r,onlyCheckValid:!0,name:p,eventType:i.type})));_&&(y._f.deps&&(!Array.isArray(y._f.deps)||y._f.deps.length>0)&&V(y._f.deps),A(p,C,o,M))}},ie=(e,t)=>{if(Q(n.errors,t)&&e.focus)return e.focus(),1},V=async(e,i={})=>{let a,o,u=s_(e);if(t.resolver){let t=await M(wg(e)?e:u);a=Jg(t),o=e?!u.some(e=>Q(t,e)):a}else e?(o=(await Promise.all(u.map(async e=>{let t=Q(r,e);return await ee({fields:t&&t._f?{[e]:t}:t,eventType:_g.TRIGGER})}))).every(Boolean),(o||n.isValid)&&b()):o=a=await ee({fields:r,name:e,eventType:_g.TRIGGER});if(i.delayError&&t.delayError&&zg(e)){let r=Q(n.errors,e);r?(d_(n.errors,e),c[e]=y(e,()=>w(e,r)),c[e](t.delayError)):(clearTimeout(l[e]),delete c[e])}return g.state.next({...!zg(e)||(m.isValid||h.isValid)&&a!==n.isValid?{}:{name:e},...t.resolver||!e?{isValid:a}:{},errors:n.errors}),i.shouldFocus&&!o&&Kg(r,ie,e?u:s.mount),o},ae=(e,t)=>{let r={...o.mount?a:i};return t&&(r=__(t.dirtyFields?n.dirtyFields:n.touchedFields,r)),wg(e)?r:zg(e)?Q(r,e):e.map(e=>Q(r,e))},H=(e,t)=>({invalid:!!Q((t||n).errors,e),isDirty:!!Q((t||n).dirtyFields,e),error:Q((t||n).errors,e),isValidating:!!Q(n.validatingFields,e),isTouched:!!Q((t||n).touchedFields,e)}),oe=e=>{let t=e?s_(e):void 0;t?.forEach(e=>d_(n.errors,e)),t?t.forEach(e=>{g.state.next({name:e,errors:n.errors})}):(n.errors={},g.state.next({errors:n.errors}))},U=(e,t,i)=>{let a=(Q(r,e,{_f:{}})._f||{}).ref,{ref:o,message:s,type:c,...l}=Q(n.errors,e)||{};kg(n.errors,e,{...l,...t,ref:a}),g.state.next({name:e,errors:n.errors,isValid:!1}),i&&i.shouldFocus&&a&&a.focus&&a.focus()},W=(e,t)=>{if(Og(e)){u++;let{unsubscribe:n}=g.state.subscribe({next:n=>`values`in n&&e(n.values||I(void 0,t),n)}),r=!1;return{unsubscribe:()=>{r||(r=!0,u--,n())}}}return I(e,t,!0)},G=e=>{let t=!!e.formState?.values;t&&u++;let{unsubscribe:r}=g.state.subscribe({next:t=>{if(z_(e.name,t.name,e.exact)&&R_(t,e.formState||m,_e,e.reRenderRoot)){let r={...a};e.callback({values:r,...n,...t,defaultValues:i})}}});if(!t)return r;let o=!1;return()=>{o||(o=!0,u--,r())}},se=e=>(o.mount=!0,h={...h,...e.formState},G({...e,formState:{...p,...e.formState}})),ce=(e,o={})=>{for(let c of e?s_(e):s.mount)s.mount.delete(c),s.array.delete(c),o.keepValue||(d_(r,c),d_(a,c)),!o.keepError&&d_(n.errors,c),!o.keepDirty&&d_(n.dirtyFields,c),!o.keepTouched&&d_(n.touchedFields,c),!o.keepIsValidating&&d_(n.validatingFields,c),!t.shouldUnregister&&!o.keepDefaultValue&&d_(i,c);g.state.next({values:gg(a)}),g.state.next({...n,...o.keepDirty?{isDirty:F()}:{}}),!o.keepIsValid&&b()},le=({disabled:e,name:t})=>{if(Dg(e)&&o.mount||e||s.disabled.has(t)){let n=s.disabled.has(t)!==!!e;e?s.disabled.add(t):s.disabled.delete(t),n&&o.mount&&!o.action&&b()}},ue=(e,n={})=>{let a=Q(r,e),c=Dg(n.disabled)||Dg(t.disabled),l=!s.registerName.has(e)&&a&&a._f&&!a._f.mount;return kg(r,e,{...a||{},_f:{...a&&a._f?a._f:{ref:{name:e}},name:e,mount:!0,...n}}),s.mount.add(e),a&&!l?le({disabled:Dg(n.disabled)?n.disabled:t.disabled,name:e}):O(e,!0,n.value),{...c?{disabled:n.disabled||t.disabled}:{},...t.progressive?{required:!!n.required,min:N_(n.min),max:N_(n.max),minLength:N_(n.minLength),maxLength:N_(n.maxLength),pattern:N_(n.pattern)}:{},name:e,onChange:B,onBlur:B,ref:c=>{if(c){s.registerName.add(e),ue(e,n),s.registerName.delete(e),a=Q(r,e);let t=wg(c.value)&&c.querySelectorAll&&c.querySelectorAll(`input,select,textarea`)[0]||c,o=y_(t),l=a._f.refs||[];if(o?l.find(e=>e===t):t===a._f.ref)return;let u={...a._f};o?(u.refs=[...l.filter(b_),t,...Array.isArray(Q(i,e))?[{}]:[]],u.ref={type:t.type,name:e}):(u.ref=t,delete u.refs),kg(r,e,{_f:u}),O(e,!1,void 0,t)}else a=Q(r,e,{}),a._f&&(a._f.mount=!1),(t.shouldUnregister||n.shouldUnregister)&&!(pg(s.array,e)&&o.action)&&s.unMount.add(e)}}},de=()=>t.shouldFocusError&&!t.shouldUseNativeValidation&&Kg(r,ie,s.mount),fe=e=>{Dg(e)&&(g.state.next({disabled:e}),Kg(r,(t,n)=>{let i=Q(r,n);i&&(t.disabled=i._f.disabled||e,Array.isArray(i._f.refs)&&i._f.refs.forEach(t=>{t.disabled=i._f.disabled||e}))},0,!1))},pe=(e,i)=>async o=>{let c,l;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let u=gg(a);if(g.state.next({isSubmitting:!0}),t.resolver){let{errors:e,values:t}=await j();x(),n.errors=e,u=gg(t)}else await ee({fields:r,eventType:_g.SUBMIT});if(s.disabled.size)for(let e of s.disabled)d_(u,e);if(d_(n.errors,bg),Jg(n.errors)){g.state.next({errors:{}});try{c=await e(u,o)}catch(e){l=e}}else i&&await i({...n.errors},o),de(),setTimeout(de);if(g.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Jg(n.errors)&&!l,submitCount:n.submitCount+1,errors:n.errors}),l)throw l;return c},me=(e,t={})=>{Q(r,e)&&(wg(t.defaultValue)?R(e,gg(Q(i,e))):(R(e,t.defaultValue),kg(i,e,gg(t.defaultValue))),t.keepTouched||d_(n.touchedFields,e),t.keepDirty||(d_(n.dirtyFields,e),n.isDirty=t.defaultValue?F(e,gg(Q(i,e))):F()),t.keepError||(d_(n.errors,e),m.isValid&&b()),g.state.next({...n}))},he=(e,c={})=>{let l=e?gg(e):i,u=gg(l),d=Jg(e),f=u,p=r;if(c.keepDefaultValues||(i=l),!c.keepValues){if(c.keepDirtyValues){let e=new Set([...s.mount,...S_(k_(i,a,void 0,p),n.dirtyFields)]);for(let t of Array.from(e)){let e=Q(n.dirtyFields,t),r=Q(a,t),i=Q(f,t);e&&!wg(r)?kg(f,t,r):!e&&!wg(i)&&R(t,i)}}else{if(hg&&wg(e))for(let e of s.mount){let t=Q(r,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(Yg(e)){let t=e.closest(`form`);if(t){t.reset();break}}}}if(c.keepFieldsRef)for(let e of s.mount)R(e,Q(f,e));else r={}}if(t.shouldUnregister){if(a=c.keepDefaultValues?gg(i):{},c.keepFieldsRef)for(let e of s.mount)kg(a,e,Q(f,e))}else a=gg(f);g.array.next({values:{...f}}),g.state.next({name:void 0,type:void 0,values:{...f}})}s={mount:c.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:``},o.mount=!m.isValid||!!c.keepIsValid||!!c.keepDirtyValues||!t.shouldUnregister&&!Jg(f),o.watch=!!t.shouldUnregister,o.keepIsValid=!!c.keepIsValid,o.action=!1,o.actionArrayLengths.clear(),c.keepErrors||(n.errors={}),g.state.next({submitCount:c.keepSubmitCount?n.submitCount:0,isDirty:d?!1:c.keepDirty?n.isDirty:c.keepValues?F():!(!c.keepDefaultValues||Ig(e,i)),isSubmitted:c.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:d?{}:c.keepDirtyValues?c.keepDefaultValues&&a?k_(i,a,void 0,p):n.dirtyFields:c.keepDefaultValues&&e?k_(i,e,void 0,p):c.keepDirty?n.dirtyFields:{},touchedFields:c.keepTouched?n.touchedFields:{},errors:c.keepErrors?n.errors:{},isSubmitSuccessful:c.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},ge=(e,n)=>he(Og(e)?e(a):e,{...t.resetOptions,...n}),K=(e,t={})=>{let n=Q(r,e),i=n&&n._f;if(i){let e=i.refs?i.refs[0]:i.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&Og(e.select)&&e.select()})}},_e=e=>{let{name:t,type:r,values:i,...a}=e;n={...n,...a}};g.state.subscribe({next:_e});let ve={control:{register:ue,unregister:ce,getFieldState:H,handleSubmit:pe,setError:U,_subscribe:G,_runSchema:j,_updateIsValidating:x,_focusError:de,_getWatch:I,_getDirty:F,_setValid:b,_setFieldArray:C,_setDisabledField:le,_setErrors:T,_getFieldArray:te,_reset:he,_resetDefaultValues:()=>Og(t.defaultValues)&&t.defaultValues().then(e=>{ge(e,t.resetOptions),g.state.next({isLoading:!1})}),_removeUnmounted:P,_disableForm:fe,_subjects:g,_proxyFormState:m,get _fields(){return r},get _formValues(){return a},get _state(){return o},set _state(e){o=e},get _defaultValues(){return i},get _names(){return s},set _names(e){s=e},get _formState(){return n},get _options(){return t},set _options(e){t={...t,...e},d=Wg(t.mode),f=Wg(t.reValidateMode)}},subscribe:se,trigger:V,register:ue,handleSubmit:pe,watch:W,setValue:R,setValues:z,getValues:ae,reset:ge,resetField:me,resetDefaultValues:(e,t={})=>{if(i=gg(e),!t.keepDirty){let e=k_(i,a,void 0,r);n.dirtyFields=e,n.isDirty=!Jg(e)}t.keepIsValid||b(),g.state.next({...n,defaultValues:i})},clearErrors:oe,unregister:ce,setError:U,setFocus:K,getFieldState:H};return{...ve,formControl:ve}}function q_(e={}){let t=q.useRef(void 0),n=q.useRef(void 0),r=q.useRef(e.formControl),[i,a]=q.useState(()=>({...gg(G_),isLoading:Og(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Og(e.defaultValues)?void 0:e.defaultValues}));if(!t.current||e.formControl&&r.current!==e.formControl){if(r.current=e.formControl,e.formControl)t.current={...e.formControl,formState:i},e.defaultValues&&!Og(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:n,...r}=K_(e);t.current={...r,formState:i}}}let o=t.current.control;o._options=e;let{resyncIfNeeded:s,snapshot:c}=Lg();return Ng(()=>{let e=()=>({...o._formState,defaultValues:o._defaultValues});s(!0,e,a);let t=o._subscribe({formState:o._proxyFormState,callback:()=>a({...o._formState,defaultValues:o._defaultValues}),reRenderRoot:!0});return a(e=>({...e,isReady:!0})),o._formState.isReady=!0,()=>{t(),c(!0,e)}},[o,s,c]),q.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),q.useEffect(()=>{e.mode&&(o._options.mode=e.mode),e.reValidateMode&&(o._options.reValidateMode=e.reValidateMode)},[o,e.mode,e.reValidateMode]),q.useEffect(()=>{e.errors&&(o._setErrors(e.errors),o._focusError())},[o,e.errors]),q.useEffect(()=>{e.shouldUnregister&&o._subjects.state.next({values:o._getWatch()})},[o,e.shouldUnregister]),q.useEffect(()=>{if(o._proxyFormState.isDirty){let e=o._getDirty();e!==i.isDirty&&o._subjects.state.next({isDirty:e})}},[o,i.isDirty]),q.useEffect(()=>{e.values&&!Ig(e.values,n.current)?(o._reset(e.values,{keepFieldsRef:!0,...o._options.resetOptions}),o._options.resetOptions?.keepIsValid||o._setValid(),n.current=e.values,a(e=>({...e}))):o._resetDefaultValues()},[o,e.values]),q.useEffect(()=>{o._state.mount||(o._setValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=q.useMemo(()=>Mg(i,o),[o,i]),t.current}var J_=Et(`text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70`),Y_=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(ti,{ref:n,className:Y(J_(),e),...t}));Y_.displayName=ti.displayName;var X_=h_,Z_=q.createContext(null),Q_=({...e})=>(0,J.jsx)(Z_.Provider,{value:{name:e.name},children:(0,J.jsx)(Ug,{...e})}),$_=()=>{let e=q.useContext(Z_),t=q.useContext(ev),{getFieldState:n,formState:r}=m_();if(!e)throw Error(`useFormField should be used within <FormField>`);if(!t)throw Error(`useFormField should be used within <FormItem>`);let i=n(e.name,r),{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...i}},ev=q.createContext(null),tv=q.forwardRef(({className:e,...t},n)=>{let r=q.useId();return(0,J.jsx)(ev.Provider,{value:{id:r},children:(0,J.jsx)(`div`,{ref:n,className:Y(`space-y-2`,e),...t})})});tv.displayName=`FormItem`;var nv=q.forwardRef(({className:e,...t},n)=>{let{error:r,formItemId:i}=$_();return(0,J.jsx)(Y_,{ref:n,className:Y(r&&`text-destructive`,e),htmlFor:i,...t})});nv.displayName=`FormLabel`;var rv=q.forwardRef(({...e},t)=>{let{error:n,formItemId:r,formDescriptionId:i,formMessageId:a}=$_();return(0,J.jsx)(Bt,{ref:t,id:r,"aria-describedby":n?`${i} ${a}`:`${i}`,"aria-invalid":!!n,...e})});rv.displayName=`FormControl`;var iv=q.forwardRef(({className:e,...t},n)=>{let{formDescriptionId:r}=$_();return(0,J.jsx)(`p`,{ref:n,id:r,className:Y(`text-sm text-muted-foreground`,e),...t})});iv.displayName=`FormDescription`;var av=q.forwardRef(({className:e,children:t,...n},r)=>{let{error:i,formMessageId:a}=$_(),o=i?String(i?.message??``):t;return o?(0,J.jsx)(`p`,{ref:r,id:a,className:Y(`text-sm font-medium text-destructive`,e),...n,children:o}):null});av.displayName=`FormMessage`;var ov=Rn,sv=Kr,cv=q.forwardRef(({className:e,align:t=`center`,sideOffset:n=4,...r},i)=>(0,J.jsx)(ir,{ref:i,align:t,sideOffset:n,className:Y(`z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-hover-card-content-transform-origin)`,e),...r}));cv.displayName=ir.displayName;var lv=Object.defineProperty,uv=Object.defineProperties,dv=Object.getOwnPropertyDescriptors,fv=Object.getOwnPropertySymbols,pv=Object.prototype.hasOwnProperty,mv=Object.prototype.propertyIsEnumerable,hv=(e,t,n)=>t in e?lv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gv=(e,t)=>{for(var n in t||={})pv.call(t,n)&&hv(e,n,t[n]);if(fv)for(var n of fv(t))mv.call(t,n)&&hv(e,n,t[n]);return e},_v=(e,t)=>uv(e,dv(t)),vv=(e,t)=>{var n={};for(var r in e)pv.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&fv)for(var r of fv(e))t.indexOf(r)<0&&mv.call(e,r)&&(n[r]=e[r]);return n};function yv(e){return[setTimeout(e,0),setTimeout(e,10),setTimeout(e,50)]}function bv(e){let t=q.useRef();return q.useEffect(()=>{t.current=e}),t.current}var xv=18,Sv=40,Cv=`${Sv}px`,wv=[`[data-lastpass-icon-root]`,`com-1password-button`,`[data-dashlanecreated]`,`[style$="2147483647 !important;"]`].join(`,`);function Tv({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r}){let[i,a]=q.useState(!1),[o,s]=q.useState(!1),[c,l]=q.useState(!1),u=q.useMemo(()=>n!==`none`&&(n===`increase-width`||n===`experimental-no-flickering`)&&i&&o,[i,o,n]),d=q.useCallback(()=>{let r=e.current,i=t.current;if(!r||!i||c||n===`none`)return;let o=r,s=o.getBoundingClientRect().left+o.offsetWidth,u=o.getBoundingClientRect().top+o.offsetHeight/2,d=s-xv,f=u;document.querySelectorAll(wv).length===0&&document.elementFromPoint(d,f)===r||(a(!0),l(!0))},[e,t,c,n]);return q.useEffect(()=>{let t=e.current;if(!t||n===`none`)return;function r(){let e=window.innerWidth-t.getBoundingClientRect().right;s(e>=Sv)}r();let i=setInterval(r,1e3);return()=>{clearInterval(i)}},[e,n]),q.useEffect(()=>{let e=r||document.activeElement===t.current;if(n===`none`||!e)return;let i=setTimeout(d,0),a=setTimeout(d,2e3),o=setTimeout(d,5e3),s=setTimeout(()=>{l(!0)},6e3);return()=>{clearTimeout(i),clearTimeout(a),clearTimeout(o),clearTimeout(s)}},[t,r,n,d]),{hasPWMBadge:i,willPushPWMBadge:u,PWM_BADGE_SPACE_WIDTH:Cv}}var Ev=q.createContext({}),Dv=q.forwardRef((e,t)=>{var n=e,{value:r,onChange:i,maxLength:a,textAlign:o=`left`,pattern:s,placeholder:c,inputMode:l=`numeric`,onComplete:u,pushPasswordManagerStrategy:d=`increase-width`,pasteTransformer:f,containerClassName:p,noScriptCSSFallback:m=kv,render:h,children:g}=n,_=vv(n,[`value`,`onChange`,`maxLength`,`textAlign`,`pattern`,`placeholder`,`inputMode`,`onComplete`,`pushPasswordManagerStrategy`,`pasteTransformer`,`containerClassName`,`noScriptCSSFallback`,`render`,`children`]),v;let[y,b]=q.useState(typeof _.defaultValue==`string`?_.defaultValue:``),x=r??y,S=bv(x),C=q.useCallback(e=>{i?.(e),b(e)},[i]),w=q.useMemo(()=>s?typeof s==`string`?new RegExp(s):s:null,[s]),T=q.useRef(null),E=q.useRef(null),D=q.useRef({value:x,onChange:C,isIOS:typeof window<`u`&&((v=window==null?void 0:window.CSS)?.supports)?.call(v,`-webkit-touch-callout`,`none`)}),O=q.useRef({prev:[T.current?.selectionStart,T.current?.selectionEnd,T.current?.selectionDirection]});q.useImperativeHandle(t,()=>T.current,[]),q.useEffect(()=>{let e=T.current,t=E.current;if(!e||!t)return;D.current.value!==e.value&&D.current.onChange(e.value),O.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection];function n(){if(document.activeElement!==e){ee(null),F(null);return}let t=e.selectionStart,n=e.selectionEnd,r=e.selectionDirection,i=e.maxLength,a=e.value,o=O.current.prev,s=-1,c=-1,l;if(a.length!==0&&t!==null&&n!==null){let e=t===n,r=t===a.length&&a.length<i;if(e&&!r){let e=t;if(e===0)s=0,c=1,l=`forward`;else if(e===i)s=e-1,c=e,l=`backward`;else if(i>1&&a.length>1){let t=0;if(o[0]!==null&&o[1]!==null){l=e<o[1]?`backward`:`forward`;let n=o[0]===o[1]&&o[0]<i;l===`backward`&&!n&&(t=-1)}s=t+e,c=t+e+1}}s!==-1&&c!==-1&&s!==c&&T.current.setSelectionRange(s,c,l)}let u=s===-1?t:s,d=c===-1?n:c,f=l??r;ee(u),F(d),O.current.prev=[u,d,f]}if(document.addEventListener(`selectionchange`,n,{capture:!0}),n(),document.activeElement===e&&M(!0),!document.getElementById(`input-otp-style`)){let e=document.createElement(`style`);if(e.id=`input-otp-style`,document.head.appendChild(e),e.sheet){let t=`background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;`;Ov(e.sheet,`[data-input-otp]::selection { background: transparent !important; color: transparent !important; }`),Ov(e.sheet,`[data-input-otp]:autofill { ${t} }`),Ov(e.sheet,`[data-input-otp]:-webkit-autofill { ${t} }`),Ov(e.sheet,`@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }`),Ov(e.sheet,`[data-input-otp] + * { pointer-events: all !important; }`)}}let r=()=>{t&&t.style.setProperty(`--root-height`,`${e.clientHeight}px`)};r();let i=new ResizeObserver(r);return i.observe(e),()=>{document.removeEventListener(`selectionchange`,n,{capture:!0}),i.disconnect()}},[]);let[k,A]=q.useState(!1),[j,M]=q.useState(!1),[N,ee]=q.useState(null),[P,F]=q.useState(null);q.useEffect(()=>{yv(()=>{var e;(e=T.current)==null||e.dispatchEvent(new Event(`input`));let t=T.current?.selectionStart,n=T.current?.selectionEnd,r=T.current?.selectionDirection;t!==null&&n!==null&&(ee(t),F(n),O.current.prev=[t,n,r])})},[x,j]),q.useEffect(()=>{S!==void 0&&x!==S&&S.length<a&&x.length===a&&u?.(x)},[a,u,S,x]);let I=Tv({containerRef:E,inputRef:T,pushPasswordManagerStrategy:d,isFocused:j}),te=q.useCallback(e=>{let t=e.currentTarget.value.slice(0,a);if(t.length>0&&w&&!w.test(t)){e.preventDefault();return}typeof S==`string`&&t.length<S.length&&document.dispatchEvent(new Event(`selectionchange`)),C(t)},[a,C,S,w]),ne=q.useCallback(()=>{var e;if(T.current){let t=Math.min(T.current.value.length,a-1),n=T.current.value.length;(e=T.current)==null||e.setSelectionRange(t,n),ee(t),F(n)}M(!0)},[a]),re=q.useCallback(e=>{let t=T.current;if(!f&&(!D.current.isIOS||!e.clipboardData||!t))return;let n=e.clipboardData.getData(`text/plain`),r=f?f(n):n;e.preventDefault();let i=T.current?.selectionStart,o=T.current?.selectionEnd,s=(i===o?x.slice(0,i)+r+x.slice(i):x.slice(0,i)+r+x.slice(o)).slice(0,a);if(s.length>0&&w&&!w.test(s))return;t.value=s,C(s);let c=Math.min(s.length,a-1),l=s.length;t.setSelectionRange(c,l),ee(c),F(l)},[a,C,w,x]),L=q.useMemo(()=>({position:`relative`,cursor:_.disabled?`default`:`text`,userSelect:`none`,WebkitUserSelect:`none`,pointerEvents:`none`}),[_.disabled]),R=q.useMemo(()=>({position:`absolute`,inset:0,width:I.willPushPWMBadge?`calc(100% + ${I.PWM_BADGE_SPACE_WIDTH})`:`100%`,clipPath:I.willPushPWMBadge?`inset(0 ${I.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:`100%`,display:`flex`,textAlign:o,opacity:`1`,color:`transparent`,pointerEvents:`all`,background:`transparent`,caretColor:`transparent`,border:`0 solid transparent`,outline:`0 solid transparent`,boxShadow:`none`,lineHeight:`1`,letterSpacing:`-.5em`,fontSize:`var(--root-height)`,fontFamily:`monospace`,fontVariantNumeric:`tabular-nums`}),[I.PWM_BADGE_SPACE_WIDTH,I.willPushPWMBadge,o]),z=q.useMemo(()=>q.createElement(`input`,_v(gv({autoComplete:_.autoComplete||`one-time-code`},_),{"data-input-otp":!0,"data-input-otp-placeholder-shown":x.length===0||void 0,"data-input-otp-mss":N,"data-input-otp-mse":P,inputMode:l,pattern:w?.source,"aria-placeholder":c,style:R,maxLength:a,value:x,ref:T,onPaste:e=>{var t;re(e),(t=_.onPaste)==null||t.call(_,e)},onChange:te,onMouseOver:e=>{var t;A(!0),(t=_.onMouseOver)==null||t.call(_,e)},onMouseLeave:e=>{var t;A(!1),(t=_.onMouseLeave)==null||t.call(_,e)},onFocus:e=>{var t;ne(),(t=_.onFocus)==null||t.call(_,e)},onBlur:e=>{var t;M(!1),(t=_.onBlur)==null||t.call(_,e)}})),[te,ne,re,l,R,a,P,N,_,w?.source,x]),B=q.useMemo(()=>({slots:Array.from({length:a}).map((e,t)=>{let n=j&&N!==null&&P!==null&&(N===P&&t===N||t>=N&&t<P),r=x[t]===void 0?null:x[t];return{char:r,placeholderChar:x[0]===void 0?c?.[t]??null:null,isActive:n,hasFakeCaret:n&&r===null}}),isFocused:j,isHovering:!_.disabled&&k}),[j,k,a,P,N,_.disabled,x]),ie=q.useMemo(()=>h?h(B):q.createElement(Ev.Provider,{value:B},g),[g,B,h]);return q.createElement(q.Fragment,null,m!==null&&q.createElement(`noscript`,null,q.createElement(`style`,null,m)),q.createElement(`div`,{ref:E,"data-input-otp-container":!0,style:L,className:p},ie,q.createElement(`div`,{style:{position:`absolute`,inset:0,pointerEvents:`none`}},z)))});Dv.displayName=`Input`;function Ov(e,t){try{e.insertRule(t)}catch{console.error(`input-otp could not insert CSS rule:`,t)}}var kv=`
|
|
5
|
+
[data-input-otp] {
|
|
6
|
+
--nojs-bg: white !important;
|
|
7
|
+
--nojs-fg: black !important;
|
|
8
|
+
|
|
9
|
+
background-color: var(--nojs-bg) !important;
|
|
10
|
+
color: var(--nojs-fg) !important;
|
|
11
|
+
caret-color: var(--nojs-fg) !important;
|
|
12
|
+
letter-spacing: .25em !important;
|
|
13
|
+
text-align: center !important;
|
|
14
|
+
border: 1px solid var(--nojs-fg) !important;
|
|
15
|
+
border-radius: 4px !important;
|
|
16
|
+
width: 100% !important;
|
|
17
|
+
}
|
|
18
|
+
@media (prefers-color-scheme: dark) {
|
|
19
|
+
[data-input-otp] {
|
|
20
|
+
--nojs-bg: black !important;
|
|
21
|
+
--nojs-fg: white !important;
|
|
22
|
+
}
|
|
23
|
+
}`,Av=q.forwardRef(({className:e,containerClassName:t,...n},r)=>(0,J.jsx)(Dv,{ref:r,containerClassName:Y(`flex items-center gap-2 has-[:disabled]:opacity-50`,t),className:Y(`disabled:cursor-not-allowed`,e),...n}));Av.displayName=`InputOTP`;var jv=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`div`,{ref:n,className:Y(`flex items-center`,e),...t}));jv.displayName=`InputOTPGroup`;var Mv=q.forwardRef(({index:e,className:t,...n},r)=>{let{char:i,hasFakeCaret:a,isActive:o}=q.useContext(Ev).slots[e];return(0,J.jsxs)(`div`,{ref:r,className:Y(`relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md`,o&&`z-10 ring-2 ring-ring ring-offset-background`,t),...n,children:[i,a&&(0,J.jsx)(`div`,{className:`pointer-events-none absolute inset-0 flex items-center justify-center`,children:(0,J.jsx)(`div`,{className:`h-4 w-px animate-caret-blink bg-foreground duration-1000`})})]})});Mv.displayName=`InputOTPSlot`;var Nv=q.forwardRef(({...e},t)=>(0,J.jsx)(`div`,{ref:t,role:`separator`,...e,children:(0,J.jsx)(ji,{})}));Nv.displayName=`InputOTPSeparator`;var Pv=q.forwardRef(({className:e,type:t,...n},r)=>(0,J.jsx)(`input`,{type:t,className:Y(`flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm`,e),ref:r,...n}));Pv.displayName=`Input`;function Fv({...e}){return(0,J.jsx)(Lr,{...e})}function Iv({...e}){return(0,J.jsx)(tr,{"data-slot":`menubar-sub`,...e})}var Lv=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(Ur,{ref:n,className:Y(`flex h-10 items-center space-x-1 rounded-md border bg-background p-1`,e),...t}));Lv.displayName=Ur.displayName;var Rv=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(sr,{ref:n,className:Y(`flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground`,e),...t}));Rv.displayName=sr.displayName;var zv=q.forwardRef(({className:e,inset:t,children:n,...r},i)=>(0,J.jsxs)(br,{ref:i,className:Y(`flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground`,t&&`pl-8`,e),...r,children:[n,(0,J.jsx)(gi,{className:`ml-auto h-4 w-4`})]}));zv.displayName=br.displayName;var Bv=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(kr,{ref:n,className:Y(`z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-menubar-content-transform-origin)`,e),...t}));Bv.displayName=kr.displayName;var Vv=q.forwardRef(({className:e,align:t=`start`,alignOffset:n=-4,sideOffset:r=8,...i},a)=>(0,J.jsx)(qn,{children:(0,J.jsx)(Pr,{ref:a,align:t,alignOffset:n,sideOffset:r,className:Y(`z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-menubar-content-transform-origin)`,e),...i})}));Vv.displayName=Pr.displayName;var Hv=q.forwardRef(({className:e,inset:t,...n},r)=>(0,J.jsx)(ur,{ref:r,className:Y(`relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,t&&`pl-8`,e),...n}));Hv.displayName=ur.displayName;var Uv=q.forwardRef(({className:e,children:t,checked:n,...r},i)=>(0,J.jsxs)(Cr,{ref:i,className:Y(`relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,e),checked:n,...r,children:[(0,J.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,J.jsx)(Vn,{children:(0,J.jsx)(pi,{className:`h-4 w-4`})})}),t]}));Uv.displayName=Cr.displayName;var Wv=q.forwardRef(({className:e,children:t,...n},r)=>(0,J.jsxs)(_r,{ref:r,className:Y(`relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,e),...n,children:[(0,J.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,J.jsx)(Vn,{children:(0,J.jsx)(Ei,{className:`h-2 w-2 fill-current`})})}),t]}));Wv.displayName=_r.displayName;var Gv=q.forwardRef(({className:e,inset:t,...n},r)=>(0,J.jsx)(Er,{ref:r,className:Y(`px-2 py-1.5 text-sm font-semibold`,t&&`pl-8`,e),...n}));Gv.displayName=Er.displayName;var Kv=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(Xn,{ref:n,className:Y(`-mx-1 my-1 h-px bg-muted`,e),...t}));Kv.displayName=Xn.displayName;var qv=({className:e,...t})=>(0,J.jsx)(`span`,{className:Y(`ml-auto text-xs tracking-widest text-muted-foreground`,e),...t});qv.displayname=`MenubarShortcut`;var Jv=q.forwardRef(({className:e,children:t,...n},r)=>(0,J.jsxs)(At,{ref:r,className:Y(`relative z-10 flex max-w-max flex-1 items-center justify-center`,e),...n,children:[t,(0,J.jsx)(ty,{})]}));Jv.displayName=At.displayName;var Yv=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(mn,{ref:n,className:Y(`group flex flex-1 list-none items-center justify-center space-x-1`,e),...t}));Yv.displayName=mn.displayName;var Xv=An,Zv=Et(`group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent`),Qv=q.forwardRef(({className:e,children:t,...n},r)=>(0,J.jsxs)(Qn,{ref:r,className:Y(Zv(),`group`,e),...n,children:[t,` `,(0,J.jsx)(mi,{className:`relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180`,"aria-hidden":`true`})]}));Qv.displayName=Qn.displayName;var $v=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(Qt,{ref:n,className:Y(`left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto `,e),...t}));$v.displayName=Qt.displayName;var ey=Pn,ty=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`div`,{className:Y(`absolute left-0 top-full flex justify-center`),children:(0,J.jsx)(Br,{className:Y(`origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]`,e),ref:n,...t})}));ty.displayName=Br.displayName;var ny=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(Mn,{ref:n,className:Y(`top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in`,e),...t,children:(0,J.jsx)(`div`,{className:`relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md`})}));ny.displayName=Mn.displayName;var ry=({className:e,...t})=>(0,J.jsx)(`nav`,{role:`navigation`,"aria-label":`pagination`,className:Y(`mx-auto flex w-full justify-center`,e),...t});ry.displayName=`Pagination`;var iy=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`ul`,{ref:n,className:Y(`flex flex-row items-center gap-1`,e),...t}));iy.displayName=`PaginationContent`;var ay=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`li`,{ref:n,className:Y(``,e),...t}));ay.displayName=`PaginationItem`;var oy=({className:e,isActive:t,size:n=`icon`,...r})=>(0,J.jsx)(`a`,{"aria-current":t?`page`:void 0,className:Y(Wo({variant:t?`outline`:`ghost`,size:n}),e),...r});oy.displayName=`PaginationLink`;var sy=({className:e,...t})=>(0,J.jsxs)(oy,{"aria-label":`Go to previous page`,size:`default`,className:Y(`gap-1 pl-2.5`,e),...t,children:[(0,J.jsx)(hi,{className:`h-4 w-4`}),(0,J.jsx)(`span`,{children:`Previous`})]});sy.displayName=`PaginationPrevious`;var cy=({className:e,...t})=>(0,J.jsxs)(oy,{"aria-label":`Go to next page`,size:`default`,className:Y(`gap-1 pr-2.5`,e),...t,children:[(0,J.jsx)(`span`,{children:`Next`}),(0,J.jsx)(gi,{className:`h-4 w-4`})]});cy.displayName=`PaginationNext`;var ly=({className:e,...t})=>(0,J.jsxs)(`span`,{"aria-hidden":!0,className:Y(`flex h-9 w-9 items-center justify-center`,e),...t,children:[(0,J.jsx)(Ni,{className:`h-4 w-4`}),(0,J.jsx)(`span`,{className:`sr-only`,children:`More pages`})]});ly.displayName=`PaginationEllipsis`;var uy=en,dy=Ar,fy=q.forwardRef(({className:e,align:t=`center`,sideOffset:n=4,...r},i)=>(0,J.jsx)(Kt,{children:(0,J.jsx)(On,{ref:i,align:t,sideOffset:n,className:Y(`z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-popover-content-transform-origin)`,e),...r})}));fy.displayName=On.displayName;var py=q.forwardRef(({className:e,value:t,...n},r)=>(0,J.jsx)(Jt,{ref:r,className:Y(`relative h-4 w-full overflow-hidden rounded-full bg-secondary`,e),...n,children:(0,J.jsx)(En,{className:`h-full w-full flex-1 bg-primary transition-all`,style:{transform:`translateX(-${100-(t||0)}%)`}})}));py.displayName=Jt.displayName;var my=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(gn,{className:Y(`grid gap-2`,e),...t,ref:n}));my.displayName=gn.displayName;var hy=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(Pt,{ref:n,className:Y(`aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50`,e),...t,children:(0,J.jsx)(ni,{className:`flex items-center justify-center`,children:(0,J.jsx)(Ei,{className:`h-2.5 w-2.5 fill-current text-current`})})}));hy.displayName=Pt.displayName;var gy=q.forwardRef(({className:e,children:t,...n},r)=>(0,J.jsxs)(fn,{ref:r,className:Y(`relative overflow-hidden`,e),...n,children:[(0,J.jsx)(nn,{className:`h-full w-full rounded-[inherit]`,children:t}),(0,J.jsx)(_y,{}),(0,J.jsx)(sn,{})]}));gy.displayName=fn.displayName;var _y=q.forwardRef(({className:e,orientation:t=`vertical`,...n},r)=>(0,J.jsx)(Wt,{ref:r,orientation:t,className:Y(`flex touch-none select-none transition-colors`,t===`vertical`&&`h-full w-2.5 border-l border-l-transparent p-[1px]`,t===`horizontal`&&`h-2.5 flex-col border-t border-t-transparent p-[1px]`,e),...n,children:(0,J.jsx)(Xt,{className:`relative flex-1 rounded-full bg-border`})}));_y.displayName=Wt.displayName;var vy=({onValueChange:e,...t})=>{let n=q.useCallback(t=>{t!==``&&e?.(t)},[e]);return(0,J.jsx)($r,{...t,onValueChange:n})};vy.displayName=$r.displayName;var yy=dr,by=q.forwardRef(({className:e,children:t,...n},r)=>(0,J.jsxs)(Mt,{ref:r,className:Y(`flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1`,e),...n,children:[t,(0,J.jsx)(Xr,{asChild:!0,children:(0,J.jsx)(mi,{className:`h-4 w-4 opacity-50`})})]}));by.displayName=Mt.displayName;var xy=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(ln,{ref:n,className:Y(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,J.jsx)(_i,{className:`h-4 w-4`})}));xy.displayName=ln.displayName;var Sy=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(zt,{ref:n,className:Y(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,J.jsx)(mi,{className:`h-4 w-4`})}));Sy.displayName=zt.displayName;var Cy=q.forwardRef(({className:e,children:t,position:n=`popper`,...r},i)=>(0,J.jsx)(Ht,{children:(0,J.jsxs)(Hn,{ref:i,className:Y(`relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-select-content-transform-origin)`,n===`popper`&&`data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1`,e),position:n,...r,children:[(0,J.jsx)(xy,{}),(0,J.jsx)(an,{className:Y(`p-1`,n===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]`),children:t}),(0,J.jsx)(Sy,{})]})}));Cy.displayName=Hn.displayName;var wy=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(xn,{ref:n,className:Y(`py-1.5 pl-8 pr-2 text-sm font-semibold`,e),...t}));wy.displayName=xn.displayName;var Ty=q.forwardRef(({className:e,children:t,...n},r)=>(0,J.jsxs)(vn,{ref:r,className:Y(`relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,e),...n,children:[(0,J.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,J.jsx)(It,{children:(0,J.jsx)(pi,{className:`h-4 w-4`})})}),(0,J.jsx)(qr,{children:t})]}));Ty.displayName=vn.displayName;var Ey=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(pr,{ref:n,className:Y(`-mx-1 my-1 h-px bg-muted`,e),...t}));Ey.displayName=pr.displayName;var Dy=q.forwardRef(({className:e,orientation:t=`horizontal`,decorative:n=!0,...r},i)=>(0,J.jsx)(Wr,{ref:i,decorative:n,orientation:t,className:Y(`shrink-0 bg-border`,t===`horizontal`?`h-[1px] w-full`:`h-full w-[1px]`,e),...r}));Dy.displayName=Wr.displayName;var Oy=Kn,ky=or,Ay=gr,jy=Or,My=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(er,{className:Y(`fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,e),...t,ref:n}));My.displayName=er.displayName;var Ny=Et(`fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500`,{variants:{side:{top:`inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top`,bottom:`inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom`,left:`inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm`,right:`inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm`}},defaultVariants:{side:`right`}}),Py=q.forwardRef(({side:e=`right`,className:t,children:n,hideOverlay:r,...i},a)=>(0,J.jsxs)(jy,{children:[!r&&(0,J.jsx)(My,{}),(0,J.jsxs)(Hr,{ref:a,className:Y(Ny({side:e}),t),...i,children:[n,(0,J.jsxs)(gr,{className:`absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary`,children:[(0,J.jsx)(Ta,{className:`h-4 w-4`}),(0,J.jsx)(rm,{})]})]})]}));Py.displayName=Hr.displayName;var Fy=({className:e,...t})=>(0,J.jsx)(`div`,{className:Y(`flex flex-col space-y-2 text-center sm:text-left`,e),...t});Fy.displayName=`SheetHeader`;var Iy=({className:e,...t})=>(0,J.jsx)(`div`,{className:Y(`flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2`,e),...t});Iy.displayName=`SheetFooter`;var Ly=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(yr,{ref:n,className:Y(`text-lg font-semibold text-foreground`,e),...t}));Ly.displayName=yr.displayName;var Ry=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(Yn,{ref:n,className:Y(`text-sm text-muted-foreground`,e),...t}));Ry.displayName=Yn.displayName;var zy=768;function By(){let[e,t]=q.useState(void 0);return q.useEffect(()=>{let e=window.matchMedia(`(max-width: 767px)`),n=()=>{t(window.innerWidth<zy)};return e.addEventListener(`change`,n),t(window.innerWidth<zy),()=>e.removeEventListener(`change`,n)},[]),!!e}function Vy(e){if(typeof document>`u`)return;let t=document.cookie;if(t)for(let n of t.split(`;`)){let t=n.indexOf(`=`);if(t===-1||n.slice(0,t).trim()!==e)continue;let r=n.slice(t+1).trim();return r===`true`||r!==`false`&&void 0}}function Hy({className:e,...t}){return(0,J.jsx)(`div`,{className:Y(`animate-pulse rounded-md bg-muted`,e),...t})}var Uy=ar,Wy=nr,Gy=In,Ky=q.forwardRef(({className:e,sideOffset:t=4,...n},r)=>(0,J.jsx)(vr,{ref:r,sideOffset:t,className:Y(`z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-tooltip-content-transform-origin)`,e),...n}));Ky.displayName=vr.displayName;var qy=`sidebar_state`,Jy=604800,Yy=`16rem`,Xy=`18rem`,Zy=`3rem`,Qy=`b`,$y=q.createContext(null);function eb(){let e=q.useContext($y);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}var tb=q.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:i,children:a,...o},s)=>{let c=By(),[l,u]=q.useState(!1),[d,f]=q.useState(()=>Vy(qy)??e),p=t??d,m=q.useCallback(e=>{let t=typeof e==`function`?e(p):e;n?n(t):f(t),document.cookie=`${qy}=${t}; path=/; max-age=${Jy}`},[n,p]),h=q.useCallback(()=>c?u(e=>!e):m(e=>!e),[c,m,u]);q.useEffect(()=>{let e=e=>{e.key===Qy&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),h())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[h]);let g=p?`expanded`:`collapsed`,_=q.useMemo(()=>({state:g,open:p,setOpen:m,isMobile:c,openMobile:l,setOpenMobile:u,toggleSidebar:h}),[g,p,m,c,l,u,h]);return(0,J.jsx)($y.Provider,{value:_,children:(0,J.jsx)(Uy,{delayDuration:0,children:(0,J.jsx)(`div`,{style:{"--sidebar-width":Yy,"--sidebar-width-icon":Zy,...i},className:Y(`group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar`,r),ref:s,...o,children:a})})})});tb.displayName=`SidebarProvider`;var nb=q.forwardRef(({side:e=`left`,variant:t=`sidebar`,collapsible:n=`offcanvas`,className:r,children:i,...a},o)=>{let{isMobile:s,state:c,openMobile:l,setOpenMobile:u}=eb();return n===`none`?(0,J.jsx)(`div`,{className:Y(`flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground`,r),ref:o,...a,children:i}):s?(0,J.jsx)(Oy,{open:l,onOpenChange:u,...a,children:(0,J.jsxs)(Py,{"data-sidebar":`sidebar`,"data-mobile":`true`,className:`w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden data-[state=open]:duration-300 data-[state=open]:ease-out`,style:{"--sidebar-width":Xy},side:e,children:[(0,J.jsxs)(Fy,{className:`sr-only`,children:[(0,J.jsx)(Ly,{children:`Sidebar`}),(0,J.jsx)(Ry,{children:`Displays the mobile sidebar.`})]}),(0,J.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:i})]})}):(0,J.jsxs)(`div`,{ref:o,className:`group peer hidden text-sidebar-foreground md:block`,"data-state":c,"data-collapsible":n,"data-variant":t,"data-side":e,children:[(0,J.jsx)(`div`,{className:Y(`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,t===`floating`||t===`inset`?`group-data-[state=collapsed]:group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_1rem)]`:`group-data-[state=collapsed]:group-data-[collapsible=icon]:w-(--sidebar-width-icon)`)}),(0,J.jsx)(`div`,{className:Y(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex`,e===`left`?`left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]`:`right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]`,t===`floating`||t===`inset`?`p-2 group-data-[state=collapsed]:group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_1rem_+_2px)]`:`group-data-[state=collapsed]:group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,r),...a,children:(0,J.jsx)(`div`,{"data-sidebar":`sidebar`,className:`flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow`,children:i})})]})});nb.displayName=`Sidebar`;var rb=q.forwardRef(({className:e,onClick:t,...n},r)=>{let{toggleSidebar:i}=eb();return(0,J.jsxs)(X,{ref:r,"data-sidebar":`trigger`,variant:`ghost`,size:`icon`,className:Y(`h-7 w-7`,e),onClick:e=>{t?.(e),i()},...n,children:[(0,J.jsx)($i,{}),(0,J.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})});rb.displayName=`SidebarTrigger`;var ib=q.forwardRef(({className:e,...t},n)=>{let{toggleSidebar:r}=eb();return(0,J.jsx)(`button`,{ref:n,"data-sidebar":`rail`,"aria-label":`Toggle Sidebar`,tabIndex:-1,onClick:r,title:`Toggle Sidebar`,className:Y(`absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex`,`[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize`,`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize`,`group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar`,`[[data-side=left][data-collapsible=offcanvas]_&]:-right-2`,`[[data-side=right][data-collapsible=offcanvas]_&]:-left-2`,e),...t})});ib.displayName=`SidebarRail`;var ab=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`main`,{ref:n,className:Y(`relative flex w-full flex-1 flex-col bg-background`,`md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow`,e),...t}));ab.displayName=`SidebarInset`;var ob=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(Pv,{ref:n,"data-sidebar":`input`,className:Y(`h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring`,e),...t}));ob.displayName=`SidebarInput`;var sb=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`div`,{ref:n,"data-sidebar":`header`,className:Y(`flex flex-col gap-2 p-2`,e),...t}));sb.displayName=`SidebarHeader`;var cb=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`div`,{ref:n,"data-sidebar":`footer`,className:Y(`flex flex-col gap-2 p-2`,e),...t}));cb.displayName=`SidebarFooter`;var lb=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(Dy,{ref:n,"data-sidebar":`separator`,className:Y(`mx-2 w-auto bg-sidebar-border`,e),...t}));lb.displayName=`SidebarSeparator`;var ub=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`div`,{ref:n,"data-sidebar":`content`,className:Y(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[state=collapsed]:group-data-[collapsible=icon]:overflow-hidden`,e),...t}));ub.displayName=`SidebarContent`;var db=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`div`,{ref:n,"data-sidebar":`group`,className:Y(`relative flex w-full min-w-0 flex-col p-2`,e),...t}));db.displayName=`SidebarGroup`;var fb=q.forwardRef(({className:e,asChild:t=!1,...n},r)=>(0,J.jsx)(t?Bt:`div`,{ref:r,"data-sidebar":`group-label`,className:Y(`flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,`group-data-[state=collapsed]:group-data-[collapsible=icon]:-mt-8 group-data-[state=collapsed]:group-data-[collapsible=icon]:opacity-0`,e),...n}));fb.displayName=`SidebarGroupLabel`;var pb=q.forwardRef(({className:e,asChild:t=!1,...n},r)=>(0,J.jsx)(t?Bt:`button`,{ref:r,"data-sidebar":`group-action`,className:Y(`absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,`after:absolute after:-inset-2 after:md:hidden`,`group-data-[state=collapsed]:group-data-[collapsible=icon]:hidden`,e),...n}));pb.displayName=`SidebarGroupAction`;var mb=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`div`,{ref:n,"data-sidebar":`group-content`,className:Y(`w-full text-sm`,e),...t}));mb.displayName=`SidebarGroupContent`;var hb=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`ul`,{ref:n,"data-sidebar":`menu`,className:Y(`flex w-full min-w-0 flex-col gap-1`,e),...t}));hb.displayName=`SidebarMenu`;var gb=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`li`,{ref:n,"data-sidebar":`menu-item`,className:Y(`group/menu-item relative`,e),...t}));gb.displayName=`SidebarMenuItem`;var _b=Et(`peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding,color,background-color] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground sidebar-menu-button-icon-mode [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0`,{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm sidebar-menu-button-icon-mode-lg`}},defaultVariants:{variant:`default`,size:`default`}}),vb=q.forwardRef(({asChild:e=!1,isActive:t=!1,variant:n=`default`,size:r=`default`,tooltip:i,className:a,...o},s)=>{let c=e?Bt:`button`,{isMobile:l,state:u}=eb(),d=(0,J.jsx)(c,{ref:s,"data-sidebar":`menu-button`,"data-size":r,"data-active":t,className:Y(_b({variant:n,size:r}),a),...o});return i?(typeof i==`string`&&(i={children:i}),(0,J.jsxs)(Wy,{children:[(0,J.jsx)(Gy,{asChild:!0,children:d}),(0,J.jsx)(Ky,{side:`right`,align:`center`,hidden:u!==`collapsed`||l,...i})]})):d});vb.displayName=`SidebarMenuButton`;var yb=q.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...r},i)=>(0,J.jsx)(t?Bt:`button`,{ref:i,"data-sidebar":`menu-action`,className:Y(`absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0`,`after:absolute after:-inset-2 after:md:hidden`,`peer-data-[size=sm]/menu-button:top-1`,`peer-data-[size=default]/menu-button:top-1.5`,`peer-data-[size=lg]/menu-button:top-2.5`,`group-data-[state=collapsed]:group-data-[collapsible=icon]:hidden`,n&&`group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0`,e),...r}));yb.displayName=`SidebarMenuAction`;var bb=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`div`,{ref:n,"data-sidebar":`menu-badge`,className:Y(`pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground`,`peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground`,`peer-data-[size=sm]/menu-button:top-1`,`peer-data-[size=default]/menu-button:top-1.5`,`peer-data-[size=lg]/menu-button:top-2.5`,`group-data-[state=collapsed]:group-data-[collapsible=icon]:hidden`,e),...t}));bb.displayName=`SidebarMenuBadge`;var xb=q.forwardRef(({className:e,showIcon:t=!1,...n},r)=>{let i=q.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,J.jsxs)(`div`,{ref:r,"data-sidebar":`menu-skeleton`,className:Y(`flex h-8 items-center gap-2 rounded-md px-2`,e),...n,children:[t&&(0,J.jsx)(Hy,{className:`size-4 rounded-md`,"data-sidebar":`menu-skeleton-icon`}),(0,J.jsx)(Hy,{className:`h-4 max-w-(--skeleton-width) flex-1`,"data-sidebar":`menu-skeleton-text`,style:{"--skeleton-width":i}})]})});xb.displayName=`SidebarMenuSkeleton`;var Sb=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`ul`,{ref:n,"data-sidebar":`menu-sub`,className:Y(`mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5`,`group-data-[state=collapsed]:group-data-[collapsible=icon]:hidden`,e),...t}));Sb.displayName=`SidebarMenuSub`;var Cb=q.forwardRef(({...e},t)=>(0,J.jsx)(`li`,{ref:t,...e}));Cb.displayName=`SidebarMenuSubItem`;var wb=q.forwardRef(({asChild:e=!1,size:t=`md`,isActive:n,className:r,...i},a)=>(0,J.jsx)(e?Bt:`a`,{ref:a,"data-sidebar":`menu-sub-button`,"data-size":t,"data-active":n,className:Y(`flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring transition-colors hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground`,`data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground`,t===`sm`&&`text-xs`,t===`md`&&`text-sm`,`group-data-[state=collapsed]:group-data-[collapsible=icon]:hidden`,r),...i}));wb.displayName=`SidebarMenuSubButton`;function Tb(e){let{thumbProps:t,...n}=e;return{root:n,thumb:{"aria-label":e[`aria-label`],...t??{}}}}var Eb=q.forwardRef(({className:e,...t},n)=>(0,J.jsxs)(Vr,{ref:n,className:Y(`relative flex w-full touch-none select-none items-center`,e),...Tb(t).root,children:[(0,J.jsx)(Dr,{className:`relative h-2 w-full grow overflow-hidden rounded-full bg-secondary`,children:(0,J.jsx)(Jn,{className:`absolute h-full bg-primary`})}),(0,J.jsx)($n,{className:`block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50`,...Tb(t).thumb})]}));Eb.displayName=Vr.displayName;var Db=(e,t,n,r,i,a,o,s)=>{let c=document.documentElement,l=[`light`,`dark`];function u(t){(Array.isArray(e)?e:[e]).forEach(e=>{let n=e===`class`,r=n&&a?i.map(e=>a[e]||e):i;n?(c.classList.remove(...r),c.classList.add(a&&a[t]?a[t]:t)):c.setAttribute(e,t)}),d(t)}function d(e){s&&l.includes(e)&&(c.style.colorScheme=e)}function f(){return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}if(r)u(r);else try{let e=localStorage.getItem(t)||n;u(o&&e===`system`?f():e)}catch{}},Ob=q.createContext(void 0),kb={setTheme:e=>{},themes:[]},Ab=()=>q.useContext(Ob)??kb;q.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:a,value:o,themes:s,nonce:c,scriptProps:l})=>{let u=JSON.stringify([n,t,a,e,s,o,r,i]).slice(1,-1);return q.createElement(`script`,{...l,suppressHydrationWarning:!0,nonce:typeof window>`u`?c:``,dangerouslySetInnerHTML:{__html:`(${Db.toString()})(${u})`}})});var jb=({...e})=>{let{theme:t=`system`}=Ab();return(0,J.jsx)(Dt,{theme:t,className:`toaster group`,icons:{success:(0,J.jsx)(Si,{className:`h-4 w-4`}),info:(0,J.jsx)(Ki,{className:`h-4 w-4`}),warning:(0,J.jsx)(xa,{className:`h-4 w-4`}),error:(0,J.jsx)(Qi,{className:`h-4 w-4`}),loading:(0,J.jsx)(Ji,{className:`h-4 w-4 animate-spin`})},toastOptions:{classNames:{toast:`group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg`,description:`group-[.toast]:text-muted-foreground`,actionButton:`group-[.toast]:bg-primary group-[.toast]:text-primary-foreground`,cancelButton:`group-[.toast]:bg-muted group-[.toast]:text-muted-foreground`}},...e})},Mb=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(Gn,{className:Y(`peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input`,e),...t,ref:n,children:(0,J.jsx)(hr,{className:Y(`pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0`)})}));Mb.displayName=Gn.displayName;var Nb=q.forwardRef(({className:e,containerClassName:t,...n},r)=>(0,J.jsx)(`div`,{className:Y(`relative w-full overflow-auto`,t),children:(0,J.jsx)(`table`,{ref:r,className:Y(`w-full caption-bottom text-sm`,e),...n})}));Nb.displayName=`Table`;var Pb=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`thead`,{ref:n,className:Y(`[&_tr]:border-b`,e),...t}));Pb.displayName=`TableHeader`;var Fb=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`tbody`,{ref:n,className:Y(`[&_tr:last-child]:border-0`,e),...t}));Fb.displayName=`TableBody`;var Ib=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`tfoot`,{ref:n,className:Y(`border-t bg-muted/50 font-medium [&>tr]:last:border-b-0`,e),...t}));Ib.displayName=`TableFooter`;var Lb=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`tr`,{ref:n,className:Y(`border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted`,e),...t}));Lb.displayName=`TableRow`;var Rb=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`th`,{ref:n,className:Y(`h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0`,e),...t}));Rb.displayName=`TableHead`;var zb=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`td`,{ref:n,className:Y(`p-4 align-middle [&:has([role=checkbox])]:pr-0`,e),...t}));zb.displayName=`TableCell`;var Bb=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`caption`,{ref:n,className:Y(`mt-4 text-sm text-muted-foreground`,e),...t}));Bb.displayName=`TableCaption`;var Vb=wr,Hb=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(zn,{ref:n,className:Y(`inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground`,e),...t}));Hb.displayName=zn.displayName;var Ub=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(Fr,{ref:n,className:Y(`inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm`,e),...t}));Ub.displayName=Fr.displayName;var Wb=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(cr,{ref:n,className:Y(`mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2`,e),...t}));Wb.displayName=cr.displayName;var Gb=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`textarea`,{className:Y(`flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm`,e),ref:n,...t}));Gb.displayName=`Textarea`;var Kb=Et(`inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 gap-2`,{variants:{variant:{default:`bg-transparent`,outline:`border border-input bg-transparent hover:bg-accent hover:text-accent-foreground`},size:{default:`h-10 px-3 min-w-10`,sm:`h-9 px-2.5 min-w-9`,lg:`h-11 px-5 min-w-11`}},defaultVariants:{variant:`default`,size:`default`}}),qb=q.forwardRef(({className:e,variant:t,size:n,...r},i)=>(0,J.jsx)(Mr,{ref:i,className:Y(Kb({variant:t,size:n,className:e})),...r}));qb.displayName=Mr.displayName;var Jb=q.createContext({size:`default`,variant:`default`}),Yb=q.forwardRef(({className:e,variant:t,size:n,children:r,...i},a)=>(0,J.jsx)(Rr,{ref:a,className:Y(`flex items-center justify-center gap-1`,e),...i,children:(0,J.jsx)(Jb.Provider,{value:{variant:t,size:n},children:r})}));Yb.displayName=Rr.displayName;var Xb=q.forwardRef(({className:e,children:t,variant:n,size:r,...i},a)=>{let o=q.useContext(Jb);return(0,J.jsx)(xr,{ref:a,className:Y(Kb({variant:o.variant||n,size:o.size||r}),e),...i,children:t})});Xb.displayName=xr.displayName;var Zb=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`h1`,{ref:n,className:Y(`scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl`,e),...t}));Zb.displayName=`TypographyH1`;var Qb=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`h2`,{ref:n,className:Y(`scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight first:mt-0`,e),...t}));Qb.displayName=`TypographyH2`;var $b=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`h3`,{ref:n,className:Y(`scroll-m-20 text-2xl font-semibold tracking-tight`,e),...t}));$b.displayName=`TypographyH3`;var ex=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`h4`,{ref:n,className:Y(`scroll-m-20 text-xl font-semibold tracking-tight`,e),...t}));ex.displayName=`TypographyH4`;var tx=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`p`,{ref:n,className:Y(`leading-7 [&:not(:first-child)]:mt-6`,e),...t}));tx.displayName=`TypographyP`;var nx=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`blockquote`,{ref:n,className:Y(`mt-6 border-l-2 pl-6 italic`,e),...t}));nx.displayName=`TypographyBlockquote`;var rx=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`ul`,{ref:n,className:Y(`my-6 ml-6 list-disc [&>li]:mt-2`,e),...t}));rx.displayName=`TypographyList`;var ix=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`code`,{ref:n,className:Y(`relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold`,e),...t}));ix.displayName=`TypographyInlineCode`;var ax=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`p`,{ref:n,className:Y(`text-xl text-muted-foreground`,e),...t}));ax.displayName=`TypographyLead`;var ox=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`div`,{ref:n,className:Y(`text-lg font-semibold`,e),...t}));ox.displayName=`TypographyLarge`;var sx=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`small`,{ref:n,className:Y(`text-sm font-medium leading-none`,e),...t}));sx.displayName=`TypographySmall`;var cx=q.forwardRef(({className:e,...t},n)=>(0,J.jsx)(`p`,{ref:n,className:Y(`text-sm text-muted-foreground`,e),...t}));cx.displayName=`TypographyMuted`;var lx=(0,q.forwardRef)(({schema:e,className:t,...n},r)=>{let{"data-obj-id":i,"data-obj-type":a,style:o,...s}=n;return(0,J.jsx)(Dy,{ref:r,orientation:e.orientation,className:t,...s,"data-obj-id":i,"data-obj-type":a,style:o})});K.register(`separator`,lx,{namespace:`ui`,label:`Separator`,inputs:[{name:`orientation`,type:`enum`,enum:[`horizontal`,`vertical`]},{name:`className`,type:`string`}],defaultProps:{orientation:`horizontal`,className:`my-2 sm:my-4`}}),K.register(`image`,({schema:e,className:t,...n})=>{let{"data-obj-id":r,"data-obj-type":i,style:a,...o}=n;return(0,J.jsx)(`img`,{src:e.src,alt:e.alt||``,className:t,...o,"data-obj-id":r,"data-obj-type":i,style:a})},{namespace:`ui`,label:`Image`,icon:`image`,category:`basic`,inputs:[{name:`src`,type:`string`},{name:`alt`,type:`string`},{name:`className`,type:`string`}],defaultProps:{className:`max-w-full h-auto`}});var ux={"a-arrow-down":()=>n(()=>import(`./vendor-icon-a-arrow-down-CSVd88vX.js`).then(e=>e.t),[],import.meta.url),"a-arrow-up":()=>n(()=>import(`./vendor-icon-a-arrow-up-Dzbym1vH.js`).then(e=>e.t),[],import.meta.url),"a-large-small":()=>n(()=>import(`./vendor-icon-a-large-small-C2KLN_9B.js`).then(e=>e.t),[],import.meta.url),accessibility:()=>n(()=>import(`./vendor-icon-accessibility-DXrCv__v.js`).then(e=>e.t),[],import.meta.url),activity:()=>n(()=>import(`./vendor-icon-activity-CkniytwY.js`).then(e=>e.n),[],import.meta.url),ad:()=>n(()=>import(`./vendor-icon-ad-Bvi6qDbj.js`).then(e=>e.t),[],import.meta.url),"air-vent":()=>n(()=>import(`./vendor-icon-air-vent-D6qCAZVI.js`).then(e=>e.t),[],import.meta.url),airplay:()=>n(()=>import(`./vendor-icon-airplay-By0cjhKN.js`).then(e=>e.t),[],import.meta.url),"alarm-clock-check":()=>n(()=>import(`./vendor-icon-alarm-clock-check-CzJUQjEm.js`).then(e=>e.t),[],import.meta.url),"alarm-check":()=>n(()=>import(`./vendor-icon-alarm-clock-check-CzJUQjEm.js`).then(e=>e.t),[],import.meta.url),"alarm-clock-minus":()=>n(()=>import(`./vendor-icon-alarm-clock-minus-BDj_BoGA.js`).then(e=>e.t),[],import.meta.url),"alarm-minus":()=>n(()=>import(`./vendor-icon-alarm-clock-minus-BDj_BoGA.js`).then(e=>e.t),[],import.meta.url),"alarm-clock-off":()=>n(()=>import(`./vendor-icon-alarm-clock-off-CxC1dtED.js`).then(e=>e.t),[],import.meta.url),"alarm-clock-plus":()=>n(()=>import(`./vendor-icon-alarm-clock-plus-BxAHFuJR.js`).then(e=>e.t),[],import.meta.url),"alarm-plus":()=>n(()=>import(`./vendor-icon-alarm-clock-plus-BxAHFuJR.js`).then(e=>e.t),[],import.meta.url),"alarm-clock":()=>n(()=>import(`./vendor-icon-alarm-clock-Cydb_k9Y.js`).then(e=>e.n),[],import.meta.url),"alarm-smoke":()=>n(()=>import(`./vendor-icon-alarm-smoke-BfJvBlsE.js`).then(e=>e.t),[],import.meta.url),album:()=>n(()=>import(`./vendor-icon-album-BXPhTYjc.js`).then(e=>e.t),[],import.meta.url),"align-center-horizontal":()=>n(()=>import(`./vendor-icon-align-center-horizontal-DQwgZog7.js`).then(e=>e.t),[],import.meta.url),"align-center-vertical":()=>n(()=>import(`./vendor-icon-align-center-vertical-CwkZEzKG.js`).then(e=>e.t),[],import.meta.url),"align-end-horizontal":()=>n(()=>import(`./vendor-icon-align-end-horizontal-B7b_V5hp.js`).then(e=>e.t),[],import.meta.url),"align-end-vertical":()=>n(()=>import(`./vendor-icon-align-end-vertical-D0ZKZaxV.js`).then(e=>e.t),[],import.meta.url),"align-horizontal-distribute-center":()=>n(()=>import(`./vendor-icon-align-horizontal-distribute-center-Ba60FjVw.js`).then(e=>e.t),[],import.meta.url),"align-horizontal-distribute-end":()=>n(()=>import(`./vendor-icon-align-horizontal-distribute-end-CLCfeQDO.js`).then(e=>e.t),[],import.meta.url),"align-horizontal-distribute-start":()=>n(()=>import(`./vendor-icon-align-horizontal-distribute-start-XnHJ3UyS.js`).then(e=>e.t),[],import.meta.url),"align-horizontal-justify-center":()=>n(()=>import(`./vendor-icon-align-horizontal-justify-center-DBF2uXsg.js`).then(e=>e.t),[],import.meta.url),"align-horizontal-justify-end":()=>n(()=>import(`./vendor-icon-align-horizontal-justify-end-D63gjxIp.js`).then(e=>e.t),[],import.meta.url),"align-horizontal-justify-start":()=>n(()=>import(`./vendor-icon-align-horizontal-justify-start-fljl0z-V.js`).then(e=>e.t),[],import.meta.url),"align-horizontal-space-around":()=>n(()=>import(`./vendor-icon-align-horizontal-space-around-D_1F8nNH.js`).then(e=>e.t),[],import.meta.url),"align-horizontal-space-between":()=>n(()=>import(`./vendor-icon-align-horizontal-space-between-C1w6qL3i.js`).then(e=>e.t),[],import.meta.url),"align-start-horizontal":()=>n(()=>import(`./vendor-icon-align-start-horizontal-C8zb_3rD.js`).then(e=>e.t),[],import.meta.url),"align-start-vertical":()=>n(()=>import(`./vendor-icon-align-start-vertical-Dm1vNAd7.js`).then(e=>e.t),[],import.meta.url),"align-vertical-distribute-center":()=>n(()=>import(`./vendor-icon-align-vertical-distribute-center-DniaaJtA.js`).then(e=>e.t),[],import.meta.url),"align-vertical-distribute-end":()=>n(()=>import(`./vendor-icon-align-vertical-distribute-end-C23f5f0d.js`).then(e=>e.t),[],import.meta.url),"align-vertical-distribute-start":()=>n(()=>import(`./vendor-icon-align-vertical-distribute-start-7ocILOY8.js`).then(e=>e.t),[],import.meta.url),"align-vertical-justify-center":()=>n(()=>import(`./vendor-icon-align-vertical-justify-center-BYI7e6dF.js`).then(e=>e.t),[],import.meta.url),"align-vertical-justify-end":()=>n(()=>import(`./vendor-icon-align-vertical-justify-end-DCoO6_N4.js`).then(e=>e.t),[],import.meta.url),"align-vertical-justify-start":()=>n(()=>import(`./vendor-icon-align-vertical-justify-start-D_iPWbb2.js`).then(e=>e.t),[],import.meta.url),"align-vertical-space-around":()=>n(()=>import(`./vendor-icon-align-vertical-space-around-Cf1Vo11H.js`).then(e=>e.t),[],import.meta.url),"align-vertical-space-between":()=>n(()=>import(`./vendor-icon-align-vertical-space-between-Dq2fb4rH.js`).then(e=>e.t),[],import.meta.url),ambulance:()=>n(()=>import(`./vendor-icon-ambulance-PDFR2CDr.js`).then(e=>e.t),[],import.meta.url),ampersand:()=>n(()=>import(`./vendor-icon-ampersand-CCNouEpk.js`).then(e=>e.t),[],import.meta.url),ampersands:()=>n(()=>import(`./vendor-icon-ampersands-p-2_y7hT.js`).then(e=>e.t),[],import.meta.url),amphora:()=>n(()=>import(`./vendor-icon-amphora-CTOtmIrZ.js`).then(e=>e.t),[],import.meta.url),anchor:()=>n(()=>import(`./vendor-icon-anchor-C-y-QH5n.js`).then(e=>e.t),[],import.meta.url),angle:()=>n(()=>import(`./vendor-icon-angle-Rkfr6vr0.js`).then(e=>e.t),[],import.meta.url),antenna:()=>n(()=>import(`./vendor-icon-antenna-BGZM6ojw.js`).then(e=>e.t),[],import.meta.url),anvil:()=>n(()=>import(`./vendor-icon-anvil-BkMsGSmP.js`).then(e=>e.t),[],import.meta.url),aperture:()=>n(()=>import(`./vendor-icon-aperture-nsSOIDj_.js`).then(e=>e.t),[],import.meta.url),"app-window-mac":()=>n(()=>import(`./vendor-icon-app-window-mac-DQIqBtnf.js`).then(e=>e.t),[],import.meta.url),"app-window":()=>n(()=>import(`./vendor-icon-app-window-Ba5lrpTr.js`).then(e=>e.n),[],import.meta.url),apple:()=>n(()=>import(`./vendor-icon-apple-zdQ-XHOP.js`).then(e=>e.t),[],import.meta.url),"archive-restore":()=>n(()=>import(`./vendor-icon-archive-restore-C738ASyc.js`).then(e=>e.t),[],import.meta.url),"archive-x":()=>n(()=>import(`./vendor-icon-archive-x-D7sp7o8x.js`).then(e=>e.t),[],import.meta.url),archive:()=>n(()=>import(`./vendor-icon-archive-C7XW5GSw.js`).then(e=>e.n),[],import.meta.url),armchair:()=>n(()=>import(`./vendor-icon-armchair-DPPf96un.js`).then(e=>e.t),[],import.meta.url),"arrow-big-down-dash":()=>n(()=>import(`./vendor-icon-arrow-big-down-dash-DKHOJtAz.js`).then(e=>e.t),[],import.meta.url),"arrow-big-down":()=>n(()=>import(`./vendor-icon-arrow-big-down-D-HkW5z9.js`).then(e=>e.t),[],import.meta.url),"arrow-big-left-dash":()=>n(()=>import(`./vendor-icon-arrow-big-left-dash-BPu_eVf2.js`).then(e=>e.t),[],import.meta.url),"arrow-big-left":()=>n(()=>import(`./vendor-icon-arrow-big-left-pM2a_zOn.js`).then(e=>e.t),[],import.meta.url),"arrow-big-right-dash":()=>n(()=>import(`./vendor-icon-arrow-big-right-dash-B0aika3p.js`).then(e=>e.t),[],import.meta.url),"arrow-big-right":()=>n(()=>import(`./vendor-icon-arrow-big-right-CnAlbd8e.js`).then(e=>e.t),[],import.meta.url),"arrow-big-up-dash":()=>n(()=>import(`./vendor-icon-arrow-big-up-dash-DQDYtotV.js`).then(e=>e.t),[],import.meta.url),"arrow-big-up":()=>n(()=>import(`./vendor-icon-arrow-big-up-DPiRaM2R.js`).then(e=>e.t),[],import.meta.url),"arrow-down-0-1":()=>n(()=>import(`./vendor-icon-arrow-down-0-1-uwLpfQGq.js`).then(e=>e.t),[],import.meta.url),"arrow-down-01":()=>n(()=>import(`./vendor-icon-arrow-down-0-1-uwLpfQGq.js`).then(e=>e.t),[],import.meta.url),"arrow-down-1-0":()=>n(()=>import(`./vendor-icon-arrow-down-1-0-BN3-DxvY.js`).then(e=>e.t),[],import.meta.url),"arrow-down-10":()=>n(()=>import(`./vendor-icon-arrow-down-1-0-BN3-DxvY.js`).then(e=>e.t),[],import.meta.url),"arrow-down-a-z":()=>n(()=>import(`./vendor-icon-arrow-down-a-z-BDjkJGVV.js`).then(e=>e.t),[],import.meta.url),"arrow-down-az":()=>n(()=>import(`./vendor-icon-arrow-down-a-z-BDjkJGVV.js`).then(e=>e.t),[],import.meta.url),"arrow-down-from-line":()=>n(()=>import(`./vendor-icon-arrow-down-from-line-BtOsORbf.js`).then(e=>e.t),[],import.meta.url),"arrow-down-left":()=>n(()=>import(`./vendor-icon-arrow-down-left-CldmUOxl.js`).then(e=>e.t),[],import.meta.url),"arrow-down-narrow-wide":()=>n(()=>import(`./vendor-icon-arrow-down-narrow-wide-XI62QPkg.js`).then(e=>e.t),[],import.meta.url),"arrow-down-right":()=>n(()=>import(`./vendor-icon-arrow-down-right-DSfl6U0_.js`).then(e=>e.t),[],import.meta.url),"arrow-down-to-dot":()=>n(()=>import(`./vendor-icon-arrow-down-to-dot-Da17DhdL.js`).then(e=>e.t),[],import.meta.url),"arrow-down-to-line":()=>n(()=>import(`./vendor-icon-arrow-down-to-line-Bgn91X6g.js`).then(e=>e.t),[],import.meta.url),"arrow-down-up":()=>n(()=>import(`./vendor-icon-arrow-down-up-Chs6FwME.js`).then(e=>e.t),[],import.meta.url),"arrow-down-wide-narrow":()=>n(()=>import(`./vendor-icon-arrow-down-wide-narrow-C8ldNCfE.js`).then(e=>e.t),[],import.meta.url),"sort-desc":()=>n(()=>import(`./vendor-icon-arrow-down-wide-narrow-C8ldNCfE.js`).then(e=>e.t),[],import.meta.url),"arrow-down-z-a":()=>n(()=>import(`./vendor-icon-arrow-down-z-a-BV_ez9QK.js`).then(e=>e.t),[],import.meta.url),"arrow-down-za":()=>n(()=>import(`./vendor-icon-arrow-down-z-a-BV_ez9QK.js`).then(e=>e.t),[],import.meta.url),"arrow-down":()=>n(()=>import(`./vendor-icon-arrow-down-Bo-fuW7k.js`).then(e=>e.n),[],import.meta.url),"arrow-left-from-line":()=>n(()=>import(`./vendor-icon-arrow-left-from-line-CAshzUIs.js`).then(e=>e.t),[],import.meta.url),"arrow-left-right":()=>n(()=>import(`./vendor-icon-arrow-left-right-BE_Z6rCp.js`).then(e=>e.t),[],import.meta.url),"arrow-left-to-line":()=>n(()=>import(`./vendor-icon-arrow-left-to-line-B1gqegIi.js`).then(e=>e.t),[],import.meta.url),"arrow-left":()=>n(()=>import(`./vendor-icon-arrow-left-DmGEbpkA.js`).then(e=>e.n),[],import.meta.url),"arrow-right-from-line":()=>n(()=>import(`./vendor-icon-arrow-right-from-line-COmP-lJ1.js`).then(e=>e.t),[],import.meta.url),"arrow-right-left":()=>n(()=>import(`./vendor-icon-arrow-right-left-BH_jvt4r.js`).then(e=>e.n),[],import.meta.url),"arrow-right-to-line":()=>n(()=>import(`./vendor-icon-arrow-right-to-line-D6Z-EPre.js`).then(e=>e.t),[],import.meta.url),"arrow-right":()=>n(()=>import(`./vendor-icon-arrow-right-RqsZZ458.js`).then(e=>e.n),[],import.meta.url),"arrow-up-0-1":()=>n(()=>import(`./vendor-icon-arrow-up-0-1-D-toUoPO.js`).then(e=>e.t),[],import.meta.url),"arrow-up-01":()=>n(()=>import(`./vendor-icon-arrow-up-0-1-D-toUoPO.js`).then(e=>e.t),[],import.meta.url),"arrow-up-1-0":()=>n(()=>import(`./vendor-icon-arrow-up-1-0-BJNUE0VQ.js`).then(e=>e.t),[],import.meta.url),"arrow-up-10":()=>n(()=>import(`./vendor-icon-arrow-up-1-0-BJNUE0VQ.js`).then(e=>e.t),[],import.meta.url),"arrow-up-a-z":()=>n(()=>import(`./vendor-icon-arrow-up-a-z-BPudqRmf.js`).then(e=>e.t),[],import.meta.url),"arrow-up-az":()=>n(()=>import(`./vendor-icon-arrow-up-a-z-BPudqRmf.js`).then(e=>e.t),[],import.meta.url),"arrow-up-down":()=>n(()=>import(`./vendor-icon-arrow-up-down-DdDqplfV.js`).then(e=>e.n),[],import.meta.url),"arrow-up-from-dot":()=>n(()=>import(`./vendor-icon-arrow-up-from-dot-CQVi9pRx.js`).then(e=>e.t),[],import.meta.url),"arrow-up-from-line":()=>n(()=>import(`./vendor-icon-arrow-up-from-line-CeClpT0G.js`).then(e=>e.t),[],import.meta.url),"arrow-up-left":()=>n(()=>import(`./vendor-icon-arrow-up-left-kQAE3HV6.js`).then(e=>e.t),[],import.meta.url),"arrow-up-narrow-wide":()=>n(()=>import(`./vendor-icon-arrow-up-narrow-wide-zAJYzYQl.js`).then(e=>e.t),[],import.meta.url),"sort-asc":()=>n(()=>import(`./vendor-icon-arrow-up-narrow-wide-zAJYzYQl.js`).then(e=>e.t),[],import.meta.url),"arrow-up-right":()=>n(()=>import(`./vendor-icon-arrow-up-right-BQsRTUUI.js`).then(e=>e.n),[],import.meta.url),"arrow-up-to-line":()=>n(()=>import(`./vendor-icon-arrow-up-to-line-BrbUVRP8.js`).then(e=>e.t),[],import.meta.url),"arrow-up-wide-narrow":()=>n(()=>import(`./vendor-icon-arrow-up-wide-narrow-BWTeiPB1.js`).then(e=>e.t),[],import.meta.url),"arrow-up-z-a":()=>n(()=>import(`./vendor-icon-arrow-up-z-a-CuRvCzhi.js`).then(e=>e.t),[],import.meta.url),"arrow-up-za":()=>n(()=>import(`./vendor-icon-arrow-up-z-a-CuRvCzhi.js`).then(e=>e.t),[],import.meta.url),"arrow-up":()=>n(()=>import(`./vendor-icon-arrow-up-CzdjEQwQ.js`).then(e=>e.n),[],import.meta.url),"arrows-up-from-line":()=>n(()=>import(`./vendor-icon-arrows-up-from-line-I9OX-RP_.js`).then(e=>e.t),[],import.meta.url),asterisk:()=>n(()=>import(`./vendor-icon-asterisk-Dgld450r.js`).then(e=>e.n),[],import.meta.url),astroid:()=>n(()=>import(`./vendor-icon-astroid-kbU9IdiV.js`).then(e=>e.t),[],import.meta.url),"at-sign":()=>n(()=>import(`./vendor-icon-at-sign-B71HJHhC.js`).then(e=>e.n),[],import.meta.url),atom:()=>n(()=>import(`./vendor-icon-atom-Bv6LEahj.js`).then(e=>e.n),[],import.meta.url),"audio-lines-off":()=>n(()=>import(`./vendor-icon-audio-lines-off-CtznrxFf.js`).then(e=>e.t),[],import.meta.url),"audio-lines-x":()=>n(()=>import(`./vendor-icon-audio-lines-x-H2WXv-ih.js`).then(e=>e.t),[],import.meta.url),"audio-lines":()=>n(()=>import(`./vendor-icon-audio-lines-DBz-Kk-d.js`).then(e=>e.t),[],import.meta.url),"audio-waveform":()=>n(()=>import(`./vendor-icon-audio-waveform-B-pc4d3q.js`).then(e=>e.t),[],import.meta.url),award:()=>n(()=>import(`./vendor-icon-award-BaaHWMkt.js`).then(e=>e.t),[],import.meta.url),axe:()=>n(()=>import(`./vendor-icon-axe-D7y3hnv4.js`).then(e=>e.t),[],import.meta.url),"axis-3d":()=>n(()=>import(`./vendor-icon-axis-3d-D6jHyKck.js`).then(e=>e.t),[],import.meta.url),"axis-3-d":()=>n(()=>import(`./vendor-icon-axis-3d-D6jHyKck.js`).then(e=>e.t),[],import.meta.url),baby:()=>n(()=>import(`./vendor-icon-baby-QyGFK5w8.js`).then(e=>e.t),[],import.meta.url),backpack:()=>n(()=>import(`./vendor-icon-backpack-DHbarGXB.js`).then(e=>e.t),[],import.meta.url),"badge-alert":()=>n(()=>import(`./vendor-icon-badge-alert-C-Q_Wj9J.js`).then(e=>e.t),[],import.meta.url),"badge-cent":()=>n(()=>import(`./vendor-icon-badge-cent-BSl4DEYH.js`).then(e=>e.t),[],import.meta.url),"badge-check":()=>n(()=>import(`./vendor-icon-badge-check-SLEl_RQq.js`).then(e=>e.n),[],import.meta.url),verified:()=>n(()=>import(`./vendor-icon-badge-check-SLEl_RQq.js`).then(e=>e.n),[],import.meta.url),"badge-dollar-sign":()=>n(()=>import(`./vendor-icon-badge-dollar-sign-BEZ6bfso.js`).then(e=>e.t),[],import.meta.url),"badge-euro":()=>n(()=>import(`./vendor-icon-badge-euro-Ci6yPneg.js`).then(e=>e.t),[],import.meta.url),"badge-indian-rupee":()=>n(()=>import(`./vendor-icon-badge-indian-rupee-J3L91CrF.js`).then(e=>e.t),[],import.meta.url),"badge-info":()=>n(()=>import(`./vendor-icon-badge-info-Dv3EPQw0.js`).then(e=>e.t),[],import.meta.url),"badge-japanese-yen":()=>n(()=>import(`./vendor-icon-badge-japanese-yen-3uGr9BF_.js`).then(e=>e.t),[],import.meta.url),"badge-minus":()=>n(()=>import(`./vendor-icon-badge-minus-B1hiFi9N.js`).then(e=>e.t),[],import.meta.url),"badge-percent":()=>n(()=>import(`./vendor-icon-badge-percent--o_SY_uo.js`).then(e=>e.t),[],import.meta.url),"badge-plus":()=>n(()=>import(`./vendor-icon-badge-plus-CDLeijpk.js`).then(e=>e.t),[],import.meta.url),"badge-pound-sterling":()=>n(()=>import(`./vendor-icon-badge-pound-sterling-0Oop2EgJ.js`).then(e=>e.t),[],import.meta.url),"badge-question-mark":()=>n(()=>import(`./vendor-icon-badge-question-mark-BjauG_w0.js`).then(e=>e.t),[],import.meta.url),"badge-help":()=>n(()=>import(`./vendor-icon-badge-question-mark-BjauG_w0.js`).then(e=>e.t),[],import.meta.url),"badge-russian-ruble":()=>n(()=>import(`./vendor-icon-badge-russian-ruble-DDhiVLjf.js`).then(e=>e.t),[],import.meta.url),"badge-swiss-franc":()=>n(()=>import(`./vendor-icon-badge-swiss-franc-BJwLyf6C.js`).then(e=>e.t),[],import.meta.url),"badge-turkish-lira":()=>n(()=>import(`./vendor-icon-badge-turkish-lira-DaU7Kic3.js`).then(e=>e.t),[],import.meta.url),"badge-x":()=>n(()=>import(`./vendor-icon-badge-x-C2_jz6_4.js`).then(e=>e.t),[],import.meta.url),badge:()=>n(()=>import(`./vendor-icon-badge-Cro5BcRV.js`).then(e=>e.t),[],import.meta.url),"baggage-claim":()=>n(()=>import(`./vendor-icon-baggage-claim-G2bv6RGF.js`).then(e=>e.t),[],import.meta.url),balloon:()=>n(()=>import(`./vendor-icon-balloon-DKtObZVG.js`).then(e=>e.t),[],import.meta.url),ban:()=>n(()=>import(`./vendor-icon-ban-BptIEC14.js`).then(e=>e.n),[],import.meta.url),banana:()=>n(()=>import(`./vendor-icon-banana-CC9tuIXu.js`).then(e=>e.t),[],import.meta.url),bandage:()=>n(()=>import(`./vendor-icon-bandage-BHjfH_RC.js`).then(e=>e.t),[],import.meta.url),"banknote-arrow-down":()=>n(()=>import(`./vendor-icon-banknote-arrow-down-BMAcW800.js`).then(e=>e.t),[],import.meta.url),"banknote-arrow-up":()=>n(()=>import(`./vendor-icon-banknote-arrow-up-HI3Jmux2.js`).then(e=>e.t),[],import.meta.url),"banknote-check":()=>n(()=>import(`./vendor-icon-banknote-check-BQA8T8c3.js`).then(e=>e.t),[],import.meta.url),"banknote-x":()=>n(()=>import(`./vendor-icon-banknote-x-D0u-axaP.js`).then(e=>e.t),[],import.meta.url),banknote:()=>n(()=>import(`./vendor-icon-banknote-CsykSAMM.js`).then(e=>e.t),[],import.meta.url),barcode:()=>n(()=>import(`./vendor-icon-barcode-CuOwThA_.js`).then(e=>e.t),[],import.meta.url),barrel:()=>n(()=>import(`./vendor-icon-barrel-Bda7dV26.js`).then(e=>e.t),[],import.meta.url),baseline:()=>n(()=>import(`./vendor-icon-baseline-y40zI06C.js`).then(e=>e.t),[],import.meta.url),bath:()=>n(()=>import(`./vendor-icon-bath-CdqaiL8l.js`).then(e=>e.t),[],import.meta.url),"battery-charging":()=>n(()=>import(`./vendor-icon-battery-charging-DjUfnz4N.js`).then(e=>e.t),[],import.meta.url),"battery-full":()=>n(()=>import(`./vendor-icon-battery-full-036_Zbw5.js`).then(e=>e.t),[],import.meta.url),"battery-low":()=>n(()=>import(`./vendor-icon-battery-low-BF_Q_e-W.js`).then(e=>e.t),[],import.meta.url),"battery-medium":()=>n(()=>import(`./vendor-icon-battery-medium-pRYiWzMo.js`).then(e=>e.t),[],import.meta.url),"battery-plus":()=>n(()=>import(`./vendor-icon-battery-plus-ChBKYf8k.js`).then(e=>e.t),[],import.meta.url),"battery-warning":()=>n(()=>import(`./vendor-icon-battery-warning-BDGO1Yqy.js`).then(e=>e.t),[],import.meta.url),battery:()=>n(()=>import(`./vendor-icon-battery-BJwCobyk.js`).then(e=>e.t),[],import.meta.url),beaker:()=>n(()=>import(`./vendor-icon-beaker-D25F8k-4.js`).then(e=>e.t),[],import.meta.url),"bean-off":()=>n(()=>import(`./vendor-icon-bean-off-DxN0WJm0.js`).then(e=>e.t),[],import.meta.url),bean:()=>n(()=>import(`./vendor-icon-bean-DuTu_R-z.js`).then(e=>e.t),[],import.meta.url),"bed-double":()=>n(()=>import(`./vendor-icon-bed-double-Bsz1VTxy.js`).then(e=>e.t),[],import.meta.url),"bed-single":()=>n(()=>import(`./vendor-icon-bed-single-Rkjxmuc1.js`).then(e=>e.t),[],import.meta.url),bed:()=>n(()=>import(`./vendor-icon-bed-QmEeEJQW.js`).then(e=>e.t),[],import.meta.url),"beef-off":()=>n(()=>import(`./vendor-icon-beef-off-CQXbz845.js`).then(e=>e.t),[],import.meta.url),beef:()=>n(()=>import(`./vendor-icon-beef-BFq4vah2.js`).then(e=>e.t),[],import.meta.url),"beer-off":()=>n(()=>import(`./vendor-icon-beer-off-Bu1IQ0e6.js`).then(e=>e.t),[],import.meta.url),beer:()=>n(()=>import(`./vendor-icon-beer-DVuo37NI.js`).then(e=>e.t),[],import.meta.url),"bell-check":()=>n(()=>import(`./vendor-icon-bell-check-BCmUcW1B.js`).then(e=>e.t),[],import.meta.url),"bell-dot":()=>n(()=>import(`./vendor-icon-bell-dot-DTmWUM4L.js`).then(e=>e.t),[],import.meta.url),"bell-electric":()=>n(()=>import(`./vendor-icon-bell-electric-AQBrrADs.js`).then(e=>e.t),[],import.meta.url),"bell-minus":()=>n(()=>import(`./vendor-icon-bell-minus-CNGJDnyj.js`).then(e=>e.t),[],import.meta.url),"bell-off":()=>n(()=>import(`./vendor-icon-bell-off-BnernHBj.js`).then(e=>e.n),[],import.meta.url),"bell-plus":()=>n(()=>import(`./vendor-icon-bell-plus-QtSDdIK5.js`).then(e=>e.t),[],import.meta.url),"bell-ring":()=>n(()=>import(`./vendor-icon-bell-ring-LBHChJlF.js`).then(e=>e.t),[],import.meta.url),bell:()=>n(()=>import(`./vendor-icon-bell-6t8He8Wt.js`).then(e=>e.n),[],import.meta.url),"between-horizontal-end":()=>n(()=>import(`./vendor-icon-between-horizontal-end-C46KRk7b.js`).then(e=>e.t),[],import.meta.url),"between-horizonal-end":()=>n(()=>import(`./vendor-icon-between-horizontal-end-C46KRk7b.js`).then(e=>e.t),[],import.meta.url),"between-horizontal-start":()=>n(()=>import(`./vendor-icon-between-horizontal-start-CD0UYbDc.js`).then(e=>e.t),[],import.meta.url),"between-horizonal-start":()=>n(()=>import(`./vendor-icon-between-horizontal-start-CD0UYbDc.js`).then(e=>e.t),[],import.meta.url),"between-vertical-end":()=>n(()=>import(`./vendor-icon-between-vertical-end-DwkpWlec.js`).then(e=>e.t),[],import.meta.url),"between-vertical-start":()=>n(()=>import(`./vendor-icon-between-vertical-start-D3PGeCko.js`).then(e=>e.t),[],import.meta.url),"biceps-flexed":()=>n(()=>import(`./vendor-icon-biceps-flexed-B8-COhUj.js`).then(e=>e.t),[],import.meta.url),bike:()=>n(()=>import(`./vendor-icon-bike-06CgSklf.js`).then(e=>e.t),[],import.meta.url),binary:()=>n(()=>import(`./vendor-icon-binary-tuvA2-Dc.js`).then(e=>e.t),[],import.meta.url),binoculars:()=>n(()=>import(`./vendor-icon-binoculars-ss__0nkp.js`).then(e=>e.t),[],import.meta.url),biohazard:()=>n(()=>import(`./vendor-icon-biohazard-CtBuFyuH.js`).then(e=>e.t),[],import.meta.url),bird:()=>n(()=>import(`./vendor-icon-bird-9UiqSPbG.js`).then(e=>e.t),[],import.meta.url),birdhouse:()=>n(()=>import(`./vendor-icon-birdhouse-C2kEPqfy.js`).then(e=>e.t),[],import.meta.url),bitcoin:()=>n(()=>import(`./vendor-icon-bitcoin-DYJJXzOh.js`).then(e=>e.t),[],import.meta.url),blend:()=>n(()=>import(`./vendor-icon-blend-CoAzWdVG.js`).then(e=>e.t),[],import.meta.url),blender:()=>n(()=>import(`./vendor-icon-blender-DBEryCkO.js`).then(e=>e.t),[],import.meta.url),blinds:()=>n(()=>import(`./vendor-icon-blinds-Czbu-HpR.js`).then(e=>e.t),[],import.meta.url),blocks:()=>n(()=>import(`./vendor-icon-blocks-DDFFB7pl.js`).then(e=>e.t),[],import.meta.url),"bluetooth-connected":()=>n(()=>import(`./vendor-icon-bluetooth-connected-XEgpgnaw.js`).then(e=>e.t),[],import.meta.url),"bluetooth-off":()=>n(()=>import(`./vendor-icon-bluetooth-off-LoBmADbk.js`).then(e=>e.t),[],import.meta.url),"bluetooth-searching":()=>n(()=>import(`./vendor-icon-bluetooth-searching-BzSmg39N.js`).then(e=>e.t),[],import.meta.url),bluetooth:()=>n(()=>import(`./vendor-icon-bluetooth-D1C9AxKB.js`).then(e=>e.t),[],import.meta.url),bold:()=>n(()=>import(`./vendor-icon-bold-C_J_IVlW.js`).then(e=>e.n),[],import.meta.url),bolt:()=>n(()=>import(`./vendor-icon-bolt-BW--mzh1.js`).then(e=>e.t),[],import.meta.url),bomb:()=>n(()=>import(`./vendor-icon-bomb-CjcDEoal.js`).then(e=>e.t),[],import.meta.url),"bone-fracture":()=>n(()=>import(`./vendor-icon-bone-fracture-DzESZaJV.js`).then(e=>e.t),[],import.meta.url),bone:()=>n(()=>import(`./vendor-icon-bone-B5F-HwTH.js`).then(e=>e.t),[],import.meta.url),"book-a":()=>n(()=>import(`./vendor-icon-book-a-DiAf8JxP.js`).then(e=>e.t),[],import.meta.url),"book-alert":()=>n(()=>import(`./vendor-icon-book-alert-CpGaFXsa.js`).then(e=>e.t),[],import.meta.url),"book-audio":()=>n(()=>import(`./vendor-icon-book-audio-BqxyHkWA.js`).then(e=>e.t),[],import.meta.url),"book-check":()=>n(()=>import(`./vendor-icon-book-check-ChiLxFBp.js`).then(e=>e.t),[],import.meta.url),"book-copy":()=>n(()=>import(`./vendor-icon-book-copy-D_ASUAtd.js`).then(e=>e.t),[],import.meta.url),"book-dashed":()=>n(()=>import(`./vendor-icon-book-dashed-D0v0pLdy.js`).then(e=>e.t),[],import.meta.url),"book-template":()=>n(()=>import(`./vendor-icon-book-dashed-D0v0pLdy.js`).then(e=>e.t),[],import.meta.url),"book-down":()=>n(()=>import(`./vendor-icon-book-down-p0Fv89YA.js`).then(e=>e.t),[],import.meta.url),"book-headphones":()=>n(()=>import(`./vendor-icon-book-headphones-DnzT6_cu.js`).then(e=>e.t),[],import.meta.url),"book-heart":()=>n(()=>import(`./vendor-icon-book-heart-BsqQ1V1D.js`).then(e=>e.t),[],import.meta.url),"book-image":()=>n(()=>import(`./vendor-icon-book-image-DMatMJY5.js`).then(e=>e.t),[],import.meta.url),"book-key":()=>n(()=>import(`./vendor-icon-book-key-CT1PIzVh.js`).then(e=>e.t),[],import.meta.url),"book-lock":()=>n(()=>import(`./vendor-icon-book-lock-D3Q3Xbe3.js`).then(e=>e.t),[],import.meta.url),"book-marked":()=>n(()=>import(`./vendor-icon-book-marked-BNQoIJ5i.js`).then(e=>e.t),[],import.meta.url),"book-minus":()=>n(()=>import(`./vendor-icon-book-minus-B3CG5DkP.js`).then(e=>e.t),[],import.meta.url),"book-open-check":()=>n(()=>import(`./vendor-icon-book-open-check-CoTaJ4ok.js`).then(e=>e.t),[],import.meta.url),"book-open-text":()=>n(()=>import(`./vendor-icon-book-open-text-yu2Qa-1R.js`).then(e=>e.t),[],import.meta.url),"book-open":()=>n(()=>import(`./vendor-icon-book-open-DKPXYwQK.js`).then(e=>e.n),[],import.meta.url),"book-plus":()=>n(()=>import(`./vendor-icon-book-plus-DXT6kg70.js`).then(e=>e.t),[],import.meta.url),"book-search":()=>n(()=>import(`./vendor-icon-book-search-DfnEtOIE.js`).then(e=>e.t),[],import.meta.url),"book-text":()=>n(()=>import(`./vendor-icon-book-text-D1py1RmB.js`).then(e=>e.t),[],import.meta.url),"book-type":()=>n(()=>import(`./vendor-icon-book-type-D7_m9oiL.js`).then(e=>e.t),[],import.meta.url),"book-up-2":()=>n(()=>import(`./vendor-icon-book-up-2-CucaCe7u.js`).then(e=>e.t),[],import.meta.url),"book-up":()=>n(()=>import(`./vendor-icon-book-up-BV7a7ngI.js`).then(e=>e.t),[],import.meta.url),"book-user":()=>n(()=>import(`./vendor-icon-book-user-DoxmdFc4.js`).then(e=>e.t),[],import.meta.url),"book-x":()=>n(()=>import(`./vendor-icon-book-x-7V3lU49G.js`).then(e=>e.t),[],import.meta.url),book:()=>n(()=>import(`./vendor-icon-book-G3BEklPT.js`).then(e=>e.n),[],import.meta.url),"bookmark-check":()=>n(()=>import(`./vendor-icon-bookmark-check-n9vN44sa.js`).then(e=>e.t),[],import.meta.url),"bookmark-minus":()=>n(()=>import(`./vendor-icon-bookmark-minus-CcNE09vn.js`).then(e=>e.t),[],import.meta.url),"bookmark-off":()=>n(()=>import(`./vendor-icon-bookmark-off-BiLNUcV6.js`).then(e=>e.t),[],import.meta.url),"bookmark-plus":()=>n(()=>import(`./vendor-icon-bookmark-plus-CLBY6oDV.js`).then(e=>e.t),[],import.meta.url),"bookmark-x":()=>n(()=>import(`./vendor-icon-bookmark-x-DmSzlxgy.js`).then(e=>e.t),[],import.meta.url),bookmark:()=>n(()=>import(`./vendor-icon-bookmark-9tzlP1OZ.js`).then(e=>e.t),[],import.meta.url),"boom-box":()=>n(()=>import(`./vendor-icon-boom-box-DJU8sNXh.js`).then(e=>e.t),[],import.meta.url),"bot-message-square":()=>n(()=>import(`./vendor-icon-bot-message-square-BTTznj-l.js`).then(e=>e.t),[],import.meta.url),"bot-off":()=>n(()=>import(`./vendor-icon-bot-off-BF5xpohy.js`).then(e=>e.t),[],import.meta.url),bot:()=>n(()=>import(`./vendor-icon-bot-B9KkwkON.js`).then(e=>e.n),[],import.meta.url),"bottle-wine":()=>n(()=>import(`./vendor-icon-bottle-wine-CeBRdakJ.js`).then(e=>e.t),[],import.meta.url),"bow-arrow":()=>n(()=>import(`./vendor-icon-bow-arrow-Cu-EExiR.js`).then(e=>e.t),[],import.meta.url),box:()=>n(()=>import(`./vendor-icon-box-YdZpEqfe.js`).then(e=>e.n),[],import.meta.url),boxes:()=>n(()=>import(`./vendor-icon-boxes-D-Ov3dJw.js`).then(e=>e.n),[],import.meta.url),braces:()=>n(()=>import(`./vendor-icon-braces-DpucUCEz.js`).then(e=>e.n),[],import.meta.url),"curly-braces":()=>n(()=>import(`./vendor-icon-braces-DpucUCEz.js`).then(e=>e.n),[],import.meta.url),brackets:()=>n(()=>import(`./vendor-icon-brackets-C_PedW23.js`).then(e=>e.t),[],import.meta.url),"brain-circuit":()=>n(()=>import(`./vendor-icon-brain-circuit-t2dx4jHG.js`).then(e=>e.n),[],import.meta.url),"brain-cog":()=>n(()=>import(`./vendor-icon-brain-cog-Bj2y6IBp.js`).then(e=>e.t),[],import.meta.url),brain:()=>n(()=>import(`./vendor-icon-brain-D9Ga2nI6.js`).then(e=>e.n),[],import.meta.url),"brick-wall-fire":()=>n(()=>import(`./vendor-icon-brick-wall-fire-C1l8up5n.js`).then(e=>e.t),[],import.meta.url),"brick-wall-shield":()=>n(()=>import(`./vendor-icon-brick-wall-shield-CeU0YVYf.js`).then(e=>e.t),[],import.meta.url),"brick-wall":()=>n(()=>import(`./vendor-icon-brick-wall-C0SJRgHV.js`).then(e=>e.t),[],import.meta.url),bridge:()=>n(()=>import(`./vendor-icon-bridge-BQ5qDCsY.js`).then(e=>e.t),[],import.meta.url),"briefcase-business":()=>n(()=>import(`./vendor-icon-briefcase-business-C7iMpxPs.js`).then(e=>e.t),[],import.meta.url),"briefcase-conveyor-belt":()=>n(()=>import(`./vendor-icon-briefcase-conveyor-belt-CCJA0ZQY.js`).then(e=>e.t),[],import.meta.url),"briefcase-medical":()=>n(()=>import(`./vendor-icon-briefcase-medical-BxY_Aif8.js`).then(e=>e.t),[],import.meta.url),briefcase:()=>n(()=>import(`./vendor-icon-briefcase-BkRvVC3c.js`).then(e=>e.t),[],import.meta.url),"bring-to-front":()=>n(()=>import(`./vendor-icon-bring-to-front-SRfTDlDn.js`).then(e=>e.t),[],import.meta.url),broccoli:()=>n(()=>import(`./vendor-icon-broccoli-DHKlF3PK.js`).then(e=>e.t),[],import.meta.url),"broom-sparkles":()=>n(()=>import(`./vendor-icon-broom-sparkles-CkMG14HT.js`).then(e=>e.t),[],import.meta.url),broom:()=>n(()=>import(`./vendor-icon-broom-CmtZStJ9.js`).then(e=>e.t),[],import.meta.url),"brush-cleaning":()=>n(()=>import(`./vendor-icon-brush-cleaning-CD9LkJMV.js`).then(e=>e.t),[],import.meta.url),brush:()=>n(()=>import(`./vendor-icon-brush-D-caiKce.js`).then(e=>e.t),[],import.meta.url),bubbles:()=>n(()=>import(`./vendor-icon-bubbles-COmA0gsa.js`).then(e=>e.t),[],import.meta.url),"bug-off":()=>n(()=>import(`./vendor-icon-bug-off-BLjYgwrT.js`).then(e=>e.t),[],import.meta.url),"bug-play":()=>n(()=>import(`./vendor-icon-bug-play-UTr3p70h.js`).then(e=>e.t),[],import.meta.url),bug:()=>n(()=>import(`./vendor-icon-bug-BdoY1KRy.js`).then(e=>e.n),[],import.meta.url),"building-2":()=>n(()=>import(`./vendor-icon-building-2-GgGvlXZt.js`).then(e=>e.n),[],import.meta.url),building:()=>n(()=>import(`./vendor-icon-building-C5WMMTbE.js`).then(e=>e.t),[],import.meta.url),"bus-front":()=>n(()=>import(`./vendor-icon-bus-front-BIBVcQpX.js`).then(e=>e.t),[],import.meta.url),bus:()=>n(()=>import(`./vendor-icon-bus-B6l1w4-y.js`).then(e=>e.t),[],import.meta.url),"cable-car":()=>n(()=>import(`./vendor-icon-cable-car-BmSa7ZPQ.js`).then(e=>e.t),[],import.meta.url),cable:()=>n(()=>import(`./vendor-icon-cable-BTsoRl2K.js`).then(e=>e.t),[],import.meta.url),"cake-slice":()=>n(()=>import(`./vendor-icon-cake-slice-DFRfgijj.js`).then(e=>e.t),[],import.meta.url),cake:()=>n(()=>import(`./vendor-icon-cake-CtiWX5vx.js`).then(e=>e.t),[],import.meta.url),calculator:()=>n(()=>import(`./vendor-icon-calculator-C1-liU2H.js`).then(e=>e.n),[],import.meta.url),"calendar-1":()=>n(()=>import(`./vendor-icon-calendar-1-DmPfjXmy.js`).then(e=>e.t),[],import.meta.url),"calendar-arrow-down":()=>n(()=>import(`./vendor-icon-calendar-arrow-down-BOXGSx3j.js`).then(e=>e.t),[],import.meta.url),"calendar-arrow-up":()=>n(()=>import(`./vendor-icon-calendar-arrow-up-DsdilVDc.js`).then(e=>e.t),[],import.meta.url),"calendar-check-2":()=>n(()=>import(`./vendor-icon-calendar-check-2-DiFs1OnK.js`).then(e=>e.t),[],import.meta.url),"calendar-check":()=>n(()=>import(`./vendor-icon-calendar-check-CiHh2RPp.js`).then(e=>e.t),[],import.meta.url),"calendar-clock":()=>n(()=>import(`./vendor-icon-calendar-clock-CgCpvnMA.js`).then(e=>e.t),[],import.meta.url),"calendar-cog":()=>n(()=>import(`./vendor-icon-calendar-cog-C5crTy9l.js`).then(e=>e.t),[],import.meta.url),"calendar-days":()=>n(()=>import(`./vendor-icon-calendar-days-DHD6H2oB.js`).then(e=>e.t),[],import.meta.url),"calendar-fold":()=>n(()=>import(`./vendor-icon-calendar-fold-DirYIddk.js`).then(e=>e.t),[],import.meta.url),"calendar-heart":()=>n(()=>import(`./vendor-icon-calendar-heart-B7cGypLC.js`).then(e=>e.t),[],import.meta.url),"calendar-minus-2":()=>n(()=>import(`./vendor-icon-calendar-minus-2-DqRaqHZb.js`).then(e=>e.t),[],import.meta.url),"calendar-minus":()=>n(()=>import(`./vendor-icon-calendar-minus-DmVGhPlf.js`).then(e=>e.t),[],import.meta.url),"calendar-off":()=>n(()=>import(`./vendor-icon-calendar-off-B2tr6Ggz.js`).then(e=>e.t),[],import.meta.url),"calendar-plus-2":()=>n(()=>import(`./vendor-icon-calendar-plus-2-DFVHgZmr.js`).then(e=>e.t),[],import.meta.url),"calendar-plus":()=>n(()=>import(`./vendor-icon-calendar-plus-RZOJ_Q8G.js`).then(e=>e.t),[],import.meta.url),"calendar-range":()=>n(()=>import(`./vendor-icon-calendar-range-uuodFrO1.js`).then(e=>e.t),[],import.meta.url),"calendar-search":()=>n(()=>import(`./vendor-icon-calendar-search-DmDW-09w.js`).then(e=>e.t),[],import.meta.url),"calendar-sync":()=>n(()=>import(`./vendor-icon-calendar-sync-Ccwp9IC-.js`).then(e=>e.t),[],import.meta.url),"calendar-x-2":()=>n(()=>import(`./vendor-icon-calendar-x-2-BMiAZtDu.js`).then(e=>e.t),[],import.meta.url),"calendar-x":()=>n(()=>import(`./vendor-icon-calendar-x-BRs6ZzOy.js`).then(e=>e.t),[],import.meta.url),calendar:()=>n(()=>import(`./vendor-icon-calendar-BsoUBIef.js`).then(e=>e.n),[],import.meta.url),calendars:()=>n(()=>import(`./vendor-icon-calendars-DH3Ae5lV.js`).then(e=>e.t),[],import.meta.url),"camera-off":()=>n(()=>import(`./vendor-icon-camera-off-Dh2d3eZQ.js`).then(e=>e.t),[],import.meta.url),camera:()=>n(()=>import(`./vendor-icon-camera-Cidjovli.js`).then(e=>e.n),[],import.meta.url),"can-soda":()=>n(()=>import(`./vendor-icon-can-soda-DJsJ06zr.js`).then(e=>e.t),[],import.meta.url),can:()=>n(()=>import(`./vendor-icon-can-nWD6n1_s.js`).then(e=>e.t),[],import.meta.url),"candy-cane":()=>n(()=>import(`./vendor-icon-candy-cane-CH8_to4F.js`).then(e=>e.t),[],import.meta.url),"candy-off":()=>n(()=>import(`./vendor-icon-candy-off-BAx8DgYk.js`).then(e=>e.t),[],import.meta.url),candy:()=>n(()=>import(`./vendor-icon-candy-BbiGKwA2.js`).then(e=>e.t),[],import.meta.url),"cannabis-off":()=>n(()=>import(`./vendor-icon-cannabis-off-mofSEkdz.js`).then(e=>e.t),[],import.meta.url),cannabis:()=>n(()=>import(`./vendor-icon-cannabis-BZ5ZqpSr.js`).then(e=>e.t),[],import.meta.url),"captions-off":()=>n(()=>import(`./vendor-icon-captions-off-DtVtfm_F.js`).then(e=>e.t),[],import.meta.url),captions:()=>n(()=>import(`./vendor-icon-captions-B0EQdnsE.js`).then(e=>e.t),[],import.meta.url),subtitles:()=>n(()=>import(`./vendor-icon-captions-B0EQdnsE.js`).then(e=>e.t),[],import.meta.url),"car-battery":()=>n(()=>import(`./vendor-icon-car-battery-CZOp79jy.js`).then(e=>e.t),[],import.meta.url),"car-front":()=>n(()=>import(`./vendor-icon-car-front-D_LfNBLs.js`).then(e=>e.t),[],import.meta.url),"car-taxi-front":()=>n(()=>import(`./vendor-icon-car-taxi-front-DIKgXQLr.js`).then(e=>e.t),[],import.meta.url),car:()=>n(()=>import(`./vendor-icon-car-CDr9m6-k.js`).then(e=>e.t),[],import.meta.url),caravan:()=>n(()=>import(`./vendor-icon-caravan-CboeFH5W.js`).then(e=>e.t),[],import.meta.url),"card-sim":()=>n(()=>import(`./vendor-icon-card-sim-HWjf94NM.js`).then(e=>e.t),[],import.meta.url),carrot:()=>n(()=>import(`./vendor-icon-carrot-DO6KgJDl.js`).then(e=>e.t),[],import.meta.url),"carton-off":()=>n(()=>import(`./vendor-icon-carton-off-HXcu-33_.js`).then(e=>e.t),[],import.meta.url),carton:()=>n(()=>import(`./vendor-icon-carton-CdXRWH2t.js`).then(e=>e.t),[],import.meta.url),"case-lower":()=>n(()=>import(`./vendor-icon-case-lower-B2PpQMkf.js`).then(e=>e.t),[],import.meta.url),"case-sensitive":()=>n(()=>import(`./vendor-icon-case-sensitive-CUsvI9ZN.js`).then(e=>e.t),[],import.meta.url),"case-upper":()=>n(()=>import(`./vendor-icon-case-upper-CSE6wmNy.js`).then(e=>e.t),[],import.meta.url),"cassette-tape":()=>n(()=>import(`./vendor-icon-cassette-tape-D9QACA8q.js`).then(e=>e.t),[],import.meta.url),cast:()=>n(()=>import(`./vendor-icon-cast-Ye0R_8bZ.js`).then(e=>e.t),[],import.meta.url),castle:()=>n(()=>import(`./vendor-icon-castle-BPNEZWtL.js`).then(e=>e.t),[],import.meta.url),cat:()=>n(()=>import(`./vendor-icon-cat-B-TLuDKQ.js`).then(e=>e.t),[],import.meta.url),"cctv-off":()=>n(()=>import(`./vendor-icon-cctv-off-DVtUy7YT.js`).then(e=>e.t),[],import.meta.url),cctv:()=>n(()=>import(`./vendor-icon-cctv-BBQX97-p.js`).then(e=>e.t),[],import.meta.url),"chart-area":()=>n(()=>import(`./vendor-icon-chart-area-D8lW2P2T.js`).then(e=>e.n),[],import.meta.url),"area-chart":()=>n(()=>import(`./vendor-icon-chart-area-D8lW2P2T.js`).then(e=>e.n),[],import.meta.url),"chart-bar-big":()=>n(()=>import(`./vendor-icon-chart-bar-big-C1BROALJ.js`).then(e=>e.t),[],import.meta.url),"bar-chart-horizontal-big":()=>n(()=>import(`./vendor-icon-chart-bar-big-C1BROALJ.js`).then(e=>e.t),[],import.meta.url),"chart-bar-decreasing":()=>n(()=>import(`./vendor-icon-chart-bar-decreasing-DhBn4VQ3.js`).then(e=>e.t),[],import.meta.url),"chart-bar-increasing":()=>n(()=>import(`./vendor-icon-chart-bar-increasing-XLOGZmL7.js`).then(e=>e.t),[],import.meta.url),"chart-bar-stacked":()=>n(()=>import(`./vendor-icon-chart-bar-stacked-C14j40p5.js`).then(e=>e.t),[],import.meta.url),"chart-bar":()=>n(()=>import(`./vendor-icon-chart-bar-DR-Bn0fN.js`).then(e=>e.t),[],import.meta.url),"bar-chart-horizontal":()=>n(()=>import(`./vendor-icon-chart-bar-DR-Bn0fN.js`).then(e=>e.t),[],import.meta.url),"chart-candlestick":()=>n(()=>import(`./vendor-icon-chart-candlestick-DoRh6pnH.js`).then(e=>e.t),[],import.meta.url),"candlestick-chart":()=>n(()=>import(`./vendor-icon-chart-candlestick-DoRh6pnH.js`).then(e=>e.t),[],import.meta.url),"chart-column-big":()=>n(()=>import(`./vendor-icon-chart-column-big-gci0ytwY.js`).then(e=>e.t),[],import.meta.url),"bar-chart-big":()=>n(()=>import(`./vendor-icon-chart-column-big-gci0ytwY.js`).then(e=>e.t),[],import.meta.url),"chart-column-decreasing":()=>n(()=>import(`./vendor-icon-chart-column-decreasing-Bdvnj1ZU.js`).then(e=>e.t),[],import.meta.url),"chart-column-increasing":()=>n(()=>import(`./vendor-icon-chart-column-increasing-CU6JOULg.js`).then(e=>e.t),[],import.meta.url),"bar-chart-4":()=>n(()=>import(`./vendor-icon-chart-column-increasing-CU6JOULg.js`).then(e=>e.t),[],import.meta.url),"chart-column-stacked":()=>n(()=>import(`./vendor-icon-chart-column-stacked-DEVTGv4_.js`).then(e=>e.t),[],import.meta.url),"chart-column":()=>n(()=>import(`./vendor-icon-chart-column-DicJIApF.js`).then(e=>e.n),[],import.meta.url),"bar-chart-3":()=>n(()=>import(`./vendor-icon-chart-column-DicJIApF.js`).then(e=>e.n),[],import.meta.url),"chart-gantt":()=>n(()=>import(`./vendor-icon-chart-gantt-DT-shh3t.js`).then(e=>e.n),[],import.meta.url),"chart-line":()=>n(()=>import(`./vendor-icon-chart-line-DOxarYni.js`).then(e=>e.n),[],import.meta.url),"line-chart":()=>n(()=>import(`./vendor-icon-chart-line-DOxarYni.js`).then(e=>e.n),[],import.meta.url),"chart-network":()=>n(()=>import(`./vendor-icon-chart-network-d9lPTueq.js`).then(e=>e.t),[],import.meta.url),"chart-no-axes-column-decreasing":()=>n(()=>import(`./vendor-icon-chart-no-axes-column-decreasing-wIdUOWSv.js`).then(e=>e.t),[],import.meta.url),"chart-no-axes-column-increasing":()=>n(()=>import(`./vendor-icon-chart-no-axes-column-increasing-B83_C-Nw.js`).then(e=>e.n),[],import.meta.url),"bar-chart":()=>n(()=>import(`./vendor-icon-chart-no-axes-column-increasing-B83_C-Nw.js`).then(e=>e.n),[],import.meta.url),"chart-no-axes-column":()=>n(()=>import(`./vendor-icon-chart-no-axes-column-BfpSKd1L.js`).then(e=>e.n),[],import.meta.url),"bar-chart-2":()=>n(()=>import(`./vendor-icon-chart-no-axes-column-BfpSKd1L.js`).then(e=>e.n),[],import.meta.url),"chart-no-axes-combined":()=>n(()=>import(`./vendor-icon-chart-no-axes-combined-V2nqI3Rn.js`).then(e=>e.t),[],import.meta.url),"chart-no-axes-gantt":()=>n(()=>import(`./vendor-icon-chart-no-axes-gantt-_tk8gYAt.js`).then(e=>e.n),[],import.meta.url),"gantt-chart":()=>n(()=>import(`./vendor-icon-chart-no-axes-gantt-_tk8gYAt.js`).then(e=>e.n),[],import.meta.url),"chart-pie":()=>n(()=>import(`./vendor-icon-chart-pie-OmZxepOF.js`).then(e=>e.n),[],import.meta.url),"pie-chart":()=>n(()=>import(`./vendor-icon-chart-pie-OmZxepOF.js`).then(e=>e.n),[],import.meta.url),"chart-scatter":()=>n(()=>import(`./vendor-icon-chart-scatter-Dw4KAem0.js`).then(e=>e.n),[],import.meta.url),"scatter-chart":()=>n(()=>import(`./vendor-icon-chart-scatter-Dw4KAem0.js`).then(e=>e.n),[],import.meta.url),"chart-spline":()=>n(()=>import(`./vendor-icon-chart-spline-CAm3IDKf.js`).then(e=>e.t),[],import.meta.url),"check-check":()=>n(()=>import(`./vendor-icon-check-check-lFjYh3sO.js`).then(e=>e.n),[],import.meta.url),"check-line":()=>n(()=>import(`./vendor-icon-check-line-DdDJFZbK.js`).then(e=>e.t),[],import.meta.url),check:()=>n(()=>import(`./vendor-icon-check-vpu9Zukp.js`).then(e=>e.n),[],import.meta.url),"chef-hat":()=>n(()=>import(`./vendor-icon-chef-hat-Bjj7Kzho.js`).then(e=>e.t),[],import.meta.url),cherry:()=>n(()=>import(`./vendor-icon-cherry-DKJInkBy.js`).then(e=>e.t),[],import.meta.url),"chess-bishop":()=>n(()=>import(`./vendor-icon-chess-bishop-CVoCncRu.js`).then(e=>e.t),[],import.meta.url),"chess-king":()=>n(()=>import(`./vendor-icon-chess-king-ej12aRVV.js`).then(e=>e.t),[],import.meta.url),"chess-knight":()=>n(()=>import(`./vendor-icon-chess-knight-HOLNu-G7.js`).then(e=>e.t),[],import.meta.url),"chess-pawn":()=>n(()=>import(`./vendor-icon-chess-pawn-lfRBs2lA.js`).then(e=>e.t),[],import.meta.url),"chess-queen":()=>n(()=>import(`./vendor-icon-chess-queen-_tGAbwN-.js`).then(e=>e.t),[],import.meta.url),"chess-rook":()=>n(()=>import(`./vendor-icon-chess-rook-DXvtVyio.js`).then(e=>e.t),[],import.meta.url),"chevron-down":()=>n(()=>import(`./vendor-icon-chevron-down-BEf_jTEE.js`).then(e=>e.n),[],import.meta.url),"chevron-first":()=>n(()=>import(`./vendor-icon-chevron-first-fl-h3kl7.js`).then(e=>e.t),[],import.meta.url),"chevron-last":()=>n(()=>import(`./vendor-icon-chevron-last-BBppZQ8K.js`).then(e=>e.t),[],import.meta.url),"chevron-left":()=>n(()=>import(`./vendor-icon-chevron-left-KnDcuFH1.js`).then(e=>e.n),[],import.meta.url),"chevron-right":()=>n(()=>import(`./vendor-icon-chevron-right-DbnKwHYQ.js`).then(e=>e.n),[],import.meta.url),"chevron-up":()=>n(()=>import(`./vendor-icon-chevron-up-C-6o_0je.js`).then(e=>e.n),[],import.meta.url),"chevrons-down-up":()=>n(()=>import(`./vendor-icon-chevrons-down-up-BnOaG_Oo.js`).then(e=>e.n),[],import.meta.url),"chevrons-down":()=>n(()=>import(`./vendor-icon-chevrons-down-DXZuvtdX.js`).then(e=>e.t),[],import.meta.url),"chevrons-left-right-ellipsis":()=>n(()=>import(`./vendor-icon-chevrons-left-right-ellipsis-D3yn3dJM.js`).then(e=>e.t),[],import.meta.url),"chevrons-left-right":()=>n(()=>import(`./vendor-icon-chevrons-left-right-Br95NUdC.js`).then(e=>e.t),[],import.meta.url),"chevrons-left":()=>n(()=>import(`./vendor-icon-chevrons-left-gvlDgS8M.js`).then(e=>e.n),[],import.meta.url),"chevrons-right-left":()=>n(()=>import(`./vendor-icon-chevrons-right-left-Dh1GIIqr.js`).then(e=>e.t),[],import.meta.url),"chevrons-right":()=>n(()=>import(`./vendor-icon-chevrons-right-lic1nOWF.js`).then(e=>e.n),[],import.meta.url),"chevrons-up-down":()=>n(()=>import(`./vendor-icon-chevrons-up-down-CbDukqtA.js`).then(e=>e.n),[],import.meta.url),"chevrons-up":()=>n(()=>import(`./vendor-icon-chevrons-up-B500un_w.js`).then(e=>e.t),[],import.meta.url),church:()=>n(()=>import(`./vendor-icon-church-DPXHSIWM.js`).then(e=>e.t),[],import.meta.url),"cigarette-off":()=>n(()=>import(`./vendor-icon-cigarette-off-ChKB_v2Y.js`).then(e=>e.t),[],import.meta.url),cigarette:()=>n(()=>import(`./vendor-icon-cigarette-DC_E7GPa.js`).then(e=>e.t),[],import.meta.url),"circle-alert":()=>n(()=>import(`./vendor-icon-circle-alert-D1XTr_X9.js`).then(e=>e.n),[],import.meta.url),"alert-circle":()=>n(()=>import(`./vendor-icon-circle-alert-D1XTr_X9.js`).then(e=>e.n),[],import.meta.url),"circle-arrow-down":()=>n(()=>import(`./vendor-icon-circle-arrow-down-BcF6cBFy.js`).then(e=>e.t),[],import.meta.url),"arrow-down-circle":()=>n(()=>import(`./vendor-icon-circle-arrow-down-BcF6cBFy.js`).then(e=>e.t),[],import.meta.url),"circle-arrow-left":()=>n(()=>import(`./vendor-icon-circle-arrow-left-DUObsOAM.js`).then(e=>e.t),[],import.meta.url),"arrow-left-circle":()=>n(()=>import(`./vendor-icon-circle-arrow-left-DUObsOAM.js`).then(e=>e.t),[],import.meta.url),"circle-arrow-out-down-left":()=>n(()=>import(`./vendor-icon-circle-arrow-out-down-left-YTa0z0J9.js`).then(e=>e.t),[],import.meta.url),"arrow-down-left-from-circle":()=>n(()=>import(`./vendor-icon-circle-arrow-out-down-left-YTa0z0J9.js`).then(e=>e.t),[],import.meta.url),"circle-arrow-out-down-right":()=>n(()=>import(`./vendor-icon-circle-arrow-out-down-right-BWV4x792.js`).then(e=>e.t),[],import.meta.url),"arrow-down-right-from-circle":()=>n(()=>import(`./vendor-icon-circle-arrow-out-down-right-BWV4x792.js`).then(e=>e.t),[],import.meta.url),"circle-arrow-out-up-left":()=>n(()=>import(`./vendor-icon-circle-arrow-out-up-left-BcxA2wnj.js`).then(e=>e.t),[],import.meta.url),"arrow-up-left-from-circle":()=>n(()=>import(`./vendor-icon-circle-arrow-out-up-left-BcxA2wnj.js`).then(e=>e.t),[],import.meta.url),"circle-arrow-out-up-right":()=>n(()=>import(`./vendor-icon-circle-arrow-out-up-right-BCHfEfUm.js`).then(e=>e.t),[],import.meta.url),"arrow-up-right-from-circle":()=>n(()=>import(`./vendor-icon-circle-arrow-out-up-right-BCHfEfUm.js`).then(e=>e.t),[],import.meta.url),"circle-arrow-right":()=>n(()=>import(`./vendor-icon-circle-arrow-right-DKIftb5e.js`).then(e=>e.t),[],import.meta.url),"arrow-right-circle":()=>n(()=>import(`./vendor-icon-circle-arrow-right-DKIftb5e.js`).then(e=>e.t),[],import.meta.url),"circle-arrow-up":()=>n(()=>import(`./vendor-icon-circle-arrow-up-bx9jlxK3.js`).then(e=>e.n),[],import.meta.url),"arrow-up-circle":()=>n(()=>import(`./vendor-icon-circle-arrow-up-bx9jlxK3.js`).then(e=>e.n),[],import.meta.url),"circle-check-big":()=>n(()=>import(`./vendor-icon-circle-check-big-MHBAycKk.js`).then(e=>e.n),[],import.meta.url),"check-circle":()=>n(()=>import(`./vendor-icon-circle-check-big-MHBAycKk.js`).then(e=>e.n),[],import.meta.url),"circle-check":()=>n(()=>import(`./vendor-icon-circle-check-Bq3OcFQN.js`).then(e=>e.n),[],import.meta.url),"check-circle-2":()=>n(()=>import(`./vendor-icon-circle-check-Bq3OcFQN.js`).then(e=>e.n),[],import.meta.url),"circle-chevron-down":()=>n(()=>import(`./vendor-icon-circle-chevron-down-DWo9n_gt.js`).then(e=>e.t),[],import.meta.url),"chevron-down-circle":()=>n(()=>import(`./vendor-icon-circle-chevron-down-DWo9n_gt.js`).then(e=>e.t),[],import.meta.url),"circle-chevron-left":()=>n(()=>import(`./vendor-icon-circle-chevron-left-3hHhZyJ0.js`).then(e=>e.t),[],import.meta.url),"chevron-left-circle":()=>n(()=>import(`./vendor-icon-circle-chevron-left-3hHhZyJ0.js`).then(e=>e.t),[],import.meta.url),"circle-chevron-right":()=>n(()=>import(`./vendor-icon-circle-chevron-right-BAwfCq_r.js`).then(e=>e.t),[],import.meta.url),"chevron-right-circle":()=>n(()=>import(`./vendor-icon-circle-chevron-right-BAwfCq_r.js`).then(e=>e.t),[],import.meta.url),"circle-chevron-up":()=>n(()=>import(`./vendor-icon-circle-chevron-up-vsL0ZP3K.js`).then(e=>e.t),[],import.meta.url),"chevron-up-circle":()=>n(()=>import(`./vendor-icon-circle-chevron-up-vsL0ZP3K.js`).then(e=>e.t),[],import.meta.url),"circle-dashed-check":()=>n(()=>import(`./vendor-icon-circle-dashed-check-DqI1Tewo.js`).then(e=>e.t),[],import.meta.url),"circle-dashed":()=>n(()=>import(`./vendor-icon-circle-dashed-CpJjWKYx.js`).then(e=>e.t),[],import.meta.url),"circle-divide":()=>n(()=>import(`./vendor-icon-circle-divide-BYuiUtxg.js`).then(e=>e.t),[],import.meta.url),"divide-circle":()=>n(()=>import(`./vendor-icon-circle-divide-BYuiUtxg.js`).then(e=>e.t),[],import.meta.url),"circle-dollar-sign":()=>n(()=>import(`./vendor-icon-circle-dollar-sign-CUcCaqIg.js`).then(e=>e.t),[],import.meta.url),"circle-dot-dashed":()=>n(()=>import(`./vendor-icon-circle-dot-dashed-pnf5xr7p.js`).then(e=>e.t),[],import.meta.url),"circle-dot":()=>n(()=>import(`./vendor-icon-circle-dot-vUSXdUmv.js`).then(e=>e.n),[],import.meta.url),"circle-ellipsis":()=>n(()=>import(`./vendor-icon-circle-ellipsis-ddE32vZF.js`).then(e=>e.t),[],import.meta.url),"circle-equal":()=>n(()=>import(`./vendor-icon-circle-equal-SjbiiFsI.js`).then(e=>e.t),[],import.meta.url),"circle-euro":()=>n(()=>import(`./vendor-icon-circle-euro-D4uc8rgT.js`).then(e=>e.t),[],import.meta.url),"circle-fading-arrow-up":()=>n(()=>import(`./vendor-icon-circle-fading-arrow-up-CQwkjxrK.js`).then(e=>e.t),[],import.meta.url),"circle-fading-plus":()=>n(()=>import(`./vendor-icon-circle-fading-plus-DldpGy9i.js`).then(e=>e.t),[],import.meta.url),"circle-gauge":()=>n(()=>import(`./vendor-icon-circle-gauge-BCOgie8A.js`).then(e=>e.t),[],import.meta.url),"gauge-circle":()=>n(()=>import(`./vendor-icon-circle-gauge-BCOgie8A.js`).then(e=>e.t),[],import.meta.url),"circle-minus":()=>n(()=>import(`./vendor-icon-circle-minus-Bf4t0VOM.js`).then(e=>e.t),[],import.meta.url),"minus-circle":()=>n(()=>import(`./vendor-icon-circle-minus-Bf4t0VOM.js`).then(e=>e.t),[],import.meta.url),"circle-off":()=>n(()=>import(`./vendor-icon-circle-off-Br8A-Mh_.js`).then(e=>e.t),[],import.meta.url),"circle-parking-off":()=>n(()=>import(`./vendor-icon-circle-parking-off-RDmHWmCX.js`).then(e=>e.t),[],import.meta.url),"parking-circle-off":()=>n(()=>import(`./vendor-icon-circle-parking-off-RDmHWmCX.js`).then(e=>e.t),[],import.meta.url),"circle-parking":()=>n(()=>import(`./vendor-icon-circle-parking-ptm5Sgks.js`).then(e=>e.t),[],import.meta.url),"parking-circle":()=>n(()=>import(`./vendor-icon-circle-parking-ptm5Sgks.js`).then(e=>e.t),[],import.meta.url),"circle-pause":()=>n(()=>import(`./vendor-icon-circle-pause-BtwoIgat.js`).then(e=>e.n),[],import.meta.url),"pause-circle":()=>n(()=>import(`./vendor-icon-circle-pause-BtwoIgat.js`).then(e=>e.n),[],import.meta.url),"circle-percent":()=>n(()=>import(`./vendor-icon-circle-percent-BH3GtAu7.js`).then(e=>e.t),[],import.meta.url),"percent-circle":()=>n(()=>import(`./vendor-icon-circle-percent-BH3GtAu7.js`).then(e=>e.t),[],import.meta.url),"circle-pile":()=>n(()=>import(`./vendor-icon-circle-pile-9Q9dXPL_.js`).then(e=>e.t),[],import.meta.url),"circle-play":()=>n(()=>import(`./vendor-icon-circle-play-BTJWb_ac.js`).then(e=>e.n),[],import.meta.url),"play-circle":()=>n(()=>import(`./vendor-icon-circle-play-BTJWb_ac.js`).then(e=>e.n),[],import.meta.url),"circle-plus":()=>n(()=>import(`./vendor-icon-circle-plus-4gej-PPk.js`).then(e=>e.n),[],import.meta.url),"plus-circle":()=>n(()=>import(`./vendor-icon-circle-plus-4gej-PPk.js`).then(e=>e.n),[],import.meta.url),"circle-pound-sterling":()=>n(()=>import(`./vendor-icon-circle-pound-sterling-BMO2kDoM.js`).then(e=>e.t),[],import.meta.url),"circle-power":()=>n(()=>import(`./vendor-icon-circle-power-B5Wb0XkB.js`).then(e=>e.t),[],import.meta.url),"power-circle":()=>n(()=>import(`./vendor-icon-circle-power-B5Wb0XkB.js`).then(e=>e.t),[],import.meta.url),"circle-question-mark":()=>n(()=>import(`./vendor-icon-circle-question-mark-LshNGnQH.js`).then(e=>e.n),[],import.meta.url),"help-circle":()=>n(()=>import(`./vendor-icon-circle-question-mark-LshNGnQH.js`).then(e=>e.n),[],import.meta.url),"circle-help":()=>n(()=>import(`./vendor-icon-circle-question-mark-LshNGnQH.js`).then(e=>e.n),[],import.meta.url),"circle-slash-2":()=>n(()=>import(`./vendor-icon-circle-slash-2-BPYudTvv.js`).then(e=>e.t),[],import.meta.url),"circle-slashed":()=>n(()=>import(`./vendor-icon-circle-slash-2-BPYudTvv.js`).then(e=>e.t),[],import.meta.url),"circle-slash":()=>n(()=>import(`./vendor-icon-circle-slash-Cfaa-djL.js`).then(e=>e.n),[],import.meta.url),"circle-small":()=>n(()=>import(`./vendor-icon-circle-small-BciM9m-d.js`).then(e=>e.t),[],import.meta.url),"circle-star":()=>n(()=>import(`./vendor-icon-circle-star-CEEJoUG1.js`).then(e=>e.t),[],import.meta.url),"circle-stop":()=>n(()=>import(`./vendor-icon-circle-stop-DLu8C6yn.js`).then(e=>e.n),[],import.meta.url),"stop-circle":()=>n(()=>import(`./vendor-icon-circle-stop-DLu8C6yn.js`).then(e=>e.n),[],import.meta.url),"circle-user-round":()=>n(()=>import(`./vendor-icon-circle-user-round-MqasSdqn.js`).then(e=>e.t),[],import.meta.url),"user-circle-2":()=>n(()=>import(`./vendor-icon-circle-user-round-MqasSdqn.js`).then(e=>e.t),[],import.meta.url),"circle-user":()=>n(()=>import(`./vendor-icon-circle-user-vHkQU5Hv.js`).then(e=>e.n),[],import.meta.url),"user-circle":()=>n(()=>import(`./vendor-icon-circle-user-vHkQU5Hv.js`).then(e=>e.n),[],import.meta.url),"circle-x":()=>n(()=>import(`./vendor-icon-circle-x-Nkh1Yr7N.js`).then(e=>e.n),[],import.meta.url),"x-circle":()=>n(()=>import(`./vendor-icon-circle-x-Nkh1Yr7N.js`).then(e=>e.n),[],import.meta.url),circle:()=>n(()=>import(`./vendor-icon-circle-5-gUQbxi.js`).then(e=>e.n),[],import.meta.url),"circuit-board":()=>n(()=>import(`./vendor-icon-circuit-board-CBMIfftB.js`).then(e=>e.t),[],import.meta.url),citrus:()=>n(()=>import(`./vendor-icon-citrus-DS5Spltx.js`).then(e=>e.t),[],import.meta.url),clapperboard:()=>n(()=>import(`./vendor-icon-clapperboard-Bc9k6hN0.js`).then(e=>e.t),[],import.meta.url),"clipboard-check":()=>n(()=>import(`./vendor-icon-clipboard-check-ZBSenrhQ.js`).then(e=>e.t),[],import.meta.url),"clipboard-clock":()=>n(()=>import(`./vendor-icon-clipboard-clock-C0nFp-lM.js`).then(e=>e.t),[],import.meta.url),"clipboard-copy":()=>n(()=>import(`./vendor-icon-clipboard-copy-C00VrmV1.js`).then(e=>e.t),[],import.meta.url),"clipboard-list":()=>n(()=>import(`./vendor-icon-clipboard-list-Cj86xStJ.js`).then(e=>e.n),[],import.meta.url),"clipboard-minus":()=>n(()=>import(`./vendor-icon-clipboard-minus-_0GPnDHI.js`).then(e=>e.t),[],import.meta.url),"clipboard-paste":()=>n(()=>import(`./vendor-icon-clipboard-paste-DxLRapVV.js`).then(e=>e.n),[],import.meta.url),"clipboard-pen-line":()=>n(()=>import(`./vendor-icon-clipboard-pen-line-D1-KOwfB.js`).then(e=>e.t),[],import.meta.url),"clipboard-signature":()=>n(()=>import(`./vendor-icon-clipboard-pen-line-D1-KOwfB.js`).then(e=>e.t),[],import.meta.url),"clipboard-pen":()=>n(()=>import(`./vendor-icon-clipboard-pen-Cb5v_S0j.js`).then(e=>e.t),[],import.meta.url),"clipboard-edit":()=>n(()=>import(`./vendor-icon-clipboard-pen-Cb5v_S0j.js`).then(e=>e.t),[],import.meta.url),"clipboard-plus":()=>n(()=>import(`./vendor-icon-clipboard-plus-JG874MDS.js`).then(e=>e.t),[],import.meta.url),"clipboard-type":()=>n(()=>import(`./vendor-icon-clipboard-type-DPMV-AC1.js`).then(e=>e.t),[],import.meta.url),"clipboard-x":()=>n(()=>import(`./vendor-icon-clipboard-x-CYLNjP85.js`).then(e=>e.t),[],import.meta.url),clipboard:()=>n(()=>import(`./vendor-icon-clipboard-UqhWHclG.js`).then(e=>e.n),[],import.meta.url),"clock-1":()=>n(()=>import(`./vendor-icon-clock-1-wQLCvjxp.js`).then(e=>e.t),[],import.meta.url),"clock-10":()=>n(()=>import(`./vendor-icon-clock-10-u3jLPchj.js`).then(e=>e.t),[],import.meta.url),"clock-11":()=>n(()=>import(`./vendor-icon-clock-11-CqTpAnEo.js`).then(e=>e.t),[],import.meta.url),"clock-12":()=>n(()=>import(`./vendor-icon-clock-12-Bz8pKGK9.js`).then(e=>e.t),[],import.meta.url),"clock-2":()=>n(()=>import(`./vendor-icon-clock-2-D2NEBG7y.js`).then(e=>e.t),[],import.meta.url),"clock-3":()=>n(()=>import(`./vendor-icon-clock-3-C_TL7RSQ.js`).then(e=>e.n),[],import.meta.url),"clock-4":()=>n(()=>import(`./vendor-icon-clock-4-ax4lokUB.js`).then(e=>e.t),[],import.meta.url),"clock-5":()=>n(()=>import(`./vendor-icon-clock-5-C_nGONGw.js`).then(e=>e.t),[],import.meta.url),"clock-6":()=>n(()=>import(`./vendor-icon-clock-6-B8J_MEe6.js`).then(e=>e.t),[],import.meta.url),"clock-7":()=>n(()=>import(`./vendor-icon-clock-7-CCUVCPLV.js`).then(e=>e.t),[],import.meta.url),"clock-8":()=>n(()=>import(`./vendor-icon-clock-8-DZ6nMn_p.js`).then(e=>e.t),[],import.meta.url),"clock-9":()=>n(()=>import(`./vendor-icon-clock-9-DA-mpP4t.js`).then(e=>e.t),[],import.meta.url),"clock-alert":()=>n(()=>import(`./vendor-icon-clock-alert-BnkgypF0.js`).then(e=>e.t),[],import.meta.url),"clock-arrow-down":()=>n(()=>import(`./vendor-icon-clock-arrow-down-BAYYtL2S.js`).then(e=>e.t),[],import.meta.url),"clock-arrow-left":()=>n(()=>import(`./vendor-icon-clock-arrow-left-DYpKhWlX.js`).then(e=>e.t),[],import.meta.url),"clock-arrow-right":()=>n(()=>import(`./vendor-icon-clock-arrow-right-B_2kcXGA.js`).then(e=>e.t),[],import.meta.url),"clock-arrow-up":()=>n(()=>import(`./vendor-icon-clock-arrow-up-DcDIH5TZ.js`).then(e=>e.t),[],import.meta.url),"clock-check":()=>n(()=>import(`./vendor-icon-clock-check-DiRp5lZb.js`).then(e=>e.t),[],import.meta.url),"clock-fading":()=>n(()=>import(`./vendor-icon-clock-fading-DC8_HqpD.js`).then(e=>e.t),[],import.meta.url),"clock-plus":()=>n(()=>import(`./vendor-icon-clock-plus-BQ-CoI8f.js`).then(e=>e.t),[],import.meta.url),clock:()=>n(()=>import(`./vendor-icon-clock-CTLnah0r.js`).then(e=>e.n),[],import.meta.url),"closed-caption":()=>n(()=>import(`./vendor-icon-closed-caption-o2FxlcZI.js`).then(e=>e.t),[],import.meta.url),"cloud-alert":()=>n(()=>import(`./vendor-icon-cloud-alert-kp1UXyN2.js`).then(e=>e.t),[],import.meta.url),"cloud-backup":()=>n(()=>import(`./vendor-icon-cloud-backup-g1in6fpR.js`).then(e=>e.t),[],import.meta.url),"cloud-check":()=>n(()=>import(`./vendor-icon-cloud-check-pdFx0H0p.js`).then(e=>e.t),[],import.meta.url),"cloud-cog":()=>n(()=>import(`./vendor-icon-cloud-cog-DFYVko08.js`).then(e=>e.t),[],import.meta.url),"cloud-download":()=>n(()=>import(`./vendor-icon-cloud-download-VMn09CMl.js`).then(e=>e.t),[],import.meta.url),"download-cloud":()=>n(()=>import(`./vendor-icon-cloud-download-VMn09CMl.js`).then(e=>e.t),[],import.meta.url),"cloud-drizzle":()=>n(()=>import(`./vendor-icon-cloud-drizzle-DY_sORLt.js`).then(e=>e.t),[],import.meta.url),"cloud-fog":()=>n(()=>import(`./vendor-icon-cloud-fog-Cl13QkAF.js`).then(e=>e.t),[],import.meta.url),"cloud-hail":()=>n(()=>import(`./vendor-icon-cloud-hail-BOoeYz11.js`).then(e=>e.t),[],import.meta.url),"cloud-lightning":()=>n(()=>import(`./vendor-icon-cloud-lightning-CAVqn1vh.js`).then(e=>e.t),[],import.meta.url),"cloud-moon-rain":()=>n(()=>import(`./vendor-icon-cloud-moon-rain-CQIdFPNX.js`).then(e=>e.t),[],import.meta.url),"cloud-moon":()=>n(()=>import(`./vendor-icon-cloud-moon-DZmm4WZZ.js`).then(e=>e.t),[],import.meta.url),"cloud-off":()=>n(()=>import(`./vendor-icon-cloud-off-BcxbO-CE.js`).then(e=>e.n),[],import.meta.url),"cloud-rain-wind":()=>n(()=>import(`./vendor-icon-cloud-rain-wind-CkFz7oQt.js`).then(e=>e.t),[],import.meta.url),"cloud-rain":()=>n(()=>import(`./vendor-icon-cloud-rain-DU8YGGbs.js`).then(e=>e.t),[],import.meta.url),"cloud-snow":()=>n(()=>import(`./vendor-icon-cloud-snow-D-umKNDJ.js`).then(e=>e.t),[],import.meta.url),"cloud-sun-rain":()=>n(()=>import(`./vendor-icon-cloud-sun-rain-Bjitp9PK.js`).then(e=>e.t),[],import.meta.url),"cloud-sun":()=>n(()=>import(`./vendor-icon-cloud-sun-CPGZB59E.js`).then(e=>e.t),[],import.meta.url),"cloud-sync":()=>n(()=>import(`./vendor-icon-cloud-sync-UDZ8QcHM.js`).then(e=>e.t),[],import.meta.url),"cloud-upload":()=>n(()=>import(`./vendor-icon-cloud-upload-Bg3lE2SH.js`).then(e=>e.n),[],import.meta.url),"upload-cloud":()=>n(()=>import(`./vendor-icon-cloud-upload-Bg3lE2SH.js`).then(e=>e.n),[],import.meta.url),cloud:()=>n(()=>import(`./vendor-icon-cloud-eTQppJmM.js`).then(e=>e.n),[],import.meta.url),cloudy:()=>n(()=>import(`./vendor-icon-cloudy-DVqu0Fl7.js`).then(e=>e.t),[],import.meta.url),clover:()=>n(()=>import(`./vendor-icon-clover-rh6c3N8R.js`).then(e=>e.t),[],import.meta.url),club:()=>n(()=>import(`./vendor-icon-club-CJ02FtZx.js`).then(e=>e.t),[],import.meta.url),"code-xml":()=>n(()=>import(`./vendor-icon-code-xml-C9EWHSC8.js`).then(e=>e.n),[],import.meta.url),"code-2":()=>n(()=>import(`./vendor-icon-code-xml-C9EWHSC8.js`).then(e=>e.n),[],import.meta.url),code:()=>n(()=>import(`./vendor-icon-code-C7LFGCxG.js`).then(e=>e.n),[],import.meta.url),coffee:()=>n(()=>import(`./vendor-icon-coffee-CiKe3s3K.js`).then(e=>e.t),[],import.meta.url),cog:()=>n(()=>import(`./vendor-icon-cog-VRkN62C4.js`).then(e=>e.t),[],import.meta.url),coins:()=>n(()=>import(`./vendor-icon-coins-BkX5h4_h.js`).then(e=>e.t),[],import.meta.url),"columns-2":()=>n(()=>import(`./vendor-icon-columns-2-BB630elY.js`).then(e=>e.t),[],import.meta.url),columns:()=>n(()=>import(`./vendor-icon-columns-2-BB630elY.js`).then(e=>e.t),[],import.meta.url),"columns-3-cog":()=>n(()=>import(`./vendor-icon-columns-3-cog-BIIThIT-.js`).then(e=>e.t),[],import.meta.url),"columns-settings":()=>n(()=>import(`./vendor-icon-columns-3-cog-BIIThIT-.js`).then(e=>e.t),[],import.meta.url),"table-config":()=>n(()=>import(`./vendor-icon-columns-3-cog-BIIThIT-.js`).then(e=>e.t),[],import.meta.url),"columns-3":()=>n(()=>import(`./vendor-icon-columns-3-DsEBPpuZ.js`).then(e=>e.n),[],import.meta.url),"panels-left-right":()=>n(()=>import(`./vendor-icon-columns-3-DsEBPpuZ.js`).then(e=>e.n),[],import.meta.url),"columns-4":()=>n(()=>import(`./vendor-icon-columns-4-DKBMvZ7r.js`).then(e=>e.t),[],import.meta.url),combine:()=>n(()=>import(`./vendor-icon-combine-ieUfKrXn.js`).then(e=>e.t),[],import.meta.url),command:()=>n(()=>import(`./vendor-icon-command-Dvh-PB5m.js`).then(e=>e.t),[],import.meta.url),compass:()=>n(()=>import(`./vendor-icon-compass-CXq7Xl5b.js`).then(e=>e.n),[],import.meta.url),component:()=>n(()=>import(`./vendor-icon-component-DSsoX6Ql.js`).then(e=>e.t),[],import.meta.url),computer:()=>n(()=>import(`./vendor-icon-computer-CzVn1e9M.js`).then(e=>e.t),[],import.meta.url),"concierge-bell":()=>n(()=>import(`./vendor-icon-concierge-bell-cZjSW1jd.js`).then(e=>e.t),[],import.meta.url),cone:()=>n(()=>import(`./vendor-icon-cone-BZmDohEQ.js`).then(e=>e.t),[],import.meta.url),construction:()=>n(()=>import(`./vendor-icon-construction-cfhOrbta.js`).then(e=>e.t),[],import.meta.url),"contact-round":()=>n(()=>import(`./vendor-icon-contact-round-CR8_Jbtg.js`).then(e=>e.t),[],import.meta.url),"contact-2":()=>n(()=>import(`./vendor-icon-contact-round-CR8_Jbtg.js`).then(e=>e.t),[],import.meta.url),contact:()=>n(()=>import(`./vendor-icon-contact-z49Jz1WX.js`).then(e=>e.t),[],import.meta.url),container:()=>n(()=>import(`./vendor-icon-container-DNUckaI6.js`).then(e=>e.t),[],import.meta.url),contrast:()=>n(()=>import(`./vendor-icon-contrast-jLqna9pt.js`).then(e=>e.t),[],import.meta.url),cookie:()=>n(()=>import(`./vendor-icon-cookie-BmPYj06L.js`).then(e=>e.t),[],import.meta.url),"cooking-pot":()=>n(()=>import(`./vendor-icon-cooking-pot-HDvOc5QQ.js`).then(e=>e.t),[],import.meta.url),"copy-check":()=>n(()=>import(`./vendor-icon-copy-check-Ck2mtM__.js`).then(e=>e.t),[],import.meta.url),"copy-minus":()=>n(()=>import(`./vendor-icon-copy-minus-Dspucuij.js`).then(e=>e.t),[],import.meta.url),"copy-plus":()=>n(()=>import(`./vendor-icon-copy-plus-CkLyDgxX.js`).then(e=>e.t),[],import.meta.url),"copy-slash":()=>n(()=>import(`./vendor-icon-copy-slash-CjS9mZWE.js`).then(e=>e.t),[],import.meta.url),"copy-x":()=>n(()=>import(`./vendor-icon-copy-x-bkx9_5-D.js`).then(e=>e.t),[],import.meta.url),copy:()=>n(()=>import(`./vendor-icon-copy-B5M-KdZo.js`).then(e=>e.n),[],import.meta.url),copyleft:()=>n(()=>import(`./vendor-icon-copyleft-DQhu5Swd.js`).then(e=>e.t),[],import.meta.url),copyright:()=>n(()=>import(`./vendor-icon-copyright-B74SGJOt.js`).then(e=>e.t),[],import.meta.url),"corner-down-left":()=>n(()=>import(`./vendor-icon-corner-down-left-C5QMlunU.js`).then(e=>e.n),[],import.meta.url),"corner-down-right":()=>n(()=>import(`./vendor-icon-corner-down-right-BKSX1nUw.js`).then(e=>e.t),[],import.meta.url),"corner-left-down":()=>n(()=>import(`./vendor-icon-corner-left-down-BnKVTfHa.js`).then(e=>e.t),[],import.meta.url),"corner-left-up":()=>n(()=>import(`./vendor-icon-corner-left-up-ChnpTDOf.js`).then(e=>e.t),[],import.meta.url),"corner-right-down":()=>n(()=>import(`./vendor-icon-corner-right-down-CiWohuvC.js`).then(e=>e.t),[],import.meta.url),"corner-right-up":()=>n(()=>import(`./vendor-icon-corner-right-up-UF-sW6uM.js`).then(e=>e.t),[],import.meta.url),"corner-up-left":()=>n(()=>import(`./vendor-icon-corner-up-left-Bdjvv6H0.js`).then(e=>e.t),[],import.meta.url),"corner-up-right":()=>n(()=>import(`./vendor-icon-corner-up-right-DqX3HrVg.js`).then(e=>e.t),[],import.meta.url),cpu:()=>n(()=>import(`./vendor-icon-cpu-DxYeDPbk.js`).then(e=>e.t),[],import.meta.url),"creative-commons":()=>n(()=>import(`./vendor-icon-creative-commons-7-VACx0O.js`).then(e=>e.t),[],import.meta.url),"credit-card-check":()=>n(()=>import(`./vendor-icon-credit-card-check-kpKjdwfp.js`).then(e=>e.t),[],import.meta.url),"credit-card-minus":()=>n(()=>import(`./vendor-icon-credit-card-minus-DaCVo03q.js`).then(e=>e.t),[],import.meta.url),"credit-card-plus":()=>n(()=>import(`./vendor-icon-credit-card-plus-BOEWQ4P1.js`).then(e=>e.t),[],import.meta.url),"credit-card-reader":()=>n(()=>import(`./vendor-icon-credit-card-reader-C93mFfqX.js`).then(e=>e.t),[],import.meta.url),"credit-card-x":()=>n(()=>import(`./vendor-icon-credit-card-x-M-8Vg2sw.js`).then(e=>e.t),[],import.meta.url),"credit-card":()=>n(()=>import(`./vendor-icon-credit-card-DSq_6PBE.js`).then(e=>e.t),[],import.meta.url),croissant:()=>n(()=>import(`./vendor-icon-croissant-CCO7aV4E.js`).then(e=>e.t),[],import.meta.url),crop:()=>n(()=>import(`./vendor-icon-crop-DjMq__1_.js`).then(e=>e.n),[],import.meta.url),cross:()=>n(()=>import(`./vendor-icon-cross-CJ0b5AQ0.js`).then(e=>e.t),[],import.meta.url),crosshair:()=>n(()=>import(`./vendor-icon-crosshair-B_kbYa88.js`).then(e=>e.n),[],import.meta.url),crown:()=>n(()=>import(`./vendor-icon-crown-bjNSN4qS.js`).then(e=>e.t),[],import.meta.url),cuboid:()=>n(()=>import(`./vendor-icon-cuboid-CjcOBCxm.js`).then(e=>e.t),[],import.meta.url),"cup-soda":()=>n(()=>import(`./vendor-icon-cup-soda-CjCQTLjL.js`).then(e=>e.t),[],import.meta.url),currency:()=>n(()=>import(`./vendor-icon-currency-BlSOpJE4.js`).then(e=>e.t),[],import.meta.url),cylinder:()=>n(()=>import(`./vendor-icon-cylinder-DLCZ_vXu.js`).then(e=>e.t),[],import.meta.url),dam:()=>n(()=>import(`./vendor-icon-dam-DRpD-uLr.js`).then(e=>e.t),[],import.meta.url),"database-arrow-down":()=>n(()=>import(`./vendor-icon-database-arrow-down-fswRPAp8.js`).then(e=>e.t),[],import.meta.url),"database-arrow-up":()=>n(()=>import(`./vendor-icon-database-arrow-up-BkzSXRlR.js`).then(e=>e.t),[],import.meta.url),"database-backup":()=>n(()=>import(`./vendor-icon-database-backup-CQWaeCiL.js`).then(e=>e.t),[],import.meta.url),"database-check":()=>n(()=>import(`./vendor-icon-database-check-0nkn6jIO.js`).then(e=>e.t),[],import.meta.url),"database-minus":()=>n(()=>import(`./vendor-icon-database-minus-b7FjOPyU.js`).then(e=>e.t),[],import.meta.url),"database-plus":()=>n(()=>import(`./vendor-icon-database-plus-D2xNoJ_K.js`).then(e=>e.t),[],import.meta.url),"database-search":()=>n(()=>import(`./vendor-icon-database-search-eM1aUiMd.js`).then(e=>e.t),[],import.meta.url),"database-x":()=>n(()=>import(`./vendor-icon-database-x-BaoZgvEX.js`).then(e=>e.t),[],import.meta.url),"database-zap":()=>n(()=>import(`./vendor-icon-database-zap-7MfjG9vP.js`).then(e=>e.n),[],import.meta.url),database:()=>n(()=>import(`./vendor-icon-database-C8JGjSkn.js`).then(e=>e.n),[],import.meta.url),"decimals-arrow-left":()=>n(()=>import(`./vendor-icon-decimals-arrow-left-sYcRv89g.js`).then(e=>e.t),[],import.meta.url),"decimals-arrow-right":()=>n(()=>import(`./vendor-icon-decimals-arrow-right-CBavQNKG.js`).then(e=>e.t),[],import.meta.url),delete:()=>n(()=>import(`./vendor-icon-delete-BYn7Of7R.js`).then(e=>e.t),[],import.meta.url),dessert:()=>n(()=>import(`./vendor-icon-dessert-CUa8W5H9.js`).then(e=>e.t),[],import.meta.url),diameter:()=>n(()=>import(`./vendor-icon-diameter-BUGRdaIT.js`).then(e=>e.t),[],import.meta.url),"diamond-minus":()=>n(()=>import(`./vendor-icon-diamond-minus-BDRh3J6G.js`).then(e=>e.t),[],import.meta.url),"diamond-percent":()=>n(()=>import(`./vendor-icon-diamond-percent-ekt_smur.js`).then(e=>e.t),[],import.meta.url),"percent-diamond":()=>n(()=>import(`./vendor-icon-diamond-percent-ekt_smur.js`).then(e=>e.t),[],import.meta.url),"diamond-plus":()=>n(()=>import(`./vendor-icon-diamond-plus-BQX9L2yZ.js`).then(e=>e.t),[],import.meta.url),diamond:()=>n(()=>import(`./vendor-icon-diamond-L7C1CJFo.js`).then(e=>e.n),[],import.meta.url),"dice-1":()=>n(()=>import(`./vendor-icon-dice-1-B5_V9N_D.js`).then(e=>e.t),[],import.meta.url),"dice-2":()=>n(()=>import(`./vendor-icon-dice-2-DKAuNmOX.js`).then(e=>e.t),[],import.meta.url),"dice-3":()=>n(()=>import(`./vendor-icon-dice-3-i2dMGanQ.js`).then(e=>e.t),[],import.meta.url),"dice-4":()=>n(()=>import(`./vendor-icon-dice-4-Z1q1nxP1.js`).then(e=>e.t),[],import.meta.url),"dice-5":()=>n(()=>import(`./vendor-icon-dice-5-C_WXPPax.js`).then(e=>e.t),[],import.meta.url),"dice-6":()=>n(()=>import(`./vendor-icon-dice-6-B-Qrpu7e.js`).then(e=>e.t),[],import.meta.url),dices:()=>n(()=>import(`./vendor-icon-dices-KJZJXZev.js`).then(e=>e.t),[],import.meta.url),diff:()=>n(()=>import(`./vendor-icon-diff-D_j-E0Tq.js`).then(e=>e.t),[],import.meta.url),"disc-2":()=>n(()=>import(`./vendor-icon-disc-2-Ng13qmpT.js`).then(e=>e.t),[],import.meta.url),"disc-3":()=>n(()=>import(`./vendor-icon-disc-3-xYyPsZUP.js`).then(e=>e.t),[],import.meta.url),"disc-album":()=>n(()=>import(`./vendor-icon-disc-album-BpGqZaQp.js`).then(e=>e.t),[],import.meta.url),disc:()=>n(()=>import(`./vendor-icon-disc-B_6xhz3z.js`).then(e=>e.t),[],import.meta.url),divide:()=>n(()=>import(`./vendor-icon-divide-Dt4cAo-9.js`).then(e=>e.t),[],import.meta.url),"dna-off":()=>n(()=>import(`./vendor-icon-dna-off-CRg-5oZm.js`).then(e=>e.t),[],import.meta.url),dna:()=>n(()=>import(`./vendor-icon-dna-DfLiApE0.js`).then(e=>e.t),[],import.meta.url),dock:()=>n(()=>import(`./vendor-icon-dock-D4MQlkMc.js`).then(e=>e.t),[],import.meta.url),dog:()=>n(()=>import(`./vendor-icon-dog-hE71G2nP.js`).then(e=>e.t),[],import.meta.url),"dollar-sign":()=>n(()=>import(`./vendor-icon-dollar-sign-CEDc3nlc.js`).then(e=>e.n),[],import.meta.url),dome:()=>n(()=>import(`./vendor-icon-dome-BjJzRHqJ.js`).then(e=>e.t),[],import.meta.url),donut:()=>n(()=>import(`./vendor-icon-donut-NivfVjRq.js`).then(e=>e.n),[],import.meta.url),"door-closed-locked":()=>n(()=>import(`./vendor-icon-door-closed-locked-DmNpKfi-.js`).then(e=>e.t),[],import.meta.url),"door-closed":()=>n(()=>import(`./vendor-icon-door-closed-BkFaY9Qv.js`).then(e=>e.t),[],import.meta.url),"door-open":()=>n(()=>import(`./vendor-icon-door-open-CzOlusit.js`).then(e=>e.t),[],import.meta.url),"door-stairwell":()=>n(()=>import(`./vendor-icon-door-stairwell-F3pAgQvu.js`).then(e=>e.t),[],import.meta.url),dot:()=>n(()=>import(`./vendor-icon-dot-CuUcuxvm.js`).then(e=>e.n),[],import.meta.url),download:()=>n(()=>import(`./vendor-icon-download-C3csYSaD.js`).then(e=>e.n),[],import.meta.url),"drafting-compass":()=>n(()=>import(`./vendor-icon-drafting-compass-i8FAdvP-.js`).then(e=>e.t),[],import.meta.url),drama:()=>n(()=>import(`./vendor-icon-drama-CjuKmSF6.js`).then(e=>e.t),[],import.meta.url),drill:()=>n(()=>import(`./vendor-icon-drill-t1DqSz7J.js`).then(e=>e.t),[],import.meta.url),drone:()=>n(()=>import(`./vendor-icon-drone-D_GoBeG8.js`).then(e=>e.t),[],import.meta.url),"droplet-off":()=>n(()=>import(`./vendor-icon-droplet-off-B3S-eMyE.js`).then(e=>e.t),[],import.meta.url),droplet:()=>n(()=>import(`./vendor-icon-droplet-DaROYeYc.js`).then(e=>e.t),[],import.meta.url),droplets:()=>n(()=>import(`./vendor-icon-droplets-CQmz68NM.js`).then(e=>e.t),[],import.meta.url),drum:()=>n(()=>import(`./vendor-icon-drum-BaQSbim9.js`).then(e=>e.t),[],import.meta.url),drumstick:()=>n(()=>import(`./vendor-icon-drumstick-n0-bF_fb.js`).then(e=>e.t),[],import.meta.url),dumbbell:()=>n(()=>import(`./vendor-icon-dumbbell-BdGHwFCb.js`).then(e=>e.t),[],import.meta.url),"ear-off":()=>n(()=>import(`./vendor-icon-ear-off-CL5nfJPq.js`).then(e=>e.t),[],import.meta.url),ear:()=>n(()=>import(`./vendor-icon-ear-xH02gjF-.js`).then(e=>e.t),[],import.meta.url),"earth-lock":()=>n(()=>import(`./vendor-icon-earth-lock-gWRxUFQ6.js`).then(e=>e.t),[],import.meta.url),earth:()=>n(()=>import(`./vendor-icon-earth-KgMAAeNO.js`).then(e=>e.n),[],import.meta.url),"globe-2":()=>n(()=>import(`./vendor-icon-earth-KgMAAeNO.js`).then(e=>e.n),[],import.meta.url),eclipse:()=>n(()=>import(`./vendor-icon-eclipse-BonjBpIz.js`).then(e=>e.t),[],import.meta.url),"egg-fried":()=>n(()=>import(`./vendor-icon-egg-fried-DHvbt0N1.js`).then(e=>e.t),[],import.meta.url),"egg-off":()=>n(()=>import(`./vendor-icon-egg-off-D_uINXLz.js`).then(e=>e.t),[],import.meta.url),egg:()=>n(()=>import(`./vendor-icon-egg-Z1D0Q37B.js`).then(e=>e.t),[],import.meta.url),eject:()=>n(()=>import(`./vendor-icon-eject-8yU13-Us.js`).then(e=>e.t),[],import.meta.url),ellipse:()=>n(()=>import(`./vendor-icon-ellipse-BnjX_91F.js`).then(e=>e.t),[],import.meta.url),"ellipsis-vertical":()=>n(()=>import(`./vendor-icon-ellipsis-vertical-DwMP57JC.js`).then(e=>e.n),[],import.meta.url),"more-vertical":()=>n(()=>import(`./vendor-icon-ellipsis-vertical-DwMP57JC.js`).then(e=>e.n),[],import.meta.url),ellipsis:()=>n(()=>import(`./vendor-icon-ellipsis-BjiiCS3N.js`).then(e=>e.n),[],import.meta.url),"more-horizontal":()=>n(()=>import(`./vendor-icon-ellipsis-BjiiCS3N.js`).then(e=>e.n),[],import.meta.url),engine:()=>n(()=>import(`./vendor-icon-engine-Cosa9bMD.js`).then(e=>e.t),[],import.meta.url),"equal-approximately-not":()=>n(()=>import(`./vendor-icon-equal-approximately-not-CLeYcz74.js`).then(e=>e.t),[],import.meta.url),"equal-approximately":()=>n(()=>import(`./vendor-icon-equal-approximately-DLalBae2.js`).then(e=>e.t),[],import.meta.url),"equal-not":()=>n(()=>import(`./vendor-icon-equal-not-CiRcEwUf.js`).then(e=>e.t),[],import.meta.url),equal:()=>n(()=>import(`./vendor-icon-equal-CT1-TVlm.js`).then(e=>e.t),[],import.meta.url),eraser:()=>n(()=>import(`./vendor-icon-eraser-CoRaZSKu.js`).then(e=>e.n),[],import.meta.url),"ethernet-port":()=>n(()=>import(`./vendor-icon-ethernet-port-po1cOgAT.js`).then(e=>e.t),[],import.meta.url),euro:()=>n(()=>import(`./vendor-icon-euro-CMhifVDU.js`).then(e=>e.t),[],import.meta.url),"ev-charger":()=>n(()=>import(`./vendor-icon-ev-charger-lnOKtQYk.js`).then(e=>e.t),[],import.meta.url),expand:()=>n(()=>import(`./vendor-icon-expand-BdQX33eS.js`).then(e=>e.t),[],import.meta.url),"external-link":()=>n(()=>import(`./vendor-icon-external-link-SBKz5x6R.js`).then(e=>e.n),[],import.meta.url),"eye-closed":()=>n(()=>import(`./vendor-icon-eye-closed-DaMhFyAb.js`).then(e=>e.t),[],import.meta.url),"eye-dashed":()=>n(()=>import(`./vendor-icon-eye-dashed-BPxrVqpF.js`).then(e=>e.t),[],import.meta.url),"eye-off":()=>n(()=>import(`./vendor-icon-eye-off-Dy3GIcvl.js`).then(e=>e.n),[],import.meta.url),eye:()=>n(()=>import(`./vendor-icon-eye-C3HaEGOo.js`).then(e=>e.n),[],import.meta.url),"face-angry":()=>n(()=>import(`./vendor-icon-face-angry-CKP5udTe.js`).then(e=>e.t),[],import.meta.url),angry:()=>n(()=>import(`./vendor-icon-face-angry-CKP5udTe.js`).then(e=>e.t),[],import.meta.url),"face-expressionless":()=>n(()=>import(`./vendor-icon-face-expressionless-CYEecQWw.js`).then(e=>e.t),[],import.meta.url),annoyed:()=>n(()=>import(`./vendor-icon-face-expressionless-CYEecQWw.js`).then(e=>e.t),[],import.meta.url),"face-grinning":()=>n(()=>import(`./vendor-icon-face-grinning-C9XV5OmS.js`).then(e=>e.t),[],import.meta.url),laugh:()=>n(()=>import(`./vendor-icon-face-grinning-C9XV5OmS.js`).then(e=>e.t),[],import.meta.url),"face-neutral":()=>n(()=>import(`./vendor-icon-face-neutral-B34NGM74.js`).then(e=>e.t),[],import.meta.url),meh:()=>n(()=>import(`./vendor-icon-face-neutral-B34NGM74.js`).then(e=>e.t),[],import.meta.url),"face-slightly-frowning":()=>n(()=>import(`./vendor-icon-face-slightly-frowning-CUK0Gy2O.js`).then(e=>e.t),[],import.meta.url),frown:()=>n(()=>import(`./vendor-icon-face-slightly-frowning-CUK0Gy2O.js`).then(e=>e.t),[],import.meta.url),"face-slightly-smiling-plus":()=>n(()=>import(`./vendor-icon-face-slightly-smiling-plus-BYluVacK.js`).then(e=>e.n),[],import.meta.url),"smile-plus":()=>n(()=>import(`./vendor-icon-face-slightly-smiling-plus-BYluVacK.js`).then(e=>e.n),[],import.meta.url),"face-slightly-smiling":()=>n(()=>import(`./vendor-icon-face-slightly-smiling-rKStuYEe.js`).then(e=>e.t),[],import.meta.url),smile:()=>n(()=>import(`./vendor-icon-face-slightly-smiling-rKStuYEe.js`).then(e=>e.t),[],import.meta.url),factory:()=>n(()=>import(`./vendor-icon-factory-Cn5kRmUB.js`).then(e=>e.t),[],import.meta.url),fan:()=>n(()=>import(`./vendor-icon-fan-Db_yJ76W.js`).then(e=>e.t),[],import.meta.url),"fast-forward":()=>n(()=>import(`./vendor-icon-fast-forward-JmR_XrD3.js`).then(e=>e.t),[],import.meta.url),feather:()=>n(()=>import(`./vendor-icon-feather-D2v-Ky5a.js`).then(e=>e.t),[],import.meta.url),fence:()=>n(()=>import(`./vendor-icon-fence-GXffKh9a.js`).then(e=>e.t),[],import.meta.url),"ferris-wheel":()=>n(()=>import(`./vendor-icon-ferris-wheel-TH-nSNkF.js`).then(e=>e.t),[],import.meta.url),"file-archive":()=>n(()=>import(`./vendor-icon-file-archive-ruJEbEgu.js`).then(e=>e.n),[],import.meta.url),"file-axis-3d":()=>n(()=>import(`./vendor-icon-file-axis-3d-DgQKrRTS.js`).then(e=>e.t),[],import.meta.url),"file-axis-3-d":()=>n(()=>import(`./vendor-icon-file-axis-3d-DgQKrRTS.js`).then(e=>e.t),[],import.meta.url),"file-badge":()=>n(()=>import(`./vendor-icon-file-badge-BssA5wIH.js`).then(e=>e.t),[],import.meta.url),"file-badge-2":()=>n(()=>import(`./vendor-icon-file-badge-BssA5wIH.js`).then(e=>e.t),[],import.meta.url),"file-box":()=>n(()=>import(`./vendor-icon-file-box-ZyQW59b4.js`).then(e=>e.t),[],import.meta.url),"file-braces-corner":()=>n(()=>import(`./vendor-icon-file-braces-corner-B_iqzwzj.js`).then(e=>e.t),[],import.meta.url),"file-json-2":()=>n(()=>import(`./vendor-icon-file-braces-corner-B_iqzwzj.js`).then(e=>e.t),[],import.meta.url),"file-braces":()=>n(()=>import(`./vendor-icon-file-braces-D8irpr63.js`).then(e=>e.n),[],import.meta.url),"file-json":()=>n(()=>import(`./vendor-icon-file-braces-D8irpr63.js`).then(e=>e.n),[],import.meta.url),"file-chart-column-increasing":()=>n(()=>import(`./vendor-icon-file-chart-column-increasing-C7XOl2ut.js`).then(e=>e.t),[],import.meta.url),"file-bar-chart":()=>n(()=>import(`./vendor-icon-file-chart-column-increasing-C7XOl2ut.js`).then(e=>e.t),[],import.meta.url),"file-chart-column":()=>n(()=>import(`./vendor-icon-file-chart-column-Sf5m0AYr.js`).then(e=>e.t),[],import.meta.url),"file-bar-chart-2":()=>n(()=>import(`./vendor-icon-file-chart-column-Sf5m0AYr.js`).then(e=>e.t),[],import.meta.url),"file-chart-line":()=>n(()=>import(`./vendor-icon-file-chart-line-OpqrN4ro.js`).then(e=>e.t),[],import.meta.url),"file-line-chart":()=>n(()=>import(`./vendor-icon-file-chart-line-OpqrN4ro.js`).then(e=>e.t),[],import.meta.url),"file-chart-pie":()=>n(()=>import(`./vendor-icon-file-chart-pie-G2MKv3b6.js`).then(e=>e.t),[],import.meta.url),"file-pie-chart":()=>n(()=>import(`./vendor-icon-file-chart-pie-G2MKv3b6.js`).then(e=>e.t),[],import.meta.url),"file-check-corner":()=>n(()=>import(`./vendor-icon-file-check-corner-BBgZPWY5.js`).then(e=>e.t),[],import.meta.url),"file-check-2":()=>n(()=>import(`./vendor-icon-file-check-corner-BBgZPWY5.js`).then(e=>e.t),[],import.meta.url),"file-check":()=>n(()=>import(`./vendor-icon-file-check-Xg48aByl.js`).then(e=>e.t),[],import.meta.url),"file-clock":()=>n(()=>import(`./vendor-icon-file-clock-nGlMhDhr.js`).then(e=>e.t),[],import.meta.url),"file-code-corner":()=>n(()=>import(`./vendor-icon-file-code-corner-CdiQRG_f.js`).then(e=>e.n),[],import.meta.url),"file-code-2":()=>n(()=>import(`./vendor-icon-file-code-corner-CdiQRG_f.js`).then(e=>e.n),[],import.meta.url),"file-code":()=>n(()=>import(`./vendor-icon-file-code-vuY9KruG.js`).then(e=>e.t),[],import.meta.url),"file-cog":()=>n(()=>import(`./vendor-icon-file-cog-DwFB0EHZ.js`).then(e=>e.t),[],import.meta.url),"file-cog-2":()=>n(()=>import(`./vendor-icon-file-cog-DwFB0EHZ.js`).then(e=>e.t),[],import.meta.url),"file-diff":()=>n(()=>import(`./vendor-icon-file-diff-D6NZQl2s.js`).then(e=>e.t),[],import.meta.url),"file-digit":()=>n(()=>import(`./vendor-icon-file-digit-h5pX1gM6.js`).then(e=>e.t),[],import.meta.url),"file-down":()=>n(()=>import(`./vendor-icon-file-down-4-LKF_us.js`).then(e=>e.n),[],import.meta.url),"file-exclamation-point":()=>n(()=>import(`./vendor-icon-file-exclamation-point-DUuyt0Jh.js`).then(e=>e.t),[],import.meta.url),"file-warning":()=>n(()=>import(`./vendor-icon-file-exclamation-point-DUuyt0Jh.js`).then(e=>e.t),[],import.meta.url),"file-headphone":()=>n(()=>import(`./vendor-icon-file-headphone-DVolCObE.js`).then(e=>e.t),[],import.meta.url),"file-audio":()=>n(()=>import(`./vendor-icon-file-headphone-DVolCObE.js`).then(e=>e.t),[],import.meta.url),"file-audio-2":()=>n(()=>import(`./vendor-icon-file-headphone-DVolCObE.js`).then(e=>e.t),[],import.meta.url),"file-heart":()=>n(()=>import(`./vendor-icon-file-heart-nDNzCS5P.js`).then(e=>e.t),[],import.meta.url),"file-image":()=>n(()=>import(`./vendor-icon-file-image-CpBZDsp-.js`).then(e=>e.t),[],import.meta.url),"file-input":()=>n(()=>import(`./vendor-icon-file-input-BJCTr7Bw.js`).then(e=>e.t),[],import.meta.url),"file-key":()=>n(()=>import(`./vendor-icon-file-key-DLNZX9As.js`).then(e=>e.t),[],import.meta.url),"file-key-2":()=>n(()=>import(`./vendor-icon-file-key-DLNZX9As.js`).then(e=>e.t),[],import.meta.url),"file-lock":()=>n(()=>import(`./vendor-icon-file-lock-DmAU7Su7.js`).then(e=>e.t),[],import.meta.url),"file-lock-2":()=>n(()=>import(`./vendor-icon-file-lock-DmAU7Su7.js`).then(e=>e.t),[],import.meta.url),"file-minus-corner":()=>n(()=>import(`./vendor-icon-file-minus-corner-TaEtqlrQ.js`).then(e=>e.t),[],import.meta.url),"file-minus-2":()=>n(()=>import(`./vendor-icon-file-minus-corner-TaEtqlrQ.js`).then(e=>e.t),[],import.meta.url),"file-minus":()=>n(()=>import(`./vendor-icon-file-minus-BKypXhm2.js`).then(e=>e.t),[],import.meta.url),"file-music":()=>n(()=>import(`./vendor-icon-file-music-D-sI5mh2.js`).then(e=>e.t),[],import.meta.url),"file-output":()=>n(()=>import(`./vendor-icon-file-output-VXOuNwFE.js`).then(e=>e.t),[],import.meta.url),"file-pen-line":()=>n(()=>import(`./vendor-icon-file-pen-line-DzkbwoOS.js`).then(e=>e.t),[],import.meta.url),"file-signature":()=>n(()=>import(`./vendor-icon-file-pen-line-DzkbwoOS.js`).then(e=>e.t),[],import.meta.url),"file-pen":()=>n(()=>import(`./vendor-icon-file-pen-l-DSznsL.js`).then(e=>e.n),[],import.meta.url),"file-edit":()=>n(()=>import(`./vendor-icon-file-pen-l-DSznsL.js`).then(e=>e.n),[],import.meta.url),"file-play":()=>n(()=>import(`./vendor-icon-file-play-fg45gKil.js`).then(e=>e.t),[],import.meta.url),"file-video":()=>n(()=>import(`./vendor-icon-file-play-fg45gKil.js`).then(e=>e.t),[],import.meta.url),"file-plus-corner":()=>n(()=>import(`./vendor-icon-file-plus-corner-qwq-iw5D.js`).then(e=>e.n),[],import.meta.url),"file-plus-2":()=>n(()=>import(`./vendor-icon-file-plus-corner-qwq-iw5D.js`).then(e=>e.n),[],import.meta.url),"file-plus":()=>n(()=>import(`./vendor-icon-file-plus-DMAKv9CD.js`).then(e=>e.n),[],import.meta.url),"file-question-mark":()=>n(()=>import(`./vendor-icon-file-question-mark-CDRVvH3W.js`).then(e=>e.n),[],import.meta.url),"file-question":()=>n(()=>import(`./vendor-icon-file-question-mark-CDRVvH3W.js`).then(e=>e.n),[],import.meta.url),"file-scan":()=>n(()=>import(`./vendor-icon-file-scan-BR_60__y.js`).then(e=>e.t),[],import.meta.url),"file-search-corner":()=>n(()=>import(`./vendor-icon-file-search-corner-B5c60l1m.js`).then(e=>e.t),[],import.meta.url),"file-search-2":()=>n(()=>import(`./vendor-icon-file-search-corner-B5c60l1m.js`).then(e=>e.t),[],import.meta.url),"file-search":()=>n(()=>import(`./vendor-icon-file-search-G3ut07Ux.js`).then(e=>e.n),[],import.meta.url),"file-signal":()=>n(()=>import(`./vendor-icon-file-signal-C7zYMUXi.js`).then(e=>e.t),[],import.meta.url),"file-volume-2":()=>n(()=>import(`./vendor-icon-file-signal-C7zYMUXi.js`).then(e=>e.t),[],import.meta.url),"file-sliders":()=>n(()=>import(`./vendor-icon-file-sliders-BEjYSM81.js`).then(e=>e.t),[],import.meta.url),"file-spreadsheet":()=>n(()=>import(`./vendor-icon-file-spreadsheet-LZ3f9xT3.js`).then(e=>e.n),[],import.meta.url),"file-stack":()=>n(()=>import(`./vendor-icon-file-stack-qfkpOfUZ.js`).then(e=>e.t),[],import.meta.url),"file-symlink":()=>n(()=>import(`./vendor-icon-file-symlink-BoZA_6a2.js`).then(e=>e.t),[],import.meta.url),"file-terminal":()=>n(()=>import(`./vendor-icon-file-terminal-CPKaLLdF.js`).then(e=>e.t),[],import.meta.url),"file-text":()=>n(()=>import(`./vendor-icon-file-text-7BKAVNof.js`).then(e=>e.n),[],import.meta.url),"file-type-corner":()=>n(()=>import(`./vendor-icon-file-type-corner-CFi5BqQg.js`).then(e=>e.t),[],import.meta.url),"file-type-2":()=>n(()=>import(`./vendor-icon-file-type-corner-CFi5BqQg.js`).then(e=>e.t),[],import.meta.url),"file-type":()=>n(()=>import(`./vendor-icon-file-type-Mp2lmApC.js`).then(e=>e.t),[],import.meta.url),"file-up":()=>n(()=>import(`./vendor-icon-file-up-CeHsRg2x.js`).then(e=>e.n),[],import.meta.url),"file-user":()=>n(()=>import(`./vendor-icon-file-user-CSYZBoLo.js`).then(e=>e.t),[],import.meta.url),"file-video-camera":()=>n(()=>import(`./vendor-icon-file-video-camera-BVnstdMZ.js`).then(e=>e.t),[],import.meta.url),"file-video-2":()=>n(()=>import(`./vendor-icon-file-video-camera-BVnstdMZ.js`).then(e=>e.t),[],import.meta.url),"file-volume":()=>n(()=>import(`./vendor-icon-file-volume-BMqxT6pN.js`).then(e=>e.t),[],import.meta.url),"file-x-corner":()=>n(()=>import(`./vendor-icon-file-x-corner-OO4M4iho.js`).then(e=>e.t),[],import.meta.url),"file-x-2":()=>n(()=>import(`./vendor-icon-file-x-corner-OO4M4iho.js`).then(e=>e.t),[],import.meta.url),"file-x":()=>n(()=>import(`./vendor-icon-file-x-BcqWCCDH.js`).then(e=>e.n),[],import.meta.url),file:()=>n(()=>import(`./vendor-icon-file-CTChzdTZ.js`).then(e=>e.n),[],import.meta.url),files:()=>n(()=>import(`./vendor-icon-files-CLgYJivw.js`).then(e=>e.t),[],import.meta.url),film:()=>n(()=>import(`./vendor-icon-film-DYqdgfHw.js`).then(e=>e.t),[],import.meta.url),"fingerprint-pattern":()=>n(()=>import(`./vendor-icon-fingerprint-pattern-Cryf654h.js`).then(e=>e.t),[],import.meta.url),fingerprint:()=>n(()=>import(`./vendor-icon-fingerprint-pattern-Cryf654h.js`).then(e=>e.t),[],import.meta.url),"fire-extinguisher":()=>n(()=>import(`./vendor-icon-fire-extinguisher-BBcFvsoc.js`).then(e=>e.t),[],import.meta.url),"fish-off":()=>n(()=>import(`./vendor-icon-fish-off-Cq-b9ck0.js`).then(e=>e.t),[],import.meta.url),"fish-symbol":()=>n(()=>import(`./vendor-icon-fish-symbol-C-nEiwC-.js`).then(e=>e.t),[],import.meta.url),fish:()=>n(()=>import(`./vendor-icon-fish-CUc77VHQ.js`).then(e=>e.t),[],import.meta.url),"fishing-hook":()=>n(()=>import(`./vendor-icon-fishing-hook-DkIV3IGj.js`).then(e=>e.t),[],import.meta.url),"fishing-rod":()=>n(()=>import(`./vendor-icon-fishing-rod-wfAcUerA.js`).then(e=>e.t),[],import.meta.url),"flag-off":()=>n(()=>import(`./vendor-icon-flag-off-CyHdBO4-.js`).then(e=>e.t),[],import.meta.url),"flag-triangle-left":()=>n(()=>import(`./vendor-icon-flag-triangle-left-BGTcR8AY.js`).then(e=>e.t),[],import.meta.url),"flag-triangle-right":()=>n(()=>import(`./vendor-icon-flag-triangle-right-DAxcufcv.js`).then(e=>e.t),[],import.meta.url),flag:()=>n(()=>import(`./vendor-icon-flag-QWvMhB7L.js`).then(e=>e.n),[],import.meta.url),"flame-kindling":()=>n(()=>import(`./vendor-icon-flame-kindling-BmZ_qm6Z.js`).then(e=>e.t),[],import.meta.url),flame:()=>n(()=>import(`./vendor-icon-flame-CX1xLt3H.js`).then(e=>e.t),[],import.meta.url),"flashlight-off":()=>n(()=>import(`./vendor-icon-flashlight-off-CM9-b1lS.js`).then(e=>e.t),[],import.meta.url),flashlight:()=>n(()=>import(`./vendor-icon-flashlight-CQ4B2_n_.js`).then(e=>e.t),[],import.meta.url),"flask-conical-off":()=>n(()=>import(`./vendor-icon-flask-conical-off-B8qmbyf2.js`).then(e=>e.t),[],import.meta.url),"flask-conical":()=>n(()=>import(`./vendor-icon-flask-conical-CaTZd1FS.js`).then(e=>e.n),[],import.meta.url),"flask-round":()=>n(()=>import(`./vendor-icon-flask-round-Bk6QA39H.js`).then(e=>e.t),[],import.meta.url),"flip-horizontal-2":()=>n(()=>import(`./vendor-icon-flip-horizontal-2-BcPjK20a.js`).then(e=>e.t),[],import.meta.url),"flip-vertical-2":()=>n(()=>import(`./vendor-icon-flip-vertical-2-D0bG1Gtt.js`).then(e=>e.t),[],import.meta.url),"flower-2":()=>n(()=>import(`./vendor-icon-flower-2-DSF5OSNs.js`).then(e=>e.t),[],import.meta.url),flower:()=>n(()=>import(`./vendor-icon-flower-DbGOLOY3.js`).then(e=>e.t),[],import.meta.url),focus:()=>n(()=>import(`./vendor-icon-focus-C-KwciPC.js`).then(e=>e.t),[],import.meta.url),"fold-horizontal":()=>n(()=>import(`./vendor-icon-fold-horizontal-Cd6Y7Lgq.js`).then(e=>e.t),[],import.meta.url),"fold-vertical":()=>n(()=>import(`./vendor-icon-fold-vertical-tKYxfGbI.js`).then(e=>e.t),[],import.meta.url),"folder-archive":()=>n(()=>import(`./vendor-icon-folder-archive-C9Z8enWJ.js`).then(e=>e.t),[],import.meta.url),"folder-bookmark":()=>n(()=>import(`./vendor-icon-folder-bookmark-rPTDUSFo.js`).then(e=>e.t),[],import.meta.url),"folder-check":()=>n(()=>import(`./vendor-icon-folder-check-CaqfKbZc.js`).then(e=>e.t),[],import.meta.url),"folder-clock":()=>n(()=>import(`./vendor-icon-folder-clock-P74cibui.js`).then(e=>e.t),[],import.meta.url),"folder-closed":()=>n(()=>import(`./vendor-icon-folder-closed-CTaZY4sf.js`).then(e=>e.t),[],import.meta.url),"folder-code":()=>n(()=>import(`./vendor-icon-folder-code-CbQWA3tQ.js`).then(e=>e.t),[],import.meta.url),"folder-cog":()=>n(()=>import(`./vendor-icon-folder-cog-IpWTsyO0.js`).then(e=>e.t),[],import.meta.url),"folder-cog-2":()=>n(()=>import(`./vendor-icon-folder-cog-IpWTsyO0.js`).then(e=>e.t),[],import.meta.url),"folder-dot":()=>n(()=>import(`./vendor-icon-folder-dot-f6ik-7Dt.js`).then(e=>e.t),[],import.meta.url),"folder-down":()=>n(()=>import(`./vendor-icon-folder-down-DQE3Iouz.js`).then(e=>e.t),[],import.meta.url),"folder-git-2":()=>n(()=>import(`./vendor-icon-folder-git-2-CarfHt_Q.js`).then(e=>e.t),[],import.meta.url),"folder-git":()=>n(()=>import(`./vendor-icon-folder-git-CNliyQya.js`).then(e=>e.t),[],import.meta.url),"folder-heart":()=>n(()=>import(`./vendor-icon-folder-heart-Bw8pgSib.js`).then(e=>e.t),[],import.meta.url),"folder-input":()=>n(()=>import(`./vendor-icon-folder-input-CeRcsOb0.js`).then(e=>e.n),[],import.meta.url),"folder-kanban":()=>n(()=>import(`./vendor-icon-folder-kanban-CJweaaKK.js`).then(e=>e.t),[],import.meta.url),"folder-key":()=>n(()=>import(`./vendor-icon-folder-key-B-yf95b4.js`).then(e=>e.t),[],import.meta.url),"folder-lock":()=>n(()=>import(`./vendor-icon-folder-lock-DJ-u25uZ.js`).then(e=>e.t),[],import.meta.url),"folder-minus":()=>n(()=>import(`./vendor-icon-folder-minus-C1wE9V2R.js`).then(e=>e.t),[],import.meta.url),"folder-open-dot":()=>n(()=>import(`./vendor-icon-folder-open-dot-CbyVbMAV.js`).then(e=>e.t),[],import.meta.url),"folder-open":()=>n(()=>import(`./vendor-icon-folder-open-mGjBJ_Tq.js`).then(e=>e.n),[],import.meta.url),"folder-output":()=>n(()=>import(`./vendor-icon-folder-output-BEHBk3G0.js`).then(e=>e.t),[],import.meta.url),"folder-pen":()=>n(()=>import(`./vendor-icon-folder-pen-qV79nlMO.js`).then(e=>e.t),[],import.meta.url),"folder-edit":()=>n(()=>import(`./vendor-icon-folder-pen-qV79nlMO.js`).then(e=>e.t),[],import.meta.url),"folder-plus":()=>n(()=>import(`./vendor-icon-folder-plus-DX3Wm6yc.js`).then(e=>e.n),[],import.meta.url),"folder-root":()=>n(()=>import(`./vendor-icon-folder-root-CvrJREap.js`).then(e=>e.t),[],import.meta.url),"folder-search-2":()=>n(()=>import(`./vendor-icon-folder-search-2-tnBq8oDi.js`).then(e=>e.t),[],import.meta.url),"folder-search":()=>n(()=>import(`./vendor-icon-folder-search-DI0V2doy.js`).then(e=>e.t),[],import.meta.url),"folder-symlink":()=>n(()=>import(`./vendor-icon-folder-symlink-DOmsXA1i.js`).then(e=>e.t),[],import.meta.url),"folder-sync":()=>n(()=>import(`./vendor-icon-folder-sync-CvLX_ztd.js`).then(e=>e.t),[],import.meta.url),"folder-tree":()=>n(()=>import(`./vendor-icon-folder-tree-BQ1wv9bt.js`).then(e=>e.n),[],import.meta.url),"folder-up":()=>n(()=>import(`./vendor-icon-folder-up-BeUWC9cC.js`).then(e=>e.t),[],import.meta.url),"folder-x":()=>n(()=>import(`./vendor-icon-folder-x-BgiwKxtx.js`).then(e=>e.t),[],import.meta.url),folder:()=>n(()=>import(`./vendor-icon-folder-GbhohOfU.js`).then(e=>e.n),[],import.meta.url),folders:()=>n(()=>import(`./vendor-icon-folders-CbV1Socn.js`).then(e=>e.n),[],import.meta.url),footprints:()=>n(()=>import(`./vendor-icon-footprints-COJ-KZQL.js`).then(e=>e.t),[],import.meta.url),forklift:()=>n(()=>import(`./vendor-icon-forklift-BTAAtB6U.js`).then(e=>e.t),[],import.meta.url),form:()=>n(()=>import(`./vendor-icon-form-Bfb7QK0P.js`).then(e=>e.t),[],import.meta.url),forward:()=>n(()=>import(`./vendor-icon-forward-L5fGiBOb.js`).then(e=>e.t),[],import.meta.url),frame:()=>n(()=>import(`./vendor-icon-frame-aWiMxcP_.js`).then(e=>e.t),[],import.meta.url),fuel:()=>n(()=>import(`./vendor-icon-fuel-zt0fjC5P.js`).then(e=>e.t),[],import.meta.url),fullscreen:()=>n(()=>import(`./vendor-icon-fullscreen-S91MVpSO.js`).then(e=>e.t),[],import.meta.url),"funnel-plus":()=>n(()=>import(`./vendor-icon-funnel-plus-BnXAeoHJ.js`).then(e=>e.t),[],import.meta.url),"funnel-x":()=>n(()=>import(`./vendor-icon-funnel-x-ChTcAyC7.js`).then(e=>e.t),[],import.meta.url),"filter-x":()=>n(()=>import(`./vendor-icon-funnel-x-ChTcAyC7.js`).then(e=>e.t),[],import.meta.url),funnel:()=>n(()=>import(`./vendor-icon-funnel-CtmEg9FH.js`).then(e=>e.n),[],import.meta.url),filter:()=>n(()=>import(`./vendor-icon-funnel-CtmEg9FH.js`).then(e=>e.n),[],import.meta.url),galaxy:()=>n(()=>import(`./vendor-icon-galaxy-COULUBTi.js`).then(e=>e.t),[],import.meta.url),"gallery-horizontal-end":()=>n(()=>import(`./vendor-icon-gallery-horizontal-end-BjRgRef2.js`).then(e=>e.t),[],import.meta.url),"gallery-horizontal":()=>n(()=>import(`./vendor-icon-gallery-horizontal-B0CmkNPy.js`).then(e=>e.t),[],import.meta.url),"gallery-thumbnails":()=>n(()=>import(`./vendor-icon-gallery-thumbnails-B9FlUiBP.js`).then(e=>e.t),[],import.meta.url),"gallery-vertical-end":()=>n(()=>import(`./vendor-icon-gallery-vertical-end-Wb7In404.js`).then(e=>e.t),[],import.meta.url),"gallery-vertical":()=>n(()=>import(`./vendor-icon-gallery-vertical-DU8_rrNB.js`).then(e=>e.t),[],import.meta.url),"gamepad-2":()=>n(()=>import(`./vendor-icon-gamepad-2-CxSgVEhB.js`).then(e=>e.t),[],import.meta.url),"gamepad-directional":()=>n(()=>import(`./vendor-icon-gamepad-directional-B-hvPESK.js`).then(e=>e.t),[],import.meta.url),gamepad:()=>n(()=>import(`./vendor-icon-gamepad-D97yfepG.js`).then(e=>e.t),[],import.meta.url),"gap-horizontal":()=>n(()=>import(`./vendor-icon-gap-horizontal-C0x9WPiZ.js`).then(e=>e.t),[],import.meta.url),"gap-vertical":()=>n(()=>import(`./vendor-icon-gap-vertical-CGecTpUu.js`).then(e=>e.t),[],import.meta.url),gauge:()=>n(()=>import(`./vendor-icon-gauge-CIVyyDJV.js`).then(e=>e.n),[],import.meta.url),gavel:()=>n(()=>import(`./vendor-icon-gavel-BC5XRpfc.js`).then(e=>e.t),[],import.meta.url),gem:()=>n(()=>import(`./vendor-icon-gem-BzGl5xb5.js`).then(e=>e.t),[],import.meta.url),"georgian-lari":()=>n(()=>import(`./vendor-icon-georgian-lari-Dl9H4vRx.js`).then(e=>e.t),[],import.meta.url),"germ-off":()=>n(()=>import(`./vendor-icon-germ-off-CG6W5ahD.js`).then(e=>e.t),[],import.meta.url),germ:()=>n(()=>import(`./vendor-icon-germ-CUxK_yY4.js`).then(e=>e.t),[],import.meta.url),ghost:()=>n(()=>import(`./vendor-icon-ghost-Bzhn2uYS.js`).then(e=>e.t),[],import.meta.url),gift:()=>n(()=>import(`./vendor-icon-gift-yFOJ2wk2.js`).then(e=>e.t),[],import.meta.url),"git-branch-minus":()=>n(()=>import(`./vendor-icon-git-branch-minus-6k5M8cKY.js`).then(e=>e.t),[],import.meta.url),"git-branch-plus":()=>n(()=>import(`./vendor-icon-git-branch-plus-CUjOD28I.js`).then(e=>e.t),[],import.meta.url),"git-branch":()=>n(()=>import(`./vendor-icon-git-branch-CpQpJlYB.js`).then(e=>e.n),[],import.meta.url),"git-commit-horizontal":()=>n(()=>import(`./vendor-icon-git-commit-horizontal-D5QlQfHX.js`).then(e=>e.t),[],import.meta.url),"git-commit":()=>n(()=>import(`./vendor-icon-git-commit-horizontal-D5QlQfHX.js`).then(e=>e.t),[],import.meta.url),"git-commit-vertical":()=>n(()=>import(`./vendor-icon-git-commit-vertical-DJZ_bIGG.js`).then(e=>e.t),[],import.meta.url),"git-compare-arrows":()=>n(()=>import(`./vendor-icon-git-compare-arrows-BAqrva2j.js`).then(e=>e.n),[],import.meta.url),"git-compare":()=>n(()=>import(`./vendor-icon-git-compare-DZvYH-Cc.js`).then(e=>e.t),[],import.meta.url),"git-fork":()=>n(()=>import(`./vendor-icon-git-fork-DEQeROkn.js`).then(e=>e.n),[],import.meta.url),"git-graph":()=>n(()=>import(`./vendor-icon-git-graph-BmltR-60.js`).then(e=>e.t),[],import.meta.url),"git-merge-conflict":()=>n(()=>import(`./vendor-icon-git-merge-conflict-BKtC1tqP.js`).then(e=>e.t),[],import.meta.url),"git-merge":()=>n(()=>import(`./vendor-icon-git-merge-2q_9eKti.js`).then(e=>e.t),[],import.meta.url),"git-pull-request-arrow":()=>n(()=>import(`./vendor-icon-git-pull-request-arrow-_2syUfRC.js`).then(e=>e.t),[],import.meta.url),"git-pull-request-closed":()=>n(()=>import(`./vendor-icon-git-pull-request-closed-DPWx6mHk.js`).then(e=>e.t),[],import.meta.url),"git-pull-request-create-arrow":()=>n(()=>import(`./vendor-icon-git-pull-request-create-arrow-BvKcKnrM.js`).then(e=>e.t),[],import.meta.url),"git-pull-request-create":()=>n(()=>import(`./vendor-icon-git-pull-request-create-DVoK_mR6.js`).then(e=>e.t),[],import.meta.url),"git-pull-request-draft":()=>n(()=>import(`./vendor-icon-git-pull-request-draft-Cs64XIl0.js`).then(e=>e.t),[],import.meta.url),"git-pull-request":()=>n(()=>import(`./vendor-icon-git-pull-request-NZ2UCQ_L.js`).then(e=>e.t),[],import.meta.url),"glass-water":()=>n(()=>import(`./vendor-icon-glass-water-BhEwvZu3.js`).then(e=>e.t),[],import.meta.url),glasses:()=>n(()=>import(`./vendor-icon-glasses-BebmLZr0.js`).then(e=>e.t),[],import.meta.url),"globe-check":()=>n(()=>import(`./vendor-icon-globe-check-CuPgSQBA.js`).then(e=>e.t),[],import.meta.url),"globe-lock":()=>n(()=>import(`./vendor-icon-globe-lock-DjZd1YE3.js`).then(e=>e.t),[],import.meta.url),"globe-off":()=>n(()=>import(`./vendor-icon-globe-off-D_rmX9Yt.js`).then(e=>e.t),[],import.meta.url),"globe-x":()=>n(()=>import(`./vendor-icon-globe-x-CgURLx5c.js`).then(e=>e.t),[],import.meta.url),globe:()=>n(()=>import(`./vendor-icon-globe-BaOanPH5.js`).then(e=>e.n),[],import.meta.url),goal:()=>n(()=>import(`./vendor-icon-goal-LbLKUmqN.js`).then(e=>e.t),[],import.meta.url),gpu:()=>n(()=>import(`./vendor-icon-gpu-B2fxorFh.js`).then(e=>e.t),[],import.meta.url),"graduation-cap":()=>n(()=>import(`./vendor-icon-graduation-cap-BEm56ocd.js`).then(e=>e.t),[],import.meta.url),grape:()=>n(()=>import(`./vendor-icon-grape-BaHjsuPB.js`).then(e=>e.t),[],import.meta.url),"grid-2x2-check":()=>n(()=>import(`./vendor-icon-grid-2x2-check-s65FYNOY.js`).then(e=>e.t),[],import.meta.url),"grid-2-x-2-check":()=>n(()=>import(`./vendor-icon-grid-2x2-check-s65FYNOY.js`).then(e=>e.t),[],import.meta.url),"grid-2x2-plus":()=>n(()=>import(`./vendor-icon-grid-2x2-plus-GrSc6B2V.js`).then(e=>e.t),[],import.meta.url),"grid-2-x-2-plus":()=>n(()=>import(`./vendor-icon-grid-2x2-plus-GrSc6B2V.js`).then(e=>e.t),[],import.meta.url),"grid-2x2-x":()=>n(()=>import(`./vendor-icon-grid-2x2-x-BOxOZ95f.js`).then(e=>e.t),[],import.meta.url),"grid-2-x-2-x":()=>n(()=>import(`./vendor-icon-grid-2x2-x-BOxOZ95f.js`).then(e=>e.t),[],import.meta.url),"grid-2x2":()=>n(()=>import(`./vendor-icon-grid-2x2-rK8mJWne.js`).then(e=>e.t),[],import.meta.url),"grid-2-x-2":()=>n(()=>import(`./vendor-icon-grid-2x2-rK8mJWne.js`).then(e=>e.t),[],import.meta.url),"grid-3x2":()=>n(()=>import(`./vendor-icon-grid-3x2-NNhtQ7Fd.js`).then(e=>e.t),[],import.meta.url),"grid-3x3":()=>n(()=>import(`./vendor-icon-grid-3x3-Dyc1xp4z.js`).then(e=>e.n),[],import.meta.url),grid:()=>n(()=>import(`./vendor-icon-grid-3x3-Dyc1xp4z.js`).then(e=>e.n),[],import.meta.url),"grid-3-x-3":()=>n(()=>import(`./vendor-icon-grid-3x3-Dyc1xp4z.js`).then(e=>e.n),[],import.meta.url),"grip-horizontal":()=>n(()=>import(`./vendor-icon-grip-horizontal-CvDQskmU.js`).then(e=>e.t),[],import.meta.url),"grip-vertical":()=>n(()=>import(`./vendor-icon-grip-vertical-B01-ovq0.js`).then(e=>e.n),[],import.meta.url),grip:()=>n(()=>import(`./vendor-icon-grip-CaFxiKCq.js`).then(e=>e.t),[],import.meta.url),group:()=>n(()=>import(`./vendor-icon-group-Dq8ETKd5.js`).then(e=>e.n),[],import.meta.url),guitar:()=>n(()=>import(`./vendor-icon-guitar-C7WUUwDZ.js`).then(e=>e.t),[],import.meta.url),ham:()=>n(()=>import(`./vendor-icon-ham-FP9376_9.js`).then(e=>e.t),[],import.meta.url),hamburger:()=>n(()=>import(`./vendor-icon-hamburger-XffqM-gj.js`).then(e=>e.t),[],import.meta.url),hammer:()=>n(()=>import(`./vendor-icon-hammer-Dt0J1nzU.js`).then(e=>e.n),[],import.meta.url),"hand-coins":()=>n(()=>import(`./vendor-icon-hand-coins-CB-Qw8cK.js`).then(e=>e.t),[],import.meta.url),"hand-fist":()=>n(()=>import(`./vendor-icon-hand-fist-rRtMpjwV.js`).then(e=>e.t),[],import.meta.url),"hand-grab":()=>n(()=>import(`./vendor-icon-hand-grab-DnUt6HJ_.js`).then(e=>e.t),[],import.meta.url),grab:()=>n(()=>import(`./vendor-icon-hand-grab-DnUt6HJ_.js`).then(e=>e.t),[],import.meta.url),"hand-heart":()=>n(()=>import(`./vendor-icon-hand-heart-DMfv8UKr.js`).then(e=>e.t),[],import.meta.url),"hand-helping":()=>n(()=>import(`./vendor-icon-hand-helping-C9h01-2o.js`).then(e=>e.t),[],import.meta.url),"helping-hand":()=>n(()=>import(`./vendor-icon-hand-helping-C9h01-2o.js`).then(e=>e.t),[],import.meta.url),"hand-metal":()=>n(()=>import(`./vendor-icon-hand-metal-BF1ZKGy8.js`).then(e=>e.t),[],import.meta.url),"hand-platter":()=>n(()=>import(`./vendor-icon-hand-platter-mLBHV-va.js`).then(e=>e.t),[],import.meta.url),hand:()=>n(()=>import(`./vendor-icon-hand-BfojjVYv.js`).then(e=>e.t),[],import.meta.url),handbag:()=>n(()=>import(`./vendor-icon-handbag-E68LcO-T.js`).then(e=>e.t),[],import.meta.url),handshake:()=>n(()=>import(`./vendor-icon-handshake-mkz5_JoS.js`).then(e=>e.t),[],import.meta.url),"hard-drive-download":()=>n(()=>import(`./vendor-icon-hard-drive-download-B3gzGBJr.js`).then(e=>e.t),[],import.meta.url),"hard-drive-upload":()=>n(()=>import(`./vendor-icon-hard-drive-upload-DzLkv4JG.js`).then(e=>e.t),[],import.meta.url),"hard-drive":()=>n(()=>import(`./vendor-icon-hard-drive-DhSx4UAI.js`).then(e=>e.n),[],import.meta.url),"hard-hat":()=>n(()=>import(`./vendor-icon-hard-hat-D2pt63LF.js`).then(e=>e.t),[],import.meta.url),hash:()=>n(()=>import(`./vendor-icon-hash-Lkwzb5Ny.js`).then(e=>e.n),[],import.meta.url),"hat-glasses":()=>n(()=>import(`./vendor-icon-hat-glasses-Ccd8Nldc.js`).then(e=>e.t),[],import.meta.url),haze:()=>n(()=>import(`./vendor-icon-haze-zLjrn3x9.js`).then(e=>e.t),[],import.meta.url),hd:()=>n(()=>import(`./vendor-icon-hd-DoDgyWiG.js`).then(e=>e.t),[],import.meta.url),"hdmi-port":()=>n(()=>import(`./vendor-icon-hdmi-port-CPE9e5Fj.js`).then(e=>e.t),[],import.meta.url),"heading-1":()=>n(()=>import(`./vendor-icon-heading-1-BKNYzuT_.js`).then(e=>e.t),[],import.meta.url),"heading-2":()=>n(()=>import(`./vendor-icon-heading-2-D5gdzVy2.js`).then(e=>e.t),[],import.meta.url),"heading-3":()=>n(()=>import(`./vendor-icon-heading-3-BS-l81Gc.js`).then(e=>e.t),[],import.meta.url),"heading-4":()=>n(()=>import(`./vendor-icon-heading-4-BaONe84r.js`).then(e=>e.t),[],import.meta.url),"heading-5":()=>n(()=>import(`./vendor-icon-heading-5-BOWM6Wy9.js`).then(e=>e.t),[],import.meta.url),"heading-6":()=>n(()=>import(`./vendor-icon-heading-6-CZLzSuuF.js`).then(e=>e.t),[],import.meta.url),heading:()=>n(()=>import(`./vendor-icon-heading-YjNwxstt.js`).then(e=>e.t),[],import.meta.url),"headphone-off":()=>n(()=>import(`./vendor-icon-headphone-off-BcFP11_4.js`).then(e=>e.t),[],import.meta.url),headphones:()=>n(()=>import(`./vendor-icon-headphones-CGQFJEI7.js`).then(e=>e.t),[],import.meta.url),headset:()=>n(()=>import(`./vendor-icon-headset-DRBEAS4B.js`).then(e=>e.t),[],import.meta.url),"heart-crack":()=>n(()=>import(`./vendor-icon-heart-crack-CH_Zbky9.js`).then(e=>e.t),[],import.meta.url),"heart-handshake":()=>n(()=>import(`./vendor-icon-heart-handshake-rnMK5ckv.js`).then(e=>e.t),[],import.meta.url),"heart-minus":()=>n(()=>import(`./vendor-icon-heart-minus-Bh2qwoUx.js`).then(e=>e.t),[],import.meta.url),"heart-off":()=>n(()=>import(`./vendor-icon-heart-off-CGlfF1F6.js`).then(e=>e.t),[],import.meta.url),"heart-plus":()=>n(()=>import(`./vendor-icon-heart-plus-BQRAFLaU.js`).then(e=>e.t),[],import.meta.url),"heart-pulse":()=>n(()=>import(`./vendor-icon-heart-pulse-BTvbI3tt.js`).then(e=>e.t),[],import.meta.url),"heart-x":()=>n(()=>import(`./vendor-icon-heart-x-qGuI1TJk.js`).then(e=>e.t),[],import.meta.url),heart:()=>n(()=>import(`./vendor-icon-heart-B1RWRYi1.js`).then(e=>e.t),[],import.meta.url),heater:()=>n(()=>import(`./vendor-icon-heater-HneKYKJI.js`).then(e=>e.t),[],import.meta.url),helicopter:()=>n(()=>import(`./vendor-icon-helicopter-9uhJ0XK5.js`).then(e=>e.t),[],import.meta.url),hexagon:()=>n(()=>import(`./vendor-icon-hexagon-BS11HC15.js`).then(e=>e.t),[],import.meta.url),highlighter:()=>n(()=>import(`./vendor-icon-highlighter-CD_s3f_P.js`).then(e=>e.t),[],import.meta.url),"hop-off":()=>n(()=>import(`./vendor-icon-hop-off-atcjKGkL.js`).then(e=>e.t),[],import.meta.url),hop:()=>n(()=>import(`./vendor-icon-hop-DBN4Oegd.js`).then(e=>e.t),[],import.meta.url),hospital:()=>n(()=>import(`./vendor-icon-hospital-D1vCHbOv.js`).then(e=>e.t),[],import.meta.url),hotel:()=>n(()=>import(`./vendor-icon-hotel-BOOp45CN.js`).then(e=>e.t),[],import.meta.url),hourglass:()=>n(()=>import(`./vendor-icon-hourglass-B2VxgTp9.js`).then(e=>e.n),[],import.meta.url),"house-heart":()=>n(()=>import(`./vendor-icon-house-heart-CzqERry-.js`).then(e=>e.t),[],import.meta.url),"house-plug":()=>n(()=>import(`./vendor-icon-house-plug-BQa-ca4v.js`).then(e=>e.t),[],import.meta.url),"house-plus":()=>n(()=>import(`./vendor-icon-house-plus-8Dd8WlSc.js`).then(e=>e.t),[],import.meta.url),"house-wifi":()=>n(()=>import(`./vendor-icon-house-wifi-C_g659i3.js`).then(e=>e.t),[],import.meta.url),house:()=>n(()=>import(`./vendor-icon-house-DKkSNU01.js`).then(e=>e.n),[],import.meta.url),home:()=>n(()=>import(`./vendor-icon-house-DKkSNU01.js`).then(e=>e.n),[],import.meta.url),"ice-cream-bowl":()=>n(()=>import(`./vendor-icon-ice-cream-bowl-DSYN73Li.js`).then(e=>e.t),[],import.meta.url),"ice-cream-2":()=>n(()=>import(`./vendor-icon-ice-cream-bowl-DSYN73Li.js`).then(e=>e.t),[],import.meta.url),"ice-cream-cone":()=>n(()=>import(`./vendor-icon-ice-cream-cone-CHrr9gIo.js`).then(e=>e.t),[],import.meta.url),"ice-cream":()=>n(()=>import(`./vendor-icon-ice-cream-cone-CHrr9gIo.js`).then(e=>e.t),[],import.meta.url),"id-card-lanyard":()=>n(()=>import(`./vendor-icon-id-card-lanyard-C3yG_Tlz.js`).then(e=>e.t),[],import.meta.url),"id-card":()=>n(()=>import(`./vendor-icon-id-card-BKo7mYb2.js`).then(e=>e.t),[],import.meta.url),"image-down":()=>n(()=>import(`./vendor-icon-image-down-CPvMWr4k.js`).then(e=>e.t),[],import.meta.url),"image-minus":()=>n(()=>import(`./vendor-icon-image-minus-C7ippqza.js`).then(e=>e.t),[],import.meta.url),"image-off":()=>n(()=>import(`./vendor-icon-image-off-Bxd-uesM.js`).then(e=>e.t),[],import.meta.url),"image-play":()=>n(()=>import(`./vendor-icon-image-play-iG1dcyRR.js`).then(e=>e.t),[],import.meta.url),"image-plus":()=>n(()=>import(`./vendor-icon-image-plus-Dy1Djb0J.js`).then(e=>e.t),[],import.meta.url),"image-up":()=>n(()=>import(`./vendor-icon-image-up-CSOuhT_R.js`).then(e=>e.t),[],import.meta.url),"image-upscale":()=>n(()=>import(`./vendor-icon-image-upscale-jQ-yvKui.js`).then(e=>e.t),[],import.meta.url),image:()=>n(()=>import(`./vendor-icon-image-D2YAsa8l.js`).then(e=>e.n),[],import.meta.url),images:()=>n(()=>import(`./vendor-icon-images-qaVnL5yL.js`).then(e=>e.n),[],import.meta.url),import:()=>n(()=>import(`./vendor-icon-import-Chnx4JBF.js`).then(e=>e.t),[],import.meta.url),inbox:()=>n(()=>import(`./vendor-icon-inbox-ByVQ4l4S.js`).then(e=>e.n),[],import.meta.url),"indian-rupee":()=>n(()=>import(`./vendor-icon-indian-rupee-DMQuDHbb.js`).then(e=>e.t),[],import.meta.url),infinity:()=>n(()=>import(`./vendor-icon-infinity-BKdcR7qg.js`).then(e=>e.t),[],import.meta.url),info:()=>n(()=>import(`./vendor-icon-info-DBwRTfSE.js`).then(e=>e.n),[],import.meta.url),"inspection-panel":()=>n(()=>import(`./vendor-icon-inspection-panel-GR_sXYTh.js`).then(e=>e.t),[],import.meta.url),italic:()=>n(()=>import(`./vendor-icon-italic-Dt0-MsYM.js`).then(e=>e.n),[],import.meta.url),"iteration-ccw":()=>n(()=>import(`./vendor-icon-iteration-ccw-S525B89r.js`).then(e=>e.n),[],import.meta.url),"iteration-cw":()=>n(()=>import(`./vendor-icon-iteration-cw-Sy7z8JTd.js`).then(e=>e.t),[],import.meta.url),"japanese-yen":()=>n(()=>import(`./vendor-icon-japanese-yen-BrUUA7A0.js`).then(e=>e.t),[],import.meta.url),joystick:()=>n(()=>import(`./vendor-icon-joystick-DlHpj1_T.js`).then(e=>e.t),[],import.meta.url),kanban:()=>n(()=>import(`./vendor-icon-kanban-Vs-E3QFM.js`).then(e=>e.t),[],import.meta.url),kayak:()=>n(()=>import(`./vendor-icon-kayak-DMvvGyFk.js`).then(e=>e.t),[],import.meta.url),"key-round":()=>n(()=>import(`./vendor-icon-key-round-hQwGYgPA.js`).then(e=>e.n),[],import.meta.url),"key-square":()=>n(()=>import(`./vendor-icon-key-square-BoPuIyFe.js`).then(e=>e.t),[],import.meta.url),key:()=>n(()=>import(`./vendor-icon-key-cIm4VBHQ.js`).then(e=>e.t),[],import.meta.url),"keyboard-music":()=>n(()=>import(`./vendor-icon-keyboard-music-CjiZJyXw.js`).then(e=>e.t),[],import.meta.url),"keyboard-off":()=>n(()=>import(`./vendor-icon-keyboard-off-hr6UFzKE.js`).then(e=>e.t),[],import.meta.url),keyboard:()=>n(()=>import(`./vendor-icon-keyboard-D_x9_32f.js`).then(e=>e.n),[],import.meta.url),"lamp-ceiling":()=>n(()=>import(`./vendor-icon-lamp-ceiling-DhTQiauo.js`).then(e=>e.t),[],import.meta.url),"lamp-desk":()=>n(()=>import(`./vendor-icon-lamp-desk-Jm9QJbL7.js`).then(e=>e.t),[],import.meta.url),"lamp-floor":()=>n(()=>import(`./vendor-icon-lamp-floor-CwOCcivt.js`).then(e=>e.t),[],import.meta.url),"lamp-wall-down":()=>n(()=>import(`./vendor-icon-lamp-wall-down-BUk5LOYe.js`).then(e=>e.t),[],import.meta.url),"lamp-wall-up":()=>n(()=>import(`./vendor-icon-lamp-wall-up-CDkWDd8L.js`).then(e=>e.t),[],import.meta.url),lamp:()=>n(()=>import(`./vendor-icon-lamp-syJnCLul.js`).then(e=>e.t),[],import.meta.url),"land-plot":()=>n(()=>import(`./vendor-icon-land-plot-C7ijQzjx.js`).then(e=>e.t),[],import.meta.url),landmark:()=>n(()=>import(`./vendor-icon-landmark-C1BmflQ4.js`).then(e=>e.t),[],import.meta.url),languages:()=>n(()=>import(`./vendor-icon-languages-CI3j7ujw.js`).then(e=>e.n),[],import.meta.url),"laptop-minimal-check":()=>n(()=>import(`./vendor-icon-laptop-minimal-check-kKAThWtP.js`).then(e=>e.t),[],import.meta.url),"laptop-minimal":()=>n(()=>import(`./vendor-icon-laptop-minimal-CTxatV5V.js`).then(e=>e.t),[],import.meta.url),"laptop-2":()=>n(()=>import(`./vendor-icon-laptop-minimal-CTxatV5V.js`).then(e=>e.t),[],import.meta.url),laptop:()=>n(()=>import(`./vendor-icon-laptop-mPnbkFWF.js`).then(e=>e.t),[],import.meta.url),"lasso-select":()=>n(()=>import(`./vendor-icon-lasso-select-punpILyM.js`).then(e=>e.t),[],import.meta.url),lasso:()=>n(()=>import(`./vendor-icon-lasso-DO5y3kMi.js`).then(e=>e.t),[],import.meta.url),"layer-arrow-down":()=>n(()=>import(`./vendor-icon-layer-arrow-down-tcwId5i6.js`).then(e=>e.t),[],import.meta.url),"layer-arrow-up":()=>n(()=>import(`./vendor-icon-layer-arrow-up-CPdmH8aa.js`).then(e=>e.t),[],import.meta.url),"layers-2":()=>n(()=>import(`./vendor-icon-layers-2-BzHWFtSl.js`).then(e=>e.t),[],import.meta.url),"layers-arrow-down":()=>n(()=>import(`./vendor-icon-layers-arrow-down-hMJV9aYF.js`).then(e=>e.t),[],import.meta.url),"layers-arrow-up":()=>n(()=>import(`./vendor-icon-layers-arrow-up-D_KoWJOL.js`).then(e=>e.t),[],import.meta.url),"layers-minus":()=>n(()=>import(`./vendor-icon-layers-minus-CMg3wWwY.js`).then(e=>e.t),[],import.meta.url),"layers-plus":()=>n(()=>import(`./vendor-icon-layers-plus-DMGCmQNe.js`).then(e=>e.t),[],import.meta.url),layers:()=>n(()=>import(`./vendor-icon-layers-DXBEefR1.js`).then(e=>e.n),[],import.meta.url),"layers-3":()=>n(()=>import(`./vendor-icon-layers-DXBEefR1.js`).then(e=>e.n),[],import.meta.url),"layout-dashboard":()=>n(()=>import(`./vendor-icon-layout-dashboard-wba2hvZp.js`).then(e=>e.n),[],import.meta.url),"layout-freeform":()=>n(()=>import(`./vendor-icon-layout-freeform-B9uFlp1E.js`).then(e=>e.t),[],import.meta.url),"layout-grid":()=>n(()=>import(`./vendor-icon-layout-grid-B3quJ1GF.js`).then(e=>e.n),[],import.meta.url),"layout-list":()=>n(()=>import(`./vendor-icon-layout-list-BmmAxLnX.js`).then(e=>e.t),[],import.meta.url),"layout-panel-left":()=>n(()=>import(`./vendor-icon-layout-panel-left-Dpy8KpEt.js`).then(e=>e.t),[],import.meta.url),"layout-panel-top":()=>n(()=>import(`./vendor-icon-layout-panel-top-C44SLICo.js`).then(e=>e.t),[],import.meta.url),"layout-template":()=>n(()=>import(`./vendor-icon-layout-template-BSsyv3fX.js`).then(e=>e.n),[],import.meta.url),leaf:()=>n(()=>import(`./vendor-icon-leaf-CAnsHaBo.js`).then(e=>e.t),[],import.meta.url),"leafy-green":()=>n(()=>import(`./vendor-icon-leafy-green-B7_c0hPE.js`).then(e=>e.t),[],import.meta.url),lectern:()=>n(()=>import(`./vendor-icon-lectern-Bl1JBN5H.js`).then(e=>e.t),[],import.meta.url),"lens-concave":()=>n(()=>import(`./vendor-icon-lens-concave-BkxJLdnP.js`).then(e=>e.t),[],import.meta.url),"lens-convex":()=>n(()=>import(`./vendor-icon-lens-convex-D_PtrE1Z.js`).then(e=>e.t),[],import.meta.url),"library-big":()=>n(()=>import(`./vendor-icon-library-big-naPExCw1.js`).then(e=>e.t),[],import.meta.url),library:()=>n(()=>import(`./vendor-icon-library-Cx4i-Jga.js`).then(e=>e.t),[],import.meta.url),"life-buoy":()=>n(()=>import(`./vendor-icon-life-buoy-BzRL4szD.js`).then(e=>e.t),[],import.meta.url),ligature:()=>n(()=>import(`./vendor-icon-ligature-DMqrLpvc.js`).then(e=>e.t),[],import.meta.url),"lightbulb-off":()=>n(()=>import(`./vendor-icon-lightbulb-off-DoeOMJHm.js`).then(e=>e.t),[],import.meta.url),lightbulb:()=>n(()=>import(`./vendor-icon-lightbulb-CHyAqvMV.js`).then(e=>e.t),[],import.meta.url),lighthouse:()=>n(()=>import(`./vendor-icon-lighthouse-CilvHrWQ.js`).then(e=>e.t),[],import.meta.url),"line-dot-right-horizontal":()=>n(()=>import(`./vendor-icon-line-dot-right-horizontal-WSNzsQ5U.js`).then(e=>e.t),[],import.meta.url),"line-squiggle":()=>n(()=>import(`./vendor-icon-line-squiggle-CpAO5-cr.js`).then(e=>e.t),[],import.meta.url),"line-style":()=>n(()=>import(`./vendor-icon-line-style-Crtyz2ZK.js`).then(e=>e.t),[],import.meta.url),"link-2-off":()=>n(()=>import(`./vendor-icon-link-2-off-Donc5rrk.js`).then(e=>e.n),[],import.meta.url),"link-2":()=>n(()=>import(`./vendor-icon-link-2-EAo0juhN.js`).then(e=>e.n),[],import.meta.url),link:()=>n(()=>import(`./vendor-icon-link-RPcdxfUF.js`).then(e=>e.n),[],import.meta.url),"list-check":()=>n(()=>import(`./vendor-icon-list-check-RhRKASbA.js`).then(e=>e.t),[],import.meta.url),"list-checks":()=>n(()=>import(`./vendor-icon-list-checks-Df4Wgu_H.js`).then(e=>e.n),[],import.meta.url),"list-chevrons-down-up":()=>n(()=>import(`./vendor-icon-list-chevrons-down-up-CTuxHd21.js`).then(e=>e.t),[],import.meta.url),"list-chevrons-up-down":()=>n(()=>import(`./vendor-icon-list-chevrons-up-down-BQG24Zb7.js`).then(e=>e.t),[],import.meta.url),"list-clock":()=>n(()=>import(`./vendor-icon-list-clock-CMTjjzz_.js`).then(e=>e.t),[],import.meta.url),"list-collapse":()=>n(()=>import(`./vendor-icon-list-collapse-Ddb6lkbW.js`).then(e=>e.t),[],import.meta.url),"list-end":()=>n(()=>import(`./vendor-icon-list-end-D4X2yMWR.js`).then(e=>e.t),[],import.meta.url),"list-filter-plus":()=>n(()=>import(`./vendor-icon-list-filter-plus-Cxf_ME1z.js`).then(e=>e.t),[],import.meta.url),"list-filter":()=>n(()=>import(`./vendor-icon-list-filter-C15EN_7M.js`).then(e=>e.n),[],import.meta.url),"list-indent-decrease":()=>n(()=>import(`./vendor-icon-list-indent-decrease-eBnEpMCT.js`).then(e=>e.t),[],import.meta.url),outdent:()=>n(()=>import(`./vendor-icon-list-indent-decrease-eBnEpMCT.js`).then(e=>e.t),[],import.meta.url),"indent-decrease":()=>n(()=>import(`./vendor-icon-list-indent-decrease-eBnEpMCT.js`).then(e=>e.t),[],import.meta.url),"list-indent-increase":()=>n(()=>import(`./vendor-icon-list-indent-increase-CGYD4Umw.js`).then(e=>e.t),[],import.meta.url),indent:()=>n(()=>import(`./vendor-icon-list-indent-increase-CGYD4Umw.js`).then(e=>e.t),[],import.meta.url),"indent-increase":()=>n(()=>import(`./vendor-icon-list-indent-increase-CGYD4Umw.js`).then(e=>e.t),[],import.meta.url),"list-minus":()=>n(()=>import(`./vendor-icon-list-minus-DUI8p7RC.js`).then(e=>e.t),[],import.meta.url),"list-music":()=>n(()=>import(`./vendor-icon-list-music-HhctM0cM.js`).then(e=>e.t),[],import.meta.url),"list-ordered":()=>n(()=>import(`./vendor-icon-list-ordered-DaaRBYov.js`).then(e=>e.n),[],import.meta.url),"list-plus":()=>n(()=>import(`./vendor-icon-list-plus-BQJqh7AR.js`).then(e=>e.t),[],import.meta.url),"list-restart":()=>n(()=>import(`./vendor-icon-list-restart-BtYNUuER.js`).then(e=>e.t),[],import.meta.url),"list-sort-ascending":()=>n(()=>import(`./vendor-icon-list-sort-ascending-BUhazTdJ.js`).then(e=>e.t),[],import.meta.url),"list-sort-descending":()=>n(()=>import(`./vendor-icon-list-sort-descending-BbhYjAOF.js`).then(e=>e.t),[],import.meta.url),"list-start":()=>n(()=>import(`./vendor-icon-list-start-DTi3oAoI.js`).then(e=>e.t),[],import.meta.url),"list-todo":()=>n(()=>import(`./vendor-icon-list-todo-CmVjq0sa.js`).then(e=>e.t),[],import.meta.url),"list-tree":()=>n(()=>import(`./vendor-icon-list-tree-Br55vyL9.js`).then(e=>e.n),[],import.meta.url),"list-video":()=>n(()=>import(`./vendor-icon-list-video-Djss-5N8.js`).then(e=>e.t),[],import.meta.url),"list-x":()=>n(()=>import(`./vendor-icon-list-x-CKmusMMi.js`).then(e=>e.t),[],import.meta.url),list:()=>n(()=>import(`./vendor-icon-list-TLz-7vfa.js`).then(e=>e.n),[],import.meta.url),"loader-circle":()=>n(()=>import(`./vendor-icon-loader-circle-D3PsuVaD.js`).then(e=>e.n),[],import.meta.url),"loader-2":()=>n(()=>import(`./vendor-icon-loader-circle-D3PsuVaD.js`).then(e=>e.n),[],import.meta.url),"loader-pinwheel":()=>n(()=>import(`./vendor-icon-loader-pinwheel-X6cAA45F.js`).then(e=>e.t),[],import.meta.url),loader:()=>n(()=>import(`./vendor-icon-loader-Hoj5OlrQ.js`).then(e=>e.t),[],import.meta.url),"locate-fixed":()=>n(()=>import(`./vendor-icon-locate-fixed-QIGs9D4X.js`).then(e=>e.t),[],import.meta.url),"locate-off":()=>n(()=>import(`./vendor-icon-locate-off-gGSzdfL7.js`).then(e=>e.t),[],import.meta.url),locate:()=>n(()=>import(`./vendor-icon-locate-D8XftzRl.js`).then(e=>e.t),[],import.meta.url),"lock-keyhole-open":()=>n(()=>import(`./vendor-icon-lock-keyhole-open-BaWm6bif.js`).then(e=>e.t),[],import.meta.url),"unlock-keyhole":()=>n(()=>import(`./vendor-icon-lock-keyhole-open-BaWm6bif.js`).then(e=>e.t),[],import.meta.url),"lock-keyhole":()=>n(()=>import(`./vendor-icon-lock-keyhole-Xd1LXFEY.js`).then(e=>e.t),[],import.meta.url),"lock-open":()=>n(()=>import(`./vendor-icon-lock-open-DQyMEeYD.js`).then(e=>e.t),[],import.meta.url),unlock:()=>n(()=>import(`./vendor-icon-lock-open-DQyMEeYD.js`).then(e=>e.t),[],import.meta.url),lock:()=>n(()=>import(`./vendor-icon-lock-B_psRnly.js`).then(e=>e.n),[],import.meta.url),"log-in":()=>n(()=>import(`./vendor-icon-log-in-BnimMBi0.js`).then(e=>e.t),[],import.meta.url),"log-out":()=>n(()=>import(`./vendor-icon-log-out-CecmgsZQ.js`).then(e=>e.n),[],import.meta.url),logs:()=>n(()=>import(`./vendor-icon-logs-CqSSzAoM.js`).then(e=>e.t),[],import.meta.url),lollipop:()=>n(()=>import(`./vendor-icon-lollipop-D-np84mo.js`).then(e=>e.t),[],import.meta.url),luggage:()=>n(()=>import(`./vendor-icon-luggage-BKu9geJn.js`).then(e=>e.t),[],import.meta.url),magnet:()=>n(()=>import(`./vendor-icon-magnet-CDkgKCZV.js`).then(e=>e.t),[],import.meta.url),"mail-badge":()=>n(()=>import(`./vendor-icon-mail-badge-DSUIJqzS.js`).then(e=>e.t),[],import.meta.url),"mail-check":()=>n(()=>import(`./vendor-icon-mail-check-D2N7yV1m.js`).then(e=>e.n),[],import.meta.url),"mail-clock":()=>n(()=>import(`./vendor-icon-mail-clock-DljmAaOk.js`).then(e=>e.t),[],import.meta.url),"mail-minus":()=>n(()=>import(`./vendor-icon-mail-minus-D5JLuZBJ.js`).then(e=>e.t),[],import.meta.url),"mail-open":()=>n(()=>import(`./vendor-icon-mail-open-jXeDfffF.js`).then(e=>e.t),[],import.meta.url),"mail-pen":()=>n(()=>import(`./vendor-icon-mail-pen-D_ZZDmkN.js`).then(e=>e.t),[],import.meta.url),"mail-plus":()=>n(()=>import(`./vendor-icon-mail-plus-DrubbwHR.js`).then(e=>e.t),[],import.meta.url),"mail-question-mark":()=>n(()=>import(`./vendor-icon-mail-question-mark-C4WxAxyl.js`).then(e=>e.t),[],import.meta.url),"mail-question":()=>n(()=>import(`./vendor-icon-mail-question-mark-C4WxAxyl.js`).then(e=>e.t),[],import.meta.url),"mail-search":()=>n(()=>import(`./vendor-icon-mail-search-DxP5Wopv.js`).then(e=>e.t),[],import.meta.url),"mail-warning":()=>n(()=>import(`./vendor-icon-mail-warning-CHCD9km4.js`).then(e=>e.t),[],import.meta.url),"mail-x":()=>n(()=>import(`./vendor-icon-mail-x-DSkjnVZa.js`).then(e=>e.t),[],import.meta.url),mail:()=>n(()=>import(`./vendor-icon-mail-BfkRvgNr.js`).then(e=>e.n),[],import.meta.url),mailbox:()=>n(()=>import(`./vendor-icon-mailbox-B6yzO_OZ.js`).then(e=>e.t),[],import.meta.url),mails:()=>n(()=>import(`./vendor-icon-mails-BRN0437b.js`).then(e=>e.t),[],import.meta.url),"map-minus":()=>n(()=>import(`./vendor-icon-map-minus-DvAvrBjs.js`).then(e=>e.t),[],import.meta.url),"map-pin-check-inside":()=>n(()=>import(`./vendor-icon-map-pin-check-inside-CJjnxdKG.js`).then(e=>e.t),[],import.meta.url),"map-pin-check":()=>n(()=>import(`./vendor-icon-map-pin-check-BERi9wqo.js`).then(e=>e.t),[],import.meta.url),"map-pin-house":()=>n(()=>import(`./vendor-icon-map-pin-house-BBDhGEmB.js`).then(e=>e.t),[],import.meta.url),"map-pin-minus-inside":()=>n(()=>import(`./vendor-icon-map-pin-minus-inside-DBE1YqL5.js`).then(e=>e.t),[],import.meta.url),"map-pin-minus":()=>n(()=>import(`./vendor-icon-map-pin-minus-4OYiH960.js`).then(e=>e.t),[],import.meta.url),"map-pin-off":()=>n(()=>import(`./vendor-icon-map-pin-off-DBlUjvV1.js`).then(e=>e.t),[],import.meta.url),"map-pin-pen":()=>n(()=>import(`./vendor-icon-map-pin-pen-O36JvK-e.js`).then(e=>e.t),[],import.meta.url),"location-edit":()=>n(()=>import(`./vendor-icon-map-pin-pen-O36JvK-e.js`).then(e=>e.t),[],import.meta.url),"map-pin-plus-inside":()=>n(()=>import(`./vendor-icon-map-pin-plus-inside-kf9fjxJm.js`).then(e=>e.t),[],import.meta.url),"map-pin-plus":()=>n(()=>import(`./vendor-icon-map-pin-plus-CWFZg3Ed.js`).then(e=>e.t),[],import.meta.url),"map-pin-search":()=>n(()=>import(`./vendor-icon-map-pin-search--83yQJeg.js`).then(e=>e.t),[],import.meta.url),"map-pin-x-inside":()=>n(()=>import(`./vendor-icon-map-pin-x-inside-BB3DDOMq.js`).then(e=>e.t),[],import.meta.url),"map-pin-x":()=>n(()=>import(`./vendor-icon-map-pin-x-CkZVlC69.js`).then(e=>e.t),[],import.meta.url),"map-pin":()=>n(()=>import(`./vendor-icon-map-pin-BS-hHv53.js`).then(e=>e.n),[],import.meta.url),"map-pinned":()=>n(()=>import(`./vendor-icon-map-pinned-CP3vm-Yw.js`).then(e=>e.t),[],import.meta.url),"map-plus":()=>n(()=>import(`./vendor-icon-map-plus-DBeY9yuQ.js`).then(e=>e.t),[],import.meta.url),map:()=>n(()=>import(`./vendor-icon-map-DsFP3Vmp.js`).then(e=>e.n),[],import.meta.url),"mars-stroke":()=>n(()=>import(`./vendor-icon-mars-stroke-COWMSPpP.js`).then(e=>e.t),[],import.meta.url),mars:()=>n(()=>import(`./vendor-icon-mars-C10IAxoo.js`).then(e=>e.t),[],import.meta.url),martini:()=>n(()=>import(`./vendor-icon-martini-D7VUd2xE.js`).then(e=>e.t),[],import.meta.url),"maximize-2":()=>n(()=>import(`./vendor-icon-maximize-2-C215UtMO.js`).then(e=>e.n),[],import.meta.url),maximize:()=>n(()=>import(`./vendor-icon-maximize-CEefDpCl.js`).then(e=>e.t),[],import.meta.url),medal:()=>n(()=>import(`./vendor-icon-medal-ClX04Y3x.js`).then(e=>e.t),[],import.meta.url),"megaphone-off":()=>n(()=>import(`./vendor-icon-megaphone-off-USmSuubo.js`).then(e=>e.t),[],import.meta.url),megaphone:()=>n(()=>import(`./vendor-icon-megaphone-oiQp-agZ.js`).then(e=>e.t),[],import.meta.url),"memory-stick":()=>n(()=>import(`./vendor-icon-memory-stick-CsgFM5We.js`).then(e=>e.t),[],import.meta.url),menu:()=>n(()=>import(`./vendor-icon-menu-9YHQR0RT.js`).then(e=>e.n),[],import.meta.url),merge:()=>n(()=>import(`./vendor-icon-merge-ejBrerUl.js`).then(e=>e.t),[],import.meta.url),"message-circle-check":()=>n(()=>import(`./vendor-icon-message-circle-check-erox6gHH.js`).then(e=>e.t),[],import.meta.url),"message-circle-code":()=>n(()=>import(`./vendor-icon-message-circle-code-B0CR1qOC.js`).then(e=>e.t),[],import.meta.url),"message-circle-dashed-check":()=>n(()=>import(`./vendor-icon-message-circle-dashed-check-BL3fCmQx.js`).then(e=>e.t),[],import.meta.url),"message-circle-dashed":()=>n(()=>import(`./vendor-icon-message-circle-dashed-Bob3U6zP.js`).then(e=>e.t),[],import.meta.url),"message-circle-heart":()=>n(()=>import(`./vendor-icon-message-circle-heart-BhGPsm9C.js`).then(e=>e.t),[],import.meta.url),"message-circle-more":()=>n(()=>import(`./vendor-icon-message-circle-more-DlaIGWuN.js`).then(e=>e.t),[],import.meta.url),"message-circle-off":()=>n(()=>import(`./vendor-icon-message-circle-off-Dob1qahY.js`).then(e=>e.t),[],import.meta.url),"message-circle-plus":()=>n(()=>import(`./vendor-icon-message-circle-plus-eMEAonMo.js`).then(e=>e.t),[],import.meta.url),"message-circle-question-mark":()=>n(()=>import(`./vendor-icon-message-circle-question-mark-CiRDGKJD.js`).then(e=>e.t),[],import.meta.url),"message-circle-question":()=>n(()=>import(`./vendor-icon-message-circle-question-mark-CiRDGKJD.js`).then(e=>e.t),[],import.meta.url),"message-circle-reply":()=>n(()=>import(`./vendor-icon-message-circle-reply-Bj_AxRhy.js`).then(e=>e.t),[],import.meta.url),"message-circle-warning":()=>n(()=>import(`./vendor-icon-message-circle-warning-CMi9yd9U.js`).then(e=>e.t),[],import.meta.url),"message-circle-x":()=>n(()=>import(`./vendor-icon-message-circle-x-B8ncx1dv.js`).then(e=>e.t),[],import.meta.url),"message-circle":()=>n(()=>import(`./vendor-icon-message-circle-BqNTtTOp.js`).then(e=>e.n),[],import.meta.url),"message-square-check":()=>n(()=>import(`./vendor-icon-message-square-check-CZsCRLtV.js`).then(e=>e.t),[],import.meta.url),"message-square-code":()=>n(()=>import(`./vendor-icon-message-square-code-DRLlUspd.js`).then(e=>e.t),[],import.meta.url),"message-square-dashed":()=>n(()=>import(`./vendor-icon-message-square-dashed-BAmzfQ-W.js`).then(e=>e.t),[],import.meta.url),"message-square-diff":()=>n(()=>import(`./vendor-icon-message-square-diff-BJRb8qGq.js`).then(e=>e.t),[],import.meta.url),"message-square-dot":()=>n(()=>import(`./vendor-icon-message-square-dot-DshJICIf.js`).then(e=>e.t),[],import.meta.url),"message-square-heart":()=>n(()=>import(`./vendor-icon-message-square-heart-D_9Mh7mV.js`).then(e=>e.t),[],import.meta.url),"message-square-lock":()=>n(()=>import(`./vendor-icon-message-square-lock-dv5MT96X.js`).then(e=>e.t),[],import.meta.url),"message-square-more":()=>n(()=>import(`./vendor-icon-message-square-more-Dqer0SCN.js`).then(e=>e.t),[],import.meta.url),"message-square-off":()=>n(()=>import(`./vendor-icon-message-square-off-B1-8JEaT.js`).then(e=>e.t),[],import.meta.url),"message-square-plus":()=>n(()=>import(`./vendor-icon-message-square-plus-CNUxjc-o.js`).then(e=>e.t),[],import.meta.url),"message-square-quote":()=>n(()=>import(`./vendor-icon-message-square-quote-BCp_13jR.js`).then(e=>e.t),[],import.meta.url),"message-square-reply":()=>n(()=>import(`./vendor-icon-message-square-reply-n4FWYBMB.js`).then(e=>e.t),[],import.meta.url),"message-square-share":()=>n(()=>import(`./vendor-icon-message-square-share-BziALXeu.js`).then(e=>e.t),[],import.meta.url),"message-square-text":()=>n(()=>import(`./vendor-icon-message-square-text-DuNOT3Hq.js`).then(e=>e.n),[],import.meta.url),"message-square-warning":()=>n(()=>import(`./vendor-icon-message-square-warning-DfsNkQym.js`).then(e=>e.t),[],import.meta.url),"message-square-x":()=>n(()=>import(`./vendor-icon-message-square-x-381VLpV2.js`).then(e=>e.t),[],import.meta.url),"message-square":()=>n(()=>import(`./vendor-icon-message-square-BObk9Jes.js`).then(e=>e.n),[],import.meta.url),"messages-square":()=>n(()=>import(`./vendor-icon-messages-square-C3r_dZCQ.js`).then(e=>e.n),[],import.meta.url),metronome:()=>n(()=>import(`./vendor-icon-metronome-oNrOClGZ.js`).then(e=>e.t),[],import.meta.url),"mic-audio-lines":()=>n(()=>import(`./vendor-icon-mic-audio-lines-Cst29H8p.js`).then(e=>e.t),[],import.meta.url),"mic-off":()=>n(()=>import(`./vendor-icon-mic-off-COWrMJ7A.js`).then(e=>e.t),[],import.meta.url),"mic-signal":()=>n(()=>import(`./vendor-icon-mic-signal-DKapzQ_J.js`).then(e=>e.t),[],import.meta.url),podcast:()=>n(()=>import(`./vendor-icon-mic-signal-DKapzQ_J.js`).then(e=>e.t),[],import.meta.url),"mic-vocal":()=>n(()=>import(`./vendor-icon-mic-vocal-DanzUYPk.js`).then(e=>e.t),[],import.meta.url),"mic-2":()=>n(()=>import(`./vendor-icon-mic-vocal-DanzUYPk.js`).then(e=>e.t),[],import.meta.url),mic:()=>n(()=>import(`./vendor-icon-mic-Bd34LzoW.js`).then(e=>e.t),[],import.meta.url),microchip:()=>n(()=>import(`./vendor-icon-microchip-DE4NGt1c.js`).then(e=>e.t),[],import.meta.url),microscope:()=>n(()=>import(`./vendor-icon-microscope-BT8bCBl3.js`).then(e=>e.t),[],import.meta.url),microwave:()=>n(()=>import(`./vendor-icon-microwave-yjSq4Dav.js`).then(e=>e.t),[],import.meta.url),"midi-port":()=>n(()=>import(`./vendor-icon-midi-port-ClbV1kfN.js`).then(e=>e.t),[],import.meta.url),milestone:()=>n(()=>import(`./vendor-icon-milestone-BH8N-3VN.js`).then(e=>e.t),[],import.meta.url),"milk-off":()=>n(()=>import(`./vendor-icon-milk-off-CQEg28-m.js`).then(e=>e.t),[],import.meta.url),milk:()=>n(()=>import(`./vendor-icon-milk-CDxFz02f.js`).then(e=>e.t),[],import.meta.url),"minimize-2":()=>n(()=>import(`./vendor-icon-minimize-2-CTEy4oVG.js`).then(e=>e.n),[],import.meta.url),minimize:()=>n(()=>import(`./vendor-icon-minimize-CIL1Ve1V.js`).then(e=>e.t),[],import.meta.url),minus:()=>n(()=>import(`./vendor-icon-minus-CMTDFpmk.js`).then(e=>e.n),[],import.meta.url),"mirror-rectangular":()=>n(()=>import(`./vendor-icon-mirror-rectangular-RynSDFaw.js`).then(e=>e.t),[],import.meta.url),"mirror-round":()=>n(()=>import(`./vendor-icon-mirror-round-BTL1jQZH.js`).then(e=>e.t),[],import.meta.url),"monitor-check":()=>n(()=>import(`./vendor-icon-monitor-check-De3qLqYG.js`).then(e=>e.t),[],import.meta.url),"monitor-cloud":()=>n(()=>import(`./vendor-icon-monitor-cloud-5pwrk1XM.js`).then(e=>e.t),[],import.meta.url),"monitor-cog":()=>n(()=>import(`./vendor-icon-monitor-cog-Mblozju8.js`).then(e=>e.t),[],import.meta.url),"monitor-dot":()=>n(()=>import(`./vendor-icon-monitor-dot-B_BuJJ1x.js`).then(e=>e.t),[],import.meta.url),"monitor-down":()=>n(()=>import(`./vendor-icon-monitor-down-Ds1YG152.js`).then(e=>e.t),[],import.meta.url),"monitor-off":()=>n(()=>import(`./vendor-icon-monitor-off-DEyTdFq3.js`).then(e=>e.t),[],import.meta.url),"monitor-pause":()=>n(()=>import(`./vendor-icon-monitor-pause-BHr7zMB8.js`).then(e=>e.t),[],import.meta.url),"monitor-play":()=>n(()=>import(`./vendor-icon-monitor-play-o0DEetpc.js`).then(e=>e.t),[],import.meta.url),"monitor-smartphone":()=>n(()=>import(`./vendor-icon-monitor-smartphone-CM4rljlr.js`).then(e=>e.n),[],import.meta.url),"monitor-speaker":()=>n(()=>import(`./vendor-icon-monitor-speaker-VVyJMxV_.js`).then(e=>e.t),[],import.meta.url),"monitor-stop":()=>n(()=>import(`./vendor-icon-monitor-stop-pJna2meB.js`).then(e=>e.t),[],import.meta.url),"monitor-up":()=>n(()=>import(`./vendor-icon-monitor-up-CoUXyQQy.js`).then(e=>e.t),[],import.meta.url),"monitor-x":()=>n(()=>import(`./vendor-icon-monitor-x-C-k783Es.js`).then(e=>e.t),[],import.meta.url),monitor:()=>n(()=>import(`./vendor-icon-monitor-C4Tawzob.js`).then(e=>e.n),[],import.meta.url),"moon-star":()=>n(()=>import(`./vendor-icon-moon-star-BsBEOlxB.js`).then(e=>e.t),[],import.meta.url),moon:()=>n(()=>import(`./vendor-icon-moon-C1ZitaV0.js`).then(e=>e.n),[],import.meta.url),"mop-sparkles":()=>n(()=>import(`./vendor-icon-mop-sparkles-Cxz-D60f.js`).then(e=>e.t),[],import.meta.url),mop:()=>n(()=>import(`./vendor-icon-mop-COJU9v7W.js`).then(e=>e.t),[],import.meta.url),mosque:()=>n(()=>import(`./vendor-icon-mosque-CguZt-3K.js`).then(e=>e.t),[],import.meta.url),motorbike:()=>n(()=>import(`./vendor-icon-motorbike-B0sRXhdi.js`).then(e=>e.t),[],import.meta.url),"mountain-snow":()=>n(()=>import(`./vendor-icon-mountain-snow-C-KsiP_h.js`).then(e=>e.t),[],import.meta.url),mountain:()=>n(()=>import(`./vendor-icon-mountain-B3HDRSH_.js`).then(e=>e.t),[],import.meta.url),"mouse-left":()=>n(()=>import(`./vendor-icon-mouse-left-DMOn1Ekl.js`).then(e=>e.t),[],import.meta.url),"mouse-off":()=>n(()=>import(`./vendor-icon-mouse-off-DfNTUVxF.js`).then(e=>e.t),[],import.meta.url),"mouse-pointer-2-off":()=>n(()=>import(`./vendor-icon-mouse-pointer-2-off-adB4DTJT.js`).then(e=>e.t),[],import.meta.url),"mouse-pointer-2":()=>n(()=>import(`./vendor-icon-mouse-pointer-2-BK7MBFPs.js`).then(e=>e.n),[],import.meta.url),"mouse-pointer-ban":()=>n(()=>import(`./vendor-icon-mouse-pointer-ban-ekV6CXG5.js`).then(e=>e.t),[],import.meta.url),"mouse-pointer-click":()=>n(()=>import(`./vendor-icon-mouse-pointer-click-WdN96Sza.js`).then(e=>e.n),[],import.meta.url),"mouse-pointer":()=>n(()=>import(`./vendor-icon-mouse-pointer-gxVJZX9_.js`).then(e=>e.t),[],import.meta.url),"mouse-right":()=>n(()=>import(`./vendor-icon-mouse-right-CRszdOou.js`).then(e=>e.t),[],import.meta.url),mouse:()=>n(()=>import(`./vendor-icon-mouse-BgKVOKoP.js`).then(e=>e.t),[],import.meta.url),"move-3d":()=>n(()=>import(`./vendor-icon-move-3d-BwykkpTp.js`).then(e=>e.t),[],import.meta.url),"move-3-d":()=>n(()=>import(`./vendor-icon-move-3d-BwykkpTp.js`).then(e=>e.t),[],import.meta.url),"move-diagonal-2":()=>n(()=>import(`./vendor-icon-move-diagonal-2-BBZDizVs.js`).then(e=>e.t),[],import.meta.url),"move-diagonal":()=>n(()=>import(`./vendor-icon-move-diagonal-Dte3vBxJ.js`).then(e=>e.t),[],import.meta.url),"move-down-left":()=>n(()=>import(`./vendor-icon-move-down-left-Cd-yawEn.js`).then(e=>e.t),[],import.meta.url),"move-down-right":()=>n(()=>import(`./vendor-icon-move-down-right-my2-83hW.js`).then(e=>e.t),[],import.meta.url),"move-down":()=>n(()=>import(`./vendor-icon-move-down-0l6ecs6x.js`).then(e=>e.t),[],import.meta.url),"move-horizontal":()=>n(()=>import(`./vendor-icon-move-horizontal-CzZSYS0m.js`).then(e=>e.t),[],import.meta.url),"move-left":()=>n(()=>import(`./vendor-icon-move-left-CT7Xxi9h.js`).then(e=>e.t),[],import.meta.url),"move-right":()=>n(()=>import(`./vendor-icon-move-right-cG-Vxv-d.js`).then(e=>e.t),[],import.meta.url),"move-up-left":()=>n(()=>import(`./vendor-icon-move-up-left-BFQAn-uo.js`).then(e=>e.t),[],import.meta.url),"move-up-right":()=>n(()=>import(`./vendor-icon-move-up-right-Cfjdn8SQ.js`).then(e=>e.t),[],import.meta.url),"move-up":()=>n(()=>import(`./vendor-icon-move-up-DiEUzlJd.js`).then(e=>e.t),[],import.meta.url),"move-vertical":()=>n(()=>import(`./vendor-icon-move-vertical-MUjaeYJw.js`).then(e=>e.t),[],import.meta.url),move:()=>n(()=>import(`./vendor-icon-move-yrUjjzQ_.js`).then(e=>e.t),[],import.meta.url),"music-2":()=>n(()=>import(`./vendor-icon-music-2-sPSfBQ8c.js`).then(e=>e.t),[],import.meta.url),"music-3":()=>n(()=>import(`./vendor-icon-music-3-BRIkDtBa.js`).then(e=>e.t),[],import.meta.url),"music-4":()=>n(()=>import(`./vendor-icon-music-4-BQA5g9ce.js`).then(e=>e.t),[],import.meta.url),music:()=>n(()=>import(`./vendor-icon-music-BgjL4llt.js`).then(e=>e.n),[],import.meta.url),"navigation-2-off":()=>n(()=>import(`./vendor-icon-navigation-2-off-7Ue6UAj7.js`).then(e=>e.t),[],import.meta.url),"navigation-2":()=>n(()=>import(`./vendor-icon-navigation-2-D_F_cIIV.js`).then(e=>e.t),[],import.meta.url),"navigation-off":()=>n(()=>import(`./vendor-icon-navigation-off-DF1qSCvQ.js`).then(e=>e.t),[],import.meta.url),navigation:()=>n(()=>import(`./vendor-icon-navigation-phWZOG8x.js`).then(e=>e.t),[],import.meta.url),network:()=>n(()=>import(`./vendor-icon-network-6ADGC5P5.js`).then(e=>e.n),[],import.meta.url),newspaper:()=>n(()=>import(`./vendor-icon-newspaper-COkxr4VH.js`).then(e=>e.t),[],import.meta.url),nfc:()=>n(()=>import(`./vendor-icon-nfc-BngL30fu.js`).then(e=>e.t),[],import.meta.url),"non-binary":()=>n(()=>import(`./vendor-icon-non-binary-S6NgMoCx.js`).then(e=>e.t),[],import.meta.url),"notebook-pen":()=>n(()=>import(`./vendor-icon-notebook-pen-Ciwk64pp.js`).then(e=>e.t),[],import.meta.url),"notebook-tabs":()=>n(()=>import(`./vendor-icon-notebook-tabs-BtU2Dlc5.js`).then(e=>e.t),[],import.meta.url),"notebook-text":()=>n(()=>import(`./vendor-icon-notebook-text-K1ZxwSFI.js`).then(e=>e.t),[],import.meta.url),notebook:()=>n(()=>import(`./vendor-icon-notebook-CpvLnkP6.js`).then(e=>e.t),[],import.meta.url),"notepad-text-dashed":()=>n(()=>import(`./vendor-icon-notepad-text-dashed-D14lJLlt.js`).then(e=>e.t),[],import.meta.url),"notepad-text":()=>n(()=>import(`./vendor-icon-notepad-text-B9eYnEPb.js`).then(e=>e.t),[],import.meta.url),"nut-off":()=>n(()=>import(`./vendor-icon-nut-off-BJR8FgPu.js`).then(e=>e.t),[],import.meta.url),nut:()=>n(()=>import(`./vendor-icon-nut-BQvsaOCc.js`).then(e=>e.t),[],import.meta.url),"octagon-alert":()=>n(()=>import(`./vendor-icon-octagon-alert-BR7dr-I_.js`).then(e=>e.t),[],import.meta.url),"alert-octagon":()=>n(()=>import(`./vendor-icon-octagon-alert-BR7dr-I_.js`).then(e=>e.t),[],import.meta.url),"octagon-minus":()=>n(()=>import(`./vendor-icon-octagon-minus-CFlRviUN.js`).then(e=>e.t),[],import.meta.url),"octagon-pause":()=>n(()=>import(`./vendor-icon-octagon-pause-bzkHaxqS.js`).then(e=>e.t),[],import.meta.url),"pause-octagon":()=>n(()=>import(`./vendor-icon-octagon-pause-bzkHaxqS.js`).then(e=>e.t),[],import.meta.url),"octagon-x":()=>n(()=>import(`./vendor-icon-octagon-x-DJaJymPi.js`).then(e=>e.n),[],import.meta.url),"x-octagon":()=>n(()=>import(`./vendor-icon-octagon-x-DJaJymPi.js`).then(e=>e.n),[],import.meta.url),octagon:()=>n(()=>import(`./vendor-icon-octagon-CSUTnmT3.js`).then(e=>e.t),[],import.meta.url),omega:()=>n(()=>import(`./vendor-icon-omega-CFH269oa.js`).then(e=>e.t),[],import.meta.url),option:()=>n(()=>import(`./vendor-icon-option-D-caK764.js`).then(e=>e.t),[],import.meta.url),orbit:()=>n(()=>import(`./vendor-icon-orbit-GWGHiydC.js`).then(e=>e.t),[],import.meta.url),origami:()=>n(()=>import(`./vendor-icon-origami-BJqzoQv0.js`).then(e=>e.t),[],import.meta.url),"package-2":()=>n(()=>import(`./vendor-icon-package-2-DpCfv9_e.js`).then(e=>e.t),[],import.meta.url),"package-check":()=>n(()=>import(`./vendor-icon-package-check-ContVzzn.js`).then(e=>e.t),[],import.meta.url),"package-minus":()=>n(()=>import(`./vendor-icon-package-minus-BszigX2e.js`).then(e=>e.t),[],import.meta.url),"package-open":()=>n(()=>import(`./vendor-icon-package-open-D7O9qUER.js`).then(e=>e.n),[],import.meta.url),"package-plus":()=>n(()=>import(`./vendor-icon-package-plus-Go44QkuY.js`).then(e=>e.t),[],import.meta.url),"package-search":()=>n(()=>import(`./vendor-icon-package-search-DfthZm42.js`).then(e=>e.t),[],import.meta.url),"package-x":()=>n(()=>import(`./vendor-icon-package-x-BeUygarX.js`).then(e=>e.t),[],import.meta.url),package:()=>n(()=>import(`./vendor-icon-package-B6zAlWd3.js`).then(e=>e.n),[],import.meta.url),"paint-bucket":()=>n(()=>import(`./vendor-icon-paint-bucket-YH0XClSL.js`).then(e=>e.t),[],import.meta.url),"paint-roller":()=>n(()=>import(`./vendor-icon-paint-roller-nscLLt8J.js`).then(e=>e.t),[],import.meta.url),"paintbrush-vertical":()=>n(()=>import(`./vendor-icon-paintbrush-vertical-DOMYVEKf.js`).then(e=>e.t),[],import.meta.url),"paintbrush-2":()=>n(()=>import(`./vendor-icon-paintbrush-vertical-DOMYVEKf.js`).then(e=>e.t),[],import.meta.url),paintbrush:()=>n(()=>import(`./vendor-icon-paintbrush-BDpkFJjT.js`).then(e=>e.n),[],import.meta.url),palette:()=>n(()=>import(`./vendor-icon-palette-CazWMHVl.js`).then(e=>e.n),[],import.meta.url),panda:()=>n(()=>import(`./vendor-icon-panda-BhneLPC3.js`).then(e=>e.t),[],import.meta.url),"panel-bottom-close":()=>n(()=>import(`./vendor-icon-panel-bottom-close-C1VOVP5k.js`).then(e=>e.t),[],import.meta.url),"panel-bottom-dashed":()=>n(()=>import(`./vendor-icon-panel-bottom-dashed-CWZ3dVuN.js`).then(e=>e.t),[],import.meta.url),"panel-bottom-inactive":()=>n(()=>import(`./vendor-icon-panel-bottom-dashed-CWZ3dVuN.js`).then(e=>e.t),[],import.meta.url),"panel-bottom-open":()=>n(()=>import(`./vendor-icon-panel-bottom-open-BFVN_fKe.js`).then(e=>e.t),[],import.meta.url),"panel-bottom":()=>n(()=>import(`./vendor-icon-panel-bottom-DmyC876M.js`).then(e=>e.n),[],import.meta.url),"panel-left-close":()=>n(()=>import(`./vendor-icon-panel-left-close-CrofkR7D.js`).then(e=>e.n),[],import.meta.url),"sidebar-close":()=>n(()=>import(`./vendor-icon-panel-left-close-CrofkR7D.js`).then(e=>e.n),[],import.meta.url),"panel-left-dashed":()=>n(()=>import(`./vendor-icon-panel-left-dashed-DQ9eD0dm.js`).then(e=>e.t),[],import.meta.url),"panel-left-inactive":()=>n(()=>import(`./vendor-icon-panel-left-dashed-DQ9eD0dm.js`).then(e=>e.t),[],import.meta.url),"panel-left-open":()=>n(()=>import(`./vendor-icon-panel-left-open-DXRZV0DR.js`).then(e=>e.n),[],import.meta.url),"sidebar-open":()=>n(()=>import(`./vendor-icon-panel-left-open-DXRZV0DR.js`).then(e=>e.n),[],import.meta.url),"panel-left-right-dashed":()=>n(()=>import(`./vendor-icon-panel-left-right-dashed-OQ1cxyd-.js`).then(e=>e.t),[],import.meta.url),"panel-left":()=>n(()=>import(`./vendor-icon-panel-left-Cml87N0K.js`).then(e=>e.n),[],import.meta.url),sidebar:()=>n(()=>import(`./vendor-icon-panel-left-Cml87N0K.js`).then(e=>e.n),[],import.meta.url),"panel-right-close":()=>n(()=>import(`./vendor-icon-panel-right-close-B1IgPiA5.js`).then(e=>e.n),[],import.meta.url),"panel-right-dashed":()=>n(()=>import(`./vendor-icon-panel-right-dashed-PTsSnKwF.js`).then(e=>e.t),[],import.meta.url),"panel-right-inactive":()=>n(()=>import(`./vendor-icon-panel-right-dashed-PTsSnKwF.js`).then(e=>e.t),[],import.meta.url),"panel-right-open":()=>n(()=>import(`./vendor-icon-panel-right-open-DRcsA0VE.js`).then(e=>e.n),[],import.meta.url),"panel-right":()=>n(()=>import(`./vendor-icon-panel-right-CzpSEi8j.js`).then(e=>e.n),[],import.meta.url),"panel-top-bottom-dashed":()=>n(()=>import(`./vendor-icon-panel-top-bottom-dashed-DcVTjVDW.js`).then(e=>e.t),[],import.meta.url),"panel-top-close":()=>n(()=>import(`./vendor-icon-panel-top-close-DS_JdG4Q.js`).then(e=>e.t),[],import.meta.url),"panel-top-dashed":()=>n(()=>import(`./vendor-icon-panel-top-dashed-D4KSg7ea.js`).then(e=>e.t),[],import.meta.url),"panel-top-inactive":()=>n(()=>import(`./vendor-icon-panel-top-dashed-D4KSg7ea.js`).then(e=>e.t),[],import.meta.url),"panel-top-open":()=>n(()=>import(`./vendor-icon-panel-top-open-CLC3_5vv.js`).then(e=>e.t),[],import.meta.url),"panel-top":()=>n(()=>import(`./vendor-icon-panel-top-BRy5u3nR.js`).then(e=>e.n),[],import.meta.url),"panels-left-bottom":()=>n(()=>import(`./vendor-icon-panels-left-bottom-CJa4lUVA.js`).then(e=>e.t),[],import.meta.url),"panels-right-bottom":()=>n(()=>import(`./vendor-icon-panels-right-bottom-qjYETuSN.js`).then(e=>e.t),[],import.meta.url),"panels-top-left":()=>n(()=>import(`./vendor-icon-panels-top-left-BR5oKE-H.js`).then(e=>e.n),[],import.meta.url),layout:()=>n(()=>import(`./vendor-icon-panels-top-left-BR5oKE-H.js`).then(e=>e.n),[],import.meta.url),"paper-bag":()=>n(()=>import(`./vendor-icon-paper-bag-B5UkJNJa.js`).then(e=>e.t),[],import.meta.url),paperclip:()=>n(()=>import(`./vendor-icon-paperclip-zxZDBuvr.js`).then(e=>e.n),[],import.meta.url),parasol:()=>n(()=>import(`./vendor-icon-parasol-Ch7k2R20.js`).then(e=>e.t),[],import.meta.url),parentheses:()=>n(()=>import(`./vendor-icon-parentheses-KLpncni2.js`).then(e=>e.t),[],import.meta.url),"parking-meter":()=>n(()=>import(`./vendor-icon-parking-meter-P20w1C4k.js`).then(e=>e.t),[],import.meta.url),"party-popper":()=>n(()=>import(`./vendor-icon-party-popper-CnWvsouG.js`).then(e=>e.t),[],import.meta.url),pause:()=>n(()=>import(`./vendor-icon-pause-BY0iVW1w.js`).then(e=>e.t),[],import.meta.url),"paw-print":()=>n(()=>import(`./vendor-icon-paw-print-CjzqkWXB.js`).then(e=>e.t),[],import.meta.url),"pc-case":()=>n(()=>import(`./vendor-icon-pc-case-BdOpvo-D.js`).then(e=>e.t),[],import.meta.url),"pen-line":()=>n(()=>import(`./vendor-icon-pen-line-DkmKO8hB.js`).then(e=>e.n),[],import.meta.url),"edit-3":()=>n(()=>import(`./vendor-icon-pen-line-DkmKO8hB.js`).then(e=>e.n),[],import.meta.url),"pen-off":()=>n(()=>import(`./vendor-icon-pen-off-SxLrEIAV.js`).then(e=>e.t),[],import.meta.url),"pen-tool":()=>n(()=>import(`./vendor-icon-pen-tool-DHbojDwg.js`).then(e=>e.t),[],import.meta.url),pen:()=>n(()=>import(`./vendor-icon-pen-BlwC8DBT.js`).then(e=>e.t),[],import.meta.url),"edit-2":()=>n(()=>import(`./vendor-icon-pen-BlwC8DBT.js`).then(e=>e.t),[],import.meta.url),"pencil-line":()=>n(()=>import(`./vendor-icon-pencil-line-cpOuCQWz.js`).then(e=>e.t),[],import.meta.url),"pencil-off":()=>n(()=>import(`./vendor-icon-pencil-off-3Sxylx1I.js`).then(e=>e.t),[],import.meta.url),"pencil-ruler":()=>n(()=>import(`./vendor-icon-pencil-ruler-B4MAlAds.js`).then(e=>e.t),[],import.meta.url),"pencil-sparkles":()=>n(()=>import(`./vendor-icon-pencil-sparkles-BocAg6XO.js`).then(e=>e.t),[],import.meta.url),pencil:()=>n(()=>import(`./vendor-icon-pencil-CMubUBjW.js`).then(e=>e.n),[],import.meta.url),pentagon:()=>n(()=>import(`./vendor-icon-pentagon-Br0HPimq.js`).then(e=>e.t),[],import.meta.url),percent:()=>n(()=>import(`./vendor-icon-percent-aqm_PHEM.js`).then(e=>e.n),[],import.meta.url),"person-standing":()=>n(()=>import(`./vendor-icon-person-standing-D9UBkeYu.js`).then(e=>e.t),[],import.meta.url),phi:()=>n(()=>import(`./vendor-icon-phi-DKlPVoBN.js`).then(e=>e.t),[],import.meta.url),"philippine-peso":()=>n(()=>import(`./vendor-icon-philippine-peso-CBOsoxAX.js`).then(e=>e.t),[],import.meta.url),"phone-call":()=>n(()=>import(`./vendor-icon-phone-call-DMu0APL2.js`).then(e=>e.t),[],import.meta.url),"phone-forwarded":()=>n(()=>import(`./vendor-icon-phone-forwarded-DmxZvdUr.js`).then(e=>e.t),[],import.meta.url),"phone-incoming":()=>n(()=>import(`./vendor-icon-phone-incoming-DUom682F.js`).then(e=>e.t),[],import.meta.url),"phone-missed":()=>n(()=>import(`./vendor-icon-phone-missed-B0MqQXw4.js`).then(e=>e.t),[],import.meta.url),"phone-off":()=>n(()=>import(`./vendor-icon-phone-off-ByVnP5B6.js`).then(e=>e.t),[],import.meta.url),"phone-outgoing":()=>n(()=>import(`./vendor-icon-phone-outgoing-swCcAox0.js`).then(e=>e.t),[],import.meta.url),phone:()=>n(()=>import(`./vendor-icon-phone-H1S8HSi1.js`).then(e=>e.n),[],import.meta.url),pi:()=>n(()=>import(`./vendor-icon-pi-CQGC8NW3.js`).then(e=>e.t),[],import.meta.url),piano:()=>n(()=>import(`./vendor-icon-piano-ISwKhVEs.js`).then(e=>e.t),[],import.meta.url),pickaxe:()=>n(()=>import(`./vendor-icon-pickaxe-CMdWCvhM.js`).then(e=>e.t),[],import.meta.url),"picture-in-picture-2":()=>n(()=>import(`./vendor-icon-picture-in-picture-2-DmXM5Gri.js`).then(e=>e.t),[],import.meta.url),"picture-in-picture":()=>n(()=>import(`./vendor-icon-picture-in-picture-Z0T_MAyK.js`).then(e=>e.t),[],import.meta.url),"piggy-bank":()=>n(()=>import(`./vendor-icon-piggy-bank-wUYb7cdi.js`).then(e=>e.t),[],import.meta.url),"pilcrow-left":()=>n(()=>import(`./vendor-icon-pilcrow-left-C8Rytg2f.js`).then(e=>e.t),[],import.meta.url),"pilcrow-right":()=>n(()=>import(`./vendor-icon-pilcrow-right-C5hLO8DT.js`).then(e=>e.t),[],import.meta.url),pilcrow:()=>n(()=>import(`./vendor-icon-pilcrow-CZMSgsZW.js`).then(e=>e.t),[],import.meta.url),"pill-bottle":()=>n(()=>import(`./vendor-icon-pill-bottle-Z02L_wB8.js`).then(e=>e.t),[],import.meta.url),pill:()=>n(()=>import(`./vendor-icon-pill-DrptoSz8.js`).then(e=>e.t),[],import.meta.url),"pin-off":()=>n(()=>import(`./vendor-icon-pin-off-C5gX5GZ0.js`).then(e=>e.n),[],import.meta.url),pin:()=>n(()=>import(`./vendor-icon-pin-BWwVcO2t.js`).then(e=>e.n),[],import.meta.url),pipette:()=>n(()=>import(`./vendor-icon-pipette-TKwCWet-.js`).then(e=>e.t),[],import.meta.url),pizza:()=>n(()=>import(`./vendor-icon-pizza-CkLZXwOP.js`).then(e=>e.t),[],import.meta.url),"plane-landing":()=>n(()=>import(`./vendor-icon-plane-landing-BXNqxdI8.js`).then(e=>e.t),[],import.meta.url),"plane-takeoff":()=>n(()=>import(`./vendor-icon-plane-takeoff-CH-lnGzb.js`).then(e=>e.t),[],import.meta.url),plane:()=>n(()=>import(`./vendor-icon-plane-DkLXOEYm.js`).then(e=>e.t),[],import.meta.url),"play-off":()=>n(()=>import(`./vendor-icon-play-off-JQ-eHWvB.js`).then(e=>e.t),[],import.meta.url),play:()=>n(()=>import(`./vendor-icon-play-BfFoh-7G.js`).then(e=>e.n),[],import.meta.url),"playing-card":()=>n(()=>import(`./vendor-icon-playing-card-BM7vSq9u.js`).then(e=>e.t),[],import.meta.url),"playing-cards-fan":()=>n(()=>import(`./vendor-icon-playing-cards-fan-htSYRlKY.js`).then(e=>e.t),[],import.meta.url),"playing-cards":()=>n(()=>import(`./vendor-icon-playing-cards-adAWOMqF.js`).then(e=>e.t),[],import.meta.url),"plug-2":()=>n(()=>import(`./vendor-icon-plug-2-DsxLQckc.js`).then(e=>e.t),[],import.meta.url),"plug-zap":()=>n(()=>import(`./vendor-icon-plug-zap-D_pioVHV.js`).then(e=>e.t),[],import.meta.url),"plug-zap-2":()=>n(()=>import(`./vendor-icon-plug-zap-D_pioVHV.js`).then(e=>e.t),[],import.meta.url),plug:()=>n(()=>import(`./vendor-icon-plug-CL1O_4J3.js`).then(e=>e.n),[],import.meta.url),plus:()=>n(()=>import(`./vendor-icon-plus-BlfcDDsa.js`).then(e=>e.n),[],import.meta.url),"pocket-knife":()=>n(()=>import(`./vendor-icon-pocket-knife-CK2R2YP7.js`).then(e=>e.t),[],import.meta.url),podium:()=>n(()=>import(`./vendor-icon-podium-DVAK0s14.js`).then(e=>e.t),[],import.meta.url),"pointer-off":()=>n(()=>import(`./vendor-icon-pointer-off-CxhPhAtC.js`).then(e=>e.t),[],import.meta.url),pointer:()=>n(()=>import(`./vendor-icon-pointer-BH8uufy7.js`).then(e=>e.t),[],import.meta.url),popcorn:()=>n(()=>import(`./vendor-icon-popcorn-CcF5nHvF.js`).then(e=>e.t),[],import.meta.url),popsicle:()=>n(()=>import(`./vendor-icon-popsicle-D9qDEYYC.js`).then(e=>e.t),[],import.meta.url),"pound-sterling":()=>n(()=>import(`./vendor-icon-pound-sterling-AmEtL9FO.js`).then(e=>e.t),[],import.meta.url),"power-off":()=>n(()=>import(`./vendor-icon-power-off-4BJhC7rc.js`).then(e=>e.n),[],import.meta.url),power:()=>n(()=>import(`./vendor-icon-power-CySrWbJV.js`).then(e=>e.n),[],import.meta.url),presentation:()=>n(()=>import(`./vendor-icon-presentation-DHS80egl.js`).then(e=>e.t),[],import.meta.url),"printer-check":()=>n(()=>import(`./vendor-icon-printer-check-DwuA6ed8.js`).then(e=>e.t),[],import.meta.url),"printer-x":()=>n(()=>import(`./vendor-icon-printer-x-JRCJIjVu.js`).then(e=>e.t),[],import.meta.url),printer:()=>n(()=>import(`./vendor-icon-printer-VcYhF59P.js`).then(e=>e.n),[],import.meta.url),projector:()=>n(()=>import(`./vendor-icon-projector-Dt3VfiOX.js`).then(e=>e.t),[],import.meta.url),proportions:()=>n(()=>import(`./vendor-icon-proportions-CR48_r34.js`).then(e=>e.t),[],import.meta.url),puzzle:()=>n(()=>import(`./vendor-icon-puzzle-D0_dPnVP.js`).then(e=>e.n),[],import.meta.url),pyramid:()=>n(()=>import(`./vendor-icon-pyramid-zyFgYTIf.js`).then(e=>e.t),[],import.meta.url),"qr-code":()=>n(()=>import(`./vendor-icon-qr-code-mzDrPZIo.js`).then(e=>e.n),[],import.meta.url),quote:()=>n(()=>import(`./vendor-icon-quote-BBQ8HU8N.js`).then(e=>e.t),[],import.meta.url),rabbit:()=>n(()=>import(`./vendor-icon-rabbit-Bh2729Jl.js`).then(e=>e.t),[],import.meta.url),radar:()=>n(()=>import(`./vendor-icon-radar-DOQ1jDaY.js`).then(e=>e.t),[],import.meta.url),radiation:()=>n(()=>import(`./vendor-icon-radiation-BjxMvFZ7.js`).then(e=>e.t),[],import.meta.url),radical:()=>n(()=>import(`./vendor-icon-radical-CnRQuN4I.js`).then(e=>e.t),[],import.meta.url),"radio-off":()=>n(()=>import(`./vendor-icon-radio-off-DKv9TwzZ.js`).then(e=>e.t),[],import.meta.url),"radio-receiver":()=>n(()=>import(`./vendor-icon-radio-receiver-Brtz1zUM.js`).then(e=>e.t),[],import.meta.url),"radio-tower":()=>n(()=>import(`./vendor-icon-radio-tower-Dn5Rny_-.js`).then(e=>e.t),[],import.meta.url),radio:()=>n(()=>import(`./vendor-icon-radio-RU9TWcHh.js`).then(e=>e.t),[],import.meta.url),radius:()=>n(()=>import(`./vendor-icon-radius-Be1bfaqx.js`).then(e=>e.t),[],import.meta.url),rainbow:()=>n(()=>import(`./vendor-icon-rainbow-BXep1DLc.js`).then(e=>e.t),[],import.meta.url),rat:()=>n(()=>import(`./vendor-icon-rat-CFkP0VkD.js`).then(e=>e.t),[],import.meta.url),ratio:()=>n(()=>import(`./vendor-icon-ratio-B9No49cS.js`).then(e=>e.t),[],import.meta.url),"receipt-cent":()=>n(()=>import(`./vendor-icon-receipt-cent-B_QvWjYu.js`).then(e=>e.t),[],import.meta.url),"receipt-euro":()=>n(()=>import(`./vendor-icon-receipt-euro-BdOOS4br.js`).then(e=>e.t),[],import.meta.url),"receipt-indian-rupee":()=>n(()=>import(`./vendor-icon-receipt-indian-rupee-DhCxb32i.js`).then(e=>e.t),[],import.meta.url),"receipt-japanese-yen":()=>n(()=>import(`./vendor-icon-receipt-japanese-yen-BMeGFCkQ.js`).then(e=>e.t),[],import.meta.url),"receipt-pound-sterling":()=>n(()=>import(`./vendor-icon-receipt-pound-sterling-Cewfebkb.js`).then(e=>e.t),[],import.meta.url),"receipt-russian-ruble":()=>n(()=>import(`./vendor-icon-receipt-russian-ruble-nDzsu6oS.js`).then(e=>e.t),[],import.meta.url),"receipt-swiss-franc":()=>n(()=>import(`./vendor-icon-receipt-swiss-franc-BCT83Ukf.js`).then(e=>e.t),[],import.meta.url),"receipt-text":()=>n(()=>import(`./vendor-icon-receipt-text-B0_uzTMk.js`).then(e=>e.t),[],import.meta.url),"receipt-turkish-lira":()=>n(()=>import(`./vendor-icon-receipt-turkish-lira-CZnMI0Br.js`).then(e=>e.t),[],import.meta.url),receipt:()=>n(()=>import(`./vendor-icon-receipt-BVMBeeU2.js`).then(e=>e.t),[],import.meta.url),"rectangle-circle":()=>n(()=>import(`./vendor-icon-rectangle-circle-BN1o6yw9.js`).then(e=>e.t),[],import.meta.url),"rectangle-ellipsis":()=>n(()=>import(`./vendor-icon-rectangle-ellipsis-CAvWLjnI.js`).then(e=>e.n),[],import.meta.url),"form-input":()=>n(()=>import(`./vendor-icon-rectangle-ellipsis-CAvWLjnI.js`).then(e=>e.n),[],import.meta.url),"rectangle-goggles":()=>n(()=>import(`./vendor-icon-rectangle-goggles-DWT9om1d.js`).then(e=>e.t),[],import.meta.url),"rectangle-horizontal":()=>n(()=>import(`./vendor-icon-rectangle-horizontal-BcilcVto.js`).then(e=>e.t),[],import.meta.url),"rectangle-vertical":()=>n(()=>import(`./vendor-icon-rectangle-vertical-CMZK60nx.js`).then(e=>e.t),[],import.meta.url),recycle:()=>n(()=>import(`./vendor-icon-recycle-_RyrnHbB.js`).then(e=>e.t),[],import.meta.url),"redo-2":()=>n(()=>import(`./vendor-icon-redo-2-BJ-uEK0D.js`).then(e=>e.n),[],import.meta.url),"redo-dot":()=>n(()=>import(`./vendor-icon-redo-dot-Dv_nZ0SN.js`).then(e=>e.t),[],import.meta.url),redo:()=>n(()=>import(`./vendor-icon-redo-C4kK9unm.js`).then(e=>e.t),[],import.meta.url),"refresh-ccw-dot":()=>n(()=>import(`./vendor-icon-refresh-ccw-dot-qTcNxRWh.js`).then(e=>e.t),[],import.meta.url),"refresh-ccw":()=>n(()=>import(`./vendor-icon-refresh-ccw-QRCaXN-I.js`).then(e=>e.n),[],import.meta.url),"refresh-cw-off":()=>n(()=>import(`./vendor-icon-refresh-cw-off-Dm8rMGEI.js`).then(e=>e.t),[],import.meta.url),"refresh-cw":()=>n(()=>import(`./vendor-icon-refresh-cw-BGjSPEfJ.js`).then(e=>e.n),[],import.meta.url),refrigerator:()=>n(()=>import(`./vendor-icon-refrigerator-LtHCa7Li.js`).then(e=>e.t),[],import.meta.url),regex:()=>n(()=>import(`./vendor-icon-regex-B4Eime8Q.js`).then(e=>e.n),[],import.meta.url),"remove-formatting":()=>n(()=>import(`./vendor-icon-remove-formatting-crht3sYK.js`).then(e=>e.t),[],import.meta.url),"repeat-1":()=>n(()=>import(`./vendor-icon-repeat-1-BDZxn7Hv.js`).then(e=>e.t),[],import.meta.url),"repeat-2":()=>n(()=>import(`./vendor-icon-repeat-2-CmdCGeQ0.js`).then(e=>e.n),[],import.meta.url),"repeat-off":()=>n(()=>import(`./vendor-icon-repeat-off-BhxruLSc.js`).then(e=>e.t),[],import.meta.url),repeat:()=>n(()=>import(`./vendor-icon-repeat-_fqynyPW.js`).then(e=>e.n),[],import.meta.url),"replace-all":()=>n(()=>import(`./vendor-icon-replace-all-DJH9sLnv.js`).then(e=>e.t),[],import.meta.url),replace:()=>n(()=>import(`./vendor-icon-replace-q9SRAbqb.js`).then(e=>e.t),[],import.meta.url),"reply-all":()=>n(()=>import(`./vendor-icon-reply-all-BjwKVRMk.js`).then(e=>e.t),[],import.meta.url),reply:()=>n(()=>import(`./vendor-icon-reply-BrhXy6zj.js`).then(e=>e.t),[],import.meta.url),rewind:()=>n(()=>import(`./vendor-icon-rewind-B3gG_oCT.js`).then(e=>e.t),[],import.meta.url),ribbon:()=>n(()=>import(`./vendor-icon-ribbon-SZrpRwMU.js`).then(e=>e.t),[],import.meta.url),road:()=>n(()=>import(`./vendor-icon-road-CbrR5DBf.js`).then(e=>e.t),[],import.meta.url),"robot-arm":()=>n(()=>import(`./vendor-icon-robot-arm-DmEf1mm4.js`).then(e=>e.t),[],import.meta.url),"robot-vacuum":()=>n(()=>import(`./vendor-icon-robot-vacuum-DutJTVDo.js`).then(e=>e.t),[],import.meta.url),rocket:()=>n(()=>import(`./vendor-icon-rocket-9sBBTCrW.js`).then(e=>e.n),[],import.meta.url),"rocking-chair":()=>n(()=>import(`./vendor-icon-rocking-chair-CtEtjnwz.js`).then(e=>e.t),[],import.meta.url),"roller-coaster":()=>n(()=>import(`./vendor-icon-roller-coaster-rUwPSg8o.js`).then(e=>e.t),[],import.meta.url),rose:()=>n(()=>import(`./vendor-icon-rose-CjwWp3Hv.js`).then(e=>e.t),[],import.meta.url),"rotate-3d":()=>n(()=>import(`./vendor-icon-rotate-3d-DjGEMp1N.js`).then(e=>e.t),[],import.meta.url),"rotate-3-d":()=>n(()=>import(`./vendor-icon-rotate-3d-DjGEMp1N.js`).then(e=>e.t),[],import.meta.url),"rotate-ccw-clock":()=>n(()=>import(`./vendor-icon-rotate-ccw-clock-DyTX5-aX.js`).then(e=>e.n),[],import.meta.url),history:()=>n(()=>import(`./vendor-icon-rotate-ccw-clock-DyTX5-aX.js`).then(e=>e.n),[],import.meta.url),"rotate-ccw-key":()=>n(()=>import(`./vendor-icon-rotate-ccw-key-Dq3kS3s9.js`).then(e=>e.t),[],import.meta.url),"rotate-ccw-square":()=>n(()=>import(`./vendor-icon-rotate-ccw-square-sPSk6mzJ.js`).then(e=>e.t),[],import.meta.url),"rotate-ccw":()=>n(()=>import(`./vendor-icon-rotate-ccw-lr5YKsxC.js`).then(e=>e.n),[],import.meta.url),"rotate-cw-fading-clock":()=>n(()=>import(`./vendor-icon-rotate-cw-fading-clock-D1rhoohz.js`).then(e=>e.t),[],import.meta.url),"rotate-cw-square":()=>n(()=>import(`./vendor-icon-rotate-cw-square-OPi4k7gj.js`).then(e=>e.t),[],import.meta.url),"rotate-cw":()=>n(()=>import(`./vendor-icon-rotate-cw-piooiFbz.js`).then(e=>e.n),[],import.meta.url),"route-off":()=>n(()=>import(`./vendor-icon-route-off-DU_y-4Fz.js`).then(e=>e.t),[],import.meta.url),route:()=>n(()=>import(`./vendor-icon-route-Bl3XNEzE.js`).then(e=>e.t),[],import.meta.url),router:()=>n(()=>import(`./vendor-icon-router-DMFg5lvc.js`).then(e=>e.t),[],import.meta.url),"rows-2":()=>n(()=>import(`./vendor-icon-rows-2-CyEMxks5.js`).then(e=>e.n),[],import.meta.url),rows:()=>n(()=>import(`./vendor-icon-rows-2-CyEMxks5.js`).then(e=>e.n),[],import.meta.url),"rows-3":()=>n(()=>import(`./vendor-icon-rows-3-Bl0iGPg_.js`).then(e=>e.n),[],import.meta.url),"panels-top-bottom":()=>n(()=>import(`./vendor-icon-rows-3-Bl0iGPg_.js`).then(e=>e.n),[],import.meta.url),"rows-4":()=>n(()=>import(`./vendor-icon-rows-4-DVXDgm1n.js`).then(e=>e.n),[],import.meta.url),rss:()=>n(()=>import(`./vendor-icon-rss-DMcOCR8i.js`).then(e=>e.t),[],import.meta.url),"ruler-dimension-line":()=>n(()=>import(`./vendor-icon-ruler-dimension-line-Bmfm9NOB.js`).then(e=>e.t),[],import.meta.url),ruler:()=>n(()=>import(`./vendor-icon-ruler-BU6FpIMV.js`).then(e=>e.t),[],import.meta.url),"russian-ruble":()=>n(()=>import(`./vendor-icon-russian-ruble-DZifUW_7.js`).then(e=>e.t),[],import.meta.url),sailboat:()=>n(()=>import(`./vendor-icon-sailboat-Cy5I1zNO.js`).then(e=>e.t),[],import.meta.url),salad:()=>n(()=>import(`./vendor-icon-salad-CfkT6s4l.js`).then(e=>e.t),[],import.meta.url),sandwich:()=>n(()=>import(`./vendor-icon-sandwich-BzopKWTd.js`).then(e=>e.t),[],import.meta.url),"satellite-dish":()=>n(()=>import(`./vendor-icon-satellite-dish-s5m1atwf.js`).then(e=>e.t),[],import.meta.url),satellite:()=>n(()=>import(`./vendor-icon-satellite-CgpyjoEz.js`).then(e=>e.t),[],import.meta.url),"saudi-riyal":()=>n(()=>import(`./vendor-icon-saudi-riyal-ovV0LkBY.js`).then(e=>e.t),[],import.meta.url),"save-all":()=>n(()=>import(`./vendor-icon-save-all-DcKtxZH2.js`).then(e=>e.t),[],import.meta.url),"save-check":()=>n(()=>import(`./vendor-icon-save-check-DI2QVHSA.js`).then(e=>e.t),[],import.meta.url),"save-off":()=>n(()=>import(`./vendor-icon-save-off-ChMSokZP.js`).then(e=>e.t),[],import.meta.url),"save-pen":()=>n(()=>import(`./vendor-icon-save-pen-2cdYvRL2.js`).then(e=>e.t),[],import.meta.url),"save-plus":()=>n(()=>import(`./vendor-icon-save-plus-Dy1bGCk3.js`).then(e=>e.t),[],import.meta.url),save:()=>n(()=>import(`./vendor-icon-save-CuavGNuU.js`).then(e=>e.n),[],import.meta.url),"scale-3d":()=>n(()=>import(`./vendor-icon-scale-3d-CFT3A7WE.js`).then(e=>e.t),[],import.meta.url),"scale-3-d":()=>n(()=>import(`./vendor-icon-scale-3d-CFT3A7WE.js`).then(e=>e.t),[],import.meta.url),scale:()=>n(()=>import(`./vendor-icon-scale-S6jSJGwO.js`).then(e=>e.t),[],import.meta.url),scaling:()=>n(()=>import(`./vendor-icon-scaling-Dw4mLpAO.js`).then(e=>e.t),[],import.meta.url),"scan-barcode":()=>n(()=>import(`./vendor-icon-scan-barcode-D7FWnJOd.js`).then(e=>e.t),[],import.meta.url),"scan-box":()=>n(()=>import(`./vendor-icon-scan-box-Rxd5L9Tw.js`).then(e=>e.t),[],import.meta.url),"scan-eye":()=>n(()=>import(`./vendor-icon-scan-eye-1IDwwl2J.js`).then(e=>e.t),[],import.meta.url),"scan-face":()=>n(()=>import(`./vendor-icon-scan-face-CXjo6RQ9.js`).then(e=>e.t),[],import.meta.url),"scan-heart":()=>n(()=>import(`./vendor-icon-scan-heart-nSABRU2K.js`).then(e=>e.t),[],import.meta.url),"scan-line":()=>n(()=>import(`./vendor-icon-scan-line-D5poMxdE.js`).then(e=>e.t),[],import.meta.url),"scan-qr-code":()=>n(()=>import(`./vendor-icon-scan-qr-code-Br8t36ty.js`).then(e=>e.t),[],import.meta.url),"scan-search":()=>n(()=>import(`./vendor-icon-scan-search-D6-IMBB_.js`).then(e=>e.t),[],import.meta.url),"scan-square":()=>n(()=>import(`./vendor-icon-scan-square-CTxuiqLs.js`).then(e=>e.t),[],import.meta.url),"scan-text":()=>n(()=>import(`./vendor-icon-scan-text-Di_0wcsb.js`).then(e=>e.t),[],import.meta.url),scan:()=>n(()=>import(`./vendor-icon-scan-AC841oHr.js`).then(e=>e.t),[],import.meta.url),school:()=>n(()=>import(`./vendor-icon-school-CkMpeoHA.js`).then(e=>e.t),[],import.meta.url),"scissors-line-dashed":()=>n(()=>import(`./vendor-icon-scissors-line-dashed-Brx51V-E.js`).then(e=>e.t),[],import.meta.url),scissors:()=>n(()=>import(`./vendor-icon-scissors-DjjHqQTl.js`).then(e=>e.t),[],import.meta.url),scooter:()=>n(()=>import(`./vendor-icon-scooter-CHPUJKYE.js`).then(e=>e.t),[],import.meta.url),"screen-share-off":()=>n(()=>import(`./vendor-icon-screen-share-off-pQVfZVao.js`).then(e=>e.t),[],import.meta.url),"screen-share":()=>n(()=>import(`./vendor-icon-screen-share-DxmLj5dM.js`).then(e=>e.t),[],import.meta.url),"scroll-text":()=>n(()=>import(`./vendor-icon-scroll-text-DENjQLzo.js`).then(e=>e.n),[],import.meta.url),scroll:()=>n(()=>import(`./vendor-icon-scroll-CxmcmKaE.js`).then(e=>e.t),[],import.meta.url),"search-alert":()=>n(()=>import(`./vendor-icon-search-alert-h1bn4nK7.js`).then(e=>e.t),[],import.meta.url),"search-check":()=>n(()=>import(`./vendor-icon-search-check-CmVKQqnJ.js`).then(e=>e.t),[],import.meta.url),"search-code":()=>n(()=>import(`./vendor-icon-search-code-Bd25ej7S.js`).then(e=>e.t),[],import.meta.url),"search-slash":()=>n(()=>import(`./vendor-icon-search-slash-DqtuK1-y.js`).then(e=>e.t),[],import.meta.url),"search-x":()=>n(()=>import(`./vendor-icon-search-x-C91E_2qt.js`).then(e=>e.t),[],import.meta.url),search:()=>n(()=>import(`./vendor-icon-search-B2Uqtp_W.js`).then(e=>e.n),[],import.meta.url),section:()=>n(()=>import(`./vendor-icon-section-CSb9_KIB.js`).then(e=>e.t),[],import.meta.url),"send-horizontal":()=>n(()=>import(`./vendor-icon-send-horizontal-Dd5fONR3.js`).then(e=>e.t),[],import.meta.url),"send-horizonal":()=>n(()=>import(`./vendor-icon-send-horizontal-Dd5fONR3.js`).then(e=>e.t),[],import.meta.url),"send-to-back":()=>n(()=>import(`./vendor-icon-send-to-back-BD3tCoTP.js`).then(e=>e.t),[],import.meta.url),send:()=>n(()=>import(`./vendor-icon-send-BlZYLCTK.js`).then(e=>e.n),[],import.meta.url),"separator-horizontal":()=>n(()=>import(`./vendor-icon-separator-horizontal-DkDADbgc.js`).then(e=>e.t),[],import.meta.url),"separator-vertical":()=>n(()=>import(`./vendor-icon-separator-vertical-C5hJWNWU.js`).then(e=>e.t),[],import.meta.url),"server-cog":()=>n(()=>import(`./vendor-icon-server-cog-C040Tyr3.js`).then(e=>e.t),[],import.meta.url),"server-crash":()=>n(()=>import(`./vendor-icon-server-crash-2sXNx3Ie.js`).then(e=>e.t),[],import.meta.url),"server-off":()=>n(()=>import(`./vendor-icon-server-off-YeT3MYCq.js`).then(e=>e.t),[],import.meta.url),"server-plus":()=>n(()=>import(`./vendor-icon-server-plus-DocmUe4m.js`).then(e=>e.t),[],import.meta.url),server:()=>n(()=>import(`./vendor-icon-server-U5_HCKRC.js`).then(e=>e.t),[],import.meta.url),"settings-2":()=>n(()=>import(`./vendor-icon-settings-2-BHIWdy1J.js`).then(e=>e.n),[],import.meta.url),settings:()=>n(()=>import(`./vendor-icon-settings-CYQ7xc_F.js`).then(e=>e.n),[],import.meta.url),shapes:()=>n(()=>import(`./vendor-icon-shapes-Cc1IYQXQ.js`).then(e=>e.t),[],import.meta.url),"share-2":()=>n(()=>import(`./vendor-icon-share-2-D3bdPyHy.js`).then(e=>e.n),[],import.meta.url),share:()=>n(()=>import(`./vendor-icon-share-BRBmZ9N1.js`).then(e=>e.t),[],import.meta.url),sheet:()=>n(()=>import(`./vendor-icon-sheet-COMZ5j5G.js`).then(e=>e.t),[],import.meta.url),shell:()=>n(()=>import(`./vendor-icon-shell-Cr0G2QYt.js`).then(e=>e.t),[],import.meta.url),"shelving-unit":()=>n(()=>import(`./vendor-icon-shelving-unit-NbGezYpP.js`).then(e=>e.t),[],import.meta.url),"shield-alert":()=>n(()=>import(`./vendor-icon-shield-alert-CJYtPI9w.js`).then(e=>e.n),[],import.meta.url),"shield-ban":()=>n(()=>import(`./vendor-icon-shield-ban-DT-0je00.js`).then(e=>e.t),[],import.meta.url),"shield-check":()=>n(()=>import(`./vendor-icon-shield-check-CdDzbial.js`).then(e=>e.n),[],import.meta.url),"shield-cog-corner":()=>n(()=>import(`./vendor-icon-shield-cog-corner-UkmnFyTR.js`).then(e=>e.t),[],import.meta.url),"shield-cog":()=>n(()=>import(`./vendor-icon-shield-cog-CFyZOZ-8.js`).then(e=>e.t),[],import.meta.url),"shield-ellipsis":()=>n(()=>import(`./vendor-icon-shield-ellipsis-gRp4I9LB.js`).then(e=>e.t),[],import.meta.url),"shield-half":()=>n(()=>import(`./vendor-icon-shield-half-TtqP9wL_.js`).then(e=>e.t),[],import.meta.url),"shield-keyhole":()=>n(()=>import(`./vendor-icon-shield-keyhole-B0nl14uK.js`).then(e=>e.t),[],import.meta.url),"shield-lock":()=>n(()=>import(`./vendor-icon-shield-lock-OzrY-vF_.js`).then(e=>e.t),[],import.meta.url),"shield-minus":()=>n(()=>import(`./vendor-icon-shield-minus-DQLTFExN.js`).then(e=>e.t),[],import.meta.url),"shield-off":()=>n(()=>import(`./vendor-icon-shield-off-DSQNn8og.js`).then(e=>e.n),[],import.meta.url),"shield-plus":()=>n(()=>import(`./vendor-icon-shield-plus-vuMdkT69.js`).then(e=>e.t),[],import.meta.url),"shield-question-mark":()=>n(()=>import(`./vendor-icon-shield-question-mark-CmNmL1kO.js`).then(e=>e.n),[],import.meta.url),"shield-question":()=>n(()=>import(`./vendor-icon-shield-question-mark-CmNmL1kO.js`).then(e=>e.n),[],import.meta.url),"shield-user":()=>n(()=>import(`./vendor-icon-shield-user-Cgt_xTjZ.js`).then(e=>e.t),[],import.meta.url),"shield-x":()=>n(()=>import(`./vendor-icon-shield-x-C3Af1iLQ.js`).then(e=>e.n),[],import.meta.url),"shield-close":()=>n(()=>import(`./vendor-icon-shield-x-C3Af1iLQ.js`).then(e=>e.n),[],import.meta.url),shield:()=>n(()=>import(`./vendor-icon-shield-DsNraEeY.js`).then(e=>e.n),[],import.meta.url),"ship-cargo":()=>n(()=>import(`./vendor-icon-ship-cargo-CVX1Cq1v.js`).then(e=>e.t),[],import.meta.url),"ship-wheel":()=>n(()=>import(`./vendor-icon-ship-wheel-J6uv8S5B.js`).then(e=>e.t),[],import.meta.url),ship:()=>n(()=>import(`./vendor-icon-ship-C-TI9yx1.js`).then(e=>e.t),[],import.meta.url),shirt:()=>n(()=>import(`./vendor-icon-shirt-COcHuSSs.js`).then(e=>e.t),[],import.meta.url),"shopping-bag":()=>n(()=>import(`./vendor-icon-shopping-bag-YfCkAAKC.js`).then(e=>e.t),[],import.meta.url),"shopping-basket":()=>n(()=>import(`./vendor-icon-shopping-basket-DDVZG4TY.js`).then(e=>e.t),[],import.meta.url),"shopping-cart-minus":()=>n(()=>import(`./vendor-icon-shopping-cart-minus-BqBEUTgx.js`).then(e=>e.t),[],import.meta.url),"shopping-cart-plus":()=>n(()=>import(`./vendor-icon-shopping-cart-plus-DdDJNpjr.js`).then(e=>e.t),[],import.meta.url),"shopping-cart":()=>n(()=>import(`./vendor-icon-shopping-cart-o_AZNrRL.js`).then(e=>e.t),[],import.meta.url),shovel:()=>n(()=>import(`./vendor-icon-shovel-qzLuWkJ-.js`).then(e=>e.t),[],import.meta.url),"shower-head":()=>n(()=>import(`./vendor-icon-shower-head-Bw07qeqz.js`).then(e=>e.t),[],import.meta.url),shredder:()=>n(()=>import(`./vendor-icon-shredder-Bzsuc0Qh.js`).then(e=>e.t),[],import.meta.url),"shrimp-off":()=>n(()=>import(`./vendor-icon-shrimp-off-CUiipHI0.js`).then(e=>e.t),[],import.meta.url),shrimp:()=>n(()=>import(`./vendor-icon-shrimp-DBeaQ4nj.js`).then(e=>e.t),[],import.meta.url),shrink:()=>n(()=>import(`./vendor-icon-shrink-BCOS_ufj.js`).then(e=>e.t),[],import.meta.url),shrub:()=>n(()=>import(`./vendor-icon-shrub-9IKNohdq.js`).then(e=>e.t),[],import.meta.url),shuffle:()=>n(()=>import(`./vendor-icon-shuffle-D1cmrGsU.js`).then(e=>e.t),[],import.meta.url),sigma:()=>n(()=>import(`./vendor-icon-sigma-DSt0XKnk.js`).then(e=>e.n),[],import.meta.url),"signal-high":()=>n(()=>import(`./vendor-icon-signal-high-t5McLCIZ.js`).then(e=>e.t),[],import.meta.url),"signal-low":()=>n(()=>import(`./vendor-icon-signal-low-C6p9cJma.js`).then(e=>e.t),[],import.meta.url),"signal-medium":()=>n(()=>import(`./vendor-icon-signal-medium-CFXvINoL.js`).then(e=>e.t),[],import.meta.url),"signal-zero":()=>n(()=>import(`./vendor-icon-signal-zero-Bh5ftHvh.js`).then(e=>e.t),[],import.meta.url),signal:()=>n(()=>import(`./vendor-icon-signal-DT5adZ-y.js`).then(e=>e.t),[],import.meta.url),signature:()=>n(()=>import(`./vendor-icon-signature-qwQBdThd.js`).then(e=>e.t),[],import.meta.url),"signpost-big":()=>n(()=>import(`./vendor-icon-signpost-big-DvZrtUOH.js`).then(e=>e.t),[],import.meta.url),signpost:()=>n(()=>import(`./vendor-icon-signpost-B0bPF3VG.js`).then(e=>e.t),[],import.meta.url),siren:()=>n(()=>import(`./vendor-icon-siren-D6sdXT2i.js`).then(e=>e.t),[],import.meta.url),"skip-back":()=>n(()=>import(`./vendor-icon-skip-back-v_AFAQSa.js`).then(e=>e.t),[],import.meta.url),"skip-forward":()=>n(()=>import(`./vendor-icon-skip-forward-CfRT1Tc0.js`).then(e=>e.n),[],import.meta.url),skull:()=>n(()=>import(`./vendor-icon-skull-DDo97W4i.js`).then(e=>e.t),[],import.meta.url),slash:()=>n(()=>import(`./vendor-icon-slash-D2tPlc-g.js`).then(e=>e.t),[],import.meta.url),slice:()=>n(()=>import(`./vendor-icon-slice-BZOwumm_.js`).then(e=>e.t),[],import.meta.url),"sliders-horizontal":()=>n(()=>import(`./vendor-icon-sliders-horizontal-BsnKXU0c.js`).then(e=>e.n),[],import.meta.url),"sliders-vertical":()=>n(()=>import(`./vendor-icon-sliders-vertical-900Xc6oa.js`).then(e=>e.t),[],import.meta.url),sliders:()=>n(()=>import(`./vendor-icon-sliders-vertical-900Xc6oa.js`).then(e=>e.t),[],import.meta.url),"smartphone-charging":()=>n(()=>import(`./vendor-icon-smartphone-charging-DvyGH26m.js`).then(e=>e.t),[],import.meta.url),"smartphone-nfc":()=>n(()=>import(`./vendor-icon-smartphone-nfc-9yUCoJah.js`).then(e=>e.t),[],import.meta.url),smartphone:()=>n(()=>import(`./vendor-icon-smartphone-C-chXM6h.js`).then(e=>e.t),[],import.meta.url),snail:()=>n(()=>import(`./vendor-icon-snail-CwkTtJBR.js`).then(e=>e.t),[],import.meta.url),snowflake:()=>n(()=>import(`./vendor-icon-snowflake-Ba1AZBq0.js`).then(e=>e.t),[],import.meta.url),"soap-dispenser-droplet":()=>n(()=>import(`./vendor-icon-soap-dispenser-droplet-B61plKAV.js`).then(e=>e.t),[],import.meta.url),sofa:()=>n(()=>import(`./vendor-icon-sofa-sY3f4Y6W.js`).then(e=>e.t),[],import.meta.url),"solar-panel":()=>n(()=>import(`./vendor-icon-solar-panel-tj8Sr_HQ.js`).then(e=>e.t),[],import.meta.url),soup:()=>n(()=>import(`./vendor-icon-soup-DArRy565.js`).then(e=>e.t),[],import.meta.url),space:()=>n(()=>import(`./vendor-icon-space-DlvyJr24.js`).then(e=>e.t),[],import.meta.url),spade:()=>n(()=>import(`./vendor-icon-spade-Db2kXvjA.js`).then(e=>e.t),[],import.meta.url),sparkle:()=>n(()=>import(`./vendor-icon-sparkle-B0fq48lC.js`).then(e=>e.t),[],import.meta.url),sparkles:()=>n(()=>import(`./vendor-icon-sparkles-RGpJ39Rc.js`).then(e=>e.n),[],import.meta.url),stars:()=>n(()=>import(`./vendor-icon-sparkles-RGpJ39Rc.js`).then(e=>e.n),[],import.meta.url),speaker:()=>n(()=>import(`./vendor-icon-speaker-Cd1FLEzT.js`).then(e=>e.t),[],import.meta.url),speech:()=>n(()=>import(`./vendor-icon-speech-CL6JxdYW.js`).then(e=>e.t),[],import.meta.url),"spell-check-2":()=>n(()=>import(`./vendor-icon-spell-check-2-UcXa0vaJ.js`).then(e=>e.t),[],import.meta.url),"spell-check":()=>n(()=>import(`./vendor-icon-spell-check-CHb29qb6.js`).then(e=>e.t),[],import.meta.url),"spline-pointer":()=>n(()=>import(`./vendor-icon-spline-pointer-CpH4EgY4.js`).then(e=>e.t),[],import.meta.url),spline:()=>n(()=>import(`./vendor-icon-spline-Y9jlI3ka.js`).then(e=>e.t),[],import.meta.url),split:()=>n(()=>import(`./vendor-icon-split-Ck5cLz2x.js`).then(e=>e.t),[],import.meta.url),spool:()=>n(()=>import(`./vendor-icon-spool-B7llaA5f.js`).then(e=>e.t),[],import.meta.url),"sport-shoe":()=>n(()=>import(`./vendor-icon-sport-shoe-Cyli06Ca.js`).then(e=>e.t),[],import.meta.url),spotlight:()=>n(()=>import(`./vendor-icon-spotlight-BpHVmFg5.js`).then(e=>e.t),[],import.meta.url),"spray-can":()=>n(()=>import(`./vendor-icon-spray-can-p3EVK3-E.js`).then(e=>e.t),[],import.meta.url),sprout:()=>n(()=>import(`./vendor-icon-sprout-DcQqO849.js`).then(e=>e.t),[],import.meta.url),"square-activity":()=>n(()=>import(`./vendor-icon-square-activity-DJSNJ1iP.js`).then(e=>e.t),[],import.meta.url),"activity-square":()=>n(()=>import(`./vendor-icon-square-activity-DJSNJ1iP.js`).then(e=>e.t),[],import.meta.url),"square-arrow-down-left":()=>n(()=>import(`./vendor-icon-square-arrow-down-left-CkpkK6Tt.js`).then(e=>e.t),[],import.meta.url),"arrow-down-left-square":()=>n(()=>import(`./vendor-icon-square-arrow-down-left-CkpkK6Tt.js`).then(e=>e.t),[],import.meta.url),"square-arrow-down-right":()=>n(()=>import(`./vendor-icon-square-arrow-down-right-BccyKlGk.js`).then(e=>e.t),[],import.meta.url),"arrow-down-right-square":()=>n(()=>import(`./vendor-icon-square-arrow-down-right-BccyKlGk.js`).then(e=>e.t),[],import.meta.url),"square-arrow-down":()=>n(()=>import(`./vendor-icon-square-arrow-down-CkuHWJg7.js`).then(e=>e.t),[],import.meta.url),"arrow-down-square":()=>n(()=>import(`./vendor-icon-square-arrow-down-CkuHWJg7.js`).then(e=>e.t),[],import.meta.url),"square-arrow-left":()=>n(()=>import(`./vendor-icon-square-arrow-left-BWLy3ctX.js`).then(e=>e.t),[],import.meta.url),"arrow-left-square":()=>n(()=>import(`./vendor-icon-square-arrow-left-BWLy3ctX.js`).then(e=>e.t),[],import.meta.url),"square-arrow-out-down-left":()=>n(()=>import(`./vendor-icon-square-arrow-out-down-left-BbS6D6of.js`).then(e=>e.t),[],import.meta.url),"arrow-down-left-from-square":()=>n(()=>import(`./vendor-icon-square-arrow-out-down-left-BbS6D6of.js`).then(e=>e.t),[],import.meta.url),"square-arrow-out-down-right":()=>n(()=>import(`./vendor-icon-square-arrow-out-down-right-D0xonOZl.js`).then(e=>e.t),[],import.meta.url),"arrow-down-right-from-square":()=>n(()=>import(`./vendor-icon-square-arrow-out-down-right-D0xonOZl.js`).then(e=>e.t),[],import.meta.url),"square-arrow-out-up-left":()=>n(()=>import(`./vendor-icon-square-arrow-out-up-left-Dux5Z3Yj.js`).then(e=>e.t),[],import.meta.url),"arrow-up-left-from-square":()=>n(()=>import(`./vendor-icon-square-arrow-out-up-left-Dux5Z3Yj.js`).then(e=>e.t),[],import.meta.url),"square-arrow-out-up-right":()=>n(()=>import(`./vendor-icon-square-arrow-out-up-right-DJdbSnTP.js`).then(e=>e.t),[],import.meta.url),"arrow-up-right-from-square":()=>n(()=>import(`./vendor-icon-square-arrow-out-up-right-DJdbSnTP.js`).then(e=>e.t),[],import.meta.url),"square-arrow-right-enter":()=>n(()=>import(`./vendor-icon-square-arrow-right-enter-a_uf7hes.js`).then(e=>e.t),[],import.meta.url),"square-arrow-right-exit":()=>n(()=>import(`./vendor-icon-square-arrow-right-exit-BNk48poJ.js`).then(e=>e.t),[],import.meta.url),"square-arrow-right":()=>n(()=>import(`./vendor-icon-square-arrow-right-VtWspFRn.js`).then(e=>e.t),[],import.meta.url),"arrow-right-square":()=>n(()=>import(`./vendor-icon-square-arrow-right-VtWspFRn.js`).then(e=>e.t),[],import.meta.url),"square-arrow-up-left":()=>n(()=>import(`./vendor-icon-square-arrow-up-left-BmX_2dZz.js`).then(e=>e.t),[],import.meta.url),"arrow-up-left-square":()=>n(()=>import(`./vendor-icon-square-arrow-up-left-BmX_2dZz.js`).then(e=>e.t),[],import.meta.url),"square-arrow-up-right":()=>n(()=>import(`./vendor-icon-square-arrow-up-right-BKwsOzfc.js`).then(e=>e.t),[],import.meta.url),"arrow-up-right-square":()=>n(()=>import(`./vendor-icon-square-arrow-up-right-BKwsOzfc.js`).then(e=>e.t),[],import.meta.url),"square-arrow-up":()=>n(()=>import(`./vendor-icon-square-arrow-up-CvT_EoS0.js`).then(e=>e.t),[],import.meta.url),"arrow-up-square":()=>n(()=>import(`./vendor-icon-square-arrow-up-CvT_EoS0.js`).then(e=>e.t),[],import.meta.url),"square-asterisk":()=>n(()=>import(`./vendor-icon-square-asterisk-DWk1xTjm.js`).then(e=>e.t),[],import.meta.url),"asterisk-square":()=>n(()=>import(`./vendor-icon-square-asterisk-DWk1xTjm.js`).then(e=>e.t),[],import.meta.url),"square-bottom-dashed-scissors":()=>n(()=>import(`./vendor-icon-square-bottom-dashed-scissors-5MmgRD_R.js`).then(e=>e.t),[],import.meta.url),"scissors-square-dashed-bottom":()=>n(()=>import(`./vendor-icon-square-bottom-dashed-scissors-5MmgRD_R.js`).then(e=>e.t),[],import.meta.url),"square-centerline-dashed-horizontal":()=>n(()=>import(`./vendor-icon-square-centerline-dashed-horizontal-Ch1HLIWy.js`).then(e=>e.t),[],import.meta.url),"flip-horizontal":()=>n(()=>import(`./vendor-icon-square-centerline-dashed-horizontal-Ch1HLIWy.js`).then(e=>e.t),[],import.meta.url),"square-centerline-dashed-vertical":()=>n(()=>import(`./vendor-icon-square-centerline-dashed-vertical-m2ZeXdZR.js`).then(e=>e.t),[],import.meta.url),"flip-vertical":()=>n(()=>import(`./vendor-icon-square-centerline-dashed-vertical-m2ZeXdZR.js`).then(e=>e.t),[],import.meta.url),"square-chart-gantt":()=>n(()=>import(`./vendor-icon-square-chart-gantt-D3I-7xgm.js`).then(e=>e.n),[],import.meta.url),"gantt-chart-square":()=>n(()=>import(`./vendor-icon-square-chart-gantt-D3I-7xgm.js`).then(e=>e.n),[],import.meta.url),"square-gantt-chart":()=>n(()=>import(`./vendor-icon-square-chart-gantt-D3I-7xgm.js`).then(e=>e.n),[],import.meta.url),"square-check-big":()=>n(()=>import(`./vendor-icon-square-check-big-B4UVzWzR.js`).then(e=>e.n),[],import.meta.url),"check-square":()=>n(()=>import(`./vendor-icon-square-check-big-B4UVzWzR.js`).then(e=>e.n),[],import.meta.url),"square-check":()=>n(()=>import(`./vendor-icon-square-check-B6XVLrBW.js`).then(e=>e.t),[],import.meta.url),"check-square-2":()=>n(()=>import(`./vendor-icon-square-check-B6XVLrBW.js`).then(e=>e.t),[],import.meta.url),"square-chevron-down":()=>n(()=>import(`./vendor-icon-square-chevron-down-DztLK5uO.js`).then(e=>e.t),[],import.meta.url),"chevron-down-square":()=>n(()=>import(`./vendor-icon-square-chevron-down-DztLK5uO.js`).then(e=>e.t),[],import.meta.url),"square-chevron-left":()=>n(()=>import(`./vendor-icon-square-chevron-left-BXDM80Tw.js`).then(e=>e.t),[],import.meta.url),"chevron-left-square":()=>n(()=>import(`./vendor-icon-square-chevron-left-BXDM80Tw.js`).then(e=>e.t),[],import.meta.url),"square-chevron-right":()=>n(()=>import(`./vendor-icon-square-chevron-right-DyChigYq.js`).then(e=>e.t),[],import.meta.url),"chevron-right-square":()=>n(()=>import(`./vendor-icon-square-chevron-right-DyChigYq.js`).then(e=>e.t),[],import.meta.url),"square-chevron-up":()=>n(()=>import(`./vendor-icon-square-chevron-up-DAU0742v.js`).then(e=>e.t),[],import.meta.url),"chevron-up-square":()=>n(()=>import(`./vendor-icon-square-chevron-up-DAU0742v.js`).then(e=>e.t),[],import.meta.url),"square-code":()=>n(()=>import(`./vendor-icon-square-code-Bl0LB1l4.js`).then(e=>e.t),[],import.meta.url),"code-square":()=>n(()=>import(`./vendor-icon-square-code-Bl0LB1l4.js`).then(e=>e.t),[],import.meta.url),"square-dashed-bottom-code":()=>n(()=>import(`./vendor-icon-square-dashed-bottom-code-k3hqao9B.js`).then(e=>e.t),[],import.meta.url),"square-dashed-bottom":()=>n(()=>import(`./vendor-icon-square-dashed-bottom-Cx6SgCWP.js`).then(e=>e.t),[],import.meta.url),"square-dashed-kanban":()=>n(()=>import(`./vendor-icon-square-dashed-kanban-BpMcqjDc.js`).then(e=>e.t),[],import.meta.url),"kanban-square-dashed":()=>n(()=>import(`./vendor-icon-square-dashed-kanban-BpMcqjDc.js`).then(e=>e.t),[],import.meta.url),"square-dashed-mouse-pointer":()=>n(()=>import(`./vendor-icon-square-dashed-mouse-pointer-B_9iNXZV.js`).then(e=>e.t),[],import.meta.url),"mouse-pointer-square-dashed":()=>n(()=>import(`./vendor-icon-square-dashed-mouse-pointer-B_9iNXZV.js`).then(e=>e.t),[],import.meta.url),"square-dashed-text":()=>n(()=>import(`./vendor-icon-square-dashed-text-DDlU9YBJ.js`).then(e=>e.t),[],import.meta.url),"text-selection":()=>n(()=>import(`./vendor-icon-square-dashed-text-DDlU9YBJ.js`).then(e=>e.t),[],import.meta.url),"text-select":()=>n(()=>import(`./vendor-icon-square-dashed-text-DDlU9YBJ.js`).then(e=>e.t),[],import.meta.url),"square-dashed-top-solid":()=>n(()=>import(`./vendor-icon-square-dashed-top-solid-CO93eXFE.js`).then(e=>e.t),[],import.meta.url),"square-dashed":()=>n(()=>import(`./vendor-icon-square-dashed-BUavjoUM.js`).then(e=>e.n),[],import.meta.url),"box-select":()=>n(()=>import(`./vendor-icon-square-dashed-BUavjoUM.js`).then(e=>e.n),[],import.meta.url),"square-dimensions":()=>n(()=>import(`./vendor-icon-square-dimensions-vwMyT9QA.js`).then(e=>e.t),[],import.meta.url),"square-divide":()=>n(()=>import(`./vendor-icon-square-divide-CecqVz47.js`).then(e=>e.t),[],import.meta.url),"divide-square":()=>n(()=>import(`./vendor-icon-square-divide-CecqVz47.js`).then(e=>e.t),[],import.meta.url),"square-dot":()=>n(()=>import(`./vendor-icon-square-dot-KBH2pIM4.js`).then(e=>e.t),[],import.meta.url),"dot-square":()=>n(()=>import(`./vendor-icon-square-dot-KBH2pIM4.js`).then(e=>e.t),[],import.meta.url),"square-equal":()=>n(()=>import(`./vendor-icon-square-equal-BK-SbqIX.js`).then(e=>e.t),[],import.meta.url),"equal-square":()=>n(()=>import(`./vendor-icon-square-equal-BK-SbqIX.js`).then(e=>e.t),[],import.meta.url),"square-exclamation-point":()=>n(()=>import(`./vendor-icon-square-exclamation-point-_QAGLHBj.js`).then(e=>e.t),[],import.meta.url),"square-function":()=>n(()=>import(`./vendor-icon-square-function-PwJso9rX.js`).then(e=>e.t),[],import.meta.url),"function-square":()=>n(()=>import(`./vendor-icon-square-function-PwJso9rX.js`).then(e=>e.t),[],import.meta.url),"square-kanban":()=>n(()=>import(`./vendor-icon-square-kanban-ZFRnbY0T.js`).then(e=>e.n),[],import.meta.url),"kanban-square":()=>n(()=>import(`./vendor-icon-square-kanban-ZFRnbY0T.js`).then(e=>e.n),[],import.meta.url),"square-library":()=>n(()=>import(`./vendor-icon-square-library-8eUE7qQN.js`).then(e=>e.t),[],import.meta.url),"library-square":()=>n(()=>import(`./vendor-icon-square-library-8eUE7qQN.js`).then(e=>e.t),[],import.meta.url),"square-m":()=>n(()=>import(`./vendor-icon-square-m-Bxmb6e9b.js`).then(e=>e.t),[],import.meta.url),"m-square":()=>n(()=>import(`./vendor-icon-square-m-Bxmb6e9b.js`).then(e=>e.t),[],import.meta.url),"square-menu":()=>n(()=>import(`./vendor-icon-square-menu-4CtPmkjs.js`).then(e=>e.t),[],import.meta.url),"menu-square":()=>n(()=>import(`./vendor-icon-square-menu-4CtPmkjs.js`).then(e=>e.t),[],import.meta.url),"square-minus":()=>n(()=>import(`./vendor-icon-square-minus-Ck6ArxOH.js`).then(e=>e.t),[],import.meta.url),"minus-square":()=>n(()=>import(`./vendor-icon-square-minus-Ck6ArxOH.js`).then(e=>e.t),[],import.meta.url),"square-mouse-pointer":()=>n(()=>import(`./vendor-icon-square-mouse-pointer-DDvQbLGG.js`).then(e=>e.t),[],import.meta.url),inspect:()=>n(()=>import(`./vendor-icon-square-mouse-pointer-DDvQbLGG.js`).then(e=>e.t),[],import.meta.url),"square-off":()=>n(()=>import(`./vendor-icon-square-off-CUoL6UtH.js`).then(e=>e.t),[],import.meta.url),"square-parking-off":()=>n(()=>import(`./vendor-icon-square-parking-off-CCdoklPx.js`).then(e=>e.t),[],import.meta.url),"parking-square-off":()=>n(()=>import(`./vendor-icon-square-parking-off-CCdoklPx.js`).then(e=>e.t),[],import.meta.url),"square-parking":()=>n(()=>import(`./vendor-icon-square-parking-CVXU9Vk4.js`).then(e=>e.t),[],import.meta.url),"parking-square":()=>n(()=>import(`./vendor-icon-square-parking-CVXU9Vk4.js`).then(e=>e.t),[],import.meta.url),"square-pause":()=>n(()=>import(`./vendor-icon-square-pause-D9TFrtrD.js`).then(e=>e.t),[],import.meta.url),"square-pen":()=>n(()=>import(`./vendor-icon-square-pen-CrYOuw6J.js`).then(e=>e.n),[],import.meta.url),"pen-box":()=>n(()=>import(`./vendor-icon-square-pen-CrYOuw6J.js`).then(e=>e.n),[],import.meta.url),edit:()=>n(()=>import(`./vendor-icon-square-pen-CrYOuw6J.js`).then(e=>e.n),[],import.meta.url),"pen-square":()=>n(()=>import(`./vendor-icon-square-pen-CrYOuw6J.js`).then(e=>e.n),[],import.meta.url),"square-percent":()=>n(()=>import(`./vendor-icon-square-percent-H275o3NV.js`).then(e=>e.t),[],import.meta.url),"percent-square":()=>n(()=>import(`./vendor-icon-square-percent-H275o3NV.js`).then(e=>e.t),[],import.meta.url),"square-pi":()=>n(()=>import(`./vendor-icon-square-pi-CH73LjnE.js`).then(e=>e.t),[],import.meta.url),"pi-square":()=>n(()=>import(`./vendor-icon-square-pi-CH73LjnE.js`).then(e=>e.t),[],import.meta.url),"square-pilcrow":()=>n(()=>import(`./vendor-icon-square-pilcrow-DIsW53m3.js`).then(e=>e.t),[],import.meta.url),"pilcrow-square":()=>n(()=>import(`./vendor-icon-square-pilcrow-DIsW53m3.js`).then(e=>e.t),[],import.meta.url),"square-play":()=>n(()=>import(`./vendor-icon-square-play-Dd0KE54U.js`).then(e=>e.t),[],import.meta.url),"play-square":()=>n(()=>import(`./vendor-icon-square-play-Dd0KE54U.js`).then(e=>e.t),[],import.meta.url),"square-plus":()=>n(()=>import(`./vendor-icon-square-plus-BP1FGpSB.js`).then(e=>e.t),[],import.meta.url),"plus-square":()=>n(()=>import(`./vendor-icon-square-plus-BP1FGpSB.js`).then(e=>e.t),[],import.meta.url),"square-power":()=>n(()=>import(`./vendor-icon-square-power-1qKbe-Sl.js`).then(e=>e.t),[],import.meta.url),"power-square":()=>n(()=>import(`./vendor-icon-square-power-1qKbe-Sl.js`).then(e=>e.t),[],import.meta.url),"square-radical":()=>n(()=>import(`./vendor-icon-square-radical-D-672Gs6.js`).then(e=>e.t),[],import.meta.url),"square-round-corner":()=>n(()=>import(`./vendor-icon-square-round-corner-BsXZKj26.js`).then(e=>e.t),[],import.meta.url),"square-scissors":()=>n(()=>import(`./vendor-icon-square-scissors-LWfP1zmX.js`).then(e=>e.t),[],import.meta.url),"scissors-square":()=>n(()=>import(`./vendor-icon-square-scissors-LWfP1zmX.js`).then(e=>e.t),[],import.meta.url),"square-sigma":()=>n(()=>import(`./vendor-icon-square-sigma-DvvIkoR_.js`).then(e=>e.t),[],import.meta.url),"sigma-square":()=>n(()=>import(`./vendor-icon-square-sigma-DvvIkoR_.js`).then(e=>e.t),[],import.meta.url),"square-slash":()=>n(()=>import(`./vendor-icon-square-slash-BvkT9P6G.js`).then(e=>e.t),[],import.meta.url),"slash-square":()=>n(()=>import(`./vendor-icon-square-slash-BvkT9P6G.js`).then(e=>e.t),[],import.meta.url),"square-split-horizontal":()=>n(()=>import(`./vendor-icon-square-split-horizontal-BJvw3kUJ.js`).then(e=>e.t),[],import.meta.url),"split-square-horizontal":()=>n(()=>import(`./vendor-icon-square-split-horizontal-BJvw3kUJ.js`).then(e=>e.t),[],import.meta.url),"square-split-vertical":()=>n(()=>import(`./vendor-icon-square-split-vertical-DQCylsbk.js`).then(e=>e.t),[],import.meta.url),"split-square-vertical":()=>n(()=>import(`./vendor-icon-square-split-vertical-DQCylsbk.js`).then(e=>e.t),[],import.meta.url),"square-square":()=>n(()=>import(`./vendor-icon-square-square-BBtda-9X.js`).then(e=>e.t),[],import.meta.url),"square-stack":()=>n(()=>import(`./vendor-icon-square-stack-CYj9_lF9.js`).then(e=>e.t),[],import.meta.url),"square-star":()=>n(()=>import(`./vendor-icon-square-star-FN20bevA.js`).then(e=>e.t),[],import.meta.url),"square-stop":()=>n(()=>import(`./vendor-icon-square-stop-sisEiTrh.js`).then(e=>e.t),[],import.meta.url),"square-terminal":()=>n(()=>import(`./vendor-icon-square-terminal-BEi_VDRg.js`).then(e=>e.t),[],import.meta.url),"terminal-square":()=>n(()=>import(`./vendor-icon-square-terminal-BEi_VDRg.js`).then(e=>e.t),[],import.meta.url),"square-text":()=>n(()=>import(`./vendor-icon-square-text-CN1VvVap.js`).then(e=>e.t),[],import.meta.url),"square-user-round":()=>n(()=>import(`./vendor-icon-square-user-round-D6vfCYyU.js`).then(e=>e.t),[],import.meta.url),"user-square-2":()=>n(()=>import(`./vendor-icon-square-user-round-D6vfCYyU.js`).then(e=>e.t),[],import.meta.url),"square-user":()=>n(()=>import(`./vendor-icon-square-user-DBeDZ1A9.js`).then(e=>e.t),[],import.meta.url),"user-square":()=>n(()=>import(`./vendor-icon-square-user-DBeDZ1A9.js`).then(e=>e.t),[],import.meta.url),"square-x":()=>n(()=>import(`./vendor-icon-square-x-Dslmxj9r.js`).then(e=>e.t),[],import.meta.url),"x-square":()=>n(()=>import(`./vendor-icon-square-x-Dslmxj9r.js`).then(e=>e.t),[],import.meta.url),square:()=>n(()=>import(`./vendor-icon-square-D32ztiBM.js`).then(e=>e.n),[],import.meta.url),"squares-exclude":()=>n(()=>import(`./vendor-icon-squares-exclude-BTtqpXGn.js`).then(e=>e.t),[],import.meta.url),"squares-intersect":()=>n(()=>import(`./vendor-icon-squares-intersect-CDBsmHMA.js`).then(e=>e.t),[],import.meta.url),"squares-subtract":()=>n(()=>import(`./vendor-icon-squares-subtract-nTwkyZwk.js`).then(e=>e.t),[],import.meta.url),"squares-unite":()=>n(()=>import(`./vendor-icon-squares-unite-BkPFoKcl.js`).then(e=>e.t),[],import.meta.url),"squircle-dashed":()=>n(()=>import(`./vendor-icon-squircle-dashed-B5i6mfW_.js`).then(e=>e.t),[],import.meta.url),squircle:()=>n(()=>import(`./vendor-icon-squircle-mbPgPYEg.js`).then(e=>e.t),[],import.meta.url),squirrel:()=>n(()=>import(`./vendor-icon-squirrel-BIWjXk6l.js`).then(e=>e.t),[],import.meta.url),stamp:()=>n(()=>import(`./vendor-icon-stamp-B4FwVzRL.js`).then(e=>e.n),[],import.meta.url),"star-check":()=>n(()=>import(`./vendor-icon-star-check-DrRNNNQp.js`).then(e=>e.t),[],import.meta.url),"star-half":()=>n(()=>import(`./vendor-icon-star-half-B0X_skcp.js`).then(e=>e.t),[],import.meta.url),"star-minus":()=>n(()=>import(`./vendor-icon-star-minus-CVRG_Sp9.js`).then(e=>e.t),[],import.meta.url),"star-off":()=>n(()=>import(`./vendor-icon-star-off-C_igmr5w.js`).then(e=>e.n),[],import.meta.url),"star-plus":()=>n(()=>import(`./vendor-icon-star-plus-lbOZtqVG.js`).then(e=>e.t),[],import.meta.url),"star-x":()=>n(()=>import(`./vendor-icon-star-x-2I3mepvG.js`).then(e=>e.t),[],import.meta.url),star:()=>n(()=>import(`./vendor-icon-star-DfusowFE.js`).then(e=>e.n),[],import.meta.url),"step-back":()=>n(()=>import(`./vendor-icon-step-back-BFBnfgWa.js`).then(e=>e.t),[],import.meta.url),"step-forward":()=>n(()=>import(`./vendor-icon-step-forward-5ECOEIqn.js`).then(e=>e.n),[],import.meta.url),stethoscope:()=>n(()=>import(`./vendor-icon-stethoscope-BeCVH6G7.js`).then(e=>e.t),[],import.meta.url),sticker:()=>n(()=>import(`./vendor-icon-sticker-HtKzriJA.js`).then(e=>e.t),[],import.meta.url),"sticky-note-check":()=>n(()=>import(`./vendor-icon-sticky-note-check-BXjMG_Sy.js`).then(e=>e.t),[],import.meta.url),"sticky-note-minus":()=>n(()=>import(`./vendor-icon-sticky-note-minus-D1P2mSJf.js`).then(e=>e.t),[],import.meta.url),"sticky-note-off":()=>n(()=>import(`./vendor-icon-sticky-note-off-B69aBmGz.js`).then(e=>e.t),[],import.meta.url),"sticky-note-plus":()=>n(()=>import(`./vendor-icon-sticky-note-plus-CPfW_T39.js`).then(e=>e.t),[],import.meta.url),"sticky-note-x":()=>n(()=>import(`./vendor-icon-sticky-note-x-tPaNZEHs.js`).then(e=>e.t),[],import.meta.url),"sticky-note":()=>n(()=>import(`./vendor-icon-sticky-note-Bp3ZFMbg.js`).then(e=>e.n),[],import.meta.url),"sticky-notes":()=>n(()=>import(`./vendor-icon-sticky-notes-B7A5yiad.js`).then(e=>e.t),[],import.meta.url),stone:()=>n(()=>import(`./vendor-icon-stone-BRcpFWZJ.js`).then(e=>e.t),[],import.meta.url),store:()=>n(()=>import(`./vendor-icon-store-CwiX9Ffi.js`).then(e=>e.n),[],import.meta.url),"stretch-horizontal":()=>n(()=>import(`./vendor-icon-stretch-horizontal-DSaazU-m.js`).then(e=>e.t),[],import.meta.url),"stretch-vertical":()=>n(()=>import(`./vendor-icon-stretch-vertical-VKu1E-cp.js`).then(e=>e.t),[],import.meta.url),strikethrough:()=>n(()=>import(`./vendor-icon-strikethrough-DSkqRDNa.js`).then(e=>e.t),[],import.meta.url),subscript:()=>n(()=>import(`./vendor-icon-subscript-j2LQ_Exi.js`).then(e=>e.t),[],import.meta.url),summary:()=>n(()=>import(`./vendor-icon-summary-DjTYmrsR.js`).then(e=>e.t),[],import.meta.url),"sun-dim":()=>n(()=>import(`./vendor-icon-sun-dim-DesyVW_t.js`).then(e=>e.t),[],import.meta.url),"sun-medium":()=>n(()=>import(`./vendor-icon-sun-medium-DMYZ31kA.js`).then(e=>e.t),[],import.meta.url),"sun-moon":()=>n(()=>import(`./vendor-icon-sun-moon-C6t8YeaN.js`).then(e=>e.t),[],import.meta.url),"sun-snow":()=>n(()=>import(`./vendor-icon-sun-snow-BZxdk0gM.js`).then(e=>e.t),[],import.meta.url),sun:()=>n(()=>import(`./vendor-icon-sun-D1JMEG8e.js`).then(e=>e.n),[],import.meta.url),sunrise:()=>n(()=>import(`./vendor-icon-sunrise-CTN_fem2.js`).then(e=>e.t),[],import.meta.url),sunset:()=>n(()=>import(`./vendor-icon-sunset-UMnigo1i.js`).then(e=>e.t),[],import.meta.url),superscript:()=>n(()=>import(`./vendor-icon-superscript-DJP2r3g_.js`).then(e=>e.t),[],import.meta.url),"swatch-book":()=>n(()=>import(`./vendor-icon-swatch-book-CZ283zeA.js`).then(e=>e.t),[],import.meta.url),"swiss-franc":()=>n(()=>import(`./vendor-icon-swiss-franc-BM6tzyWC.js`).then(e=>e.t),[],import.meta.url),"switch-camera":()=>n(()=>import(`./vendor-icon-switch-camera-CzkPAD4r.js`).then(e=>e.t),[],import.meta.url),sword:()=>n(()=>import(`./vendor-icon-sword-i-M5zvOd.js`).then(e=>e.t),[],import.meta.url),swords:()=>n(()=>import(`./vendor-icon-swords-DOVtuA1H.js`).then(e=>e.t),[],import.meta.url),syringe:()=>n(()=>import(`./vendor-icon-syringe-DuFXrmuA.js`).then(e=>e.t),[],import.meta.url),"table-2":()=>n(()=>import(`./vendor-icon-table-2-DMQ6UahM.js`).then(e=>e.n),[],import.meta.url),"table-cells-merge":()=>n(()=>import(`./vendor-icon-table-cells-merge-Du3Y9FCE.js`).then(e=>e.t),[],import.meta.url),"table-cells-split":()=>n(()=>import(`./vendor-icon-table-cells-split-rcO7Jf95.js`).then(e=>e.t),[],import.meta.url),"table-columns-split":()=>n(()=>import(`./vendor-icon-table-columns-split-BOUa_6Kl.js`).then(e=>e.t),[],import.meta.url),"table-of-contents":()=>n(()=>import(`./vendor-icon-table-of-contents-DeDi2cF8.js`).then(e=>e.t),[],import.meta.url),"table-properties":()=>n(()=>import(`./vendor-icon-table-properties-DiJhrFZ3.js`).then(e=>e.n),[],import.meta.url),"table-rows-split":()=>n(()=>import(`./vendor-icon-table-rows-split-DUJ2j0fk.js`).then(e=>e.t),[],import.meta.url),table:()=>n(()=>import(`./vendor-icon-table-CeQhi8NL.js`).then(e=>e.n),[],import.meta.url),"tablet-smartphone":()=>n(()=>import(`./vendor-icon-tablet-smartphone-DwPkVud-.js`).then(e=>e.t),[],import.meta.url),tablet:()=>n(()=>import(`./vendor-icon-tablet-Ct2eh5Zk.js`).then(e=>e.t),[],import.meta.url),tablets:()=>n(()=>import(`./vendor-icon-tablets--ESSnd4I.js`).then(e=>e.t),[],import.meta.url),"tag-plus":()=>n(()=>import(`./vendor-icon-tag-plus-B2NZfaoC.js`).then(e=>e.t),[],import.meta.url),"tag-x":()=>n(()=>import(`./vendor-icon-tag-x-BnyDXsT3.js`).then(e=>e.t),[],import.meta.url),tag:()=>n(()=>import(`./vendor-icon-tag-iKhUiq-2.js`).then(e=>e.n),[],import.meta.url),tags:()=>n(()=>import(`./vendor-icon-tags-BnAXOIrl.js`).then(e=>e.n),[],import.meta.url),"tally-1":()=>n(()=>import(`./vendor-icon-tally-1-DXQSDhAX.js`).then(e=>e.t),[],import.meta.url),"tally-2":()=>n(()=>import(`./vendor-icon-tally-2-BRBl5_02.js`).then(e=>e.t),[],import.meta.url),"tally-3":()=>n(()=>import(`./vendor-icon-tally-3-B4-2bPtf.js`).then(e=>e.t),[],import.meta.url),"tally-4":()=>n(()=>import(`./vendor-icon-tally-4-bTOAbxXl.js`).then(e=>e.t),[],import.meta.url),"tally-5":()=>n(()=>import(`./vendor-icon-tally-5-Dq8E0fF6.js`).then(e=>e.t),[],import.meta.url),tangent:()=>n(()=>import(`./vendor-icon-tangent-CvJ2Eyxx.js`).then(e=>e.t),[],import.meta.url),target:()=>n(()=>import(`./vendor-icon-target-B34b1nAJ.js`).then(e=>e.t),[],import.meta.url),telescope:()=>n(()=>import(`./vendor-icon-telescope-ATYtOdpL.js`).then(e=>e.t),[],import.meta.url),"tent-tree":()=>n(()=>import(`./vendor-icon-tent-tree-dGKiv0cL.js`).then(e=>e.t),[],import.meta.url),tent:()=>n(()=>import(`./vendor-icon-tent-DWJYFIO1.js`).then(e=>e.t),[],import.meta.url),terminal:()=>n(()=>import(`./vendor-icon-terminal-Cgjziqoo.js`).then(e=>e.n),[],import.meta.url),"test-tube-diagonal":()=>n(()=>import(`./vendor-icon-test-tube-diagonal-JU4IgQXf.js`).then(e=>e.t),[],import.meta.url),"test-tube-2":()=>n(()=>import(`./vendor-icon-test-tube-diagonal-JU4IgQXf.js`).then(e=>e.t),[],import.meta.url),"test-tube":()=>n(()=>import(`./vendor-icon-test-tube-DOUaSsH8.js`).then(e=>e.t),[],import.meta.url),"test-tubes":()=>n(()=>import(`./vendor-icon-test-tubes-B8SScyFQ.js`).then(e=>e.t),[],import.meta.url),"text-align-center":()=>n(()=>import(`./vendor-icon-text-align-center-CU7q2G9f.js`).then(e=>e.t),[],import.meta.url),"align-center":()=>n(()=>import(`./vendor-icon-text-align-center-CU7q2G9f.js`).then(e=>e.t),[],import.meta.url),"text-align-end":()=>n(()=>import(`./vendor-icon-text-align-end-C7NMaYAi.js`).then(e=>e.t),[],import.meta.url),"align-right":()=>n(()=>import(`./vendor-icon-text-align-end-C7NMaYAi.js`).then(e=>e.t),[],import.meta.url),"text-align-justify":()=>n(()=>import(`./vendor-icon-text-align-justify-BknwtpxF.js`).then(e=>e.n),[],import.meta.url),"align-justify":()=>n(()=>import(`./vendor-icon-text-align-justify-BknwtpxF.js`).then(e=>e.n),[],import.meta.url),"text-align-start":()=>n(()=>import(`./vendor-icon-text-align-start-ufegOpbM.js`).then(e=>e.n),[],import.meta.url),text:()=>n(()=>import(`./vendor-icon-text-align-start-ufegOpbM.js`).then(e=>e.n),[],import.meta.url),"align-left":()=>n(()=>import(`./vendor-icon-text-align-start-ufegOpbM.js`).then(e=>e.n),[],import.meta.url),"text-cursor-input":()=>n(()=>import(`./vendor-icon-text-cursor-input-CExDXdxO.js`).then(e=>e.t),[],import.meta.url),"text-cursor":()=>n(()=>import(`./vendor-icon-text-cursor-B-z5Hya4.js`).then(e=>e.t),[],import.meta.url),"text-initial":()=>n(()=>import(`./vendor-icon-text-initial-XSIgyBmI.js`).then(e=>e.t),[],import.meta.url),"letter-text":()=>n(()=>import(`./vendor-icon-text-initial-XSIgyBmI.js`).then(e=>e.t),[],import.meta.url),"text-quote":()=>n(()=>import(`./vendor-icon-text-quote-iByI3trK.js`).then(e=>e.t),[],import.meta.url),"text-search":()=>n(()=>import(`./vendor-icon-text-search-C8bYbTtG.js`).then(e=>e.t),[],import.meta.url),"text-wrap":()=>n(()=>import(`./vendor-icon-text-wrap-BU-iaYgC.js`).then(e=>e.t),[],import.meta.url),"wrap-text":()=>n(()=>import(`./vendor-icon-text-wrap-BU-iaYgC.js`).then(e=>e.t),[],import.meta.url),theater:()=>n(()=>import(`./vendor-icon-theater-gXqmGoDz.js`).then(e=>e.t),[],import.meta.url),"thermometer-snowflake":()=>n(()=>import(`./vendor-icon-thermometer-snowflake-DoUFFCGR.js`).then(e=>e.t),[],import.meta.url),"thermometer-sun":()=>n(()=>import(`./vendor-icon-thermometer-sun-CfRmXTxx.js`).then(e=>e.t),[],import.meta.url),thermometer:()=>n(()=>import(`./vendor-icon-thermometer-CYqUb5Ee.js`).then(e=>e.t),[],import.meta.url),"thumbs-down":()=>n(()=>import(`./vendor-icon-thumbs-down-CCBJZl3R.js`).then(e=>e.t),[],import.meta.url),"thumbs-up":()=>n(()=>import(`./vendor-icon-thumbs-up-CQrVfzo4.js`).then(e=>e.t),[],import.meta.url),"tic-tac-toe":()=>n(()=>import(`./vendor-icon-tic-tac-toe-Al39Tg2x.js`).then(e=>e.t),[],import.meta.url),"ticket-check":()=>n(()=>import(`./vendor-icon-ticket-check-DbIVvPM4.js`).then(e=>e.t),[],import.meta.url),"ticket-minus":()=>n(()=>import(`./vendor-icon-ticket-minus-bRMIRvuu.js`).then(e=>e.t),[],import.meta.url),"ticket-percent":()=>n(()=>import(`./vendor-icon-ticket-percent-DPG-kJfF.js`).then(e=>e.t),[],import.meta.url),"ticket-plus":()=>n(()=>import(`./vendor-icon-ticket-plus-xx3d7PdV.js`).then(e=>e.t),[],import.meta.url),"ticket-slash":()=>n(()=>import(`./vendor-icon-ticket-slash-DYzbXBoF.js`).then(e=>e.t),[],import.meta.url),"ticket-x":()=>n(()=>import(`./vendor-icon-ticket-x-USAf9VCw.js`).then(e=>e.t),[],import.meta.url),ticket:()=>n(()=>import(`./vendor-icon-ticket-BIfq5abP.js`).then(e=>e.t),[],import.meta.url),"tickets-plane":()=>n(()=>import(`./vendor-icon-tickets-plane-DORgn6zW.js`).then(e=>e.t),[],import.meta.url),tickets:()=>n(()=>import(`./vendor-icon-tickets-BoK1wYb1.js`).then(e=>e.t),[],import.meta.url),timeline:()=>n(()=>import(`./vendor-icon-timeline-J8JKeuHK.js`).then(e=>e.t),[],import.meta.url),"timer-off":()=>n(()=>import(`./vendor-icon-timer-off-C-SZTesk.js`).then(e=>e.t),[],import.meta.url),"timer-reset":()=>n(()=>import(`./vendor-icon-timer-reset-Wg02gBEl.js`).then(e=>e.n),[],import.meta.url),timer:()=>n(()=>import(`./vendor-icon-timer-DT4EckeV.js`).then(e=>e.n),[],import.meta.url),"toggle-left":()=>n(()=>import(`./vendor-icon-toggle-left-DJMejsN6.js`).then(e=>e.n),[],import.meta.url),"toggle-right":()=>n(()=>import(`./vendor-icon-toggle-right-55ersX99.js`).then(e=>e.n),[],import.meta.url),toilet:()=>n(()=>import(`./vendor-icon-toilet-B6hrMnKd.js`).then(e=>e.t),[],import.meta.url),"tool-case":()=>n(()=>import(`./vendor-icon-tool-case-CaorgwpR.js`).then(e=>e.t),[],import.meta.url),toolbox:()=>n(()=>import(`./vendor-icon-toolbox-DQHA5APc.js`).then(e=>e.t),[],import.meta.url),tornado:()=>n(()=>import(`./vendor-icon-tornado-CFHTkzl8.js`).then(e=>e.t),[],import.meta.url),torus:()=>n(()=>import(`./vendor-icon-torus-Bi0ANibw.js`).then(e=>e.t),[],import.meta.url),"touchpad-off":()=>n(()=>import(`./vendor-icon-touchpad-off-CjeyX8vY.js`).then(e=>e.t),[],import.meta.url),touchpad:()=>n(()=>import(`./vendor-icon-touchpad-B4R0fVP3.js`).then(e=>e.t),[],import.meta.url),"towel-rack":()=>n(()=>import(`./vendor-icon-towel-rack-DMBEjMNB.js`).then(e=>e.t),[],import.meta.url),"tower-control":()=>n(()=>import(`./vendor-icon-tower-control-i-txqgBO.js`).then(e=>e.t),[],import.meta.url),"toy-brick":()=>n(()=>import(`./vendor-icon-toy-brick-BGaEzAk7.js`).then(e=>e.t),[],import.meta.url),tractor:()=>n(()=>import(`./vendor-icon-tractor-DDju5hic.js`).then(e=>e.t),[],import.meta.url),"traffic-cone":()=>n(()=>import(`./vendor-icon-traffic-cone-ZEl2Sw1G.js`).then(e=>e.t),[],import.meta.url),trailer:()=>n(()=>import(`./vendor-icon-trailer-oQe04xQ7.js`).then(e=>e.t),[],import.meta.url),"train-front-tunnel":()=>n(()=>import(`./vendor-icon-train-front-tunnel-CM1-mn93.js`).then(e=>e.t),[],import.meta.url),"train-front":()=>n(()=>import(`./vendor-icon-train-front-BRgpFn3S.js`).then(e=>e.t),[],import.meta.url),"train-track":()=>n(()=>import(`./vendor-icon-train-track-Bi4wjnz6.js`).then(e=>e.t),[],import.meta.url),"tram-front":()=>n(()=>import(`./vendor-icon-tram-front-CCCYyHhr.js`).then(e=>e.t),[],import.meta.url),train:()=>n(()=>import(`./vendor-icon-tram-front-CCCYyHhr.js`).then(e=>e.t),[],import.meta.url),transgender:()=>n(()=>import(`./vendor-icon-transgender-BWTIDRfB.js`).then(e=>e.t),[],import.meta.url),"trash-off":()=>n(()=>import(`./vendor-icon-trash-off-DL_9Zef4.js`).then(e=>e.t),[],import.meta.url),trash:()=>n(()=>import(`./vendor-icon-trash-BLsWkwB9.js`).then(e=>e.n),[],import.meta.url),"trash-2":()=>n(()=>import(`./vendor-icon-trash-BLsWkwB9.js`).then(e=>e.n),[],import.meta.url),"tree-deciduous":()=>n(()=>import(`./vendor-icon-tree-deciduous-oTf4AqQB.js`).then(e=>e.t),[],import.meta.url),"tree-palm":()=>n(()=>import(`./vendor-icon-tree-palm-BgvPVwjX.js`).then(e=>e.t),[],import.meta.url),palmtree:()=>n(()=>import(`./vendor-icon-tree-palm-BgvPVwjX.js`).then(e=>e.t),[],import.meta.url),"tree-pine":()=>n(()=>import(`./vendor-icon-tree-pine-B-h1fbG2.js`).then(e=>e.t),[],import.meta.url),trees:()=>n(()=>import(`./vendor-icon-trees-D6lPAc6Q.js`).then(e=>e.t),[],import.meta.url),"trending-down":()=>n(()=>import(`./vendor-icon-trending-down-C8VFA2s8.js`).then(e=>e.n),[],import.meta.url),"trending-up-down":()=>n(()=>import(`./vendor-icon-trending-up-down-BkE2e_a1.js`).then(e=>e.t),[],import.meta.url),"trending-up":()=>n(()=>import(`./vendor-icon-trending-up-CBQiG1_M.js`).then(e=>e.n),[],import.meta.url),"triangle-alert":()=>n(()=>import(`./vendor-icon-triangle-alert-D5n0T3q_.js`).then(e=>e.n),[],import.meta.url),"alert-triangle":()=>n(()=>import(`./vendor-icon-triangle-alert-D5n0T3q_.js`).then(e=>e.n),[],import.meta.url),"triangle-dashed":()=>n(()=>import(`./vendor-icon-triangle-dashed-DrXR8sXX.js`).then(e=>e.t),[],import.meta.url),"triangle-right":()=>n(()=>import(`./vendor-icon-triangle-right-D2bO62J3.js`).then(e=>e.t),[],import.meta.url),triangle:()=>n(()=>import(`./vendor-icon-triangle-CvOt-kzA.js`).then(e=>e.t),[],import.meta.url),trophy:()=>n(()=>import(`./vendor-icon-trophy-Be_FzlZw.js`).then(e=>e.t),[],import.meta.url),"truck-electric":()=>n(()=>import(`./vendor-icon-truck-electric-BO7FECzv.js`).then(e=>e.t),[],import.meta.url),truck:()=>n(()=>import(`./vendor-icon-truck-CKBeYDeT.js`).then(e=>e.t),[],import.meta.url),"turkish-lira":()=>n(()=>import(`./vendor-icon-turkish-lira-B0VYRtit.js`).then(e=>e.t),[],import.meta.url),turntable:()=>n(()=>import(`./vendor-icon-turntable-DWDBxJlQ.js`).then(e=>e.t),[],import.meta.url),turtle:()=>n(()=>import(`./vendor-icon-turtle-BIghBTd6.js`).then(e=>e.t),[],import.meta.url),"tv-minimal-play":()=>n(()=>import(`./vendor-icon-tv-minimal-play-DxKEwzPg.js`).then(e=>e.t),[],import.meta.url),"tv-minimal":()=>n(()=>import(`./vendor-icon-tv-minimal-BHv8iFoL.js`).then(e=>e.t),[],import.meta.url),"tv-2":()=>n(()=>import(`./vendor-icon-tv-minimal-BHv8iFoL.js`).then(e=>e.t),[],import.meta.url),tv:()=>n(()=>import(`./vendor-icon-tv-B-Lq2pxe.js`).then(e=>e.t),[],import.meta.url),"type-outline":()=>n(()=>import(`./vendor-icon-type-outline-DKDRYc4u.js`).then(e=>e.t),[],import.meta.url),type:()=>n(()=>import(`./vendor-icon-type-DudTuHpS.js`).then(e=>e.n),[],import.meta.url),"umbrella-off":()=>n(()=>import(`./vendor-icon-umbrella-off-Cda7wAcE.js`).then(e=>e.t),[],import.meta.url),umbrella:()=>n(()=>import(`./vendor-icon-umbrella-5DMClU9N.js`).then(e=>e.t),[],import.meta.url),underline:()=>n(()=>import(`./vendor-icon-underline-BTpq-Tpa.js`).then(e=>e.t),[],import.meta.url),"undo-2":()=>n(()=>import(`./vendor-icon-undo-2-C9MbW2Vb.js`).then(e=>e.n),[],import.meta.url),"undo-dot":()=>n(()=>import(`./vendor-icon-undo-dot-B9L1SxqZ.js`).then(e=>e.t),[],import.meta.url),undo:()=>n(()=>import(`./vendor-icon-undo-BYbs5N8u.js`).then(e=>e.t),[],import.meta.url),"unfold-horizontal":()=>n(()=>import(`./vendor-icon-unfold-horizontal-CZ0ZJUCU.js`).then(e=>e.t),[],import.meta.url),"unfold-vertical":()=>n(()=>import(`./vendor-icon-unfold-vertical-YklPWvsg.js`).then(e=>e.t),[],import.meta.url),ungroup:()=>n(()=>import(`./vendor-icon-ungroup-DxMwEehp.js`).then(e=>e.t),[],import.meta.url),university:()=>n(()=>import(`./vendor-icon-university-DvJ487u0.js`).then(e=>e.t),[],import.meta.url),"school-2":()=>n(()=>import(`./vendor-icon-university-DvJ487u0.js`).then(e=>e.t),[],import.meta.url),"unlink-2":()=>n(()=>import(`./vendor-icon-unlink-2-Dmc8aH0u.js`).then(e=>e.t),[],import.meta.url),unlink:()=>n(()=>import(`./vendor-icon-unlink-D3-6uLHt.js`).then(e=>e.t),[],import.meta.url),unplug:()=>n(()=>import(`./vendor-icon-unplug-BgYklMNm.js`).then(e=>e.n),[],import.meta.url),upload:()=>n(()=>import(`./vendor-icon-upload-BZ3rElxe.js`).then(e=>e.n),[],import.meta.url),"usb-c-port":()=>n(()=>import(`./vendor-icon-usb-c-port-CBwJMlr4.js`).then(e=>e.t),[],import.meta.url),usb:()=>n(()=>import(`./vendor-icon-usb-ZegslMc5.js`).then(e=>e.t),[],import.meta.url),"user-check":()=>n(()=>import(`./vendor-icon-user-check-DDH3nUIb.js`).then(e=>e.n),[],import.meta.url),"user-cog":()=>n(()=>import(`./vendor-icon-user-cog-CxEO2E4A.js`).then(e=>e.n),[],import.meta.url),"user-group":()=>n(()=>import(`./vendor-icon-user-group-DX3V_vMr.js`).then(e=>e.t),[],import.meta.url),"user-key":()=>n(()=>import(`./vendor-icon-user-key-GyT_XMX_.js`).then(e=>e.t),[],import.meta.url),"user-lock":()=>n(()=>import(`./vendor-icon-user-lock-Duyge8TM.js`).then(e=>e.t),[],import.meta.url),"user-minus":()=>n(()=>import(`./vendor-icon-user-minus-BDwGdstz.js`).then(e=>e.n),[],import.meta.url),"user-pen":()=>n(()=>import(`./vendor-icon-user-pen-DYR9LtcO.js`).then(e=>e.t),[],import.meta.url),"user-plus":()=>n(()=>import(`./vendor-icon-user-plus-1ljXV3i6.js`).then(e=>e.t),[],import.meta.url),"user-round-arrow-left":()=>n(()=>import(`./vendor-icon-user-round-arrow-left-sKhUpTg2.js`).then(e=>e.t),[],import.meta.url),"user-round-check":()=>n(()=>import(`./vendor-icon-user-round-check-DbqVA-AY.js`).then(e=>e.t),[],import.meta.url),"user-check-2":()=>n(()=>import(`./vendor-icon-user-round-check-DbqVA-AY.js`).then(e=>e.t),[],import.meta.url),"user-round-cog":()=>n(()=>import(`./vendor-icon-user-round-cog-DAbuuaTt.js`).then(e=>e.t),[],import.meta.url),"user-cog-2":()=>n(()=>import(`./vendor-icon-user-round-cog-DAbuuaTt.js`).then(e=>e.t),[],import.meta.url),"user-round-group":()=>n(()=>import(`./vendor-icon-user-round-group-CMqm_tK4.js`).then(e=>e.t),[],import.meta.url),"user-round-key":()=>n(()=>import(`./vendor-icon-user-round-key-CYgGozSQ.js`).then(e=>e.t),[],import.meta.url),"user-round-minus":()=>n(()=>import(`./vendor-icon-user-round-minus-5AbZfrWr.js`).then(e=>e.t),[],import.meta.url),"user-minus-2":()=>n(()=>import(`./vendor-icon-user-round-minus-5AbZfrWr.js`).then(e=>e.t),[],import.meta.url),"user-round-pen":()=>n(()=>import(`./vendor-icon-user-round-pen-DBbQHkjX.js`).then(e=>e.t),[],import.meta.url),"user-round-plus":()=>n(()=>import(`./vendor-icon-user-round-plus-BCZa8zJ0.js`).then(e=>e.t),[],import.meta.url),"user-plus-2":()=>n(()=>import(`./vendor-icon-user-round-plus-BCZa8zJ0.js`).then(e=>e.t),[],import.meta.url),"user-round-search":()=>n(()=>import(`./vendor-icon-user-round-search-BjR--2J_.js`).then(e=>e.t),[],import.meta.url),"user-round-x":()=>n(()=>import(`./vendor-icon-user-round-x-Caz4D21A.js`).then(e=>e.t),[],import.meta.url),"user-x-2":()=>n(()=>import(`./vendor-icon-user-round-x-Caz4D21A.js`).then(e=>e.t),[],import.meta.url),"user-round":()=>n(()=>import(`./vendor-icon-user-round-CBtoSPwz.js`).then(e=>e.t),[],import.meta.url),"user-2":()=>n(()=>import(`./vendor-icon-user-round-CBtoSPwz.js`).then(e=>e.t),[],import.meta.url),"user-search":()=>n(()=>import(`./vendor-icon-user-search-CJAICQuu.js`).then(e=>e.t),[],import.meta.url),"user-shield":()=>n(()=>import(`./vendor-icon-user-shield-DW7FjVOL.js`).then(e=>e.t),[],import.meta.url),"user-star":()=>n(()=>import(`./vendor-icon-user-star-CHPHhv3l.js`).then(e=>e.t),[],import.meta.url),"user-x":()=>n(()=>import(`./vendor-icon-user-x-D6sNOjSU.js`).then(e=>e.t),[],import.meta.url),user:()=>n(()=>import(`./vendor-icon-user-IWwlLQut.js`).then(e=>e.n),[],import.meta.url),"users-round":()=>n(()=>import(`./vendor-icon-users-round-CZb-lgfe.js`).then(e=>e.t),[],import.meta.url),"users-2":()=>n(()=>import(`./vendor-icon-users-round-CZb-lgfe.js`).then(e=>e.t),[],import.meta.url),users:()=>n(()=>import(`./vendor-icon-users-Db5uTXC8.js`).then(e=>e.n),[],import.meta.url),"utensils-crossed":()=>n(()=>import(`./vendor-icon-utensils-crossed-CM6o1Sgg.js`).then(e=>e.t),[],import.meta.url),"fork-knife-crossed":()=>n(()=>import(`./vendor-icon-utensils-crossed-CM6o1Sgg.js`).then(e=>e.t),[],import.meta.url),utensils:()=>n(()=>import(`./vendor-icon-utensils-8ruA_58K.js`).then(e=>e.t),[],import.meta.url),"fork-knife":()=>n(()=>import(`./vendor-icon-utensils-8ruA_58K.js`).then(e=>e.t),[],import.meta.url),"utility-pole":()=>n(()=>import(`./vendor-icon-utility-pole-CkOEPuy4.js`).then(e=>e.t),[],import.meta.url),van:()=>n(()=>import(`./vendor-icon-van-mXdXGva9.js`).then(e=>e.t),[],import.meta.url),variable:()=>n(()=>import(`./vendor-icon-variable-BIgoZQoz.js`).then(e=>e.n),[],import.meta.url),vault:()=>n(()=>import(`./vendor-icon-vault-Cf1ZgQUf.js`).then(e=>e.t),[],import.meta.url),"vector-polygon":()=>n(()=>import(`./vendor-icon-vector-polygon-DKKEuki8.js`).then(e=>e.t),[],import.meta.url),"vector-square":()=>n(()=>import(`./vendor-icon-vector-square-CyXAxpcx.js`).then(e=>e.t),[],import.meta.url),vegan:()=>n(()=>import(`./vendor-icon-vegan-BIja3Abu.js`).then(e=>e.t),[],import.meta.url),"venetian-mask":()=>n(()=>import(`./vendor-icon-venetian-mask-yecUNHJF.js`).then(e=>e.t),[],import.meta.url),"venus-and-mars":()=>n(()=>import(`./vendor-icon-venus-and-mars-sVL3fOEP.js`).then(e=>e.t),[],import.meta.url),venus:()=>n(()=>import(`./vendor-icon-venus-DAZyqTJ_.js`).then(e=>e.t),[],import.meta.url),"vibrate-off":()=>n(()=>import(`./vendor-icon-vibrate-off-BXOZ5eJm.js`).then(e=>e.t),[],import.meta.url),vibrate:()=>n(()=>import(`./vendor-icon-vibrate-BNIHOgop.js`).then(e=>e.t),[],import.meta.url),"video-off":()=>n(()=>import(`./vendor-icon-video-off-BaahjxAn.js`).then(e=>e.t),[],import.meta.url),video:()=>n(()=>import(`./vendor-icon-video-CQRLIFJF.js`).then(e=>e.n),[],import.meta.url),videotape:()=>n(()=>import(`./vendor-icon-videotape-3dUoY8KF.js`).then(e=>e.t),[],import.meta.url),view:()=>n(()=>import(`./vendor-icon-view-Cw25K0P8.js`).then(e=>e.t),[],import.meta.url),"virus-off":()=>n(()=>import(`./vendor-icon-virus-off-CcNwr2qZ.js`).then(e=>e.t),[],import.meta.url),virus:()=>n(()=>import(`./vendor-icon-virus-1wlAHtFn.js`).then(e=>e.t),[],import.meta.url),voicemail:()=>n(()=>import(`./vendor-icon-voicemail-Ds4l7Yl7.js`).then(e=>e.t),[],import.meta.url),volleyball:()=>n(()=>import(`./vendor-icon-volleyball-BP5-FC1f.js`).then(e=>e.t),[],import.meta.url),"volume-1":()=>n(()=>import(`./vendor-icon-volume-1-D0w-9PG0.js`).then(e=>e.t),[],import.meta.url),"volume-2":()=>n(()=>import(`./vendor-icon-volume-2-BtfjmuRe.js`).then(e=>e.t),[],import.meta.url),"volume-off":()=>n(()=>import(`./vendor-icon-volume-off-vD0DJzAc.js`).then(e=>e.t),[],import.meta.url),"volume-x":()=>n(()=>import(`./vendor-icon-volume-x-UFJlPmUQ.js`).then(e=>e.t),[],import.meta.url),volume:()=>n(()=>import(`./vendor-icon-volume-CQrQBnNr.js`).then(e=>e.t),[],import.meta.url),vote:()=>n(()=>import(`./vendor-icon-vote-DTH9eYVI.js`).then(e=>e.t),[],import.meta.url),"wallet-cards":()=>n(()=>import(`./vendor-icon-wallet-cards-DnZV2ppM.js`).then(e=>e.t),[],import.meta.url),"wallet-minimal":()=>n(()=>import(`./vendor-icon-wallet-minimal-BWSDLJBg.js`).then(e=>e.t),[],import.meta.url),"wallet-2":()=>n(()=>import(`./vendor-icon-wallet-minimal-BWSDLJBg.js`).then(e=>e.t),[],import.meta.url),wallet:()=>n(()=>import(`./vendor-icon-wallet-Sng3F0Ed.js`).then(e=>e.t),[],import.meta.url),wallpaper:()=>n(()=>import(`./vendor-icon-wallpaper-CDH8u2lF.js`).then(e=>e.t),[],import.meta.url),"wand-sparkles":()=>n(()=>import(`./vendor-icon-wand-sparkles-DGBfehuR.js`).then(e=>e.n),[],import.meta.url),"wand-2":()=>n(()=>import(`./vendor-icon-wand-sparkles-DGBfehuR.js`).then(e=>e.n),[],import.meta.url),wand:()=>n(()=>import(`./vendor-icon-wand-Ckc-PUC4.js`).then(e=>e.t),[],import.meta.url),warehouse:()=>n(()=>import(`./vendor-icon-warehouse-DfrDcFKu.js`).then(e=>e.t),[],import.meta.url),"washing-machine":()=>n(()=>import(`./vendor-icon-washing-machine-ULNCtSeM.js`).then(e=>e.t),[],import.meta.url),watch:()=>n(()=>import(`./vendor-icon-watch-5hwKhM52.js`).then(e=>e.t),[],import.meta.url),"waves-arrow-down":()=>n(()=>import(`./vendor-icon-waves-arrow-down-DwW6MDxa.js`).then(e=>e.t),[],import.meta.url),"waves-arrow-up":()=>n(()=>import(`./vendor-icon-waves-arrow-up-DuwvvgkL.js`).then(e=>e.t),[],import.meta.url),"waves-horizontal":()=>n(()=>import(`./vendor-icon-waves-horizontal-DNl1SWWx.js`).then(e=>e.t),[],import.meta.url),waves:()=>n(()=>import(`./vendor-icon-waves-horizontal-DNl1SWWx.js`).then(e=>e.t),[],import.meta.url),"waves-ladder":()=>n(()=>import(`./vendor-icon-waves-ladder-Bkoi1nxT.js`).then(e=>e.t),[],import.meta.url),"waves-vertical":()=>n(()=>import(`./vendor-icon-waves-vertical-BJ7e5rqD.js`).then(e=>e.t),[],import.meta.url),waypoints:()=>n(()=>import(`./vendor-icon-waypoints-BZM6qFLh.js`).then(e=>e.t),[],import.meta.url),"webcam-off":()=>n(()=>import(`./vendor-icon-webcam-off-S3ORn4vP.js`).then(e=>e.t),[],import.meta.url),webcam:()=>n(()=>import(`./vendor-icon-webcam-BzfnQSvD.js`).then(e=>e.t),[],import.meta.url),"webhook-off":()=>n(()=>import(`./vendor-icon-webhook-off-CBl7ttOO.js`).then(e=>e.t),[],import.meta.url),webhook:()=>n(()=>import(`./vendor-icon-webhook-B43SyK1w.js`).then(e=>e.n),[],import.meta.url),"weight-tilde":()=>n(()=>import(`./vendor-icon-weight-tilde-DYvlrGcB.js`).then(e=>e.t),[],import.meta.url),weight:()=>n(()=>import(`./vendor-icon-weight-BpSSbRek.js`).then(e=>e.t),[],import.meta.url),"wheat-off":()=>n(()=>import(`./vendor-icon-wheat-off-CEToO2T-.js`).then(e=>e.t),[],import.meta.url),wheat:()=>n(()=>import(`./vendor-icon-wheat-DBLMopjf.js`).then(e=>e.t),[],import.meta.url),whistle:()=>n(()=>import(`./vendor-icon-whistle-fqK7zkwo.js`).then(e=>e.t),[],import.meta.url),"whole-word":()=>n(()=>import(`./vendor-icon-whole-word-CyN0Qegg.js`).then(e=>e.t),[],import.meta.url),"wifi-cog":()=>n(()=>import(`./vendor-icon-wifi-cog-Bsivqe5M.js`).then(e=>e.t),[],import.meta.url),"wifi-high":()=>n(()=>import(`./vendor-icon-wifi-high-DyLSzMwN.js`).then(e=>e.t),[],import.meta.url),"wifi-low":()=>n(()=>import(`./vendor-icon-wifi-low-DGLaLJvE.js`).then(e=>e.t),[],import.meta.url),"wifi-off":()=>n(()=>import(`./vendor-icon-wifi-off-BnMfEHbG.js`).then(e=>e.n),[],import.meta.url),"wifi-pen":()=>n(()=>import(`./vendor-icon-wifi-pen-BmjgxU41.js`).then(e=>e.t),[],import.meta.url),"wifi-sync":()=>n(()=>import(`./vendor-icon-wifi-sync-C-X_L1tr.js`).then(e=>e.t),[],import.meta.url),"wifi-zero":()=>n(()=>import(`./vendor-icon-wifi-zero-CONWYUX5.js`).then(e=>e.t),[],import.meta.url),wifi:()=>n(()=>import(`./vendor-icon-wifi-BG4MfGMg.js`).then(e=>e.t),[],import.meta.url),"wind-arrow-down":()=>n(()=>import(`./vendor-icon-wind-arrow-down-oXneUP8G.js`).then(e=>e.t),[],import.meta.url),wind:()=>n(()=>import(`./vendor-icon-wind-BpRT8LNj.js`).then(e=>e.t),[],import.meta.url),"wine-off":()=>n(()=>import(`./vendor-icon-wine-off-Bcg0i5Hj.js`).then(e=>e.t),[],import.meta.url),wine:()=>n(()=>import(`./vendor-icon-wine-DjzbxQbE.js`).then(e=>e.t),[],import.meta.url),workflow:()=>n(()=>import(`./vendor-icon-workflow-B9ASq0nN.js`).then(e=>e.n),[],import.meta.url),worm:()=>n(()=>import(`./vendor-icon-worm-uKBfgNA6.js`).then(e=>e.t),[],import.meta.url),"wrench-off":()=>n(()=>import(`./vendor-icon-wrench-off-CgW_teBy.js`).then(e=>e.t),[],import.meta.url),wrench:()=>n(()=>import(`./vendor-icon-wrench-BX7gnYSA.js`).then(e=>e.n),[],import.meta.url),"x-line-top":()=>n(()=>import(`./vendor-icon-x-line-top-CNDcKSwh.js`).then(e=>e.t),[],import.meta.url),x:()=>n(()=>import(`./vendor-icon-x-CcLtgRNL.js`).then(e=>e.n),[],import.meta.url),"zap-off":()=>n(()=>import(`./vendor-icon-zap-off-GiimEOkZ.js`).then(e=>e.n),[],import.meta.url),zap:()=>n(()=>import(`./vendor-icon-zap-3ulAPCbu.js`).then(e=>e.n),[],import.meta.url),"zodiac-aquarius":()=>n(()=>import(`./vendor-icon-zodiac-aquarius-BjxBo1MQ.js`).then(e=>e.t),[],import.meta.url),"zodiac-aries":()=>n(()=>import(`./vendor-icon-zodiac-aries-Bm5Ud-kH.js`).then(e=>e.t),[],import.meta.url),"zodiac-cancer":()=>n(()=>import(`./vendor-icon-zodiac-cancer-Dv4Z_meq.js`).then(e=>e.t),[],import.meta.url),"zodiac-capricorn":()=>n(()=>import(`./vendor-icon-zodiac-capricorn-D9qwsxxs.js`).then(e=>e.t),[],import.meta.url),"zodiac-gemini":()=>n(()=>import(`./vendor-icon-zodiac-gemini-BdleFI8U.js`).then(e=>e.t),[],import.meta.url),"zodiac-leo":()=>n(()=>import(`./vendor-icon-zodiac-leo-MYNoq836.js`).then(e=>e.t),[],import.meta.url),"zodiac-libra":()=>n(()=>import(`./vendor-icon-zodiac-libra-SSggqlft.js`).then(e=>e.t),[],import.meta.url),"zodiac-ophiuchus":()=>n(()=>import(`./vendor-icon-zodiac-ophiuchus-Bld6lcPy.js`).then(e=>e.t),[],import.meta.url),"zodiac-pisces":()=>n(()=>import(`./vendor-icon-zodiac-pisces-BpBV-psm.js`).then(e=>e.t),[],import.meta.url),"zodiac-sagittarius":()=>n(()=>import(`./vendor-icon-zodiac-sagittarius-DSm9L7c3.js`).then(e=>e.t),[],import.meta.url),"zodiac-scorpio":()=>n(()=>import(`./vendor-icon-zodiac-scorpio-BA1MKUUQ.js`).then(e=>e.t),[],import.meta.url),"zodiac-taurus":()=>n(()=>import(`./vendor-icon-zodiac-taurus-UtvriRd3.js`).then(e=>e.t),[],import.meta.url),"zodiac-virgo":()=>n(()=>import(`./vendor-icon-zodiac-virgo-2Jjk7Gzs.js`).then(e=>e.t),[],import.meta.url),"zoom-in":()=>n(()=>import(`./vendor-icon-zoom-in-ShI9ftXk.js`).then(e=>e.n),[],import.meta.url),"zoom-out":()=>n(()=>import(`./vendor-icon-zoom-out-IlqZRNIF.js`).then(e=>e.n),[],import.meta.url)},dx=Object.keys(ux);async function fx(e){if(!(e in ux))throw Error(`[lucide-react]: Name in Lucide DynamicIcon not found`);let t=await ux[e]();if(t.__iconData!=null)return t.__iconData;throw Error(`[lucide-react]: Failed to resolve icon data for DynamicIcon`)}var px=(0,q.forwardRef)(({name:e,fallback:t,...n},r)=>{let[i,a]=(0,q.useState)();return(0,q.useEffect)(()=>{fx(e).then(a).catch(e=>{console.error(e)})},[e]),i==null?t==null?null:(0,q.createElement)(t):(0,q.createElement)(ii,{ref:r,...n,icon:i})}),mx=`AArrowDown:a-arrow-down,AArrowUp:a-arrow-up,ALargeSmall:a-large-small,Accessibility:accessibility,Activity:activity,Ad:ad,AirVent:air-vent,Airplay:airplay,AlarmClock:alarm-clock,AlarmClockCheck:alarm-clock-check,AlarmClockMinus:alarm-clock-minus,AlarmClockOff:alarm-clock-off,AlarmClockPlus:alarm-clock-plus,AlarmSmoke:alarm-smoke,Album:album,AlignCenterHorizontal:align-center-horizontal,AlignCenterVertical:align-center-vertical,AlignEndHorizontal:align-end-horizontal,AlignEndVertical:align-end-vertical,AlignHorizontalDistributeCenter:align-horizontal-distribute-center,AlignHorizontalDistributeEnd:align-horizontal-distribute-end,AlignHorizontalDistributeStart:align-horizontal-distribute-start,AlignHorizontalJustifyCenter:align-horizontal-justify-center,AlignHorizontalJustifyEnd:align-horizontal-justify-end,AlignHorizontalJustifyStart:align-horizontal-justify-start,AlignHorizontalSpaceAround:align-horizontal-space-around,AlignHorizontalSpaceBetween:align-horizontal-space-between,AlignStartHorizontal:align-start-horizontal,AlignStartVertical:align-start-vertical,AlignVerticalDistributeCenter:align-vertical-distribute-center,AlignVerticalDistributeEnd:align-vertical-distribute-end,AlignVerticalDistributeStart:align-vertical-distribute-start,AlignVerticalJustifyCenter:align-vertical-justify-center,AlignVerticalJustifyEnd:align-vertical-justify-end,AlignVerticalJustifyStart:align-vertical-justify-start,AlignVerticalSpaceAround:align-vertical-space-around,AlignVerticalSpaceBetween:align-vertical-space-between,Ambulance:ambulance,Ampersand:ampersand,Ampersands:ampersands,Amphora:amphora,Anchor:anchor,Angle:angle,Antenna:antenna,Anvil:anvil,Aperture:aperture,AppWindow:app-window,AppWindowMac:app-window-mac,Apple:apple,Archive:archive,ArchiveRestore:archive-restore,ArchiveX:archive-x,Armchair:armchair,ArrowBigDown:arrow-big-down,ArrowBigDownDash:arrow-big-down-dash,ArrowBigLeft:arrow-big-left,ArrowBigLeftDash:arrow-big-left-dash,ArrowBigRight:arrow-big-right,ArrowBigRightDash:arrow-big-right-dash,ArrowBigUp:arrow-big-up,ArrowBigUpDash:arrow-big-up-dash,ArrowDown:arrow-down,ArrowDown01:arrow-down-0-1,ArrowDown10:arrow-down-1-0,ArrowDownAZ:arrow-down-a-z,ArrowDownFromLine:arrow-down-from-line,ArrowDownLeft:arrow-down-left,ArrowDownNarrowWide:arrow-down-narrow-wide,ArrowDownRight:arrow-down-right,ArrowDownToDot:arrow-down-to-dot,ArrowDownToLine:arrow-down-to-line,ArrowDownUp:arrow-down-up,ArrowDownWideNarrow:arrow-down-wide-narrow,ArrowDownZA:arrow-down-z-a,ArrowLeft:arrow-left,ArrowLeftFromLine:arrow-left-from-line,ArrowLeftRight:arrow-left-right,ArrowLeftToLine:arrow-left-to-line,ArrowRight:arrow-right,ArrowRightFromLine:arrow-right-from-line,ArrowRightLeft:arrow-right-left,ArrowRightToLine:arrow-right-to-line,ArrowUp:arrow-up,ArrowUp01:arrow-up-0-1,ArrowUp10:arrow-up-1-0,ArrowUpAZ:arrow-up-a-z,ArrowUpDown:arrow-up-down,ArrowUpFromDot:arrow-up-from-dot,ArrowUpFromLine:arrow-up-from-line,ArrowUpLeft:arrow-up-left,ArrowUpNarrowWide:arrow-up-narrow-wide,ArrowUpRight:arrow-up-right,ArrowUpToLine:arrow-up-to-line,ArrowUpWideNarrow:arrow-up-wide-narrow,ArrowUpZA:arrow-up-z-a,ArrowsUpFromLine:arrows-up-from-line,Asterisk:asterisk,Astroid:astroid,AtSign:at-sign,Atom:atom,AudioLines:audio-lines,AudioLinesOff:audio-lines-off,AudioLinesX:audio-lines-x,AudioWaveform:audio-waveform,Award:award,Axe:axe,Axis3d:axis-3d,Baby:baby,Backpack:backpack,Badge:badge,BadgeAlert:badge-alert,BadgeCent:badge-cent,BadgeCheck:badge-check,BadgeDollarSign:badge-dollar-sign,BadgeEuro:badge-euro,BadgeIndianRupee:badge-indian-rupee,BadgeInfo:badge-info,BadgeJapaneseYen:badge-japanese-yen,BadgeMinus:badge-minus,BadgePercent:badge-percent,BadgePlus:badge-plus,BadgePoundSterling:badge-pound-sterling,BadgeQuestionMark:badge-question-mark,BadgeRussianRuble:badge-russian-ruble,BadgeSwissFranc:badge-swiss-franc,BadgeTurkishLira:badge-turkish-lira,BadgeX:badge-x,BaggageClaim:baggage-claim,Balloon:balloon,Ban:ban,Banana:banana,Bandage:bandage,Banknote:banknote,BanknoteArrowDown:banknote-arrow-down,BanknoteArrowUp:banknote-arrow-up,BanknoteCheck:banknote-check,BanknoteX:banknote-x,Barcode:barcode,Barrel:barrel,Baseline:baseline,Bath:bath,Battery:battery,BatteryCharging:battery-charging,BatteryFull:battery-full,BatteryLow:battery-low,BatteryMedium:battery-medium,BatteryPlus:battery-plus,BatteryWarning:battery-warning,Beaker:beaker,Bean:bean,BeanOff:bean-off,Bed:bed,BedDouble:bed-double,BedSingle:bed-single,Beef:beef,BeefOff:beef-off,Beer:beer,BeerOff:beer-off,Bell:bell,BellCheck:bell-check,BellDot:bell-dot,BellElectric:bell-electric,BellMinus:bell-minus,BellOff:bell-off,BellPlus:bell-plus,BellRing:bell-ring,BetweenHorizontalEnd:between-horizontal-end,BetweenHorizontalStart:between-horizontal-start,BetweenVerticalEnd:between-vertical-end,BetweenVerticalStart:between-vertical-start,BicepsFlexed:biceps-flexed,Bike:bike,Binary:binary,Binoculars:binoculars,Biohazard:biohazard,Bird:bird,Birdhouse:birdhouse,Bitcoin:bitcoin,Blend:blend,Blender:blender,Blinds:blinds,Blocks:blocks,Bluetooth:bluetooth,BluetoothConnected:bluetooth-connected,BluetoothOff:bluetooth-off,BluetoothSearching:bluetooth-searching,Bold:bold,Bolt:bolt,Bomb:bomb,Bone:bone,BoneFracture:bone-fracture,Book:book,BookA:book-a,BookAlert:book-alert,BookAudio:book-audio,BookCheck:book-check,BookCopy:book-copy,BookDashed:book-dashed,BookDown:book-down,BookHeadphones:book-headphones,BookHeart:book-heart,BookImage:book-image,BookKey:book-key,BookLock:book-lock,BookMarked:book-marked,BookMinus:book-minus,BookOpen:book-open,BookOpenCheck:book-open-check,BookOpenText:book-open-text,BookPlus:book-plus,BookSearch:book-search,BookText:book-text,BookType:book-type,BookUp:book-up,BookUp2:book-up-2,BookUser:book-user,BookX:book-x,Bookmark:bookmark,BookmarkCheck:bookmark-check,BookmarkMinus:bookmark-minus,BookmarkOff:bookmark-off,BookmarkPlus:bookmark-plus,BookmarkX:bookmark-x,BoomBox:boom-box,Bot:bot,BotMessageSquare:bot-message-square,BotOff:bot-off,BottleWine:bottle-wine,BowArrow:bow-arrow,Box:box,Boxes:boxes,Braces:braces,Brackets:brackets,Brain:brain,BrainCircuit:brain-circuit,BrainCog:brain-cog,BrickWall:brick-wall,BrickWallFire:brick-wall-fire,BrickWallShield:brick-wall-shield,Bridge:bridge,Briefcase:briefcase,BriefcaseBusiness:briefcase-business,BriefcaseConveyorBelt:briefcase-conveyor-belt,BriefcaseMedical:briefcase-medical,BringToFront:bring-to-front,Broccoli:broccoli,Broom:broom,BroomSparkles:broom-sparkles,Brush:brush,BrushCleaning:brush-cleaning,Bubbles:bubbles,Bug:bug,BugOff:bug-off,BugPlay:bug-play,Building:building,Building2:building-2,Bus:bus,BusFront:bus-front,Cable:cable,CableCar:cable-car,Cake:cake,CakeSlice:cake-slice,Calculator:calculator,Calendar:calendar,Calendar1:calendar-1,CalendarArrowDown:calendar-arrow-down,CalendarArrowUp:calendar-arrow-up,CalendarCheck:calendar-check,CalendarCheck2:calendar-check-2,CalendarClock:calendar-clock,CalendarCog:calendar-cog,CalendarDays:calendar-days,CalendarFold:calendar-fold,CalendarHeart:calendar-heart,CalendarMinus:calendar-minus,CalendarMinus2:calendar-minus-2,CalendarOff:calendar-off,CalendarPlus:calendar-plus,CalendarPlus2:calendar-plus-2,CalendarRange:calendar-range,CalendarSearch:calendar-search,CalendarSync:calendar-sync,CalendarX:calendar-x,CalendarX2:calendar-x-2,Calendars:calendars,Camera:camera,CameraOff:camera-off,Can:can,CanSoda:can-soda,Candy:candy,CandyCane:candy-cane,CandyOff:candy-off,Cannabis:cannabis,CannabisOff:cannabis-off,Captions:captions,CaptionsOff:captions-off,Car:car,CarBattery:car-battery,CarFront:car-front,CarTaxiFront:car-taxi-front,Caravan:caravan,CardSim:card-sim,Carrot:carrot,Carton:carton,CartonOff:carton-off,CaseLower:case-lower,CaseSensitive:case-sensitive,CaseUpper:case-upper,CassetteTape:cassette-tape,Cast:cast,Castle:castle,Cat:cat,Cctv:cctv,CctvOff:cctv-off,ChartArea:chart-area,ChartBar:chart-bar,ChartBarBig:chart-bar-big,ChartBarDecreasing:chart-bar-decreasing,ChartBarIncreasing:chart-bar-increasing,ChartBarStacked:chart-bar-stacked,ChartCandlestick:chart-candlestick,ChartColumn:chart-column,ChartColumnBig:chart-column-big,ChartColumnDecreasing:chart-column-decreasing,ChartColumnIncreasing:chart-column-increasing,ChartColumnStacked:chart-column-stacked,ChartGantt:chart-gantt,ChartLine:chart-line,ChartNetwork:chart-network,ChartNoAxesColumn:chart-no-axes-column,ChartNoAxesColumnDecreasing:chart-no-axes-column-decreasing,ChartNoAxesColumnIncreasing:chart-no-axes-column-increasing,ChartNoAxesCombined:chart-no-axes-combined,ChartNoAxesGantt:chart-no-axes-gantt,ChartPie:chart-pie,ChartScatter:chart-scatter,ChartSpline:chart-spline,Check:check,CheckCheck:check-check,CheckLine:check-line,ChefHat:chef-hat,Cherry:cherry,ChessBishop:chess-bishop,ChessKing:chess-king,ChessKnight:chess-knight,ChessPawn:chess-pawn,ChessQueen:chess-queen,ChessRook:chess-rook,ChevronDown:chevron-down,ChevronFirst:chevron-first,ChevronLast:chevron-last,ChevronLeft:chevron-left,ChevronRight:chevron-right,ChevronUp:chevron-up,ChevronsDown:chevrons-down,ChevronsDownUp:chevrons-down-up,ChevronsLeft:chevrons-left,ChevronsLeftRight:chevrons-left-right,ChevronsLeftRightEllipsis:chevrons-left-right-ellipsis,ChevronsRight:chevrons-right,ChevronsRightLeft:chevrons-right-left,ChevronsUp:chevrons-up,ChevronsUpDown:chevrons-up-down,Church:church,Cigarette:cigarette,CigaretteOff:cigarette-off,Circle:circle,CircleAlert:circle-alert,CircleArrowDown:circle-arrow-down,CircleArrowLeft:circle-arrow-left,CircleArrowOutDownLeft:circle-arrow-out-down-left,CircleArrowOutDownRight:circle-arrow-out-down-right,CircleArrowOutUpLeft:circle-arrow-out-up-left,CircleArrowOutUpRight:circle-arrow-out-up-right,CircleArrowRight:circle-arrow-right,CircleArrowUp:circle-arrow-up,CircleCheck:circle-check,CircleCheckBig:circle-check-big,CircleChevronDown:circle-chevron-down,CircleChevronLeft:circle-chevron-left,CircleChevronRight:circle-chevron-right,CircleChevronUp:circle-chevron-up,CircleDashed:circle-dashed,CircleDashedCheck:circle-dashed-check,CircleDivide:circle-divide,CircleDollarSign:circle-dollar-sign,CircleDot:circle-dot,CircleDotDashed:circle-dot-dashed,CircleEllipsis:circle-ellipsis,CircleEqual:circle-equal,CircleEuro:circle-euro,CircleFadingArrowUp:circle-fading-arrow-up,CircleFadingPlus:circle-fading-plus,CircleGauge:circle-gauge,CircleMinus:circle-minus,CircleOff:circle-off,CircleParking:circle-parking,CircleParkingOff:circle-parking-off,CirclePause:circle-pause,CirclePercent:circle-percent,CirclePile:circle-pile,CirclePlay:circle-play,CirclePlus:circle-plus,CirclePoundSterling:circle-pound-sterling,CirclePower:circle-power,CircleQuestionMark:circle-question-mark,CircleSlash:circle-slash,CircleSlash2:circle-slash-2,CircleSmall:circle-small,CircleStar:circle-star,CircleStop:circle-stop,CircleUser:circle-user,CircleUserRound:circle-user-round,CircleX:circle-x,CircuitBoard:circuit-board,Citrus:citrus,Clapperboard:clapperboard,Clipboard:clipboard,ClipboardCheck:clipboard-check,ClipboardClock:clipboard-clock,ClipboardCopy:clipboard-copy,ClipboardList:clipboard-list,ClipboardMinus:clipboard-minus,ClipboardPaste:clipboard-paste,ClipboardPen:clipboard-pen,ClipboardPenLine:clipboard-pen-line,ClipboardPlus:clipboard-plus,ClipboardType:clipboard-type,ClipboardX:clipboard-x,Clock:clock,Clock1:clock-1,Clock10:clock-10,Clock11:clock-11,Clock12:clock-12,Clock2:clock-2,Clock3:clock-3,Clock4:clock-4,Clock5:clock-5,Clock6:clock-6,Clock7:clock-7,Clock8:clock-8,Clock9:clock-9,ClockAlert:clock-alert,ClockArrowDown:clock-arrow-down,ClockArrowLeft:clock-arrow-left,ClockArrowRight:clock-arrow-right,ClockArrowUp:clock-arrow-up,ClockCheck:clock-check,ClockFading:clock-fading,ClockPlus:clock-plus,ClosedCaption:closed-caption,Cloud:cloud,CloudAlert:cloud-alert,CloudBackup:cloud-backup,CloudCheck:cloud-check,CloudCog:cloud-cog,CloudDownload:cloud-download,CloudDrizzle:cloud-drizzle,CloudFog:cloud-fog,CloudHail:cloud-hail,CloudLightning:cloud-lightning,CloudMoon:cloud-moon,CloudMoonRain:cloud-moon-rain,CloudOff:cloud-off,CloudRain:cloud-rain,CloudRainWind:cloud-rain-wind,CloudSnow:cloud-snow,CloudSun:cloud-sun,CloudSunRain:cloud-sun-rain,CloudSync:cloud-sync,CloudUpload:cloud-upload,Cloudy:cloudy,Clover:clover,Club:club,Code:code,CodeXml:code-xml,Coffee:coffee,Cog:cog,Coins:coins,Columns2:columns-2,Columns3:columns-3,Columns3Cog:columns-3-cog,Columns4:columns-4,Combine:combine,Command:command,Compass:compass,Component:component,Computer:computer,ConciergeBell:concierge-bell,Cone:cone,Construction:construction,Contact:contact,ContactRound:contact-round,Container:container,Contrast:contrast,Cookie:cookie,CookingPot:cooking-pot,Copy:copy,CopyCheck:copy-check,CopyMinus:copy-minus,CopyPlus:copy-plus,CopySlash:copy-slash,CopyX:copy-x,Copyleft:copyleft,Copyright:copyright,CornerDownLeft:corner-down-left,CornerDownRight:corner-down-right,CornerLeftDown:corner-left-down,CornerLeftUp:corner-left-up,CornerRightDown:corner-right-down,CornerRightUp:corner-right-up,CornerUpLeft:corner-up-left,CornerUpRight:corner-up-right,Cpu:cpu,CreativeCommons:creative-commons,CreditCard:credit-card,CreditCardCheck:credit-card-check,CreditCardMinus:credit-card-minus,CreditCardPlus:credit-card-plus,CreditCardReader:credit-card-reader,CreditCardX:credit-card-x,Croissant:croissant,Crop:crop,Cross:cross,Crosshair:crosshair,Crown:crown,Cuboid:cuboid,CupSoda:cup-soda,Currency:currency,Cylinder:cylinder,Dam:dam,Database:database,DatabaseArrowDown:database-arrow-down,DatabaseArrowUp:database-arrow-up,DatabaseBackup:database-backup,DatabaseCheck:database-check,DatabaseMinus:database-minus,DatabasePlus:database-plus,DatabaseSearch:database-search,DatabaseX:database-x,DatabaseZap:database-zap,DecimalsArrowLeft:decimals-arrow-left,DecimalsArrowRight:decimals-arrow-right,Delete:delete,Dessert:dessert,Diameter:diameter,Diamond:diamond,DiamondMinus:diamond-minus,DiamondPercent:diamond-percent,DiamondPlus:diamond-plus,Dice1:dice-1,Dice2:dice-2,Dice3:dice-3,Dice4:dice-4,Dice5:dice-5,Dice6:dice-6,Dices:dices,Diff:diff,Disc:disc,Disc2:disc-2,Disc3:disc-3,DiscAlbum:disc-album,Divide:divide,Dna:dna,DnaOff:dna-off,Dock:dock,Dog:dog,DollarSign:dollar-sign,Dome:dome,Donut:donut,DoorClosed:door-closed,DoorClosedLocked:door-closed-locked,DoorOpen:door-open,DoorStairwell:door-stairwell,Dot:dot,Download:download,DraftingCompass:drafting-compass,Drama:drama,Drill:drill,Drone:drone,Droplet:droplet,DropletOff:droplet-off,Droplets:droplets,Drum:drum,Drumstick:drumstick,Dumbbell:dumbbell,Ear:ear,EarOff:ear-off,Earth:earth,EarthLock:earth-lock,Eclipse:eclipse,Egg:egg,EggFried:egg-fried,EggOff:egg-off,Eject:eject,Ellipse:ellipse,Ellipsis:ellipsis,EllipsisVertical:ellipsis-vertical,Engine:engine,Equal:equal,EqualApproximately:equal-approximately,EqualApproximatelyNot:equal-approximately-not,EqualNot:equal-not,Eraser:eraser,EthernetPort:ethernet-port,Euro:euro,EvCharger:ev-charger,Expand:expand,ExternalLink:external-link,Eye:eye,EyeClosed:eye-closed,EyeDashed:eye-dashed,EyeOff:eye-off,FaceAngry:face-angry,FaceExpressionless:face-expressionless,FaceGrinning:face-grinning,FaceNeutral:face-neutral,FaceSlightlyFrowning:face-slightly-frowning,FaceSlightlySmiling:face-slightly-smiling,FaceSlightlySmilingPlus:face-slightly-smiling-plus,Factory:factory,Fan:fan,FastForward:fast-forward,Feather:feather,Fence:fence,FerrisWheel:ferris-wheel,File:file,FileArchive:file-archive,FileAxis3d:file-axis-3d,FileBadge:file-badge,FileBox:file-box,FileBraces:file-braces,FileBracesCorner:file-braces-corner,FileChartColumn:file-chart-column,FileChartColumnIncreasing:file-chart-column-increasing,FileChartLine:file-chart-line,FileChartPie:file-chart-pie,FileCheck:file-check,FileCheckCorner:file-check-corner,FileClock:file-clock,FileCode:file-code,FileCodeCorner:file-code-corner,FileCog:file-cog,FileDiff:file-diff,FileDigit:file-digit,FileDown:file-down,FileExclamationPoint:file-exclamation-point,FileHeadphone:file-headphone,FileHeart:file-heart,FileImage:file-image,FileInput:file-input,FileKey:file-key,FileLock:file-lock,FileMinus:file-minus,FileMinusCorner:file-minus-corner,FileMusic:file-music,FileOutput:file-output,FilePen:file-pen,FilePenLine:file-pen-line,FilePlay:file-play,FilePlus:file-plus,FilePlusCorner:file-plus-corner,FileQuestionMark:file-question-mark,FileScan:file-scan,FileSearch:file-search,FileSearchCorner:file-search-corner,FileSignal:file-signal,FileSliders:file-sliders,FileSpreadsheet:file-spreadsheet,FileStack:file-stack,FileSymlink:file-symlink,FileTerminal:file-terminal,FileText:file-text,FileType:file-type,FileTypeCorner:file-type-corner,FileUp:file-up,FileUser:file-user,FileVideoCamera:file-video-camera,FileVolume:file-volume,FileX:file-x,FileXCorner:file-x-corner,Files:files,Film:film,FingerprintPattern:fingerprint-pattern,FireExtinguisher:fire-extinguisher,Fish:fish,FishOff:fish-off,FishSymbol:fish-symbol,FishingHook:fishing-hook,FishingRod:fishing-rod,Flag:flag,FlagOff:flag-off,FlagTriangleLeft:flag-triangle-left,FlagTriangleRight:flag-triangle-right,Flame:flame,FlameKindling:flame-kindling,Flashlight:flashlight,FlashlightOff:flashlight-off,FlaskConical:flask-conical,FlaskConicalOff:flask-conical-off,FlaskRound:flask-round,FlipHorizontal2:flip-horizontal-2,FlipVertical2:flip-vertical-2,Flower:flower,Flower2:flower-2,Focus:focus,FoldHorizontal:fold-horizontal,FoldVertical:fold-vertical,Folder:folder,FolderArchive:folder-archive,FolderBookmark:folder-bookmark,FolderCheck:folder-check,FolderClock:folder-clock,FolderClosed:folder-closed,FolderCode:folder-code,FolderCog:folder-cog,FolderDot:folder-dot,FolderDown:folder-down,FolderGit:folder-git,FolderGit2:folder-git-2,FolderHeart:folder-heart,FolderInput:folder-input,FolderKanban:folder-kanban,FolderKey:folder-key,FolderLock:folder-lock,FolderMinus:folder-minus,FolderOpen:folder-open,FolderOpenDot:folder-open-dot,FolderOutput:folder-output,FolderPen:folder-pen,FolderPlus:folder-plus,FolderRoot:folder-root,FolderSearch:folder-search,FolderSearch2:folder-search-2,FolderSymlink:folder-symlink,FolderSync:folder-sync,FolderTree:folder-tree,FolderUp:folder-up,FolderX:folder-x,Folders:folders,Footprints:footprints,Forklift:forklift,Form:form,Forward:forward,Frame:frame,Fuel:fuel,Fullscreen:fullscreen,Funnel:funnel,FunnelPlus:funnel-plus,FunnelX:funnel-x,Galaxy:galaxy,GalleryHorizontal:gallery-horizontal,GalleryHorizontalEnd:gallery-horizontal-end,GalleryThumbnails:gallery-thumbnails,GalleryVertical:gallery-vertical,GalleryVerticalEnd:gallery-vertical-end,Gamepad:gamepad,Gamepad2:gamepad-2,GamepadDirectional:gamepad-directional,GapHorizontal:gap-horizontal,GapVertical:gap-vertical,Gauge:gauge,Gavel:gavel,Gem:gem,GeorgianLari:georgian-lari,Germ:germ,GermOff:germ-off,Ghost:ghost,Gift:gift,GitBranch:git-branch,GitBranchMinus:git-branch-minus,GitBranchPlus:git-branch-plus,GitCommitHorizontal:git-commit-horizontal,GitCommitVertical:git-commit-vertical,GitCompare:git-compare,GitCompareArrows:git-compare-arrows,GitFork:git-fork,GitGraph:git-graph,GitMerge:git-merge,GitMergeConflict:git-merge-conflict,GitPullRequest:git-pull-request,GitPullRequestArrow:git-pull-request-arrow,GitPullRequestClosed:git-pull-request-closed,GitPullRequestCreate:git-pull-request-create,GitPullRequestCreateArrow:git-pull-request-create-arrow,GitPullRequestDraft:git-pull-request-draft,GlassWater:glass-water,Glasses:glasses,Globe:globe,GlobeCheck:globe-check,GlobeLock:globe-lock,GlobeOff:globe-off,GlobeX:globe-x,Goal:goal,Gpu:gpu,GraduationCap:graduation-cap,Grape:grape,Grid2x2:grid-2x2,Grid2x2Check:grid-2x2-check,Grid2x2Plus:grid-2x2-plus,Grid2x2X:grid-2x2-x,Grid3x2:grid-3x2,Grid3x3:grid-3x3,Grip:grip,GripHorizontal:grip-horizontal,GripVertical:grip-vertical,Group:group,Guitar:guitar,Ham:ham,Hamburger:hamburger,Hammer:hammer,Hand:hand,HandCoins:hand-coins,HandFist:hand-fist,HandGrab:hand-grab,HandHeart:hand-heart,HandHelping:hand-helping,HandMetal:hand-metal,HandPlatter:hand-platter,Handbag:handbag,Handshake:handshake,HardDrive:hard-drive,HardDriveDownload:hard-drive-download,HardDriveUpload:hard-drive-upload,HardHat:hard-hat,Hash:hash,HatGlasses:hat-glasses,Haze:haze,Hd:hd,HdmiPort:hdmi-port,Heading:heading,Heading1:heading-1,Heading2:heading-2,Heading3:heading-3,Heading4:heading-4,Heading5:heading-5,Heading6:heading-6,HeadphoneOff:headphone-off,Headphones:headphones,Headset:headset,Heart:heart,HeartCrack:heart-crack,HeartHandshake:heart-handshake,HeartMinus:heart-minus,HeartOff:heart-off,HeartPlus:heart-plus,HeartPulse:heart-pulse,HeartX:heart-x,Heater:heater,Helicopter:helicopter,Hexagon:hexagon,Highlighter:highlighter,Hop:hop,HopOff:hop-off,Hospital:hospital,Hotel:hotel,Hourglass:hourglass,House:house,HouseHeart:house-heart,HousePlug:house-plug,HousePlus:house-plus,HouseWifi:house-wifi,IceCreamBowl:ice-cream-bowl,IceCreamCone:ice-cream-cone,IdCard:id-card,IdCardLanyard:id-card-lanyard,Image:image,ImageDown:image-down,ImageMinus:image-minus,ImageOff:image-off,ImagePlay:image-play,ImagePlus:image-plus,ImageUp:image-up,ImageUpscale:image-upscale,Images:images,Import:import,Inbox:inbox,IndianRupee:indian-rupee,Infinity:infinity,Info:info,InspectionPanel:inspection-panel,Italic:italic,IterationCcw:iteration-ccw,IterationCw:iteration-cw,JapaneseYen:japanese-yen,Joystick:joystick,Kanban:kanban,Kayak:kayak,Key:key,KeyRound:key-round,KeySquare:key-square,Keyboard:keyboard,KeyboardMusic:keyboard-music,KeyboardOff:keyboard-off,Lamp:lamp,LampCeiling:lamp-ceiling,LampDesk:lamp-desk,LampFloor:lamp-floor,LampWallDown:lamp-wall-down,LampWallUp:lamp-wall-up,LandPlot:land-plot,Landmark:landmark,Languages:languages,Laptop:laptop,LaptopMinimal:laptop-minimal,LaptopMinimalCheck:laptop-minimal-check,Lasso:lasso,LassoSelect:lasso-select,LayerArrowDown:layer-arrow-down,LayerArrowUp:layer-arrow-up,Layers:layers,Layers2:layers-2,LayersArrowDown:layers-arrow-down,LayersArrowUp:layers-arrow-up,LayersMinus:layers-minus,LayersPlus:layers-plus,LayoutDashboard:layout-dashboard,LayoutFreeform:layout-freeform,LayoutGrid:layout-grid,LayoutList:layout-list,LayoutPanelLeft:layout-panel-left,LayoutPanelTop:layout-panel-top,LayoutTemplate:layout-template,Leaf:leaf,LeafyGreen:leafy-green,Lectern:lectern,LensConcave:lens-concave,LensConvex:lens-convex,Library:library,LibraryBig:library-big,LifeBuoy:life-buoy,Ligature:ligature,Lightbulb:lightbulb,LightbulbOff:lightbulb-off,Lighthouse:lighthouse,LineDotRightHorizontal:line-dot-right-horizontal,LineSquiggle:line-squiggle,LineStyle:line-style,Link:link,Link2:link-2,Link2Off:link-2-off,List:list,ListCheck:list-check,ListChecks:list-checks,ListChevronsDownUp:list-chevrons-down-up,ListChevronsUpDown:list-chevrons-up-down,ListClock:list-clock,ListCollapse:list-collapse,ListEnd:list-end,ListFilter:list-filter,ListFilterPlus:list-filter-plus,ListIndentDecrease:list-indent-decrease,ListIndentIncrease:list-indent-increase,ListMinus:list-minus,ListMusic:list-music,ListOrdered:list-ordered,ListPlus:list-plus,ListRestart:list-restart,ListSortAscending:list-sort-ascending,ListSortDescending:list-sort-descending,ListStart:list-start,ListTodo:list-todo,ListTree:list-tree,ListVideo:list-video,ListX:list-x,Loader:loader,LoaderCircle:loader-circle,LoaderPinwheel:loader-pinwheel,Locate:locate,LocateFixed:locate-fixed,LocateOff:locate-off,Lock:lock,LockKeyhole:lock-keyhole,LockKeyholeOpen:lock-keyhole-open,LockOpen:lock-open,LogIn:log-in,LogOut:log-out,Logs:logs,Lollipop:lollipop,Luggage:luggage,Magnet:magnet,Mail:mail,MailBadge:mail-badge,MailCheck:mail-check,MailClock:mail-clock,MailMinus:mail-minus,MailOpen:mail-open,MailPen:mail-pen,MailPlus:mail-plus,MailQuestionMark:mail-question-mark,MailSearch:mail-search,MailWarning:mail-warning,MailX:mail-x,Mailbox:mailbox,Mails:mails,Map:map,MapMinus:map-minus,MapPin:map-pin,MapPinCheck:map-pin-check,MapPinCheckInside:map-pin-check-inside,MapPinHouse:map-pin-house,MapPinMinus:map-pin-minus,MapPinMinusInside:map-pin-minus-inside,MapPinOff:map-pin-off,MapPinPen:map-pin-pen,MapPinPlus:map-pin-plus,MapPinPlusInside:map-pin-plus-inside,MapPinSearch:map-pin-search,MapPinX:map-pin-x,MapPinXInside:map-pin-x-inside,MapPinned:map-pinned,MapPlus:map-plus,Mars:mars,MarsStroke:mars-stroke,Martini:martini,Maximize:maximize,Maximize2:maximize-2,Medal:medal,Megaphone:megaphone,MegaphoneOff:megaphone-off,MemoryStick:memory-stick,Menu:menu,Merge:merge,MessageCircle:message-circle,MessageCircleCheck:message-circle-check,MessageCircleCode:message-circle-code,MessageCircleDashed:message-circle-dashed,MessageCircleDashedCheck:message-circle-dashed-check,MessageCircleHeart:message-circle-heart,MessageCircleMore:message-circle-more,MessageCircleOff:message-circle-off,MessageCirclePlus:message-circle-plus,MessageCircleQuestionMark:message-circle-question-mark,MessageCircleReply:message-circle-reply,MessageCircleWarning:message-circle-warning,MessageCircleX:message-circle-x,MessageSquare:message-square,MessageSquareCheck:message-square-check,MessageSquareCode:message-square-code,MessageSquareDashed:message-square-dashed,MessageSquareDiff:message-square-diff,MessageSquareDot:message-square-dot,MessageSquareHeart:message-square-heart,MessageSquareLock:message-square-lock,MessageSquareMore:message-square-more,MessageSquareOff:message-square-off,MessageSquarePlus:message-square-plus,MessageSquareQuote:message-square-quote,MessageSquareReply:message-square-reply,MessageSquareShare:message-square-share,MessageSquareText:message-square-text,MessageSquareWarning:message-square-warning,MessageSquareX:message-square-x,MessagesSquare:messages-square,Metronome:metronome,Mic:mic,MicAudioLines:mic-audio-lines,MicOff:mic-off,MicSignal:mic-signal,MicVocal:mic-vocal,Microchip:microchip,Microscope:microscope,Microwave:microwave,MidiPort:midi-port,Milestone:milestone,Milk:milk,MilkOff:milk-off,Minimize:minimize,Minimize2:minimize-2,Minus:minus,MirrorRectangular:mirror-rectangular,MirrorRound:mirror-round,Monitor:monitor,MonitorCheck:monitor-check,MonitorCloud:monitor-cloud,MonitorCog:monitor-cog,MonitorDot:monitor-dot,MonitorDown:monitor-down,MonitorOff:monitor-off,MonitorPause:monitor-pause,MonitorPlay:monitor-play,MonitorSmartphone:monitor-smartphone,MonitorSpeaker:monitor-speaker,MonitorStop:monitor-stop,MonitorUp:monitor-up,MonitorX:monitor-x,Moon:moon,MoonStar:moon-star,Mop:mop,MopSparkles:mop-sparkles,Mosque:mosque,Motorbike:motorbike,Mountain:mountain,MountainSnow:mountain-snow,Mouse:mouse,MouseLeft:mouse-left,MouseOff:mouse-off,MousePointer:mouse-pointer,MousePointer2:mouse-pointer-2,MousePointer2Off:mouse-pointer-2-off,MousePointerBan:mouse-pointer-ban,MousePointerClick:mouse-pointer-click,MouseRight:mouse-right,Move:move,Move3d:move-3d,MoveDiagonal:move-diagonal,MoveDiagonal2:move-diagonal-2,MoveDown:move-down,MoveDownLeft:move-down-left,MoveDownRight:move-down-right,MoveHorizontal:move-horizontal,MoveLeft:move-left,MoveRight:move-right,MoveUp:move-up,MoveUpLeft:move-up-left,MoveUpRight:move-up-right,MoveVertical:move-vertical,Music:music,Music2:music-2,Music3:music-3,Music4:music-4,Navigation:navigation,Navigation2:navigation-2,Navigation2Off:navigation-2-off,NavigationOff:navigation-off,Network:network,Newspaper:newspaper,Nfc:nfc,NonBinary:non-binary,Notebook:notebook,NotebookPen:notebook-pen,NotebookTabs:notebook-tabs,NotebookText:notebook-text,NotepadText:notepad-text,NotepadTextDashed:notepad-text-dashed,Nut:nut,NutOff:nut-off,Octagon:octagon,OctagonAlert:octagon-alert,OctagonMinus:octagon-minus,OctagonPause:octagon-pause,OctagonX:octagon-x,Omega:omega,Option:option,Orbit:orbit,Origami:origami,Package:package,Package2:package-2,PackageCheck:package-check,PackageMinus:package-minus,PackageOpen:package-open,PackagePlus:package-plus,PackageSearch:package-search,PackageX:package-x,PaintBucket:paint-bucket,PaintRoller:paint-roller,Paintbrush:paintbrush,PaintbrushVertical:paintbrush-vertical,Palette:palette,Panda:panda,PanelBottom:panel-bottom,PanelBottomClose:panel-bottom-close,PanelBottomDashed:panel-bottom-dashed,PanelBottomOpen:panel-bottom-open,PanelLeft:panel-left,PanelLeftClose:panel-left-close,PanelLeftDashed:panel-left-dashed,PanelLeftOpen:panel-left-open,PanelLeftRightDashed:panel-left-right-dashed,PanelRight:panel-right,PanelRightClose:panel-right-close,PanelRightDashed:panel-right-dashed,PanelRightOpen:panel-right-open,PanelTop:panel-top,PanelTopBottomDashed:panel-top-bottom-dashed,PanelTopClose:panel-top-close,PanelTopDashed:panel-top-dashed,PanelTopOpen:panel-top-open,PanelsLeftBottom:panels-left-bottom,PanelsRightBottom:panels-right-bottom,PanelsTopLeft:panels-top-left,PaperBag:paper-bag,Paperclip:paperclip,Parasol:parasol,Parentheses:parentheses,ParkingMeter:parking-meter,PartyPopper:party-popper,Pause:pause,PawPrint:paw-print,PcCase:pc-case,Pen:pen,PenLine:pen-line,PenOff:pen-off,PenTool:pen-tool,Pencil:pencil,PencilLine:pencil-line,PencilOff:pencil-off,PencilRuler:pencil-ruler,PencilSparkles:pencil-sparkles,Pentagon:pentagon,Percent:percent,PersonStanding:person-standing,Phi:phi,PhilippinePeso:philippine-peso,Phone:phone,PhoneCall:phone-call,PhoneForwarded:phone-forwarded,PhoneIncoming:phone-incoming,PhoneMissed:phone-missed,PhoneOff:phone-off,PhoneOutgoing:phone-outgoing,Pi:pi,Piano:piano,Pickaxe:pickaxe,PictureInPicture:picture-in-picture,PictureInPicture2:picture-in-picture-2,PiggyBank:piggy-bank,Pilcrow:pilcrow,PilcrowLeft:pilcrow-left,PilcrowRight:pilcrow-right,Pill:pill,PillBottle:pill-bottle,Pin:pin,PinOff:pin-off,Pipette:pipette,Pizza:pizza,Plane:plane,PlaneLanding:plane-landing,PlaneTakeoff:plane-takeoff,Play:play,PlayOff:play-off,PlayingCard:playing-card,PlayingCards:playing-cards,PlayingCardsFan:playing-cards-fan,Plug:plug,Plug2:plug-2,PlugZap:plug-zap,Plus:plus,PocketKnife:pocket-knife,Podium:podium,Pointer:pointer,PointerOff:pointer-off,Popcorn:popcorn,Popsicle:popsicle,PoundSterling:pound-sterling,Power:power,PowerOff:power-off,Presentation:presentation,Printer:printer,PrinterCheck:printer-check,PrinterX:printer-x,Projector:projector,Proportions:proportions,Puzzle:puzzle,Pyramid:pyramid,QrCode:qr-code,Quote:quote,Rabbit:rabbit,Radar:radar,Radiation:radiation,Radical:radical,Radio:radio,RadioOff:radio-off,RadioReceiver:radio-receiver,RadioTower:radio-tower,Radius:radius,Rainbow:rainbow,Rat:rat,Ratio:ratio,Receipt:receipt,ReceiptCent:receipt-cent,ReceiptEuro:receipt-euro,ReceiptIndianRupee:receipt-indian-rupee,ReceiptJapaneseYen:receipt-japanese-yen,ReceiptPoundSterling:receipt-pound-sterling,ReceiptRussianRuble:receipt-russian-ruble,ReceiptSwissFranc:receipt-swiss-franc,ReceiptText:receipt-text,ReceiptTurkishLira:receipt-turkish-lira,RectangleCircle:rectangle-circle,RectangleEllipsis:rectangle-ellipsis,RectangleGoggles:rectangle-goggles,RectangleHorizontal:rectangle-horizontal,RectangleVertical:rectangle-vertical,Recycle:recycle,Redo:redo,Redo2:redo-2,RedoDot:redo-dot,RefreshCcw:refresh-ccw,RefreshCcwDot:refresh-ccw-dot,RefreshCw:refresh-cw,RefreshCwOff:refresh-cw-off,Refrigerator:refrigerator,Regex:regex,RemoveFormatting:remove-formatting,Repeat:repeat,Repeat1:repeat-1,Repeat2:repeat-2,RepeatOff:repeat-off,Replace:replace,ReplaceAll:replace-all,Reply:reply,ReplyAll:reply-all,Rewind:rewind,Ribbon:ribbon,Road:road,RobotArm:robot-arm,RobotVacuum:robot-vacuum,Rocket:rocket,RockingChair:rocking-chair,RollerCoaster:roller-coaster,Rose:rose,Rotate3d:rotate-3d,RotateCcw:rotate-ccw,RotateCcwClock:rotate-ccw-clock,RotateCcwKey:rotate-ccw-key,RotateCcwSquare:rotate-ccw-square,RotateCw:rotate-cw,RotateCwFadingClock:rotate-cw-fading-clock,RotateCwSquare:rotate-cw-square,Route:route,RouteOff:route-off,Router:router,Rows2:rows-2,Rows3:rows-3,Rows4:rows-4,Rss:rss,Ruler:ruler,RulerDimensionLine:ruler-dimension-line,RussianRuble:russian-ruble,Sailboat:sailboat,Salad:salad,Sandwich:sandwich,Satellite:satellite,SatelliteDish:satellite-dish,SaudiRiyal:saudi-riyal,Save:save,SaveAll:save-all,SaveCheck:save-check,SaveOff:save-off,SavePen:save-pen,SavePlus:save-plus,Scale:scale,Scale3d:scale-3d,Scaling:scaling,Scan:scan,ScanBarcode:scan-barcode,ScanBox:scan-box,ScanEye:scan-eye,ScanFace:scan-face,ScanHeart:scan-heart,ScanLine:scan-line,ScanQrCode:scan-qr-code,ScanSearch:scan-search,ScanSquare:scan-square,ScanText:scan-text,School:school,Scissors:scissors,ScissorsLineDashed:scissors-line-dashed,Scooter:scooter,ScreenShare:screen-share,ScreenShareOff:screen-share-off,Scroll:scroll,ScrollText:scroll-text,Search:search,SearchAlert:search-alert,SearchCheck:search-check,SearchCode:search-code,SearchSlash:search-slash,SearchX:search-x,Section:section,Send:send,SendHorizontal:send-horizontal,SendToBack:send-to-back,SeparatorHorizontal:separator-horizontal,SeparatorVertical:separator-vertical,Server:server,ServerCog:server-cog,ServerCrash:server-crash,ServerOff:server-off,ServerPlus:server-plus,Settings:settings,Settings2:settings-2,Shapes:shapes,Share:share,Share2:share-2,Sheet:sheet,Shell:shell,ShelvingUnit:shelving-unit,Shield:shield,ShieldAlert:shield-alert,ShieldBan:shield-ban,ShieldCheck:shield-check,ShieldCog:shield-cog,ShieldCogCorner:shield-cog-corner,ShieldEllipsis:shield-ellipsis,ShieldHalf:shield-half,ShieldKeyhole:shield-keyhole,ShieldLock:shield-lock,ShieldMinus:shield-minus,ShieldOff:shield-off,ShieldPlus:shield-plus,ShieldQuestionMark:shield-question-mark,ShieldUser:shield-user,ShieldX:shield-x,Ship:ship,ShipCargo:ship-cargo,ShipWheel:ship-wheel,Shirt:shirt,ShoppingBag:shopping-bag,ShoppingBasket:shopping-basket,ShoppingCart:shopping-cart,ShoppingCartMinus:shopping-cart-minus,ShoppingCartPlus:shopping-cart-plus,Shovel:shovel,ShowerHead:shower-head,Shredder:shredder,Shrimp:shrimp,ShrimpOff:shrimp-off,Shrink:shrink,Shrub:shrub,Shuffle:shuffle,Sigma:sigma,Signal:signal,SignalHigh:signal-high,SignalLow:signal-low,SignalMedium:signal-medium,SignalZero:signal-zero,Signature:signature,Signpost:signpost,SignpostBig:signpost-big,Siren:siren,SkipBack:skip-back,SkipForward:skip-forward,Skull:skull,Slash:slash,Slice:slice,SlidersHorizontal:sliders-horizontal,SlidersVertical:sliders-vertical,Smartphone:smartphone,SmartphoneCharging:smartphone-charging,SmartphoneNfc:smartphone-nfc,Snail:snail,Snowflake:snowflake,SoapDispenserDroplet:soap-dispenser-droplet,Sofa:sofa,SolarPanel:solar-panel,Soup:soup,Space:space,Spade:spade,Sparkle:sparkle,Sparkles:sparkles,Speaker:speaker,Speech:speech,SpellCheck:spell-check,SpellCheck2:spell-check-2,Spline:spline,SplinePointer:spline-pointer,Split:split,Spool:spool,SportShoe:sport-shoe,Spotlight:spotlight,SprayCan:spray-can,Sprout:sprout,Square:square,SquareActivity:square-activity,SquareArrowDown:square-arrow-down,SquareArrowDownLeft:square-arrow-down-left,SquareArrowDownRight:square-arrow-down-right,SquareArrowLeft:square-arrow-left,SquareArrowOutDownLeft:square-arrow-out-down-left,SquareArrowOutDownRight:square-arrow-out-down-right,SquareArrowOutUpLeft:square-arrow-out-up-left,SquareArrowOutUpRight:square-arrow-out-up-right,SquareArrowRight:square-arrow-right,SquareArrowRightEnter:square-arrow-right-enter,SquareArrowRightExit:square-arrow-right-exit,SquareArrowUp:square-arrow-up,SquareArrowUpLeft:square-arrow-up-left,SquareArrowUpRight:square-arrow-up-right,SquareAsterisk:square-asterisk,SquareBottomDashedScissors:square-bottom-dashed-scissors,SquareCenterlineDashedHorizontal:square-centerline-dashed-horizontal,SquareCenterlineDashedVertical:square-centerline-dashed-vertical,SquareChartGantt:square-chart-gantt,SquareCheck:square-check,SquareCheckBig:square-check-big,SquareChevronDown:square-chevron-down,SquareChevronLeft:square-chevron-left,SquareChevronRight:square-chevron-right,SquareChevronUp:square-chevron-up,SquareCode:square-code,SquareDashed:square-dashed,SquareDashedBottom:square-dashed-bottom,SquareDashedBottomCode:square-dashed-bottom-code,SquareDashedKanban:square-dashed-kanban,SquareDashedMousePointer:square-dashed-mouse-pointer,SquareDashedText:square-dashed-text,SquareDashedTopSolid:square-dashed-top-solid,SquareDimensions:square-dimensions,SquareDivide:square-divide,SquareDot:square-dot,SquareEqual:square-equal,SquareExclamationPoint:square-exclamation-point,SquareFunction:square-function,SquareKanban:square-kanban,SquareLibrary:square-library,SquareM:square-m,SquareMenu:square-menu,SquareMinus:square-minus,SquareMousePointer:square-mouse-pointer,SquareOff:square-off,SquareParking:square-parking,SquareParkingOff:square-parking-off,SquarePause:square-pause,SquarePen:square-pen,SquarePercent:square-percent,SquarePi:square-pi,SquarePilcrow:square-pilcrow,SquarePlay:square-play,SquarePlus:square-plus,SquarePower:square-power,SquareRadical:square-radical,SquareRoundCorner:square-round-corner,SquareScissors:square-scissors,SquareSigma:square-sigma,SquareSlash:square-slash,SquareSplitHorizontal:square-split-horizontal,SquareSplitVertical:square-split-vertical,SquareSquare:square-square,SquareStack:square-stack,SquareStar:square-star,SquareStop:square-stop,SquareTerminal:square-terminal,SquareText:square-text,SquareUser:square-user,SquareUserRound:square-user-round,SquareX:square-x,SquaresExclude:squares-exclude,SquaresIntersect:squares-intersect,SquaresSubtract:squares-subtract,SquaresUnite:squares-unite,Squircle:squircle,SquircleDashed:squircle-dashed,Squirrel:squirrel,Stamp:stamp,Star:star,StarCheck:star-check,StarHalf:star-half,StarMinus:star-minus,StarOff:star-off,StarPlus:star-plus,StarX:star-x,StepBack:step-back,StepForward:step-forward,Stethoscope:stethoscope,Sticker:sticker,StickyNote:sticky-note,StickyNoteCheck:sticky-note-check,StickyNoteMinus:sticky-note-minus,StickyNoteOff:sticky-note-off,StickyNotePlus:sticky-note-plus,StickyNoteX:sticky-note-x,StickyNotes:sticky-notes,Stone:stone,Store:store,StretchHorizontal:stretch-horizontal,StretchVertical:stretch-vertical,Strikethrough:strikethrough,Subscript:subscript,Summary:summary,Sun:sun,SunDim:sun-dim,SunMedium:sun-medium,SunMoon:sun-moon,SunSnow:sun-snow,Sunrise:sunrise,Sunset:sunset,Superscript:superscript,SwatchBook:swatch-book,SwissFranc:swiss-franc,SwitchCamera:switch-camera,Sword:sword,Swords:swords,Syringe:syringe,Table:table,Table2:table-2,TableCellsMerge:table-cells-merge,TableCellsSplit:table-cells-split,TableColumnsSplit:table-columns-split,TableOfContents:table-of-contents,TableProperties:table-properties,TableRowsSplit:table-rows-split,Tablet:tablet,TabletSmartphone:tablet-smartphone,Tablets:tablets,Tag:tag,TagPlus:tag-plus,TagX:tag-x,Tags:tags,Tally1:tally-1,Tally2:tally-2,Tally3:tally-3,Tally4:tally-4,Tally5:tally-5,Tangent:tangent,Target:target,Telescope:telescope,Tent:tent,TentTree:tent-tree,Terminal:terminal,TestTube:test-tube,TestTubeDiagonal:test-tube-diagonal,TestTubes:test-tubes,TextAlignCenter:text-align-center,TextAlignEnd:text-align-end,TextAlignJustify:text-align-justify,TextAlignStart:text-align-start,TextCursor:text-cursor,TextCursorInput:text-cursor-input,TextInitial:text-initial,TextQuote:text-quote,TextSearch:text-search,TextWrap:text-wrap,Theater:theater,Thermometer:thermometer,ThermometerSnowflake:thermometer-snowflake,ThermometerSun:thermometer-sun,ThumbsDown:thumbs-down,ThumbsUp:thumbs-up,TicTacToe:tic-tac-toe,Ticket:ticket,TicketCheck:ticket-check,TicketMinus:ticket-minus,TicketPercent:ticket-percent,TicketPlus:ticket-plus,TicketSlash:ticket-slash,TicketX:ticket-x,Tickets:tickets,TicketsPlane:tickets-plane,Timeline:timeline,Timer:timer,TimerOff:timer-off,TimerReset:timer-reset,ToggleLeft:toggle-left,ToggleRight:toggle-right,Toilet:toilet,ToolCase:tool-case,Toolbox:toolbox,Tornado:tornado,Torus:torus,Touchpad:touchpad,TouchpadOff:touchpad-off,TowelRack:towel-rack,TowerControl:tower-control,ToyBrick:toy-brick,Tractor:tractor,TrafficCone:traffic-cone,Trailer:trailer,TrainFront:train-front,TrainFrontTunnel:train-front-tunnel,TrainTrack:train-track,TramFront:tram-front,Transgender:transgender,Trash:trash,TrashOff:trash-off,TreeDeciduous:tree-deciduous,TreePalm:tree-palm,TreePine:tree-pine,Trees:trees,TrendingDown:trending-down,TrendingUp:trending-up,TrendingUpDown:trending-up-down,Triangle:triangle,TriangleAlert:triangle-alert,TriangleDashed:triangle-dashed,TriangleRight:triangle-right,Trophy:trophy,Truck:truck,TruckElectric:truck-electric,TurkishLira:turkish-lira,Turntable:turntable,Turtle:turtle,Tv:tv,TvMinimal:tv-minimal,TvMinimalPlay:tv-minimal-play,Type:type,TypeOutline:type-outline,Umbrella:umbrella,UmbrellaOff:umbrella-off,Underline:underline,Undo:undo,Undo2:undo-2,UndoDot:undo-dot,UnfoldHorizontal:unfold-horizontal,UnfoldVertical:unfold-vertical,Ungroup:ungroup,University:university,Unlink:unlink,Unlink2:unlink-2,Unplug:unplug,Upload:upload,Usb:usb,UsbCPort:usb-c-port,User:user,UserCheck:user-check,UserCog:user-cog,UserGroup:user-group,UserKey:user-key,UserLock:user-lock,UserMinus:user-minus,UserPen:user-pen,UserPlus:user-plus,UserRound:user-round,UserRoundArrowLeft:user-round-arrow-left,UserRoundCheck:user-round-check,UserRoundCog:user-round-cog,UserRoundGroup:user-round-group,UserRoundKey:user-round-key,UserRoundMinus:user-round-minus,UserRoundPen:user-round-pen,UserRoundPlus:user-round-plus,UserRoundSearch:user-round-search,UserRoundX:user-round-x,UserSearch:user-search,UserShield:user-shield,UserStar:user-star,UserX:user-x,Users:users,UsersRound:users-round,Utensils:utensils,UtensilsCrossed:utensils-crossed,UtilityPole:utility-pole,Van:van,Variable:variable,Vault:vault,VectorPolygon:vector-polygon,VectorSquare:vector-square,Vegan:vegan,VenetianMask:venetian-mask,Venus:venus,VenusAndMars:venus-and-mars,Vibrate:vibrate,VibrateOff:vibrate-off,Video:video,VideoOff:video-off,Videotape:videotape,View:view,Virus:virus,VirusOff:virus-off,Voicemail:voicemail,Volleyball:volleyball,Volume:volume,Volume1:volume-1,Volume2:volume-2,VolumeOff:volume-off,VolumeX:volume-x,Vote:vote,Wallet:wallet,WalletCards:wallet-cards,WalletMinimal:wallet-minimal,Wallpaper:wallpaper,Wand:wand,WandSparkles:wand-sparkles,Warehouse:warehouse,WashingMachine:washing-machine,Watch:watch,WavesArrowDown:waves-arrow-down,WavesArrowUp:waves-arrow-up,WavesHorizontal:waves-horizontal,WavesLadder:waves-ladder,WavesVertical:waves-vertical,Waypoints:waypoints,Webcam:webcam,WebcamOff:webcam-off,Webhook:webhook,WebhookOff:webhook-off,Weight:weight,WeightTilde:weight-tilde,Wheat:wheat,WheatOff:wheat-off,Whistle:whistle,WholeWord:whole-word,Wifi:wifi,WifiCog:wifi-cog,WifiHigh:wifi-high,WifiLow:wifi-low,WifiOff:wifi-off,WifiPen:wifi-pen,WifiSync:wifi-sync,WifiZero:wifi-zero,Wind:wind,WindArrowDown:wind-arrow-down,Wine:wine,WineOff:wine-off,Workflow:workflow,Worm:worm,Wrench:wrench,WrenchOff:wrench-off,X:x,XLineTop:x-line-top,Zap:zap,ZapOff:zap-off,ZodiacAquarius:zodiac-aquarius,ZodiacAries:zodiac-aries,ZodiacCancer:zodiac-cancer,ZodiacCapricorn:zodiac-capricorn,ZodiacGemini:zodiac-gemini,ZodiacLeo:zodiac-leo,ZodiacLibra:zodiac-libra,ZodiacOphiuchus:zodiac-ophiuchus,ZodiacPisces:zodiac-pisces,ZodiacSagittarius:zodiac-sagittarius,ZodiacScorpio:zodiac-scorpio,ZodiacTaurus:zodiac-taurus,ZodiacVirgo:zodiac-virgo,ZoomIn:zoom-in,ZoomOut:zoom-out`,hx={Home:`House`};function gx(e){return e.split(/[-_\s]+/).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(``)}var _x=null;function vx(e){if(_x===null){let e=new Map;for(let t of mx.split(`,`)){let n=t.indexOf(`:`);e.set(t.slice(0,n),t.slice(n+1))}_x=e}return _x.get(e)}function yx(e,t,n){return[`lucide-${e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase()}`,`lucide-${t}`,n].filter((e,t,n)=>!!e&&String(e).trim()!==``&&n.indexOf(e)===t).join(` `).trim()}var bx=[],xx=new Map,Sx=new Map;function Cx(e,t){let n=Sx.get(e);if(n)return n;let r=q.forwardRef(({className:n,...r},i)=>{let[a,o]=q.useState(()=>xx.get(t));return q.useEffect(()=>{if(a!==void 0)return;let e=!0,n=ux[t];if(n)return n().then(n=>{let r=n.__iconData?.node??n.__iconNode;r&&(xx.set(t,r),e&&o(r))}).catch(()=>{}),()=>{e=!1}},[a]),q.createElement(ii,{...r,ref:i,iconNode:a??bx,className:yx(e,t,n)})});r.displayName=e;let i=r;return Sx.set(e,i),i}function wx(e){let t=gx(e);return{pascal:t,key:hx[t]||t}}function Tx(e){if(!e)return null;let t=wx(e).key,n=vx(t);return n===void 0?null:Cx(t,n)}var Ex=(0,q.forwardRef)(({schema:e,className:t,...n},r)=>{let{"data-obj-id":i,"data-obj-type":a,style:o,...s}=n,c=e.size?{width:e.size,height:e.size}:void 0,l=Y(e.color,e.className,t),u=typeof e.icon==`string`?e.icon:``,d=typeof e.name==`string`&&e.name.length>0?e.name:``,{pascal:f,key:p}=wx(u),m=u?Tx(u):void 0;return m?(0,J.jsx)(m,{ref:r,className:l,style:{...c,...o},...mt(s),"data-obj-id":i,"data-obj-type":a}):(console.warn(`ui:icon: no lucide glyph resolves for ${u?`"${u}"`:`an absent icon name`}${u?` (lookup: "${f}"${p===f?``:` -> "${p}"`})`:``}. Rendering a visible placeholder instead of nothing (objectui#5631).`+(!u&&d?` This node names its glyph with the SDUI identity key \`name\` ("${d}"), which is no longer read as a glyph name. Rename it: \`icon: "${d}"\`. Stored metadata converts in bulk with \`migrateIconNodeKeys\` from \`@object-ui/types\`.`:``)),(0,J.jsx)(ma,{ref:r,role:`img`,"aria-label":u?`Unresolved icon: ${u}`:d?`Unresolved icon: \`name\` is no longer the icon key, rename it to \`icon\` (${d})`:`Unresolved icon`,className:l,style:{...c,...o},...mt(s),"data-obj-id":i,"data-obj-type":a,"data-objectui-icon-unresolved":u||`(none)`,...!u&&d?{"data-objectui-icon-legacy-name-key":d}:{}}))});Ex.displayName=`IconRenderer`,K.register(`icon`,Ex,{namespace:`ui`,label:`Icon`,icon:`face-slightly-smiling`,category:`basic`,inputs:[{name:`icon`,type:`string`},{name:`size`,type:`number`},{name:`color`,type:`string`},{name:`className`,type:`string`}]}),K.register(`html`,({schema:e,className:t,...n})=>{let{"data-obj-id":r,"data-obj-type":i,style:a,...o}=n;return(0,J.jsx)(`div`,{className:Y(`prose prose-sm max-w-none dark:prose-invert`,t),dangerouslySetInnerHTML:{__html:e.html},...o,"data-obj-id":r,"data-obj-type":i,style:a})},{namespace:`ui`,label:`HTML Content`,inputs:[{name:`html`,type:`string`,description:`Raw HTML content`}]});var Dx=new Set([`img`,`hr`,`br`]),Ox=`h1.h2.h3.h4.h5.h6.p.a.blockquote.pre.code.strong.em.b.i.u.small.mark.sub.sup.del.ins.abbr.ul.ol.li.dl.dt.dd.figure.figcaption.img.hr.br.time.address.cite.q`.split(`.`),kx={a:[{name:`href`,type:`string`},{name:`target`,type:`string`},{name:`rel`,type:`string`},{name:`title`,type:`string`}],img:[{name:`src`,type:`string`},{name:`alt`,type:`string`},{name:`width`,type:`number`},{name:`height`,type:`number`},{name:`title`,type:`string`}],time:[{name:`dateTime`,type:`string`}],abbr:[{name:`title`,type:`string`}],q:[{name:`cite`,type:`string`}],blockquote:[{name:`cite`,type:`string`}]};function Ax(e){if(typeof e!=`string`)return;let t=e.trim();if(!/^(javascript|data|vbscript):/i.test(t))return t}function jx(e){if(typeof e!=`string`||e.trim().length===0)return null;let t=e.trim();if(/^[a-z][a-z0-9+.-]*:/i.test(t)||t.startsWith(`//`)||t.startsWith(`#`))return null;try{let e=new URL(t,`https://internal.invalid/`);return e.pathname+e.search+e.hash}catch{return null}}for(let e of Ox){let t=Dx.has(e),n=(0,q.forwardRef)(({schema:n,className:r,...i},a)=>{let{"data-obj-id":o,"data-obj-type":s,style:c,dangerouslySetInnerHTML:l,children:u,...d}=i,f={};for(let[e,t]of Object.entries(d))/^on[A-Z]/.test(e)||(f[e]=t);e===`a`&&`href`in f&&(f.href=Ax(f.href));let p=(0,q.useContext)(nt),m;if(e===`a`&&p){let e=jx(f.href),t=typeof f.target==`string`?f.target:``;e&&(!t||t===`_self`)&&(m=t=>{t.defaultPrevented||t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||(t.preventDefault(),p.runner.execute({type:`url`,target:e,toast:{showOnSuccess:!1}}).then(e=>{e?.success&&e.redirect&&window.location.assign(e.redirect)}))})}return(0,q.createElement)(e,{ref:a,className:r,...f,...m?{onClick:m}:{},"data-obj-id":o,"data-obj-type":s,style:c},t?void 0:Ra(n?.children))});n.displayName=`Html${e.charAt(0).toUpperCase()}${e.slice(1)}`,K.register(e,n,{namespace:`ui`,label:e.toUpperCase(),category:`basic`,inputs:[{name:`className`,type:`string`},...kx[e]??[],...t?[]:[{name:`children`,type:`slot`}]]})}K.register(`button-group`,({schema:e,...t})=>{let{"data-obj-id":n,"data-obj-type":r,style:i,...a}=t;return(0,J.jsx)(`div`,{className:Y(`flex flex-wrap sm:inline-flex rounded-md shadow-sm`,e.className),role:`group`,...a,"data-obj-id":n,"data-obj-type":r,style:i,children:e.buttons?.map((t,n)=>(0,J.jsx)(X,{variant:t.variant||e.variant,size:t.size||e.size,disabled:t.disabled,className:Y(`rounded-none`,n===0&&`rounded-l-md`,n===(e.buttons?.length||0)-1&&`rounded-r-md`,n>0&&`-ml-px`,t.className),children:t.label},n))})},{namespace:`ui`,label:`Button Group`,inputs:[{name:`variant`,type:`enum`,enum:[`default`,`destructive`,`outline`,`secondary`,`ghost`,`link`]},{name:`size`,type:`enum`,enum:[`default`,`sm`,`lg`,`icon`]},{name:`className`,type:`string`}],defaultProps:{variant:`default`,size:`default`,buttons:[{label:`Left`},{label:`Middle`},{label:`Right`}]}}),K.register(`pagination`,({schema:e,...t})=>{let{"data-obj-id":n,"data-obj-type":r,style:i,onPageChange:a,...o}=t,s=e.currentPage||1,c=e.totalPages||1,l=(e,t)=>{t.preventDefault(),e!==s&&(e<1||e>c||a&&a(e))},u=()=>c<=7?Array.from({length:c},(e,t)=>t+1):s<=3?[1,2,3,4,5,-1,c]:s>=c-2?[1,-1,c-4,c-3,c-2,c-1,c]:[1,-1,s-1,s,s+1,-1,c];return(0,J.jsx)(ry,{className:e.className,...o,"data-obj-id":n,"data-obj-type":r,style:i,children:(0,J.jsxs)(iy,{children:[(0,J.jsx)(ay,{children:(0,J.jsx)(sy,{href:`#`,onClick:e=>l(s-1,e),className:s<=1?`pointer-events-none opacity-50`:`cursor-pointer`,"aria-disabled":s<=1})}),u().map((e,t)=>(0,J.jsx)(ay,{children:e===-1?(0,J.jsx)(ly,{}):(0,J.jsx)(oy,{href:`#`,isActive:e===s,onClick:t=>l(e,t),className:`cursor-pointer`,children:e})},t)),(0,J.jsx)(ay,{children:(0,J.jsx)(cy,{href:`#`,onClick:e=>l(s+1,e),className:s>=c?`pointer-events-none opacity-50`:`cursor-pointer`,"aria-disabled":s>=c})})]})})},{namespace:`ui`,label:`Pagination`,inputs:[{name:`currentPage`,type:`number`},{name:`totalPages`,type:`number`},{name:`className`,type:`string`}],defaultProps:{currentPage:1,totalPages:10}}),K.register(`navigation-menu`,({schema:e,...t})=>{let{"data-obj-id":n,"data-obj-type":r,style:i,...a}=t;return(0,J.jsx)(Jv,{className:e.className,...a,"data-obj-id":n,"data-obj-type":r,style:i,children:(0,J.jsx)(Yv,{children:e.items?.map((e,t)=>(0,J.jsx)(Xv,{children:e.children?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Qv,{children:e.label}),(0,J.jsx)($v,{children:(0,J.jsx)(`ul`,{className:`grid w-full gap-3 p-4 sm:w-[400px] md:w-[500px] md:grid-cols-2 lg:w-[600px]`,children:e.children.map((e,t)=>(0,J.jsx)(`li`,{children:(0,J.jsx)(ey,{asChild:!0,children:(0,J.jsxs)(`a`,{className:Y(`block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground`),href:e.href,children:[(0,J.jsx)(`div`,{className:`text-sm font-medium leading-none`,children:e.label}),e.description&&(0,J.jsx)(`p`,{className:`line-clamp-2 text-sm leading-snug text-muted-foreground`,children:e.description})]})})},t))})})]}):(0,J.jsx)(ey,{href:e.href,children:e.label})},t))})})},{namespace:`ui`,label:`Navigation Menu`,inputs:[{name:`className`,type:`string`}],defaultProps:{items:[{label:`Home`,href:`/`},{label:`About`,href:`/about`}]}});function Mx(e){return e.includes(`-`)?e.toLowerCase():e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).replace(/([A-Z]+)([A-Z][a-z])/g,`$1-$2`).replace(/(?<![0-9])([A-Za-z])([0-9])/g,`$1-$2`).toLowerCase()}var Nx=new Set(dx);function Px(e){return Nx.has(e)}function Fx(e){return!!e&&Px(Mx(e))}var Ix=new Map;function Lx(e){if(!e)return Ai;let t=Ix.get(e);if(t)return t;let n=Mx(e);if(!Px(n))return Ix.set(e,Ai),Ai;let r=e=>q.createElement(px,{name:n,fallback:Ai,...e});return r.displayName=`LucideIcon(${e})`,Ix.set(e,r),r}var Rx=({name:e,...t})=>{if(!e)return q.createElement(Ai,t);let n=Mx(e);return Px(n)?q.createElement(px,{name:n,fallback:Ai,...t}):q.createElement(Ai,t)};function zx(e){let t=ot(e?.props)?e.props:{},n=ot(e?.properties)?e.properties:{};return{...t,...n}}function Bx(e){let t=e.properties;return ot(t)&&ot(t.params)?t.params:void 0}function Vx(e,t){let n=Bx(e),r=e.params;return ot(r),n}function Hx(e,t){let n=e.properties;return ot(n)?{...e,properties:t(n)}:e}function Ux(e,t){if(Bx(e))return Bx(Hx(e,t))}function Wx(e,t,n){let r=e.params;if(!(r==null||Array.isArray(r))){if(t===`api`)return r;ot(r)}}var Gx={left:`text-left`,center:`text-center`,right:`text-right`},Kx={h1:`text-4xl font-semibold tracking-tight`,h2:`text-3xl font-semibold tracking-tight`,h3:`text-2xl font-semibold tracking-tight`,h4:`text-xl font-semibold tracking-tight`,h5:`text-lg font-semibold tracking-tight`,h6:`text-base font-semibold tracking-tight`,body:`text-sm text-foreground`,caption:`text-xs text-muted-foreground`,overline:`text-xs font-medium uppercase tracking-widest text-muted-foreground`,heading:`text-2xl font-semibold tracking-tight`,subheading:`text-lg font-medium text-foreground`},qx={h1:`h1`,h2:`h2`,h3:`h3`,h4:`h4`,h5:`h5`,h6:`h6`,body:`p`,caption:`p`,overline:`p`,heading:`h2`,subheading:`h3`};function Jx({schema:e}){let t=zx(e),{language:n}=wt(),r=Ct(),i=t.variant??`body`,a=t.align??`left`,o=qx[i]??`p`;return(0,J.jsx)(o,{className:Y(Kx[i]??Kx.body,Gx[a],e?.className),...Ee(t.aria,r),children:xt(t.content,n)})}K.register(`text`,Jx,{namespace:`element`,skipFallback:!0,label:`Text`,category:`content`,inputs:[{name:`content`,type:[`string`,`object`],required:!0,description:`Accepts an inline translation map ({ en, "zh-CN", … })`},{name:`variant`,type:`enum`,enum:[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`body`,`caption`,`overline`,`heading`,`subheading`],description:`One of the nine text styles ui:text uses: h1-h6 (rendered as that heading level), body, caption or overline. heading and subheading are earlier spellings the contract still accepts and renders as h2 and h3; write h2 or h3 instead.`},{name:`align`,type:`enum`,enum:[`left`,`center`,`right`]}]});function Yx({schema:e}){return(0,J.jsx)(Dy,{className:Y(`my-4`,e?.className)})}K.register(`divider`,Yx,{namespace:`element`,skipFallback:!0,label:`Divider`,category:`content`});var Xx={cover:`object-cover`,contain:`object-contain`,fill:`object-fill`};function Zx({schema:e}){let t=zx(e),n=Ct(),r=t.fit??`cover`;return t.src?(0,J.jsx)(`img`,{src:t.src,alt:t.alt??``,className:Y(`w-full rounded-md`,Xx[r]??Xx.cover,e?.className),style:t.height?{height:t.height}:void 0,...Ee(t.aria,n)}):(0,J.jsx)(`div`,{className:Y(`flex items-center justify-center rounded-md border border-dashed bg-muted/30 text-xs text-muted-foreground`,e?.className),style:{height:t.height??120},children:`no image source`})}K.register(`image`,Zx,{namespace:`element`,skipFallback:!0,label:`Image`,category:`content`});var Qx={primary:`default`,secondary:`secondary`,danger:`destructive`,ghost:`ghost`,link:`link`},$x={small:`sm`,medium:`default`,large:`lg`};function eS({schema:e}){let t=zx(e),n=Qx[t.variant??`primary`]??`default`,r=$x[t.size??`medium`]??`default`,{language:i}=wt(),a=Ct(),o=xt(t.label,i),s=t.iconPosition??`left`,c=t.icon?(0,J.jsx)(Rx,{name:t.icon,className:`h-4 w-4`}):null,{execute:l}=Ce(),[u,d]=q.useState(!1),f=t.action,p=q.useCallback(async()=>{if(f&&!u){d(!0);try{let e=Array.isArray(f.params)?{actionParams:f.params}:{params:Wx(f,f.actionType||f.type,`element:button`)};await l({type:f.actionType||f.type,name:f.name,label:f.label,description:f.description,target:f.target,openIn:f.openIn,endpoint:f.endpoint,method:f.method,navigate:f.navigate,to:f.to,opensInNewTab:f.opensInNewTab,bodyExtra:f.bodyExtra,confirmText:f.confirmText,successMessage:f.successMessage,errorMessage:f.errorMessage,refreshAfter:f.refreshAfter,...e})}finally{d(!1)}}},[f,l,u]);return(0,J.jsxs)(X,{type:`button`,variant:n,size:r,disabled:t.disabled||u,className:Y(e?.className),onClick:f?p:void 0,...Ee(t.aria,a),children:[s===`left`&&c,o,s===`right`&&c]})}K.register(`button`,eS,{namespace:`element`,skipFallback:!0,label:`Button`,category:`action`,inputs:[{name:`label`,type:[`string`,`object`],required:!0,description:`Accepts an inline translation map ({ en, "zh-CN", … })`},{name:`action`,type:`object`,description:`Inline ActionDef executed on click (url / navigation / api / script / modal / flow); omitted → renders inert`},{name:`variant`,type:`enum`,enum:[`primary`,`secondary`,`danger`,`ghost`,`link`]},{name:`size`,type:`enum`,enum:[`small`,`medium`,`large`]},{name:`icon`,type:`string`,description:`Lucide icon name`},{name:`iconPosition`,type:`enum`,enum:[`left`,`right`]},{name:`disabled`,type:`boolean`}]});var tS={number:{},currency:{currency:`USD`},percent:{style:`percent`,maximumFractionDigits:1}};function nS(e,t,n,r,i,a){if(e==null||Number.isNaN(e))return`—`;let o=tS[t??`number`]??tS.number;t===`currency`&&(o=i?{...tS.currency,currency:i}:tS.number);let s=We(e,{...o,locale:a});return`${n??``}${s}${r??``}`}function rS({schema:e}){let t=zx(e),n=P(),r=I(e,n),i=r.composed,{t:a}=wt(),o=q.useMemo(()=>{if(!i)return{filter:t.filter};let e=ze(t.filter);if(!e.ok)return{filter:void 0,refusal:e.refusal};let n=ze(i.filter);return n.ok?{filter:qe(e.node,n.node)}:{filter:void 0,refusal:n.refusal}},[i,t.filter]),s=o.refusal,c=r.status===`loading`||r.status===`missing`||s?void 0:i?.object??t.object,{currency:l}=yt(),u=Ct(),[d,f]=q.useState(null),[p,m]=q.useState(!0),[h,g]=q.useState(null),_=et(),v=ke(o.filter,_),y=q.useMemo(()=>v?JSON.stringify(v):``,[v]),b=be(n&&t.aggregate?c:void 0);return q.useEffect(()=>{let e=!1;if(!n||!c||!t.aggregate){m(!1);return}return m(!0),g(null),(async()=>{try{if(typeof n.aggregate==`function`){let r=await n.aggregate(c,{field:t.field,function:t.aggregate,groupBy:`_all`,filter:v}),i=Array.isArray(r)?r[0]:r,a=t.aggregate===`count`?`count`:`${t.field??``}_${t.aggregate}`,o=i?.[a]??i?.[t.field??``]??i?.value??(typeof i==`number`?i:null);e||f(typeof o==`number`?o:o==null?null:Number(o))}else if(typeof n.find==`function`){let r=await n.find(c,v?{$filter:v}:void 0),i=r?.data??(Array.isArray(r)?r:[]),a=null;if(t.aggregate===`count`)a=i.length;else if(t.field){let e=i.map(e=>Number(e?.[t.field])).filter(e=>!Number.isNaN(e));e.length&&(t.aggregate===`sum`?a=e.reduce((e,t)=>e+t,0):t.aggregate===`avg`?a=e.reduce((e,t)=>e+t,0)/e.length:t.aggregate===`min`?a=Math.min(...e):t.aggregate===`max`&&(a=Math.max(...e)))}e||f(a)}}catch(t){e||g(t?.message??`aggregate failed`)}finally{e||m(!1)}})(),()=>{e=!0}},[n,c,t.field,t.aggregate,y,b]),r.status===`missing`||s?(0,J.jsx)(He,{testId:`element-number`,title:`This metric’s data source could not be resolved`,message:s?.message??r.error}):r.status===`loading`?(0,J.jsx)(De,{testId:`element-number`}):t.aggregate&&!t.object&&r.status===`absent`?(0,J.jsx)(`div`,{className:Y(`text-xs text-muted-foreground`,e?.className),"data-testid":`element-number-no-object`,...Ee(t.aria,u),children:a(`element.number.noObject`,{defaultValue:`No object named: set object or dataSource.object.`})}):(0,J.jsxs)(`div`,{className:Y(`flex flex-col gap-1`,e?.className),...Ee(t.aria,u),children:[(0,J.jsx)(`div`,{className:`text-3xl font-semibold tracking-tight tabular-nums`,children:p?`…`:nS(d,t.format,t.prefix,t.suffix,l,u)}),h&&(0,J.jsx)(`div`,{className:`text-xs text-destructive`,children:h})]})}K.register(`number`,me(rS),{namespace:`element`,skipFallback:!0,label:`Number`,category:`content`,inputs:[{name:`object`,type:`string`,description:"Object the aggregate runs over. Required unless a node-level `dataSource` binding names one; when both are set, `dataSource.object` wins."},{name:`aggregate`,type:`enum`,enum:[`count`,`sum`,`avg`,`min`,`max`],required:!0},{name:`field`,type:`string`,description:`Measure field (required for every aggregate except count)`},{name:`filter`,type:`array`,description:"Criteria the aggregate is scoped by. When a node-level `dataSource` binding also supplies a filter (its own, or the saved view its `view` names), the two are AND-combined: neither is dropped."},{name:`format`,type:`enum`,enum:[`number`,`currency`,`percent`]},{name:`prefix`,type:`string`},{name:`suffix`,type:`string`}]});function iS(e,t){if(!e||!t)return;let n=e.fields;if(n)return Array.isArray(n)?n.find(e=>e?.name===t):n[t]}function aS({hint:e,icon:t,title:n,subtitle:r,children:i}){return(0,J.jsxs)(`div`,{className:`rounded-lg border bg-card text-card-foreground shadow-sm overflow-hidden`,children:[(0,J.jsxs)(`div`,{className:`flex items-start gap-2.5 border-b bg-muted/40 px-3.5 py-2.5`,children:[(0,J.jsx)(t,{className:`mt-0.5 h-4 w-4 shrink-0 text-muted-foreground`}),(0,J.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,J.jsxs)(`div`,{className:`flex flex-wrap items-baseline gap-x-2`,children:[(0,J.jsx)(`span`,{className:`text-sm font-semibold leading-tight`,children:n}),(0,J.jsx)(`span`,{className:`font-mono text-[10px] uppercase tracking-wider text-muted-foreground`,children:e})]}),r&&(0,J.jsx)(`div`,{className:`mt-0.5 text-xs text-muted-foreground`,children:r})]})]}),(0,J.jsx)(`div`,{className:`p-3.5`,children:i})]})}function oS({tone:e=`muted`,children:t}){return(0,J.jsxs)(`div`,{className:Y(`flex items-center gap-2 rounded-md border border-dashed px-3 py-2.5 text-xs`,e===`warn`?`border-amber-300 bg-amber-50 text-amber-800 dark:border-amber-900 dark:bg-amber-950/30 dark:text-amber-300`:`bg-muted/30 text-muted-foreground`),children:[e===`warn`&&(0,J.jsx)(xa,{className:`h-3.5 w-3.5 shrink-0`}),t]})}function sS({object:e,name:t}){let{item:n,loading:r,error:i}=N(`object`,e??null),a=q.useMemo(()=>{let e=n?.validations??n?.validationRules??[];if(Array.isArray(e))return e.find(e=>e?.type===`state_machine`&&(!t||e?.name===t))},[n,t]);if(!e)return(0,J.jsxs)(oS,{tone:`warn`,children:[`Missing `,(0,J.jsx)(`code`,{className:`font-mono`,children:`object`}),` for the state machine.`]});if(r)return(0,J.jsxs)(oS,{children:[`Loading `,(0,J.jsx)(`code`,{className:`font-mono`,children:e}),`…`]});if(i)return(0,J.jsxs)(oS,{tone:`warn`,children:[`Failed to load object `,(0,J.jsx)(`code`,{className:`font-mono`,children:e}),`: `,i.message]});if(!n)return(0,J.jsxs)(oS,{tone:`warn`,children:[`Object `,(0,J.jsx)(`code`,{className:`font-mono`,children:e}),` not found.`]});if(!a)return(0,J.jsxs)(oS,{tone:`warn`,children:[`No state machine`,t?` named “${t}”`:``,` on `,(0,J.jsx)(`code`,{className:`font-mono`,children:e}),`.`]});let o=a.transitions&&typeof a.transitions==`object`&&!Array.isArray(a.transitions)?a.transitions:{},s=iS(n,a.field),c=Array.isArray(s?.options)?s.options:[],l=new Map(c.map(e=>[e.value,e])),u=e=>l.get(e)?.label??e,d=e=>l.get(e)?.color,f=c.find(e=>e.default)?.value,p=new Set;f&&p.add(f);for(let e of c)p.add(e.value);for(let[e,t]of Object.entries(o)){p.add(e);for(let e of t)p.add(e)}let m=[...p],h=({value:e})=>{let t=d(e);return(0,J.jsxs)(`span`,{className:`inline-flex items-center gap-1 rounded-full border bg-background px-2 py-0.5 text-xs font-medium`,children:[(0,J.jsx)(`span`,{className:`h-2 w-2 rounded-full`,style:{backgroundColor:t??`var(--muted-foreground)`}}),u(e)]})};return(0,J.jsx)(aS,{hint:`state machine`,icon:wa,title:a.label??a.name??`State machine`,subtitle:(0,J.jsxs)(J.Fragment,{children:[`Lifecycle of `,(0,J.jsx)(`code`,{className:`font-mono`,children:e}),a.field?(0,J.jsxs)(J.Fragment,{children:[` · field `,(0,J.jsx)(`code`,{className:`font-mono`,children:a.field})]}):null]}),children:(0,J.jsx)(`ol`,{className:`space-y-1.5`,children:m.map(e=>{let t=o[e]??[],n=e===f,r=t.length===0;return(0,J.jsxs)(`li`,{className:`flex flex-wrap items-center gap-x-2 gap-y-1.5 rounded-md border bg-muted/20 px-2.5 py-2`,children:[(0,J.jsx)(h,{value:e}),n&&(0,J.jsxs)(`span`,{className:`inline-flex items-center gap-1 rounded bg-emerald-100 px-1.5 py-0.5 text-[10px] font-medium uppercase tracking-wide text-emerald-700 dark:bg-emerald-950/50 dark:text-emerald-400`,children:[(0,J.jsx)(Ci,{className:`h-3 w-3`}),` initial`]}),r?(0,J.jsxs)(`span`,{className:`inline-flex items-center gap-1 rounded bg-muted px-1.5 py-0.5 text-[10px] font-medium uppercase tracking-wide text-muted-foreground`,children:[(0,J.jsx)(zi,{className:`h-3 w-3`}),` final`]}):(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(si,{className:`h-3.5 w-3.5 text-muted-foreground`}),(0,J.jsx)(`span`,{className:`flex flex-wrap gap-1.5`,children:t.map(e=>(0,J.jsx)(h,{value:e},e))})]})]},e)})})})}var cS=new Set([`script`,`http_request`,`connector_action`,`assignment`,`get_record`,`create_record`,`update_record`,`delete_record`,`boundary_event`]);function lS({name:e,detail:t}){let{item:n,loading:r,error:i}=N(`flow`,e??null);if(!e)return(0,J.jsxs)(oS,{tone:`warn`,children:[`Missing `,(0,J.jsx)(`code`,{className:`font-mono`,children:`name`}),` for the flow.`]});if(r)return(0,J.jsxs)(oS,{children:[`Loading flow `,(0,J.jsx)(`code`,{className:`font-mono`,children:e}),`…`]});if(i)return(0,J.jsxs)(oS,{tone:`warn`,children:[`Failed to load flow `,(0,J.jsx)(`code`,{className:`font-mono`,children:e}),`: `,i.message]});if(!n)return(0,J.jsxs)(oS,{tone:`warn`,children:[`Flow `,(0,J.jsx)(`code`,{className:`font-mono`,children:e}),` not found.`]});let a=Array.isArray(n.nodes)?n.nodes:[],o=(t??`business`)===`business`,s=o?a.filter(e=>!cS.has(e?.type)):a,c=a.length-s.length;return(0,J.jsxs)(aS,{hint:`flow`,icon:Hi,title:n.label??n.name??e,subtitle:n.description??(0,J.jsxs)(J.Fragment,{children:[`Process with `,a.length,` step`,a.length===1?``:`s`]}),children:[s.length===0?(0,J.jsx)(oS,{children:`No steps to show.`}):(0,J.jsx)(`ol`,{className:`space-y-1.5`,children:s.map((e,t)=>(0,J.jsxs)(`li`,{className:`flex items-center gap-2.5 rounded-md border bg-muted/20 px-2.5 py-2`,children:[(0,J.jsx)(`span`,{className:`flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-primary/10 text-[11px] font-semibold text-primary`,children:t+1}),(0,J.jsx)(`span`,{className:`text-sm`,children:e?.label??e?.id??`(step)`}),e?.type&&(0,J.jsx)(`span`,{className:`ml-auto rounded border bg-background px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground`,children:e.type})]},e?.id??t))}),o&&c>0&&(0,J.jsxs)(`div`,{className:`mt-2 text-[11px] text-muted-foreground`,children:[c,` technical step`,c===1?``:`s`,` hidden · set `,(0,J.jsx)(`code`,{className:`font-mono`,children:`detail: technical`}),` to show all`]})]})}var uS=[{key:`allowCreate`,label:`C`},{key:`allowRead`,label:`R`},{key:`allowEdit`,label:`U`},{key:`allowDelete`,label:`D`}];function dS({name:e}){let{item:t,loading:n,error:r}=N(`permission`,e??null);if(!e)return(0,J.jsxs)(oS,{tone:`warn`,children:[`Missing `,(0,J.jsx)(`code`,{className:`font-mono`,children:`name`}),` for the permission set.`]});if(n)return(0,J.jsxs)(oS,{children:[`Loading permission set `,(0,J.jsx)(`code`,{className:`font-mono`,children:e}),`…`]});if(r)return(0,J.jsxs)(oS,{tone:`warn`,children:[`Failed to load permission `,(0,J.jsx)(`code`,{className:`font-mono`,children:e}),`: `,r.message]});if(!t)return(0,J.jsxs)(oS,{tone:`warn`,children:[`Permission set `,(0,J.jsx)(`code`,{className:`font-mono`,children:e}),` not found.`]});let i=t.objects&&typeof t.objects==`object`?t.objects:{},a=Object.entries(i);return(0,J.jsx)(aS,{hint:`permission`,icon:da,title:t.label??t.name??e,subtitle:(0,J.jsxs)(J.Fragment,{children:[`Object access · `,a.length,` object`,a.length===1?``:`s`]}),children:a.length===0?(0,J.jsx)(oS,{children:`No object permissions declared.`}):(0,J.jsxs)(`table`,{className:`w-full border-separate border-spacing-0 text-xs`,children:[(0,J.jsx)(`thead`,{children:(0,J.jsxs)(`tr`,{className:`text-muted-foreground`,children:[(0,J.jsx)(`th`,{className:`border-b px-2 py-1.5 text-left font-medium`,children:`Object`}),uS.map(e=>(0,J.jsx)(`th`,{className:`border-b px-2 py-1.5 text-center font-mono font-medium`,title:e.key,children:e.label},e.key))]})}),(0,J.jsx)(`tbody`,{children:a.map(([e,t])=>(0,J.jsxs)(`tr`,{children:[(0,J.jsx)(`td`,{className:`border-b px-2 py-1.5 font-mono`,children:e}),uS.map(e=>(0,J.jsx)(`td`,{className:`border-b px-2 py-1.5 text-center`,children:t?.[e.key]?(0,J.jsx)(pi,{className:`mx-auto h-3.5 w-3.5 text-emerald-600 dark:text-emerald-400`}):(0,J.jsx)(Zi,{className:`mx-auto h-3.5 w-3.5 text-muted-foreground/40`})},e.key))]},e))})]})})}function fS(e){switch(e.type){case`state_machine`:return(0,J.jsx)(sS,{...e});case`flow`:return(0,J.jsx)(lS,{...e});case`permission`:return(0,J.jsx)(dS,{...e});default:return(0,J.jsxs)(oS,{tone:`warn`,children:[`Unknown metadata view type`,e.type?` “${e.type}”`:``,`. Expected`,` `,(0,J.jsx)(`code`,{className:`font-mono`,children:`state_machine`}),`, `,(0,J.jsx)(`code`,{className:`font-mono`,children:`flow`}),`, or`,` `,(0,J.jsx)(`code`,{className:`font-mono`,children:`permission`}),`.`]})}}function pS({schema:e}){let{aria:t,...n}=zx(e),r=Ct();return(0,J.jsx)(`div`,{...Ee(t,r),children:(0,J.jsx)(fS,{...n})})}K.register(`metadata_viewer`,pS,{namespace:`element`,skipFallback:!0,label:`Metadata Viewer`,category:`content`});function mS(e){return e==null||e===``?`—`:typeof e==`object`?JSON.stringify(e):String(e)}function hS({schema:e}){let t=zx(e),n=Array.isArray(t.items)?t.items:[],r=t.columns===2?`sm:grid-cols-2`:`grid-cols-1`;return n.length===0?(0,J.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No details`}):(0,J.jsx)(`dl`,{className:Y(`grid gap-x-6 gap-y-3`,r,e?.className,t.className),"data-testid":`definition-list`,children:n.map((e,n)=>(0,J.jsxs)(`div`,{className:Y(t.inline?`flex items-baseline justify-between gap-3`:`flex flex-col gap-0.5`),children:[(0,J.jsx)(`dt`,{className:`text-xs font-medium uppercase tracking-wide text-muted-foreground`,children:e.term}),(0,J.jsx)(`dd`,{className:`text-sm text-foreground`,children:mS(e.description)})]},n))})}K.register(`definition-list`,hS,{namespace:`element`,skipFallback:!0,label:`Definition List`,category:`content`,inputs:[{name:`items`,type:`array`,of:`object`,description:'Term/description pairs [{ term, description }], in order: `term` is the row label, `description` is shown as-is (an object as JSON, an omitted one as an em dash). Omitted or empty renders the "No details" state'},{name:`columns`,type:`enum`,enum:[{label:`1`,value:1},{label:`2`,value:2}],description:`Grid columns from the small breakpoint up: the NUMBER 1 or 2 (default 1)`},{name:`inline`,type:`boolean`,description:`Term and description on one baseline-aligned row`}]});function gS({schema:e}){let t=zx(e),n=P(),[r,i]=q.useState([]),[a,o]=q.useState(!0),[s,c]=q.useState(null),l=et(),u=ke(t.filter,l),d=q.useMemo(()=>u?JSON.stringify(u):``,[u]),f=q.useMemo(()=>t.sort?JSON.stringify(t.sort):``,[t.sort]),p=q.useMemo(()=>(t.fields??[]).map(e=>typeof e==`string`?{field:e}:e),[t.fields]),m=be(n&&typeof n.find==`function`?t.object:void 0);return q.useEffect(()=>{let e=!1;if(!n||!t.object||typeof n.find!=`function`){o(!1);return}return o(!0),c(null),(async()=>{try{let r={};u&&(r.$filter=u),t.sort&&(r.$orderby=t.sort),t.limit&&(r.$top=t.limit);let a=await n.find(t.object,r),o=a?.data??(Array.isArray(a)?a:[]);e||i(o)}catch(t){e||c(t?.message??`Failed to load`)}finally{e||o(!1)}})(),()=>{e=!0}},[n,t.object,d,f,t.limit,m]),a?(0,J.jsx)(`p`,{className:`py-2 text-sm text-muted-foreground`,children:`Loading…`}):s?(0,J.jsx)(`p`,{className:`py-2 text-sm text-destructive`,children:s}):r.length===0?(0,J.jsx)(`p`,{className:`py-2 text-sm text-muted-foreground`,children:t.emptyText??`No records`}):(0,J.jsx)(`ul`,{className:Y(t.divided!==!1&&`divide-y divide-border`,e?.className,t.className),"data-testid":`repeater`,children:r.map((e,n)=>(0,J.jsxs)(`li`,{className:`flex items-baseline gap-3 py-2`,children:[t.titleField&&(0,J.jsx)(`span`,{className:`text-sm font-medium text-foreground`,children:mS(e[t.titleField])}),p.map(t=>(0,J.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:mS(e[t.field])},t.field))]},e?.id??n))})}K.register(`repeater`,gS,{namespace:`element`,skipFallback:!0,label:`Repeater`,category:`content`,inputs:[{name:`object`,type:`string`,required:!0,description:`Object whose records the list repeats over`},{name:`titleField`,type:`string`},{name:`fields`,type:`array`,description:"Fields shown after the title on each line, in order: a bare field name, or `{ field }`"},{name:`filter`,type:`array`,of:`object`,description:"Filter rules `[{ field, operator, value }]`. A string `value` may be a context token such as `{current_user_id}`, resolved before the query"},{name:`sort`,type:`array`,of:`object`,description:"Sort order `[{ field, order }]`, applied in list order"},{name:`limit`,type:`number`},{name:`emptyText`,type:`string`},{name:`divided`,type:`boolean`,description:`Separator between rows`}]});function _S(e){if(e==null)return``;if(typeof e==`string`)return e;if(typeof e==`number`||typeof e==`boolean`)return String(e);if(typeof e==`object`){let t=e;return String(t.label??t.name??t.title??t.en??``)}return String(e)}function vS({schema:e}){let t=zx(e),n=P(),r=I(e,n),i=r.composed,a=r.status===`loading`||r.status===`missing`?void 0:i?.object??t.object,o=et(),s=ke(i?.filter??t.filter,o),c=i?.sort??t.sort,l=i?.limit??t.limit??50,u=t.labelField??`name`,d=t.valueField??`id`,f=dt(e?.id),{language:p}=wt(),[m,h]=q.useState([]),[g,_]=q.useState(!0),[v,y]=q.useState(null),b=q.useMemo(()=>s?JSON.stringify(s):``,[s]),x=q.useMemo(()=>c?JSON.stringify(c):``,[c]),S=be(n&&typeof n.find==`function`?a:void 0),C=q.useRef(null);q.useEffect(()=>{let e=!1;if(!n||!a||typeof n.find!=`function`){_(!1);return}let t=JSON.stringify([a,b,x,l]),r=C.current;return(r===null||r.adapter!==n||r.signature!==t)&&(_(!0),y(null)),(async()=>{try{let r={};s&&(r.$filter=s),c&&(r.$orderby=c),l&&(r.$top=l);let i=await n.find(a,r),o=i?.data??(Array.isArray(i)?i:[]);e||(h(o),y(null),C.current={adapter:n,signature:t})}catch(t){e||y(t?.message??`Failed to load`)}finally{e||_(!1)}})(),()=>{e=!0}},[n,a,b,x,l,S]);let w=f?.value,T=f?String(w??``):void 0,E=q.useCallback(e=>{f?.setValue(e)},[f]),D=xt(t.label,p),O=xt(t.placeholder??`Select a record…`,p),k=xt(t.emptyText??`No records`,p),A=Ct(),j=Ee(t.aria,A);return r.status===`missing`?(0,J.jsx)(He,{testId:`record-picker`,title:`This record picker’s data source could not be resolved`,message:r.error}):r.status===`loading`?(0,J.jsx)(De,{testId:`record-picker`}):(0,J.jsxs)(`div`,{className:Y(`space-y-1.5`,e?.className),"data-testid":`record-picker`,"data-picker-id":e?.id,children:[D&&(0,J.jsx)(Y_,{htmlFor:e?.id,className:`text-sm font-medium text-foreground`,children:D}),(0,J.jsxs)(vy,{value:T,onValueChange:E,disabled:g||!!v||!a,children:[(0,J.jsx)(by,{id:e?.id,className:`w-full max-w-xs`,"data-testid":`record-picker-trigger`,...j,children:(0,J.jsx)(yy,{placeholder:g?`Loading…`:v?`Failed to load`:O})}),(0,J.jsx)(Cy,{children:m.map((e,t)=>{let n=e?.[d],r=String(n??t);return(0,J.jsx)(Ty,{value:r,children:_S(e?.[u])||r},r)})})]}),!g&&!v&&m.length===0&&(0,J.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:k})]})}K.register(`record_picker`,me(vS),{namespace:`element`,skipFallback:!0,label:`Record Picker`,category:`input`,inputs:[{name:`object`,type:`string`},{name:`filter`,type:`array`,description:'Filter rules narrowing which records the picker offers, as a ViewFilterRule ARRAY — `[{ field: "status", operator: "equals", value: "open" }, …]`, the one filter orthography this map\'s array-declared `filter` doors share. It becomes the `$filter` of the picker\'s own query, so it decides which records exist for the user, not merely how they are shown. PRECEDENCE: a node-level `dataSource` binding wins outright. The renderer reads `dataSource.filter ?? filter`, so when the binding — or the saved view its `view` names, which AND-combine with each other because the spec calls the binding\'s filter *additional* — supplies a filter, THIS key is dropped entirely rather than merged into it; it applies only when the node carries no `dataSource`, or that `dataSource` and its view both leave `filter` unset. MEMBERS ARE RULE OBJECTS: the MongoDB-style record form (`{ status: "open" }`, `{ $and: [ … ] }`) was retired by objectstack#14406 and the spec now refuses it by kind, and a bare tuple (`["a", "=", 1]`) is refused as a member because each entry must be an object.'},{name:`labelField`,type:`string`},{name:`valueField`,type:`string`},{name:`placeholder`,type:[`string`,`object`],description:'Prompt shown in the closed control while no record is selected (renderer default "Select a record…"). Display-only — it never reaches the query. Accepts either a plain string or an inline per-locale map (`{ en: "Owner", "zh-CN": "负责人" }`), the `I18nLabel` union rc.6 widened this key to; the renderer resolves the map against the active language at the read site, falling back through base language, a region-qualified sibling, `default`, then `en`. It is REPLACED while the picker is busy: "Loading…" while it reads a new set of options and "Failed to load" after an error both win over this key (a re-read of the same options after a data change keeps them on screen and shows no "Loading…"). An authored empty string stays empty; the default applies only when the key is absent.'},{name:`label`,type:[`string`,`object`],description:'Caption rendered above the picker, in a `<label>` element — tied to the control by `htmlFor` when the node carries an `id`, so clicking it focuses the picker and the text becomes the combobox’s accessible name (objectui#5771), unless the block’s `aria.ariaLabel` names the combobox, which wins. Display-only — it never reaches the query, and it is OMITTED entirely when the key is absent or resolves to an empty string. Accepts either a plain string or an inline per-locale map (`{ en: "Owner", "zh-CN": "负责人" }`), the `I18nLabel` union rc.6 widened this key to; the renderer resolves the map against the active language at the read site, with the same fallback chain as `placeholder`. Distinct from `labelField`, which names the RECORD field each offered row is titled by.'},{name:`sort`,type:`array`,of:`object`,description:'Row order, as an array of `{ field, order }` entries — `[{ field: "name", order: "asc" }]`. It becomes the `$orderby` of the picker\'s own query, so it decides the order records are offered in. `order` is `asc` or `desc`; the terse string form (`"name asc"`) is not accepted by the contract. PRECEDENCE: identical to `filter` above and for the same reason — the renderer reads `dataSource.sort ?? sort`, so a node-level `dataSource` binding (or the saved view its `view` names) REPLACES this key outright rather than merging with it; it applies only when the node carries no `dataSource`, or that `dataSource` and its view both leave `sort` unset.'},{name:`limit`,type:`number`,description:"Maximum number of records the picker offers, as a whole number. It becomes the `$top` of the picker's own query, so it bounds what the user can choose from rather than how the list is displayed — a record outside the limit cannot be picked at all, and the control gives no sign that more exist. PRECEDENCE, first source that supplies a cap wins: (1) `dataSource.limit`; (2) the row cap of the saved view that `dataSource.view` names; (3) THIS key; (4) 50. A cap in (1) or (2) counts only when it is a positive integer — one the contract refuses (`0`, a negative, a non-integer) is treated as NOT AUTHORED and falls through to the next source exactly as an absent one does (objectui#10016), so a refused `dataSource.limit` does not win. DEFAULT: the 50 in (4) is applied by the renderer — the trailing `?? 50` where the picker resolves its `limit` — not by the schema."},{name:`emptyText`,type:[`string`,`object`],description:'Text shown in place of the row list when the query returns no records (renderer default "No records", `record-picker.tsx:213`). Unlike `filter` / `sort` / `limit` this is display-only — it never reaches the query, and a node-level `dataSource` binding does not override it. Accepts either a plain string or an inline per-locale map (`{ en: "None", "zh-CN": "无记录" }`) — the `I18nLabel` union rc.6 widened this key to — and the renderer resolves the map against the active language at the read site, falling back through base language, `default`, then `en`. An authored empty string stays empty; the "No records" default applies only when the key is absent.'}]});var yS=[`text`,`email`,`number`,`tel`,`url`,`password`];function bS({schema:e}){let t=zx(e),n=yS.includes(t.inputType)?t.inputType:`text`,{language:r}=wt(),i=dt(e?.id),a=q.useRef(!1);q.useEffect(()=>{a.current||(a.current=!0,i&&t.defaultValue!==void 0&&(i.value==null||i.value===``)&&i.setValue(t.defaultValue))},[]);let o=i?.value,s=i?o==null?``:String(o):void 0,c=q.useCallback(e=>{if(!i)return;let t=e.target.value;i.setValue(n===`number`?t===``?``:Number(t):t)},[i,n]),l=xt(t.label,r),u=xt(t.placeholder,r),d=xt(t.description,r),f=q.useId(),p=d?`${f}-description`:void 0,m=Ct(),h=Ee(t.aria,m),g=[p,h[`aria-describedby`]].filter(Boolean).join(` `)||void 0;return(0,J.jsxs)(`div`,{className:Y(`grid w-full max-w-sm items-center gap-1.5`,e?.className),"data-testid":`text-input`,"data-input-id":e?.id,children:[l&&(0,J.jsxs)(Y_,{htmlFor:e?.id,children:[l,t.required&&(0,J.jsx)(`span`,{className:`ml-0.5 text-destructive`,"data-required-marker":`true`,"aria-hidden":`true`,children:`*`})]}),(0,J.jsx)(Pv,{id:e?.id,type:n,placeholder:u||void 0,value:s,defaultValue:s===void 0?t.defaultValue:void 0,required:t.required,disabled:t.disabled,...h,"aria-describedby":g,onChange:c}),d&&(0,J.jsx)(`p`,{id:p,className:`text-sm text-muted-foreground`,children:d})]})}K.register(`text_input`,bS,{namespace:`element`,skipFallback:!0,label:`Text Input`,category:`input`,inputs:[{name:`label`,type:[`string`,`object`],description:'Caption rendered ABOVE the input, in a `<label>` element — tied to the field by `htmlFor` when the node carries an `id`, so clicking it focuses the input. Display-only, and OMITTED entirely when the key is absent or resolves to an empty string; because the `required` asterisk is drawn on this element, a required input with no label shows no asterisk at all. Accepts either a plain string or an inline per-locale map (`{ en: "Owner", "zh-CN": "负责人" }`) — the `I18nLabel` union the contract admits on this key — and the renderer resolves the map against the active language at the read site, falling back through base language, a region-qualified sibling, `default`, then `en`, and finally to any remaining entry.'},{name:`placeholder`,type:[`string`,`object`],description:'Prompt shown INSIDE the field while it is empty, as the native input\'s `placeholder` attribute — it disappears as the user types and never becomes the input\'s value, so it is never what a bound page variable receives. Display-only, with no renderer default: an absent key means no placeholder, and an authored empty string (or a map no locale limb resolves) drops the attribute altogether rather than setting an empty one. Accepts either a plain string or an inline per-locale map (`{ en: "Owner", "zh-CN": "负责人" }`), resolved against the active language with the same fallback chain as `label`.'},{name:`inputType`,type:`enum`,enum:[`text`,`email`,`number`,`tel`,`url`,`password`]},{name:`defaultValue`,type:[`string`,`number`],description:"Initial value (string or number). With a page variable bound to this input — a variable whose `source` is this component id — it is pushed into that variable ONCE on mount, and only while the variable is still empty, so `page.<var>` and the submit body carry it before the user types; a variable that declares its own defaultValue wins. With no bound variable it becomes the native input's uncontrolled initial value and nothing else reads it."},{name:`required`,type:`boolean`},{name:`disabled`,type:`boolean`},{name:`description`,type:[`string`,`object`],description:'Helper text rendered BELOW the input, in its own `<p>` — a different destination from `label` (above, in a `<label>`) and `placeholder` (inside the field), reached by the same read path. Display-only, and OMITTED entirely when the key is absent or resolves to an empty string. Accepts either a plain string or an inline per-locale map (`{ en: "Owner", "zh-CN": "负责人" }`), resolved against the active language with the same fallback chain as `label`. The paragraph IS tied to the field with `aria-describedby`, so the resolved text is the input’s accessible DESCRIPTION and assistive tech announces it with the field rather than leaving it as unreachable decoration. That association does not depend on the node carrying an `id` (`label`’s `htmlFor` does): the id `aria-describedby` needs sits on the paragraph, which the renderer mints per instance, and it is emitted only when a paragraph is actually rendered — an absent or empty `description` puts no paragraph id in the input’s `aria-describedby`, which then carries only an authored `aria.ariaDescribedBy`, or is absent. An authored `aria.ariaDescribedBy` is added after the paragraph’s id, never in place of it. Prefer `label` anyway for an instruction a user MUST NOT miss: a description is announced after the field’s name, and screen readers gate description text behind verbosity settings a user can turn down (NVDA’s “Report object descriptions”, VoiceOver hint verbosity), so it is the half of the announcement most likely to go unheard — the same advice as before, now resting on announcement order and verbosity rather than on the text being unwired.'}]});function xS(e){return e==null?void 0:String(e)}function SS(e,t){let n=e?.find(e=>String(e.value)===t);return n?n.value:t}var CS=new Set([`required`,`minLength`,`maxLength`,`min`,`max`,`pattern`,`validate`]);function wS(e,t){let n=getComputedStyle(e);return t*parseFloat(n.fontSize)}function TS(e,t){let n=getComputedStyle(e.ownerDocument.documentElement);return t*parseFloat(n.fontSize)}function ES(e){return e/100*window.innerHeight}function DS(e){return e/100*window.innerWidth}function OS(e){switch(typeof e){case`number`:return[e,`px`];case`string`:{let t=parseFloat(e);return e.endsWith(`%`)?[t,`%`]:e.endsWith(`px`)?[t,`px`]:e.endsWith(`rem`)?[t,`rem`]:e.endsWith(`em`)?[t,`em`]:e.endsWith(`vh`)?[t,`vh`]:e.endsWith(`vw`)?[t,`vw`]:[t,`%`]}}}function kS({groupSize:e,panelElement:t,styleProp:n}){let r,[i,a]=OS(n);switch(a){case`%`:r=i/100*e;break;case`px`:r=i;break;case`rem`:r=TS(t,i);break;case`em`:r=wS(t,i);break;case`vh`:r=ES(i);break;case`vw`:r=DS(i)}return r}function AS(e){return parseFloat(e.toFixed(3))}function jS({group:e}){let{orientation:t,panels:n}=e;return n.reduce((e,n)=>(e+=t===`horizontal`?n.element.offsetWidth:n.element.offsetHeight,e),0)}function MS(e){let{panels:t}=e,n=jS({group:e});return n===0?t.map(e=>({groupResizeBehavior:e.panelConstraints.groupResizeBehavior,collapsedSize:0,collapsible:e.panelConstraints.collapsible===!0,defaultSize:void 0,disabled:e.panelConstraints.disabled,minSize:0,maxSize:100,panelId:e.id})):t.map(e=>{let{element:t,panelConstraints:r}=e,i=0;r.collapsedSize!==void 0&&(i=AS(kS({groupSize:n,panelElement:t,styleProp:r.collapsedSize})/n*100));let a;r.defaultSize!==void 0&&(a=AS(kS({groupSize:n,panelElement:t,styleProp:r.defaultSize})/n*100));let o=0;r.minSize!==void 0&&(o=AS(kS({groupSize:n,panelElement:t,styleProp:r.minSize})/n*100));let s=100;return r.maxSize!==void 0&&(s=AS(kS({groupSize:n,panelElement:t,styleProp:r.maxSize})/n*100)),{groupResizeBehavior:r.groupResizeBehavior,collapsedSize:i,collapsible:r.collapsible===!0,defaultSize:a,disabled:r.disabled,minSize:o,maxSize:s,panelId:e.id}})}function NS(e,t=`Assertion error`){if(!e)throw Error(t)}function PS(e,t){return Array.from(t).sort(e===`horizontal`?FS:IS)}function FS(e,t){let n=e.element.offsetLeft-t.element.offsetLeft;return n===0?e.element.offsetWidth-t.element.offsetWidth:n}function IS(e,t){let n=e.element.offsetTop-t.element.offsetTop;return n===0?e.element.offsetHeight-t.element.offsetHeight:n}function LS(e){return typeof e==`object`&&!!e&&`nodeType`in e&&e.nodeType===Node.ELEMENT_NODE}function RS(e,t){return{x:e.x>=t.left&&e.x<=t.right?0:Math.min(Math.abs(e.x-t.left),Math.abs(e.x-t.right)),y:e.y>=t.top&&e.y<=t.bottom?0:Math.min(Math.abs(e.y-t.top),Math.abs(e.y-t.bottom))}}function zS({orientation:e,rects:t,targetRect:n}){let r={x:n.x+n.width/2,y:n.y+n.height/2},i,a=Number.MAX_VALUE;for(let n of t){let{x:t,y:o}=RS(r,n),s=e===`horizontal`?t:o;s<a&&(a=s,i=n)}return NS(i,`No rect found`),i}var BS;function VS(){return BS===void 0&&(BS=typeof matchMedia==`function`&&!!matchMedia(`(pointer:coarse)`).matches),BS}function HS(e){let{element:t,orientation:n,panels:r,separators:i}=e,a=PS(n,Array.from(t.children).filter(LS).map(e=>({element:e}))).map(({element:e})=>e),o=[],s=!1,c=!1,l=-1,u=-1,d=0,f,p=[];{let e=-1;for(let t of a)t.hasAttribute(`data-panel`)&&(e++,t.hasAttribute(`data-disabled`)||(d++,l===-1&&(l=e),u=e))}if(d>1){let t=-1;for(let d of a)if(d.hasAttribute(`data-panel`)){t++;let i=r.find(e=>e.element===d);if(i){if(f){let r=f.element.getBoundingClientRect(),a=d.getBoundingClientRect(),m;if(c){let e=n===`horizontal`?new DOMRect(r.right,r.top,0,r.height):new DOMRect(r.left,r.bottom,r.width,0),t=n===`horizontal`?new DOMRect(a.left,a.top,0,a.height):new DOMRect(a.left,a.top,a.width,0);switch(p.length){case 0:m=[e,t];break;case 1:{let i=p[0];m=[i,zS({orientation:n,rects:[r,a],targetRect:i.element.getBoundingClientRect()})===r?t:e];break}default:m=p}}else m=p.length?p:[n===`horizontal`?new DOMRect(r.right,a.top,a.left-r.right,a.height):new DOMRect(a.left,r.bottom,a.width,a.top-r.bottom)];for(let n of m){let r=`width`in n?n:n.element.getBoundingClientRect(),a=VS()?e.resizeTargetMinimumSize.coarse:e.resizeTargetMinimumSize.fine;if(r.width<a){let e=a-r.width;r=new DOMRect(r.x-e/2,r.y,r.width+e,r.height)}if(r.height<a){let e=a-r.height;r=new DOMRect(r.x,r.y-e/2,r.width,r.height+e)}!s&&!(t<=l||t>u)&&o.push({group:e,groupSize:jS({group:e}),panels:[f,i],separator:`width`in n?void 0:n,rect:r}),s=!1}}c=!1,f=i,p=[]}}else if(d.hasAttribute(`data-separator`)){d.ariaDisabled!==null&&(s=!0);let e=i.find(e=>e.element===d);e?p.push(e):(f=void 0,p=[])}else c=!0}return o}var US=class{#e={};addListener(e,t){let n=this.#e[e];return n===void 0?this.#e[e]=[t]:n.includes(t)||n.push(t),()=>{this.removeListener(e,t)}}emit(e,t){let n=this.#e[e];if(n!==void 0){if(n.length===1)n[0].call(null,t);else{let e=!1,r=null,i=Array.from(n);for(let n=0;n<i.length;n++){let a=i[n];try{a.call(null,t)}catch(t){r===null&&(e=!0,r=t)}}if(e)throw r}}}removeAllListeners(){this.#e={}}removeListener(e,t){let n=this.#e[e];if(n!==void 0){let e=n.indexOf(t);e>=0&&n.splice(e,1)}}},WS={cursorFlags:0,state:`inactive`},GS=new US;function KS(){return WS}function qS(e){return GS.addListener(`change`,e)}function JS(e){let t=WS,n={...WS};n.cursorFlags=e,WS=n,GS.emit(`change`,{prev:t,next:n})}function YS(e){let t=WS;WS=e,GS.emit(`change`,{prev:t,next:e})}var XS=e=>e,ZS=()=>{},QS=1,$S=2,eC=4,tC=8,nC=3,rC=12,iC;function aC(){return iC===void 0&&(iC=!1,typeof window<`u`&&(window.navigator.userAgent.includes(`Chrome`)||window.navigator.userAgent.includes(`Firefox`))&&(iC=!0)),iC}function oC({cursorFlags:e,groups:t,state:n}){let r=0,i=0;switch(n){case`active`:case`hover`:t.forEach(e=>{if(!e.mutableState.disableCursor)switch(e.orientation){case`horizontal`:r++;break;case`vertical`:i++}})}if(r!==0||i!==0){if(n===`active`&&e&&aC()){let t=(e&QS)!==0,n=(e&$S)!==0,r=(e&eC)!==0,i=(e&tC)!==0;if(t)return r?`se-resize`:i?`ne-resize`:`e-resize`;if(n)return r?`sw-resize`:i?`nw-resize`:`w-resize`;if(r)return`s-resize`;if(i)return`n-resize`}return aC()?r>0&&i>0?`move`:r>0?`ew-resize`:`ns-resize`:r>0&&i>0?`grab`:r>0?`col-resize`:`row-resize`}}var sC=new WeakMap;function cC(e){if(e.defaultView===null||e.defaultView===void 0)return;let{prevStyle:t,styleSheet:n}=sC.get(e)??{};n===void 0&&(n=new e.defaultView.CSSStyleSheet,e.adoptedStyleSheets&&(Object.isExtensible(e.adoptedStyleSheets)?e.adoptedStyleSheets.push(n):e.adoptedStyleSheets=[...e.adoptedStyleSheets,n]));let r=KS();switch(r.state){case`active`:case`hover`:{let e=oC({cursorFlags:r.cursorFlags,groups:r.hitRegions.map(e=>e.group),state:r.state}),i=`*, *:hover {cursor: ${e} !important; }`;if(t===i)return;t=i,e?n.cssRules.length===0?n.insertRule(i):n.replaceSync(i):n.cssRules.length===1&&n.deleteRule(0);break}case`inactive`:t=void 0,n.cssRules.length===1&&n.deleteRule(0)}sC.set(e,{prevStyle:t,styleSheet:n})}var lC=new Map,uC=new US;function dC(e){lC=new Map(lC),lC.delete(e)}function fC(e,t){for(let[t]of lC)if(t.id===e)return t}function pC(e,t){for(let[t,n]of lC)if(t.id===e)return n;if(t)throw Error(`Could not find data for Group with id ${e}`)}function mC(){return lC}function hC(e,t){return uC.addListener(`groupChange`,n=>{n.group.id===e&&t(n)})}function gC(e,t,n){let r=lC.get(e);lC=new Map(lC),lC.set(e,t),uC.emit(`groupChange`,{group:e,isUserInteraction:n?.isUserInteraction===!0,prev:r,next:t})}function _C(e){let t=KS(),n=!1;return t.state===`active`&&(YS({cursorFlags:0,state:`inactive`}),t.hitRegions.length>0&&(cC(e),n=!0,t.hitRegions.forEach(e=>{let t=pC(e.group.id,!0);gC(e.group,t,{isUserInteraction:!0})}))),n}function vC(e){e.defaultPrevented||_C(e.currentTarget)}function yC(e,t,n){let r,i={x:1/0,y:1/0};for(let a of t){let t=RS(n,a.rect);switch(e){case`horizontal`:t.x<=i.x&&(r=a,i=t);break;case`vertical`:t.y<=i.y&&(r=a,i=t)}}return r?{distance:i,hitRegion:r}:void 0}function bC(e){return typeof e==`object`&&!!e&&`nodeType`in e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}function xC(e,t){if(e===t)throw Error(`Cannot compare node with itself`);let n={a:DC(e),b:DC(t)},r;for(;n.a.at(-1)===n.b.at(-1);)r=n.a.pop(),n.b.pop();NS(r,`Stacking order can only be calculated for elements with a common ancestor`);let i={a:EC(TC(n.a)),b:EC(TC(n.b))};if(i.a===i.b){let e=r.childNodes,t={a:n.a.at(-1),b:n.b.at(-1)},i=e.length;for(;i--;){let n=e[i];if(n===t.a)return 1;if(n===t.b)return-1}}return Math.sign(i.a-i.b)}var SC=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function CC(e){let t=getComputedStyle(OC(e)??e).display;return t===`flex`||t===`inline-flex`}function wC(e){let t=getComputedStyle(e);return!!(t.position===`fixed`||t.zIndex!==`auto`&&(t.position!==`static`||CC(e))||+t.opacity<1||`transform`in t&&t.transform!==`none`||`webkitTransform`in t&&t.webkitTransform!==`none`||`mixBlendMode`in t&&t.mixBlendMode!==`normal`||`filter`in t&&t.filter!==`none`||`webkitFilter`in t&&t.webkitFilter!==`none`||`isolation`in t&&t.isolation===`isolate`||SC.test(t.willChange)||t.webkitOverflowScrolling===`touch`)}function TC(e){let t=e.length;for(;t--;){let n=e[t];if(NS(n,`Missing node`),wC(n))return n}return null}function EC(e){return e&&Number(getComputedStyle(e).zIndex)||0}function DC(e){let t=[];for(;e;)t.push(e),e=OC(e);return t}function OC(e){let{parentNode:t}=e;return bC(t)?t.host:t}function kC(e,t){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function AC({groupElement:e,hitRegion:t,pointerEventTarget:n}){if(!LS(n)||n.contains(e)||e.contains(n))return!0;if(xC(n,e)>0){let r=n;for(;r;){if(r.contains(e))return!0;if(kC(r.getBoundingClientRect(),t))return!1;r=r.parentElement}}return!0}function jC(e,t){let n=[];return t.forEach((t,r)=>{if(r.disabled)return;let i=HS(r),a=yC(r.orientation,i,{x:e.clientX,y:e.clientY});a&&a.distance.x<=0&&a.distance.y<=0&&AC({groupElement:r.element,hitRegion:a.hitRegion.rect,pointerEventTarget:e.target})&&n.push(a.hitRegion)}),n}function MC(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function NC(e,t,n=0){return Math.abs(AS(e)-AS(t))<=n}function PC(e,t){return NC(e,t)?0:e>t?1:-1}function FC({overrideDisabledPanels:e,panelConstraints:t,prevSize:n,size:r}){let{collapsedSize:i=0,collapsible:a,disabled:o,maxSize:s=100,minSize:c=0}=t;if(o&&!e)return n;if(PC(r,c)<0){if(a){let e=(i+c)/2;r=PC(r,e)<0?i:c}else r=c}return r=Math.min(s,r),r=AS(r),r}function IC({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:i,trigger:a}){if(NC(e,0))return t;let o=a===`imperative-api`,s=Object.values(t),c=Object.values(i),l=[...s],[u,d]=r;NS(u!=null,`Invalid first pivot index`),NS(d!=null,`Invalid second pivot index`);let f=0;switch(a){case`keyboard`:{let t=e<0?d:u,r=n[t];NS(r,`Panel constraints not found for index ${t}`);let{collapsedSize:i=0,collapsible:a,minSize:o=0}=r;if(a){let n=s[t];if(NS(n!=null,`Previous layout not found for panel index ${t}`),NC(n,i)){let t=o-n;PC(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}{let t=e<0?u:d,r=n[t];NS(r,`No panel constraints found for index ${t}`);let{collapsedSize:i=0,collapsible:a,minSize:o=0}=r;if(a){let n=s[t];if(NS(n!=null,`Previous layout not found for panel index ${t}`),NC(n,o)){let t=n-i;PC(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}break;default:{let t=e<0?d:u,r=n[t];NS(r,`Panel constraints not found for index ${t}`);let i=s[t],{collapsible:a,collapsedSize:o,minSize:c}=r;if(a&&PC(i,c)<0){if(e>0){let t=c-o,n=t/2;PC(i+e,c)<0&&(e=PC(e,n)<=0?0:t)}else{let t=c-o,n=100-t/2;PC(i-e,c)<0&&(e=PC(100+e,n)>0?0:-t)}}break}}{let t=e<0?1:-1,r=e<0?d:u,i=0;for(;;){let e=s[r];NS(e!=null,`Previous layout not found for panel index ${r}`);let a=FC({overrideDisabledPanels:o,panelConstraints:n[r],prevSize:e,size:100})-e;if(i+=a,r+=t,r<0||r>=n.length)break}let a=Math.min(Math.abs(e),Math.abs(i));e=e<0?0-a:a}{let t=e<0?u:d;for(;t>=0&&t<n.length;){let r=Math.abs(e)-Math.abs(f),i=s[t];NS(i!=null,`Previous layout not found for panel index ${t}`);let a=i-r,c=FC({overrideDisabledPanels:o,panelConstraints:n[t],prevSize:i,size:a});if(!NC(i,c)&&(f+=i-c,l[t]=c,f.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?t--:t++}}if(MC(c,l))return i;{let t=e<0?d:u,r=s[t];NS(r!=null,`Previous layout not found for panel index ${t}`);let i=r+f,a=FC({overrideDisabledPanels:o,panelConstraints:n[t],prevSize:r,size:i});if(l[t]=a,!NC(a,i)){let t=i-a,r=e<0?d:u;for(;r>=0&&r<n.length;){let i=l[r];NS(i!=null,`Previous layout not found for panel index ${r}`);let a=i+t,s=FC({overrideDisabledPanels:o,panelConstraints:n[r],prevSize:i,size:a});if(NC(i,s)||(t-=s-i,l[r]=s),NC(t,0))break;e>0?r--:r++}}}if(!NC(Object.values(l).reduce((e,t)=>t+e,0),100,.1))return i;let p=Object.keys(i);return l.reduce((e,t,n)=>(e[p[n]]=t,e),{})}function LC(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(t[n]===void 0||PC(e[n],t[n])!==0)return!1;return!0}function RC({layout:e,panelConstraints:t}){let n=Object.values(e),r=[...n],i=r.reduce((e,t)=>e+t,0);if(r.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${r.map(e=>`${e}%`).join(`, `)}`);if(!NC(i,100)&&r.length>0)for(let e=0;e<t.length;e++){let t=r[e];NS(t!=null,`No layout data found for index ${e}`);let n=100/i*t;r[e]=n}let a=0;for(let e=0;e<t.length;e++){let i=n[e];NS(i!=null,`No layout data found for index ${e}`);let o=r[e];NS(o!=null,`No layout data found for index ${e}`);let s=FC({overrideDisabledPanels:!0,panelConstraints:t[e],prevSize:i,size:o});o!=s&&(a+=o-s,r[e]=s)}if(!NC(a,0))for(let e=0;e<t.length;e++){let n=r[e];NS(n!=null,`No layout data found for index ${e}`);let i=n+a,o=FC({overrideDisabledPanels:!0,panelConstraints:t[e],prevSize:n,size:i});if(n!==o&&(a-=o-n,r[e]=o,NC(a,0)))break}let o=Object.keys(e);return r.reduce((e,t,n)=>(e[o[n]]=t,e),{})}function zC({groupId:e,panelId:t}){let n=()=>{let t=mC();for(let[n,{defaultLayoutDeferred:r,derivedPanelConstraints:i,layout:a,groupSize:o,separatorToPanels:s}]of t)if(n.id===e)return{defaultLayoutDeferred:r,derivedPanelConstraints:i,group:n,groupSize:o,layout:a,separatorToPanels:s};throw Error(`Group ${e} not found`)},r=()=>{let e=n().derivedPanelConstraints.find(e=>e.panelId===t);if(e!==void 0)return e;throw Error(`Panel constraints not found for Panel ${t}`)},i=()=>{let e=n().group.panels.find(e=>e.id===t);if(e!==void 0)return e;throw Error(`Layout not found for Panel ${t}`)},a=()=>{let e=n().layout[t];if(e!==void 0)return e;throw Error(`Layout not found for Panel ${t}`)},o=({nextSize:e,panels:n,prevLayout:r,derivedPanelConstraints:i})=>{let o=a(),s=n.findIndex(e=>e.id===t),c=s===0,l=s===n.length-1;if(l&&e<o&&(c||n.slice(0,s).every((e,t)=>{let n=i[t];return n?.collapsible&&NC(n.collapsedSize,r[n.panelId])}))){let e=n.slice(0,s).reduce((e,t)=>e+r[t.id],0);return{...r,[t]:AS(100-e)}}return IC({delta:l?o-e:e-o,initialLayout:r,panelConstraints:i,pivotIndices:l?[s-1,s]:[s,s+1],prevLayout:r,trigger:`imperative-api`})},s=e=>{if(e===a())return;let{defaultLayoutDeferred:t,derivedPanelConstraints:r,group:i,groupSize:s,layout:c,separatorToPanels:l}=n(),u=RC({layout:o({nextSize:e,panels:i.panels,prevLayout:c,derivedPanelConstraints:r}),panelConstraints:r});LC(c,u)||gC(i,{defaultLayoutDeferred:t,derivedPanelConstraints:r,groupSize:s,layout:u,separatorToPanels:l})};return{collapse:()=>{let{collapsible:e,collapsedSize:t}=r(),{mutableValues:n}=i(),o=a();e&&o!==t&&(n.expandToSize=o,s(t))},expand:()=>{let{collapsible:e,collapsedSize:t,minSize:n}=r(),{mutableValues:o}=i(),c=a();if(e&&c===t){let e=o.expandToSize??n;e===0&&(e=1),s(e)}},getSize:()=>{let{group:e}=n(),t=a(),{element:r}=i();return{asPercentage:t,inPixels:e.orientation===`horizontal`?r.offsetWidth:r.offsetHeight}},isCollapsed:()=>{let{collapsible:e,collapsedSize:t}=r(),n=a();return e&&NC(t,n)},resize:e=>{let{group:t}=n(),{element:r}=i(),a=jS({group:t}),o=AS(kS({groupSize:a,panelElement:r,styleProp:e})/a*100);s(o)}}}function BC(e){e.defaultPrevented||jC(e,mC()).forEach(t=>{if(t.separator&&!t.separator.disableDoubleClick){let n=t.panels.find(e=>e.panelConstraints.defaultSize!==void 0);if(n){let r=n.panelConstraints.defaultSize,i=zC({groupId:t.group.id,panelId:n.id});i&&r!==void 0&&(i.resize(r),e.preventDefault())}}})}function VC(e){let t=mC();for(let[n]of t)if(n.separators.some(t=>t.element===e))return n;throw Error(`Could not find parent Group for separator element`)}function HC({groupId:e}){let t=()=>{let t=mC();for(let[n,r]of t)if(n.id===e)return{group:n,...r};throw Error(`Could not find Group with id "${e}"`)};return{getLayout(){let{defaultLayoutDeferred:e,layout:n}=t();return e?{}:n},setLayout(e){let{defaultLayoutDeferred:n,derivedPanelConstraints:r,group:i,groupSize:a,layout:o,separatorToPanels:s}=t(),c=RC({layout:e,panelConstraints:r});return n?o:(LC(o,c)||gC(i,{defaultLayoutDeferred:n,derivedPanelConstraints:r,groupSize:a,layout:c,separatorToPanels:s}),c)}}}function UC(e,t){let n=VC(e),r=pC(n.id,!0),i=n.separators.find(t=>t.element===e);NS(i,`Matching separator not found`);let a=r.separatorToPanels.get(i);NS(a,`Matching panels not found`);let o=a.map(e=>n.panels.indexOf(e)),s=HC({groupId:n.id}).getLayout(),c=RC({layout:IC({delta:t,initialLayout:s,panelConstraints:r.derivedPanelConstraints,pivotIndices:o,prevLayout:s,trigger:`keyboard`}),panelConstraints:r.derivedPanelConstraints});LC(s,c)||gC(n,{defaultLayoutDeferred:r.defaultLayoutDeferred,derivedPanelConstraints:r.derivedPanelConstraints,groupSize:r.groupSize,layout:c,separatorToPanels:r.separatorToPanels},{isUserInteraction:!0})}function WC(e){if(e.defaultPrevented)return;let t=e.currentTarget,n=VC(t);if(!n.disabled)switch(e.key){case`ArrowDown`:e.preventDefault(),n.orientation===`vertical`&&UC(t,5);break;case`ArrowLeft`:e.preventDefault(),n.orientation===`horizontal`&&UC(t,-5);break;case`ArrowRight`:e.preventDefault(),n.orientation===`horizontal`&&UC(t,5);break;case`ArrowUp`:e.preventDefault(),n.orientation===`vertical`&&UC(t,-5);break;case`End`:e.preventDefault(),UC(t,100);break;case`Enter`:{e.preventDefault();let n=VC(t),{derivedPanelConstraints:r,layout:i,separatorToPanels:a}=pC(n.id,!0),o=n.separators.find(e=>e.element===t);NS(o,`Matching separator not found`);let s=a.get(o);NS(s,`Matching panels not found`);let c=s[0],l=r.find(e=>e.panelId===c.id);if(NS(l,`Panel metadata not found`),l.collapsible){let e=i[c.id];UC(t,(l.collapsedSize===e?n.mutableState.expandedPanelSizes[c.id]??l.minSize:l.collapsedSize)-e)}break}case`F6`:{e.preventDefault();let n=VC(t).separators.map(e=>e.element),r=Array.from(n).findIndex(t=>t===e.currentTarget);NS(r!==null,`Index not found`),n[e.shiftKey?r>0?r-1:n.length-1:r+1<n.length?r+1:0].focus({preventScroll:!0});break}case`Home`:e.preventDefault(),UC(t,-100)}}function GC(e){if(e.defaultPrevented||e.pointerType===`mouse`&&e.button>0)return;let t=mC(),n=jC(e,t),r=new Map,i=!1;n.forEach(e=>{e.separator&&(i||(i=!0,e.separator.element.focus({focusVisible:!1,preventScroll:!0})));let n=t.get(e.group);n&&r.set(e.group,n.layout)}),YS({cursorFlags:0,hitRegions:n,initialLayoutMap:r,pointerDownAtPoint:{x:e.clientX,y:e.clientY},state:`active`}),n.length&&e.preventDefault()}function KC({document:e,event:t,hitRegions:n,initialLayoutMap:r,mountedGroups:i,pointerDownAtPoint:a,prevCursorFlags:o}){let s=0;n.forEach(e=>{let{group:n,groupSize:o}=e,{orientation:c,panels:l}=n,{disableCursor:u}=n.mutableState,d=0;d=a?c===`horizontal`?(t.clientX-a.x)/o*100:(t.clientY-a.y)/o*100:c===`horizontal`?t.clientX<0?-100:100:t.clientY<0?-100:100;let f=r.get(n),p=i.get(n);if(!f||!p)return;let{defaultLayoutDeferred:m,derivedPanelConstraints:h,groupSize:g,layout:_,separatorToPanels:v}=p;if(h&&_&&v){let t=IC({delta:d,initialLayout:f,panelConstraints:h,pivotIndices:e.panels.map(e=>l.indexOf(e)),prevLayout:_,trigger:`mouse-or-touch`});if(LC(t,_)){if(d!==0&&!u)switch(c){case`horizontal`:s|=d<0?QS:$S;break;case`vertical`:s|=d<0?eC:tC}}else gC(e.group,{defaultLayoutDeferred:m,derivedPanelConstraints:h,groupSize:g,layout:t,separatorToPanels:v})}});let c=0;t.movementX===0?c|=o&nC:c|=s&nC,t.movementY===0?c|=o&rC:c|=s&rC,JS(c),cC(e)}function qC(e){let t=mC(),n=KS();n.state===`active`&&KC({document:e.currentTarget,event:e,hitRegions:n.hitRegions,initialLayoutMap:n.initialLayoutMap,mountedGroups:t,prevCursorFlags:n.cursorFlags})}function JC(e){if(e.defaultPrevented)return;let t=KS(),n=mC();switch(t.state){case`active`:if(e.buttons===0){YS({cursorFlags:0,state:`inactive`}),t.hitRegions.forEach(e=>{let t=pC(e.group.id,!0);gC(e.group,t,{isUserInteraction:!0})});return}for(let n of t.hitRegions)if(n.separator){let{element:t}=n.separator;t.hasPointerCapture?.(e.pointerId)||t.setPointerCapture?.(e.pointerId)}KC({document:e.currentTarget,event:e,hitRegions:t.hitRegions,initialLayoutMap:t.initialLayoutMap,mountedGroups:n,pointerDownAtPoint:t.pointerDownAtPoint,prevCursorFlags:t.cursorFlags});break;default:{let r=jC(e,n);r.length===0?t.state!==`inactive`&&YS({cursorFlags:0,state:`inactive`}):YS({cursorFlags:0,hitRegions:r,state:`hover`}),cC(e.currentTarget);break}}}function YC(e){if(e.relatedTarget instanceof HTMLIFrameElement)switch(KS().state){case`hover`:YS({cursorFlags:0,state:`inactive`})}}function XC(e){e.defaultPrevented||e.pointerType===`mouse`&&e.button>0||_C(e.currentTarget)&&e.preventDefault()}function ZC(e){let t=0,n=0,r={};for(let i of e)if(i.defaultSize!==void 0){t++;let e=AS(i.defaultSize);n+=e,r[i.panelId]=e}else r[i.panelId]=void 0;let i=e.length-t;if(i!==0){let t=AS((100-n)/i);for(let n of e)n.defaultSize===void 0&&(r[n.panelId]=t)}return r}function QC(e,t,n){if(!n[0])return;let r=e.panels.find(e=>e.element===t);if(!r||!r.onResize)return;let i=jS({group:e}),a=e.orientation===`horizontal`?r.element.offsetWidth:r.element.offsetHeight,o=r.mutableValues.prevSize,s={asPercentage:AS(a/i*100),inPixels:a};r.mutableValues.prevSize=s,r.onResize(s,r.id,o)}function $C(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function ew({group:e,nextGroupSize:t,prevGroupSize:n,prevLayout:r}){if(n<=0||t<=0||n===t)return r;let i=0,a=0,o=!1,s=new Map,c=[];for(let l of e.panels){let e=r[l.id]??0;switch(l.panelConstraints.groupResizeBehavior){case`preserve-pixel-size`:{o=!0;let r=AS(e/100*n/t*100);s.set(l.id,r),i+=r;break}default:c.push(l.id),a+=e}}if(!o||c.length===0)return r;let l=100-i,u={...r};if(s.forEach((e,t)=>{u[t]=e}),a>0)for(let e of c)u[e]=AS((r[e]??0)/a*l);else{let e=AS(l/c.length);for(let t of c)u[t]=e}return u}function tw(e,t){let n=e.map(e=>e.id),r=Object.keys(t);if(n.length!==r.length)return!1;for(let e of n)if(!r.includes(e))return!1;return!0}var nw=new Map;function rw(e){let t=!0;NS(e.element.ownerDocument.defaultView,`Cannot register an unmounted Group`);let n=e.element.ownerDocument.defaultView.ResizeObserver,r=new Set,i=new Set,a=new n(n=>{for(let r of n){let{borderBoxSize:n,target:i}=r;if(i===e.element){if(t){let t=jS({group:e});if(t===0)return;let n=pC(e.id);if(!n)return;let r=MS(e),i=n.defaultLayoutDeferred?ZC(r):n.layout,a=RC({layout:ew({group:e,nextGroupSize:t,prevGroupSize:n.groupSize,prevLayout:i}),panelConstraints:r});if(!n.defaultLayoutDeferred&&LC(n.layout,a)&&$C(n.derivedPanelConstraints,r)&&n.groupSize===t)return;gC(e,{defaultLayoutDeferred:!1,derivedPanelConstraints:r,groupSize:t,layout:a,separatorToPanels:n.separatorToPanels})}}else QC(e,i,n)}});a.observe(e.element),e.panels.forEach(e=>{NS(!r.has(e.id),`Panel ids must be unique; id "${e.id}" was used more than once`),r.add(e.id),e.onResize&&a.observe(e.element)});let o=jS({group:e}),s=MS(e),c=e.panels.map(({id:e})=>e).join(`,`),l=e.mutableState.defaultLayout;l&&(tw(e.panels,l)||(l=void 0));let u=RC({layout:e.mutableState.layouts[c]??l??ZC(s),panelConstraints:s}),d=e.element.ownerDocument;nw.set(d,(nw.get(d)??0)+1);let f=new Map;return HS(e).forEach(e=>{e.separator&&f.set(e.separator,e.panels)}),gC(e,{defaultLayoutDeferred:o===0,derivedPanelConstraints:s,groupSize:o,layout:u,separatorToPanels:f}),e.separators.forEach(e=>{NS(!i.has(e.id),`Separator ids must be unique; id "${e.id}" was used more than once`),i.add(e.id),e.element.addEventListener(`keydown`,WC)}),nw.get(d)===1&&(d.addEventListener(`contextmenu`,vC,!0),d.addEventListener(`dblclick`,BC,!0),d.addEventListener(`pointerdown`,GC,!0),d.addEventListener(`pointerleave`,qC),d.addEventListener(`pointermove`,JC),d.addEventListener(`pointerout`,YC),d.addEventListener(`pointerup`,XC,!0)),function(){t=!1,nw.set(d,Math.max(0,(nw.get(d)??0)-1)),dC(e),e.separators.forEach(e=>{e.element.removeEventListener(`keydown`,WC)}),nw.get(d)||(d.removeEventListener(`contextmenu`,vC,!0),d.removeEventListener(`dblclick`,BC,!0),d.removeEventListener(`pointerdown`,GC,!0),d.removeEventListener(`pointerleave`,qC),d.removeEventListener(`pointermove`,JC),d.removeEventListener(`pointerout`,YC),d.removeEventListener(`pointerup`,XC,!0)),a.disconnect()}}function iw(){let[e,t]=(0,q.useState)({});return[e,(0,q.useCallback)(()=>t({}),[])]}function aw(e){let t=(0,q.useId)();return`${e??t}`}var ow=typeof window<`u`?q.useLayoutEffect:q.useEffect;function sw(e){let t=(0,q.useRef)(e);return ow(()=>{t.current=e},[e]),(0,q.useCallback)((...e)=>t.current?.(...e),[t])}function cw(...e){return sw(t=>{e.forEach(e=>{if(e)switch(typeof e){case`function`:e(t);break;case`object`:e.current=t}})})}function lw(e){let t=(0,q.useRef)({...e});return ow(()=>{for(let n in e)t.current[n]=e[n]},[e]),t.current}var uw=(0,q.createContext)(null);function dw(e,t){let n=(0,q.useRef)({getLayout:()=>({}),setLayout:XS});(0,q.useImperativeHandle)(t,()=>n.current,[]),ow(()=>{Object.assign(n.current,HC({groupId:e}))})}function fw({children:e,className:t,defaultLayout:n,disableCursor:r,disabled:i,elementRef:a,groupRef:o,id:s,onLayoutChange:c,onLayoutChanged:l,orientation:u=`horizontal`,resizeTargetMinimumSize:d={coarse:20,fine:10},style:f,...p}){let m=(0,q.useRef)({onLayoutChange:{},onLayoutChanged:{}}),h=sw(e=>{LC(m.current.onLayoutChange,e)||(m.current.onLayoutChange=e,c?.(e))}),g=sw((e,t)=>{LC(m.current.onLayoutChanged,e)||(m.current.onLayoutChanged=e,l?.(e,{isUserInteraction:t}))}),_=aw(s),v=(0,q.useRef)(null),[y,b]=iw(),x=(0,q.useRef)({lastExpandedPanelSizes:{},layouts:{},panels:[],resizeTargetMinimumSize:d,separators:[]}),S=cw(v,a);dw(_,o);let C=sw((e,t)=>{let r=KS(),i=fC(e),a=pC(e);if(a){let e=!1;return r.state===`active`&&(e=r.hitRegions.some(e=>e.group===i)),{flexGrow:a.layout[t]??1,pointerEvents:e?`none`:void 0}}if(n?.[t])return{flexGrow:n?.[t]}}),w=lw({defaultLayout:n,disableCursor:r}),T=(0,q.useMemo)(()=>({get disableCursor(){return!!w.disableCursor},getPanelStyles:C,id:_,orientation:u,registerPanel:e=>{let t=x.current;return t.panels=PS(u,[...t.panels,e]),b(),()=>{t.panels=t.panels.filter(t=>t!==e),b()}},registerSeparator:e=>{let t=x.current;return t.separators=PS(u,[...t.separators,e]),b(),()=>{t.separators=t.separators.filter(t=>t!==e),b()}},updatePanelProps:(e,{disabled:t})=>{let n=x.current.panels.find(t=>t.id===e);n&&(n.panelConstraints.disabled=t);let r=fC(_),i=pC(_);r&&i&&gC(r,{...i,derivedPanelConstraints:MS(r)})},updateSeparatorProps:(e,{disabled:t,disableDoubleClick:n})=>{let r=x.current.separators.find(t=>t.id===e);r&&(r.disabled=t,r.disableDoubleClick=n)}}),[C,_,b,u,w]),E=(0,q.useRef)(null);return ow(()=>{let e=v.current;if(e===null)return;let t=x.current,n;if(w.defaultLayout!==void 0&&Object.keys(w.defaultLayout).length===t.panels.length){n={};for(let e of t.panels){let t=w.defaultLayout[e.id];t!==void 0&&(n[e.id]=t)}}let r={disabled:!!i,element:e,id:_,mutableState:{defaultLayout:n,disableCursor:!!w.disableCursor,expandedPanelSizes:x.current.lastExpandedPanelSizes,layouts:x.current.layouts},orientation:u,panels:t.panels,resizeTargetMinimumSize:t.resizeTargetMinimumSize,separators:t.separators};E.current=r;let a=rw(r),{defaultLayoutDeferred:o,derivedPanelConstraints:s,layout:c}=pC(r.id,!0);!o&&s.length>0&&(h(c),g(c,!1));let l=hC(_,e=>{let{defaultLayoutDeferred:t,derivedPanelConstraints:n,layout:i}=e.next;if(t||n.length===0)return;let a=r.panels.map(({id:e})=>e).join(`,`);r.mutableState.layouts[a]=i,n.forEach(t=>{if(t.collapsible){let{layout:n}=e.prev??{};if(n){let e=NC(t.collapsedSize,i[t.panelId]),a=NC(t.collapsedSize,n[t.panelId]);e&&!a&&(r.mutableState.expandedPanelSizes[t.panelId]=n[t.panelId])}}});let o=KS().state!==`active`;h(i),o&&g(i,e.isUserInteraction)});return()=>{E.current=null,a(),l()}},[i,_,g,h,u,y,w]),(0,q.useEffect)(()=>{let e=E.current;e&&(e.mutableState.defaultLayout=n,e.mutableState.disableCursor=!!r)}),(0,J.jsx)(uw.Provider,{value:T,children:(0,J.jsx)(`div`,{...p,className:t,"data-group":!0,"data-testid":_,id:_,ref:S,style:{height:`100%`,width:`100%`,overflow:`hidden`,...f,display:`flex`,flexDirection:u===`horizontal`?`row`:`column`,flexWrap:`nowrap`,touchAction:u===`horizontal`?`pan-y`:`pan-x`},children:e})})}fw.displayName=`Group`;function pw(){let e=(0,q.useContext)(uw);return NS(e,`Group Context not found; did you render a Panel or Separator outside of a Group?`),e}function mw(e,t){let{id:n}=pw(),r=(0,q.useRef)({collapse:ZS,expand:ZS,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:ZS});(0,q.useImperativeHandle)(t,()=>r.current,[]),ow(()=>{Object.assign(r.current,zC({groupId:n,panelId:e}))})}function hw({children:e,className:t,collapsedSize:n=`0%`,collapsible:r=!1,defaultSize:i,disabled:a,elementRef:o,groupResizeBehavior:s=`preserve-relative-size`,id:c,maxSize:l=`100%`,minSize:u=`0%`,onResize:d,panelRef:f,style:p,...m}){let h=!!c,g=aw(c),_=lw({disabled:a}),v=(0,q.useRef)(null),y=cw(v,o),{getPanelStyles:b,id:x,orientation:S,registerPanel:C,updatePanelProps:w}=pw(),T=d!==null,E=sw((e,t,n)=>{d?.(e,c,n)});ow(()=>{let e=v.current;if(e!==null){let t={element:e,id:g,idIsStable:h,mutableValues:{expandToSize:void 0,prevSize:void 0},onResize:T?E:void 0,panelConstraints:{groupResizeBehavior:s,collapsedSize:n,collapsible:r,defaultSize:i,disabled:_.disabled,maxSize:l,minSize:u}};return C(t)}},[s,n,r,i,T,g,h,l,u,E,C,_]),(0,q.useEffect)(()=>{w(g,{disabled:a})},[a,g,w]),mw(g,f);let D=()=>{let e=b(x,g);if(e)return JSON.stringify(e)},O=(0,q.useSyncExternalStore)(e=>hC(x,e),D,D),k;return k=O?JSON.parse(O):i===void 0?{flexGrow:1}:{flexGrow:void 0,flexShrink:void 0,flexBasis:i},(0,J.jsx)(`div`,{...m,"data-disabled":a||void 0,"data-panel":!0,"data-testid":g,id:g,ref:y,style:{...gw,display:`flex`,flexBasis:0,flexShrink:1,overflow:`visible`,...k},children:(0,J.jsx)(`div`,{className:t,style:{maxHeight:`100%`,maxWidth:`100%`,flexGrow:1,overflow:`auto`,...p,touchAction:S===`horizontal`?`pan-y`:`pan-x`},children:e})})}hw.displayName=`Panel`;var gw={minHeight:0,maxHeight:`100%`,height:`auto`,minWidth:0,maxWidth:`100%`,width:`auto`,border:`none`,borderWidth:0,padding:0,margin:0};function _w({layout:e,panelConstraints:t,panelId:n,panelIndex:r}){let i,a,o=e[n],s=t.find(e=>e.panelId===n);if(s){let c=s.maxSize,l=s.collapsible?s.collapsedSize:s.minSize,u=[r,r+1];a=RC({layout:IC({delta:l-o,initialLayout:e,panelConstraints:t,pivotIndices:u,prevLayout:e}),panelConstraints:t})[n],i=RC({layout:IC({delta:c-o,initialLayout:e,panelConstraints:t,pivotIndices:u,prevLayout:e}),panelConstraints:t})[n]}return{valueControls:n,valueMax:i,valueMin:a,valueNow:o}}function vw({children:e,className:t,disabled:n,disableDoubleClick:r,elementRef:i,id:a,style:o,...s}){let c=aw(a),l=lw({disabled:n,disableDoubleClick:r}),[u,d]=(0,q.useState)({}),[f,p]=(0,q.useState)(`inactive`),[m,h]=(0,q.useState)(!1),g=(0,q.useRef)(null),_=cw(g,i),{disableCursor:v,id:y,orientation:b,registerSeparator:x,updateSeparatorProps:S}=pw(),C=b===`horizontal`?`vertical`:`horizontal`;ow(()=>{let e=g.current;if(e!==null){let t={disabled:l.disabled,disableDoubleClick:l.disableDoubleClick,element:e,id:c},n=x(t),r=qS(e=>{p(e.next.state!==`inactive`&&e.next.hitRegions.some(e=>e.separator===t)?e.next.state:`inactive`)}),i=hC(y,e=>{let{derivedPanelConstraints:n,layout:r,separatorToPanels:i}=e.next,a=i.get(t);if(a){let e=a[0],t=a.indexOf(e);d(_w({layout:r,panelConstraints:n,panelId:e.id,panelIndex:t}))}});return()=>{r(),i(),n()}}},[y,c,x,l]),(0,q.useEffect)(()=>{S(c,{disabled:n,disableDoubleClick:r})},[n,r,c,S]);let w;n&&!v&&(w=`not-allowed`);let T;if(n)T=`disabled`;else switch(f){case`active`:T=`active`;break;default:T=m?`focus`:f}return(0,J.jsx)(`div`,{...s,"aria-controls":u.valueControls,"aria-disabled":n||void 0,"aria-orientation":C,"aria-valuemax":u.valueMax,"aria-valuemin":u.valueMin,"aria-valuenow":u.valueNow,children:e,className:t,"data-separator":T,"data-testid":c,id:c,onBlur:()=>h(!1),onFocus:()=>h(!0),ref:_,role:`separator`,style:{flexBasis:`auto`,cursor:w,...o,flexGrow:0,flexShrink:0,touchAction:`none`},tabIndex:n?void 0:0})}vw.displayName=`Separator`;var yw=({className:e,...t})=>(0,J.jsx)(fw,{className:Y(`flex h-full w-full`,e),...t}),bw=hw,xw=({withHandle:e,className:t,...n})=>(0,J.jsx)(vw,{className:Y(`relative flex w-px items-center justify-center bg-border`,`after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2`,`focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1`,`aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full`,`aria-[orientation=horizontal]:after:left-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full`,`aria-[orientation=horizontal]:after:-translate-y-1/2 aria-[orientation=horizontal]:after:translate-x-0`,`[&[aria-orientation=horizontal]>div]:rotate-90`,t),...n,children:e&&(0,J.jsx)(`div`,{className:`z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border`,children:(0,J.jsx)(Ui,{className:`h-2.5 w-2.5`})})}),Sw=vt({"common.cancel":`Cancel`,"form.fullscreen.title":`Edit text`,"form.fullscreen.description":`Edit the full text value, then save or cancel your changes.`,"form.fullscreen.done":`Done`,"form.fullscreen.toggle":`Edit {{label}} fullscreen`,"form.fullscreen.textFallback":`text`},`common.cancel`);function Cw({value:e,onCommit:t,label:n,testIdPrefix:r,readOnly:i=!1,disabled:a=!1,error:o,children:s,footer:c}){let{t:l}=Sw(),[u,d]=(0,q.useState)(!1),[f,p]=(0,q.useState)(e??``),m=(0,q.useId)(),h=`${m}-fullscreen-title`,g=`${m}-fullscreen-error`,_={"aria-labelledby":h,"aria-invalid":!!o,...o?{"aria-errormessage":g}:null};return i?null:(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`button`,{type:`button`,onClick:()=>{a||i||(p(e??``),d(!0))},disabled:a,className:Y(`absolute top-1.5 right-1.5 inline-flex items-center justify-center size-7 rounded-md bg-background/80 text-muted-foreground hover:text-foreground hover:bg-background border shadow-sm transition-colors`,`disabled:opacity-50 disabled:pointer-events-none`),"aria-label":l(`form.fullscreen.toggle`,{label:n??l(`form.fullscreen.textFallback`)}),"data-testid":`${r}-fullscreen-toggle`,children:(0,J.jsx)(Xi,{className:`size-3.5`})}),(0,J.jsx)(im,{open:u,onOpenChange:d,children:(0,J.jsxs)(cm,{className:`sm:max-w-3xl h-[100dvh] sm:h-[80vh] max-h-[100dvh] sm:max-h-[80vh] flex flex-col p-0 gap-0`,"data-testid":`${r}-fullscreen-dialog`,children:[(0,J.jsxs)(lm,{className:`p-4 border-b`,children:[(0,J.jsx)(dm,{className:`text-base`,children:(0,J.jsx)(`span`,{id:h,children:n??l(`form.fullscreen.title`)})}),(0,J.jsx)(fm,{className:`sr-only`,children:l(`form.fullscreen.description`)}),o?(0,J.jsx)(`p`,{id:g,className:`text-sm font-medium text-destructive`,"data-testid":`${r}-fullscreen-error`,children:o}):null]}),(0,J.jsx)(`div`,{className:`flex-1 min-h-0 p-4`,children:s(f,p,a,_)}),(0,J.jsxs)(um,{className:`p-3 border-t flex-row justify-between sm:justify-end gap-2`,children:[c?.(f),(0,J.jsxs)(`div`,{className:`flex gap-2 ml-auto`,children:[(0,J.jsxs)(X,{type:`button`,variant:`ghost`,onClick:()=>d(!1),children:[(0,J.jsx)(Ta,{className:`size-4 mr-1`}),` `,l(`common.cancel`)]}),(0,J.jsxs)(X,{type:`button`,onClick:()=>{!a&&!i&&t(f),d(!1)},disabled:a,"data-testid":`${r}-fullscreen-save`,children:[(0,J.jsx)(pi,{className:`size-4 mr-1`}),` `,l(`form.fullscreen.done`)]})]})]})]})})]})}var ww=1e3,Tw=.1,Ew=20;function Dw(e){return Math.max(Math.ceil(e*Tw),Ew)}var Ow=vt({"fields.textarea.characterCount":`Character count: {{count}} of {{max}}`,"fields.textarea.charactersRemaining":`Characters remaining: {{count}}`},`fields.textarea.characterCount`);function kw({length:e,maxLength:t,descriptionId:n,announceNearLimit:r,className:i,testId:a}){let{t:o}=Ow(),s=o(`fields.textarea.characterCount`,{count:e,max:t}),c=r&&t-e<=Dw(t)?o(`fields.textarea.charactersRemaining`,{count:Math.max(t-e,0)}):``,[l,u]=(0,q.useState)(``);return(0,q.useEffect)(()=>{if(!c)return;let e=setTimeout(()=>u(c),ww);return()=>clearTimeout(e)},[c]),(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(`div`,{className:i,"aria-hidden":`true`,"data-testid":a,children:[e,`/`,t]}),(0,J.jsx)(`span`,{id:n,className:`sr-only`,children:s}),r&&(0,J.jsx)(`span`,{className:`sr-only`,"aria-live":`polite`,"aria-atomic":`true`,children:l===c?c:``})]})}function Aw({label:e,description:t,collapsible:n,collapsed:r,onToggle:i,className:a}){return!e&&!t?null:(0,J.jsxs)(`div`,{className:Y(`col-span-full pt-4 pb-1 border-b border-border`,n&&`cursor-pointer select-none`,a),onClick:n?i:void 0,role:n?`button`:void 0,"aria-expanded":n?!r:void 0,children:[e&&(0,J.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[n&&(r?(0,J.jsx)(gi,{className:`h-3.5 w-3.5 text-muted-foreground`}):(0,J.jsx)(mi,{className:`h-3.5 w-3.5 text-muted-foreground`})),(0,J.jsx)(`span`,{className:`text-sm font-semibold text-foreground`,children:e})]}),t&&(0,J.jsx)(`p`,{className:`mt-0.5 text-sm text-muted-foreground`,children:t})]})}function jw(e){let t=new Map;for(let n of e)n?.name&&!t.has(n.name)&&t.set(n.name,n);return t}function Mw(e,t){let n=new Set;for(let t of e)for(let e of t.fields)n.add(e.name);return t.filter(e=>e?.name&&!n.has(e.name))}var Nw=e=>typeof e==`number`&&Number.isFinite(e)?String(e):void 0,Pw=[`sm`,`md`,`lg`,`xl`,`2xl`,`3xl`,`4xl`,`5xl`,`6xl`,`7xl`],Fw={"@sm:2":`@sm:col-span-2`,"@sm:3":`@sm:col-span-3`,"@sm:4":`@sm:col-span-4`,"@md:2":`@md:col-span-2`,"@md:3":`@md:col-span-3`,"@md:4":`@md:col-span-4`,"@lg:2":`@lg:col-span-2`,"@lg:3":`@lg:col-span-3`,"@lg:4":`@lg:col-span-4`,"@xl:2":`@xl:col-span-2`,"@xl:3":`@xl:col-span-3`,"@xl:4":`@xl:col-span-4`,"@2xl:2":`@2xl:col-span-2`,"@2xl:3":`@2xl:col-span-3`,"@2xl:4":`@2xl:col-span-4`,"@3xl:2":`@3xl:col-span-2`,"@3xl:3":`@3xl:col-span-3`,"@3xl:4":`@3xl:col-span-4`,"@4xl:2":`@4xl:col-span-2`,"@4xl:3":`@4xl:col-span-3`,"@4xl:4":`@4xl:col-span-4`,"@5xl:2":`@5xl:col-span-2`,"@5xl:3":`@5xl:col-span-3`,"@5xl:4":`@5xl:col-span-4`,"@6xl:2":`@6xl:col-span-2`,"@6xl:3":`@6xl:col-span-3`,"@6xl:4":`@6xl:col-span-4`,"@7xl:2":`@7xl:col-span-2`,"@7xl:3":`@7xl:col-span-3`,"@7xl:4":`@7xl:col-span-4`,"sm:2":`sm:col-span-2`,"sm:3":`sm:col-span-3`,"sm:4":`sm:col-span-4`,"md:2":`md:col-span-2`,"md:3":`md:col-span-3`,"md:4":`md:col-span-4`,"lg:2":`lg:col-span-2`,"lg:3":`lg:col-span-3`,"lg:4":`lg:col-span-4`,"xl:2":`xl:col-span-2`,"xl:3":`xl:col-span-3`,"xl:4":`xl:col-span-4`,"2xl:2":`2xl:col-span-2`,"2xl:3":`2xl:col-span-3`,"2xl:4":`2xl:col-span-4`,"3xl:2":`3xl:col-span-2`,"3xl:3":`3xl:col-span-3`,"3xl:4":`3xl:col-span-4`,"4xl:2":`4xl:col-span-2`,"4xl:3":`4xl:col-span-3`,"4xl:4":`4xl:col-span-4`,"5xl:2":`5xl:col-span-2`,"5xl:3":`5xl:col-span-3`,"5xl:4":`5xl:col-span-4`,"6xl:2":`6xl:col-span-2`,"6xl:3":`6xl:col-span-3`,"6xl:4":`6xl:col-span-4`,"7xl:2":`7xl:col-span-2`,"7xl:3":`7xl:col-span-3`,"7xl:4":`7xl:col-span-4`},Iw={2:`col-span-2`,3:`col-span-3`,4:`col-span-4`};function Lw(e,t){let n=Array.from(e.matchAll(/(@)?(sm|md|lg|xl|2xl|3xl|4xl|5xl|6xl|7xl):grid-cols-(\d+)/g)).map(e=>({at:e[1]||``,bp:e[2],cols:Number(e[3])})).sort((e,t)=>Pw.indexOf(e.bp)-Pw.indexOf(t.bp));if(!n.length)return Iw[Math.min(Math.max(t,2),4)];let r=[],i=1;for(let e of n){let n=Math.min(e.cols,t);if(n<=i)continue;let a=Fw[`${e.at}${e.bp}:${n}`];a&&(r.push(a),i=n)}return r.join(` `)}var Rw=vt({"common.selectOption":`Select an option`,"common.submit":`Submit`,"common.cancel":`Cancel`,"form.fullscreen.title":`Edit text`,"form.fullscreen.description":`Edit the full text value, then save or cancel your changes.`,"form.fullscreen.done":`Done`,"form.fullscreen.toggle":`Edit {{label}} fullscreen`,"form.fullscreen.textFallback":`text`,"fields.options.selectFirst":`Select {{fields}} first`,"fields.options.empty":`No options available`,"validation.required":`{{field}} is required`,"validation.minLength":`{{field}} must be at least {{min}} characters`,"validation.maxLength":`{{field}} must be at most {{max}} characters`,"validation.min":`{{field}} must be at least {{min}}`,"validation.max":`{{field}} must be at most {{max}}`,"validation.pattern":`{{field}} format is invalid`,"validation.email":`Please enter a valid email address`,"validation.url":`Please enter a valid URL`,"validation.formInvalid":`Please check the highlighted fields: {{fields}}`,"validation.formInvalidJoiner":`, `,"errors.forbidden":`Access denied.`,"form.noPermissionToSave":`You don't have permission to save this record.`,"form.submitFailed":`Could not save. Please try again.`,"form.clearedOnHide":`Cleared — no longer applicable given the current values: {{fields}}`,"form.visibleWhenFaulted":`Can't submit: the visibleWhen rule of {{fields}} could not be evaluated. The rule must be fixed before this form can be submitted.`},`common.selectOption`),zw=e=>e==null||e===``||Array.isArray(e)&&e.length===0,Bw=(e,t)=>{if(zw(e)&&zw(t))return!0;try{return JSON.stringify(e)===JSON.stringify(t)}catch{return e===t}},Vw=(e,t)=>Object.prototype.hasOwnProperty.call(e??{},t),Hw=(e,t)=>{let n=new Set([...Object.keys(e??{}),...Object.keys(t??{})]);for(let r of n)if(!Bw(e?.[r],t?.[r]))return!0;return!1},Uw=new Set([`checkbox`,`switch`,`boolean`,`toggle`,`field:boolean`,`field:switch`,`field:checkbox`]),Ww=e=>e?.widget||e?.field?.widget||e?.type,Gw=new Set([`input`,`textarea`,`checkbox`,`switch`,`select`]),Kw={select:`field:multiselect`};function qw(e,t){return t&&Vw(Kw,e)?Kw[e]:e}var Jw=new Set([`object-ref`,`filter-condition`,`recipient-picker`]);function Yw(e){return se.has(e)||Jw.has(e)}function Xw(e){let{dataSource:t,inputType:n,options:r,field:i,schema:a,showActions:o,fieldContainerClass:s,mobileStickyActions:c,mobile_fullscreen:l,dependentValues:u,dependsOn:d,dependsOnLabels:f,emptyHint:p,label:m,error:h,...g}=e;return g}function Zw(e){if(e==null)return`null`;let t=typeof e;return t===`string`?JSON.stringify(e):t===`number`||t===`boolean`?String(e):Array.isArray(e)?`[${e.map(Zw).join(`, `)}]`:JSON.stringify(String(e))}function Qw(e){if(!e||!e.field)return null;let t=`record[${JSON.stringify(e.field)}]`,n=[];return e.equals!==void 0&&n.push(`${t} == ${Zw(e.equals)}`),e.notEquals!==void 0&&n.push(`${t} != ${Zw(e.notEquals)}`),Array.isArray(e.in)&&n.push(`${t} in ${Zw(e.in)}`),n.length>0?n.join(` && `):null}function $w(e){return e.startsWith(`field:`)?e.slice(6):e}function eT(e){if(Gw.has(e))return`control`;let t=K.getMeta($w(e),`field`)?.labelling;return t===`group`||t===`display`?t:`control`}function tT(e){return Gw.has(e)?!1:e.includes(`:`)?e.startsWith(`field:`)&&!!K.get(e):!!K.get(`field:${e}`)}function nT(e,t){return!Gw.has(e)||e!==`select`?!1:!t||t.length===0}var rT=q.forwardRef(function({labelId:e,children:t,id:n,"aria-describedby":r,"aria-invalid":i},a){return(0,J.jsx)(`div`,{ref:a,id:n,role:`group`,"aria-labelledby":n?`${e} ${n}`:e,"aria-describedby":r,"data-slot":`readonly-field-group`,children:t})});rT.displayName=`ReadonlyFieldGroup`;function iT(e,t){return e?(0,J.jsx)(rT,{labelId:e,children:t}):t}function aT(e,t){let{dataSource:n,inputType:r,showActions:i,fieldContainerClass:a,mobileStickyActions:o,mobile_fullscreen:s,dependentValues:c,dependsOnLabels:l,emptyHint:u,label:d,schema:f,...p}=t,m=$w(e);return{...p,...Yw(m)?{dataSource:n,dependentValues:c,dependsOnLabels:l}:{},...Ne.has(m)?{dependentValues:c,emptyHint:u}:{}}}function oT({value:e,onChange:t,placeholder:n,className:r,label:i,readOnly:a,disabled:o,error:s,maxLength:c,...l}){let u=a===!0||o===!0,d=e=>{u||t?.(e)},f=q.useId(),p=`${f}-charcount`,m=`${f}-fullscreen-charcount`,h=[l[`aria-describedby`],c?p:void 0].filter(Boolean).join(` `)||void 0;return(0,J.jsxs)(`div`,{className:`relative`,children:[(0,J.jsx)(Gb,{placeholder:n,className:Y(!a&&`pr-10`,r),value:e??``,onChange:e=>d(e.target.value),...l,maxLength:c,"aria-describedby":h,readOnly:a,disabled:o}),c?(0,J.jsx)(kw,{length:(e??``).length,maxLength:c,descriptionId:p,announceNearLimit:!0,className:`absolute bottom-2 right-2 text-xs text-gray-400`,testId:`form-textarea-character-count`}):null,(0,J.jsx)(Cw,{value:e??``,onCommit:d,label:i,testIdPrefix:`form-textarea`,readOnly:a,disabled:o,error:s,footer:e=>c?(0,J.jsx)(kw,{length:e.length,maxLength:c,descriptionId:m,announceNearLimit:!1,className:`text-xs text-muted-foreground self-center`,testId:`form-textarea-fullscreen-character-count`}):null,children:(e,t,r,i)=>(0,J.jsx)(Gb,{autoFocus:!0,value:e,onChange:e=>t(e.target.value),placeholder:n,className:`h-full min-h-full resize-none text-base`,disabled:r,maxLength:c,"data-testid":`form-textarea-fullscreen-input`,...i,"aria-describedby":c?m:void 0})})]})}function sT({value:e,placeholder:t,className:n,readOnly:r,maxLength:i,...a}){let o=`${q.useId()}-charcount`,s=[a[`aria-describedby`],i?o:void 0].filter(Boolean).join(` `)||void 0,c=(0,J.jsx)(Gb,{placeholder:t,className:n,...a,maxLength:i,"aria-describedby":s,readOnly:r,value:e??``});return i?(0,J.jsxs)(`div`,{className:`relative`,children:[c,(0,J.jsx)(kw,{length:(e??``).length,maxLength:i,descriptionId:o,announceNearLimit:!0,className:`absolute bottom-2 right-2 text-xs text-gray-400`,testId:`form-textarea-character-count`})]}):c}K.register(`form`,({schema:e,className:t,onAction:n,disabled:r,...i})=>{let{t:a}=Rw(),o=q.useId(),{defaultValues:s={},previousValues:c,fields:l=[],submitLabel:u,cancelLabel:d,showCancel:f=!1,showSubmit:p=!0,layout:m=`vertical`,columns:h=1,onSubmit:g,onChange:_,onDirtyChange:v,onCancel:y,resetOnSubmit:b=!1,validationMode:x=`onSubmit`}=e,S=r===!0,C=q.useMemo(()=>l.filter(e=>e&&typeof e.field==`string`&&typeof e.name!=`string`),[l]),w=q.useMemo(()=>C.length===0?l:l.filter(e=>!C.includes(e)),[l,C]);q.useEffect(()=>{for(let e of C)console.error(`[object-ui] form field { field: '${e.field}' } was NOT rendered: \`field\` is the spec form-view vocabulary (a reference to an object field), and a standalone form has no object schema to resolve it against. Rename the key to \`name\` (the form data path) — or use an object-bound form (objectName + sections), whose section fields accept the spec shape.`);for(let e of l)e&&typeof e.field==`string`&&typeof e.name==`string`&&console.warn(`[object-ui] form field '${e.name}' mixes vocabularies: it also carries { field: '${e.field}' } (spec form-view key), which this standalone renderer ignores. Drop one of the two.`)},[l,C]),q.useEffect(()=>{for(let e of l){let t=e?.validation;typeof t==`object`&&t&&Object.keys(t).filter(e=>!CS.has(e)).length!==0&&String(e?.name)}},[l]);let T=q.useMemo(()=>{let e={...s},t=!1;for(let n of w)typeof n?.name==`string`&&(Vw(e,n.name)||Uw.has(Ww(n))&&(e[n.name]=!1,t=!0));return t?e:s},[s,w]),D=q_({defaultValues:T,mode:x,shouldFocusError:!1}),O=q.useRef(null),[A,j]=q.useState(!1),[M,N]=q.useState(null),P=`form-outcome:${q.useId()}`,[F,I]=q.useState(void 0),[te,ne]=q.useState([]),re=D.watch(),L=q.useMemo(()=>{if(!c||typeof c!=`object`)return;let e={};for(let t of w)t?.name&&(e[t.name]=null);for(let t of Object.keys(c))c[t]!==void 0&&(e[t]=c[t]);return e},[w,c]),R=L===void 0,B=E(),ie=q.useMemo(()=>{let e={};for(let t of w)t?.name&&(e[t.name]=null);if(L)for(let t of Object.keys(L))e[t]=L[t];for(let t of Object.keys(re))re[t]!==void 0&&(e[t]=re[t]);return e},[w,L,JSON.stringify(re)]),V=q.useMemo(()=>{let e=new Set;if(!L)return e;for(let t of w){let n=t?.name;n&&ue({visibleWhen:t.visibleWhen,readonlyWhen:t.readonlyWhen,requiredWhen:t.requiredWhen},ie,{required:!!t.required,readonly:t.readonly===!0,serverOwnedValue:tt(t,R)},L,B,`field '${n}'`).readonly&&e.add(n)}return e},[w,ie,L,R,B]),{conditionallyHiddenFieldNames:ae,faultedVisibleWhenFieldNames:H}=q.useMemo(()=>{let e=new Set,t=[];for(let n of w){let r=n?.name;if(!r)continue;let i=n.visibleWhen,a=n.visibleOn;if(i!=null||a!=null){if(i!=null){let a=ue({visibleWhen:i,readonlyWhen:n.readonlyWhen,requiredWhen:n.requiredWhen},ie,{required:!!n.required,readonly:n.readonly===!0,serverOwnedValue:tt(n,R)},L,B,`field '${r}'`);if(a.faults.visibleWhen!==void 0&&n.type!==`section-divider`&&t.push(r),!a.visible){e.add(r);continue}}a!=null&&!k(a,ie,!0,L,B,{context:`visibleOn of field '${r}'`})&&e.add(r)}}return{conditionallyHiddenFieldNames:e,faultedVisibleWhenFieldNames:t}},[w,ie,L,R,B]),oe=q.useMemo(()=>{let e=new Set;for(let t of w){let n=t;if(n?.type!==`section-divider`)continue;let r=n.fields;if(!Array.isArray(r)||r.length===0)continue;let i=n.name,a=!!n.hidden;if(!a){let e=Qw(n.condition);e&&!k(e,ie,!0,void 0,void 0,{context:`condition of field '${i}'`})&&(a=!0)}if(a||ue({visibleWhen:n.visibleWhen,readonlyWhen:n.readonlyWhen,requiredWhen:n.requiredWhen},ie,{required:!!n.required,readonly:n.readonly===!0,serverOwnedValue:tt(n,R)},L,B,`field '${i}'`).visible||(a=!0),!a&&n.visibleOn!=null&&(k(n.visibleOn,ie,!0,L,B,{context:`visibleOn of field '${i}'`})||(a=!0)),a)for(let t of r)typeof t==`string`&&e.add(t)}return e},[w,ie,L,R,B]),U=q.useMemo(()=>{let t=e.fieldTabs;if(e.children||!Array.isArray(t))return null;let n=t.filter(e=>e&&typeof e.key==`string`);return n.length>1?n:null},[e.fieldTabs,e.children]),W=q.useMemo(()=>{let e=new Set;for(let t of U??[]){let n=t.visibleWhen;n!=null&&(k(n,ie,!0,L,B,{context:`visibleWhen of fieldTab '${t.key}'`})||e.add(t.key))}return e},[U,ie,L,B]),G=q.useMemo(()=>{let e=new Set;if(!U||W.size===0)return e;for(let t of U)if(W.has(t.key))for(let n of t.fields??[])typeof n==`string`&&e.add(n);for(let t of U)if(!W.has(t.key))for(let n of t.fields??[])e.delete(n);return e},[U,W]);q.useEffect(()=>{let e=D.formState.errors;if(e&&Object.keys(e).length!==0)for(let t of w){let n=t?.name;if(!n||!e[n])continue;let r=ue({visibleWhen:t.visibleWhen,readonlyWhen:t.readonlyWhen,requiredWhen:t.requiredWhen},ie,{required:!!t.required,readonly:t.readonly===!0,serverOwnedValue:tt(t,R)},L,B,`field '${n}'`),i=t.visibleOn==null||k(t.visibleOn,ie,!0,L,B,{context:`visibleOn of field '${n}'`}),a=e[n]?.type;(!r.visible||!i||oe.has(n)||G.has(n)||!r.required&&a===`required`)&&D.clearErrors(n)}},[ie,B,oe,G]);let se=q.useContext(z)?.dataSource??null,ce=q.useMemo(()=>{let e={};for(let t of w)t?.name&&(e[t.name]=t.label||t.name);return e},[w]),le=q.useMemo(()=>{let e=new Map;for(let t of U??[])for(let n of t.fields??[])e.has(n)||e.set(n,t.key);return e},[U]),de=q.useMemo(()=>{if(!U?.length)return;let t=U.map(e=>e.key).filter(e=>!W.has(e));if(t.length)return F&&t.includes(F)?F:e.defaultFieldTab&&t.includes(e.defaultFieldTab)?e.defaultFieldTab:t[0]},[U,W,F,e.defaultFieldTab]),fe=q.useMemo(()=>{if(!U)return null;let e=jw(w);return U.map(t=>({key:t.key,label:t.label||t.key,description:t.description,containerClass:t.containerClass,fields:(t.fields??[]).map(t=>e.get(t)).filter(e=>!!e)}))},[U,w]),pe=q.useMemo(()=>fe?Mw(fe,w):[],[fe,w]),me=q.useMemo(()=>fe?W.size===0?fe:fe.filter(e=>!W.has(e.key)):null,[fe,W]),he=q.useMemo(()=>{let t=e.fieldPanes;if(e.children||U||!Array.isArray(t))return null;let n=t.filter(e=>e&&typeof e.key==`string`);return n.length>1?n:null},[e.fieldPanes,e.children,U]),ge=q.useMemo(()=>{if(!he)return null;let e=jw(w);return he.map(t=>({key:t.key,defaultSize:Nw(t.defaultSize),minSize:Nw(t.minSize)??`20`,containerClass:t.containerClass,fields:(t.fields??[]).map(t=>e.get(t)).filter(e=>!!e)}))},[he,w]),K=q.useMemo(()=>ge?Mw(ge,w):[],[ge,w]),_e=q.useMemo(()=>{let e=new Set;if(!U)return e;for(let t of te){let n=le.get(t);n&&e.add(n)}return e},[U,le,te]);q.useEffect(()=>{for(let e of w){let t=e?.name;if(!t)continue;let n=e.widget||e.type;if(typeof n!=`string`||!Ne.has($w(n)))continue;let r=e.options;if(!r||r.length===0)continue;let i=e.dependsOn;if(!r.some(e=>e?.visibleWhen!=null)&&!i)continue;let a=D.getValues(t);if(a==null||a===``)continue;let{options:o,gated:s}=Le(r,ie,i,B);s||$e(a,o)||D.setValue(t,Array.isArray(a)?[]:null,{shouldValidate:!1,shouldDirty:!0})}},[ie,B]);let ve=q.useRef(void 0),ye=q.useRef(void 0);q.useEffect(()=>{let e=ve.current;if(ve.current=ae,!e)return;let t=ye.current,n=t!==void 0&&!Hw(t.values,D.getValues());n||(ye.current=void 0);let r=[];for(let t of ae){if(e.has(t))continue;let n=D.getValues(t);n!=null&&n!==``&&(D.setValue(t,Array.isArray(n)?[]:null,{shouldValidate:!1,shouldDirty:!0}),(Array.isArray(n)?n.length===0:n===!1&&Uw.has(Ww(w.find(e=>e?.name===t))))||r.push(t))}if(r.length===0)return;let i=n&&t?[...t.names,...r]:r;ye.current={names:i,values:{...D.getValues()}},kt.warning(a(`form.clearedOnHide`,{fields:i.map(e=>ce[e]||e).join(a(`validation.formInvalidJoiner`))}),{id:P})},[ae]);let be=q.useRef(void 0),xe=q.useRef(T??{}),Ce=q.useRef(!1);q.useLayoutEffect(()=>{let e;try{e=JSON.stringify(T??{})}catch{e=String(Date.now())}if(be.current===e)return;be.current=e;let t=T??{},n=xe.current,r=Object.entries(D.getValues()).filter(([e,r])=>!Vw(t,e)&&!Vw(n,e)&&!Bw(n[e],r));xe.current=t,Ce.current=!0;try{D.reset(T);for(let[e,t]of r)D.setValue(e,t,{shouldValidate:!1,shouldDirty:!0})}finally{Ce.current=!1}ne([]),v?.(r.length>0)},[T]),q.useLayoutEffect(()=>{if(n){let e=D.watch(e=>{Ce.current||n({type:`form_change`,data:e,formData:e})});return()=>e.unsubscribe()}},[D,n]),q.useLayoutEffect(()=>{let e=D.watch(e=>{v?.(Hw(xe.current,e))});return()=>e.unsubscribe()},[D,v]),q.useLayoutEffect(()=>{if(_){let e=D.watch(e=>{Ce.current||_(e)});return()=>e.unsubscribe()}},[D,_]);let we=e=>{let t=O.current??document,n=typeof CSS<`u`&&typeof CSS.escape==`function`?CSS.escape(e):e.replace(/["\\]/g,`\\$&`),r=t.querySelector(`[data-field="${n}"]`);r&&(r.scrollIntoView?.({behavior:`smooth`,block:`center`}),r.querySelector(`input:not([type="hidden"]), select, textarea, button, [tabindex]:not([tabindex="-1"]), [contenteditable="true"]`)?.focus?.({preventScroll:!0}))},Te=e=>{if(e.length===0)return;ne(e);let t=e.map(e=>ce[e]||e),n=t.slice(0,3).join(a(`validation.formInvalidJoiner`))+(t.length>3?`…`:``);kt.error(a(`validation.formInvalid`,{fields:n}),{id:P});let r=new Set(e),i=w.map(e=>e?.name).find(e=>!!e&&r.has(e))??e[0],o=le.get(i);if(!(o&&W.has(o))){if(o&&o!==de){I(o),typeof requestAnimationFrame==`function`?requestAnimationFrame(()=>we(i)):setTimeout(()=>we(i),0);return}we(i)}},Ee=D.handleSubmit(async e=>{j(!0),N(null),kt.dismiss(P),ne([]);let t=e;if(e&&(e.nativeEvent||typeof e.preventDefault==`function`||typeof e.stopPropagation==`function`||e.target||e.bubbles))t=D.getValues();else if(!t||Object.keys(t).length===0){let e=D.getValues();e&&Object.keys(e).length>0&&(t=e)}if(V.size>0&&t&&typeof t==`object`){let e={};for(let n of Object.keys(t))V.has(n)||(e[n]=t[n]);t=e}try{if(n){let e=await n({type:`form_submit`,data:t,formData:t});if(e?.error){N(e.error),kt.error(e.error,{id:P});return}}g&&typeof g==`function`&&await g(t),b&&D.reset()}catch(e){let t=Se(e);if(t){let n=t.filter(e=>w.some(t=>t?.name===e.field));for(let t of n)D.setError(t.field,{type:`server`,message:t.message||Ye(e)||a(`form.submitFailed`)});if(n.length>0&&n.length===t.length){Te(n.map(e=>e.field));return}}let n=Re(e)??(rt(e)?a(`form.noPermissionToSave`):Ye(e)??a(`form.submitFailed`));rt(e)&&typeof console<`u`&&console.warn(`[form] write denied:`,e),N(n),kt.error(n,{id:P})}finally{j(!1)}},e=>{Te(Object.keys(e||{}))}),De=e=>{if(H.length>0){e?.preventDefault?.(),kt.dismiss(P);let t=a(`form.visibleWhenFaulted`,{fields:H.map(e=>ce[e]||e).join(a(`validation.formInvalidJoiner`))});return N(t),kt.error(t,{id:P}),ne(H),Promise.resolve()}return Ee(e)},Oe=()=>{D.reset(),y&&typeof y==`function`&&y(),n&&n({type:`form_cancel`,data:D.getValues()})},ke=h>1?Y(`grid gap-4`,h===1?``:h===2?`md:grid-cols-2`:h===3?`md:grid-cols-2 lg:grid-cols-3`:`md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4`):`space-y-4`,Ae=e.fieldContainerClass||ke,je=e.fieldTabsPosition||`top`,Me=je===`left`||je===`right`,Pe=q.useRef(void 0),Fe=Pe.current??=new Map,Ie=t=>{let{name:n,label:r,description:i,type:s=`input`,required:c=!1,disabled:l=!1,validation:u={},condition:d,colSpan:f,hidden:p,widget:m,visibleOn:h,readonly:g,visibleWhen:_,readonlyWhen:v,requiredWhen:y,...b}=t;if(p||oe.has(n))return null;let x=Qw(d);if(x&&!k(x,ie,!0,void 0,void 0,{context:`condition of field '${n}'`}))return null;let C=ue({visibleWhen:_,readonlyWhen:v,requiredWhen:y},ie,{required:c,readonly:g===!0,serverOwnedValue:tt(t,R)},L,B,`field '${n}'`);if(!C.visible||h!=null&&!k(h,ie,!0,L,B,{context:`visibleOn of field '${n}'`}))return null;let w=C.required,T=C.readonly;if(s===`section-divider`){let e=b;return(0,J.jsx)(Aw,{label:r,description:i,collapsible:e.collapsible,collapsed:e.collapsed,onToggle:e.onToggle,className:e.className},n)}let E={...u};delete E.required,w?Fe.set(n,typeof u.required==`string`?u.required:a(`validation.required`,{field:r||n})):Fe.delete(n);let O=E.validate;E.validate={...typeof O==`function`?{validate:O}:O??{},required:e=>{let t=Fe.get(n);return t===void 0||!ee(e)||t}};let j=(e,t)=>e&&typeof e==`object`&&e.message==null&&typeof e.messageKey==`string`?{...e,message:a(e.messageKey,{field:r||n,...t?.(e)})}:e;E.minLength&&=j(E.minLength,e=>({min:e.value})),E.maxLength&&=j(E.maxLength,e=>({max:e.value})),E.min&&=j(E.min,e=>({min:e.value})),E.max&&=j(E.max,e=>({max:e.value})),E.pattern&&=j(E.pattern);let M=t.id??n,N=qw(m||b.field?.widget||s,b.multiple),P=Ne.has($w(N)),F=b.options,I=P?Le(F,ie,t.dependsOn,B):null,te=I?.gated??!1,ne=I?.dependsOnFields??[],re=I?I.options:F,z=te?a(`fields.options.selectFirst`,{fields:ne.map(e=>ce[e]||e).join(a(`validation.formInvalidJoiner`))}):void 0,V=e.fieldContainerClass||ke,ae=e=>Lw(V,e),H=f&&f>1?f===2?ae(2):f===3?ae(3):f>=4?ae(4):``:``,U=`field:${e.objectName?`${e.objectName}.`:``}${n}`,W=eT(N),G=W===`group`,le=(T===!0||W===`display`)&&!!r&&!G&&tT(N),de=r&&(G||le)?`${o}${String(n).replace(/\s+/g,`_`)}-group-label`:void 0,fe=G?de:void 0,pe=P?re:b.options,me=nT(N,pe);return(0,J.jsx)(Q_,{control:D.control,name:n,rules:E,render:({field:e,fieldState:o})=>(0,J.jsxs)(tv,{className:H||void 0,"data-testid":U,"data-field":n,children:[r&&(0,J.jsxs)(nv,{className:`text-xs font-normal text-muted-foreground`,...de?{id:de,htmlFor:void 0}:null,...me?{htmlFor:void 0}:null,children:[r,w&&(0,J.jsx)(`span`,{className:`text-destructive ml-1`,"data-required-marker":`true`,"aria-hidden":`true`,children:`*`})]}),(0,J.jsx)(rv,{children:iT(le?de:void 0,_T(N,{...b,field:t.field||t,...e,inputType:b.inputType,label:r,options:pe,placeholder:b.placeholder??(N===`select`?a(`common.selectOption`):void 0),disabled:S||l||A||te,readonly:T,emptyHint:z,dataSource:se,dependentValues:ie,dependsOnLabels:ce,error:o.error?.message,"aria-required":w||void 0,...fe?{"aria-labelledby":fe}:null}))}),i&&(0,J.jsx)(iv,{children:i}),(0,J.jsx)(av,{})]})},M)},{"data-obj-id":ze,"data-obj-type":Be,style:Ve,onSubmit:He,onChange:Ue,submitLabel:We,cancelLabel:Ge,showSubmit:Ke,showCancel:qe,resetOnSubmit:Je,defaultValues:Xe,inputType:Ze,dataSource:Qe,showActions:et,fieldContainerClass:nt,mobileStickyActions:it,objectName:at,previousValues:ot,onDirtyChange:st,onCancel:ct,fields:lt,layout:ut,columns:dt,validationMode:ft,fieldTabs:pt,defaultFieldTab:mt,fieldTabsPosition:ht,fieldPanes:gt,fieldPanesOrientation:_t,fieldPanesResizable:vt,...yt}=i;return(0,J.jsx)(X_,{...D,children:(0,J.jsxs)(`form`,{ref:O,onSubmit:De,className:t,...yt,"data-obj-id":ze,"data-obj-type":Be,style:Ve,children:[M&&(0,J.jsxs)(rs,{variant:`destructive`,className:`mb-4`,children:[(0,J.jsx)(xi,{className:`h-4 w-4`}),(0,J.jsx)(as,{children:M})]}),C.length>0&&(0,J.jsxs)(rs,{variant:`destructive`,className:`mb-4`,"data-testid":`form-spec-vocabulary-error`,children:[(0,J.jsx)(xi,{className:`h-4 w-4`}),(0,J.jsx)(as,{children:`Not rendered — spec form-view vocabulary ({ field: … }) in a standalone form: `+C.map(e=>e.field).join(`, `)+`. Use { name: … }, or an object-bound form with sections.`})]}),e.children?(0,J.jsx)(`div`,{className:e.fieldContainerClass||`space-y-4`,children:Ra(e.children)}):fe&&me?(0,J.jsxs)(J.Fragment,{children:[pe.length>0&&(0,J.jsx)(`div`,{className:Y(Ae,`mb-4`),children:pe.map(Ie)}),me.length>0&&(0,J.jsxs)(Vb,{value:de,onValueChange:I,orientation:Me?`vertical`:`horizontal`,className:Y(`flex w-full`,Me?`gap-4`:`flex-col`),children:[(0,J.jsx)(Hb,{className:Y(`self-start`,Me?Y(`h-auto flex-col`,je===`right`&&`order-last`):je===`bottom`?`order-last mt-4`:`mb-4`),children:me.map(e=>(0,J.jsxs)(Ub,{value:e.key,"data-testid":`form-tab:${e.key}`,"data-error":_e.has(e.key)||void 0,className:Y(Me&&`w-full justify-start`,_e.has(e.key)&&`text-destructive data-[state=active]:text-destructive`),children:[e.label,_e.has(e.key)&&(0,J.jsx)(`span`,{"aria-hidden":`true`,className:`ml-1.5 size-1.5 rounded-full bg-destructive`})]},e.key))}),(0,J.jsx)(`div`,{className:`min-w-0 flex-1`,children:me.map(e=>(0,J.jsxs)(Wb,{value:e.key,forceMount:!0,className:`mt-0 data-[state=inactive]:hidden`,"data-testid":`form-tab-panel:${e.key}`,children:[e.description&&(0,J.jsx)(`p`,{className:`mb-3 text-sm text-muted-foreground`,children:e.description}),(0,J.jsx)(`div`,{className:e.containerClass||Ae,children:e.fields.map(Ie)})]},e.key))})]})]}):ge?(0,J.jsxs)(J.Fragment,{children:[K.length>0&&(0,J.jsx)(`div`,{className:Y(Ae,`mb-4`),children:K.map(Ie)}),(0,J.jsx)(yw,{orientation:e.fieldPanesOrientation===`vertical`?`vertical`:`horizontal`,className:`min-h-[300px] rounded-lg border`,children:ge.map((t,n)=>(0,J.jsxs)(q.Fragment,{children:[n>0&&(0,J.jsx)(xw,{withHandle:e.fieldPanesResizable!==!1,disabled:e.fieldPanesResizable===!1}),(0,J.jsx)(bw,{defaultSize:t.defaultSize,minSize:t.minSize,children:(0,J.jsx)(`div`,{className:Y(`@container p-4`,t.containerClass||Ae),"data-testid":`form-pane:${t.key}`,children:t.fields.map(Ie)})})]},t.key))})]}):(0,J.jsx)(`div`,{className:Ae,children:w.map(Ie)}),e.showActions!==!1&&(0,J.jsxs)(`div`,{className:Y(`flex flex-col sm:flex-row gap-2 ${m===`horizontal`?`sm:justify-end`:`sm:justify-start`} mt-6`,e.mobileStickyActions&&`sticky bottom-0 z-10 -mx-4 px-4 py-3 bg-background/95 supports-[backdrop-filter]:bg-background/80 backdrop-blur border-t md:static md:mx-0 md:px-0 md:py-0 md:bg-transparent md:border-0 md:backdrop-blur-none`),"data-testid":e.mobileStickyActions?`form-mobile-sticky-actions`:void 0,children:[f&&(0,J.jsx)(X,{type:`button`,variant:`outline`,onClick:Oe,disabled:A||S,className:`w-full sm:w-auto`,children:d??a(`common.cancel`)}),p&&(0,J.jsxs)(X,{type:`submit`,disabled:A||S,className:`w-full sm:w-auto`,children:[A&&(0,J.jsx)(Ji,{className:`mr-2 h-4 w-4 animate-spin`}),u??a(`common.submit`)]})]})]})})},{namespace:`ui`,label:`Form`,inputs:[{name:`fields`,type:`array`,description:`Array of field configurations with name, label, type, validation, etc.`},{name:`defaultValues`,type:`object`,description:`Object with default values for form fields`},{name:`submitLabel`,type:`string`},{name:`cancelLabel`,type:`string`},{name:`showCancel`,type:`boolean`},{name:`layout`,type:`enum`,enum:[`vertical`,`horizontal`]},{name:`columns`,type:`number`,description:`For multi-column layouts (1-4)`},{name:`validationMode`,type:`enum`,enum:[`onSubmit`,`onBlur`,`onChange`,`onTouched`,`all`]},{name:`resetOnSubmit`,type:`boolean`},{name:`disabled`,type:`boolean`},{name:`className`,type:`string`},{name:`fieldContainerClass`,type:`string`},{name:`children`,type:`slot`,description:`Authored form body, rendered in place of the generated field list`}],defaultProps:{submitLabel:`Submit`,cancelLabel:`Cancel`,showCancel:!1,layout:`vertical`,columns:1,validationMode:`onSubmit`,resetOnSubmit:!1,disabled:!1,fields:[{name:`name`,label:`Name`,type:`input`,required:!0,placeholder:`Enter your name`},{name:`email`,label:`Email`,type:`input`,inputType:`email`,required:!0,placeholder:`Enter your email`}]}});var cT=new Set([`date`,`datetime-local`,`time`,`month`,`week`]),lT={email:`email`,password:`password`,secret:`password`,"ui:password":`password`},uT=new Set([`password`,`secret`]),dT=new Set;function fT(e,t){let n=`${e}::${t}`;dT.has(n)||(dT.add(n),console.error(`[object-ui] form field '${t}': widget '${e}' is NOT registered, so this form has no widget for a SECRET value. The field renders a refusal instead of an input — the default input branch would render it as \`type="text"\` and put the secret on screen in clear text (objectui#5322). Register the field widgets — \`registerAllFields()\` from \`@object-ui/fields\` — so '${e}' resolves. In a hand-authored standalone form, write the built-in spelling \`{ type: 'password' }\` instead, which renders the native masked input on this branch.`))}function pT({widgetType:e,fieldName:t,className:n,...r}){return q.useEffect(()=>{fT(e,t)},[e,t]),(0,J.jsx)(`div`,{role:`alert`,"data-testid":`field-missing-secret-widget`,"data-missing-field-widget":e,className:Y(`rounded-md border border-destructive/50 bg-destructive/10 px-3 py-2 text-sm text-destructive`,n),...r,children:`This field was not rendered: its widget \`${e}\` is not registered. Register the field widgets (\`registerAllFields()\` from \`@object-ui/fields\`). A secret is never rendered in a plain text box.`})}function mT(e){if(e&&cT.has(e))return e=>{let t=e.currentTarget;if(!(t.disabled||t.readOnly))try{t.showPicker?.()}catch{}}}function hT({emptyHint:e,className:t,...n}){let{t:r}=Rw();return(0,J.jsx)(`div`,{className:Y(`text-sm text-muted-foreground`,t),...n,children:e||r(`fields.options.empty`)})}var gT=q.forwardRef(function({options:e,placeholder:t,value:n,onValueChange:r,disabled:i,name:a,className:o,...s},c){return(0,J.jsxs)(vy,{name:a,value:xS(n),onValueChange:t=>r?.(SS(e,t)),disabled:i,children:[(0,J.jsx)(by,{ref:c,...s,className:Y(`min-h-[44px] sm:min-h-0`,o),children:(0,J.jsx)(yy,{placeholder:t})}),(0,J.jsx)(Cy,{children:e.map(e=>(0,J.jsx)(Ty,{value:String(e.value),children:e.label},String(e.value)))})]})});function _T(e,t){let n=!Gw.has(e)&&!e.includes(`:`)?K.get(`field:${e}`):void 0,r=Gw.has(e)?void 0:n||(e.startsWith(`field:`)?K.get(e):void 0);if(r)return(0,J.jsx)(r,{...aT(e,t)});let{inputType:i,options:a=[],placeholder:o,readonly:s,emptyHint:c,...l}=t,u=Xw(l),d=s&&`bg-muted/40 cursor-default focus-visible:ring-0`;switch(e){case`input`:{let e=l.maxLength;if(i===`file`){let{value:e,...t}=u;return(0,J.jsx)(Pv,{type:`file`,placeholder:o,className:`min-h-[44px] sm:min-h-0`,...t})}return(0,J.jsx)(Pv,{type:i||`text`,placeholder:o,className:Y(`min-h-[44px] sm:min-h-0`,d),...u,maxLength:e,onClick:e=>{mT(i)?.(e),u.onClick?.(e)},readOnly:s,value:u.value??``})}case`textarea`:{let{mobile_fullscreen:e,label:t,error:n}=l,r=l.maxLength,i=u;return e?(0,J.jsx)(oT,{placeholder:o,label:t,error:n,className:Y(`min-h-[44px] sm:min-h-0`,d),...i,maxLength:r,readOnly:s,value:i.value??``}):(0,J.jsx)(sT,{placeholder:o,className:Y(`min-h-[44px] sm:min-h-0`,d),...i,maxLength:r,readOnly:s,value:i.value??``})}case`checkbox`:{let{value:e,onChange:t,disabled:n,...r}=u;return(0,J.jsx)(rp,{checked:e,onCheckedChange:t,disabled:n||s,className:`min-h-[44px] min-w-[44px] sm:min-h-0 sm:min-w-0`,...r})}case`switch`:{let{value:e,onChange:t,disabled:n,...r}=u;return(0,J.jsx)(Mb,{checked:e,onCheckedChange:t,disabled:n||s,className:`min-h-[44px] min-w-[44px] sm:min-h-0 sm:min-w-0`,...r})}case`select`:{let{value:e,onChange:t,disabled:n,...r}=u;return!a||a.length===0?(0,J.jsx)(hT,{emptyHint:c}):(0,J.jsx)(gT,{...r,options:a,placeholder:o,value:e,onValueChange:t,disabled:n||s})}default:{let t=$w(e);if(e.startsWith(`field:`)&&uT.has(t))return(0,J.jsx)(pT,{widgetType:e,fieldName:String(l.name??``)});let n=l.maxLength;return(0,J.jsx)(Pv,{type:i||lT[t]||`text`,placeholder:o,className:Y(d),...u,maxLength:n,onClick:e=>{mT(i)?.(e),u.onClick?.(e)},readOnly:s})}}}var vT=[...F,`name`,`disabled`];function yT(e){return V(e,vT)}var bT=(0,q.forwardRef)(({schema:e,disabled:t,...n},r)=>{let{"data-obj-id":i,"data-obj-type":a,style:o,...s}=n,c=Tx(e.icon),l=e.loading||n.loading,u=t||l;return(0,J.jsxs)(X,{ref:r,type:e.buttonType||`button`,variant:e.variant,size:e.size,className:e.className,disabled:u,...yT(s),"data-obj-id":i,"data-obj-type":a,style:o,children:[l&&(0,J.jsx)(Ji,{className:`mr-2 h-4 w-4 animate-spin`}),!l&&c&&e.iconPosition!==`right`&&(0,J.jsx)(c,{className:`mr-2 h-4 w-4`}),e.label||Ra(e.children),!l&&c&&e.iconPosition===`right`&&(0,J.jsx)(c,{className:`ml-2 h-4 w-4`})]})});bT.displayName=`ButtonRenderer`,K.register(`button`,bT,{namespace:`ui`,label:`Button`,inputs:[{name:`label`,type:`string`},{name:`variant`,type:`enum`,enum:[`default`,`secondary`,`destructive`,`outline`,`ghost`,`link`]},{name:`size`,type:`enum`,enum:[`default`,`sm`,`lg`,`icon`]},{name:`className`,type:`string`},{name:`children`,type:`slot`,description:"Rich label content, rendered when `label` is not set"}],defaultProps:{label:`Button`,variant:`default`,size:`default`}}),K.register(`label`,({schema:e,className:t,...n})=>{let{"data-obj-id":r,"data-obj-type":i,style:a,...o}=n;return(0,J.jsx)(Y_,{className:t,...o,"data-obj-id":r,"data-obj-type":i,style:a,children:e.text||e.label})},{namespace:`ui`,label:`Label`,inputs:[{name:`text`,type:`string`,required:!0},{name:`className`,type:`string`}],defaultProps:{text:`Label Text`}});var xT=({schema:e,className:t,onChange:n,value:r,disabled:i,...a})=>{let o=e=>{n&&n(e.target.value)},{"data-obj-id":s,"data-obj-type":c,style:l,...u}=a;return(0,J.jsxs)(`div`,{className:Y(`grid w-full items-center gap-1.5`,e.wrapperClass),"data-obj-id":s,"data-obj-type":c,style:l,children:[e.label&&(0,J.jsxs)(Y_,{htmlFor:e.id,className:Y(e.required&&`text-destructive`),children:[e.label,e.required&&(0,J.jsx)(`span`,{className:`ml-0.5 text-destructive`,"data-required-marker":`true`,"aria-hidden":`true`,children:`*`})]}),(0,J.jsx)(Pv,{type:e.inputType||`text`,id:e.id,name:e.name,placeholder:e.placeholder,className:t,required:e.required,disabled:i,readOnly:e.readOnly,value:r??e.value??``,defaultValue:r===void 0?e.defaultValue:void 0,onChange:o,min:e.min,max:e.max,step:e.step,maxLength:e.maxLength,pattern:e.pattern,...yT(u)}),e.description&&(0,J.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:e.description}),e.error&&(0,J.jsx)(`p`,{className:`text-sm font-medium text-destructive`,children:e.error})]})};K.register(`input`,xT,{namespace:`ui`,label:`Input Field`,inputs:[{name:`label`,type:`string`},{name:`name`,type:`string`},{name:`placeholder`,type:`string`},{name:`inputType`,type:`enum`,enum:[`text`,`email`,`password`,`number`,`tel`,`url`,`date`,`time`,`datetime-local`]},{name:`required`,type:`boolean`},{name:`disabled`,type:`boolean`},{name:`description`,type:`string`}],defaultProps:{inputType:`text`}}),K.register(`email`,e=>(0,J.jsx)(xT,{...e,schema:{...e.schema,inputType:`email`}}),{namespace:`ui`,label:`Email Input`,icon:`mail`,inputs:[{name:`label`,type:`string`},{name:`name`,type:`string`},{name:`placeholder`,type:`string`},{name:`required`,type:`boolean`},{name:`disabled`,type:`boolean`},{name:`description`,type:`string`}]}),K.register(`password`,e=>(0,J.jsx)(xT,{...e,schema:{...e.schema,inputType:`password`}}),{namespace:`ui`,label:`Password Input`,icon:`lock`,inputs:[{name:`label`,type:`string`},{name:`name`,type:`string`},{name:`placeholder`,type:`string`},{name:`required`,type:`boolean`},{name:`disabled`,type:`boolean`},{name:`description`,type:`string`}]}),K.register(`textarea`,({schema:e,className:t,onChange:n,value:r,disabled:i,...a})=>{let o=e=>{n&&n(e.target.value)},{"data-obj-id":s,"data-obj-type":c,style:l,...u}=a;return(0,J.jsxs)(`div`,{className:Y(`grid w-full gap-1.5`,e.wrapperClass),"data-obj-id":s,"data-obj-type":c,style:l,children:[e.label&&(0,J.jsxs)(Y_,{htmlFor:e.id,className:Y(e.required&&`text-destructive`),children:[e.label,e.required&&(0,J.jsx)(`span`,{className:`ml-0.5 text-destructive`,"data-required-marker":`true`,"aria-hidden":`true`,children:`*`})]}),(0,J.jsx)(Gb,{id:e.id,name:e.name,placeholder:e.placeholder,className:t,disabled:i,readOnly:e.readOnly,required:e.required,rows:e.rows,value:r??e.value??``,defaultValue:r===void 0?e.defaultValue:void 0,onChange:o,...yT(u)})]})},{namespace:`ui`,label:`Textarea`,inputs:[{name:`label`,type:`string`},{name:`placeholder`,type:`string`},{name:`rows`,type:`number`},{name:`required`,type:`boolean`},{name:`disabled`,type:`boolean`},{name:`id`,type:`string`,required:!0}],defaultProps:{label:`Textarea label`,placeholder:`Enter text here...`,rows:3,id:`textarea-field`}}),K.register(`checkbox`,({schema:e,className:t,onChange:n,value:r,disabled:i,...a})=>{let{"data-obj-id":o,"data-obj-type":s,style:c,...l}=a;return(0,J.jsxs)(`div`,{className:Y(`flex items-center space-x-2`,e.wrapperClass),"data-obj-id":o,"data-obj-type":s,style:c,children:[(0,J.jsx)(rp,{id:e.id,className:t,checked:r??e.checked??!1,defaultChecked:r===void 0?e.defaultChecked:void 0,onCheckedChange:e=>{n&&n(e)},disabled:i,required:e.required,name:e.name,...yT(l)}),(0,J.jsxs)(Y_,{htmlFor:e.id,className:Y(`text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70`,e.required&&`text-destructive`),children:[e.label,e.required&&(0,J.jsx)(`span`,{className:`ml-0.5 text-destructive`,"data-required-marker":`true`,"aria-hidden":`true`,children:`*`})]})]})},{namespace:`ui`,label:`Checkbox`,inputs:[{name:`label`,type:`string`,required:!0},{name:`id`,type:`string`,required:!0},{name:`checked`,type:`boolean`},{name:`required`,type:`boolean`},{name:`disabled`,type:`boolean`}],defaultProps:{label:`Checkbox label`,id:`checkbox-field`}}),K.register(`switch`,({schema:e,className:t,...n})=>{let{"data-obj-id":r,"data-obj-type":i,style:a,...o}=n;return(0,J.jsxs)(`div`,{className:`flex items-center space-x-2 ${e.wrapperClass||``}`,"data-obj-id":r,"data-obj-type":i,style:a,children:[(0,J.jsx)(Mb,{id:e.id,className:t,...yT(o)}),(0,J.jsx)(Y_,{htmlFor:e.id,children:e.label})]})},{namespace:`ui`,label:`Switch`,inputs:[{name:`label`,type:`string`,required:!0},{name:`id`,type:`string`,required:!0},{name:`checked`,type:`boolean`}],defaultProps:{label:`Switch label`,id:`switch-field`}}),K.register(`select`,({schema:e,className:t,onChange:n,value:r,disabled:i,...a})=>{let{"data-obj-id":o,"data-obj-type":s,style:c,...l}=a;return(0,J.jsxs)(`div`,{className:Y(`grid w-full items-center gap-1.5`,e.wrapperClass),"data-obj-id":o,"data-obj-type":s,style:c,children:[e.label&&(0,J.jsxs)(Y_,{htmlFor:e.id,className:Y(e.required&&`text-destructive`),children:[e.label,e.required&&(0,J.jsx)(`span`,{className:`ml-0.5 text-destructive`,"data-required-marker":`true`,"aria-hidden":`true`,children:`*`})]}),(0,J.jsxs)(vy,{defaultValue:r===void 0?xS(e.defaultValue):void 0,value:xS(r??e.value),onValueChange:t=>{n&&n(SS(e.options,t))},disabled:i,required:e.required,name:e.name,...l,children:[(0,J.jsx)(by,{id:e.id,className:t,children:(0,J.jsx)(yy,{placeholder:e.placeholder})}),(0,J.jsx)(Cy,{children:e.options?.map(e=>(0,J.jsx)(Ty,{value:String(e.value),disabled:e.disabled,children:e.label},String(e.value)))})]})]})},{namespace:`ui`,label:`Select`,inputs:[{name:`label`,type:`string`},{name:`placeholder`,type:`string`},{name:`defaultValue`,type:`string`},{name:`required`,type:`boolean`},{name:`disabled`,type:`boolean`},{name:`options`,type:`array`,description:`Array of {label, value} objects`}],defaultProps:{label:`Select an option`,placeholder:`Choose...`,options:[{label:`Option 1`,value:`option1`},{label:`Option 2`,value:`option2`},{label:`Option 3`,value:`option3`}]}});var ST=`vertical`,CT={horizontal:`flex flex-row flex-wrap items-center gap-4`,vertical:void 0};K.register(`radio-group`,({schema:e,className:t,...n})=>{let{"data-obj-id":r,"data-obj-type":i,style:a,...o}=n,s=e.orientation??ST;return(0,J.jsx)(my,{defaultValue:xS(e.defaultValue),orientation:s,className:Y(CT[s],t),...yT(o),"data-obj-id":r,"data-obj-type":i,style:a,children:e.options?.map(t=>(0,J.jsxs)(`div`,{className:`flex items-center space-x-2`,children:[(0,J.jsx)(hy,{value:String(t.value),id:`${e.id}-${String(t.value)}`}),(0,J.jsx)(Y_,{htmlFor:`${e.id}-${String(t.value)}`,children:t.label})]},String(t.value)))})},{namespace:`ui`,label:`Radio Group`,inputs:[{name:`defaultValue`,type:`string`},{name:`id`,type:`string`,required:!0},{name:`options`,type:`array`,description:`Array of {label, value} objects`},{name:`orientation`,type:`enum`,enum:[`horizontal`,`vertical`]},{name:`className`,type:`string`}],defaultProps:{id:`radio-group`,options:[{label:`Option 1`,value:`option1`},{label:`Option 2`,value:`option2`},{label:`Option 3`,value:`option3`}]}}),K.register(`slider`,({schema:e,className:t,...n})=>{let{"data-obj-id":r,"data-obj-type":i,style:a,...o}=n,s=Array.isArray(e.defaultValue)?e.defaultValue:e.defaultValue===void 0?void 0:[e.defaultValue];return(0,J.jsx)(Eb,{defaultValue:s,max:e.max,min:e.min,step:e.step,className:t,...yT(o),"data-obj-id":r,"data-obj-type":i,style:a})},{namespace:`ui`,label:`Slider`,inputs:[{name:`defaultValue`,type:`array`},{name:`max`,type:`number`},{name:`min`,type:`number`},{name:`step`,type:`number`},{name:`className`,type:`string`}],defaultProps:{defaultValue:[50],max:100,min:0,step:1,className:`w-full`}}),K.register(`toggle`,({schema:e,...t})=>{let{style:n,...r}=t;return(0,J.jsx)(qb,{variant:e.variant,size:e.size,pressed:e.pressed,"aria-label":pt(e.ariaLabel),...yT(r),style:n,children:e.label||Ra(e.children)})},{namespace:`ui`,label:`Toggle`,inputs:[{name:`label`,type:`string`},{name:`pressed`,type:`boolean`},{name:`variant`,type:`enum`,enum:[`default`,`outline`]},{name:`size`,type:`enum`,enum:[`default`,`sm`,`lg`]},{name:`ariaLabel`,type:`string`},{name:`children`,type:`slot`,description:"Rich label content, rendered when `label` is not set"}],defaultProps:{label:`Toggle`,variant:`default`,size:`default`}}),K.register(`input-otp`,({schema:e,className:t,onChange:n,value:r,...i})=>{let{style:a,...o}=i,s=e.maxLength||6,c=Array.from({length:s});return(0,J.jsx)(Av,{maxLength:s,className:t,value:r??e.value,onChange:e=>{n&&n(e)},...yT(o),style:a,children:(0,J.jsx)(jv,{children:c.map((e,t)=>(0,J.jsx)(Mv,{index:t},t))})})},{namespace:`ui`,label:`Input OTP`,inputs:[{name:`maxLength`,type:`number`},{name:`className`,type:`string`}],defaultProps:{maxLength:6}});function wT(e){return typeof e==`string`?S(e):e instanceof Date?e:void 0}function TT(e,t){if(t!=null){if(e===`multiple`)return Array.isArray(t)?t.map(wT).filter(e=>e!==void 0):void 0;if(e===`range`){if(typeof t!=`object`||Array.isArray(t)||t instanceof Date)return;let{from:e,to:n}=t;return{from:wT(e),to:wT(n)}}return wT(t)}}function ET(e){let t=e=>e instanceof Date&&!Number.isNaN(e.getTime());if(Array.isArray(e))return e.find(t);let n=e instanceof Date?e:e?.from;return t(n)?n:void 0}K.register(`calendar`,({schema:e,className:t,...n})=>{let r=e.mode||`single`,i=TT(r,e.value||e.defaultValue);return(0,J.jsx)(Id,{mode:r,selected:i,defaultMonth:ET(i),className:t,...n})},{namespace:`ui`,skipFallback:!0,label:`Calendar`,inputs:[{name:`mode`,type:`enum`,enum:[`single`,`multiple`,`range`]},{name:`className`,type:`string`}],defaultProps:{mode:`single`,className:`rounded-md border`}});function DT(e){return typeof e==`string`&&ce(e)?S(e):e}K.register(`date-picker`,({schema:e,className:t,value:n,onChange:r,...i})=>{let a=Fd(),o=DT(n),s=o,c=e=>{r&&r(e)},{"data-obj-id":l,"data-obj-type":u,style:d,...f}=i;return(0,J.jsxs)(`div`,{className:`grid w-full max-w-sm items-center gap-1.5 ${e.wrapperClass||``}`,"data-obj-id":l,"data-obj-type":u,style:d,children:[e.label&&(0,J.jsx)(Y_,{htmlFor:e.id,children:e.label}),(0,J.jsxs)(uy,{children:[(0,J.jsx)(dy,{asChild:!0,children:(0,J.jsxs)(X,{id:e.id,variant:`outline`,className:Y(`w-full justify-start text-left font-normal`,!n&&`text-muted-foreground`,t),...yT(f),children:[(0,J.jsx)(di,{className:`mr-2 h-4 w-4`}),o?nl(o,e.format||`PPP`,{locale:a}):(0,J.jsx)(`span`,{children:e.placeholder||`Pick a date`})]})}),(0,J.jsx)(fy,{className:`w-auto p-0`,children:(0,J.jsx)(Id,{mode:`single`,defaultMonth:s,selected:s,onSelect:c,autoFocus:!0})})]})]})},{namespace:`ui`,label:`Date Picker`,inputs:[{name:`label`,type:`string`},{name:`placeholder`,type:`string`},{name:`format`,type:`string`,description:`date-fns format string (e.g., "PPP", "yyyy-MM-dd")`},{name:`id`,type:`string`,required:!0}],defaultProps:{label:`Date`,placeholder:`Pick a date`,format:`PPP`,id:`date-picker-field`}}),K.register(`file-upload`,({schema:e,className:t,value:n,onChange:r,...i})=>{let[a,o]=(0,q.useState)(n||[]),[s,c]=(0,q.useState)(!1),[l,u]=(0,q.useState)(0),d=(0,q.useRef)(null);(0,q.useEffect)(()=>{if(s){let e=setInterval(()=>{u(t=>t>=100?(clearInterval(e),c(!1),0):t+5)},50);return()=>clearInterval(e)}},[s]);let f=t=>{let n=Array.from(t.target.files||[]);if(n.length>0){c(!0),u(0);let t=e.multiple?[...a,...n]:n;setTimeout(()=>{o(t),r&&r(t)},1e3)}},p=e=>{let t=a.filter((t,n)=>n!==e);o(t),r&&r(t)},m=()=>{d.current?.click()},{"data-obj-id":h,"data-obj-type":g,style:_,...v}=i;return(0,J.jsxs)(`div`,{className:`grid w-full max-w-sm items-center gap-2 ${e.wrapperClass||``}`,"data-obj-id":h,"data-obj-type":g,style:_,children:[e.label&&(0,J.jsx)(Y_,{htmlFor:e.id,children:e.label}),(0,J.jsxs)(`div`,{className:Y(`relative flex flex-col gap-3 group/upload`,t),children:[(0,J.jsx)(`input`,{ref:d,type:`file`,id:e.id,className:`hidden`,accept:e.accept,multiple:e.multiple,onChange:f,...yT(v)}),(0,J.jsxs)(`div`,{onClick:m,className:Y(`relative overflow-hidden cursor-pointer rounded-lg border-2 border-dashed transition-all duration-300 min-h-[120px] flex flex-col items-center justify-center p-4 sm:p-6 gap-3`,s?`border-cyan-400 bg-cyan-950/30`:`border-slate-700 bg-slate-900/50 hover:bg-slate-900 hover:border-cyan-500/50 hover:shadow-[0_0_20px_-5px_rgba(6,182,212,0.3)]`),children:[(0,J.jsx)(`div`,{className:`absolute inset-0 bg-[url('https://grainy-gradients.vercel.app/noise.svg')] opacity-5 pointer-events-none`}),(0,J.jsx)(`div`,{className:`absolute inset-0 bg-[linear-gradient(to_right,#80808012_1px,transparent_1px),linear-gradient(to_bottom,#80808012_1px,transparent_1px)] bg-[size:14px_24px] pointer-events-none`}),(0,J.jsx)(`div`,{className:Y(`relative z-10 p-3 rounded-full bg-slate-800 border border-slate-700 transition-all duration-500`,s?`scale-110 shadow-[0_0_30px_cyan] border-cyan-400 animate-bounce`:`group-hover/upload:scale-110 group-hover/upload:shadow-lg group-hover/upload:border-cyan-500`),children:s?(0,J.jsx)(aa,{className:`w-8 h-8 text-cyan-300 animate-pulse`}):(0,J.jsx)(Ca,{className:`w-6 h-6 text-slate-400 group-hover/upload:text-cyan-400`})}),(0,J.jsx)(`div`,{className:`relative z-10 text-center`,children:(0,J.jsx)(`p`,{className:Y(`text-xs font-mono uppercase tracking-widest transition-colors`,s?`text-cyan-300`:`text-slate-500 group-hover/upload:text-cyan-200`),children:s?`INITIATING LAUNCH SEQUENCE...`:e.buttonText||`DROP PAYLOAD OR CLICK TO UPLOAD`})}),s&&(0,J.jsx)(`div`,{className:`absolute bottom-0 left-0 h-1 bg-cyan-500 shadow-[0_0_10px_cyan] transition-all duration-75 ease-out`,style:{width:`${l}%`}})]}),a.length>0&&(0,J.jsx)(`div`,{className:`flex flex-col gap-2 mt-1 perspective-1000`,children:a.map((e,t)=>(0,J.jsxs)(`div`,{className:`relative group/file overflow-hidden flex items-center justify-between p-3 border border-border bg-card/80 rounded-sm text-sm transition-all hover:border-primary/30 hover:shadow-lg hover:shadow-primary/10 animate-in slide-in-from-bottom-2 fade-in`,children:[(0,J.jsx)(`div`,{className:`absolute left-0 top-0 bottom-0 w-[2px] bg-primary/50 group-hover/file:bg-primary group-hover/file:shadow-[0_0_8px_hsl(var(--primary))]`}),(0,J.jsxs)(`div`,{className:`flex items-center gap-3 z-10`,children:[(0,J.jsx)(Si,{className:`w-4 h-4 text-emerald-500 rounded-full`}),(0,J.jsx)(`span`,{className:`truncate max-w-[150px] sm:max-w-[200px] md:max-w-[300px] text-muted-foreground group-hover/file:text-foreground font-mono text-xs transition-colors`,children:e.name})]}),(0,J.jsx)(X,{type:`button`,variant:`ghost`,size:`sm`,className:`h-6 w-6 p-0 hover:bg-destructive/10 hover:text-destructive`,onClick:()=>p(t),children:(0,J.jsx)(Ta,{className:`h-3 w-3`})}),(0,J.jsx)(`div`,{className:`absolute inset-0 bg-gradient-to-r from-transparent via-primary/5 to-transparent -translate-x-full group-hover/file:animate-[shimmer_1s_infinite] pointer-events-none`})]},t))})]})]})},{namespace:`ui`,label:`File Upload`,inputs:[{name:`label`,type:`string`},{name:`buttonText`,type:`string`},{name:`accept`,type:`string`,description:`MIME types (e.g., "image/*,application/pdf")`},{name:`multiple`,type:`boolean`},{name:`id`,type:`string`,required:!0}],defaultProps:{label:`Upload files`,buttonText:`Choose files`,multiple:!0,id:`file-upload-field`}});var OT=Et(`flex w-fit items-stretch [&>*]:focus-visible:z-10 [&>*]:focus-visible:relative [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md has-[>[data-slot=button-group]]:gap-2`,{variants:{orientation:{horizontal:`[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none`,vertical:`flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none`}},defaultVariants:{orientation:`horizontal`}});function kT({className:e,orientation:t,...n}){return(0,J.jsx)(`div`,{role:`group`,"data-slot":`button-group`,"data-orientation":t,className:Y(OT({orientation:t}),e),...n})}function AT({options:e,value:t,onValueChange:n,placeholder:r=`Select option...`,searchPlaceholder:i=`Search...`,emptyText:a=`No option found.`,className:o,disabled:s,...c}){let[l,u]=q.useState(!1);return(0,J.jsxs)(uy,{open:l,onOpenChange:u,children:[(0,J.jsx)(dy,{asChild:!0,children:(0,J.jsxs)(X,{type:`button`,...c,variant:`outline`,role:`combobox`,"aria-expanded":l,className:Y(`w-[200px] min-w-0 justify-between`,o),disabled:s,children:[(0,J.jsx)(`span`,{className:`truncate`,children:t?e.find(e=>e.value===t)?.label:r}),(0,J.jsx)(bi,{className:`ml-2 h-4 w-4 shrink-0 opacity-50`})]})}),(0,J.jsx)(fy,{className:`w-[var(--radix-popover-trigger-width)] min-w-[200px] p-0`,children:(0,J.jsxs)(pm,{children:[(0,J.jsx)(hm,{placeholder:i}),(0,J.jsxs)(gm,{children:[(0,J.jsx)(_m,{children:a}),(0,J.jsx)(vm,{children:e.map(e=>(0,J.jsxs)(bm,{value:e.value,disabled:e.disabled,onSelect:e=>{n?.(e===t?``:e),u(!1)},children:[(0,J.jsx)(pi,{className:Y(`mr-2 h-4 w-4`,t===e.value?`opacity-100`:`opacity-0`)}),e.label]},e.value))})]})]})})]})}function jT({label:e,value:t,onClick:n,children:r,className:i}){return(0,J.jsxs)(n?`button`:`div`,{className:Y(`flex items-center justify-between py-1.5 min-h-[32px] w-full text-left`,n&&`cursor-pointer hover:bg-accent/50 rounded-sm -mx-1 px-1`,i),onClick:n,type:n?`button`:void 0,children:[(0,J.jsx)(`span`,{className:`text-xs text-muted-foreground shrink-0 max-w-[45%] truncate`,title:e,children:e}),r||(0,J.jsx)(`span`,{className:`text-xs text-foreground truncate ml-4 text-right max-w-[55%]`,title:t,children:t})]})}var MT=[{value:`equals`,label:`Equals`},{value:`not_equals`,label:`Does not equal`},{value:`contains`,label:`Contains`},{value:`icontains`,label:`Contains (ignore case)`},{value:`not_contains`,label:`Does not contain`},{value:`is_empty`,label:`Is empty`},{value:`is_not_empty`,label:`Is not empty`},{value:`greater_than`,label:`Greater than`},{value:`less_than`,label:`Less than`},{value:`greater_than_or_equal`,label:`Greater than or equal`},{value:`less_than_or_equal`,label:`Less than or equal`},{value:`before`,label:`Before`},{value:`after`,label:`After`},{value:`between`,label:`Between`},{value:`in`,label:`In`},{value:`not_in`,label:`Not in`},{value:`starts_with`,label:`Starts with`},{value:`ends_with`,label:`Ends with`},{value:`is_null`,label:`Is null`},{value:`is_not_null`,label:`Is not null`},{value:`exists`,label:`Is set`},{value:`notExists`,label:`Is not set`}],NT=new Set([`exists`,`notExists`]),PT=MT.map(e=>e.value),FT=new Set(PT);function IT(e){return FT.has(e)}var LT=new Map([[`containsCaseInsensitive`,`icontains`]]);function RT(e){let t=LT.get(e);if(t!==void 0)return t;let n=a(e);return typeof n==`string`?n:e}function zT(e){let t=!1,n=e.conditions.map(e=>{if(!e||typeof e.operator!=`string`)return e;let n=RT(e.operator);return n===e.operator||!IT(n)?e:(t=!0,{...e,operator:n})});return t?{...e,conditions:n}:e}var BT=new Set([`is_empty`,`is_not_empty`,`is_null`,`is_not_null`,`exists`,`notExists`]),VT=new Set(f),HT=new Set(m);function UT(e){let t=RT(e);return VT.has(t)?`list`:HT.has(t)?`pair`:`scalar`}function WT(e,t){switch(UT(t)){case`list`:return Array.isArray(e)?e:xE(e);case`pair`:{let[t=``,n=``]=xE(e);return t===``&&n===``?[]:[t,n]}default:return Array.isArray(e)?e[0]??``:e}}function GT(e,t){let n=RT(e);return t.some(e=>RT(e.value)===n)?e:t[0]?.value??e}function KT(e,t){let n=RT(e);return t.find(e=>RT(e.value)===n)?.value??e}function qT(e){let t=e||`text`;return mE.includes(t)?`number`:t===`boolean`?`boolean`:t===`date`?`date`:t===`datetime`?`datetime`:t===`time`?`time`:`text`}var JT={text:`text`,number:`number`,date:`date`,datetime:`datetime-local`,time:`time`,boolean:`text`},YT=/^(\d{4}-\d{2}-\d{2})T(\d{2}):(\d{2})(?::(\d{2})(?:\.\d{1,3})?)?$/,XT=/^(\d{2}):(\d{2})(?::(\d{2}))?$/;function ZT(e,t,n){return Number(e)<=23&&Number(t)<=59&&(n===void 0||Number(n)<=59)}function QT(e,t){if(e===``)return``;switch(t){case`text`:return typeof e==`string`?e:String(e);case`number`:{if(typeof e==`number`)return Number.isFinite(e)?e:void 0;if(typeof e==`boolean`)return;let t=e.trim();if(t===``)return``;let n=Number(t);return Number.isFinite(n)?n:void 0}case`boolean`:{if(typeof e==`boolean`)return e;if(typeof e==`number`)return;let t=e.trim().toLowerCase();return t===`true`||t!==`false`&&void 0}case`date`:{if(typeof e!=`string`)return;let t=e.trim(),n=YT.exec(t);return n?ce(n[1])&&ZT(n[2],n[3],n[4])?n[1]:void 0:ce(t)?t:void 0}case`datetime`:{if(typeof e!=`string`)return;let t=e.trim(),n=YT.exec(t);return n&&ce(n[1])&&ZT(n[2],n[3],n[4])?t:void 0}case`time`:{if(typeof e!=`string`)return;let t=e.trim(),n=XT.exec(t);return n&&ZT(n[1],n[2],n[3])?t:void 0}}}function $T(e,t,n){let r=qT(t);switch(UT(n)){case`list`:{let t=[];for(let n of xE(e)){let e=QT(n,r);e!==void 0&&e!==``&&t.push(e)}return t}case`pair`:{let[t=``,n=``]=xE(e),i=QT(t,r)??``,a=QT(n,r)??``;return i===``&&a===``?[]:[i,a]}default:return QT(Array.isArray(e)?e[0]??``:e,r)??``}}function eE(e){return(e?.options??[]).map(e=>String(e.value))}function tE(e){let t=e?.options;return Array.isArray(t)&&t.length>0}function nE(e,t){if(!e?.options)return!1;let n=e.type||``;switch(UT(t)){case`list`:return!0;case`pair`:return!1;default:return gE.includes(n)||_E.includes(n)}}function rE(e,t,n){if(!tE(t)||!nE(t,n))return e;let r=new Set(eE(t));if(UT(n)===`list`)return xE(e).filter(e=>r.has(String(e)));let i=Array.isArray(e)?e[0]??``:e;return yE(i)?``:r.has(String(i))?i:``}function iE(e,t){if(UT(e)===`pair`){let e=xE(t??``);return e.length===2&&!yE(e[0])&&!yE(e[1])}return!(t==null||t===``||Array.isArray(t)&&t.length===0)}function aE(e){let[t=``,n=``]=xE(e);return[t,n]}var oE=vt({"filterBuilder.where":`Where`,"filterBuilder.and":`AND`,"filterBuilder.or":`OR`,"filterBuilder.clearAll":`Clear all`,"filterBuilder.selectField":`Select field`,"filterBuilder.operator":`Operator`,"filterBuilder.selectValue":`Select value`,"filterBuilder.value":`Value`,"filterBuilder.addFilter":`Add filter`,"filterBuilder.removeCondition":`Remove condition`,"filterBuilder.trueLabel":`True`,"filterBuilder.falseLabel":`False`,"filterBuilder.noResults":`No results`,"filterBuilder.searchField":`Search {{label}}…`,"filterBuilder.enterId":`Enter {{label}} id`,"filterBuilder.addValue":`Type a value, press Enter`,"filterBuilder.removeValue":`Remove {{value}}`,"filterBuilder.rangeStart":`From`,"filterBuilder.rangeEnd":`To`,"filterBuilder.operators.equals":`Equals`,"filterBuilder.operators.not_equals":`Does not equal`,"filterBuilder.operators.contains":`Contains`,"filterBuilder.operators.icontains":`Contains (ignore case)`,"filterBuilder.operators.not_contains":`Does not contain`,"filterBuilder.operators.is_empty":`Is empty`,"filterBuilder.operators.is_not_empty":`Is not empty`,"filterBuilder.operators.greater_than":`Greater than`,"filterBuilder.operators.less_than":`Less than`,"filterBuilder.operators.greater_than_or_equal":`Greater than or equal`,"filterBuilder.operators.less_than_or_equal":`Less than or equal`,"filterBuilder.operators.before":`Before`,"filterBuilder.operators.after":`After`,"filterBuilder.operators.between":`Between`,"filterBuilder.operators.in":`In`,"filterBuilder.operators.not_in":`Not in`,"filterBuilder.operators.starts_with":`Starts with`,"filterBuilder.operators.ends_with":`Ends with`,"filterBuilder.operators.is_null":`Is null`,"filterBuilder.operators.is_not_null":`Is not null`,"filterBuilder.operators.exists":`Is set`,"filterBuilder.operators.notExists":`Is not set`,"validation.required":`{{field}} is required`},`filterBuilder.where`),sE=[`is_null`,`is_not_null`,`exists`,`notExists`],cE=[`equals`,`not_equals`,`contains`,`icontains`,`not_contains`,`starts_with`,`ends_with`,`is_empty`,`is_not_empty`,...sE],lE=[`equals`,`not_equals`,`greater_than`,`less_than`,`greater_than_or_equal`,`less_than_or_equal`,`is_empty`,`is_not_empty`,...sE],uE=[`equals`,`not_equals`],dE=[`equals`,`not_equals`,`before`,`after`,`between`,`is_empty`,`is_not_empty`,...sE],fE=[`equals`,`not_equals`,`in`,`not_in`,`is_empty`,`is_not_empty`,...sE],pE=[`equals`,`not_equals`,`in`,`not_in`,`is_empty`,`is_not_empty`,...sE],mE=[`number`,`currency`,`percent`,`rating`],hE=[`date`,`datetime`,`time`],gE=[`select`,`status`],_E=[`lookup`,`master_detail`,`user`];function vE(e,t=[]){let n=e||`text`,r=v(n);r&&ct(n);let i=r?cE:mE.includes(n)?lE:n===`boolean`?uE:hE.includes(n)?dE:gE.includes(n)?fE:_E.includes(n)?pE:cE,a=new Set(t);return MT.filter(e=>i.includes(e.value)&&(!NT.has(e.value)||a.has(e.value)))}function yE(e){return e==null||e===``}function bE(e){return yE(e)?``:String(e)}function xE(e){return Array.isArray(e)?e:yE(e)?[]:[e]}function SE(e){return!!e&&typeof e==`object`&&Array.isArray(e.conditions)&&(e.logic===`and`||e.logic===`or`)}var CE={id:`root`,logic:`and`,conditions:[]};function wE({fields:e=[],value:t,onChange:n,className:r,showClearAll:i=!0,extraOperators:a}){let{t:o}=oE(),[s,c]=q.useState(SE(t)?zT(t):CE);q.useEffect(()=>{if(!SE(t))return;let e=zT(t);JSON.stringify(e)!==JSON.stringify(s)&&c(e)},[t]);let l=e=>{c(e),n?.(e)},u=()=>{let t={id:crypto.randomUUID(),field:e[0]?.value||``,operator:`equals`,value:``};l({...s,conditions:[...s.conditions,t]})},d=e=>{l({...s,conditions:s.conditions.filter(t=>t.id!==e)})},f=()=>{l({...s,conditions:[]})},p=(e,t)=>{l({...s,conditions:s.conditions.map(n=>n.id===e?{...n,...t}:n)})},m=(e,t)=>{l({...s,conditions:s.conditions.map(n=>n.id===e?{...n,operator:t,value:WT(n.value,t)}:n)})},h=()=>{l({...s,logic:s.logic===`and`?`or`:`and`})},g=t=>vE(e.find(e=>e.value===t)?.type,a),_=(t,n)=>{let r=g(n),i=e.find(e=>e.value===n),a=i?.type;l({...s,conditions:s.conditions.map(e=>{if(e.id!==t)return e;let o=GT(e.operator,r),s=IT(o)?o:e.operator,c=$T(s===e.operator?e.value:WT(e.value,s),a,s);return{...e,field:n,operator:s,value:rE(c,i,s)}})})},y=e=>!BT.has(RT(e)),b=t=>JT[qT(e.find(e=>e.value===t)?.type)],x=t=>{let n=e.find(e=>e.value===t.field),r=UT(t.operator),i=r===`list`,a=v(n?.type);if(a&&ct(n.type),!a&&_E.includes(n?.type||``)&&!tE(n)&&(n?.referenceTo||n?.type===`user`))return(0,J.jsx)(EE,{field:n,value:t.value,multiple:i,onChange:e=>p(t.id,{value:e})});if(n?.options&&i){let e=xE(t.value),r=eE(n),i=[...new Set(e.map(String).filter(e=>!r.includes(e)))];return(0,J.jsxs)(`div`,{className:`max-h-40 overflow-y-auto space-y-0.5 border rounded-md p-2`,children:[i.map(n=>(0,J.jsxs)(`label`,{className:`flex items-center gap-2 text-sm py-1 px-1.5 rounded cursor-pointer bg-primary/5 text-primary`,"data-testid":`filter-value-outside-options-${t.field}`,children:[(0,J.jsx)(rp,{checked:!0,onCheckedChange:()=>p(t.id,{value:e.filter(e=>String(e)!==n)})}),(0,J.jsx)(`span`,{className:`truncate`,children:n})]},`outside-${n}`)),n.options.map(n=>{let r=e.map(String).includes(String(n.value));return(0,J.jsxs)(`label`,{className:Y(`flex items-center gap-2 text-sm py-1 px-1.5 rounded cursor-pointer`,r?`bg-primary/5 text-primary`:`hover:bg-muted`),children:[(0,J.jsx)(rp,{checked:r,onCheckedChange:r=>{let i=r?[...e,n.value]:e.filter(e=>String(e)!==String(n.value));p(t.id,{value:i})}}),(0,J.jsx)(`span`,{className:`truncate`,children:n.label})]},n.value)})]})}if(i)return(0,J.jsx)(TE,{values:xE(t.value),inputType:b(t.field),numeric:mE.includes(n?.type||``),testId:`filter-multi-value-${t.field}`,onChange:e=>p(t.id,{value:e})});if(r===`pair`){let e=aE(t.value),r=b(t.field),i=mE.includes(n?.type||``),a=yE(e[0])===yE(e[1])?null:+!yE(e[0]),s=`filter-range-incomplete-${t.id}`,c=o(a===0?`filterBuilder.rangeStart`:`filterBuilder.rangeEnd`),l=e=>a===e||void 0,u=(n,r)=>{let a=[e[0],e[1]];a[n]=i?QT(r,`number`)??``:r,p(t.id,{value:a[0]===``&&a[1]===``?[]:a})};return(0,J.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,J.jsxs)(`div`,{className:`flex items-center gap-1.5`,"data-testid":`filter-range-${t.field}`,children:[(0,J.jsx)(Pv,{type:r,className:Y(`h-9 text-sm`,a===0&&`border-destructive`),placeholder:o(`filterBuilder.rangeStart`),"aria-label":o(`filterBuilder.rangeStart`),"aria-invalid":l(0),"aria-describedby":a===0?s:void 0,value:bE(e[0]),onChange:e=>u(0,e.target.value)}),(0,J.jsx)(`span`,{className:`text-xs text-muted-foreground shrink-0`,children:`-`}),(0,J.jsx)(Pv,{type:r,className:Y(`h-9 text-sm`,a===1&&`border-destructive`),placeholder:o(`filterBuilder.rangeEnd`),"aria-label":o(`filterBuilder.rangeEnd`),"aria-invalid":l(1),"aria-describedby":a===1?s:void 0,value:bE(e[1]),onChange:e=>u(1,e.target.value)})]}),a!==null&&(0,J.jsx)(`p`,{id:s,className:`text-xs text-destructive`,children:o(`validation.required`,{field:c})})]})}if(n?.options&&(gE.includes(n.type||``)||_E.includes(n.type||``))){let e=bE(t.value),r=e!==``&&!eE(n).includes(e);return(0,J.jsxs)(vy,{value:e,onValueChange:e=>p(t.id,{value:e}),children:[(0,J.jsx)(by,{className:`h-9 text-sm`,children:(0,J.jsx)(yy,{placeholder:o(`filterBuilder.selectValue`)})}),(0,J.jsxs)(Cy,{children:[r&&(0,J.jsx)(Ty,{value:e,"data-testid":`filter-value-outside-options-${t.field}`,children:e}),n.options.map(e=>(0,J.jsx)(Ty,{value:e.value,children:e.label},e.value))]})]})}if(n?.type===`boolean`)return(0,J.jsxs)(vy,{value:bE(t.value),onValueChange:e=>p(t.id,{value:e===`true`}),children:[(0,J.jsx)(by,{className:`h-9 text-sm`,children:(0,J.jsx)(yy,{placeholder:o(`filterBuilder.selectValue`)})}),(0,J.jsxs)(Cy,{children:[(0,J.jsx)(Ty,{value:`true`,children:o(`filterBuilder.trueLabel`)}),(0,J.jsx)(Ty,{value:`false`,children:o(`filterBuilder.falseLabel`)})]})]});let s=b(t.field),c=()=>yE(t.value)?``:s===`date`&&typeof t.value==`string`?t.value.split(`T`)[0]:bE(t.value),l=e=>{let r=e;mE.includes(n?.type||``)?r=QT(e,`number`)??``:hE.includes(n?.type||``)&&(r=e),p(t.id,{value:r})};return(0,J.jsx)(Pv,{type:s,className:`h-9 text-sm`,placeholder:o(`filterBuilder.value`),value:c(),onChange:e=>l(e.target.value)})};return(0,J.jsxs)(`div`,{className:Y(`space-y-3`,r),children:[(0,J.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,J.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,J.jsx)(`span`,{className:`text-sm font-medium`,children:o(`filterBuilder.where`)}),s.conditions.length>1&&(0,J.jsx)(X,{type:`button`,variant:`outline`,size:`sm`,onClick:h,className:`h-7 text-xs`,children:s.logic===`or`?o(`filterBuilder.or`):o(`filterBuilder.and`)})]}),i&&s.conditions.length>0&&(0,J.jsxs)(X,{type:`button`,variant:`ghost`,size:`sm`,onClick:f,className:`h-7 text-xs text-muted-foreground hover:text-destructive`,children:[(0,J.jsx)(va,{className:`h-3 w-3 mr-1`}),o(`filterBuilder.clearAll`)]})]}),(0,J.jsx)(`div`,{className:`space-y-2`,children:s.conditions.map(t=>(0,J.jsxs)(`div`,{className:`flex items-start gap-2`,children:[(0,J.jsxs)(`div`,{className:`flex-1 grid grid-cols-12 gap-2`,children:[(0,J.jsx)(`div`,{className:`col-span-4`,children:(0,J.jsxs)(vy,{value:t.field,onValueChange:e=>_(t.id,e),children:[(0,J.jsx)(by,{className:`h-9 text-sm`,children:(0,J.jsx)(yy,{placeholder:o(`filterBuilder.selectField`)})}),(0,J.jsx)(Cy,{children:e.map(e=>(0,J.jsx)(Ty,{value:e.value,children:e.label},e.value))})]})}),(0,J.jsx)(`div`,{className:`col-span-4`,children:(0,J.jsxs)(vy,{value:KT(t.operator,g(t.field)),onValueChange:e=>{IT(e)&&m(t.id,e)},children:[(0,J.jsx)(by,{className:`h-9 text-sm`,children:(0,J.jsx)(yy,{placeholder:o(`filterBuilder.operator`)})}),(0,J.jsx)(Cy,{children:g(t.field).map(e=>(0,J.jsx)(Ty,{value:e.value,children:o(`filterBuilder.operators.${e.value}`)},e.value))})]})}),y(t.operator)&&(0,J.jsx)(`div`,{className:`col-span-4`,children:x(t)})]}),(0,J.jsxs)(X,{type:`button`,variant:`ghost`,size:`icon`,className:`h-9 w-9 shrink-0`,onClick:()=>d(t.id),children:[(0,J.jsx)(Ta,{className:`h-4 w-4`}),(0,J.jsx)(`span`,{className:`sr-only`,children:o(`filterBuilder.removeCondition`)})]})]},t.id))}),(0,J.jsxs)(X,{type:`button`,variant:`outline`,size:`sm`,onClick:u,className:`h-8`,disabled:e.length===0,children:[(0,J.jsx)(ta,{className:`h-3 w-3`}),o(`filterBuilder.addFilter`)]})]})}wE.displayName=`FilterBuilder`;function TE({values:e,inputType:t,numeric:n,testId:r,onChange:i}){let{t:a}=oE(),[o,s]=q.useState(``),c=t=>{let r=t.trim();if(r===``)return;let a=n?QT(r,`number`):r;a!==void 0&&a!==``&&(s(``),!e.some(e=>String(e)===String(a))&&i([...e,a]))},l=t=>{i(e.filter((e,n)=>n!==t))};return(0,J.jsxs)(`div`,{className:`flex flex-wrap items-center gap-1.5 rounded-md border border-input bg-background p-1.5`,"data-testid":r,children:[e.map((e,t)=>(0,J.jsxs)(ds,{variant:`secondary`,className:`gap-1`,children:[(0,J.jsx)(`span`,{className:`truncate max-w-[12ch]`,children:String(e)}),(0,J.jsx)(`button`,{type:`button`,onClick:()=>l(t),className:`ml-0.5 rounded-full text-muted-foreground hover:text-foreground`,"aria-label":a(`filterBuilder.removeValue`,{value:String(e)}),children:(0,J.jsx)(Ta,{className:`h-3 w-3`})})]},`${String(e)}-${t}`)),(0,J.jsx)(Pv,{type:t,value:o,onChange:e=>s(e.target.value),onKeyDown:t=>{t.key===`Enter`||t.key===`,`?(t.preventDefault(),c(o)):t.key===`Backspace`&&o===``&&e.length>0&&l(e.length-1)},onBlur:()=>c(o),placeholder:e.length===0?a(`filterBuilder.addValue`):``,"aria-label":a(`filterBuilder.addValue`),className:`h-7 flex-1 border-0 bg-transparent p-0 px-1 shadow-none focus-visible:ring-0 min-w-[6ch] text-sm`})]})}TE.displayName=`MultiValueInput`;function EE({field:e,value:t,multiple:n,onChange:r}){let{t:i}=oE(),a=q.useContext(z)?.dataSource??null,o=e.referenceTo||(e.type===`user`?`users`:void 0),s=e.displayField||`name`,c=e.idField||`id`,[l,u]=q.useState(!1),[d,f]=q.useState(``),[p,m]=q.useState([]),[h,g]=q.useState(!1),[_,v]=q.useState(null),[y,b]=q.useState({}),x=q.useRef(null),S=q.useMemo(()=>n?xE(t).map(e=>String(e)):yE(t)?[]:[String(t)],[t,n]),C=a!=null&&typeof a.find==`function`&&!!o,w=q.useCallback(e=>{let t=e?.[c]??e?.id??e?._id,n=e?.[s]??e?.label??e?.name??String(t);return{value:t,label:String(n)}},[s,c]),T=q.useCallback(async e=>{if(C){g(!0),v(null);try{let t={$top:50};e&&e.trim()&&(t.$search=e.trim());let n=await a.find(o,t),r=(n?.data??n??[]).map(w);m(r),r.length>0&&b(e=>{let t={...e};for(let e of r)t[String(e.value)]=e.label;return t})}catch(e){v(e instanceof Error?e.message:String(e)),m([])}finally{g(!1)}}},[a,o,C,w]);q.useEffect(()=>{if(!C||S.length===0)return;let e=S.filter(e=>!(e in y));if(e.length===0)return;let t=!1;return(async()=>{try{let n=await a.find(o,{$top:e.length,$filter:{[c]:{$in:e}}}),r=n?.data??n??[];if(t)return;b(e=>{let t={...e};for(let e of r){let n=w(e);t[String(n.value)]=n.label}return t})}catch{}})(),()=>{t=!0}},[S,C,a,o,c,w,y]),q.useEffect(()=>{l&&C&&p.length===0&&T()},[l]);let E=e=>{f(e),C&&(x.current&&clearTimeout(x.current),x.current=setTimeout(()=>T(e||void 0),300))},D=e=>{if(n){let n=xE(t);r(n.map(String).includes(String(e))?n.filter(t=>String(t)!==String(e)):[...n,e])}else r(e),u(!1)};return C?(0,J.jsxs)(uy,{open:l,onOpenChange:u,children:[(0,J.jsx)(dy,{asChild:!0,children:(0,J.jsxs)(`button`,{type:`button`,className:Y(`inline-flex h-9 w-full items-center justify-between gap-2 rounded-md border border-input bg-background px-3 text-sm`,`hover:bg-accent hover:text-accent-foreground`,`focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-1`),"data-testid":`lookup-picker-${e.value}`,children:[S.length===0?(0,J.jsx)(`span`,{className:`text-muted-foreground truncate`,children:i(`filterBuilder.searchField`,{label:e.label})}):n?(0,J.jsx)(`span`,{className:`truncate`,children:S.length===1?y[S[0]]||S[0]:`${S.length} selected`}):(0,J.jsx)(`span`,{className:`truncate`,children:y[S[0]]||S[0]}),(0,J.jsxs)(`span`,{className:`flex items-center gap-1 shrink-0`,children:[S.length>0&&(0,J.jsx)(Ta,{className:`h-3.5 w-3.5 opacity-60 hover:opacity-100`,onClick:e=>{e.stopPropagation(),r(n?[]:``)}}),(0,J.jsx)(mi,{className:`h-3.5 w-3.5 opacity-60`})]})]})}),(0,J.jsxs)(fy,{align:`start`,className:`w-72 p-0`,children:[(0,J.jsxs)(`div`,{className:`flex items-center border-b px-3`,children:[(0,J.jsx)(la,{className:`h-4 w-4 text-muted-foreground shrink-0`}),(0,J.jsx)(`input`,{autoFocus:!0,value:d,onChange:e=>E(e.target.value),placeholder:i(`filterBuilder.searchField`,{label:e.label}),className:`flex h-9 w-full bg-transparent px-2 py-1 text-sm outline-none placeholder:text-muted-foreground`,"data-testid":`lookup-search-${e.value}`}),h&&(0,J.jsx)(Ji,{className:`h-3.5 w-3.5 animate-spin text-muted-foreground`})]}),(0,J.jsxs)(`div`,{className:`max-h-64 overflow-y-auto p-1`,"data-testid":`lookup-options-${e.value}`,children:[_&&(0,J.jsx)(`div`,{className:`px-3 py-2 text-xs text-destructive`,children:_}),!_&&!h&&p.length===0&&(0,J.jsx)(`div`,{className:`px-3 py-4 text-center text-xs text-muted-foreground`,children:i(`filterBuilder.noResults`)}),p.map(e=>{let t=S.includes(String(e.value));return(0,J.jsxs)(`label`,{className:Y(`flex items-center gap-2 px-2 py-1.5 rounded text-sm cursor-pointer`,t?`bg-primary/5 text-primary`:`hover:bg-muted`),children:[n?(0,J.jsx)(rp,{checked:t,onCheckedChange:()=>D(e.value)}):(0,J.jsx)(`input`,{type:`radio`,checked:t,onChange:()=>D(e.value),className:`rounded-full border-input`}),(0,J.jsx)(`span`,{className:`truncate flex-1`,children:e.label})]},String(e.value))})]})]})]}):n?(0,J.jsx)(TE,{values:xE(t),inputType:`text`,numeric:!1,testId:`lookup-ids-${e.value}`,onChange:r}):(0,J.jsx)(Pv,{className:`h-9 text-sm`,placeholder:i(`filterBuilder.enterId`,{label:e.label}),value:S[0]??``,onChange:e=>r(e.target.value)})}var DE=vt({"sortBuilder.sortBy":`Sort by`,"sortBuilder.thenBy":`Then by`,"sortBuilder.selectField":`Select field`,"sortBuilder.ascending":`A → Z`,"sortBuilder.descending":`Z → A`,"sortBuilder.addSort":`Add sort`,"sortBuilder.removeSort":`Remove sort`},`sortBuilder.sortBy`);function OE({fields:e=[],value:t=[],onChange:n,className:r}){let{t:i}=DE(),a=q.useCallback(e=>(e||[]).map((e,t)=>({id:e?.id??(typeof crypto<`u`&&crypto.randomUUID?crypto.randomUUID():`sort-${t}-${e?.field??``}`),field:e?.field??``,order:e?.order??e?.sortOrder??`asc`})),[]),[o,s]=q.useState(()=>a(t));q.useEffect(()=>{let e=a(t),n=e=>e.map(({id:e,...t})=>t);JSON.stringify(n(e))!==JSON.stringify(n(o))&&s(e)},[t,o,a]);let c=e=>{s(e),n?.(e)},l=()=>{let t={id:crypto.randomUUID(),field:e[0]?.value||``,order:`asc`};c([...o,t])},u=(e,t)=>{c(o.map(n=>n.id===e?{...n,...t}:n))},d=e=>{c(o.filter(t=>t.id!==e))};return(0,J.jsxs)(`div`,{className:Y(`space-y-3`,r),children:[(0,J.jsx)(`div`,{className:`space-y-2`,children:o.map((t,n)=>(0,J.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,J.jsx)(`span`,{className:`text-sm font-medium w-16 text-muted-foreground`,children:i(n===0?`sortBuilder.sortBy`:`sortBuilder.thenBy`)}),(0,J.jsx)(`div`,{className:`flex-1`,children:(0,J.jsxs)(vy,{value:t.field,onValueChange:e=>u(t.id,{field:e}),children:[(0,J.jsx)(by,{className:`h-9`,children:(0,J.jsx)(yy,{placeholder:i(`sortBuilder.selectField`)})}),(0,J.jsx)(Cy,{children:e.map(e=>(0,J.jsx)(Ty,{value:e.value,children:e.label},e.value))})]})}),(0,J.jsx)(`div`,{className:`w-28`,children:(0,J.jsxs)(vy,{value:t.order,onValueChange:e=>u(t.id,{order:e}),children:[(0,J.jsx)(by,{className:`h-9`,children:(0,J.jsx)(yy,{})}),(0,J.jsxs)(Cy,{children:[(0,J.jsx)(Ty,{value:`asc`,children:i(`sortBuilder.ascending`)}),(0,J.jsx)(Ty,{value:`desc`,children:i(`sortBuilder.descending`)})]})]})}),(0,J.jsx)(X,{variant:`ghost`,size:`icon`,className:`h-9 w-9 shrink-0`,onClick:()=>d(t.id),children:(0,J.jsx)(Ta,{className:`h-4 w-4`})})]},t.id))}),(0,J.jsxs)(X,{variant:`outline`,size:`sm`,onClick:l,className:`h-8`,disabled:e.length===0,children:[(0,J.jsx)(ta,{className:`h-3 w-3 mr-2`}),i(`sortBuilder.addSort`)]})]})}var kE=vt({"common.select":`Select…`},`common.select`);function AE({field:e,value:t,onChange:n,draft:r,objectDef:i}){let{t:a}=kE();if(e.visibleWhen&&!e.visibleWhen(r))return null;let o=e.disabled||(e.disabledWhen?e.disabledWhen(r):!1),s=t??e.defaultValue,c=null;switch(e.type){case`input`:c=(0,J.jsx)(jT,{label:e.label,children:(0,J.jsx)(Pv,{"data-testid":`config-field-${e.key}`,className:`h-7 w-32 text-xs`,value:s??``,placeholder:e.placeholder,disabled:o,onChange:e=>n(e.target.value)})});break;case`textarea`:c=(0,J.jsx)(jT,{label:e.label,className:`flex-col items-stretch gap-1`,children:(0,J.jsx)(Gb,{"data-testid":`config-field-${e.key}`,className:`min-h-[60px] w-full text-xs`,value:s??``,placeholder:e.placeholder,disabled:o,rows:3,onChange:e=>n(e.target.value)})});break;case`switch`:c=(0,J.jsx)(jT,{label:e.label,children:(0,J.jsx)(Mb,{"data-testid":`config-field-${e.key}`,checked:!!s,disabled:o,onCheckedChange:e=>n(e),className:`scale-75`})});break;case`checkbox`:c=(0,J.jsx)(jT,{label:e.label,children:(0,J.jsx)(rp,{"data-testid":`config-field-${e.key}`,checked:!!s,disabled:o,onCheckedChange:e=>n(e)})});break;case`select`:c=(0,J.jsx)(jT,{label:e.label,children:(0,J.jsxs)(vy,{value:String(s??``),onValueChange:e=>n(e),disabled:o,children:[(0,J.jsx)(by,{"data-testid":`config-field-${e.key}`,className:`h-7 w-32 text-xs`,children:(0,J.jsx)(yy,{placeholder:e.placeholder??a(`common.select`)})}),(0,J.jsx)(Cy,{children:(e.options??[]).map(e=>(0,J.jsx)(Ty,{value:e.value,children:e.label},e.value))})]})});break;case`slider`:c=(0,J.jsx)(jT,{label:e.label,children:(0,J.jsxs)(`div`,{className:`flex items-center gap-2 w-32`,children:[(0,J.jsx)(Eb,{"data-testid":`config-field-${e.key}`,value:[Number(s??e.min??0)],min:e.min??0,max:e.max??100,step:e.step??1,disabled:o,onValueChange:e=>n(e[0]),"aria-label":e.label}),(0,J.jsx)(`span`,{className:`text-xs text-muted-foreground w-6 text-right`,children:s??e.min??0})]})});break;case`color`:c=(0,J.jsx)(jT,{label:e.label,children:(0,J.jsx)(`input`,{"data-testid":`config-field-${e.key}`,type:`color`,className:`h-7 w-10 rounded border cursor-pointer`,value:s??`#000000`,disabled:o,onChange:e=>n(e.target.value)})});break;case`icon-group`:c=(0,J.jsx)(jT,{label:e.label,children:(0,J.jsx)(`div`,{className:`flex items-center gap-0.5`,"data-testid":`config-field-${e.key}`,children:(e.options??[]).map(e=>(0,J.jsx)(X,{type:`button`,size:`sm`,variant:s===e.value?`default`:`ghost`,className:Y(`h-7 w-7 p-0`,s===e.value&&`ring-1 ring-primary`),disabled:o,onClick:()=>n(e.value),title:e.label,children:e.icon??(0,J.jsx)(`span`,{className:`text-[10px]`,children:e.label.charAt(0)})},e.value))})});break;case`field-picker`:c=(0,J.jsx)(jT,{label:e.label,value:s??e.placeholder??`Select field…`,onClick:o?void 0:()=>{}});break;case`filter`:c=(0,J.jsxs)(`div`,{"data-testid":`config-field-${e.key}`,children:[(0,J.jsx)(jT,{label:e.label}),(0,J.jsx)(wE,{fields:e.fields,value:s,onChange:n,className:`px-1 pb-2`})]});break;case`sort`:c=(0,J.jsxs)(`div`,{"data-testid":`config-field-${e.key}`,children:[(0,J.jsx)(jT,{label:e.label}),(0,J.jsx)(OE,{fields:e.fields,value:s,onChange:n,className:`px-1 pb-2`})]});break;case`custom`:e.render&&(c=(0,J.jsx)(J.Fragment,{children:e.render(s,n,r)}));break;case`summary`:c=(0,J.jsx)(jT,{label:e.label,onClick:e.onSummaryClick,children:(0,J.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,J.jsx)(`span`,{className:`text-xs text-foreground truncate max-w-[120px]`,"data-testid":`config-field-${e.key}-text`,children:e.summaryText??s??``}),e.onSummaryClick&&(0,J.jsx)(ua,{className:`h-3.5 w-3.5 text-muted-foreground shrink-0`,"aria-hidden":`true`,"data-testid":`config-field-${e.key}-gear`})]})})}return c?e.helpText?(0,J.jsxs)(`div`,{children:[c,(0,J.jsx)(`p`,{className:`text-[10px] text-muted-foreground mt-0.5 mb-1`,children:e.helpText})]}):(0,J.jsx)(J.Fragment,{children:c}):null}function jE({title:e,icon:t,collapsible:n,collapsed:r,onToggle:i,testId:a,className:o}){let s=(0,J.jsxs)(`h3`,{className:`text-xs font-semibold text-foreground uppercase tracking-wider flex items-center gap-1.5`,children:[t&&(0,J.jsx)(`span`,{className:`text-muted-foreground shrink-0`,"aria-hidden":`true`,children:t}),e]});return n?(0,J.jsxs)(`button`,{"data-testid":a,className:Y(`flex items-center justify-between pt-4 pb-1.5 first:pt-0 w-full text-left`,o),onClick:i,type:`button`,"aria-expanded":!r,children:[s,r?(0,J.jsx)(gi,{className:`h-3 w-3 text-muted-foreground`}):(0,J.jsx)(mi,{className:`h-3 w-3 text-muted-foreground`})]}):(0,J.jsx)(`div`,{className:Y(`pt-4 pb-1.5 first:pt-0`,o),"data-testid":a,children:s})}var ME=vt({"common.save":`Save`,"common.discard":`Discard`},`common.save`);function NE({open:e,onClose:t,schema:n,draft:r,isDirty:i,onFieldChange:a,onSave:o,onDiscard:s,headerExtra:c,objectDef:l,className:u,style:d,saveLabel:f,discardLabel:p,panelRef:m,role:h,ariaLabel:g,tabIndex:_,testId:v,closeTitle:y,footerTestId:b,saveTestId:x,discardTestId:S,expandedSections:C,onUndo:w,onRedo:T,canUndo:E,canRedo:D,undoLabel:O=`Undo`,redoLabel:k=`Redo`}){let[A,j]=(0,q.useState)({}),{t:M}=ME();if(!e)return null;let N=(e,t)=>{j(n=>({...n,[e]:!(n[e]??t??!1)}))},ee=(e,t)=>C&&C.includes(e)?!1:A[e]??t??!1;return(0,J.jsxs)(`div`,{ref:m,"data-testid":v??`config-panel`,role:h,"aria-label":g,tabIndex:_,style:d,className:Y(`absolute inset-y-0 right-0 w-full sm:w-[var(--config-panel-width,280px)] sm:relative border-l bg-background flex flex-col shrink-0 z-20`,u),children:[(0,J.jsxs)(`div`,{className:`px-4 py-3 border-b flex items-center justify-between shrink-0`,children:[(0,J.jsx)(`nav`,{"aria-label":`breadcrumb`,children:(0,J.jsx)(`ol`,{className:`flex items-center gap-1 text-xs text-muted-foreground`,children:n.breadcrumb.map((e,t)=>(0,J.jsxs)(q.Fragment,{children:[t>0&&(0,J.jsx)(gi,{className:`h-3 w-3`}),(0,J.jsx)(`li`,{className:Y(t===n.breadcrumb.length-1&&`text-foreground font-medium`),children:e})]},t))})}),(0,J.jsxs)(`div`,{className:`flex items-center gap-1`,children:[w&&(0,J.jsx)(X,{size:`sm`,variant:`ghost`,onClick:w,disabled:!E,className:`h-7 w-7 p-0`,"data-testid":`config-panel-undo`,title:O,children:(0,J.jsx)(Sa,{className:`h-3.5 w-3.5`})}),T&&(0,J.jsx)(X,{size:`sm`,variant:`ghost`,onClick:T,disabled:!D,className:`h-7 w-7 p-0`,"data-testid":`config-panel-redo`,title:k,children:(0,J.jsx)(ra,{className:`h-3.5 w-3.5`})}),c,(0,J.jsx)(X,{size:`sm`,variant:`ghost`,onClick:t,className:`h-7 w-7 p-0`,"data-testid":`config-panel-close`,title:y,children:(0,J.jsx)(Ta,{className:`h-3.5 w-3.5`})})]})]}),(0,J.jsx)(`div`,{className:`flex-1 overflow-auto px-4 pb-4`,children:n.sections.map((e,t)=>{if(e.visibleWhen&&!e.visibleWhen(r))return null;let n=ee(e.key,e.defaultCollapsed);return(0,J.jsxs)(`div`,{"data-testid":`config-section-${e.key}`,children:[t>0&&(0,J.jsx)(Dy,{className:`my-3`}),(0,J.jsx)(jE,{title:e.title,icon:e.icon,collapsible:e.collapsible,collapsed:n,onToggle:()=>N(e.key,e.defaultCollapsed),testId:`section-header-${e.key}`}),e.hint&&(0,J.jsx)(`p`,{className:`text-[10px] text-muted-foreground mb-1`,children:e.hint}),!n&&(0,J.jsxs)(`div`,{className:`space-y-1`,children:[e.fields.map(e=>(0,J.jsx)(AE,{field:e,value:r[e.key],onChange:t=>a(e.key,t),draft:r,objectDef:l},e.key)),e.subsections?.map(e=>{if(e.visibleWhen&&!e.visibleWhen(r))return null;let t=ee(e.key,e.defaultCollapsed);return(0,J.jsxs)(`div`,{"data-testid":`config-subsection-${e.key}`,className:`ml-1`,role:`group`,"aria-label":e.title,children:[(0,J.jsx)(jE,{title:e.title,icon:e.icon,collapsible:e.collapsible,collapsed:t,onToggle:()=>N(e.key,e.defaultCollapsed),testId:`section-header-${e.key}`,className:`pt-2 pb-1`}),!t&&(0,J.jsx)(`div`,{className:`space-y-1`,children:e.fields.map(e=>(0,J.jsx)(AE,{field:e,value:r[e.key],onChange:t=>a(e.key,t),draft:r,objectDef:l},e.key))})]},e.key)})]})]},e.key)})}),i&&(0,J.jsxs)(`div`,{className:`px-4 py-2 border-t flex gap-2 shrink-0`,"data-testid":b??`config-panel-footer`,children:[(0,J.jsxs)(X,{size:`sm`,onClick:o,"data-testid":x??`config-panel-save`,children:[(0,J.jsx)(ca,{className:`h-3.5 w-3.5 mr-1`}),f??M(`common.save`)]}),(0,J.jsxs)(X,{size:`sm`,variant:`ghost`,onClick:s,"data-testid":S??`config-panel-discard`,children:[(0,J.jsx)(oa,{className:`h-3.5 w-3.5 mr-1`}),p??M(`common.discard`)]})]})]})}function PE(){let{t:e}=wt(),t=e(`detail.noValue`);return!t||t===`detail.noValue`?`No value`:t}function FE({className:e,...t}){return(0,J.jsx)(`div`,{"data-slot":`empty`,className:Y(`flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg p-(--empty-padding) [--empty-padding:--spacing(6)] md:[--empty-padding:--spacing(12)] text-center text-balance`,e),...t})}function IE({className:e,...t}){return(0,J.jsx)(`div`,{"data-slot":`empty-header`,className:Y(`flex max-w-sm flex-col items-center gap-2 text-center`,e),...t})}var LE=Et(`flex shrink-0 items-center justify-center mb-2 [&_svg]:pointer-events-none [&_svg]:shrink-0`,{variants:{variant:{default:`bg-transparent`,icon:`bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6`}},defaultVariants:{variant:`default`}});function RE({className:e,variant:t=`default`,...n}){return(0,J.jsx)(`div`,{"data-slot":`empty-icon`,"data-variant":t,className:Y(LE({variant:t,className:e})),...n})}function zE({className:e,...t}){return(0,J.jsx)(`div`,{"data-slot":`empty-title`,className:Y(`text-lg font-medium tracking-tight`,e),...t})}function BE({className:e,...t}){return(0,J.jsx)(`div`,{"data-slot":`empty-description`,className:Y(`text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4`,e),...t})}function $({className:e,glyph:t=`—`,...n}){let r=PE();return(0,J.jsx)(`span`,{"data-slot":`empty-value`,"aria-label":r,className:Y(`select-none text-muted-foreground/50 no-underline pointer-events-none`,e),...n,children:t})}var VE=Et(`space-y-2`),HE=q.forwardRef(({className:e,label:t,description:n,error:r,required:i,htmlFor:a,children:o,...s},c)=>{let l=q.useId(),u=a||l,d=`${u}-description`,f=`${u}-error`;return(0,J.jsxs)(`div`,{ref:c,className:Y(VE(),e),...s,children:[t&&(0,J.jsxs)(Y_,{htmlFor:u,className:Y(r&&`text-destructive`),children:[t,i&&(0,J.jsx)(`span`,{className:`ml-0.5 text-destructive`,"data-required-marker":`true`,"aria-hidden":`true`,children:`*`})]}),(0,J.jsx)(Bt,{id:u,"aria-describedby":[n&&d,r&&f].filter(Boolean).join(` `)||void 0,"aria-invalid":!!r,"aria-required":i||void 0,children:o}),n&&!r&&(0,J.jsx)(`p`,{id:d,className:`text-[0.8rem] text-muted-foreground`,children:n}),r&&(0,J.jsx)(`p`,{id:f,className:`text-[0.8rem] font-medium text-destructive`,children:r})]})});HE.displayName=`FieldContainer`;var UE=q.forwardRef(({className:e,startContent:t,endContent:n,children:r,...i},a)=>(0,J.jsxs)(`div`,{ref:a,className:Y(`flex w-full items-center rounded-md border border-input bg-transparent ring-offset-background focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2`,`has-[[data-invalid]]:border-destructive`,e),...i,children:[t&&(0,J.jsx)(`div`,{className:`flex items-center px-3 text-muted-foreground bg-muted/50 border-r h-full self-stretch rounded-l-md`,children:t}),(0,J.jsx)(`div`,{className:`flex-1 relative [&_input]:border-0 [&_input]:shadow-none [&_input]:focus-visible:ring-0 [&_input]:bg-transparent`,children:r}),n&&(0,J.jsx)(`div`,{className:`flex items-center px-3 text-muted-foreground bg-muted/50 border-l h-full self-stretch rounded-r-md`,children:n})]}));UE.displayName=`InputGroup`,Et(`group/item flex items-center border border-transparent text-sm rounded-md transition-colors [a]:hover:bg-accent/50 [a]:transition-colors duration-100 flex-wrap outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]`,{variants:{variant:{default:`bg-transparent`,outline:`border-border`,muted:`bg-muted/50`},size:{default:`p-4 gap-4 `,sm:`py-3 px-4 gap-2.5`}},defaultVariants:{variant:`default`,size:`default`}}),Et(`flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none group-has-[[data-slot=item-description]]/item:translate-y-0.5`,{variants:{variant:{default:`bg-transparent`,icon:`size-8 border rounded-sm bg-muted [&_svg:not([class*='size-'])]:size-4`,image:`size-10 rounded-sm overflow-hidden [&_img]:size-full [&_img]:object-cover`}},defaultVariants:{variant:`default`}});function WE({className:e,...t}){return(0,J.jsx)(`kbd`,{"data-slot":`kbd`,className:Y(`bg-muted text-muted-foreground pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm px-1 font-sans text-xs font-medium select-none`,`[&_svg:not([class*='size-'])]:size-3`,`[[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10`,e),...t})}var GE=q.forwardRef(({className:e,children:t,...n},r)=>(0,J.jsx)(`select`,{className:Y(`flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50`,e),ref:r,...n,children:t}));GE.displayName=`NativeSelect`;var KE=`[data-radix-popper-content-wrapper],[data-radix-select-content],[data-radix-select-viewport]`;function qE(e){return!!e?.closest?.(KE)}function JE(e){let t=q.useRef(!1);return q.useEffect(()=>{let e=e=>{let n=e.target;t.current=!!document.querySelector(KE)||!!n?.closest?.(`[role="dialog"]`)};return document.addEventListener(`pointerdown`,e,!0),()=>document.removeEventListener(`pointerdown`,e,!0)},[]),q.useCallback(n=>{let r=n.detail?.originalEvent,i=r?.target??null;if(qE(i)||i?.closest?.(`[role="dialog"]`)){n.preventDefault();return}if(r?.type===`pointerdown`&&t.current){n.preventDefault();return}e?.(n)},[e])}var YE=q.forwardRef(({className:e,children:t,onInteractOutside:n,showCloseButton:r=!0,...i},a)=>{let o=JE(n);return(0,J.jsxs)(om,{children:[(0,J.jsx)(sm,{}),(0,J.jsxs)(Hr,{ref:a,onInteractOutside:o,className:Y(`fixed inset-0 z-50 w-full bg-background p-4 shadow-lg duration-200`,`h-[100dvh]`,`sm:inset-auto sm:left-[50%] sm:top-[50%] sm:translate-x-[-50%] sm:translate-y-[-50%]`,`sm:max-w-lg sm:h-auto sm:max-h-[90vh] sm:rounded-lg sm:border sm:p-6`,`data-[state=open]:animate-in data-[state=closed]:animate-out`,`data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,`data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95`,`data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%]`,`data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]`,e),...i,children:[t,r&&(0,J.jsxs)(gr,{className:Y(`absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity`,`hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2`,`disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground`,`min-h-[44px] min-w-[44px] sm:min-h-0 sm:min-w-0 flex items-center justify-center`),children:[(0,J.jsx)(Ta,{className:`h-5 w-5 sm:h-4 sm:w-4`}),(0,J.jsx)(rm,{})]})]})]})});YE.displayName=`MobileDialogContent`;var XE=vt({"common.close":`Close`,"common.closePanel":`Close panel`,"common.resizeDrawer":`Resize drawer`,"detail.openAsFullPage":`Open as full page`,"detail.recordDetail":`Record Detail`,"detail.recordDetailOverlay":`Record detail overlay for {{title}}.`},`common.close`);function ZE(e){return`drawer-width:${e}`}function QE(e){return`objectui.drawerWidth.${e}`}function $E(){let e=q.useRef(null),t=q.useCallback(t=>{let n=t?.target;n&&typeof n.getBoundingClientRect==`function`&&(e.current=n)},[]);return{anchorRef:e,captureAnchor:t,anchorCaptureProps:q.useMemo(()=>({onClickCapture:t}),[t])}}function eD(e){if(e!=null)return typeof e==`number`?`${e}px`:e}function tD(e){let t=eD(e);return t?{"--ov-w":t}:{}}var nD=360,rD=.95;function iD(e,t){let[n,r]=q.useState(null),i=q.useRef(!1);return q.useEffect(()=>{if(!(!e||typeof window>`u`))try{let n=window.localStorage.getItem(`ov:${e}`);if(n){let e=Number(n);Number.isFinite(e)&&e>=nD&&r(e);return}if(!t)return;let i=window.localStorage.getItem(t);if(!i)return;let a=parseInt(i,10);if(!Number.isFinite(a)||a<nD)return;r(a),window.localStorage.setItem(`ov:${e}`,String(a)),window.localStorage.removeItem(t)}catch{}},[e,t]),{width:n,handleMouseDown:q.useCallback(t=>{if(!e||typeof window>`u`)return;t.preventDefault(),i.current=!0;let n=Math.floor(window.innerWidth*rD);document.body.style.cursor=`col-resize`,document.body.style.userSelect=`none`;let a=e=>{if(!i.current)return;let t=Math.min(n,Math.max(nD,window.innerWidth-e.clientX));r(t)},o=()=>{i.current=!1,document.body.style.cursor=``,document.body.style.userSelect=``,window.removeEventListener(`mousemove`,a),window.removeEventListener(`mouseup`,o),r(t=>{if(t!=null)try{window.localStorage.setItem(`ov:${e}`,String(t))}catch{}return t})};window.addEventListener(`mousemove`,a),window.addEventListener(`mouseup`,o)},[e]),handleDoubleClick:q.useCallback(()=>{if(!(!e||typeof window>`u`)){r(null);try{window.localStorage.removeItem(`ov:${e}`)}catch{}}},[e]),enabled:!!e}}var aD=({isOpen:e,selectedRecord:t,mode:n,close:r,setIsOpen:i,width:a,view:o,title:s,description:c,className:l,children:u,renderView:d,mainContent:f,popoverTrigger:p,popoverAnchorRef:m,onExpand:h,expandLabel:g,storageKey:_,legacyStorageKey:v})=>{let y=tD(a),{t:b}=XE(),x=s||b(`detail.recordDetail`),S=g??b(`detail.openAsFullPage`),C=b(`detail.recordDetailOverlay`,{title:x}),w=iD(n===`drawer`?_:void 0,n===`drawer`?v:void 0),T=JE();if(n===`page`||n===`new_window`||n===`none`||!t)return null;let E=eD(a)??`42rem`,D=w.width==null?{"--ov-w":`max(${E}, min(60vw, 880px))`}:{"--ov-w":`${w.width}px`},O=e=>d&&o?d(e,o):u(e);if(n===`drawer`)return(0,J.jsx)(Oy,{open:e,onOpenChange:i,children:(0,J.jsxs)(Py,{side:`right`,onInteractOutside:T,onOpenAutoFocus:e=>e.preventDefault(),className:Y(`w-screen max-w-none sm:w-full sm:max-w-[var(--ov-w,42rem)] p-0 flex flex-col gap-0 overflow-hidden`,`[&>button:last-of-type]:hidden`,l),style:D,children:[w.enabled&&(0,J.jsx)(`div`,{role:`separator`,"aria-orientation":`vertical`,"aria-label":b(`common.resizeDrawer`),onMouseDown:w.handleMouseDown,onDoubleClick:w.handleDoubleClick,className:`hidden sm:block absolute left-0 top-0 bottom-0 z-30 w-1 cursor-col-resize touch-none bg-transparent hover:bg-primary/40 active:bg-primary/60 transition-colors`}),(0,J.jsxs)(Fy,{className:`shrink-0 flex-row items-center justify-between gap-2 space-y-0 px-4 py-2 border-b bg-muted/30`,children:[(0,J.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,J.jsx)(Ly,{className:`truncate text-xs font-medium tracking-wide text-muted-foreground`,children:x}),c?(0,J.jsx)(Ry,{className:`truncate text-xs`,children:c}):(0,J.jsx)(Ry,{className:`sr-only`,children:C})]}),(0,J.jsxs)(`div`,{className:`flex shrink-0 items-center gap-0.5`,children:[h&&(0,J.jsx)(`button`,{type:`button`,onClick:h,"aria-label":S,title:S,className:`inline-flex h-7 w-7 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus:outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:(0,J.jsx)(Xi,{className:`h-3.5 w-3.5`})}),(0,J.jsx)(Ay,{asChild:!0,children:(0,J.jsx)(`button`,{type:`button`,"aria-label":b(`common.close`),title:b(`common.close`),className:`inline-flex h-7 w-7 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus:outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:(0,J.jsx)(Ta,{className:`h-3.5 w-3.5`})})})]})]}),(0,J.jsx)(`div`,{className:`flex-1 min-h-0 overflow-y-auto`,children:O(t)})]})});if(n===`modal`)return(0,J.jsx)(im,{open:e,onOpenChange:i,children:(0,J.jsxs)(cm,{onInteractOutside:T,className:Y(`w-[calc(100vw-1rem)] max-w-none sm:max-w-[var(--ov-w,42rem)] max-h-[90vh] overflow-y-auto`,l),style:y,children:[h&&(0,J.jsx)(`button`,{type:`button`,onClick:h,"aria-label":S,title:S,className:`absolute right-12 top-4 z-10 inline-flex h-7 w-7 items-center justify-center rounded-md text-muted-foreground hover:bg-accent hover:text-accent-foreground transition-colors`,children:(0,J.jsx)(Xi,{className:`h-4 w-4`})}),(0,J.jsxs)(lm,{children:[(0,J.jsx)(dm,{children:x}),c?(0,J.jsx)(fm,{children:c}):(0,J.jsx)(fm,{className:`sr-only`,children:C})]}),(0,J.jsx)(`div`,{className:`mt-4`,children:O(t)})]})});if(n===`split`){if(!e||!f)return null;let n=a&&typeof a==`number`?Math.min(70,Math.max(20,a/1200*100)):40,i=100-n;return(0,J.jsxs)(yw,{orientation:`horizontal`,className:Y(`h-full`,l),children:[(0,J.jsx)(bw,{defaultSize:i,minSize:30,children:f}),(0,J.jsx)(xw,{withHandle:!0}),(0,J.jsx)(bw,{defaultSize:n,minSize:20,children:(0,J.jsxs)(`div`,{className:`h-full overflow-y-auto p-4`,children:[(0,J.jsxs)(`div`,{className:`flex items-center justify-between mb-4`,children:[(0,J.jsx)(`h3`,{className:`text-lg font-semibold`,children:x}),(0,J.jsx)(`button`,{type:`button`,onClick:r,className:`rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2`,"aria-label":b(`common.closePanel`),children:(0,J.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,J.jsx)(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),(0,J.jsx)(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})]})})]}),c&&(0,J.jsx)(`p`,{className:`text-sm text-muted-foreground mb-4`,children:c}),O(t)]})})]})}return n===`popover`?!p&&!m?e?(0,J.jsx)(im,{open:e,onOpenChange:i,children:(0,J.jsxs)(cm,{className:Y(`w-96 max-h-[80vh] overflow-y-auto p-4`,l),style:y,children:[(0,J.jsxs)(lm,{children:[(0,J.jsx)(dm,{className:`text-sm`,children:x}),c?(0,J.jsx)(fm,{className:`text-xs`,children:c}):(0,J.jsx)(fm,{className:`sr-only`,children:C})]}),(0,J.jsx)(`div`,{className:`mt-2`,children:O(t)})]})}):null:(0,J.jsxs)(uy,{open:e,onOpenChange:i,children:[p?(0,J.jsx)(dy,{asChild:!0,children:p}):(0,J.jsx)(wn,{virtualRef:m}),(0,J.jsx)(fy,{className:Y(`w-96 max-h-[400px] overflow-y-auto p-4`,l),style:y,children:(0,J.jsxs)(`div`,{className:`space-y-2`,children:[(0,J.jsx)(`h4`,{className:`text-sm font-semibold`,children:x}),c&&(0,J.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:c}),O(t)]})})]}):null};aD.displayName=`NavigationOverlay`;function oD({className:e,...t}){return(0,J.jsx)(`div`,{role:`status`,"aria-label":`Loading`,className:Y(`flex items-center justify-center`,e),...t,children:(0,J.jsx)(Ji,{className:`animate-spin text-muted-foreground w-full h-full min-w-4 min-h-4`})})}var sD={addGroup:`Add group field`,collapseTitle:`Collapsed by default`,removeTitle:`Remove`,ascendingTitle:`Ascending`,descendingTitle:`Descending`};function cD({value:e,onChange:t,fieldOptions:n,maxLevels:r=3,className:i,labels:a}){let o={...sD,...a||{}},s=e?.fields??[],c=new Set(s.map(e=>e.field)),l=e=>{t(e.length?{fields:e}:void 0)};return(0,J.jsxs)(`div`,{"data-testid":`grouping-editor`,className:Y(`flex flex-col gap-1.5 w-full`,i),children:[s.map((e,t)=>(0,J.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,J.jsx)(`select`,{"data-testid":`grouping-field-${t}`,className:`text-xs h-7 rounded-md border border-input bg-background px-2 text-foreground flex-1 min-w-0`,value:e.field,onChange:n=>{let r=[...s];r[t]={...e,field:n.target.value},l(r)},children:n.filter(t=>t.value===e.field||!c.has(t.value)).map(e=>(0,J.jsx)(`option`,{value:e.value,children:e.label},e.value))}),(0,J.jsx)(`button`,{type:`button`,title:e.order===`asc`?o.ascendingTitle:o.descendingTitle,"data-testid":`grouping-order-${t}`,className:`flex h-7 w-7 items-center justify-center rounded-md border border-input bg-background text-foreground hover:bg-muted`,onClick:()=>{let n=[...s];n[t]={...e,order:e.order===`asc`?`desc`:`asc`},l(n)},children:e.order===`asc`?(0,J.jsx)(li,{className:`h-3 w-3`}):(0,J.jsx)(ai,{className:`h-3 w-3`})}),(0,J.jsx)(`label`,{title:o.collapseTitle,className:`flex items-center text-xs text-muted-foreground`,children:(0,J.jsx)(`input`,{type:`checkbox`,"data-testid":`grouping-collapsed-${t}`,className:`h-3 w-3`,checked:e.collapsed,onChange:n=>{let r=[...s];r[t]={...e,collapsed:n.target.checked},l(r)}})}),(0,J.jsx)(`button`,{type:`button`,title:o.removeTitle,"data-testid":`grouping-remove-${t}`,className:`flex h-7 w-7 items-center justify-center rounded-md border border-input bg-background text-muted-foreground hover:bg-muted hover:text-destructive`,onClick:()=>{let e=s.filter((e,n)=>n!==t);l(e)},children:(0,J.jsx)(Ta,{className:`h-3 w-3`})})]},t)),s.length<r&&(()=>{let e=n.filter(e=>!c.has(e.value));return e.length===0?null:(0,J.jsxs)(`button`,{type:`button`,"data-testid":`grouping-add`,className:`flex h-7 items-center gap-1 self-start rounded-md border border-dashed border-input bg-background px-2 text-xs text-muted-foreground hover:bg-muted hover:text-foreground`,onClick:()=>{let t=[...s,{field:e[0].value,order:`asc`,collapsed:!1}];l(t)},children:[(0,J.jsx)(ta,{className:`h-3 w-3`}),o.addGroup]})})()]})}function lD({rows:e=5,columns:t=4,className:n,...r}){return(0,J.jsxs)(`div`,{"data-slot":`grid-skeleton`,className:Y(`w-full space-y-2`,n),...r,children:[(0,J.jsx)(`div`,{className:`flex gap-4 px-4 py-2`,children:Array.from({length:t}).map((e,t)=>(0,J.jsx)(Hy,{className:`h-4 flex-1 rounded`},t))}),Array.from({length:e}).map((e,n)=>(0,J.jsx)(`div`,{className:`flex gap-4 rounded-md border px-4 py-3`,children:Array.from({length:t}).map((e,t)=>(0,J.jsx)(Hy,{className:Y(`h-4 flex-1 rounded`,t===0&&`max-w-[40%]`)},t))},n))]})}function uD({className:e,...t}){return(0,J.jsxs)(`div`,{"data-slot":`chart-skeleton`,className:Y(`w-full space-y-4`,e),...t,children:[(0,J.jsx)(Hy,{className:`h-5 w-40 rounded`}),(0,J.jsx)(`div`,{className:`flex h-48 items-end gap-2 rounded-md border p-4`,children:[`h-2/5`,`h-3/5`,`h-1/3`,`h-4/5`,`h-1/2`,`h-3/4`,`h-2/5`].map((e,t)=>(0,J.jsx)(Hy,{className:Y(`flex-1 rounded-t`,e)},t))}),(0,J.jsxs)(`div`,{className:`flex gap-4`,children:[(0,J.jsx)(Hy,{className:`h-3 w-16 rounded`}),(0,J.jsx)(Hy,{className:`h-3 w-16 rounded`}),(0,J.jsx)(Hy,{className:`h-3 w-16 rounded`})]})]})}var dD=({title:e,icon:t,objectLabel:n,resourceId:r,showStar:i=!0,showCopyId:a=!0,isFavorite:o,onToggleFavorite:s,className:c,inlineExtras:l})=>{let{t:u}=wt(),[d,f]=q.useState(!1),[p,m]=q.useState(!1),h=o??d,g=q.useCallback(()=>{let e=!h;s&&s(e),o===void 0&&f(e)},[h,o,s]),_=q.useCallback(()=>{if(r)try{typeof navigator<`u`&&navigator.clipboard&&navigator.clipboard.writeText(r),m(!0),setTimeout(()=>m(!1),1500)}catch{}},[r]),v=u(h?`detail.removeFromFavorites`:`detail.addToFavorites`),y=u(p?`detail.copied`:`detail.copyRecordId`);return(0,J.jsx)(Uy,{children:(0,J.jsx)(`div`,{className:Y(`flex flex-col min-w-0`,c),children:(0,J.jsxs)(`div`,{className:`flex items-baseline gap-2 flex-wrap`,children:[t&&(0,J.jsx)(`span`,{className:`text-muted-foreground shrink-0 self-center`,"aria-hidden":!0,children:t}),(0,J.jsx)(`h1`,{className:`text-xl sm:text-2xl font-bold truncate`,children:e}),n&&(0,J.jsx)(`span`,{className:`text-xs font-medium tracking-wide text-muted-foreground/70 shrink-0`,children:n}),a&&r&&(0,J.jsxs)(Wy,{children:[(0,J.jsx)(Gy,{asChild:!0,children:(0,J.jsx)(X,{variant:`ghost`,size:`icon`,className:`h-5 w-5 shrink-0 text-muted-foreground/50 hover:text-foreground`,onClick:_,"aria-label":y,children:p?(0,J.jsx)(pi,{className:`h-3 w-3 text-green-600`}):(0,J.jsx)(Di,{className:`h-3 w-3`})})}),(0,J.jsx)(Ky,{children:y})]}),i&&(0,J.jsxs)(Wy,{children:[(0,J.jsx)(Gy,{asChild:!0,children:(0,J.jsx)(X,{variant:`ghost`,size:`icon`,className:`h-6 w-6 shrink-0`,onClick:g,"aria-label":v,"aria-pressed":h,children:(0,J.jsx)(ga,{className:Y(`h-4 w-4`,h?`fill-yellow-400 text-yellow-400`:`text-muted-foreground`)})})}),(0,J.jsx)(Ky,{children:v})]}),l]})})})},fD=!1;function pD(){if(fD||typeof document>`u`)return;let e=`objui-refresh-indicator-kf`;if(document.getElementById(e)){fD=!0;return}let t=document.createElement(`style`);t.id=e,t.textContent=`
|
|
24
|
+
@keyframes objui-refresh-bar {
|
|
25
|
+
0% { transform: translateX(-100%); }
|
|
26
|
+
100% { transform: translateX(400%); }
|
|
27
|
+
}
|
|
28
|
+
`,document.head.appendChild(t),fD=!0}var mD=({active:e,ariaLabel:t,className:n,...r})=>(q.useEffect(()=>{e&&pD()},[e]),e?(0,J.jsx)(`div`,{className:Y(`pointer-events-none absolute inset-x-0 top-0 z-20 h-0.5 overflow-hidden`,n),role:`progressbar`,"aria-busy":`true`,"aria-label":t,"data-testid":`refresh-indicator`,...r,children:(0,J.jsx)(`div`,{className:`h-full w-1/4 rounded-full bg-primary/70`,style:{animation:`objui-refresh-bar 1.1s ease-in-out infinite`}})}):null);mD.displayName=`RefreshIndicator`;function hD({className:e,icon:t,illustration:n,showIcon:r=!0,iconWrapperClassName:i,title:a=`No data`,description:o,action:s,children:c,...l}){let u=r&&(t!=null||!n);return(0,J.jsxs)(`div`,{role:`status`,"data-slot":`data-empty-state`,className:Y(`flex flex-col items-center justify-center gap-3 p-6 text-center`,e),...l,children:[n&&(0,J.jsx)(`div`,{"data-slot":`data-empty-state-illustration`,className:`motion-safe:animate-in motion-safe:fade-in-0 motion-safe:zoom-in-95 motion-safe:duration-300 [&_svg]:max-h-40 [&_svg]:w-auto`,"aria-hidden":!0,children:n}),u&&(0,J.jsx)(`div`,{"data-slot":`data-empty-state-icon`,className:Y(i??`flex size-10 items-center justify-center rounded-lg bg-muted`),children:t??(0,J.jsx)(Gi,{className:`size-5 text-muted-foreground`})}),a&&(0,J.jsx)(`h3`,{className:`text-sm font-medium`,children:a}),o&&(0,J.jsx)(`p`,{className:`max-w-sm text-sm text-muted-foreground`,children:o}),s,c]})}function gD({className:e,icon:t,showIcon:n=!0,iconWrapperClassName:r,title:i=`Something went wrong`,message:a,onRetry:o,retryLabel:s=`Retry`,children:c,...l}){return(0,J.jsxs)(`div`,{role:`alert`,"data-slot":`data-error-state`,className:Y(`flex flex-col items-center justify-center gap-3 p-6 text-center`,e),...l,children:[n&&(0,J.jsx)(`div`,{"data-slot":`data-error-state-icon`,className:Y(r??`flex size-10 items-center justify-center rounded-lg bg-destructive/10`),children:t??(0,J.jsx)(xi,{className:`size-5 text-destructive`})}),i&&(0,J.jsx)(`h3`,{className:`text-sm font-medium`,children:i}),a&&(0,J.jsx)(`p`,{className:`max-w-sm text-sm text-muted-foreground`,children:a}),o&&(0,J.jsx)(X,{variant:`outline`,size:`sm`,onClick:o,children:s}),c]})}K.register(`combobox`,({schema:e,disabled:t,...n})=>{let{"data-obj-id":r,"data-obj-type":i,style:a,...o}=n,s=q.useId(),c=e.description?`${s}-description`:void 0,l=[o[`aria-describedby`],c].filter(Boolean).join(` `)||void 0,u=(0,J.jsx)(AT,{options:e.options||[],placeholder:e.placeholder,value:e.value,disabled:t,className:e.className,...yT(o),"aria-describedby":l,"data-obj-id":r,"data-obj-type":i,style:a});return c?(0,J.jsxs)(`div`,{className:`grid gap-1.5`,children:[u,(0,J.jsx)(`p`,{id:c,className:`text-sm text-muted-foreground`,children:e.description})]}):u},{namespace:`ui`,label:`Combobox`,inputs:[{name:`placeholder`,type:`string`},{name:`value`,type:`string`},{name:`disabled`,type:`boolean`},{name:`className`,type:`string`},{name:`name`,type:`string`},{name:`description`,type:`string`}],defaultProps:{placeholder:`Select option...`,options:[]}}),K.register(`command`,({schema:e,...t})=>{let{"data-obj-id":n,"data-obj-type":r,style:i,...a}=t;return(0,J.jsxs)(pm,{className:e.className,...a,"data-obj-id":n,"data-obj-type":r,style:i,children:[(0,J.jsx)(hm,{placeholder:e.placeholder||`Type a command or search...`}),(0,J.jsxs)(gm,{children:[(0,J.jsx)(_m,{children:e.emptyText||`No results found.`}),e.groups?.map((e,t)=>(0,J.jsx)(vm,{heading:e.heading,children:e.items?.map((e,t)=>{let n=Tx(e.icon);return(0,J.jsxs)(bm,{value:e.value,children:[n&&(0,J.jsx)(n,{className:`h-4 w-4`}),e.label]},t)})},t))]})]})},{namespace:`ui`,label:`Command`,inputs:[{name:`placeholder`,type:`string`},{name:`emptyText`,type:`string`},{name:`className`,type:`string`}],defaultProps:{placeholder:`Type a command or search...`,emptyText:`No results found.`,groups:[]}});var _D=(0,q.forwardRef)(({schema:e,className:t,...n},r)=>{let{style:i,...a}=n;return(0,J.jsx)(`div`,{ref:r,...mt(a),className:t,style:i,children:Ra(e.children)})});_D.displayName=`BoxRenderer`,K.register(`box`,_D,{namespace:`ui`,label:`Box`,category:`layout`,isContainer:!0,inputs:[{name:`className`,type:`string`},{name:`children`,type:`slot`}]});var vD=(0,q.forwardRef)(({schema:e,className:t,...n},r)=>{let{"data-obj-id":i,"data-obj-type":a,style:o,...s}=n,c=e.clickable||!!n.onClick,l=e.hoverable||c,u=Ra(e.header);return(0,J.jsxs)(Rd,{ref:r,className:Y(t,l&&`transition-colors hover:bg-muted/50`,c&&`cursor-pointer active:bg-muted`),...s,"data-obj-id":i,"data-obj-type":a,style:o,children:[(e.title||e.description||u!==null)&&(0,J.jsxs)(zd,{children:[e.title&&(0,J.jsx)(Bd,{children:e.title}),e.description&&(0,J.jsx)(Vd,{children:e.description}),u]}),La(e.children,e=>(0,J.jsx)(Hd,{children:Ra(e)})),La(e.footer,e=>(0,J.jsx)(Ud,{className:`flex justify-between`,children:Ra(e)}))]})});K.register(`card`,vD,{namespace:`ui`,label:`Card`,inputs:[{name:`title`,type:`string`},{name:`description`,type:`string`},{name:`className`,type:`string`},{name:`children`,type:`slot`}],defaultProps:{title:`Card Title`,description:`Card description goes here`,className:`w-full`},isContainer:!0,resizable:!0,resizeConstraints:{width:!0,height:!0,minWidth:200,minHeight:100}}),K.register(`tabs`,({schema:e,className:t,onChange:n,value:r,...i})=>{let{"data-obj-id":a,"data-obj-type":o,style:s,...c}=i,l=e=>{n&&n(e)},u=e.orientation===`vertical`;return(0,J.jsxs)(Vb,{defaultValue:r===void 0?e.defaultValue:void 0,value:r??e.value,onValueChange:l,orientation:e.orientation||`horizontal`,className:Y(t,u&&`flex gap-2`),...c,"data-obj-id":a,"data-obj-type":o,style:s,children:[(0,J.jsx)(Hb,{className:Y(u&&`flex-col h-auto items-stretch bg-muted/50 p-1`),children:e.items?.map(e=>(0,J.jsx)(Ub,{value:e.value,disabled:e.disabled,className:Y(u&&`justify-start`),children:e.label},e.value))}),e.items?.map(e=>(0,J.jsx)(Wb,{value:e.value,className:Y(`mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2`,u&&`mt-0 flex-1`),children:Ra(e.content)},e.value))]})},{namespace:`ui`,label:`Tabs`,inputs:[{name:`defaultValue`,type:`string`,required:!0},{name:`className`,type:`string`},{name:`items`,type:`array`}],defaultProps:{defaultValue:`tab1`,items:[{label:`Tab 1`,value:`tab1`,content:[{type:`text`,content:`Content for Tab 1`}]},{label:`Tab 2`,value:`tab2`,content:[{type:`text`,content:`Content for Tab 2`}]},{label:`Tab 3`,value:`tab3`,content:[{type:`text`,content:`Content for Tab 3`}]}],className:`w-full`}});var yD={1:`grid-cols-1`,2:`grid-cols-2`,3:`grid-cols-3`,4:`grid-cols-4`,5:`grid-cols-5`,6:`grid-cols-6`,7:`grid-cols-7`,8:`grid-cols-8`,9:`grid-cols-9`,10:`grid-cols-10`,11:`grid-cols-11`,12:`grid-cols-12`},bD={1:`sm:grid-cols-1`,2:`sm:grid-cols-2`,3:`sm:grid-cols-3`,4:`sm:grid-cols-4`,5:`sm:grid-cols-5`,6:`sm:grid-cols-6`,7:`sm:grid-cols-7`,8:`sm:grid-cols-8`,9:`sm:grid-cols-9`,10:`sm:grid-cols-10`,11:`sm:grid-cols-11`,12:`sm:grid-cols-12`},xD={1:`md:grid-cols-1`,2:`md:grid-cols-2`,3:`md:grid-cols-3`,4:`md:grid-cols-4`,5:`md:grid-cols-5`,6:`md:grid-cols-6`,7:`md:grid-cols-7`,8:`md:grid-cols-8`,9:`md:grid-cols-9`,10:`md:grid-cols-10`,11:`md:grid-cols-11`,12:`md:grid-cols-12`},SD={1:`lg:grid-cols-1`,2:`lg:grid-cols-2`,3:`lg:grid-cols-3`,4:`lg:grid-cols-4`,5:`lg:grid-cols-5`,6:`lg:grid-cols-6`,7:`lg:grid-cols-7`,8:`lg:grid-cols-8`,9:`lg:grid-cols-9`,10:`lg:grid-cols-10`,11:`lg:grid-cols-11`,12:`lg:grid-cols-12`},CD={1:`xl:grid-cols-1`,2:`xl:grid-cols-2`,3:`xl:grid-cols-3`,4:`xl:grid-cols-4`,5:`xl:grid-cols-5`,6:`xl:grid-cols-6`,7:`xl:grid-cols-7`,8:`xl:grid-cols-8`,9:`xl:grid-cols-9`,10:`xl:grid-cols-10`,11:`xl:grid-cols-11`,12:`xl:grid-cols-12`},wD={1:`2xl:grid-cols-1`,2:`2xl:grid-cols-2`,3:`2xl:grid-cols-3`,4:`2xl:grid-cols-4`,5:`2xl:grid-cols-5`,6:`2xl:grid-cols-6`,7:`2xl:grid-cols-7`,8:`2xl:grid-cols-8`,9:`2xl:grid-cols-9`,10:`2xl:grid-cols-10`,11:`2xl:grid-cols-11`,12:`2xl:grid-cols-12`},TD={0:`gap-0`,1:`gap-1`,2:`gap-2`,3:`gap-3`,4:`gap-4`,5:`gap-5`,6:`gap-6`,8:`gap-8`,10:`gap-10`,12:`gap-12`};K.register(`grid`,({schema:e,className:t,...n})=>{let r=2,i,a,o,s,c;typeof e.columns==`number`?r=e.columns:typeof e.columns==`object`&&e.columns!==null&&(r=e.columns.xs??1,i=e.columns.sm,a=e.columns.md,o=e.columns.lg,s=e.columns.xl,c=e.columns[`2xl`]),e.smColumns&&(i=e.smColumns),e.mdColumns&&(a=e.mdColumns),e.lgColumns&&(o=e.lgColumns),e.xlColumns&&(s=e.xlColumns),typeof e.columns==`number`&&r>1&&i===void 0&&a===void 0&&o===void 0&&s===void 0&&(a=r,i=Math.min(2,r),r=1);let l=e.gap??4,u=Y(`grid`,yD[r]||`grid-cols-2`,i&&bD[i],a&&xD[a],o&&SD[o],s&&CD[s],c&&wD[c],TD[l]||`gap-[${l*.25}rem]`,t),{style:d,...f}=n;return(0,J.jsx)(`div`,{...mt(f),className:u,style:d,children:Ra(e.children)})},{namespace:`ui`,label:`Grid Layout`,inputs:[{name:`columns`,type:`number`,description:`Number of columns on mobile devices`},{name:`smColumns`,type:`number`,description:`Columns at sm breakpoint (>640px)`},{name:`mdColumns`,type:`number`,description:`Columns at md breakpoint (>768px)`},{name:`lgColumns`,type:`number`,description:`Columns at lg breakpoint (>1024px)`},{name:`xlColumns`,type:`number`,description:`Columns at xl breakpoint (>1280px)`},{name:`gap`,type:`number`,description:`Gap between items (0-12)`},{name:`className`,type:`string`},{name:`children`,type:`slot`}],defaultProps:{columns:1,mdColumns:2,lgColumns:4,gap:4,children:[{type:`card`,title:`Card 1`,description:`First card`},{type:`card`,title:`Card 2`,description:`Second card`},{type:`card`,title:`Card 3`,description:`Third card`},{type:`card`,title:`Card 4`,description:`Fourth card`}]},isContainer:!0,resizable:!0,resizeConstraints:{width:!0,height:!0,minWidth:200,minHeight:100}}),K.register(`flex`,({schema:e,className:t,...n})=>{let r=e.direction||`row`,i=e.justify||`start`,a=e.align||`start`,o=e.gap??2,s=e.wrap||!1,c=Y(`flex`,r===`row`&&`flex-row`,r===`col`&&`flex-col`,r===`row-reverse`&&`flex-row-reverse`,r===`col-reverse`&&`flex-col-reverse`,i===`start`&&`justify-start`,i===`end`&&`justify-end`,i===`center`&&`justify-center`,i===`between`&&`justify-between`,i===`around`&&`justify-around`,i===`evenly`&&`justify-evenly`,a===`start`&&`items-start`,a===`end`&&`items-end`,a===`center`&&`items-center`,a===`baseline`&&`items-baseline`,a===`stretch`&&`items-stretch`,o===0&&`gap-0`,o===1&&`gap-1`,o===2&&`gap-1.5 sm:gap-2`,o===3&&`gap-2 sm:gap-3`,o===4&&`gap-2 sm:gap-3 md:gap-4`,o===5&&`gap-3 sm:gap-4 md:gap-5`,o===6&&`gap-3 sm:gap-4 md:gap-6`,o===7&&`gap-4 sm:gap-5 md:gap-7`,o===8&&`gap-4 sm:gap-6 md:gap-8`,s&&`flex-wrap`,t),{style:l,...u}=n;return(0,J.jsx)(`div`,{...mt(u),className:c,style:l,children:Ra(e.children)})},{namespace:`ui`,label:`Flex Layout`,inputs:[{name:`direction`,type:`enum`,enum:[`row`,`col`,`row-reverse`,`col-reverse`]},{name:`justify`,type:`enum`,enum:[`start`,`end`,`center`,`between`,`around`,`evenly`]},{name:`align`,type:`enum`,enum:[`start`,`end`,`center`,`baseline`,`stretch`]},{name:`gap`,type:`number`,description:`Gap between items (0-8)`},{name:`wrap`,type:`boolean`,description:`Allow flex items to wrap`},{name:`className`,type:`string`},{name:`children`,type:`slot`}],defaultProps:{direction:`row`,justify:`start`,align:`start`,gap:2,wrap:!1,children:[{type:`button`,label:`Button 1`},{type:`button`,label:`Button 2`},{type:`button`,label:`Button 3`}]},isContainer:!0});var ED=(0,q.forwardRef)(({schema:e,className:t,...n},r)=>{let i=e.direction||`col`,a=e.justify||`start`,o=e.align||`stretch`,s=e.gap??2,c=e.wrap||!1,l=Y(`flex`,i===`row`&&`flex-row`,i===`col`&&`flex-col`,i===`row-reverse`&&`flex-row-reverse`,i===`col-reverse`&&`flex-col-reverse`,a===`start`&&`justify-start`,a===`end`&&`justify-end`,a===`center`&&`justify-center`,a===`between`&&`justify-between`,a===`around`&&`justify-around`,a===`evenly`&&`justify-evenly`,o===`start`&&`items-start`,o===`end`&&`items-end`,o===`center`&&`items-center`,o===`baseline`&&`items-baseline`,o===`stretch`&&`items-stretch`,s===0&&`gap-0`,s===1&&`gap-1`,s===2&&`gap-1.5 sm:gap-2`,s===3&&`gap-2 sm:gap-3`,s===4&&`gap-2 sm:gap-3 md:gap-4`,s===5&&`gap-3 sm:gap-4 md:gap-5`,s===6&&`gap-3 sm:gap-4 md:gap-6`,s===8&&`gap-4 sm:gap-6 md:gap-8`,s===10&&`gap-5 sm:gap-7 md:gap-10`,c&&`flex-wrap`,t),{style:u,...d}=n;return(0,J.jsx)(`div`,{ref:r,...mt(d),className:l,style:u,children:Ra(e.children)})});K.register(`stack`,ED,{namespace:`ui`,label:`Stack`,inputs:[{name:`direction`,type:`enum`,enum:[`col`,`row`,`col-reverse`,`row-reverse`]},{name:`gap`,type:`number`},{name:`align`,type:`enum`,enum:[`start`,`end`,`center`,`stretch`,`baseline`]},{name:`justify`,type:`enum`,enum:[`start`,`end`,`center`,`between`,`around`,`evenly`]},{name:`className`,type:`string`},{name:`children`,type:`slot`}],defaultProps:{direction:`col`,gap:2,align:`stretch`,children:[]},isContainer:!0,resizable:!0,resizeConstraints:{width:!0,height:!0,minWidth:100,minHeight:50}});var DD=(0,q.forwardRef)(({schema:e,className:t,...n},r)=>{let i=e.maxWidth??`xl`,a=e.padding??4,o=e.centered!==!1,s=Y(`w-full`,i===!1&&`max-w-none`,i===`sm`&&`max-w-sm`,i===`md`&&`max-w-md`,i===`lg`&&`max-w-lg`,i===`xl`&&`max-w-xl`,i===`2xl`&&`max-w-2xl`,i===`3xl`&&`max-w-3xl`,i===`4xl`&&`max-w-4xl`,i===`5xl`&&`max-w-5xl`,i===`6xl`&&`max-w-6xl`,i===`7xl`&&`max-w-7xl`,i===`full`&&`max-w-full`,i===`screen`&&`max-w-screen-2xl`,o&&`mx-auto`,a===0&&`p-0`,a===1&&`p-0.5 sm:p-1`,a===2&&`p-1 sm:p-2`,a===3&&`p-2 sm:p-3`,a===4&&`p-2 sm:p-3 md:p-4`,a===5&&`p-3 sm:p-4 md:p-5`,a===6&&`p-3 sm:p-4 md:p-6`,a===7&&`p-4 sm:p-5 md:p-7`,a===8&&`p-4 sm:p-6 md:p-8`,a===10&&`p-5 sm:p-7 md:p-10`,a===12&&`p-6 sm:p-8 md:p-12`,a===16&&`p-8 sm:p-10 md:p-16`,t),{style:c,...l}=n;return(0,J.jsx)(`div`,{ref:r,...mt(l),className:s,style:c,children:Ra(e.children)})});K.register(`container`,DD,{namespace:`ui`,label:`Container`,inputs:[{name:`maxWidth`,type:`enum`,enum:[{label:`None (cancel max-width)`,value:!1},{label:`sm`,value:`sm`},{label:`md`,value:`md`},{label:`lg`,value:`lg`},{label:`xl`,value:`xl`},{label:`2xl`,value:`2xl`},{label:`3xl`,value:`3xl`},{label:`4xl`,value:`4xl`},{label:`5xl`,value:`5xl`},{label:`6xl`,value:`6xl`},{label:`7xl`,value:`7xl`},{label:`full`,value:`full`},{label:`screen`,value:`screen`}]},{name:`padding`,type:`number`,description:`Padding value (0, 1-8, 10, 12, 16)`},{name:`centered`,type:`boolean`},{name:`className`,type:`string`},{name:`children`,type:`slot`}],defaultProps:{maxWidth:`xl`,padding:4,centered:!0,children:[{type:`text`,content:`Container content goes here`}]},isContainer:!0,resizable:!0,resizeConstraints:{width:!0,height:!0,minWidth:200,minHeight:100}});function OD(e){return e.split(/[-_:]/).filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(``)}function kD(){let e={},t=new Set;for(let n of K.getPublicConfigs()){let r=n.type;if(!r||n.isContainer||n.tier===`html`)continue;let i=OD(r);if(t.has(i))continue;t.add(i);let a=({children:e,...t})=>{let n=typeof t.type==`string`&&t.type!==r?t.type:void 0;return q.createElement(Ie,{schema:{...t,...n?{specType:n}:{},type:r}})};a.displayName=i,e[i]=a}let n=({type:e,children:t,...n})=>q.createElement(Ie,{schema:{type:e,...n}});return n.displayName=`Block`,e.Block=n,e}function AD(){return(0,J.jsxs)(`div`,{className:`m-4 rounded-md border border-amber-400/40 bg-amber-50 p-4 text-sm text-amber-900 dark:bg-amber-950/30 dark:text-amber-200`,children:[(0,J.jsx)(`div`,{className:`font-semibold`,children:`React pages are disabled on this deployment`}),(0,J.jsxs)(`p`,{className:`mt-1 leading-relaxed`,children:[(0,J.jsx)(`code`,{children:`kind:'react'`}),` pages execute author JavaScript directly in the application. This deployment has turned the capability off (`,(0,J.jsx)(`code`,{children:`OS_PAGE_REACT=off`}),` / `,(0,J.jsx)(`code`,{children:`disableCapability('react-pages')`}),`). It is ON by default; re-enable it if your page authors are trusted.`]})]})}var jD=({schema:e})=>{let t=typeof e?.source==`string`?e.source:``,r=P(),i=he(_e),[a,o]=q.useState(null),[s,c]=q.useState(null);q.useEffect(()=>{if(!i)return;let e=!0;return n(()=>import(`./src-CBSLqxtF.js`).then(t=>e&&o(t)),[],import.meta.url).catch(t=>e&&c(t)),()=>{e=!1}},[i]);let l=q.useMemo(()=>({...kD(),useAdapter:P,useDataInvalidation:be,data:e?.data??e?.variables??{},variables:e?.variables??{},page:e??{}}),[e,r]);if(!i)return(0,J.jsx)(AD,{});if(s)return(0,J.jsxs)(`div`,{className:`m-4 rounded-md border border-destructive/40 bg-destructive/10 p-4 text-sm text-destructive`,children:[(0,J.jsx)(`div`,{className:`font-semibold`,children:`Failed to load the react runtime`}),(0,J.jsx)(`pre`,{className:`mt-1 whitespace-pre-wrap`,children:String(s)})]});if(!t.trim())return(0,J.jsxs)(`div`,{className:`m-4 rounded-md border border-destructive/40 bg-destructive/10 p-4 text-sm text-destructive`,children:[`A `,(0,J.jsx)(`code`,{children:`kind:'react'`}),` page requires a non-empty `,(0,J.jsx)(`code`,{children:`source`}),`.`]});if(!a)return(0,J.jsx)(`div`,{className:`m-4 text-sm text-muted-foreground`,children:`Loading react runtime…`});let{ReactRunner:u}=a;return(0,J.jsx)(Ve,{dataSource:r,children:(0,J.jsx)(u,{code:t,scope:l,fallback:e=>(0,J.jsxs)(`div`,{className:`m-4 rounded-md border border-destructive/40 bg-destructive/10 p-4 text-sm text-destructive`,children:[(0,J.jsx)(`div`,{className:`font-semibold`,children:`React page error`}),(0,J.jsx)(`pre`,{className:`mt-1 whitespace-pre-wrap`,children:String(e)})]})})})};function MD(e){switch(e){case`small`:return`w-64`;case`medium`:return`w-80`;case`large`:return`w-96`;case`full`:return`w-full`;default:return e||`w-full`}}function ND(e){switch(e){case`small`:return`w-full md:w-64`;case`medium`:return`w-full md:w-80`;case`large`:return`w-full md:w-96`;default:return`w-full`}}function PD(e){switch(e){case`utility`:return`max-w-4xl`;case`home`:return`max-w-screen-2xl`;case`app`:return`max-w-screen-xl`;default:return`max-w-7xl`}}function FD(e,t){return e?.find(e=>e.name?.toLowerCase()===t.toLowerCase())}function ID(e,t){if(!e)return[];let n=new Set(t.map(e=>e.toLowerCase()));return e.filter(e=>!n.has(e.name?.toLowerCase()??``))}var LD=`page:header`;function RD(e){return e==null?``:typeof e==`string`?e.replace(/\{[a-zA-Z0-9_.]+\}/g,``).replace(/\s+/g,` `).trim():typeof e==`object`?Object.values(e).map(e=>RD(e)).find(e=>e!==``)??``:String(e)}function zD(e){return e?.type===LD&&RD(e?.title??e?.properties?.title)!==``}function BD(e,t=0){return t>6?!1:(Array.isArray(e)?e:e?[e]:[]).some(e=>!!e&&typeof e==`object`&&(zD(e)||BD(e.components,t+1)||BD(e.children,t+1)))}function VD(e){return BD((e.regions??[]).flatMap(e=>e?.components??[]))||BD(e.children)}var HD=({region:e,className:t})=>{let n=e.components||[];return n.length===0?null:(0,J.jsx)(`div`,{className:Y(`space-y-4`,e.className,t),"data-region":e.name,children:n.map((t,n)=>(0,J.jsx)(Ie,{schema:Ke(t)},t?.id||`${e.name}-${n}`))})},UD=({regions:e,pageType:t,className:n})=>{let r=FD(e,`header`),i=FD(e,`sidebar`),a=FD(e,`main`),o=FD(e,`aside`),s=FD(e,`footer`),c=ID(e,[`header`,`sidebar`,`main`,`aside`,`footer`]);return r||i||a||o||s?(0,J.jsxs)(`div`,{className:Y(`flex flex-col gap-6`,n),"data-page-layout":t,children:[r&&(0,J.jsx)(HD,{region:r,className:Y(MD(r.width))}),(0,J.jsxs)(`div`,{className:`flex flex-col md:flex-row flex-1 gap-6`,children:[i&&(0,J.jsx)(`aside`,{className:Y(`md:shrink-0`,ND(i.width||`small`)),children:(0,J.jsx)(HD,{region:i})}),(0,J.jsxs)(`div`,{className:`flex-1 min-w-0 space-y-6`,children:[a&&(0,J.jsx)(HD,{region:a}),c.map((e,t)=>(0,J.jsx)(HD,{region:e},e.name||`extra-${t}`))]}),o&&(0,J.jsx)(`aside`,{className:Y(`md:shrink-0`,ND(o.width||`small`),o.className),children:(0,J.jsx)(HD,{region:o})})]}),s&&(0,J.jsx)(HD,{region:s,className:Y(MD(s.width))})]}):(0,J.jsx)(`div`,{className:Y(`space-y-6`,n),"data-page-layout":t,children:e.map((e,t)=>(0,J.jsx)(HD,{region:e},e.name||t))})},WD=({schema:e})=>{let t=e.children,n=Array.isArray(t)?t:t?[t]:[];return n.length===0?null:(0,J.jsx)(`div`,{className:`space-y-6`,children:n.map((e,t)=>(0,J.jsx)(Ie,{schema:e},e?.id||t))})},GD=({schema:e})=>e.regions&&e.regions.length>0?(0,J.jsx)(UD,{regions:e.regions,pageType:e.pageType}):(0,J.jsx)(WD,{schema:e}),KD={default:GD,"full-width":GD,"header-sidebar-main":({schema:e})=>{let t=e.regions||[];if(t.length===0)return(0,J.jsx)(WD,{schema:e});let n=FD(t,`header`),r=FD(t,`sidebar`),i=FD(t,`main`),a=ID(t,[`header`,`sidebar`,`main`]);return(0,J.jsxs)(`div`,{className:`flex flex-col gap-6`,"data-template":`header-sidebar-main`,children:[n&&(0,J.jsx)(HD,{region:n}),(0,J.jsxs)(`div`,{className:`flex flex-col md:flex-row flex-1 gap-6`,children:[r&&(0,J.jsx)(`aside`,{className:Y(`md:shrink-0`,ND(r.width||`medium`)),children:(0,J.jsx)(HD,{region:r})}),(0,J.jsxs)(`div`,{className:`flex-1 min-w-0 space-y-6`,children:[i&&(0,J.jsx)(HD,{region:i}),a.map((e,t)=>(0,J.jsx)(HD,{region:e},e.name||`extra-${t}`))]})]})]})},"three-column":({schema:e})=>{let t=e.regions||[];if(t.length===0)return(0,J.jsx)(WD,{schema:e});let n=FD(t,`header`),r=FD(t,`sidebar`),i=FD(t,`main`),a=FD(t,`aside`),o=FD(t,`footer`),s=ID(t,[`header`,`sidebar`,`main`,`aside`,`footer`]);return(0,J.jsxs)(`div`,{className:`flex flex-col gap-6`,"data-template":`three-column`,children:[n&&(0,J.jsx)(HD,{region:n}),(0,J.jsxs)(`div`,{className:`flex flex-col md:flex-row flex-1 gap-6`,children:[r&&(0,J.jsx)(`aside`,{className:Y(`md:shrink-0`,ND(r.width||`small`)),children:(0,J.jsx)(HD,{region:r})}),(0,J.jsxs)(`div`,{className:`flex-1 min-w-0 space-y-6`,children:[i&&(0,J.jsx)(HD,{region:i}),s.map((e,t)=>(0,J.jsx)(HD,{region:e},e.name||`extra-${t}`))]}),a&&(0,J.jsx)(`aside`,{className:Y(`md:shrink-0`,ND(a.width||`small`),a.className),children:(0,J.jsx)(HD,{region:a})})]}),o&&(0,J.jsx)(HD,{region:o})]})},dashboard:({schema:e})=>{let t=e.regions||[];if(t.length===0)return(0,J.jsx)(WD,{schema:e});let n=FD(t,`header`),r=FD(t,`footer`),i=ID(t,[`header`,`footer`]);return(0,J.jsxs)(`div`,{className:`flex flex-col gap-6`,"data-template":`dashboard`,children:[n&&(0,J.jsx)(HD,{region:n}),(0,J.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-6`,children:i.map((e,t)=>(0,J.jsx)(HD,{region:e},e.name||`region-${t}`))}),r&&(0,J.jsx)(HD,{region:r})]})}};function qD(e){return e.template&&KD[e.template]||null}var JD=({schema:e})=>e.regions&&e.regions.length>0?(0,J.jsx)(UD,{regions:e.regions,pageType:`record`}):(0,J.jsx)(WD,{schema:e}),YD=({schema:e})=>e.regions&&e.regions.length>0?(0,J.jsx)(UD,{regions:e.regions,pageType:`home`}):(0,J.jsx)(WD,{schema:e}),XD=({schema:e})=>e.regions&&e.regions.length>0?(0,J.jsx)(UD,{regions:e.regions,pageType:`app`}):(0,J.jsx)(WD,{schema:e}),ZD=({schema:e})=>e.regions&&e.regions.length>0?(0,J.jsx)(UD,{regions:e.regions,pageType:`utility`}):(0,J.jsx)(WD,{schema:e}),QD=-1,$D=null;function eO(){let e=K.getVersion();return($D===null||QD!==e)&&($D=Ro(K.getKnownTypes().filter(e=>!K.deprecationFor(e,`html`)).map(e=>{let t=K.getMeta(e);return{type:e,namespace:t?.namespace,isContainer:t?.isContainer,inputs:t?.inputs}})),QD=e),$D}function tO(e){if(e.code!==`forbidden-tag`||!e.tag)return e;let t=K.deprecationFor(e.tag,`html`);if(!t)return e;let n=`${e.message}: it is deprecated on kind:'html' pages`;return{...e,message:t.replacement?`${n}. Instead, ${t.replacement}`:n}}var nO=({schema:e,className:t,...n})=>{let r=e.pageType||`record`,[i,a]=q.useReducer(e=>e+1,0);q.useEffect(()=>K.subscribe(a),[]);let o=e.title??e.label,{"data-obj-id":s,"data-obj-type":c,style:l}=n,u=mt(n),d=Ct(),f=Ee(e.aria,d),p=(0,q.useMemo)(()=>{let t=e.kind;if(t===`react`)return(0,J.jsx)(jD,{schema:e});if(t===`html`||t===`jsx`){let{tree:t,diagnostics:n}=Lo(e.source??``,eO()),r=n.filter(e=>e.severity===`error`).map(tO);return r.length?(0,J.jsxs)(`div`,{className:`m-4 rounded-md border border-destructive/40 bg-destructive/10 p-4 text-sm text-destructive`,children:[(0,J.jsxs)(`div`,{className:`font-semibold`,children:[`HTML page failed to compile (`,r.length,`)`]}),(0,J.jsx)(`ul`,{className:`mt-1 list-disc space-y-0.5 pl-5`,children:r.slice(0,8).map((e,t)=>(0,J.jsx)(`li`,{children:e.message},t))})]}):t?(0,J.jsx)(Ie,{schema:t}):null}let n=qD(e);if(n)return(0,J.jsx)(n,{schema:e});switch(r){case`home`:return(0,J.jsx)(YD,{schema:e});case`app`:return(0,J.jsx)(XD,{schema:e});case`utility`:return(0,J.jsx)(ZD,{schema:e});default:return(0,J.jsx)(JD,{schema:e})}},[e,r,i]),m=(e.regions??[]).some(e=>e.name?.toLowerCase()===`main`&&e.width===`full`),h=m?`max-w-none`:PD(r),g=q.useMemo(()=>r===`record`||VD(e),[e,r]),_=!!o&&!g,v=!!e.description&&r!==`record`,y=(0,J.jsx)(`div`,{className:Y(`min-h-full w-full bg-background p-3 md:p-4 lg:p-6`,t),"data-page-type":r,"data-obj-id":s,"data-obj-type":c,style:l,...u,...f,children:(0,J.jsxs)(`div`,{className:Y(m?`space-y-6`:`mx-auto space-y-6`,h),children:[(_||v)&&(0,J.jsxs)(`div`,{className:`space-y-2`,children:[_&&(0,J.jsx)(`h1`,{className:`text-3xl font-bold tracking-tight text-foreground`,children:o}),v&&(0,J.jsx)(`p`,{className:`text-muted-foreground`,children:e.description})]}),p]})});return e.variables&&e.variables.length>0?(0,J.jsxs)(Te,{definitions:e.variables,children:[(0,J.jsx)(ne,{}),y]}):y},rO={namespace:`ui`,label:`Page`,icon:`panels-top-left`,category:`layout`,inputs:[{name:`title`,type:`string`},{name:`description`,type:`string`},{name:`pageType`,type:`string`},{name:`object`,type:`string`},{name:`template`,type:`string`},{name:`regions`,type:`array`,itemType:`object`},{name:`variables`,type:`array`,itemType:`object`},{name:`children`,type:`array`,itemType:`component`}]};K.register(`page`,nO,rO),K.register(`app`,nO,{...rO,label:`App Page`}),K.register(`utility`,nO,{...rO,label:`Utility Page`}),K.register(`home`,nO,{...rO,label:`Home Page`}),K.register(`record`,nO,{...rO,label:`Record Page`});var iO=new Map,aO=new Map,oO=new Set,sO=0;function cO(e,t,n,r){return`${e}::${r===void 0?t??``:`${t??``}#${JSON.stringify(r)}`}::${n??``}`}function lO(){sO+=1;for(let e of oO)e()}function uO(e,t,n,r){return iO.get(cO(e,t,n,r))}function dO(e,t,n,r,i){let a=cO(e,t,n,i);iO.get(a)!==r&&(iO.set(a,r),lO())}async function fO(e,t,n,r,i,a){let o=cO(t,n,r,i),s=iO.get(o);if(s!==void 0)return s;let c=aO.get(o);if(c)return c;let l=(async()=>{let s={};if(n){if(!r)return 0;s=ye(n,r,a)}let c=i===void 0?s:qe(s,i)??s;try{let a=await e(t,{$filter:c,$top:1,$count:!0}),o=typeof a?.total==`number`?a.total:Array.isArray(a?.data)?a.data.length:Array.isArray(a)?a.length:0,s=typeof o==`number`?o:0;return dO(t,n,r,s,i),s}catch{return 0}finally{aO.delete(o)}})();return aO.set(o,l),l}function pO(e,t){let n=!1,r=`${e}::`;for(let e of iO.keys())e.startsWith(r)&&(t===void 0||e.endsWith(`::${t}`))&&(iO.delete(e),n=!0);n&&lO()}function mO(){iO.size!==0&&(iO.clear(),lO())}function hO(e){return oO.add(e),()=>{oO.delete(e)}}function gO(){return sO}function _O(){return(0,q.useSyncExternalStore)(hO,gO,gO)}var vO={get:uO,set:dO,fetch:fO,invalidate:pO,invalidateAll:mO,_reset:()=>{iO.clear(),aO.clear(),lO()}};Pe(e=>{e.objectName===`*`?vO.invalidateAll():vO.invalidate(e.objectName)});var yO=[{name:`children`,type:`slot`,description:`Child components rendered inside this container, in order`}],bO=650,xO=vt({"common.itemCount":`{{count}} items`,"common.itemCountOne":`{{count}} item`},`common.itemCount`),SO=e=>{let{"data-obj-id":t,"data-obj-type":n,style:r,...i}=e||{};return{designer:{"data-obj-id":t,"data-obj-type":n,style:r},rest:i}},CO=e=>e==null?``:typeof e==`string`?e:typeof e==`object`?e.default||e.value||``:String(e),wO={"zh-CN":{Details:`详情`,Related:`相关`,Activity:`活动`,History:`历史`,Notes:`备注`,Files:`文件`,Tasks:`任务`,"Open Tasks":`待办任务`,"Closed Tasks":`已完成任务`,Events:`日程`,Attachments:`附件`,Chatter:`讨论`,Discussion:`讨论`,Comments:`评论`,Overview:`概览`,Summary:`摘要`,Quotes:`报价单`,Products:`产品`,Contacts:`联系人`,Accounts:`客户`,Leads:`线索`,Opportunities:`商机`,Cases:`服务案例`,Campaigns:`营销活动`,Approvals:`审批`,Documents:`文档`,Emails:`邮件`,Calls:`通话`,Meetings:`会议`},"zh-TW":{Details:`詳情`,Related:`相關`,Activity:`活動`,History:`歷史`,Notes:`備註`,Files:`檔案`,Tasks:`任務`,"Open Tasks":`待辦任務`,"Closed Tasks":`已完成任務`,Events:`行程`,Attachments:`附件`,Chatter:`討論`,Discussion:`討論`,Comments:`評論`,Overview:`概覽`,Summary:`摘要`,Quotes:`報價單`,Products:`產品`,Contacts:`聯絡人`,Accounts:`客戶`,Leads:`線索`,Opportunities:`商機`,Cases:`服務案例`,Campaigns:`行銷活動`,Approvals:`審批`,Documents:`文件`,Emails:`郵件`,Calls:`通話`,Meetings:`會議`}},TO={Details:`detail.details`,Related:`detail.related`,Activity:`detail.activity`,History:`detail.history`,Attachments:`detail.attachments`,Approvals:`detail.approvalsPanelTitle`,Discussion:`detail.discussion`,Comments:`detail.comments`},EO=(e,t,n)=>{if(!e)return e;let r=wO[t],i=t.split(`-`)[0]===`zh`?wO[`zh-CN`]:void 0,a=r||i,o=e=>{let t=a?.[e];if(t!==void 0)return t;let r=TO[e];if(r===void 0)return;let i=n(r,e);return i===e?void 0:i},s=o(e);if(s!==void 0)return s;let c=/\s*(?:&|and|和)\s*/i;if(c.test(e)){let n=e.split(c).map(e=>e.trim()).map(o);if(n.every(e=>e!==void 0)){let e=t.startsWith(`zh`)?`与`:` & `;return n.join(e)}}return e},DO=(e,t,n,r,i)=>{if(!e?.fields||!t||!n)return;let a=(Array.isArray(e.fields)?e.fields.find(e=>e?.name===r):e.fields[r])?.options;if(!Array.isArray(a))return;let o=a.find(e=>String(e?.value??e)===i);return t(n,r,i,o?.label?String(o.label):i)},OO=(e,t,n,r)=>{if(!e||typeof e!=`object`)return e;let i=e,a;for(let e of Object.keys(i)){let o=i[e];if(o==null||typeof o==`object`)continue;let s=DO(t,n,r,e,String(o));s!==void 0&&(a||={...i},a[e]=s)}return a??i},kO=(e,t,n,r,i)=>!e||typeof e!=`string`?e||``:(e.includes(`{`)?e.replace(/\{([a-zA-Z0-9_.]+)\}/g,(e,a)=>{let o=a.split(`.`).reduce((e,t)=>e==null?e:e[t],t);if(o==null||typeof o==`object`)return``;let s=String(o);if(!a.includes(`.`)){let e=DO(n,r,i,a,s);if(e!==void 0)return e}return s}):e).replace(/\s+/g,` `).trim(),AO=e=>{let t=typeof e==`number`?e:Number(e);return Number.isFinite(t)?t>=1e4?`${Math.round(t/1e3)}k`:t>=1e3?`${(t/1e3).toFixed(1).replace(/\.0$/,``)}k`:String(t):String(e)},jO=(e,t=[])=>{if(!e)return t;let n=Array.isArray(e)?e:[e];for(let e of n){if(!e||typeof e!=`object`)continue;if(e.type===`record:related_list`||e.type===`record_related_list`){t.push(e);continue}let n=[e.children,e.properties?.children,e.properties?.items,e.body,e.items];for(let e of n)e&&jO(e,t)}return t},MO=e=>{if(!e)return!1;let t=Array.isArray(e)?e:[e];for(let e of t){if(!e||typeof e!=`object`)continue;if(e.type===`record:attachments`)return!0;let t=[e.children,e.properties?.children,e.properties?.items,e.body,e.items];for(let e of t)if(e&&MO(e))return!0}return!1};K.register(`tabs`,({schema:e,className:t,...n})=>{let{designer:r}=SO(n),i=Ct(),a=Ee(e?.aria,i),{t:o,language:s}=xO(),c=_t(),l=e?.items||[],u=e?.properties?.type||e?.tabStyle||`line`,d=(e?.position||`top`)===`left`,f=C(),p=f?.data?.id,m=f?.dataSource,h=E(),{variables:g}=W(),_=f?.data,v=l.map(t=>t?.visibleWhen===void 0||t?.visibleWhen===null||new we({..._&&typeof _==`object`?_:{},...h,current_user:h?.user,record:_,data:_,page:g}).evaluateCondition(t.visibleWhen,{onFault:n=>xe(`page:tabs`,e?.id,`visibleWhen`,t.visibleWhen,n,`page-component`)})),y=v.join(`,`),b=q.useMemo(()=>l.filter((e,t)=>v[t]),[l,y]),x=_O(),S=f?.objectName,w=q.useMemo(()=>{let e=new Map;return b.forEach((t,n)=>{if(t.count!==void 0&&t.count!==null&&t.count!==``)return;let r=jO(t.children),i=[];for(let e of r){let t=e?.properties?.objectName||e?.objectName;if(!t)continue;let n=e?.properties?.relationshipField||e?.relationshipField,r=e?.properties?.filter??e?.filter;i.push({objectName:t,relationshipField:n,...r==null?{}:{filter:r}})}S&&MO(t.children)&&i.push({objectName:`sys_attachment`,relationshipField:`attachments:${S}`,attachments:!0}),i.length>0&&e.set(n,i)}),e},[b,S]),T=q.useMemo(()=>JSON.stringify(Array.from(w.entries())),[w]);q.useEffect(()=>{if(!m||typeof m.find!=`function`||w.size===0)return;let e=!1;return(async()=>{let t=new Map;if(typeof m.getObjectSchema==`function`){let e=new Set;for(let t of w.values())for(let n of t)n.attachments||e.add(n.objectName);await Promise.all(Array.from(e).map(async e=>{try{t.set(e,(await m.getObjectSchema(e))?.fields)}catch{}}))}if(!e)for(let n of w.values())for(let r of n){let n=r.attachments?(e,t)=>m.find(e,{...t,$filter:{parent_object:S,parent_id:p}}):(e,t)=>m.find(e,t);if(vO.fetch(n,r.objectName,r.relationshipField,p,r.filter,r.attachments?void 0:t.get(r.objectName)).catch(()=>0),e)return}})(),()=>{e=!0}},[m,T,p,x]);let D=e=>{let t=w.get(e);if(!t||t.length===0)return;let n=0,r=!1;for(let e of t){let t=vO.get(e.objectName,e.relationshipField,p,e.filter);t!==void 0&&(n+=t,r=!0)}return r?n:void 0},O=b.map((e,t)=>({...e,value:typeof e.value==`string`&&e.value!==``?e.value:`tab-${t}`,labelStr:EO(xt(e.label,s),s,c),count:e.count!==void 0&&e.count!==null&&e.count!==``?e.count:D(t)})),k=e?.defaultTab,A=(k&&O.some(e=>e.value===k)?k:void 0)??O[0]?.value,j=e?.onTabChange,[M,N]=q.useState(A),ee=(M&&O.some(e=>e.value===M)?M:void 0)??O[0]?.value??``,P=Y(d&&`flex-col h-auto items-stretch p-1`,u===`card`&&`bg-transparent gap-1`,u===`pill`&&`bg-muted rounded-full p-1 gap-1`,u===`line`&&!d&&`h-auto rounded-none bg-transparent p-0 gap-4 border-b border-border w-full justify-start`,!d&&`sticky top-0 z-20 bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60`),F=()=>Y(d&&`justify-start`,u===`card`&&`data-[state=active]:bg-background data-[state=active]:border data-[state=active]:shadow-sm rounded-md`,u===`pill`&&`rounded-full data-[state=active]:bg-background`,u===`line`&&!d&&`rounded-none border-b-2 border-transparent bg-transparent px-1 pb-2.5 -mb-px shadow-none data-[state=active]:border-primary data-[state=active]:bg-transparent data-[state=active]:shadow-none data-[state=active]:text-foreground`);return(0,J.jsxs)(Vb,{value:ee,onValueChange:e=>{N(e),j?.(e)},orientation:d?`vertical`:`horizontal`,className:Y(t,d&&`flex gap-4 w-full`),...r,...a,children:[(O.length>1||e?.alwaysShowStrip===!0||e?.properties?.alwaysShowStrip===!0)&&(0,J.jsx)(Hb,{className:P,children:O.map(e=>(0,J.jsxs)(Ub,{value:e.value,className:F(),children:[e.icon&&(0,J.jsx)(Rx,{name:e.icon,className:`mr-1.5 h-3.5 w-3.5 shrink-0 opacity-70`,"aria-hidden":!0}),(0,J.jsx)(`span`,{children:e.labelStr}),e.count!==void 0&&e.count!==null&&e.count!==``&&Number(e.count)>0&&(0,J.jsx)(`span`,{className:`ml-1.5 inline-flex h-4 min-w-[1rem] items-center justify-center rounded-full bg-muted px-1 text-[10px] font-medium leading-none text-muted-foreground`,"aria-label":o(Number(e.count)===1?`common.itemCountOne`:`common.itemCount`,{count:AO(e.count)}),children:AO(e.count)})]},e.value))}),O.map(e=>(0,J.jsx)(Wb,{value:e.value,className:Y(O.length>1?`mt-3`:`mt-0`,d&&`mt-0 flex-1`),children:Ra(e.children)},e.value))]})},{namespace:`page`,skipFallback:!0,label:`Page Tabs`,category:`layout`,isContainer:!0,inputs:[{name:`items`,type:`array`,of:`object`,required:!0,description:`Tab definitions [{ label, value?, icon?, count?, visibleWhen?, children }] — value is the stable ?tab= URL token, count auto-derives from record:related_list descendants when omitted`},{name:`tabStyle`,type:`enum`,enum:[`line`,`card`,`pill`]},{name:`position`,type:`enum`,enum:[`top`,`left`]},{name:`alwaysShowStrip`,type:`boolean`,description:`Keep the tab strip visible when only one tab survives. Default false: a lone pill is clutter rather than an affordance, so a one-tab strip is hidden and its panel renders bare. Count the tabs AFTER each item visibleWhen predicate has been evaluated — a page authored with four tabs of which three are conditional reaches this rule whenever the other three are false.`}]}),K.register(`card`,({schema:e,className:t,...n})=>{let{designer:r}=SO(n),{language:i}=wt(),a=Ct(),o=Ee(e?.aria,a),s=xt(e?.title,i),c=e?.bordered!==!1,l=e?.body??e?.children,u=e?.footer;return(0,J.jsxs)(Rd,{className:Y(t,!c&&`border-0 shadow-none bg-transparent`),...r,...o,children:[s&&(0,J.jsx)(zd,{children:(0,J.jsx)(Bd,{children:s})}),La(l,e=>(0,J.jsx)(Hd,{children:Ra(e)})),La(u,e=>(0,J.jsx)(Ud,{className:`flex justify-between`,children:Ra(e)}))]})},{namespace:`page`,skipFallback:!0,label:`Page Card`,category:`layout`,isContainer:!0,inputs:[{name:`title`,type:[`string`,`object`],description:`Accepts an inline translation map ({ en, "zh-CN", … })`},{name:`bordered`,type:`boolean`},{name:`children`,type:`slot`,description:`Card content components, in order (the card body slot)`},{name:`footer`,type:`slot`}]}),K.register(`accordion`,({schema:e,className:t,...n})=>{let{designer:r}=SO(n),{language:i}=wt(),a=Ct(),o=Ee(e?.aria,a),s=_t(),c=e?.items||[],l=!!e?.allowMultiple,u=(e?.variant??e?.properties?.variant??`flush`)===`flush`?`border-b last:border-b-0`:void 0,d=c.map((e,t)=>({...e,value:`panel-${t}`,labelStr:EO(xt(e.label,i),i,s)})),f=d.filter(e=>e.collapsed===!1).map(e=>e.value),p=d.map(e=>(0,J.jsxs)(Vo,{value:e.value,className:u,children:[(0,J.jsx)(Ho,{className:`text-sm font-semibold tracking-tight hover:no-underline`,children:(0,J.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[e.icon&&(0,J.jsx)(Rx,{name:e.icon,className:`h-3.5 w-3.5 shrink-0 opacity-70`,"aria-hidden":!0}),(0,J.jsx)(`span`,{children:e.labelStr})]})}),(0,J.jsx)(Uo,{children:Ra(e.children)})]},e.value));return l?(0,J.jsx)(Bo,{type:`multiple`,defaultValue:f,className:t,...r,...o,children:p}):(0,J.jsx)(Bo,{type:`single`,collapsible:!0,defaultValue:f[0],className:t,...r,...o,children:p})},{namespace:`page`,skipFallback:!0,label:`Page Accordion`,category:`layout`,isContainer:!0,inputs:[{name:`items`,type:`array`,of:`object`,required:!0,description:`Panel definitions [{ label, icon?, collapsed?, children }] — collapsed: false opens a panel by default`},{name:`allowMultiple`,type:`boolean`},{name:`variant`,type:`enum`,enum:[`flush`,`card`]}]}),K.register(`section`,({schema:e,className:t,...n})=>{let{designer:r}=SO(n);return(0,J.jsx)(`section`,{className:Y(`space-y-4`,t),...r,children:Ra(e?.children||e?.body)})},{namespace:`page`,skipFallback:!0,label:`Page Section`,category:`layout`,isContainer:!0,inputs:yO});var NO=new Set;function PO(e,t,n){if(!n||typeof n!=`object`||Object.keys(n).length===0)return;let r=/\brecord\.([A-Za-z_][A-Za-z0-9_]*)/g,i=[];for(let e=r.exec(t);e;e=r.exec(t))!(e[1]in n)&&!i.includes(e[1])&&i.push(e[1]);if(i.length===0)return;let a=`missing::${String(e)}::${t}`;NO.has(a)||(NO.add(a),console.warn(`[page:header] action "${String(e)}" predicate references record field(s) not present in the record payload: ${i.join(`, `)}. Predicate: ${t}. This page bound a record payload that does not carry those key(s) — a projected or partial read ($select, an embedded card, a custom page passing a projected record) will not include them — so the predicate fails closed and the action stays hidden.`))}var FO=new Set;function IO(e,t,n,r){let i=`${t??``}::${e}::${n}`;if(FO.has(i))return;FO.add(i);let a=n===`no-object`?"this header is not bound to an object (no RecordContext `objectName`), so ids cannot be resolved at all":n===`no-metadata`?`no metadata could be read for object "${String(t)}" (no MetadataProvider in scope, or the object does not exist)`:`object "${String(t)}" declares no action by that name. Declared: ${r.length>0?r.join(`, `):`(none)`}`;console.warn(`[page:header] action id "${e}" did not resolve — ${a}. Nothing is rendered for it. \`PageHeaderProps.actions\` is a list of ACTION IDS (@objectstack/spec: \`z.array(z.string())\`, "Action IDs to show in header"), resolved against the object's own \`actions\` metadata the same way \`record:quick_actions\` resolves them.`)}var LO=new Set;function RO(e,t){let n=`${e??``}::${t.index}::${t.message}`;LO.has(n)||(LO.add(n),console.error(`[page:header] actions refused at index ${t.index} — ${t.message}. None of the authored actions is rendered. \`PageHeaderProps.actions\` is a list of ACTION IDS (@objectstack/spec: \`z.array(z.string())\`); an inline action object is a transition tolerance that must not share an array with ids.`))}K.register(`header`,({schema:e,className:t,...n})=>{let{designer:r}=SO(n),i=Ct(),a=Ee(e?.aria,i),o=C(),s=!!le()?.editing,c=E(),{execute:l}=Ce(),u=G(),d=By(),{objectLabel:f}=gt(),p=b(),{fieldOptionLabel:m}=St(),{language:h}=wt(),g=_t(),_=o?.refresh,[v,y]=q.useState(!1),x=q.useRef(void 0);q.useEffect(()=>()=>clearTimeout(x.current),[]);let S=q.useCallback(()=>{_&&(_(),y(!0),clearTimeout(x.current),x.current=setTimeout(()=>y(!1),bO))},[_]),w=e?.title??e?.properties?.title,D=e?.subtitle??e?.properties?.subtitle,O=o?.objectSchema,k=o?.objectName||O?.name,A=kO(xt(w,h),o?.data,O,m,k),M=kO(xt(D,h),o?.data,O,m,k),ee=e?.recordChrome===!1||e?.properties?.recordChrome===!1,P=e?.showStar!==!1&&e?.properties?.showStar!==!1,F=e?.showCopyId!==!1&&e?.properties?.showCopyId!==!1,I=e?.actions??e?.properties?.actions,te=o?.headerSystemActions,ne=q.useMemo(()=>Array.isArray(I)?I:[],[I]),re=q.useMemo(()=>ve(ne,void 0),[ne]),R=re.kind===`ids`&&re.ids.length>0&&!!k,{item:z,loading:B}=N(`object`,R?k:null),ie=q.useMemo(()=>{let e=Array.isArray(z?.actions)?z.actions:[],t=ve(ne,e);if(t.kind===`refused`)return RO(k,t),[];if(t.kind===`ids`&&(!R||!B)){let n=Array.from(new Set(e.map(e=>typeof e?.name==`string`?e.name:``).filter(e=>e!==``)));for(let{id:e}of t.unresolved)IO(e,k,k?z?`not-found`:`no-metadata`:`no-object`,n)}return t.actions},[ne,z,B,R,k]),V=O?.fields,H=q.useMemo(()=>{let e=c?.user,t=ft(o?.data,V);return{...c&&typeof c==`object`?c:{},user:e,os:c?.os??{user:e},ctx:{user:e,record:t,data:t,app:c?.app,features:c?.features}}},[c,o?.data,V]),oe=q.useCallback((e,t,n)=>Fe(e,o?.data??{},{fallback:n,scope:H,fields:V,warnOnError:!0,label:t}),[o?.data,H,V]),U=q.useMemo(()=>{let e=o?.data,t=t=>{if(!u(t?.requiredPermissions))return!1;let n=t?.visible;if(n!=null){if(typeof n==`boolean`){if(!n)return!1}else{let r=typeof n==`string`?n:n&&typeof n==`object`&&typeof n.source==`string`?n.source:null;if(r&&(PO(t?.name,r,e),!oe(n,`page:header action "${String(t?.name)}" visible`,!1)))return!1}}let r=t?.hidden;if(r!=null){if(typeof r==`boolean`){if(r)return!1}else{let n=typeof r==`string`?r:r&&typeof r==`object`&&typeof r.source==`string`?r.source:null;if(n&&(PO(t?.name,n,e),oe(r,`page:header action "${String(t?.name)}" hidden`,!1)))return!1}}return!0},n=e=>ge(e,`record_header`)||ge(e,`record_more`),r=ie.filter(e=>n(e)&&t(e)),i=Array.isArray(te)?te.filter(t):[],a=new Set,s=[];for(let e of[...r,...i]){let t=e?.name||e?.id||``;t&&a.has(t)||(t&&a.add(t),s.push(e))}return s.some(e=>e?.order!==void 0||e?.variant===`primary`)?[...s].sort((e,t)=>{let n=(e?.order??0)-(t?.order??0);return n===0?(e?.variant===`primary`?0:1)-(t?.variant===`primary`?0:1):n}):s},[ie,te,o?.data,oe]),W=q.useMemo(()=>U.map((e,t)=>p(o?.objectName,e,{fallbackLabel:typeof e?.id==`string`&&e.id||`Action ${t+1}`})),[U,p,o?.objectName]),se=o?.data,ce=q.useCallback(e=>{let{params:t,...n}=e??{},r=Array.isArray(t)?void 0:Wx({...n,params:t},n.type||n.actionType,`page:header`);if(!se||typeof se!=`object`){l(t!=null&&!Array.isArray(t)&&r===void 0?n:e);return}let i={...n};Array.isArray(t)?(!i.actionParams&&t.length>0&&(i.actionParams=t),i.params={_rowRecord:se}):i.params={...r||{},_rowRecord:se},l(i)},[se,l]),ue=()=>{if(W.length===0)return null;let t=e=>e?.label??``,n=e=>typeof e==`number`&&Number.isSafeInteger(e)&&e>0?e:void 0,r=d?n(e?.mobileMaxVisible??e?.properties?.mobileMaxVisible)??1:n(e?.maxVisible??e?.properties?.maxVisible)??3,i=e=>Array.isArray(e?.locations)&&e.locations.length>0&&e.locations.includes(`record_more`)&&!e.locations.includes(`record_header`),a=W.filter(i),o=W.filter(e=>!i(e)&&e?.component===`action:menu`),c=W.filter(e=>!i(e)&&e?.component!==`action:menu`),l=c.slice(0,r),u=[...c.slice(r),...o,...a],f=u.length>0,p=(e,t)=>e==null?!1:typeof e==`boolean`?e:(typeof e==`string`?e:e&&typeof e==`object`&&typeof e.source==`string`&&e.source)?oe(e,`page:header action "${String(t)}" disabled`,!0):!1,m=e=>s&&e?.disableDuringInlineEdit===!0||p(e?.disabled,e?.name??e?.id);return(0,J.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 shrink-0`,role:`toolbar`,"aria-label":g(`detail.pageHeaderActions`,`Page header actions`),children:[l.map((e,n)=>{let r=t(e),i=e.variant===`primary`?`default`:e.variant||`default`,a=e.size||`sm`,o=m(e),s=typeof e.icon==`string`?e.icon:null;return(0,J.jsxs)(X,{variant:i,size:a,disabled:o,className:`gap-2`,onClick:()=>{if(typeof e.onClick==`function`){e.onClick();return}ce(e)},children:[s&&(0,J.jsx)(Rx,{name:s,className:`h-4 w-4`}),(0,J.jsx)(`span`,{children:r})]},e.name||e.id||`header-action-${n}`)}),f&&(0,J.jsxs)(Jh,{children:[(0,J.jsx)(Yh,{asChild:!0,children:(0,J.jsx)(X,{variant:`outline`,size:`sm`,className:`gap-1 px-2`,"aria-label":g(`detail.moreActions`,`More actions`),children:(0,J.jsx)(Ni,{className:`h-4 w-4`})})}),(0,J.jsx)(eg,{align:`end`,className:`w-44`,children:u.map((e,n)=>{let r=t(e),i=m(e),a=typeof e.icon==`string`?e.icon:null,o=e.variant===`destructive`||e.name===`sys_delete`;return(0,J.jsxs)(tg,{disabled:i,onSelect:t=>{if(t.preventDefault(),typeof e.onClick==`function`){e.onClick();return}ce(e)},className:Y(`gap-2`,o&&`text-destructive focus:text-destructive focus:bg-destructive/10`),children:[a&&(0,J.jsx)(Rx,{name:a,className:`h-4 w-4`}),(0,J.jsx)(`span`,{children:r})]},e.name||e.id||`overflow-action-${n}`)})})]})]})},de=()=>{if(!_)return null;let e=g(`common.refresh`,`Refresh`);return(0,J.jsx)(Uy,{children:(0,J.jsxs)(Wy,{children:[(0,J.jsx)(Gy,{asChild:!0,children:(0,J.jsx)(X,{variant:`outline`,size:`sm`,className:`gap-1 px-2`,onClick:S,"aria-label":e,"data-page-refresh":!0,children:(0,J.jsx)(ia,{className:Y(`h-4 w-4`,v&&`animate-spin`)})})}),(0,J.jsx)(Ky,{children:e})]})})},fe=e=>{let t=ue()??e,n=de();return n?(0,J.jsxs)(`div`,{className:`flex items-center gap-2 shrink-0`,children:[t,n]}):t};if(o?.data&&o?.objectSchema&&!ee){let e=o.data,n=o.objectSchema,i=o.objectName||n?.name,s=CO(n?.label)||n?.name||o.objectName||``,c=i?f({name:i,label:s}):s||void 0,l=T(n?.titleFormat,OO(e,n,m,i)),u=e?.id??e?._id,d=e=>e===`Untitled`||u!=null&&e===`Record #${u}`,p=(()=>{let t=j(n,e,{deriveFromRecordKeys:!1});return d(t)?``:t})(),h=(()=>{if(p||ht(n))return``;let t=j(n,e);return d(t)?``:t})(),g=(c&&e?.id?`${c} ${String(e.id).slice(0,8)}`:``)||c||``,_=(()=>{let t=ae(e,L(n));return t&&!d(t)?t:``})(),v=A||_||l||p||h,y=(typeof v==`string`?v.trim()?v:``:ae({value:v},`value`)??``)||g;return(0,J.jsxs)(`header`,{className:Y(`flex flex-col sm:flex-row sm:flex-wrap items-start sm:items-center justify-between gap-3 sm:gap-4 pb-4 border-b`,t),...r,...a,children:[(0,J.jsxs)(`div`,{className:`flex flex-col min-w-0 sm:min-w-48 flex-1`,children:[(0,J.jsx)(dD,{title:y,objectLabel:c,resourceId:e?.id?String(e.id):void 0,showStar:P,showCopyId:F,isFavorite:o?.isFavorite,onToggleFavorite:o?.onToggleFavorite?()=>o.onToggleFavorite():void 0}),M&&(0,J.jsx)(`p`,{className:`text-sm text-muted-foreground mt-1`,children:M})]}),fe((0,J.jsx)(`div`,{"data-page-actions-slot":!0,className:`shrink-0`}))]})}return(0,J.jsx)(`header`,{className:Y(`flex flex-col gap-2 pb-4 border-b`,t),...r,...a,children:(0,J.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[(0,J.jsxs)(`div`,{className:`flex flex-col`,children:[A&&(0,J.jsx)(`h1`,{className:`text-2xl font-semibold tracking-tight`,children:A}),M&&(0,J.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:M})]}),fe((0,J.jsx)(`div`,{"data-page-actions-slot":!0}))]})})},{namespace:`page`,skipFallback:!0,label:`Page Header`,category:`layout`,inputs:[{name:`title`,type:[`string`,`object`],description:`Supports {field} interpolation and inline translation maps; falls back to the record title`},{name:`subtitle`,type:[`string`,`object`],description:`Same interpolation as Title`},{name:`actions`,type:`array`,of:`string`,description:`Action IDS — the names of actions declared on the object's own metadata — rendered in the header before any host-injected system actions. An id whose action declares neither record_header nor record_more in its locations renders nowhere.`},{name:`breadcrumb`,type:`boolean`,description:`Ignored: the header draws no breadcrumb, and the key is being retired from the contract. Leave it out.`},{name:`recordChrome`,type:`boolean`,description:`Set false for the bare h1 header on non-record pages`},{name:`showStar`,type:`boolean`},{name:`showCopyId`,type:`boolean`},{name:`maxVisible`,type:`number`,description:`How many header actions render as inline buttons on desktop before the rest fold into the overflow menu. A positive integer — the contract rejects 0 and fractional values. Two kinds of action are routed to the overflow menu regardless of this budget and never occupy an inline slot: an action whose locations declare record_more without record_header, and any action with component action:menu.`},{name:`mobileMaxVisible`,type:`number`,description:`The same inline-button budget on mobile viewports, where horizontal room is scarce. A positive integer, defaulting to 1; the desktop half is Max Inline Actions, and the overflow routing rules stated there apply unchanged.`}]}),K.register(`footer`,({schema:e,className:t,...n})=>{let{designer:r}=SO(n);return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Dy,{className:`my-4`}),(0,J.jsx)(`footer`,{className:Y(`flex items-center justify-between text-sm text-muted-foreground`,t),...r,children:Ra(e?.children||e?.body)})]})},{namespace:`page`,skipFallback:!0,label:`Page Footer`,category:`layout`,isContainer:!0,inputs:yO}),K.register(`sidebar`,({schema:e,className:t,...n})=>{let{designer:r}=SO(n);return(0,J.jsx)(`aside`,{className:Y(`flex flex-col gap-4 w-full md:w-80 shrink-0`,t),...r,children:Ra(e?.children||e?.body)})},{namespace:`page`,skipFallback:!0,label:`Page Sidebar`,category:`layout`,isContainer:!0,inputs:yO}),[`aside`,`main`,`header`,`nav`,`footer`,`section`,`article`].forEach(e=>{let t=(0,q.forwardRef)(({schema:t,className:n,...r},i)=>{let{"data-obj-id":a,"data-obj-type":o,style:s,...c}=r;return(0,J.jsx)(e,{ref:i,className:n,...c,"data-obj-id":a,"data-obj-type":o,style:s,children:Ra(t.children)})});t.displayName=`Semantic${e.charAt(0).toUpperCase()+e.slice(1)}`,K.register(e,t,{namespace:`ui`,label:e.charAt(0).toUpperCase()+e.slice(1),category:`layout`,isContainer:!0,inputs:[{name:`className`,type:`string`},{name:`children`,type:`slot`}]})}),K.register(`aspect-ratio`,({schema:e,...t})=>{let{"data-obj-id":n,"data-obj-type":r,style:i,...a}=t;return(0,J.jsx)(os,{ratio:e.ratio||16/9,className:e.className,...a,"data-obj-id":n,"data-obj-type":r,style:i,children:e.image?(0,J.jsx)(`img`,{src:e.image,alt:e.alt||``,loading:`lazy`,className:`rounded-md object-cover w-full h-full`}):Ra(e.children)})},{namespace:`ui`,label:`Aspect Ratio`,isContainer:!0,inputs:[{name:`ratio`,type:`number`},{name:`image`,type:`string`},{name:`alt`,type:`string`},{name:`className`,type:`string`},{name:`children`,type:`slot`,description:"Content rendered inside the ratio box when no `image` is set"}],defaultProps:{ratio:16/9}});var zO={name:`children`,type:`slot`};K.register(`sidebar-provider`,({schema:e,...t})=>(0,J.jsx)(tb,{...t,children:Ra(e.children)}),{namespace:`ui`,label:`Sidebar Provider`,inputs:[{name:`defaultOpen`,type:`boolean`},zO],defaultProps:{defaultOpen:!0}}),K.register(`sidebar`,({schema:e,...t})=>(0,J.jsx)(nb,{...t,children:Ra(e.children)}),{namespace:`ui`,label:`Sidebar`,inputs:[{name:`collapsible`,type:`enum`,enum:[`offcanvas`,`icon`,`none`]},{name:`side`,type:`enum`,enum:[`left`,`right`]},{name:`variant`,type:`enum`,enum:[`sidebar`,`floating`,`inset`]},zO],defaultProps:{collapsible:`icon`,side:`left`,variant:`sidebar`}}),K.register(`sidebar-header`,({schema:e,...t})=>(0,J.jsx)(sb,{...t,children:Ra(e.children)}),{namespace:`ui`,label:`Sidebar Header`,inputs:[zO]}),K.register(`sidebar-content`,({schema:e,...t})=>(0,J.jsx)(ub,{...t,children:Ra(e.children)}),{namespace:`ui`,label:`Sidebar Content`,inputs:[zO]}),K.register(`sidebar-group`,({schema:e,...t})=>{let n=Ct();return(0,J.jsxs)(db,{...t,children:[e.label&&(0,J.jsx)(fb,{children:s(e.label,n)}),(0,J.jsx)(mb,{children:Ra(e.children)})]})},{namespace:`ui`,label:`Sidebar Group`,inputs:[{name:`label`,type:`string`},zO],defaultProps:{label:`Menu`}}),K.register(`sidebar-menu`,({schema:e,...t})=>(0,J.jsx)(hb,{...t,children:Ra(e.children)}),{namespace:`ui`,label:`Sidebar Menu`,inputs:[zO]}),K.register(`sidebar-menu-item`,({schema:e,...t})=>(0,J.jsx)(gb,{...t,children:Ra(e.children)}),{namespace:`ui`,label:`Sidebar Menu Item`,inputs:[zO]}),K.register(`sidebar-menu-button`,({schema:e,...t})=>{let{style:n,...r}=t;return(0,J.jsx)(vb,{isActive:e.active,...yT(r),style:n,children:Ra(e.children)})},{namespace:`ui`,label:`Sidebar Menu Button`,inputs:[{name:`active`,type:`boolean`},{name:`size`,type:`enum`,enum:[`default`,`sm`,`lg`]},{name:`tooltip`,type:`string`},zO],defaultProps:{size:`default`}}),K.register(`sidebar-footer`,({schema:e,...t})=>(0,J.jsx)(cb,{...t,children:Ra(e.children)}),{namespace:`ui`,label:`Sidebar Footer`,inputs:[zO]}),K.register(`sidebar-inset`,({schema:e,...t})=>(0,J.jsx)(ab,{...t,children:Ra(e.children)}),{namespace:`ui`,label:`Sidebar Inset`,inputs:[zO]}),K.register(`sidebar-trigger`,({className:e,...t})=>{let{style:n,...r}=t;return(0,J.jsx)(rb,{className:e,...yT(r),style:n})},{namespace:`ui`,label:`Sidebar Trigger`,inputs:[{name:`className`,type:`string`}]});var BO=`flex h-14 sm:h-16 shrink-0 items-center gap-2 border-b px-3 sm:px-4`;function VO({crumb:e,isLast:t}){let n=pt(e.label)??``;return e.siblings&&e.siblings.length>0?(0,J.jsxs)(Jh,{children:[(0,J.jsxs)(Yh,{className:`flex items-center gap-1`,children:[t?(0,J.jsx)(`span`,{className:`font-semibold`,children:n}):(0,J.jsx)(`span`,{children:n}),(0,J.jsx)(mi,{className:`h-3 w-3`})]}),(0,J.jsx)(eg,{align:`start`,children:e.siblings.map((e,t)=>(0,J.jsx)(tg,{asChild:!0,children:(0,J.jsx)(`a`,{href:e.href,children:e.label})},t))})]}):t?(0,J.jsx)(gs,{children:n}):(0,J.jsx)(hs,{href:e.href||`#`,children:n})}K.register(`header-bar`,({schema:e,className:t,style:n,...r})=>(0,J.jsxs)(`header`,{...mt(r),className:Y(BO,e.className),style:n,children:[(0,J.jsx)(rb,{}),(0,J.jsx)(Dy,{orientation:`vertical`,className:`mr-2 h-4`}),(0,J.jsx)(fs,{children:(0,J.jsx)(ps,{children:e.crumbs?.map((t,n)=>{let r=Tx(t.icon);return(0,J.jsxs)(q.Fragment,{children:[(0,J.jsxs)(ms,{children:[r&&(0,J.jsx)(r,{className:`h-4 w-4`}),(0,J.jsx)(VO,{crumb:t,isLast:n===e.crumbs.length-1})]}),n<e.crumbs.length-1&&(0,J.jsx)(_s,{})]},n)})})}),(0,J.jsxs)(`div`,{className:`ml-auto flex items-center gap-2`,children:[e.search?.enabled&&(0,J.jsxs)(`div`,{className:`relative`,children:[(0,J.jsx)(la,{className:`absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground`}),(0,J.jsx)(Pv,{type:`search`,placeholder:e.search.placeholder,className:`pl-8 w-[200px] lg:w-[300px]`}),e.search.shortcut&&(0,J.jsx)(`kbd`,{className:`pointer-events-none absolute right-2 top-2 hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[10px] font-medium opacity-100 sm:flex`,children:e.search.shortcut})]}),e.actions?.map((e,t)=>(0,J.jsx)(Ie,{schema:Ke(e)},t)),e.rightContent?(0,J.jsx)(Ie,{schema:Ke(e.rightContent)}):null]})]}),{namespace:`ui`,label:`Header Bar`,inputs:[{name:`crumbs`,type:`array`},{name:`search`,type:`object`},{name:`actions`,type:`array`},{name:`rightContent`,type:`object`}],defaultProps:{crumbs:[{label:`Home`,href:`#`},{label:`Current Page`}]}}),K.register(`badge`,({schema:e,...t})=>{let{"data-obj-id":n,"data-obj-type":r,style:i,...a}=t;return(0,J.jsx)(ds,{variant:e.variant,className:e.className,...a,"data-obj-id":n,"data-obj-type":r,style:i,children:e.label||Ra(e.children)})},{namespace:`ui`,label:`Badge`,inputs:[{name:`label`,type:`string`},{name:`variant`,type:`enum`,enum:[`default`,`secondary`,`destructive`,`outline`]},{name:`className`,type:`string`},{name:`children`,type:`slot`,description:"Rich label content, rendered when `label` is not set"}],defaultProps:{label:`Badge`,variant:`default`}}),K.register(`avatar`,({schema:e,className:t,...n})=>(0,J.jsxs)(ss,{className:t,...n,children:[(0,J.jsx)(cs,{src:e.src,alt:e.alt}),(0,J.jsx)(ls,{children:e.fallback})]}),{namespace:`ui`,label:`Avatar`,inputs:[{name:`src`,type:`string`},{name:`alt`,type:`string`},{name:`fallback`,type:`string`},{name:`className`,type:`string`}],defaultProps:{fallback:`CN`,alt:`Avatar`}}),K.register(`alert`,({schema:e,className:t,...n})=>(0,J.jsxs)(rs,{variant:e.variant,className:t,...n,children:[(0,J.jsx)(is,{children:e.title}),(0,J.jsx)(as,{children:e.description||Ra(e.children)})]}),{namespace:`ui`,label:`Alert`,inputs:[{name:`title`,type:`string`,required:!0},{name:`description`,type:`string`},{name:`variant`,type:`enum`,enum:[`default`,`destructive`]},{name:`className`,type:`string`},{name:`children`,type:`slot`,description:"Rich description content, rendered when `description` is not set"}],defaultProps:{title:`Alert Title`,description:`This is an alert message.`,variant:`default`}}),K.register(`list`,({schema:e,className:t,...n})=>{let r=g(e.bind),i=Array.isArray(r)?r:Array.isArray(e.items)?e.items:[],a=e.ordered?`ol`:`ul`,o=e.ordered?`list-decimal`:`list-disc`;return(0,J.jsxs)(`div`,{className:Y(`space-y-2`,e.wrapperClass),children:[e.title&&(0,J.jsx)(`h3`,{className:`text-lg font-semibold tracking-tight`,children:e.title}),(0,J.jsx)(a,{className:Y(`ml-6 [&>li]:mt-2`,o,t),...n,children:i.map((e,t)=>(0,J.jsx)(`li`,{className:Y(typeof e==`object`&&e.className),children:typeof e==`string`?e:Ra(e.content)},t))})]})},{namespace:`ui`,label:`List`,inputs:[{name:`title`,type:`string`},{name:`ordered`,type:`boolean`},{name:`items`,type:`array`,description:`Array of strings or objects with content`},{name:`className`,type:`string`}],defaultProps:{ordered:!1,items:[`First item`,`Second item`,`Third item`],className:`text-sm`}});var HO=({node:e,onNodeClick:t})=>{let[n,r]=(0,q.useState)(!1),i=e.children&&e.children.length>0;return(0,J.jsxs)(`div`,{className:`relative`,children:[(0,J.jsxs)(`div`,{className:Y(`group flex items-center py-1.5 px-2 rounded-sm cursor-pointer transition-colors`,`hover:bg-accent hover:text-accent-foreground`,n&&i&&`bg-accent/50`),onClick:()=>{t&&t(e)},children:[i?(0,J.jsx)(`button`,{type:`button`,onClick:e=>{e.stopPropagation(),r(!n)},className:`mr-2 p-0.5 h-5 w-5 flex items-center justify-center rounded-sm hover:bg-muted text-muted-foreground transition-colors`,children:n?(0,J.jsx)(mi,{className:`h-4 w-4`}):(0,J.jsx)(gi,{className:`h-4 w-4`})}):(0,J.jsx)(`span`,{className:`mr-2 w-5 flex justify-center`,children:(0,J.jsx)(`div`,{className:`w-1 h-1 rounded-full bg-muted-foreground/50`})}),e.icon===`folder`||i?n?(0,J.jsx)(Bi,{className:`h-4 w-4 mr-2 text-primary`}):(0,J.jsx)(Vi,{className:`h-4 w-4 mr-2 text-muted-foreground group-hover:text-primary transition-colors`}):(0,J.jsx)(Ri,{className:`h-4 w-4 mr-2 text-muted-foreground group-hover:text-primary transition-colors`}),(0,J.jsx)(`span`,{className:Y(`text-sm transition-colors`,n?`font-medium text-foreground`:`text-muted-foreground group-hover:text-foreground`),children:e.label})]}),i&&n&&(0,J.jsx)(`div`,{className:`relative ml-[11px] pl-3 border-l border-border animate-in slide-in-from-left-2 fade-in duration-200`,children:e.children.map(e=>(0,J.jsx)(HO,{node:e,onNodeClick:t},e.id))})]})};K.register(`tree-view`,({schema:e,className:t,...n})=>{let r=t=>{e.onNodeClick&&e.onNodeClick(t)},i=g(e.bind)||e.nodes||[],a=Array.isArray(i)?i:[];return(0,J.jsxs)(`div`,{className:Y(`relative border rounded-lg p-3 bg-card text-card-foreground`,t),...n,children:[e.title&&(0,J.jsx)(`div`,{className:`flex items-center gap-2 mb-3 pb-2 border-b`,children:(0,J.jsx)(`h3`,{className:`text-sm font-semibold`,children:e.title})}),(0,J.jsx)(`div`,{className:`space-y-1`,children:a.map(e=>(0,J.jsx)(HO,{node:e,onNodeClick:r},e.id))})]})},{namespace:`ui`,label:`Tree View`,inputs:[{name:`title`,type:`string`},{name:`nodes`,type:`array`,description:`Array of { id, label, icon, children, data }`},{name:`className`,type:`string`}],defaultProps:{title:`File Explorer`,nodes:[{id:`1`,label:`Documents`,icon:`folder`,children:[{id:`1-1`,label:`Resume.pdf`,icon:`file`},{id:`1-2`,label:`Cover Letter.docx`,icon:`file`}]},{id:`2`,label:`Photos`,icon:`folder`,children:[{id:`2-1`,label:`Vacation`,icon:`folder`,children:[{id:`2-1-1`,label:`Beach.jpg`,icon:`file`}]},{id:`2-2`,label:`Family.jpg`,icon:`file`}]},{id:`3`,label:`README.md`,icon:`file`}]}});var UO=e=>e?Lx(e):null;K.register(`statistic`,({schema:e})=>{let t=e.icon?UO(e.icon):null;return(0,J.jsxs)(`div`,{className:Y(`group relative flex flex-col p-4 sm:p-5 md:p-6 rounded-xl border bg-card text-card-foreground shadow-sm`,e.className),children:[(0,J.jsxs)(`div`,{className:`flex items-center justify-between mb-2`,children:[e.label&&(0,J.jsx)(`p`,{className:`text-sm font-medium text-muted-foreground`,children:e.label}),t&&(0,J.jsx)(t,{className:`h-4 w-4 text-muted-foreground`})]}),(0,J.jsx)(`div`,{className:`flex items-baseline gap-2`,children:(0,J.jsx)(`h3`,{className:`text-2xl font-bold tracking-tight`,children:e.value})}),(e.trend||e.description)&&(0,J.jsxs)(`div`,{className:`mt-1 flex items-center text-xs text-muted-foreground`,children:[e.trend===`up`&&(0,J.jsx)(ba,{className:`mr-1 h-3 w-3 text-emerald-500`}),e.trend===`down`&&(0,J.jsx)(ya,{className:`mr-1 h-3 w-3 text-rose-500`}),e.trend===`neutral`&&(0,J.jsx)(Zi,{className:`mr-1 h-3 w-3`}),(0,J.jsx)(`span`,{className:Y(e.trend===`up`&&`text-emerald-500 font-medium`,e.trend===`down`&&`text-rose-500 font-medium`),children:e.description})]})]})},{namespace:`ui`,label:`Statistic`,category:`data-display`,icon:`Activity`,inputs:[{name:`label`,type:`string`},{name:`value`,type:`string`},{name:`description`,type:`string`},{name:`trend`,type:`enum`,enum:[{label:`Up`,value:`up`},{label:`Down`,value:`down`},{label:`Neutral`,value:`neutral`}]}],defaultProps:{label:`Total Revenue`,value:`$45,231.89`,trend:`up`,description:`+20.1% from last month`}});var WO=`/`;function GO(e,t){let n=e.map(e=>({kind:`item`,item:e}));if(typeof t!=`number`||!Number.isFinite(t))return n;let r=Math.floor(t);if(r<1||e.length<=r)return n;let i=Math.min(1,r-1),a=r-i;return[...e.slice(0,i).map(e=>({kind:`item`,item:e})),{kind:`ellipsis`},...e.slice(e.length-a).map(e=>({kind:`item`,item:e}))]}K.register(`breadcrumb`,({schema:e,...t})=>{let{"data-obj-id":n,"data-obj-type":r,style:i,...a}=t,o=e.separator??WO,s=GO(e.items??[],e.maxItems);return(0,J.jsx)(fs,{className:e.className,...a,"data-obj-id":n,"data-obj-type":r,style:i,children:(0,J.jsx)(ps,{children:s.map((e,t)=>{let n=t===s.length-1,r=!n&&(0,J.jsx)(_s,{children:o});if(e.kind===`ellipsis`)return(0,J.jsxs)(`div`,{className:`flex items-center`,children:[(0,J.jsx)(ms,{children:(0,J.jsx)(vs,{})}),r]},t);let i=e.item,a=Tx(i.icon);return(0,J.jsxs)(`div`,{className:`flex items-center`,children:[(0,J.jsxs)(ms,{children:[a&&(0,J.jsx)(a,{className:`h-4 w-4`}),n?(0,J.jsx)(gs,{children:pt(i.label)??``}):(0,J.jsx)(hs,{href:i.href,children:pt(i.label)??``})]}),r]},t)})})})},{namespace:`ui`,label:`Breadcrumb`,inputs:[{name:`className`,type:`string`},{name:`separator`,type:`string`},{name:`maxItems`,type:`number`}],defaultProps:{items:[{label:`Home`,href:`/`},{label:`Products`,href:`/products`},{label:`Product`}]}}),K.register(`kbd`,({schema:e,...t})=>{let{"data-obj-id":n,"data-obj-type":r,style:i,...a}=t,o=Array.isArray(e.keys)?e.keys:[e.keys||e.label||`K`];return(0,J.jsx)(`div`,{className:Y(`inline-flex flex-wrap gap-1`,e.className),children:o.map((e,t)=>(0,J.jsx)(`kbd`,{className:`pointer-events-none inline-flex h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[10px] font-medium text-muted-foreground opacity-100`,...a,...t===0?{"data-obj-id":n,"data-obj-type":r,style:i}:{},children:e},t))})},{namespace:`ui`,label:`Keyboard Key`,inputs:[{name:`label`,type:`string`},{name:`className`,type:`string`}],defaultProps:{label:`K`}}),K.register(`progress`,({schema:e,className:t,...n})=>(0,J.jsx)(py,{value:e.value,className:t,...n}),{namespace:`ui`,label:`Progress`,inputs:[{name:`value`,type:`number`},{name:`className`,type:`string`}],defaultProps:{value:50,className:`w-full`}}),K.register(`skeleton`,({schema:e,className:t,...n})=>(0,J.jsx)(Hy,{className:t,...n,style:{width:e.width,height:e.height}}),{namespace:`ui`,label:`Skeleton`,inputs:[{name:`width`,type:`string`},{name:`height`,type:`string`},{name:`className`,type:`string`}],defaultProps:{width:`100%`,height:`20px`,className:`rounded-md`}});var KO={top_left:`top-left`,top_center:`top-center`,top_right:`top-right`,bottom_left:`bottom-left`,bottom_center:`bottom-center`,bottom_right:`bottom-right`,"top-left":`top-left`,"top-center":`top-center`,"top-right":`top-right`,"bottom-left":`bottom-left`,"bottom-center":`bottom-center`,"bottom-right":`bottom-right`};K.register(`toaster`,({schema:e})=>{let t=e?.position?KO[e.position]:void 0,n=typeof e?.limit==`number`&&e.limit>0?e.limit:void 0;return(0,J.jsx)(jb,{...t?{position:t}:{},...n?{visibleToasts:n}:{}})},{namespace:`ui`,label:`Toaster`,inputs:[{name:`position`,type:`enum`,enum:[`top-left`,`top-center`,`top-right`,`bottom-left`,`bottom-center`,`bottom-right`]},{name:`limit`,type:`number`}],defaultProps:{}}),K.register(`loading`,({schema:e,className:t,...n})=>{let r=e.size||`md`,i=e.fullscreen||!1,a=(0,J.jsxs)(`div`,{className:Y(`flex flex-col items-center justify-center gap-2`,t),children:[(0,J.jsx)(oD,{className:Y(r===`sm`&&`h-4 w-4`,r===`md`&&`h-8 w-8`,r===`lg`&&`h-12 w-12`,r===`xl`&&`h-16 w-16`)}),e.text&&(0,J.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:e.text})]});return i?(0,J.jsx)(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center bg-background/80 backdrop-blur-sm`,...n,children:a}):(0,J.jsx)(`div`,{className:`flex items-center justify-center p-8`,...n,children:a})},{namespace:`ui`,label:`Loading`,inputs:[{name:`text`,type:`string`},{name:`size`,type:`enum`,enum:[`sm`,`md`,`lg`,`xl`]},{name:`fullscreen`,type:`boolean`},{name:`className`,type:`string`}],defaultProps:{text:`Loading...`,size:`md`,fullscreen:!1}}),K.register(`toast`,({schema:e})=>(0,J.jsx)(X,{onClick:()=>{(e.variant===`success`?kt.success:e.variant===`error`?kt.error:e.variant===`warning`?kt.warning:e.variant===`info`?kt.info:kt)(e.title||`Notification`,{description:e.description,duration:e.duration})},variant:e.buttonVariant,className:e.className,children:e.buttonLabel||`Show Toast`}),{namespace:`ui`,label:`Toast`,inputs:[{name:`title`,type:`string`},{name:`description`,type:`string`},{name:`variant`,type:`enum`,enum:[`default`,`success`,`warning`,`error`,`info`]},{name:`duration`,type:`number`},{name:`buttonLabel`,type:`string`},{name:`buttonVariant`,type:`enum`,enum:[`default`,`secondary`,`destructive`,`outline`,`ghost`,`link`],description:"Variant for the trigger button this node renders. Exactly the six keys of the Button variant group: `cva` contributes no variant class for any other value, so an out-of-set value renders a button with no background and no text colour, while an empty string silently renders the default look."},{name:`className`,type:`string`}],defaultProps:{title:`Notification`,buttonLabel:`Show Toast`,variant:`default`,duration:5e3}}),K.register(`spinner`,({schema:e,className:t,...n})=>{let{"data-obj-id":r,"data-obj-type":i,style:a,...o}=n;return(0,J.jsx)(Ji,{className:Y(`animate-spin`,{sm:`h-4 w-4`,md:`h-6 w-6`,lg:`h-8 w-8`,xl:`h-12 w-12`}[e.size||`md`],e.className,t),...mt(o),"data-obj-id":r,"data-obj-type":i,style:a})},{namespace:`ui`,label:`Spinner`,inputs:[{name:`size`,type:`enum`,enum:[`sm`,`md`,`lg`,`xl`]},{name:`className`,type:`string`}],defaultProps:{size:`md`}}),K.register(`empty`,({schema:e,...t})=>{let{"data-obj-id":n,"data-obj-type":r,style:i,action:a,icon:o,...s}=t,c=e.action==null?void 0:(0,J.jsx)(Ie,{schema:Ke(e.action)});return(0,J.jsx)(hD,{title:e.title||`No data`,description:e.description,className:e.className,action:c,...s,"data-obj-id":n,"data-obj-type":r,style:i})},{namespace:`ui`,label:`Empty`,inputs:[{name:`title`,type:`string`},{name:`description`,type:`string`},{name:`action`,type:`slot`,description:`Call-to-action node rendered below the description, e.g. a button`},{name:`className`,type:`string`}],defaultProps:{title:`No data`}}),K.register(`sonner`,({schema:e,...t})=>{let{style:n,...r}=t;return(0,J.jsx)(X,{onClick:()=>{(e.variant===`success`?kt.success:e.variant===`error`?kt.error:e.variant===`warning`?kt.warning:e.variant===`info`?kt.info:kt)(e.message||e.title||`Notification`,{description:e.description})},variant:e.buttonVariant,className:e.className,...yT(r),style:n,children:e.buttonLabel||`Show Toast`})},{namespace:`ui`,label:`Sonner Toast`,inputs:[{name:`message`,type:`string`},{name:`description`,type:`string`},{name:`variant`,type:`enum`,enum:[`default`,`success`,`error`,`warning`,`info`]},{name:`buttonLabel`,type:`string`},{name:`buttonVariant`,type:`enum`,enum:[`default`,`secondary`,`destructive`,`outline`,`ghost`,`link`],description:"Variant for the trigger button this node renders. Exactly the six keys of the Button variant group: `cva` contributes no variant class for any other value, so an out-of-set value renders a button with no background and no text colour, while an empty string silently renders the default look."},{name:`className`,type:`string`}],defaultProps:{message:`Notification`,buttonLabel:`Show Toast`,variant:`default`}}),K.register(`dialog`,({schema:e,className:t,...n})=>(0,J.jsxs)(im,{modal:e.modal,defaultOpen:e.defaultOpen,...n,children:[za(am,e.trigger),(0,J.jsxs)(cm,{className:t,children:[(0,J.jsxs)(lm,{children:[e.title&&(0,J.jsx)(dm,{children:e.title}),e.description&&(0,J.jsx)(fm,{children:e.description})]}),Ra(e.content),La(e.footer,e=>(0,J.jsx)(um,{children:Ra(e)}))]})]}),{namespace:`ui`,label:`Dialog`,inputs:[{name:`title`,type:`string`},{name:`description`,type:`string`},{name:`modal`,type:`boolean`},{name:`defaultOpen`,type:`boolean`},{name:`trigger`,type:`slot`,description:`Element that opens the dialog`},{name:`content`,type:`slot`,description:`Main content of the dialog`},{name:`footer`,type:`slot`},{name:`className`,type:`string`}],defaultProps:{title:`Dialog Title`,description:`Dialog description goes here`,modal:!0,trigger:[{type:`button`,label:`Open Dialog`}],content:[{type:`text`,content:`Dialog content goes here`}]}}),K.register(`sheet`,({schema:e,className:t,...n})=>(0,J.jsxs)(Oy,{modal:e.modal,defaultOpen:e.defaultOpen,...n,children:[za(ky,e.trigger),(0,J.jsxs)(Py,{side:e.side||`right`,className:t,children:[(0,J.jsxs)(Fy,{children:[e.title&&(0,J.jsx)(Ly,{children:e.title}),e.description&&(0,J.jsx)(Ry,{children:e.description})]}),Ra(e.content),La(e.footer,e=>(0,J.jsx)(Iy,{children:Ra(e)}))]})]}),{namespace:`ui`,label:`Sheet`,inputs:[{name:`title`,type:`string`},{name:`description`,type:`string`},{name:`side`,type:`enum`,enum:[`top`,`right`,`bottom`,`left`]},{name:`modal`,type:`boolean`},{name:`defaultOpen`,type:`boolean`},{name:`trigger`,type:`slot`},{name:`content`,type:`slot`},{name:`footer`,type:`slot`},{name:`className`,type:`string`}],defaultProps:{title:`Sheet Title`,description:`Sheet description`,side:`right`,modal:!0,trigger:[{type:`button`,label:`Open Sheet`}],content:[{type:`text`,content:`Sheet content goes here`}]}}),K.register(`popover`,({schema:e,className:t,...n})=>(0,J.jsxs)(uy,{modal:e.modal,defaultOpen:e.defaultOpen,...n,children:[za(dy,e.trigger),(0,J.jsx)(fy,{align:e.align,side:e.side,className:t,children:Ra(e.content)})]}),{namespace:`ui`,label:`Popover`,inputs:[{name:`modal`,type:`boolean`},{name:`defaultOpen`,type:`boolean`},{name:`align`,type:`enum`,enum:[`start`,`center`,`end`]},{name:`side`,type:`enum`,enum:[`top`,`right`,`bottom`,`left`]},{name:`trigger`,type:`slot`},{name:`content`,type:`slot`},{name:`className`,type:`string`}],defaultProps:{trigger:[{type:`button`,label:`Open Popover`,variant:`outline`}],content:[{type:`text`,content:`Popover content goes here`}],align:`center`,side:`bottom`}}),K.register(`tooltip`,({schema:e,className:t,...n})=>(0,J.jsx)(Uy,{delayDuration:e.delayDuration,children:(0,J.jsxs)(Wy,{...n,children:[za(Gy,e.trigger),(0,J.jsx)(Ky,{side:e.side,align:e.align,className:t,children:e.content||Ra(e.children)})]})}),{namespace:`ui`,label:`Tooltip`,inputs:[{name:`delayDuration`,type:`number`},{name:`side`,type:`enum`,enum:[`top`,`right`,`bottom`,`left`]},{name:`align`,type:`enum`,enum:[`start`,`center`,`end`]},{name:`trigger`,type:`slot`},{name:`content`,type:`string`},{name:`children`,type:`slot`},{name:`className`,type:`string`}],defaultProps:{trigger:[{type:`button`,label:`Hover me`,variant:`outline`}],content:`Tooltip content`,delayDuration:700,side:`top`}}),K.register(`alert-dialog`,({schema:e,className:t,...n})=>(0,J.jsxs)(Go,{defaultOpen:e.defaultOpen,...n,children:[za(Ko,e.trigger),(0,J.jsxs)(Yo,{className:t,children:[(0,J.jsxs)(Xo,{children:[e.title&&(0,J.jsx)(Qo,{children:e.title}),e.description&&(0,J.jsx)($o,{children:e.description})]}),Ra(e.content),(0,J.jsxs)(Zo,{children:[e.cancelText&&(0,J.jsx)(ts,{children:e.cancelText}),e.actionText&&(0,J.jsx)(es,{className:e.actionVariant?Wo({variant:e.actionVariant}):void 0,onClick:e.onAction,children:e.actionText})]})]})]}),{namespace:`ui`,label:`Alert Dialog`,inputs:[{name:`title`,type:`string`},{name:`description`,type:`string`},{name:`cancelText`,type:`string`},{name:`actionText`,type:`string`},{name:`actionVariant`,type:`enum`,enum:[`default`,`destructive`]},{name:`defaultOpen`,type:`boolean`},{name:`trigger`,type:`slot`},{name:`content`,type:`slot`},{name:`className`,type:`string`}],defaultProps:{title:`Are you sure?`,description:`This action cannot be undone.`,cancelText:`Cancel`,actionText:`Continue`,trigger:[{type:`button`,label:`Open Alert`,variant:`destructive`}]}}),K.register(`drawer`,({schema:e,className:t,...n})=>(0,J.jsxs)(Rh,{shouldScaleBackground:e.shouldScaleBackground,defaultOpen:e.defaultOpen,...n,children:[za(zh,e.trigger),(0,J.jsxs)(Uh,{className:t,children:[(0,J.jsxs)(Wh,{children:[e.title&&(0,J.jsx)(Kh,{children:e.title}),e.description&&(0,J.jsx)(qh,{children:e.description})]}),Ra(e.content),La(e.footer,t=>(0,J.jsxs)(Gh,{children:[Ra(t),e.showClose&&(0,J.jsx)(Vh,{asChild:!0,children:(0,J.jsx)(`button`,{type:`button`,children:`Close`})})]}))]})]}),{namespace:`ui`,label:`Drawer`,inputs:[{name:`title`,type:`string`},{name:`description`,type:`string`},{name:`shouldScaleBackground`,type:`boolean`},{name:`defaultOpen`,type:`boolean`},{name:`showClose`,type:`boolean`},{name:`trigger`,type:`slot`},{name:`content`,type:`slot`},{name:`footer`,type:`slot`},{name:`className`,type:`string`}],defaultProps:{title:`Drawer Title`,description:`Drawer description`,trigger:[{type:`button`,label:`Open Drawer`}],content:[{type:`text`,content:`Drawer content goes here`}]}}),K.register(`hover-card`,({schema:e,className:t,...n})=>(0,J.jsxs)(ov,{openDelay:e.openDelay,closeDelay:e.closeDelay,...n,children:[za(sv,e.trigger),(0,J.jsx)(cv,{align:e.align,side:e.side,className:t,children:Ra(e.content)})]}),{namespace:`ui`,label:`Hover Card`,inputs:[{name:`openDelay`,type:`number`},{name:`closeDelay`,type:`number`},{name:`side`,type:`enum`,enum:[`top`,`right`,`bottom`,`left`]},{name:`align`,type:`enum`,enum:[`start`,`center`,`end`]},{name:`trigger`,type:`slot`},{name:`content`,type:`slot`},{name:`className`,type:`string`}],defaultProps:{trigger:[{type:`button`,label:`Hover me`,variant:`link`}],content:[{type:`text`,content:`Hover card content appears on hover`}],side:`top`}});var qO=e=>e?e.map((e,t)=>{if(e.separator)return(0,J.jsx)(ag,{},t);let n=Tx(e.icon);return e.children?(0,J.jsxs)(Zh,{children:[(0,J.jsxs)(Qh,{children:[n&&(0,J.jsx)(n,{className:`mr-2 h-4 w-4`}),e.label]}),(0,J.jsx)($h,{children:qO(e.children)})]},t):(0,J.jsxs)(tg,{disabled:e.disabled,onSelect:()=>e.onClick?.(),children:[n&&(0,J.jsx)(n,{className:`mr-2 h-4 w-4`}),e.label,e.shortcut&&(0,J.jsx)(`span`,{className:`ml-auto text-xs tracking-widest opacity-60`,children:e.shortcut})]},t)}):null;K.register(`dropdown-menu`,({schema:e,className:t,...n})=>{let r=Ct();return(0,J.jsxs)(Jh,{modal:e.modal,defaultOpen:e.defaultOpen,...n,children:[za(Yh,e.trigger),(0,J.jsxs)(eg,{align:e.align,side:e.side,className:t,children:[e.label&&(0,J.jsx)(ig,{children:s(e.label,r)}),e.label&&(0,J.jsx)(ag,{}),qO(e.items)]})]})},{namespace:`ui`,label:`Dropdown Menu`,inputs:[{name:`label`,type:`string`},{name:`side`,type:`enum`,enum:[`top`,`right`,`bottom`,`left`]},{name:`align`,type:`enum`,enum:[`start`,`center`,`end`]},{name:`trigger`,type:`slot`},{name:`items`,type:`array`,description:"Recursive structure: a command item { label, icon, shortcut, disabled, onClick, children: [] } or a divider { separator: true }. `icon` is a kebab-case Lucide icon name resolved against lucide's runtime `icons` record; an unknown or retired spelling renders no glyph."},{name:`className`,type:`string`}],defaultProps:{trigger:[{type:`button`,label:`Menu`,variant:`outline`}],items:[{label:`Item 1`},{label:`Item 2`},{separator:!0},{label:`Item 3`}],align:`start`,side:`bottom`}});var JO=e=>e?e.map((e,t)=>{if(e.separator)return(0,J.jsx)(jm,{},t);let n=Tx(e.icon);return e.children?(0,J.jsxs)(Cm,{children:[(0,J.jsxs)(wm,{children:[n&&(0,J.jsx)(n,{className:`mr-2 h-4 w-4`}),e.label]}),(0,J.jsx)(Tm,{children:JO(e.children)})]},t):(0,J.jsxs)(Dm,{disabled:e.disabled,onSelect:()=>e.onClick?.(),children:[n&&(0,J.jsx)(n,{className:`mr-2 h-4 w-4`}),e.label,e.shortcut&&(0,J.jsx)(Mm,{children:e.shortcut})]},t)}):null;K.register(`context-menu`,({schema:e,className:t,...n})=>{let r=e.triggerClassName||t||e.className||`h-[120px] w-full sm:h-[150px] sm:w-[300px] border border-dashed text-sm flex items-center justify-center`,i=e.contentClassName;return(0,J.jsxs)(xm,{modal:e.modal,...n,children:[(0,J.jsx)(Sm,{asChild:!0,children:(0,J.jsx)(`div`,{className:r,children:Ra(e.trigger||{type:`text`,content:`Right click here`})})}),(0,J.jsx)(Em,{className:i,children:JO(e.items)})]})},{namespace:`ui`,label:`Context Menu`,inputs:[{name:`trigger`,type:`slot`},{name:`triggerClassName`,type:`string`},{name:`items`,type:`array`,description:"Recursive structure: a command item { label, icon, shortcut, disabled, onClick, children } or a divider { separator: true }. `icon` is a kebab-case Lucide icon name resolved against lucide's runtime `icons` record; an unknown or retired spelling renders no glyph."},{name:`className`,type:`string`}],defaultProps:{items:[{label:`Action 1`},{label:`Action 2`},{separator:!0},{label:`Action 3`}],trigger:[{type:`text`,content:`Right click here`}]}});var YO=e=>e?.map((e,t)=>{if(e.separator)return(0,J.jsx)(Kv,{},t);let n=Tx(e.icon);return e.children?(0,J.jsxs)(Iv,{children:[(0,J.jsxs)(zv,{children:[n&&(0,J.jsx)(n,{className:`mr-2 h-4 w-4`}),e.label]}),(0,J.jsx)(Bv,{children:YO(e.children)})]},t):(0,J.jsxs)(Hv,{disabled:e.disabled,onSelect:()=>e.onClick?.(),children:[n&&(0,J.jsx)(n,{className:`mr-2 h-4 w-4`}),e.label,e.shortcut&&(0,J.jsx)(qv,{children:e.shortcut})]},t)});K.register(`menubar`,({schema:e,...t})=>{let{"data-obj-id":n,"data-obj-type":r,style:i,...a}=t;return(0,J.jsx)(Lv,{className:e.className,...a,"data-obj-id":n,"data-obj-type":r,style:i,children:e.menus?.map((e,t)=>(0,J.jsxs)(Fv,{children:[(0,J.jsx)(Rv,{children:e.label}),(0,J.jsx)(Vv,{children:YO(e.items)})]},t))})},{namespace:`ui`,label:`Menubar`,inputs:[{name:`className`,type:`string`}],defaultProps:{menus:[{label:`File`,items:[{label:`New`},{label:`Open`},{separator:!0},{label:`Exit`}]}]}}),K.register(`accordion`,({schema:e,className:t,...n})=>(0,J.jsx)(Bo,{type:e.accordionType||`single`,collapsible:e.collapsible,className:t,...n,children:e.items?.map((e,t)=>(0,J.jsxs)(Vo,{value:e.value||`item-${t}`,disabled:e.disabled,children:[(0,J.jsx)(Ho,{children:e.title}),(0,J.jsx)(Uo,{children:Ra(e.content)})]},e.value||t))}),{namespace:`ui`,label:`Accordion`,inputs:[{name:`accordionType`,type:`enum`,enum:[`single`,`multiple`]},{name:`collapsible`,type:`boolean`},{name:`items`,type:`array`,description:`Array of { trigger, content, value }`},{name:`className`,type:`string`}],defaultProps:{accordionType:`single`,collapsible:!0,items:[{label:`Item 1`,value:`item-1`,content:[{type:`text`,content:`Content for item 1`}]},{label:`Item 2`,value:`item-2`,content:[{type:`text`,content:`Content for item 2`}]},{label:`Item 3`,value:`item-3`,content:[{type:`text`,content:`Content for item 3`}]}],className:`w-full`}}),K.register(`collapsible`,({schema:e,className:t,disabled:n,open:r,...i})=>{let a=Ra(e.trigger);return(0,J.jsxs)(ip,{defaultOpen:e.defaultOpen,disabled:n,className:t,...i,children:[(0,J.jsx)(ap,{asChild:(0,q.isValidElement)(a),children:a}),(0,J.jsx)(op,{children:Ra(e.content)})]})},{namespace:`ui`,label:`Collapsible`,inputs:[{name:`defaultOpen`,type:`boolean`},{name:`disabled`,type:`boolean`},{name:`trigger`,type:`slot`},{name:`content`,type:`slot`},{name:`className`,type:`string`}],defaultProps:{trigger:[{type:`button`,label:`Toggle`,variant:`outline`}],content:[{type:`text`,content:`Collapsible content goes here`}],className:`w-full`}}),K.register(`toggle-group`,({schema:e,...t})=>{let{"data-obj-id":n,"data-obj-type":r,style:i,type:a,...o}=t;return(0,J.jsx)(Yb,{type:e.selectionType||`single`,variant:e.variant,size:e.size,value:e.value,className:e.className,...o,"data-obj-id":n,"data-obj-type":r,style:i,children:e.items?.map((e,t)=>(0,J.jsx)(Xb,{value:e.value,"aria-label":e.label,disabled:e.disabled,children:e.label},t))})},{namespace:`ui`,label:`Toggle Group`,inputs:[{name:`selectionType`,type:`enum`,enum:[`single`,`multiple`]},{name:`variant`,type:`enum`,enum:[`default`,`outline`]},{name:`size`,type:`enum`,enum:[`default`,`sm`,`lg`]},{name:`className`,type:`string`}],defaultProps:{selectionType:`single`,variant:`default`,size:`default`,items:[{value:`bold`,label:`Bold`},{value:`italic`,label:`Italic`},{value:`underline`,label:`Underline`}]}}),K.register(`carousel`,({schema:e,className:t,...n})=>(0,J.jsxs)(Qf,{opts:e.opts,orientation:e.orientation||`horizontal`,className:t,...n,children:[(0,J.jsx)($f,{children:e.items?.map((t,n)=>(0,J.jsx)(ep,{className:e.itemClassName,children:Ra(t)},n))}),e.showArrows&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(tp,{}),(0,J.jsx)(np,{})]})]}),{namespace:`ui`,label:`Carousel`,inputs:[{name:`orientation`,type:`enum`,enum:[`horizontal`,`vertical`]},{name:`showArrows`,type:`boolean`},{name:`items`,type:`array`,description:`Array of content schemas`},{name:`itemClassName`,type:`string`},{name:`className`,type:`string`}],defaultProps:{orientation:`horizontal`,showArrows:!0,items:[[{type:`div`,className:`p-4 sm:p-6 md:p-8 border rounded bg-slate-50`,children:[{type:`text`,content:`Slide 1`}]}],[{type:`div`,className:`p-4 sm:p-6 md:p-8 border rounded bg-slate-50`,children:[{type:`text`,content:`Slide 2`}]}],[{type:`div`,className:`p-4 sm:p-6 md:p-8 border rounded bg-slate-50`,children:[{type:`text`,content:`Slide 3`}]}]],className:`w-full max-w-xs`}}),K.register(`filter-builder`,({schema:e,className:t,onChange:n,...r})=>{let i=Ct();return(0,J.jsxs)(`div`,{className:e.wrapperClass||``,children:[e.label&&(0,J.jsx)(`label`,{className:`text-sm font-medium mb-2 block`,children:s(e.label,i)}),(0,J.jsx)(wE,{fields:e.fields||[],value:e.value||r.value,onChange:t=>{n&&n({target:{name:e.name,value:t}})},className:t,...r})]})},{namespace:`ui`,label:`Filter Builder`,inputs:[{name:`label`,type:`string`},{name:`name`,type:`string`,required:!0},{name:`fields`,type:`array`,description:`Array of { value: string, label: string, type?: string } objects`,required:!0},{name:`value`,type:`object`,description:`FilterGroup object with conditions`}],defaultProps:{label:`Filters`,name:`filters`,fields:[{value:`name`,label:`Name`,type:`text`},{value:`email`,label:`Email`,type:`text`},{value:`age`,label:`Age`,type:`number`},{value:`status`,label:`Status`,type:`text`}],value:{id:`root`,logic:`and`,conditions:[]}}}),K.register(`scroll-area`,({schema:e,className:t,...n})=>{let{"data-obj-id":r,"data-obj-type":i,style:a,...o}=n,s=e.orientation||`vertical`;return(0,J.jsxs)(gy,{className:t,style:{height:e.height,width:e.width,...a},...o,"data-obj-id":r,"data-obj-type":i,children:[Ra(e.children),(s===`horizontal`||s===`both`)&&(0,J.jsx)(_y,{orientation:`horizontal`}),(s===`vertical`||s===`both`)&&(0,J.jsx)(_y,{orientation:`vertical`})]})},{namespace:`ui`,label:`Scroll Area`,inputs:[{name:`height`,type:`string`},{name:`width`,type:`string`},{name:`orientation`,type:`enum`,enum:[`vertical`,`horizontal`,`both`]},{name:`className`,type:`string`},{name:`children`,type:`slot`}],defaultProps:{height:`200px`,width:`100%`,orientation:`vertical`,children:[{type:`div`,className:`p-4`,children:[{type:`text`,content:`Scrollable content goes here. Add more content to see scrolling behavior.`}]}],className:`rounded-md border`}}),K.register(`resizable`,({schema:e,className:t,...n})=>{let r=Array.isArray(e.panels)?e.panels:[];return(0,J.jsx)(yw,{orientation:e.direction||`horizontal`,className:t,...n,style:{minHeight:e.minHeight||`200px`},children:r.map((t,n)=>(0,J.jsxs)(q.Fragment,{children:[(0,J.jsx)(bw,{defaultSize:t.defaultSize,minSize:t.minSize,maxSize:t.maxSize,children:Ra(t.content)}),n<r.length-1&&(0,J.jsx)(xw,{withHandle:e.withHandle})]},n))})},{namespace:`ui`,label:`Resizable Panel Group`,inputs:[{name:`direction`,type:`enum`,enum:[`horizontal`,`vertical`]},{name:`minHeight`,type:`string`},{name:`withHandle`,type:`boolean`},{name:`panels`,type:`array`,description:`Array of { defaultSize, minSize, maxSize, content }`},{name:`className`,type:`string`}],defaultProps:{direction:`horizontal`,minHeight:`200px`,withHandle:!0,panels:[{defaultSize:50,content:[{type:`div`,className:`p-4`,children:[{type:`text`,content:`Panel 1`}]}]},{defaultSize:50,content:[{type:`div`,className:`p-4`,children:[{type:`text`,content:`Panel 2`}]}]}],className:`rounded-lg border`}}),K.register(`table`,({schema:e,className:t,...n})=>(0,J.jsxs)(Nb,{className:t,...n,children:[e.caption&&(0,J.jsx)(Bb,{children:e.caption}),(0,J.jsx)(Pb,{children:(0,J.jsx)(Lb,{children:e.columns?.map((e,t)=>(0,J.jsx)(Rb,{className:e.className,style:{width:e.width},children:e.header},t))})}),(0,J.jsx)(Fb,{children:e.data?.map((t,n)=>(0,J.jsx)(Lb,{children:e.columns?.map((e,n)=>(0,J.jsx)(zb,{className:e.cellClassName,children:t[e.accessorKey]},n))},n))}),La(e.footer,t=>(0,J.jsx)(Ib,{children:(0,J.jsx)(Lb,{children:(0,J.jsx)(zb,{colSpan:e.columns?.length,children:Ra(t)})})}))]}),{namespace:`ui`,label:`Table`,inputs:[{name:`caption`,type:`string`},{name:`footer`,type:`string`},{name:`columns`,type:`array`,description:`Array of { header, accessorKey, className, cellClassName, width }`},{name:`data`,type:`array`,description:`Array of objects`},{name:`className`,type:`string`}],defaultProps:{caption:`Table Caption`,columns:[{header:`Column 1`,accessorKey:`col1`},{header:`Column 2`,accessorKey:`col2`},{header:`Column 3`,accessorKey:`col3`}],data:[{col1:`Row 1, Col 1`,col2:`Row 1, Col 2`,col3:`Row 1, Col 3`},{col1:`Row 2, Col 1`,col2:`Row 2, Col 2`,col3:`Row 2, Col 3`},{col1:`Row 3, Col 1`,col2:`Row 3, Col 2`,col3:`Row 3, Col 3`}]}});var XO=q.createContext(null);function ZO({value:e,children:t}){return(0,J.jsx)(XO.Provider,{value:e,children:t})}function QO(){return q.useContext(XO)}var $O=`[ObjectUI] DataTable bind:`,ek=`data`;function tk(e){return typeof e==`string`?`'${e}'`:String(e)}function nk({blockType:e,id:t,caption:n}){let r=typeof e==`string`&&e.length>0?e:`data-table`,i=[];return typeof t==`string`&&t.length>0&&i.push(`id: '${t}'`),typeof n==`string`&&n.length>0&&i.push(`caption: '${n}'`),i.length>0?`${r} (${i.join(`, `)})`:r}function rk(e){return e!==void 0}function ik(e,t,n){if(!rk(e))return null;let r=Array.isArray(t)?t.length:0,i=r===0?`This node has no inline rows, so the table renders its header over an empty body`:`The ${r} ${r===1?`row`:`rows`} on screen ${r===1?`comes`:`come`} from \`${ek}\`; the \`bind\` contributes nothing`;return`${$O} ${nk(n)} — \`bind: ${tk(e)}\` is ignored: data-table does not read \`bind\`; it reads its rows from the inline \`${ek}\` array on the node. ${i}.\n Put the rows in \`${ek}\`, or author a component that does read \`bind\` (\`list\`, \`tree-view\`, or an \`object-*\` widget — they call \`useDataScope\`). (objectui#6575)`}var ak=`[ObjectUI] DataTable data:`,ok=/\$\{[\s\S]*?\}/;function sk(e,t=80){return e.length<=t?e:`${e.slice(0,t)}…`}function ck(e){return e===null?"`null`":Array.isArray(e)?`an array`:typeof e==`string`?`the string ${tk(sk(e))}`:typeof e==`number`||typeof e==`boolean`||typeof e==`bigint`?`the ${typeof e} \`${String(e)}\``:typeof e==`object`?`an object`:`a ${typeof e}`}function lk(e){return e!==void 0&&!Array.isArray(e)}function uk(e,t){if(!lk(e))return null;let n=nk(t),r=` Resolve the rows in the host and put the array on the node as \`${ek}\`. (objectui#6665)`;return typeof e==`string`&&ok.test(e)?`${ak} ${n} — \`${ek}: ${tk(sk(e))}\` was never evaluated: a \`\${...}\` expression written into \`${ek}\` at node level is read as a literal string, so \`${ek}\` is a string rather than an array and the table renders its header over an empty body.\n${r}`:`${ak} ${n} — \`${ek}\` was authored as ${ck(e)}, and data-table takes its rows only from an array: every non-array value is dropped to zero rows, so the table renders its header over an empty body.\n${r}`}var dk=new Set([`number`,`currency`,`percent`]);function fk(e){if(e==null)return``;if(Array.isArray(e))return e.map(e=>typeof e==`object`&&e?fk(e):String(e)).filter(Boolean).join(`, `);if(typeof e==`object`){let t=e;return String(t.name??t.label??t.externalId??t.id??t._id??``)}return String(e)}var pk=vt({"table.rowsPerPage":`Rows per page`,"table.pageInfo":`Page {{current}} of {{total}}`,"table.totalRecords":`{{count}} total`,"table.noResults":`No results found`,"table.noResultsHint":`Try adjusting your filters or search query.`,"table.sortAsc":`Sort ascending`,"table.sortDesc":`Sort descending`,"table.hideColumn":`Hide column`,"table.cancelAll":`Cancel All`,"table.saveAll":`Save All ({{count}})`,"table.exportCSV":`Export CSV`,"table.addRecord":`Add record`,"table.open":`Open`,"table.search":`Search…`,"table.modified":`{{count}} row modified`,"table.saveFailed":`Save failed`,"table.selected":`{{count}} selected`,"table.edit":`Edit`,"table.delete":`Delete`,"common.actions":`Actions`,"fields.date.impossibleDay":`The stored value "{{value}}" is not a real date. Pick a date to replace it.`,"fields.dateTime.impossibleDay":`The stored value "{{value}}" is not a real date. Pick a date and time to replace it.`},`table.rowsPerPage`);function mk(e){if(e&&typeof e==`object`){let t=e,n=t.details&&(t.details.message??t.details.error);if(typeof n==`string`&&n.trim())return n.trim();if(typeof t.message==`string`&&t.message.trim())return t.message.trim()}return typeof e==`string`&&e.trim()?e.trim():`Unknown error`}function hk(e,t,n,r,i){return typeof e==`boolean`?e:e==null||e===``?!1:Fe(e,t??{},{fallback:!1,scope:n,warnOnError:!0,label:r,fields:i})}function gk(e,t,n,r){let i=e?.visibleWhen;return i==null||hk(i,n,r,`builtin:${t}:visibleWhen`)}function _k(e,t,n,r){let i=e?.visible;return!_(i)||hk(i,t,n,e?.name??`row-action`,r)}function vk(e){let{row:t,scope:n}=e,r=!!e.onRowEdit&&gk(e.editPredicates,`edit`,t,n),i=!!e.onRowDelete&&gk(e.deletePredicates,`delete`,t,n),a=e.customActions.filter(e=>_k(e,t,n));return{edit:r,remove:i,custom:a,count:+!!r+ +!!i+a.length}}var yk=({action:e,row:t,onActionDef:n})=>{let r=E(),i=(0,q.useMemo)(()=>_k(e,t,r),[e,t,r]),a=M(e.disabled,t,{fallback:!0,warnOnError:!0,label:`${e.name}:disabled`}),o=_(e.disabled)&&a;if(!i)return null;let s=Tx(e.icon);return(0,J.jsxs)(tg,{disabled:o,onClick:()=>{o||n?.(e,t)},"data-testid":`row-action-${e.name}`,className:Y(e.variant===`danger`&&`text-destructive focus:text-destructive`),children:[s&&(0,J.jsx)(s,{className:`mr-2 h-4 w-4`}),e.label||e.name]})},bk=({name:e,predicates:t,row:n,icon:r,label:i,className:a,onSelect:o})=>{let s=E(),c=(0,q.useMemo)(()=>gk(t,e,n,s),[t,e,n,s]),l=M(t?.disabledWhen,n,{fallback:!1,warnOnError:!0,label:`builtin:${e}:disabledWhen`});if(!c)return null;let u=t?.disabledWhen!=null&&l;return(0,J.jsxs)(tg,{disabled:u,onClick:()=>{u||o(n)},"data-testid":`row-action-builtin-${e}`,className:a,children:[r,i]})},xk=({schema:e,row:t,t:n})=>{let r=E(),i=G(),a=(0,q.useMemo)(()=>Array.isArray(e.rowActionDefs)&&e.onRowActionDef?e.rowActionDefs.filter(e=>i(e.requiredPermissions)):[],[e.rowActionDefs,e.onRowActionDef,i]),o=(0,q.useMemo)(()=>vk({onRowEdit:e.onRowEdit,onRowDelete:e.onRowDelete,editPredicates:e.rowEditPredicates,deletePredicates:e.rowDeletePredicates,customActions:a,row:t,scope:r}),[e.onRowEdit,e.onRowDelete,e.rowEditPredicates,e.rowDeletePredicates,a,t,r]);return o.count===0?null:(0,J.jsxs)(Jh,{children:[(0,J.jsx)(Yh,{asChild:!0,children:(0,J.jsx)(X,{variant:`ghost`,size:`icon`,className:`h-8 w-8`,onClick:e=>e.stopPropagation(),"aria-label":`Row actions`,children:(0,J.jsx)(Ni,{className:`h-4 w-4`})})}),(0,J.jsxs)(eg,{align:`end`,onClick:e=>e.stopPropagation(),children:[o.edit&&(0,J.jsx)(bk,{name:`edit`,predicates:e.rowEditPredicates,row:t,icon:(0,J.jsx)(ha,{className:`mr-2 h-4 w-4`}),label:n(`table.edit`),onSelect:t=>e.onRowEdit?.(t)}),o.custom.length>0&&o.edit&&(0,J.jsx)(ag,{}),o.custom.map(n=>(0,J.jsx)(yk,{action:n,row:t,onActionDef:e.onRowActionDef},n.name)),o.remove&&(o.edit||o.custom.length>0)&&(0,J.jsx)(ag,{}),o.remove&&(0,J.jsx)(bk,{name:`delete`,predicates:e.rowDeletePredicates,row:t,icon:(0,J.jsx)(va,{className:`mr-2 h-4 w-4`}),label:n(`table.delete`),className:`text-destructive focus:text-destructive`,onSelect:t=>e.onRowDelete?.(t)})]})]})};function Sk(e){return e===`single`?`single`:e===`none`||!e?`none`:`multiple`}var Ck=Object.freeze([]),wk=Object.freeze([]);function Tk(e,t){return e===t||e.length===t.length&&e.every((e,n)=>{let r=t[n];if(e===r)return!0;if(!e||!r||typeof e!=`object`||typeof r!=`object`)return!1;let i=e,a=r,o=Object.keys(i);return o.length===Object.keys(a).length&&o.every(e=>Object.is(i[e],a[e]))})}function Ek(e,t){let n=e.find(e=>e?.accessorKey===t);return!n||n.masked===!0}K.register(`data-table`,({schema:e})=>{let{caption:t,columns:n=Ck,data:r=wk,pagination:i=!0,pageSize:a=10,pageSizeOptions:o,manualPagination:s=!1,rowCount:c,page:l,onPageChange:u,onPageSizeChange:d,manualSorting:f=!1,sort:p,onSortChange:m,searchable:h=!0,manualSearch:g=!1,search:_,onSearchChange:v,selectable:y=!1,showSelectionCount:b=!0,selectionResetKey:x,sortable:S=!0,exportable:C=!1,rowActions:w=!1,resizableColumns:T=!0,reorderableColumns:E=!0,editable:D=!1,singleClickEdit:O=!1,rowClassName:k,rowStyle:A,className:j,cellClassName:M,frozenColumns:N=0,showRowNumbers:ee=!1,showAddRow:P=!1,borderless:F=!1,disableInnerScroll:I=!1,bind:ne}=e,re=Sk(y),L=re!==`none`,R=QO(),z=!!R?.onAddColumn,B=!!R?.onEditColumn,ie=E||!!R?.onReorderFields,{t:V}=pk(),ae=q.useId(),H=Ct(),oe=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?(?:Z|[+-]\d{2}:?\d{2})?)?$/,W=q.useCallback(e=>{if(typeof e!=`string`||e.length<8||!oe.test(e))return e;let t=Date.parse(e);if(Number.isNaN(t))return e;let n=e.includes(`T`);try{return n?U(e,{locale:H}):ut(e,void 0,{locale:H})}catch{return e}},[H]),G=Array.isArray(r)?r:wk,se=e.type,ce=e.id;(0,q.useEffect)(()=>{let e=ik(ne,G,{blockType:se,id:ce,caption:t});e&&console.warn(e)},[ne,G,se,ce,t]);let le=uk(r,{blockType:se,id:ce,caption:t});(0,q.useEffect)(()=>{le&&console.warn(le)},[le]);let ue=(0,q.useMemo)(()=>n.map(e=>({...e,accessorKey:e.accessorKey})),[n]),de=(0,q.useMemo)(()=>{let e={},t=n.map(e=>({header:e.header,accessorKey:e.accessorKey,width:e.width,fitContent:e.fitContent,masked:e.masked===!0}));for(let n of t){if(n.width||n.fitContent)continue;let t=(n.header||``).length,r=n.masked?[]:G.slice(0,50);for(let e of r){let r=e[n.accessorKey],i=r==null?0:String(r).length;i>t&&(t=i)}e[n.accessorKey]=Math.min(400,Math.max(80,t*8+48))}return e},[n,G]),[fe,pe]=(0,q.useState)(``),[me,he]=(0,q.useState)(null),[ge,K]=(0,q.useState)(null),[_e,ve]=(0,q.useState)(new Set),[ye,be]=(0,q.useState)(1),[xe,Se]=(0,q.useState)(a),[Ce,we]=(0,q.useState)(ue),[Te,Ee]=(0,q.useState)({}),De=(0,q.useRef)(null),[ke,Ae]=(0,q.useState)(null),je=N>0?+!!L+ +!!ee+Math.min(N,Ce.length):0;(0,q.useLayoutEffect)(()=>{let e=De.current;if(je===0||!e){Ae(null);return}let t=()=>{let t=Array.from(e.children).slice(0,je),n=0,r=t.map(e=>{let t=n;return n+=e.getBoundingClientRect().width,t});Ae(e=>e&&e.length===r.length&&e.every((e,t)=>Math.abs(e-r[t])<.5)?e:r)};if(t(),typeof ResizeObserver>`u`)return;let n=new ResizeObserver(t);return Array.from(e.children).slice(0,je).forEach(e=>n.observe(e)),()=>n.disconnect()},[je,Ce]);let[Ne,Pe]=(0,q.useState)(null),[Fe,Le]=(0,q.useState)(null),[Re,ze]=(0,q.useState)(null),Ve=(0,q.useRef)(null),[He,Ue]=(0,q.useState)(``),[We,Ge]=(0,q.useState)(new Map),qe=(0,q.useMemo)(()=>{let e=new WeakMap;return{of(t,n){let r=We.get(n);if(!r||typeof t!=`object`||!t)return t;let i=e.get(t);if(i!==void 0)return i;let a={...t,...r};return e.set(t,a),a}}},[We]),[Je,Ye]=(0,q.useState)(!1),[Xe,Ze]=(0,q.useState)(null),[$e,et]=(0,q.useState)(new Set),[tt,nt]=(0,q.useState)(null),rt=(0,q.useRef)(null),it=(0,q.useRef)(0),ot=(0,q.useRef)(0),st=(0,q.useRef)(null),ct=(0,q.useRef)(null),lt=(0,q.useRef)(!1),dt=(0,q.useRef)(null),ft=(0,q.useRef)(null);(0,q.useEffect)(()=>{we(e=>Tk(e,ue)?e:ue)},[ue]),(0,q.useEffect)(()=>{x!==void 0&&ve(new Set)},[x]);let pt=(0,q.useMemo)(()=>{if(g||!fe)return G;let e=Ce.filter(e=>!Ek(n,e.accessorKey));return G.filter(t=>e.some(e=>t[e.accessorKey]?.toString().toLowerCase().includes(fe.toLowerCase())))},[G,fe,Ce,n,g]),mt=(0,q.useMemo)(()=>{if(f||!me||!ge||Ek(n,me))return pt;let e=pt.map(e=>({row:e,key:te(e[me])}));return e.sort((e,t)=>{let n=Be(e.key,t.key);return ge===`asc`?n:-n}),e.map(e=>e.row)},[pt,me,ge,f,n]),ht=s?Math.max(1,l??1):ye,gt=s?Math.max(1,Math.ceil((c??mt.length)/xe)):Math.ceil(mt.length/xe),_t=i&&!s?mt.slice((ye-1)*xe,ye*xe):mt,vt=e=>{let t=Math.min(gt,Math.max(1,e));s?u?.(t):be(t)},yt=e=>{Se(e),s?(d?.(e),u?.(1)):be(1)},bt=q.useMemo(()=>{let e=o&&o.length>0?o:[5,10,20,50,100];return Array.from(new Set([...e,xe])).filter(e=>Number.isFinite(e)&&e>0).sort((e,t)=>e-t)},[o,xe]),xt=(e,t)=>e.id===void 0?`row-${t}`:e.id,St=f?p??[]:me&&ge?[{field:me,order:ge}]:[],wt=S&&(!f||!!m),Tt=e=>wt&&e.sortable!==!1&&!Ek(n,e.accessorKey),Et=g?_??``:fe,Dt=h&&(!g||!!v),Ot=e=>{if(g){v?.(e);return}pe(e),be(1)},kt=(e,t)=>{if(!Ek(n,e)){if(f){m?.([{field:e,order:t}]);return}he(e),K(t)}},At=e=>{if(wt&&!Ek(n,e)){if(f){let t=St.find(t=>t.field===e);kt(e,t?.order===`asc`?`desc`:`asc`);return}me===e?ge===`asc`?K(`desc`):ge===`desc`&&(K(null),he(null)):(he(e),K(`asc`))}},jt=(e,t)=>{e.preventDefault(),nt({x:e.clientX,y:e.clientY,columnKey:t})},Mt=tt?Ce.find(e=>e.accessorKey===tt.columnKey):void 0,Nt=e=>{we(t=>t.filter(t=>t.accessorKey!==e)),nt(null)};(0,q.useEffect)(()=>{if(!tt)return;let e=()=>nt(null);return document.addEventListener(`click`,e),()=>document.removeEventListener(`click`,e)},[tt]);let Pt=t=>{let n=new Set;if(t&&_t.forEach((e,t)=>{let r=(ht-1)*xe+t,i=xt(e,r);n.add(i)}),ve(n),e.onSelectionChange){let t=mt.filter((e,t)=>{let r=xt(e,t);return n.has(r)});e.onSelectionChange(t)}},Ft=(t,n)=>{let r=new Set(re===`single`?[]:_e);if(n?r.add(t):r.delete(t),ve(r),e.onSelectionChange){let t=mt.filter((e,t)=>{let n=xt(e,t);return r.has(n)});e.onSelectionChange(t)}},It=()=>{let e=Ce.filter(e=>!e.masked),t=[e.map(e=>e.header).join(`,`),...mt.map(t=>e.map(e=>JSON.stringify(t[e.accessorKey]||``)).join(`,`))].join(`
|
|
29
|
+
`),n=new Blob([t],{type:`text/csv`}),r=window.URL.createObjectURL(n),i=document.createElement(`a`);i.href=r,i.download=`table-export.csv`,i.click(),window.URL.revokeObjectURL(r)},Lt=e=>{let t=St.findIndex(t=>t.field===e);if(t===-1)return(0,J.jsx)(bi,{className:`h-3 w-3 ml-0.5 opacity-0 group-hover:opacity-50 transition-opacity`});let n=St[t].order===`asc`?_i:mi;return(0,J.jsxs)(`span`,{className:`inline-flex items-center shrink-0`,children:[(0,J.jsx)(n,{className:`h-3 w-3 ml-0.5 text-primary`}),St.length>1&&(0,J.jsx)(`span`,{className:`text-[10px] font-medium text-primary tabular-nums leading-none`,children:t+1})]})},Rt=(e,t)=>{if(!T)return;e.preventDefault(),e.stopPropagation(),rt.current=t,it.current=e.clientX,st.current=null;let n=e.target.closest(`th`);n&&(ot.current=n.offsetWidth),document.addEventListener(`mousemove`,zt),document.addEventListener(`mouseup`,Bt)},zt=e=>{if(!rt.current)return;let t=e.clientX-it.current,n=Math.max(50,ot.current+t);Ee(e=>({...e,[rt.current]:n})),st.current=n},Bt=()=>{let t=rt.current,n=st.current;rt.current=null,st.current=null,document.removeEventListener(`mousemove`,zt),document.removeEventListener(`mouseup`,Bt),t&&n!=null&&e.onColumnResize?.(t,n)},Vt=(e,t)=>{ie&&(Pe(t),e.dataTransfer.effectAllowed=`move`)},Ht=(e,t)=>{ie&&(e.preventDefault(),e.dataTransfer.dropEffect=`move`,Le(t))},Ut=(t,n)=>{if(!ie||Ne===null)return;if(t.preventDefault(),Ne===n){Pe(null),Le(null);return}let r=[...Ce],[i]=r.splice(Ne,1);r.splice(n,0,i),we(r),Pe(null),Le(null),e.onColumnsReorder&&e.onColumnsReorder(r),R?.onReorderFields?.(r.map(e=>e.accessorKey))},Wt=()=>{Pe(null),Le(null)},Gt=(e,t)=>{if(!D)return;let n=Ve.current;if(n?.rowIndex===e&&n?.columnKey===t)return;let r=Ce.find(e=>e.accessorKey===t);if(r?.editable===!1||r?.masked)return;Ve.current={rowIndex:e,columnKey:t},ze({rowIndex:e,columnKey:t});let i=We.get(e),a=_t[e][t],o=i?.[t]??a??``;Ue(o),ft.current=i&&t in i?{had:!0,value:i[t]}:{had:!1,value:void 0}},Kt=(t=!1,n)=>{if(!Re||!t&&Re===null)return;let{rowIndex:r,columnKey:i}=Re,a=(ht-1)*xe+r,o=mt[s?r:a],c=n===void 0?He:n,l=new Map(We),u=l.get(r)||{};u[i]=c,l.set(r,u),Ge(l),e.onCellChange&&e.onCellChange(a,i,c,o),ft.current=null,Ve.current=null,ze(null),Ue(``)},qt=(0,q.useRef)(Kt);(0,q.useEffect)(()=>{qt.current=Kt});let Jt=e=>{let t=Ve.current,n=ft.current;if(ft.current=null,e&&t&&n){let{rowIndex:e,columnKey:r}=t;Ge(t=>{let i=t.get(e);if(!(i&&r in i)&&!n.had)return t;let a=new Map(t),o={...i||{}};return n.had?o[r]=n.value:delete o[r],Object.keys(o).length>0?a.set(e,o):a.delete(e),a})}Ve.current=null,ze(null),Ue(``)},Yt=()=>{lt.current=!0,Jt(!0)},Xt=e=>{if(!Re)return;let{rowIndex:t,columnKey:n}=Re;Ue(e),Ge(r=>{let i=new Map(r),a={...i.get(t)||{}};return a[n]=e,i.set(t,a),i})},Zt=()=>{if(lt.current){lt.current=!1;return}Kt(!0)},Qt=async t=>{let n=(ht-1)*xe+t,r=mt[s?t:n],i=We.get(t);if(i&&Object.keys(i).length!==0){Ye(!0);try{e.onRowSave&&await e.onRowSave(n,i,r);let a=new Map(We);a.delete(t),Ge(a),Re?.rowIndex===t&&(Ve.current=null,ze(null),Ue(``)),et(e=>{if(!e.has(t))return e;let n=new Set(e);return n.delete(t),n.size===0&&Ze(null),n})}catch(e){console.error(`Failed to save row:`,e),Ze(mk(e)),et(e=>new Set(e).add(t))}finally{Ye(!1)}}},$t=e=>{let t=new Map(We);t.delete(e),Ge(t),et(t=>{if(!t.has(e))return t;let n=new Set(t);return n.delete(e),n.size===0&&Ze(null),n})},en=async()=>{if(We.size!==0){Ye(!0);try{let t=Array.from(We.entries()).map(([e,t])=>{let n=(ht-1)*xe+e;return{rowIndex:n,changes:t,row:mt[s?e:n]}});e.onBatchSave&&await e.onBatchSave(t),Ge(new Map),Ve.current=null,ze(null),Ue(``),et(new Set),Ze(null)}catch(e){console.error(`Failed to save batch:`,e),Ze(mk(e)),et(new Set(We.keys()))}finally{Ye(!1)}}},tn=()=>{Ge(new Map),et(new Set),Ze(null)},nn=(e,t,n)=>{if((e.ctrlKey||e.metaKey)&&e.key===`c`&&!Re){if(e.preventDefault(),Ce.find(e=>e.accessorKey===n)?.masked)return;let r=(ht-1)*xe+t,i=mt[s?t:r];if(i){let e=i[n],t=e==null?``:String(e);navigator.clipboard.writeText(t).catch(()=>{})}return}D&&Ce.find(e=>e.accessorKey===n)?.editable!==!1&&e.key===`Enter`&&!Re&&(e.preventDefault(),Gt(t,n))},rn=e=>{e.key===`Enter`?(e.preventDefault(),lt.current=!0,Kt(!0)):e.key===`Escape`&&(e.preventDefault(),Yt())};(0,q.useEffect)(()=>{Re&&ct.current&&(ct.current.focus(),ct.current.select())},[Re]),(0,q.useEffect)(()=>{if(!Re)return;let e=e=>{let t=dt.current;if(!t)return;let n=e.target;if(n&&!t.contains(n)){if(n instanceof Element){let e=n.closest(`[data-radix-popper-content-wrapper]`);if(e&&!e.contains(t))return;let r=n.closest(`[role="dialog"],[role="alertdialog"]`);if(r&&!r.contains(t))return}qt.current(!0)}};return document.addEventListener(`pointerdown`,e,!0),()=>document.removeEventListener(`pointerdown`,e,!0)},[Re]),(0,q.useEffect)(()=>()=>{document.removeEventListener(`mousemove`,zt),document.removeEventListener(`mouseup`,Bt)},[]);let an=_t.length>0&&_t.every((e,t)=>{let n=(ht-1)*xe+t,r=xt(e,n);return _e.has(r)}),on=_t.some((e,t)=>{let n=(ht-1)*xe+t,r=xt(e,n);return _e.has(r)})&&!an,sn=We.size>0,cn=Dt||C||b&&L&&_e.size>0||sn;return(0,J.jsxs)(`div`,{className:`flex flex-col h-full gap-2 sm:gap-4 ${j||``}`,children:[cn&&(0,J.jsxs)(`div`,{className:`flex flex-col sm:flex-row items-stretch sm:items-center justify-between gap-2 sm:gap-4 flex-none`,children:[(0,J.jsx)(`div`,{className:`flex items-center gap-2 flex-1`,children:Dt&&(0,J.jsxs)(`div`,{className:`relative w-full sm:max-w-sm flex-1`,children:[(0,J.jsx)(la,{className:`absolute left-2 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground`}),(0,J.jsx)(Pv,{placeholder:V(`table.search`),value:Et,onChange:e=>Ot(e.target.value),className:`pl-8`})]})}),(0,J.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[sn&&(0,J.jsxs)(J.Fragment,{children:[Xe&&(0,J.jsxs)(`div`,{role:`alert`,className:`flex items-center gap-1.5 text-sm text-destructive max-w-[16rem] sm:max-w-sm`,children:[(0,J.jsx)(xi,{className:`h-4 w-4 flex-none`}),(0,J.jsxs)(`span`,{className:`truncate`,title:`${V(`table.saveFailed`)}: ${Xe}`,children:[V(`table.saveFailed`),`: `,Xe]})]}),(0,J.jsx)(`div`,{className:`text-sm text-muted-foreground`,children:V(`table.modified`,{count:We.size})}),(0,J.jsxs)(X,{variant:`outline`,size:`sm`,onClick:tn,disabled:Je,children:[(0,J.jsx)(Ta,{className:`h-4 w-4 mr-2`}),V(`table.cancelAll`)]}),(0,J.jsxs)(X,{variant:`default`,size:`sm`,onClick:en,disabled:Je,children:[(0,J.jsx)(ca,{className:`h-4 w-4 mr-2`}),V(`table.saveAll`,{count:We.size})]})]}),C&&(0,J.jsxs)(X,{variant:`outline`,size:`sm`,onClick:It,disabled:mt.length===0,children:[(0,J.jsx)(Mi,{className:`h-4 w-4 mr-2`}),V(`table.exportCSV`)]}),b&&L&&_e.size>0&&(0,J.jsx)(`div`,{className:`text-sm text-muted-foreground`,children:V(`table.selected`,{count:_e.size})})]})]}),(0,J.jsx)(`div`,{className:Y(`relative bg-background`,I?`overflow-visible`:`flex-1 min-h-0 overflow-auto [-webkit-overflow-scrolling:touch]`,!F&&`rounded-md border shadow-[inset_-8px_0_8px_-8px_rgba(0,0,0,0.08)]`),children:(0,J.jsxs)(Nb,{containerClassName:`overflow-visible`,children:[t&&(0,J.jsx)(Bb,{children:t}),(0,J.jsx)(Pb,{className:`sticky top-0 bg-background z-10`,children:(0,J.jsxs)(Lb,{ref:De,children:[L&&(0,J.jsx)(Rb,{className:Y(`w-10 bg-background px-3`,N>0&&`sticky left-0 z-20`),children:re===`multiple`&&(0,J.jsx)(rp,{checked:an?!0:on?`indeterminate`:!1,onCheckedChange:Pt})}),ee&&(0,J.jsx)(Rb,{className:Y(`w-10 bg-background text-center px-3`,N>0&&`sticky z-20`),style:N>0?{left:ke?.[+!!L]??(L?40:0)}:void 0,children:(0,J.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`#`})}),Ce.map((e,t)=>{let n=e.fitContent===!0&&!Te[e.accessorKey]&&!e.width,r=n?`1%`:Te[e.accessorKey]||e.width||de[e.accessorKey],i=Ne===t,a=Fe===t,o=N>0&&t<N,s=typeof e.className==`string`&&/\bsticky\b/.test(e.className)&&/\bright-0\b/.test(e.className),c=o?ke?.[+!!L+ +!!ee+t]??Ce.slice(0,t).reduce((e,t,n)=>{if(n<N){let n=Te[t.accessorKey]||t.width||de[t.accessorKey];return e+(typeof n==`number`?n:n&&parseInt(String(n),10)||150)}return e},(L?40:0)+(ee?40:0)):void 0;return(0,J.jsx)(Rb,{className:Y(e.className,Tt(e)&&`cursor-pointer select-none`,i&&`opacity-50`,a&&`border-l-2 border-primary`,e.align===`right`&&`text-right`,e.align===`center`&&`text-center`,n&&`whitespace-nowrap`,`group bg-background`,!s&&`relative`,s&&`sticky right-0 z-20`,o&&`sticky z-20`,o&&t===N-1&&`border-r-2 border-border shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]`),style:{width:r,minWidth:r,...o&&{left:c}},draggable:ie,onDragStart:e=>Vt(e,t),onDragOver:e=>Ht(e,t),onDrop:e=>Ut(e,t),onDragEnd:Wt,onClick:()=>Tt(e)&&At(e.accessorKey),onContextMenu:t=>jt(t,e.accessorKey),children:(0,J.jsxs)(`div`,{className:Y(`flex items-center`,e.align===`right`?`justify-end`:`justify-between`),children:[(0,J.jsxs)(`div`,{className:`flex items-center gap-1`,children:[ie&&(0,J.jsx)(Ui,{className:`h-4 w-4 opacity-0 group-hover:opacity-50 cursor-grab active:cursor-grabbing shrink-0`}),e.headerIcon&&(0,J.jsx)(`span`,{className:`text-muted-foreground shrink-0`,children:e.headerIcon}),(0,J.jsx)(`span`,{className:`text-xs font-medium text-muted-foreground whitespace-nowrap truncate`,children:e.header}),Tt(e)&&Lt(e.accessorKey),B&&(0,J.jsx)(`button`,{type:`button`,onClick:t=>{t.stopPropagation(),R.onEditColumn(e.accessorKey)},title:R.editColumnLabel??`Edit field`,"aria-label":R.editColumnLabel??`Edit field`,"data-testid":`grid-edit-column-${e.accessorKey}`,className:`ml-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded text-muted-foreground/50 opacity-0 transition-opacity hover:bg-muted hover:text-foreground group-hover:opacity-100`,children:(0,J.jsx)(ha,{className:`h-3 w-3`})})]}),T&&e.resizable!==!1&&(0,J.jsx)(`div`,{className:`absolute right-0 top-0 h-full w-1 cursor-col-resize hover:bg-primary opacity-0 hover:opacity-100 transition-opacity`,onMouseDown:t=>Rt(t,e.accessorKey),onClick:e=>e.stopPropagation()})]})},e.accessorKey)}),w&&(0,J.jsx)(Rb,{className:`w-24 text-right bg-background`,children:V(`common.actions`)}),z&&(0,J.jsx)(Rb,{className:`w-10 bg-background px-1 text-center`,children:(0,J.jsx)(`button`,{type:`button`,onClick:R.onAddColumn,title:R.addColumnLabel??`Add field`,"aria-label":R.addColumnLabel??`Add field`,"data-testid":`grid-add-column`,className:`inline-flex h-6 w-6 items-center justify-center rounded text-muted-foreground transition-colors hover:bg-muted hover:text-foreground`,children:(0,J.jsx)(ta,{className:`h-4 w-4`})})})]})}),(0,J.jsx)(Fb,{children:_t.length===0?(0,J.jsx)(Lb,{className:`hover:bg-transparent`,children:(0,J.jsx)(zb,{colSpan:Ce.length+ +!!L+ +!!ee+ +!!w+ +!!z,className:`h-48 text-center text-muted-foreground border-0`,children:(0,J.jsxs)(`div`,{className:`flex flex-col items-center justify-center gap-3`,children:[(0,J.jsx)(la,{className:`h-8 w-8 text-muted-foreground/50`}),(0,J.jsxs)(`div`,{className:`space-y-1`,children:[(0,J.jsx)(`p`,{children:V(`table.noResults`)}),(0,J.jsx)(`p`,{className:`text-xs text-muted-foreground/50`,children:V(`table.noResultsHint`)})]}),e.emptyAction?(0,J.jsx)(Ie,{schema:Ke(e.emptyAction)}):null]})})}):(0,J.jsxs)(J.Fragment,{children:[_t.map((t,n)=>{let r=(ht-1)*xe+n,i=xt(t,r),a=_e.has(i),o=We.has(n),s=We.get(n)||{};return(0,J.jsxs)(Lb,{"data-state":a?`selected`:void 0,className:Y(`bg-background border-b border-border/60 group/row transition-colors`,`hover:bg-muted/40`,`data-[state=selected]:bg-primary/5 data-[state=selected]:hover:bg-primary/10`,`focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-inset`,e.onRowClick&&`cursor-pointer`,o&&!$e.has(n)&&`bg-amber-50 dark:bg-amber-950/20`,$e.has(n)&&`bg-destructive/10 dark:bg-destructive/15 ring-1 ring-inset ring-destructive/40`,k&&k(t,n)),style:A?A(t,n):void 0,onClick:n=>{if(e.onRowClick&&!n.defaultPrevented){let r=n.target;if(r.closest(`button`)||r.closest(`a`)||r.closest(`input, select, textarea, label`)||r.closest(`[role="checkbox"]`)||r.closest(`[role="menu"]`)||r.closest(`[role="menuitem"]`)||r.closest(`[role="menuitemcheckbox"]`)||r.closest(`[role="menuitemradio"]`)||r.closest(`[role="dialog"]`)||r.closest(`[role="alertdialog"]`)||r.closest(`[role="listbox"]`)||r.closest(`[role="option"]`)||r.closest(`[role="tab"]`)||r.closest(`[data-radix-popper-content-wrapper]`))return;e.onRowClick(t,n)}},children:[L&&(0,J.jsx)(zb,{className:Y(M,`px-3`,N>0&&`sticky left-0 z-10 bg-background`),children:(0,J.jsx)(rp,{checked:a,onCheckedChange:e=>Ft(i,e)})}),ee&&(0,J.jsxs)(zb,{className:Y(`text-center w-10 relative`,M,N>0&&`sticky z-10 bg-background`),style:N>0?{left:ke?.[+!!L]??(L?40:0)}:void 0,children:[(0,J.jsx)(`span`,{className:Y(`text-xs text-muted-foreground tabular-nums select-none`,!L&&e.onRowClick&&`group-hover/row:invisible`),children:r+1}),!L&&e.onRowClick&&(0,J.jsxs)(`button`,{type:`button`,className:`absolute inset-0 hidden group-hover/row:flex items-center justify-center gap-0.5 text-xs font-medium text-primary hover:text-primary/80`,"data-testid":`row-expand-button`,onClick:n=>{n.stopPropagation(),e.onRowClick?.(t,n)},title:`Open record`,children:[(0,J.jsx)(`span`,{children:V(`table.open`)}),(0,J.jsx)(gi,{className:`h-3 w-3`})]})]}),Ce.map((r,i)=>{let a=r.fitContent===!0&&!Te[r.accessorKey]&&!r.width,c=r.wrap===!0&&!a,l=a?`1%`:Te[r.accessorKey]||r.width||de[r.accessorKey],u=t[r.accessorKey],d=s[r.accessorKey]!==void 0,f=d?s[r.accessorKey]:u,p=Re?.rowIndex===n&&Re?.columnKey===r.accessorKey,m=D&&r.editable!==!1&&!r.masked,h=N>0&&i<N,g=h?ke?.[+!!L+ +!!ee+i]??Ce.slice(0,i).reduce((e,t,n)=>{if(n<N){let n=Te[t.accessorKey]||t.width||de[t.accessorKey];return e+(typeof n==`number`?n:n&&parseInt(String(n),10)||150)}return e},(L?40:0)+(ee?40:0)):void 0;return(0,J.jsx)(zb,{className:Y(r.cellClassName,r.align===`right`&&`text-right`,r.align===`center`&&`text-center`,a?`whitespace-nowrap`:`overflow-hidden`,m&&!p&&`cursor-text hover:bg-muted/50`,d&&`font-semibold text-amber-700 dark:text-amber-400`,h&&`sticky z-10 bg-background`,h&&i===N-1&&`border-r-2 border-border shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]`),style:{width:l,minWidth:a?void 0:l,maxWidth:a?void 0:l,...h&&{left:g}},onDoubleClick:e=>{m&&!O&&(e.stopPropagation(),Gt(n,r.accessorKey))},onClick:e=>{m&&O&&(e.stopPropagation(),Gt(n,r.accessorKey))},onKeyDown:e=>nn(e,n,r.accessorKey),tabIndex:0,children:p?(()=>{let i=r.type,a=e.renderCellEditor;if(typeof a==`function`){let e=a({column:r,row:t,pendingRow:o?qe.of(t,n):t,value:He,stage:Xt,commit:e=>Kt(!0,e),cancel:Yt});if(e!=null)return(0,J.jsx)(`div`,{ref:e=>{dt.current=e},className:`w-full`,onKeyDown:e=>{e.currentTarget.contains(e.target)&&(e.key===`Enter`&&e.target.tagName===`INPUT`?(e.preventDefault(),Kt(!0)):e.key===`Escape`&&(e.preventDefault(),Jt(!0)))},children:e})}if(i===`date`||i===`datetime`){let e=i===`datetime`,t=Oe(He),n=(0,J.jsx)(Pv,{ref:ct,type:e?`datetime-local`:`date`,value:t?``:e?Qe(He):Me(He),onChange:t=>Ue(e?at(t.target.value):t.target.value),onKeyDown:rn,onBlur:Zt,"aria-invalid":t||void 0,"aria-describedby":t?ae:void 0,className:`h-8 px-2 py-1`});return t?(0,J.jsxs)(`div`,{className:`space-y-1`,children:[n,(0,J.jsx)(`p`,{id:ae,className:`text-xs text-destructive`,"data-testid":e?`datetime-impossible-day`:`date-impossible-day`,children:V(e?`fields.dateTime.impossibleDay`:`fields.date.impossibleDay`,{value:String(He)})})]}):n}return i&&dk.has(i)?(0,J.jsx)(Pv,{ref:ct,type:`number`,value:He??``,onChange:e=>Ue(e.target.value),onKeyDown:rn,onBlur:Zt,className:`h-8 px-2 py-1`}):typeof He==`object`&&He?(0,J.jsx)(Pv,{ref:ct,value:fk(He),readOnly:!0,onKeyDown:rn,onBlur:Yt,className:`h-8 px-2 py-1 text-muted-foreground cursor-default`,title:fk(He)}):(0,J.jsx)(Pv,{ref:ct,value:He,onChange:e=>Ue(e.target.value),onKeyDown:rn,onBlur:Zt,className:`h-8 px-2 py-1`})})():(0,J.jsx)(`div`,{className:a?`w-full whitespace-nowrap`:c?`w-full whitespace-normal break-words`:`truncate w-full`,title:!a&&!r.masked&&f!=null&&typeof f!=`object`?String(f):void 0,children:typeof r.cell==`function`?r.cell(f,t):typeof f==`object`&&f?String(f):W(f)})},i)}),w&&(0,J.jsx)(zb,{className:Y(`text-right`,M),children:(0,J.jsx)(`div`,{className:`flex items-center justify-end gap-1`,children:o&&(e.onRowSave||e.onBatchSave)?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(X,{variant:`ghost`,size:`icon`,onClick:()=>$t(n),disabled:Je,title:`Cancel changes`,children:(0,J.jsx)(Ta,{className:`h-4 w-4`})}),(0,J.jsx)(X,{variant:`ghost`,size:`icon`,onClick:()=>Qt(n),disabled:Je,title:`Save row`,children:(0,J.jsx)(ca,{className:`h-4 w-4 text-green-600`})})]}):(0,J.jsx)(xk,{schema:e,row:t,t:V})})}),z&&(0,J.jsx)(zb,{"aria-hidden":!0,className:`w-10`})]},i)}),P&&(0,J.jsx)(Lb,{className:`hover:bg-muted/30 cursor-pointer border-b border-border`,"data-testid":`add-record-row`,onClick:()=>e.onAddRecord?.(),children:(0,J.jsx)(zb,{colSpan:Ce.length+ +!!L+ +!!ee+ +!!w+ +!!z,className:`h-9 px-3 py-1.5`,children:(0,J.jsxs)(`span`,{className:`flex items-center gap-1.5 text-muted-foreground text-sm hover:text-foreground transition-colors`,children:[(0,J.jsx)(ta,{className:`h-3.5 w-3.5`}),V(`table.addRecord`)]})})})]})})]})}),i&&mt.length>0&>>1&&(0,J.jsxs)(`div`,{className:`flex flex-col sm:flex-row items-center justify-between gap-2 px-3 sm:px-4 py-2`,children:[(0,J.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,J.jsxs)(`span`,{className:`text-xs sm:text-sm text-muted-foreground`,children:[V(`table.rowsPerPage`),`:`]}),(0,J.jsxs)(vy,{value:xe.toString(),onValueChange:e=>yt(Number(e)),children:[(0,J.jsx)(by,{className:`w-20`,children:(0,J.jsx)(yy,{})}),(0,J.jsx)(Cy,{children:bt.map(e=>(0,J.jsx)(Ty,{value:e.toString(),children:e},e))})]})]}),(0,J.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,J.jsx)(`span`,{className:`text-xs sm:text-sm text-muted-foreground`,children:V(`table.pageInfo`,{current:ht,total:gt})}),(0,J.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,J.jsx)(X,{variant:`outline`,size:`icon`,onClick:()=>vt(1),disabled:ht===1,children:(0,J.jsx)(vi,{className:`h-4 w-4`})}),(0,J.jsx)(X,{variant:`outline`,size:`icon`,onClick:()=>vt(ht-1),disabled:ht===1,children:(0,J.jsx)(hi,{className:`h-4 w-4`})}),(0,J.jsx)(X,{variant:`outline`,size:`icon`,onClick:()=>vt(ht+1),disabled:ht===gt,children:(0,J.jsx)(gi,{className:`h-4 w-4`})}),(0,J.jsx)(X,{variant:`outline`,size:`icon`,onClick:()=>vt(gt),disabled:ht===gt,children:(0,J.jsx)(yi,{className:`h-4 w-4`})})]})]})]}),tt&&(0,J.jsxs)(`div`,{className:`fixed z-50 min-w-[160px] rounded-md border bg-popover p-1 shadow-md`,style:{left:tt.x,top:tt.y},"data-testid":`column-context-menu`,onClick:e=>e.stopPropagation(),children:[Mt&&Tt(Mt)&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(`button`,{type:`button`,className:`flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm hover:bg-accent hover:text-accent-foreground cursor-pointer`,onClick:()=>{kt(tt.columnKey,`asc`),nt(null)},children:[(0,J.jsx)(_i,{className:`h-3.5 w-3.5`}),V(`table.sortAsc`)]}),(0,J.jsxs)(`button`,{type:`button`,className:`flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm hover:bg-accent hover:text-accent-foreground cursor-pointer`,onClick:()=>{kt(tt.columnKey,`desc`),nt(null)},children:[(0,J.jsx)(mi,{className:`h-3.5 w-3.5`}),V(`table.sortDesc`)]}),(0,J.jsx)(`div`,{className:`my-1 h-px bg-border`})]}),(0,J.jsxs)(`button`,{type:`button`,className:`flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm hover:bg-accent hover:text-accent-foreground cursor-pointer`,onClick:()=>Nt(tt.columnKey),children:[(0,J.jsx)(Ta,{className:`h-3.5 w-3.5`}),V(`table.hideColumn`)]})]})]})},{namespace:`ui`,label:`Data Table`,icon:`table`,inputs:[{name:`caption`,type:`string`},{name:`columns`,type:`array`,description:`Array of { header, accessorKey, className, width, sortable, filterable, resizable }`,required:!0},{name:`data`,type:`array`,description:`Array of data objects`,required:!0},{name:`pagination`,type:`boolean`},{name:`pageSize`,type:`number`},{name:`searchable`,type:`boolean`},{name:`selectable`,type:`boolean`},{name:`sortable`,type:`boolean`},{name:`exportable`,type:`boolean`},{name:`rowActions`,type:`boolean`},{name:`resizableColumns`,type:`boolean`},{name:`reorderableColumns`,type:`boolean`},{name:`className`,type:`string`}],defaultProps:{caption:`Enterprise Data Table`,pagination:!0,pageSize:10,searchable:!0,selectable:!0,sortable:!0,exportable:!0,rowActions:!0,resizableColumns:!0,reorderableColumns:!0,columns:[{header:`ID`,accessorKey:`id`,width:`80px`},{header:`Name`,accessorKey:`name`},{header:`Email`,accessorKey:`email`},{header:`Status`,accessorKey:`status`},{header:`Role`,accessorKey:`role`}],data:[{id:1,name:`John Doe`,email:`john@example.com`,status:`Active`,role:`Admin`},{id:2,name:`Jane Smith`,email:`jane@example.com`,status:`Active`,role:`User`},{id:3,name:`Bob Johnson`,email:`bob@example.com`,status:`Inactive`,role:`User`},{id:4,name:`Alice Williams`,email:`alice@example.com`,status:`Active`,role:`Manager`},{id:5,name:`Charlie Brown`,email:`charlie@example.com`,status:`Active`,role:`User`},{id:6,name:`Diana Prince`,email:`diana@example.com`,status:`Active`,role:`Admin`},{id:7,name:`Ethan Hunt`,email:`ethan@example.com`,status:`Inactive`,role:`User`},{id:8,name:`Fiona Gallagher`,email:`fiona@example.com`,status:`Active`,role:`User`},{id:9,name:`George Wilson`,email:`george@example.com`,status:`Active`,role:`Manager`},{id:10,name:`Hannah Montana`,email:`hannah@example.com`,status:`Active`,role:`User`},{id:11,name:`Ivan Drago`,email:`ivan@example.com`,status:`Inactive`,role:`User`},{id:12,name:`Julia Roberts`,email:`julia@example.com`,status:`Active`,role:`Admin`}]}});function Dk(e){return e?.autoTrigger===!0}function Ok(e){return`auto-trigger-refused:${e.name??e.label??``}`}function kk(e,t){kt.warning(t,{id:Ok(e)})}function Ak(e,t,n){let{t:r}=wt(),i=(0,q.useRef)(!1),a=(0,q.useRef)(!1),o=Dk(e),s=_(e.visible)&&!t;(0,q.useEffect)(()=>{if(o&&!i.current){if(s){a.current||(a.current=!0,kk(e,r(`actions.notAvailableHere`,{defaultValue:`"{{action}}" is not available on the current page.`,action:e.label||e.name||``})));return}i.current=!0,n()}},[o,s,n,r,e])}var jk=(0,q.forwardRef)(({schema:e,className:t,context:n,...r},i)=>{let{"data-obj-id":a,"data-obj-type":o,style:s,data:c,disabled:l,...u}=r,{execute:d}=Ce(),[f,p]=(0,q.useState)(!1),m=B(c),h=R(D(e.visible),m,{throwOnError:!0,label:`action "${e.name??e.label??`action:button`}" (visible)`}),g=R(D(e.disabled),m),v=R(D(e.enabled),m),y=Tx(e.icon),b=e.variant===`primary`?`default`:e.variant||`default`,x=e.size===`md`?`default`:e.size||`default`,S=(0,q.useCallback)(async()=>{if(!f){p(!0);try{if(typeof e.onClick==`function`){await e.onClick();return}let t=Vx(e,`action:button`),r=Array.isArray(e.params)?{actionParams:e.params,params:t}:{params:t},i={type:e.actionType,name:e.name,label:e.label,description:e.description,target:e.target,openIn:e.openIn,endpoint:e.endpoint,method:e.method,...r,bodyExtra:e.bodyExtra,bodyShape:e.bodyShape,operation:e.operation,patch:e.patch,confirmText:e.confirmText,successMessage:e.successMessage,errorMessage:e.errorMessage,refreshAfter:e.refreshAfter,undoable:e.undoable,recordIdField:e.recordIdField,locations:e.locations,toast:e.toast,resultDialog:e.resultDialog,onSuccess:e.onSuccess,objectName:e.objectName};await d({...i,...n})}finally{p(!1)}}},[e,d,f,n]);return Ak(e,h,S),_(e.visible)&&!h?null:(0,J.jsxs)(X,{ref:i,type:`button`,variant:b,size:x,className:Y(e.className,t),disabled:l||(_(e.disabled)?g:_(e.enabled)?!v:!1)||f,onClick:S,...yT(u),"data-obj-id":a,"data-obj-type":o,style:s,children:[f&&(0,J.jsx)(Ji,{className:`mr-2 h-4 w-4 animate-spin`}),!f&&y&&(0,J.jsx)(y,{className:Y(`h-4 w-4`,e.label&&`mr-2`)}),e.label]})});jk.displayName=`ActionButtonRenderer`,K.register(`button`,jk,{namespace:`action`,skipFallback:!0,label:`Action Button`,inputs:[{name:`name`,type:`string`},{name:`label`,type:`string`},{name:`icon`,type:`string`},{name:`actionType`,type:`enum`,enum:[`script`,`url`,`modal`,`flow`,`api`]},{name:`target`,type:`string`},{name:`variant`,type:`enum`,enum:[`default`,`primary`,`secondary`,`destructive`,`outline`,`ghost`]},{name:`size`,type:`enum`,enum:[`default`,`sm`,`md`,`lg`,`icon`],description:"Button size: the Button primitive's `default`, `sm`, `lg` or `icon`, plus `md`, which renders as `default` (default: `default`)"},{name:`className`,type:`string`},{name:`visible`,type:[`boolean`,`string`,`object`],description:"Visibility predicate: `true`/`false`, a bare CEL expression, or the `{ dialect: 'cel', source }` envelope, evaluated against the row the host binds; the button is not rendered when it is false, nor when the predicate fails to evaluate. Omit for always-visible"},{name:`disabled`,type:[`boolean`,`string`,`object`],description:"Disabled predicate, in the same three shapes as `visible`: the button is shown but cannot be pressed while it holds. Omit for never-disabled"},{name:`params`,type:`array`,description:"The parameters to collect from the user before the action runs (`ActionParam` objects: `name`, `type`, `label`, …); each collected value reaches the executor under its parameter `name`. Static execution values ride `properties.params` instead"},{name:`description`,type:`string`,description:`Action description — the parameter dialog shows it under its title`},{name:`openIn`,type:`enum`,enum:[`self`,`new-tab`],description:"For a `url` action: `self` navigates in place, `new-tab` opens a new browser tab"},{name:`method`,type:`string`,description:"HTTP method of an `api` action (`POST` when omitted)"},{name:`bodyExtra`,type:`object`,description:"Static request-body fields of an `api` action, merged last, so a constant here overrides a collected value of the same name"},{name:`bodyShape`,type:[`enum`,`object`],enum:[`flat`],description:"How an `api` action shapes its request body: `flat` (the default) or `{ wrap: KEY }` to nest the collected values under that key, with `bodyExtra` beside it"},{name:`operation`,type:`enum`,enum:[`update`],description:"`update` declares a single-record field write: the runner dispatches it to the platform action route with `patch` merged under the collected values"},{name:`patch`,type:`object`,description:"For `operation: update`: the field values written, merged UNDER the values the user supplies, so a collected value of the same name wins"},{name:`confirmText`,type:`string`,description:`Confirmation question asked before the action runs; the action runs only if it is confirmed`},{name:`successMessage`,type:`string`,description:`Toast text when the action succeeds (a message the server returns takes precedence)`},{name:`errorMessage`,type:`string`,description:`Toast text when the action fails, in place of the raw error`},{name:`refreshAfter`,type:`boolean`,description:`Refresh the surrounding data after the action succeeds`},{name:`locations`,type:`array`,of:`string`,description:"The placements the action declares (`list_toolbar`, `list_item`, `record_header`, …). A `script` or `flow` action declared record-scoped (`list_item`, `record_header`, `record_more` or `record_section`) refuses to run when no record or single selection is in scope, instead of running without one"},{name:`toast`,type:`object`,description:"Toast behaviour: `{ showOnSuccess?, showOnError?, duration? }` — `false` suppresses that toast, `duration` is handed to the toast"},{name:`resultDialog`,type:`object`,description:`One-shot result dialog for a value the response shows exactly once (a 2FA code, a fresh secret); it replaces the success toast`},{name:`onSuccess`,type:`object`,description:"Post-success navigation `{ navigate, openIn? }`: `navigate` is a route template that can read `${result.*}`, `openIn` is `self` (the default) or `newTab`"},{name:`objectName`,type:`string`,description:`Object the action acts on — dispatch goes to this object instead of the page's. Omit to act on the page's object`},{name:`recordIdField`,type:`string`,description:"For a `script` action run against a single selected row: the row field whose value is sent as the record id (default `id`)"}],defaultProps:{label:`Action`,actionType:`script`,variant:`default`,size:`md`}});var Mk=(0,q.forwardRef)(({schema:e,className:t,context:n,...r},i)=>{let{"data-obj-id":a,"data-obj-type":o,style:s,data:c,disabled:l,...u}=r,{execute:d}=Ce(),[f,p]=(0,q.useState)(!1),m=B(c),h=R(D(e.visible),m,{throwOnError:!0,label:`action "${e.name??e.label??`action:icon`}" (visible)`}),g=R(D(e.disabled),m),v=R(D(e.enabled),m),y=Tx(e.icon),b=e.variant===`primary`?`default`:e.variant||`ghost`,x=(0,q.useCallback)(async()=>{if(!f){p(!0);try{if(typeof e.onClick==`function`){await e.onClick();return}let t=Vx(e,`action:icon`),r=Array.isArray(e.params)?{actionParams:e.params,params:t}:{params:t},i={type:e.actionType,name:e.name,label:e.label,description:e.description,target:e.target,openIn:e.openIn,endpoint:e.endpoint,method:e.method,...r,bodyExtra:e.bodyExtra,bodyShape:e.bodyShape,operation:e.operation,patch:e.patch,confirmText:e.confirmText,successMessage:e.successMessage,errorMessage:e.errorMessage,refreshAfter:e.refreshAfter,locations:e.locations,toast:e.toast,resultDialog:e.resultDialog,onSuccess:e.onSuccess,objectName:e.objectName};await d({...i,...n})}finally{p(!1)}}},[e,d,f,n]);if(Ak(e,h,x),_(e.visible)&&!h)return null;let S=(0,J.jsx)(X,{ref:i,type:`button`,variant:b,size:`icon`,className:Y(`h-8 w-8`,e.className,t),disabled:l||(_(e.disabled)?g:_(e.enabled)?!v:!1)||f,onClick:x,"aria-label":e.label||e.name,...yT(u),"data-obj-id":a,"data-obj-type":o,style:s,children:f?(0,J.jsx)(Ji,{className:`h-4 w-4 animate-spin`}):y?(0,J.jsx)(y,{className:`h-4 w-4`}):(0,J.jsx)(`span`,{className:`text-xs`,children:e.label?.charAt(0)||`?`})});return e.label||e.description?(0,J.jsx)(Uy,{delayDuration:300,children:(0,J.jsxs)(Wy,{children:[(0,J.jsx)(Gy,{asChild:!0,children:S}),(0,J.jsx)(Ky,{children:(0,J.jsx)(`p`,{children:e.label||e.description})})]})}):S});Mk.displayName=`ActionIconRenderer`,K.register(`icon`,Mk,{namespace:`action`,skipFallback:!0,label:`Action Icon`,inputs:[{name:`name`,type:`string`},{name:`label`,type:`string`},{name:`icon`,type:`string`},{name:`actionType`,type:`enum`,enum:[`script`,`url`,`modal`,`flow`,`api`]},{name:`target`,type:`string`},{name:`variant`,type:`enum`,enum:[`default`,`secondary`,`destructive`,`outline`,`ghost`]},{name:`className`,type:`string`},{name:`visible`,type:[`boolean`,`string`,`object`],description:"Visibility predicate: `true`/`false`, a bare CEL expression, or the `{ dialect: 'cel', source }` envelope, evaluated against the row the host binds; the icon is not rendered when it is false. Omit for always-visible"},{name:`disabled`,type:[`boolean`,`string`,`object`],description:"Disabled predicate, in the same three shapes as `visible`: the icon is shown but cannot be pressed while it holds. Omit for never-disabled"},{name:`params`,type:`array`,description:"The parameters to collect from the user before the action runs (`ActionParam` objects: `name`, `type`, `label`, …); each collected value reaches the executor under its parameter `name`. Static execution values ride `properties.params` instead"},{name:`description`,type:`string`,description:"Action description — the tooltip text when there is no `label`, and what the parameter dialog shows under its title"},{name:`openIn`,type:`enum`,enum:[`self`,`new-tab`],description:"For a `url` action: `self` navigates in place, `new-tab` opens a new browser tab"},{name:`method`,type:`string`,description:"HTTP method of an `api` action (`POST` when omitted)"},{name:`bodyExtra`,type:`object`,description:"Static request-body fields of an `api` action, merged last, so a constant here overrides a collected value of the same name"},{name:`bodyShape`,type:[`enum`,`object`],enum:[`flat`],description:"How an `api` action shapes its request body: `flat` (the default) or `{ wrap: KEY }` to nest the collected values under that key, with `bodyExtra` beside it"},{name:`operation`,type:`enum`,enum:[`update`],description:"`update` declares a single-record field write: the runner dispatches it to the platform action route with `patch` merged under the collected values"},{name:`patch`,type:`object`,description:"For `operation: update`: the field values written, merged UNDER the values the user supplies, so a collected value of the same name wins"},{name:`confirmText`,type:`string`,description:`Confirmation question asked before the action runs; the action runs only if it is confirmed`},{name:`successMessage`,type:`string`,description:`Toast text when the action succeeds (a message the server returns takes precedence)`},{name:`errorMessage`,type:`string`,description:`Toast text when the action fails, in place of the raw error`},{name:`refreshAfter`,type:`boolean`,description:`Refresh the surrounding data after the action succeeds`},{name:`locations`,type:`array`,of:`string`,description:"The placements the action declares (`list_toolbar`, `list_item`, `record_header`, …). A `script` or `flow` action declared record-scoped (`list_item`, `record_header`, `record_more` or `record_section`) refuses to run when no record or single selection is in scope, instead of running without one"},{name:`toast`,type:`object`,description:"Toast behaviour: `{ showOnSuccess?, showOnError?, duration? }` — `false` suppresses that toast, `duration` is handed to the toast"},{name:`resultDialog`,type:`object`,description:`One-shot result dialog for a value the response shows exactly once (a 2FA code, a fresh secret); it replaces the success toast`},{name:`onSuccess`,type:`object`,description:"Post-success navigation `{ navigate, openIn? }`: `navigate` is a route template that can read `${result.*}`, `openIn` is `self` (the default) or `newTab`"},{name:`objectName`,type:`string`,description:`Object the action acts on — dispatch goes to this object instead of the page's. Omit to act on the page's object`}],defaultProps:{icon:`play`,actionType:`script`,variant:`ghost`}});function Nk(){let{t:e}=wt(),t=e(`detail.moreActions`);return!t||t===`detail.moreActions`?`More actions`:t}function Pk(e,t){let n=B(t);return{recordData:n,isVisible:R(D(e.visible),n,{throwOnError:!0,label:`action "${e.name??e.label??`action:menu item`}" (visible)`})}}var Fk=({action:e,onExecute:t,record:n})=>{let{recordData:r,isVisible:i}=Pk(e,n),a=R(D(e.disabled),r),o=R(D(e.enabled),r),s=(0,q.useMemo)(()=>{let t=Tx(e.icon);return t?(0,J.jsx)(t,{className:`mr-2 h-4 w-4`}):null},[e.icon]);return _(e.visible)&&!i?null:(0,J.jsxs)(tg,{disabled:_(e.disabled)?a:_(e.enabled)?!o:!1,onSelect:n=>{n.preventDefault(),t(e)},className:Y(e.variant===`destructive`&&`text-destructive focus:text-destructive`,e.className),children:[s,(0,J.jsx)(`span`,{children:e.label||e.name})]})};Fk.displayName=`ActionMenuItem`;var Ik=({action:e,onExecute:t,record:n})=>{let{isVisible:r}=Pk(e,n);return Ak(e,r,(0,q.useCallback)(()=>t(e),[e,t])),null};Ik.displayName=`ActionAutoTrigger`;var Lk=(0,q.forwardRef)(({schema:e,className:t,...n},r)=>{let{"data-obj-id":i,"data-obj-type":a,style:o,data:s,disabled:c,...l}=n,{execute:u}=Ce(),d=st(),[f,p]=(0,q.useState)(!1),m=Nk(),h=B(s),g=R(D(e.visible),h,{throwOnError:!0,label:`action:menu "${e.label??e.icon??`menu`}" (visible)`}),_=Tx(e.icon)||Ni,v=e.variant||`ghost`,y=e.size||`icon`,b=(0,q.useCallback)(async e=>{p(!0);try{if(typeof e.onClick==`function`){await e.onClick();return}let t=Ux(e,d),n=Array.isArray(e.params)?void 0:Wx(e,e.type,`action:menu`),r=Array.isArray(e.params)?{actionParams:e.params,params:t}:{params:t===void 0?n:t};await u({type:e.type,name:e.name,label:e.label,description:e.description,target:e.target,openIn:e.openIn,endpoint:e.endpoint,method:e.method,...r,bodyExtra:e.bodyExtra,bodyShape:e.bodyShape,operation:e.operation,patch:e.patch,confirmText:e.confirmText,successMessage:e.successMessage,errorMessage:e.errorMessage,refreshAfter:e.refreshAfter,locations:e.locations,toast:e.toast,resultDialog:e.resultDialog,onSuccess:e.onSuccess,objectName:e.objectName})}finally{p(!1)}},[u,d]);if(e.visible&&!g)return null;let x=e.actions||[];return x.length===0?null:(0,J.jsxs)(J.Fragment,{children:[x.map((e,t)=>(0,J.jsx)(Ik,{action:e,onExecute:b,record:s},`auto-trigger:${e.name||t}`)),(0,J.jsxs)(Jh,{children:[(0,J.jsx)(Yh,{asChild:!0,children:(0,J.jsx)(X,{ref:r,type:`button`,variant:v,size:y,className:Y(y===`icon`&&`h-8 w-8`,e.className,t),disabled:c||f,"aria-label":e.label||m,...l,"data-obj-id":i,"data-obj-type":a,style:o,children:f?(0,J.jsx)(Ji,{className:`h-4 w-4 animate-spin`}):(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(_,{className:Y(`h-4 w-4`,e.label&&`mr-2`)}),e.label&&(0,J.jsx)(`span`,{children:e.label})]})})}),(0,J.jsx)(eg,{align:`end`,children:x.map((e,t)=>{let n=e.tags?.includes(`separator-before`)&&t>0;return(0,J.jsxs)(q.Fragment,{children:[n&&(0,J.jsx)(ag,{}),(0,J.jsx)(Fk,{action:e,onExecute:b,record:s})]},e.name||t)})})]})]})});Lk.displayName=`ActionMenuRenderer`,K.register(`menu`,Lk,{namespace:`action`,skipFallback:!0,label:`Action Menu`,inputs:[{name:`label`,type:`string`},{name:`icon`,type:`string`},{name:`actions`,type:`array`,of:`object`,description:"The menu's actions, in order. Each member is an action object the menu draws and runs itself (`name`, `label`, `icon`, `type`, `target`, `visible`, `disabled`, `tags`, …); a member's executor is its own `type`"},{name:`variant`,type:`enum`,enum:[`default`,`secondary`,`outline`,`ghost`]},{name:`size`,type:`enum`,enum:[`default`,`sm`,`lg`,`icon`],description:"Trigger button size (renderer default: `icon`)"},{name:`visible`,type:[`boolean`,`string`,`object`],description:"Visibility predicate for the whole menu: `true`/`false`, a bare CEL expression, or the `{ dialect: 'cel', source }` envelope, evaluated against the row the host binds; a predicate that fails to evaluate hides it. Omit for always-visible"},{name:`className`,type:`string`}],defaultProps:{variant:`ghost`,actions:[]}});function Rk(e,t){return R(D(e.visible),t,{throwOnError:!0,label:`action "${e.name??e.label??`action:group member`}" (visible)`})}var zk=({action:e,variant:t,size:n,onExecute:r,record:i,hostDisabled:a})=>{let[o,s]=(0,q.useState)(!1),c=B(i),l=Rk(e,c),u=R(D(e.disabled),c),d=R(D(e.enabled),c),f=Tx(e.icon),p=e.variant===`primary`?`default`:e.variant||t||`outline`,m=e.size===`md`?`default`:e.size||n||`sm`,h=(0,q.useCallback)(async()=>{if(!o){s(!0);try{await r(e)}finally{s(!1)}}},[e,r,o]);return _(e.visible)&&!l?null:(0,J.jsxs)(X,{type:`button`,variant:p,size:m,className:e.className,disabled:a||(_(e.disabled)?u:_(e.enabled)?!d:!1)||o,onClick:h,children:[o&&(0,J.jsx)(Ji,{className:`mr-2 h-4 w-4 animate-spin`}),!o&&f&&(0,J.jsx)(f,{className:Y(`h-4 w-4`,e.label&&`mr-2`)}),e.label]})};zk.displayName=`InlineActionButton`;var Bk=({action:e,index:t,onSelect:n,record:r})=>{let i=B(r),a=Rk(e,i),o=R(D(e.disabled),i),s=R(D(e.enabled),i);if(_(e.visible)&&!a)return null;let c=Tx(e.icon),l=_(e.disabled)?o:_(e.enabled)?!s:!1,u=e.tags?.includes(`separator-before`)&&t>0;return(0,J.jsxs)(J.Fragment,{children:[u&&(0,J.jsx)(ag,{}),(0,J.jsxs)(tg,{disabled:l,onSelect:async t=>{t.preventDefault(),!l&&await n(e)},className:Y(e.variant===`destructive`&&`text-destructive focus:text-destructive`,e.className),children:[c&&(0,J.jsx)(c,{className:`mr-2 h-4 w-4`}),(0,J.jsx)(`span`,{children:e.label||e.name})]})]})};Bk.displayName=`DropdownActionItem`;var Vk=(0,q.forwardRef)(({schema:e,className:t,...n},r)=>{let{"data-obj-id":i,"data-obj-type":a,style:o,data:s,disabled:c,...l}=n,{execute:u}=Ce(),d=st(),[f,p]=(0,q.useState)(!1),m=B(s),h=R(D(e.visible),m,{throwOnError:!0,label:`action:group "${e.label??e.icon??`group`}" (visible)`}),g=(e.actions||[]).filter(t=>ge(t,e.location)),_=(0,q.useCallback)(async e=>{if(typeof e.onClick==`function`){await e.onClick();return}let t=Ux(e,d),n=Array.isArray(e.params)?void 0:Wx(e,e.type,`action:group`),r=Array.isArray(e.params)?{actionParams:e.params,params:t}:{params:t===void 0?n:t};await u({type:e.type,name:e.name,label:e.label,description:e.description,target:e.target,openIn:e.openIn,endpoint:e.endpoint,method:e.method,...r,bodyExtra:e.bodyExtra,bodyShape:e.bodyShape,operation:e.operation,patch:e.patch,confirmText:e.confirmText,successMessage:e.successMessage,errorMessage:e.errorMessage,refreshAfter:e.refreshAfter,locations:e.locations,toast:e.toast,resultDialog:e.resultDialog,onSuccess:e.onSuccess,objectName:e.objectName})},[u,d]),v=(0,q.useCallback)(async e=>{p(!0);try{await _(e)}finally{p(!1)}},[_]);if(e.visible&&!h||g.length===0)return null;if((e.display||`inline`)===`dropdown`){let n=Tx(e.icon);return(0,J.jsxs)(Jh,{children:[(0,J.jsx)(Yh,{asChild:!0,children:(0,J.jsxs)(X,{type:`button`,variant:e.variant||`outline`,size:e.size===`md`?`default`:e.size||`default`,className:Y(e.className,t),disabled:c||f,"data-obj-id":i,"data-obj-type":a,style:o,children:[f&&(0,J.jsx)(Ji,{className:`mr-2 h-4 w-4 animate-spin`}),!f&&n&&(0,J.jsx)(n,{className:`mr-2 h-4 w-4`}),e.label||`Actions`,(0,J.jsx)(mi,{className:`ml-2 h-3 w-3 opacity-50`})]})}),(0,J.jsx)(eg,{align:`end`,children:g.map((e,t)=>(0,J.jsx)(Bk,{action:e,index:t,onSelect:v,record:s},e.name||t))})]})}return(0,J.jsx)(`div`,{ref:r,className:Y(`flex items-center gap-2`,e.className,t),...l,"data-obj-id":i,"data-obj-type":a,style:o,children:g.map(t=>(0,J.jsx)(zk,{action:t,variant:e.variant,size:e.size,onExecute:_,record:s,hostDisabled:c},t.name))})});Vk.displayName=`ActionGroupRenderer`,K.register(`group`,Vk,{namespace:`action`,skipFallback:!0,label:`Action Group`,inputs:[{name:`label`,type:`string`},{name:`icon`,type:`string`},{name:`actions`,type:`array`,of:`object`,description:"The actions in this group, in order. Each member is an action object the group draws and runs itself (`name`, `label`, `icon`, `type`, `target`, `locations`, `visible`, `disabled`, …); a member's executor is its own `type`"},{name:`display`,type:`enum`,enum:[`inline`,`dropdown`]},{name:`location`,type:`enum`,enum:[...d],description:"Render only the members whose `locations` include this location. Omit to render every member"},{name:`variant`,type:`enum`,enum:[`default`,`secondary`,`outline`,`ghost`]},{name:`size`,type:`enum`,enum:[`default`,`sm`,`lg`,`icon`],description:`Button size for the dropdown trigger and for every inline member that sets none`},{name:`visible`,type:[`boolean`,`string`,`object`],description:"Visibility predicate for the whole group: `true`/`false`, a bare CEL expression, or the `{ dialect: 'cel', source }` envelope, evaluated against the row the host binds. Omit for always-visible"},{name:`className`,type:`string`}],defaultProps:{display:`inline`,variant:`outline`,size:`sm`,actions:[]}});function Hk(){let{t:e}=wt(),t=e(`common.actions`);return!t||t===`common.actions`?`Actions`:t}var Uk=(0,q.forwardRef)(({schema:e,className:t,...n},r)=>{let i=Hk(),{"data-obj-id":a,"data-obj-type":o,style:s,data:c,actions:l,systemActions:u,location:d,maxVisible:f,mobileMaxVisible:p,direction:m,gap:h,variant:g,size:_,visible:v,...y}=n,b=R(D(e.visible),void 0,{throwOnError:!0,label:`action:bar${e.location?` (${e.location})`:``} (visible)`}),x=By(),S=G(),C=st(),w=(0,q.useMemo)(()=>{let t=(e.actions||[]).filter(e=>S(e?.requiredPermissions)).filter(t=>ge(t,e.location)),n=new Set,r=t.filter(e=>!e.name||!n.has(e.name)&&(n.add(e.name),!0));return r.some(e=>e.order!==void 0||e.variant===`primary`)?[...r].sort((e,t)=>{let n=(e.order??0)-(t.order??0);return n===0?(e.variant===`primary`?0:1)-(t.variant===`primary`?0:1):n}):r},[e.actions,e.location,S]),T=(0,q.useMemo)(()=>{let t=e.systemActions||[],n=new Set;return t.filter(e=>S(e?.requiredPermissions)?!e.name||!n.has(e.name)&&(n.add(e.name),!0):!1)},[e.systemActions,S]),E=x?e.mobileMaxVisible??1:e.maxVisible??3,{inlineActions:O,overflowActions:k}=(0,q.useMemo)(()=>{let e=w.filter(e=>e.component===`action:menu`),t=w.filter(e=>e.component!==`action:menu`);return{inlineActions:t.slice(0,E),overflowActions:[...t.slice(E),...e]}},[w,E]),A=(0,q.useMemo)(()=>{let e=[];for(let t of O){if(t.component!==`action:group`){e.push(t);continue}let n=e[e.length-1];Array.isArray(n)?n.push(t):e.push([t])}return e},[O]),j=(0,q.useMemo)(()=>{if(T.length===0)return k;if(k.length===0)return T;let[e,...t]=T,n={...e,tags:[...e.tags||[],`separator-before`]};return[...k,n,...t]},[k,T]);if(e.visible&&!b||w.length===0&&T.length===0)return null;let M=e.direction||`horizontal`,N=e.gap||`gap-2`,ee=j.length>0?K.get(`action:menu`):null,P=ee?(0,J.jsx)(ee,{schema:{type:`action:menu`,actions:j,variant:e.variant||`ghost`,size:e.size||`sm`},data:c}):null,F=(t,n)=>{let r=K.get(n);return r?(0,J.jsx)(r,{schema:{...Hx(t,C),type:n,actionType:t.type,variant:t.variant||e.variant,size:t.size||e.size},data:c},t.name):null};return(0,J.jsxs)(`div`,{ref:r,className:Y(`flex items-center`,M===`vertical`?`flex-col items-stretch`:`flex-row flex-wrap`,N,e.className,t),role:`toolbar`,"aria-label":i,...y,"data-obj-id":a,"data-obj-type":o,style:s,children:[A.map((e,t)=>Array.isArray(e)?(0,J.jsx)(kT,{orientation:M===`vertical`?`vertical`:`horizontal`,className:`empty:hidden`,children:e.map(e=>F(e,`action:button`))},`group:${e[0].name??t}`):F(e,e.component||`action:button`)),j.length>0&&P]})});Uk.displayName=`ActionBarRenderer`,K.register(`bar`,Uk,{namespace:`action`,skipFallback:!0,label:`Action Bar`,inputs:[{name:`actions`,type:`object`},{name:`systemActions`,type:`object`},{name:`location`,type:`enum`,enum:[...d]},{name:`maxVisible`,type:`number`},{name:`direction`,type:`enum`,enum:[`horizontal`,`vertical`]},{name:`variant`,type:`enum`,enum:[`default`,`secondary`,`outline`,`ghost`]},{name:`size`,type:`enum`,enum:[`sm`,`md`,`lg`]},{name:`className`,type:`string`}],defaultProps:{maxVisible:3,direction:`horizontal`,variant:`outline`,size:`sm`,actions:[]}});var Wk=({schema:e,className:t})=>{let n=e.type,r=n.startsWith(`view:`),i=n.startsWith(`widget:`),a=n.startsWith(`field:`);return(0,J.jsxs)(`div`,{className:Y(`flex flex-col items-center justify-center p-6 border-2 border-dashed rounded-lg bg-muted/30 transition-colors hover:bg-muted/50`,r&&`border-blue-300 bg-blue-50/50 min-h-[200px]`,i&&`border-purple-300 bg-purple-50/50 min-h-[150px]`,a&&`border-yellow-300 bg-yellow-50/50 p-2 min-h-[40px] flex-row gap-2 justify-start`,t),children:[(0,J.jsxs)(`div`,{className:Y(`flex items-center gap-2 text-muted-foreground`,a&&`text-sm`),children:[a?(0,J.jsx)(ui,{className:`h-4 w-4`}):(0,J.jsx)(Li,{className:`h-8 w-8 mb-2 opacity-50`}),(0,J.jsxs)(`div`,{className:`flex flex-col items-center text-center`,children:[(0,J.jsx)(`span`,{className:`font-mono font-medium text-foreground`,children:n}),!a&&(0,J.jsx)(`span`,{className:`text-xs`,children:`Component Placeholder`})]})]}),e.props&&!a&&(0,J.jsxs)(`div`,{className:`mt-4 w-full text-xs text-muted-foreground bg-background/50 p-2 rounded overflow-hidden`,children:[(0,J.jsx)(`div`,{className:`opacity-70`,children:`Properties:`}),(0,J.jsx)(`pre`,{className:`mt-1 truncate`,children:JSON.stringify(e.props,null,0)})]})]})},Gk=`view:grid.view:kanban.view:map.view:calendar.view:gantt.view:timeline.view:gallery.view:simple.view:wizard.view:tabbed.view:drawer.view:modal.view:split.field:text.field:textarea.field:password.field:email.field:url.field:phone.field:markdown.field:html.field:code.field:number.field:currency.field:percent.field:slider.field:boolean.field:checkboxes.field:select.field:multiselect.field:radio.field:date.field:datetime.field:time.field:duration.field:lookup.field:master_detail.field:tree.field:image.field:file.field:video.field:audio.field:avatar.field:color.field:rating.field:signature.field:qrcode.field:progress.field:json.field:address.field:location.page:header.page-header.page:footer.page:tabs.page:accordion.page:card.page:sidebar.record:details.record:highlights.record:related_list.record:activity.record:chatter.record:path.app:launcher.nav:menu.nav:breadcrumb.global:search.global:notifications.widget:metric.widget:bar.widget:line.widget:pie.widget:funnel.widget:radar.widget:scatter.widget:heatmap.widget:pivot.widget:table.widget:text.widget:image.ai:input.ai:suggestion.ai:feedback`.split(`.`),Kk=[`nav:menu`,`nav:breadcrumb`,`global:search`,`ai:suggestion`];function qk(e){K.get(e)||K.register(e,Wk,{namespace:`protocol-placeholder`})}function Jk(){Gk.forEach(qk)}Kk.forEach(qk);var Yk={info:{Icon:Ki,tone:`border-border bg-muted/50 text-foreground`,iconTone:`text-muted-foreground`},success:{Icon:Si,tone:`border-emerald-300/70 bg-emerald-50 text-emerald-900 dark:border-emerald-700/60 dark:bg-emerald-950/40 dark:text-emerald-200`,iconTone:`text-emerald-600 dark:text-emerald-400`},warning:{Icon:xa,tone:`border-amber-300/70 bg-amber-50 text-amber-900 dark:border-amber-700/60 dark:bg-amber-950/40 dark:text-amber-200`,iconTone:`text-amber-600 dark:text-amber-400`},error:{Icon:Ti,tone:`border-destructive/50 bg-destructive/10 text-destructive dark:text-destructive-foreground`,iconTone:`text-destructive`}};function Xk(e){return Yk[e??`info`]??Yk.info}function Zk(e){return Fx(e.icon)?Lx(e.icon):Xk(e.severity).Icon}var Qk={primary:`default`,secondary:`secondary`,link:`link`};function $k(e){return Qk[e??`primary`]??Qk.primary}var eA={top_left:`top-4 left-4`,top_center:`top-4 left-1/2 -translate-x-1/2`,top_right:`top-4 right-4`,bottom_left:`bottom-4 left-4`,bottom_center:`bottom-4 left-1/2 -translate-x-1/2`,bottom_right:`bottom-4 right-4`,"top-left":`top-4 left-4`,"top-center":`top-4 left-1/2 -translate-x-1/2`,"top-right":`top-4 right-4`,"bottom-left":`bottom-4 left-4`,"bottom-center":`bottom-4 left-1/2 -translate-x-1/2`,"bottom-right":`bottom-4 right-4`};function tA({className:e}){let t=it(`banner`),{dismiss:n,config:r}=je();if(t.length===0)return null;let i=Je(t,r);return(0,J.jsx)(`div`,{className:Y(`flex w-full flex-col`,e),"data-notification-surface":`banner`,children:i.map(e=>{let{tone:t}=Xk(e.severity),r=Zk(e);return(0,J.jsxs)(`div`,{role:`status`,"data-severity":e.severity,className:Y(`flex w-full items-center gap-3 border-b px-4 py-2.5 text-sm`,t),children:[(0,J.jsx)(r,{className:`h-4 w-4 shrink-0`,"aria-hidden":`true`}),(0,J.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-wrap items-baseline gap-x-2 gap-y-0.5`,children:[(0,J.jsx)(`span`,{className:`font-medium`,children:e.title}),e.message?(0,J.jsx)(`span`,{className:`min-w-0 opacity-90`,children:e.message}):null]}),e.actions?.map(e=>(0,J.jsx)(X,{size:`sm`,variant:$k(e.variant),className:`h-7 shrink-0`,onClick:e.onClick,children:e.label},e.label)),e.dismissible===!1?null:(0,J.jsx)(X,{size:`icon`,variant:`ghost`,className:`h-7 w-7 shrink-0`,"aria-label":`Dismiss ${e.title}`,onClick:()=>n(e.id),children:(0,J.jsx)(Ta,{className:`h-4 w-4`,"aria-hidden":`true`})})]},e.id)})})}tA.displayName=`NotificationBanners`;function nA({className:e}){let t=it(`snackbar`),{dismiss:n,config:r,pauseAutoDismiss:i,resumeAutoDismiss:a}=je(),o=t[0];if(!o)return null;let{iconTone:s}=Xk(o.severity),c=Zk(o),l=o.actions?.[0],u=ie(o,r),d=u?eA[u]:`bottom-4 left-1/2 -translate-x-1/2`,f=u?.startsWith(`top`)?`motion-safe:slide-in-from-top-4`:`motion-safe:slide-in-from-bottom-4`;return(0,J.jsxs)(`div`,{className:Y(`fixed z-50 flex w-[min(28rem,calc(100vw-2rem))]`,d,`items-center gap-3 rounded-md border bg-popover px-4 py-3 text-sm text-popover-foreground shadow-lg`,`motion-safe:animate-in motion-safe:fade-in`,f,e),role:`status`,"aria-live":`polite`,"data-notification-surface":`snackbar`,"data-severity":o.severity,"data-position":u,onPointerEnter:r.pauseOnHover?()=>i(o.id):void 0,onPointerLeave:r.pauseOnHover?()=>a(o.id):void 0,children:[(0,J.jsx)(c,{className:Y(`h-4 w-4 shrink-0`,s),"aria-hidden":`true`}),(0,J.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,J.jsx)(`div`,{className:`truncate font-medium`,children:o.title}),o.message?(0,J.jsx)(`div`,{className:`truncate text-xs text-muted-foreground`,children:o.message}):null]}),l?(0,J.jsx)(X,{size:`sm`,variant:$k(l.variant),className:`h-7 shrink-0 font-semibold uppercase tracking-wide`,onClick:()=>{l.onClick(),n(o.id)},children:l.label}):null,o.dismissible===!1?null:(0,J.jsx)(X,{size:`icon`,variant:`ghost`,className:`h-7 w-7 shrink-0`,"aria-label":`Dismiss ${o.title}`,onClick:()=>n(o.id),children:(0,J.jsx)(Ta,{className:`h-4 w-4`,"aria-hidden":`true`})})]})}nA.displayName=`NotificationSnackbar`;var rA={default:void 0,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80`,link:`bg-transparent text-primary underline-offset-4 hover:bg-transparent hover:underline`};function iA({className:e,acknowledgeLabel:t=`OK`}){let n=it(`alert`),{dismiss:r}=je(),i=n[n.length-1];if(!i)return null;let{iconTone:a}=Xk(i.severity),o=Zk(i),s=()=>r(i.id),c=i.dismissible===!1;return(0,J.jsx)(Go,{open:!0,onOpenChange:e=>{!e&&!c&&s()},children:(0,J.jsxs)(Yo,{className:e,"data-notification-surface":`alert`,"data-severity":i.severity,onEscapeKeyDown:e=>{c&&e.preventDefault()},children:[(0,J.jsxs)(Xo,{children:[(0,J.jsxs)(Qo,{className:`flex items-center gap-2`,children:[(0,J.jsx)(o,{className:Y(`h-5 w-5 shrink-0`,a),"aria-hidden":`true`}),i.title]}),i.message?(0,J.jsx)($o,{children:i.message}):null]}),(0,J.jsxs)(Zo,{children:[i.actions?.map(e=>(0,J.jsx)(es,{className:Y(rA[$k(e.variant)]),onClick:()=>{e.onClick(),s()},children:e.label},e.label)),(0,J.jsx)(es,{className:Y(i.actions?.length?rA.secondary:void 0),onClick:s,children:t})]})]})})}iA.displayName=`NotificationAlerts`;function aA(e,t){let n=t?.maxHistory??50,[r,i]=(0,q.useState)({...e}),[a,o]=(0,q.useState)(t?.mode===`create`),s=(0,q.useRef)([]),c=(0,q.useRef)([]),[,l]=(0,q.useState)(0);(0,q.useEffect)(()=>{i({...e}),o(t?.mode===`create`),s.current=[],c.current=[]},[e]);let u=(0,q.useCallback)((e,r)=>{i(t=>(s.current=[...s.current.slice(-(n-1)),t],c.current=[],{...t,[e]:r})),o(!0),l(e=>e+1),t?.onUpdate?.(e,r)},[t?.onUpdate,n]),d=(0,q.useCallback)(()=>{s.current.length!==0&&(i(e=>{let t=[...s.current],n=t.pop();return s.current=t,c.current=[e,...c.current],n}),l(e=>e+1))},[]),f=(0,q.useCallback)(()=>{c.current.length!==0&&(i(e=>{let t=[...c.current],n=t.shift();return c.current=t,s.current=[...s.current,e],n}),l(e=>e+1))},[]);return{draft:r,isDirty:a,updateField:u,discard:(0,q.useCallback)(()=>{i({...e}),o(!1),s.current=[],c.current=[],l(e=>e+1)},[e]),setDraft:i,undo:d,redo:f,canUndo:s.current.length>0,canRedo:c.current.length>0}}function oA(e){let[t,n]=q.useState({width:0,height:0});return q.useEffect(()=>{let t=e.current;if(!t||typeof ResizeObserver>`u`)return;let r=t.getBoundingClientRect();n(e=>e.width===r.width&&e.height===r.height?e:{width:r.width,height:r.height});let i=new ResizeObserver(e=>{let t=e[0];if(!t)return;let r,i=t.borderBoxSize?.[0];r=i?{width:i.inlineSize,height:i.blockSize}:{width:t.contentRect.width,height:t.contentRect.height},n(e=>e.width===r.width&&e.height===r.height?e:r)});return i.observe(t),()=>i.disconnect()},[e]),t}var sA={permission:`view`,audience:`link_only`,expiresInDays:7,password:``,label:``},cA=[{label:`1 day`,value:1},{label:`7 days`,value:7},{label:`30 days`,value:30},{label:`90 days`,value:90},{label:`Never`,value:null}],lA=[{value:`link_only`,label:`Anyone with the link`,help:`No sign-in required`},{value:`signed_in`,label:`Signed-in users`,help:`Must be logged in to view`}];function uA(e,t){return`${(e??(typeof window<`u`?`${window.location.origin}/s`:`/s`)).replace(/\/+$/,``)}/${t}`}async function dA(e){try{if(typeof navigator<`u`&&navigator.clipboard?.writeText)return await navigator.clipboard.writeText(e),!0}catch{}if(typeof document<`u`){let t=document.createElement(`textarea`);t.value=e,t.setAttribute(`readonly`,``),t.style.position=`absolute`,t.style.left=`-9999px`,document.body.appendChild(t),t.select();try{return document.execCommand(`copy`),document.body.removeChild(t),!0}catch{document.body.removeChild(t)}}return!1}function fA({open:e,onOpenChange:t,objectName:n,recordId:r,recordLabel:i,apiBase:a,publicBaseUrl:o,fetchHeaders:s}){let[c,l]=(0,q.useState)([]),[u,d]=(0,q.useState)(!1),[f,p]=(0,q.useState)(!1),[m,h]=(0,q.useState)(null),[g,_]=(0,q.useState)(sA),[v,y]=(0,q.useState)(null),b=(0,q.useCallback)(async()=>{let e={"Content-Type":`application/json`};if(!s)return e;let t=await s();return{...e,...t}},[s]),x=(0,q.useMemo)(()=>`${a.replace(/\/+$/,``)}/v1/share-links?object=${encodeURIComponent(n)}&recordId=${encodeURIComponent(r)}`,[a,n,r]),S=(0,q.useCallback)(async()=>{d(!0),h(null);try{let e=await b(),t=await fetch(x,{headers:e,credentials:`include`});if(!t.ok)throw Error(`HTTP ${t.status}`);let n=await t.json();l(n.links??n.data??[])}catch(e){h(e?.message??`Failed to load share links`)}finally{d(!1)}},[x,b]);(0,q.useEffect)(()=>{e&&(S(),_(sA))},[e,S]);let C=(0,q.useCallback)(async()=>{p(!0),h(null);try{let e=g.expiresInDays==null?void 0:new Date(Date.now()+g.expiresInDays*24*60*60*1e3).toISOString(),t=await b(),i=await fetch(`${a.replace(/\/+$/,``)}/v1/share-links`,{method:`POST`,headers:t,credentials:`include`,body:JSON.stringify({object:n,recordId:r,permission:g.permission,audience:g.audience,expiresAt:e,password:g.password.trim()||void 0,label:g.label.trim()||void 0})});if(!i.ok){let e=await i.json().catch(()=>({}));throw Error(e?.error?.message||`HTTP ${i.status}`)}let s=await i.json(),c=s.link??s.data;if(!c)throw Error(`Share link create response missing link payload`);l(e=>[c,...e]),await dA(uA(o,c.token))&&(y(c.id),setTimeout(()=>y(null),1500)),_(sA)}catch(e){h(e?.message??`Failed to create share link`)}finally{p(!1)}},[a,b,n,r,g,o]),w=(0,q.useCallback)(async e=>{try{let t=await b(),n=await fetch(`${a.replace(/\/+$/,``)}/v1/share-links/${encodeURIComponent(e.id)}`,{method:`DELETE`,headers:t,credentials:`include`});if(!n.ok&&n.status!==204)throw Error(`HTTP ${n.status}`);l(t=>t.map(t=>t.id===e.id?{...t,revoked_at:new Date().toISOString()}:t))}catch(e){h(e?.message??`Failed to revoke link`)}},[a,b]),T=(0,q.useCallback)(async e=>{await dA(uA(o,e.token))&&(y(e.id),setTimeout(()=>y(null),1500))},[o]),E=c.filter(e=>!e.revoked_at),D=c.filter(e=>e.revoked_at);return(0,J.jsx)(im,{open:e,onOpenChange:t,children:(0,J.jsxs)(cm,{className:`max-w-xl`,"data-testid":`share-dialog`,children:[(0,J.jsxs)(lm,{children:[(0,J.jsxs)(dm,{className:`flex items-center gap-2`,children:[(0,J.jsx)(qi,{className:`h-4 w-4`}),`Share `,i??`this record`]}),(0,J.jsx)(fm,{children:`Generate a link anyone (or selected people) can use to open this record. Links can be revoked at any time.`})]}),m&&(0,J.jsx)(`div`,{className:`rounded-md border border-destructive/40 bg-destructive/10 px-3 py-2 text-xs text-destructive`,"data-testid":`share-dialog-error`,children:m}),(0,J.jsxs)(`section`,{className:`space-y-3 rounded-lg border bg-muted/30 p-3`,children:[(0,J.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-2`,children:[(0,J.jsxs)(`div`,{className:`space-y-1`,children:[(0,J.jsx)(Y_,{className:`text-xs`,children:`Who can access`}),(0,J.jsxs)(vy,{value:g.audience,onValueChange:e=>_(t=>({...t,audience:e})),children:[(0,J.jsx)(by,{className:`h-8 text-xs`,"data-testid":`share-audience`,children:(0,J.jsx)(yy,{})}),(0,J.jsx)(Cy,{children:lA.map(e=>(0,J.jsx)(Ty,{value:e.value,className:`text-xs`,children:(0,J.jsxs)(`div`,{className:`flex flex-col`,children:[(0,J.jsx)(`span`,{children:e.label}),(0,J.jsx)(`span`,{className:`text-[10px] text-muted-foreground`,children:e.help})]})},e.value))})]})]}),(0,J.jsxs)(`div`,{className:`space-y-1`,children:[(0,J.jsx)(Y_,{className:`text-xs`,children:`Expires in`}),(0,J.jsxs)(vy,{value:g.expiresInDays==null?`never`:String(g.expiresInDays),onValueChange:e=>_(t=>({...t,expiresInDays:e===`never`?null:Number(e)})),children:[(0,J.jsx)(by,{className:`h-8 text-xs`,"data-testid":`share-expiry`,children:(0,J.jsx)(yy,{})}),(0,J.jsx)(Cy,{children:cA.map(e=>(0,J.jsx)(Ty,{value:e.value==null?`never`:String(e.value),className:`text-xs`,children:e.label},String(e.value)))})]})]}),(0,J.jsxs)(`div`,{className:`space-y-1 sm:col-span-2`,children:[(0,J.jsx)(Y_,{className:`text-xs`,children:`Password (optional)`}),(0,J.jsx)(Pv,{type:`password`,value:g.password,onChange:e=>_(t=>({...t,password:e.target.value})),placeholder:`Require a password to open`,className:`h-8 text-xs`,"data-testid":`share-password`})]}),(0,J.jsxs)(`div`,{className:`space-y-1 sm:col-span-2`,children:[(0,J.jsx)(Y_,{className:`text-xs`,children:`Label (only you see this)`}),(0,J.jsx)(Pv,{value:g.label,onChange:e=>_(t=>({...t,label:e.target.value})),placeholder:`e.g. Sent to design review`,className:`h-8 text-xs`,"data-testid":`share-label`})]})]}),(0,J.jsx)(`div`,{className:`flex justify-end`,children:(0,J.jsxs)(X,{size:`sm`,onClick:C,disabled:f,"data-testid":`share-create`,children:[f?(0,J.jsx)(Ji,{className:`mr-1 h-3 w-3 animate-spin`}):(0,J.jsx)(qi,{className:`mr-1 h-3 w-3`}),`Create link`]})})]}),(0,J.jsxs)(`section`,{className:`space-y-2`,children:[(0,J.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,J.jsxs)(`h4`,{className:`text-xs font-medium text-muted-foreground`,children:[`Existing links`,E.length?` (${E.length})`:``]}),u&&(0,J.jsx)(Ji,{className:`h-3 w-3 animate-spin text-muted-foreground`})]}),!u&&E.length===0&&D.length===0&&(0,J.jsx)(`p`,{className:`rounded-md border border-dashed px-3 py-4 text-center text-xs text-muted-foreground`,children:`No share links yet. Create one above.`}),(0,J.jsxs)(`ul`,{className:`space-y-2`,children:[E.map(e=>(0,J.jsx)(pA,{link:e,copied:v===e.id,onCopy:()=>T(e),onRevoke:()=>w(e),publicBaseUrl:o},e.id)),D.length>0&&(0,J.jsx)(`li`,{className:`pt-2 text-[10px] uppercase tracking-wide text-muted-foreground`,children:`Revoked`}),D.map(e=>(0,J.jsx)(pA,{link:e,copied:!1,onCopy:()=>T(e),onRevoke:()=>w(e),publicBaseUrl:o,disabled:!0},e.id))]})]}),(0,J.jsx)(um,{children:(0,J.jsx)(X,{variant:`ghost`,size:`sm`,onClick:()=>t(!1),children:`Done`})})]})})}function pA({link:e,copied:t,onCopy:n,onRevoke:r,publicBaseUrl:i,disabled:a}){let o=uA(i,e.token);return(0,J.jsxs)(`li`,{className:Y(`flex items-center gap-2 rounded-md border bg-card px-2 py-2 text-xs`,a&&`opacity-60`),"data-testid":`share-link-row`,children:[(0,J.jsx)(ds,{variant:`secondary`,className:`text-[10px] capitalize`,children:e.audience.replace(`_`,` `)}),(0,J.jsx)(ds,{variant:`outline`,className:`text-[10px] capitalize`,children:e.permission}),(0,J.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,J.jsx)(`div`,{className:`truncate font-mono text-[11px]`,title:o,children:o}),e.label&&(0,J.jsx)(`div`,{className:`truncate text-[10px] text-muted-foreground`,children:e.label})]}),!a&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(X,{size:`sm`,variant:`ghost`,className:`h-7 px-2 text-xs`,onClick:n,"data-testid":`share-link-copy`,children:[(0,J.jsx)(Di,{className:`mr-1 h-3 w-3`}),t?`Copied!`:`Copy`]}),(0,J.jsx)(X,{size:`sm`,variant:`ghost`,className:`h-7 px-2 text-xs text-destructive hover:text-destructive`,onClick:r,"data-testid":`share-link-revoke`,title:`Revoke`,children:(0,J.jsx)(va,{className:`h-3 w-3`})})]}),a&&(0,J.jsxs)(`span`,{className:`flex items-center gap-1 text-[10px] text-muted-foreground`,children:[(0,J.jsx)(fa,{className:`h-3 w-3`}),`revoked`]})]})}var mA=(0,q.createContext)(null);mA.displayName=`PermissionContext`;function hA(){let e=new WeakMap;return function(t,n){let r=e;for(let e=0;e<t.length-1;e++){let n=r.get(t[e]);n===void 0&&(n=new WeakMap,r.set(t[e],n)),r=n}let i=t[t.length-1],a=r.get(i);return a===void 0&&(a={value:n()},r.set(i,a)),a.value}}var gA=`/api/v1/auth/me/permissions`,_A=hA(),vA=hA(),yA=hA(),bA=hA(),xA=hA(),SA={data:`unloaded`},CA={isLoaded:!0},wA={isLoaded:!1},TA=()=>void 0;async function EA({endpoint:e,fetcher:t,maxRetries:n,retryBaseDelayMs:r},{setData:i,setError:a,setLoading:o},s){let c=()=>!s?.cancelled;o(!0),a(null);let l=t??fetch,u=Math.max(0,n)+1;for(let t=0;t<u;t++)try{let t=await l(e,{credentials:`include`,headers:{Accept:`application/json`}});if(!t.ok)throw new fe(t.status,pe(t),`Permissions endpoint returned ${t.status}`);let n=await t.json();if(!c())return;i(n),o(!1);return}catch(e){let n=e instanceof Error?e:Error(String(e));if(!de(n)||t===u-1){if(!c())return;a(n),o(!1);return}let i=n instanceof fe?n.retryAfterMs:void 0;if(await O(A(t,r,i)),!c())return}}function DA({endpoint:e=gA,fetcher:t,initialPermissions:n,loadingFallback:r=null,errorFallback:i,maxRetries:a=3,retryBaseDelayMs:o=500,children:s}){let[c,l]=(0,q.useState)(n??null),[u,d]=(0,q.useState)(null),[f,p]=(0,q.useState)(!n);(0,q.useEffect)(()=>{if(n)return;let r={cancelled:!1};return EA({endpoint:e,fetcher:t,maxRetries:a,retryBaseDelayMs:o},{setData:l,setError:d,setLoading:p},r),()=>{r.cancelled=!0}},[e,t,a,o,n]);let m=(0,q.useCallback)(()=>{EA({endpoint:e,fetcher:t,maxRetries:a,retryBaseDelayMs:o},{setData:l,setError:d,setLoading:p})},[e,t,a,o]),h=c??SA,g=vA([h],()=>(e,t,n)=>{if(!c)return!1;let r=(e??``).toLowerCase(),i=`${r}.${t}`,a=c.fields?.[i]??c.fields?.[`${e}.${t}`];if(a)return n===`read`?a.readable!==!1:a.editable!==!1;let o=c.objects?.[r]??c.objects?.[e]??c.objects?.[`*`];return o?n===`read`?o.allowRead!==!1:o.allowEdit!==!1:c.authenticated!==!0}),_=_A([h],()=>(e,t)=>{if(!c)return{allowed:!1,reason:`permissions-loading`};let n=c.objects?.[e]??c.objects?.[`*`],r={read:`allowRead`,view:`allowRead`,create:`allowCreate`,update:`allowEdit`,edit:`allowEdit`,delete:`allowDelete`,import:`allowCreate`,export:`allowRead`}[t]??`allowRead`,i=n?n[r]!==!1:c.authenticated!==!0;return{allowed:i,reason:i?void 0:`denied-by-permission-set`}}),v=yA([h],()=>e=>{if(!c)return[];let t=`${e}.`,n=[];for(let[e,r]of Object.entries(c.fields??{})){if(!e.startsWith(t))continue;let i=e.slice(t.length);n.push({field:i,read:r.readable!==!1,write:r.editable!==!1})}return n}),y=bA([h],()=>e=>{if(!c)return;let t=(e??``).toLowerCase(),n=(c.objects?.[t]??c.objects?.[e])?.apiOperations;return Array.isArray(n)?n:void 0}),b=!f&&!u&&c!==null,x=xA([h,b?CA:wA],()=>({check:_,checkField:g,getFieldPermissions:v,getRowFilter:TA,getObjectApiOperations:y,roles:c?.roles??[],userId:c?.userId??null,systemPermissions:c?.systemPermissions,hasCapabilities:e=>{let t=c?.systemPermissions;if(!Array.isArray(t))return!0;let n=new Set(t);return e.every(e=>n.has(e))},effectiveObjects:c?.objects,isLoaded:b}));return f&&!c?(0,J.jsx)(J.Fragment,{children:r}):u&&!c?i?(0,J.jsx)(J.Fragment,{children:i(u,m)}):(0,J.jsx)(J.Fragment,{children:r}):(0,J.jsx)(mA.Provider,{value:x,children:s})}var OA=Object.freeze([]),kA=Object.freeze({check:()=>({allowed:!0}),checkField:()=>!0,getFieldPermissions:()=>[],getRowFilter:()=>void 0,getObjectApiOperations:()=>void 0,roles:OA,userId:null,systemPermissions:void 0,hasCapabilities:()=>!0,isLoaded:!1,can:()=>!0,cannot:()=>!1}),AA=new WeakMap;function jA(e){let t=AA.get(e);if(t)return t;let n={...e,can:(t,n)=>e.check(t,n).allowed,cannot:(t,n)=>!e.check(t,n).allowed};return AA.set(e,n),n}function MA(){let e=(0,q.useContext)(mA);return e?jA(e):kA}function NA(e){let{checkField:t,getFieldPermissions:n}=MA(),r=(0,q.useMemo)(()=>n(e),[n,e]);return(0,q.useMemo)(()=>({permissions:r,canRead:n=>t(e,n,`read`),canWrite:n=>t(e,n,`write`),readableFields:n=>n.filter(n=>t(e,n,`read`)),writableFields:n=>n.filter(n=>t(e,n,`write`))}),[r,t,e])}function PA(e){let t=({schema:t,field:n,...r})=>(0,J.jsx)(e,{...r,field:n??t});return t.displayName=`FieldCarrier(${e.displayName||e.name||`Component`})`,t}function FA(e){return e.postalCode??e.zipCode}function IA(e){return e==null?``:String(e).trim()}var LA=new Set([`zh`,`ja`,`ko`]);function RA(e){return(e||``).split(/[-_]/)[0].toLowerCase()}function zA(e,t){let n=IA(e.street),r=IA(e.city),i=IA(e.state),a=IA(FA(e)),o=IA(e.country);return LA.has(RA(t))?[o,[a,i].filter(Boolean).join(` `),r,n].filter(Boolean).join(`, `):[n,r,[i,a].filter(Boolean).join(` `),o].filter(Boolean).join(`, `)}function BA({images:e,index:t,open:n,onOpenChange:r,onIndexChange:i}){let{t:a}=wt(),o=e.length,s=e[t],c=q.useCallback(e=>{if(o<=1)return;let n=(t+e+o)%o;i?.(n)},[o,t,i]),l=q.useCallback(e=>{e.key===`ArrowRight`?(e.preventDefault(),c(1)):e.key===`ArrowLeft`&&(e.preventDefault(),c(-1))},[c]);return s?(0,J.jsx)(im,{open:n,onOpenChange:r,children:(0,J.jsxs)(cm,{className:`max-w-[92vw] sm:max-w-4xl p-0 bg-transparent border-0 shadow-none`,onKeyDown:l,children:[(0,J.jsx)(dm,{className:`sr-only`,children:s.name||a(`fields.image.preview`)}),(0,J.jsxs)(`div`,{className:`relative flex items-center justify-center`,children:[(0,J.jsx)(`img`,{src:s.url,alt:s.name||a(`fields.image.imageAlt`,{index:t+1}),className:`max-h-[85vh] max-w-full rounded-md object-contain`}),o>1&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`button`,{type:`button`,onClick:()=>c(-1),"aria-label":a(`fields.image.previous`),className:`absolute left-2 top-1/2 -translate-y-1/2 flex size-9 items-center justify-center rounded-full bg-black/50 text-white hover:bg-black/70 transition-colors`,children:(0,J.jsx)(hi,{className:`size-5`})}),(0,J.jsx)(`button`,{type:`button`,onClick:()=>c(1),"aria-label":a(`fields.image.next`),className:`absolute right-2 top-1/2 -translate-y-1/2 flex size-9 items-center justify-center rounded-full bg-black/50 text-white hover:bg-black/70 transition-colors`,children:(0,J.jsx)(gi,{className:`size-5`})}),(0,J.jsx)(`div`,{className:`absolute bottom-2 left-1/2 -translate-x-1/2 rounded-full bg-black/50 px-2.5 py-1 text-xs font-medium text-white`,children:a(`fields.image.counter`,{current:t+1,total:o})})]})]})]})}):null}function VA(e){if(o(e))return e;if(e&&typeof e==`object`){let t=e,n=t.file_id??t.id;if(typeof n==`string`&&n)return n}}var HA=`/api/v1/storage`;function UA(e){return`${HA}/files/${encodeURIComponent(e)}`}function WA(e){if(/^data:/i.test(e))return;let t=(e.split(/[?#]/)[0]??e).split(`/`).filter(Boolean).pop();if(!t)return e;try{return decodeURIComponent(t)}catch(e){if(e instanceof URIError)return t;throw e}}function GA(e,t=`File`){if(e==null)return{name:t,raw:e};if(typeof e==`string`)return o(e)?{id:e,name:t,url:UA(e),raw:e}:{url:e,name:WA(e)??t,raw:e};if(typeof e==`object`){let n=e,r=e=>typeof e==`string`&&e?e:void 0,i=VA(n),a=r(n.url)??(i?UA(i):void 0);return{id:i,name:r(n.name)??r(n.original_name)??(r(n.url)?WA(r(n.url)):void 0)??t,url:a,size:typeof n.size==`number`?n.size:void 0,mimeType:r(n.mimeType)??r(n.mime_type),raw:e}}return{name:t,raw:e}}function KA(e,t=`File`){return e==null?[]:(Array.isArray(e)?e:[e]).filter(e=>e!=null).map(e=>GA(e,t))}function qA(e){return(e.mimeType??``).startsWith(`image/`)}var JA=class extends Error{code=`UPLOAD_INCOMPLETE`;fileName;constructor(e){super(`upload of "${e}" did not complete: the upload adapter returned no sys_file id (meta.fileId), so nothing was submitted`),this.name=`UploadIncompleteError`,this.fileName=e}};function YA(e,t){let n=e.meta?.fileId;if(o(n))return n;throw new JA(t??e.name)}function XA(e,t){return{id:o(e.meta?.fileId)?e.meta.fileId:void 0,name:e.name||t||`File`,url:e.url,size:e.size,mimeType:e.mimeType,raw:e}}function ZA(e,t){return Object.keys(t).length===0?e:e.map(e=>{let n=e.id?t[e.id]:void 0;return n?e.raw&&typeof e.raw==`object`&&typeof e.raw.url==`string`&&e.raw.url?e:{...n,raw:e.raw}:e})}function QA({view:e,fallback:t,className:n,icon:r=!0}){let i=e.url?.trim();if(!i)return(0,J.jsx)(J.Fragment,{children:t});let a=e.name;return(0,J.jsxs)(`a`,{href:i,target:`_blank`,rel:`noopener noreferrer`,title:a,onClick:e=>e.stopPropagation(),"data-slot":`file-download-link`,className:Y(`inline-flex min-w-0 max-w-full items-center gap-1 align-middle text-blue-600 hover:text-blue-800 hover:underline`,n),children:[r&&(0,J.jsx)(Ri,{className:`size-3 shrink-0`,"aria-hidden":`true`}),(0,J.jsx)(`span`,{className:`truncate`,children:a})]})}function $A(e){if(e==null||typeof e==`number`||typeof e==`boolean`||typeof e==`string`)return e;if(e instanceof Date)return e.toISOString();if(Array.isArray(e))return e.map(e=>{if(typeof e==`object`&&e){let t=e;return String(t.name||t.label||t.externalId||t.id||t._id||`[Object]`)}return String(e)}).join(`, `);if(typeof e==`object`){let t=e;return`$numberDecimal`in t?Number(t.$numberDecimal):`$oid`in t?String(t.$oid):`$date`in t?String(t.$date):String(t.name||t.label||t.externalId||t.id||t._id||`[Object]`)}return String(e)}var ej=2,tj=new Map;function nj(e){let t=tj.get(e);if(t!==void 0)return t;let n=ej;try{n=new Intl.NumberFormat(void 0,{style:`currency`,currency:e}).resolvedOptions().maximumFractionDigits??ej}catch{}return tj.set(e,n),n}var rj=new Map;function ij(e,t){let n=`${t}|${e}`,r=rj.get(n);if(r!==void 0)return r;let i=e;try{i=new Intl.NumberFormat(t,{style:`currency`,currency:e}).formatToParts(0).find(e=>e.type===`currency`)?.value??e}catch{}return rj.set(n,i),i}var aj=q.lazy(()=>n(()=>Promise.resolve().then(()=>GL),void 0,import.meta.url));function oj(e){let t=$A(e);if(t!=null&&t!==``)return String(t)}function sj({value:e}){let t=oj(e);return t===void 0?(0,J.jsx)($,{}):(0,J.jsx)(q.Suspense,{fallback:(0,J.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:t.slice(0,80)}),children:(0,J.jsx)(aj,{value:t})})}function cj(e){return e.replace(/<\s*(script|style|iframe|object|embed)[^>]*>[\s\S]*?<\s*\/\s*\1\s*>/gi,``).replace(/\son\w+\s*=\s*("[^"]*"|'[^']*'|[^\s>]+)/gi,``).replace(/(href|src)\s*=\s*("javascript:[^"]*"|'javascript:[^']*')/gi,`$1="#"`)}function lj({value:e}){let t=oj(e);return t===void 0?(0,J.jsx)($,{}):(0,J.jsx)(`div`,{className:`prose prose-sm max-w-none dark:prose-invert break-words`,dangerouslySetInnerHTML:{__html:cj(t)}})}var uj={markdown:sj,html:lj,richtext:lj},dj=Object.keys(uj);function fj(e){let t=pj(e);if(t)return t===sj?`markdown`:`html`}function pj(e){return uj[e]}var mj;function hj(e){mj=e}function gj(){return mj}var _j={select:`field:multiselect`},vj=`field:`;function yj(e,t){return t?.multiple&&_j[e]?_j[e]:{text:`field:text`,textarea:`field:textarea`,markdown:`field:markdown`,html:`field:html`,richtext:`field:richtext`,secret:`field:password`,number:`field:number`,currency:`field:currency`,percent:`field:percent`,slider:`field:slider`,progress:`field:slider`,rating:`field:rating`,date:`field:date`,datetime:`field:datetime`,time:`field:time`,boolean:`field:boolean`,toggle:`field:boolean`,select:`field:select`,multiselect:`field:multiselect`,radio:`field:radio`,checkboxes:`field:checkboxes`,tags:`field:tags`,lookup:`field:lookup`,master_detail:`field:master_detail`,tree:`field:lookup`,user:`field:user`,email:`field:email`,phone:`field:phone`,url:`field:url`,file:`field:file`,image:`field:image`,avatar:`field:avatar`,video:`field:file`,audio:`field:file`,signature:`field:signature`,password:`field:password`,location:`field:location`,geolocation:`field:geolocation`,address:`field:address`,color:`field:color`,code:`field:code`,json:`field:code`,qrcode:`field:qrcode`,vector:`field:vector`,object:`field:object`,composite:`field:object`,record:`field:object`,repeater:`field:grid`,formula:`field:formula`,summary:`field:summary`,autonumber:`field:auto_number`,auto_number:`field:auto_number`}[e]||(ct(e)?`${vj}${e}`:`field:text`)}var bj=[`id`,`name`,`autoFocus`,`tabIndex`,`onBlur`,`onFocus`,`onClick`,`className`,`disabled`];function xj(e){return V(e,bj)}var Sj=[`error`,`onUploadingChange`,`dataSource`,`dependentValues`,`dependsOn`,`dependsOnLabels`,`emptyHint`,`onSelectRecord`,`onCreateNew`];function Cj(e){let t=new Set(Sj),n={};for(let r of Object.keys(e))t.has(r)&&(n[r]=e[r]);return n}var wj=t({TextField:()=>Tj});function Tj({value:e,onChange:t,field:n,readonly:r,error:i,...a}){let o=n;if(r)return(0,J.jsx)(`span`,{className:`text-sm`,children:e||(0,J.jsx)($,{})});let s=o?.rows,c=xj(a),l=o?.maxLength;return s&&s>1?(0,J.jsx)(Gb,{...c,value:e||``,onChange:e=>t(e.target.value),placeholder:o?.placeholder,maxLength:l,disabled:r||c.disabled,"aria-invalid":!!i}):(0,J.jsx)(Pv,{...c,type:o?.type===`password`?`password`:`text`,value:e||``,onChange:e=>t(e.target.value),placeholder:o?.placeholder,maxLength:l,disabled:r||c.disabled,"aria-invalid":!!i})}function Ej(e){return(0,J.jsx)(Cw,{...e})}var Dj=t({TextAreaField:()=>Oj});function Oj({value:e,onChange:t,field:n,readonly:r,error:i,...a}){let o=n,s=o?.maxLength,c=(0,q.useId)(),l=`${c}-charcount`,u=`${c}-fullscreen-charcount`;if(r)return(0,J.jsx)(`div`,{className:`text-sm whitespace-pre-wrap`,children:e||(0,J.jsx)($,{})});let d=o?.rows||4,f=!!o?.mobile_fullscreen,p=xj(a),m=!!p.disabled,h=[p[`aria-describedby`],s?l:void 0].filter(Boolean).join(` `)||void 0;return(0,J.jsxs)(`div`,{className:`relative`,children:[(0,J.jsx)(Gb,{...p,value:e||``,onChange:e=>t(e.target.value),placeholder:o?.placeholder,disabled:r||m,rows:d,maxLength:s,"aria-invalid":!!i,"aria-describedby":h,className:p.className}),s&&(0,J.jsx)(kw,{length:(e||``).length,maxLength:s,descriptionId:l,announceNearLimit:!0,className:`absolute bottom-2 right-2 text-xs text-gray-400`,testId:`textarea-character-count`}),f&&(0,J.jsx)(Ej,{value:e??``,onCommit:t,label:o?.label,testIdPrefix:`textarea`,disabled:m,error:i,footer:e=>s?(0,J.jsx)(kw,{length:e.length,maxLength:s,descriptionId:u,announceNearLimit:!1,className:`text-xs text-muted-foreground self-center`,testId:`textarea-fullscreen-character-count`}):null,children:(e,t,n,r)=>(0,J.jsx)(Gb,{autoFocus:!0,value:e,onChange:e=>t(e.target.value),disabled:n,maxLength:s,placeholder:o?.placeholder,...r,"aria-describedby":s?u:void 0,className:`h-full min-h-full resize-none text-base`,"data-testid":`textarea-fullscreen-input`})})]})}var kj=vt({"common.selectOption":`Select an option`,"common.select":`Select…`,"common.loading":`Loading…`,"common.noResults":`No results found`,"common.cancel":`Cancel`,"common.confirm":`Confirm`,"table.selected":`{{count}} selected`,"table.search":`Search…`,"lookup.loading":`Loading…`,"lookup.noOptions":`No options found`,"lookup.noRecords":`No records found`,"lookup.recentlyUsed":`Recently used`,"lookup.allResults":`All results`,"lookup.createNew":`Create new`,"lookup.createNamed":`Create new "{{name}}"`,"lookup.showingResults":`Showing {{shown}} of {{total}} results`,"lookup.showAllResults":`Show all results ({{count}})`,"lookup.selectedBadge":`Selected`,"lookup.browseAll":`Browse all records`,"lookup.remove":`Remove {{label}}`,"lookup.selectFirst":`Select {{fields}} first`,"lookup.selectRecord":`Select record`,"lookup.recordCount":`{{count}} records`,"lookup.recordCountOne":`1 record`,"lookup.pageOf":`Page {{current}} of {{total}}`,"lookup.filters":`Filters`,"lookup.clear":`Clear`,"lookup.yes":`Yes`,"lookup.filterPlaceholder":`Filter {{label}}`,"lookup.prevPage":`Previous page`,"lookup.nextPage":`Next page`,"lookup.jumpToPage":`Jump to page`,"lookup.retry":`Retry`,"fields.options.empty":`No options available`,"fields.options.selectFirst":`Select {{fields}} first`,"validation.formInvalidJoiner":`, `,"fields.objectRef.loading":`Loading objects…`,"fields.objectRef.placeholder":`Select an object`,"fields.objectRef.search":`Search objects…`,"fields.objectRef.empty":`No objects found`,"fields.recipient.selectTypeFirst":`Select a recipient type first.`,"fields.recipient.loading":`Loading…`,"fields.recipient.search":`Search…`,"fields.recipient.empty":`No matches`,"fields.recipient.select":`Select a recipient`,"fields.recipient.selectUser":`Select a user`,"fields.recipient.selectTeam":`Select a team`,"fields.recipient.selectBusinessUnit":`Select a business unit`,"fields.recipient.selectPosition":`Select a position`,"fields.recipient.selectUnitAndSubordinates":`Select a business unit`,"fields.recipient.selectField":`Select a user field`,"fields.recipient.noUserFields":`No user fields on this object`,"fields.recipient.fieldNotUserTyped":`{{name}} — not a user field`,"fields.filterCondition.selectObjectFirst":`Select an object first.`,"fields.filterCondition.noCriteria":`No criteria — this rule shares nothing`,"fields.filterCondition.criteriaRequired":`Add at least one condition. A rule with no criteria would share every record, so it cannot be saved.`,"fields.filterCondition.invalidJson":`Invalid JSON — the rule will match no records until fixed.`,"fields.filterCondition.jsonOnly":`This criteria can only be edited as JSON`,"fields.filterCondition.editAsJson":`Edit as JSON`,"fields.filterCondition.useVisualBuilder":`Use visual builder`,"fields.object.invalidJson":`Invalid JSON`,"fields.location.refusedFormat":`Not saved: enter a latitude, longitude pair (example: 30.2741, 120.1551).`,"fields.location.refusedRange":`Not saved: {{detail}}`,"fields.location.latitude":`latitude`,"fields.location.longitude":`longitude`,"fields.location.refusedResidueOne":`Not saved: {{name}} "{{text}}" is not a number. Enter plain decimals (example: 30.2741, 120.1551).`,"fields.location.refusedResidue":`Not saved: {{name}} "{{text}}" and {{otherName}} "{{otherText}}" are not numbers. Enter plain decimals (example: 30.2741, 120.1551).`,"fields.number.badInput":`Not saved: the text in this box is not a number. Enter a plain decimal (example: {{example}}).`,"fields.date.impossibleDay":`The stored value "{{value}}" is not a real date. Pick a date to replace it.`,"fields.dateTime.impossibleDay":`The stored value "{{value}}" is not a real date. Pick a date and time to replace it.`,"fields.tags.placeholder":`Type and press Enter to add…`,"fields.address.street":`Street Address`,"fields.address.city":`City`,"fields.address.state":`State / Province`,"fields.address.postalCode":`ZIP / Postal Code`,"fields.address.country":`Country`,"capability.group.platform":`Platform`,"capability.group.org":`Organization`,"capability.group.other":`Other`,"capability.label.manage_users":`Manage Users`,"capability.label.manage_org_users":`Manage Organization Users`,"capability.label.manage_metadata":`Manage Metadata`,"capability.label.manage_org_presentation":`Manage Organization Presentation`,"capability.label.manage_platform_settings":`Manage Platform Settings`,"capability.label.setup_access":`Setup Access`,"capability.label.setup_write":`Write Settings`,"capability.label.studio_access":`Studio Access`,"capability.label.manage_sharing":`Manage Sharing`},`common.selectOption`);function Aj(e,t){return e(`fields.number.badInput`,{example:t})}function jj(e){let[t,n]=(0,q.useState)(null),{t:r}=kj();return{refusal:t,readBadInput:(0,q.useCallback)(t=>{let i=t?.validity?.badInput===!0;return n(i?Aj(r,e):null),i},[e,r])}}function Mj({refusal:e}){return e?(0,J.jsx)(`p`,{className:`text-xs text-red-500`,children:e}):null}var Nj=`border-red-500 focus-visible:ring-red-500`,Pj=t({NumberField:()=>Fj});function Fj({value:e,onChange:t,field:n,readonly:r,error:i,...a}){let{refusal:o,readBadInput:s}=jj(`1234`);if(r)return e==null?(0,J.jsx)($,{}):(0,J.jsx)(`span`,{className:`text-sm`,children:e});let c=n,l=c?.scale,u=typeof c?.step==`number`?c.step:typeof l==`number`?10**-l:`any`,d=xj(a),f=e=>{s(e.target),d.onBlur?.(e)};return(0,J.jsxs)(`div`,{className:`space-y-1`,children:[(0,J.jsx)(Pv,{...d,type:`number`,value:e??``,onChange:e=>{s(e.target);let n=e.target.value;t(n===``?null:Number(n))},onBlur:f,placeholder:c?.placeholder,disabled:r||d.disabled,className:Y(o?Nj:``,d.className),min:typeof c?.min==`number`?c.min:void 0,max:typeof c?.max==`number`?c.max:void 0,step:u,"aria-invalid":!!i||!!o}),(0,J.jsx)(Mj,{refusal:o})]})}var Ij=t({CurrencyField:()=>Rj});function Lj(e,t,n,r){if(t)try{return We(e,{locale:r,currency:t,minimumFractionDigits:n,maximumFractionDigits:n})}catch{return`${t} ${e.toFixed(n)}`}try{return We(e,{locale:r,minimumFractionDigits:n,maximumFractionDigits:n})}catch{return e.toFixed(n)}}function Rj({value:e,onChange:t,field:n,readonly:r,error:i,className:a,...o}){let s=n,{currency:c}=yt(),l=Ct(),u=bt(s,c),d=u?nj(u):2,{refusal:f,readBadInput:p}=jj(`1234.56`);if(r)return e==null?(0,J.jsx)($,{}):(0,J.jsx)(`span`,{className:`text-sm font-medium tabular-nums`,children:Lj(Number(e),u,d,l)});let m=xj(o),h=e=>{p(e.target);let n=parseFloat(e.target.value);isNaN(n)||t(parseFloat(n.toFixed(d))),m.onBlur?.(e)},g=u?ij(u,l):``;return(0,J.jsxs)(`div`,{className:`space-y-1`,children:[(0,J.jsxs)(`div`,{className:`relative`,children:[g&&(0,J.jsx)(`span`,{className:`absolute left-3 top-1/2 -translate-y-1/2 text-sm text-gray-500`,children:g}),(0,J.jsx)(Pv,{...m,type:`number`,value:e??``,onChange:e=>{p(e.target),t(e.target.value===``?null:parseFloat(e.target.value))},onBlur:h,placeholder:s?.placeholder||`0.00`,disabled:r||o.disabled,className:Y(g?`pl-8`:``,f?Nj:``,a),min:typeof s?.min==`number`?s.min:void 0,max:typeof s?.max==`number`?s.max:void 0,step:(10**-d).toFixed(d),"aria-invalid":!!i||!!f})]}),(0,J.jsx)(Mj,{refusal:f})]})}var zj=t({PercentField:()=>Vj});p();var Bj=e=>{if(!Number.isFinite(e))return e;let[t,n]=String(e).split(`e`);return Number(`${t}e${n?Number(n)-2:-2}`)};function Vj({value:e,onChange:t,field:n,readonly:r,error:i,className:a,...o}){let s=n,l=c({type:`percent`,scale:s?.scale}),{refusal:u,readBadInput:d}=jj(`12.5`),f=typeof s?.max==`number`?s.max:void 0,p=f!=null&&f>1,m=e=>p?e:e*100,h=e=>p?e:Bj(e),g=p?f:100;if(r)return e==null?(0,J.jsx)($,{}):(0,J.jsxs)(`span`,{className:`text-sm font-medium tabular-nums`,children:[m(e).toFixed(l),`%`]});let _=e==null?``:m(e),v=e==null?0:m(e),y=e=>{if(d(e.target),e.target.value===``){t(null);return}let n=parseFloat(e.target.value);t(isNaN(n)?null:h(n))},b=xj(o),x=e=>{d(e.target),b.onBlur?.(e)},S=e=>{if(r||o.disabled)return;if(!Array.isArray(e)||e.length===0){t(null);return}let n=e[0];t(typeof n==`number`?h(n):null)},C=10**-l;return(0,J.jsxs)(`div`,{className:`space-y-2`,children:[(0,J.jsxs)(`div`,{className:`relative`,children:[(0,J.jsx)(Pv,{...b,type:`number`,value:_,onChange:y,onBlur:x,placeholder:s?.placeholder||`0`,disabled:r||o.disabled,className:Y(`pr-8`,u?Nj:``,a),step:(10**-l).toFixed(l),"aria-invalid":!!i||!!u}),(0,J.jsx)(`span`,{className:`absolute right-3 top-1/2 -translate-y-1/2 text-sm text-gray-500`,children:`%`})]}),(0,J.jsx)(Mj,{refusal:u}),(0,J.jsx)(Eb,{value:[v],onValueChange:S,min:0,max:g,step:C,disabled:r||o.disabled,className:`w-full`,"aria-label":`Percentage`,"data-testid":`percent-slider`})]})}function Hj(e,t){let{id:n,"aria-labelledby":r,"aria-describedby":i}=xj(e);return{id:n,"aria-labelledby":r,...t===`instead-of-the-inputs`?{"aria-describedby":i}:null,...r==null?null:{role:`group`}}}function Uj(e){let{id:t,"aria-describedby":n}=xj(e);return{id:t,"aria-describedby":n}}var Wj=t({SliderField:()=>Gj});function Gj({value:e,onChange:t,field:n,readonly:r,error:i,...a}){let o=n,s=o?.min??0,c=o?.max??100,l=o?.step??1;if(r)return(0,J.jsxs)(`div`,{...Hj(a,`instead-of-the-inputs`),className:`flex items-center gap-2`,children:[(0,J.jsx)(`span`,{className:`text-sm font-medium`,children:e??s}),(0,J.jsxs)(`span`,{className:`text-xs text-muted-foreground`,children:[`/ `,c]})]});let{name:u,disabled:d,className:f,...p}=xj(a);return(0,J.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,J.jsx)(Eb,{name:u,value:[e??s],onValueChange:e=>t(e[0]),min:s,max:c,step:l,disabled:r||a.disabled,className:a.className,thumbProps:{...p,"aria-invalid":!!i}}),(0,J.jsx)(`span`,{className:`text-sm font-medium w-12 text-right`,children:e??s})]})}var Kj=t({RatingField:()=>qj});function qj({value:e,onChange:t,field:n,readonly:r,className:i,error:a,...o}){let s=n?.max??5,c=e??0,[l,u]=q.useState(null),d=l===null?c:l;if(r)return(0,J.jsxs)(`div`,{...Hj(o,`instead-of-the-inputs`),className:Y(`flex items-center gap-1`,i),children:[Array.from({length:s},(e,t)=>(0,J.jsx)(ga,{className:`w-5 h-5 ${t<c?`fill-yellow-400 text-yellow-400`:`text-muted-foreground`}`},t)),(0,J.jsxs)(`span`,{className:`ml-2 text-sm text-muted-foreground`,children:[c,` / `,s]})]});let{"aria-invalid":f,name:p,...m}=xj(o),h=m[`aria-labelledby`]!=null;return(0,J.jsxs)(`div`,{...m,role:h?`group`:void 0,className:Y(`flex items-center gap-1`,i),children:[Array.from({length:s},(e,n)=>(0,J.jsx)(`button`,{type:`button`,onClick:()=>t(n+1),onMouseEnter:()=>u(n+1),onMouseLeave:()=>u(null),className:`focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 rounded`,disabled:r||o.disabled,"aria-invalid":!!a,children:(0,J.jsx)(ga,{className:`w-5 h-5 transition-colors ${n<d?`fill-yellow-400 text-yellow-400 hover:fill-yellow-500 hover:text-yellow-500`:`text-muted-foreground hover:text-yellow-400`}`})},n)),(0,J.jsxs)(`span`,{className:`ml-2 text-sm text-muted-foreground`,children:[c,` / `,s]})]})}var Jj=t({BooleanField:()=>Yj});function Yj({value:e,onChange:t,field:n,readonly:r,error:i,...a}){let o=n,s=o?.widget,c=(0,q.useId)(),l=a.id,u=l||o?.name||c,d=o?.label||`Checkbox`,f=!l;if(r)return typeof e==`boolean`?(0,J.jsx)(`span`,{className:`text-sm`,children:e?`Yes`:`No`}):(0,J.jsx)($,{});let p=xj(a);return s===`checkbox`?(0,J.jsxs)(`div`,{className:`flex items-center space-x-2`,children:[(0,J.jsx)(rp,{...p,id:u,checked:!!e,onCheckedChange:e=>t(!!e),disabled:r||p.disabled,"aria-invalid":!!i}),f&&(0,J.jsx)(Y_,{htmlFor:u,className:`sr-only`,children:d})]}):(0,J.jsxs)(`div`,{className:`flex items-center space-x-2`,children:[(0,J.jsx)(Mb,{...p,id:u,checked:!!e,onCheckedChange:t,disabled:r||p.disabled,"aria-invalid":!!i}),f&&(0,J.jsx)(Y_,{htmlFor:u,className:`sr-only`,children:d})]})}function Xj({emptyHint:e,gated:t,dependsOnFields:n,testId:r,className:i,hostGroupProps:a,hostControlProps:o}){let{t:s}=kj(),c=e||(t?s(`fields.options.selectFirst`,{fields:n.join(s(`validation.formInvalidJoiner`))}):s(`fields.options.empty`)),l=Y(`flex w-full items-center rounded-md border border-input bg-muted/30 px-3 py-2 text-sm text-muted-foreground`,i);return o?(0,J.jsx)(`output`,{...o,"data-testid":r,className:l,children:c}):(0,J.jsx)(`div`,{...a,"data-testid":r,className:l,children:c})}function Zj(e,t,n){let r=(0,q.useMemo)(()=>n??{},[n]),i=E();return(0,q.useMemo)(()=>Le(e,r,t,i),[e,r,t,i])}var Qj=t({MultiSelectField:()=>$j});function $j({value:e,onChange:t,field:n,readonly:r,className:i,dependentValues:a,dependsOn:o,emptyHint:s,dataSource:c,error:l,...u}){let d=n,f=d?.options||[],p=Array.isArray(e)?e:e==null?[]:[e],m=u.name||d?.name||u.id||``,{options:h,gated:g,dependsOnFields:_}=Zj(f,n?.dependsOn??o,a);(0,q.useEffect)(()=>{if(r||f.length===0||g||p.length===0)return;let e=p.filter(e=>h.some(t=>t.value===e));e.length!==p.length&&t(e)},[h,g]);let v=Hj(u,`instead-of-the-inputs`);if(r)return p.length===0?(0,J.jsx)($,{...v}):(0,J.jsx)(`div`,{...v,className:`flex flex-wrap gap-1`,children:p.map(e=>{let t=f.find(t=>t.value===e);return(0,J.jsx)(ds,{variant:`outline`,children:t?Ge(t):e},e)})});if(h.length===0)return(0,J.jsx)(Xj,{emptyHint:s,gated:g,dependsOnFields:_,testId:m?`multiselect-empty-${m}`:void 0,className:`min-h-9`,hostGroupProps:v});let y=e=>{t(p.includes(e)?p.filter(t=>t!==e):[...p,e])},{"aria-invalid":b,name:x,...S}=xj(u),C=S[`aria-labelledby`]!=null,w=p.length===0?n?.placeholder:void 0;return(0,J.jsxs)(`div`,{...S,role:C?`group`:void 0,className:Y(`flex flex-wrap gap-1.5`,i),"data-testid":m?`multiselect-${m}`:void 0,children:[w?(0,J.jsx)(`span`,{className:`self-center text-sm text-muted-foreground`,children:w}):null,h.map(e=>{let t=String(e.value),n=p.includes(t);return(0,J.jsx)(`button`,{type:`button`,onClick:()=>y(t),disabled:u.disabled,"aria-pressed":n,"aria-invalid":!!l,"data-testid":`multiselect-option-${e.value}`,className:Y(`rounded-full border px-3 py-1 text-sm transition-colors`,n?`border-primary bg-primary text-primary-foreground`:`border-input bg-background text-foreground hover:bg-accent`),children:Ge(e)},t)})]})}var eM=t({SelectField:()=>tM});function tM(e){return e.field?.multiple?(0,J.jsx)($j,{...e}):(0,J.jsx)(nM,{...e})}function nM({value:e,onChange:t,field:n,readonly:r,error:i,dependentValues:a,dependsOn:o,emptyHint:s,dataSource:c,...l}){let u=n,d=u?.options||[],{t:f}=kj(),p=l.name||u?.name||l.id||``,{options:m,gated:h,dependsOnFields:g}=Zj(d,n?.dependsOn??o,a);if((0,q.useEffect)(()=>{r||d.length!==0&&(h||e!=null&&e!==``&&($e(e,m)||t?.(null)))},[m,h]),r){let t=d.find(t=>t.value===e),n=t?Ge(t):e;return n?(0,J.jsx)(`span`,{className:`text-sm`,children:n}):(0,J.jsx)($,{})}if(m.length===0)return(0,J.jsx)(Xj,{emptyHint:s,gated:h,dependsOnFields:g,testId:p?`select-empty-${p}`:void 0,className:`h-9`,hostControlProps:Uj(l)});let{name:_,disabled:v,...y}=xj(l);return(0,J.jsxs)(vy,{name:_,value:e===null?``:e,onValueChange:t,disabled:r||l.disabled,children:[(0,J.jsx)(by,{...y,"data-testid":p?`select-trigger-${p}`:void 0,"aria-invalid":!!i,children:(0,J.jsx)(yy,{placeholder:u?.placeholder||f(`common.selectOption`)})}),(0,J.jsx)(Cy,{position:`popper`,children:m.map(e=>(0,J.jsx)(Ty,{value:e.value,"data-testid":`select-option-${e.value}`,children:Ge(e)},e.value))})]})}var rM=t({RadioField:()=>iM});function iM({value:e,onChange:t,field:n,readonly:r,className:i,dependentValues:a,dependsOn:o,emptyHint:s,dataSource:c,error:l,...u}){let d=n,f=d?.options||[],p=(0,q.useId)(),m=u.name||d?.name||u.id||``,{options:h,gated:g,dependsOnFields:_}=Zj(f,n?.dependsOn??o,a);(0,q.useEffect)(()=>{r||f.length!==0&&(g||e!=null&&e!==``&&($e(e,h)||t?.(null)))},[h,g]);let v=Hj(u,`instead-of-the-inputs`);if(r){if(e==null||e===``)return(0,J.jsx)($,{...v});let t=f.find(t=>t.value===e);return(0,J.jsx)(`span`,{...v,className:`text-sm`,children:t?Ge(t):String(e)})}return h.length===0?(0,J.jsx)(Xj,{emptyHint:s,gated:g,dependsOnFields:_,testId:m?`radio-empty-${m}`:void 0,className:`min-h-9`,hostGroupProps:v}):(0,J.jsx)(my,{...xj(u),value:e??``,onValueChange:t,disabled:u.disabled,className:i,"aria-invalid":!!l,children:h.map(e=>{let t=String(e.value),n=`${p}-${t}`;return(0,J.jsxs)(`div`,{className:`flex items-center space-x-2`,children:[(0,J.jsx)(hy,{value:t,id:n,"data-testid":`radio-option-${t}`}),(0,J.jsx)(Y_,{htmlFor:n,className:`font-normal`,children:Ge(e)})]},t)})})}var aM=t({CheckboxesField:()=>oM});function oM({value:e,onChange:t,field:n,readonly:r,className:i,dependentValues:a,dependsOn:o,emptyHint:s,dataSource:c,error:l,...u}){let d=n,f=d?.options||[],p=Array.isArray(e)?e:e==null?[]:[e],m=(0,q.useId)(),h=u.name||d?.name||u.id||``,{options:g,gated:_,dependsOnFields:v}=Zj(f,n?.dependsOn??o,a);(0,q.useEffect)(()=>{if(r||f.length===0||_||p.length===0)return;let e=p.filter(e=>g.some(t=>t.value===e));e.length!==p.length&&t(e)},[g,_]);let y=Hj(u,`instead-of-the-inputs`);if(r)return p.length===0?(0,J.jsx)($,{...y}):(0,J.jsx)(`div`,{...y,className:`flex flex-wrap gap-1`,children:p.map(e=>{let t=f.find(t=>t.value===e);return(0,J.jsx)(ds,{variant:`outline`,children:t?Ge(t):e},e)})});if(g.length===0)return(0,J.jsx)(Xj,{emptyHint:s,gated:_,dependsOnFields:v,testId:h?`checkboxes-empty-${h}`:void 0,className:`min-h-9`,hostGroupProps:y});let b=(e,n)=>{t(n?[...p.filter(t=>t!==e),e]:p.filter(t=>t!==e))},{"aria-invalid":x,name:S,...C}=xj(u),w=C[`aria-labelledby`]!=null;return(0,J.jsx)(`div`,{...C,role:w?`group`:void 0,className:i,"data-testid":h?`checkboxes-${h}`:void 0,children:g.map(e=>{let t=String(e.value),n=`${m}-${t}`;return(0,J.jsxs)(`div`,{className:`flex items-center space-x-2 py-0.5`,children:[(0,J.jsx)(rp,{id:n,checked:p.includes(t),onCheckedChange:e=>b(t,!!e),disabled:u.disabled,"aria-invalid":!!l,"data-testid":`checkboxes-option-${t}`}),(0,J.jsx)(Y_,{htmlFor:n,className:`font-normal`,children:Ge(e)})]},t)})})}var sM=t({TagsField:()=>cM});function cM({value:e,onChange:t,field:n,readonly:r,className:i,error:a,...o}){let s=Array.isArray(e)?e:e==null?[]:[e],[c,l]=q.useState(``),{t:u}=kj();if(r)return s.length===0?(0,J.jsx)($,{}):(0,J.jsx)(`div`,{className:`flex flex-wrap gap-1`,children:s.map(e=>(0,J.jsx)(ds,{variant:`secondary`,children:e},e))});let d=e=>{let n=e.trim();n&&!s.includes(n)&&(t([...s,n]),l(``))},f=e=>t(s.filter(t=>t!==e)),p=xj(o),m=e=>{d(c),p.onBlur?.(e)},h=e=>{e.key===`Enter`||e.key===`,`?(e.preventDefault(),d(c)):e.key===`Backspace`&&c===``&&s.length>0&&f(s[s.length-1])};return(0,J.jsxs)(`div`,{className:Y(`flex flex-wrap items-center gap-1.5 rounded-md border border-input bg-background p-1.5`,i),children:[s.map(e=>(0,J.jsxs)(ds,{variant:`secondary`,className:`gap-1`,children:[e,(0,J.jsx)(`button`,{type:`button`,onClick:()=>f(e),className:`ml-0.5 rounded-full text-muted-foreground hover:text-foreground`,"aria-label":`Remove ${e}`,children:`×`})]},e)),(0,J.jsx)(Pv,{...p,value:c,onChange:e=>l(e.target.value),onKeyDown:h,onBlur:m,disabled:o.disabled,placeholder:s.length===0?n?.placeholder||u(`fields.tags.placeholder`):``,className:`h-7 flex-1 border-0 bg-transparent p-0 px-1 shadow-none focus-visible:ring-0 min-w-[8ch]`,"aria-invalid":!!a})]})}function lM(e){if(!(e.disabled||e.readOnly))try{e.showPicker?.()}catch{}}var uM=t({DateField:()=>dM});function dM({value:e,onChange:t,field:n,readonly:r,error:i,...a}){let o=Ct(),{t:s}=kj(),c=q.useId();if(r)return!e||isNaN(S(e).getTime())?(0,J.jsx)($,{}):(0,J.jsx)(`span`,{className:`text-sm`,children:ut(e,void 0,{locale:o})});let l=xj(a),u=Oe(e),d=u?[l[`aria-describedby`],c].filter(Boolean).join(` `):l[`aria-describedby`],f=(0,J.jsx)(Pv,{...l,type:`date`,value:u?``:Me(e),onChange:e=>t(e.target.value),onClick:e=>{lM(e.currentTarget),l.onClick?.(e)},disabled:r||l.disabled,"aria-invalid":!!i||u,"aria-describedby":d});return u?(0,J.jsxs)(`div`,{className:`space-y-1`,children:[f,(0,J.jsx)(`p`,{id:c,className:`text-xs text-destructive`,"data-testid":`date-impossible-day`,children:s(`fields.date.impossibleDay`,{value:String(e)})})]}):f}var fM=t({DateTimeField:()=>pM});function pM({value:e,onChange:t,field:n,readonly:r,error:i,...a}){let o=Ct(),{t:s}=kj(),c=q.useId();if(r)return e?(0,J.jsx)(`span`,{className:`text-sm`,children:U(e,{locale:o})}):(0,J.jsx)($,{});let l=xj(a),u=Oe(e),d=u?[l[`aria-describedby`],c].filter(Boolean).join(` `):l[`aria-describedby`],f=(0,J.jsx)(Pv,{...l,type:`datetime-local`,value:Qe(e),onChange:e=>t(at(e.target.value)),onClick:e=>{lM(e.currentTarget),l.onClick?.(e)},disabled:r||l.disabled,"aria-invalid":!!i||u,"aria-describedby":d});return u?(0,J.jsxs)(`div`,{className:`space-y-1`,children:[f,(0,J.jsx)(`p`,{id:c,className:`text-xs text-destructive`,"data-testid":`datetime-impossible-day`,children:s(`fields.dateTime.impossibleDay`,{value:String(e)})})]}):f}var mM=t({TimeField:()=>hM});function hM({value:e,onChange:t,field:n,readonly:r,error:i,...a}){if(r)return(0,J.jsx)(`span`,{className:`text-sm`,children:e||(0,J.jsx)($,{})});let o=xj(a);return(0,J.jsx)(Pv,{...o,type:`time`,value:e||``,onChange:e=>t(e.target.value),onClick:e=>{lM(e.currentTarget),o.onClick?.(e)},disabled:r||o.disabled,"aria-invalid":!!i})}var gM=t({EmailField:()=>_M});function _M({value:e,onChange:t,field:n,readonly:r,error:i,...a}){let o=n;if(r)return e?(0,J.jsx)(`a`,{href:`mailto:${e}`,className:`text-sm text-blue-600 hover:text-blue-800 hover:underline`,children:e}):(0,J.jsx)($,{});let s=xj(a);return(0,J.jsx)(Pv,{...s,type:`email`,value:e||``,onChange:e=>t(e.target.value),placeholder:o?.placeholder||`email@example.com`,disabled:r||s.disabled,"aria-invalid":!!i})}var vM=t({PhoneField:()=>yM});function yM({value:e,onChange:t,field:n,readonly:r,error:i,...a}){let o=n;if(r)return e?(0,J.jsx)(`a`,{href:`tel:${e}`,className:`text-sm text-blue-600 hover:text-blue-800 hover:underline`,children:e}):(0,J.jsx)($,{});let s=xj(a);return(0,J.jsx)(Pv,{...s,type:`tel`,value:e||``,onChange:e=>t(e.target.value),placeholder:o?.placeholder||`(555) 123-4567`,disabled:r||s.disabled,"aria-invalid":!!i})}var bM=t({UrlField:()=>xM});function xM({value:e,onChange:t,field:n,readonly:r,error:i,...a}){let o=n;if(r)return e?e.startsWith(`http://`)||e.startsWith(`https://`)?(0,J.jsx)(`a`,{href:e,target:`_blank`,rel:`noopener noreferrer`,className:`text-sm text-blue-600 hover:text-blue-800 hover:underline`,children:e}):(0,J.jsx)(`span`,{className:`text-sm`,children:e}):(0,J.jsx)($,{});let s=xj(a);return(0,J.jsx)(Pv,{...s,type:`url`,value:e||``,onChange:e=>t(e.target.value),placeholder:o?.placeholder||`https://example.com`,disabled:r||s.disabled,"aria-invalid":!!i})}function SM(e){return e==null?!1:Array.isArray(e)?e.length>0:typeof e==`object`&&Object.keys(e).length>0}function CM(e){let{dataSource:t,objectName:n,enabled:r=!0,pageSize:i=50,paginate:a=!1,filter:o,expand:s,searchFields:c,debounceMs:l=300}=e,[u,d]=(0,q.useState)([]),[f,p]=(0,q.useState)(!1),[m,h]=(0,q.useState)(null),[g,_]=(0,q.useState)(0),[v,y]=(0,q.useState)(1),[b,x]=(0,q.useState)(``),[S,C]=(0,q.useState)(null),w=(0,q.useRef)(null),T=(0,q.useRef)(0),E=(0,q.useCallback)(()=>{w.current&&=(clearTimeout(w.current),null)},[]),D=(0,q.useMemo)(()=>SM(o)?JSON.stringify(o):``,[o]),O=(0,q.useMemo)(()=>s?.length?s.join(`,`):``,[s]),k=(0,q.useMemo)(()=>c?.length?c.join(`,`):``,[c]),A=!!r&&!!t&&typeof t.find==`function`&&!!n,j=(0,q.useCallback)(async(e,r,l)=>{if(!A||!t||!n)return;let u=++T.current,f=()=>T.current===u;p(!0),h(null);try{let u={$top:i};a&&(u.$skip=(r-1)*i),e&&e.trim()&&(u.$search=e.trim()),c&&c.length>0&&(u.$searchFields=c),l&&(u.$orderby={[l.field]:l.direction}),SM(o)&&(u.$filter=o),s&&s.length>0&&(u.$expand=s);let p=await t.find(n,u);if(!f())return;let m=p?.data??p??[];d(m),_(p?.total??m.length)}catch(e){if(!f())return;h(e instanceof Error?e.message:String(e)),d([])}finally{f()&&p(!1)}},[A,t,n,i,a,D,O,k]);(0,q.useEffect)(()=>{A&&j(b,v,S)},[A,v,S,j]);let M=(0,q.useCallback)(()=>{T.current+=1,E(),p(!1),d([]),h(null),x(``),y(1),C(null)},[E]);(0,q.useEffect)(()=>{A||M()},[A,M]),(0,q.useEffect)(()=>()=>E(),[j,v,S,E]);let N=(0,q.useCallback)(e=>{x(e),y(1),E(),w.current=setTimeout(()=>{j(e,1,S)},l)},[j,S,l,E]),ee=(0,q.useCallback)(e=>{y(e)},[]),P=(0,q.useCallback)(e=>{C(t=>t&&t.field===e?{field:e,direction:t.direction===`asc`?`desc`:`asc`}:{field:e,direction:`asc`}),y(1)},[]),F=(0,q.useCallback)(e=>{C(e),y(1)},[]),I=(0,q.useCallback)(()=>{j(b,v,S)},[j,b,v,S]);return{records:u,loading:f,error:m,total:g,totalPages:Math.max(1,Math.ceil(g/Math.max(1,i))),page:v,search:b,sort:S,setPage:ee,setSearch:N,toggleSort:P,setSort:F,reset:M,refetch:I}}function wM(e){return typeof e==`string`?{field:e}:e}function TM(e){return e.replace(/_/g,` `).replace(/([a-z])([A-Z])/g,`$1 $2`).replace(/\b\w/g,e=>e.toUpperCase())}function EM(e,t,n,r){let i=e?.options;if(!Array.isArray(i)||i.length===0)return;let a=i;return t?r(t,n,a):a}function DM(e,t,n,r){let i={};for(let a of e){let e=t?.[a.field],o=a.type??e?.type;if(!o)continue;let s=e?{...e,name:a.field,type:o}:{name:a.field,type:o},c=EM(e,n,a.field,r);c&&(s.options=c),i[a.field]=s}return i}function OM(e,t,n){let{descriptors:r,cellRenderer:i,objectSchema:a,titleField:o,displayField:s,displayLocale:c}=n;if(a&&t.field===s){let t=j(a,e,{titleField:o}),n=e?.id??e?._id;if(!(t===`Untitled`||n!=null&&t===`Record #${n}`))return t}let l=e?.[t.field],u=r[t.field];if(u&&i){let e=i(u.type);if(e)return(0,J.jsx)(e,{value:l,field:u})}return l==null?``:typeof l==`object`?l.$numberDecimal?String(Number(l.$numberDecimal)):l.$oid?String(l.$oid):l.$date?ut(l.$date,void 0,{locale:c}):l.name||l.label?String(l.name||l.label):JSON.stringify(l):typeof l==`boolean`?l?`Yes`:`No`:String(l)}var kM=10,AM=60,jM=5;function MM(e){let t={};for(let n of e)switch(n.operator){case`eq`:t[n.field]=n.value;break;case`ne`:t[n.field]={$ne:n.value};break;case`gt`:t[n.field]={$gt:n.value};break;case`lt`:t[n.field]={$lt:n.value};break;case`gte`:t[n.field]={$gte:n.value};break;case`lte`:t[n.field]={$lte:n.value};break;case`contains`:t[n.field]={$contains:n.value};break;case`in`:t[n.field]={$in:n.value};break;case`notIn`:t[n.field]={$nin:n.value}}return t}function NM(e){return e==null?void 0:String(e)}function PM(e,t){let n=e?.find(e=>String(e.value)===t);return n?n.value:t}function FM(e,t){let n={};for(let r of t){let t=e[r.field];t!=null&&t!==``&&(r.type===`boolean`?n[r.field]=!!t:r.type===`text`?n[r.field]={$contains:t}:n[r.field]=t)}return n}function IM({open:e,onOpenChange:t,title:n=`Select Record`,multiple:r=!1,dataSource:i,objectName:a,columns:o,displayField:s,objectSchema:c,idField:l=`id`,pageSize:u=kM,value:d,onSelect:f,onSelectRecords:p,lookupFilters:m,baseFilter:h,cellRenderer:g,fieldsMeta:_,filterColumns:v,renderFilterBar:y,renderGrid:b}){let S=s??`name`,{t:C}=kj(),{translateOptions:w}=St(),T=Ct(),[E,D]=(0,q.useState)(new Set),O=(0,q.useRef)(new Map),[k,A]=(0,q.useState)(-1),j=(0,q.useRef)(null),[M,N]=(0,q.useState)(!1),[ee,P]=(0,q.useState)({}),[F,I]=(0,q.useState)({}),te=(0,q.useRef)(null),[ne,re]=(0,q.useState)(``),L=(0,q.useMemo)(()=>o&&o.length>0?o.map(wM):[{field:S,label:TM(S)}],[o,S]),R=(0,q.useMemo)(()=>DM(L,_,a,w),[L,_,a,w]),z=MA(),B=(0,q.useMemo)(()=>{let e=L.filter(e=>e.field!==l);if(e.length===0)return[];let t=x(_,e);return z.isLoaded?t.filter(e=>z.checkField(a,e,`read`)):t},[_,L,l,z,a]),ie=(0,q.useMemo)(()=>{if(!z.isLoaded)return L;let e=L.filter(e=>e.field===l||z.checkField(a,e.field,`read`));return e.length>0?e:[{field:l,label:TM(l)}]},[L,z,a,l]),V=(0,q.useMemo)(()=>{if(v&&v.length>0)return v;if(m&&m.length>0)return m.map(e=>{let t=`text`;return typeof e.value==`boolean`?t=`boolean`:Array.isArray(e.value)?t=`select`:typeof e.value==`number`||e.operator===`gt`||e.operator===`lt`||e.operator===`gte`||e.operator===`lte`?t=`number`:(e.operator===`in`||e.operator===`notIn`)&&(t=`select`),{field:e.field,label:TM(e.field),type:t,...Array.isArray(e.value)?{options:e.value.map(e=>{if(typeof e==`object`&&e){let t=e;return{label:String(t.name||t.label||t.title||e),value:e}}return{label:String(e),value:e}})}:{}}})},[v,m]),ae=(0,q.useMemo)(()=>{if(V)return V.map(e=>{if(e.type!==`select`||e.options&&e.options.length>0)return e;let t=EM(_?.[e.field],a,e.field,w);return t?{...e,options:t}:e})},[V,_,a,w]),H=(0,q.useMemo)(()=>{let e=m?.length?MM(m):{},t=ae?.length?FM(ee,ae):{},n=Array.isArray(h)?h:void 0,r=n?void 0:h,i={...e,...t,...r??{}},a=Object.keys(i).length>0?i:void 0;if(!n)return{ok:!0,node:a};let o=ze(a);if(!o.ok)return o;let s=ze(n);return s.ok?{ok:!0,node:qe(o.node,s.node)}:s},[m,ae,ee,h]),oe=H.ok?void 0:H.refusal,U=CM({dataSource:i,objectName:a,enabled:e&&H.ok,pageSize:u,paginate:!0,filter:H.ok?H.node:void 0,expand:B}),{records:W,loading:G}=U,se=oe?oe.message:U.error,ce=U.total,le=U.totalPages,ue=U.search,de=U.page,fe=U.sort?.field??null,pe=U.sort?.direction??`asc`,me=U.setPage,he=U.toggleSort,ge=U.setSearch;(0,q.useEffect)(()=>{e||(A(-1),N(!1),P({}),I({}),re(``),D(new Set(r&&Array.isArray(d)?d:[])),O.current.clear())},[e]),(0,q.useEffect)(()=>{e&&r&&D(new Set(Array.isArray(d)?d:[]))},[e,r,d]),(0,q.useEffect)(()=>{A(-1)},[W]);let K=(0,q.useCallback)(e=>e[l]??e.id??e._id,[l]),_e=(0,q.useCallback)(e=>{let t=K(e);return r?E.has(t):d===t},[r,d,E,K]),ve=(0,q.useCallback)(e=>{let n=K(e),i=ft(e,_);r?D(e=>{let t=new Set(e);return t.has(n)?(t.delete(n),O.current.delete(n)):(t.add(n),O.current.set(n,i)),t}):(f(n),p?.([i]),t(!1))},[r,K,_,f,p,t]),ye=(0,q.useCallback)(()=>{let e=Array.from(E);f(e);let n=e.map(e=>O.current.get(e)).filter(Boolean);p?.(n),t(!1)},[E,f,p,t]),be=(0,q.useCallback)(()=>{me(Math.max(1,de-1))},[me,de]),xe=(0,q.useCallback)(()=>{me(Math.min(le,de+1))},[me,de,le]),Se=(0,q.useCallback)(e=>{if(e.key!==`Enter`)return;let t=parseInt(ne,10);!isNaN(t)&&t>=1&&t<=le&&me(t),re(``)},[ne,le]),Ce=(0,q.useCallback)(e=>{W.length!==0&&(e.key===`ArrowDown`?(e.preventDefault(),A(e=>Math.min(e+1,W.length-1))):e.key===`ArrowUp`?(e.preventDefault(),A(e=>Math.max(e-1,0))):(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),k>=0&&k<W.length&&ve(W[k])))},[W,k,ve]);(0,q.useEffect)(()=>{if(k>=0&&j.current){let e=j.current.querySelector(`[data-row-index="${k}"]`);e&&typeof e.scrollIntoView==`function`&&e.scrollIntoView({block:`nearest`})}},[k]);let we=(0,q.useCallback)((e,t)=>OM(c&&t.field===S?Ae(ft(e,_),z,a,[l]):e,t,{descriptors:R,cellRenderer:g,objectSchema:c,titleField:s,displayField:S,displayLocale:T}),[g,c,s,S,_,R,T,z,a,l]),Te=(0,q.useCallback)(e=>fe===e?pe===`asc`?(0,J.jsx)(li,{className:`ml-1 size-3`}):(0,J.jsx)(ai,{className:`ml-1 size-3`}):(0,J.jsx)(ci,{className:`ml-1 size-3 opacity-40`}),[fe,pe]),Ee=(0,q.useCallback)((e,t,n)=>{e.preventDefault(),e.stopPropagation(),te.current={field:t,startX:e.clientX,startWidth:n};let r=e=>{if(!te.current)return;let t=e.clientX-te.current.startX,n=Math.max(AM,te.current.startWidth+t);I(e=>({...e,[te.current.field]:n}))},i=()=>{te.current=null,document.removeEventListener(`mousemove`,r),document.removeEventListener(`mouseup`,i)};document.addEventListener(`mousemove`,r),document.addEventListener(`mouseup`,i)},[]),De=(0,q.useCallback)((e,t)=>{P(n=>({...n,[e]:t})),me(1)},[]),Oe=(0,q.useCallback)(()=>{P({}),me(1)},[]),ke=(0,q.useMemo)(()=>Object.values(ee).filter(e=>e!=null&&e!==``).length,[ee]),je=(0,q.useCallback)(e=>{let t=ee[e.field],n=e.label||TM(e.field);switch(e.type){case`select`:return(0,J.jsxs)(`div`,{className:`space-y-1`,children:[(0,J.jsx)(Y_,{className:`text-xs text-muted-foreground`,children:n}),(0,J.jsxs)(vy,{value:NM(t)??``,onValueChange:t=>De(e.field,PM(e.options,t)),children:[(0,J.jsx)(by,{className:`h-8 text-xs`,children:(0,J.jsx)(yy,{placeholder:C(`lookup.filterPlaceholder`,{label:n})})}),(0,J.jsx)(Cy,{children:e.options?.map(e=>(0,J.jsx)(Ty,{value:String(e.value),children:e.label},String(e.value)))})]})]});case`number`:return(0,J.jsxs)(`div`,{className:`space-y-1`,children:[(0,J.jsx)(Y_,{className:`text-xs text-muted-foreground`,children:n}),(0,J.jsx)(Pv,{type:`number`,className:`h-8 text-xs`,value:t??``,placeholder:C(`lookup.filterPlaceholder`,{label:n}),onChange:t=>{let n=t.target.value;De(e.field,n===``?``:Number(n))}})]});case`date`:return(0,J.jsxs)(`div`,{className:`space-y-1`,children:[(0,J.jsx)(Y_,{className:`text-xs text-muted-foreground`,children:n}),(0,J.jsx)(Pv,{type:`date`,className:`h-8 text-xs`,value:t??``,onChange:t=>De(e.field,t.target.value)})]});case`boolean`:return(0,J.jsxs)(`div`,{className:`space-y-1`,children:[(0,J.jsx)(Y_,{className:`text-xs text-muted-foreground`,children:n}),(0,J.jsxs)(`div`,{className:`flex items-center gap-2 h-8`,children:[(0,J.jsx)(rp,{checked:!!t,onCheckedChange:t=>De(e.field,!!t)}),(0,J.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:C(`lookup.yes`)})]})]});default:return(0,J.jsxs)(`div`,{className:`space-y-1`,children:[(0,J.jsx)(Y_,{className:`text-xs text-muted-foreground`,children:n}),(0,J.jsx)(Pv,{className:`h-8 text-xs`,value:t??``,placeholder:C(`lookup.filterPlaceholder`,{label:n}),onChange:t=>De(e.field,t.target.value)})]})}},[ee,De]),Me=(0,q.useCallback)((e,t)=>e?`bg-primary/5 hover:bg-primary/10`:t%2==1?`bg-muted/20 hover:bg-accent/30`:`hover:bg-accent/30`,[]);return(0,J.jsx)(im,{open:e,onOpenChange:t,children:(0,J.jsxs)(cm,{className:`w-[95vw] sm:max-w-3xl lg:max-w-5xl max-h-[85vh] sm:max-h-[80vh] flex flex-col gap-0`,"data-testid":`record-picker-dialog`,children:[(0,J.jsx)(lm,{children:(0,J.jsxs)(dm,{children:[n,r&&(0,J.jsx)(`span`,{className:`sr-only`,children:` (multiple selection)`})]})}),(0,J.jsxs)(`div`,{className:`relative rounded-md border bg-muted/30 mb-3`,children:[(0,J.jsx)(la,{className:`absolute left-3 top-1/2 -translate-y-1/2 size-4 text-muted-foreground`}),(0,J.jsx)(Pv,{placeholder:C(`table.search`),value:ue,onChange:e=>ge(e.target.value),className:`pl-9 border-0 bg-transparent shadow-none focus-visible:ring-0`,"data-testid":`record-picker-search`}),G&&(0,J.jsx)(Ji,{className:`absolute right-3 top-1/2 -translate-y-1/2 size-4 animate-spin text-muted-foreground`,"data-testid":`record-picker-loading-indicator`})]}),ae&&ae.length>0&&(0,J.jsx)(`div`,{className:`py-2`,children:y?(0,J.jsx)(`div`,{"data-testid":`record-picker-filter-bar`,children:y({filterColumns:ae,values:ee,onChange:De,onClear:Oe,activeCount:ke})}):(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(`div`,{className:`flex items-center gap-2`,"data-testid":`record-picker-filter-bar`,children:[(0,J.jsxs)(X,{type:`button`,variant:ke>0?`secondary`:`outline`,size:`sm`,className:`gap-1.5 shrink-0`,onClick:()=>N(e=>!e),children:[(0,J.jsx)(pa,{className:`size-3.5`}),C(`lookup.filters`),ke>0&&(0,J.jsx)(`span`,{className:`inline-flex h-5 min-w-[20px] items-center justify-center rounded-full bg-primary/10 px-1 text-xs font-medium text-primary`,children:ke})]}),ke>0&&(0,J.jsxs)(X,{type:`button`,variant:`ghost`,size:`sm`,className:`gap-1 text-xs`,onClick:Oe,children:[(0,J.jsx)(Ta,{className:`size-3`}),C(`lookup.clear`)]})]}),M&&(0,J.jsx)(`div`,{className:`mt-2 grid gap-3 sm:grid-cols-2 lg:grid-cols-3 border rounded-md p-3 bg-muted/30`,"data-testid":`record-picker-filter-panel`,children:ae.map(e=>(0,J.jsx)(`div`,{children:je(e)},e.field))})]})}),se&&(0,J.jsxs)(`div`,{className:`flex flex-col items-center gap-2 py-4`,role:`alert`,children:[(0,J.jsx)(xi,{className:`size-5 text-destructive`}),(0,J.jsx)(`p`,{className:`text-sm text-destructive`,children:se}),oe?null:(0,J.jsx)(X,{variant:`outline`,size:`sm`,onClick:()=>U.refetch(),type:`button`,children:C(`lookup.retry`)})]}),b?(0,J.jsx)(`div`,{className:`flex-1 min-h-0`,"data-testid":`record-picker-grid-slot`,children:b({columns:ie,records:W,loading:G,totalCount:ce,currentPage:de,pageSize:u,sortField:fe,sortDirection:pe,onSort:he,onPageChange:me,onRowClick:ve,isSelected:_e,multiple:r,idField:l,cellRenderer:g})}):(0,J.jsxs)(J.Fragment,{children:[G&&W.length===0&&!se&&(0,J.jsx)(`div`,{className:`flex-1 overflow-hidden min-h-0 border rounded-md`,role:`status`,"aria-live":`polite`,"data-testid":`record-picker-skeleton`,children:(0,J.jsxs)(Nb,{children:[(0,J.jsx)(Pb,{children:(0,J.jsxs)(Lb,{className:`bg-muted/40`,children:[r&&(0,J.jsx)(Rb,{className:`w-10`}),ie.map(e=>(0,J.jsx)(Rb,{children:(0,J.jsx)(Hy,{className:`h-4 w-20`})},e.field))]})}),(0,J.jsx)(Fb,{children:Array.from({length:jM},(e,t)=>(0,J.jsxs)(Lb,{children:[r&&(0,J.jsx)(zb,{className:`w-10`,children:(0,J.jsx)(Hy,{className:`size-4 rounded`})}),ie.map(e=>(0,J.jsx)(zb,{children:(0,J.jsx)(Hy,{className:`h-4 w-full`})},e.field))]},t))})]})}),!G&&!se&&W.length===0&&(0,J.jsx)(`div`,{className:`py-8 text-center`,children:(0,J.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:C(`lookup.noRecords`)})}),!se&&W.length>0&&(0,J.jsxs)(`div`,{className:`relative flex-1 overflow-auto min-h-0 border rounded-md`,"aria-busy":G||void 0,"data-state":G?`loading`:`idle`,tabIndex:0,onKeyDown:Ce,role:`grid`,"aria-label":`Records`,children:[G&&(0,J.jsx)(`div`,{className:`absolute inset-0 z-10 flex items-center justify-center bg-background/60`,"data-testid":`record-picker-loading-overlay`,children:(0,J.jsx)(Ji,{className:`size-6 animate-spin text-muted-foreground`})}),(0,J.jsxs)(Nb,{style:Object.keys(F).length>0?{tableLayout:`fixed`}:void 0,children:[(0,J.jsx)(Pb,{className:`sticky top-0 z-[5] bg-muted/50 [&_tr]:border-b`,"data-testid":`record-picker-sticky-header`,children:(0,J.jsxs)(Lb,{children:[r&&(0,J.jsx)(Rb,{className:`w-10`}),ie.map(e=>{let t=F[e.field],n=t?{width:`${t}px`,minWidth:`${t}px`}:e.width?{width:e.width}:void 0;return(0,J.jsxs)(Rb,{style:n,className:`cursor-pointer select-none relative group text-xs font-semibold uppercase tracking-wider`,onClick:()=>he(e.field),"aria-sort":fe===e.field?pe===`asc`?`ascending`:`descending`:`none`,children:[(0,J.jsxs)(`span`,{className:`inline-flex items-center`,children:[e.label||TM(e.field),Te(e.field)]}),(0,J.jsx)(`span`,{role:`separator`,"aria-orientation":`vertical`,className:`absolute right-0 top-0 bottom-0 w-1 cursor-col-resize opacity-0 group-hover:opacity-100 bg-border hover:bg-primary/50 transition-opacity`,onMouseDown:t=>{let n=t.currentTarget.parentElement?.getBoundingClientRect();Ee(t,e.field,n?.width??100)},onClick:e=>e.stopPropagation(),"data-testid":`resize-handle-${e.field}`})]},e.field)})]})}),(0,J.jsx)(Fb,{ref:j,children:W.map((e,t)=>{let n=K(e),i=_e(e),a=t===k;return(0,J.jsxs)(Lb,{"data-row-index":t,className:Y(`cursor-pointer transition-colors`,Me(i,t),a&&`ring-2 ring-primary ring-inset`),onClick:()=>ve(e),"data-testid":`record-row-${n}`,"aria-selected":i,children:[r&&(0,J.jsx)(zb,{className:`w-10`,children:i&&(0,J.jsx)(pi,{className:`size-4 text-primary`})}),ie.map(t=>(0,J.jsx)(zb,{className:`py-2.5`,"data-lookup-cell":t.field,children:we(e,t)},t.field))]},n??t)})})]})]}),!se&&ce>0&&(0,J.jsxs)(`div`,{className:`flex items-center justify-between text-sm text-muted-foreground border-t pt-3 mt-2 px-1`,"data-testid":`record-picker-pagination`,children:[(0,J.jsxs)(`span`,{children:[ce===1?C(`lookup.recordCountOne`):C(`lookup.recordCount`,{count:ce}),le>1&&` · ${C(`lookup.pageOf`,{current:de,total:le})}`]}),le>1&&(0,J.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,J.jsx)(X,{variant:`outline`,size:`icon`,className:`size-7`,onClick:be,disabled:de<=1,type:`button`,"aria-label":C(`lookup.prevPage`),children:(0,J.jsx)(hi,{className:`size-4`})}),(0,J.jsx)(Pv,{className:`h-7 w-12 text-center text-xs px-1`,placeholder:String(de),value:ne,onChange:e=>re(e.target.value),onKeyDown:Se,"aria-label":C(`lookup.jumpToPage`),"data-testid":`record-picker-page-jump`}),(0,J.jsx)(X,{variant:`outline`,size:`icon`,className:`size-7`,onClick:xe,disabled:de>=le,type:`button`,"aria-label":C(`lookup.nextPage`),children:(0,J.jsx)(gi,{className:`size-4`})})]})]})]}),r&&(0,J.jsx)(um,{children:(0,J.jsxs)(`div`,{className:`flex items-center gap-2 w-full justify-between`,children:[(0,J.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:C(`table.selected`,{count:E.size})}),(0,J.jsxs)(`div`,{className:`flex gap-2`,children:[(0,J.jsx)(X,{variant:`outline`,type:`button`,onClick:()=>t(!1),children:C(`common.cancel`)}),(0,J.jsx)(X,{type:`button`,onClick:ye,children:C(`common.confirm`)})]})]})})]})})}function LM(e,t){if(e&&t)return t.includes(`.`)?t.split(`.`).reduce((e,t)=>e==null?e:e[t],e):e[t]}function RM(e=`name`){return[e,`name`,`username`,`label`]}function zM(e,t=`name`){if(e==null)return``;if(typeof e!=`object`)return String(e);let n=typeof t==`string`?RM(t):t;for(let t of n)if(e[t]!=null)return String(e[t]);return``}function BM(e){let t=(e||``).trim();if(!t)return`?`;let n=t.split(/\s+/).filter(Boolean);if(n.length>=2)return(n[0][0]+n[n.length-1][0]).toUpperCase();let r=n[0];return/[㐀-鿿]/.test(r)?r.length<=2?r:r.slice(-2):r.slice(0,2).toUpperCase()}function VM(e,t){return!e||!t||t.length===0?``:t.map(t=>LM(e,t)).filter(e=>e!=null&&e!==``).map(e=>String(e)).join(` · `)}function HM(e,t=`image`){let n=e&&t?LM(e,t):void 0;return n?String(n):void 0}function UM(e,t=`id`){return!e||typeof e!=`object`?e:e[t]??e.id??e._id}function WM(e,t){let n=e??``,r=(t??``).trim().toLowerCase();if(!r||!n)return[];let i=n.toLowerCase(),a=[],o=0;for(;;){let e=i.indexOf(r,o);if(e===-1)break;a.push([e,e+r.length]),o=e+r.length}return a}function GM({text:e,query:t}){let n=t?WM(e,t):[];if(n.length===0)return(0,J.jsx)(J.Fragment,{children:e});let r=[],i=0;return n.forEach(([t,n],a)=>{t>i&&r.push(e.slice(i,t)),r.push((0,J.jsx)(`mark`,{className:`rounded-[2px] bg-primary/20 px-px text-inherit`,children:e.slice(t,n)},a)),i=n}),i<e.length&&r.push(e.slice(i)),(0,J.jsx)(J.Fragment,{children:r})}function KM({record:e,displayField:t=`name`,nameFields:n,subtitleFields:r,avatarField:i=`image`,selected:a=!1,active:o=!1,highlightQuery:s,onSelect:c,className:l}){let u=zM(e,n??t),d=VM(e,r),f=HM(e,i),p=BM(u),m=(0,q.useRef)(null);return(0,q.useEffect)(()=>{o&&m.current?.scrollIntoView?.({block:`nearest`})},[o]),(0,J.jsxs)(`button`,{ref:m,type:`button`,tabIndex:-1,onClick:()=>c?.(e),"aria-pressed":a,"data-testid":`person-row`,"data-active":o||void 0,className:Y(`flex w-full items-center gap-3 rounded-md px-2 py-1.5 text-left transition-colors`,`hover:bg-accent focus-visible:outline-none`,a&&`bg-accent`,o&&`bg-accent ring-1 ring-inset ring-ring`,l),children:[(0,J.jsxs)(ss,{className:`size-9 shrink-0`,children:[f&&(0,J.jsx)(cs,{src:f,alt:u}),(0,J.jsx)(ls,{className:`text-xs`,children:p})]}),(0,J.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,J.jsx)(`div`,{className:`truncate text-sm font-medium`,children:u?(0,J.jsx)(GM,{text:u,query:s}):`—`}),d&&(0,J.jsx)(`div`,{className:`truncate text-xs text-muted-foreground`,children:(0,J.jsx)(GM,{text:d,query:s})})]}),a&&(0,J.jsx)(pi,{className:`size-4 shrink-0 text-primary`,"aria-hidden":!0})]})}function qM({records:e,onRemove:t,displayField:n=`name`,nameFields:r,avatarField:i=`image`,idField:a=`id`,label:o,onClear:s,clearLabel:c,emptyText:l,className:u}){let d=!!o||!!s&&e.length>0;return(0,J.jsxs)(`div`,{className:Y(`flex flex-col gap-1.5`,u),"data-testid":`selection-tray`,children:[d&&(0,J.jsxs)(`div`,{className:`flex items-center justify-between`,children:[o&&(0,J.jsx)(`div`,{className:`text-xs font-medium text-muted-foreground`,children:o}),s&&e.length>0&&(0,J.jsx)(`button`,{type:`button`,onClick:s,className:`text-xs text-muted-foreground transition-colors hover:text-foreground`,"data-testid":`selection-clear`,children:c??`Clear all`})]}),e.length===0?(0,J.jsx)(`div`,{className:`text-xs text-muted-foreground`,children:l??``}):(0,J.jsx)(`div`,{className:`flex flex-wrap gap-1.5`,children:e.map(e=>{let o=UM(e,a),s=zM(e,r??n),c=HM(e,i),l=BM(s);return(0,J.jsxs)(`span`,{"data-testid":`selection-chip`,className:`inline-flex items-center gap-1.5 rounded-full border bg-background py-0.5 pl-0.5 pr-1.5 text-sm`,children:[(0,J.jsxs)(ss,{className:`size-6 shrink-0`,children:[c&&(0,J.jsx)(cs,{src:c,alt:s}),(0,J.jsx)(ls,{className:`text-[10px]`,children:l})]}),(0,J.jsx)(`span`,{className:`max-w-[10rem] truncate`,children:s||`—`}),(0,J.jsx)(`button`,{type:`button`,onClick:()=>t(o),"aria-label":`Remove ${s}`,className:`rounded-full p-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-foreground`,children:(0,J.jsx)(Ta,{className:`size-3.5`,"aria-hidden":!0})})]},String(o))})})]})}var JM=`objectui:lookup:recent:`,YM=5;function XM(){try{return typeof localStorage<`u`?localStorage:null}catch{return null}}function ZM(e){let t=XM();if(!e||!t)return[];try{let n=t.getItem(JM+e);if(!n)return[];let r=JSON.parse(n);return Array.isArray(r)?r.slice(0,YM):[]}catch{return[]}}function QM(e,t){let n=XM();if(e&&t!=null&&t!==``&&n)try{let r=[t,...ZM(e).filter(e=>e!==t)].slice(0,YM);n.setItem(JM+e,JSON.stringify(r))}catch{}}var $M=25,eN=6;function tN({open:e,onOpenChange:t,title:n,multiple:r=!1,dataSource:i,objectName:a,displayField:o=`name`,idField:s=`id`,subtitleFields:c,avatarField:l=`image`,expand:u,searchFields:d,pageSize:f=$M,lookupFilters:p,baseFilter:m,value:h,onSelect:g,onSelectRecords:_,inline:v=!1,trigger:y}){let{t:b}=kj(),x=By(),S=(0,q.useMemo)(()=>{let e={...p?.length?MM(p):{},...m??{}};return Object.keys(e).length>0?e:void 0},[p,m]),C=MA(),w=(0,q.useMemo)(()=>{let e;if(u&&u.length)e=u;else{let t=new Set;(c??[]).forEach(e=>{e.includes(`.`)&&t.add(e.split(`.`)[0])}),e=Array.from(t)}let t=e.filter(e=>!C.isLoaded||C.checkField(a,e,`read`));return t.length?t:void 0},[u,c,C,a]),T=(0,q.useMemo)(()=>c?.filter(e=>!C.isLoaded||C.checkField(a,e.split(`.`)[0],`read`)),[c,C,a]),E=(0,q.useMemo)(()=>!C.isLoaded||C.checkField(a,l.split(`.`)[0],`read`)?l:null,[l,C,a]),D=(0,q.useMemo)(()=>RM(o).filter(e=>!C.isLoaded||C.checkField(a,e.split(`.`)[0],`read`)),[o,C,a]),O=CM({dataSource:i,objectName:a,enabled:e,pageSize:f,filter:S,expand:w,searchFields:d}),k=(0,q.useMemo)(()=>e?ZM(a):[],[e,a]),A=(0,q.useMemo)(()=>r?Array.isArray(h)?h:[]:h!=null&&h!==``?[h]:[],[r,h]),j=CM({dataSource:i,objectName:a,enabled:e&&A.length>0,pageSize:Math.max(1,A.length),filter:{[s]:{$in:A}},expand:w}),M=(0,q.useMemo)(()=>{let e={[s]:{$in:k}};if(!S)return{ok:!0,node:e};let t=ze(S);return t.ok?{ok:!0,node:qe(t.node,e)}:t},[S,s,k]),N=M.ok?void 0:M.refusal,ee=CM({dataSource:i,objectName:a,enabled:e&&k.length>0&&M.ok,pageSize:Math.max(1,k.length),filter:M.ok?M.node:void 0,expand:w}),P=(0,q.useMemo)(()=>{let e=new Map;for(let t of j.records)e.set(String(UM(t,s)),t);return e},[j.records,s]),[F,I]=(0,q.useState)([]),te=(0,q.useRef)(!1),ne=(0,q.useRef)(!1);(0,q.useEffect)(()=>{e||(te.current=!1,ne.current=!1,I([]))},[e]),(0,q.useEffect)(()=>{if(!e||te.current)return;if(A.length===0){te.current=!0;return}if(j.loading){ne.current=!0;return}if(!ne.current)return;let t=A.map(e=>P.get(String(e))).filter(Boolean);I(t),te.current=!0},[e,A,j.loading,P]);let re=(0,q.useMemo)(()=>new Set(F.map(e=>String(UM(e,s)))),[F,s]),L=(0,q.useCallback)((e,n)=>{g(r?e:e[0]??null),_?.(n),e.forEach(e=>QM(a,e)),t(!1)},[r,a,g,_,t]),R=(0,q.useCallback)(e=>{g(e.map(e=>UM(e,s))),_?.(e)},[g,_,s]),z=(0,q.useCallback)(e=>{let t=UM(e,s);if(!r){L([t],[e]);return}let n=String(t),i=F.some(e=>String(UM(e,s))===n),o=i?F.filter(e=>String(UM(e,s))!==n):[...F,e];I(o),v&&(i||QM(a,t),R(o))},[r,s,L,F,v,a,R]),B=(0,q.useCallback)(e=>{let t=String(e),n=F.filter(e=>String(UM(e,s))!==t);I(n),v&&R(n)},[s,F,v,R]),ie=(0,q.useCallback)(()=>{L(F.map(e=>UM(e,s)),F)},[L,F,s]),V=O.search.trim().length>0,ae=(0,q.useMemo)(()=>{if(V)return[];let e=new Map(ee.records.map(e=>[String(UM(e,s)),e]));return k.map(t=>e.get(String(t))).filter(Boolean)},[V,k,ee.records,s]),H=(0,q.useMemo)(()=>{if(V)return O.records;let e=new Set(k.map(String));return O.records.filter(t=>!e.has(String(UM(t,s))))},[V,O.records,k,s]),oe=(0,q.useMemo)(()=>[...ae,...H],[ae,H]),[U,W]=(0,q.useState)(-1),G=(0,q.useMemo)(()=>O.records.map(e=>String(UM(e,s))).join(`\0`),[O.records,s]),se=`${O.search}\u0000${G}`,[ce,le]=(0,q.useState)(se);ce!==se&&(le(se),W(-1)),(0,q.useEffect)(()=>{W(e=>e>=oe.length?oe.length-1:e)},[oe.length]);let ue=(0,q.useCallback)(e=>{e.key===`ArrowDown`?(e.preventDefault(),W(e=>oe.length?Math.min(oe.length-1,e+1):-1)):e.key===`ArrowUp`?(e.preventDefault(),W(e=>Math.max(0,e-1))):e.key===`Enter`?U>=0&&U<oe.length&&(e.preventDefault(),z(oe[U])):e.key===`Backspace`&&O.search.length===0&&r&&F.length>0&&B(UM(F[F.length-1],s))},[oe,U,z,O.search,r,F,B,s]),de=O.error??N?.message??null,fe=O.loading&&!de&&O.records.length===0&&ae.length===0,pe=O.loading&&!fe,me=!O.loading&&!de&&H.length===0&&ae.length===0,he=(e,t)=>{let n=UM(e,s);return(0,J.jsx)(KM,{record:e,displayField:o,nameFields:D,subtitleFields:T,avatarField:E,selected:re.has(String(n)),active:t===U,highlightQuery:O.search,onSelect:z},String(n))},ge=n||b(`lookup.selectRecord`),K=(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(`div`,{className:`relative`,children:[(0,J.jsx)(la,{className:`pointer-events-none absolute left-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground`,"aria-hidden":!0}),(0,J.jsx)(Pv,{autoFocus:!x,value:O.search,onChange:e=>O.setSearch(e.target.value),onKeyDown:ue,placeholder:b(`table.search`),className:`px-8`,role:`combobox`,"aria-expanded":!0,"aria-controls":`people-picker-list`,"data-testid":`people-picker-search`}),O.loading&&(0,J.jsx)(Ji,{className:`pointer-events-none absolute right-2.5 top-1/2 size-4 -translate-y-1/2 animate-spin text-muted-foreground`,"aria-hidden":!0})]}),(0,J.jsx)(gy,{className:`min-h-0 flex-1`,"data-testid":`people-picker-list`,children:(0,J.jsx)(`div`,{id:`people-picker-list`,role:`listbox`,"aria-busy":O.loading,className:Y(`flex flex-col gap-0.5 pr-2 transition-opacity`,pe&&`opacity-70`),children:de?(0,J.jsxs)(`div`,{className:`flex flex-col items-center gap-2 py-8 text-center text-sm text-muted-foreground`,"data-testid":`people-picker-error`,children:[(0,J.jsx)(xi,{className:`size-5 text-destructive`,"aria-hidden":!0}),(0,J.jsx)(`span`,{className:`max-w-xs`,children:de}),O.error?(0,J.jsx)(X,{type:`button`,variant:`outline`,size:`sm`,onClick:O.refetch,children:b(`lookup.retry`)}):null]}):fe?Array.from({length:eN}).map((e,t)=>(0,J.jsxs)(`div`,{className:`flex items-center gap-3 px-2 py-1.5`,children:[(0,J.jsx)(Hy,{className:`size-9 shrink-0 rounded-full`}),(0,J.jsxs)(`div`,{className:`flex-1 space-y-1.5`,children:[(0,J.jsx)(Hy,{className:`h-3 w-1/3`}),(0,J.jsx)(Hy,{className:`h-2.5 w-1/2`})]})]},t)):(0,J.jsxs)(J.Fragment,{children:[ae.length>0&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`div`,{className:`px-2 py-1 text-xs font-medium text-muted-foreground`,children:b(`lookup.recentlyUsed`)}),ae.map((e,t)=>he(e,t)),H.length>0&&(0,J.jsxs)(`div`,{className:`mt-1 flex items-center gap-1.5 px-2 py-1 text-xs font-medium text-muted-foreground`,children:[(0,J.jsx)(`span`,{children:b(`lookup.allResults`)}),(0,J.jsxs)(`span`,{className:`font-normal opacity-70`,children:[`· `,O.total]})]})]}),H.map((e,t)=>he(e,ae.length+t)),me&&(0,J.jsx)(`div`,{className:`py-8 text-center text-sm text-muted-foreground`,children:b(`lookup.noRecords`)})]})})}),r&&!v&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(qM,{records:F,onRemove:B,onClear:()=>I([]),clearLabel:b(`lookup.clear`),displayField:o,nameFields:D,avatarField:E,idField:s,label:b(`table.selected`,{count:F.length}),className:Y(`border-t pt-3`)}),(0,J.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,J.jsx)(X,{type:`button`,variant:`outline`,onClick:()=>t(!1),children:b(`common.cancel`)}),(0,J.jsx)(X,{type:`button`,onClick:ie,children:b(`common.confirm`)})]})]})]});return v?x?(0,J.jsxs)(Oy,{open:e,onOpenChange:t,children:[(0,J.jsx)(ky,{asChild:!0,children:y}),(0,J.jsxs)(Py,{side:`bottom`,className:`flex h-[85vh] flex-col gap-3`,"data-testid":`people-picker-sheet`,children:[(0,J.jsx)(Fy,{className:`text-left`,children:(0,J.jsx)(Ly,{children:ge})}),K]})]}):(0,J.jsxs)(uy,{open:e,onOpenChange:t,children:[(0,J.jsx)(dy,{asChild:!0,children:y}),(0,J.jsx)(fy,{align:`start`,className:`flex max-h-[min(28rem,60vh)] w-[var(--radix-popover-trigger-width)] min-w-72 flex-col gap-3 p-3`,"data-testid":`people-picker-inline`,children:K})]}):x?(0,J.jsx)(Oy,{open:e,onOpenChange:t,children:(0,J.jsxs)(Py,{side:`bottom`,className:`flex h-[85vh] flex-col gap-3`,"data-testid":`people-picker-sheet`,children:[(0,J.jsx)(Fy,{className:`text-left`,children:(0,J.jsx)(Ly,{children:ge})}),K]})}):(0,J.jsx)(im,{open:e,onOpenChange:t,children:(0,J.jsxs)(cm,{className:`flex max-h-[80vh] flex-col gap-3 sm:max-w-lg`,"data-testid":`people-picker-dialog`,children:[(0,J.jsx)(lm,{children:(0,J.jsx)(dm,{children:ge})}),K]})})}var nN=new Set([`json`,`object`,`grid`,`html`,`richtext`,`markdown`,`code`,`image`,`file`,`avatar`,`vector`,`location`,`geometry`,`textarea`,`secret`,`password`,`encrypted`]);function rN(e){let t=new Set,n=[];for(let r of e)t.has(r)||(t.add(r),n.push(r));return n}function iN(e,{displayField:t,max:n=4}){let r=e?.fields??{},i=e=>r[e]??{},a=e=>{let t=i(e);return{field:e,...t.label?{label:t.label}:{},...t.type?{type:t.type}:{}}};if(Object.keys(r).length===0)return[];let o=e=>!Array.isArray(e)||e.length===0?null:rN([t,...e.filter(e=>typeof e==`string`&&e.length>0).filter(e=>e!==t)]).slice(0,n).map(a);return o(e?.highlightFields)||o(e?.displayFields)||rN([t,...Object.keys(r).filter(e=>{if(e===t)return!1;let n=i(e);return!(Xe(e,n)||n.hidden||n.type&&nN.has(n.type))})]).slice(0,n).map(a)}var aN=t({LookupField:()=>_N}),oN=50,sN=z,cN=/^(sys_|cloud_|ai_)/,lN=new Set([`user`,`users`]);function uN(e){return!!e&&!cN.test(e)&&!lN.has(e)}var dN=`name`;function fN(e,t,n,r,i,a,o){let s=pN(e,n),c=Ae(e,a,o,[n]),l;if(i){let n=j(i,c,{titleField:t}),r=e?.id??e?._id;n===`Untitled`||r!=null&&n===`Record #${r}`||(l=n)}let u=l??c[t??dN]??c.label??c.name??c.full_name??c.title??c.subject??c.externalId??String(s),d=r?e[r]:void 0,f={value:s,label:String(u),description:d,...e};return c===e?f:{...f,label:String(u)}}function pN(e,t){return e[t]??e.id??e._id??e.externalId}function mN(e,t,n){let r=new Map(e.map(e=>[pN(e,n),e]));for(let e of t)r.set(pN(e,n),e);return Array.from(r.values())}function hN(e){if(typeof e!=`string`)return null;let t=e.trim();if(!t.startsWith(`{`)||!t.endsWith(`}`))return null;try{let e=JSON.parse(t);return e&&typeof e==`object`&&!Array.isArray(e)?e:null}catch{return null}}function gN(e){return{text:`text`,number:`number`,currency:`number`,percent:`number`,select:`select`,status:`select`,date:`date`,datetime:`date`,boolean:`boolean`}[e]}function _N({value:e,onChange:t,field:n,readonly:r,error:i,...a}){let[o,s]=(0,q.useState)(!1),{t:c}=kj(),{translateOptions:l}=St(),u=Ct(),d=q.useId(),[f,p]=(0,q.useState)(null),[m,h]=(0,q.useState)([]),[g,_]=(0,q.useState)([]),[v,y]=(0,q.useState)(()=>new Set),[b,S]=(0,q.useState)(-1),C=(0,q.useRef)(null),w=n,T=w?.field,E=T&&typeof T==`object`&&(`reference`in T||`type`in T)?T:w,D=E?.options||[],O=E?.multiple||!1,k=E?.displayField||E?.reference_field||void 0,A=k||dN,j=E?.descriptionField,M=E?.idField||`id`,N=E?.reference,ee=E?.allow_create??E?.allowCreate,P=ee==null?uN(N):!!ee,F=E?.lookup_columns??E?.lookupColumns,I=E?.lookup_page_size??E?.lookupPageSize,te=E?.lookupFilters,ne=E?.picker,re=E?.subtitle,L=E?.avatar_field??E?.avatarField??`image`,R=E,z=(0,q.useMemo)(()=>{let e=R?.dependsOn;return!e||!Array.isArray(e)?[]:e.map(e=>typeof e==`string`?{field:e,param:e}:{field:e.field,param:e.param??e.field})},[R?.dependsOn]),B=a.dependsOnLabels,ie=(0,q.useMemo)(()=>z.map(e=>B?.[e.field]||e.field).join(c(`validation.formInvalidJoiner`)),[z,B,c]),V=a.dependentValues,ae=(0,q.useContext)(sN)?.dataSource??null,H=a.dataSource??w?.dataSource??E?.dataSource??ae,oe=(0,q.useMemo)(()=>V??{},[V]),U=(0,q.useMemo)(()=>z.length!==0&&z.some(({field:e})=>{let t=oe[e];return t==null||t===``||Array.isArray(t)&&t.length===0}),[z,oe]),W=H!=null&&typeof H.find==`function`&&!!N,[G,se]=(0,q.useState)(null);(0,q.useEffect)(()=>{if(!H||!N)return;let e=H.getObjectSchema;if(typeof e!=`function`)return;let t=!0;return Promise.resolve(e.call(H,N)).then(e=>{t&&se(e)}).catch(()=>{}),()=>{t=!1}},[H,N]);let ce=(0,q.useMemo)(()=>{if(F&&F.length>0)return F;let e=iN(G,{displayField:A});return e.length>0?e:void 0},[F,G,A]),le=(0,q.useMemo)(()=>{if(j)return j;let e=ce?.find(e=>(typeof e==`string`?e:e.field)!==A);if(e)return typeof e==`string`?e:e.field},[j,ce,A]),ue=(0,q.useMemo)(()=>{let e=[],t=new Set([A]);j&&(e.push({field:j}),t.add(j));for(let n of ce??[]){let r=wM(n);t.has(r.field)||(t.add(r.field),e.push(r))}return e},[j,ce,A]),de=(0,q.useMemo)(()=>DM(ue,G?.fields,N??``,l),[ue,G,N,l]),fe=MA(),pe=(0,q.useMemo)(()=>{if(ue.length===0)return[];let e=x(G?.fields,ue);return!fe.isLoaded||!N?e:e.filter(e=>fe.checkField(N,e,`read`))},[G,ue,fe,N]),me=(0,q.useMemo)(()=>ue.filter(e=>!fe.isLoaded||!N||e.field===M||fe.checkField(N,e.field,`read`)),[ue,fe,N,M]),he=(0,q.useMemo)(()=>{if(!ce)return;let e=[];for(let t of ce)if(typeof t==`object`&&t.type){let n=gN(t.type);n&&e.push({field:t.field,label:t.label,type:n})}return e.length>0?e:void 0},[ce]),ge=a.onCreateNew??w?.onCreateNew,[K,_e]=(0,q.useState)(!1),ve=(0,q.useMemo)(()=>{let e={};for(let{field:t,param:n}of z){let r=oe[t];r!=null&&r!==``&&(e[n]=typeof r==`number`?r:String(r))}return Object.keys(e).length>0?e:void 0},[z,oe]),ye=(0,q.useMemo)(()=>{let e={...te&&te.length>0?MM(te):{},...ve??{}};return Object.keys(e).length>0?e:void 0},[ve,te]),be=CM({dataSource:H,objectName:N,enabled:o&&W&&!U,pageSize:oN,filter:ye,expand:pe}),xe=be.search,Se=be.loading,we=be.total,Te=be.error??f,Ee=(0,q.useMemo)(()=>be.records.map(e=>fN(ft(e,G?.fields),k,M,le,G,fe,N)),[be.records,k,M,le,G,fe,N]),De=W?Ee:D,Oe=(0,q.useMemo)(()=>{if(W||!xe)return De;let e=xe.toLowerCase();return De.filter(t=>t.label.toLowerCase().includes(e)||t.description&&t.description.toLowerCase().includes(e))},[W,De,xe]);(0,q.useEffect)(()=>{S(-1)},[Oe.length]),(0,q.useEffect)(()=>{o||S(-1)},[o]);let ke=(0,q.useCallback)(e=>be.setSearch(e),[be.setSearch]);(0,q.useEffect)(()=>{if(!W||!H||!N)return;let t=(O?Array.isArray(e)?e:[]:e!=null&&e!==``?[e]:[]).filter(e=>e!=null&&e!==``&&typeof e!=`object`&&!hN(e));if(!t.length)return;let n=t.filter(e=>!Ne(e));if(!n.length)return;let r=!1;return(async()=>{try{let e=[];if(n.length===1){let t=n[0];if(typeof H.findOne==`function`&&M===`id`){let n=await H.findOne(N,t);n&&e.push(n)}else{let n=await H.find(N,{$filter:{[M]:t},$top:1}),r=n?.data??n??[];r[0]&&e.push(r[0])}}else{let t=[];for(let e=0;e<n.length;e+=oN)t.push(n.slice(e,e+oN));let r=await Promise.all(t.map(e=>H.find(N,{$filter:{[M]:{$in:e}},$top:e.length})));for(let t of r){let n=t?.data??t??[];if(Array.isArray(n))for(let t of n)e.push(t)}}!r&&e.length&&_(t=>mN(t,e,M))}catch{}finally{r||y(e=>{let t=new Set(e);for(let e of n)t.add(String(e));return t})}})(),()=>{r=!0}},[e,W,N,M,O]);let[je,Me]=(0,q.useMemo)(()=>{let e=e=>fN(e,k,M,le,G,fe,N);return[m.map(e),g.map(e)]},[m,g,k,M,le,G,fe,N]),Ne=(0,q.useCallback)(e=>D.find(t=>t.value===e)??Ee.find(t=>t.value===e)??je.find(t=>t.value===e)??Me.find(t=>t.value===e),[D,Ee,je,Me]),Pe=(0,q.useCallback)(e=>{let t=String(e);return D.find(e=>String(e.value)===t)??Ee.find(e=>String(e.value)===t)??je.find(e=>String(e.value)===t)??Me.find(e=>String(e.value)===t)},[D,Ee,je,Me]),Fe=(0,q.useCallback)(e=>{let t=typeof e==`object`&&e?e:hN(e);return t?t[M]??t.id??t._id??t.externalId:e},[M]),Ie=(0,q.useMemo)(()=>O?Array.isArray(e)?e.map(Fe):[]:Fe(e),[O,e,Fe]),Le=(0,q.useCallback)(e=>{if(e==null||e===``)return;let t=typeof e==`object`?e:hN(e);return t?fN(t,k,M,le,G,fe,N):Ne(e)??Pe(e)},[Ne,Pe,k,M,le,G,fe,N]),Re=(0,q.useMemo)(()=>W?(O?Array.isArray(e)?e:[]:e!=null&&e!==``?[e]:[]).some(e=>e!=null&&e!==``&&typeof e!=`object`&&!hN(e)&&!Ne(e)&&!Pe(e)&&!v.has(String(e))):!1,[W,O,e,Ne,Pe,v]),ze=O?(Array.isArray(e)?e:[]).filter(e=>e!=null&&e!==``).length:+(e!=null&&e!==``),Be=O?(Array.isArray(e)?e:[]).map(Le).filter(Boolean):e?[Le(e)].filter(Boolean):[],Ve=a.onSelectRecord,He=(0,q.useCallback)((n,r)=>{if(r&&n&&n.value!=null&&h(e=>mN(e,[r],M)),O){let r=(Array.isArray(e)?e:[]).map(Fe);r.includes(n.value)?t(r.filter(e=>e!==n.value)):(N&&QM(N,n.value),t([...r,n.value]))}else N&&QM(N,n.value),Ve?Ve(n):t(n.value),s(!1)},[O,e,t,Ve,N,Fe,M]),Ue=n=>{t(O?(Array.isArray(e)?e:[]).map(Fe).filter(e=>e!==n):null)},We=(0,q.useCallback)(e=>{N&&e.forEach(e=>QM(N,pN(e,M))),h(e)},[M,N]),[Ge,Ke]=(0,q.useState)([]),Je=pe.join(`,`);(0,q.useEffect)(()=>{if(!o||!W||!H||!N||xe)return;if(U){Ke([]);return}let e=ZM(N);if(!e.length){Ke([]);return}let t=!1;return(async()=>{try{let n={[M]:{$in:e}},r=await H.find(N,{$filter:ye?qe(ye,n):n,$top:e.length,...pe.length>0?{$expand:pe}:{}}),i=r?.data??r??[],a=new Map;if(Array.isArray(i))for(let e of i){let t=ft(e,G?.fields),n=t?.[M]??t?.id??t?._id;n!=null&&a.set(String(n),e)}let o=e.map(e=>a.get(String(e))).filter(Boolean);t||Ke(o)}catch{t||Ke([])}})(),()=>{t=!0}},[o,W,N,xe,U,ye,M,Je]);let Ye=(0,q.useMemo)(()=>Ge.map(e=>fN(ft(e,G?.fields),k,M,le,G,fe,N)),[Ge,k,M,le,G,fe,N]),Xe=(0,q.useMemo)(()=>{let e=new Map;for(let t of[...Ge,...be.records]){let n=ft(t,G?.fields),r=n?.[M]??n?.id??n?._id??n?.externalId;r!=null&&!e.has(String(r))&&e.set(String(r),t)}return e},[Ge,be.records,G,M]),Qe=(0,q.useCallback)(e=>{let t=Xe.get(String(e.value));He(e,t?ft(t,G?.fields):void 0)},[Xe,G,He]),$e=!xe&&W?Ye.length:0,et=(0,q.useMemo)(()=>{if(xe||!W||Ye.length===0)return Oe;let e=new Set(Ye.map(e=>e.value));return[...Ye,...Oe.filter(t=>!e.has(t.value))]},[xe,W,Ye,Oe]);(0,q.useEffect)(()=>{S(-1)},[et.length]);let[tt,nt]=(0,q.useState)(!1),{execute:rt}=Ce(),it=Ze(),at=!!ge||P&&(it||W),ot=(0,q.useCallback)(async e=>{let t=(e||``).trim();if(ge){ge(t),s(!1);return}if(P&&N){if(p(null),it){s(!1),await new Promise(e=>setTimeout(e,0));let e=await rt({type:`modal`,modal:{objectName:N,mode:`create`}});if(e?.success&&e.data){let t=fN(e.data,k,M,le,G,fe,N);He(t,e.data);return}if(!(e?.success&&e.modal))return}if(H&&t){nt(!0);try{let e=await H.create(N,{[A]:t}),n=fN(e,k,M,le,G,fe,N);He(n,e)}catch(e){p(e instanceof Error?e.message:String(e))}finally{nt(!1)}}}},[ge,P,N,it,rt,H,A,k,M,le,G,He,fe]),st=(0,q.useCallback)(e=>{let t=Xe.get(String(e.value)),n=t?{...e,...t}:e,r=me.filter(e=>{let t=n[e.field];return t!=null&&t!==``});return r.length===0?null:r.map((e,t)=>(0,J.jsxs)(q.Fragment,{children:[t>0&&(0,J.jsx)(`span`,{"aria-hidden":`true`,className:`shrink-0 opacity-60`,children:`·`}),(0,J.jsxs)(`span`,{className:`flex min-w-0 items-center gap-1 truncate`,children:[(0,J.jsx)(`span`,{className:`shrink-0 opacity-70`,children:`${e.label||TM(e.field)}:`}),(0,J.jsx)(`span`,{className:`min-w-0 truncate`,"data-lookup-preview":e.field,children:OM(n,e,{descriptors:de,cellRenderer:gj(),displayLocale:u})})]})]},e.field))},[Xe,me,de,u]),ct=(0,q.useCallback)(e=>{e.key===`ArrowDown`?(e.preventDefault(),S(e=>e<et.length-1?e+1:e)):e.key===`ArrowUp`?(e.preventDefault(),S(e=>e>0?e-1:0)):e.key===`Enter`&&(e.preventDefault(),b>=0&&b<et.length&&Qe(et[b]))},[et,b,Qe]);if((0,q.useEffect)(()=>{b>=0&&C.current&&C.current.querySelector(`[data-lookup-index="${b}"]`)?.scrollIntoView({block:`nearest`})},[b]),r)return Be.length?O?(0,J.jsx)(`div`,{className:`flex flex-wrap gap-1`,children:Be.map((e,t)=>(0,J.jsx)(ds,{variant:`outline`,children:e?.label||e?.[A]},t))}):(0,J.jsx)(`span`,{className:`text-sm`,children:Be[0]?.label||Be[0]?.[A]}):Re?(0,J.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 text-sm text-muted-foreground`,"data-testid":`lookup-hydrating`,children:[(0,J.jsx)(Ji,{className:`size-3.5 animate-spin`}),O?c(`table.selected`,{count:ze}):c(`lookup.loading`)]}):(0,J.jsx)($,{});let lt=!!a.compact,ut=Be[0]?.label||Be[0]?.[A],{name:dt,...pt}=xj(a),mt=(0,J.jsxs)(X,{...pt,variant:`outline`,className:Y(`min-w-0 max-w-full flex-1 justify-start text-left font-normal`,lt&&`h-8 rounded-none border-0 bg-transparent px-2 shadow-none focus-visible:ring-1 focus-visible:ring-ring/60`),type:`button`,disabled:U||a.disabled,"data-testid":U?`lookup-trigger-gated`:a.name||w?.name?`lookup-trigger-${a.name||w.name}`:`lookup-trigger`,title:U?c(`lookup.selectFirst`,{fields:ie}):void 0,"aria-invalid":!!i,children:[Re?(0,J.jsx)(Ji,{className:Y(`size-4 shrink-0 animate-spin text-muted-foreground`,lt?`mr-1.5`:`mr-2`),"data-testid":`lookup-hydrating`}):(0,J.jsx)(la,{className:Y(`size-4 shrink-0 text-muted-foreground`,lt?`mr-1.5`:`mr-2`)}),(0,J.jsx)(`span`,{className:Y(`truncate`,lt&&Be.length===0&&`text-muted-foreground`),children:U?c(`lookup.selectFirst`,{fields:ie}):Re?O?c(`table.selected`,{count:ze}):c(`lookup.loading`):lt&&!O&&Be.length>0?ut:Be.length===0?w?.placeholder||c(`common.select`):O?c(`table.selected`,{count:Be.length}):c(`common.select`)})]}),ht=!a.disabled,gt=e=>{let t=Ae(e,fe,N,[M]),n=t?.[L]||t?.image;return n?String(n):void 0};return(0,J.jsxs)(`div`,{className:lt?``:`space-y-2`,children:[Be.length>0&&!lt&&(0,J.jsx)(`div`,{className:`flex flex-wrap gap-1`,children:Be.map((e,t)=>{let n=e?.label||e?.[A];if(ne===`search`){let r=gt(e);return(0,J.jsxs)(`span`,{"data-testid":`people-field-chip`,className:`inline-flex items-center gap-1.5 rounded-full border bg-background py-0.5 pl-0.5 pr-1.5 text-sm`,children:[(0,J.jsxs)(ss,{className:`size-6 shrink-0`,children:[r&&(0,J.jsx)(cs,{src:r,alt:String(n||``)}),(0,J.jsx)(ls,{className:`text-[10px]`,children:BM(String(n||``))})]}),(0,J.jsx)(`span`,{className:`max-w-[10rem] truncate`,children:n}),ht&&(0,J.jsx)(`button`,{onClick:()=>Ue(e?.value),className:`rounded-full p-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-foreground`,type:`button`,"aria-label":c(`lookup.remove`,{label:n}),children:(0,J.jsx)(Ta,{className:`size-3`})})]},t)}return(0,J.jsxs)(ds,{variant:`outline`,className:`gap-1`,children:[n,ht&&(0,J.jsx)(`button`,{onClick:()=>Ue(e?.value),className:`ml-1 hover:text-destructive`,type:`button`,"aria-label":c(`lookup.remove`,{label:n}),children:(0,J.jsx)(Ta,{className:`size-3`})})]},t)})}),ne===`search`&&W&&H&&N?(0,J.jsx)(tN,{inline:!0,trigger:mt,open:K,onOpenChange:_e,title:w?.label||c(`common.select`),multiple:O,dataSource:H,objectName:N,displayField:A,idField:M,subtitleFields:re,avatarField:L,pageSize:I,value:Ie,onSelect:t,onSelectRecords:We,lookupFilters:te,baseFilter:ve}):(0,J.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,J.jsxs)(uy,{open:o,onOpenChange:e=>{U||s(e)},children:[(0,J.jsx)(dy,{asChild:!0,children:mt}),(0,J.jsxs)(fy,{className:`w-[var(--radix-popover-trigger-width)] p-0`,align:`start`,children:[(0,J.jsx)(`div`,{className:`p-2`,children:(0,J.jsxs)(`div`,{className:`relative`,children:[(0,J.jsx)(la,{className:`absolute left-3 top-1/2 -translate-y-1/2 size-4 text-muted-foreground`}),(0,J.jsx)(Pv,{placeholder:c(`table.search`),value:xe,onChange:e=>ke(e.target.value),onKeyDown:ct,className:`w-full pl-9 h-8 text-sm`,role:`combobox`,"aria-autocomplete":`list`,"aria-controls":d,"aria-expanded":o,"aria-activedescendant":b>=0?`${d}-opt-${b}`:void 0}),Se&&(0,J.jsx)(Ji,{className:`absolute right-3 top-1/2 -translate-y-1/2 size-4 animate-spin text-muted-foreground`,"data-testid":`lookup-loading`})]})}),Te&&(0,J.jsxs)(`div`,{className:`flex flex-col items-center gap-2 py-4 px-2`,role:`alert`,children:[(0,J.jsx)(xi,{className:`size-5 text-destructive`}),(0,J.jsx)(`p`,{className:`text-sm text-destructive`,children:Te}),(0,J.jsx)(X,{variant:`outline`,size:`sm`,onClick:()=>be.refetch(),type:`button`,children:c(`lookup.retry`)})]}),Se&&Oe.length===0&&!Te&&(0,J.jsxs)(`div`,{className:`flex flex-col items-center gap-2 py-6`,role:`status`,"aria-live":`polite`,children:[(0,J.jsx)(Ji,{className:`size-6 animate-spin text-muted-foreground`}),(0,J.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:c(`lookup.loading`)})]}),!Te&&!(Se&&Oe.length===0)&&(0,J.jsx)(`div`,{ref:C,className:`max-h-64 overflow-y-auto px-1 pb-1`,role:`listbox`,id:d,children:et.length===0?(0,J.jsxs)(`div`,{className:`py-4 text-center`,children:[(0,J.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:c(`lookup.noOptions`)}),at&&(0,J.jsxs)(X,{variant:`ghost`,size:`sm`,className:`mt-2 gap-1`,type:`button`,disabled:tt,onClick:()=>ot(xe),children:[tt?(0,J.jsx)(Ji,{className:`size-4 animate-spin`}):(0,J.jsx)(ta,{className:`size-4`}),xe?c(`lookup.createNamed`,{name:xe}):c(`lookup.createNew`)]})]}):(0,J.jsxs)(J.Fragment,{children:[et.map((t,n)=>{let r=O?(Array.isArray(e)?e:[]).map(Fe).includes(t.value):Fe(e)===t.value,i=n===b,a=$e>0&&n===0,o=$e>0&&n===$e;return(0,J.jsxs)(q.Fragment,{children:[a&&(0,J.jsx)(`div`,{className:`px-3 pt-2 pb-1 text-[11px] font-medium uppercase tracking-wide text-muted-foreground`,children:c(`lookup.recentlyUsed`)}),o&&(0,J.jsx)(`div`,{className:`mt-1 border-t px-3 pt-2 pb-1 text-[11px] font-medium uppercase tracking-wide text-muted-foreground`,children:c(`lookup.allResults`)}),(0,J.jsxs)(`button`,{id:`${d}-opt-${n}`,"data-lookup-index":n,role:`option`,"aria-selected":r,title:String(t.label??``),onClick:()=>Qe(t),className:`w-full text-left px-3 py-2 rounded-md text-sm hover:bg-accent flex items-center justify-between ${i?`bg-accent text-accent-foreground`:r?`bg-accent/50 text-accent-foreground`:``}`,type:`button`,children:[(0,J.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,J.jsx)(`span`,{className:`block truncate`,children:t.label}),(()=>{let e=st(t);return e?(0,J.jsx)(`span`,{className:`flex min-w-0 items-center gap-1 overflow-hidden text-xs text-muted-foreground`,"data-testid":`lookup-option-preview`,children:e}):null})()]}),r&&(0,J.jsx)(ds,{variant:`default`,className:`ml-2 shrink-0`,children:c(`lookup.selectedBadge`)})]})]},t.value)}),W&&we>Oe.length&&(0,J.jsx)(`p`,{className:`text-xs text-muted-foreground text-center py-2`,children:c(`lookup.showingResults`,{shown:Oe.length,total:we})}),W&&we>Oe.length&&(0,J.jsxs)(`button`,{type:`button`,className:`w-full text-center px-3 py-2 rounded-md text-sm font-medium text-primary hover:bg-accent flex items-center justify-center gap-1.5`,onClick:()=>{s(!1),_e(!0)},"data-testid":`show-all-results`,children:[(0,J.jsx)(_a,{className:`size-3.5`}),c(`lookup.showAllResults`,{count:we})]}),at&&(0,J.jsxs)(`button`,{type:`button`,className:`w-full text-left px-3 py-2 rounded-md text-sm hover:bg-accent flex items-center gap-1.5 text-muted-foreground`,disabled:tt,onClick:()=>ot(xe),children:[tt?(0,J.jsx)(Ji,{className:`size-3.5 animate-spin`}):(0,J.jsx)(ta,{className:`size-3.5`}),xe?c(`lookup.createNamed`,{name:xe}):c(`lookup.createNew`)]})]})})]})]}),W&&ne!==`search`&&(0,J.jsx)(X,{variant:`outline`,size:`icon`,className:`shrink-0`,type:`button`,disabled:U||a.disabled,onClick:()=>_e(!0),"aria-label":c(`lookup.browseAll`),title:U?c(`lookup.selectFirst`,{fields:ie}):c(`lookup.browseAll`),"data-testid":`browse-all-records`,children:(0,J.jsx)(_a,{className:`size-4`})})]}),W&&H&&N&&ne!==`search`&&(0,J.jsx)(IM,{open:K,onOpenChange:_e,title:w?.label||c(`common.select`),multiple:O,dataSource:H,objectName:N,columns:ce,displayField:k,objectSchema:G,idField:M,pageSize:I,value:Ie,onSelect:t,onSelectRecords:We,lookupFilters:te,baseFilter:ve,cellRenderer:gj(),fieldsMeta:G?.fields,filterColumns:he})]})}var vN=t({UserField:()=>bN});function yN(e){let t=Array.isArray(e)?e:[];return t.some(e=>e?.field===`banned`)?t:[...t,{field:`banned`,operator:`ne`,value:!0}]}function bN(e){let t=e.field,n=t?.field&&typeof t.field==`object`&&(`reference`in t.field||`type`in t.field),r=n?t.field:t,i={...r||{},reference:r?.reference||`sys_user`,displayField:r?.displayField||r?.reference_field||`name`,picker:r?.picker??`search`,subtitle:r?.subtitle??[`primary_business_unit_id.name`,`email`],avatar_field:r?.avatar_field??r?.avatarField??`image`,lookupFilters:yN(r?.lookupFilters)},a=n?{...t,field:i}:i;return(0,J.jsx)(_N,{...e,field:a})}var xN=t({ColorField:()=>SN});function SN({value:e,onChange:t,field:n,readonly:r,error:i,...a}){let o=n;return r?(0,J.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,J.jsx)(`div`,{className:`w-6 h-6 rounded border border-input`,style:{backgroundColor:e||`#000000`}}),(0,J.jsx)(`span`,{className:`text-sm`,children:e||(0,J.jsx)($,{})})]}):(0,J.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,J.jsx)(`input`,{type:`color`,value:e||`#000000`,onChange:e=>t(e.target.value),disabled:r||a.disabled,className:`w-10 h-10 rounded border border-input cursor-pointer`,"aria-invalid":!!i}),(0,J.jsx)(Pv,{...xj(a),type:`text`,value:e||``,onChange:e=>t(e.target.value),placeholder:o?.placeholder||`#000000`,disabled:r||a.disabled,className:a.className,pattern:`^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$`,"aria-invalid":!!i})]})}var CN=t({AddressField:()=>wN});function wN({value:e,onChange:t,field:n,readonly:r,error:i,...a}){let o=e||{},{id:s,"aria-labelledby":c,...l}=xj(a),u=Hj(a,`instead-of-the-inputs`),d=Hj(a,`above-the-inputs`),f=(0,q.useId)(),p=e=>`${f}-${e}`,{t:m}=kj(),h=Ct(),g=FA(o),_=(e,n)=>{let r={...o};delete r.zipCode,t({...r,...g?{postalCode:g}:null,[e]:n})};if(r){let e=zA(o,h);return e?(0,J.jsx)(`span`,{...u,className:`text-sm`,children:e}):(0,J.jsx)($,{...u})}return(0,J.jsxs)(`div`,{className:`space-y-3`,...d,children:[(0,J.jsxs)(`div`,{children:[(0,J.jsx)(Y_,{htmlFor:p(`street`),className:`text-xs`,children:m(`fields.address.street`)}),(0,J.jsx)(Pv,{...l,id:p(`street`),type:`text`,value:o.street||``,onChange:e=>_(`street`,e.target.value),disabled:r||a.disabled,className:a.className,"aria-invalid":!!i})]}),(0,J.jsxs)(`div`,{className:`grid grid-cols-2 gap-3`,children:[(0,J.jsxs)(`div`,{children:[(0,J.jsx)(Y_,{htmlFor:p(`city`),className:`text-xs`,children:m(`fields.address.city`)}),(0,J.jsx)(Pv,{id:p(`city`),type:`text`,value:o.city||``,onChange:e=>_(`city`,e.target.value),disabled:r||a.disabled,"aria-invalid":!!i})]}),(0,J.jsxs)(`div`,{children:[(0,J.jsx)(Y_,{htmlFor:p(`state`),className:`text-xs`,children:m(`fields.address.state`)}),(0,J.jsx)(Pv,{id:p(`state`),type:`text`,value:o.state||``,onChange:e=>_(`state`,e.target.value),disabled:r||a.disabled,"aria-invalid":!!i})]})]}),(0,J.jsxs)(`div`,{className:`grid grid-cols-2 gap-3`,children:[(0,J.jsxs)(`div`,{children:[(0,J.jsx)(Y_,{htmlFor:p(`postalCode`),className:`text-xs`,children:m(`fields.address.postalCode`)}),(0,J.jsx)(Pv,{id:p(`postalCode`),type:`text`,value:g||``,onChange:e=>_(`postalCode`,e.target.value),disabled:r||a.disabled,"aria-invalid":!!i})]}),(0,J.jsxs)(`div`,{children:[(0,J.jsx)(Y_,{htmlFor:p(`country`),className:`text-xs`,children:m(`fields.address.country`)}),(0,J.jsx)(Pv,{id:p(`country`),type:`text`,value:o.country||``,onChange:e=>_(`country`,e.target.value),disabled:r||a.disabled,"aria-invalid":!!i})]})]})]})}var TN=t({LocationField:()=>BN});p();function EN(e){if(!e||typeof e!=`object`||Array.isArray(e))return!1;let{lat:t,lng:n}=e;return DN(t)&&DN(n)}function DN(e){return typeof e==`number`&&Number.isFinite(e)}function ON(e){return l.safeParse(e).success}function kN(e,t,n){let r={lat:e,lng:t};return EN(n)?(DN(n.altitude)&&(r.altitude=n.altitude),DN(n.accuracy)&&(r.accuracy=n.accuracy),r):r}function AN(e){return EN(e)?`${e.lat}, ${e.lng}`:``}var jN=/^[+-]?(?:Infinity|(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?)$/,MN=[`latitude`,`longitude`];function NN(e){if(!e.trim())return{kind:`cleared`};let t=e.split(`,`).map(e=>e.trim());if(t.length!==2)return{kind:`unparsable`};let n=parseFloat(t[0]),r=parseFloat(t[1]);if(isNaN(n)||isNaN(r))return{kind:`unparsable`};let i=MN.map((e,n)=>({label:e,text:t[n]})).filter(e=>!jN.test(e.text));return i.length>0?{kind:`residue`,residue:i}:{kind:`pair`,lat:n,lng:r}}function PN(e,t){let n=NN(e);return n.kind===`cleared`?!EN(t):n.kind===`pair`&&EN(t)&&t.lat===n.lat&&t.lng===n.lng}function FN(e){return e(`fields.location.refusedFormat`)}function IN(e,t){let n=l.safeParse(t);return n.success?``:e(`fields.location.refusedRange`,{detail:n.error.issues.map(e=>`${e.path.join(`.`)||`value`}: ${e.message}`).join(`; `)})}function LN(e,t){let[n,r]=t.map(t=>({name:RN(e,t.label),text:t.text}));return r?e(`fields.location.refusedResidue`,{name:n.name,text:n.text,otherName:r.name,otherText:r.text}):e(`fields.location.refusedResidueOne`,{name:n.name,text:n.text})}function RN(e,t){return e(t===`latitude`?`fields.location.latitude`:`fields.location.longitude`)}function zN(e){return MN.map(t=>RN(e,t)).join(`, `)}function BN({value:e,onChange:t,field:n,readonly:r,error:i,...a}){let o=n,[s,c]=(0,q.useState)(()=>AN(e)),[l,u]=(0,q.useState)(null),{t:d}=kj(),f=(0,q.useRef)(e);if((0,q.useEffect)(()=>{Object.is(f.current,e)||(f.current=e,!l&&(PN(s,e)||c(AN(e))))},[e,s,l]),r)return(0,J.jsx)(`span`,{className:`text-sm`,children:AN(e)||(0,J.jsx)($,{})});let p=n=>{let r=n.target.value;c(r);let i=NN(r);if(i.kind===`cleared`){u(null),t(null);return}if(i.kind===`unparsable`){u(FN(d));return}if(i.kind===`residue`){u(LN(d,i.residue));return}let a=kN(i.lat,i.lng,e);if(ON(a)){u(null),t(a);return}u(IN(d,a))};return(0,J.jsxs)(`div`,{className:`space-y-1`,children:[(0,J.jsx)(Pv,{...xj(a),type:`text`,value:s,onChange:p,placeholder:o?.placeholder||zN(d),disabled:r||a.disabled,className:Y(l?`border-red-500 focus-visible:ring-red-500`:``,a.className),"aria-invalid":!!i||!!l}),l&&(0,J.jsx)(`p`,{className:`text-xs text-red-500`,children:l})]})}var VN=t({GeolocationField:()=>WN}),HN=e=>typeof e==`number`&&!Number.isNaN(e),UN=e=>HN(e.latitude)&&HN(e.longitude);function WN({value:e,onChange:t,field:n,readonly:r,error:i,...a}){let[o,s]=q.useState(!1),c=jj(`30.2741`),l=jj(`120.1551`),u=e||{},{id:d,"aria-labelledby":f,...p}=xj(a),m=Hj(a,`instead-of-the-inputs`),h=Hj(a,`above-the-inputs`),g=(0,q.useId)(),_=e=>`${g}-${e}`,v=(e,n)=>{t({...u,[e]:n?Number(n):null})},y=e=>{c.readBadInput(e.target),p.onBlur?.(e)},b=()=>{if(!navigator.geolocation){console.error(`Geolocation is not supported by this browser`);return}s(!0),navigator.geolocation.getCurrentPosition(e=>{t({latitude:e.coords.latitude,longitude:e.coords.longitude,accuracy:e.coords.accuracy}),s(!1)},e=>{console.error(`Error getting location:`,e.message),s(!1)},{enableHighAccuracy:!0,timeout:5e3,maximumAge:0})},x=e=>UN(e)?`${e.latitude.toFixed(6)}, ${e.longitude.toFixed(6)}`:``,S=()=>{if(!UN(u))return;let e=`https://www.google.com/maps?q=${u.latitude},${u.longitude}`;window.open(e,`_blank`)};if(r){let e=x(u);return(0,J.jsxs)(`div`,{...m,className:`flex items-center gap-2`,children:[(0,J.jsx)(Yi,{className:`w-4 h-4 text-muted-foreground`}),e?(0,J.jsx)(`span`,{className:`text-sm`,children:e}):(0,J.jsx)($,{}),UN(u)&&(0,J.jsx)(X,{type:`button`,variant:`link`,size:`sm`,onClick:S,className:`p-0 h-auto`,children:`View on map`})]})}return(0,J.jsxs)(`div`,{className:`space-y-3`,...h,children:[(0,J.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,J.jsxs)(X,{type:`button`,variant:`outline`,size:`sm`,onClick:b,disabled:r||o,children:[(0,J.jsx)(ki,{className:`w-4 h-4 mr-2`}),o?`Getting location...`:`Use Current Location`]}),UN(u)&&(0,J.jsxs)(X,{type:`button`,variant:`link`,size:`sm`,onClick:S,children:[(0,J.jsx)(Yi,{className:`w-4 h-4 mr-2`}),`View on map`]})]}),(0,J.jsxs)(`div`,{className:`grid grid-cols-2 gap-3`,children:[(0,J.jsxs)(`div`,{children:[(0,J.jsx)(Y_,{htmlFor:_(`latitude`),className:`text-xs`,children:`Latitude`}),(0,J.jsx)(Pv,{...p,id:_(`latitude`),type:`number`,value:u.latitude??``,onChange:e=>{c.readBadInput(e.target),v(`latitude`,e.target.value)},onBlur:y,placeholder:`37.7749`,disabled:r||a.disabled,step:`any`,className:Y(c.refusal?Nj:``,a.className),"aria-invalid":!!i||!!c.refusal}),(0,J.jsx)(Mj,{refusal:c.refusal})]}),(0,J.jsxs)(`div`,{children:[(0,J.jsx)(Y_,{htmlFor:_(`longitude`),className:`text-xs`,children:`Longitude`}),(0,J.jsx)(Pv,{id:_(`longitude`),type:`number`,value:u.longitude??``,onChange:e=>{l.readBadInput(e.target),v(`longitude`,e.target.value)},onBlur:e=>l.readBadInput(e.target),placeholder:`-122.4194`,disabled:r||a.disabled,step:`any`,className:l.refusal?Nj:void 0,"aria-invalid":!!i||!!l.refusal}),(0,J.jsx)(Mj,{refusal:l.refusal})]})]}),HN(u.accuracy)&&(0,J.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Accuracy: ±`,u.accuracy.toFixed(0),`m`]})]})}var GN=t({CodeField:()=>KN});function KN({value:e,onChange:t,field:n,readonly:r,error:i,...a}){let o=n,s=o?.language??`javascript`;return r?(0,J.jsx)(`pre`,{className:Y(`text-sm bg-muted p-2 rounded overflow-x-auto border`,a.className),children:(0,J.jsx)(`code`,{children:e||(0,J.jsx)($,{})})}):(0,J.jsx)(Gb,{...xj(a),value:e||``,onChange:e=>t(e.target.value),placeholder:o?.placeholder||`// Write ${s} code here...`,disabled:r||a.disabled,className:Y(`font-mono text-sm`,a.className),rows:12,spellCheck:!1,"aria-invalid":!!i})}var qN=t({QRCodeField:()=>JN});function JN({value:e,onChange:t,field:n,readonly:r,error:i,...a}){let[o,s]=q.useState(!1),c=n,l=e=>`https://api.qrserver.com/v1/create-qr-code/?size=200x200&data=${encodeURIComponent(e)}`,u=()=>{e&&navigator.clipboard.writeText(e)};return r?(0,J.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,J.jsx)(`span`,{className:`text-sm flex-1 truncate`,children:e||(0,J.jsx)($,{})}),e&&(0,J.jsxs)(X,{type:`button`,variant:`outline`,size:`sm`,onClick:()=>s(!o),children:[(0,J.jsx)(na,{className:`w-4 h-4 mr-2`}),o?`Hide`:`Show`,` QR`]})]}):(0,J.jsxs)(`div`,{className:`space-y-3`,children:[(0,J.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,J.jsx)(Pv,{...xj(a),type:`text`,value:e||``,onChange:e=>t(e.target.value),placeholder:c?.placeholder||`Enter text for QR code`,disabled:r||a.disabled,className:a.className,"aria-invalid":!!i}),e&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(X,{type:`button`,variant:`outline`,size:`sm`,onClick:u,children:(0,J.jsx)(Di,{className:`w-4 h-4`})}),(0,J.jsx)(X,{type:`button`,variant:`outline`,size:`sm`,onClick:()=>s(!o),children:(0,J.jsx)(na,{className:`w-4 h-4`})})]})]}),o&&e&&(0,J.jsx)(`div`,{className:`border rounded p-4 bg-white flex justify-center`,children:(0,J.jsx)(`img`,{src:l(e),alt:`QR Code`,className:`w-48 h-48`})}),e&&(0,J.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`QR code contains: `,e.length,` characters`]})]})}var YN={text:Tj,textarea:Oj,number:Fj,currency:Rj,percent:Vj,slider:Gj,progress:Gj,rating:qj,boolean:Yj,toggle:Yj,select:tM,status:tM,multiselect:$j,radio:iM,checkboxes:oM,tags:cM,date:dM,datetime:pM,time:hM,email:_M,phone:yM,url:xM,lookup:_N,master_detail:_N,user:bN,color:SN,address:wN,location:BN,geolocation:WN,code:KN,qrcode:JN},XN=new Set([`formula`,`summary`,`auto_number`,`file`,`image`,`avatar`,`signature`,`markdown`,`html`,`richtext`,`password`,`secret`,`object`,`grid`,`vector`,`object-ref`,`filter-condition`,`recipient-picker`]),ZN=new Set([`boolean`,`toggle`,`select`,`status`,`radio`,`rating`]);function QN(e){return e in YN||XN.has(e)?e:yj(e).replace(/^field:/,``)}function $N(e){return!e||v(e)?!1:QN(e)in YN}function eP(e){return e?v(e)?!0:XN.has(QN(e)):!1}var tP=new Set([`lookup`,`master_detail`,`user`]);function nP(e){let{field:t,value:n,onChange:r,readonly:i}=e;if(t?.type&&v(t.type))return ct(t.type),null;let a=t?.type?QN(t.type):void 0,o=a?YN[a]:void 0;if(!o)return null;let s=a&&tP.has(a)?{compact:!0}:{};return(0,J.jsx)(o,{...xj(e),...Cj(e),field:t,value:n,onChange:r,readonly:i,...s})}var rP=t({PasswordField:()=>iP});function iP({value:e,onChange:t,field:n,readonly:r,className:i,...a}){let[o,s]=(0,q.useState)(!1),c=n;if(r)return h($A(e))?(0,J.jsx)($,{}):(0,J.jsx)(`span`,{className:`text-sm`,children:`••••••••`});let l=xj(a);return(0,J.jsxs)(`div`,{className:`relative`,children:[(0,J.jsx)(Pv,{...l,type:o?`text`:`password`,value:e||``,onChange:e=>t(e.target.value),placeholder:c?.placeholder,disabled:r||l.disabled,className:`pr-10 ${i||``}`}),(0,J.jsx)(X,{type:`button`,variant:`ghost`,size:`sm`,className:`absolute right-0 top-0 h-full px-3 py-2 hover:bg-transparent`,onClick:()=>s(!o),tabIndex:-1,children:o?(0,J.jsx)(Fi,{className:`size-4 text-gray-500`}):(0,J.jsx)(Ii,{className:`size-4 text-gray-500`})})]})}var aP=t({RichTextField:()=>cP});function oP({value:e,onChange:t,formatLabel:n,hint:r,placeholder:i,rows:a,disabled:o,error:s,className:c,fullHeight:l,autoFocus:u,textareaTestId:d,overlay:f,counter:p,maxLength:m,describedBy:h,domProps:g,editorAria:_}){return(0,J.jsxs)(`div`,{className:Y(`space-y-2`,l&&`flex flex-col h-full`),children:[(0,J.jsxs)(`div`,{className:`flex items-center justify-between text-xs text-gray-500`,children:[(0,J.jsx)(`span`,{children:n}),(0,J.jsx)(`span`,{className:`italic`,children:r})]}),(0,J.jsxs)(`div`,{className:Y(`relative`,l&&`flex-1 min-h-0`),children:[(0,J.jsx)(Gb,{autoFocus:u,"data-testid":d,...g,value:e||``,onChange:e=>t(e.target.value),placeholder:i,disabled:o,rows:l?void 0:a,maxLength:m,className:Y(`font-mono`,l?`text-base h-full min-h-full resize-none`:`text-sm`,c),"aria-invalid":!!s,"aria-describedby":h,..._}),p,f]})]})}function sP(e){let t=e?.type,n=typeof t==`string`?t:``;return n.startsWith(`field:`)?n.slice(6):n}function cP({value:e,onChange:t,field:n,readonly:r,error:i,...a}){let{t:o}=wt(),s=sP(n),c=fj(s),l=(0,q.useId)(),u=`${l}-charcount`,d=`${l}-fullscreen-charcount`;if(r){let t=pj(s);return t?(0,J.jsx)(t,{value:e,field:n}):(0,J.jsx)(`div`,{className:`text-sm whitespace-pre-wrap break-words`,children:e||(0,J.jsx)($,{})})}let f=n,p=f?.rows||8,m=f?.maxLength,h=c??``,g=!!f?.mobile_fullscreen,_=xj(a),v=!!_.disabled,y=[_[`aria-describedby`],m?u:void 0].filter(Boolean).join(` `)||void 0,b=o(`fields.richText.format`,{format:h,defaultValue:`Format: ${h}`}),x=o(`fields.richText.basicEditorHint`,{defaultValue:`Rich text editor (basic)`}),S=f?.placeholder||o(`fields.richText.placeholder`,{defaultValue:`Enter text…`});return(0,J.jsx)(oP,{value:e,onChange:t,formatLabel:b,hint:x,placeholder:S,rows:p,disabled:r||v,error:i,className:_.className,maxLength:m,describedBy:y,domProps:_,counter:m?(0,J.jsx)(kw,{length:(e||``).length,maxLength:m,descriptionId:u,announceNearLimit:!0,className:`absolute bottom-2 right-2 text-xs text-gray-400`,testId:`richtext-character-count`}):null,overlay:g&&(0,J.jsx)(Ej,{value:e??``,onCommit:t,label:f?.label,testIdPrefix:`richtext`,disabled:v,error:i,footer:e=>m?(0,J.jsx)(kw,{length:e.length,maxLength:m,descriptionId:d,announceNearLimit:!1,className:`text-xs text-muted-foreground self-center`,testId:`richtext-fullscreen-character-count`}):null,children:(e,t,n,r)=>(0,J.jsx)(oP,{value:e,onChange:t,formatLabel:b,hint:x,placeholder:S,disabled:n,autoFocus:!0,fullHeight:!0,maxLength:m,describedBy:m?d:void 0,textareaTestId:`richtext-fullscreen-input`,editorAria:r})})})}function lP(e){if(Array.isArray(e))return e.map(e=>String(e)).filter(Boolean);if(typeof e==`string`){let t=e.trim();if(!t)return[];try{let e=JSON.parse(t);return Array.isArray(e)?e.map(e=>String(e)).filter(Boolean):[String(e)].filter(Boolean)}catch{return t.split(`,`).map(e=>e.trim()).filter(Boolean)}}return[]}var uP=[`platform`,`org`,`other`],dP=new Set([`manage_users`,`manage_org_users`,`manage_metadata`,`manage_org_presentation`,`manage_platform_settings`,`setup_access`,`setup_write`,`studio_access`,`manage_sharing`]);function fP({value:e,onChange:t,readonly:n,className:r,...i}){let{t:a}=kj(),o=q.useContext(z),s=i.dataSource??o?.dataSource??null,c=i.disabled,[l,u]=q.useState(null),d=q.useMemo(()=>lP(e),[e]);q.useEffect(()=>{if(!s||typeof s.find!=`function`)return;let e=!1;return(async()=>{try{let t=await s.find(`sys_capability`,{$filter:{active:!0},$top:500}),n=t?.data??t?.records??(Array.isArray(t)?t:[]);e||u(Array.isArray(n)?n:[])}catch{e||u([])}})(),()=>{e=!0}},[s]);let f=q.useCallback(e=>t(JSON.stringify(e)),[t]),p=q.useMemo(()=>{let e=new Map;for(let t of l??[])t?.name&&e.set(t.name,t);for(let t of d)e.has(t)||e.set(t,{name:t,label:t,scope:`other`});return e},[l,d]),m=e=>{let t=p.get(e)?.label||e,n=e.replace(/\./g,`_`);return dP.has(n)?a(`capability.label.${n}`,{defaultValue:t}):t},h=q.useMemo(()=>{let e=new Map;for(let t of p.values()){let n=uP.includes(t.scope)?t.scope:`other`,r=e.get(n)??[];r.push(t),e.set(n,r)}return uP.filter(t=>e.has(t)).map(t=>({scope:t,label:a(`capability.group.${t}`),items:(e.get(t)??[]).sort((e,t)=>(e.label||e.name).localeCompare(t.label||t.name))}))},[p,a]);if(n)return d.length===0?(0,J.jsx)($,{}):(0,J.jsx)(`div`,{className:`flex flex-wrap gap-1`,children:d.map(e=>(0,J.jsx)(ds,{variant:`outline`,title:p.get(e)?.description,children:m(e)},e))});let g=e=>{let t=d.includes(e)?d.filter(t=>t!==e):[...d,e];f(t)};return(0,J.jsxs)(`div`,{className:Y(`flex flex-col gap-3`,r),children:[l===null&&h.length===0&&(0,J.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:`Loading capabilities…`}),h.map(e=>(0,J.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,J.jsx)(`div`,{className:`text-xs font-medium uppercase tracking-wide text-muted-foreground`,children:e.label}),(0,J.jsx)(`div`,{className:`flex flex-wrap gap-1.5`,children:e.items.map(e=>{let t=d.includes(e.name);return(0,J.jsx)(`button`,{type:`button`,onClick:()=>g(e.name),disabled:c,"aria-pressed":t,title:e.description||void 0,className:Y(`rounded-full border px-3 py-1 text-sm transition-colors disabled:opacity-50`,t?`border-primary bg-primary text-primary-foreground`:`border-input bg-background text-foreground hover:bg-accent`),children:m(e.name)},e.name)})})]},e.scope))]})}var pP=t({ObjectRefField:()=>mP,default:()=>mP});function mP({value:e,onChange:t,readonly:n,className:r,error:i,...a}){let o=q.useContext(z),{t:s}=kj(),c=a.dataSource??o?.dataSource??null,l=a.disabled,[u,d]=q.useState(null);q.useEffect(()=>{if(!c)return;let e=!1;return(async()=>{try{let t=[];if(typeof c.getObjects==`function`)t=await c.getObjects()??[];else if(typeof c.find==`function`){let e=await c.find(`sys_metadata`,{$filter:{type:`object`},$top:1e3});t=(e?.data??e?.records??(Array.isArray(e)?e:[])).map(e=>({name:String(e?.name??``),label:e?.label==null?void 0:String(e.label)})).filter(e=>e.name)}e||d(t)}catch{e||d([])}})(),()=>{e=!0}},[c]);let f=q.useMemo(()=>{let t=(u??[]).map(e=>({value:e.name,label:e.label?`${e.label} (${e.name})`:e.name}));return e&&!t.some(t=>t.value===e)&&t.unshift({value:e,label:e}),t.sort((e,t)=>e.label.localeCompare(t.label))},[u,e]);if(n){if(!e)return(0,J.jsx)($,{});let t=f.find(t=>t.value===e)?.label??e;return(0,J.jsx)(`span`,{className:r,children:t})}let{name:p,...m}=xj(a);return(0,J.jsx)(AT,{...m,options:f,value:e??``,onValueChange:e=>t(e),placeholder:s(u===null?`fields.objectRef.loading`:`fields.objectRef.placeholder`),searchPlaceholder:s(`fields.objectRef.search`),emptyText:s(u===null?`common.loading`:`fields.objectRef.empty`),disabled:l,className:Y(`w-full`,r),"aria-invalid":!!i})}var hP=t({FILTER_CONDITION_EXTRA_OPERATORS:()=>_P,FilterConditionField:()=>IP,condToMongo:()=>OP,default:()=>IP,isMatchAllCriteria:()=>PP,kvToCondition:()=>MP}),gP={id:`root`,logic:`and`,conditions:[]},_P=[`exists`,`notExists`],vP=new Set([`object`,`vector`,`file`,`image`,`avatar`,`signature`,`richtext`,`html`,`markdown`,`location`,`grid`,`json`,`code`]);function yP(e){let t=e?.fields,n=Array.isArray(t)?t.map(e=>[e?.name,e]):t&&typeof t==`object`?Object.entries(t):[],r=[];for(let[e,t]of n){if(!e||!t||t.hidden)continue;let n=t.type;n&&vP.has(n)||r.push({value:e,label:t.label||e,type:n,options:Array.isArray(t.options)?t.options.map(e=>typeof e==`string`?{value:e,label:e}:{value:String(e?.value),label:String(e?.label??e?.value)}):void 0,referenceTo:t.reference})}return r}function bP(e,t){if(e==null)return e;if(t===`boolean`||t===`toggle`)return typeof e==`boolean`?e:e===`true`||e!==`false`&&e;if(t===`number`||t===`currency`||t===`percent`||t===`rating`||t===`slider`){let t=Number(e);return Number.isFinite(t)&&e!==``?t:e}return e}var xP=new Set([`contains`,`icontains`,`not_contains`,`starts_with`,`ends_with`]);function SP(e){return e==null||e===``}function CP(e){return Array.isArray(e)?e:typeof e==`string`?e.split(`,`).map(e=>e.trim()).filter(Boolean):e==null?[]:[e]}function wP(e){return{$or:[{[e]:{$in:[``]}},{[e]:{$null:!0}}]}}function TP(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function EP(e){if(!TP(e))return null;let t=Object.entries(e);if(t.length!==1||t[0][0].startsWith(`$`))return null;let[n,r]=t[0];if(!TP(r))return null;let i=Object.entries(r);return i.length===1?[n,i[0][0],i[0][1]]:null}function DP(e){if(!Array.isArray(e)||e.length!==2)return null;let t=EP(e[0]),n=EP(e[1]);if(!t||!n||t[0]!==n[0])return null;let[r,i,a]=t;return i===`$in`&&AP(a,[``])&&n[1]===`$null`&&n[2]===!0?r:null}function OP(e,t){let{field:n,operator:r,value:i}=e||{};if(!n||xP.has(r)&&SP(i))return null;let a=t(n),o=bP(i,a);switch(r){case`equals`:return{[n]:o};case`not_equals`:return{[n]:{$ne:o}};case`contains`:return{[n]:{$contains:i}};case`icontains`:return{[n]:{$icontains:i}};case`not_contains`:return{[n]:{$notContains:i}};case`starts_with`:return{[n]:{$startsWith:i}};case`ends_with`:return{[n]:{$endsWith:i}};case`is_empty`:return wP(n);case`is_not_empty`:return{[n]:{$nin:[``],$null:!1}};case`is_null`:return{[n]:{$null:!0}};case`is_not_null`:return{[n]:{$null:!1}};case`exists`:return{[n]:{$exists:!0}};case`notExists`:return{[n]:{$exists:!1}};case`greater_than`:case`after`:return{[n]:{$gt:o}};case`less_than`:case`before`:return{[n]:{$lt:o}};case`greater_than_or_equal`:return{[n]:{$gte:o}};case`less_than_or_equal`:return{[n]:{$lte:o}};case`between`:{let[e,t]=Array.isArray(i)?i:[void 0,void 0];return SP(e)||SP(t)?null:{[n]:{$gte:bP(e,a),$lte:bP(t,a)}}}case`in`:return{[n]:{$in:CP(i).map(e=>bP(e,a))}};case`not_in`:return{[n]:{$nin:CP(i).map(e=>bP(e,a))}};default:return{[n]:o}}}function kP(e,t){let n=(e?.conditions??[]).map(e=>OP(e,t)).filter(e=>!!e);if(n.length===0)return null;if(e.logic===`or`)return{$or:n};if(n.length===1)return n[0];let r=n.flatMap(e=>Object.keys(e));return new Set(r).size===r.length?Object.assign({},...n):{$and:n}}function AP(e,t){return Array.isArray(e)&&e.length===t.length&&e.every((e,n)=>e===t[n])}function jP(e){if(e==null||typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0)return``;try{return JSON.stringify(e)??``}catch{return`[unserialisable criteria]`}}function MP(e,t,n){if(e.startsWith(`$`)){let r=e===`$or`?DP(t):null;return r===null?null:{id:`c_${n}_${r}`,field:r,operator:`is_empty`,value:``}}let r=`c_${n}_${e}`;if(typeof t!=`object`||!t||Array.isArray(t))return{id:r,field:e,operator:`equals`,value:t};let i=Object.keys(t);if(i.length===1){let n=i[0],a=t[n];switch(n){case`$ne`:return{id:r,field:e,operator:`not_equals`,value:a};case`$contains`:return{id:r,field:e,operator:`contains`,value:a};case`$icontains`:return{id:r,field:e,operator:`icontains`,value:a};case`$notContains`:case`$ncontains`:return{id:r,field:e,operator:`not_contains`,value:a};case`$gt`:return{id:r,field:e,operator:`greater_than`,value:a};case`$lt`:return{id:r,field:e,operator:`less_than`,value:a};case`$gte`:return{id:r,field:e,operator:`greater_than_or_equal`,value:a};case`$lte`:return{id:r,field:e,operator:`less_than_or_equal`,value:a};case`$startsWith`:return{id:r,field:e,operator:`starts_with`,value:a};case`$endsWith`:return{id:r,field:e,operator:`ends_with`,value:a};case`$null`:return{id:r,field:e,operator:a===!1?`is_not_null`:`is_null`,value:``};case`$exists`:return{id:r,field:e,operator:a===!1?`notExists`:`exists`,value:``};case`$in`:return AP(a,[null,``])?{id:r,field:e,operator:`is_empty`,value:``}:{id:r,field:e,operator:`in`,value:a};case`$nin`:return AP(a,[null,``])?{id:r,field:e,operator:`is_not_empty`,value:``}:{id:r,field:e,operator:`not_in`,value:a};default:return null}}return i.length===2&&`$gte`in t&&`$lte`in t?{id:r,field:e,operator:`between`,value:[t.$gte,t.$lte]}:i.length===2&&`$nin`in t&&`$null`in t&&AP(t.$nin,[``])&&t.$null===!1?{id:r,field:e,operator:`is_not_empty`,value:``}:null}function NP(e){if(e==null)return{...gP,conditions:[]};if(typeof e!=`object`||Array.isArray(e))return null;let t=Object.entries(e);if(t.length===0)return{...gP,conditions:[]};if(t.length===1&&(e.$or||e.$and)&&!MP(t[0][0],t[0][1],0)){let t=e.$or?`or`:`and`,n=e.$or||e.$and;if(!Array.isArray(n))return null;let r=[];for(let e=0;e<n.length;e++){let t=n[e];if(!t||typeof t!=`object`||Object.keys(t).length!==1)return null;let i=Object.keys(t)[0],a=MP(i,t[i],e);if(!a)return null;r.push(a)}return{id:`root`,logic:t,conditions:r}}let n=[],r=0;for(let[e,i]of t){let t=MP(e,i,r++);if(!t)return null;n.push(t)}return{id:`root`,logic:`and`,conditions:n}}function PP(e){if(e==null)return!0;if(Array.isArray(e))return e.every(PP);if(typeof e!=`object`)return!0;let t=Object.entries(e);if(t.length===0)return!0;for(let[e,n]of t){if(e===`$and`){if(!Array.isArray(n)||n.every(PP))continue;return!1}if(e===`$or`){if(!Array.isArray(n)||n.length===0||n.some(PP))continue;return!1}return!1}return!0}function FP(e){if(e==null||e===``)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return``}}function IP({value:e,onChange:t,readonly:n,className:r,error:i,...a}){let o=q.useContext(z),{t:s}=kj(),c=a.dataSource??o?.dataSource??null,l=a.dependentValues??{},u=String(l.object_name??``),[d,f]=q.useState(null);q.useEffect(()=>{if(f(null),!c||!u||typeof c.getObjectSchema!=`function`)return;let e=!1;return(async()=>{try{let t=await c.getObjectSchema(u);e||f(yP(t))}catch{e||f([])}})(),()=>{e=!0}},[c,u]);let p=q.useMemo(()=>FP(e),[e]),m=q.useMemo(()=>{if(!p.trim())return{mongo:{},ok:!0};try{return{mongo:JSON.parse(p),ok:!0}}catch{return{mongo:null,ok:!1}}},[p]),h=q.useMemo(()=>m.ok?NP(m.mongo):null,[m]),g=q.useMemo(()=>m.ok&&PP(m.mongo),[m]),_=m.ok&&h!==null,[v,y]=q.useState(!_);q.useEffect(()=>{_||y(!0)},[_]);let b=q.useMemo(()=>{let e=new Map((d??[]).map(e=>[e.value,e.type]));return t=>e.get(t)},[d]),[x,S]=q.useState(()=>h??gP),C=m.ok?jP(m.mongo):null,w=jP(kP(x,b));return q.useEffect(()=>{h!==null&&C!==null&&C!==w&&S(h)},[h,C,w]),u?n?p.trim()?(0,J.jsx)(`pre`,{className:Y(`overflow-x-auto rounded bg-muted/40 p-2 text-xs`,r),children:p}):(0,J.jsx)(`span`,{className:Y(`text-sm text-destructive`,r),children:s(`fields.filterCondition.noCriteria`)}):(0,J.jsxs)(`div`,{className:Y(`flex flex-col gap-2`,r),children:[v?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`textarea`,{...xj(a),className:`min-h-[96px] w-full rounded border bg-background px-2 py-1 font-mono text-xs`,value:p,placeholder:`{ "type": "customer", "is_active": true }`,onChange:e=>t(e.target.value),"aria-invalid":!!i||!m.ok}),!m.ok&&(0,J.jsx)(`span`,{className:`text-xs text-destructive`,children:s(`fields.filterCondition.invalidJson`)})]}):(0,J.jsx)(wE,{fields:d??[],value:x,onChange:e=>{S(e);let n=kP(e,b);t(n==null?``:JSON.stringify(n))},extraOperators:_P}),g&&(0,J.jsx)(`span`,{className:`text-xs text-destructive`,children:s(`fields.filterCondition.criteriaRequired`)}),(0,J.jsx)(`button`,{type:`button`,className:`self-start text-xs text-muted-foreground underline-offset-2 hover:underline`,onClick:()=>y(e=>!e),disabled:!_&&!v,title:_?void 0:s(`fields.filterCondition.jsonOnly`),children:s(v?`fields.filterCondition.useVisualBuilder`:`fields.filterCondition.editAsJson`)})]}):(0,J.jsx)(`p`,{className:Y(`text-sm text-muted-foreground`,r),children:s(`fields.filterCondition.selectObjectFirst`)})}var LP=t({RecipientPickerField:()=>HP,default:()=>HP,deriveUserFields:()=>VP,fieldHoldsUsers:()=>BP}),RP={user:{object:`sys_user`,storeField:`id`,labelFields:[`name`,`full_name`,`email`],placeholderKey:`fields.recipient.selectUser`},team:{object:`sys_team`,storeField:`id`,labelFields:[`name`,`label`],placeholderKey:`fields.recipient.selectTeam`},business_unit:{object:`sys_business_unit`,storeField:`id`,labelFields:[`name`,`label`],placeholderKey:`fields.recipient.selectBusinessUnit`},unit_and_subordinates:{object:`sys_business_unit`,storeField:`id`,labelFields:[`name`,`label`],placeholderKey:`fields.recipient.selectUnitAndSubordinates`},position:{object:`sys_position`,storeField:`name`,labelFields:[`label`,`name`],placeholderKey:`fields.recipient.selectPosition`}},zP=`field`;function BP(e){if(!e||typeof e!=`object`)return!1;let t=e;return t.type===`user`||(t.type===`lookup`||t.type===`master_detail`)&&t.reference===`sys_user`}function VP(e){let t=e?.fields,n=Array.isArray(t)?t.map(e=>[e?.name,e]):t&&typeof t==`object`?Object.entries(t):[],r=[];for(let[e,t]of n)e&&BP(t)&&r.push({name:String(e),label:t.label?String(t.label):String(e)});return r}function HP({value:e,onChange:t,readonly:n,className:r,error:i,...a}){let o=q.useContext(z),{t:s}=kj(),c=a.dataSource??o?.dataSource??null,l=a.disabled,u=a.dependentValues??{},d=String(u.recipient_type??``),f=RP[d],p=String(u.object_name??``),m=d===zP&&!!c&&typeof c.getObjectSchema==`function`,[h,g]=q.useState(null),[_,v]=q.useState(null),y=q.useRef(``);q.useEffect(()=>{y.current&&d&&y.current!==d&&e&&t(``),y.current=d},[d]),q.useEffect(()=>{if(g(null),!c||!f||typeof c.find!=`function`)return;let e=!1;return(async()=>{try{let t=await c.find(f.object,{$top:500,$orderby:{name:`asc`}}),n=t?.data??t?.records??(Array.isArray(t)?t:[]);e||g(Array.isArray(n)?n:[])}catch{e||g([])}})(),()=>{e=!0}},[c,f?.object]),q.useEffect(()=>{if(v(null),!m||!p)return;let e=!1;return(async()=>{try{let t=await c.getObjectSchema(p);e||v(VP(t))}catch{e||v([])}})(),()=>{e=!0}},[c,p,m]);let b=e=>{for(let t of f?.labelFields??[`name`])if(e?.[t])return String(e[t]);return String(e?.id??``)},x=e=>String(e?.[f?.storeField??`id`]??``),S=q.useMemo(()=>{let t=(h??[]).map(e=>({value:x(e),label:b(e)})).filter(e=>e.value);return e&&!t.some(t=>t.value===e)&&t.unshift({value:e,label:e}),t},[h,e,f]),C=q.useMemo(()=>(_??[]).map(e=>({value:e.name,label:e.label})),[_]),{name:w,...T}=xj(a);if(!d)return(0,J.jsx)(`p`,{className:Y(`text-sm text-muted-foreground`,r),children:s(`fields.recipient.selectTypeFirst`)});if(m){if(!p)return(0,J.jsx)(`p`,{className:Y(`text-sm text-muted-foreground`,r),children:s(`fields.filterCondition.selectObjectFirst`)});let a=e&&!C.some(t=>t.value===e)?[{value:e,label:s(`fields.recipient.fieldNotUserTyped`,{name:e})},...C]:C;return n?e?(0,J.jsx)(`span`,{className:r,children:a.find(t=>t.value===e)?.label??e}):(0,J.jsx)($,{}):(0,J.jsx)(AT,{...T,options:a,value:e??``,onValueChange:e=>t(e),placeholder:s(_===null?`fields.recipient.loading`:`fields.recipient.selectField`),searchPlaceholder:s(`fields.recipient.search`),emptyText:s(_===null?`fields.recipient.loading`:`fields.recipient.noUserFields`),disabled:l,className:Y(`w-full`,r),"aria-invalid":!!i})}return f?n?e?(0,J.jsx)(`span`,{className:r,children:S.find(t=>t.value===e)?.label??e}):(0,J.jsx)($,{}):(0,J.jsx)(AT,{...T,options:S,value:e??``,onValueChange:e=>t(e),placeholder:s(h===null?`fields.recipient.loading`:f.placeholderKey??`fields.recipient.select`),searchPlaceholder:s(`fields.recipient.search`),emptyText:s(h===null?`fields.recipient.loading`:`fields.recipient.empty`),disabled:l,className:Y(`w-full`,r),"aria-invalid":!!i}):(0,J.jsx)(`input`,{...xj(a),className:Y(`w-full rounded border bg-background px-2 py-1 text-sm`,r),value:e??``,disabled:l||n,onChange:e=>t(e.target.value),"aria-invalid":!!i})}var UP=q.createContext(null);function WP(){let[e,t]=q.useState([]),n=q.useContext(UP),r=q.useRef(n);r.current=n;let i=q.useId(),a=q.useMemo(()=>({report(e,n){t(t=>n===t.includes(e)?t:n?[...t,e]:t.filter(t=>t!==e))}}),[]),o=e.length>0;return q.useEffect(()=>{r.current?.report(i,o)},[o,i]),q.useEffect(()=>()=>{r.current?.report(i,!1)},[i]),{anyUploading:o,sink:a}}function GP({scope:e,children:t}){return(0,J.jsx)(UP.Provider,{value:e.sink,children:t})}function KP(e){let t=q.useContext(UP),n=q.useId(),r=q.useRef(t);r.current=t,q.useEffect(()=>{r.current?.report(n,e)},[e,n]),q.useEffect(()=>()=>{r.current?.report(n,!1)},[n])}var qP=0,JP=()=>{};function YP(){let e=q.useContext(UP),t=q.useRef(e);return t.current=e,q.useCallback(()=>{let e=t.current;if(!e)return JP;qP+=1;let n=`upload-hold:${qP}`;e.report(n,!0);let r=!1;return()=>{r||(r=!0,e.report(n,!1))}},[])}function XP(e,t){let n=(0,q.useRef)(t);n.current=t,(0,q.useEffect)(()=>{n.current?.(e)},[e]),KP(e)}var ZP=1048576;function QP(e,t,n){if(!n||t.size<=n)return null;let r=(n/ZP).toFixed(1);return e(`fields.file.exceedsMaxSize`,{defaultValue:`"${t.name}" exceeds max size (${r} MB)`,name:t.name,max:r})}function $P(e,t,n){return n instanceof JA?e(`fields.file.uploadIncomplete`,{defaultValue:`Upload of "${t}" did not complete: no file id was returned, so nothing was saved`,name:t}):e(`fields.file.uploadFailed`,{defaultValue:`Failed to upload "${t}": ${n.message}`,name:t,error:n.message})}var eF=t({FileCell:()=>rF,FileField:()=>nF});function tF(e){let{files:t,multiple:n,maxSize:r,onChange:i,holdScope:a}=e,{upload:o}=Fa(),{t:s}=wt(),[c,l]=(0,q.useState)([]),[u,d]=(0,q.useState)({}),[f,p]=(0,q.useState)(!1),[m,h]=(0,q.useState)({});return{processFiles:(0,q.useCallback)(async e=>{if(e.length===0)return;let c=[],u=e.filter(e=>{let t=QP(s,e,r);return!t||(c.push(t),!1)});if(l(c),u.length===0)return;let f=a?.();p(!0);try{let e=(await Promise.all(u.map(async e=>{try{let t=await o(e,{onProgress:t=>d(n=>({...n,[e.name]:t}))}),n=YA(t,e.name);return{result:t,originalName:e.name,value:n}}catch(t){return c.push($P(s,e.name,t)),l([...c]),null}}))).filter(Boolean);if(e.length===0)return;let r={};for(let{result:t,originalName:n}of e){let e=XA(t,n);e.id&&(r[e.id]=e)}Object.keys(r).length>0&&h(e=>({...e,...r}));let a=e.map(({value:e})=>e);i(n?[...t,...a]:a[0])}finally{f?.(),p(!1),d({})}},[t,n,i,r,o,s,a]),errors:c,uploading:f,uploadProgress:u,recent:m}}function nF({value:e,onChange:t,field:n,readonly:r,onUploadingChange:i,error:a,...o}){let{t:s}=wt(),c=(0,q.useRef)(null),l=(0,q.useRef)(null),u=n,d=u?.multiple||!1,f=u?.accept?u.accept.join(`,`):void 0,p=u?.maxSize,m=u?.capture??null,h=!f||f.split(`,`).some(e=>e.trim().startsWith(`image/`)||e.trim()===`image/*`||e.trim().startsWith(`.jp`)||e.trim().startsWith(`.png`)||e.trim().startsWith(`.gif`)||e.trim().startsWith(`.webp`)),g=typeof navigator<`u`&&(navigator.maxTouchPoints>0||/Mobi|Android/i.test(navigator.userAgent)),_=m===!1?!1:m??(h&&g?`environment`:null),[v,y]=(0,q.useState)(!1),b=e?Array.isArray(e)?e:[e]:[],{processFiles:x,errors:S,uploading:C,uploadProgress:w,recent:T}=tF({files:b,multiple:d,maxSize:p,onChange:t,holdScope:YP()}),E=ZA(KA(e,s(`fields.file.fileFallback`,{defaultValue:`File`})),T);XP(C,i);let D=(0,q.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),y(!0)},[]),O=(0,q.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),y(!1)},[]),k=(0,q.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),y(!1);let t=Array.from(e.dataTransfer.files);if(f){let e=f.split(`,`).map(e=>e.trim().toLowerCase()),n=t.filter(t=>{let n=t.name.split(`.`),r=n.length>1?`.`+n.pop()?.toLowerCase():``;return e.some(e=>e===t.type||r&&e===r||e.endsWith(`/*`)&&t.type.startsWith(e.replace(`/*`,`/`)))});x(n)}else x(t)},[f,x]);if(r){let t=Hj(o,`instead-of-the-inputs`);return e?(0,J.jsx)(`div`,{...t,className:`flex flex-wrap gap-2`,children:E.map((e,t)=>(0,J.jsx)(QA,{view:e,className:`text-sm max-w-xs`,fallback:(0,J.jsx)(`span`,{className:`text-sm truncate max-w-xs`,children:e.name})},t))}):(0,J.jsx)($,{...t})}let A=e=>{x(Array.from(e.target.files||[]))},j=e=>{if(d){let n=b.filter((t,n)=>n!==e);t(n.length>0?n:null)}else t(null)},{name:M,...N}=xj(o);return(0,J.jsxs)(`div`,{className:o.className,children:[(0,J.jsx)(`input`,{ref:c,type:`file`,multiple:d,accept:f,onChange:A,className:`hidden`}),_&&(0,J.jsx)(`input`,{ref:l,type:`file`,accept:`image/*`,capture:_,onChange:A,className:`hidden`,"aria-label":s(`fields.file.cameraCapture`,{defaultValue:`Camera capture`}),"data-testid":`file-field-camera-input`}),(0,J.jsxs)(`div`,{className:`space-y-2`,children:[(0,J.jsxs)(`div`,{...N,onDragOver:D,onDragLeave:O,onDrop:k,onClick:()=>c.current?.click(),className:`
|
|
30
|
+
flex flex-col items-center justify-center gap-2 p-6
|
|
31
|
+
border-2 border-dashed rounded-lg cursor-pointer
|
|
32
|
+
transition-colors duration-200
|
|
33
|
+
${v?`border-primary bg-primary/5 text-primary`:`border-muted-foreground/25 hover:border-primary/50 text-muted-foreground hover:text-foreground`}
|
|
34
|
+
`,role:`button`,tabIndex:0,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),c.current?.click())},"aria-invalid":!!a,children:[(0,J.jsx)(Ca,{className:`size-8 ${v?`text-primary`:`text-muted-foreground`}`}),(0,J.jsxs)(`div`,{className:`text-center`,children:[(0,J.jsx)(`p`,{className:`text-sm font-medium`,children:v?s(`fields.file.dropFilesHere`,{defaultValue:`Drop files here`}):s(`fields.file.dragDropHere`,{defaultValue:`Drag & drop files here`})}),(0,J.jsx)(`p`,{className:`text-xs text-muted-foreground mt-1`,children:_?s(`fields.file.browseHintCamera`,{defaultValue:`or click to browse • use the camera button below`}):s(`fields.file.browseHint`,{defaultValue:`or click to browse`})})]})]}),_&&(0,J.jsxs)(X,{type:`button`,variant:`outline`,size:`sm`,className:`w-full`,onClick:e=>{e.stopPropagation(),l.current?.click()},"data-testid":`file-field-camera-button`,children:[(0,J.jsx)(fi,{className:`size-4 mr-2`}),_===`user`?s(`fields.file.takeSelfie`,{defaultValue:`Take selfie`}):s(`fields.file.takePhoto`,{defaultValue:`Take photo`})]}),C&&(0,J.jsxs)(`div`,{className:`flex items-center gap-2 text-xs text-muted-foreground`,"data-testid":`file-field-uploading`,children:[(0,J.jsx)(Ji,{className:`size-3 animate-spin`}),(0,J.jsx)(`span`,{children:(()=>{let e=Object.keys(w);if(e.length===0)return s(`fields.file.uploading`,{defaultValue:`Uploading…`});let t=Math.round(Object.values(w).reduce((e,t)=>e+t,0)/e.length*100);return s(`fields.file.uploadingPct`,{defaultValue:`Uploading… (${t}%)`,pct:t})})()})]}),S.length>0&&(0,J.jsx)(`div`,{className:`space-y-0.5`,children:S.map((e,t)=>(0,J.jsx)(`p`,{className:`text-xs text-destructive`,children:e},t))}),E.length>0&&(0,J.jsx)(`div`,{className:`space-y-1`,children:E.map((e,t)=>(0,J.jsxs)(`div`,{className:`flex items-center justify-between gap-2 p-2 bg-muted/50 rounded-md border`,children:[(0,J.jsxs)(`div`,{className:`flex items-center gap-2 flex-1 min-w-0`,children:[qA(e)&&e.url?(0,J.jsx)(`img`,{src:e.url,alt:e.name,className:`size-8 object-cover rounded shrink-0`}):qA(e)?(0,J.jsx)(Wi,{className:`size-4 text-muted-foreground shrink-0`}):(0,J.jsx)(Ri,{className:`size-4 text-muted-foreground shrink-0`}),(0,J.jsx)(QA,{view:e,className:`text-sm`,icon:!1,fallback:(0,J.jsx)(`span`,{className:`text-sm truncate`,children:e.name})}),e.size&&(0,J.jsxs)(`span`,{className:`text-xs text-muted-foreground`,children:[`(`,(e.size/1024).toFixed(1),` KB)`]})]}),(0,J.jsx)(X,{type:`button`,variant:`ghost`,size:`sm`,onClick:e=>{e.stopPropagation(),j(t)},className:`h-6 w-6 p-0`,children:(0,J.jsx)(Ta,{className:`size-3`})})]},t))})]})]})}function rF({value:e,onChange:t,disabled:n,multiple:r,accept:i,maxSize:a,error:o,"aria-label":s,"data-cell":c}){let{t:l}=wt(),u=(0,q.useRef)(null),d=e?Array.isArray(e)?e:[e]:[],{processFiles:f,errors:p,uploading:m,recent:h}=tF({files:d,multiple:!!r,maxSize:a,onChange:t}),g=ZA(KA(e,l(`fields.file.fileFallback`,{defaultValue:`File`})),h),_=e=>{if(r){let n=d.filter((t,n)=>n!==e);t(n.length>0?n:null)}else t(null)},v=!n&&!m&&(r||d.length===0);return(0,J.jsxs)(`div`,{className:`flex min-h-8 flex-wrap items-center gap-1 px-1 py-0.5`,children:[(0,J.jsx)(`input`,{ref:u,type:`file`,multiple:r,accept:i,onChange:e=>{f(Array.from(e.target.files||[])),e.target.value=``},className:`hidden`}),g.map((e,t)=>(0,J.jsxs)(`span`,{className:`inline-flex max-w-40 items-center gap-1 rounded border bg-muted/50 px-1 py-0.5 text-xs`,title:e.name,"data-testid":`file-cell-chip`,children:[qA(e)&&e.url?(0,J.jsx)(`img`,{src:e.url,alt:e.name,className:`size-5 shrink-0 rounded object-cover`}):(0,J.jsx)(Ri,{className:`size-3 shrink-0 text-muted-foreground`}),(0,J.jsx)(QA,{view:e,icon:!1,fallback:(0,J.jsx)(`span`,{className:`truncate`,children:e.name})}),!n&&(0,J.jsx)(`button`,{type:`button`,className:`shrink-0 rounded p-0.5 text-muted-foreground hover:text-foreground`,"aria-label":l(`fields.file.remove`,{defaultValue:`Remove ${e.name}`,name:e.name}),onClick:()=>_(t),children:(0,J.jsx)(Ta,{className:`size-3`})})]},t)),m&&(0,J.jsx)(`span`,{className:`inline-flex items-center gap-1 text-xs text-muted-foreground`,"data-testid":`file-cell-uploading`,children:(0,J.jsx)(Ji,{className:`size-3.5 animate-spin`})}),v&&(0,J.jsxs)(X,{type:`button`,variant:`ghost`,size:`sm`,className:`h-7 gap-1 px-2 text-xs text-muted-foreground hover:text-foreground`,onClick:()=>u.current?.click(),"aria-label":s,"data-cell":c,disabled:n,"aria-invalid":!!o,children:[(0,J.jsx)(Ca,{className:`size-3.5`}),d.length===0&&l(`fields.file.upload`,{defaultValue:`Upload`})]}),p.length>0&&(0,J.jsx)(`span`,{className:`w-full truncate text-[11px] text-destructive`,title:p.join(`; `),children:p[0]})]})}var iF=t({ImageField:()=>oF}),aF=(0,q.lazy)(()=>n(()=>Promise.resolve().then(()=>sF).then(e=>({default:e.ImageCropperDialog})),void 0,import.meta.url));function oF({value:e,onChange:t,field:n,readonly:r,onUploadingChange:i,error:a,...o}){let s=(0,q.useRef)(null),c=n,l=c?.multiple||!1,u=c?.accept?c.accept.join(`,`):`image/*`,d=c?.maxSize,f=c?.crop!==!1,[p,m]=(0,q.useState)(null),[h,g]=(0,q.useState)(null),{upload:_}=Fa(),{t:v}=wt(),[y,b]=(0,q.useState)(!1),[x,S]=(0,q.useState)([]),[C,w]=(0,q.useState)({});XP(y,i);let T=YP(),E=e?Array.isArray(e)?e:[e]:[],D=ZA(KA(e,``),C),O=(0,q.useCallback)((e,t)=>{let n=XA(e,t);n.id&&w(e=>({...e,[n.id]:n}))},[]),k=(0,q.useCallback)(async(e,n)=>{if(!p)return;let r=QP(v,{name:n,size:e.size},d);if(r){S([r]),m(null);return}S([]);let i=T();b(!0);try{let r=await _(e),i=YA(r,n);if(O(r,n),l){let e=[...E];e[p.index]=i,t(e)}else t(i)}catch(e){S([$P(v,n,e)])}finally{i(),b(!1),m(null)}},[p,E,l,t,_,O,d,v,T]),A=(0,q.useCallback)(e=>{let t=D[e];t?.url&&m({index:e,src:t.url,name:t.name||`image-${e}.png`})},[D]),j=D.filter(e=>e.url).map(e=>({url:e.url,name:e.name}));if(r)return!e||j.length===0?(0,J.jsx)($,{}):(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:j.map((e,t)=>(0,J.jsxs)(`button`,{type:`button`,onClick:()=>g(t),className:`group relative overflow-hidden rounded-md border border-border focus:outline-none focus:ring-2 focus:ring-ring`,"aria-label":v(`fields.image.enlarge`,{name:e.name||v(`fields.image.imageAlt`,{index:t+1})}),children:[(0,J.jsx)(`img`,{src:e.url,alt:e.name||v(`fields.image.imageAlt`,{index:t+1}),className:`size-20 object-cover transition-transform duration-150 group-hover:scale-105`}),(0,J.jsx)(`span`,{className:`pointer-events-none absolute inset-0 bg-black/0 transition-colors group-hover:bg-black/10`})]},t))}),h!==null&&(0,J.jsx)(BA,{images:j,index:h,open:!0,onOpenChange:e=>!e&&g(null),onIndexChange:g})]});let M=async e=>{let n=Array.from(e.target.files||[]);if(s.current&&(s.current.value=``),n.length===0)return;let r=[],i=n.filter(e=>{let t=QP(v,e,d);return!t||(r.push(t),!1)});if(S(r),i.length===0)return;let a=[],o=T();b(!0);try{let e=await Promise.all(i.map(async e=>{try{let t=await _(e),n=YA(t,e.name);return O(t,e.name),n}catch(t){return a.push($P(v,e.name,t)),null}}));a.length>0&&S([...r,...a]);let n=e.filter(e=>e!==null);if(n.length===0)return;t(l?[...E,...n]:n[0])}finally{o(),b(!1)}},N=e=>{if(l){let n=E.filter((t,n)=>n!==e);t(n.length>0?n:null)}else t(null)};return(0,J.jsxs)(`div`,{className:o.className,children:[(0,J.jsx)(`input`,{ref:s,type:`file`,multiple:l,accept:u,onChange:M,className:`hidden`}),(0,J.jsxs)(`div`,{className:`space-y-2`,children:[D.length>0&&(0,J.jsx)(`div`,{className:`grid grid-cols-4 gap-2`,children:D.map((e,t)=>(0,J.jsxs)(`div`,{className:`relative group`,children:[(0,J.jsx)(`img`,{src:e.url||``,alt:e.name||v(`fields.image.imageAlt`,{index:t+1}),className:`size-20 rounded-md object-cover border border-gray-200`}),(0,J.jsxs)(`div`,{className:`absolute top-1 right-1 flex gap-1 opacity-0 group-hover:opacity-100 transition-opacity`,children:[f&&(0,J.jsx)(X,{type:`button`,variant:`secondary`,size:`sm`,onClick:()=>A(t),className:`h-6 w-6 p-0`,"aria-label":v(`fields.image.crop`,{index:t+1}),"data-testid":`image-field-crop-${t}`,children:(0,J.jsx)(Oi,{className:`size-3`})}),(0,J.jsx)(X,{type:`button`,variant:`destructive`,size:`sm`,onClick:()=>N(t),className:`h-6 w-6 p-0`,"aria-label":v(`fields.image.remove`,{index:t+1}),children:(0,J.jsx)(Ta,{className:`size-3`})})]})]},t))}),(0,J.jsxs)(X,{...xj(o),type:`button`,variant:`outline`,onClick:()=>s.current?.click(),className:`w-full`,disabled:y,"data-testid":`image-field-upload-button`,"aria-invalid":!!a,children:[y?(0,J.jsx)(Ji,{className:`size-4 mr-2 animate-spin`}):(0,J.jsx)(Wi,{className:`size-4 mr-2`}),y?v(`fields.image.uploading`):E.length>0?v(`fields.image.addMore`):v(`fields.image.upload`)]}),x.length>0&&(0,J.jsx)(`div`,{className:`space-y-0.5`,children:x.map((e,t)=>(0,J.jsx)(`p`,{className:`text-xs text-destructive`,children:e},t))})]}),f&&p&&(0,J.jsx)(q.Suspense,{fallback:null,children:(0,J.jsx)(aF,{open:!0,onOpenChange:e=>!e&&m(null),src:p.src,outputName:p.name,onConfirm:k})})]})}var sF=t({ImageCropperDialog:()=>cF}),cF=({open:e,onOpenChange:t,src:n,outputType:r=`image/png`,outputName:i=`cropped.png`,onConfirm:a})=>{let o=(0,q.useRef)(null),s=(0,q.useRef)(null),[c,l]=(0,q.useState)(0),[u,d]=(0,q.useState)({x:0,y:0,width:100,height:100}),[f,p]=(0,q.useState)(null),[m,h]=(0,q.useState)(!1);(0,q.useEffect)(()=>{if(!e||!n)return;h(!1);let t=new Image;t.crossOrigin=`anonymous`,t.onload=()=>{s.current=t;let e=t.naturalWidth*.8,n=t.naturalHeight*.8;d({x:(t.naturalWidth-e)/2,y:(t.naturalHeight-n)/2,width:e,height:n}),l(0),h(!0)},t.onerror=()=>h(!1),t.src=n},[e,n]),(0,q.useEffect)(()=>{if(!m||!s.current||!o.current)return;let e=s.current,t=o.current,n=t.getContext(`2d`);if(!n)return;let r=480/e.naturalWidth,i=e.naturalHeight*r;t.width=480,t.height=i,n.clearRect(0,0,480,i),n.save(),n.translate(240,i/2),n.rotate(c*Math.PI/180);let a=c%180==0?480:i,l=c%180==0?i:480;n.drawImage(e,-a/2,-l/2,a,l),n.restore();let d=u.x*r,f=u.y*r,p=u.width*r,h=u.height*r;n.fillStyle=`rgba(0,0,0,0.45)`,n.fillRect(0,0,480,f),n.fillRect(0,f+h,480,i-f-h),n.fillRect(0,f,d,h),n.fillRect(d+p,f,480-d-p,h),n.strokeStyle=`#3b82f6`,n.lineWidth=2,n.strokeRect(d,f,p,h)},[m,u,c]);let g=(0,q.useCallback)(e=>{if(!s.current||!o.current)return;let t=o.current.getBoundingClientRect(),n=s.current.naturalWidth/t.width;p({ox:(e.clientX-t.left)*n,oy:(e.clientY-t.top)*n,cx:u.x,cy:u.y}),e.target.setPointerCapture(e.pointerId)},[u]),_=(0,q.useCallback)(e=>{if(!f||!s.current||!o.current)return;let t=o.current.getBoundingClientRect(),n=s.current.naturalWidth/t.width,r=(e.clientX-t.left)*n-f.ox,i=(e.clientY-t.top)*n-f.oy,a=Math.max(0,Math.min(f.cx+r,s.current.naturalWidth-u.width)),c=Math.max(0,Math.min(f.cy+i,s.current.naturalHeight-u.height));d(e=>({...e,x:a,y:c}))},[f,u.width,u.height]),v=(0,q.useCallback)(()=>p(null),[]),y=(0,q.useCallback)(()=>l(e=>(e+90)%360),[]),b=(0,q.useCallback)(async()=>{if(!s.current)return;let e=s.current,n=document.createElement(`canvas`),o=u.width,l=u.height;n.width=c%180==0?o:l,n.height=c%180==0?l:o;let d=n.getContext(`2d`);if(!d)return;d.save(),d.translate(n.width/2,n.height/2),d.rotate(c*Math.PI/180),d.drawImage(e,u.x,u.y,o,l,-o/2,-l/2,o,l),d.restore();let f=await new Promise(e=>n.toBlob(e,r));f&&(a(f,i),t(!1))},[u,c,i,r,a,t]);return(0,J.jsx)(im,{open:e,onOpenChange:t,children:(0,J.jsxs)(cm,{className:`max-w-xl`,children:[(0,J.jsxs)(lm,{children:[(0,J.jsx)(dm,{children:`Crop & rotate image`}),(0,J.jsx)(fm,{children:`Drag the highlighted box to reposition the crop. Use the rotate button to spin the image in 90° increments.`})]}),(0,J.jsxs)(`div`,{className:`flex flex-col items-center gap-3`,children:[m?(0,J.jsx)(`canvas`,{ref:o,"data-testid":`image-cropper-canvas`,role:`img`,"aria-label":`Image crop preview`,className:`border rounded-md cursor-move touch-none max-w-full`,onPointerDown:g,onPointerMove:_,onPointerUp:v,onPointerCancel:v}):(0,J.jsx)(`div`,{className:`flex h-[270px] w-full items-center justify-center text-sm text-muted-foreground`,children:`Loading image…`}),(0,J.jsxs)(`div`,{className:`flex w-full items-center justify-between text-xs text-muted-foreground`,children:[(0,J.jsxs)(`span`,{children:[`Crop: `,Math.round(u.width),` × `,Math.round(u.height),` px`]}),(0,J.jsxs)(`span`,{children:[`Rotation: `,c,`°`]})]})]}),(0,J.jsxs)(um,{className:`flex justify-between sm:justify-between`,children:[(0,J.jsxs)(X,{type:`button`,variant:`outline`,onClick:y,"data-testid":`image-cropper-rotate`,children:[(0,J.jsx)(sa,{className:`size-4 mr-2`}),`Rotate 90°`]}),(0,J.jsxs)(`div`,{className:`flex gap-2`,children:[(0,J.jsx)(X,{type:`button`,variant:`ghost`,onClick:()=>t(!1),children:`Cancel`}),(0,J.jsxs)(X,{type:`button`,onClick:b,disabled:!m,"data-testid":`image-cropper-confirm`,children:[(0,J.jsx)(Oi,{className:`size-4 mr-2`}),`Apply crop`]})]})]})]})})},lF=t({FormulaField:()=>uF});function uF({value:e,field:t,...n}){let r=Ct(),i=t?.returnType??`text`;if(e==null)return(0,J.jsx)($,{className:n.className});let a;if(i===`number`)a=typeof e==`number`?e.toFixed(2):String(e);else if(i===`boolean`)a=e?`Yes`:`No`;else if(i===`date`){if(isNaN(S(e).getTime()))return(0,J.jsx)($,{className:n.className});a=ut(e,void 0,{locale:r})}else a=String(e);return(0,J.jsx)(`span`,{className:`text-sm font-mono text-gray-700 ${n.className||``}`,children:a})}var dF=t({SummaryField:()=>fF});function fF({value:e,field:t,...n}){let r=t?.summaryOperations?.function??`count`;if(e==null)return(0,J.jsx)($,{className:n.className});let i;return i=r===`count`?String(e):[`sum`,`avg`,`min`,`max`].includes(r)&&typeof e==`number`?e.toFixed(2):String(e),(0,J.jsx)(`span`,{className:`text-sm font-medium tabular-nums text-gray-700 ${n.className||``}`,children:i})}var pF=t({AutoNumberField:()=>mF});function mF({value:e,field:t,...n}){return e==null?(0,J.jsx)($,{className:n.className}):(0,J.jsx)(`span`,{className:`text-sm font-mono text-gray-700 ${n.className||``}`,children:String(e)})}var hF=t({ObjectField:()=>gF});function gF({value:e,onChange:t,field:n,readonly:r,error:i,...a}){let o=n,[s,c]=(0,q.useState)(()=>e==null?``:JSON.stringify(e,null,2)),[l,u]=(0,q.useState)(null),{t:d}=kj();if((0,q.useEffect)(()=>{try{if(e==null){c(``);return}let t=s?JSON.parse(s):null;JSON.stringify(t)!==JSON.stringify(e)&&c(JSON.stringify(e,null,2))}catch{c(JSON.stringify(e,null,2))}},[e,s]),r)return e?(0,J.jsx)(`pre`,{className:Y(`text-xs bg-gray-50 p-2 rounded border border-gray-200 overflow-auto max-h-40`,a.className),children:JSON.stringify(e,null,2)}):(0,J.jsx)($,{});let f=e=>{let n=e.target.value;if(c(n),u(null),!n.trim()){t(null);return}try{t(JSON.parse(n))}catch{u(d(`fields.object.invalidJson`))}};return(0,J.jsxs)(`div`,{className:`space-y-1`,children:[(0,J.jsx)(Gb,{...xj(a),value:s,onChange:f,placeholder:o?.placeholder||`{
|
|
35
|
+
"key": "value"
|
|
36
|
+
}`,disabled:r||a.disabled,className:Y(`font-mono text-xs`,l?`border-red-500 focus-visible:ring-red-500`:``,a.className),rows:6,"aria-invalid":!!i||!!l}),l&&(0,J.jsx)(`p`,{className:`text-xs text-red-500`,children:l})]})}var _F=t({VectorField:()=>vF});function vF({value:e,field:t,...n}){let r=t?.dimensions||(Array.isArray(e)?e.length:0);if(!e||!Array.isArray(e))return(0,J.jsx)($,{});let i=e.slice(0,3).map(e=>{let t=Number(e);return isNaN(t)?`0`:t.toFixed(4)}).join(`, `);return(0,J.jsxs)(`div`,{className:`text-sm ${n.className||``}`,children:[(0,J.jsxs)(`span`,{className:`font-mono text-gray-700`,children:[`[`,i,`...]`]}),(0,J.jsxs)(`span`,{className:`text-gray-500 ml-2`,children:[`(`,r,`D)`]})]})}var yF=t({GridField:()=>zF,LineItemsField:()=>BF,computeRow:()=>jF,evalArith:()=>EF,lookupAutofillPatch:()=>DF,sumColumn:()=>RF}),bF=e=>e===`number`||e===`currency`,xF={text:160,select:132,lookup:168,number:104,currency:116,date:150,datetime:200,time:116,file:168},SF=e=>e.width??xF[e.type??`text`]??132;function CF(e){if(e.width)return{width:e.width,minWidth:e.width};if((e.type??`text`)===`text`)return{minWidth:180};let t=xF[e.type??`text`]??132;return{width:t,minWidth:t}}function wF(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(r===` `||r===` `||r===`
|
|
37
|
+
`){n++;continue}if(r>=`0`&&r<=`9`||r===`.`){let r=n+1;for(;r<e.length&&(e[r]>=`0`&&e[r]<=`9`||e[r]===`.`);)r++;t.push({t:`num`,v:e.slice(n,r)}),n=r;continue}if(/[a-zA-Z_]/.test(r)){let r=n+1;for(;r<e.length&&/[a-zA-Z0-9_.]/.test(e[r]);)r++;t.push({t:`id`,v:e.slice(n,r)}),n=r;continue}if(r===`+`||r===`-`||r===`*`||r===`/`||r===`%`){t.push({t:`op`,v:r}),n++;continue}if(r===`(`){t.push({t:`lp`,v:r}),n++;continue}if(r===`)`){t.push({t:`rp`,v:r}),n++;continue}return null}return t}function TF(e,t){let n=e.startsWith(`record.`)?e.slice(7):e,r=t?.[n];if(r==null||r===``)return null;let i=Number(r);return Number.isFinite(i)?i:null}function EF(e,t){let n=wF(e);if(!n||n.length===0)return null;let r=0,i=!1,a=()=>n[r],o=()=>n[r++];function s(){let e=a();if(!e)return i=!0,NaN;if(e.t===`op`&&e.v===`-`)return o(),-s();if(e.t===`op`&&e.v===`+`)return o(),s();if(e.t===`num`)return o(),Number(e.v);if(e.t===`id`){o();let n=TF(e.v,t);return n===null?(i=!0,NaN):n}if(e.t===`lp`){o();let e=l(),t=o();return(!t||t.t!==`rp`)&&(i=!0),e}return i=!0,NaN}function c(){let e=s();for(;a()&&a().t===`op`&&(a().v===`*`||a().v===`/`||a().v===`%`);){let t=o().v,n=s();e=t===`*`?e*n:t===`/`?e/n:e%n}return e}function l(){let e=c();for(;a()&&a().t===`op`&&(a().v===`+`||a().v===`-`);){let t=o().v,n=c();e=t===`+`?e+n:e-n}return e}let u=l();return i||r!==n.length||!Number.isFinite(u)?null:u}function DF(e,t,n){let r={[t.name]:n?.value??n?.id??n?._id};if(t.autofill!==!1&&n&&typeof n==`object`)for(let i of e){if(i.name===t.name||i.computed||i.type===`lookup`)continue;let e=n[i.name];e!=null&&e!==``&&(r[i.name]=e)}return r}function OF(e){return bt(void 0,e)}function kF(e){return e?nj(e):void 0}function AF(e,t){return e.type===`currency`?kF(OF(t)):e.scale}function jF(e,t,n){let r=e.filter(e=>e.computed&&e.expr);if(r.length===0)return t;let i={...t};for(let e of r){let t=EF(e.expr,i);if(t===null){i[e.name]=null;continue}let r=AF(e,n);i[e.name]=r==null?t:Number(t.toFixed(r))}return i}var MF=e=>e===`date`||e===`datetime`||e===`time`;function NF(e,t,n){let r=String(t);if(e===`time`)return r;if(e===`date`){let e=Me(t);if(!e)return r;let i=S(e);return Number.isNaN(i.getTime())?r:ut(i,void 0,{locale:n})}if(Number.isNaN(S(t instanceof Date?t:r).getTime()))return r;let i=t instanceof Date?t:new Date(r);return U(i,{style:`compact`,locale:n})}function PF(e,t,n){return e.prefix?e.prefix:t?ij(t,n):``}function FF(e,t,n,r){let i=kF(n),a=i===void 0?{}:{minimumFractionDigits:i,maximumFractionDigits:i};if(e.prefix||!n)return`${PF(e,n,r)}${We(t,{locale:r,...a})}`;try{return We(t,{locale:r,currency:n,...a})}catch{return`${n} ${t.toFixed(i)}`}}function IF(e,t,n,r){if(t==null||t===``)return`—`;if(MF(e.type))return NF(e.type,t,n);if(e.type===`file`){let e=Array.isArray(t)?t:[t];if(e.length===0)return`—`;if(e.length>1)return`${e.length} files`;let n=e[0];return typeof n==`string`?n:n?.name||n?.original_name||`File`}if(e.type===`select`&&Array.isArray(e.options)){let n=e.options.find(e=>String(e.value)===String(t));return n?n.label:String(t)}if(bF(e.type)){let i=Number(t);if(Number.isFinite(i))return e.type===`currency`?FF(e,i,r,n):i.toLocaleString(n)}return Array.isArray(t)?t.join(`, `):String(t)}function LF(e,t){if(bF(e)){if(t===``||t==null)return null;let e=Number(t);return Number.isNaN(e)?t:e}return e===`datetime`?at(t):t}function RF(e,t){return Array.isArray(e)?e.reduce((e,n)=>{let r=Number(n?.[t]);return e+(Number.isFinite(r)?r:0)},0):0}function zF({value:e,onChange:t,field:n,readonly:r,disabled:i,className:a,error:o,onRowExpand:s,displayMode:c,onAdd:l,...u}){let d=n||{},f=d.columns||[],p=Array.isArray(e)?e:[],m=u.contextRecord,h=Ct(),{t:g}=kj(),_=g(`view.dragToReorder`,{defaultValue:`Drag to reorder`}),v=g(`fields.grid.openRow`,{defaultValue:`Open row`}),y=g(`fields.grid.duplicateRow`,{defaultValue:`Duplicate row`}),b=g(`fields.grid.removeRow`,{defaultValue:`Remove row`}),x=g(`form.masterDetail.total`,{defaultValue:`Total`}),S=e=>g(`validation.required`,{field:e.label||e.name,defaultValue:`{{field}} is required`}),C=q.useId(),{currency:w}=yt(),T=OF(w),E=(0,q.useCallback)((e,t)=>{if(!e.readonlyWhen&&!e.requiredWhen)return{readonly:!1,required:!!e.required};let n=ue({readonlyWhen:e.readonlyWhen,requiredWhen:e.requiredWhen},t||{},{required:!!e.required,readonly:!1},void 0,m?{parent:m}:void 0);return{readonly:n.readonly,required:n.required}},[m]),D=c===`list`&&!r,[O,k]=q.useState(()=>new Set),A=f.filter(e=>e.defaultHidden&&!e.required),j=f.filter(e=>!e.defaultHidden||e.required||O.has(e.name)),M=(0,q.useCallback)(e=>{k(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},[]),N=d.allow_add!==!1&&!r&&!i,ee=d.allow_delete!==!1&&!r&&!i,P=d.allow_duplicate!==!1&&N,F=typeof s==`function`&&!r,I=d.show_line_numbers!==!1,te=d.min_rows??0,ne=d.max_rows,re=d.total_field||d.amount_field||d.amountField,L=d.sort_field,R=d.reorderable!==!1&&!r&&!i,z=(0,q.useCallback)(e=>{t?.(L?e.map((e,t)=>({...e,[L]:t})):e)},[t,L]),B=(0,q.useCallback)(()=>{let e={};for(let t of j)e[t.name]=null;return e},[j]),ie=(0,q.useCallback)((e,t)=>{if(e>=p.length){if(ne!=null&&p.length>=ne)return;z([...p,jF(j,{...B(),...t},w)]);return}z(p.map((n,r)=>r===e?jF(j,{...n,...t},w):n))},[p,j,ne,B,z,w]),V=(0,q.useCallback)((e,t,n)=>ie(e,{[t]:n}),[ie]),ae=(0,q.useCallback)((e,t,n)=>{ie(e,DF(j,t,n))},[j,ie]),H=(0,q.useCallback)((e,t,n)=>V(e,t,n),[V]),oe=(0,q.useCallback)((e,t,n)=>{V(e,t.name,LF(t.type,n))},[V]),U=(0,q.useCallback)(()=>{ne!=null&&p.length>=ne||z([...p,B()])},[p,B,ne,z]),W=(0,q.useRef)(null),G=(0,q.useCallback)((e,t)=>{let n=W.current?.querySelector(`[data-cell="${e}-${t}"]`);n&&(n.focus(),n instanceof HTMLInputElement&&n.select())},[]),se=(0,q.useCallback)((e,t,n)=>{e.key===`ArrowDown`||e.key===`Enter`?(e.preventDefault(),G(t+1,n)):e.key===`ArrowUp`&&(e.preventDefault(),t>0&&G(t-1,n))},[G]),ce=(0,q.useCallback)(e=>{p.length<=te||z(p.filter((t,n)=>n!==e))},[p,te,z]),le=(0,q.useCallback)(e=>{if(ne!=null&&p.length>=ne)return;let t=p[e];if(!t)return;let{id:n,_id:r,recordId:i,...a}=t,o=[...p];o.splice(e+1,0,{...a}),z(o)},[p,ne,z]),de=(0,q.useCallback)((e,t)=>{if(e===t||e<0||t<0||e>=p.length||t>=p.length)return;let n=[...p],[r]=n.splice(e,1);n.splice(t,0,r),z(n)},[p,z]),fe=(0,q.useRef)(null),pe=F||ee||P,me=(+!!F+ +!!P+ +!!ee)*34+12,he=!!re,ge=he?RF(p,re):0,K=he?Math.max(0,j.findIndex(e=>e.name===re)):-1,_e=A.length>0?(0,J.jsxs)(uy,{children:[(0,J.jsx)(dy,{asChild:!0,children:(0,J.jsxs)(X,{type:`button`,variant:`ghost`,size:`sm`,className:`h-7 gap-1.5 text-xs text-muted-foreground`,"data-testid":`line-items-columns`,children:[(0,J.jsx)(pa,{className:`h-3.5 w-3.5`}),g(`table.columns`,{defaultValue:`Columns`}),O.size>0&&(0,J.jsxs)(`span`,{className:`rounded-full bg-primary/10 px-1.5 text-[10px] font-medium text-primary`,children:[`+`,O.size]})]})}),(0,J.jsxs)(fy,{align:`end`,className:`w-56 p-2`,children:[(0,J.jsx)(`div`,{className:`px-1 pb-1.5 text-xs font-medium text-muted-foreground`,children:g(`fields.grid.optionalColumns`,{defaultValue:`Optional columns`})}),(0,J.jsx)(`div`,{className:`max-h-64 space-y-0.5 overflow-y-auto`,children:A.map(e=>{let t=`col-toggle-${e.name}`;return(0,J.jsxs)(Y_,{htmlFor:t,className:`flex cursor-pointer items-center gap-2 rounded-md px-1.5 py-1.5 text-sm font-normal hover:bg-muted`,children:[(0,J.jsx)(rp,{id:t,checked:O.has(e.name),onCheckedChange:()=>M(e.name)}),(0,J.jsx)(`span`,{className:`truncate`,children:e.label||e.name})]},e.name)})})]})]}):null;if(r)return(0,J.jsxs)(`div`,{...Hj(u,`instead-of-the-inputs`),className:Y(`space-y-2`,a),children:[_e&&(0,J.jsx)(`div`,{className:`flex justify-end`,children:_e}),(0,J.jsx)(`div`,{className:`border border-border rounded-lg overflow-x-auto`,"data-testid":`line-items-readonly`,children:(0,J.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,J.jsx)(`thead`,{className:`bg-muted border-b border-border`,children:(0,J.jsxs)(`tr`,{children:[I&&(0,J.jsx)(`th`,{className:`w-10 px-2 py-2 text-right text-xs font-medium text-muted-foreground`,children:`#`}),j.map(e=>(0,J.jsx)(`th`,{style:{minWidth:SF(e)},className:Y(`px-3 py-2 text-xs font-medium text-muted-foreground whitespace-nowrap`,bF(e.type)?`text-right`:`text-left`),children:e.label||e.name},e.name))]})}),(0,J.jsx)(`tbody`,{className:`divide-y divide-border`,children:p.length===0?(0,J.jsx)(`tr`,{children:(0,J.jsx)(`td`,{colSpan:Math.max(j.length+ +!!I,1),className:`px-3 py-6 text-center text-muted-foreground`,children:g(`fields.grid.noItems`,{defaultValue:`No items`})})}):p.map((e,t)=>(0,J.jsxs)(`tr`,{children:[I&&(0,J.jsx)(`td`,{className:`px-2 py-2 text-right text-muted-foreground tabular-nums`,children:t+1}),j.map(t=>(0,J.jsx)(`td`,{className:Y(`px-3 py-2 text-foreground`,bF(t.type)&&`text-right tabular-nums`),children:t.type===`lookup`&&e[t.name]!=null&&e[t.name]!==``?(0,J.jsx)(_N,{value:e[t.name],onChange:()=>{},readonly:!0,field:{reference:t.reference,displayField:t.displayField,idField:t.idField}}):t.type===`file`||MF(t.type)?IF(t,e[t.name],h,T):e[t.name]!=null&&e[t.name]!==``?String(e[t.name]):`—`},t.name))]},t))}),he&&(0,J.jsx)(`tfoot`,{className:`border-t border-border bg-muted/40`,children:(0,J.jsxs)(`tr`,{children:[(0,J.jsx)(`td`,{colSpan:Math.max(+!!I+K,1),className:`px-3 py-2 text-right text-xs font-medium text-muted-foreground`,children:x}),(0,J.jsx)(`td`,{className:`px-3 py-2 text-right font-semibold text-foreground tabular-nums`,children:ge.toLocaleString(h)}),j.length-K-1>0&&(0,J.jsx)(`td`,{colSpan:j.length-K-1})]})})]})})]});let ve=!D&&N&&(ne==null||p.length<ne),ye=ve?[...p,B()]:p,be=!!o&&p.length===0,xe=(e,t,n,r,a=!1)=>{let o=r?.[e.name],s=i||E(e,r).readonly;if(D)return e.type===`lookup`&&o!=null&&o!==``?(0,J.jsx)(_N,{value:o,onChange:()=>{},readonly:!0,field:{reference:e.reference,displayField:e.displayField,idField:e.idField}}):(0,J.jsx)(`span`,{className:Y(`px-2 text-sm text-foreground`,bF(e.type)&&`tabular-nums`,(o==null||o===``)&&`text-muted-foreground`),children:IF(e,o,h,T)});if(e.computed)return(0,J.jsx)(`span`,{className:Y(`block px-2 text-sm tabular-nums`,bF(e.type)?`text-right`:`text-left`,o==null||o===``?`text-muted-foreground`:`text-foreground`),title:g(`fields.grid.computed`,{defaultValue:`Computed`}),"data-computed":e.name,children:IF(e,o,h,T)});if(e.type===`lookup`)return(0,J.jsx)(_N,{value:o,onChange:t=>H(n,e.name,t),onSelectRecord:t=>ae(n,e,t),compact:!0,field:{reference:e.reference,displayField:e.displayField,idField:e.idField,multiple:e.multiple,options:e.options,placeholder:`—`},disabled:s,error:a?S(e):void 0});if(e.type===`file`)return(0,J.jsx)(rF,{value:o,onChange:t=>H(n,e.name,t),multiple:e.multiple,accept:Array.isArray(e.accept)&&e.accept.length>0?e.accept.join(`,`):void 0,disabled:s,"aria-label":e.label||e.name,"data-cell":`${n}-${t}`,error:a?S(e):void 0});if(e.type===`select`)return(0,J.jsxs)(vy,{value:o==null?``:String(o),onValueChange:t=>oe(n,e,t),disabled:s,children:[(0,J.jsx)(by,{className:`h-8 rounded-none border-0 bg-transparent px-2 shadow-none focus:ring-1 focus:ring-ring/60`,"aria-label":e.label||e.name,"aria-invalid":a||void 0,children:(0,J.jsx)(yy,{placeholder:`—`})}),(0,J.jsx)(Cy,{children:(e.options||[]).map(e=>(0,J.jsx)(Ty,{value:e.value,children:e.label},e.value))})]});let c=e.type===`currency`?PF(e,T,h):``,l=(e.type===`date`||e.type===`datetime`)&&Oe(o),u=l?`${C}-impossible-${n}-${t}`:void 0;return(0,J.jsxs)(`div`,{className:`relative`,children:[c&&(0,J.jsx)(`span`,{className:`pointer-events-none absolute left-2 top-1/2 -translate-y-1/2 text-xs text-muted-foreground`,children:c}),(0,J.jsx)(Pv,{"data-cell":`${n}-${t}`,"aria-invalid":a||l||void 0,"aria-describedby":u,onKeyDown:e=>se(e,n,t),className:Y(`h-8 rounded-none border-0 bg-transparent px-2 shadow-none focus-visible:ring-1 focus-visible:ring-ring/60`,c&&`pl-6`,bF(e.type)&&`text-right tabular-nums`),type:e.type===`date`?`date`:e.type===`datetime`?`datetime-local`:e.type===`time`?`time`:bF(e.type)?`number`:`text`,step:bF(e.type)?e.step??`any`:void 0,"aria-label":e.label||e.name,value:e.type===`date`?l?``:Me(o):e.type===`datetime`?Qe(o):o==null?``:String(o),onChange:t=>oe(n,e,t.target.value),disabled:s}),l&&(0,J.jsx)(`p`,{id:u,className:`px-2 pb-1 text-xs text-destructive`,"data-testid":`line-items-impossible-day-${n}-${e.name}`,children:g(e.type===`date`?`fields.date.impossibleDay`:`fields.dateTime.impossibleDay`,{value:String(o)})})]})},{"aria-invalid":Se,name:Ce,...we}=xj(u),Te=we[`aria-labelledby`]!=null;return(0,J.jsxs)(`div`,{...we,role:Te?`group`:void 0,className:Y(`space-y-2`,a),"data-testid":`line-items`,children:[_e&&(0,J.jsx)(`div`,{className:`flex justify-end`,children:_e}),(0,J.jsx)(`div`,{className:`border border-border rounded-lg overflow-x-auto`,children:(0,J.jsxs)(`table`,{ref:W,className:`w-full text-sm`,children:[(0,J.jsx)(`thead`,{className:`bg-muted/60 border-b border-border`,children:(0,J.jsxs)(`tr`,{children:[I&&(0,J.jsx)(`th`,{className:Y(`px-2 py-2 text-right text-xs font-medium text-muted-foreground`,R?`w-14`:`w-10`),children:`#`}),j.map(e=>(0,J.jsxs)(`th`,{className:Y(`px-2 py-2 text-xs font-medium text-muted-foreground whitespace-nowrap`,bF(e.type)?`text-right`:`text-left`),style:CF(e),children:[e.label||e.name,e.required&&!e.computed&&(0,J.jsx)(`span`,{className:`text-destructive`,children:` *`})]},e.name)),pe&&(0,J.jsx)(`th`,{style:{width:me}})]})}),(0,J.jsx)(`tbody`,{className:`divide-y divide-border`,children:D&&p.length===0?(0,J.jsx)(`tr`,{children:(0,J.jsx)(`td`,{colSpan:j.length+ +!!pe+ +!!I,className:`px-3 py-6 text-center text-muted-foreground`,children:g(`fields.grid.noItemsAddHint`,{label:d.add_label||g(`detail.add`,{defaultValue:`Add`}),defaultValue:`No items yet — click “{{label}}” to begin.`})})}):ye.map((e,t)=>{let n=ve&&t===p.length,r=R&&!n&&!D;return(0,J.jsxs)(`tr`,{className:Y(`group`,!n&&`hover:bg-muted/30`),...R&&!n?{onDragOver:e=>{fe.current!=null&&e.preventDefault()},onDrop:e=>{e.preventDefault(),fe.current!=null&&(de(fe.current,t),fe.current=null)}}:{},children:[I&&(0,J.jsx)(`td`,{className:`px-1 py-1 text-right align-middle text-xs text-muted-foreground tabular-nums`,children:(0,J.jsxs)(`span`,{className:`inline-flex items-center justify-end gap-0.5`,children:[r&&(0,J.jsx)(`span`,{draggable:!0,onDragStart:()=>{fe.current=t},onDragEnd:()=>{fe.current=null},className:`cursor-grab text-muted-foreground/40 opacity-0 transition-opacity group-hover:opacity-100`,title:_,"aria-label":_,"data-testid":`line-items-drag-${t}`,children:(0,J.jsx)(Ui,{className:`h-3.5 w-3.5`})}),(0,J.jsx)(`span`,{className:Y(n&&`opacity-30`),children:t+1})]})}),j.map((r,i)=>{let a=E(r,e).required,o=(!n||be)&&!D&&a&&!r.computed&&(e[r.name]==null||e[r.name]===``);return(0,J.jsx)(`td`,{title:o?S(r):void 0,"data-testid":o?`line-items-invalid-${t}-${r.name}`:void 0,className:Y(`border-r border-border/40 px-1 py-0.5 align-middle last:border-r-0`,D&&`px-2 py-1.5`,o&&`bg-destructive/5 ring-1 ring-inset ring-destructive/50`),children:xe(r,i,t,e,o)},r.name)}),pe&&(0,J.jsx)(`td`,{className:`px-1 py-0.5 align-middle whitespace-nowrap`,children:(0,J.jsxs)(`div`,{className:`flex items-center justify-center gap-0.5`,children:[!n&&F&&(0,J.jsx)(X,{type:`button`,variant:`ghost`,size:`icon`,className:`h-8 w-8 text-muted-foreground hover:text-foreground`,"aria-label":v,title:v,"data-testid":`line-items-expand-${t}`,onClick:()=>s(t),children:(0,J.jsx)(Xi,{className:`h-3.5 w-3.5`})}),!n&&P&&(0,J.jsx)(X,{type:`button`,variant:`ghost`,size:`icon`,className:`h-8 w-8 text-muted-foreground hover:text-foreground`,"aria-label":y,title:y,"data-testid":`line-items-duplicate-${t}`,onClick:()=>le(t),disabled:i||ne!=null&&p.length>=ne,children:(0,J.jsx)(Di,{className:`h-3.5 w-3.5`})}),!n&&ee&&(0,J.jsx)(X,{type:`button`,variant:`ghost`,size:`icon`,className:`h-8 w-8 text-muted-foreground hover:text-destructive`,"aria-label":b,"data-testid":`line-items-remove-${t}`,onClick:()=>ce(t),disabled:i||p.length<=te,children:(0,J.jsx)(va,{className:`h-4 w-4`})})]})})]},t)})}),he&&(0,J.jsx)(`tfoot`,{className:`border-t border-border bg-muted/40`,children:(0,J.jsxs)(`tr`,{children:[(0,J.jsx)(`td`,{colSpan:Math.max(+!!I+K,1),className:`px-3 py-2 text-right text-xs font-medium text-muted-foreground`,children:x}),(0,J.jsx)(`td`,{className:`px-3 py-2 text-right font-semibold text-foreground tabular-nums`,"data-testid":`line-items-total`,children:ge.toLocaleString(h)}),j.length-K-1+ +!!pe>0&&(0,J.jsx)(`td`,{colSpan:j.length-K-1+ +!!pe})]})})]})}),N&&(0,J.jsxs)(X,{type:`button`,variant:`outline`,size:`sm`,onClick:D&&l?l:U,disabled:ne!=null&&p.length>=ne,"data-testid":`line-items-add`,children:[(0,J.jsx)(ta,{className:`mr-1.5 h-4 w-4`}),d.add_label||g(`fields.grid.addLine`,{defaultValue:`Add line`})]})]})}var BF=zF,VF=t({AvatarField:()=>HF});function HF({value:e,onChange:t,field:n,readonly:r,onUploadingChange:i,error:a,...o}){let[s,c]=q.useState(!1),l=q.useRef(null),{upload:u}=Fa(),{t:d}=wt(),[f,p]=q.useState(!1),[m,h]=q.useState(null),[g,_]=q.useState({});XP(f,i);let v=YP(),y=n,b=ZA(KA(e,``),g)[0]?.url,x=async e=>{let n=e.target.files?.[0];if(l.current&&(l.current.value=``),!n)return;if(!n.type.startsWith(`image/`)){console.error(`Please select an image file`);return}if(n.size>5242880){console.error(`File size must be less than 5MB`);return}h(null);let r=v();p(!0);try{let e=await u(n),r=YA(e,n.name),i=XA(e,n.name);i.id&&_(e=>({...e,[i.id]:i})),t(r)}catch(e){h($P(d,n.name,e))}finally{r(),p(!1)}},S=()=>{t(``)},C=()=>(y?.defaultName||y?.label||`User`).split(` `).map(e=>e[0]).join(``).toUpperCase().slice(0,2);return r?(0,J.jsxs)(ss,{className:`w-16 h-16`,children:[b&&(0,J.jsx)(cs,{src:b,alt:y?.label}),(0,J.jsx)(ls,{children:C()})]}):(0,J.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,J.jsxs)(`div`,{className:`relative`,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:[(0,J.jsxs)(ss,{className:`w-16 h-16`,children:[b&&(0,J.jsx)(cs,{src:b,alt:y?.label}),(0,J.jsx)(ls,{children:C()})]}),!r&&s&&e&&(0,J.jsx)(`button`,{type:`button`,onClick:S,className:`absolute -top-1 -right-1 bg-destructive text-destructive-foreground rounded-full p-1 hover:bg-destructive/90`,children:(0,J.jsx)(Ta,{className:`w-3 h-3`})})]}),(0,J.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,J.jsx)(`input`,{ref:l,type:`file`,accept:`image/*`,onChange:x,className:`hidden`}),(0,J.jsx)(X,{...xj(o),type:`button`,variant:`outline`,size:`sm`,onClick:()=>l.current?.click(),disabled:r||o.disabled||f,"aria-invalid":!!a,children:f?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Ji,{className:`w-4 h-4 mr-2 animate-spin`}),d(`fields.image.uploading`,{defaultValue:`Uploading…`})]}):(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Ca,{className:`w-4 h-4 mr-2`}),e?`Change`:`Upload`,` Avatar`]})}),(0,J.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`PNG, JPG up to 5MB`}),m&&(0,J.jsx)(`p`,{className:`text-xs text-destructive`,children:m})]})]})}var UF=t({SignatureField:()=>WF});function WF({value:e,onChange:t,readonly:n,...r}){let i=(0,q.useRef)(null),[a,o]=q.useState(!1),[s,c]=q.useState(!e);(0,q.useEffect)(()=>{if(e&&i.current){let t=i.current.getContext(`2d`);if(t){let n=new Image;n.onload=()=>{t.drawImage(n,0,0),c(!1)},n.src=e}}},[e]);let l=e=>{if(n)return;o(!0),c(!1);let t=i.current;if(!t)return;let r=t.getContext(`2d`);if(!r)return;let a=t.getBoundingClientRect(),s=`touches`in e?e.touches[0].clientX-a.left:e.clientX-a.left,l=`touches`in e?e.touches[0].clientY-a.top:e.clientY-a.top;r.beginPath(),r.moveTo(s,l)},u=e=>{if(!a||n)return;let t=i.current;if(!t)return;let r=t.getContext(`2d`);if(!r)return;let o=t.getBoundingClientRect(),s=`touches`in e?e.touches[0].clientX-o.left:e.clientX-o.left,c=`touches`in e?e.touches[0].clientY-o.top:e.clientY-o.top;r.lineTo(s,c),r.strokeStyle=`#000`,r.lineWidth=2,r.lineCap=`round`,r.lineJoin=`round`,r.stroke()},d=()=>{if(!a)return;o(!1);let e=i.current;e&&t(e.toDataURL(`image/png`))},f=()=>{let e=i.current;if(!e)return;let n=e.getContext(`2d`);n&&(n.clearRect(0,0,e.width,e.height),c(!0),t(``))},p=Hj(r,`instead-of-the-inputs`);return n&&e?(0,J.jsx)(`div`,{...p,className:`border rounded p-2 bg-white`,children:(0,J.jsx)(`img`,{src:e,alt:`Signature`,loading:`lazy`,className:`max-w-full h-auto`})}):n&&!e?(0,J.jsx)(`span`,{...p,className:`text-sm text-muted-foreground`,children:`No signature`}):(0,J.jsxs)(`div`,{...p,className:`space-y-2`,children:[(0,J.jsx)(`div`,{className:`border rounded bg-white`,children:(0,J.jsx)(`canvas`,{ref:i,width:400,height:200,className:`w-full touch-none cursor-crosshair`,onMouseDown:l,onMouseMove:u,onMouseUp:d,onMouseLeave:d,onTouchStart:l,onTouchMove:u,onTouchEnd:d})}),(0,J.jsxs)(`div`,{className:`flex justify-between items-center`,children:[(0,J.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:s?`Sign above`:`Signature captured`}),(0,J.jsxs)(X,{type:`button`,variant:`outline`,size:`sm`,onClick:f,disabled:n||s,children:[(0,J.jsx)(Pi,{className:`w-4 h-4 mr-2`}),`Clear`]})]})]})}p();var GF=new Map;function KF(e,t){if(!e||typeof e!=`object`)return;if(t){let n=e[t];if(typeof n==`string`&&n.trim())return n.trim();if(typeof n==`number`)return String(n)}for(let t of[`name`,`full_name`,`display_name`,`label`,`title`,`subject`,`username`]){let n=e[t];if(typeof n==`string`&&n.trim())return n.trim();if(typeof n==`number`)return String(n)}let n=e.first_name,r=e.last_name,i=[e.salutation,n,r].filter(e=>typeof e==`string`&&e.trim()).map(e=>e.trim()).join(` `);if(i)return i;let a=e.email;if(typeof a==`string`&&a.trim())return a.trim();let o=new Set([`id`,`_id`,`organization_id`,`created_by`,`updated_by`,`created_at`,`updated_at`,`tenant_id`]),s=[`_name`,`_title`,`_number`,`_code`,`_label`];for(let[t,n]of Object.entries(e))if(!o.has(t)&&!t.endsWith(`_id`)&&s.some(e=>t.endsWith(e))){if(typeof n==`string`&&n.trim())return n.trim();if(typeof n==`number`)return String(n)}}var qF=new Map;async function JF(e,t){let n=()=>{let e=qF.get(t);return e?.state===`ok`?e.schema:void 0},r=qF.get(t);if(r?.state===`pending`)return await r.promise,n();if(r)return n();let i=e?.getObjectSchema;if(typeof i!=`function`)return;let a=Promise.resolve().then(()=>i.call(e,t)).then(e=>{qF.set(t,{state:`ok`,schema:e})}).catch(()=>{qF.set(t,{state:`err`})});return qF.set(t,{state:`pending`,promise:a}),await a,n()}function YF(e){let t=q.useContext(z)?.dataSource,[,n]=q.useState(0),r=!!e&&!!t&&typeof t.getObjectSchema==`function`;if(q.useEffect(()=>{if(!r)return;let i=qF.get(e);if(i&&i.state!==`pending`)return;let a=!0;return JF(t,e).then(()=>{a&&n(e=>e+1)}),()=>{a=!1}},[r,e,t]),!r)return;let i=qF.get(e);return i?.state===`ok`?i.schema:void 0}function XF(e,t,n,r,i){if(!e||typeof e!=`object`)return;let a=Ae(e,r,i);if(t){let e=j(t,a,{titleField:n}),r=a.id??a._id;if(!(e===`Untitled`||r!=null&&e===`Record #${r}`)&&e)return e}return KF(a,n)}function ZF(e,t,n,r){let i=q.useContext(z)?.dataSource,[,a]=q.useState(0),o=!!e&&!!i&&typeof i.find==`function`&&(typeof t==`string`||typeof t==`number`)&&t!==``,s=o?`${e}:${String(t)}:${n??``}`:``;if(q.useEffect(()=>{if(!o)return;let n=GF.get(s);if(n&&n.state!==`pending`&&n.promise==null||n?.state===`pending`)return;let r=(async()=>{try{let n;if(typeof i.findOne==`function`)n=await i.findOne(e,t);else{let r=await i.find(e,{$filter:{id:t},$top:1});n=re(r)[0]}let r=await JF(i,e);GF.set(s,{state:`ok`,record:n,schema:r})}catch{GF.set(s,{state:`err`})}a(e=>e+1)})();GF.set(s,{state:`pending`,promise:r})},[s,o,e,t,i]),!o)return;let c=GF.get(s);return c?.state===`ok`?XF(c.record,c.schema,n,r,e):void 0}function QF(){let{t:e}=wt();return(t,n)=>{let r=e(t);return!r||r===t?n:r}}function $F(){let{t:e}=wt();return e}function eI(e){return h(e)||typeof e==`string`&&e.trim()===``}function tI(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&!(e instanceof Date)}function nI(e,t,n){let r=Number.isFinite(e)&&e===Math.trunc(e)?0:t?nj(t):2;if(!t)return iI(e,r,n);try{return We(e,{locale:n,currency:t,minimumFractionDigits:r,maximumFractionDigits:r})}catch{return`${t} ${e.toFixed(r)}`}}function rI(e,t,n){if(!t)try{return We(e,{locale:n,notation:`compact`,maximumFractionDigits:1}).replace(/\.0(?=[KMBT])/,``)}catch{return String(e)}try{return We(e,{locale:n,currency:t,notation:`compact`,maximumFractionDigits:1}).replace(/\.0(?=[KMBT])/,``)}catch{return`${t} ${e}`}}function iI(e,t=2,n){try{return We(e,{locale:n,minimumFractionDigits:t,maximumFractionDigits:t})}catch{return e.toFixed(t)}}function aI(e,t,n){try{return We(e,{locale:n,style:`percentPoints`,minimumFractionDigits:t,maximumFractionDigits:t})}catch{return`${e.toFixed(t)}%`}}function oI(e,t=0,n){return aI(Ue(e),t,n)}function sI({text:e,className:t}){return(0,J.jsx)(`span`,{className:Y(`block max-w-full truncate`,t),title:e,children:e})}function cI({value:e}){let t=$A(e);return h(t)?(0,J.jsx)($,{}):(0,J.jsx)(sI,{text:String(t)})}function lI({value:e,field:t}){let n=Ct(),r=$A(e);if(eI(r))return(0,J.jsx)($,{});let i=t,a=typeof i.scale==`number`?i.scale:void 0,o=`useGrouping`in t&&typeof t.useGrouping==`boolean`?t.useGrouping:void 0,s=Number(r),c=isNaN(s)?String(r):We(s,{locale:n,scale:a,useGrouping:o,minimumFractionDigits:a??0,maximumFractionDigits:a??20});return(0,J.jsx)(`span`,{className:`tabular-nums`,children:c})}function uI({value:e,field:t}){let{currency:n}=yt(),r=Ct(),i=$A(e);if(eI(i))return(0,J.jsx)($,{});let a=bt(t,n),o=Number(i),s=isNaN(o)?String(i):nI(o,a,r);return(0,J.jsx)(`span`,{className:`tabular-nums font-medium whitespace-nowrap`,children:s})}function dI({value:e,field:t}){let n=Ct(),r=$A(e);if(eI(r))return(0,J.jsx)($,{});let i=t,a=c({type:i.type,scale:i.scale}),o=Number(r);if(isNaN(o))return(0,J.jsx)(`span`,{className:`tabular-nums whitespace-nowrap`,children:String(r)});let s=Ue(o),l=oI(o,a,n),u=Math.max(0,Math.min(100,s));return(0,J.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,J.jsx)(`div`,{className:`h-1.5 w-16 min-w-0 shrink rounded-full bg-muted ring-1 ring-inset ring-border/60 overflow-hidden`,role:`progressbar`,"aria-valuenow":u,"aria-valuemin":0,"aria-valuemax":100,children:(0,J.jsx)(`div`,{className:`h-full rounded-full bg-primary transition-all`,style:{width:`${u}%`}})}),(0,J.jsx)(`span`,{className:`shrink-0 tabular-nums whitespace-nowrap`,children:l})]})}var fI=new Set([`active`,`is_active`,`enabled`,`is_enabled`,`verified`,`is_verified`]);function pI({value:e,field:t}){if(typeof e!=`boolean`)return(0,J.jsx)(`span`,{className:`flex items-center justify-center`,children:(0,J.jsx)($,{})});let n=t?.name?.toLowerCase()||``;return n===`completed`||n===`is_completed`||n===`done`||n===`is_done`?(0,J.jsx)(`div`,{className:`flex items-center justify-center`,children:e?(0,J.jsx)(`div`,{className:`size-5 rounded-full bg-green-500 flex items-center justify-center`,role:`img`,"aria-label":`Completed`,"data-testid":`completion-indicator`,children:(0,J.jsx)(pi,{className:`size-3 text-white`})}):(0,J.jsx)(`div`,{className:`size-5 rounded-full border-2 border-muted-foreground/30`,role:`img`,"aria-label":`Not completed`,"data-testid":`completion-indicator`})}):fI.has(n)&&e===!1?(0,J.jsxs)(ds,{variant:`destructive`,className:`text-xs`,"data-testid":`boolean-warning-badge`,children:[t?.label||H(n),` — Off`]}):(0,J.jsx)(`div`,{className:`flex items-center justify-start`,children:(0,J.jsx)(rp,{checked:e,disabled:!0,className:`pointer-events-none`})})}var mI=/(^|_)(due|deadline|expires?|expiry|expiration|expected_close|target_close|sla|return_by|renewal|next_action)(_|$)/;function hI(e){if(e?.dueLike===!0)return!0;let t=e,n=String(t?.name||t?.accessorKey||t?.key||``).toLowerCase();return mI.test(n)}function gI(e,t){if(!t)return!1;let n=new Date;return n.setHours(0,0,0,0),e<n}function _I({value:e,field:t}){let n=Ct(),r=$F();if(!e)return(0,J.jsx)($,{});let i=$A(e);if(eI(i))return(0,J.jsx)($,{});let a=i==null?null:S(i);if(a===null||isNaN(a.getTime()))return(0,J.jsx)($,{});let o=new Date(i),s=t.format||`relative`,c=hI(t),l=ut(i,s,{dueLike:c,locale:n,t:r}),u=gI(a,c);return(0,J.jsx)(`span`,{className:`tabular-nums${u?` text-red-600`:``}`,title:o.toISOString(),children:l})}function vI({value:e,field:t}){let n=Ct(),r=$F();if(!e)return(0,J.jsx)($,{});let i=$A(e),a=i==null?null:S(i);if(a===null||isNaN(a.getTime()))return(0,J.jsx)($,{});let o=new Date(i),s=t?.format||`compact`,c=s===`short`?`compact`:s,l=hI(t),u=`tabular-nums text-sm whitespace-nowrap${gI(o,l)?` text-red-600`:``}`;if(c===`relative`)return(0,J.jsx)(`span`,{className:u,children:lt(o,{dueLike:l,locale:n,t:r})});if(c===`compact`){let e=y(o,{locale:n});if(e)return(0,J.jsxs)(`span`,{className:u,children:[(0,J.jsx)(`span`,{children:e.date}),(0,J.jsx)(`span`,{className:`ml-2 text-muted-foreground`,children:e.time})]})}return(0,J.jsx)(`span`,{className:u,children:U(o,{style:c,locale:n,t:r})})}var yI={critical:`red`,urgent:`red`,high:`orange`,medium:`yellow`,normal:`blue`,low:`gray`,none:`gray`,paid:`green`,completed:`green`,done:`green`,active:`green`,approved:`green`,resolved:`green`,pending:`yellow`,waiting:`yellow`,on_hold:`yellow`,shipped:`blue`,in_progress:`blue`,open:`blue`,processing:`blue`,draft:`gray`,new:`gray`,inactive:`gray`,closed:`gray`,cancelled:`red`,canceled:`red`,rejected:`red`,failed:`red`,overdue:`red`,delivered:`purple`,archived:`indigo`,contacted:`blue`,qualified:`purple`,converted:`green`,won:`green`,lost:`red`,紧急:`red`,严重:`red`,高:`orange`,中:`yellow`,普通:`blue`,低:`gray`,无:`gray`,新建:`gray`,草稿:`gray`,待处理:`yellow`,待审核:`yellow`,待联系:`yellow`,挂起:`yellow`,进行中:`blue`,处理中:`blue`,已联系:`blue`,跟进中:`blue`,已发货:`blue`,打开:`blue`,已确认:`green`,已审核:`green`,已通过:`green`,已完成:`green`,已支付:`green`,已签收:`green`,已转化:`green`,成单:`green`,赢得:`green`,已签约:`green`,已交付:`purple`,已归档:`indigo`,已关闭:`gray`,已取消:`red`,已拒绝:`red`,失败:`red`,逾期:`red`,流失:`red`,丢失:`red`},bI={gray:`bg-gray-50 text-gray-700 border-gray-200 dark:bg-gray-800/50 dark:text-gray-200 dark:border-gray-700/60`,red:`bg-red-50 text-red-700 border-red-200 dark:bg-red-950/40 dark:text-red-300 dark:border-red-900/60`,orange:`bg-orange-50 text-orange-700 border-orange-200 dark:bg-orange-950/40 dark:text-orange-300 dark:border-orange-900/60`,yellow:`bg-yellow-50 text-yellow-800 border-yellow-200 dark:bg-yellow-950/40 dark:text-yellow-300 dark:border-yellow-900/60`,green:`bg-green-50 text-green-700 border-green-200 dark:bg-green-950/40 dark:text-green-300 dark:border-green-900/60`,blue:`bg-blue-50 text-blue-700 border-blue-200 dark:bg-blue-950/40 dark:text-blue-300 dark:border-blue-900/60`,indigo:`bg-indigo-50 text-indigo-700 border-indigo-200 dark:bg-indigo-950/40 dark:text-indigo-300 dark:border-indigo-900/60`,purple:`bg-purple-50 text-purple-700 border-purple-200 dark:bg-purple-950/40 dark:text-purple-300 dark:border-purple-900/60`,pink:`bg-pink-50 text-pink-700 border-pink-200 dark:bg-pink-950/40 dark:text-pink-300 dark:border-pink-900/60`},xI={gray:`bg-gray-400 dark:bg-gray-500`,red:`bg-red-500`,orange:`bg-orange-500`,yellow:`bg-yellow-500`,green:`bg-green-500`,blue:`bg-blue-500`,indigo:`bg-indigo-500`,purple:`bg-purple-500`,pink:`bg-pink-500`},SI=[`blue`,`green`,`purple`,`orange`,`pink`,`indigo`,`yellow`,`red`];function CI(e){let t=5381;for(let n=0;n<e.length;n++)t=(t<<5)+t^e.charCodeAt(n);return SI[Math.abs(t)%SI.length]}function wI(e){let t=/^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.exec(e.trim());if(!t)return;let n=t[1];n.length===3&&(n=n.split(``).map(e=>e+e).join(``));let r=parseInt(n.slice(0,2),16)/255,i=parseInt(n.slice(2,4),16)/255,a=parseInt(n.slice(4,6),16)/255,o=Math.max(r,i,a),s=Math.min(r,i,a),c=o-s,l=(o+s)/2;if((c===0?0:c/(1-Math.abs(2*l-1)))<.22)return`gray`;let u;return u=o===r?((i-a)/c%6+6)%6:o===i?(a-r)/c+2:(r-i)/c+4,u*=60,u>=345||u<15?`red`:u<30?`orange`:u<60?`yellow`:u<170?`green`:u<238?`blue`:u<250?`indigo`:u<295?`purple`:`pink`}function TI(e){if(e){if(bI[e])return e;if(e.charAt(0)===`#`)return wI(e)}}var EI=4.5,DI=1.9,OI={r:255,g:255,b:255},kI={r:10,g:10,b:10},AI=(e,t,n)=>Math.min(n,Math.max(t,e));function jI(e){let t=/^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.exec(e.trim());if(!t)return;let n=t[1];return n.length===3&&(n=n.split(``).map(e=>e+e).join(``)),{r:parseInt(n.slice(0,2),16),g:parseInt(n.slice(2,4),16),b:parseInt(n.slice(4,6),16)}}function MI({r:e,g:t,b:n}){let r=e/255,i=t/255,a=n/255,o=Math.max(r,i,a),s=Math.min(r,i,a),c=o-s,l=(o+s)/2,u=c===0?0:c/(1-Math.abs(2*l-1)),d=0;return c!==0&&(d=o===r?((i-a)/c%6+6)%6:o===i?(a-r)/c+2:(r-i)/c+4,d*=60),{h:d,s:u,l}}function NI(e,t,n){let r=(e%360+360)%360,i=(1-Math.abs(2*n-1))*t,a=i*(1-Math.abs(r/60%2-1)),o=n-i/2,s;return s=r<60?[i,a,0]:r<120?[a,i,0]:r<180?[0,i,a]:r<240?[0,a,i]:r<300?[a,0,i]:[i,0,a],{r:Math.round((s[0]+o)*255),g:Math.round((s[1]+o)*255),b:Math.round((s[2]+o)*255)}}var PI=({r:e,g:t,b:n})=>`#`+[e,t,n].map(e=>AI(Math.round(e),0,255).toString(16).padStart(2,`0`)).join(``);function FI({r:e,g:t,b:n}){let r=e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};return .2126*r(e)+.7152*r(t)+.0722*r(n)}function II(e,t){let n=FI(e),r=FI(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function LI(e,t,n,r,i){let a,o=1/0;for(let s=0;s<=100;s++){let c=s/100,l=NI(e,t,c);if(II(l,r)<i)continue;let u=Math.abs(c-n);u<o&&(o=u,a=l)}if(a)return a;let s={r:0,g:0,b:0},c={r:255,g:255,b:255};return II(s,r)>=II(c,r)?s:c}function RI(e){let t=jI(e);if(!t)return;let{h:n,s:r,l:i}=MI(t),a=AI(r,.18,.92),o=.95-.32*(1-i),s=NI(n,a*(.55+.25*(1-i)),o),c=NI(n,a*.62,AI(o-.14,0,1)),l=LI(n,a,i,s,EI),u=.1+.3*i,d=NI(n,a*.6,u),f=NI(n,a*.55,AI(u+.12,0,1)),p=LI(n,a,i,d,EI);return{bg:PI(s),fg:PI(l),border:PI(c),bgDark:PI(d),fgDark:PI(p),borderDark:PI(f),dot:PI(LI(n,a,i,OI,DI)),dotDark:PI(LI(n,a,i,kI,DI))}}var zI=`bg-[color:var(--os-badge-bg)] text-[color:var(--os-badge-fg)] border-[color:var(--os-badge-border)] dark:bg-[color:var(--os-badge-bg-dark)] dark:text-[color:var(--os-badge-fg-dark)] dark:border-[color:var(--os-badge-border-dark)]`,BI=`bg-[color:var(--os-dot-bg)] dark:bg-[color:var(--os-dot-bg-dark)]`;function VI(e){if(!e||e.charAt(0)!==`#`)return;let t=RI(e);if(t)return{className:zI,style:{"--os-badge-bg":t.bg,"--os-badge-fg":t.fg,"--os-badge-border":t.border,"--os-badge-bg-dark":t.bgDark,"--os-badge-fg-dark":t.fgDark,"--os-badge-border-dark":t.borderDark}}}function HI(e){if(!e||e.charAt(0)!==`#`)return;let t=RI(e);if(t)return{className:BI,style:{"--os-dot-bg":t.dot,"--os-dot-bg-dark":t.dotDark}}}function UI(e,t){let n=TI(e);if(n&&bI[n])return bI[n];if(t==null||t===``)return`bg-muted text-muted-foreground border-border`;let r=String(t).toLowerCase().replace(/[\s-]/g,`_`),i=yI[r];return i&&bI[i]?bI[i]:bI[CI(r)]}function WI(e,t){let n=TI(e);if(n&&bI[n])return n;if(t==null||t===``)return;let r=String(t).toLowerCase().replace(/[\s-]/g,`_`);return yI[r]||CI(r)}var GI={gray:`#6b7280`,red:`#ef4444`,orange:`#f97316`,yellow:`#eab308`,green:`#22c55e`,blue:`#3b82f6`,indigo:`#6366f1`,purple:`#a855f7`,pink:`#ec4899`};function KI(e,t=`#3b82f6`){return e?GI[e]??t:t}function qI({value:e,field:t}){let n=t,r=n.options||[],i=n.appearance===`dot`?`dot`:`badge`;if(h(e))return(0,J.jsx)($,{});let a=e=>{let t=r.find(t=>t.value===e);if(t)return t;let n=String(e).toLowerCase();return r.find(e=>String(e.value).toLowerCase()===n)},o=(e,t)=>{let n=a(e),r=n?.label||(tI(e)?String($A(e)):H(String(e)));if(i===`dot`){let i=HI(n?.color),a=TI(n?.color)||yI[String(e).toLowerCase().replace(/[\s-]/g,`_`)]||CI(String(e).toLowerCase().replace(/[\s-]/g,`_`)),o=i?i.className:xI[a]||xI.gray;return(0,J.jsxs)(`span`,{className:`inline-flex max-w-full items-center gap-1.5 text-sm`,title:r,children:[(0,J.jsx)(`span`,{className:Y(`h-1.5 w-1.5 rounded-full shrink-0`,o),style:i?.style,"aria-hidden":`true`}),(0,J.jsx)(`span`,{className:`min-w-0 truncate`,children:r})]},t)}let o=VI(n?.color),s=o?o.className:UI(n?.color,e);return(0,J.jsx)(ds,{variant:`outline`,className:Y(`max-w-full min-w-0`,s),style:o?.style,title:r,children:(0,J.jsx)(`span`,{className:`truncate`,children:r})},t)};return Array.isArray(e)?(0,J.jsx)(`div`,{className:Y(`flex flex-wrap`,i===`dot`?`gap-x-3 gap-y-1`:`gap-1`),children:e.map((e,t)=>o(e,t))}):o(e)}function JI({value:e}){let t=QF(),[n,r]=q.useState(!1);if(!e)return(0,J.jsx)($,{});let i=$A(e);if(eI(i))return(0,J.jsx)($,{});let a=String(i);return tI(e)?(0,J.jsx)(sI,{text:a}):(0,J.jsxs)(`span`,{className:`inline-flex items-center gap-1 group/email`,children:[(0,J.jsx)(X,{variant:`link`,className:`p-0 h-auto font-normal text-blue-600 hover:text-blue-800`,asChild:!0,children:(0,J.jsx)(`a`,{href:`mailto:${a}`,onClick:e=>e.stopPropagation(),children:a})}),(0,J.jsx)(`button`,{type:`button`,className:`opacity-0 group-hover/email:opacity-100 transition-opacity p-0.5 rounded hover:bg-muted`,onClick:e=>{e.stopPropagation(),e.preventDefault(),navigator.clipboard.writeText(a).then(()=>{r(!0),setTimeout(()=>r(!1),2e3)}).catch(()=>{})},"aria-label":t(`detail.copyEmail`,`Copy email`),children:n?(0,J.jsx)(pi,{className:`h-3 w-3 text-green-600`}):(0,J.jsx)(Di,{className:`h-3 w-3 text-muted-foreground`})})]})}function YI({value:e}){if(!e)return(0,J.jsx)($,{});let t=$A(e);if(eI(t))return(0,J.jsx)($,{});let n=String(t);return tI(e)?(0,J.jsx)(sI,{text:n}):(0,J.jsx)(X,{variant:`link`,className:`p-0 h-auto font-normal text-blue-600 hover:text-blue-800`,asChild:!0,children:(0,J.jsx)(`a`,{href:n,target:`_blank`,rel:`noopener noreferrer`,onClick:e=>e.stopPropagation(),children:n})})}function XI({value:e}){let t=QF(),[n,r]=q.useState(!1);if(!e)return(0,J.jsx)($,{});let i=$A(e);if(eI(i))return(0,J.jsx)($,{});let a=String(i);return tI(e)?(0,J.jsx)(sI,{text:a}):(0,J.jsxs)(`span`,{className:`inline-flex items-center gap-1 group/phone`,children:[(0,J.jsxs)(`a`,{href:`tel:${a}`,className:`inline-flex items-center gap-1 text-blue-600 hover:text-blue-800`,onClick:e=>e.stopPropagation(),children:[(0,J.jsx)(ea,{className:`h-3 w-3`}),a]}),(0,J.jsx)(`button`,{type:`button`,className:`opacity-0 group-hover/phone:opacity-100 transition-opacity p-0.5 rounded hover:bg-muted`,onClick:e=>{e.stopPropagation(),e.preventDefault(),navigator.clipboard.writeText(a).then(()=>{r(!0),setTimeout(()=>r(!1),2e3)}).catch(()=>{})},"aria-label":t(`detail.copyPhone`,`Copy phone number`),children:n?(0,J.jsx)(pi,{className:`h-3 w-3 text-green-600`}):(0,J.jsx)(Di,{className:`h-3 w-3 text-muted-foreground`})})]})}function ZI({value:e,field:t}){let n=$F();if(!e)return(0,J.jsx)($,{});t.multiple;let r=n?.(`fields.file.fileFallback`),i=!r||r===`fields.file.fileFallback`?`File`:r,a=(e,t)=>(0,J.jsx)(QA,{view:e,className:`text-sm`,fallback:(0,J.jsx)(sI,{text:e.name,className:`text-sm`})},t),o=e=>{let t=n?.(`detail.fileCount`,{count:e});return!t||t===`detail.fileCount`?`${e} ${e===1?`file`:`files`}`:t};if(Array.isArray(e)){let t=KA(e,i);return t.length===0?(0,J.jsx)(`span`,{className:`text-sm text-gray-600`,children:o(t.length)}):(0,J.jsx)(`span`,{className:`flex min-w-0 max-w-full flex-wrap items-center gap-x-2 gap-y-0.5`,children:t.map((e,t)=>a(e,t))})}return tI(e)&&Object.keys(e).length===0?(0,J.jsx)($,{}):a(GA(e,i))}function QI(e){return KA(e,``).filter(e=>e.url).map(e=>({url:e.url,name:e.name||void 0}))}function $I({value:e}){let{t}=wt(),[n,r]=q.useState(null),i=q.useMemo(()=>QI(e),[e]);if(!e||i.length===0)return(0,J.jsx)($,{});let a=(e,n)=>n||t(`fields.image.imageAlt`,{index:e+1}),o=e=>t=>{t.stopPropagation(),r(e)},s=i.length>1,c=n!==null&&(0,J.jsx)(BA,{images:i,index:n,open:!0,onOpenChange:e=>!e&&r(null),onIndexChange:r});return s?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(`div`,{className:`flex -space-x-2`,children:[i.slice(0,3).map((e,t)=>(0,J.jsx)(`img`,{src:e.url,alt:a(t,e.name),onClick:o(t),className:`size-8 cursor-zoom-in rounded-md border-2 border-background object-cover transition-transform hover:scale-110 hover:z-10`},t)),i.length>3&&(0,J.jsxs)(`button`,{type:`button`,onClick:o(3),className:`size-8 rounded-md border-2 border-background bg-muted flex items-center justify-center text-xs font-medium text-muted-foreground hover:bg-muted/80`,children:[`+`,i.length-3]})]}),c]}):(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`img`,{src:i[0].url,alt:a(0,i[0].name),onClick:o(0),className:`size-10 cursor-zoom-in rounded-md object-cover transition-transform hover:scale-105`}),c]})}function eL(e){return QI(e.value).length>0?(0,J.jsx)($I,{...e}):(0,J.jsx)(cI,{...e})}function tL(e){if(e!=null&&e!==``){if(typeof e==`object`){let t=e.id??e._id;return typeof t==`number`||typeof t==`string`&&t!==``?t:void 0}if(typeof e==`string`||typeof e==`number`)return e}}function nL({objectName:e,recordId:t,className:n,children:r}){let i=w(),a=e&&t!=null&&t!==``&&i?.recordHref?i.recordHref(e,t):null;return a?(0,J.jsx)(`a`,{href:a,className:Y(`text-primary underline-offset-4 hover:underline`,n),onClick:n=>{n.stopPropagation(),!(n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.button!==0)&&i?.openRecord&&(n.preventDefault(),i.openRecord(e,t))},children:r}):(0,J.jsx)(J.Fragment,{children:r})}var rL=3;function iL({value:e,field:t}){let n=t.reference,r=t.displayField||t.reference_field||void 0,i=YF(n),a=MA(),o=(()=>{if(Array.isArray(e))return e.find(e=>e!=null&&(typeof e==`string`||typeof e==`number`)&&e!==``);if(e!=null&&e!==``&&(typeof e==`string`||typeof e==`number`)&&typeof e!=`object`)return e})(),s=ZF(n,o,r,a);if(h(e))return(0,J.jsx)($,{});if(typeof e==`string`){let t=e.trim();if(t.startsWith(`{`)&&t.endsWith(`}`)){let e=``,o;try{let s=JSON.parse(t);s&&typeof s==`object`&&(e=XF(s,i,r,a,n)||String(s.externalId??s.id??s._id??``),o=tL(s))}catch{}if(e)return(0,J.jsx)(nL,{objectName:n,recordId:o,children:(0,J.jsx)(sI,{text:e})})}}if(!Array.isArray(e)&&typeof e==`object`){let t=e,o=XF(t,i,r,a,n)||String(t.id||t._id||``);if(o)return(0,J.jsx)(nL,{objectName:n,recordId:tL(t),children:(0,J.jsx)(sI,{text:o})})}let c=t.options||[],l=e=>{if(c.length>0){let t=c.find(t=>String(t.value)===String(e));if(t)return{text:t.label,unresolved:!1}}return e===o&&s?{text:s,unresolved:!1}:{text:String(e),unresolved:!0}};if(Array.isArray(e)){let t=e=>{if(typeof e==`object`&&e)return{label:XF(e,i,r,a,n)||String(e.id||e._id||`[Object]`),unresolved:!1};let t=l(e);return{label:t.text,unresolved:t.unresolved}},o=e.slice(0,rL),s=e.slice(rL);return(0,J.jsxs)(`div`,{className:`flex flex-wrap gap-1`,children:[o.map((e,r)=>{let{label:i,unresolved:a}=t(e);return(0,J.jsx)(nL,{objectName:n,recordId:tL(e),className:`text-inherit`,children:(0,J.jsx)(`span`,{className:Y(`inline-flex items-center px-2 py-0.5 rounded text-xs font-medium`,a?`bg-muted/40 text-muted-foreground`:`bg-gray-50 text-gray-700 dark:bg-gray-800/50 dark:text-gray-200`),children:a?(0,J.jsx)(sL,{value:i}):i})},r)}),s.length>0&&(0,J.jsxs)(`span`,{className:`inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-muted/40 text-muted-foreground`,title:s.map(e=>t(e).label).join(`, `),children:[`+`,s.length]})]})}if(typeof e==`object`&&e){let t=XF(e,i,r,a,n)||String(e.id||e._id||`[Object]`);return(0,J.jsx)(nL,{objectName:n,recordId:tL(e),children:(0,J.jsx)(sI,{text:t})})}let{text:u,unresolved:d}=l(e);return(0,J.jsx)(nL,{objectName:n,recordId:tL(e),children:d?(0,J.jsx)(sL,{value:u}):(0,J.jsx)(sI,{text:u})})}function aL({value:e}){let t=$A(e);return h(t)?(0,J.jsx)($,{}):(0,J.jsx)(`span`,{className:`text-gray-700 font-mono text-sm`,children:String(t)})}function oL({value:e,className:t}){let n=$F(),r=String(e),i=n?.(`detail.unresolvedReference`,{value:r}),a=!i||i===`detail.unresolvedReference`?`Unresolved reference: ${r} was not resolved to a user`:i;return(0,J.jsx)(cL,{raw:r,hint:a,className:t})}function sL({value:e,className:t}){let n=$F(),r=String(e),i=n?.(`detail.unresolvedLookupReference`,{value:r}),a=!i||i===`detail.unresolvedLookupReference`?`Unresolved reference: ${r} was not resolved to a record on this screen`:i;return(0,J.jsx)(cL,{raw:r,hint:a,className:t})}function cL({raw:e,hint:t,className:n}){return(0,J.jsxs)(`span`,{"data-slot":`unresolved-reference`,className:Y(`inline-flex min-w-0 max-w-full items-center gap-1 text-muted-foreground`,n),title:t,children:[(0,J.jsx)(wi,{className:`size-3.5 shrink-0`,"aria-hidden":`true`}),(0,J.jsx)(`span`,{className:`truncate`,children:e})]})}function lL({value:e,field:t}){let n=MA(),r=t?.reference||`sys_user`;if(h(e)||!e)return(0,J.jsx)($,{});if(typeof e!=`object`)return(0,J.jsx)(oL,{value:e});if(Array.isArray(e))return(0,J.jsxs)(`div`,{className:`flex -space-x-2`,children:[e.slice(0,3).map((e,t)=>{if(typeof e!=`object`||!e)return(0,J.jsx)(oL,{value:e,className:`text-sm`},t);let i=Ae(e,n,r);if(tI(i)&&Object.keys(i).length===0)return(0,J.jsx)(sI,{text:String($A(i)),className:`text-sm`},t);let a=i.name||i.username||`User`,o=a.split(` `).map(e=>e[0]).join(``).toUpperCase().slice(0,2);return(0,J.jsxs)(ss,{className:`size-8 border-2 border-white`,title:a,children:[i.image&&(0,J.jsx)(cs,{src:i.image,alt:a}),(0,J.jsx)(ls,{className:`bg-blue-500 text-white text-xs`,children:o})]},t)}),e.length>3&&(0,J.jsx)(ss,{className:`size-8 border-2 border-white`,children:(0,J.jsxs)(ls,{className:`bg-gray-200 text-gray-600 text-xs`,children:[`+`,e.length-3]})})]});let i=Ae(e,n,r);if(Object.keys(i).length===0)return(0,J.jsx)(sI,{text:String($A(i))});let a=i.name||i.username||`User`,o=a.split(` `).map(e=>e[0]).join(``).toUpperCase().slice(0,2);return(0,J.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,J.jsxs)(ss,{className:`size-8`,children:[i.image&&(0,J.jsx)(cs,{src:i.image,alt:a}),(0,J.jsx)(ls,{className:`bg-blue-500 text-white text-xs`,children:o})]}),(0,J.jsx)(sI,{text:String(a)})]})}var uL=new Map;function dL(e,t){uL.set(e,t)}var fL={phone:`phone`,tel:`phone`,telephone:`phone`,email:`email`,url:`url`,uri:`url`,link:`url`,currency:`currency`,money:`currency`,percent:`percent`,percentage:`percent`},pL=new Set([`text`,`textarea`,`string`,`longtext`,``]);function mL(e){if(!e)return`text`;if(typeof e==`string`)return e;let t=(e.type||``).toLowerCase(),n=e.format,r=typeof n==`string`?n.toLowerCase():``;return r&&fL[r]&&pL.has(t)?fL[r]:e.type||`text`}function hL({value:e}){if(h(e)&&!Array.isArray(e))return(0,J.jsx)($,{});let t;if(typeof e==`object`)try{t=JSON.stringify(e)}catch{t=String(e)}else t=String(e);return(0,J.jsx)(sI,{text:t,className:`font-mono text-xs text-gray-600`})}function gL({value:e}){if(h(e))return(0,J.jsx)($,{});if(tI(e)){let t=$A(e);return eI(t)?(0,J.jsx)($,{}):(0,J.jsx)(sI,{text:String(t)})}let t=String(e);return eI(t)?(0,J.jsx)($,{}):(0,J.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 text-sm`,children:[(0,J.jsx)(`span`,{className:`h-3.5 w-3.5 rounded border border-black/10 shrink-0`,style:{backgroundColor:t},"aria-hidden":`true`}),(0,J.jsx)(`span`,{className:`font-mono text-xs`,children:t})]})}function _L({value:e}){if(h(e)&&!Array.isArray(e))return(0,J.jsx)($,{});let t,n;if(typeof e==`object`&&!Array.isArray(e)){let r=e;t=typeof r.lat==`number`?r.lat:typeof r.latitude==`number`?r.latitude:void 0,n=typeof r.lng==`number`?r.lng:typeof r.lon==`number`?r.lon:typeof r.longitude==`number`?r.longitude:void 0}else if(Array.isArray(e)&&e.length===2)t=Number(e[0]),n=Number(e[1]);else if(typeof e==`string`){let r=e.split(`,`).map(e=>parseFloat(e.trim()));r.length===2&&!isNaN(r[0])&&!isNaN(r[1])&&([t,n]=r)}return typeof t==`number`&&typeof n==`number`&&!isNaN(t)&&!isNaN(n)?(0,J.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-sm tabular-nums`,children:[(0,J.jsx)(Yi,{className:`h-3.5 w-3.5 shrink-0 text-muted-foreground`,"aria-hidden":`true`}),t.toFixed(4),`, `,n.toFixed(4)]}):(0,J.jsx)(hL,{value:e,field:{}})}function vL({value:e}){let t=Ct();if(h(e)&&!Array.isArray(e))return(0,J.jsx)($,{});if(typeof e==`string`)return(0,J.jsx)(sI,{text:e,className:`text-sm`});if(typeof e==`object`&&!Array.isArray(e)){let n=zA(e,t);if(n)return(0,J.jsx)(sI,{text:n,className:`text-sm`});if(Object.keys(e).length===0)return(0,J.jsx)($,{})}return(0,J.jsx)(hL,{value:e,field:{}})}function yL({value:e}){let t=$F(),n=Array.isArray(e)?e.length:0;if(n===0)return(0,J.jsx)($,{});let r=t?.(`detail.repeaterItemCount`,{count:n}),i=!r||r===`detail.repeaterItemCount`?`${n} ${n===1?`item`:`items`}`:r;return(0,J.jsx)(`span`,{className:`text-gray-500 italic`,children:i})}function bL({value:e}){return h($A(e))?(0,J.jsx)($,{}):(0,J.jsx)(`span`,{children:`••••••`})}var xL=new Set([`password`,`secret`]);function SL(e){if(!e)return!1;let t=TL(),n=uL.has(e)?uL.get(e):t[e];return n===bL?!0:xL.has(e)?!Object.values(t).some(e=>e===n):!1}function CL({value:e}){return h(e)?(0,J.jsx)($,{}):(0,J.jsx)(`span`,{className:`text-gray-500 italic`,children:`[Vector]`})}function wL({value:e}){return h(e)?(0,J.jsx)($,{}):(0,J.jsx)(`span`,{className:`text-gray-500 italic`,children:`[Grid]`})}function TL(){return{text:cI,textarea:cI,...uj,code:cI,qrcode:cI,number:lI,currency:uI,percent:dI,progress:dI,slider:lI,rating:lI,boolean:pI,toggle:pI,date:_I,datetime:vI,time:cI,select:qI,status:qI,multiselect:qI,radio:qI,checkboxes:qI,tags:qI,lookup:iL,master_detail:iL,tree:iL,email:JI,url:YI,phone:XI,file:ZI,video:ZI,audio:ZI,image:$I,avatar:$I,signature:eL,formula:aL,summary:aL,auto_number:cI,user:lL,...Object.fromEntries([...xL].map(e=>[e,bL])),location:_L,geolocation:_L,address:vL,color:gL,json:hL,object:hL,composite:hL,record:hL,repeater:yL,vector:CL,grid:wL}}function EL(e){return uL.has(e)?uL.get(e):(ct(e),TL()[e]||cI)}dL(`lookup`,iL),dL(`master_detail`,iL),dL(`select`,qI),dL(`status`,qI),dL(`user`,lL),hj(EL);function DL(e){if(e<0||!Number.isFinite(e)||e===0)return`0 B`;let t=[`B`,`KB`,`MB`,`GB`,`TB`],n=e,r=0;for(;n>=1024&&r<t.length-1;)n/=1024,r++;return`${n.toFixed(+(r>0))} ${t[r]}`}var OL=new WeakMap;function kL(e){let t=OL.get(e);return t||(t=u(e,`stored`),OL.set(e,t)),t}function AL(e){return t=>{if(ee(t))return!0;let n=kL(e).safeParse(t);return n.success?!0:`Invalid location: ${n.error.issues.map(e=>`${e.path.join(`.`)||`value`}: ${e.message}`).join(`; `)}`}}function jL(e){let t={};e.required&&(t.required=typeof e.required_message!=`string`||e.required_message);let n=e.minLength;n&&(t.minLength={value:n,message:typeof e.min_length_message==`string`?e.min_length_message:void 0,messageKey:`validation.minLength`});let r=e.maxLength;if(r&&(t.maxLength={value:r,message:typeof e.max_length_message==`string`?e.max_length_message:void 0,messageKey:`validation.maxLength`}),e.min!==void 0&&(t.min={value:e.min,message:typeof e.min_message==`string`?e.min_message:void 0,messageKey:`validation.min`}),e.max!==void 0&&(t.max={value:e.max,message:typeof e.max_message==`string`?e.max_message:void 0,messageKey:`validation.max`}),e.pattern&&(t.pattern={value:typeof e.pattern==`string`?new RegExp(e.pattern):e.pattern,message:typeof e.pattern_message==`string`?e.pattern_message:void 0,messageKey:`validation.pattern`}),e.type===`email`&&(t.pattern={value:/^[^\s@]+@[^\s@]+\.[^\s@]+$/,message:void 0,messageKey:`validation.email`}),e.type===`url`&&(t.pattern={value:/^https?:\/\/.+/,message:void 0,messageKey:`validation.url`}),e.validate&&(t.validate=e.validate),e.type===`location`){let n=t.validate;t.validate={...typeof n==`function`?{validate:n}:n??{},location:AL(e)}}return Object.keys(t).length>0?t:void 0}var ML={text:()=>n(()=>Promise.resolve().then(()=>wj).then(e=>({default:e.TextField})),void 0,import.meta.url),textarea:()=>n(()=>Promise.resolve().then(()=>Dj).then(e=>({default:e.TextAreaField})),void 0,import.meta.url),number:()=>n(()=>Promise.resolve().then(()=>Pj).then(e=>({default:e.NumberField})),void 0,import.meta.url),boolean:()=>n(()=>Promise.resolve().then(()=>Jj).then(e=>({default:e.BooleanField})),void 0,import.meta.url),select:()=>n(()=>Promise.resolve().then(()=>eM).then(e=>({default:e.SelectField})),void 0,import.meta.url),date:()=>n(()=>Promise.resolve().then(()=>uM).then(e=>({default:e.DateField})),void 0,import.meta.url),datetime:()=>n(()=>Promise.resolve().then(()=>fM).then(e=>({default:e.DateTimeField})),void 0,import.meta.url),time:()=>n(()=>Promise.resolve().then(()=>mM).then(e=>({default:e.TimeField})),void 0,import.meta.url),email:()=>n(()=>Promise.resolve().then(()=>gM).then(e=>({default:e.EmailField})),void 0,import.meta.url),phone:()=>n(()=>Promise.resolve().then(()=>vM).then(e=>({default:e.PhoneField})),void 0,import.meta.url),url:()=>n(()=>Promise.resolve().then(()=>bM).then(e=>({default:e.UrlField})),void 0,import.meta.url),multiselect:()=>n(()=>Promise.resolve().then(()=>Qj).then(e=>({default:e.MultiSelectField})),void 0,import.meta.url),radio:()=>n(()=>Promise.resolve().then(()=>rM).then(e=>({default:e.RadioField})),void 0,import.meta.url),checkboxes:()=>n(()=>Promise.resolve().then(()=>aM).then(e=>({default:e.CheckboxesField})),void 0,import.meta.url),tags:()=>n(()=>Promise.resolve().then(()=>sM).then(e=>({default:e.TagsField})),void 0,import.meta.url),currency:()=>n(()=>Promise.resolve().then(()=>Ij).then(e=>({default:e.CurrencyField})),void 0,import.meta.url),percent:()=>n(()=>Promise.resolve().then(()=>zj).then(e=>({default:e.PercentField})),void 0,import.meta.url),password:()=>n(()=>Promise.resolve().then(()=>rP).then(e=>({default:e.PasswordField})),void 0,import.meta.url),markdown:()=>n(()=>Promise.resolve().then(()=>aP).then(e=>({default:e.RichTextField})),void 0,import.meta.url),html:()=>n(()=>Promise.resolve().then(()=>aP).then(e=>({default:e.RichTextField})),void 0,import.meta.url),richtext:()=>n(()=>Promise.resolve().then(()=>aP).then(e=>({default:e.RichTextField})),void 0,import.meta.url),lookup:()=>n(()=>Promise.resolve().then(()=>aN).then(e=>({default:e.LookupField})),void 0,import.meta.url),master_detail:()=>n(()=>Promise.resolve().then(()=>aN).then(e=>({default:e.LookupField})),void 0,import.meta.url),file:()=>n(()=>Promise.resolve().then(()=>eF).then(e=>({default:e.FileField})),void 0,import.meta.url),image:()=>n(()=>Promise.resolve().then(()=>iF).then(e=>({default:e.ImageField})),void 0,import.meta.url),location:()=>n(()=>Promise.resolve().then(()=>TN).then(e=>({default:e.LocationField})),void 0,import.meta.url),formula:()=>n(()=>Promise.resolve().then(()=>lF).then(e=>({default:e.FormulaField})),void 0,import.meta.url),summary:()=>n(()=>Promise.resolve().then(()=>dF).then(e=>({default:e.SummaryField})),void 0,import.meta.url),auto_number:()=>n(()=>Promise.resolve().then(()=>pF).then(e=>({default:e.AutoNumberField})),void 0,import.meta.url),user:()=>n(()=>Promise.resolve().then(()=>vN).then(e=>({default:e.UserField})),void 0,import.meta.url),object:()=>n(()=>Promise.resolve().then(()=>hF).then(e=>({default:e.ObjectField})),void 0,import.meta.url),vector:()=>n(()=>Promise.resolve().then(()=>_F).then(e=>({default:e.VectorField})),void 0,import.meta.url),grid:()=>n(()=>Promise.resolve().then(()=>yF).then(e=>({default:e.GridField})),void 0,import.meta.url),color:()=>n(()=>Promise.resolve().then(()=>xN).then(e=>({default:e.ColorField})),void 0,import.meta.url),slider:()=>n(()=>Promise.resolve().then(()=>Wj).then(e=>({default:e.SliderField})),void 0,import.meta.url),rating:()=>n(()=>Promise.resolve().then(()=>Kj).then(e=>({default:e.RatingField})),void 0,import.meta.url),code:()=>n(()=>Promise.resolve().then(()=>GN).then(e=>({default:e.CodeField})),void 0,import.meta.url),avatar:()=>n(()=>Promise.resolve().then(()=>VF).then(e=>({default:e.AvatarField})),void 0,import.meta.url),address:()=>n(()=>Promise.resolve().then(()=>CN).then(e=>({default:e.AddressField})),void 0,import.meta.url),geolocation:()=>n(()=>Promise.resolve().then(()=>VN).then(e=>({default:e.GeolocationField})),void 0,import.meta.url),signature:()=>n(()=>Promise.resolve().then(()=>UF).then(e=>({default:e.SignatureField})),void 0,import.meta.url),qrcode:()=>n(()=>Promise.resolve().then(()=>qN).then(e=>({default:e.QRCodeField})),void 0,import.meta.url),"object-ref":()=>n(()=>Promise.resolve().then(()=>pP).then(e=>({default:e.ObjectRefField})),void 0,import.meta.url),"filter-condition":()=>n(()=>Promise.resolve().then(()=>hP).then(e=>({default:e.FilterConditionField})),void 0,import.meta.url),"recipient-picker":()=>n(()=>Promise.resolve().then(()=>LP).then(e=>({default:e.RecipientPickerField})),void 0,import.meta.url)},NL=ML,PL=Object.freeze(Object.keys(ML));function FL(e){if(NL[e]||oe[e])return e;let t=yj(e).replace(/^field:/,``);return NL[t]?t:`text`}var IL=new Map;function LL(e){let t=FL(e);if(oe[t])return UL(t);let n=IL.get(t);return n||(n=q.lazy(NL[t]),IL.set(t,n)),n}var RL=new Set([`text`,`html`,`image`,`avatar`,`grid`,`textarea`,`select`,`email`,`password`,`slider`,`markdown`,`code`,`time`,`address`,`object-ref`,`filter-condition`,`recipient-picker`]),zL={text:`control`,textarea:`control`,number:`control`,boolean:`control`,select:`control`,date:`control`,datetime:`control`,time:`control`,email:`control`,phone:`control`,url:`control`,multiselect:`group`,radio:`group`,checkboxes:`group`,tags:`control`,currency:`control`,percent:`control`,password:`control`,markdown:`control`,html:`control`,richtext:`control`,lookup:`control`,master_detail:`control`,file:`group`,image:`control`,location:`control`,formula:`display`,summary:`display`,auto_number:`display`,user:`control`,object:`control`,vector:`display`,grid:`group`,color:`control`,slider:`group`,rating:`group`,code:`control`,avatar:`control`,address:`group`,geolocation:`group`,signature:`group`,qrcode:`control`,"object-ref":`control`,"filter-condition":`control`,"recipient-picker":`control`};function BL(e){let t=NL[e];if(!t){console.warn(`Unknown field type: ${e}`);return}let n=q.lazy(t),r=zL[e];K.register(e,PA(n),{namespace:`field`,skipFallback:RL.has(e),...r===`control`?null:{labelling:r}})}var VL=e=>{let t=e?.retiredFieldType??e?.field?.type??e?.schema?.type??e?.type??`unknown`,n=oe[t]??`[object-ui] Field type \`${t}\` was retired.`;return q.useEffect(()=>{ct(t)},[t]),(0,J.jsx)(`div`,{role:`alert`,"data-testid":`field-retired-tombstone`,"data-retired-field-type":t,className:`rounded-md border border-destructive/50 bg-destructive/10 px-3 py-2 text-sm text-destructive`,children:n})},HL=new Map;function UL(e){let t=HL.get(e);if(!t){let n=t=>(0,J.jsx)(VL,{...t,retiredFieldType:e});n.displayName=`RetiredFieldTombstone(${e})`,t=n,HL.set(e,t)}return t}function WL(){Object.keys(ML).forEach(e=>{BL(e)}),Object.keys(oe).forEach(e=>{K.register(e,UL(e),{namespace:`field`,skipFallback:!0})})}WL();var GL=t({default:()=>KL});function KL({value:e}){return(0,J.jsx)(`div`,{className:`prose prose-sm max-w-none dark:prose-invert break-words`,children:(0,J.jsx)(Ea,{remarkPlugins:[Oa],rehypePlugins:[Da],children:e})})}export{MA as $,Jh as $n,gc as $r,Hb as $t,nP as A,Oy as An,im as Ar,$ as At,dM as B,yy as Bn,Rd as Br,xw as Bt,oF as C,La as Ci,eb as Cn,mm as Cr,YE as Ct,fP as D,Gy as Dn,bm as Dr,IE as Dt,WP as E,Fa as Ei,Uy as En,hm as Er,BE as Et,wN as F,Dy as Fn,dm as Fr,BT as Ft,Fj as G,uy as Gn,Id as Gr,Fx as Gt,Yj as H,my as Hn,Vd as Hr,yw as Ht,bN as I,vy as In,ip as Ir,iE as It,$A as J,Pv as Jn,Cc as Jr,px as Jt,yj as K,fy as Kn,Dc as Kr,Mx as Kt,_N as L,Cy as Ln,op as Lr,vE as Lt,eP as M,Ry as Mn,fm as Mr,OE as Mt,WN as N,Fy as Nn,um as Nr,wE as Nt,lP as O,Hy as On,gm as Or,RE as Ot,BN as P,Ly as Pn,lm as Pr,EE as Pt,NA as Q,Y_ as Qn,_c as Qr,Wb as Qt,iN as R,Ty as Rn,ap as Rr,jT as Rt,BF as S,Ra as Si,tb as Sn,pm as Sr,$E as St,GP as T,ja as Ti,Ky as Tn,vm as Tr,FE as Tt,Vj as U,hy as Un,zd as Ur,Rx as Ut,tM as V,gy as Vn,Hd as Vr,bw as Vt,Rj as W,py as Wn,Bd as Wr,Lx as Wt,KA as X,cv as Xn,xc as Xr,Gb as Xt,VA as Y,ov as Yn,Sc as Yr,dx as Yt,PA as Z,sv as Zn,bc as Zr,Vb as Zt,SL as _,Qo as _i,ab as _n,jm as _r,cD as _t,jL as a,ls as ai,Pb as an,Zh as ar,nA as at,WF as b,Wo as bi,vb as bn,wm as br,QE as bt,DL as c,as as ci,Eb as cn,Yh as cr,_k as ct,UI as d,es as di,cb as dn,qh as dr,vO as dt,Js as ei,Ub as en,eg as er,DA as et,VI as f,ts as fi,db as fn,Wh as fr,hD as ft,KI as g,Xo as gi,ob as gn,Dm as gr,lD as gt,WI as h,Zo as hi,sb as hn,Em as hr,uD as ht,VL as i,ss as ii,Rb as in,ag as ir,iA as it,$N as j,Py as jn,cm as jr,NE as jt,ZN as k,By as kn,ym as kr,zE as kt,iI as l,is as li,nb as ln,Rh as lr,ZO as lt,LL as m,$o as mi,fb as mn,xm as mr,mD as mt,PL as n,zs as ni,Fb as nn,tg as nr,oA as nt,rI as o,cs as oi,Lb as on,$h as or,tA as ot,EL as p,Yo as pi,mb as pn,Kh as pr,gD as pt,dj as q,dy as qn,Ec as qr,Tx as qt,bL as r,ds as ri,zb as rn,ig as rr,aA as rt,nI as s,rs as si,Mb as sn,Qh as sr,Jk as st,zL as t,Ws as ti,Nb as tn,Xh as tr,fA as tt,oI as u,Go as ui,ub as un,Uh as ur,KO as ut,mL as v,Ko as vi,hb as vn,Cm as vr,oD as vt,nF as w,Pa as wi,Wy as wn,_m as wr,WE as wt,HF as x,Y as xi,gb as xn,Sm as xr,ZE as xt,FL as y,X as yi,yb as yn,Tm as yr,aD as yt,IM as z,by as zn,rp as zr,AT as zt};
|