@decocms/mesh 1.4.4 → 1.5.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.
Files changed (119) hide show
  1. package/dist/client/assets/{AlertCircle-B6rEUVLf.js → AlertCircle-BIlMffS8.js} +1 -1
  2. package/dist/client/assets/{ArrowLeft-DC_Ebc-m.js → ArrowLeft-CJ-eKoid.js} +1 -1
  3. package/dist/client/assets/{ChevronDown-rNVX3ifZ.js → ChevronDown-atiP0m-F.js} +1 -1
  4. package/dist/client/assets/{Clock-DS2iGkSJ.js → Clock-BD2gknBV.js} +1 -1
  5. package/dist/client/assets/{Code01-CoFYqM8q.js → Code01-BEefaaXC.js} +1 -1
  6. package/dist/client/assets/{Copy01-CCVZH6f1.js → Copy01-DhXqtugg.js} +1 -1
  7. package/dist/client/assets/{CpuChip02-DwHhz9CA.js → CpuChip02-BtgBI59l.js} +1 -1
  8. package/dist/client/assets/{DotsVertical-8kkJJG9R.js → DotsVertical-roys0n6e.js} +1 -1
  9. package/dist/client/assets/{File06-DxUGl7Wc.js → File06-MlW8n69V.js} +1 -1
  10. package/dist/client/assets/{FlipBackward-D9qJVjU9.js → FlipBackward-BSnTMMYy.js} +1 -1
  11. package/dist/client/assets/{GitBranch01-DLNdjhEu.js → GitBranch01-CEvRlFly.js} +1 -1
  12. package/dist/client/assets/{Grid01-BTunGha4.js → Grid01-CkwdbRed.js} +1 -1
  13. package/dist/client/assets/{Inbox01-BoV8p7IN.js → Inbox01-D66dNA_K.js} +1 -1
  14. package/dist/client/assets/{Key01-Bqzm5f6K.js → Key01-BXlD7hmS.js} +1 -1
  15. package/dist/client/assets/{LinkExternal01-WcFL8RpQ.js → LinkExternal01-O4xnNCff.js} +1 -1
  16. package/dist/client/assets/{Loading01-B0vdyVbH.js → Loading01-EiDV-2FW.js} +1 -1
  17. package/dist/client/assets/{Lock01-B0PVK-yI.js → Lock01-DpRDCI3P.js} +1 -1
  18. package/dist/client/assets/{Play-KfJ8X6ky.js → Play-FKw7EqPO.js} +1 -1
  19. package/dist/client/assets/{Plus-nu8-Nz8b.js → Plus-CwB-Rc8B.js} +1 -1
  20. package/dist/client/assets/{SearchMd-BFumDfkS.js → SearchMd-C6P9P1wF.js} +1 -1
  21. package/dist/client/assets/{Terminal-CDIp_seB.js → Terminal-Dv6w41J8.js} +1 -1
  22. package/dist/client/assets/{Trash01-1tKgR7uh.js → Trash01-Ctk7srex.js} +1 -1
  23. package/dist/client/assets/{X-hEo9Za23.js → X-Da4xsL05.js} +1 -1
  24. package/dist/client/assets/{XClose-BIthQxae.js → XClose-OUZ04LEo.js} +1 -1
  25. package/dist/client/assets/{alert-dialog-_VCwcCen.js → alert-dialog-D6UjYOUP.js} +1 -1
  26. package/dist/client/assets/{auth-BpfHzPVh.js → auth-CZR9mNdb.js} +1 -1
  27. package/dist/client/assets/{auth-catchall-D-D94naG.js → auth-catchall-BZWl_BRK.js} +1 -1
  28. package/dist/client/assets/{avatar-DHKqC-IM.js → avatar-BHE7lL4M.js} +1 -1
  29. package/dist/client/assets/{badge-Dkhmn9Qj.js → badge-B-u7R38I.js} +1 -1
  30. package/dist/client/assets/{button-BSXU4L7C.js → button-B13xcF6W.js} +1 -1
  31. package/dist/client/assets/{card-CXFRieEW.js → card-7VW-xSd-.js} +1 -1
  32. package/dist/client/assets/{checkbox-C-t_-9ku.js → checkbox-BMd2Z-WT.js} +1 -1
  33. package/dist/client/assets/{collection-detail-P20CfY5q.js → collection-detail-7eGCexqR.js} +3 -3
  34. package/dist/client/assets/{collection-display-button-BAoFTB4b.js → collection-display-button-D4VM0KQx.js} +1 -1
  35. package/dist/client/assets/{collection-header-B--7sWbR.js → collection-header-od14k6u3.js} +1 -1
  36. package/dist/client/assets/{collection-page-B71dz4fa.js → collection-page-BNuNM--s.js} +1 -1
  37. package/dist/client/assets/{collection-search-CrC01K4Z.js → collection-search-LnYLnFH8.js} +1 -1
  38. package/dist/client/assets/{collection-tab-dwp9LGxi.js → collection-tab-bg_gmLyh.js} +1 -1
  39. package/dist/client/assets/{collection-table-wrapper-CFoaxah9.js → collection-table-wrapper-B0AFEn1d.js} +1 -1
  40. package/dist/client/assets/{connection-card-eAyda1Mu.js → connection-card-r2tH19aR.js} +1 -1
  41. package/dist/client/assets/{connection-detail-Bn-jl6HG.js → connection-detail-Dm1s8Dj2.js} +1 -1
  42. package/dist/client/assets/connections-CWHukeOK.js +1 -0
  43. package/dist/client/assets/constants-CN4QOiqe.js +1 -0
  44. package/dist/client/assets/{core-C9AbX0ks.js → core-BqWxized.js} +1 -1
  45. package/dist/client/assets/{create-organization-dialog-DhHOFwW5.js → create-organization-dialog-CjneLhKn.js} +1 -1
  46. package/dist/client/assets/{dialog-Cj2udzC-.js → dialog-DoN4ORnY.js} +1 -1
  47. package/dist/client/assets/{dropdown-menu-ClBJUvd8.js → dropdown-menu-uXj8nKiT.js} +1 -1
  48. package/dist/client/assets/{empty-state-CYnIzDhF.js → empty-state-N07FE0YG.js} +1 -1
  49. package/dist/client/assets/{env-vars-editor-nU4IPD2j.js → env-vars-editor-B7JL_p-V.js} +1 -1
  50. package/dist/client/assets/{error-boundary-D5hb-PLt.js → error-boundary-Ce0_dLsG.js} +1 -1
  51. package/dist/client/assets/{extract-connection-data-BWB54H7f.js → extract-connection-data-CeT4F9gU.js} +1 -1
  52. package/dist/client/assets/{form-Dn7fy5O5.js → form-BQIYj24w.js} +1 -1
  53. package/dist/client/assets/{formatDistanceToNow-km7E2wF1.js → formatDistanceToNow-CArtWgcP.js} +1 -1
  54. package/dist/client/assets/gateway-detail-VCb3jL84.js +1 -0
  55. package/dist/client/assets/gateways-9p2LLkTK.js +1 -0
  56. package/dist/client/assets/{home-dep1g9Zf.js → home-DgfprghT.js} +1 -1
  57. package/dist/client/assets/{index-gqIvEQSH.js → index-CVgkE3Gv.js} +2 -2
  58. package/dist/client/assets/{index-tz4gB72W.js → index-DEMNtulg.js} +2 -2
  59. package/dist/client/assets/{index-DX5d9vx1.js → index-DcMa5gDs.js} +1 -1
  60. package/dist/client/assets/{index-CcNvI65p.js → index-DcvTq0xJ.js} +1 -1
  61. package/dist/client/assets/{input-Cb7MaM0d.js → input-YdP8mwrf.js} +1 -1
  62. package/dist/client/assets/json-Bz08jZIq.js +1 -0
  63. package/dist/client/assets/{json-syntax-highlighter-CCgbux_M.js → json-syntax-highlighter-Bif-CDya.js} +2 -2
  64. package/dist/client/assets/{layout-DtfNegCp.js → layout-BNxxrCBw.js} +1 -1
  65. package/dist/client/assets/{lazy-highlighter-CaGtIE-R.js → lazy-highlighter-C0vzyJy5.js} +1 -1
  66. package/dist/client/assets/{localstorage-keys-DIkWdWYS.js → localstorage-keys-DwKN3_Ky.js} +1 -1
  67. package/dist/client/assets/{login-DSSk45pi.js → login-UWyl_cxx.js} +1 -1
  68. package/dist/client/assets/{mcp-oauth-BOAcAnr_.js → mcp-oauth-Dqr97r2H.js} +1 -1
  69. package/dist/client/assets/{members-D4I8qlnr.js → members-C3UV37Kw.js} +1 -1
  70. package/dist/client/assets/{monitoring-CvcerPLg.js → monitoring-Ds52TSSS.js} +2 -2
  71. package/dist/client/assets/{oauth-callback-CY5bCrs6.js → oauth-callback-D4M9mHyH.js} +1 -1
  72. package/dist/client/assets/{page-Du4118GJ.js → page-B7ia0_lh.js} +2 -2
  73. package/dist/client/assets/{pin-to-sidebar-button-CwlJToUG.js → pin-to-sidebar-button-BKotT_Nc.js} +1 -1
  74. package/dist/client/assets/{popover-BPqLZ76M.js → popover-7jr0PuXV.js} +1 -1
  75. package/dist/client/assets/prism-light-CHE2alug.js +1 -0
  76. package/dist/client/assets/resizable-qkPSJ31g.js +1 -0
  77. package/dist/client/assets/{resource-tabs-CmUpRVKA.js → resource-tabs-qR3NhTLd.js} +1 -1
  78. package/dist/client/assets/{responsive-select-DwsIwS1V.js → responsive-select-CJQwNPPj.js} +1 -1
  79. package/dist/client/assets/{select-HGITgxwS.js → select-L_OjJ9sW.js} +1 -1
  80. package/dist/client/assets/{settings-sSoOIGWg.js → settings-BapAo6i2.js} +1 -1
  81. package/dist/client/assets/shell-layout-DqUuQ9gz.js +19 -0
  82. package/dist/client/assets/{spinner-BUVePO6d.js → spinner-CAJeeq5B.js} +1 -1
  83. package/dist/client/assets/{store-H6vucsd1.js → store-DTMoxgob.js} +1 -1
  84. package/dist/client/assets/{store-app-detail-aULJzMOJ.js → store-app-detail-CbGg2GlI.js} +1 -1
  85. package/dist/client/assets/{switch-BwTlw9qL.js → switch-DlwEQXd2.js} +1 -1
  86. package/dist/client/assets/{textarea-BAs6HmBZ.js → textarea-IOVeLZOt.js} +1 -1
  87. package/dist/client/assets/{thread-history-popover-DbEl1KJu.js → thread-history-popover-COjpShBU.js} +3 -3
  88. package/dist/client/assets/{tools-list-thZyoBrU.js → tools-list-l6xtSgWR.js} +1 -1
  89. package/dist/client/assets/{tooltip-Bzy1O5cq.js → tooltip-C7B84lYF.js} +1 -1
  90. package/dist/client/assets/{types-BVTsq_OW.js → types-BmKCUQAI.js} +1 -1
  91. package/dist/client/assets/{use-binding-jUI3xZmp.js → use-binding-Ce8NG0MO.js} +1 -1
  92. package/dist/client/assets/{use-connection-DRZbGk_A.js → use-connection-D-LWel3A.js} +1 -1
  93. package/dist/client/assets/{use-connection-resources-B3tDNT6E.js → use-connection-resources-CJzk5_Wj.js} +1 -1
  94. package/dist/client/assets/{use-gateway-CUxuCVmJ.js → use-gateway-eXp_1iQc.js} +1 -1
  95. package/dist/client/assets/{use-list-state-CkGBL95Z.js → use-list-state-CmxR0QRn.js} +1 -1
  96. package/dist/client/assets/{use-mcp-CMt9Wy3X.js → use-mcp-Cmlg9h6L.js} +1 -1
  97. package/dist/client/assets/{use-members-cyA2aC2q.js → use-members-Drex2zGi.js} +1 -1
  98. package/dist/client/assets/{use-mobile-B8xlavN6.js → use-mobile-B-R7B7Hp.js} +1 -1
  99. package/dist/client/assets/{use-organization-settings-C7IdFOTo.js → use-organization-settings-B_G_DBCR.js} +1 -1
  100. package/dist/client/assets/{use-tool-call-CsOSZ1pI.js → use-tool-call-BN3WED_Z.js} +1 -1
  101. package/dist/client/assets/useQuery-DLJrS2VC.js +1 -0
  102. package/dist/client/assets/{useSuspenseInfiniteQuery-DqCwXIKB.js → useSuspenseInfiniteQuery-DFaXtjFO.js} +1 -1
  103. package/dist/client/assets/{view-mode-toggle-COcukfhX.js → view-mode-toggle-BpRlpgBn.js} +1 -1
  104. package/dist/client/assets/workflow-CBeu3WB4.js +1 -0
  105. package/dist/client/index.html +1 -1
  106. package/dist/server/cli.js +2 -2
  107. package/dist/server/migrate.js +2 -2
  108. package/dist/server/server.js +3 -3
  109. package/package.json +1 -1
  110. package/dist/client/assets/connections-CDl5cKXc.js +0 -1
  111. package/dist/client/assets/constants-C-5m3xCJ.js +0 -1
  112. package/dist/client/assets/gateway-detail-BEimKnAa.js +0 -1
  113. package/dist/client/assets/gateways-1GR6BIbg.js +0 -1
  114. package/dist/client/assets/json-CevIphLA.js +0 -1
  115. package/dist/client/assets/prism-light-bnbWF_0X.js +0 -1
  116. package/dist/client/assets/resizable-Ck5ltOjh.js +0 -1
  117. package/dist/client/assets/shell-layout-BCUXUEeW.js +0 -19
  118. package/dist/client/assets/useQuery-Bl78N6vT.js +0 -1
  119. package/dist/client/assets/workflow-CaCjE8aO.js +0 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-DSSk45pi.js","assets/button-BSXU4L7C.js","assets/input-Cb7MaM0d.js","assets/shell-layout-BCUXUEeW.js","assets/SearchMd-BFumDfkS.js","assets/use-connection-DRZbGk_A.js","assets/tooltip-Bzy1O5cq.js","assets/localstorage-keys-DIkWdWYS.js","assets/useQuery-Bl78N6vT.js","assets/CpuChip02-DwHhz9CA.js","assets/Loading01-B0vdyVbH.js","assets/Plus-nu8-Nz8b.js","assets/X-hEo9Za23.js","assets/use-binding-jUI3xZmp.js","assets/auth-BpfHzPVh.js","assets/thread-history-popover-DbEl1KJu.js","assets/AlertCircle-B6rEUVLf.js","assets/error-boundary-D5hb-PLt.js","assets/Grid01-BTunGha4.js","assets/responsive-select-DwsIwS1V.js","assets/select-HGITgxwS.js","assets/ChevronDown-rNVX3ifZ.js","assets/use-mobile-B8xlavN6.js","assets/textarea-BAs6HmBZ.js","assets/Copy01-CCVZH6f1.js","assets/Terminal-CDIp_seB.js","assets/connection-card-eAyda1Mu.js","assets/card-CXFRieEW.js","assets/LinkExternal01-WcFL8RpQ.js","assets/json-syntax-highlighter-CCgbux_M.js","assets/alert-dialog-_VCwcCen.js","assets/File06-DxUGl7Wc.js","assets/well-known-mcp-VNRT0JrW.js","assets/generate-id-Dyweu44Y.js","assets/popover-BPqLZ76M.js","assets/Clock-DS2iGkSJ.js","assets/Trash01-1tKgR7uh.js","assets/resizable-Ck5ltOjh.js","assets/use-gateway-CUxuCVmJ.js","assets/use-organization-settings-C7IdFOTo.js","assets/create-organization-dialog-DhHOFwW5.js","assets/form-Dn7fy5O5.js","assets/spinner-BUVePO6d.js","assets/avatar-DHKqC-IM.js","assets/dropdown-menu-ClBJUvd8.js","assets/dialog-Cj2udzC-.js","assets/home-dep1g9Zf.js","assets/page-Du4118GJ.js","assets/collection-header-B--7sWbR.js","assets/collection-display-button-BAoFTB4b.js","assets/view-mode-toggle-COcukfhX.js","assets/collection-page-B71dz4fa.js","assets/use-tool-call-CsOSZ1pI.js","assets/GitBranch01-DLNdjhEu.js","assets/types-BVTsq_OW.js","assets/index-DX5d9vx1.js","assets/badge-Dkhmn9Qj.js","assets/Key01-Bqzm5f6K.js","assets/Play-KfJ8X6ky.js","assets/page-BZV40eAE.css","assets/members-D4I8qlnr.js","assets/collection-search-CrC01K4Z.js","assets/collection-table-wrapper-CFoaxah9.js","assets/switch-BwTlw9qL.js","assets/checkbox-C-t_-9ku.js","assets/ArrowLeft-DC_Ebc-m.js","assets/use-members-cyA2aC2q.js","assets/XClose-BIthQxae.js","assets/Lock01-B0PVK-yI.js","assets/DotsVertical-8kkJJG9R.js","assets/connections-CDl5cKXc.js","assets/use-list-state-CkGBL95Z.js","assets/env-vars-editor-nU4IPD2j.js","assets/settings-sSoOIGWg.js","assets/monitoring-CvcerPLg.js","assets/Code01-CoFYqM8q.js","assets/index-CcNvI65p.js","assets/useSuspenseInfiniteQuery-DqCwXIKB.js","assets/store-H6vucsd1.js","assets/slugify-CEUa2lfQ.js","assets/Inbox01-BoV8p7IN.js","assets/registry-utils-ulDDT0d8.js","assets/app-name-gTETL9So.js","assets/workflow-CaCjE8aO.js","assets/collection-tab-dwp9LGxi.js","assets/empty-state-CYnIzDhF.js","assets/pin-to-sidebar-button-CwlJToUG.js","assets/constants-C-5m3xCJ.js","assets/layout-DtfNegCp.js","assets/store-app-detail-aULJzMOJ.js","assets/tools-list-thZyoBrU.js","assets/tools-list-CSRUKxnt.css","assets/resource-tabs-CmUpRVKA.js","assets/use-mcp-CMt9Wy3X.js","assets/extract-connection-data-BWB54H7f.js","assets/connection-detail-Bn-jl6HG.js","assets/index-gqIvEQSH.js","assets/mcp-oauth-BOAcAnr_.js","assets/formatDistanceToNow-km7E2wF1.js","assets/use-connection-resources-B3tDNT6E.js","assets/collection-detail-P20CfY5q.js","assets/FlipBackward-D9qJVjU9.js","assets/gateways-1GR6BIbg.js","assets/gateway-detail-BEimKnAa.js","assets/oauth-callback-CY5bCrs6.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-UWyl_cxx.js","assets/button-B13xcF6W.js","assets/input-YdP8mwrf.js","assets/shell-layout-DqUuQ9gz.js","assets/SearchMd-C6P9P1wF.js","assets/use-connection-D-LWel3A.js","assets/tooltip-C7B84lYF.js","assets/localstorage-keys-DwKN3_Ky.js","assets/useQuery-DLJrS2VC.js","assets/CpuChip02-BtgBI59l.js","assets/Loading01-EiDV-2FW.js","assets/Plus-CwB-Rc8B.js","assets/X-Da4xsL05.js","assets/use-binding-Ce8NG0MO.js","assets/auth-CZR9mNdb.js","assets/thread-history-popover-COjpShBU.js","assets/AlertCircle-BIlMffS8.js","assets/error-boundary-Ce0_dLsG.js","assets/Grid01-CkwdbRed.js","assets/responsive-select-CJQwNPPj.js","assets/select-L_OjJ9sW.js","assets/ChevronDown-atiP0m-F.js","assets/use-mobile-B-R7B7Hp.js","assets/textarea-IOVeLZOt.js","assets/Copy01-DhXqtugg.js","assets/Terminal-Dv6w41J8.js","assets/connection-card-r2tH19aR.js","assets/card-7VW-xSd-.js","assets/LinkExternal01-O4xnNCff.js","assets/json-syntax-highlighter-Bif-CDya.js","assets/alert-dialog-D6UjYOUP.js","assets/File06-MlW8n69V.js","assets/well-known-mcp-VNRT0JrW.js","assets/generate-id-Dyweu44Y.js","assets/popover-7jr0PuXV.js","assets/Clock-BD2gknBV.js","assets/Trash01-Ctk7srex.js","assets/resizable-qkPSJ31g.js","assets/use-gateway-eXp_1iQc.js","assets/use-organization-settings-B_G_DBCR.js","assets/create-organization-dialog-CjneLhKn.js","assets/form-BQIYj24w.js","assets/spinner-CAJeeq5B.js","assets/avatar-BHE7lL4M.js","assets/dropdown-menu-uXj8nKiT.js","assets/dialog-DoN4ORnY.js","assets/home-DgfprghT.js","assets/page-B7ia0_lh.js","assets/collection-header-od14k6u3.js","assets/collection-display-button-D4VM0KQx.js","assets/view-mode-toggle-BpRlpgBn.js","assets/collection-page-BNuNM--s.js","assets/use-tool-call-BN3WED_Z.js","assets/GitBranch01-CEvRlFly.js","assets/types-BmKCUQAI.js","assets/index-DcMa5gDs.js","assets/badge-B-u7R38I.js","assets/Key01-BXlD7hmS.js","assets/Play-FKw7EqPO.js","assets/page-BZV40eAE.css","assets/members-C3UV37Kw.js","assets/collection-search-LnYLnFH8.js","assets/collection-table-wrapper-B0AFEn1d.js","assets/switch-DlwEQXd2.js","assets/checkbox-BMd2Z-WT.js","assets/ArrowLeft-CJ-eKoid.js","assets/use-members-Drex2zGi.js","assets/XClose-OUZ04LEo.js","assets/Lock01-DpRDCI3P.js","assets/DotsVertical-roys0n6e.js","assets/connections-CWHukeOK.js","assets/use-list-state-CmxR0QRn.js","assets/env-vars-editor-B7JL_p-V.js","assets/settings-BapAo6i2.js","assets/monitoring-Ds52TSSS.js","assets/Code01-BEefaaXC.js","assets/index-DcvTq0xJ.js","assets/useSuspenseInfiniteQuery-DFaXtjFO.js","assets/store-DTMoxgob.js","assets/slugify-CEUa2lfQ.js","assets/Inbox01-D66dNA_K.js","assets/registry-utils-ulDDT0d8.js","assets/app-name-gTETL9So.js","assets/workflow-CBeu3WB4.js","assets/collection-tab-bg_gmLyh.js","assets/empty-state-N07FE0YG.js","assets/pin-to-sidebar-button-BKotT_Nc.js","assets/constants-CN4QOiqe.js","assets/layout-BNxxrCBw.js","assets/store-app-detail-CbGg2GlI.js","assets/tools-list-l6xtSgWR.js","assets/tools-list-CSRUKxnt.css","assets/resource-tabs-qR3NhTLd.js","assets/use-mcp-Cmlg9h6L.js","assets/extract-connection-data-CeT4F9gU.js","assets/connection-detail-Dm1s8Dj2.js","assets/index-CVgkE3Gv.js","assets/mcp-oauth-Dqr97r2H.js","assets/formatDistanceToNow-CArtWgcP.js","assets/use-connection-resources-CJzk5_Wj.js","assets/collection-detail-7eGCexqR.js","assets/FlipBackward-BSnTMMYy.js","assets/gateways-9p2LLkTK.js","assets/gateway-detail-VCb3jL84.js","assets/oauth-callback-D4M9mHyH.js"])))=>i.map(i=>d[i]);
2
2
  function o4(e,t){for(var n=0;n<t.length;n++){const o=t[n];if(typeof o!="string"&&!Array.isArray(o)){for(const i in o)if(i!=="default"&&!(i in e)){const l=Object.getOwnPropertyDescriptor(o,i);l&&Object.defineProperty(e,i,l.get?l:{enumerable:!0,get:()=>o[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))o(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&o(c)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function o(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();const a4="modulepreload",i4=function(e){return"/"+e},u_={},Tn=function(t,n,o){let i=Promise.resolve();if(n&&n.length>0){let c=function(h){return Promise.all(h.map(v=>Promise.resolve(v).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),f=d?.nonce||d?.getAttribute("nonce");i=c(n.map(h=>{if(h=i4(h),h in u_)return;u_[h]=!0;const v=h.endsWith(".css"),p=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${p}`))return;const y=document.createElement("link");if(y.rel=v?"stylesheet":a4,v||(y.as="script"),y.crossOrigin="",y.href=h,f&&y.setAttribute("nonce",f),document.head.appendChild(y),v)return new Promise((_,w)=>{y.addEventListener("load",_),y.addEventListener("error",()=>w(Error(`Unable to preload CSS for ${h}`)))})}))}function l(c){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=c,window.dispatchEvent(d),!d.defaultPrevented)throw c}return i.then(c=>{for(const d of c||[])d.status==="rejected"&&l(d.reason);return t().catch(l)})};var nH=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Kp={exports:{}},Cl={};var d_;function s4(){if(d_)return Cl;d_=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(o,i,l){var c=null;if(l!==void 0&&(c=""+l),i.key!==void 0&&(c=""+i.key),"key"in i){l={};for(var d in i)d!=="key"&&(l[d]=i[d])}else l=i;return i=l.ref,{$$typeof:e,type:o,key:c,ref:i!==void 0?i:null,props:l}}return Cl.Fragment=t,Cl.jsx=n,Cl.jsxs=n,Cl}var f_;function l4(){return f_||(f_=1,Kp.exports=s4()),Kp.exports}var b=l4(),Wp={exports:{}},Il={},Qp={exports:{}},Xp={};var h_;function c4(){return h_||(h_=1,(function(e){function t(P,F){var H=P.length;P.push(F);e:for(;0<H;){var re=H-1>>>1,ye=P[re];if(0<i(ye,F))P[re]=F,P[H]=ye,H=re;else break e}}function n(P){return P.length===0?null:P[0]}function o(P){if(P.length===0)return null;var F=P[0],H=P.pop();if(H!==F){P[0]=H;e:for(var re=0,ye=P.length,k=ye>>>1;re<k;){var Q=2*(re+1)-1,ee=P[Q],se=Q+1,me=P[se];if(0>i(ee,H))se<ye&&0>i(me,ee)?(P[re]=me,P[se]=H,re=se):(P[re]=ee,P[Q]=H,re=Q);else if(se<ye&&0>i(me,H))P[re]=me,P[se]=H,re=se;else break e}}return F}function i(P,F){var H=P.sortIndex-F.sortIndex;return H!==0?H:P.id-F.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var f=[],h=[],v=1,p=null,y=3,_=!1,w=!1,S=!1,T=!1,R=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;function O(P){for(var F=n(h);F!==null;){if(F.callback===null)o(h);else if(F.startTime<=P)o(h),F.sortIndex=F.expirationTime,t(f,F);else break;F=n(h)}}function M(P){if(S=!1,O(P),!w)if(n(f)!==null)w=!0,L||(L=!0,K());else{var F=n(h);F!==null&&ae(M,F.startTime-P)}}var L=!1,N=-1,D=5,z=-1;function W(){return T?!0:!(e.unstable_now()-z<D)}function G(){if(T=!1,L){var P=e.unstable_now();z=P;var F=!0;try{e:{w=!1,S&&(S=!1,A(N),N=-1),_=!0;var H=y;try{t:{for(O(P),p=n(f);p!==null&&!(p.expirationTime>P&&W());){var re=p.callback;if(typeof re=="function"){p.callback=null,y=p.priorityLevel;var ye=re(p.expirationTime<=P);if(P=e.unstable_now(),typeof ye=="function"){p.callback=ye,O(P),F=!0;break t}p===n(f)&&o(f),O(P)}else o(f);p=n(f)}if(p!==null)F=!0;else{var k=n(h);k!==null&&ae(M,k.startTime-P),F=!1}}break e}finally{p=null,y=H,_=!1}F=void 0}}finally{F?K():L=!1}}}var K;if(typeof C=="function")K=function(){C(G)};else if(typeof MessageChannel<"u"){var j=new MessageChannel,ne=j.port2;j.port1.onmessage=G,K=function(){ne.postMessage(null)}}else K=function(){R(G,0)};function ae(P,F){N=R(function(){P(e.unstable_now())},F)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(P){P.callback=null},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(P){switch(y){case 1:case 2:case 3:var F=3;break;default:F=y}var H=y;y=F;try{return P()}finally{y=H}},e.unstable_requestPaint=function(){T=!0},e.unstable_runWithPriority=function(P,F){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var H=y;y=P;try{return F()}finally{y=H}},e.unstable_scheduleCallback=function(P,F,H){var re=e.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?re+H:re):H=re,P){case 1:var ye=-1;break;case 2:ye=250;break;case 5:ye=1073741823;break;case 4:ye=1e4;break;default:ye=5e3}return ye=H+ye,P={id:v++,callback:F,priorityLevel:P,startTime:H,expirationTime:ye,sortIndex:-1},H>re?(P.sortIndex=H,t(h,P),n(f)===null&&P===n(h)&&(S?(A(N),N=-1):S=!0,ae(M,H-re))):(P.sortIndex=ye,t(f,P),w||_||(w=!0,L||(L=!0,K()))),P},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(P){var F=y;return function(){var H=y;y=F;try{return P.apply(this,arguments)}finally{y=H}}}})(Xp)),Xp}var p_;function u4(){return p_||(p_=1,Qp.exports=c4()),Qp.exports}var Jp={exports:{}},Fe={};var m_;function d4(){if(m_)return Fe;m_=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),y=Symbol.iterator;function _(k){return k===null||typeof k!="object"?null:(k=y&&k[y]||k["@@iterator"],typeof k=="function"?k:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,T={};function R(k,Q,ee){this.props=k,this.context=Q,this.refs=T,this.updater=ee||w}R.prototype.isReactComponent={},R.prototype.setState=function(k,Q){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,Q,"setState")},R.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function A(){}A.prototype=R.prototype;function C(k,Q,ee){this.props=k,this.context=Q,this.refs=T,this.updater=ee||w}var O=C.prototype=new A;O.constructor=C,S(O,R.prototype),O.isPureReactComponent=!0;var M=Array.isArray;function L(){}var N={H:null,A:null,T:null,S:null},D=Object.prototype.hasOwnProperty;function z(k,Q,ee){var se=ee.ref;return{$$typeof:e,type:k,key:Q,ref:se!==void 0?se:null,props:ee}}function W(k,Q){return z(k.type,Q,k.props)}function G(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function K(k){var Q={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(ee){return Q[ee]})}var j=/\/+/g;function ne(k,Q){return typeof k=="object"&&k!==null&&k.key!=null?K(""+k.key):Q.toString(36)}function ae(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(L,L):(k.status="pending",k.then(function(Q){k.status==="pending"&&(k.status="fulfilled",k.value=Q)},function(Q){k.status==="pending"&&(k.status="rejected",k.reason=Q)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function P(k,Q,ee,se,me){var _e=typeof k;(_e==="undefined"||_e==="boolean")&&(k=null);var be=!1;if(k===null)be=!0;else switch(_e){case"bigint":case"string":case"number":be=!0;break;case"object":switch(k.$$typeof){case e:case t:be=!0;break;case v:return be=k._init,P(be(k._payload),Q,ee,se,me)}}if(be)return me=me(k),be=se===""?"."+ne(k,0):se,M(me)?(ee="",be!=null&&(ee=be.replace(j,"$&/")+"/"),P(me,Q,ee,"",function(Le){return Le})):me!=null&&(G(me)&&(me=W(me,ee+(me.key==null||k&&k.key===me.key?"":(""+me.key).replace(j,"$&/")+"/")+be)),Q.push(me)),1;be=0;var Se=se===""?".":se+":";if(M(k))for(var De=0;De<k.length;De++)se=k[De],_e=Se+ne(se,De),be+=P(se,Q,ee,_e,me);else if(De=_(k),typeof De=="function")for(k=De.call(k),De=0;!(se=k.next()).done;)se=se.value,_e=Se+ne(se,De++),be+=P(se,Q,ee,_e,me);else if(_e==="object"){if(typeof k.then=="function")return P(ae(k),Q,ee,se,me);throw Q=String(k),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return be}function F(k,Q,ee){if(k==null)return k;var se=[],me=0;return P(k,se,"","",function(_e){return Q.call(ee,_e,me++)}),se}function H(k){if(k._status===-1){var Q=k._result;Q=Q(),Q.then(function(ee){(k._status===0||k._status===-1)&&(k._status=1,k._result=ee)},function(ee){(k._status===0||k._status===-1)&&(k._status=2,k._result=ee)}),k._status===-1&&(k._status=0,k._result=Q)}if(k._status===1)return k._result.default;throw k._result}var re=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)},ye={map:F,forEach:function(k,Q,ee){F(k,function(){Q.apply(this,arguments)},ee)},count:function(k){var Q=0;return F(k,function(){Q++}),Q},toArray:function(k){return F(k,function(Q){return Q})||[]},only:function(k){if(!G(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return Fe.Activity=p,Fe.Children=ye,Fe.Component=R,Fe.Fragment=n,Fe.Profiler=i,Fe.PureComponent=C,Fe.StrictMode=o,Fe.Suspense=f,Fe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,Fe.__COMPILER_RUNTIME={__proto__:null,c:function(k){return N.H.useMemoCache(k)}},Fe.cache=function(k){return function(){return k.apply(null,arguments)}},Fe.cacheSignal=function(){return null},Fe.cloneElement=function(k,Q,ee){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var se=S({},k.props),me=k.key;if(Q!=null)for(_e in Q.key!==void 0&&(me=""+Q.key),Q)!D.call(Q,_e)||_e==="key"||_e==="__self"||_e==="__source"||_e==="ref"&&Q.ref===void 0||(se[_e]=Q[_e]);var _e=arguments.length-2;if(_e===1)se.children=ee;else if(1<_e){for(var be=Array(_e),Se=0;Se<_e;Se++)be[Se]=arguments[Se+2];se.children=be}return z(k.type,me,se)},Fe.createContext=function(k){return k={$$typeof:c,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:l,_context:k},k},Fe.createElement=function(k,Q,ee){var se,me={},_e=null;if(Q!=null)for(se in Q.key!==void 0&&(_e=""+Q.key),Q)D.call(Q,se)&&se!=="key"&&se!=="__self"&&se!=="__source"&&(me[se]=Q[se]);var be=arguments.length-2;if(be===1)me.children=ee;else if(1<be){for(var Se=Array(be),De=0;De<be;De++)Se[De]=arguments[De+2];me.children=Se}if(k&&k.defaultProps)for(se in be=k.defaultProps,be)me[se]===void 0&&(me[se]=be[se]);return z(k,_e,me)},Fe.createRef=function(){return{current:null}},Fe.forwardRef=function(k){return{$$typeof:d,render:k}},Fe.isValidElement=G,Fe.lazy=function(k){return{$$typeof:v,_payload:{_status:-1,_result:k},_init:H}},Fe.memo=function(k,Q){return{$$typeof:h,type:k,compare:Q===void 0?null:Q}},Fe.startTransition=function(k){var Q=N.T,ee={};N.T=ee;try{var se=k(),me=N.S;me!==null&&me(ee,se),typeof se=="object"&&se!==null&&typeof se.then=="function"&&se.then(L,re)}catch(_e){re(_e)}finally{Q!==null&&ee.types!==null&&(Q.types=ee.types),N.T=Q}},Fe.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},Fe.use=function(k){return N.H.use(k)},Fe.useActionState=function(k,Q,ee){return N.H.useActionState(k,Q,ee)},Fe.useCallback=function(k,Q){return N.H.useCallback(k,Q)},Fe.useContext=function(k){return N.H.useContext(k)},Fe.useDebugValue=function(){},Fe.useDeferredValue=function(k,Q){return N.H.useDeferredValue(k,Q)},Fe.useEffect=function(k,Q){return N.H.useEffect(k,Q)},Fe.useEffectEvent=function(k){return N.H.useEffectEvent(k)},Fe.useId=function(){return N.H.useId()},Fe.useImperativeHandle=function(k,Q,ee){return N.H.useImperativeHandle(k,Q,ee)},Fe.useInsertionEffect=function(k,Q){return N.H.useInsertionEffect(k,Q)},Fe.useLayoutEffect=function(k,Q){return N.H.useLayoutEffect(k,Q)},Fe.useMemo=function(k,Q){return N.H.useMemo(k,Q)},Fe.useOptimistic=function(k,Q){return N.H.useOptimistic(k,Q)},Fe.useReducer=function(k,Q,ee){return N.H.useReducer(k,Q,ee)},Fe.useRef=function(k){return N.H.useRef(k)},Fe.useState=function(k){return N.H.useState(k)},Fe.useSyncExternalStore=function(k,Q,ee){return N.H.useSyncExternalStore(k,Q,ee)},Fe.useTransition=function(){return N.H.useTransition()},Fe.version="19.2.3",Fe}var v_;function Pa(){return v_||(v_=1,Jp.exports=d4()),Jp.exports}var em={exports:{}},Dn={};var g_;function f4(){if(g_)return Dn;g_=1;var e=Pa();function t(f){var h="https://react.dev/errors/"+f;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)h+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+f+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var o={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function l(f,h,v){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:p==null?null:""+p,children:f,containerInfo:h,implementation:v}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(f,h){if(f==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Dn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Dn.createPortal=function(f,h){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return l(f,h,null,v)},Dn.flushSync=function(f){var h=c.T,v=o.p;try{if(c.T=null,o.p=2,f)return f()}finally{c.T=h,o.p=v,o.d.f()}},Dn.preconnect=function(f,h){typeof f=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,o.d.C(f,h))},Dn.prefetchDNS=function(f){typeof f=="string"&&o.d.D(f)},Dn.preinit=function(f,h){if(typeof f=="string"&&h&&typeof h.as=="string"){var v=h.as,p=d(v,h.crossOrigin),y=typeof h.integrity=="string"?h.integrity:void 0,_=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;v==="style"?o.d.S(f,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:p,integrity:y,fetchPriority:_}):v==="script"&&o.d.X(f,{crossOrigin:p,integrity:y,fetchPriority:_,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Dn.preinitModule=function(f,h){if(typeof f=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var v=d(h.as,h.crossOrigin);o.d.M(f,{crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&o.d.M(f)},Dn.preload=function(f,h){if(typeof f=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var v=h.as,p=d(v,h.crossOrigin);o.d.L(f,v,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Dn.preloadModule=function(f,h){if(typeof f=="string")if(h){var v=d(h.as,h.crossOrigin);o.d.m(f,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else o.d.m(f)},Dn.requestFormReset=function(f){o.d.r(f)},Dn.unstable_batchedUpdates=function(f,h){return f(h)},Dn.useFormState=function(f,h,v){return c.H.useFormState(f,h,v)},Dn.useFormStatus=function(){return c.H.useHostTransitionStatus()},Dn.version="19.2.3",Dn}var y_;function mw(){if(y_)return em.exports;y_=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),em.exports=f4(),em.exports}var b_;function h4(){if(b_)return Il;b_=1;var e=u4(),t=Pa(),n=mw();function o(r){var a="https://react.dev/errors/"+r;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)a+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+r+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function l(r){var a=r,s=r;if(r.alternate)for(;a.return;)a=a.return;else{r=a;do a=r,(a.flags&4098)!==0&&(s=a.return),r=a.return;while(r)}return a.tag===3?s:null}function c(r){if(r.tag===13){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function d(r){if(r.tag===31){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function f(r){if(l(r)!==r)throw Error(o(188))}function h(r){var a=r.alternate;if(!a){if(a=l(r),a===null)throw Error(o(188));return a!==r?null:r}for(var s=r,u=a;;){var m=s.return;if(m===null)break;var g=m.alternate;if(g===null){if(u=m.return,u!==null){s=u;continue}break}if(m.child===g.child){for(g=m.child;g;){if(g===s)return f(m),r;if(g===u)return f(m),a;g=g.sibling}throw Error(o(188))}if(s.return!==u.return)s=m,u=g;else{for(var x=!1,I=m.child;I;){if(I===s){x=!0,s=m,u=g;break}if(I===u){x=!0,u=m,s=g;break}I=I.sibling}if(!x){for(I=g.child;I;){if(I===s){x=!0,s=g,u=m;break}if(I===u){x=!0,u=g,s=m;break}I=I.sibling}if(!x)throw Error(o(189))}}if(s.alternate!==u)throw Error(o(190))}if(s.tag!==3)throw Error(o(188));return s.stateNode.current===s?r:a}function v(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r;for(r=r.child;r!==null;){if(a=v(r),a!==null)return a;r=r.sibling}return null}var p=Object.assign,y=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),C=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),W=Symbol.for("react.memo_cache_sentinel"),G=Symbol.iterator;function K(r){return r===null||typeof r!="object"?null:(r=G&&r[G]||r["@@iterator"],typeof r=="function"?r:null)}var j=Symbol.for("react.client.reference");function ne(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===j?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case S:return"Fragment";case R:return"Profiler";case T:return"StrictMode";case M:return"Suspense";case L:return"SuspenseList";case z:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case w:return"Portal";case C:return r.displayName||"Context";case A:return(r._context.displayName||"Context")+".Consumer";case O:var a=r.render;return r=r.displayName,r||(r=a.displayName||a.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case N:return a=r.displayName||null,a!==null?a:ne(r.type)||"Memo";case D:a=r._payload,r=r._init;try{return ne(r(a))}catch{}}return null}var ae=Array.isArray,P=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H={pending:!1,data:null,method:null,action:null},re=[],ye=-1;function k(r){return{current:r}}function Q(r){0>ye||(r.current=re[ye],re[ye]=null,ye--)}function ee(r,a){ye++,re[ye]=r.current,r.current=a}var se=k(null),me=k(null),_e=k(null),be=k(null);function Se(r,a){switch(ee(_e,a),ee(me,r),ee(se,null),a.nodeType){case 9:case 11:r=(r=a.documentElement)&&(r=r.namespaceURI)?Db(r):0;break;default:if(r=a.tagName,a=a.namespaceURI)a=Db(a),r=Lb(a,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}Q(se),ee(se,r)}function De(){Q(se),Q(me),Q(_e)}function Le(r){r.memoizedState!==null&&ee(be,r);var a=se.current,s=Lb(a,r.type);a!==s&&(ee(me,r),ee(se,s))}function Ee(r){me.current===r&&(Q(se),Q(me)),be.current===r&&(Q(be),Rl._currentValue=H)}var ze,Nt;function ge(r){if(ze===void 0)try{throw Error()}catch(s){var a=s.stack.trim().match(/\n( *(at )?)/);ze=a&&a[1]||"",Nt=-1<s.stack.indexOf(`
3
3
  at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
4
4
  `+ze+r+Nt}var ve=!1;function Re(r,a){if(!r||ve)return"";ve=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(a){var de=function(){throw Error()};if(Object.defineProperty(de.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(de,[])}catch(oe){var te=oe}Reflect.construct(r,[],de)}else{try{de.call()}catch(oe){te=oe}r.call(de.prototype)}}else{try{throw Error()}catch(oe){te=oe}(de=r())&&typeof de.catch=="function"&&de.catch(function(){})}}catch(oe){if(oe&&te&&typeof oe.stack=="string")return[oe.stack,te.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=u.DetermineComponentFrameRoot(),x=g[0],I=g[1];if(x&&I){var B=x.split(`
@@ -152,4 +152,4 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
152
152
  .dark .grecaptcha-badge {
153
153
  border-color: var(--input) !important;
154
154
  }
155
- `}),b.jsx(XF,{ref:e,sitekey:t.siteKey,theme:n,hl:o,size:t.provider==="google-recaptcha-v2-invisible"?"invisible":"normal",className:fe(t.provider==="google-recaptcha-v2-invisible"?"absolute":"mx-auto h-[76px] w-[302px] overflow-hidden rounded bg-muted")},`${n}-${o}-${t.provider}`)]}):null}var hV=["/sign-up/email","/sign-in/email","/forget-password"];function Ac({ref:e,localization:t,action:n}){const{captcha:o}=E.useContext(qe);if(!o||n&&!(o.endpoints||hV).includes(n))return null;const{theme:i}=Tg(),l=o.provider==="google-recaptcha-v2-checkbox"||o.provider==="google-recaptcha-v2-invisible",c=o.provider==="google-recaptcha-v3"||o.provider==="google-recaptcha-v2-invisible",d=o.provider==="cloudflare-turnstile",f=o.provider==="hcaptcha",h=o.provider==="captchafox";return b.jsxs(b.Fragment,{children:[l&&b.jsx(fV,{ref:e}),c&&b.jsx(dV,{localization:t}),d&&b.jsx(ET,{className:"mx-auto",ref:e,siteKey:o.siteKey,options:{theme:i,size:"flexible"}}),f&&b.jsx("div",{className:"mx-auto",children:b.jsx(OF,{ref:e,sitekey:o.siteKey,theme:i})}),h&&b.jsx("div",{className:"mx-auto",children:b.jsx(dT,{ref:e,sitekey:o.siteKey,theme:i})})]})}function g0({className:e,containerClassName:t,...n}){return b.jsx(OT,{"data-slot":"input-otp",containerClassName:fe("flex items-center gap-2 has-disabled:opacity-50",t),className:fe("disabled:cursor-not-allowed",e),...n})}function gs({className:e,...t}){return b.jsx("div",{"data-slot":"input-otp-group",className:fe("flex items-center",e),...t})}function pn({index:e,className:t,...n}){const o=E.useContext(RT),{char:i,hasFakeCaret:l,isActive:c}=o?.slots[e]??{};return b.jsxs("div",{"data-slot":"input-otp-slot","data-active":c,className:fe("data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive dark:bg-input/30 border-input relative flex h-9 w-9 items-center justify-center border-y border-r text-sm shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]",t),...n,children:[i,l&&b.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:b.jsx("div",{className:"animate-caret-blink bg-foreground h-4 w-px duration-1000"})})]})}function rv({...e}){return b.jsx("div",{"data-slot":"input-otp-separator",role:"separator",...e,children:b.jsx(_7,{})})}function y0({otpSeparators:e=0}){return e===0?b.jsxs(gs,{children:[b.jsx(pn,{index:0}),b.jsx(pn,{index:1}),b.jsx(pn,{index:2}),b.jsx(pn,{index:3}),b.jsx(pn,{index:4}),b.jsx(pn,{index:5})]}):e===1?b.jsxs(b.Fragment,{children:[b.jsxs(gs,{children:[b.jsx(pn,{index:0}),b.jsx(pn,{index:1}),b.jsx(pn,{index:2})]}),b.jsx(rv,{}),b.jsxs(gs,{children:[b.jsx(pn,{index:3}),b.jsx(pn,{index:4}),b.jsx(pn,{index:5})]})]}):b.jsxs(b.Fragment,{children:[b.jsxs(gs,{children:[b.jsx(pn,{index:0}),b.jsx(pn,{index:1})]}),b.jsx(rv,{}),b.jsxs(gs,{children:[b.jsx(pn,{index:2}),b.jsx(pn,{index:3})]}),b.jsx(rv,{}),b.jsxs(gs,{children:[b.jsx(pn,{index:4}),b.jsx(pn,{index:5})]})]})}function dw(e){const[t,n]=E.useState();return t?b.jsx(mV,{...e,email:t}):b.jsx(pV,{...e,setEmail:n})}function pV({className:e,classNames:t,isSubmitting:n,localization:o,setIsSubmitting:i,setEmail:l}){const c=Ho(),{captchaRef:d,getCaptchaHeaders:f}=Tc({localization:o}),{authClient:h,localization:v,toast:p,localizeErrors:y}=E.useContext(qe);o={...v,...o};const _=bn({email:Ve().email({message:`${o.EMAIL} ${o.IS_INVALID}`})}),w=mo({resolver:vo(_),defaultValues:{email:""}});n=n||w.formState.isSubmitting,E.useEffect(()=>{i?.(w.formState.isSubmitting)},[w.formState.isSubmitting,i]);async function S({email:T}){const R={throw:!0,headers:await f("/email-otp/send-verification-otp")};try{await h.emailOtp.sendVerificationOtp({email:T,type:"sign-in",fetchOptions:R}),p({variant:"success",message:o.EMAIL_OTP_VERIFICATION_SENT}),l(T)}catch(A){p({variant:"error",message:jt({error:A,localization:o,localizeErrors:y})})}}return b.jsx(yo,{...w,children:b.jsxs("form",{onSubmit:w.handleSubmit(S),noValidate:c,className:fe("grid w-full gap-6",e,t?.base),children:[b.jsx(Ht,{control:w.control,name:"email",render:({field:T})=>b.jsxs(Gt,{children:[b.jsx(qt,{className:t?.label,children:o.EMAIL}),b.jsx(rn,{children:b.jsx(Yr,{className:t?.input,type:"email",placeholder:o.EMAIL_PLACEHOLDER,disabled:n,...T})}),b.jsx(un,{className:t?.error})]})}),b.jsx(Ac,{ref:d,localization:o,action:"/email-otp/send-verification-otp"}),b.jsx(wt,{type:"submit",disabled:n,className:fe("w-full",t?.button,t?.primaryButton),children:n?b.jsx(gn,{className:"animate-spin"}):o.EMAIL_OTP_SEND_ACTION})]})})}function mV({className:e,classNames:t,isSubmitting:n,localization:o,otpSeparators:i=0,redirectTo:l,setIsSubmitting:c,email:d}){const{authClient:f,localization:h,toast:v,localizeErrors:p}=E.useContext(qe);o={...h,...o};const{onSuccess:y,isPending:_}=bo({redirectTo:l}),w=bn({code:Ve().min(1,{message:`${o.EMAIL_OTP} ${o.IS_REQUIRED}`}).min(6,{message:`${o.EMAIL_OTP} ${o.IS_INVALID}`})}),S=mo({resolver:vo(w),defaultValues:{code:""}});n=n||S.formState.isSubmitting||_,E.useEffect(()=>{c?.(S.formState.isSubmitting||_)},[S.formState.isSubmitting,_,c]);async function T({code:R}){try{await f.signIn.emailOtp({email:d,otp:R,fetchOptions:{throw:!0}}),await y()}catch(A){v({variant:"error",message:jt({error:A,localization:o,localizeErrors:p})}),S.reset()}}return b.jsx(yo,{...S,children:b.jsxs("form",{onSubmit:S.handleSubmit(T),className:fe("grid w-full gap-6",e,t?.base),children:[b.jsx(Ht,{control:S.control,name:"code",render:({field:R})=>b.jsxs(Gt,{children:[b.jsx(qt,{className:t?.label,children:o.EMAIL_OTP}),b.jsx(rn,{children:b.jsx(g0,{...R,maxLength:6,onChange:A=>{R.onChange(A),A.length===6&&S.handleSubmit(T)()},containerClassName:t?.otpInputContainer,className:t?.otpInput,disabled:n,children:b.jsx(y0,{otpSeparators:i})})}),b.jsx(un,{className:t?.error})]})}),b.jsx("div",{className:"grid gap-4",children:b.jsxs(wt,{type:"submit",disabled:n,className:fe(t?.button,t?.primaryButton),children:[n&&b.jsx(gn,{className:"animate-spin"}),o.EMAIL_OTP_VERIFY_ACTION]})})]})})}function vV({onCancel:e,localization:t,className:n,classNames:o,otpSeparators:i,callbackURL:l,isSubmitting:c,redirectTo:d,setIsSubmitting:f}){const[h,v]=E.useState(!0),[p,y]=E.useState(30),{authClient:_,localization:w,toast:S,localizeErrors:T,navigate:R,basePath:A,viewPaths:C}=E.useContext(qe);t={...w,...t};const O=typeof window<"u"&&new URLSearchParams(window.location.search).get("email")||"",{onSuccess:M,isPending:L}=bo({redirectTo:d}),N=bn({code:Ve().min(1,{message:`${t.EMAIL_OTP} ${t.IS_REQUIRED}`}).min(6,{message:`${t.EMAIL_OTP} ${t.IS_INVALID}`})}),D=mo({resolver:vo(N),defaultValues:{code:""}}),z=c||D.formState.isSubmitting||L;E.useEffect(()=>{f?.(D.formState.isSubmitting||L)},[D.formState.isSubmitting,L,f]),E.useEffect(()=>{if(p>0){const K=setTimeout(()=>y(p-1),1e3);return()=>clearTimeout(K)}else v(!1)},[p]);async function W({code:K}){try{const j=await _.emailOtp.verifyEmail({email:O,otp:K,fetchOptions:{throw:!0}});"token"in j&&j.token?await M():(R(`${A}/${C.SIGN_IN}${window.location.search}`),S({variant:"success",message:t.EMAIL_VERIFICATION_SUCCESS}))}catch(j){S({variant:"error",message:jt({error:j,localization:t,localizeErrors:T})}),D.reset()}}async function G(){if(!h){v(!0),y(30);try{await _.emailOtp.sendVerificationOtp({email:O,type:"email-verification",fetchOptions:{throw:!0}}),S({variant:"success",message:t.EMAIL_OTP_VERIFICATION_SENT})}catch(K){S({variant:"error",message:jt({error:K,localization:t,localizeErrors:T})}),v(!1),y(0)}}}return O?b.jsx(yo,{...D,children:b.jsxs("form",{onSubmit:D.handleSubmit(W),className:fe("grid w-full gap-6",n,o?.base),children:[b.jsx(Ht,{control:D.control,name:"code",render:({field:K})=>b.jsxs(Gt,{children:[b.jsx(qt,{className:o?.label,children:t.EMAIL_OTP}),b.jsx(rn,{children:b.jsx(g0,{...K,maxLength:6,onChange:j=>{K.onChange(j),j.length===6&&D.handleSubmit(W)()},containerClassName:o?.otpInputContainer,className:o?.otpInput,disabled:z,children:b.jsx(y0,{otpSeparators:i})})}),b.jsx(un,{className:o?.error})]})}),b.jsxs("div",{className:"grid gap-4",children:[b.jsxs(wt,{type:"submit",disabled:z,className:fe(o?.button,o?.primaryButton),children:[z&&b.jsx(gn,{className:"animate-spin"}),t.EMAIL_OTP_VERIFY_ACTION]}),b.jsx(wt,{type:"button",variant:"outline",onClick:G,disabled:h||z,className:fe("w-full",o?.button),children:h?`${t.RESEND_VERIFICATION_EMAIL} (${p}s)`:t.RESEND_VERIFICATION_EMAIL}),e&&b.jsx(wt,{type:"button",variant:"ghost",onClick:e,disabled:z,className:"w-full",children:t.CANCEL})]})]})}):b.jsx("div",{className:fe("grid w-full gap-6",n),children:b.jsxs("div",{className:"text-center",children:[b.jsx("h2",{className:"font-semibold text-destructive text-lg",children:"Invalid Request"}),b.jsx("p",{className:"text-muted-foreground text-sm",children:t.EMAIL_REQUIRED||"Email address is required"})]})})}function gV({className:e,classNames:t,isSubmitting:n,localization:o,setIsSubmitting:i}){const l=Ho(),{captchaRef:c,getCaptchaHeaders:d,resetCaptcha:f}=Tc({localization:o}),{authClient:h,basePath:v,baseURL:p,localization:y,navigate:_,toast:w,viewPaths:S,localizeErrors:T}=E.useContext(qe);o={...y,...o};const R=bn({email:Ve().email({message:`${o.EMAIL} ${o.IS_INVALID}`}).min(1,{message:`${o.EMAIL} ${o.IS_REQUIRED}`})}),A=mo({resolver:vo(R),defaultValues:{email:""}});n=n||A.formState.isSubmitting,E.useEffect(()=>{i?.(A.formState.isSubmitting)},[A.formState.isSubmitting,i]);async function C({email:O}){try{const M={throw:!0,headers:await d("/forget-password")};await h.requestPasswordReset({email:O,redirectTo:`${p}${v}/${S.RESET_PASSWORD}`,fetchOptions:M}),w({variant:"success",message:o.FORGOT_PASSWORD_EMAIL}),_(`${v}/${S.SIGN_IN}${window.location.search}`)}catch(M){w({variant:"error",message:jt({error:M,localization:o,localizeErrors:T})}),f()}}return b.jsx(yo,{...A,children:b.jsxs("form",{onSubmit:A.handleSubmit(C),noValidate:l,className:fe("grid w-full gap-6",e,t?.base),children:[b.jsx(Ht,{control:A.control,name:"email",render:({field:O})=>b.jsxs(Gt,{children:[b.jsx(qt,{className:t?.label,children:o.EMAIL}),b.jsx(rn,{children:b.jsx(Yr,{className:t?.input,type:"email",placeholder:o.EMAIL_PLACEHOLDER,disabled:n,...O})}),b.jsx(un,{className:t?.error})]})}),b.jsx(Ac,{ref:c,localization:o,action:"/forget-password"}),b.jsx(wt,{type:"submit",disabled:n,className:fe("w-full",t?.button,t?.primaryButton),children:n?b.jsx(gn,{className:"animate-spin"}):o.FORGOT_PASSWORD_ACTION})]})})}function fw({className:e,classNames:t,callbackURL:n,isSubmitting:o,localization:i,redirectTo:l,setIsSubmitting:c}){const d=Ho(),{captchaRef:f,getCaptchaHeaders:h,resetCaptcha:v}=Tc({localization:i}),{authClient:p,basePath:y,baseURL:_,persistClient:w,localization:S,redirectTo:T,viewPaths:R,toast:A,localizeErrors:C}=E.useContext(qe);i={...S,...i};const O=E.useCallback(()=>l||Ei("redirectTo")||T,[l,T]),M=E.useCallback(()=>`${_}${n||(w?`${y}/${R.CALLBACK}?redirectTo=${encodeURIComponent(O())}`:O())}`,[n,w,y,R,_,O]),L=bn({email:Ve().email({message:`${i.EMAIL} ${i.IS_INVALID}`})}),N=mo({resolver:vo(L),defaultValues:{email:""}});o=o||N.formState.isSubmitting,E.useEffect(()=>{c?.(N.formState.isSubmitting)},[N.formState.isSubmitting,c]);async function D({email:z}){try{const W={throw:!0,headers:await h("/sign-in/magic-link")};await p.signIn.magicLink({email:z,callbackURL:M(),fetchOptions:W}),A({variant:"success",message:i.MAGIC_LINK_EMAIL}),N.reset()}catch(W){A({variant:"error",message:jt({error:W,localization:i,localizeErrors:C})}),v()}}return b.jsx(yo,{...N,children:b.jsxs("form",{onSubmit:N.handleSubmit(D),noValidate:d,className:fe("grid w-full gap-6",e,t?.base),children:[b.jsx(Ht,{control:N.control,name:"email",render:({field:z})=>b.jsxs(Gt,{children:[b.jsx(qt,{className:t?.label,children:i.EMAIL}),b.jsx(rn,{children:b.jsx(Yr,{className:t?.input,type:"email",placeholder:i.EMAIL_PLACEHOLDER,disabled:o,...z})}),b.jsx(un,{className:t?.error})]})}),b.jsx(Ac,{ref:f,localization:i,action:"/sign-in/magic-link"}),b.jsx(wt,{type:"submit",disabled:o,className:fe("w-full",t?.button,t?.primaryButton),children:o?b.jsx(gn,{className:"animate-spin"}):i.MAGIC_LINK_ACTION})]})})}function yV({className:e,classNames:t,isSubmitting:n,localization:o,redirectTo:i,setIsSubmitting:l}){const{authClient:c,localization:d,toast:f,localizeErrors:h}=E.useContext(qe);o={...d,...o};const{onSuccess:v,isPending:p}=bo({redirectTo:i}),y=bn({code:Ve().min(1,{message:o.BACKUP_CODE_REQUIRED})}),_=mo({resolver:vo(y),defaultValues:{code:""}});n=n||_.formState.isSubmitting||p,E.useEffect(()=>{l?.(_.formState.isSubmitting||p)},[_.formState.isSubmitting,p,l]);async function w({code:S}){try{await c.twoFactor.verifyBackupCode({code:S,fetchOptions:{throw:!0}}),await v()}catch(T){f({variant:"error",message:jt({error:T,localization:o,localizeErrors:h})}),_.reset()}}return b.jsx(yo,{..._,children:b.jsxs("form",{onSubmit:_.handleSubmit(w),className:fe("grid gap-6",e,t?.base),children:[b.jsx(Ht,{control:_.control,name:"code",render:({field:S})=>b.jsxs(Gt,{children:[b.jsx(qt,{className:t?.label,children:o.BACKUP_CODE}),b.jsx(rn,{children:b.jsx(Yr,{placeholder:o.BACKUP_CODE_PLACEHOLDER,autoComplete:"off",className:t?.input,disabled:n,...S})}),b.jsx(un,{className:t?.error})]})}),b.jsx(wt,{type:"submit",disabled:n,className:fe(t?.button,t?.primaryButton),children:n?b.jsx(gn,{className:"animate-spin"}):o.RECOVER_ACCOUNT_ACTION})]})})}function bV({className:e,classNames:t,localization:n,passwordValidation:o}){const i=E.useRef(!1),{authClient:l,basePath:c,credentials:d,localization:f,viewPaths:h,navigate:v,toast:p,localizeErrors:y}=E.useContext(qe),_=d?.confirmPassword,w=d?.passwordValidation;n={...f,...n},o={...w,...o};const S=bn({newPassword:ic(o,{PASSWORD_REQUIRED:n.NEW_PASSWORD_REQUIRED,PASSWORD_TOO_SHORT:n.PASSWORD_TOO_SHORT,PASSWORD_TOO_LONG:n.PASSWORD_TOO_LONG,INVALID_PASSWORD:n.INVALID_PASSWORD}),confirmPassword:_?ic(o,{PASSWORD_REQUIRED:n.CONFIRM_PASSWORD_REQUIRED,PASSWORD_TOO_SHORT:n.PASSWORD_TOO_SHORT,PASSWORD_TOO_LONG:n.PASSWORD_TOO_LONG,INVALID_PASSWORD:n.INVALID_PASSWORD}):Ve().optional()}).refine(C=>!_||C.newPassword===C.confirmPassword,{message:n.PASSWORDS_DO_NOT_MATCH,path:["confirmPassword"]}),T=mo({resolver:vo(S),defaultValues:{newPassword:"",confirmPassword:""}}),R=T.formState.isSubmitting;E.useEffect(()=>{if(i.current)return;i.current=!0;const O=new URLSearchParams(window.location.search).get("token");(!O||O==="INVALID_TOKEN")&&(v(`${c}/${h.SIGN_IN}${window.location.search}`),p({variant:"error",message:n.INVALID_TOKEN}))},[c,v,p,h,n]);async function A({newPassword:C}){try{const M=new URLSearchParams(window.location.search).get("token");await l.resetPassword({newPassword:C,token:M,fetchOptions:{throw:!0}}),p({variant:"success",message:n.RESET_PASSWORD_SUCCESS}),v(`${c}/${h.SIGN_IN}${window.location.search}`)}catch(O){p({variant:"error",message:jt({error:O,localization:n,localizeErrors:y})}),T.reset()}}return b.jsx(yo,{...T,children:b.jsxs("form",{onSubmit:T.handleSubmit(A),className:fe("grid w-full gap-6",e,t?.base),children:[b.jsx(Ht,{control:T.control,name:"newPassword",render:({field:C})=>b.jsxs(Gt,{children:[b.jsx(qt,{className:t?.label,children:n.NEW_PASSWORD}),b.jsx(rn,{children:b.jsx(hc,{autoComplete:"new-password",className:t?.input,placeholder:n.NEW_PASSWORD_PLACEHOLDER,disabled:R,...C})}),b.jsx(un,{className:t?.error})]})}),_&&b.jsx(Ht,{control:T.control,name:"confirmPassword",render:({field:C})=>b.jsxs(Gt,{children:[b.jsx(qt,{className:t?.label,children:n.CONFIRM_PASSWORD}),b.jsx(rn,{children:b.jsx(hc,{autoComplete:"new-password",className:t?.input,placeholder:n.CONFIRM_PASSWORD_PLACEHOLDER,disabled:R,...C})}),b.jsx(un,{className:t?.error})]})}),b.jsx(wt,{type:"submit",disabled:R,className:fe("w-full",t?.button,t?.primaryButton),children:R?b.jsx(gn,{className:"animate-spin"}):n.RESET_PASSWORD_ACTION})]})})}function _V({className:e,classNames:t,isSubmitting:n,localization:o,redirectTo:i,setIsSubmitting:l,passwordValidation:c}){const d=Ho(),{captchaRef:f,getCaptchaHeaders:h,resetCaptcha:v}=Tc({localization:o}),{authClient:p,basePath:y,credentials:_,localization:w,viewPaths:S,navigate:T,toast:R,Link:A,localizeErrors:C,emailVerification:O}=E.useContext(qe),M=_?.rememberMe,L=_?.username,N=_?.passwordValidation;o={...w,...o},c={...N,...c};const{onSuccess:D,isPending:z}=bo({redirectTo:i}),W=bn({email:L?Ve().min(1,{message:`${o.USERNAME} ${o.IS_REQUIRED}`}):Ve().email({message:`${o.EMAIL} ${o.IS_INVALID}`}),password:ic(c,o),rememberMe:wg().optional()}),G=mo({resolver:vo(W),defaultValues:{email:"",password:"",rememberMe:!M}});n=n||G.formState.isSubmitting||z,E.useEffect(()=>{l?.(G.formState.isSubmitting||z)},[G.formState.isSubmitting,z,l]);async function K({email:j,password:ne,rememberMe:ae}){var P;try{let F={};if(L&&!q8(j)){const H={throw:!0,headers:await h("/sign-in/username")};F=await p.signIn.username({username:j,password:ne,rememberMe:ae,fetchOptions:H})}else{const H={throw:!0,headers:await h("/sign-in/email")};F=await p.signIn.email({email:j,password:ne,rememberMe:ae,fetchOptions:H})}F.twoFactorRedirect?T(`${y}/${S.TWO_FACTOR}${window.location.search}`):await D()}catch(F){G.resetField("password"),v(),R({variant:"error",message:jt({error:F,localization:o,localizeErrors:C})}),O?.otp&&((P=F?.error)==null?void 0:P.code)==="EMAIL_NOT_VERIFIED"&&T(`${y}/${S.EMAIL_VERIFICATION}?email=${encodeURIComponent(j)}`)}}return b.jsx(yo,{...G,children:b.jsxs("form",{onSubmit:G.handleSubmit(K),noValidate:d,className:fe("grid w-full gap-6",e,t?.base),children:[b.jsx(Ht,{control:G.control,name:"email",render:({field:j})=>b.jsxs(Gt,{children:[b.jsx(qt,{className:t?.label,children:L?o.USERNAME:o.EMAIL}),b.jsx(rn,{children:b.jsx(Yr,{autoComplete:L?"username":"email",className:t?.input,type:L?"text":"email",placeholder:L?o.SIGN_IN_USERNAME_PLACEHOLDER:o.EMAIL_PLACEHOLDER,disabled:n,...j})}),b.jsx(un,{className:t?.error})]})}),b.jsx(Ht,{control:G.control,name:"password",render:({field:j})=>b.jsxs(Gt,{children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsx(qt,{className:t?.label,children:o.PASSWORD}),_?.forgotPassword&&b.jsx(A,{className:fe("text-sm hover:underline",t?.forgotPasswordLink),href:`${y}/${S.FORGOT_PASSWORD}${d?window.location.search:""}`,children:o.FORGOT_PASSWORD_LINK})]}),b.jsx(rn,{children:b.jsx(hc,{autoComplete:"current-password",className:t?.input,placeholder:o.PASSWORD_PLACEHOLDER,disabled:n,...j})}),b.jsx(un,{className:t?.error})]})}),M&&b.jsx(Ht,{control:G.control,name:"rememberMe",render:({field:j})=>b.jsxs(Gt,{className:"flex",children:[b.jsx(rn,{children:b.jsx(v0,{checked:j.value,onCheckedChange:j.onChange,disabled:n})}),b.jsx(qt,{children:o.REMEMBER_ME})]})}),b.jsx(Ac,{ref:f,localization:o,action:"/sign-in/email"}),b.jsx(wt,{type:"submit",disabled:n,className:fe("w-full",t?.button,t?.primaryButton),children:n?b.jsx(gn,{className:"animate-spin"}):o.SIGN_IN_ACTION})]})})}function EV({className:e,classNames:t,callbackURL:n,isSubmitting:o,localization:i,redirectTo:l,setIsSubmitting:c,passwordValidation:d}){const f=Ho(),{captchaRef:h,getCaptchaHeaders:v,resetCaptcha:p}=Tc({localization:i}),{additionalFields:y,authClient:_,basePath:w,baseURL:S,credentials:T,localization:R,nameRequired:A,persistClient:C,redirectTo:O,signUp:M,viewPaths:L,navigate:N,toast:D,avatar:z,localizeErrors:W,emailVerification:G}=E.useContext(qe),K=T?.confirmPassword,j=T?.username,ne=T?.usernameRequired??!0,ae=T?.passwordValidation,P=M?.fields;i={...R,...i},d={...ae,...d};const F=E.useRef(null),[H,re]=E.useState(null),[ye,k]=E.useState(!1),Q=E.useCallback(()=>l||Ei("redirectTo")||O,[l,O]),ee=E.useCallback(()=>`${S}${n||(C?`${w}/${L.CALLBACK}?redirectTo=${encodeURIComponent(Q())}`:Q())}`,[n,C,w,L,S,Q]),{onSuccess:se,isPending:me}=bo({redirectTo:l}),_e={email:Ve().email({message:`${i.EMAIL} ${i.IS_INVALID}`}),password:ic(d,i),name:P?.includes("name")&&A?Ve().min(1,{message:`${i.NAME} ${i.IS_REQUIRED}`}):Ve().optional(),image:Ve().optional(),username:j&&ne?Ve().min(1,{message:`${i.USERNAME} ${i.IS_REQUIRED}`}):Ve().optional(),confirmPassword:K?ic(d,{PASSWORD_REQUIRED:i.CONFIRM_PASSWORD_REQUIRED,PASSWORD_TOO_SHORT:i.PASSWORD_TOO_SHORT,PASSWORD_TOO_LONG:i.PASSWORD_TOO_LONG,INVALID_PASSWORD:i.INVALID_PASSWORD}):Ve().optional()},be={};if(P)for(const ve of P){if(ve==="name"||ve==="image")continue;const Re=y?.[ve];if(!Re)continue;let ke;Re.type==="number"?ke=Re.required?H8(et=>et?Number(et):void 0,b2({message:`${Re.label} ${i.IS_INVALID}`})):G8({message:`${Re.label} ${i.IS_INVALID}`}).optional():Re.type==="boolean"?ke=Re.required?LE({message:`${Re.label} ${i.IS_INVALID}`}).refine(et=>et===!0,{message:`${Re.label} ${i.IS_REQUIRED}`}):LE({message:`${Re.label} ${i.IS_INVALID}`}).optional():ke=Re.required?Ve().min(1,`${Re.label} ${i.IS_REQUIRED}`):Ve().optional(),be[ve]=ke}const Se=bn(_e).extend(be).refine(ve=>K?ve.password===ve.confirmPassword:!0,{message:i.PASSWORDS_DO_NOT_MATCH,path:["confirmPassword"]}),De={email:"",password:"",...K&&{confirmPassword:""},...P?.includes("name")?{name:""}:{},...j?{username:""}:{},...P?.includes("image")&&z?{image:""}:{}};if(P)for(const ve of P){if(ve==="name"||ve==="image")continue;const Re=y?.[ve];Re&&(De[ve]=Re.type==="boolean"?!1:"")}const Le=mo({resolver:vo(Se),defaultValues:De});o=o||Le.formState.isSubmitting||me,E.useEffect(()=>{c?.(Le.formState.isSubmitting||me)},[Le.formState.isSubmitting,me,c]);const Ee=async ve=>{if(z){k(!0);try{const Re=await M$(ve,crypto.randomUUID(),z.size,z.extension);let ke;z.upload?ke=await z.upload(Re):ke=await D$(Re),ke?(re(ke),Le.setValue("image",ke)):(re(null),Le.setValue("image",""))}catch(Re){console.error(Re),D({variant:"error",message:jt({error:Re,localization:i,localizeErrors:W})})}k(!1)}},ze=()=>{re(null),Le.setValue("image","")},Nt=()=>{var ve;return(ve=F.current)==null?void 0:ve.click()};async function ge({email:ve,password:Re,name:ke,username:et,confirmPassword:Ue,image:Qe,...U}){try{for(const[pe,he]of Object.entries(U)){const xe=y?.[pe];if(xe?.validate&&typeof he=="string"&&!await xe.validate(he)){Le.setError(pe,{message:`${xe.label} ${i.IS_INVALID}`});return}}const q={throw:!0,headers:await v("/sign-up/email")},Z={};et!==void 0&&(!ne&&(et===null||et===""||typeof et=="string"&&et.trim()==="")||(Z.username=et)),Qe!==void 0&&(Z.image=Qe);const ue=await _.signUp.email({email:ve,password:Re,name:ke||"",...Z,...U,callbackURL:ee(),fetchOptions:q});"token"in ue&&ue.token?await se():G?.otp?N(`${w}/${L.EMAIL_VERIFICATION}?email=${encodeURIComponent(ve)}`):(N(`${w}/${L.SIGN_IN}${window.location.search}`),D({variant:"success",message:i.SIGN_UP_EMAIL}))}catch(q){D({variant:"error",message:jt({error:q,localization:i,localizeErrors:W})}),Le.resetField("password"),Le.resetField("confirmPassword"),p()}}return b.jsx(yo,{...Le,children:b.jsxs("form",{onSubmit:Le.handleSubmit(ge),noValidate:f,className:fe("grid w-full gap-6",e,t?.base),children:[P?.includes("image")&&z&&b.jsxs(b.Fragment,{children:[b.jsx("input",{ref:F,accept:"image/*",disabled:ye,hidden:!0,type:"file",onChange:ve=>{var Re;const ke=(Re=ve.target.files)==null?void 0:Re.item(0);ke&&Ee(ke),ve.target.value=""}}),b.jsx(Ht,{control:Le.control,name:"image",render:()=>b.jsxs(Gt,{children:[b.jsx(qt,{children:i.AVATAR}),b.jsxs("div",{className:"flex items-center gap-4",children:[b.jsxs(NT,{children:[b.jsx(DT,{asChild:!0,children:b.jsx(wt,{className:"size-fit rounded-full",size:"icon",variant:"ghost",type:"button",children:b.jsx($T,{isPending:ye,className:"size-16",user:H?{name:Le.watch("name"),email:Le.watch("email"),image:H}:null,localization:i})})}),b.jsxs(LT,{align:"start",onCloseAutoFocus:ve=>ve.preventDefault(),children:[b.jsxs(lf,{onClick:Nt,disabled:ye,children:[b.jsx(m7,{}),i.UPLOAD_AVATAR]}),H&&b.jsxs(lf,{onClick:ze,disabled:ye,variant:"destructive",children:[b.jsx(S7,{}),i.DELETE_AVATAR]})]})]}),b.jsxs(wt,{type:"button",variant:"outline",onClick:Nt,disabled:ye,children:[ye&&b.jsx(gn,{className:"animate-spin"}),i.UPLOAD]})]}),b.jsx(un,{})]})})]}),P?.includes("name")&&b.jsx(Ht,{control:Le.control,name:"name",render:({field:ve})=>b.jsxs(Gt,{children:[b.jsxs(qt,{className:t?.label,children:[i.NAME,!A&&b.jsx("span",{className:"ml-1 text-muted-foreground",children:i.OPTIONAL_BRACKETS})]}),b.jsx(rn,{children:b.jsx(Yr,{autoComplete:"name",className:t?.input,placeholder:i.NAME_PLACEHOLDER,disabled:o,...ve,value:ve.value})}),b.jsx(un,{className:t?.error})]})}),j&&b.jsx(Ht,{control:Le.control,name:"username",render:({field:ve})=>b.jsxs(Gt,{children:[b.jsxs(qt,{className:t?.label,children:[i.USERNAME,!ne&&b.jsx("span",{className:"ml-1 text-muted-foreground",children:i.OPTIONAL_BRACKETS})]}),b.jsx(rn,{children:b.jsx(Yr,{autoComplete:"username",className:t?.input,placeholder:i.USERNAME_PLACEHOLDER,disabled:o,...ve,value:ve.value})}),b.jsx(un,{className:t?.error})]})}),b.jsx(Ht,{control:Le.control,name:"email",render:({field:ve})=>b.jsxs(Gt,{children:[b.jsx(qt,{className:t?.label,children:i.EMAIL}),b.jsx(rn,{children:b.jsx(Yr,{autoComplete:"email",className:t?.input,type:"email",placeholder:i.EMAIL_PLACEHOLDER,disabled:o,...ve,value:ve.value})}),b.jsx(un,{className:t?.error})]})}),b.jsx(Ht,{control:Le.control,name:"password",render:({field:ve})=>b.jsxs(Gt,{children:[b.jsx(qt,{className:t?.label,children:i.PASSWORD}),b.jsx(rn,{children:b.jsx(hc,{autoComplete:"new-password",className:t?.input,placeholder:i.PASSWORD_PLACEHOLDER,disabled:o,enableToggle:!0,...ve,value:ve.value})}),b.jsx(un,{className:t?.error})]})}),K&&b.jsx(Ht,{control:Le.control,name:"confirmPassword",render:({field:ve})=>b.jsxs(Gt,{children:[b.jsx(qt,{className:t?.label,children:i.CONFIRM_PASSWORD}),b.jsx(rn,{children:b.jsx(hc,{autoComplete:"new-password",className:t?.input,placeholder:i.CONFIRM_PASSWORD_PLACEHOLDER,disabled:o,enableToggle:!0,...ve,value:ve.value})}),b.jsx(un,{className:t?.error})]})}),P?.filter(ve=>ve!=="name"&&ve!=="image").map(ve=>{const Re=y?.[ve];return Re?Re.type==="boolean"?b.jsx(Ht,{control:Le.control,name:ve,render:({field:ke})=>b.jsxs(Gt,{className:"flex",children:[b.jsx(rn,{children:b.jsx(v0,{checked:ke.value,onCheckedChange:ke.onChange,disabled:o})}),b.jsx(qt,{className:t?.label,children:Re.label}),b.jsx(un,{className:t?.error})]})},ve):b.jsx(Ht,{control:Le.control,name:ve,render:({field:ke})=>b.jsxs(Gt,{children:[b.jsx(qt,{className:t?.label,children:Re.label}),b.jsx(rn,{children:Re.type==="number"?b.jsx(Yr,{className:t?.input,type:"number",placeholder:Re.placeholder||(typeof Re.label=="string"?Re.label:""),disabled:o,...ke,value:ke.value}):Re.multiline?b.jsx(z$,{className:t?.input,placeholder:Re.placeholder||(typeof Re.label=="string"?Re.label:""),disabled:o,...ke,value:ke.value}):b.jsx(Yr,{className:t?.input,type:"text",placeholder:Re.placeholder||(typeof Re.label=="string"?Re.label:""),disabled:o,...ke,value:ke.value})}),b.jsx(un,{className:t?.error})]})},ve):(console.error(`Additional field ${ve} not found`),null)}),b.jsx(Ac,{ref:h,localization:i,action:"/sign-up/email"}),b.jsx(wt,{type:"submit",disabled:o,className:fe("w-full",t?.button,t?.primaryButton),children:o?b.jsx(gn,{className:"animate-spin"}):i.SIGN_UP_ACTION})]})})}function SV({className:e,classNames:t,isSubmitting:n,localization:o,otpSeparators:i=0,redirectTo:l,setIsSubmitting:c}){var d;const f=Ho(),h=f?Ei("totpURI"):null,v=E.useRef(!1),{authClient:p,basePath:y,hooks:{useSession:_},localization:w,twoFactor:S,viewPaths:T,toast:R,Link:A,localizeErrors:C}=E.useContext(qe);o={...w,...o};const{onSuccess:O,isPending:M}=bo({redirectTo:l}),{data:L}=_(),N=(d=L?.user)==null?void 0:d.twoFactorEnabled,[D,z]=E.useState(S?.length===1?S[0]:null),[W,G]=E.useState(!1),[K,j]=E.useState(0),ne=bn({code:Ve().min(1,{message:`${o.ONE_TIME_PASSWORD} ${o.IS_REQUIRED}`}).min(6,{message:`${o.ONE_TIME_PASSWORD} ${o.IS_INVALID}`}),trustDevice:wg().optional()}),ae=mo({resolver:vo(ne),defaultValues:{code:""}});n=n||ae.formState.isSubmitting||M,E.useEffect(()=>{c?.(ae.formState.isSubmitting||M)},[ae.formState.isSubmitting,M,c]),E.useEffect(()=>{D==="otp"&&K<=0&&!v.current&&(v.current=!0,P())},[D]),E.useEffect(()=>{if(K<=0)return;const H=setTimeout(()=>{j(re=>re-1)},1e3);return()=>clearTimeout(H)},[K]);const P=async()=>{if(!(W||K>0)){try{G(!0),await p.twoFactor.sendOtp({fetchOptions:{throw:!0}}),j(60)}catch(H){R({variant:"error",message:jt({error:H,localization:o,localizeErrors:C})}),H.error.code==="INVALID_TWO_FACTOR_COOKIE"&&history.back()}v.current=!1,G(!1)}};async function F({code:H,trustDevice:re}){try{await(D==="totp"?p.twoFactor.verifyTotp:p.twoFactor.verifyOtp)({code:H,trustDevice:re,fetchOptions:{throw:!0}}),await O(),L&&!N&&R({variant:"success",message:o?.TWO_FACTOR_ENABLED})}catch(ye){R({variant:"error",message:jt({error:ye,localization:o,localizeErrors:C})}),ae.reset()}}return b.jsx(yo,{...ae,children:b.jsxs("form",{onSubmit:ae.handleSubmit(F),className:fe("grid w-full gap-6",e,t?.base),children:[S?.includes("totp")&&h&&D==="totp"&&b.jsxs("div",{className:"space-y-3",children:[b.jsx(PT,{className:t?.label,children:o.TWO_FACTOR_TOTP_LABEL}),b.jsx(_$,{className:fe("border shadow-xs",t?.qrCode),value:h})]}),D!==null&&b.jsxs(b.Fragment,{children:[b.jsx(Ht,{control:ae.control,name:"code",render:({field:H})=>b.jsxs(Gt,{children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsx(qt,{className:t?.label,children:o.ONE_TIME_PASSWORD}),b.jsx(A,{className:fe("text-sm hover:underline",t?.forgotPasswordLink),href:`${y}/${T.RECOVER_ACCOUNT}${f?window.location.search:""}`,children:o.FORGOT_AUTHENTICATOR})]}),b.jsx(rn,{children:b.jsx(g0,{...H,maxLength:6,onChange:re=>{H.onChange(re),re.length===6&&ae.handleSubmit(F)()},containerClassName:t?.otpInputContainer,className:t?.otpInput,disabled:n,children:b.jsx(y0,{otpSeparators:i})})}),b.jsx(un,{className:t?.error})]})}),b.jsx(Ht,{control:ae.control,name:"trustDevice",render:({field:H})=>b.jsxs(Gt,{className:"flex",children:[b.jsx(rn,{children:b.jsx(v0,{checked:H.value,onCheckedChange:H.onChange,disabled:n,className:t?.checkbox})}),b.jsx(qt,{className:t?.label,children:o.TRUST_DEVICE})]})})]}),b.jsxs("div",{className:"grid gap-4",children:[D!==null&&b.jsxs(wt,{type:"submit",disabled:n,className:fe(t?.button,t?.primaryButton),children:[n&&b.jsx(gn,{className:"animate-spin"}),o.TWO_FACTOR_ACTION]}),D==="otp"&&S?.includes("otp")&&b.jsxs(wt,{type:"button",variant:"outline",onClick:P,disabled:K>0||W||n,className:fe(t?.button,t?.outlineButton),children:[W?b.jsx(gn,{className:"animate-spin"}):b.jsx($E,{className:t?.icon}),o.RESEND_CODE,K>0&&` (${K})`]}),D!=="otp"&&S?.includes("otp")&&b.jsxs(wt,{type:"button",variant:"secondary",className:fe(t?.button,t?.secondaryButton),onClick:()=>z("otp"),disabled:n,children:[b.jsx($E,{className:t?.icon}),o.SEND_VERIFICATION_CODE]}),D!=="totp"&&S?.includes("totp")&&b.jsxs(wt,{type:"button",variant:"secondary",className:fe(t?.button,t?.secondaryButton),onClick:()=>z("totp"),disabled:n,children:[b.jsx(E7,{className:t?.icon}),o.CONTINUE_WITH_AUTHENTICATOR]})]})]})})}function HT({redirectTo:e}){const t=E.useRef(!1),{authClient:n,basePath:o,viewPaths:i}=E.useContext(qe),{onSuccess:l}=bo({redirectTo:e||`${o}/${i.SIGN_IN}`});return E.useEffect(()=>{t.current||(t.current=!0,n.signOut().finally(l))},[n,l]),b.jsx(gn,{className:"animate-spin"})}function wV({className:e,classNames:t,callbackURL:n,isSubmitting:o,localization:i,pathname:l,redirectTo:c,view:d,otpSeparators:f=0,setIsSubmitting:h}){const{basePath:v,credentials:p,localization:y,magicLink:_,emailOTP:w,signUp:S,twoFactor:T,viewPaths:R,replace:A}=E.useContext(qe),C=!!S;if(i={...y,...i},E.useEffect(()=>{l&&!xv(R,l)&&(console.error(`Invalid auth view: ${l}`),A(`${v}/${R.SIGN_IN}${window.location.search}`))},[l,R,v,A]),d=d||xv(R,l)||"SIGN_IN",E.useEffect(()=>{let O=!1;d==="MAGIC_LINK"&&(!_||!p&&!w)&&(O=!0),d==="EMAIL_OTP"&&(!w||!p&&!_)&&(O=!0),d==="SIGN_UP"&&!C&&(O=!0),!p&&["SIGN_UP","FORGOT_PASSWORD","RESET_PASSWORD","TWO_FACTOR","RECOVER_ACCOUNT"].includes(d)&&(O=!0),["TWO_FACTOR","RECOVER_ACCOUNT"].includes(d)&&!T&&(O=!0),O&&A(`${v}/${R.SIGN_IN}${window.location.search}`)},[v,d,R,p,A,w,C,_,T]),d==="SIGN_OUT")return b.jsx(HT,{redirectTo:c});if(d==="CALLBACK")return b.jsx(VT,{redirectTo:c});if(d==="SIGN_IN")return p?b.jsx(_V,{className:e,classNames:t,localization:i,redirectTo:c,isSubmitting:o,setIsSubmitting:h}):_?b.jsx(fw,{className:e,classNames:t,callbackURL:n,localization:i,redirectTo:c,isSubmitting:o,setIsSubmitting:h}):w?b.jsx(dw,{className:e,classNames:t,callbackURL:n,localization:i,redirectTo:c,isSubmitting:o,setIsSubmitting:h}):null;if(d==="TWO_FACTOR")return b.jsx(SV,{className:e,classNames:t,localization:i,otpSeparators:f,redirectTo:c,isSubmitting:o,setIsSubmitting:h});if(d==="RECOVER_ACCOUNT")return b.jsx(yV,{className:e,classNames:t,localization:i,redirectTo:c,isSubmitting:o,setIsSubmitting:h});if(d==="MAGIC_LINK")return b.jsx(fw,{className:e,classNames:t,callbackURL:n,localization:i,redirectTo:c,isSubmitting:o,setIsSubmitting:h});if(d==="EMAIL_OTP")return b.jsx(dw,{className:e,classNames:t,callbackURL:n,localization:i,redirectTo:c,isSubmitting:o,setIsSubmitting:h});if(d==="EMAIL_VERIFICATION")return b.jsx(vV,{className:e,classNames:t,callbackURL:n,localization:i,otpSeparators:f,redirectTo:c,isSubmitting:o,setIsSubmitting:h});if(d==="FORGOT_PASSWORD")return b.jsx(gV,{className:e,classNames:t,localization:i,isSubmitting:o,setIsSubmitting:h});if(d==="RESET_PASSWORD")return b.jsx(bV,{className:e,classNames:t,localization:i});if(d==="SIGN_UP")return C&&b.jsx(EV,{className:e,classNames:t,callbackURL:n,localization:i,redirectTo:c,isSubmitting:o,setIsSubmitting:h})}function xV({className:e,classNames:t,localization:n}){const{localization:o,redirectTo:i,replace:l,toast:c}=E.useContext(qe),d=E.useMemo(()=>({...o,...n}),[o,n]),{data:f}=R$(),[h,v]=E.useState(null);return E.useEffect(()=>{const p=Ei("invitationId");if(!p){c({variant:"error",message:d.INVITATION_NOT_FOUND}),l(i);return}v(p)},[d.INVITATION_NOT_FOUND,c,l,i]),!f||!h?b.jsx(GT,{className:e,classNames:t}):b.jsx(RV,{className:e,classNames:t,localization:d,invitationId:h})}function RV({className:e,classNames:t,localization:n,invitationId:o}){var i;const{authClient:l,hooks:{useInvitation:c},localization:d,organization:f,redirectTo:h,replace:v,toast:p,localizeErrors:y}=E.useContext(qe),_=E.useMemo(()=>({...d,...n}),[d,n]),[w,S]=E.useState(!1),[T,R]=E.useState(!1),A=w||T,{data:C,isPending:O}=c({query:{id:o}}),M=E.useCallback(()=>Ei("redirectTo")||h,[h]);E.useEffect(()=>{if(!(O||!o)){if(!C){p({variant:"error",message:_.INVITATION_NOT_FOUND}),v(h);return}(C.status!=="pending"||new Date(C.expiresAt)<new Date)&&(p({variant:"error",message:new Date(C.expiresAt)<new Date?_.INVITATION_EXPIRED:_.INVITATION_NOT_FOUND}),v(h))}},[C,O,o,_,p,v,h]);const L=async()=>{R(!0);try{await l.organization.acceptInvitation({invitationId:o,fetchOptions:{throw:!0}}),p({variant:"success",message:_.INVITATION_ACCEPTED||"Invitation accepted"}),v(M())}catch(G){p({variant:"error",message:jt({error:G,localization:_,localizeErrors:y})}),R(!1)}},N=async()=>{S(!0);try{await l.organization.rejectInvitation({invitationId:o,fetchOptions:{throw:!0}}),p({variant:"success",message:_.INVITATION_REJECTED}),v(h)}catch(G){p({variant:"error",message:jt({error:G,localization:_,localizeErrors:y})}),S(!1)}},W=((i=[...[{role:"owner",label:_.OWNER},{role:"admin",label:_.ADMIN},{role:"member",label:_.MEMBER}],...f?.customRoles||[]].find(G=>G.role===C?.role))==null?void 0:i.label)||C?.role;return C?b.jsxs(yi,{className:fe("w-full max-w-sm",e,t?.base),children:[b.jsxs(kf,{className:fe("justify-items-center text-center",t?.header),children:[b.jsx(p0,{className:fe("text-lg md:text-xl",t?.title),children:_.ACCEPT_INVITATION}),b.jsx(jf,{className:fe("text-xs md:text-sm",t?.description),children:_.ACCEPT_INVITATION_DESCRIPTION})]}),b.jsxs(zf,{className:fe("flex flex-col gap-6 truncate",t?.content),children:[b.jsxs(yi,{className:fe("flex-row items-center p-4"),children:[b.jsx(FT,{organization:{id:C.organizationId,name:C.organizationName,slug:C.organizationSlug,logo:C.organizationLogo,createdAt:new Date},localization:_}),b.jsx("p",{className:"ml-auto text-muted-foreground text-sm",children:W})]}),b.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[b.jsxs(wt,{variant:"outline",className:fe(t?.button,t?.outlineButton),onClick:N,disabled:A,children:[w?b.jsx(gn,{className:"animate-spin"}):b.jsx(N2,{}),_.REJECT]}),b.jsxs(wt,{className:fe(t?.button,t?.primaryButton),onClick:L,disabled:A,children:[T?b.jsx(gn,{className:"animate-spin"}):b.jsx(Ag,{}),_.ACCEPT]})]})]})]}):b.jsx(GT,{className:e,classNames:t})}var GT=({className:e,classNames:t,localization:n})=>b.jsxs(yi,{className:fe("w-full max-w-sm",e,t?.base),children:[b.jsxs(kf,{className:fe("justify-items-center",t?.header),children:[b.jsx(mr,{className:fe("my-1 h-5 w-full max-w-32 md:h-5.5 md:w-40",t?.skeleton)}),b.jsx(mr,{className:fe("my-0.5 h-3 w-full max-w-56 md:h-3.5 md:w-64",t?.skeleton)})]}),b.jsxs(zf,{className:fe("flex flex-col gap-6 truncate",t?.content),children:[b.jsxs(yi,{className:fe("flex-row items-center p-4"),children:[b.jsx(FT,{isPending:!0,localization:n}),b.jsx(mr,{className:"mt-0.5 ml-auto h-4 w-full max-w-14 shrink-2"})]}),b.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[b.jsx(mr,{className:"h-9 w-full"}),b.jsx(mr,{className:"h-9 w-full"})]})]})]});function hw({className:e,orientation:t="horizontal",decorative:n=!0,...o}){return b.jsx(x$,{"data-slot":"separator",decorative:n,orientation:t,className:fe("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...o})}function OV({classNames:e,isSubmitting:t,localization:n,view:o}){var i,l,c,d;const{viewPaths:f,navigate:h,basePath:v}=E.useContext(qe);return b.jsxs(wt,{className:fe("w-full",(i=e?.form)==null?void 0:i.button,(l=e?.form)==null?void 0:l.secondaryButton),disabled:t,type:"button",variant:"secondary",onClick:()=>h(`${v}/${o==="EMAIL_OTP"?f.SIGN_IN:f.EMAIL_OTP}${window.location.search}`),children:[o==="EMAIL_OTP"?b.jsx(I2,{className:(c=e?.form)==null?void 0:c.icon}):b.jsx(M2,{className:(d=e?.form)==null?void 0:d.icon}),n.SIGN_IN_WITH," ",o==="EMAIL_OTP"?n.PASSWORD:n.EMAIL_OTP]})}function TV({classNames:e,isSubmitting:t,localization:n,view:o}){var i,l,c,d;const{viewPaths:f,navigate:h,basePath:v,credentials:p}=E.useContext(qe);return b.jsxs(wt,{className:fe("w-full",(i=e?.form)==null?void 0:i.button,(l=e?.form)==null?void 0:l.secondaryButton),disabled:t,type:"button",variant:"secondary",onClick:()=>h(`${v}/${o==="MAGIC_LINK"||!p?f.SIGN_IN:f.MAGIC_LINK}${window.location.search}`),children:[o==="MAGIC_LINK"?b.jsx(I2,{className:(c=e?.form)==null?void 0:c.icon}):b.jsx(M2,{className:(d=e?.form)==null?void 0:d.icon}),n.SIGN_IN_WITH," ",o==="MAGIC_LINK"?n.PASSWORD:n.MAGIC_LINK]})}function AV({localization:e,redirectTo:t}){const{authClient:n,localization:o,toast:i,localizeErrors:l}=E.useContext(qe),c=E.useRef(!1);e=E.useMemo(()=>({...o,...e}),[o,e]);const{onSuccess:d}=bo({redirectTo:t});return E.useEffect(()=>{if(!c.current){c.current=!0;try{n.oneTap({fetchOptions:{throw:!0,onSuccess:d}})}catch(f){i({variant:"error",message:jt({error:f,localization:e,localizeErrors:l})})}}},[n,e,l,d,i]),null}function CV({classNames:e,isSubmitting:t,localization:n,redirectTo:o,setIsSubmitting:i}){var l,c;const{authClient:d,localization:f,toast:h,localizeErrors:v}=E.useContext(qe);n={...f,...n};const{onSuccess:p}=bo({redirectTo:o}),y=async()=>{i?.(!0);try{const _=await d.signIn.passkey({fetchOptions:{throw:!0}});_?.error?(h({variant:"error",message:jt({error:_.error,localization:n,localizeErrors:v})}),i?.(!1)):p()}catch(_){h({variant:"error",message:jt({error:_,localization:n,localizeErrors:v})}),i?.(!1)}};return b.jsxs(wt,{className:fe("w-full",(l=e?.form)==null?void 0:l.button,(c=e?.form)==null?void 0:c.secondaryButton),disabled:t,formNoValidate:!0,name:"passkey",value:"true",variant:"secondary",onClick:y,children:[b.jsx(b7,{}),n.SIGN_IN_WITH," ",n.PASSKEY]})}function pw({className:e,classNames:t,callbackURL:n,isSubmitting:o,localization:i,other:l,provider:c,redirectTo:d,socialLayout:f,setIsSubmitting:h}){var v,p,y,_;const{authClient:w,basePath:S,baseURL:T,persistClient:R,redirectTo:A,viewPaths:C,social:O,genericOAuth:M,toast:L,localizeErrors:N}=E.useContext(qe),D=E.useCallback(()=>d||Ei("redirectTo")||A,[d,A]),z=E.useCallback(()=>`${T}${n||(R?`${S}/${C.CALLBACK}?redirectTo=${encodeURIComponent(D())}`:D())}`,[n,R,S,C,T,D]),W=async()=>{h(!0);try{if(l){const G={providerId:c.provider,callbackURL:z(),fetchOptions:{throw:!0}};M?.signIn?(await M.signIn(G),setTimeout(()=>{h(!1)},1e4)):await w.signIn.oauth2(G)}else{const G={provider:c.provider,callbackURL:z(),fetchOptions:{throw:!0}};O?.signIn?(await O.signIn(G),setTimeout(()=>{h(!1)},1e4)):await w.signIn.social(G)}}catch(G){L({variant:"error",message:jt({error:G,localization:i,localizeErrors:N})}),h(!1)}};return b.jsxs(wt,{className:fe(f==="vertical"?"w-full":"grow",e,(v=t?.form)==null?void 0:v.button,(p=t?.form)==null?void 0:p.outlineButton,(y=t?.form)==null?void 0:y.providerButton),disabled:o,variant:"outline",onClick:W,children:[c.icon&&b.jsx(c.icon,{className:(_=t?.form)==null?void 0:_.icon}),f==="grid"&&c.name,f==="vertical"&&`${i.SIGN_IN_WITH} ${c.name}`]})}function LH({className:e,classNames:t,callbackURL:n,cardHeader:o,cardFooter:i,localization:l,path:c,pathname:d,redirectTo:f,socialLayout:h="auto",view:v,otpSeparators:p=0}){var y,_,w,S,T,R;const A=Ho(),{basePath:C,credentials:O,localization:M,magicLink:L,emailOTP:N,oneTap:D,passkey:z,signUp:W,social:G,genericOAuth:K,viewPaths:j,Link:ne}=E.useContext(qe);l={...M,...l};let ae=h;ae==="auto"&&(ae=O&&G?.providers&&G.providers.length>2?"horizontal":"vertical");const P=c??d?.split("/").pop(),F=v||xv(j,P)||"SIGN_IN",[H,re]=E.useState(!1);if(E.useEffect(()=>{const k=()=>re(!1);return window.addEventListener("pagehide",k),()=>{re(!1),window.removeEventListener("pagehide",k)}},[]),F==="CALLBACK")return b.jsx(VT,{redirectTo:f});if(F==="SIGN_OUT")return b.jsx(HT,{redirectTo:f});if(F==="ACCEPT_INVITATION")return b.jsx(xV,{className:e,classNames:t});const ye=!O&&!L&&!N?l.DISABLED_CREDENTIALS_DESCRIPTION:l[`${F}_DESCRIPTION`];return b.jsxs(yi,{className:fe("w-full max-w-sm",e,t?.base),children:[b.jsx(kf,{className:t?.header,children:o||b.jsxs(b.Fragment,{children:[b.jsx(p0,{className:fe("text-lg md:text-xl",t?.title),children:l[F]}),ye&&b.jsx(jf,{className:fe("text-xs md:text-sm",t?.description),children:ye})]})}),b.jsxs(zf,{className:fe("grid gap-6",t?.content),children:[D&&["SIGN_IN","SIGN_UP","MAGIC_LINK","EMAIL_OTP"].includes(F)&&b.jsx(AV,{localization:l,redirectTo:f}),(O||L||N)&&b.jsxs("div",{className:"grid gap-4",children:[b.jsx(wV,{classNames:t?.form,callbackURL:n,isSubmitting:H,localization:l,otpSeparators:p,view:F,redirectTo:f,setIsSubmitting:re}),L&&(O&&["FORGOT_PASSWORD","SIGN_UP","SIGN_IN","MAGIC_LINK","EMAIL_OTP"].includes(F)||N&&F==="EMAIL_OTP")&&b.jsx(TV,{classNames:t,localization:l,view:F,isSubmitting:H}),N&&(O&&["FORGOT_PASSWORD","SIGN_UP","SIGN_IN","MAGIC_LINK","EMAIL_OTP"].includes(F)||L&&["SIGN_IN","MAGIC_LINK"].includes(F))&&b.jsx(OV,{classNames:t,localization:l,view:F,isSubmitting:H})]}),F!=="RESET_PASSWORD"&&F!=="EMAIL_VERIFICATION"&&(((y=G?.providers)==null?void 0:y.length)||((_=K?.providers)==null?void 0:_.length)||F==="SIGN_IN"&&z)&&b.jsxs(b.Fragment,{children:[(O||L||N)&&b.jsxs("div",{className:fe("flex items-center gap-2",t?.continueWith),children:[b.jsx(hw,{className:fe("!w-auto grow",t?.separator)}),b.jsx("span",{className:"flex-shrink-0 text-muted-foreground text-sm",children:l.OR_CONTINUE_WITH}),b.jsx(hw,{className:fe("!w-auto grow",t?.separator)})]}),b.jsxs("div",{className:"grid gap-4",children:[(((w=G?.providers)==null?void 0:w.length)||((S=K?.providers)==null?void 0:S.length))&&b.jsxs("div",{className:fe("flex w-full items-center justify-between gap-4",ae==="horizontal"&&"flex-wrap",ae==="vertical"&&"flex-col",ae==="grid"&&"grid grid-cols-2"),children:[(T=G?.providers)==null?void 0:T.map(k=>{const Q=lV.find(ee=>ee.provider===k);return Q?b.jsx(pw,{classNames:t,callbackURL:n,isSubmitting:H,localization:l,provider:Q,redirectTo:f,setIsSubmitting:re,socialLayout:ae},k):null}),(R=K?.providers)==null?void 0:R.map(k=>b.jsx(pw,{classNames:t,callbackURL:n,isSubmitting:H,localization:l,provider:k,redirectTo:f,setIsSubmitting:re,socialLayout:ae,other:!0},k.provider))]}),z&&["SIGN_IN","MAGIC_LINK","EMAIL_OTP","RECOVER_ACCOUNT","TWO_FACTOR","FORGOT_PASSWORD"].includes(F)&&b.jsx(CV,{classNames:t,isSubmitting:H,localization:l,redirectTo:f,setIsSubmitting:re})]})]})]}),i&&b.jsx(Xv,{className:t?.footer,children:i}),O&&W&&b.jsxs(Xv,{className:fe("justify-center gap-1.5 text-muted-foreground text-sm",t?.footer),children:[F==="SIGN_IN"||F==="MAGIC_LINK"||F==="EMAIL_OTP"?l.DONT_HAVE_AN_ACCOUNT:F==="SIGN_UP"?l.ALREADY_HAVE_AN_ACCOUNT:b.jsx(h7,{className:"size-3"}),F==="SIGN_IN"||F==="MAGIC_LINK"||F==="EMAIL_OTP"||F==="SIGN_UP"?b.jsx(ne,{className:fe("text-foreground underline",t?.footerLink),href:`${C}/${j[F==="SIGN_IN"||F==="MAGIC_LINK"||F==="EMAIL_OTP"?"SIGN_UP":"SIGN_IN"]}${A?window.location.search:""}`,children:b.jsx(wt,{variant:"link",size:"sm",className:fe("px-0 text-foreground underline",t?.footerLink),children:F==="SIGN_IN"||F==="MAGIC_LINK"||F==="EMAIL_OTP"?l.SIGN_UP:l.SIGN_IN})}):b.jsx(wt,{variant:"link",size:"sm",className:fe("px-0 text-foreground underline",t?.footerLink),onClick:()=>window.history.back(),children:l.GO_BACK})]})]})}function PH({children:e}){const{hooks:{useSession:t}}=E.useContext(qe),{isPending:n}=t();return n?e:null}function kH({children:e}){const{hooks:{useSession:t}}=E.useContext(qe),{data:n}=t();return n?e:null}function jH({children:e}){const{hooks:{useSession:t}}=E.useContext(qe),{data:n,isPending:o}=t();return!n&&!o?e:null}function IV(e){const t=cf.c(8),{children:n}=e,o=mc();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i={basePath:"/",pathMode:"slug"},t[0]=i):i=t[0];let l,c;t[1]!==o?(l=f=>o({to:f}),c=f=>o({to:f,replace:!0}),t[1]=o,t[2]=l,t[3]=c):(l=t[2],c=t[3]);let d;return t[4]!==n||t[5]!==l||t[6]!==c?(d=b.jsx(c7,{authClient:lI,organization:i,navigate:l,replace:c,Link:MV,children:n}),t[4]=n,t[5]=l,t[6]=c,t[7]=d):d=t[7],d}function MV(e){const{href:t,className:n,children:o,...i}=e;return b.jsx(pg,{to:t,className:n,...i,children:o})}const NV=new B4;function DV(e){const t=cf.c(3),{children:n}=e;let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=b.jsx(UP,{}),t[0]=o):o=t[0];let i;return t[1]!==n?(i=b.jsxs($4,{client:NV,children:[o,b.jsx(o3,{children:b.jsx(IV,{children:n})})]}),t[1]=n,t[2]=i):i=t[2],i}const LV=function(){return null};function PV(){const e=cf.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=b.jsx("div",{className:"flex items-center justify-center min-h-screen",children:b.jsx("div",{className:"text-gray-500",children:"Loading..."})}),e[0]=t):t=e[0],t}const Cc=C5({component:()=>b.jsxs(DV,{children:[b.jsx(E.Suspense,{fallback:b.jsx(PV,{}),children:b.jsx(Kw,{})}),b.jsx(LV,{})]})}),kV=yn({getParentRoute:()=>Cc,path:"/login",component:An(()=>Tn(()=>import("./login-DSSk45pi.js"),__vite__mapDeps([0,1,2]))),validateSearch:za(()=>bn({next:Ve().optional(),client_id:Ve().optional(),redirect_uri:Ve().optional(),response_type:Ve().optional(),state:Ve().optional(),scope:Ve().optional(),code_challenge:Ve().optional(),code_challenge_method:Ve().optional()}))}),jV=yn({getParentRoute:()=>Cc,path:"/auth/$pathname",component:An(()=>Tn(()=>import("./auth-catchall-D-D94naG.js"),[]))}),yr=yn({getParentRoute:()=>Cc,id:"shell",component:An(()=>Tn(()=>import("./shell-layout-BCUXUEeW.js"),__vite__mapDeps([3,4,1,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,2,42,43,44,45])))}),zV=yn({getParentRoute:()=>yr,path:"/",component:An(()=>Tn(()=>import("./home-dep1g9Zf.js"),__vite__mapDeps([46,27,1,43,16,11,2,40,30,41,42])))}),UV=yn({getParentRoute:()=>yr,path:"/$org",component:An(()=>Tn(()=>import("./page-Du4118GJ.js"),__vite__mapDeps([47,5,1,6,48,49,44,18,50,51,17,52,8,53,11,9,38,54,55,56,34,24,57,58,29,59])))}),BV=yn({getParentRoute:()=>yr,path:"/$org/members",component:An(()=>Tn(()=>import("./members-D4I8qlnr.js"),__vite__mapDeps([60,48,49,1,44,6,18,50,51,61,4,2,62,63,5,64,65,66,32,8,43,56,30,45,12,67,10,68,11,36,17,41,20,21,23,27,69,57])))}),FV=yn({getParentRoute:()=>yr,path:"/$org/mcps",component:An(()=>Tn(()=>import("./connections-CDl5cKXc.js"),__vite__mapDeps([70,48,49,1,44,6,18,50,51,61,4,2,62,26,27,5,17,71,22,30,56,45,12,41,69,72,11,36,10,25,20,21,23,33]))),validateSearch:za(()=>bn({action:Sf(["create"]).optional()}))}),$V=yn({getParentRoute:()=>yr,path:"/$org/settings",component:An(()=>Tn(()=>import("./settings-sSoOIGWg.js"),__vite__mapDeps([73,48,49,1,44,6,18,50,51,41,2,12])))}),VV=yn({getParentRoute:()=>yr,path:"/$org/monitoring",component:An(()=>Tn(()=>import("./monitoring-CvcerPLg.js"),__vite__mapDeps([74,5,1,6,48,49,44,18,50,51,61,4,2,17,54,55,56,34,24,57,58,29,21,38,66,75,11,36,64,76,20,35,77,23]))),validateSearch:za(()=>bn({from:Ve().default("now-24h"),to:Ve().default("now"),connectionId:Ev(Ve()).optional().default([]),gatewayId:Ev(Ve()).optional().default([]),tool:Ve().default(""),status:Sf(["all","success","errors"]).default("all"),search:Ve().default(""),page:b2().optional(),streaming:wg().default(!0),propertyFilters:Ve().default("")}))}),qT=yn({getParentRoute:()=>yr,path:"/$org/store",component:An(()=>Tn(()=>import("./store-H6vucsd1.js"),__vite__mapDeps([78,32,48,49,1,44,6,18,50,5,79,80,10,4,61,2,68,27,81,82,77,20,21,11,13,14,7,8])))}),HV=yn({getParentRoute:()=>yr,path:"/$org/workflow",component:An(()=>Tn(()=>import("./workflow-CaCjE8aO.js"),__vite__mapDeps([83,32,84,33,5,1,6,49,44,18,50,61,4,2,27,24,69,71,22,36,62,85,80,43,8,86,39,87,13,14,30,11,88,65,48,10])))}),GV=yn({getParentRoute:()=>qT,path:"/$appName",component:An(()=>Tn(()=>import("./store-app-detail-aULJzMOJ.js"),__vite__mapDeps([89,16,10,1,65,5,6,21,11,44,28,4,90,8,31,81,49,18,50,61,2,62,27,88,91,92,56,13,14,52,93,94,87,33,79,82]))),validateSearch:za(()=>bn({registryId:Ve().optional(),serverName:Ve().optional(),itemId:Ve().optional()}))}),qV=yn({getParentRoute:()=>yr,path:"/$org/mcps/$connectionId",component:An(()=>Tn(()=>import("./connection-detail-Bn-jl6HG.js"),__vite__mapDeps([95,4,1,17,5,6,13,14,96,97,72,2,11,36,52,8,86,39,31,57,10,88,65,41,20,21,25,38,9,98,87,81,94,33,55,76,99,92,56,84,49,44,18,50,61,27,24,69,71,22,62,85,80,43,30,90,91]))),validateSearch:za(()=>bn({tab:Ve().optional()}))}),ZV=yn({getParentRoute:()=>yr,path:"/$org/mcps/$connectionId/$collectionName/$itemId",component:An(()=>Tn(()=>import("./collection-detail-P20CfY5q.js"),__vite__mapDeps([100,5,1,6,4,17,86,39,41,2,23,101,88,65,16,35,75,24,10,58,67,96,97,14,72,11,36,13,52,8,31,57,20,21,25,38,9,98,87,81,94,33,55,76,93,29,85,42,37,19,22,50,53,45,12,44,56]))),validateSearch:za(()=>bn({replayId:Ve().optional()}))}),YV=yn({getParentRoute:()=>yr,path:"/$org/gateways",component:An(()=>Tn(()=>import("./gateways-1GR6BIbg.js"),__vite__mapDeps([102,48,49,1,44,6,18,50,51,61,4,2,62,26,27,5,17,38,71,22,30,56,9,69,10,36]))),validateSearch:za(()=>bn({action:Sf(["create"]).optional()}))}),KV=yn({getParentRoute:()=>yr,path:"/$org/gateways/$gatewayId",component:An(()=>Tn(()=>import("./gateway-detail-BEimKnAa.js"),__vite__mapDeps([103,4,1,17,5,6,63,64,65,61,2,11,12,38,99,98,13,14,15,7,8,16,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,9,101,10,41,92,56,79,86,39,88]))),validateSearch:za(()=>bn({tab:Ve().optional()}))}),WV=yn({getParentRoute:()=>Cc,path:"/oauth/callback",component:An(()=>Tn(()=>import("./oauth-callback-CY5bCrs6.js"),__vite__mapDeps([104,10,97,14])))}),QV=qT.addChildren([GV]),XV=yr.addChildren([zV,UV,BV,FV,YV,KV,VV,QV,HV,$V,qV,ZV]),JV=Cc.addChildren([XV,kV,jV,WV]),eH=z5({routeTree:JV}),tH=document.getElementById("root");m4.createRoot(tH).render(b.jsx(E.StrictMode,{children:b.jsx(F5,{router:eH})}));export{Go as $,LH as A,Ut as B,Ij as C,OH as D,Ge as E,$ as F,V$ as G,Si as H,WR as I,dz as J,n3 as K,xR as L,uz as M,sH as N,Cj as O,Aj as P,iH as Q,Oj as R,PV as S,Mj as T,DH as U,lx as V,Ev as W,yH as X,wg as Y,dn as Z,Sf as _,lI as a,dH as a$,Wr as a0,Kr as a1,nH as a2,bi as a3,Hw as a4,pf as a5,Jv as a6,Pa as a7,Fo as a8,D4 as a9,Tj as aA,pg as aB,T7 as aC,WI as aD,qO as aE,YO as aF,IU as aG,nB as aH,jR as aI,_v as aJ,b8 as aK,Rc as aL,yc as aM,cH as aN,wU as aO,xU as aP,RU as aQ,OU as aR,TU as aS,CH as aT,IH as aU,MH as aV,AH as aW,BL as aX,SH as aY,EH as aZ,za as a_,M_ as aa,oH as ab,rH as ac,e3 as ad,W4 as ae,er as af,BU as ag,FU as ah,UU as ai,In as aj,Tn as ak,DU as al,qw as am,UR as an,Q9 as ao,Bg as ap,YR as aq,zg as ar,X9 as as,J9 as at,N2 as au,S7 as av,Ca as aw,wR as ax,_7 as ay,y7 as az,hg as b,b2 as b0,bH as b1,vH as b2,pH as b3,iR as b4,Fg as b5,lc as b6,Q2 as b7,Ug as b8,NH as b9,xg as bA,x8 as bB,pM as bC,hH as bD,mH as bE,CL as bF,xH as bG,RH as bH,wH as bI,tc as bJ,j4 as bK,bw as bL,H8 as bM,NE as bN,uH as bO,lH as bP,G8 as bQ,pc as ba,On as bb,av as bc,gw as bd,V4 as be,q4 as bf,Q4 as bg,Z4 as bh,Y4 as bi,Qn as bj,J4 as bk,N_ as bl,X4 as bm,K4 as bn,O7 as bo,C7 as bp,xf as bq,Lg as br,fH as bs,E2 as bt,Sg as bu,_H as bv,KL as bw,gH as bx,y8 as by,S8 as bz,cf as c,fg as d,F4 as e,mc as f,Jn as g,TH as h,Q7 as i,b as j,G2 as k,x$ as l,qe as m,PH as n,kH as o,jH as p,t3 as q,E as r,Kw as s,jE as t,aH as u,bn as v,Ve as w,vo as x,mo as y,bc as z};
155
+ `}),b.jsx(XF,{ref:e,sitekey:t.siteKey,theme:n,hl:o,size:t.provider==="google-recaptcha-v2-invisible"?"invisible":"normal",className:fe(t.provider==="google-recaptcha-v2-invisible"?"absolute":"mx-auto h-[76px] w-[302px] overflow-hidden rounded bg-muted")},`${n}-${o}-${t.provider}`)]}):null}var hV=["/sign-up/email","/sign-in/email","/forget-password"];function Ac({ref:e,localization:t,action:n}){const{captcha:o}=E.useContext(qe);if(!o||n&&!(o.endpoints||hV).includes(n))return null;const{theme:i}=Tg(),l=o.provider==="google-recaptcha-v2-checkbox"||o.provider==="google-recaptcha-v2-invisible",c=o.provider==="google-recaptcha-v3"||o.provider==="google-recaptcha-v2-invisible",d=o.provider==="cloudflare-turnstile",f=o.provider==="hcaptcha",h=o.provider==="captchafox";return b.jsxs(b.Fragment,{children:[l&&b.jsx(fV,{ref:e}),c&&b.jsx(dV,{localization:t}),d&&b.jsx(ET,{className:"mx-auto",ref:e,siteKey:o.siteKey,options:{theme:i,size:"flexible"}}),f&&b.jsx("div",{className:"mx-auto",children:b.jsx(OF,{ref:e,sitekey:o.siteKey,theme:i})}),h&&b.jsx("div",{className:"mx-auto",children:b.jsx(dT,{ref:e,sitekey:o.siteKey,theme:i})})]})}function g0({className:e,containerClassName:t,...n}){return b.jsx(OT,{"data-slot":"input-otp",containerClassName:fe("flex items-center gap-2 has-disabled:opacity-50",t),className:fe("disabled:cursor-not-allowed",e),...n})}function gs({className:e,...t}){return b.jsx("div",{"data-slot":"input-otp-group",className:fe("flex items-center",e),...t})}function pn({index:e,className:t,...n}){const o=E.useContext(RT),{char:i,hasFakeCaret:l,isActive:c}=o?.slots[e]??{};return b.jsxs("div",{"data-slot":"input-otp-slot","data-active":c,className:fe("data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive dark:bg-input/30 border-input relative flex h-9 w-9 items-center justify-center border-y border-r text-sm shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]",t),...n,children:[i,l&&b.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:b.jsx("div",{className:"animate-caret-blink bg-foreground h-4 w-px duration-1000"})})]})}function rv({...e}){return b.jsx("div",{"data-slot":"input-otp-separator",role:"separator",...e,children:b.jsx(_7,{})})}function y0({otpSeparators:e=0}){return e===0?b.jsxs(gs,{children:[b.jsx(pn,{index:0}),b.jsx(pn,{index:1}),b.jsx(pn,{index:2}),b.jsx(pn,{index:3}),b.jsx(pn,{index:4}),b.jsx(pn,{index:5})]}):e===1?b.jsxs(b.Fragment,{children:[b.jsxs(gs,{children:[b.jsx(pn,{index:0}),b.jsx(pn,{index:1}),b.jsx(pn,{index:2})]}),b.jsx(rv,{}),b.jsxs(gs,{children:[b.jsx(pn,{index:3}),b.jsx(pn,{index:4}),b.jsx(pn,{index:5})]})]}):b.jsxs(b.Fragment,{children:[b.jsxs(gs,{children:[b.jsx(pn,{index:0}),b.jsx(pn,{index:1})]}),b.jsx(rv,{}),b.jsxs(gs,{children:[b.jsx(pn,{index:2}),b.jsx(pn,{index:3})]}),b.jsx(rv,{}),b.jsxs(gs,{children:[b.jsx(pn,{index:4}),b.jsx(pn,{index:5})]})]})}function dw(e){const[t,n]=E.useState();return t?b.jsx(mV,{...e,email:t}):b.jsx(pV,{...e,setEmail:n})}function pV({className:e,classNames:t,isSubmitting:n,localization:o,setIsSubmitting:i,setEmail:l}){const c=Ho(),{captchaRef:d,getCaptchaHeaders:f}=Tc({localization:o}),{authClient:h,localization:v,toast:p,localizeErrors:y}=E.useContext(qe);o={...v,...o};const _=bn({email:Ve().email({message:`${o.EMAIL} ${o.IS_INVALID}`})}),w=mo({resolver:vo(_),defaultValues:{email:""}});n=n||w.formState.isSubmitting,E.useEffect(()=>{i?.(w.formState.isSubmitting)},[w.formState.isSubmitting,i]);async function S({email:T}){const R={throw:!0,headers:await f("/email-otp/send-verification-otp")};try{await h.emailOtp.sendVerificationOtp({email:T,type:"sign-in",fetchOptions:R}),p({variant:"success",message:o.EMAIL_OTP_VERIFICATION_SENT}),l(T)}catch(A){p({variant:"error",message:jt({error:A,localization:o,localizeErrors:y})})}}return b.jsx(yo,{...w,children:b.jsxs("form",{onSubmit:w.handleSubmit(S),noValidate:c,className:fe("grid w-full gap-6",e,t?.base),children:[b.jsx(Ht,{control:w.control,name:"email",render:({field:T})=>b.jsxs(Gt,{children:[b.jsx(qt,{className:t?.label,children:o.EMAIL}),b.jsx(rn,{children:b.jsx(Yr,{className:t?.input,type:"email",placeholder:o.EMAIL_PLACEHOLDER,disabled:n,...T})}),b.jsx(un,{className:t?.error})]})}),b.jsx(Ac,{ref:d,localization:o,action:"/email-otp/send-verification-otp"}),b.jsx(wt,{type:"submit",disabled:n,className:fe("w-full",t?.button,t?.primaryButton),children:n?b.jsx(gn,{className:"animate-spin"}):o.EMAIL_OTP_SEND_ACTION})]})})}function mV({className:e,classNames:t,isSubmitting:n,localization:o,otpSeparators:i=0,redirectTo:l,setIsSubmitting:c,email:d}){const{authClient:f,localization:h,toast:v,localizeErrors:p}=E.useContext(qe);o={...h,...o};const{onSuccess:y,isPending:_}=bo({redirectTo:l}),w=bn({code:Ve().min(1,{message:`${o.EMAIL_OTP} ${o.IS_REQUIRED}`}).min(6,{message:`${o.EMAIL_OTP} ${o.IS_INVALID}`})}),S=mo({resolver:vo(w),defaultValues:{code:""}});n=n||S.formState.isSubmitting||_,E.useEffect(()=>{c?.(S.formState.isSubmitting||_)},[S.formState.isSubmitting,_,c]);async function T({code:R}){try{await f.signIn.emailOtp({email:d,otp:R,fetchOptions:{throw:!0}}),await y()}catch(A){v({variant:"error",message:jt({error:A,localization:o,localizeErrors:p})}),S.reset()}}return b.jsx(yo,{...S,children:b.jsxs("form",{onSubmit:S.handleSubmit(T),className:fe("grid w-full gap-6",e,t?.base),children:[b.jsx(Ht,{control:S.control,name:"code",render:({field:R})=>b.jsxs(Gt,{children:[b.jsx(qt,{className:t?.label,children:o.EMAIL_OTP}),b.jsx(rn,{children:b.jsx(g0,{...R,maxLength:6,onChange:A=>{R.onChange(A),A.length===6&&S.handleSubmit(T)()},containerClassName:t?.otpInputContainer,className:t?.otpInput,disabled:n,children:b.jsx(y0,{otpSeparators:i})})}),b.jsx(un,{className:t?.error})]})}),b.jsx("div",{className:"grid gap-4",children:b.jsxs(wt,{type:"submit",disabled:n,className:fe(t?.button,t?.primaryButton),children:[n&&b.jsx(gn,{className:"animate-spin"}),o.EMAIL_OTP_VERIFY_ACTION]})})]})})}function vV({onCancel:e,localization:t,className:n,classNames:o,otpSeparators:i,callbackURL:l,isSubmitting:c,redirectTo:d,setIsSubmitting:f}){const[h,v]=E.useState(!0),[p,y]=E.useState(30),{authClient:_,localization:w,toast:S,localizeErrors:T,navigate:R,basePath:A,viewPaths:C}=E.useContext(qe);t={...w,...t};const O=typeof window<"u"&&new URLSearchParams(window.location.search).get("email")||"",{onSuccess:M,isPending:L}=bo({redirectTo:d}),N=bn({code:Ve().min(1,{message:`${t.EMAIL_OTP} ${t.IS_REQUIRED}`}).min(6,{message:`${t.EMAIL_OTP} ${t.IS_INVALID}`})}),D=mo({resolver:vo(N),defaultValues:{code:""}}),z=c||D.formState.isSubmitting||L;E.useEffect(()=>{f?.(D.formState.isSubmitting||L)},[D.formState.isSubmitting,L,f]),E.useEffect(()=>{if(p>0){const K=setTimeout(()=>y(p-1),1e3);return()=>clearTimeout(K)}else v(!1)},[p]);async function W({code:K}){try{const j=await _.emailOtp.verifyEmail({email:O,otp:K,fetchOptions:{throw:!0}});"token"in j&&j.token?await M():(R(`${A}/${C.SIGN_IN}${window.location.search}`),S({variant:"success",message:t.EMAIL_VERIFICATION_SUCCESS}))}catch(j){S({variant:"error",message:jt({error:j,localization:t,localizeErrors:T})}),D.reset()}}async function G(){if(!h){v(!0),y(30);try{await _.emailOtp.sendVerificationOtp({email:O,type:"email-verification",fetchOptions:{throw:!0}}),S({variant:"success",message:t.EMAIL_OTP_VERIFICATION_SENT})}catch(K){S({variant:"error",message:jt({error:K,localization:t,localizeErrors:T})}),v(!1),y(0)}}}return O?b.jsx(yo,{...D,children:b.jsxs("form",{onSubmit:D.handleSubmit(W),className:fe("grid w-full gap-6",n,o?.base),children:[b.jsx(Ht,{control:D.control,name:"code",render:({field:K})=>b.jsxs(Gt,{children:[b.jsx(qt,{className:o?.label,children:t.EMAIL_OTP}),b.jsx(rn,{children:b.jsx(g0,{...K,maxLength:6,onChange:j=>{K.onChange(j),j.length===6&&D.handleSubmit(W)()},containerClassName:o?.otpInputContainer,className:o?.otpInput,disabled:z,children:b.jsx(y0,{otpSeparators:i})})}),b.jsx(un,{className:o?.error})]})}),b.jsxs("div",{className:"grid gap-4",children:[b.jsxs(wt,{type:"submit",disabled:z,className:fe(o?.button,o?.primaryButton),children:[z&&b.jsx(gn,{className:"animate-spin"}),t.EMAIL_OTP_VERIFY_ACTION]}),b.jsx(wt,{type:"button",variant:"outline",onClick:G,disabled:h||z,className:fe("w-full",o?.button),children:h?`${t.RESEND_VERIFICATION_EMAIL} (${p}s)`:t.RESEND_VERIFICATION_EMAIL}),e&&b.jsx(wt,{type:"button",variant:"ghost",onClick:e,disabled:z,className:"w-full",children:t.CANCEL})]})]})}):b.jsx("div",{className:fe("grid w-full gap-6",n),children:b.jsxs("div",{className:"text-center",children:[b.jsx("h2",{className:"font-semibold text-destructive text-lg",children:"Invalid Request"}),b.jsx("p",{className:"text-muted-foreground text-sm",children:t.EMAIL_REQUIRED||"Email address is required"})]})})}function gV({className:e,classNames:t,isSubmitting:n,localization:o,setIsSubmitting:i}){const l=Ho(),{captchaRef:c,getCaptchaHeaders:d,resetCaptcha:f}=Tc({localization:o}),{authClient:h,basePath:v,baseURL:p,localization:y,navigate:_,toast:w,viewPaths:S,localizeErrors:T}=E.useContext(qe);o={...y,...o};const R=bn({email:Ve().email({message:`${o.EMAIL} ${o.IS_INVALID}`}).min(1,{message:`${o.EMAIL} ${o.IS_REQUIRED}`})}),A=mo({resolver:vo(R),defaultValues:{email:""}});n=n||A.formState.isSubmitting,E.useEffect(()=>{i?.(A.formState.isSubmitting)},[A.formState.isSubmitting,i]);async function C({email:O}){try{const M={throw:!0,headers:await d("/forget-password")};await h.requestPasswordReset({email:O,redirectTo:`${p}${v}/${S.RESET_PASSWORD}`,fetchOptions:M}),w({variant:"success",message:o.FORGOT_PASSWORD_EMAIL}),_(`${v}/${S.SIGN_IN}${window.location.search}`)}catch(M){w({variant:"error",message:jt({error:M,localization:o,localizeErrors:T})}),f()}}return b.jsx(yo,{...A,children:b.jsxs("form",{onSubmit:A.handleSubmit(C),noValidate:l,className:fe("grid w-full gap-6",e,t?.base),children:[b.jsx(Ht,{control:A.control,name:"email",render:({field:O})=>b.jsxs(Gt,{children:[b.jsx(qt,{className:t?.label,children:o.EMAIL}),b.jsx(rn,{children:b.jsx(Yr,{className:t?.input,type:"email",placeholder:o.EMAIL_PLACEHOLDER,disabled:n,...O})}),b.jsx(un,{className:t?.error})]})}),b.jsx(Ac,{ref:c,localization:o,action:"/forget-password"}),b.jsx(wt,{type:"submit",disabled:n,className:fe("w-full",t?.button,t?.primaryButton),children:n?b.jsx(gn,{className:"animate-spin"}):o.FORGOT_PASSWORD_ACTION})]})})}function fw({className:e,classNames:t,callbackURL:n,isSubmitting:o,localization:i,redirectTo:l,setIsSubmitting:c}){const d=Ho(),{captchaRef:f,getCaptchaHeaders:h,resetCaptcha:v}=Tc({localization:i}),{authClient:p,basePath:y,baseURL:_,persistClient:w,localization:S,redirectTo:T,viewPaths:R,toast:A,localizeErrors:C}=E.useContext(qe);i={...S,...i};const O=E.useCallback(()=>l||Ei("redirectTo")||T,[l,T]),M=E.useCallback(()=>`${_}${n||(w?`${y}/${R.CALLBACK}?redirectTo=${encodeURIComponent(O())}`:O())}`,[n,w,y,R,_,O]),L=bn({email:Ve().email({message:`${i.EMAIL} ${i.IS_INVALID}`})}),N=mo({resolver:vo(L),defaultValues:{email:""}});o=o||N.formState.isSubmitting,E.useEffect(()=>{c?.(N.formState.isSubmitting)},[N.formState.isSubmitting,c]);async function D({email:z}){try{const W={throw:!0,headers:await h("/sign-in/magic-link")};await p.signIn.magicLink({email:z,callbackURL:M(),fetchOptions:W}),A({variant:"success",message:i.MAGIC_LINK_EMAIL}),N.reset()}catch(W){A({variant:"error",message:jt({error:W,localization:i,localizeErrors:C})}),v()}}return b.jsx(yo,{...N,children:b.jsxs("form",{onSubmit:N.handleSubmit(D),noValidate:d,className:fe("grid w-full gap-6",e,t?.base),children:[b.jsx(Ht,{control:N.control,name:"email",render:({field:z})=>b.jsxs(Gt,{children:[b.jsx(qt,{className:t?.label,children:i.EMAIL}),b.jsx(rn,{children:b.jsx(Yr,{className:t?.input,type:"email",placeholder:i.EMAIL_PLACEHOLDER,disabled:o,...z})}),b.jsx(un,{className:t?.error})]})}),b.jsx(Ac,{ref:f,localization:i,action:"/sign-in/magic-link"}),b.jsx(wt,{type:"submit",disabled:o,className:fe("w-full",t?.button,t?.primaryButton),children:o?b.jsx(gn,{className:"animate-spin"}):i.MAGIC_LINK_ACTION})]})})}function yV({className:e,classNames:t,isSubmitting:n,localization:o,redirectTo:i,setIsSubmitting:l}){const{authClient:c,localization:d,toast:f,localizeErrors:h}=E.useContext(qe);o={...d,...o};const{onSuccess:v,isPending:p}=bo({redirectTo:i}),y=bn({code:Ve().min(1,{message:o.BACKUP_CODE_REQUIRED})}),_=mo({resolver:vo(y),defaultValues:{code:""}});n=n||_.formState.isSubmitting||p,E.useEffect(()=>{l?.(_.formState.isSubmitting||p)},[_.formState.isSubmitting,p,l]);async function w({code:S}){try{await c.twoFactor.verifyBackupCode({code:S,fetchOptions:{throw:!0}}),await v()}catch(T){f({variant:"error",message:jt({error:T,localization:o,localizeErrors:h})}),_.reset()}}return b.jsx(yo,{..._,children:b.jsxs("form",{onSubmit:_.handleSubmit(w),className:fe("grid gap-6",e,t?.base),children:[b.jsx(Ht,{control:_.control,name:"code",render:({field:S})=>b.jsxs(Gt,{children:[b.jsx(qt,{className:t?.label,children:o.BACKUP_CODE}),b.jsx(rn,{children:b.jsx(Yr,{placeholder:o.BACKUP_CODE_PLACEHOLDER,autoComplete:"off",className:t?.input,disabled:n,...S})}),b.jsx(un,{className:t?.error})]})}),b.jsx(wt,{type:"submit",disabled:n,className:fe(t?.button,t?.primaryButton),children:n?b.jsx(gn,{className:"animate-spin"}):o.RECOVER_ACCOUNT_ACTION})]})})}function bV({className:e,classNames:t,localization:n,passwordValidation:o}){const i=E.useRef(!1),{authClient:l,basePath:c,credentials:d,localization:f,viewPaths:h,navigate:v,toast:p,localizeErrors:y}=E.useContext(qe),_=d?.confirmPassword,w=d?.passwordValidation;n={...f,...n},o={...w,...o};const S=bn({newPassword:ic(o,{PASSWORD_REQUIRED:n.NEW_PASSWORD_REQUIRED,PASSWORD_TOO_SHORT:n.PASSWORD_TOO_SHORT,PASSWORD_TOO_LONG:n.PASSWORD_TOO_LONG,INVALID_PASSWORD:n.INVALID_PASSWORD}),confirmPassword:_?ic(o,{PASSWORD_REQUIRED:n.CONFIRM_PASSWORD_REQUIRED,PASSWORD_TOO_SHORT:n.PASSWORD_TOO_SHORT,PASSWORD_TOO_LONG:n.PASSWORD_TOO_LONG,INVALID_PASSWORD:n.INVALID_PASSWORD}):Ve().optional()}).refine(C=>!_||C.newPassword===C.confirmPassword,{message:n.PASSWORDS_DO_NOT_MATCH,path:["confirmPassword"]}),T=mo({resolver:vo(S),defaultValues:{newPassword:"",confirmPassword:""}}),R=T.formState.isSubmitting;E.useEffect(()=>{if(i.current)return;i.current=!0;const O=new URLSearchParams(window.location.search).get("token");(!O||O==="INVALID_TOKEN")&&(v(`${c}/${h.SIGN_IN}${window.location.search}`),p({variant:"error",message:n.INVALID_TOKEN}))},[c,v,p,h,n]);async function A({newPassword:C}){try{const M=new URLSearchParams(window.location.search).get("token");await l.resetPassword({newPassword:C,token:M,fetchOptions:{throw:!0}}),p({variant:"success",message:n.RESET_PASSWORD_SUCCESS}),v(`${c}/${h.SIGN_IN}${window.location.search}`)}catch(O){p({variant:"error",message:jt({error:O,localization:n,localizeErrors:y})}),T.reset()}}return b.jsx(yo,{...T,children:b.jsxs("form",{onSubmit:T.handleSubmit(A),className:fe("grid w-full gap-6",e,t?.base),children:[b.jsx(Ht,{control:T.control,name:"newPassword",render:({field:C})=>b.jsxs(Gt,{children:[b.jsx(qt,{className:t?.label,children:n.NEW_PASSWORD}),b.jsx(rn,{children:b.jsx(hc,{autoComplete:"new-password",className:t?.input,placeholder:n.NEW_PASSWORD_PLACEHOLDER,disabled:R,...C})}),b.jsx(un,{className:t?.error})]})}),_&&b.jsx(Ht,{control:T.control,name:"confirmPassword",render:({field:C})=>b.jsxs(Gt,{children:[b.jsx(qt,{className:t?.label,children:n.CONFIRM_PASSWORD}),b.jsx(rn,{children:b.jsx(hc,{autoComplete:"new-password",className:t?.input,placeholder:n.CONFIRM_PASSWORD_PLACEHOLDER,disabled:R,...C})}),b.jsx(un,{className:t?.error})]})}),b.jsx(wt,{type:"submit",disabled:R,className:fe("w-full",t?.button,t?.primaryButton),children:R?b.jsx(gn,{className:"animate-spin"}):n.RESET_PASSWORD_ACTION})]})})}function _V({className:e,classNames:t,isSubmitting:n,localization:o,redirectTo:i,setIsSubmitting:l,passwordValidation:c}){const d=Ho(),{captchaRef:f,getCaptchaHeaders:h,resetCaptcha:v}=Tc({localization:o}),{authClient:p,basePath:y,credentials:_,localization:w,viewPaths:S,navigate:T,toast:R,Link:A,localizeErrors:C,emailVerification:O}=E.useContext(qe),M=_?.rememberMe,L=_?.username,N=_?.passwordValidation;o={...w,...o},c={...N,...c};const{onSuccess:D,isPending:z}=bo({redirectTo:i}),W=bn({email:L?Ve().min(1,{message:`${o.USERNAME} ${o.IS_REQUIRED}`}):Ve().email({message:`${o.EMAIL} ${o.IS_INVALID}`}),password:ic(c,o),rememberMe:wg().optional()}),G=mo({resolver:vo(W),defaultValues:{email:"",password:"",rememberMe:!M}});n=n||G.formState.isSubmitting||z,E.useEffect(()=>{l?.(G.formState.isSubmitting||z)},[G.formState.isSubmitting,z,l]);async function K({email:j,password:ne,rememberMe:ae}){var P;try{let F={};if(L&&!q8(j)){const H={throw:!0,headers:await h("/sign-in/username")};F=await p.signIn.username({username:j,password:ne,rememberMe:ae,fetchOptions:H})}else{const H={throw:!0,headers:await h("/sign-in/email")};F=await p.signIn.email({email:j,password:ne,rememberMe:ae,fetchOptions:H})}F.twoFactorRedirect?T(`${y}/${S.TWO_FACTOR}${window.location.search}`):await D()}catch(F){G.resetField("password"),v(),R({variant:"error",message:jt({error:F,localization:o,localizeErrors:C})}),O?.otp&&((P=F?.error)==null?void 0:P.code)==="EMAIL_NOT_VERIFIED"&&T(`${y}/${S.EMAIL_VERIFICATION}?email=${encodeURIComponent(j)}`)}}return b.jsx(yo,{...G,children:b.jsxs("form",{onSubmit:G.handleSubmit(K),noValidate:d,className:fe("grid w-full gap-6",e,t?.base),children:[b.jsx(Ht,{control:G.control,name:"email",render:({field:j})=>b.jsxs(Gt,{children:[b.jsx(qt,{className:t?.label,children:L?o.USERNAME:o.EMAIL}),b.jsx(rn,{children:b.jsx(Yr,{autoComplete:L?"username":"email",className:t?.input,type:L?"text":"email",placeholder:L?o.SIGN_IN_USERNAME_PLACEHOLDER:o.EMAIL_PLACEHOLDER,disabled:n,...j})}),b.jsx(un,{className:t?.error})]})}),b.jsx(Ht,{control:G.control,name:"password",render:({field:j})=>b.jsxs(Gt,{children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsx(qt,{className:t?.label,children:o.PASSWORD}),_?.forgotPassword&&b.jsx(A,{className:fe("text-sm hover:underline",t?.forgotPasswordLink),href:`${y}/${S.FORGOT_PASSWORD}${d?window.location.search:""}`,children:o.FORGOT_PASSWORD_LINK})]}),b.jsx(rn,{children:b.jsx(hc,{autoComplete:"current-password",className:t?.input,placeholder:o.PASSWORD_PLACEHOLDER,disabled:n,...j})}),b.jsx(un,{className:t?.error})]})}),M&&b.jsx(Ht,{control:G.control,name:"rememberMe",render:({field:j})=>b.jsxs(Gt,{className:"flex",children:[b.jsx(rn,{children:b.jsx(v0,{checked:j.value,onCheckedChange:j.onChange,disabled:n})}),b.jsx(qt,{children:o.REMEMBER_ME})]})}),b.jsx(Ac,{ref:f,localization:o,action:"/sign-in/email"}),b.jsx(wt,{type:"submit",disabled:n,className:fe("w-full",t?.button,t?.primaryButton),children:n?b.jsx(gn,{className:"animate-spin"}):o.SIGN_IN_ACTION})]})})}function EV({className:e,classNames:t,callbackURL:n,isSubmitting:o,localization:i,redirectTo:l,setIsSubmitting:c,passwordValidation:d}){const f=Ho(),{captchaRef:h,getCaptchaHeaders:v,resetCaptcha:p}=Tc({localization:i}),{additionalFields:y,authClient:_,basePath:w,baseURL:S,credentials:T,localization:R,nameRequired:A,persistClient:C,redirectTo:O,signUp:M,viewPaths:L,navigate:N,toast:D,avatar:z,localizeErrors:W,emailVerification:G}=E.useContext(qe),K=T?.confirmPassword,j=T?.username,ne=T?.usernameRequired??!0,ae=T?.passwordValidation,P=M?.fields;i={...R,...i},d={...ae,...d};const F=E.useRef(null),[H,re]=E.useState(null),[ye,k]=E.useState(!1),Q=E.useCallback(()=>l||Ei("redirectTo")||O,[l,O]),ee=E.useCallback(()=>`${S}${n||(C?`${w}/${L.CALLBACK}?redirectTo=${encodeURIComponent(Q())}`:Q())}`,[n,C,w,L,S,Q]),{onSuccess:se,isPending:me}=bo({redirectTo:l}),_e={email:Ve().email({message:`${i.EMAIL} ${i.IS_INVALID}`}),password:ic(d,i),name:P?.includes("name")&&A?Ve().min(1,{message:`${i.NAME} ${i.IS_REQUIRED}`}):Ve().optional(),image:Ve().optional(),username:j&&ne?Ve().min(1,{message:`${i.USERNAME} ${i.IS_REQUIRED}`}):Ve().optional(),confirmPassword:K?ic(d,{PASSWORD_REQUIRED:i.CONFIRM_PASSWORD_REQUIRED,PASSWORD_TOO_SHORT:i.PASSWORD_TOO_SHORT,PASSWORD_TOO_LONG:i.PASSWORD_TOO_LONG,INVALID_PASSWORD:i.INVALID_PASSWORD}):Ve().optional()},be={};if(P)for(const ve of P){if(ve==="name"||ve==="image")continue;const Re=y?.[ve];if(!Re)continue;let ke;Re.type==="number"?ke=Re.required?H8(et=>et?Number(et):void 0,b2({message:`${Re.label} ${i.IS_INVALID}`})):G8({message:`${Re.label} ${i.IS_INVALID}`}).optional():Re.type==="boolean"?ke=Re.required?LE({message:`${Re.label} ${i.IS_INVALID}`}).refine(et=>et===!0,{message:`${Re.label} ${i.IS_REQUIRED}`}):LE({message:`${Re.label} ${i.IS_INVALID}`}).optional():ke=Re.required?Ve().min(1,`${Re.label} ${i.IS_REQUIRED}`):Ve().optional(),be[ve]=ke}const Se=bn(_e).extend(be).refine(ve=>K?ve.password===ve.confirmPassword:!0,{message:i.PASSWORDS_DO_NOT_MATCH,path:["confirmPassword"]}),De={email:"",password:"",...K&&{confirmPassword:""},...P?.includes("name")?{name:""}:{},...j?{username:""}:{},...P?.includes("image")&&z?{image:""}:{}};if(P)for(const ve of P){if(ve==="name"||ve==="image")continue;const Re=y?.[ve];Re&&(De[ve]=Re.type==="boolean"?!1:"")}const Le=mo({resolver:vo(Se),defaultValues:De});o=o||Le.formState.isSubmitting||me,E.useEffect(()=>{c?.(Le.formState.isSubmitting||me)},[Le.formState.isSubmitting,me,c]);const Ee=async ve=>{if(z){k(!0);try{const Re=await M$(ve,crypto.randomUUID(),z.size,z.extension);let ke;z.upload?ke=await z.upload(Re):ke=await D$(Re),ke?(re(ke),Le.setValue("image",ke)):(re(null),Le.setValue("image",""))}catch(Re){console.error(Re),D({variant:"error",message:jt({error:Re,localization:i,localizeErrors:W})})}k(!1)}},ze=()=>{re(null),Le.setValue("image","")},Nt=()=>{var ve;return(ve=F.current)==null?void 0:ve.click()};async function ge({email:ve,password:Re,name:ke,username:et,confirmPassword:Ue,image:Qe,...U}){try{for(const[pe,he]of Object.entries(U)){const xe=y?.[pe];if(xe?.validate&&typeof he=="string"&&!await xe.validate(he)){Le.setError(pe,{message:`${xe.label} ${i.IS_INVALID}`});return}}const q={throw:!0,headers:await v("/sign-up/email")},Z={};et!==void 0&&(!ne&&(et===null||et===""||typeof et=="string"&&et.trim()==="")||(Z.username=et)),Qe!==void 0&&(Z.image=Qe);const ue=await _.signUp.email({email:ve,password:Re,name:ke||"",...Z,...U,callbackURL:ee(),fetchOptions:q});"token"in ue&&ue.token?await se():G?.otp?N(`${w}/${L.EMAIL_VERIFICATION}?email=${encodeURIComponent(ve)}`):(N(`${w}/${L.SIGN_IN}${window.location.search}`),D({variant:"success",message:i.SIGN_UP_EMAIL}))}catch(q){D({variant:"error",message:jt({error:q,localization:i,localizeErrors:W})}),Le.resetField("password"),Le.resetField("confirmPassword"),p()}}return b.jsx(yo,{...Le,children:b.jsxs("form",{onSubmit:Le.handleSubmit(ge),noValidate:f,className:fe("grid w-full gap-6",e,t?.base),children:[P?.includes("image")&&z&&b.jsxs(b.Fragment,{children:[b.jsx("input",{ref:F,accept:"image/*",disabled:ye,hidden:!0,type:"file",onChange:ve=>{var Re;const ke=(Re=ve.target.files)==null?void 0:Re.item(0);ke&&Ee(ke),ve.target.value=""}}),b.jsx(Ht,{control:Le.control,name:"image",render:()=>b.jsxs(Gt,{children:[b.jsx(qt,{children:i.AVATAR}),b.jsxs("div",{className:"flex items-center gap-4",children:[b.jsxs(NT,{children:[b.jsx(DT,{asChild:!0,children:b.jsx(wt,{className:"size-fit rounded-full",size:"icon",variant:"ghost",type:"button",children:b.jsx($T,{isPending:ye,className:"size-16",user:H?{name:Le.watch("name"),email:Le.watch("email"),image:H}:null,localization:i})})}),b.jsxs(LT,{align:"start",onCloseAutoFocus:ve=>ve.preventDefault(),children:[b.jsxs(lf,{onClick:Nt,disabled:ye,children:[b.jsx(m7,{}),i.UPLOAD_AVATAR]}),H&&b.jsxs(lf,{onClick:ze,disabled:ye,variant:"destructive",children:[b.jsx(S7,{}),i.DELETE_AVATAR]})]})]}),b.jsxs(wt,{type:"button",variant:"outline",onClick:Nt,disabled:ye,children:[ye&&b.jsx(gn,{className:"animate-spin"}),i.UPLOAD]})]}),b.jsx(un,{})]})})]}),P?.includes("name")&&b.jsx(Ht,{control:Le.control,name:"name",render:({field:ve})=>b.jsxs(Gt,{children:[b.jsxs(qt,{className:t?.label,children:[i.NAME,!A&&b.jsx("span",{className:"ml-1 text-muted-foreground",children:i.OPTIONAL_BRACKETS})]}),b.jsx(rn,{children:b.jsx(Yr,{autoComplete:"name",className:t?.input,placeholder:i.NAME_PLACEHOLDER,disabled:o,...ve,value:ve.value})}),b.jsx(un,{className:t?.error})]})}),j&&b.jsx(Ht,{control:Le.control,name:"username",render:({field:ve})=>b.jsxs(Gt,{children:[b.jsxs(qt,{className:t?.label,children:[i.USERNAME,!ne&&b.jsx("span",{className:"ml-1 text-muted-foreground",children:i.OPTIONAL_BRACKETS})]}),b.jsx(rn,{children:b.jsx(Yr,{autoComplete:"username",className:t?.input,placeholder:i.USERNAME_PLACEHOLDER,disabled:o,...ve,value:ve.value})}),b.jsx(un,{className:t?.error})]})}),b.jsx(Ht,{control:Le.control,name:"email",render:({field:ve})=>b.jsxs(Gt,{children:[b.jsx(qt,{className:t?.label,children:i.EMAIL}),b.jsx(rn,{children:b.jsx(Yr,{autoComplete:"email",className:t?.input,type:"email",placeholder:i.EMAIL_PLACEHOLDER,disabled:o,...ve,value:ve.value})}),b.jsx(un,{className:t?.error})]})}),b.jsx(Ht,{control:Le.control,name:"password",render:({field:ve})=>b.jsxs(Gt,{children:[b.jsx(qt,{className:t?.label,children:i.PASSWORD}),b.jsx(rn,{children:b.jsx(hc,{autoComplete:"new-password",className:t?.input,placeholder:i.PASSWORD_PLACEHOLDER,disabled:o,enableToggle:!0,...ve,value:ve.value})}),b.jsx(un,{className:t?.error})]})}),K&&b.jsx(Ht,{control:Le.control,name:"confirmPassword",render:({field:ve})=>b.jsxs(Gt,{children:[b.jsx(qt,{className:t?.label,children:i.CONFIRM_PASSWORD}),b.jsx(rn,{children:b.jsx(hc,{autoComplete:"new-password",className:t?.input,placeholder:i.CONFIRM_PASSWORD_PLACEHOLDER,disabled:o,enableToggle:!0,...ve,value:ve.value})}),b.jsx(un,{className:t?.error})]})}),P?.filter(ve=>ve!=="name"&&ve!=="image").map(ve=>{const Re=y?.[ve];return Re?Re.type==="boolean"?b.jsx(Ht,{control:Le.control,name:ve,render:({field:ke})=>b.jsxs(Gt,{className:"flex",children:[b.jsx(rn,{children:b.jsx(v0,{checked:ke.value,onCheckedChange:ke.onChange,disabled:o})}),b.jsx(qt,{className:t?.label,children:Re.label}),b.jsx(un,{className:t?.error})]})},ve):b.jsx(Ht,{control:Le.control,name:ve,render:({field:ke})=>b.jsxs(Gt,{children:[b.jsx(qt,{className:t?.label,children:Re.label}),b.jsx(rn,{children:Re.type==="number"?b.jsx(Yr,{className:t?.input,type:"number",placeholder:Re.placeholder||(typeof Re.label=="string"?Re.label:""),disabled:o,...ke,value:ke.value}):Re.multiline?b.jsx(z$,{className:t?.input,placeholder:Re.placeholder||(typeof Re.label=="string"?Re.label:""),disabled:o,...ke,value:ke.value}):b.jsx(Yr,{className:t?.input,type:"text",placeholder:Re.placeholder||(typeof Re.label=="string"?Re.label:""),disabled:o,...ke,value:ke.value})}),b.jsx(un,{className:t?.error})]})},ve):(console.error(`Additional field ${ve} not found`),null)}),b.jsx(Ac,{ref:h,localization:i,action:"/sign-up/email"}),b.jsx(wt,{type:"submit",disabled:o,className:fe("w-full",t?.button,t?.primaryButton),children:o?b.jsx(gn,{className:"animate-spin"}):i.SIGN_UP_ACTION})]})})}function SV({className:e,classNames:t,isSubmitting:n,localization:o,otpSeparators:i=0,redirectTo:l,setIsSubmitting:c}){var d;const f=Ho(),h=f?Ei("totpURI"):null,v=E.useRef(!1),{authClient:p,basePath:y,hooks:{useSession:_},localization:w,twoFactor:S,viewPaths:T,toast:R,Link:A,localizeErrors:C}=E.useContext(qe);o={...w,...o};const{onSuccess:O,isPending:M}=bo({redirectTo:l}),{data:L}=_(),N=(d=L?.user)==null?void 0:d.twoFactorEnabled,[D,z]=E.useState(S?.length===1?S[0]:null),[W,G]=E.useState(!1),[K,j]=E.useState(0),ne=bn({code:Ve().min(1,{message:`${o.ONE_TIME_PASSWORD} ${o.IS_REQUIRED}`}).min(6,{message:`${o.ONE_TIME_PASSWORD} ${o.IS_INVALID}`}),trustDevice:wg().optional()}),ae=mo({resolver:vo(ne),defaultValues:{code:""}});n=n||ae.formState.isSubmitting||M,E.useEffect(()=>{c?.(ae.formState.isSubmitting||M)},[ae.formState.isSubmitting,M,c]),E.useEffect(()=>{D==="otp"&&K<=0&&!v.current&&(v.current=!0,P())},[D]),E.useEffect(()=>{if(K<=0)return;const H=setTimeout(()=>{j(re=>re-1)},1e3);return()=>clearTimeout(H)},[K]);const P=async()=>{if(!(W||K>0)){try{G(!0),await p.twoFactor.sendOtp({fetchOptions:{throw:!0}}),j(60)}catch(H){R({variant:"error",message:jt({error:H,localization:o,localizeErrors:C})}),H.error.code==="INVALID_TWO_FACTOR_COOKIE"&&history.back()}v.current=!1,G(!1)}};async function F({code:H,trustDevice:re}){try{await(D==="totp"?p.twoFactor.verifyTotp:p.twoFactor.verifyOtp)({code:H,trustDevice:re,fetchOptions:{throw:!0}}),await O(),L&&!N&&R({variant:"success",message:o?.TWO_FACTOR_ENABLED})}catch(ye){R({variant:"error",message:jt({error:ye,localization:o,localizeErrors:C})}),ae.reset()}}return b.jsx(yo,{...ae,children:b.jsxs("form",{onSubmit:ae.handleSubmit(F),className:fe("grid w-full gap-6",e,t?.base),children:[S?.includes("totp")&&h&&D==="totp"&&b.jsxs("div",{className:"space-y-3",children:[b.jsx(PT,{className:t?.label,children:o.TWO_FACTOR_TOTP_LABEL}),b.jsx(_$,{className:fe("border shadow-xs",t?.qrCode),value:h})]}),D!==null&&b.jsxs(b.Fragment,{children:[b.jsx(Ht,{control:ae.control,name:"code",render:({field:H})=>b.jsxs(Gt,{children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsx(qt,{className:t?.label,children:o.ONE_TIME_PASSWORD}),b.jsx(A,{className:fe("text-sm hover:underline",t?.forgotPasswordLink),href:`${y}/${T.RECOVER_ACCOUNT}${f?window.location.search:""}`,children:o.FORGOT_AUTHENTICATOR})]}),b.jsx(rn,{children:b.jsx(g0,{...H,maxLength:6,onChange:re=>{H.onChange(re),re.length===6&&ae.handleSubmit(F)()},containerClassName:t?.otpInputContainer,className:t?.otpInput,disabled:n,children:b.jsx(y0,{otpSeparators:i})})}),b.jsx(un,{className:t?.error})]})}),b.jsx(Ht,{control:ae.control,name:"trustDevice",render:({field:H})=>b.jsxs(Gt,{className:"flex",children:[b.jsx(rn,{children:b.jsx(v0,{checked:H.value,onCheckedChange:H.onChange,disabled:n,className:t?.checkbox})}),b.jsx(qt,{className:t?.label,children:o.TRUST_DEVICE})]})})]}),b.jsxs("div",{className:"grid gap-4",children:[D!==null&&b.jsxs(wt,{type:"submit",disabled:n,className:fe(t?.button,t?.primaryButton),children:[n&&b.jsx(gn,{className:"animate-spin"}),o.TWO_FACTOR_ACTION]}),D==="otp"&&S?.includes("otp")&&b.jsxs(wt,{type:"button",variant:"outline",onClick:P,disabled:K>0||W||n,className:fe(t?.button,t?.outlineButton),children:[W?b.jsx(gn,{className:"animate-spin"}):b.jsx($E,{className:t?.icon}),o.RESEND_CODE,K>0&&` (${K})`]}),D!=="otp"&&S?.includes("otp")&&b.jsxs(wt,{type:"button",variant:"secondary",className:fe(t?.button,t?.secondaryButton),onClick:()=>z("otp"),disabled:n,children:[b.jsx($E,{className:t?.icon}),o.SEND_VERIFICATION_CODE]}),D!=="totp"&&S?.includes("totp")&&b.jsxs(wt,{type:"button",variant:"secondary",className:fe(t?.button,t?.secondaryButton),onClick:()=>z("totp"),disabled:n,children:[b.jsx(E7,{className:t?.icon}),o.CONTINUE_WITH_AUTHENTICATOR]})]})]})})}function HT({redirectTo:e}){const t=E.useRef(!1),{authClient:n,basePath:o,viewPaths:i}=E.useContext(qe),{onSuccess:l}=bo({redirectTo:e||`${o}/${i.SIGN_IN}`});return E.useEffect(()=>{t.current||(t.current=!0,n.signOut().finally(l))},[n,l]),b.jsx(gn,{className:"animate-spin"})}function wV({className:e,classNames:t,callbackURL:n,isSubmitting:o,localization:i,pathname:l,redirectTo:c,view:d,otpSeparators:f=0,setIsSubmitting:h}){const{basePath:v,credentials:p,localization:y,magicLink:_,emailOTP:w,signUp:S,twoFactor:T,viewPaths:R,replace:A}=E.useContext(qe),C=!!S;if(i={...y,...i},E.useEffect(()=>{l&&!xv(R,l)&&(console.error(`Invalid auth view: ${l}`),A(`${v}/${R.SIGN_IN}${window.location.search}`))},[l,R,v,A]),d=d||xv(R,l)||"SIGN_IN",E.useEffect(()=>{let O=!1;d==="MAGIC_LINK"&&(!_||!p&&!w)&&(O=!0),d==="EMAIL_OTP"&&(!w||!p&&!_)&&(O=!0),d==="SIGN_UP"&&!C&&(O=!0),!p&&["SIGN_UP","FORGOT_PASSWORD","RESET_PASSWORD","TWO_FACTOR","RECOVER_ACCOUNT"].includes(d)&&(O=!0),["TWO_FACTOR","RECOVER_ACCOUNT"].includes(d)&&!T&&(O=!0),O&&A(`${v}/${R.SIGN_IN}${window.location.search}`)},[v,d,R,p,A,w,C,_,T]),d==="SIGN_OUT")return b.jsx(HT,{redirectTo:c});if(d==="CALLBACK")return b.jsx(VT,{redirectTo:c});if(d==="SIGN_IN")return p?b.jsx(_V,{className:e,classNames:t,localization:i,redirectTo:c,isSubmitting:o,setIsSubmitting:h}):_?b.jsx(fw,{className:e,classNames:t,callbackURL:n,localization:i,redirectTo:c,isSubmitting:o,setIsSubmitting:h}):w?b.jsx(dw,{className:e,classNames:t,callbackURL:n,localization:i,redirectTo:c,isSubmitting:o,setIsSubmitting:h}):null;if(d==="TWO_FACTOR")return b.jsx(SV,{className:e,classNames:t,localization:i,otpSeparators:f,redirectTo:c,isSubmitting:o,setIsSubmitting:h});if(d==="RECOVER_ACCOUNT")return b.jsx(yV,{className:e,classNames:t,localization:i,redirectTo:c,isSubmitting:o,setIsSubmitting:h});if(d==="MAGIC_LINK")return b.jsx(fw,{className:e,classNames:t,callbackURL:n,localization:i,redirectTo:c,isSubmitting:o,setIsSubmitting:h});if(d==="EMAIL_OTP")return b.jsx(dw,{className:e,classNames:t,callbackURL:n,localization:i,redirectTo:c,isSubmitting:o,setIsSubmitting:h});if(d==="EMAIL_VERIFICATION")return b.jsx(vV,{className:e,classNames:t,callbackURL:n,localization:i,otpSeparators:f,redirectTo:c,isSubmitting:o,setIsSubmitting:h});if(d==="FORGOT_PASSWORD")return b.jsx(gV,{className:e,classNames:t,localization:i,isSubmitting:o,setIsSubmitting:h});if(d==="RESET_PASSWORD")return b.jsx(bV,{className:e,classNames:t,localization:i});if(d==="SIGN_UP")return C&&b.jsx(EV,{className:e,classNames:t,callbackURL:n,localization:i,redirectTo:c,isSubmitting:o,setIsSubmitting:h})}function xV({className:e,classNames:t,localization:n}){const{localization:o,redirectTo:i,replace:l,toast:c}=E.useContext(qe),d=E.useMemo(()=>({...o,...n}),[o,n]),{data:f}=R$(),[h,v]=E.useState(null);return E.useEffect(()=>{const p=Ei("invitationId");if(!p){c({variant:"error",message:d.INVITATION_NOT_FOUND}),l(i);return}v(p)},[d.INVITATION_NOT_FOUND,c,l,i]),!f||!h?b.jsx(GT,{className:e,classNames:t}):b.jsx(RV,{className:e,classNames:t,localization:d,invitationId:h})}function RV({className:e,classNames:t,localization:n,invitationId:o}){var i;const{authClient:l,hooks:{useInvitation:c},localization:d,organization:f,redirectTo:h,replace:v,toast:p,localizeErrors:y}=E.useContext(qe),_=E.useMemo(()=>({...d,...n}),[d,n]),[w,S]=E.useState(!1),[T,R]=E.useState(!1),A=w||T,{data:C,isPending:O}=c({query:{id:o}}),M=E.useCallback(()=>Ei("redirectTo")||h,[h]);E.useEffect(()=>{if(!(O||!o)){if(!C){p({variant:"error",message:_.INVITATION_NOT_FOUND}),v(h);return}(C.status!=="pending"||new Date(C.expiresAt)<new Date)&&(p({variant:"error",message:new Date(C.expiresAt)<new Date?_.INVITATION_EXPIRED:_.INVITATION_NOT_FOUND}),v(h))}},[C,O,o,_,p,v,h]);const L=async()=>{R(!0);try{await l.organization.acceptInvitation({invitationId:o,fetchOptions:{throw:!0}}),p({variant:"success",message:_.INVITATION_ACCEPTED||"Invitation accepted"}),v(M())}catch(G){p({variant:"error",message:jt({error:G,localization:_,localizeErrors:y})}),R(!1)}},N=async()=>{S(!0);try{await l.organization.rejectInvitation({invitationId:o,fetchOptions:{throw:!0}}),p({variant:"success",message:_.INVITATION_REJECTED}),v(h)}catch(G){p({variant:"error",message:jt({error:G,localization:_,localizeErrors:y})}),S(!1)}},W=((i=[...[{role:"owner",label:_.OWNER},{role:"admin",label:_.ADMIN},{role:"member",label:_.MEMBER}],...f?.customRoles||[]].find(G=>G.role===C?.role))==null?void 0:i.label)||C?.role;return C?b.jsxs(yi,{className:fe("w-full max-w-sm",e,t?.base),children:[b.jsxs(kf,{className:fe("justify-items-center text-center",t?.header),children:[b.jsx(p0,{className:fe("text-lg md:text-xl",t?.title),children:_.ACCEPT_INVITATION}),b.jsx(jf,{className:fe("text-xs md:text-sm",t?.description),children:_.ACCEPT_INVITATION_DESCRIPTION})]}),b.jsxs(zf,{className:fe("flex flex-col gap-6 truncate",t?.content),children:[b.jsxs(yi,{className:fe("flex-row items-center p-4"),children:[b.jsx(FT,{organization:{id:C.organizationId,name:C.organizationName,slug:C.organizationSlug,logo:C.organizationLogo,createdAt:new Date},localization:_}),b.jsx("p",{className:"ml-auto text-muted-foreground text-sm",children:W})]}),b.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[b.jsxs(wt,{variant:"outline",className:fe(t?.button,t?.outlineButton),onClick:N,disabled:A,children:[w?b.jsx(gn,{className:"animate-spin"}):b.jsx(N2,{}),_.REJECT]}),b.jsxs(wt,{className:fe(t?.button,t?.primaryButton),onClick:L,disabled:A,children:[T?b.jsx(gn,{className:"animate-spin"}):b.jsx(Ag,{}),_.ACCEPT]})]})]})]}):b.jsx(GT,{className:e,classNames:t})}var GT=({className:e,classNames:t,localization:n})=>b.jsxs(yi,{className:fe("w-full max-w-sm",e,t?.base),children:[b.jsxs(kf,{className:fe("justify-items-center",t?.header),children:[b.jsx(mr,{className:fe("my-1 h-5 w-full max-w-32 md:h-5.5 md:w-40",t?.skeleton)}),b.jsx(mr,{className:fe("my-0.5 h-3 w-full max-w-56 md:h-3.5 md:w-64",t?.skeleton)})]}),b.jsxs(zf,{className:fe("flex flex-col gap-6 truncate",t?.content),children:[b.jsxs(yi,{className:fe("flex-row items-center p-4"),children:[b.jsx(FT,{isPending:!0,localization:n}),b.jsx(mr,{className:"mt-0.5 ml-auto h-4 w-full max-w-14 shrink-2"})]}),b.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[b.jsx(mr,{className:"h-9 w-full"}),b.jsx(mr,{className:"h-9 w-full"})]})]})]});function hw({className:e,orientation:t="horizontal",decorative:n=!0,...o}){return b.jsx(x$,{"data-slot":"separator",decorative:n,orientation:t,className:fe("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...o})}function OV({classNames:e,isSubmitting:t,localization:n,view:o}){var i,l,c,d;const{viewPaths:f,navigate:h,basePath:v}=E.useContext(qe);return b.jsxs(wt,{className:fe("w-full",(i=e?.form)==null?void 0:i.button,(l=e?.form)==null?void 0:l.secondaryButton),disabled:t,type:"button",variant:"secondary",onClick:()=>h(`${v}/${o==="EMAIL_OTP"?f.SIGN_IN:f.EMAIL_OTP}${window.location.search}`),children:[o==="EMAIL_OTP"?b.jsx(I2,{className:(c=e?.form)==null?void 0:c.icon}):b.jsx(M2,{className:(d=e?.form)==null?void 0:d.icon}),n.SIGN_IN_WITH," ",o==="EMAIL_OTP"?n.PASSWORD:n.EMAIL_OTP]})}function TV({classNames:e,isSubmitting:t,localization:n,view:o}){var i,l,c,d;const{viewPaths:f,navigate:h,basePath:v,credentials:p}=E.useContext(qe);return b.jsxs(wt,{className:fe("w-full",(i=e?.form)==null?void 0:i.button,(l=e?.form)==null?void 0:l.secondaryButton),disabled:t,type:"button",variant:"secondary",onClick:()=>h(`${v}/${o==="MAGIC_LINK"||!p?f.SIGN_IN:f.MAGIC_LINK}${window.location.search}`),children:[o==="MAGIC_LINK"?b.jsx(I2,{className:(c=e?.form)==null?void 0:c.icon}):b.jsx(M2,{className:(d=e?.form)==null?void 0:d.icon}),n.SIGN_IN_WITH," ",o==="MAGIC_LINK"?n.PASSWORD:n.MAGIC_LINK]})}function AV({localization:e,redirectTo:t}){const{authClient:n,localization:o,toast:i,localizeErrors:l}=E.useContext(qe),c=E.useRef(!1);e=E.useMemo(()=>({...o,...e}),[o,e]);const{onSuccess:d}=bo({redirectTo:t});return E.useEffect(()=>{if(!c.current){c.current=!0;try{n.oneTap({fetchOptions:{throw:!0,onSuccess:d}})}catch(f){i({variant:"error",message:jt({error:f,localization:e,localizeErrors:l})})}}},[n,e,l,d,i]),null}function CV({classNames:e,isSubmitting:t,localization:n,redirectTo:o,setIsSubmitting:i}){var l,c;const{authClient:d,localization:f,toast:h,localizeErrors:v}=E.useContext(qe);n={...f,...n};const{onSuccess:p}=bo({redirectTo:o}),y=async()=>{i?.(!0);try{const _=await d.signIn.passkey({fetchOptions:{throw:!0}});_?.error?(h({variant:"error",message:jt({error:_.error,localization:n,localizeErrors:v})}),i?.(!1)):p()}catch(_){h({variant:"error",message:jt({error:_,localization:n,localizeErrors:v})}),i?.(!1)}};return b.jsxs(wt,{className:fe("w-full",(l=e?.form)==null?void 0:l.button,(c=e?.form)==null?void 0:c.secondaryButton),disabled:t,formNoValidate:!0,name:"passkey",value:"true",variant:"secondary",onClick:y,children:[b.jsx(b7,{}),n.SIGN_IN_WITH," ",n.PASSKEY]})}function pw({className:e,classNames:t,callbackURL:n,isSubmitting:o,localization:i,other:l,provider:c,redirectTo:d,socialLayout:f,setIsSubmitting:h}){var v,p,y,_;const{authClient:w,basePath:S,baseURL:T,persistClient:R,redirectTo:A,viewPaths:C,social:O,genericOAuth:M,toast:L,localizeErrors:N}=E.useContext(qe),D=E.useCallback(()=>d||Ei("redirectTo")||A,[d,A]),z=E.useCallback(()=>`${T}${n||(R?`${S}/${C.CALLBACK}?redirectTo=${encodeURIComponent(D())}`:D())}`,[n,R,S,C,T,D]),W=async()=>{h(!0);try{if(l){const G={providerId:c.provider,callbackURL:z(),fetchOptions:{throw:!0}};M?.signIn?(await M.signIn(G),setTimeout(()=>{h(!1)},1e4)):await w.signIn.oauth2(G)}else{const G={provider:c.provider,callbackURL:z(),fetchOptions:{throw:!0}};O?.signIn?(await O.signIn(G),setTimeout(()=>{h(!1)},1e4)):await w.signIn.social(G)}}catch(G){L({variant:"error",message:jt({error:G,localization:i,localizeErrors:N})}),h(!1)}};return b.jsxs(wt,{className:fe(f==="vertical"?"w-full":"grow",e,(v=t?.form)==null?void 0:v.button,(p=t?.form)==null?void 0:p.outlineButton,(y=t?.form)==null?void 0:y.providerButton),disabled:o,variant:"outline",onClick:W,children:[c.icon&&b.jsx(c.icon,{className:(_=t?.form)==null?void 0:_.icon}),f==="grid"&&c.name,f==="vertical"&&`${i.SIGN_IN_WITH} ${c.name}`]})}function LH({className:e,classNames:t,callbackURL:n,cardHeader:o,cardFooter:i,localization:l,path:c,pathname:d,redirectTo:f,socialLayout:h="auto",view:v,otpSeparators:p=0}){var y,_,w,S,T,R;const A=Ho(),{basePath:C,credentials:O,localization:M,magicLink:L,emailOTP:N,oneTap:D,passkey:z,signUp:W,social:G,genericOAuth:K,viewPaths:j,Link:ne}=E.useContext(qe);l={...M,...l};let ae=h;ae==="auto"&&(ae=O&&G?.providers&&G.providers.length>2?"horizontal":"vertical");const P=c??d?.split("/").pop(),F=v||xv(j,P)||"SIGN_IN",[H,re]=E.useState(!1);if(E.useEffect(()=>{const k=()=>re(!1);return window.addEventListener("pagehide",k),()=>{re(!1),window.removeEventListener("pagehide",k)}},[]),F==="CALLBACK")return b.jsx(VT,{redirectTo:f});if(F==="SIGN_OUT")return b.jsx(HT,{redirectTo:f});if(F==="ACCEPT_INVITATION")return b.jsx(xV,{className:e,classNames:t});const ye=!O&&!L&&!N?l.DISABLED_CREDENTIALS_DESCRIPTION:l[`${F}_DESCRIPTION`];return b.jsxs(yi,{className:fe("w-full max-w-sm",e,t?.base),children:[b.jsx(kf,{className:t?.header,children:o||b.jsxs(b.Fragment,{children:[b.jsx(p0,{className:fe("text-lg md:text-xl",t?.title),children:l[F]}),ye&&b.jsx(jf,{className:fe("text-xs md:text-sm",t?.description),children:ye})]})}),b.jsxs(zf,{className:fe("grid gap-6",t?.content),children:[D&&["SIGN_IN","SIGN_UP","MAGIC_LINK","EMAIL_OTP"].includes(F)&&b.jsx(AV,{localization:l,redirectTo:f}),(O||L||N)&&b.jsxs("div",{className:"grid gap-4",children:[b.jsx(wV,{classNames:t?.form,callbackURL:n,isSubmitting:H,localization:l,otpSeparators:p,view:F,redirectTo:f,setIsSubmitting:re}),L&&(O&&["FORGOT_PASSWORD","SIGN_UP","SIGN_IN","MAGIC_LINK","EMAIL_OTP"].includes(F)||N&&F==="EMAIL_OTP")&&b.jsx(TV,{classNames:t,localization:l,view:F,isSubmitting:H}),N&&(O&&["FORGOT_PASSWORD","SIGN_UP","SIGN_IN","MAGIC_LINK","EMAIL_OTP"].includes(F)||L&&["SIGN_IN","MAGIC_LINK"].includes(F))&&b.jsx(OV,{classNames:t,localization:l,view:F,isSubmitting:H})]}),F!=="RESET_PASSWORD"&&F!=="EMAIL_VERIFICATION"&&(((y=G?.providers)==null?void 0:y.length)||((_=K?.providers)==null?void 0:_.length)||F==="SIGN_IN"&&z)&&b.jsxs(b.Fragment,{children:[(O||L||N)&&b.jsxs("div",{className:fe("flex items-center gap-2",t?.continueWith),children:[b.jsx(hw,{className:fe("!w-auto grow",t?.separator)}),b.jsx("span",{className:"flex-shrink-0 text-muted-foreground text-sm",children:l.OR_CONTINUE_WITH}),b.jsx(hw,{className:fe("!w-auto grow",t?.separator)})]}),b.jsxs("div",{className:"grid gap-4",children:[(((w=G?.providers)==null?void 0:w.length)||((S=K?.providers)==null?void 0:S.length))&&b.jsxs("div",{className:fe("flex w-full items-center justify-between gap-4",ae==="horizontal"&&"flex-wrap",ae==="vertical"&&"flex-col",ae==="grid"&&"grid grid-cols-2"),children:[(T=G?.providers)==null?void 0:T.map(k=>{const Q=lV.find(ee=>ee.provider===k);return Q?b.jsx(pw,{classNames:t,callbackURL:n,isSubmitting:H,localization:l,provider:Q,redirectTo:f,setIsSubmitting:re,socialLayout:ae},k):null}),(R=K?.providers)==null?void 0:R.map(k=>b.jsx(pw,{classNames:t,callbackURL:n,isSubmitting:H,localization:l,provider:k,redirectTo:f,setIsSubmitting:re,socialLayout:ae,other:!0},k.provider))]}),z&&["SIGN_IN","MAGIC_LINK","EMAIL_OTP","RECOVER_ACCOUNT","TWO_FACTOR","FORGOT_PASSWORD"].includes(F)&&b.jsx(CV,{classNames:t,isSubmitting:H,localization:l,redirectTo:f,setIsSubmitting:re})]})]})]}),i&&b.jsx(Xv,{className:t?.footer,children:i}),O&&W&&b.jsxs(Xv,{className:fe("justify-center gap-1.5 text-muted-foreground text-sm",t?.footer),children:[F==="SIGN_IN"||F==="MAGIC_LINK"||F==="EMAIL_OTP"?l.DONT_HAVE_AN_ACCOUNT:F==="SIGN_UP"?l.ALREADY_HAVE_AN_ACCOUNT:b.jsx(h7,{className:"size-3"}),F==="SIGN_IN"||F==="MAGIC_LINK"||F==="EMAIL_OTP"||F==="SIGN_UP"?b.jsx(ne,{className:fe("text-foreground underline",t?.footerLink),href:`${C}/${j[F==="SIGN_IN"||F==="MAGIC_LINK"||F==="EMAIL_OTP"?"SIGN_UP":"SIGN_IN"]}${A?window.location.search:""}`,children:b.jsx(wt,{variant:"link",size:"sm",className:fe("px-0 text-foreground underline",t?.footerLink),children:F==="SIGN_IN"||F==="MAGIC_LINK"||F==="EMAIL_OTP"?l.SIGN_UP:l.SIGN_IN})}):b.jsx(wt,{variant:"link",size:"sm",className:fe("px-0 text-foreground underline",t?.footerLink),onClick:()=>window.history.back(),children:l.GO_BACK})]})]})}function PH({children:e}){const{hooks:{useSession:t}}=E.useContext(qe),{isPending:n}=t();return n?e:null}function kH({children:e}){const{hooks:{useSession:t}}=E.useContext(qe),{data:n}=t();return n?e:null}function jH({children:e}){const{hooks:{useSession:t}}=E.useContext(qe),{data:n,isPending:o}=t();return!n&&!o?e:null}function IV(e){const t=cf.c(8),{children:n}=e,o=mc();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i={basePath:"/",pathMode:"slug"},t[0]=i):i=t[0];let l,c;t[1]!==o?(l=f=>o({to:f}),c=f=>o({to:f,replace:!0}),t[1]=o,t[2]=l,t[3]=c):(l=t[2],c=t[3]);let d;return t[4]!==n||t[5]!==l||t[6]!==c?(d=b.jsx(c7,{authClient:lI,organization:i,navigate:l,replace:c,Link:MV,children:n}),t[4]=n,t[5]=l,t[6]=c,t[7]=d):d=t[7],d}function MV(e){const{href:t,className:n,children:o,...i}=e;return b.jsx(pg,{to:t,className:n,...i,children:o})}const NV=new B4;function DV(e){const t=cf.c(3),{children:n}=e;let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=b.jsx(UP,{}),t[0]=o):o=t[0];let i;return t[1]!==n?(i=b.jsxs($4,{client:NV,children:[o,b.jsx(o3,{children:b.jsx(IV,{children:n})})]}),t[1]=n,t[2]=i):i=t[2],i}const LV=function(){return null};function PV(){const e=cf.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=b.jsx("div",{className:"flex items-center justify-center min-h-screen",children:b.jsx("div",{className:"text-gray-500",children:"Loading..."})}),e[0]=t):t=e[0],t}const Cc=C5({component:()=>b.jsxs(DV,{children:[b.jsx(E.Suspense,{fallback:b.jsx(PV,{}),children:b.jsx(Kw,{})}),b.jsx(LV,{})]})}),kV=yn({getParentRoute:()=>Cc,path:"/login",component:An(()=>Tn(()=>import("./login-UWyl_cxx.js"),__vite__mapDeps([0,1,2]))),validateSearch:za(()=>bn({next:Ve().optional(),client_id:Ve().optional(),redirect_uri:Ve().optional(),response_type:Ve().optional(),state:Ve().optional(),scope:Ve().optional(),code_challenge:Ve().optional(),code_challenge_method:Ve().optional()}))}),jV=yn({getParentRoute:()=>Cc,path:"/auth/$pathname",component:An(()=>Tn(()=>import("./auth-catchall-BZWl_BRK.js"),[]))}),yr=yn({getParentRoute:()=>Cc,id:"shell",component:An(()=>Tn(()=>import("./shell-layout-DqUuQ9gz.js"),__vite__mapDeps([3,4,1,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,2,42,43,44,45])))}),zV=yn({getParentRoute:()=>yr,path:"/",component:An(()=>Tn(()=>import("./home-DgfprghT.js"),__vite__mapDeps([46,27,1,43,16,11,2,40,30,41,42])))}),UV=yn({getParentRoute:()=>yr,path:"/$org",component:An(()=>Tn(()=>import("./page-B7ia0_lh.js"),__vite__mapDeps([47,5,1,6,48,49,44,18,50,51,17,52,8,53,11,9,38,54,55,56,34,24,57,58,29,59])))}),BV=yn({getParentRoute:()=>yr,path:"/$org/members",component:An(()=>Tn(()=>import("./members-C3UV37Kw.js"),__vite__mapDeps([60,48,49,1,44,6,18,50,51,61,4,2,62,63,5,64,65,66,32,8,43,56,30,45,12,67,10,68,11,36,17,41,20,21,23,27,69,57])))}),FV=yn({getParentRoute:()=>yr,path:"/$org/mcps",component:An(()=>Tn(()=>import("./connections-CWHukeOK.js"),__vite__mapDeps([70,48,49,1,44,6,18,50,51,61,4,2,62,26,27,5,17,71,22,30,56,45,12,41,69,72,11,36,10,25,20,21,23,33]))),validateSearch:za(()=>bn({action:Sf(["create"]).optional()}))}),$V=yn({getParentRoute:()=>yr,path:"/$org/settings",component:An(()=>Tn(()=>import("./settings-BapAo6i2.js"),__vite__mapDeps([73,48,49,1,44,6,18,50,51,41,2,12])))}),VV=yn({getParentRoute:()=>yr,path:"/$org/monitoring",component:An(()=>Tn(()=>import("./monitoring-Ds52TSSS.js"),__vite__mapDeps([74,5,1,6,48,49,44,18,50,51,61,4,2,17,54,55,56,34,24,57,58,29,21,38,66,75,11,36,64,76,20,35,77,23]))),validateSearch:za(()=>bn({from:Ve().default("now-24h"),to:Ve().default("now"),connectionId:Ev(Ve()).optional().default([]),gatewayId:Ev(Ve()).optional().default([]),tool:Ve().default(""),status:Sf(["all","success","errors"]).default("all"),search:Ve().default(""),page:b2().optional(),streaming:wg().default(!0),propertyFilters:Ve().default("")}))}),qT=yn({getParentRoute:()=>yr,path:"/$org/store",component:An(()=>Tn(()=>import("./store-DTMoxgob.js"),__vite__mapDeps([78,32,48,49,1,44,6,18,50,5,79,80,10,4,61,2,68,27,81,82,77,20,21,11,13,14,7,8])))}),HV=yn({getParentRoute:()=>yr,path:"/$org/workflow",component:An(()=>Tn(()=>import("./workflow-CBeu3WB4.js"),__vite__mapDeps([83,32,84,33,5,1,6,49,44,18,50,61,4,2,27,24,69,71,22,36,62,85,80,43,8,86,39,87,13,14,30,11,88,65,48,10])))}),GV=yn({getParentRoute:()=>qT,path:"/$appName",component:An(()=>Tn(()=>import("./store-app-detail-CbGg2GlI.js"),__vite__mapDeps([89,16,10,1,65,5,6,21,11,44,28,4,90,8,31,81,49,18,50,61,2,62,27,88,91,92,56,13,14,52,93,94,87,33,79,82]))),validateSearch:za(()=>bn({registryId:Ve().optional(),serverName:Ve().optional(),itemId:Ve().optional()}))}),qV=yn({getParentRoute:()=>yr,path:"/$org/mcps/$connectionId",component:An(()=>Tn(()=>import("./connection-detail-Dm1s8Dj2.js"),__vite__mapDeps([95,4,1,17,5,6,13,14,96,97,72,2,11,36,52,8,86,39,31,57,10,88,65,41,20,21,25,38,9,98,87,81,94,33,55,76,99,92,56,84,49,44,18,50,61,27,24,69,71,22,62,85,80,43,30,90,91]))),validateSearch:za(()=>bn({tab:Ve().optional()}))}),ZV=yn({getParentRoute:()=>yr,path:"/$org/mcps/$connectionId/$collectionName/$itemId",component:An(()=>Tn(()=>import("./collection-detail-7eGCexqR.js"),__vite__mapDeps([100,5,1,6,4,17,86,39,41,2,23,101,88,65,16,35,75,24,10,58,67,96,97,14,72,11,36,13,52,8,31,57,20,21,25,38,9,98,87,81,94,33,55,76,93,29,85,42,37,19,22,50,53,45,12,44,56]))),validateSearch:za(()=>bn({replayId:Ve().optional()}))}),YV=yn({getParentRoute:()=>yr,path:"/$org/gateways",component:An(()=>Tn(()=>import("./gateways-9p2LLkTK.js"),__vite__mapDeps([102,48,49,1,44,6,18,50,51,61,4,2,62,26,27,5,17,38,71,22,30,56,9,69,10,36]))),validateSearch:za(()=>bn({action:Sf(["create"]).optional()}))}),KV=yn({getParentRoute:()=>yr,path:"/$org/gateways/$gatewayId",component:An(()=>Tn(()=>import("./gateway-detail-VCb3jL84.js"),__vite__mapDeps([103,4,1,17,5,6,63,64,65,61,2,11,12,38,99,98,13,14,15,7,8,16,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,9,101,10,41,92,56,79,86,39,88]))),validateSearch:za(()=>bn({tab:Ve().optional()}))}),WV=yn({getParentRoute:()=>Cc,path:"/oauth/callback",component:An(()=>Tn(()=>import("./oauth-callback-D4M9mHyH.js"),__vite__mapDeps([104,10,97,14])))}),QV=qT.addChildren([GV]),XV=yr.addChildren([zV,UV,BV,FV,YV,KV,VV,QV,HV,$V,qV,ZV]),JV=Cc.addChildren([XV,kV,jV,WV]),eH=z5({routeTree:JV}),tH=document.getElementById("root");m4.createRoot(tH).render(b.jsx(E.StrictMode,{children:b.jsx(F5,{router:eH})}));export{Go as $,LH as A,Ut as B,Ij as C,OH as D,Ge as E,$ as F,V$ as G,Si as H,WR as I,dz as J,n3 as K,xR as L,uz as M,sH as N,Cj as O,Aj as P,iH as Q,Oj as R,PV as S,Mj as T,DH as U,lx as V,Ev as W,yH as X,wg as Y,dn as Z,Sf as _,lI as a,dH as a$,Wr as a0,Kr as a1,nH as a2,bi as a3,Hw as a4,pf as a5,Jv as a6,Pa as a7,Fo as a8,D4 as a9,Tj as aA,pg as aB,T7 as aC,WI as aD,qO as aE,YO as aF,IU as aG,nB as aH,jR as aI,_v as aJ,b8 as aK,Rc as aL,yc as aM,cH as aN,wU as aO,xU as aP,RU as aQ,OU as aR,TU as aS,CH as aT,IH as aU,MH as aV,AH as aW,BL as aX,SH as aY,EH as aZ,za as a_,M_ as aa,oH as ab,rH as ac,e3 as ad,W4 as ae,er as af,BU as ag,FU as ah,UU as ai,In as aj,Tn as ak,DU as al,qw as am,UR as an,Q9 as ao,Bg as ap,YR as aq,zg as ar,X9 as as,J9 as at,N2 as au,S7 as av,Ca as aw,wR as ax,_7 as ay,y7 as az,hg as b,b2 as b0,bH as b1,vH as b2,pH as b3,iR as b4,Fg as b5,lc as b6,Q2 as b7,Ug as b8,NH as b9,xg as bA,x8 as bB,pM as bC,hH as bD,mH as bE,CL as bF,xH as bG,RH as bH,wH as bI,tc as bJ,j4 as bK,bw as bL,H8 as bM,NE as bN,uH as bO,lH as bP,G8 as bQ,pc as ba,On as bb,av as bc,gw as bd,V4 as be,q4 as bf,Q4 as bg,Z4 as bh,Y4 as bi,Qn as bj,J4 as bk,N_ as bl,X4 as bm,K4 as bn,O7 as bo,C7 as bp,xf as bq,Lg as br,fH as bs,E2 as bt,Sg as bu,_H as bv,KL as bw,gH as bx,y8 as by,S8 as bz,cf as c,fg as d,F4 as e,mc as f,Jn as g,TH as h,Q7 as i,b as j,G2 as k,x$ as l,qe as m,PH as n,kH as o,jH as p,t3 as q,E as r,Kw as s,jE as t,aH as u,bn as v,Ve as w,vo as x,mo as y,bc as z};
@@ -1 +1 @@
1
- import{a3 as _}from"./index-tz4gB72W.js";var S={exports:{}},r={};var $;function I(){if($)return r;$=1;var m=Symbol.for("react.element"),y=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),x=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),i=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),a=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function t(e){if(typeof e=="object"&&e!==null){var d=e.$$typeof;switch(d){case m:switch(e=e.type,e){case o:case s:case n:case i:case l:return e;default:switch(e=e&&e.$$typeof,e){case x:case f:case u:case p:case a:case c:return e;default:return d}}case y:return d}}}return r.ContextConsumer=f,r.ContextProvider=c,r.Element=m,r.ForwardRef=u,r.Fragment=o,r.Lazy=p,r.Memo=a,r.Portal=y,r.Profiler=s,r.StrictMode=n,r.Suspense=i,r.SuspenseList=l,r.isAsyncMode=function(){return!1},r.isConcurrentMode=function(){return!1},r.isContextConsumer=function(e){return t(e)===f},r.isContextProvider=function(e){return t(e)===c},r.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===m},r.isForwardRef=function(e){return t(e)===u},r.isFragment=function(e){return t(e)===o},r.isLazy=function(e){return t(e)===p},r.isMemo=function(e){return t(e)===a},r.isPortal=function(e){return t(e)===y},r.isProfiler=function(e){return t(e)===s},r.isStrictMode=function(e){return t(e)===n},r.isSuspense=function(e){return t(e)===i},r.isSuspenseList=function(e){return t(e)===l},r.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===o||e===s||e===n||e===i||e===l||e===R||typeof e=="object"&&e!==null&&(e.$$typeof===p||e.$$typeof===a||e.$$typeof===c||e.$$typeof===f||e.$$typeof===u||e.$$typeof===b||e.getModuleId!==void 0)},r.typeOf=t,r}var v;function C(){return v||(v=1,S.exports=I()),S.exports}var g=C();const h=_(g);export{h as R,g as r};
1
+ import{a3 as _}from"./index-DEMNtulg.js";var S={exports:{}},r={};var $;function I(){if($)return r;$=1;var m=Symbol.for("react.element"),y=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),x=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),i=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),a=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function t(e){if(typeof e=="object"&&e!==null){var d=e.$$typeof;switch(d){case m:switch(e=e.type,e){case o:case s:case n:case i:case l:return e;default:switch(e=e&&e.$$typeof,e){case x:case f:case u:case p:case a:case c:return e;default:return d}}case y:return d}}}return r.ContextConsumer=f,r.ContextProvider=c,r.Element=m,r.ForwardRef=u,r.Fragment=o,r.Lazy=p,r.Memo=a,r.Portal=y,r.Profiler=s,r.StrictMode=n,r.Suspense=i,r.SuspenseList=l,r.isAsyncMode=function(){return!1},r.isConcurrentMode=function(){return!1},r.isContextConsumer=function(e){return t(e)===f},r.isContextProvider=function(e){return t(e)===c},r.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===m},r.isForwardRef=function(e){return t(e)===u},r.isFragment=function(e){return t(e)===o},r.isLazy=function(e){return t(e)===p},r.isMemo=function(e){return t(e)===a},r.isPortal=function(e){return t(e)===y},r.isProfiler=function(e){return t(e)===s},r.isStrictMode=function(e){return t(e)===n},r.isSuspense=function(e){return t(e)===i},r.isSuspenseList=function(e){return t(e)===l},r.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===o||e===s||e===n||e===i||e===l||e===R||typeof e=="object"&&e!==null&&(e.$$typeof===p||e.$$typeof===a||e.$$typeof===c||e.$$typeof===f||e.$$typeof===u||e.$$typeof===b||e.getModuleId!==void 0)},r.typeOf=t,r}var v;function C(){return v||(v=1,S.exports=I()),S.exports}var g=C();const h=_(g);export{h as R,g as r};
@@ -1 +1 @@
1
- import{r as n,aw as P,aL as R,R as Ee,P as ke,O as Se,C as xe,aM as V}from"./index-tz4gB72W.js";var de=1,Ie=.9,Ce=.8,Re=.17,Q=.1,Z=.999,Ae=.9999,Me=.99,$e=/[\\\/_+.#"@\[\(\{&]/,De=/[\\\/_+.#"@\[\(\{&]/g,Fe=/[\s-]/,ve=/[\s-]/g;function ee(t,l,r,f,u,c,d){if(c===l.length)return u===t.length?de:Me;var v=`${u},${c}`;if(d[v]!==void 0)return d[v];for(var b=f.charAt(c),i=r.indexOf(b,u),p=0,h,x,E,I;i>=0;)h=ee(t,l,r,f,i+1,c+1,d),h>p&&(i===u?h*=de:$e.test(t.charAt(i-1))?(h*=Ce,E=t.slice(u,i-1).match(De),E&&u>0&&(h*=Math.pow(Z,E.length))):Fe.test(t.charAt(i-1))?(h*=Ie,I=t.slice(u,i-1).match(ve),I&&u>0&&(h*=Math.pow(Z,I.length))):(h*=Re,u>0&&(h*=Math.pow(Z,i-u))),t.charAt(i)!==l.charAt(c)&&(h*=Ae)),(h<Q&&r.charAt(i-1)===f.charAt(c+1)||f.charAt(c+1)===f.charAt(c)&&r.charAt(i-1)!==f.charAt(c))&&(x=ee(t,l,r,f,i+1,c+2,d),x*Q>h&&(h=x*Q)),h>p&&(p=h),i=r.indexOf(b,i+1);return d[v]=p,p}function se(t){return t.toLowerCase().replace(ve," ")}function Ke(t,l,r){return t=r&&r.length>0?`${t+" "+r.join(" ")}`:t,ee(t,l,se(t),se(l),0,0,{})}var L='[cmdk-group=""]',_='[cmdk-group-items=""]',Pe='[cmdk-group-heading=""]',me='[cmdk-item=""]',fe=`${me}:not([aria-disabled="true"])`,te="cmdk-item-select",F="data-value",qe=(t,l,r)=>Ke(t,l,r),pe=n.createContext(void 0),j=()=>n.useContext(pe),he=n.createContext(void 0),re=()=>n.useContext(he),ge=n.createContext(void 0),be=n.forwardRef((t,l)=>{let r=K(()=>{var e,o;return{search:"",value:(o=(e=t.value)!=null?e:t.defaultValue)!=null?o:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),f=K(()=>new Set),u=K(()=>new Map),c=K(()=>new Map),d=K(()=>new Set),v=we(t),{label:b,children:i,value:p,onValueChange:h,filter:x,shouldFilter:E,loop:I,disablePointerSelection:U=!1,vimBindings:A=!0,...O}=t,H=P(),ne=P(),N=P(),M=n.useRef(null),w=We();$(()=>{if(p!==void 0){let e=p.trim();r.current.value=e,k.emit()}},[p]),$(()=>{w(6,ae)},[]);let k=n.useMemo(()=>({subscribe:e=>(d.current.add(e),()=>d.current.delete(e)),snapshot:()=>r.current,setState:(e,o,s)=>{var a,m,g,S;if(!Object.is(r.current[e],o)){if(r.current[e]=o,e==="search")J(),W(),w(1,G);else if(e==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let y=document.getElementById(N);y?y.focus():(a=document.getElementById(H))==null||a.focus()}if(w(7,()=>{var y;r.current.selectedItemId=(y=D())==null?void 0:y.id,k.emit()}),s||w(5,ae),((m=v.current)==null?void 0:m.value)!==void 0){let y=o??"";(S=(g=v.current).onValueChange)==null||S.call(g,y);return}}k.emit()}},emit:()=>{d.current.forEach(e=>e())}}),[]),T=n.useMemo(()=>({value:(e,o,s)=>{var a;o!==((a=c.current.get(e))==null?void 0:a.value)&&(c.current.set(e,{value:o,keywords:s}),r.current.filtered.items.set(e,le(o,s)),w(2,()=>{W(),k.emit()}))},item:(e,o)=>(f.current.add(e),o&&(u.current.has(o)?u.current.get(o).add(e):u.current.set(o,new Set([e]))),w(3,()=>{J(),W(),r.current.value||G(),k.emit()}),()=>{c.current.delete(e),f.current.delete(e),r.current.filtered.items.delete(e);let s=D();w(4,()=>{J(),s?.getAttribute("id")===e&&G(),k.emit()})}),group:e=>(u.current.has(e)||u.current.set(e,new Set),()=>{c.current.delete(e),u.current.delete(e)}),filter:()=>v.current.shouldFilter,label:b||t["aria-label"],getDisablePointerSelection:()=>v.current.disablePointerSelection,listId:H,inputId:N,labelId:ne,listInnerRef:M}),[]);function le(e,o){var s,a;let m=(a=(s=v.current)==null?void 0:s.filter)!=null?a:qe;return e?m(e,r.current.search,o):0}function W(){if(!r.current.search||v.current.shouldFilter===!1)return;let e=r.current.filtered.items,o=[];r.current.filtered.groups.forEach(a=>{let m=u.current.get(a),g=0;m.forEach(S=>{let y=e.get(S);g=Math.max(y,g)}),o.push([a,g])});let s=M.current;q().sort((a,m)=>{var g,S;let y=a.getAttribute("id"),B=m.getAttribute("id");return((g=e.get(B))!=null?g:0)-((S=e.get(y))!=null?S:0)}).forEach(a=>{let m=a.closest(_);m?m.appendChild(a.parentElement===m?a:a.closest(`${_} > *`)):s.appendChild(a.parentElement===s?a:a.closest(`${_} > *`))}),o.sort((a,m)=>m[1]-a[1]).forEach(a=>{var m;let g=(m=M.current)==null?void 0:m.querySelector(`${L}[${F}="${encodeURIComponent(a[0])}"]`);g?.parentElement.appendChild(g)})}function G(){let e=q().find(s=>s.getAttribute("aria-disabled")!=="true"),o=e?.getAttribute(F);k.setState("value",o||void 0)}function J(){var e,o,s,a;if(!r.current.search||v.current.shouldFilter===!1){r.current.filtered.count=f.current.size;return}r.current.filtered.groups=new Set;let m=0;for(let g of f.current){let S=(o=(e=c.current.get(g))==null?void 0:e.value)!=null?o:"",y=(a=(s=c.current.get(g))==null?void 0:s.keywords)!=null?a:[],B=le(S,y);r.current.filtered.items.set(g,B),B>0&&m++}for(let[g,S]of u.current)for(let y of S)if(r.current.filtered.items.get(y)>0){r.current.filtered.groups.add(g);break}r.current.filtered.count=m}function ae(){var e,o,s;let a=D();a&&(((e=a.parentElement)==null?void 0:e.firstChild)===a&&((s=(o=a.closest(L))==null?void 0:o.querySelector(Pe))==null||s.scrollIntoView({block:"nearest"})),a.scrollIntoView({block:"nearest"}))}function D(){var e;return(e=M.current)==null?void 0:e.querySelector(`${me}[aria-selected="true"]`)}function q(){var e;return Array.from(((e=M.current)==null?void 0:e.querySelectorAll(fe))||[])}function X(e){let o=q()[e];o&&k.setState("value",o.getAttribute(F))}function Y(e){var o;let s=D(),a=q(),m=a.findIndex(S=>S===s),g=a[m+e];(o=v.current)!=null&&o.loop&&(g=m+e<0?a[a.length-1]:m+e===a.length?a[0]:a[m+e]),g&&k.setState("value",g.getAttribute(F))}function ue(e){let o=D(),s=o?.closest(L),a;for(;s&&!a;)s=e>0?Ne(s,L):Te(s,L),a=s?.querySelector(fe);a?k.setState("value",a.getAttribute(F)):Y(e)}let ie=()=>X(q().length-1),oe=e=>{e.preventDefault(),e.metaKey?ie():e.altKey?ue(1):Y(1)},ce=e=>{e.preventDefault(),e.metaKey?X(0):e.altKey?ue(-1):Y(-1)};return n.createElement(R.div,{ref:l,tabIndex:-1,...O,"cmdk-root":"",onKeyDown:e=>{var o;(o=O.onKeyDown)==null||o.call(O,e);let s=e.nativeEvent.isComposing||e.keyCode===229;if(!(e.defaultPrevented||s))switch(e.key){case"n":case"j":{A&&e.ctrlKey&&oe(e);break}case"ArrowDown":{oe(e);break}case"p":case"k":{A&&e.ctrlKey&&ce(e);break}case"ArrowUp":{ce(e);break}case"Home":{e.preventDefault(),X(0);break}case"End":{e.preventDefault(),ie();break}case"Enter":{e.preventDefault();let a=D();if(a){let m=new Event(te);a.dispatchEvent(m)}}}}},n.createElement("label",{"cmdk-label":"",htmlFor:T.inputId,id:T.labelId,style:Je},b),z(t,e=>n.createElement(he.Provider,{value:k},n.createElement(pe.Provider,{value:T},e))))}),Le=n.forwardRef((t,l)=>{var r,f;let u=P(),c=n.useRef(null),d=n.useContext(ge),v=j(),b=we(t),i=(f=(r=b.current)==null?void 0:r.forceMount)!=null?f:d?.forceMount;$(()=>{if(!i)return v.item(u,d?.id)},[i]);let p=ye(u,c,[t.value,t.children,c],t.keywords),h=re(),x=C(w=>w.value&&w.value===p.current),E=C(w=>i||v.filter()===!1?!0:w.search?w.filtered.items.get(u)>0:!0);n.useEffect(()=>{let w=c.current;if(!(!w||t.disabled))return w.addEventListener(te,I),()=>w.removeEventListener(te,I)},[E,t.onSelect,t.disabled]);function I(){var w,k;U(),(k=(w=b.current).onSelect)==null||k.call(w,p.current)}function U(){h.setState("value",p.current,!0)}if(!E)return null;let{disabled:A,value:O,onSelect:H,forceMount:ne,keywords:N,...M}=t;return n.createElement(R.div,{ref:V(c,l),...M,id:u,"cmdk-item":"",role:"option","aria-disabled":!!A,"aria-selected":!!x,"data-disabled":!!A,"data-selected":!!x,onPointerMove:A||v.getDisablePointerSelection()?void 0:U,onClick:A?void 0:I},t.children)}),Ve=n.forwardRef((t,l)=>{let{heading:r,children:f,forceMount:u,...c}=t,d=P(),v=n.useRef(null),b=n.useRef(null),i=P(),p=j(),h=C(E=>u||p.filter()===!1?!0:E.search?E.filtered.groups.has(d):!0);$(()=>p.group(d),[]),ye(d,v,[t.value,t.heading,b]);let x=n.useMemo(()=>({id:d,forceMount:u}),[u]);return n.createElement(R.div,{ref:V(v,l),...c,"cmdk-group":"",role:"presentation",hidden:h?void 0:!0},r&&n.createElement("div",{ref:b,"cmdk-group-heading":"","aria-hidden":!0,id:i},r),z(t,E=>n.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?i:void 0},n.createElement(ge.Provider,{value:x},E))))}),je=n.forwardRef((t,l)=>{let{alwaysRender:r,...f}=t,u=n.useRef(null),c=C(d=>!d.search);return!r&&!c?null:n.createElement(R.div,{ref:V(u,l),...f,"cmdk-separator":"",role:"separator"})}),Oe=n.forwardRef((t,l)=>{let{onValueChange:r,...f}=t,u=t.value!=null,c=re(),d=C(i=>i.search),v=C(i=>i.selectedItemId),b=j();return n.useEffect(()=>{t.value!=null&&c.setState("search",t.value)},[t.value]),n.createElement(R.input,{ref:l,...f,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":b.listId,"aria-labelledby":b.labelId,"aria-activedescendant":v,id:b.inputId,type:"text",value:u?t.value:d,onChange:i=>{u||c.setState("search",i.target.value),r?.(i.target.value)}})}),Be=n.forwardRef((t,l)=>{let{children:r,label:f="Suggestions",...u}=t,c=n.useRef(null),d=n.useRef(null),v=C(i=>i.selectedItemId),b=j();return n.useEffect(()=>{if(d.current&&c.current){let i=d.current,p=c.current,h,x=new ResizeObserver(()=>{h=requestAnimationFrame(()=>{let E=i.offsetHeight;p.style.setProperty("--cmdk-list-height",E.toFixed(1)+"px")})});return x.observe(i),()=>{cancelAnimationFrame(h),x.unobserve(i)}}},[]),n.createElement(R.div,{ref:V(c,l),...u,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":v,"aria-label":f,id:b.listId},z(t,i=>n.createElement("div",{ref:V(d,b.listInnerRef),"cmdk-list-sizer":""},i)))}),ze=n.forwardRef((t,l)=>{let{open:r,onOpenChange:f,overlayClassName:u,contentClassName:c,container:d,...v}=t;return n.createElement(Ee,{open:r,onOpenChange:f},n.createElement(ke,{container:d},n.createElement(Se,{"cmdk-overlay":"",className:u}),n.createElement(xe,{"aria-label":t.label,"cmdk-dialog":"",className:c},n.createElement(be,{ref:l,...v}))))}),Ue=n.forwardRef((t,l)=>C(r=>r.filtered.count===0)?n.createElement(R.div,{ref:l,...t,"cmdk-empty":"",role:"presentation"}):null),He=n.forwardRef((t,l)=>{let{progress:r,children:f,label:u="Loading...",...c}=t;return n.createElement(R.div,{ref:l,...c,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":u},z(t,d=>n.createElement("div",{"aria-hidden":!0},d)))}),Ye=Object.assign(be,{List:Be,Item:Le,Input:Oe,Group:Ve,Separator:je,Dialog:ze,Empty:Ue,Loading:He});function Ne(t,l){let r=t.nextElementSibling;for(;r;){if(r.matches(l))return r;r=r.nextElementSibling}}function Te(t,l){let r=t.previousElementSibling;for(;r;){if(r.matches(l))return r;r=r.previousElementSibling}}function we(t){let l=n.useRef(t);return $(()=>{l.current=t}),l}var $=typeof window>"u"?n.useEffect:n.useLayoutEffect;function K(t){let l=n.useRef();return l.current===void 0&&(l.current=t()),l}function C(t){let l=re(),r=()=>t(l.snapshot());return n.useSyncExternalStore(l.subscribe,r,r)}function ye(t,l,r,f=[]){let u=n.useRef(),c=j();return $(()=>{var d;let v=(()=>{var i;for(let p of r){if(typeof p=="string")return p.trim();if(typeof p=="object"&&"current"in p)return p.current?(i=p.current.textContent)==null?void 0:i.trim():u.current}})(),b=f.map(i=>i.trim());c.value(t,v,b),(d=l.current)==null||d.setAttribute(F,v),u.current=v}),u}var We=()=>{let[t,l]=n.useState(),r=K(()=>new Map);return $(()=>{r.current.forEach(f=>f()),r.current=new Map},[t]),(f,u)=>{r.current.set(f,u),l({})}};function Ge(t){let l=t.type;return typeof l=="function"?l(t.props):"render"in l?l.render(t.props):t}function z({asChild:t,children:l},r){return t&&n.isValidElement(l)?n.cloneElement(Ge(l),{ref:l.ref},r(l.props.children)):r(l)}var Je={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};export{Ye as _};
1
+ import{r as n,aw as P,aL as R,R as Ee,P as ke,O as Se,C as xe,aM as V}from"./index-DEMNtulg.js";var de=1,Ie=.9,Ce=.8,Re=.17,Q=.1,Z=.999,Ae=.9999,Me=.99,$e=/[\\\/_+.#"@\[\(\{&]/,De=/[\\\/_+.#"@\[\(\{&]/g,Fe=/[\s-]/,ve=/[\s-]/g;function ee(t,l,r,f,u,c,d){if(c===l.length)return u===t.length?de:Me;var v=`${u},${c}`;if(d[v]!==void 0)return d[v];for(var b=f.charAt(c),i=r.indexOf(b,u),p=0,h,x,E,I;i>=0;)h=ee(t,l,r,f,i+1,c+1,d),h>p&&(i===u?h*=de:$e.test(t.charAt(i-1))?(h*=Ce,E=t.slice(u,i-1).match(De),E&&u>0&&(h*=Math.pow(Z,E.length))):Fe.test(t.charAt(i-1))?(h*=Ie,I=t.slice(u,i-1).match(ve),I&&u>0&&(h*=Math.pow(Z,I.length))):(h*=Re,u>0&&(h*=Math.pow(Z,i-u))),t.charAt(i)!==l.charAt(c)&&(h*=Ae)),(h<Q&&r.charAt(i-1)===f.charAt(c+1)||f.charAt(c+1)===f.charAt(c)&&r.charAt(i-1)!==f.charAt(c))&&(x=ee(t,l,r,f,i+1,c+2,d),x*Q>h&&(h=x*Q)),h>p&&(p=h),i=r.indexOf(b,i+1);return d[v]=p,p}function se(t){return t.toLowerCase().replace(ve," ")}function Ke(t,l,r){return t=r&&r.length>0?`${t+" "+r.join(" ")}`:t,ee(t,l,se(t),se(l),0,0,{})}var L='[cmdk-group=""]',_='[cmdk-group-items=""]',Pe='[cmdk-group-heading=""]',me='[cmdk-item=""]',fe=`${me}:not([aria-disabled="true"])`,te="cmdk-item-select",F="data-value",qe=(t,l,r)=>Ke(t,l,r),pe=n.createContext(void 0),j=()=>n.useContext(pe),he=n.createContext(void 0),re=()=>n.useContext(he),ge=n.createContext(void 0),be=n.forwardRef((t,l)=>{let r=K(()=>{var e,o;return{search:"",value:(o=(e=t.value)!=null?e:t.defaultValue)!=null?o:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),f=K(()=>new Set),u=K(()=>new Map),c=K(()=>new Map),d=K(()=>new Set),v=we(t),{label:b,children:i,value:p,onValueChange:h,filter:x,shouldFilter:E,loop:I,disablePointerSelection:U=!1,vimBindings:A=!0,...O}=t,H=P(),ne=P(),N=P(),M=n.useRef(null),w=We();$(()=>{if(p!==void 0){let e=p.trim();r.current.value=e,k.emit()}},[p]),$(()=>{w(6,ae)},[]);let k=n.useMemo(()=>({subscribe:e=>(d.current.add(e),()=>d.current.delete(e)),snapshot:()=>r.current,setState:(e,o,s)=>{var a,m,g,S;if(!Object.is(r.current[e],o)){if(r.current[e]=o,e==="search")J(),W(),w(1,G);else if(e==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let y=document.getElementById(N);y?y.focus():(a=document.getElementById(H))==null||a.focus()}if(w(7,()=>{var y;r.current.selectedItemId=(y=D())==null?void 0:y.id,k.emit()}),s||w(5,ae),((m=v.current)==null?void 0:m.value)!==void 0){let y=o??"";(S=(g=v.current).onValueChange)==null||S.call(g,y);return}}k.emit()}},emit:()=>{d.current.forEach(e=>e())}}),[]),T=n.useMemo(()=>({value:(e,o,s)=>{var a;o!==((a=c.current.get(e))==null?void 0:a.value)&&(c.current.set(e,{value:o,keywords:s}),r.current.filtered.items.set(e,le(o,s)),w(2,()=>{W(),k.emit()}))},item:(e,o)=>(f.current.add(e),o&&(u.current.has(o)?u.current.get(o).add(e):u.current.set(o,new Set([e]))),w(3,()=>{J(),W(),r.current.value||G(),k.emit()}),()=>{c.current.delete(e),f.current.delete(e),r.current.filtered.items.delete(e);let s=D();w(4,()=>{J(),s?.getAttribute("id")===e&&G(),k.emit()})}),group:e=>(u.current.has(e)||u.current.set(e,new Set),()=>{c.current.delete(e),u.current.delete(e)}),filter:()=>v.current.shouldFilter,label:b||t["aria-label"],getDisablePointerSelection:()=>v.current.disablePointerSelection,listId:H,inputId:N,labelId:ne,listInnerRef:M}),[]);function le(e,o){var s,a;let m=(a=(s=v.current)==null?void 0:s.filter)!=null?a:qe;return e?m(e,r.current.search,o):0}function W(){if(!r.current.search||v.current.shouldFilter===!1)return;let e=r.current.filtered.items,o=[];r.current.filtered.groups.forEach(a=>{let m=u.current.get(a),g=0;m.forEach(S=>{let y=e.get(S);g=Math.max(y,g)}),o.push([a,g])});let s=M.current;q().sort((a,m)=>{var g,S;let y=a.getAttribute("id"),B=m.getAttribute("id");return((g=e.get(B))!=null?g:0)-((S=e.get(y))!=null?S:0)}).forEach(a=>{let m=a.closest(_);m?m.appendChild(a.parentElement===m?a:a.closest(`${_} > *`)):s.appendChild(a.parentElement===s?a:a.closest(`${_} > *`))}),o.sort((a,m)=>m[1]-a[1]).forEach(a=>{var m;let g=(m=M.current)==null?void 0:m.querySelector(`${L}[${F}="${encodeURIComponent(a[0])}"]`);g?.parentElement.appendChild(g)})}function G(){let e=q().find(s=>s.getAttribute("aria-disabled")!=="true"),o=e?.getAttribute(F);k.setState("value",o||void 0)}function J(){var e,o,s,a;if(!r.current.search||v.current.shouldFilter===!1){r.current.filtered.count=f.current.size;return}r.current.filtered.groups=new Set;let m=0;for(let g of f.current){let S=(o=(e=c.current.get(g))==null?void 0:e.value)!=null?o:"",y=(a=(s=c.current.get(g))==null?void 0:s.keywords)!=null?a:[],B=le(S,y);r.current.filtered.items.set(g,B),B>0&&m++}for(let[g,S]of u.current)for(let y of S)if(r.current.filtered.items.get(y)>0){r.current.filtered.groups.add(g);break}r.current.filtered.count=m}function ae(){var e,o,s;let a=D();a&&(((e=a.parentElement)==null?void 0:e.firstChild)===a&&((s=(o=a.closest(L))==null?void 0:o.querySelector(Pe))==null||s.scrollIntoView({block:"nearest"})),a.scrollIntoView({block:"nearest"}))}function D(){var e;return(e=M.current)==null?void 0:e.querySelector(`${me}[aria-selected="true"]`)}function q(){var e;return Array.from(((e=M.current)==null?void 0:e.querySelectorAll(fe))||[])}function X(e){let o=q()[e];o&&k.setState("value",o.getAttribute(F))}function Y(e){var o;let s=D(),a=q(),m=a.findIndex(S=>S===s),g=a[m+e];(o=v.current)!=null&&o.loop&&(g=m+e<0?a[a.length-1]:m+e===a.length?a[0]:a[m+e]),g&&k.setState("value",g.getAttribute(F))}function ue(e){let o=D(),s=o?.closest(L),a;for(;s&&!a;)s=e>0?Ne(s,L):Te(s,L),a=s?.querySelector(fe);a?k.setState("value",a.getAttribute(F)):Y(e)}let ie=()=>X(q().length-1),oe=e=>{e.preventDefault(),e.metaKey?ie():e.altKey?ue(1):Y(1)},ce=e=>{e.preventDefault(),e.metaKey?X(0):e.altKey?ue(-1):Y(-1)};return n.createElement(R.div,{ref:l,tabIndex:-1,...O,"cmdk-root":"",onKeyDown:e=>{var o;(o=O.onKeyDown)==null||o.call(O,e);let s=e.nativeEvent.isComposing||e.keyCode===229;if(!(e.defaultPrevented||s))switch(e.key){case"n":case"j":{A&&e.ctrlKey&&oe(e);break}case"ArrowDown":{oe(e);break}case"p":case"k":{A&&e.ctrlKey&&ce(e);break}case"ArrowUp":{ce(e);break}case"Home":{e.preventDefault(),X(0);break}case"End":{e.preventDefault(),ie();break}case"Enter":{e.preventDefault();let a=D();if(a){let m=new Event(te);a.dispatchEvent(m)}}}}},n.createElement("label",{"cmdk-label":"",htmlFor:T.inputId,id:T.labelId,style:Je},b),z(t,e=>n.createElement(he.Provider,{value:k},n.createElement(pe.Provider,{value:T},e))))}),Le=n.forwardRef((t,l)=>{var r,f;let u=P(),c=n.useRef(null),d=n.useContext(ge),v=j(),b=we(t),i=(f=(r=b.current)==null?void 0:r.forceMount)!=null?f:d?.forceMount;$(()=>{if(!i)return v.item(u,d?.id)},[i]);let p=ye(u,c,[t.value,t.children,c],t.keywords),h=re(),x=C(w=>w.value&&w.value===p.current),E=C(w=>i||v.filter()===!1?!0:w.search?w.filtered.items.get(u)>0:!0);n.useEffect(()=>{let w=c.current;if(!(!w||t.disabled))return w.addEventListener(te,I),()=>w.removeEventListener(te,I)},[E,t.onSelect,t.disabled]);function I(){var w,k;U(),(k=(w=b.current).onSelect)==null||k.call(w,p.current)}function U(){h.setState("value",p.current,!0)}if(!E)return null;let{disabled:A,value:O,onSelect:H,forceMount:ne,keywords:N,...M}=t;return n.createElement(R.div,{ref:V(c,l),...M,id:u,"cmdk-item":"",role:"option","aria-disabled":!!A,"aria-selected":!!x,"data-disabled":!!A,"data-selected":!!x,onPointerMove:A||v.getDisablePointerSelection()?void 0:U,onClick:A?void 0:I},t.children)}),Ve=n.forwardRef((t,l)=>{let{heading:r,children:f,forceMount:u,...c}=t,d=P(),v=n.useRef(null),b=n.useRef(null),i=P(),p=j(),h=C(E=>u||p.filter()===!1?!0:E.search?E.filtered.groups.has(d):!0);$(()=>p.group(d),[]),ye(d,v,[t.value,t.heading,b]);let x=n.useMemo(()=>({id:d,forceMount:u}),[u]);return n.createElement(R.div,{ref:V(v,l),...c,"cmdk-group":"",role:"presentation",hidden:h?void 0:!0},r&&n.createElement("div",{ref:b,"cmdk-group-heading":"","aria-hidden":!0,id:i},r),z(t,E=>n.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?i:void 0},n.createElement(ge.Provider,{value:x},E))))}),je=n.forwardRef((t,l)=>{let{alwaysRender:r,...f}=t,u=n.useRef(null),c=C(d=>!d.search);return!r&&!c?null:n.createElement(R.div,{ref:V(u,l),...f,"cmdk-separator":"",role:"separator"})}),Oe=n.forwardRef((t,l)=>{let{onValueChange:r,...f}=t,u=t.value!=null,c=re(),d=C(i=>i.search),v=C(i=>i.selectedItemId),b=j();return n.useEffect(()=>{t.value!=null&&c.setState("search",t.value)},[t.value]),n.createElement(R.input,{ref:l,...f,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":b.listId,"aria-labelledby":b.labelId,"aria-activedescendant":v,id:b.inputId,type:"text",value:u?t.value:d,onChange:i=>{u||c.setState("search",i.target.value),r?.(i.target.value)}})}),Be=n.forwardRef((t,l)=>{let{children:r,label:f="Suggestions",...u}=t,c=n.useRef(null),d=n.useRef(null),v=C(i=>i.selectedItemId),b=j();return n.useEffect(()=>{if(d.current&&c.current){let i=d.current,p=c.current,h,x=new ResizeObserver(()=>{h=requestAnimationFrame(()=>{let E=i.offsetHeight;p.style.setProperty("--cmdk-list-height",E.toFixed(1)+"px")})});return x.observe(i),()=>{cancelAnimationFrame(h),x.unobserve(i)}}},[]),n.createElement(R.div,{ref:V(c,l),...u,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":v,"aria-label":f,id:b.listId},z(t,i=>n.createElement("div",{ref:V(d,b.listInnerRef),"cmdk-list-sizer":""},i)))}),ze=n.forwardRef((t,l)=>{let{open:r,onOpenChange:f,overlayClassName:u,contentClassName:c,container:d,...v}=t;return n.createElement(Ee,{open:r,onOpenChange:f},n.createElement(ke,{container:d},n.createElement(Se,{"cmdk-overlay":"",className:u}),n.createElement(xe,{"aria-label":t.label,"cmdk-dialog":"",className:c},n.createElement(be,{ref:l,...v}))))}),Ue=n.forwardRef((t,l)=>C(r=>r.filtered.count===0)?n.createElement(R.div,{ref:l,...t,"cmdk-empty":"",role:"presentation"}):null),He=n.forwardRef((t,l)=>{let{progress:r,children:f,label:u="Loading...",...c}=t;return n.createElement(R.div,{ref:l,...c,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":u},z(t,d=>n.createElement("div",{"aria-hidden":!0},d)))}),Ye=Object.assign(be,{List:Be,Item:Le,Input:Oe,Group:Ve,Separator:je,Dialog:ze,Empty:Ue,Loading:He});function Ne(t,l){let r=t.nextElementSibling;for(;r;){if(r.matches(l))return r;r=r.nextElementSibling}}function Te(t,l){let r=t.previousElementSibling;for(;r;){if(r.matches(l))return r;r=r.previousElementSibling}}function we(t){let l=n.useRef(t);return $(()=>{l.current=t}),l}var $=typeof window>"u"?n.useEffect:n.useLayoutEffect;function K(t){let l=n.useRef();return l.current===void 0&&(l.current=t()),l}function C(t){let l=re(),r=()=>t(l.snapshot());return n.useSyncExternalStore(l.subscribe,r,r)}function ye(t,l,r,f=[]){let u=n.useRef(),c=j();return $(()=>{var d;let v=(()=>{var i;for(let p of r){if(typeof p=="string")return p.trim();if(typeof p=="object"&&"current"in p)return p.current?(i=p.current.textContent)==null?void 0:i.trim():u.current}})(),b=f.map(i=>i.trim());c.value(t,v,b),(d=l.current)==null||d.setAttribute(F,v),u.current=v}),u}var We=()=>{let[t,l]=n.useState(),r=K(()=>new Map);return $(()=>{r.current.forEach(f=>f()),r.current=new Map},[t]),(f,u)=>{r.current.set(f,u),l({})}};function Ge(t){let l=t.type;return typeof l=="function"?l(t.props):"render"in l?l.render(t.props):t}function z({asChild:t,children:l},r){return t&&n.isValidElement(l)?n.cloneElement(Ge(l),{ref:l.ref},r(l.props.children)):r(l)}var Je={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};export{Ye as _};
@@ -1 +1 @@
1
- import{c as s,j as a}from"./index-tz4gB72W.js";import{c as d}from"./button-BSXU4L7C.js";function p(l){const e=s.c(10);let i,r,t;e[0]!==l?({className:i,type:t,...r}=l,e[0]=l,e[1]=i,e[2]=r,e[3]=t):(i=e[1],r=e[2],t=e[3]);let n;e[4]!==i?(n=d("file:text-foreground text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-10 w-full min-w-0 rounded-lg border bg-transparent px-3 py-1 text-base transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] bg-background","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",i),e[4]=i,e[5]=n):n=e[5];let o;return e[6]!==r||e[7]!==n||e[8]!==t?(o=a.jsx("input",{type:t,"data-slot":"input",className:n,...r}),e[6]=r,e[7]=n,e[8]=t,e[9]=o):o=e[9],o}export{p as I};
1
+ import{c as s,j as a}from"./index-DEMNtulg.js";import{c as d}from"./button-B13xcF6W.js";function p(l){const e=s.c(10);let i,r,t;e[0]!==l?({className:i,type:t,...r}=l,e[0]=l,e[1]=i,e[2]=r,e[3]=t):(i=e[1],r=e[2],t=e[3]);let n;e[4]!==i?(n=d("file:text-foreground text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-10 w-full min-w-0 rounded-lg border bg-transparent px-3 py-1 text-base transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] bg-background","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",i),e[4]=i,e[5]=n):n=e[5];let o;return e[6]!==r||e[7]!==n||e[8]!==t?(o=a.jsx("input",{type:t,"data-slot":"input",className:n,...r}),e[6]=r,e[7]=n,e[8]=t,e[9]=o):o=e[9],o}export{p as I};
@@ -0,0 +1 @@
1
+ import{a3 as o}from"./index-DEMNtulg.js";import{r}from"./json-BESjz4hO.js";var s=r();const e=o(s);export{e as default};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/prism-light-bnbWF_0X.js","assets/core-C9AbX0ks.js","assets/index-tz4gB72W.js","assets/index-BcDKMyjy.css","assets/json-CevIphLA.js","assets/json-BESjz4hO.js"])))=>i.map(i=>d[i]);
2
- import{r as u,ak as p,c as k,j as d}from"./index-tz4gB72W.js";const b={'code[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"]::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},prolog:{color:"hsl(230, 4%, 64%)"},cdata:{color:"hsl(230, 4%, 64%)"},doctype:{color:"hsl(230, 8%, 24%)"},punctuation:{color:"hsl(230, 8%, 24%)"},entity:{color:"hsl(230, 8%, 24%)",cursor:"help"},"attr-name":{color:"hsl(35, 99%, 36%)"},"class-name":{color:"hsl(35, 99%, 36%)"},boolean:{color:"hsl(35, 99%, 36%)"},constant:{color:"hsl(35, 99%, 36%)"},number:{color:"hsl(35, 99%, 36%)"},atrule:{color:"hsl(35, 99%, 36%)"},keyword:{color:"hsl(301, 63%, 40%)"},property:{color:"hsl(5, 74%, 59%)"},tag:{color:"hsl(5, 74%, 59%)"},symbol:{color:"hsl(5, 74%, 59%)"},deleted:{color:"hsl(5, 74%, 59%)"},important:{color:"hsl(5, 74%, 59%)"},selector:{color:"hsl(119, 34%, 47%)"},string:{color:"hsl(119, 34%, 47%)"},char:{color:"hsl(119, 34%, 47%)"},builtin:{color:"hsl(119, 34%, 47%)"},inserted:{color:"hsl(119, 34%, 47%)"},regex:{color:"hsl(119, 34%, 47%)"},"attr-value":{color:"hsl(119, 34%, 47%)"},"attr-value > .token.punctuation":{color:"hsl(119, 34%, 47%)"},variable:{color:"hsl(221, 87%, 60%)"},operator:{color:"hsl(221, 87%, 60%)"},function:{color:"hsl(221, 87%, 60%)"},url:{color:"hsl(198, 99%, 37%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(230, 8%, 24%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(230, 8%, 24%)"},".language-css .token.selector":{color:"hsl(5, 74%, 59%)"},".language-css .token.property":{color:"hsl(230, 8%, 24%)"},".language-css .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.string.url":{color:"hsl(119, 34%, 47%)"},".language-css .token.important":{color:"hsl(301, 63%, 40%)"},".language-css .token.atrule .token.rule":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.operator":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(344, 84%, 43%)"},".language-json .token.operator":{color:"hsl(230, 8%, 24%)"},".language-json .token.null.keyword":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.url":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.operator":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.content":{color:"hsl(221, 87%, 60%)"},".language-markdown .token.url > .token.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.url-reference.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(119, 34%, 47%)"},".language-markdown .token.bold .token.content":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.italic .token.content":{color:"hsl(301, 63%, 40%)"},".language-markdown .token.strike .token.content":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.list.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(5, 74%, 59%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.cr:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.lf:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.space:before":{color:"hsla(230, 8%, 24%, 0.2)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},".line-highlight.line-highlight":{background:"hsla(230, 8%, 24%, 0.05)"},".line-highlight.line-highlight:before":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(230, 8%, 24%, 0.05)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".command-line .command-line-prompt":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(230, 1%, 62%)"},".command-line .command-line-prompt > span:before":{color:"hsl(230, 1%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(301, 63%, 40%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(0, 0, 95%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(0, 0, 95%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(0, 0, 95%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(0, 0, 95%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(0, 0%, 100%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(230, 8%, 24%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(230, 8%, 24%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(230, 8%, 24%)"}},m=u.lazy(()=>p(()=>import("./prism-light-bnbWF_0X.js"),__vite__mapDeps([0,1,2,3])).then(async n=>{const o=await p(()=>import("./json-CevIphLA.js"),__vite__mapDeps([4,2,3,5]));return n.default.registerLanguage("json",o.default),{default:n.default}})),f={className:"font-mono",style:{wordBreak:"break-word",overflowWrap:"break-word",whiteSpace:"pre-wrap"}};function w(n){const o=k.c(5),{jsonString:r,padding:s}=n,t=s===void 0?"1rem":s;let e;o[0]!==t?(e={padding:t},o[0]=t,o[1]=e):e=o[1];let l;return o[2]!==r||o[3]!==e?(l=d.jsx("pre",{className:"font-mono text-xs whitespace-pre-wrap break-words m-0 h-full text-foreground/80 bg-transparent",style:e,children:r}),o[2]=r,o[3]=e,o[4]=l):l=o[4],l}function x(n){const o=k.c(12),{jsonString:r,padding:s,background:t}=n,e=s===void 0?"1rem":s,l=t===void 0?"transparent":t;let c;o[0]!==l||o[1]!==e?(c={margin:0,padding:e,fontSize:"0.75rem",height:"100%",background:l},o[0]=l,o[1]=e,o[2]=c):c=o[2];const g=c;let a;o[3]!==r||o[4]!==e?(a=d.jsx(w,{jsonString:r,padding:e}),o[3]=r,o[4]=e,o[5]=a):a=o[5];let i;o[6]!==g||o[7]!==r?(i=d.jsx(m,{language:"json",style:b,customStyle:g,codeTagProps:f,wrapLongLines:!0,children:r}),o[6]=g,o[7]=r,o[8]=i):i=o[8];let h;return o[9]!==a||o[10]!==i?(h=d.jsx(u.Suspense,{fallback:a,children:i}),o[9]=a,o[10]=i,o[11]=h):h=o[11],h}export{x as J};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/prism-light-CHE2alug.js","assets/core-BqWxized.js","assets/index-DEMNtulg.js","assets/index-BcDKMyjy.css","assets/json-Bz08jZIq.js","assets/json-BESjz4hO.js"])))=>i.map(i=>d[i]);
2
+ import{r as u,ak as p,c as k,j as d}from"./index-DEMNtulg.js";const b={'code[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"]::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},prolog:{color:"hsl(230, 4%, 64%)"},cdata:{color:"hsl(230, 4%, 64%)"},doctype:{color:"hsl(230, 8%, 24%)"},punctuation:{color:"hsl(230, 8%, 24%)"},entity:{color:"hsl(230, 8%, 24%)",cursor:"help"},"attr-name":{color:"hsl(35, 99%, 36%)"},"class-name":{color:"hsl(35, 99%, 36%)"},boolean:{color:"hsl(35, 99%, 36%)"},constant:{color:"hsl(35, 99%, 36%)"},number:{color:"hsl(35, 99%, 36%)"},atrule:{color:"hsl(35, 99%, 36%)"},keyword:{color:"hsl(301, 63%, 40%)"},property:{color:"hsl(5, 74%, 59%)"},tag:{color:"hsl(5, 74%, 59%)"},symbol:{color:"hsl(5, 74%, 59%)"},deleted:{color:"hsl(5, 74%, 59%)"},important:{color:"hsl(5, 74%, 59%)"},selector:{color:"hsl(119, 34%, 47%)"},string:{color:"hsl(119, 34%, 47%)"},char:{color:"hsl(119, 34%, 47%)"},builtin:{color:"hsl(119, 34%, 47%)"},inserted:{color:"hsl(119, 34%, 47%)"},regex:{color:"hsl(119, 34%, 47%)"},"attr-value":{color:"hsl(119, 34%, 47%)"},"attr-value > .token.punctuation":{color:"hsl(119, 34%, 47%)"},variable:{color:"hsl(221, 87%, 60%)"},operator:{color:"hsl(221, 87%, 60%)"},function:{color:"hsl(221, 87%, 60%)"},url:{color:"hsl(198, 99%, 37%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(230, 8%, 24%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(230, 8%, 24%)"},".language-css .token.selector":{color:"hsl(5, 74%, 59%)"},".language-css .token.property":{color:"hsl(230, 8%, 24%)"},".language-css .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.string.url":{color:"hsl(119, 34%, 47%)"},".language-css .token.important":{color:"hsl(301, 63%, 40%)"},".language-css .token.atrule .token.rule":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.operator":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(344, 84%, 43%)"},".language-json .token.operator":{color:"hsl(230, 8%, 24%)"},".language-json .token.null.keyword":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.url":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.operator":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.content":{color:"hsl(221, 87%, 60%)"},".language-markdown .token.url > .token.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.url-reference.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(119, 34%, 47%)"},".language-markdown .token.bold .token.content":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.italic .token.content":{color:"hsl(301, 63%, 40%)"},".language-markdown .token.strike .token.content":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.list.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(5, 74%, 59%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.cr:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.lf:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.space:before":{color:"hsla(230, 8%, 24%, 0.2)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},".line-highlight.line-highlight":{background:"hsla(230, 8%, 24%, 0.05)"},".line-highlight.line-highlight:before":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(230, 8%, 24%, 0.05)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".command-line .command-line-prompt":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(230, 1%, 62%)"},".command-line .command-line-prompt > span:before":{color:"hsl(230, 1%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(301, 63%, 40%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(0, 0, 95%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(0, 0, 95%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(0, 0, 95%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(0, 0, 95%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(0, 0%, 100%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(230, 8%, 24%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(230, 8%, 24%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(230, 8%, 24%)"}},m=u.lazy(()=>p(()=>import("./prism-light-CHE2alug.js"),__vite__mapDeps([0,1,2,3])).then(async n=>{const o=await p(()=>import("./json-Bz08jZIq.js"),__vite__mapDeps([4,2,3,5]));return n.default.registerLanguage("json",o.default),{default:n.default}})),f={className:"font-mono",style:{wordBreak:"break-word",overflowWrap:"break-word",whiteSpace:"pre-wrap"}};function w(n){const o=k.c(5),{jsonString:r,padding:s}=n,t=s===void 0?"1rem":s;let e;o[0]!==t?(e={padding:t},o[0]=t,o[1]=e):e=o[1];let l;return o[2]!==r||o[3]!==e?(l=d.jsx("pre",{className:"font-mono text-xs whitespace-pre-wrap break-words m-0 h-full text-foreground/80 bg-transparent",style:e,children:r}),o[2]=r,o[3]=e,o[4]=l):l=o[4],l}function x(n){const o=k.c(12),{jsonString:r,padding:s,background:t}=n,e=s===void 0?"1rem":s,l=t===void 0?"transparent":t;let c;o[0]!==l||o[1]!==e?(c={margin:0,padding:e,fontSize:"0.75rem",height:"100%",background:l},o[0]=l,o[1]=e,o[2]=c):c=o[2];const g=c;let a;o[3]!==r||o[4]!==e?(a=d.jsx(w,{jsonString:r,padding:e}),o[3]=r,o[4]=e,o[5]=a):a=o[5];let i;o[6]!==g||o[7]!==r?(i=d.jsx(m,{language:"json",style:b,customStyle:g,codeTagProps:f,wrapLongLines:!0,children:r}),o[6]=g,o[7]=r,o[8]=i):i=o[8];let h;return o[9]!==a||o[10]!==i?(h=d.jsx(u.Suspense,{fallback:a,children:i}),o[9]=a,o[10]=i,o[11]=h):h=o[11],h}export{x as J};
@@ -1 +1 @@
1
- import{c as E,r as f,a5 as v,j as l}from"./index-tz4gB72W.js";import{B as w}from"./button-BSXU4L7C.js";import{i as k}from"./ArrowLeft-DC_Ebc-m.js";const j=f.createContext(null);function S(x){const e=E.c(3),{children:r}=x,s=f.useContext(j);if(!s?.tabsEl)return null;let t;return e[0]!==r||e[1]!==s.tabsEl?(t=v.createPortal(r,s.tabsEl),e[0]=r,e[1]=s.tabsEl,e[2]=t):t=e[2],t}function _(x){const e=E.c(3),{children:r}=x,s=f.useContext(j);if(!s?.actionsEl)return null;let t;return e[0]!==r||e[1]!==s.actionsEl?(t=v.createPortal(r,s.actionsEl),e[0]=r,e[1]=s.actionsEl,e[2]=t):t=e[2],t}function B(x){const e=E.c(20),{children:r,onBack:s,title:t}=x,[h,N]=f.useState(null),[p,g]=f.useState(null);let n;e[0]!==p||e[1]!==h?(n={tabsEl:h,actionsEl:p},e[0]=p,e[1]=h,e[2]=n):n=e[2];let u;e[3]===Symbol.for("react.memo_cache_sentinel")?(u=l.jsx(k,{}),e[3]=u):u=e[3];let i;e[4]!==s?(i=l.jsx("div",{className:"flex h-full px-2 border-r items-center",children:l.jsx(w,{variant:"ghost",size:"icon",className:"items-center size-8 text-muted-foreground",onClick:s,children:u})}),e[4]=s,e[5]=i):i=e[5];let c;e[6]!==t?(c=t&&l.jsx("div",{className:"flex items-center gap-2 px-2",children:l.jsx("p",{className:"text-sm font-medium",children:t})}),e[6]=t,e[7]=c):c=e[7];let d;e[8]===Symbol.for("react.memo_cache_sentinel")?(d=l.jsxs("div",{className:"flex px-4 items-center gap-0 flex-1 min-w-0",children:[l.jsx("div",{ref:N,className:"flex items-center gap-2 overflow-x-auto min-w-0"}),l.jsx("div",{ref:g,className:"flex items-center gap-2 ml-auto shrink-0 border-l border-border pl-4"})]}),e[8]=d):d=e[8];let o;e[9]!==i||e[10]!==c?(o=l.jsxs("div",{className:"flex items-center h-12 border-b border-border shrink-0",children:[i,c,d]}),e[9]=i,e[10]=c,e[11]=o):o=e[11];let a;e[12]!==r?(a=l.jsx("div",{className:"flex-1 overflow-auto",children:r}),e[12]=r,e[13]=a):a=e[13];let m;e[14]!==o||e[15]!==a?(m=l.jsxs("div",{className:"flex flex-col h-full bg-background",children:[o,a]}),e[14]=o,e[15]=a,e[16]=m):m=e[16];let b;return e[17]!==n||e[18]!==m?(b=l.jsx(j,{value:n,children:m}),e[17]=n,e[18]=m,e[19]=b):b=e[19],b}export{_ as V,S as a,B as b};
1
+ import{c as E,r as f,a5 as v,j as l}from"./index-DEMNtulg.js";import{B as w}from"./button-B13xcF6W.js";import{i as k}from"./ArrowLeft-CJ-eKoid.js";const j=f.createContext(null);function S(x){const e=E.c(3),{children:r}=x,s=f.useContext(j);if(!s?.tabsEl)return null;let t;return e[0]!==r||e[1]!==s.tabsEl?(t=v.createPortal(r,s.tabsEl),e[0]=r,e[1]=s.tabsEl,e[2]=t):t=e[2],t}function _(x){const e=E.c(3),{children:r}=x,s=f.useContext(j);if(!s?.actionsEl)return null;let t;return e[0]!==r||e[1]!==s.actionsEl?(t=v.createPortal(r,s.actionsEl),e[0]=r,e[1]=s.actionsEl,e[2]=t):t=e[2],t}function B(x){const e=E.c(20),{children:r,onBack:s,title:t}=x,[h,N]=f.useState(null),[p,g]=f.useState(null);let n;e[0]!==p||e[1]!==h?(n={tabsEl:h,actionsEl:p},e[0]=p,e[1]=h,e[2]=n):n=e[2];let u;e[3]===Symbol.for("react.memo_cache_sentinel")?(u=l.jsx(k,{}),e[3]=u):u=e[3];let i;e[4]!==s?(i=l.jsx("div",{className:"flex h-full px-2 border-r items-center",children:l.jsx(w,{variant:"ghost",size:"icon",className:"items-center size-8 text-muted-foreground",onClick:s,children:u})}),e[4]=s,e[5]=i):i=e[5];let c;e[6]!==t?(c=t&&l.jsx("div",{className:"flex items-center gap-2 px-2",children:l.jsx("p",{className:"text-sm font-medium",children:t})}),e[6]=t,e[7]=c):c=e[7];let d;e[8]===Symbol.for("react.memo_cache_sentinel")?(d=l.jsxs("div",{className:"flex px-4 items-center gap-0 flex-1 min-w-0",children:[l.jsx("div",{ref:N,className:"flex items-center gap-2 overflow-x-auto min-w-0"}),l.jsx("div",{ref:g,className:"flex items-center gap-2 ml-auto shrink-0 border-l border-border pl-4"})]}),e[8]=d):d=e[8];let o;e[9]!==i||e[10]!==c?(o=l.jsxs("div",{className:"flex items-center h-12 border-b border-border shrink-0",children:[i,c,d]}),e[9]=i,e[10]=c,e[11]=o):o=e[11];let a;e[12]!==r?(a=l.jsx("div",{className:"flex-1 overflow-auto",children:r}),e[12]=r,e[13]=a):a=e[13];let m;e[14]!==o||e[15]!==a?(m=l.jsxs("div",{className:"flex flex-col h-full bg-background",children:[o,a]}),e[14]=o,e[15]=a,e[16]=m):m=e[16];let b;return e[17]!==n||e[18]!==m?(b=l.jsx(j,{value:n,children:m}),e[17]=n,e[18]=m,e[19]=b):b=e[19],b}export{_ as V,S as a,B as b};