@undefineds.co/xpod 0.4.11 → 0.4.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/components-ignore.json +5 -1
- package/config/notifications.json +68 -0
- package/config/xpod.base.json +9 -11
- package/dist/ai/service/AiCredentialSecret.d.ts +30 -0
- package/dist/ai/service/AiCredentialSecret.js +120 -0
- package/dist/ai/service/CredentialReaderImpl.d.ts +18 -0
- package/dist/ai/service/CredentialReaderImpl.js +81 -5
- package/dist/ai/service/CredentialReaderImpl.jsonld +42 -2
- package/dist/ai/service/EmbeddingModelPolicy.d.ts +79 -0
- package/dist/ai/service/EmbeddingModelPolicy.js +134 -0
- package/dist/ai/service/EmbeddingProviderError.js +6 -0
- package/dist/ai/service/EmbeddingServiceImpl.d.ts +13 -1
- package/dist/ai/service/EmbeddingServiceImpl.js +18 -5
- package/dist/ai/service/EmbeddingServiceImpl.jsonld +35 -0
- package/dist/ai/service/index.d.ts +2 -0
- package/dist/ai/service/index.js +2 -0
- package/dist/api/ai-gateway/connect/index.d.ts +20 -2
- package/dist/api/ai-gateway/connect/index.js +162 -16
- package/dist/api/ai-gateway/credentials/AiCredentialSecretDecoder.d.ts +12 -0
- package/dist/api/ai-gateway/credentials/AiCredentialSecretDecoder.js +30 -0
- package/dist/api/ai-gateway/errors.d.ts +1 -1
- package/dist/api/ai-gateway/models/GatewayEmbeddingModelCatalog.d.ts +11 -0
- package/dist/api/ai-gateway/models/GatewayEmbeddingModelCatalog.js +31 -0
- package/dist/api/ai-gateway/models/PodModelSelectionRepository.js +7 -3
- package/dist/api/ai-gateway/models/ProviderCustomModelsService.d.ts +18 -0
- package/dist/api/ai-gateway/models/ProviderCustomModelsService.js +23 -0
- package/dist/api/ai-gateway/models/ProviderModelDiscoveryAdapters.d.ts +3 -1
- package/dist/api/ai-gateway/models/ProviderModelDiscoveryAdapters.js +2 -45
- package/dist/api/ai-gateway/models/ProviderModelSelectionService.d.ts +10 -0
- package/dist/api/ai-gateway/models/ProviderModelSelectionService.js +57 -20
- package/dist/api/ai-gateway/models/ProviderModelType.d.ts +28 -0
- package/dist/api/ai-gateway/models/ProviderModelType.js +34 -0
- package/dist/api/ai-gateway/models/ProviderModelsAdapter.d.ts +10 -0
- package/dist/api/ai-gateway/models/ProviderModelsAdapter.js +3 -4
- package/dist/api/ai-gateway/models/index.d.ts +1 -0
- package/dist/api/ai-gateway/models/index.js +3 -1
- package/dist/api/ai-gateway/providers/CustomRuntimeAdapter.d.ts +7 -0
- package/dist/api/ai-gateway/providers/CustomRuntimeAdapter.js +9 -2
- package/dist/api/ai-gateway/providers/ModelsDevCatalog.d.ts +7 -1
- package/dist/api/ai-gateway/providers/ModelsDevCatalog.js +4 -10
- package/dist/api/ai-gateway/providers/ProviderRegistry.d.ts +107 -0
- package/dist/api/ai-gateway/providers/ProviderRegistry.js +244 -21
- package/dist/api/ai-gateway/providers/ProviderRuntimeRegistry.d.ts +5 -0
- package/dist/api/ai-gateway/providers/ProviderRuntimeRegistry.js +5 -1
- package/dist/api/ai-gateway/quota/SubscriptionQuotaAdapters.d.ts +12 -4
- package/dist/api/ai-gateway/quota/SubscriptionQuotaAdapters.js +11 -11
- package/dist/api/ai-gateway/routing/ModelRouter.d.ts +14 -0
- package/dist/api/ai-gateway/routing/ModelRouter.js +43 -4
- package/dist/api/ai-gateway/service-access/AiConnectionsServiceAccess.d.ts +9 -1
- package/dist/api/ai-gateway/service-access/AiConnectionsServiceAccess.js +3 -27
- package/dist/api/chatkit/pod-store.d.ts +31 -0
- package/dist/api/chatkit/pod-store.js +132 -8
- package/dist/api/container/common.js +24 -4
- package/dist/api/container/routes.js +17 -2
- package/dist/api/container/types.d.ts +3 -1
- package/dist/api/handlers/AdminHandler.d.ts +13 -0
- package/dist/api/handlers/AdminHandler.js +47 -18
- package/dist/api/handlers/AiConfigHandler.d.ts +6 -0
- package/dist/api/handlers/AiConfigHandler.js +28 -0
- package/dist/api/handlers/AiGatewayManagementHandler.js +36 -0
- package/dist/api/runs/RdfRunContextRetriever.d.ts +14 -0
- package/dist/api/runs/RdfRunContextRetriever.js +41 -5
- package/dist/api/runtime.js +2 -1
- package/dist/cli/commands/secret.d.ts +1 -0
- package/dist/cli/commands/secret.js +25 -7
- package/dist/components/components.jsonld +3 -1
- package/dist/components/context.jsonld +53 -1
- package/dist/http/SubgraphSparqlHttpHandler.d.ts +59 -2
- package/dist/http/SubgraphSparqlHttpHandler.js +145 -13
- package/dist/http/SubgraphSparqlHttpHandler.jsonld +37 -0
- package/dist/identity/drizzle/EdgeNodeRepository.d.ts +0 -12
- package/dist/identity/drizzle/EdgeNodeRepository.js +5 -13
- package/dist/index.d.ts +2 -1
- package/dist/index.js +7 -3
- package/dist/logging/log-file.d.ts +17 -0
- package/dist/logging/log-file.js +69 -0
- package/dist/main.js +2 -1
- package/dist/notifications/NotificationChannelSweeper.d.ts +50 -0
- package/dist/notifications/NotificationChannelSweeper.js +131 -0
- package/dist/notifications/NotificationChannelSweeper.jsonld +136 -0
- package/dist/notifications/ReclaimingWebSocket2023Storer.d.ts +25 -0
- package/dist/notifications/ReclaimingWebSocket2023Storer.js +56 -0
- package/dist/notifications/ReclaimingWebSocket2023Storer.jsonld +77 -0
- package/dist/notifications/index.d.ts +2 -0
- package/dist/notifications/index.js +2 -0
- package/dist/runtime/Proxy.d.ts +37 -0
- package/dist/runtime/Proxy.js +88 -16
- package/dist/runtime/bootstrap.js +2 -1
- package/dist/runtime/upgrade/BunNativeUpgradeRelay.d.ts +116 -0
- package/dist/runtime/upgrade/BunNativeUpgradeRelay.js +423 -0
- package/dist/runtime/upgrade/UpgradeHandshake.d.ts +63 -0
- package/dist/runtime/upgrade/UpgradeHandshake.js +199 -0
- package/dist/runtime/upgrade/WebSocketFrames.d.ts +67 -0
- package/dist/runtime/upgrade/WebSocketFrames.js +224 -0
- package/node_modules/@undefineds.co/ai-connections/dist/AiApiKeyPool.js +8 -1
- package/node_modules/@undefineds.co/ai-connections/dist/AiAuthorizationActions.d.ts +11 -2
- package/node_modules/@undefineds.co/ai-connections/dist/AiAuthorizationActions.js +27 -10
- package/node_modules/@undefineds.co/ai-connections/dist/AiClientConfigurationSection.d.ts +7 -0
- package/node_modules/@undefineds.co/ai-connections/dist/AiClientConfigurationSection.js +13 -11
- package/node_modules/@undefineds.co/ai-connections/dist/AiConnectDialog.js +1 -1
- package/node_modules/@undefineds.co/ai-connections/dist/AiConnectionsList.js +10 -6
- package/node_modules/@undefineds.co/ai-connections/dist/AiConnectionsMain.d.ts +15 -0
- package/node_modules/@undefineds.co/ai-connections/dist/AiConnectionsMain.js +29 -3
- package/node_modules/@undefineds.co/ai-connections/dist/AiConnectionsMainHeader.js +18 -3
- package/node_modules/@undefineds.co/ai-connections/dist/AiConnectionsPanel.d.ts +16 -1
- package/node_modules/@undefineds.co/ai-connections/dist/AiConnectionsPanel.js +92 -20
- package/node_modules/@undefineds.co/ai-connections/dist/AiCopyButton.d.ts +35 -0
- package/node_modules/@undefineds.co/ai-connections/dist/AiCopyButton.js +45 -0
- package/node_modules/@undefineds.co/ai-connections/dist/AiCredentialPoolSection.js +71 -11
- package/node_modules/@undefineds.co/ai-connections/dist/AiCredentialRow.js +9 -7
- package/node_modules/@undefineds.co/ai-connections/dist/AiEndpointList.d.ts +23 -0
- package/node_modules/@undefineds.co/ai-connections/dist/AiEndpointList.js +24 -0
- package/node_modules/@undefineds.co/ai-connections/dist/AiGatewayKeysSection.d.ts +13 -4
- package/node_modules/@undefineds.co/ai-connections/dist/AiGatewayKeysSection.js +35 -38
- package/node_modules/@undefineds.co/ai-connections/dist/AiGatewayModelsSection.d.ts +21 -0
- package/node_modules/@undefineds.co/ai-connections/dist/AiGatewayModelsSection.js +51 -0
- package/node_modules/@undefineds.co/ai-connections/dist/AiInfoTooltip.d.ts +15 -0
- package/node_modules/@undefineds.co/ai-connections/dist/AiInfoTooltip.js +16 -0
- package/node_modules/@undefineds.co/ai-connections/dist/AiModelCatalog.d.ts +175 -0
- package/node_modules/@undefineds.co/ai-connections/dist/AiModelCatalog.js +133 -0
- package/node_modules/@undefineds.co/ai-connections/dist/AiOfferingDetails.js +2 -2
- package/node_modules/@undefineds.co/ai-connections/dist/AiProviderCard.js +13 -64
- package/node_modules/@undefineds.co/ai-connections/dist/AiProviderHeader.d.ts +21 -0
- package/node_modules/@undefineds.co/ai-connections/dist/AiProviderHeader.js +12 -0
- package/node_modules/@undefineds.co/ai-connections/dist/AiRowAction.d.ts +15 -0
- package/node_modules/@undefineds.co/ai-connections/dist/AiRowAction.js +12 -0
- package/node_modules/@undefineds.co/ai-connections/dist/AiSortableCredentialList.js +2 -1
- package/node_modules/@undefineds.co/ai-connections/dist/ai-connections-client.d.ts +7 -0
- package/node_modules/@undefineds.co/ai-connections/dist/ai-connections-client.js +6 -0
- package/node_modules/@undefineds.co/ai-connections/dist/authorization-methods.d.ts +36 -5
- package/node_modules/@undefineds.co/ai-connections/dist/authorization-methods.js +52 -9
- package/node_modules/@undefineds.co/ai-connections/dist/client/normalize.js +30 -3
- package/node_modules/@undefineds.co/ai-connections/dist/client/types.d.ts +21 -1
- package/node_modules/@undefineds.co/ai-connections/dist/client-config/base-adapter.d.ts +1 -3
- package/node_modules/@undefineds.co/ai-connections/dist/client-config/base-adapter.js +3 -7
- package/node_modules/@undefineds.co/ai-connections/dist/client-config/index.cjs +9 -7
- package/node_modules/@undefineds.co/ai-connections/dist/collection-runtime.d.ts +46 -0
- package/node_modules/@undefineds.co/ai-connections/dist/collection-runtime.js +231 -0
- package/node_modules/@undefineds.co/ai-connections/dist/collections.d.ts +119 -0
- package/node_modules/@undefineds.co/ai-connections/dist/collections.js +173 -0
- package/node_modules/@undefineds.co/ai-connections/dist/controller.d.ts +71 -5
- package/node_modules/@undefineds.co/ai-connections/dist/controller.js +285 -16
- package/node_modules/@undefineds.co/ai-connections/dist/credential-labels.d.ts +5 -0
- package/node_modules/@undefineds.co/ai-connections/dist/credential-labels.js +8 -3
- package/node_modules/@undefineds.co/ai-connections/dist/credential-storage.d.ts +59 -0
- package/node_modules/@undefineds.co/ai-connections/dist/credential-storage.js +131 -0
- package/node_modules/@undefineds.co/ai-connections/dist/endpoint-urls.d.ts +15 -0
- package/node_modules/@undefineds.co/ai-connections/dist/endpoint-urls.js +20 -0
- package/node_modules/@undefineds.co/ai-connections/dist/gateway-endpoints.d.ts +14 -0
- package/node_modules/@undefineds.co/ai-connections/dist/gateway-endpoints.js +20 -0
- package/node_modules/@undefineds.co/ai-connections/dist/index.d.ts +8 -0
- package/node_modules/@undefineds.co/ai-connections/dist/index.js +8 -0
- package/node_modules/@undefineds.co/ai-connections/dist/manifest.js +1 -1
- package/node_modules/@undefineds.co/ai-connections/dist/offering-endpoints.d.ts +14 -0
- package/node_modules/@undefineds.co/ai-connections/dist/offering-endpoints.js +17 -0
- package/node_modules/@undefineds.co/ai-connections/dist/provider-catalog.cjs +68 -1
- package/node_modules/@undefineds.co/ai-connections/dist/provider-catalog.d.ts +75 -1
- package/node_modules/@undefineds.co/ai-connections/dist/provider-catalog.js +119 -0
- package/node_modules/@undefineds.co/ai-connections/dist/provider-visuals.d.ts +5 -0
- package/node_modules/@undefineds.co/ai-connections/dist/provider-visuals.js +5 -0
- package/node_modules/@undefineds.co/ai-connections/dist/service-access.js +2 -27
- package/node_modules/@undefineds.co/ai-connections/package.json +1 -0
- package/node_modules/@undefineds.co/extension-sdk/dist/manifest.d.ts +1 -1
- package/node_modules/@undefineds.co/extension-sdk/dist/manifest.js +2 -0
- package/node_modules/@undefineds.co/extension-sdk/dist/web.d.ts +150 -0
- package/node_modules/@undefineds.co/extension-sdk/package.json +2 -1
- package/node_modules/@undefineds.co/models/README.md +1 -1
- package/node_modules/@undefineds.co/models/dist/ai-config/index.d.ts +3 -3
- package/node_modules/@undefineds.co/models/dist/ai-gateway.schema.d.ts +5 -0
- package/node_modules/@undefineds.co/models/dist/ai-gateway.schema.js +9 -0
- package/node_modules/@undefineds.co/models/dist/ai-runtime.repository.d.ts +1 -1
- package/node_modules/@undefineds.co/models/dist/approval.repository.d.ts +2 -2
- package/node_modules/@undefineds.co/models/dist/audit.presentation.d.ts +2 -2
- package/node_modules/@undefineds.co/models/dist/capture.repository.d.ts +1 -1
- package/node_modules/@undefineds.co/models/dist/chat-project.repository.d.ts +1 -1
- package/node_modules/@undefineds.co/models/dist/chat.repository.d.ts +2 -2
- package/node_modules/@undefineds.co/models/dist/control-request.repository.d.ts +2 -2
- package/node_modules/@undefineds.co/models/dist/conversation-share.repository.d.ts +1 -1
- package/node_modules/@undefineds.co/models/dist/credential.schema.d.ts +12 -0
- package/node_modules/@undefineds.co/models/dist/credential.schema.js +15 -1
- package/node_modules/@undefineds.co/models/dist/discovery/index.d.ts +2 -2
- package/node_modules/@undefineds.co/models/dist/discovery/providers.json +248 -7
- package/node_modules/@undefineds.co/models/dist/discovery/types.d.ts +31 -0
- package/node_modules/@undefineds.co/models/dist/extension/index.d.ts +1 -1
- package/node_modules/@undefineds.co/models/dist/favorite/index.d.ts +2 -2
- package/node_modules/@undefineds.co/models/dist/fixtures/contracts-chat-contact.d.ts +5 -5
- package/node_modules/@undefineds.co/models/dist/import/index.d.ts +1 -1
- package/node_modules/@undefineds.co/models/dist/index.d.ts +73 -73
- package/node_modules/@undefineds.co/models/dist/index.js +1 -1
- package/node_modules/@undefineds.co/models/dist/input-request.repository.d.ts +2 -2
- package/node_modules/@undefineds.co/models/dist/knowledge/index.d.ts +1 -1
- package/node_modules/@undefineds.co/models/dist/message.repository.d.ts +1 -1
- package/node_modules/@undefineds.co/models/dist/namespaces.js +5 -0
- package/node_modules/@undefineds.co/models/dist/pod-storage-descriptor.d.ts +4815 -26
- package/node_modules/@undefineds.co/models/dist/pod-storage-descriptor.js +482 -132
- package/node_modules/@undefineds.co/models/dist/schema.d.ts +4 -0
- package/node_modules/@undefineds.co/models/dist/session/index.d.ts +1 -1
- package/node_modules/@undefineds.co/models/dist/settings/index.d.ts +1 -1
- package/node_modules/@undefineds.co/models/dist/sidecar/persistence-mapping.d.ts +5 -5
- package/node_modules/@undefineds.co/models/dist/thread.repository.d.ts +2 -2
- package/node_modules/@undefineds.co/models/dist/types/message-block.d.ts +1 -1
- package/node_modules/@undefineds.co/models/dist/vocab/_namespaces.d.ts +1 -1
- package/node_modules/@undefineds.co/models/dist/vocab/index.d.ts +10 -10
- package/node_modules/@undefineds.co/models/dist/vocab/sidecar.vocab.d.ts +1 -0
- package/node_modules/@undefineds.co/models/dist/vocab/sidecar.vocab.js +1 -0
- package/node_modules/@undefineds.co/models/package.json +4 -2
- package/node_modules/@undefineds.co/pod-collections/README.md +71 -0
- package/node_modules/@undefineds.co/pod-collections/dist/diff.d.ts +85 -0
- package/node_modules/@undefineds.co/pod-collections/dist/diff.js +166 -0
- package/node_modules/@undefineds.co/pod-collections/dist/feed.d.ts +17 -0
- package/node_modules/@undefineds.co/pod-collections/dist/feed.js +27 -0
- package/node_modules/@undefineds.co/pod-collections/dist/index.cjs +1042 -0
- package/node_modules/@undefineds.co/pod-collections/dist/index.d.ts +37 -0
- package/node_modules/@undefineds.co/pod-collections/dist/index.js +89 -0
- package/node_modules/@undefineds.co/pod-collections/dist/layout.d.ts +75 -0
- package/node_modules/@undefineds.co/pod-collections/dist/layout.js +173 -0
- package/node_modules/@undefineds.co/pod-collections/dist/mapping.d.ts +78 -0
- package/node_modules/@undefineds.co/pod-collections/dist/mapping.js +287 -0
- package/node_modules/@undefineds.co/pod-collections/dist/mutations.d.ts +83 -0
- package/node_modules/@undefineds.co/pod-collections/dist/mutations.js +273 -0
- package/node_modules/@undefineds.co/pod-collections/dist/react.d.ts +21 -0
- package/node_modules/@undefineds.co/pod-collections/dist/react.js +22 -0
- package/node_modules/@undefineds.co/pod-collections/dist/read.d.ts +65 -0
- package/node_modules/@undefineds.co/pod-collections/dist/read.js +31 -0
- package/node_modules/@undefineds.co/pod-collections/dist/sync.d.ts +66 -0
- package/node_modules/@undefineds.co/pod-collections/dist/sync.js +260 -0
- package/node_modules/@undefineds.co/pod-collections/dist/types.d.ts +155 -0
- package/node_modules/@undefineds.co/pod-collections/dist/types.js +9 -0
- package/node_modules/@undefineds.co/pod-collections/package.json +42 -0
- package/package.json +15 -7
- package/static/app/assets/main.css +1 -1
- package/static/auth-callback/assets/AiConfigContext-DnQs1ZpW.js +1 -0
- package/static/auth-callback/assets/AiConfigPage-DOtvlxH0.js +1 -0
- package/static/auth-callback/assets/DocumentProcessingPanel-BS2voQgL.js +1 -0
- package/static/auth-callback/assets/IndexLifecyclePanel-Cvt0cJtN.js +1 -0
- package/static/auth-callback/assets/{IndexSubjectPanel-BbUqop4b.js → IndexSubjectPanel-Dhf01GqF.js} +1 -1
- package/static/auth-callback/assets/ModelAssignmentsPanel-BJutWaAF.js +1 -0
- package/static/auth-callback/assets/ModelsPage-BRS0sje3.js +11 -0
- package/static/auth-callback/assets/{NetworkPage-Vp2PrMxs.js → NetworkPage-B3qBfANA.js} +2 -2
- package/static/auth-callback/assets/{PaneListHeader-DY7baSFl.js → PaneListHeader-QQeJGTp4.js} +1 -1
- package/static/auth-callback/assets/SearchIndexingPanel-MyNUSEwT.js +1 -0
- package/static/auth-callback/assets/{StatusSubjectPanel-ArIS-TxT.js → StatusSubjectPanel-DQkEVsFs.js} +1 -1
- package/static/{settings/assets/StatusWorkspace-CoMFRXoV.js → auth-callback/assets/StatusWorkspace-Dkv63Uwk.js} +1 -1
- package/static/auth-callback/assets/{SystemSettingsPage-BDvT1NUz.js → SystemSettingsPage-TIsUfX5d.js} +1 -1
- package/static/{dashboard/assets/SystemSettingsSubjectPanel-WaE8mTQi.js → auth-callback/assets/SystemSettingsSubjectPanel-BJWEt2-7.js} +5 -5
- package/static/auth-callback/assets/XpodAiConnectionsPodStore-BJiXm-PF.js +3 -0
- package/static/auth-callback/assets/{activity-D1Dsfa_0.js → activity-5hNeNKnL.js} +1 -1
- package/static/auth-callback/assets/ai-connections-CryuHGKW.js +1 -0
- package/static/auth-callback/assets/{auth-callback-Cmf4hXVZ.js → auth-callback-CAFZ3R0B.js} +6 -6
- package/static/auth-callback/assets/auth-callback-rk080mvG.css +1 -0
- package/static/auth-callback/assets/{badge-CZsHq3Ih.js → badge-CAIPI0CB.js} +1 -1
- package/static/auth-callback/assets/collection-runtime-D9s7h9YA.js +1 -0
- package/static/auth-callback/assets/dialog-BjA109aX.js +1 -0
- package/static/auth-callback/assets/{download-DU9ntlHw.js → download-B3Up5W2G.js} +1 -1
- package/static/auth-callback/assets/{external-link-BfzaaZDx.js → external-link-BTXgSPzB.js} +1 -1
- package/static/auth-callback/assets/index-BppXlxcp.js +41 -0
- package/static/auth-callback/assets/index-CirW4CJf.js +1 -0
- package/static/auth-callback/assets/index-DlLYWOhw.js +4 -0
- package/static/auth-callback/assets/{index-browser-BNFqqC74.js → index-browser-DtU38ni3.js} +1 -1
- package/static/auth-callback/assets/{key-round-BwP3DBWo.js → key-round-CQCOrZ7x.js} +1 -1
- package/static/auth-callback/assets/layout-DB3pMyTl.js +1 -0
- package/static/auth-callback/assets/pod-collections-host-KnnGFZHL.js +8 -0
- package/static/auth-callback/assets/{rotate-ccw-VMwnmyab.js → rotate-ccw-C1zM2KtS.js} +1 -1
- package/static/auth-callback/assets/{skeleton-CoD55rBT.js → skeleton-Cqp7_M9-.js} +1 -1
- package/static/auth-callback/assets/{waypoints-DRo_1Ca7.js → waypoints-Bj6gAUSQ.js} +1 -1
- package/static/auth-callback/assets/{workspace-layout--mcXl3My.js → workspace-layout-DK8mDzrY.js} +1 -1
- package/static/auth-callback/auth-callback.html +2 -2
- package/static/dashboard/assets/AiConfigContext-BsE7MqX8.js +1 -0
- package/static/dashboard/assets/AiConfigPage-DvM-lRXa.js +1 -0
- package/static/dashboard/assets/DocumentProcessingPanel-BPfdlfuf.js +1 -0
- package/static/dashboard/assets/IndexLifecyclePanel--m0AGxvh.js +1 -0
- package/static/dashboard/assets/{IndexSubjectPanel-B2cXwl8X.js → IndexSubjectPanel-Bb7m1k3d.js} +1 -1
- package/static/dashboard/assets/ModelAssignmentsPanel-BLi_zbMa.js +1 -0
- package/static/dashboard/assets/ModelsPage-CxdpgnfR.js +11 -0
- package/static/dashboard/assets/{NetworkPage-DV2V0qWO.js → NetworkPage-BAIPw-D_.js} +2 -2
- package/static/dashboard/assets/{PaneListHeader-D0c1yCFH.js → PaneListHeader-BBCMei0r.js} +1 -1
- package/static/dashboard/assets/SearchIndexingPanel-Ck4Y-xjR.js +1 -0
- package/static/dashboard/assets/{StatusSubjectPanel-oPSECj7i.js → StatusSubjectPanel-D1KWfAXE.js} +1 -1
- package/static/dashboard/assets/{StatusWorkspace-PdovQPKa.js → StatusWorkspace-JbA5gzXx.js} +1 -1
- package/static/dashboard/assets/{SystemSettingsPage-CtNDklkx.js → SystemSettingsPage-BbwQWsSR.js} +1 -1
- package/static/{settings/assets/SystemSettingsSubjectPanel-DExjDo_v.js → dashboard/assets/SystemSettingsSubjectPanel-N117nMt5.js} +5 -5
- package/static/dashboard/assets/XpodAiConnectionsPodStore-CdDOb4SV.js +18 -0
- package/static/dashboard/assets/{activity-B9ylSoyr.js → activity-DX1I96o_.js} +1 -1
- package/static/dashboard/assets/ai-connections-DwCRqOQa.js +1 -0
- package/static/dashboard/assets/{badge-BNbFbpIb.js → badge-k2vhtDqH.js} +1 -1
- package/static/dashboard/assets/collection-runtime-BFQ8teQJ.js +1 -0
- package/static/dashboard/assets/{dashboard-CD-FFVRD.js → dashboard-DWZ-fmCT.js} +4 -4
- package/static/dashboard/assets/dashboard-rk080mvG.css +1 -0
- package/static/dashboard/assets/dialog-1CCw-iHT.js +1 -0
- package/static/dashboard/assets/{download-nOP38LtW.js → download-C6-SNY1q.js} +1 -1
- package/static/dashboard/assets/{external-link-Bh2ewN9E.js → external-link-BgPcZ_j2.js} +1 -1
- package/static/dashboard/assets/index-6LcIUIYO.js +1 -0
- package/static/dashboard/assets/index-D7A8U6Pt.js +41 -0
- package/static/dashboard/assets/index-UD6QOE7H.js +4 -0
- package/static/dashboard/assets/{key-round-bGmguBLv.js → key-round-BOd7Jo0Q.js} +1 -1
- package/static/dashboard/assets/layout-DB3pMyTl.js +1 -0
- package/static/dashboard/assets/pod-collections-host-KnnGFZHL.js +8 -0
- package/static/dashboard/assets/{rotate-ccw-D2x__ODW.js → rotate-ccw-CCgJqsvx.js} +1 -1
- package/static/dashboard/assets/{skeleton-VOqft8WS.js → skeleton-Bc7abAn5.js} +1 -1
- package/static/dashboard/assets/{waypoints-fgRqm4oH.js → waypoints-s-opmJxx.js} +1 -1
- package/static/dashboard/assets/{workspace-layout-DV4dgeHX.js → workspace-layout-DqIQeTBV.js} +1 -1
- package/static/dashboard/dashboard.html +2 -2
- package/static/settings/assets/AiConfigContext-BB9KZySa.js +1 -0
- package/static/settings/assets/AiConfigPage-DGSXUkLs.js +1 -0
- package/static/settings/assets/DocumentProcessingPanel-Da2Re6Rg.js +1 -0
- package/static/settings/assets/IndexLifecyclePanel-BSZuIzgr.js +1 -0
- package/static/settings/assets/{IndexSubjectPanel-BgbI9c-a.js → IndexSubjectPanel-CFd0ay-r.js} +1 -1
- package/static/settings/assets/ModelAssignmentsPanel-CSAryvWJ.js +1 -0
- package/static/settings/assets/ModelsPage-BQwCwLHU.js +11 -0
- package/static/settings/assets/{NetworkPage-C8OA9Mtp.js → NetworkPage-BKymvsQc.js} +2 -2
- package/static/settings/assets/{PaneListHeader-COvlPJWj.js → PaneListHeader-Bjh3hRdQ.js} +1 -1
- package/static/settings/assets/SearchIndexingPanel-MjKL5QLU.js +1 -0
- package/static/settings/assets/{StatusSubjectPanel-BuLml7qn.js → StatusSubjectPanel-Bvl6K4mx.js} +1 -1
- package/static/settings/assets/StatusWorkspace-B0NzrP--.js +1 -0
- package/static/settings/assets/{SystemSettingsPage-DlzmaWV-.js → SystemSettingsPage-D2z6Z4FE.js} +1 -1
- package/static/{auth-callback/assets/SystemSettingsSubjectPanel-CDqRuC4t.js → settings/assets/SystemSettingsSubjectPanel-4sxma4X4.js} +5 -5
- package/static/settings/assets/XpodAiConnectionsPodStore-BkNQ8fZx.js +3 -0
- package/static/settings/assets/{activity-TLerXgMs.js → activity-CgJJGpjx.js} +1 -1
- package/static/settings/assets/ai-connections-CryuHGKW.js +1 -0
- package/static/settings/assets/{badge-Bcs8iWrH.js → badge-C4NypVyT.js} +1 -1
- package/static/settings/assets/collection-runtime-CTLCDxAi.js +1 -0
- package/static/settings/assets/dialog-Csq0vWUi.js +1 -0
- package/static/settings/assets/{download-Ct3QmHPt.js → download-DaLJJ-Wp.js} +1 -1
- package/static/settings/assets/{external-link-C8KiHbss.js → external-link--w_iW5Au.js} +1 -1
- package/static/settings/assets/index-B0mQa59b.js +4 -0
- package/static/settings/assets/index-BukHiu4y.js +1 -0
- package/static/settings/assets/index-COmVnZi2.js +41 -0
- package/static/settings/assets/{index-browser-CazX1pc2.js → index-browser-BGpvHwD0.js} +1 -1
- package/static/settings/assets/{key-round-B19YD1GA.js → key-round-Bk4YRjBu.js} +1 -1
- package/static/settings/assets/layout-DB3pMyTl.js +1 -0
- package/static/settings/assets/pod-collections-host-KnnGFZHL.js +8 -0
- package/static/settings/assets/{rotate-ccw-AQm2kMgU.js → rotate-ccw-TCabbqsr.js} +1 -1
- package/static/settings/assets/{settings-C-VBtt9r.js → settings-CJWpdbNC.js} +5 -5
- package/static/settings/assets/settings-rk080mvG.css +1 -0
- package/static/settings/assets/{skeleton-DyZ1OBYf.js → skeleton-JDHYVe7t.js} +1 -1
- package/static/settings/assets/{waypoints-CC3wq-SU.js → waypoints-DDvEl-MU.js} +1 -1
- package/static/settings/assets/{workspace-layout-BxXNKgf9.js → workspace-layout-DV5QU30U.js} +1 -1
- package/static/settings/settings.html +2 -2
- package/static/auth-callback/assets/AiConfigContext-DqWRSm7n.js +0 -1
- package/static/auth-callback/assets/AiConfigPage-C5YYyvzl.js +0 -1
- package/static/auth-callback/assets/DocumentProcessingPanel-DZCiacBz.js +0 -1
- package/static/auth-callback/assets/IndexLifecyclePanel-CCLeOljB.js +0 -1
- package/static/auth-callback/assets/ModelAssignmentsPanel-jUUTDKuh.js +0 -1
- package/static/auth-callback/assets/ModelsPage-B08zdtff.js +0 -10
- package/static/auth-callback/assets/SearchIndexingPanel-D4YRg1-8.js +0 -1
- package/static/auth-callback/assets/StatusWorkspace-Cp5LQ9Yx.js +0 -1
- package/static/auth-callback/assets/ai-connections-CHNTKemd.js +0 -1
- package/static/auth-callback/assets/auth-callback-DWMMiFjh.css +0 -1
- package/static/auth-callback/assets/index-DSNnLUbU.js +0 -4
- package/static/auth-callback/assets/index-FHhHoKgp.js +0 -41
- package/static/dashboard/assets/AiConfigContext-BpPDKSzI.js +0 -1
- package/static/dashboard/assets/AiConfigPage-wsqEZDIX.js +0 -1
- package/static/dashboard/assets/DocumentProcessingPanel-CDSy3juc.js +0 -1
- package/static/dashboard/assets/IndexLifecyclePanel-CVd6vQCX.js +0 -1
- package/static/dashboard/assets/ModelAssignmentsPanel-BeBZhnQd.js +0 -1
- package/static/dashboard/assets/ModelsPage-B6McSCJw.js +0 -25
- package/static/dashboard/assets/SearchIndexingPanel-CGs0OZ12.js +0 -1
- package/static/dashboard/assets/ai-connections-CHNTKemd.js +0 -1
- package/static/dashboard/assets/dashboard-DWMMiFjh.css +0 -1
- package/static/dashboard/assets/index-PgS-Bt7X.js +0 -41
- package/static/dashboard/assets/index-QN2QgEwr.js +0 -4
- package/static/settings/assets/AiConfigContext-zKQYdfai.js +0 -1
- package/static/settings/assets/AiConfigPage-Bs1EE3Ei.js +0 -1
- package/static/settings/assets/DocumentProcessingPanel-CSFfdOXS.js +0 -1
- package/static/settings/assets/IndexLifecyclePanel-BR9Su49B.js +0 -1
- package/static/settings/assets/ModelAssignmentsPanel-C0BE7nbk.js +0 -1
- package/static/settings/assets/ModelsPage-CU-YQ8_7.js +0 -10
- package/static/settings/assets/SearchIndexingPanel-Bdd46mIV.js +0 -1
- package/static/settings/assets/ai-connections-CHNTKemd.js +0 -1
- package/static/settings/assets/index-1Q2cRjZd.js +0 -41
- package/static/settings/assets/index-DBO_Vq0P.js +0 -4
- package/static/settings/assets/settings-DWMMiFjh.css +0 -1
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import{r as f,J as V,K as ke,L as Ie,M as me,j as Y,P as he,Q as Yn,T as zt,U as Kn}from"./auth-callback-Cmf4hXVZ.js";var Gn=Object.defineProperty,ve=(e,t)=>Gn(e,"name",{value:t,configurable:!0}),Xt=!!(typeof window<"u"&&window.document&&window.document.createElement);function Ae(e,t,{checkForDefaultPrevented:n=!0}={}){return ve(function(o){if(e?.(o),n===!1||!o||!o.defaultPrevented)return t?.(o)},"handleEvent")}ve(Ae,"composeEventHandlers");function Zn(e){if(!Xt)throw new Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window}ve(Zn,"getOwnerWindow");function tt(e){if(!Xt)throw new Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}ve(tt,"getOwnerDocument");function Yt(e,t=!1){const{activeElement:n}=tt(e);if(!n?.nodeName)return null;if(Kt(n)&&n.contentDocument)return Yt(n.contentDocument.body,t);if(t){const r=n.getAttribute("aria-activedescendant");if(r){const o=tt(n).getElementById(r);if(o)return o}}return n}ve(Yt,"getActiveElement");function Kt(e){return e.tagName==="IFRAME"}ve(Kt,"isFrame");var qn=Object.defineProperty,Qn=(e,t)=>qn(e,"name",{value:t,configurable:!0}),Jn=ke[" useId ".trim().toString()]||(()=>{}),er=0;function tr(e){const[t,n]=f.useState(Jn());return V(()=>{e||n(r=>r??String(er++))},[e]),e||(t?`radix-${t}`:"")}Qn(tr,"useId");var nr=Object.defineProperty,rr=(e,t)=>nr(e,"name",{value:t,configurable:!0}),Ct=ke[" useEffectEvent ".trim().toString()],Rt=ke[" useInsertionEffect ".trim().toString()];function Gt(e){if(typeof Ct=="function")return Ct(e);const t=f.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof Rt=="function"?Rt(()=>{t.current=e}):V(()=>{t.current=e}),f.useMemo(()=>((...n)=>t.current?.(...n)),[])}rr(Gt,"useEffectEvent");var or=Object.defineProperty,be=(e,t)=>or(e,"name",{value:t,configurable:!0}),ir=ke[" useInsertionEffect ".trim().toString()]||V;function sr({prop:e,defaultProp:t,onChange:n=be(()=>{},"onChange"),caller:r}){const[o,i,s]=Zt({defaultProp:t,onChange:n}),c=e!==void 0,l=c?e:o,u=f.useCallback(m=>{if(c){const a=qt(m)?m(e):m;a!==e&&s.current?.(a)}else i(m)},[c,e,i,s]);return[l,u]}be(sr,"useControllableState");function Zt({defaultProp:e,onChange:t}){const[n,r]=f.useState(e),o=f.useRef(n),i=f.useRef(t);return ir(()=>{i.current=t},[t]),f.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}be(Zt,"useUncontrolledState");function qt(e){return typeof e=="function"}be(qt,"isFunction");var Pt=Symbol("RADIX:SYNC_STATE");function cr(e,t,n,r){const{prop:o,defaultProp:i,onChange:s,caller:c}=t,l=o!==void 0,u=Gt(s),m=[{...n,state:i}];r&&m.push(r);const[a,d]=f.useReducer((g,w)=>{if(w.type===Pt)return{...g,state:w.state};const y=e(g,w);return l&&!Object.is(y.state,g.state)&&u(y.state),y},...m),p=a.state,h=f.useRef(p);f.useEffect(()=>{h.current!==p&&(h.current=p,l||u(p))},[p,h,l]);const v=f.useMemo(()=>o!==void 0?{...a,state:o}:a,[a,o]);return f.useEffect(()=>{l&&!Object.is(o,a.state)&&d({type:Pt,state:o})},[o,a.state,l]),[v,d]}be(cr,"useControllableStateReducer");var ar=Object.defineProperty,_=(e,t)=>ar(e,"name",{value:t,configurable:!0}),nt="dismissableLayer.update",lr="dismissableLayer.pointerDownOutside",ur="dismissableLayer.focusOutside",Ot,Qt=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Pi=f.forwardRef(_(function(t,n){const{disableOutsidePointerEvents:r=!1,deferPointerDownOutside:o=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:l,onDismiss:u,...m}=t,a=f.useContext(Qt),[d,p]=f.useState(null),h=d?.ownerDocument??globalThis?.document,[,v]=f.useState({}),g=Ie(n,p),w=Array.from(a.layers),[y]=[...a.layersWithOutsidePointerEventsDisabled].slice(-1),b=y?w.indexOf(y):-1,E=d?w.indexOf(d):-1,x=a.layersWithOutsidePointerEventsDisabled.size>0,S=E>=b,C=f.useRef(!1),A=Jt(R=>{s?.(R),l?.(R),R.defaultPrevented||u?.()},{ownerDocument:h,deferPointerDownOutside:o,isDeferredPointerDownOutsideRef:C,dismissableSurfaces:a.dismissableSurfaces,shouldHandlePointerDownOutside:f.useCallback(R=>{if(!(R instanceof Node))return!1;const T=[...a.branches].some(D=>D.contains(R));return S&&!T},[a.branches,S])}),L=en(R=>{if(o&&C.current)return;const T=R.target;[...a.branches].some(I=>I.contains(T))||(c?.(R),l?.(R),R.defaultPrevented||u?.())},h),O=d?E===w.length-1:!1,N=me(R=>{R.key==="Escape"&&(i?.(R),!R.defaultPrevented&&u&&(R.preventDefault(),u()))});return f.useEffect(()=>{if(O)return h.addEventListener("keydown",N,{capture:!0}),()=>h.removeEventListener("keydown",N,{capture:!0})},[h,O,N]),f.useEffect(()=>{if(d)return r&&(a.layersWithOutsidePointerEventsDisabled.size===0&&(Ot=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),a.layersWithOutsidePointerEventsDisabled.add(d)),a.layers.add(d),rt(),()=>{r&&(a.layersWithOutsidePointerEventsDisabled.delete(d),a.layersWithOutsidePointerEventsDisabled.size===0&&(h.body.style.pointerEvents=Ot))}},[d,h,r,a]),f.useEffect(()=>()=>{d&&(a.layers.delete(d),a.layersWithOutsidePointerEventsDisabled.delete(d),rt())},[d,a]),f.useEffect(()=>{const R=_(()=>v({}),"handleUpdate");return document.addEventListener(nt,R),()=>document.removeEventListener(nt,R)},[]),Y.jsx(he.div,{...m,ref:g,style:{pointerEvents:x?S?"auto":"none":void 0,...t.style},onFocusCapture:Ae(t.onFocusCapture,L.onFocusCapture),onBlurCapture:Ae(t.onBlurCapture,L.onBlurCapture),onPointerDownCapture:Ae(t.onPointerDownCapture,A.onPointerDownCapture)})},"DismissableLayer"));function fr(){const e=f.useContext(Qt),[t,n]=f.useState(null);return f.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}_(fr,"useDismissableLayerSurface");var dr=_(()=>!0,"IS_TRUE");function Jt(e,t){const{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:i,shouldHandlePointerDownOutside:s=dr}=t,c=me(e),l=f.useRef(!1),u=f.useRef(!1),m=f.useRef(new Map),a=f.useRef(()=>{});return f.useEffect(()=>{function d(){u.current=!1,o.current=!1,m.current.clear()}_(d,"resetOutsideInteraction");function p(){return Array.from(m.current.values()).some(Boolean)}_(p,"isOutsideInteractionIntercepted");function h(b){if(!u.current)return;const E=b.target;E instanceof Node&&[...i].some(S=>S.contains(E))||m.current.set(b.type,!0),b.type==="click"&&window.setTimeout(()=>{u.current&&a.current()},0)}_(h,"handleInteractionCapture");function v(b){u.current&&m.current.set(b.type,!1)}_(v,"handleInteractionBubble");const g=_(b=>{if(b.target&&!l.current){let E=function(){n.removeEventListener("click",a.current);const S=p();d(),S||ft(lr,c,x,{discrete:!0})};if(_(E,"handleAndDispatchPointerDownOutsideEvent"),!s(b.target)){n.removeEventListener("click",a.current),d(),l.current=!1;return}const x={originalEvent:b};u.current=!0,o.current=r&&b.button===0,m.current.clear(),!r||b.button!==0?E():(n.removeEventListener("click",a.current),a.current=E,n.addEventListener("click",a.current,{once:!0}))}else n.removeEventListener("click",a.current),d();l.current=!1},"handlePointerDown"),w=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const b of w)n.addEventListener(b,h,!0),n.addEventListener(b,v);const y=window.setTimeout(()=>{n.addEventListener("pointerdown",g)},0);return()=>{window.clearTimeout(y),n.removeEventListener("pointerdown",g),n.removeEventListener("click",a.current);for(const b of w)n.removeEventListener(b,h,!0),n.removeEventListener(b,v)}},[n,c,r,o,i,s]),{onPointerDownCapture:_(()=>l.current=!0,"onPointerDownCapture")}}_(Jt,"usePointerDownOutside");function en(e,t=globalThis?.document){const n=me(e),r=f.useRef(!1);return f.useEffect(()=>{const o=_(i=>{i.target&&!r.current&&ft(ur,n,{originalEvent:i},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:_(()=>r.current=!0,"onFocusCapture"),onBlurCapture:_(()=>r.current=!1,"onBlurCapture")}}_(en,"useFocusOutside");function rt(){const e=new CustomEvent(nt);document.dispatchEvent(e)}_(rt,"dispatchUpdate");function ft(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Yn(o,i):o.dispatchEvent(i)}_(ft,"handleAndDispatchCustomEvent");var mr=Object.defineProperty,k=(e,t)=>mr(e,"name",{value:t,configurable:!0}),Xe="focusScope.autoFocusOnMount",Ye="focusScope.autoFocusOnUnmount",At={bubbles:!1,cancelable:!0},Oi=f.forwardRef(k(function(t,n){const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...c}=t,[l,u]=f.useState(null),m=me(i),a=me(s),d=f.useRef(null),p=Ie(n,u),h=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(o){let g=function(E){if(h.paused||!l)return;const x=E.target;l.contains(x)?d.current=x:X(d.current,{select:!0})},w=function(E){if(h.paused||!l)return;const x=E.relatedTarget;x!==null&&(l.contains(x)||X(d.current,{select:!0}))},y=function(E){if(document.activeElement===document.body)for(const S of E)S.removedNodes.length>0&&X(l)};k(g,"handleFocusIn"),k(w,"handleFocusOut"),k(y,"handleMutations"),document.addEventListener("focusin",g),document.addEventListener("focusout",w);const b=new MutationObserver(y);return l&&b.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",w),b.disconnect()}}},[o,l,h.paused]),f.useEffect(()=>{if(l){Dt.add(h);const g=document.activeElement;if(!l.contains(g)){const y=new CustomEvent(Xe,At);l.addEventListener(Xe,m),l.dispatchEvent(y),y.defaultPrevented||(tn(cn(dt(l)),{select:!0}),document.activeElement===g&&X(l))}return()=>{l.removeEventListener(Xe,m),setTimeout(()=>{const y=new CustomEvent(Ye,At);l.addEventListener(Ye,a),l.dispatchEvent(y),y.defaultPrevented||X(g??document.body,{select:!0}),l.removeEventListener(Ye,a),Dt.remove(h)},0)}}},[l,m,a,h]);const v=f.useCallback(g=>{if(!r&&!o||h.paused)return;const w=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,y=document.activeElement;if(w&&y){const b=g.currentTarget,[E,x]=nn(b);E&&x?!g.shiftKey&&y===x?(g.preventDefault(),r&&X(E,{select:!0})):g.shiftKey&&y===E&&(g.preventDefault(),r&&X(x,{select:!0})):y===b&&g.preventDefault()}},[r,o,h.paused]);return Y.jsx(he.div,{tabIndex:-1,...c,ref:p,onKeyDown:v})},"FocusScope"));function tn(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(X(r,{select:t}),document.activeElement!==n)return}k(tn,"focusFirst");function nn(e){const t=dt(e),n=ot(t,e),r=ot(t.reverse(),e);return[n,r]}k(nn,"getTabbableEdges");function dt(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:k(r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}k(dt,"getTabbableCandidates");function ot(e,t){const n=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):rn(r,{upTo:t})))return r}k(ot,"findVisible");function rn(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}k(rn,"isHidden");function on(e){return e instanceof HTMLInputElement&&"select"in e}k(on,"isSelectableInput");function X(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&on(e)&&t&&e.select()}}k(X,"focus");var Dt=sn();function sn(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=it(e,t),e.unshift(t)},remove(t){e=it(e,t),e[0]?.resume()}}}k(sn,"createFocusScopesStack");function it(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}k(it,"arrayRemove");function cn(e){return e.filter(t=>t.tagName!=="A")}k(cn,"removeLinks");var hr=Object.defineProperty,vr=(e,t)=>hr(e,"name",{value:t,configurable:!0}),Ai=f.forwardRef(vr(function(t,n){const{container:r,...o}=t,[i,s]=f.useState(!1);V(()=>s(!0),[]);const c=r||i&&globalThis?.document?.body;return c?zt.createPortal(Y.jsx(he.div,{...o,ref:n}),c):null},"Portal")),pr=Object.defineProperty,Z=(e,t)=>pr(e,"name",{value:t,configurable:!0});function an(e,t){return f.useReducer((n,r)=>t[n][r]??n,e)}Z(an,"useStateMachine");var Di=Z(e=>{const{present:t,children:n}=e,r=ln(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),i=un(r.ref,fn(o));return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:i}):null},"Presence");function ln(e){const[t,n]=f.useState(),r=f.useRef(null),o=f.useRef(e),i=f.useRef("none"),s=f.useRef(void 0),c=e?"mounted":"unmounted",[l,u]=an(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{l==="mounted"?(i.current=s.current??ue(r.current),s.current=void 0):i.current="none"},[l]),V(()=>{const m=r.current,a=o.current;if(a!==e){const p=i.current,h=ue(m);e?(s.current=h,u("MOUNT")):h==="none"||m?.display==="none"?u("UNMOUNT"):u(a&&p!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),V(()=>{if(t){let m;const a=t.ownerDocument.defaultView??window,d=Z(h=>{const g=ue(r.current).includes(CSS.escape(h.animationName));if(h.target===t&&g&&(u("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",m=a.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},"handleAnimationEnd"),p=Z(h=>{h.target===t&&(i.current=ue(r.current))},"handleAnimationStart");return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{a.clearTimeout(m),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:f.useCallback(m=>{if(m){const a=getComputedStyle(m);r.current=a,s.current=ue(a)}else r.current=null;n(m)},[])}}Z(ln,"usePresence");function st(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}Z(st,"setRef");function un(...e){const t=f.useRef(e);return t.current=e,f.useCallback(n=>{const r=t.current;let o=!1;const i=r.map(s=>{const c=st(s,n);return!o&&typeof c=="function"&&(o=!0),c});if(o)return()=>{for(let s=0;s<i.length;s++){const c=i[s];typeof c=="function"?c():st(r[s],null)}}},[])}Z(un,"useStableComposedRefs");function ue(e){return e?.animationName||"none"}Z(ue,"getAnimationName");function fn(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Z(fn,"getElementRef");var gr=Object.defineProperty,mt=(e,t)=>gr(e,"name",{value:t,configurable:!0}),xe=0,se=null;function wr(e){return dn(),e.children}mt(wr,"FocusGuards");function dn(){f.useEffect(()=>{se||(se={start:ct(),end:ct()});const{start:e,end:t}=se;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),xe++,()=>{xe===1&&(se?.start.remove(),se?.end.remove(),se=null),xe=Math.max(0,xe-1)}},[])}mt(dn,"useFocusGuards");function ct(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}mt(ct,"createFocusGuard");var H=function(){return H=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},H.apply(this,arguments)};function mn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function yr(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var De="right-scroll-bar-position",Te="width-before-scroll-bar",br="with-scroll-bars-hidden",Er="--removed-body-scroll-bar-size";function Ke(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function xr(e,t){var n=f.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Sr=typeof window<"u"?f.useLayoutEffect:f.useEffect,Tt=new WeakMap;function Cr(e,t){var n=xr(null,function(r){return e.forEach(function(o){return Ke(o,r)})});return Sr(function(){var r=Tt.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(c){i.has(c)||Ke(c,null)}),i.forEach(function(c){o.has(c)||Ke(c,s)})}Tt.set(n,e)},[e]),n}function Rr(e){return e}function Pr(e,t){t===void 0&&(t=Rr);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(c){return c!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(c){return i(c)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var c=n;n=[],c.forEach(i),s=n}var l=function(){var m=s;s=[],m.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(m){s.push(m),u()},filter:function(m){return s=s.filter(m),n}}}};return o}function Or(e){e===void 0&&(e={});var t=Pr(null);return t.options=H({async:!0,ssr:!1},e),t}var hn=function(e){var t=e.sideCar,n=mn(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return f.createElement(r,H({},n))};hn.isSideCarExport=!0;function Ar(e,t){return e.useMedium(t),hn}var vn=Or(),Ge=function(){},We=f.forwardRef(function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:Ge,onWheelCapture:Ge,onTouchMoveCapture:Ge}),o=r[0],i=r[1],s=e.forwardProps,c=e.children,l=e.className,u=e.removeScrollBar,m=e.enabled,a=e.shards,d=e.sideCar,p=e.noRelative,h=e.noIsolation,v=e.inert,g=e.allowPinchZoom,w=e.as,y=w===void 0?"div":w,b=e.gapMode,E=mn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=d,S=Cr([n,t]),C=H(H({},E),o);return f.createElement(f.Fragment,null,m&&f.createElement(x,{sideCar:vn,removeScrollBar:u,shards:a,noRelative:p,noIsolation:h,inert:v,setCallbacks:i,allowPinchZoom:!!g,lockRef:n,gapMode:b}),s?f.cloneElement(f.Children.only(c),H(H({},C),{ref:S})):f.createElement(y,H({},C,{className:l,ref:S}),c))});We.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};We.classNames={fullWidth:Te,zeroRight:De};var Dr=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Tr(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Dr();return t&&e.setAttribute("nonce",t),e}function Lr(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Nr(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Mr=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Tr())&&(Lr(t,n),Nr(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Fr=function(){var e=Mr();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},pn=function(){var e=Fr(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},_r={left:0,top:0,right:0,gap:0},Ze=function(e){return parseInt(e||"",10)||0},kr=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ze(n),Ze(r),Ze(o)]},Ir=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return _r;var t=kr(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Wr=pn(),fe="data-scroll-locked",$r=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
2
|
-
.`.concat(br,` {
|
|
3
|
-
overflow: hidden `).concat(r,`;
|
|
4
|
-
padding-right: `).concat(c,"px ").concat(r,`;
|
|
5
|
-
}
|
|
6
|
-
body[`).concat(fe,`] {
|
|
7
|
-
overflow: hidden `).concat(r,`;
|
|
8
|
-
overscroll-behavior: contain;
|
|
9
|
-
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
10
|
-
padding-left: `.concat(o,`px;
|
|
11
|
-
padding-top: `).concat(i,`px;
|
|
12
|
-
padding-right: `).concat(s,`px;
|
|
13
|
-
margin-left:0;
|
|
14
|
-
margin-top:0;
|
|
15
|
-
margin-right: `).concat(c,"px ").concat(r,`;
|
|
16
|
-
`),n==="padding"&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.`).concat(De,` {
|
|
20
|
-
right: `).concat(c,"px ").concat(r,`;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.`).concat(Te,` {
|
|
24
|
-
margin-right: `).concat(c,"px ").concat(r,`;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.`).concat(De," .").concat(De,` {
|
|
28
|
-
right: 0 `).concat(r,`;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.`).concat(Te," .").concat(Te,` {
|
|
32
|
-
margin-right: 0 `).concat(r,`;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
body[`).concat(fe,`] {
|
|
36
|
-
`).concat(Er,": ").concat(c,`px;
|
|
37
|
-
}
|
|
38
|
-
`)},Lt=function(){var e=parseInt(document.body.getAttribute(fe)||"0",10);return isFinite(e)?e:0},Br=function(){f.useEffect(function(){return document.body.setAttribute(fe,(Lt()+1).toString()),function(){var e=Lt()-1;e<=0?document.body.removeAttribute(fe):document.body.setAttribute(fe,e.toString())}},[])},Hr=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Br();var i=f.useMemo(function(){return Ir(o)},[o]);return f.createElement(Wr,{styles:$r(i,!t,o,n?"":"!important")})},at=!1;if(typeof window<"u")try{var Se=Object.defineProperty({},"passive",{get:function(){return at=!0,!0}});window.addEventListener("test",Se,Se),window.removeEventListener("test",Se,Se)}catch{at=!1}var ce=at?{passive:!1}:!1,jr=function(e){return e.tagName==="TEXTAREA"},gn=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!jr(e)&&n[t]==="visible")},Vr=function(e){return gn(e,"overflowY")},Ur=function(e){return gn(e,"overflowX")},Nt=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=wn(e,r);if(o){var i=yn(e,r),s=i[1],c=i[2];if(s>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},zr=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Xr=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},wn=function(e,t){return e==="v"?Vr(t):Ur(t)},yn=function(e,t){return e==="v"?zr(t):Xr(t)},Yr=function(e,t){return e==="h"&&t==="rtl"?-1:1},Kr=function(e,t,n,r,o){var i=Yr(e,window.getComputedStyle(t).direction),s=i*r,c=n.target,l=t.contains(c),u=!1,m=s>0,a=0,d=0;do{if(!c)break;var p=yn(e,c),h=p[0],v=p[1],g=p[2],w=v-g-i*h;(h||w)&&wn(e,c)&&(a+=w,d+=h);var y=c.parentNode;c=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!l&&c!==document.body||l&&(t.contains(c)||t===c));return(m&&Math.abs(a)<1||!m&&Math.abs(d)<1)&&(u=!0),u},Ce=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Mt=function(e){return[e.deltaX,e.deltaY]},Ft=function(e){return e&&"current"in e?e.current:e},Gr=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Zr=function(e){return`
|
|
39
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
40
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
41
|
-
`)},qr=0,ae=[];function Qr(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(qr++)[0],i=f.useState(pn)[0],s=f.useRef(e);f.useEffect(function(){s.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=yr([e.lockRef.current],(e.shards||[]).map(Ft),!0).filter(Boolean);return v.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=f.useCallback(function(v,g){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!s.current.allowPinchZoom;var w=Ce(v),y=n.current,b="deltaX"in v?v.deltaX:y[0]-w[0],E="deltaY"in v?v.deltaY:y[1]-w[1],x,S=v.target,C=Math.abs(b)>Math.abs(E)?"h":"v";if("touches"in v&&C==="h"&&S.type==="range")return!1;var A=window.getSelection(),L=A&&A.anchorNode,O=L?L===S||L.contains(S):!1;if(O)return!1;var N=Nt(C,S);if(!N)return!0;if(N?x=C:(x=C==="v"?"h":"v",N=Nt(C,S)),!N)return!1;if(!r.current&&"changedTouches"in v&&(b||E)&&(r.current=x),!x)return!0;var R=r.current||x;return Kr(R,g,v,R==="h"?b:E)},[]),l=f.useCallback(function(v){var g=v;if(!(!ae.length||ae[ae.length-1]!==i)){var w="deltaY"in g?Mt(g):Ce(g),y=t.current.filter(function(x){return x.name===g.type&&(x.target===g.target||g.target===x.shadowParent)&&Gr(x.delta,w)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}if(!y){var b=(s.current.shards||[]).map(Ft).filter(Boolean).filter(function(x){return x.contains(g.target)}),E=b.length>0?c(g,b[0]):!s.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),u=f.useCallback(function(v,g,w,y){var b={name:v,delta:g,target:w,should:y,shadowParent:Jr(w)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(E){return E!==b})},1)},[]),m=f.useCallback(function(v){n.current=Ce(v),r.current=void 0},[]),a=f.useCallback(function(v){u(v.type,Mt(v),v.target,c(v,e.lockRef.current))},[]),d=f.useCallback(function(v){u(v.type,Ce(v),v.target,c(v,e.lockRef.current))},[]);f.useEffect(function(){return ae.push(i),e.setCallbacks({onScrollCapture:a,onWheelCapture:a,onTouchMoveCapture:d}),document.addEventListener("wheel",l,ce),document.addEventListener("touchmove",l,ce),document.addEventListener("touchstart",m,ce),function(){ae=ae.filter(function(v){return v!==i}),document.removeEventListener("wheel",l,ce),document.removeEventListener("touchmove",l,ce),document.removeEventListener("touchstart",m,ce)}},[]);var p=e.removeScrollBar,h=e.inert;return f.createElement(f.Fragment,null,h?f.createElement(i,{styles:Zr(o)}):null,p?f.createElement(Hr,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Jr(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const eo=Ar(vn,Qr);var to=f.forwardRef(function(e,t){return f.createElement(We,H({},e,{ref:t,sideCar:eo}))});to.classNames=We.classNames;var no=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},le=new WeakMap,Re=new WeakMap,Pe={},qe=0,bn=function(e){return e&&(e.host||bn(e.parentNode))},ro=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=bn(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},oo=function(e,t,n,r){var o=ro(t,Array.isArray(e)?e:[e]);Pe[n]||(Pe[n]=new WeakMap);var i=Pe[n],s=[],c=new Set,l=new Set(o),u=function(a){!a||c.has(a)||(c.add(a),u(a.parentNode))};o.forEach(u);var m=function(a){!a||l.has(a)||Array.prototype.forEach.call(a.children,function(d){if(c.has(d))m(d);else try{var p=d.getAttribute(r),h=p!==null&&p!=="false",v=(le.get(d)||0)+1,g=(i.get(d)||0)+1;le.set(d,v),i.set(d,g),s.push(d),v===1&&h&&Re.set(d,!0),g===1&&d.setAttribute(n,"true"),h||d.setAttribute(r,"true")}catch(w){console.error("aria-hidden: cannot operate on ",d,w)}})};return m(t),c.clear(),qe++,function(){s.forEach(function(a){var d=le.get(a)-1,p=i.get(a)-1;le.set(a,d),i.set(a,p),d||(Re.has(a)||a.removeAttribute(r),Re.delete(a)),p||a.removeAttribute(n)}),qe--,qe||(le=new WeakMap,le=new WeakMap,Re=new WeakMap,Pe={})}},Ti=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=no(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),oo(r,o,n,"aria-hidden")):function(){return null}},io=Object.defineProperty,so=(e,t)=>io(e,"name",{value:t,configurable:!0});function En(e){const[t,n]=f.useState(void 0);return V(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,c;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,c=u.blockSize}else s=e.offsetWidth,c=e.offsetHeight;n({width:s,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}so(En,"useSize");const co=["top","right","bottom","left"],ee=Math.min,K=Math.max,Ne=Math.round,Oe=Math.floor,G=e=>({x:e,y:e}),ao={left:"right",right:"left",bottom:"top",top:"bottom"};function xn(e,t,n){return K(e,ee(t,n))}function q(e,t){return typeof e=="function"?e(t):e}function te(e){return e.split("-")[0]}function pe(e){return e.split("-")[1]}function ht(e){return e==="x"?"y":"x"}function vt(e){return e==="y"?"height":"width"}function j(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function pt(e){return ht(j(e))}function lo(e,t,n){n===void 0&&(n=!1);const r=pe(e),o=pt(e),i=vt(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Me(s)),[s,Me(s)]}function uo(e){const t=Me(e);return[lt(e),t,lt(t)]}function lt(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const _t=["left","right"],kt=["right","left"],fo=["top","bottom"],mo=["bottom","top"];function ho(e,t,n){switch(e){case"top":case"bottom":return n?t?kt:_t:t?_t:kt;case"left":case"right":return t?fo:mo;default:return[]}}function vo(e,t,n,r){const o=pe(e);let i=ho(te(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(lt)))),i}function Me(e){const t=te(e);return ao[t]+e.slice(t.length)}function po(e){var t,n,r,o;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(r=e.bottom)!=null?r:0,left:(o=e.left)!=null?o:0}}function Sn(e){return typeof e!="number"?po(e):{top:e,right:e,bottom:e,left:e}}function Fe(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function It(e,t,n){let{reference:r,floating:o}=e;const i=j(t),s=pt(t),c=vt(s),l=te(t),u=i==="y",m=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,d=r[c]/2-o[c]/2;let p;switch(l){case"top":p={x:m,y:r.y-o.height};break;case"bottom":p={x:m,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:a};break;case"left":p={x:r.x-o.width,y:a};break;default:p={x:r.x,y:r.y}}const h=pe(t);return h&&(p[s]+=d*(h==="end"?1:-1)*(n&&u?-1:1)),p}async function go(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:c,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:a="floating",altBoundary:d=!1,padding:p=0}=q(t,e),h=Sn(p),g=c[d?a==="floating"?"reference":"floating":a],w=Fe(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(g)))==null||n?g:g.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:u,rootBoundary:m,strategy:l})),y=a==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),E=await(i.isElement==null?void 0:i.isElement(b))&&await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1},x=Fe(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:b,strategy:l}):y);return{top:(w.top-x.top+h.top)/E.y,bottom:(x.bottom-w.bottom+h.bottom)/E.y,left:(w.left-x.left+h.left)/E.x,right:(x.right-w.right+h.right)/E.x}}const wo=50,yo=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,c=s.detectOverflow?s:{...s,detectOverflow:go},l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:m,y:a}=It(u,r,l),d=r,p=0;const h={};for(let v=0;v<i.length;v++){const g=i[v];if(!g)continue;const{name:w,fn:y}=g,{x:b,y:E,data:x,reset:S}=await y({x:m,y:a,initialPlacement:r,placement:d,strategy:o,middlewareData:h,rects:u,platform:c,elements:{reference:e,floating:t}});m=b??m,a=E??a,h[w]={...h[w],...x},S&&p<wo&&(p++,typeof S=="object"&&(S.placement&&(d=S.placement),S.rects&&(u=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:m,y:a}=It(u,d,l)),v=-1)}return{x:m,y:a,placement:d,strategy:o,middlewareData:h}},bo=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:c,middlewareData:l}=t,{element:u,padding:m=0}=q(e,t)||{};if(u==null)return{};const a=Sn(m),d={x:n,y:r},p=pt(o),h=vt(p),v=await s.getDimensions(u),g=p==="y",w=g?"top":"left",y=g?"bottom":"right",b=g?"clientHeight":"clientWidth",E=i.reference[h]+i.reference[p]-d[p]-i.floating[h],x=d[p]-i.reference[p],S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let C=S?S[b]:0;(!C||!await(s.isElement==null?void 0:s.isElement(S)))&&(C=c.floating[b]||i.floating[h]);const A=E/2-x/2,L=C/2-v[h]/2-1,O=ee(a[w],L),N=ee(a[y],L),R=C-v[h]-N,T=C/2-v[h]/2+A,D=xn(O,T,R),I=!l.arrow&&pe(o)!=null&&T!==D&&i.reference[h]/2-(T<O?O:N)-v[h]/2<0,M=I?T<O?T-O:T-R:0;return{[p]:d[p]+M,data:{[p]:D,centerOffset:T-D-M,...I&&{alignmentOffset:M}},reset:I}}}),Eo=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:c,platform:l,elements:u}=t,{mainAxis:m=!0,crossAxis:a=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...g}=q(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const w=te(o),y=j(c),b=te(c)===c,E=await(l.isRTL==null?void 0:l.isRTL(u.floating)),x=d||(b||!v?[Me(c)]:uo(c)),S=h!=="none";!d&&S&&x.push(...vo(c,v,h,E));const C=[c,...x],A=await l.detectOverflow(t,g),L=[];let O=((r=i.flip)==null?void 0:r.overflows)||[];if(m&&L.push(A[w]),a){const D=lo(o,s,E);L.push(A[D[0]],A[D[1]])}if(O=[...O,{placement:o,overflows:L}],!L.every(D=>D<=0)){var N,R;const D=(((N=i.flip)==null?void 0:N.index)||0)+1,I=C[D];if(I&&(!(a==="alignment"?y!==j(I):!1)||O.every(P=>j(P.placement)===y?P.overflows[0]>0:!0)))return{data:{index:D,overflows:O},reset:{placement:I}};let M=(R=O.filter(W=>W.overflows[0]<=0).sort((W,P)=>W.overflows[1]-P.overflows[1])[0])==null?void 0:R.placement;if(!M)switch(p){case"bestFit":{var T;const W=(T=O.filter(P=>{if(S){const F=j(P.placement);return F===y||F==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(F=>F>0).reduce((F,B)=>F+B,0)]).sort((P,F)=>P[1]-F[1])[0])==null?void 0:T[0];W&&(M=W);break}case"initialPlacement":M=c;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function Wt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function $t(e){return co.some(t=>e[t]>=0)}const xo=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=q(e,t);switch(o){case"referenceHidden":{const s=await r.detectOverflow(t,{...i,elementContext:"reference"}),c=Wt(s,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:$t(c)}}}case"escaped":{const s=await r.detectOverflow(t,{...i,altBoundary:!0}),c=Wt(s,n.floating);return{data:{escapedOffsets:c,escaped:$t(c)}}}default:return{}}}}},Cn=new Set(["left","top"]);async function So(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=te(n),c=pe(n),l=j(n)==="y",u=Cn.has(s)?-1:1,m=i&&l?-1:1,a=q(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:h}=typeof a=="number"?{mainAxis:a,crossAxis:0,alignmentAxis:null}:{mainAxis:a.mainAxis||0,crossAxis:a.crossAxis||0,alignmentAxis:a.alignmentAxis};return c&&typeof h=="number"&&(p=c==="end"?h*-1:h),l?{x:p*m,y:d*u}:{x:d*u,y:p*m}}const Co=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:c}=t,l=await So(t,e);return s===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},Ro=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:s=!0,crossAxis:c=!1,limiter:l={fn:y=>{let{x:b,y:E}=y;return{x:b,y:E}}},...u}=q(e,t),m={x:n,y:r},a=await i.detectOverflow(t,u),d=j(o),p=ht(d);let h=m[p],v=m[d];const g=(y,b)=>xn(b+a[y==="y"?"top":"left"],b,b-a[y==="y"?"bottom":"right"]);s&&(h=g(p,h)),c&&(v=g(d,v));const w=l.fn({...t,[p]:h,[d]:v});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[p]:s,[d]:c}}}}}},Po=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,r;const{x:o,y:i,placement:s,rects:c,middlewareData:l}=t,{offset:u=0,mainAxis:m=!0,crossAxis:a=!0}=q(e,t),d={x:o,y:i},p=j(s),h=ht(p);let v=d[h],g=d[p];const w=q(u,t),y=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:(n=w.mainAxis)!=null?n:0,crossAxis:(r=w.crossAxis)!=null?r:0};if(m){const x=h==="y"?"height":"width",S=c.reference[h]-c.floating[x]+y.mainAxis,C=c.reference[h]+c.reference[x]-y.mainAxis;v<S?v=S:v>C&&(v=C)}if(a){var b,E;const x=h==="y"?"width":"height",S=Cn.has(te(s)),C=c.reference[p]-c.floating[x]+(S&&((b=l.offset)==null?void 0:b[p])||0)+(S?0:y.crossAxis),A=c.reference[p]+c.reference[x]+(S?0:((E=l.offset)==null?void 0:E[p])||0)-(S?y.crossAxis:0);g<C?g=C:g>A&&(g=A)}return{[h]:v,[p]:g}}}},Oo=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:s=()=>{},...c}=q(e,t),l=await o.detectOverflow(t,c),u=te(n),m=pe(n),a=j(n)==="y",{width:d,height:p}=r.floating;let h,v;u==="top"||u==="bottom"?(h=u,v=m===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(v=u,h=m==="end"?"top":"bottom");const g=p-l.top-l.bottom,w=d-l.left-l.right,y=ee(p-l[h],g),b=ee(d-l[v],w),E=t.middlewareData.shift,x=!E;let S=y,C=b;E!=null&&E.enabled.x&&(C=w),E!=null&&E.enabled.y&&(S=g),x&&!m&&(a?C=d-2*K(l.left,l.right):S=p-2*K(l.top,l.bottom)),await s({...t,availableWidth:C,availableHeight:S});const A=await o.getDimensions(i.floating);return d!==A.width||p!==A.height?{reset:{rects:!0}}:{}}}};function $e(){return typeof window<"u"}function ge(e){return Rn(e)?(e.nodeName||"").toLowerCase():"#document"}function $(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Q(e){var t;return(t=(Rn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Rn(e){return $e()?e instanceof Node||e instanceof $(e).Node:!1}function U(e){return $e()?e instanceof Element||e instanceof $(e).Element:!1}function ne(e){return $e()?e instanceof HTMLElement||e instanceof $(e).HTMLElement:!1}function Bt(e){return!$e()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof $(e).ShadowRoot}function Be(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=z(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function Ao(e){return/^(table|td|th)$/.test(ge(e))}function He(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Do=/transform|translate|scale|rotate|perspective|filter/,To=/paint|layout|strict|content/,re=e=>!!e&&e!=="none";let Qe;function gt(e){const t=U(e)?z(e):e;return re(t.transform)||re(t.translate)||re(t.scale)||re(t.rotate)||re(t.perspective)||!wt()&&(re(t.backdropFilter)||re(t.filter))||Do.test(t.willChange||"")||To.test(t.contain||"")}function Lo(e){let t=oe(e);for(;ne(t)&&!we(t);){if(gt(t))return t;if(He(t))return null;t=oe(t)}return null}function wt(){return Qe==null&&(Qe=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Qe}function we(e){return/^(html|body|#document)$/.test(ge(e))}function z(e){return $(e).getComputedStyle(e)}function je(e){return U(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function oe(e){if(ge(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Bt(e)&&e.host||Q(e);return Bt(t)?t.host:t}function Pn(e){const t=oe(e);return we(t)?(e.ownerDocument||e).body:ne(t)&&Be(t)?t:Pn(t)}function ye(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Pn(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=$(o);if(i){const c=ut(s);return t.concat(s,s.visualViewport||[],Be(o)?o:[],c&&n?ye(c):[])}else return t.concat(o,ye(o,[],n))}function ut(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function On(e){const t=z(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ne(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,c=Ne(n)!==i||Ne(r)!==s;return c&&(n=i,r=s),{width:n,height:r,$:c}}function yt(e){return U(e)?e:e.contextElement}function de(e){const t=yt(e);if(!ne(t))return G(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=On(t);let s=(i?Ne(n.width):n.width)/r,c=(i?Ne(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const No=G(0);function An(e){const t=$(e);return!wt()||!t.visualViewport?No:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Mo(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===$(e)}function ie(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=yt(e);let s=G(1);t&&(r?U(r)&&(s=de(r)):s=de(e));const c=Mo(i,n,r)?An(i):G(0);let l=(o.left+c.x)/s.x,u=(o.top+c.y)/s.y,m=o.width/s.x,a=o.height/s.y;if(i&&r){const d=$(i),p=U(r)?$(r):r;let h=d,v=ut(h);for(;v&&p!==h;){const g=de(v),w=v.getBoundingClientRect(),y=z(v),b=w.left+(v.clientLeft+parseFloat(y.paddingLeft))*g.x,E=w.top+(v.clientTop+parseFloat(y.paddingTop))*g.y;l*=g.x,u*=g.y,m*=g.x,a*=g.y,l+=b,u+=E,h=$(v),v=ut(h)}}return Fe({width:m,height:a,x:l,y:u})}function Ve(e,t){const n=je(e).scrollLeft;return t?t.left+n:ie(Q(e)).left+n}function Dn(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Ve(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Fo(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Q(r),c=t?He(t.floating):!1;if(r===s||c&&i)return n;let l={scrollLeft:0,scrollTop:0},u=G(1);const m=G(0),a=ne(r);if((a||!i)&&((ge(r)!=="body"||Be(s))&&(l=je(r)),a)){const p=ie(r);u=de(r),m.x=p.x+r.clientLeft,m.y=p.y+r.clientTop}const d=s&&!a&&!i?Dn(s,l):G(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+m.x+d.x,y:n.y*u.y-l.scrollTop*u.y+m.y+d.y}}function _o(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function ko(e){const t=je(e),n=e.ownerDocument.body,r=K(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=K(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-t.scrollLeft+Ve(e);const s=-t.scrollTop;return z(n).direction==="rtl"&&(i+=K(e.clientWidth,n.clientWidth)-r),{width:r,height:o,x:i,y:s}}const Io=25;function Wo(e,t,n){n===void 0&&(n="viewport");const r=n==="layoutViewport",o=$(e),i=Q(e),s=o.visualViewport;let c=i.clientWidth,l=i.clientHeight,u=0,m=0;if(s){const d=!wt()||t==="fixed";r?d||(u=-s.offsetLeft,m=-s.offsetTop):(c=s.width,l=s.height,d&&(u=s.offsetLeft,m=s.offsetTop))}if(Ve(i)<=0){const d=i.ownerDocument,p=d.body,h=getComputedStyle(p),v=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,g=Math.abs(i.clientWidth-p.clientWidth-v),w=getComputedStyle(i).scrollbarGutter==="stable both-edges"?g/2:g;w<=Io&&(c-=w)}return{width:c,height:l,x:u,y:m}}function $o(e,t){const n=ie(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=de(e),s=e.clientWidth*i.x,c=e.clientHeight*i.y,l=o*i.x,u=r*i.y;return{width:s,height:c,x:l,y:u}}function Ht(e,t,n){let r;if(t==="viewport"||t==="layoutViewport")r=Wo(e,n,t);else if(t==="document")r=ko(Q(e));else if(U(t))r=$o(t,n);else{const o=An(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Fe(r)}function Bo(e,t){const n=t.get(e);if(n)return n;let r=ye(e,[],!1).filter(c=>U(c)&&ge(c)!=="body"),o=null;const i=z(e).position==="fixed";let s=i?oe(e):e;for(;U(s)&&!we(s);){const c=z(s),l=gt(s),u=o?o.position:i?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&c.position==="static")?r=r.filter(a=>a!==s):o=c,s=oe(s)}return t.set(e,r),r}function Ho(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?He(t)?[]:Bo(t,this._c):[].concat(n),r],c=Ht(t,s[0],o);let l=c.top,u=c.right,m=c.bottom,a=c.left;for(let d=1;d<s.length;d++){const p=Ht(t,s[d],o);l=K(p.top,l),u=ee(p.right,u),m=ee(p.bottom,m),a=K(p.left,a)}return{width:u-a,height:m-l,x:a,y:l}}function jo(e){const{width:t,height:n}=On(e);return{width:t,height:n}}function Vo(e,t,n){const r=ne(t),o=Q(t),i=n==="fixed",s=ie(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const l=G(0);if((r||!i)&&((ge(t)!=="body"||Be(o))&&(c=je(t)),r)){const d=ie(t,!0,i,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}!r&&o&&(l.x=Ve(o));const u=o&&!r&&!i?Dn(o,c):G(0),m=s.left+c.scrollLeft-l.x-u.x,a=s.top+c.scrollTop-l.y-u.y;return{x:m,y:a,width:s.width,height:s.height}}function Je(e){return z(e).position==="static"}function jt(e,t){if(!ne(e)||z(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Q(e)===n&&(n=n.ownerDocument.body),n}function Tn(e,t){const n=$(e);if(He(e))return n;if(!ne(e)){let o=oe(e);for(;o&&!we(o);){if(U(o)&&!Je(o))return o;o=oe(o)}return n}let r=jt(e,t);for(;r&&Ao(r)&&Je(r);)r=jt(r,t);return r&&we(r)&&Je(r)&&!gt(r)?n:r||Lo(e)||n}const Uo=async function(e){const t=this.getOffsetParent||Tn,n=this.getDimensions,r=await n(e.floating);return{reference:Vo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function zo(e){return z(e).direction==="rtl"}const Xo={convertOffsetParentRelativeRectToViewportRelativeRect:Fo,getDocumentElement:Q,getClippingRect:Ho,getOffsetParent:Tn,getElementRects:Uo,getClientRects:_o,getDimensions:jo,getScale:de,isElement:U,isRTL:zo};function Ln(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Yo(e,t,n){let r=null,o;const i=Q(e);function s(){var m;clearTimeout(o),(m=r)==null||m.disconnect(),r=null}function c(m,a){m===void 0&&(m=!1),a===void 0&&(a=1),s();const d=e.getBoundingClientRect(),{left:p,top:h,width:v,height:g}=d;if(m||t(),!v||!g)return;const w=Oe(h),y=Oe(i.clientWidth-(p+v)),b=Oe(i.clientHeight-(h+g)),E=Oe(p),S={rootMargin:-w+"px "+-y+"px "+-b+"px "+-E+"px",threshold:K(0,ee(1,a))||1};let C=!0;function A(L){const O=L[0].intersectionRatio;if(!Ln(d,e.getBoundingClientRect()))return c();if(O!==a){if(!C)return c();O?c(!1,O):o=setTimeout(()=>{c(!1,1e-7)},1e3)}C=!1}try{r=new IntersectionObserver(A,{...S,root:i.ownerDocument})}catch{r=new IntersectionObserver(A,S)}r.observe(e)}const l=$(e),u=()=>c(n);return l.addEventListener("resize",u),c(!0),()=>{l.removeEventListener("resize",u),s()}}function Ko(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=yt(e),m=o||i?[...u?ye(u):[],...t?ye(t):[]]:[];m.forEach(w=>{o&&w.addEventListener("scroll",n),i&&w.addEventListener("resize",n)});const a=u&&c?Yo(u,n,i):null;let d=-1,p=null;s&&(p=new ResizeObserver(w=>{let[y]=w;y&&y.target===u&&p&&t&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var b;(b=p)==null||b.observe(t)})),n()}),u&&!l&&p.observe(u),t&&p.observe(t));let h,v=l?ie(e):null;l&&g();function g(){const w=ie(e);v&&!Ln(v,w)&&n(),v=w,h=requestAnimationFrame(g)}return n(),()=>{var w;m.forEach(y=>{o&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),a?.(),(w=p)==null||w.disconnect(),p=null,l&&cancelAnimationFrame(h)}}const Go=Co,Zo=Ro,qo=Eo,Qo=Oo,Jo=xo,Vt=bo,ei=Po,ti=(e,t,n)=>{const r=new Map,o=n??{},i={...Xo,...o.platform,_c:r};return yo(e,t,{...o,platform:i})};var ni=typeof document<"u",ri=function(){},Le=ni?f.useLayoutEffect:ri;function _e(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!_e(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!_e(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Nn(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ut(e,t){const n=Nn(e);return Math.round(t*n)/n}function et(e){const t=f.useRef(e);return Le(()=>{t.current=e}),t}function oi(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:c=!0,whileElementsMounted:l,open:u}=e,[m,a]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=f.useState(r);_e(d,r)||p(r);const[h,v]=f.useState(null),[g,w]=f.useState(null),y=f.useCallback(P=>{P!==S.current&&(S.current=P,v(P))},[]),b=f.useCallback(P=>{P!==C.current&&(C.current=P,w(P))},[]),E=i||h,x=s||g,S=f.useRef(null),C=f.useRef(null),A=f.useRef(m),L=l!=null,O=et(l),N=et(o),R=et(u),T=f.useCallback(()=>{if(!S.current||!C.current)return;const P={placement:t,strategy:n,middleware:d};N.current&&(P.platform=N.current),ti(S.current,C.current,P).then(F=>{const B={...F,isPositioned:R.current!==!1};D.current&&!_e(A.current,B)&&(A.current=B,zt.flushSync(()=>{a(B)}))})},[d,t,n,N,R]);Le(()=>{u===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,a(P=>({...P,isPositioned:!1})))},[u]);const D=f.useRef(!1);Le(()=>(D.current=!0,()=>{D.current=!1}),[]),Le(()=>{if(E&&(S.current=E),x&&(C.current=x),E&&x){if(O.current)return O.current(E,x,T);T()}},[E,x,T,O,L]);const I=f.useMemo(()=>({reference:S,floating:C,setReference:y,setFloating:b}),[y,b]),M=f.useMemo(()=>({reference:E,floating:x}),[E,x]),W=f.useMemo(()=>{const P={position:n,left:0,top:0};if(!M.floating)return P;const F=Ut(M.floating,m.x),B=Ut(M.floating,m.y);return c?{...P,transform:"translate("+F+"px, "+B+"px)",...Nn(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:F,top:B}},[n,c,M.floating,m.x,m.y]);return f.useMemo(()=>({...m,update:T,refs:I,elements:M,floatingStyles:W}),[m,T,I,M,W])}const ii=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Vt({element:r.current,padding:o}).fn(n):{}:r?Vt({element:r,padding:o}).fn(n):{}}}},si=(e,t)=>{const n=Go(e);return{name:n.name,fn:n.fn,options:[e,t]}},ci=(e,t)=>{const n=Zo(e);return{name:n.name,fn:n.fn,options:[e,t]}},ai=(e,t)=>({fn:ei(e).fn,options:[e,t]}),li=(e,t)=>{const n=qo(e);return{name:n.name,fn:n.fn,options:[e,t]}},ui=(e,t)=>{const n=Qo(e);return{name:n.name,fn:n.fn,options:[e,t]}},fi=(e,t)=>{const n=Jo(e);return{name:n.name,fn:n.fn,options:[e,t]}},di=(e,t)=>{const n=ii(e);return{name:n.name,fn:n.fn,options:[e,t]}};var mi=Object.defineProperty,J=(e,t)=>mi(e,"name",{value:t,configurable:!0}),Mn="Popper",[Fn,Li]=Kn(Mn),[hi,_n]=Fn(Mn),vi=J(e=>{const{__scopePopper:t,children:n}=e,[r,o]=f.useState(null),[i,s]=f.useState(void 0);return Y.jsx(hi,{scope:t,anchor:r,onAnchorChange:o,placementState:i,setPlacementState:s,children:n})},"Popper"),pi="PopperAnchor",gi=f.forwardRef(J(function(t,n){const{__scopePopper:r,virtualRef:o,...i}=t,s=_n(pi,r),c=f.useRef(null),l=s.onAnchorChange,u=f.useCallback(v=>{c.current=v,v&&l(v)},[l]),m=Ie(n,u),a=f.useRef(null);f.useEffect(()=>{if(!o)return;const v=a.current;a.current=o.current,v!==a.current&&l(a.current)});const d=s.placementState&&Ue(s.placementState),p=d?.[0],h=d?.[1];return o?null:Y.jsx(he.div,{"data-radix-popper-side":p,"data-radix-popper-align":h,...i,ref:m})},"PopperAnchor")),kn="PopperContent",[wi,Ni]=Fn(kn),yi=f.forwardRef(J(function(t,n){const{__scopePopper:r,side:o="bottom",sideOffset:i=0,align:s="center",alignOffset:c=0,arrowPadding:l=0,avoidCollisions:u=!0,collisionBoundary:m=[],collisionPadding:a=0,sticky:d="partial",hideWhenDetached:p=!1,updatePositionStrategy:h="optimized",onPlaced:v,...g}=t,w=_n(kn,r),[y,b]=f.useState(null),E=Ie(n,b),[x,S]=f.useState(null),C=En(x),A=C?.width??0,L=C?.height??0,O=o+(s!=="center"?"-"+s:""),N=typeof a=="number"?a:{top:0,right:0,bottom:0,left:0,...a},R=Array.isArray(m)?m:[m],T=R.length>0,D={padding:N,boundary:R.filter(In),altBoundary:T},{refs:I,floatingStyles:M,placement:W,isPositioned:P,middlewareData:F}=oi({strategy:"fixed",placement:O,whileElementsMounted:J((...ze)=>Ko(...ze,{animationFrame:h==="always"}),"whileElementsMounted"),elements:{reference:w.anchor},middleware:[si({mainAxis:i+L,alignmentAxis:c}),u&&ci({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?ai():void 0,...D}),u&&li({...D}),ui({...D,apply:J(({elements:ze,rects:St,availableWidth:Vn,availableHeight:Un})=>{const{width:zn,height:Xn}=St.reference,Ee=ze.floating.style;Ee.setProperty("--radix-popper-available-width",`${Vn}px`),Ee.setProperty("--radix-popper-available-height",`${Un}px`),Ee.setProperty("--radix-popper-anchor-width",`${zn}px`),Ee.setProperty("--radix-popper-anchor-height",`${Xn}px`)},"apply")}),x&&di({element:x,padding:l}),bi({arrowWidth:A,arrowHeight:L}),p&&fi({strategy:"referenceHidden",...D,boundary:T?D.boundary:void 0})]}),B=w.setPlacementState;V(()=>(B(W),()=>{B(void 0)}),[W,B]);const[bt,Et]=Ue(W),xt=me(v);V(()=>{P&&xt?.()},[P,xt]);const Wn=F.arrow?.x,$n=F.arrow?.y,Bn=F.arrow?.centerOffset!==0,[Hn,jn]=f.useState();return V(()=>{y&&jn(window.getComputedStyle(y).zIndex)},[y]),Y.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...M,transform:P?M.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Hn,"--radix-popper-transform-origin":[F.transformOrigin?.x,F.transformOrigin?.y].join(" "),...F.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:Y.jsx(wi,{scope:r,placedSide:bt,placedAlign:Et,onArrowChange:S,arrowX:Wn,arrowY:$n,shouldHideArrow:Bn,children:Y.jsx(he.div,{"data-side":bt,"data-align":Et,...g,ref:E,style:{...g.style,animation:P?g.style?.animation:"none"}})})})},"PopperContent"));function In(e){return e!==null}J(In,"isNotNull");var bi=J(e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,c=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[u,m]=Ue(n),a={start:"0%",center:"50%",end:"100%"}[m],d=(o.arrow?.x??0)+c/2,p=(o.arrow?.y??0)+l/2;let h="",v="";return u==="bottom"?(h=s?a:`${d}px`,v=`${-l}px`):u==="top"?(h=s?a:`${d}px`,v=`${r.floating.height+l}px`):u==="right"?(h=`${-l}px`,v=s?a:`${p}px`):u==="left"&&(h=`${r.floating.width+l}px`,v=s?a:`${p}px`),{data:{x:h,y:v}}}}),"transformOrigin");function Ue(e){const[t,n="center"]=e.split("-");return[t,n]}J(Ue,"getSideAndAlignFromPlacement");var Mi=vi,Fi=gi,_i=yi,Ei=Object.defineProperty,xi=(e,t)=>Ei(e,"name",{value:t,configurable:!0}),Si=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Ci=f.forwardRef(xi(function(t,n){return Y.jsx(he.span,{...t,ref:n,style:{...Si,...t.style}})},"VisuallyHidden")),ki=Ci;export{Fi as A,_i as C,Pi as D,Oi as F,Ai as P,to as R,Si as V,Di as a,Li as b,Ae as c,dn as d,sr as e,Mi as f,fr as g,Ti as h,ki as i,tr as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as N,r as n,j as T,h as U}from"./dashboard-CD-FFVRD.js";import{c as J}from"./ai-connections-CHNTKemd.js";async function B(t){return x(t(p("/api/ai/config"),{method:"GET",credentials:"include",headers:{accept:"application/json"}}))}async function F(t,e){return x(t(p("/api/ai/config"),{method:"PATCH",credentials:"include",headers:{accept:"application/json","content-type":"application/json"},body:JSON.stringify(e)}))}async function V(t,e){const o=await t(p("/api/ai/config/rebuild"),{method:"POST",credentials:"include",headers:{accept:"application/json","content-type":"application/json"},body:JSON.stringify({target:e})}),r=await o.json().catch(()=>{});if(!o.ok||!r?.job)throw new Error(r?.error??"Index rebuild request failed");return r.job}async function K(t,e){const o=e.capabilities.some(c=>c.toLowerCase()==="embedding"),r=await t(p(o?"/v1/embeddings":"/v1/chat/completions"),{method:"POST",credentials:"include",headers:{accept:"application/json","content-type":"application/json"},body:JSON.stringify(o?{model:e.id,input:"xpod readiness probe"}:{model:e.id,messages:[{role:"user",content:"Reply OK."}],max_tokens:1,stream:!1})});if(!r.ok){const c=await r.json().catch(()=>{}),d=typeof c?.error=="string"?c.error:c?.error?.message;throw new Error(d??"Model readiness probe failed")}await r.arrayBuffer()}function p(t){if(typeof window>"u")throw new Error("AI Config API requires the current browser origin");return new URL(t,window.location.origin).toString()}async function x(t){const e=await t,o=await e.json().catch(()=>{});if(!e.ok||!o?.config||!o.capabilities)throw new Error(o?.error??"AI Config request failed");return o}const E=n.createContext(void 0);function _({children:t}){const e=N(),[o,r]=n.useState(),[c,d]=n.useState(),[b,P]=n.useState([]),[h,g]=n.useState(),[k,w]=n.useState(!0),[y,m]=n.useState(!1),[C,v]=n.useState(!1),[S,l]=n.useState(),[R,I]=n.useState(0),q=!!(e.webId&&e.currentPod);n.useEffect(()=>{if(!e.webId||!e.currentPod)return;let a=!1;return queueMicrotask(()=>{if(a||!e.webId||!e.currentPod)return;w(!0),l(void 0);const i=J({webId:e.webId,podUrl:e.currentPod.podUrl,authenticatedFetch:e.fetch});Promise.all([B(e.fetch),i.listModels().catch(()=>[])]).then(([s,L])=>{a||(r(s.config),d(s.capabilities),g(s.lifecycle),P(X(L)))}).catch(s=>{a||l(s instanceof Error?s.message:String(s))}).finally(()=>{a||w(!1)})}),()=>{a=!0}},[R,e.currentPod,e.fetch,e.webId]);const A=n.useCallback(()=>{I(a=>a+1)},[]),u=n.useCallback(async a=>{m(!0),l(void 0);try{const i=await F(e.fetch,a);r(i.config),d(i.capabilities),g(i.lifecycle)}catch(i){throw l(i instanceof Error?i.message:String(i)),i}finally{m(!1)}},[e.fetch]),f=n.useCallback(async a=>{v(!0),l(void 0);try{const i=await V(e.fetch,a);g(s=>({configurationVersion:s?.configurationVersion,pending:(s?.pending??0)+1,recent:[i,...s?.recent??[]].slice(0,20)}))}catch(i){throw l(i instanceof Error?i.message:String(i)),i}finally{v(!1)}},[e.fetch]),j=n.useCallback(async(a,i)=>{await u(a),await f(i)},[f,u]),M=q?k:!1,O=n.useMemo(()=>({config:o,capabilities:c,lifecycle:h,models:b,loading:M,saving:y,rebuilding:C,error:S,reload:A,save:u,rebuild:f,saveAndRebuild:j}),[c,o,M,S,h,b,f,C,A,u,j,y]);return T.jsx(E.Provider,{value:O,children:t})}function X(t){return t.map(e=>({id:e.id,displayName:e.displayName,owner:e.provider,ref:U(e.provider,e.id),capabilities:e.capabilities??[]}))}function z(t,e){const r={chatModel:["chat"],ocrModel:["ocr"],readerModel:["document-understanding","documentunderstanding"],embeddingModel:["embedding"],indexerModel:["indexing"],rerankerModel:["reranking","reranker"]}[e];return r?t.filter(c=>c.capabilities.some(d=>r.includes(d.toLowerCase()))):t}function D(){const t=n.useContext(E);if(!t)throw new Error("useAiConfig must be used within AiConfigProvider");return t}export{_ as A,z as m,K as t,D as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as d,j as e,k as x,r as p,O as g,N as f,l as y,m as b}from"./dashboard-CD-FFVRD.js";import{P as v}from"./PaneListHeader-D0c1yCFH.js";import{A as j,u as k}from"./AiConfigContext-BpPDKSzI.js";import{T as N,u as w}from"./workspace-layout-DV4dgeHX.js";import"./ai-connections-CHNTKemd.js";const M=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["circle",{cx:"11.5",cy:"14.5",r:"2.5",key:"1bq0ko"}],["path",{d:"M13.3 16.3 15 18",key:"2quom7"}]],C=d("file-search",M);const A=[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M7 12H3",key:"13ou7f"}],["path",{d:"M7 19H3",key:"wbqt3n"}],["path",{d:"M12 18a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L11 14",key:"qth677"}],["path",{d:"M11 10v4h4",key:"172dkj"}]],I=d("list-restart",A);const L=[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["path",{d:"M7 8h8",key:"1jbsf9"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M7 16h6",key:"1vyc9m"}]],H=d("scan-text",L);const q=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],_=d("sliders-horizontal",q);function o(s,a,t,n,i){return{id:s,label:a,path:t,href:`/ai-config/${t}`,end:!0,description:n,icon:i}}const l=[o("model-assignments","Model Assignments","model-assignments","Choose the model used by each Xpod capability.",_),o("document-processing","Document Processing","document-processing","Control OCR and structured document reading.",H),o("search-indexing","Search & Indexing","search-indexing","Enable FTS, vector retrieval, and backend selection.",C),o("index-lifecycle","Index Lifecycle","index-lifecycle","Control automatic indexing and derived-index rebuilds.",I)];function W(){return e.jsx(j,{children:e.jsx(S,{})})}function S(){const s=x(),{config:a,loading:t,saving:n,error:i,reload:m}=k(),[u,c]=p.useState(!1),h=l.find(r=>s.pathname.endsWith(r.path))??l[0];return e.jsx(N,{mode:"auto",listHeader:e.jsx(v,{title:"AI Config"}),list:e.jsx(T,{}),mainHeader:e.jsx("div",{className:"flex h-full min-w-0 items-center px-4",children:e.jsxs("div",{className:"min-w-0",children:[e.jsxs("h1",{className:"text-sm font-semibold text-foreground",children:["AI Config · ",h.label]}),e.jsx("div",{className:"truncate text-xs text-muted-foreground",children:"Pod-level AI and derived-index policy"})]})}),main:e.jsxs("section",{className:"min-h-full bg-background",children:[n&&e.jsx("div",{role:"status","aria-live":"polite",className:"border-b border-border px-6 py-2 text-xs text-muted-foreground",children:"Saving AI configuration…"}),i?e.jsx(z,{error:i,showTechnicalDetails:u,onToggleTechnicalDetails:()=>c(r=>!r),onRetry:()=>{c(!1),m()}}):t||!a?e.jsx(P,{}):e.jsx(g,{})]}),className:"min-h-full"})}function z({error:s,showTechnicalDetails:a,onToggleTechnicalDetails:t,onRetry:n}){return e.jsx("div",{className:"mx-auto w-full max-w-4xl p-6",children:e.jsxs("div",{role:"alert","aria-live":"assertive",className:"rounded-lg border border-destructive/30 bg-destructive/5 p-4",children:[e.jsx("h2",{className:"text-sm font-semibold text-foreground",children:"AI configuration could not be loaded"}),e.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Xpod could not read this Pod’s AI settings. Your existing settings were not changed."}),e.jsxs("div",{className:"mt-4 flex flex-wrap gap-2",children:[e.jsx("button",{type:"button",onClick:n,className:"h-9 rounded-md bg-primary px-3 text-sm font-medium text-primary-foreground hover:bg-primary/90",children:"Try again"}),e.jsx("button",{type:"button","aria-expanded":a,onClick:t,className:"h-9 rounded-md border border-input bg-background px-3 text-sm font-medium text-foreground hover:bg-accent",children:a?"Hide details":"Show details"})]}),a&&e.jsx("p",{className:"mt-3 break-words font-mono text-xs text-muted-foreground",children:s})]})})}function P(){return e.jsxs("div",{role:"status","aria-live":"polite",className:"mx-auto w-full max-w-4xl p-6",children:[e.jsx("div",{className:"h-7 w-52 animate-pulse rounded bg-muted"}),e.jsx("div",{className:"mt-3 h-4 w-80 max-w-full animate-pulse rounded bg-muted"}),e.jsx("div",{className:"mt-6 divide-y divide-border overflow-hidden rounded-xl border border-border",children:Array.from({length:4},(s,a)=>e.jsxs("div",{className:"grid gap-4 p-4 lg:grid-cols-[minmax(220px,1fr)_minmax(320px,440px)]",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{className:"h-4 w-28 animate-pulse rounded bg-muted"}),e.jsx("div",{className:"h-3 w-52 animate-pulse rounded bg-muted"})]}),e.jsx("div",{className:"h-10 animate-pulse rounded-md bg-muted"})]},a))}),e.jsx("span",{className:"sr-only",children:"Loading AI configuration…"})]})}function T(){const s=w();return e.jsx("aside",{className:"h-full border-r border-border bg-muted/20 py-2",children:e.jsx("nav",{"aria-label":"AI Config sections","data-list-navigation":!0,children:l.map(a=>{const t=a.icon;return e.jsxs(f,{to:a.path,end:a.end,onClick:()=>s.openMain(),onKeyDown:y,className:({isActive:n})=>b(n,{compact:!1}),children:[e.jsx(t,{className:"mt-0.5 h-4 w-4 shrink-0","aria-hidden":"true"}),e.jsxs("span",{className:"min-w-0",children:[e.jsx("span",{className:"block text-sm font-medium",children:a.label}),e.jsx("span",{className:"mt-0.5 block text-xs leading-4 text-muted-foreground",children:a.description})]})]},a.id)})})})}export{W as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as u,j as a}from"./dashboard-CD-FFVRD.js";import{i as g,A as x}from"./ModelAssignmentsPanel-BeBZhnQd.js";import{u as p}from"./AiConfigContext-BpPDKSzI.js";import"./ai-connections-CHNTKemd.js";function C(){const{config:s,save:o,saving:t}=p(),[e,r]=u.useState(s?.documentProcessing);if(u.useEffect(()=>{let n=!1;return queueMicrotask(()=>{n||r(s?.documentProcessing)}),()=>{n=!0}},[s]),!e)return null;const l=g(e,s?.documentProcessing),b=async n=>{n.preventDefault(),await o({documentProcessing:e})};return a.jsx(x,{title:"Document Processing",description:"Control when Xpod invokes OCR and structured document readers.",onSubmit:b,onRestore:()=>o({documentProcessing:{ocrEnabled:!0,automaticOcr:!0,imageRecognition:!0,pdfRecognition:!0,tableRecognition:!1,processingMode:"auto",ocrFallbackOrder:["ocr","reader","plain-text"],readerPolicy:"auto",readerPriority:"structure-first",maxFileSizeMb:64,maxPages:500,failureFallback:"plain-text"}}),saving:t,dirty:l,children:a.jsxs("div",{className:"space-y-4 rounded-xl border border-border p-4",children:[a.jsx(i,{label:"Enable OCR",description:"Read text from images and scanned documents.",checked:e.ocrEnabled,onChange:n=>r({...e,ocrEnabled:n})}),a.jsx(i,{label:"Automatic OCR",description:"Run OCR when indexed content has no usable text layer.",checked:e.automaticOcr,onChange:n=>r({...e,automaticOcr:n})}),a.jsx(i,{label:"Image recognition",description:"Allow OCR and readers to process image resources.",checked:e.imageRecognition,onChange:n=>r({...e,imageRecognition:n})}),a.jsx(i,{label:"PDF recognition",description:"Process native and scanned PDF resources.",checked:e.pdfRecognition,onChange:n=>r({...e,pdfRecognition:n})}),a.jsx(i,{label:"Table recognition",description:"Preserve detected table structure when the reader supports it.",checked:e.tableRecognition,onChange:n=>r({...e,tableRecognition:n})}),a.jsxs("label",{className:"block space-y-2 text-sm font-medium",children:["Processing mode",a.jsxs("select",{name:"processingMode",value:e.processingMode,onChange:n=>r({...e,processingMode:n.target.value}),className:"block h-10 w-full rounded-md border border-input bg-background px-3 text-sm sm:max-w-xs",children:[a.jsx("option",{value:"auto",children:"Auto"}),a.jsx("option",{value:"on-demand",children:"On demand"})]})]}),a.jsxs("label",{className:"block space-y-2 text-sm font-medium",children:["OCR fallback order",a.jsx("input",{value:e.ocrFallbackOrder.join(", "),onChange:n=>r({...e,ocrFallbackOrder:n.target.value.split(",").map(c=>c.trim()).filter(c=>["ocr","reader","plain-text"].includes(c))}),className:"block h-10 w-full rounded-md border border-input bg-background px-3 text-sm"})]}),a.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[a.jsx(d,{label:"Reader policy",value:e.readerPolicy,options:["auto","always","disabled"],onChange:n=>r({...e,readerPolicy:n})}),a.jsx(d,{label:"Reader priority",value:e.readerPriority,options:["structure-first","speed-first"],onChange:n=>r({...e,readerPriority:n})}),a.jsx(m,{label:"Maximum file size (MB)",value:e.maxFileSizeMb,min:1,max:1024,onChange:n=>r({...e,maxFileSizeMb:n})}),a.jsx(m,{label:"Maximum pages",value:e.maxPages,min:1,max:1e4,onChange:n=>r({...e,maxPages:n})}),a.jsx(d,{label:"Failure fallback",value:e.failureFallback,options:["plain-text","skip"],onChange:n=>r({...e,failureFallback:n})})]})]})})}function d({label:s,value:o,options:t,onChange:e}){return a.jsxs("label",{className:"block space-y-2 text-sm font-medium",children:[s,a.jsx("select",{value:o,onChange:r=>e(r.target.value),className:"block h-10 w-full rounded-md border border-input bg-background px-3 text-sm",children:t.map(r=>a.jsx("option",{value:r,children:r},r))})]})}function m({label:s,value:o,min:t,max:e,onChange:r}){return a.jsxs("label",{className:"block space-y-2 text-sm font-medium",children:[s,a.jsx("input",{type:"number",value:o,min:t,max:e,onChange:l=>r(l.target.valueAsNumber),className:"block h-10 w-full rounded-md border border-input bg-background px-3 text-sm"})]})}function i({label:s,description:o,checked:t,onChange:e}){return a.jsxs("label",{className:"flex items-start justify-between gap-4",children:[a.jsxs("span",{children:[a.jsx("span",{className:"block text-sm font-medium",children:s}),a.jsx("span",{className:"block text-xs text-muted-foreground",children:o})]}),a.jsx("input",{type:"checkbox",checked:t,onChange:r=>e(r.target.checked),className:"mt-1 h-4 w-4 rounded border-input"})]})}export{C as DocumentProcessingPanel};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as l,j as e}from"./dashboard-CD-FFVRD.js";import{i as h,A as b}from"./ModelAssignmentsPanel-BeBZhnQd.js";import{u as g}from"./AiConfigContext-BpPDKSzI.js";import"./ai-connections-CHNTKemd.js";function k(){const{config:s,capabilities:i,lifecycle:d,save:n,rebuild:u,saving:m,rebuilding:x}=g(),[r,a]=l.useState(s?.lifecycle);if(l.useEffect(()=>{let t=!1;return queueMicrotask(()=>{t||a(s?.lifecycle)}),()=>{t=!0}},[s]),!r)return null;const f=h(r,s?.lifecycle),p=async t=>{t.preventDefault(),await n({lifecycle:r})};return e.jsxs(b,{title:"Index Lifecycle",description:"Control automatic maintenance and explicitly schedule rebuilds of derived data.",onSubmit:p,onRestore:()=>n({lifecycle:{automaticIndexing:!0,refreshAfterSourceUpdate:!0,removeAfterSourceDeletion:!0}}),saving:m,dirty:f,children:[e.jsxs("div",{className:"divide-y divide-border rounded-xl border border-border",children:[e.jsxs("label",{className:"flex items-start justify-between gap-4 p-4",children:[e.jsxs("span",{children:[e.jsx("span",{className:"block text-sm font-medium",children:"Automatically index changes"}),e.jsx("span",{className:"block text-xs text-muted-foreground",children:"Index new and updated resources, and remove derived entries after deletion."})]}),e.jsx("input",{name:"automaticIndexing",type:"checkbox",checked:r.automaticIndexing,onChange:t=>a({...r,automaticIndexing:t.target.checked}),className:"mt-1 h-4 w-4 rounded border-input"})]}),e.jsx(c,{label:"Refresh after source updates",checked:r.refreshAfterSourceUpdate,onChange:t=>a({...r,refreshAfterSourceUpdate:t})}),e.jsx(c,{label:"Remove derived entries after source deletion",checked:r.removeAfterSourceDeletion,onChange:t=>a({...r,removeAfterSourceDeletion:t})})]}),e.jsxs("section",{className:"rounded-xl border border-border p-4",children:[e.jsx("h2",{className:"text-sm font-medium",children:"Rebuild derived indexes"}),e.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:"Rebuild actions never modify authority data in the Pod."}),e.jsx("div",{className:"mt-4 flex flex-wrap gap-2",children:["fts","vector","all"].map(t=>e.jsxs("button",{type:"button",disabled:!i?.rebuildTargets?.includes(t)||x,onClick:()=>u(t),className:"h-9 rounded-md border border-input px-3 text-sm font-medium disabled:opacity-50",children:["Rebuild ",t==="all"?"all":t.toUpperCase()]},t))})]}),e.jsxs("section",{className:"rounded-xl border border-border p-4",children:[e.jsx("h2",{className:"text-sm font-medium",children:"Lifecycle evidence"}),e.jsxs("div",{className:"mt-3 grid gap-3 sm:grid-cols-2",children:[e.jsx(o,{label:"Configuration version",value:d?.configurationVersion??s?.updatedAt??"Default"}),e.jsx(o,{label:"Pending queue",value:String(d?.pending??0)})]}),e.jsx("div",{className:"mt-4 space-y-2",children:d?.recent.length?d.recent.map(t=>e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2 rounded-md border border-border p-3 text-sm",children:[e.jsxs("span",{children:[t.target.toUpperCase()," · ",t.status]}),e.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.progress??0,"% · ",new Date(t.createdAt).toLocaleString()]}),t.error?e.jsx("span",{className:"w-full text-xs text-destructive",children:t.error}):null]},t.id)):e.jsx("p",{className:"text-sm text-muted-foreground",children:"No rebuild jobs have been scheduled."})})]})]})}function c({label:s,checked:i,onChange:d}){return e.jsxs("label",{className:"flex items-start justify-between gap-4 p-4",children:[e.jsx("span",{className:"text-sm font-medium",children:s}),e.jsx("input",{type:"checkbox",checked:i,onChange:n=>d(n.target.checked),className:"mt-1 h-4 w-4 rounded border-input"})]})}function o({label:s,value:i}){return e.jsxs("div",{className:"rounded-md border border-border p-3",children:[e.jsx("div",{className:"text-xs text-muted-foreground",children:s}),e.jsx("div",{className:"mt-1 text-sm font-medium",children:i})]})}export{k as IndexLifecyclePanel};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as e,u as S,r as g}from"./dashboard-CD-FFVRD.js";import{m as w,u as C,t as M}from"./AiConfigContext-BpPDKSzI.js";function A(t,r){return h(t)!==h(r)}function h(t){return Array.isArray(t)?`[${t.map(h).join(",")}]`:t&&typeof t=="object"?`{${Object.entries(t).filter(([,r])=>r!==void 0).sort(([r],[a])=>r.localeCompare(a)).map(([r,a])=>`${JSON.stringify(r)}:${h(a)}`).join(",")}}`:JSON.stringify(t)}const j=[{label:"General / Chat",name:"chatModel",description:"Used for assistant conversations and general text tasks."},{label:"OCR",name:"ocrModel",description:"Reads text from images and scanned pages."},{label:"Document Reader",name:"readerModel",description:"Extracts structure and content from documents."},{label:"Embedding",name:"embeddingModel",description:"Creates vectors for semantic search."},{label:"Indexer / Summarizer",name:"indexerModel",description:"Prepares and summarizes content for indexes."},{label:"Reranker",name:"rerankerModel",description:"Reorders search results by relevance."}];function k(){const{config:t,models:r,save:a,saving:m}=C(),d=S(),[c,o]=g.useState({}),[x,f]=g.useState(),[i,p]=g.useState({});g.useEffect(()=>{let s=!1;return queueMicrotask(()=>{s||o(t?.models??{})}),()=>{s=!0}},[t]);const b=A(c,t?.models??{}),y=async s=>{s.preventDefault(),await a({models:Object.fromEntries(j.map(({name:l})=>[l,c[l]||null]))})};return e.jsx(N,{title:"Model Assignments",description:"Choose a connected model for each Xpod capability. Unassigned capabilities use the system default.",onSubmit:y,onRestore:()=>a({models:Object.fromEntries(j.map(({name:s})=>[s,null]))}),saving:m,dirty:b,children:e.jsx("div",{className:"divide-y divide-border rounded-xl border border-border",children:j.map(s=>e.jsx(v,{...s,models:r,value:c[s.name],testing:x===s.name,testResult:i[s.name],onChange:l=>o(u=>({...u,[s.name]:l})),onTest:async l=>{f(s.name);try{await M(d.fetch,l),p(u=>({...u,[s.name]:"ready"}))}catch{p(u=>({...u,[s.name]:"failed"}))}finally{f(void 0)}}},s.name))})})}function v({label:t,name:r,description:a,models:m,value:d,testing:c,testResult:o,onChange:x,onTest:f}){const i=m.find(n=>n.ref===d),p=w(m,r),b=i?.capabilities.some(n=>["chat","embedding"].includes(n.toLowerCase()))===!0,l=[i?`Connected · credential ready · ${i.owner}`:d?"Selected model is no longer credential-ready":void 0,o==="ready"?"Probe succeeded":o==="failed"?"Probe failed; review AI Connection health":void 0].filter(Boolean).join(" · "),u=!!(d&&!i)||o==="failed";return e.jsxs("div",{"data-testid":"model-assignment-row",className:"grid gap-3 p-4 lg:grid-cols-[minmax(220px,1fr)_minmax(320px,440px)] lg:items-start",children:[e.jsxs("div",{className:"min-w-0 pt-1",children:[e.jsx("span",{className:"block text-sm font-medium text-foreground",children:t}),e.jsx("span",{className:"mt-0.5 block text-xs leading-5 text-muted-foreground",children:a})]}),e.jsxs("div",{"data-testid":"model-assignment-controls",className:"grid min-w-0 gap-2 sm:grid-cols-[minmax(0,1fr)_4.5rem] sm:items-start",children:[e.jsxs("label",{className:"min-w-0",children:[e.jsxs("span",{className:"sr-only",children:[t," model"]}),e.jsxs("select",{name:r,value:d??"",onChange:n=>x(n.target.value),className:"h-10 w-full rounded-md border border-input bg-background px-3 text-sm text-foreground",children:[e.jsx("option",{value:"",children:"System default"}),p.map(n=>e.jsxs("option",{value:n.ref,children:[n.displayName??n.id," · ",n.owner]},`${n.owner}:${n.id}`))]})]}),e.jsx("button",{type:"button","aria-label":`Test ${t} model`,disabled:!b||c,title:i?b?"Send a bounded readiness probe":"This model has no bounded probe endpoint":"Select a connected model first",onClick:()=>i&&void f(i),className:"h-10 w-full self-start rounded-md border border-input bg-background px-3 text-sm font-medium text-foreground hover:bg-accent disabled:opacity-50",children:c?"Testing…":"Test"}),l&&e.jsx("span",{role:"status",className:`text-xs sm:col-span-2 ${u?"text-destructive":"text-muted-foreground"}`,children:l})]})]})}function N({title:t,description:r,children:a,onSubmit:m,onRestore:d,footerActions:c,saving:o=!1,dirty:x=!0}){return e.jsxs("form",{onSubmit:m,className:"mx-auto flex w-full max-w-4xl flex-col gap-6 p-6",children:[e.jsxs("header",{children:[e.jsx("h1",{className:"text-2xl font-semibold tracking-tight text-foreground",children:t}),e.jsx("p",{className:"mt-2 max-w-2xl text-sm text-muted-foreground",children:r})]}),a,e.jsxs("div",{className:"flex justify-end gap-2 border-t border-border pt-4",children:[e.jsx("span",{role:"status",className:"mr-auto self-center text-xs text-muted-foreground",children:x?"Unsaved changes":"Applied"}),c,e.jsx("button",{type:"button",onClick:d,disabled:o||!d,className:"h-9 rounded-md border border-input bg-background px-3 text-sm font-medium hover:bg-accent disabled:opacity-50",children:"Restore defaults"}),e.jsx("button",{type:"submit",disabled:o||!m||!x,className:"h-9 rounded-md bg-primary px-3 text-sm font-medium text-primary-foreground disabled:opacity-50",children:o?"Saving…":"Save configuration"})]})]})}const E=Object.freeze(Object.defineProperty({__proto__:null,AiConfigForm:N,ModelAssignmentRow:v,ModelAssignmentsPanel:k},Symbol.toStringTag,{value:"Module"}));export{N as A,E as M,A as i};
|