zenml-nightly 0.64.0.dev20240811__py3-none-any.whl → 0.66.0.dev20240910__py3-none-any.whl
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.
- README.md +1 -1
- RELEASE_NOTES.md +126 -4
- zenml/VERSION +1 -1
- zenml/artifacts/utils.py +13 -6
- zenml/cli/__init__.py +1 -1
- zenml/cli/base.py +4 -4
- zenml/cli/integration.py +48 -9
- zenml/cli/pipeline.py +9 -2
- zenml/cli/stack.py +39 -27
- zenml/cli/utils.py +13 -0
- zenml/client.py +15 -17
- zenml/config/compiler.py +34 -0
- zenml/config/server_config.py +30 -0
- zenml/config/source.py +3 -7
- zenml/constants.py +5 -3
- zenml/entrypoints/base_entrypoint_configuration.py +41 -27
- zenml/entrypoints/step_entrypoint_configuration.py +5 -2
- zenml/enums.py +2 -0
- zenml/environment.py +31 -0
- zenml/feature_stores/base_feature_store.py +4 -6
- zenml/integrations/__init__.py +3 -0
- zenml/integrations/airflow/flavors/airflow_orchestrator_flavor.py +9 -0
- zenml/integrations/aws/__init__.py +2 -2
- zenml/integrations/aws/orchestrators/sagemaker_orchestrator.py +2 -1
- zenml/integrations/azure/__init__.py +2 -2
- zenml/integrations/azure/azureml_utils.py +201 -0
- zenml/integrations/azure/flavors/azureml.py +139 -0
- zenml/integrations/azure/flavors/azureml_orchestrator_flavor.py +20 -118
- zenml/integrations/azure/flavors/azureml_step_operator_flavor.py +67 -14
- zenml/integrations/azure/orchestrators/azureml_orchestrator.py +58 -172
- zenml/integrations/azure/orchestrators/azureml_orchestrator_entrypoint_config.py +1 -0
- zenml/integrations/azure/service_connectors/azure_service_connector.py +4 -0
- zenml/integrations/azure/step_operators/azureml_step_operator.py +78 -177
- zenml/integrations/constants.py +3 -0
- zenml/integrations/databricks/__init__.py +22 -4
- zenml/integrations/databricks/flavors/databricks_orchestrator_flavor.py +9 -0
- zenml/integrations/deepchecks/__init__.py +29 -11
- zenml/integrations/deepchecks/materializers/deepchecks_dataset_materializer.py +3 -1
- zenml/integrations/deepchecks/validation_checks.py +0 -30
- zenml/integrations/evidently/__init__.py +17 -2
- zenml/integrations/facets/__init__.py +21 -5
- zenml/integrations/feast/__init__.py +19 -6
- zenml/integrations/gcp/__init__.py +2 -2
- zenml/integrations/gcp/flavors/vertex_orchestrator_flavor.py +9 -0
- zenml/integrations/gcp/orchestrators/vertex_orchestrator.py +10 -1
- zenml/integrations/great_expectations/__init__.py +21 -7
- zenml/integrations/huggingface/__init__.py +39 -15
- zenml/integrations/huggingface/materializers/__init__.py +3 -0
- zenml/integrations/huggingface/materializers/huggingface_datasets_materializer.py +3 -1
- zenml/integrations/huggingface/materializers/huggingface_pt_model_materializer.py +1 -1
- zenml/integrations/huggingface/materializers/huggingface_t5_materializer.py +107 -0
- zenml/integrations/huggingface/materializers/huggingface_tf_model_materializer.py +1 -1
- zenml/integrations/huggingface/materializers/huggingface_tokenizer_materializer.py +2 -2
- zenml/integrations/huggingface/steps/accelerate_runner.py +108 -85
- zenml/integrations/hyperai/flavors/hyperai_orchestrator_flavor.py +9 -0
- zenml/integrations/kubeflow/flavors/kubeflow_orchestrator_flavor.py +9 -0
- zenml/integrations/kubeflow/orchestrators/kubeflow_orchestrator.py +10 -1
- zenml/integrations/kubernetes/flavors/kubernetes_orchestrator_flavor.py +9 -0
- zenml/integrations/kubernetes/orchestrators/kubernetes_orchestrator.py +10 -1
- zenml/integrations/lightning/__init__.py +48 -0
- zenml/integrations/lightning/flavors/__init__.py +23 -0
- zenml/integrations/lightning/flavors/lightning_orchestrator_flavor.py +148 -0
- zenml/integrations/lightning/orchestrators/__init__.py +23 -0
- zenml/integrations/lightning/orchestrators/lightning_orchestrator.py +596 -0
- zenml/integrations/lightning/orchestrators/lightning_orchestrator_entrypoint.py +307 -0
- zenml/integrations/lightning/orchestrators/lightning_orchestrator_entrypoint_configuration.py +77 -0
- zenml/integrations/lightning/orchestrators/utils.py +67 -0
- zenml/integrations/mlflow/__init__.py +43 -5
- zenml/integrations/mlflow/services/mlflow_deployment.py +26 -0
- zenml/integrations/numpy/__init__.py +32 -0
- zenml/integrations/numpy/materializers/__init__.py +18 -0
- zenml/integrations/numpy/materializers/numpy_materializer.py +246 -0
- zenml/integrations/pandas/__init__.py +32 -0
- zenml/integrations/pandas/materializers/__init__.py +18 -0
- zenml/integrations/pandas/materializers/pandas_materializer.py +192 -0
- zenml/integrations/prodigy/annotators/prodigy_annotator.py +1 -1
- zenml/integrations/seldon/__init__.py +18 -3
- zenml/integrations/sklearn/__init__.py +1 -1
- zenml/integrations/skypilot_azure/__init__.py +1 -1
- zenml/integrations/tensorboard/__init__.py +1 -1
- zenml/integrations/tensorflow/__init__.py +2 -2
- zenml/integrations/tensorflow/materializers/tf_dataset_materializer.py +2 -2
- zenml/integrations/whylogs/__init__.py +18 -2
- zenml/logging/step_logging.py +9 -2
- zenml/materializers/__init__.py +0 -4
- zenml/materializers/base_materializer.py +4 -0
- zenml/materializers/numpy_materializer.py +23 -234
- zenml/materializers/pandas_materializer.py +22 -179
- zenml/model/model.py +91 -2
- zenml/model/utils.py +5 -5
- zenml/models/__init__.py +16 -3
- zenml/models/v2/core/model_version.py +1 -1
- zenml/models/v2/core/pipeline_run.py +31 -1
- zenml/models/v2/core/stack.py +51 -20
- zenml/models/v2/core/step_run.py +28 -0
- zenml/models/v2/misc/info_models.py +78 -0
- zenml/new/pipelines/pipeline.py +65 -25
- zenml/new/pipelines/run_utils.py +57 -136
- zenml/new/steps/step_context.py +17 -6
- zenml/orchestrators/base_orchestrator.py +9 -0
- zenml/orchestrators/step_launcher.py +37 -14
- zenml/orchestrators/step_runner.py +14 -13
- zenml/orchestrators/utils.py +107 -7
- zenml/service_connectors/service_connector_utils.py +2 -2
- zenml/stack/utils.py +11 -2
- zenml/stack_deployments/azure_stack_deployment.py +2 -1
- zenml/steps/base_step.py +62 -25
- zenml/steps/utils.py +115 -3
- zenml/utils/cloud_utils.py +8 -8
- zenml/utils/code_utils.py +130 -32
- zenml/utils/function_utils.py +7 -7
- zenml/utils/notebook_utils.py +14 -0
- zenml/utils/pipeline_docker_image_builder.py +1 -11
- zenml/utils/pydantic_utils.py +3 -3
- zenml/utils/secret_utils.py +2 -2
- zenml/utils/settings_utils.py +1 -1
- zenml/utils/source_utils.py +67 -21
- zenml/utils/string_utils.py +29 -0
- zenml/zen_server/dashboard/assets/{404-CRAA_Lew.js → 404-iO8vpun1.js} +1 -1
- zenml/zen_server/dashboard/assets/{@radix-BXWm7HOa.js → @radix-DnFH_oo1.js} +1 -1
- zenml/zen_server/dashboard/assets/{@react-router-l3lMcXA2.js → @react-router-APVeuk-U.js} +1 -1
- zenml/zen_server/dashboard/assets/{@reactflow-CeVxyqYT.js → @reactflow-B6kq9fJZ.js} +2 -2
- zenml/zen_server/dashboard/assets/{@tanstack-FmcYZMuX.js → @tanstack-QbMbTrh5.js} +1 -1
- zenml/zen_server/dashboard/assets/AlertDialogDropdownItem-BXeSvmMY.js +1 -0
- zenml/zen_server/dashboard/assets/{CodeSnippet-D0VLxT2A.js → CodeSnippet-DNWdQmbo.js} +2 -2
- zenml/zen_server/dashboard/assets/CollapsibleCard-B2OVjWYE.js +1 -0
- zenml/zen_server/dashboard/assets/Commands-DsoaVElZ.js +1 -0
- zenml/zen_server/dashboard/assets/CopyButton-BqE_-PHO.js +2 -0
- zenml/zen_server/dashboard/assets/{CsvVizualization-D3kAypDj.js → CsvVizualization-Dyasr2jU.js} +6 -6
- zenml/zen_server/dashboard/assets/{edit-C0MVvPD2.js → DialogItem-Cz1VLRwa.js} +1 -1
- zenml/zen_server/dashboard/assets/{DisplayDate-DizbSeT-.js → DisplayDate-DkCy54Bp.js} +1 -1
- zenml/zen_server/dashboard/assets/EditSecretDialog-Du423_3U.js +1 -0
- zenml/zen_server/dashboard/assets/{EmptyState-BHblM39I.js → EmptyState-Cs3DEmso.js} +1 -1
- zenml/zen_server/dashboard/assets/{Error-C6LeJSER.js → Error-DorJD_va.js} +1 -1
- zenml/zen_server/dashboard/assets/ExecutionStatus-CIfQTutR.js +1 -0
- zenml/zen_server/dashboard/assets/{Helpbox-aAB2XP-z.js → Helpbox-CmfvtNeq.js} +1 -1
- zenml/zen_server/dashboard/assets/Infobox-BL9NOS37.js +1 -0
- zenml/zen_server/dashboard/assets/{InlineAvatar-DpTLgM3Q.js → InlineAvatar-Ds2ZFHPc.js} +1 -1
- zenml/zen_server/dashboard/assets/{Lock-CNyJvf2r.js → Lock-CmIn0szs.js} +1 -1
- zenml/zen_server/dashboard/assets/{MarkdownVisualization-Bajxn0HY.js → MarkdownVisualization-DS05sfBm.js} +1 -1
- zenml/zen_server/dashboard/assets/{NumberBox-BmKE0qnO.js → NumberBox-CrN0_kqI.js} +1 -1
- zenml/zen_server/dashboard/assets/Partials-DX-8iEa1.js +1 -0
- zenml/zen_server/dashboard/assets/{PasswordChecker-yGGoJSB-.js → PasswordChecker-DE71J_3F.js} +1 -1
- zenml/zen_server/dashboard/assets/ProviderIcon-BOQJgapd.js +1 -0
- zenml/zen_server/dashboard/assets/ProviderRadio-BsYBw9YA.js +1 -0
- zenml/zen_server/dashboard/assets/SearchField-W3GXpLlI.js +1 -0
- zenml/zen_server/dashboard/assets/SetPassword-B-0a8UCj.js +1 -0
- zenml/zen_server/dashboard/assets/{Tick-uxv80Q6a.js → Tick-i1DYsVcX.js} +1 -1
- zenml/zen_server/dashboard/assets/{UpdatePasswordSchemas-oN4G3sKz.js → UpdatePasswordSchemas-C6Zb7ASL.js} +1 -1
- zenml/zen_server/dashboard/assets/UsageReason-CCnzmwS8.js +1 -0
- zenml/zen_server/dashboard/assets/WizardFooter-BHbO7zOa.js +1 -0
- zenml/zen_server/dashboard/assets/all-pipeline-runs-query-BBEe6I9-.js +1 -0
- zenml/zen_server/dashboard/assets/{check-circle-1_I207rW.js → check-circle-DOoS4yhF.js} +1 -1
- zenml/zen_server/dashboard/assets/{chevron-down-BpaF8JqM.js → chevron-down-Cwb-W_B_.js} +1 -1
- zenml/zen_server/dashboard/assets/{chevron-right-double-Dk8e2L99.js → chevron-right-double-c9H46Kl8.js} +1 -1
- zenml/zen_server/dashboard/assets/{cloud-only-BkUuI0lZ.js → cloud-only-BuP4Kt_7.js} +1 -1
- zenml/zen_server/dashboard/assets/code-browser-BJYErIjr.js +1 -0
- zenml/zen_server/dashboard/assets/codespaces-BitYDX9d.gif +0 -0
- zenml/zen_server/dashboard/assets/{copy-f3XGPPxt.js → copy-CaGlDsUy.js} +1 -1
- zenml/zen_server/dashboard/assets/create-stack-B2x2d4r1.js +1 -0
- zenml/zen_server/dashboard/assets/{docker-8uj__HHK.js → docker-BFAFXr2_.js} +1 -1
- zenml/zen_server/dashboard/assets/{dots-horizontal-sKQlWEni.js → dots-horizontal-C6K59vUm.js} +1 -1
- zenml/zen_server/dashboard/assets/flyte-Cj-xy_8I.svg +10 -0
- zenml/zen_server/dashboard/assets/form-schemas-Bap0f854.js +1 -0
- zenml/zen_server/dashboard/assets/gcp-Dj6ntk0L.js +1 -0
- zenml/zen_server/dashboard/assets/{help-FuHlZwn0.js → help-CwN931fX.js} +1 -1
- zenml/zen_server/dashboard/assets/{index-Bd1xgUQG.js → index-5GJ5ysEZ.js} +1 -1
- zenml/zen_server/dashboard/assets/{index-DaGknux4.css → index-6DYjZgDn.css} +1 -1
- zenml/zen_server/dashboard/assets/index-B9wVwe7u.js +55 -0
- zenml/zen_server/dashboard/assets/index-DFi8BroH.js +1 -0
- zenml/zen_server/dashboard/assets/{index.esm-DT4uyn2i.js → index.esm-BE1uqCX5.js} +1 -1
- zenml/zen_server/dashboard/assets/kubernetes-BjbR6D-1.js +1 -0
- zenml/zen_server/dashboard/assets/{layout-D6oiSbfd.js → layout-Dru15_XR.js} +1 -1
- zenml/zen_server/dashboard/assets/link-external-BT2L8hAQ.js +1 -0
- zenml/zen_server/dashboard/assets/{login-mutation-13A_JSVA.js → login-mutation-DwxUz8VA.js} +1 -1
- zenml/zen_server/dashboard/assets/{logs-CgeE2vZP.js → logs-GiDJXbLS.js} +1 -1
- zenml/zen_server/dashboard/assets/metaflow-weOkWNyT.svg +10 -0
- zenml/zen_server/dashboard/assets/{not-found-B0Mmb90p.js → not-found-D5i9DunU.js} +1 -1
- zenml/zen_server/dashboard/assets/{package-DdkziX79.js → package-DYKZ5jKW.js} +1 -1
- zenml/zen_server/dashboard/assets/page-BFuJICXM.js +9 -0
- zenml/zen_server/dashboard/assets/{page-BGwA9B1M.js → page-BiF8hLbO.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-DugsjcQ_.js → page-BitfWsiW.js} +1 -1
- zenml/zen_server/dashboard/assets/page-CDOQLrPC.js +1 -0
- zenml/zen_server/dashboard/assets/page-CEJWu1YO.js +1 -0
- zenml/zen_server/dashboard/assets/page-CIbehp7V.js +1 -0
- zenml/zen_server/dashboard/assets/page-CLiRGfWo.js +1 -0
- zenml/zen_server/dashboard/assets/page-CV44mQn9.js +1 -0
- zenml/zen_server/dashboard/assets/page-CrSdkteO.js +2 -0
- zenml/zen_server/dashboard/assets/page-D5F3DJjm.js +1 -0
- zenml/zen_server/dashboard/assets/page-DE03uZZR.js +1 -0
- zenml/zen_server/dashboard/assets/page-DFCK65G9.js +1 -0
- zenml/zen_server/dashboard/assets/{page-RnG-qhv9.js → page-DGMa3ZQL.js} +1 -1
- zenml/zen_server/dashboard/assets/page-DI-qTWrm.js +1 -0
- zenml/zen_server/dashboard/assets/page-DQGCHKrQ.js +1 -0
- zenml/zen_server/dashboard/assets/{page-DSTQnBk-.js → page-DQdwZZ9x.js} +1 -1
- zenml/zen_server/dashboard/assets/page-DgM-N9RL.js +1 -0
- zenml/zen_server/dashboard/assets/page-Dt8VgzbE.js +1 -0
- zenml/zen_server/dashboard/assets/{page-DLpOnf7u.js → page-J0s8Sq3N.js} +1 -1
- zenml/zen_server/dashboard/assets/page-WCQ659by.js +1 -0
- zenml/zen_server/dashboard/assets/page-bimkItOg.js +1 -0
- zenml/zen_server/dashboard/assets/{page-hQaiQXfg.js → page-iwoJnwPv.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-YiF_fNbe.js → page-oS4hqS8M.js} +1 -1
- zenml/zen_server/dashboard/assets/page-oSqx9dkH.js +1 -0
- zenml/zen_server/dashboard/assets/page-p3GqEAUW.js +1 -0
- zenml/zen_server/dashboard/assets/page-qvcUVPE-.js +1 -0
- zenml/zen_server/dashboard/assets/page-xQG6GmFJ.js +1 -0
- zenml/zen_server/dashboard/assets/{persist-3-5nOJ6m.js → persist-mEZN_fgH.js} +1 -1
- zenml/zen_server/dashboard/assets/persist-xsYgVtR1.js +1 -0
- zenml/zen_server/dashboard/assets/{plus-FB9-lEq_.js → plus-Bc8eLSDM.js} +1 -1
- zenml/zen_server/dashboard/assets/{refresh-COb6KYDi.js → refresh-hfgWPeto.js} +1 -1
- zenml/zen_server/dashboard/assets/rocket-SESCGQXm.js +1 -0
- zenml/zen_server/dashboard/assets/sharedSchema-BfZcy7aP.js +14 -0
- zenml/zen_server/dashboard/assets/stack-detail-query-CU4egfhp.js +1 -0
- zenml/zen_server/dashboard/assets/templates-1S_8WeSK.webp +0 -0
- zenml/zen_server/dashboard/assets/{trash-Cd5CSFqA.js → trash-DUWZWzse.js} +1 -1
- zenml/zen_server/dashboard/assets/{update-server-settings-mutation-B8GB_ubU.js → update-server-settings-mutation-DNqmQXDM.js} +1 -1
- zenml/zen_server/dashboard/assets/{url-hcMJkz8p.js → url-DwbuKk1b.js} +1 -1
- zenml/zen_server/dashboard/assets/{zod-CnykDKJj.js → zod-uFd1wBcd.js} +1 -1
- zenml/zen_server/dashboard/index.html +7 -7
- zenml/zen_server/dashboard_legacy/asset-manifest.json +4 -4
- zenml/zen_server/dashboard_legacy/index.html +1 -1
- zenml/zen_server/dashboard_legacy/{precache-manifest.9c473c96a43298343a7ce1256183123b.js → precache-manifest.290b95d5b43efa3368b3dc63d20c4782.js} +4 -4
- zenml/zen_server/dashboard_legacy/service-worker.js +1 -1
- zenml/zen_server/dashboard_legacy/static/js/{main.463c90b9.chunk.js → main.840d1bf0.chunk.js} +2 -2
- zenml/zen_server/dashboard_legacy/static/js/{main.463c90b9.chunk.js.map → main.840d1bf0.chunk.js.map} +1 -1
- zenml/zen_server/deploy/helm/Chart.yaml +1 -1
- zenml/zen_server/deploy/helm/README.md +2 -2
- zenml/zen_server/routers/service_connectors_endpoints.py +2 -4
- zenml/zen_server/routers/workspaces_endpoints.py +20 -66
- zenml/zen_server/secure_headers.py +120 -0
- zenml/zen_server/template_execution/runner_entrypoint_configuration.py +0 -2
- zenml/zen_server/template_execution/utils.py +1 -0
- zenml/zen_server/utils.py +0 -100
- zenml/zen_server/zen_server_api.py +4 -2
- zenml/zen_stores/migrations/versions/0.65.0_release.py +23 -0
- zenml/zen_stores/migrations/versions/0.66.0_release.py +23 -0
- zenml/zen_stores/migrations/versions/bf2120261b5a_add_configured_model_version_id.py +74 -0
- zenml/zen_stores/rest_zen_store.py +4 -21
- zenml/zen_stores/schemas/constants.py +16 -0
- zenml/zen_stores/schemas/model_schemas.py +9 -3
- zenml/zen_stores/schemas/pipeline_run_schemas.py +22 -8
- zenml/zen_stores/schemas/step_run_schemas.py +23 -12
- zenml/zen_stores/sql_zen_store.py +312 -300
- zenml/zen_stores/zen_store_interface.py +0 -16
- {zenml_nightly-0.64.0.dev20240811.dist-info → zenml_nightly-0.66.0.dev20240910.dist-info}/METADATA +10 -12
- {zenml_nightly-0.64.0.dev20240811.dist-info → zenml_nightly-0.66.0.dev20240910.dist-info}/RECORD +249 -217
- zenml/models/v2/misc/full_stack.py +0 -129
- zenml/new/pipelines/model_utils.py +0 -72
- zenml/zen_server/dashboard/assets/AlertDialogDropdownItem-ErO9aOgK.js +0 -1
- zenml/zen_server/dashboard/assets/AwarenessChannel-CLXo5rKM.js +0 -1
- zenml/zen_server/dashboard/assets/CollapsibleCard-BaUPiVg0.js +0 -1
- zenml/zen_server/dashboard/assets/Commands-JrcZK-3j.js +0 -1
- zenml/zen_server/dashboard/assets/CopyButton-Dbo52T1K.js +0 -2
- zenml/zen_server/dashboard/assets/EditSecretDialog-Bd7mFLS4.js +0 -1
- zenml/zen_server/dashboard/assets/ExecutionStatus-jH4OrWBq.js +0 -1
- zenml/zen_server/dashboard/assets/Infobox-BQ0aty32.js +0 -1
- zenml/zen_server/dashboard/assets/ProviderRadio-BBqkIuTd.js +0 -1
- zenml/zen_server/dashboard/assets/RadioItem-xLhXoiFV.js +0 -1
- zenml/zen_server/dashboard/assets/SearchField-C9R0mdaX.js +0 -1
- zenml/zen_server/dashboard/assets/SetPassword-52sNxNiO.js +0 -1
- zenml/zen_server/dashboard/assets/SuccessStep-DlkItqYG.js +0 -1
- zenml/zen_server/dashboard/assets/aws-0_3UsPif.js +0 -1
- zenml/zen_server/dashboard/assets/database-cXYNX9tt.js +0 -1
- zenml/zen_server/dashboard/assets/file-text-B9JibxTs.js +0 -1
- zenml/zen_server/dashboard/assets/index-DhIZtpxB.js +0 -55
- zenml/zen_server/dashboard/assets/page-7-v2OBm-.js +0 -1
- zenml/zen_server/dashboard/assets/page-B3ozwdD1.js +0 -1
- zenml/zen_server/dashboard/assets/page-BkjAUyTA.js +0 -1
- zenml/zen_server/dashboard/assets/page-BnacgBiy.js +0 -1
- zenml/zen_server/dashboard/assets/page-BxF_KMQ3.js +0 -2
- zenml/zen_server/dashboard/assets/page-C4POHC0K.js +0 -1
- zenml/zen_server/dashboard/assets/page-C9kudd44.js +0 -9
- zenml/zen_server/dashboard/assets/page-CA1j3GpJ.js +0 -1
- zenml/zen_server/dashboard/assets/page-CCY6yfmu.js +0 -1
- zenml/zen_server/dashboard/assets/page-CgTe7Bme.js +0 -1
- zenml/zen_server/dashboard/assets/page-Cgn-6v2Y.js +0 -1
- zenml/zen_server/dashboard/assets/page-CxQmQqDw.js +0 -1
- zenml/zen_server/dashboard/assets/page-D2Goey3H.js +0 -1
- zenml/zen_server/dashboard/assets/page-DTysUGOy.js +0 -1
- zenml/zen_server/dashboard/assets/page-D_EXUFJb.js +0 -1
- zenml/zen_server/dashboard/assets/page-Db15QzsM.js +0 -1
- zenml/zen_server/dashboard/assets/page-OFKSPyN7.js +0 -1
- zenml/zen_server/dashboard/assets/page-T2BtjwPl.js +0 -1
- zenml/zen_server/dashboard/assets/page-TXe1Eo3Z.js +0 -1
- zenml/zen_server/dashboard/assets/play-circle-XSkLR12B.js +0 -1
- zenml/zen_server/dashboard/assets/sharedSchema-BoYx_B_L.js +0 -14
- zenml/zen_server/dashboard/assets/stack-detail-query-B-US_-wa.js +0 -1
- zenml/zen_server/dashboard/assets/terminal-grtjrIEJ.js +0 -1
- {zenml_nightly-0.64.0.dev20240811.dist-info → zenml_nightly-0.66.0.dev20240910.dist-info}/LICENSE +0 -0
- {zenml_nightly-0.64.0.dev20240811.dist-info → zenml_nightly-0.66.0.dev20240910.dist-info}/WHEEL +0 -0
- {zenml_nightly-0.64.0.dev20240811.dist-info → zenml_nightly-0.66.0.dev20240910.dist-info}/entry_points.txt +0 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
var dt=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var u=(e,t,n)=>(dt(e,t,"read from private field"),n?n.call(e):t.get(e)),C=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},v=(e,t,n,i)=>(dt(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n);var Ze=(e,t,n,i)=>({set _(s){v(e,t,s,n)},get _(){return u(e,t,i)}}),_=(e,t,n)=>(dt(e,t,"access private method"),n);import{r as O,j as zn}from"./@radix-BXWm7HOa.js";var Le=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},He=typeof window>"u"||"Deno"in globalThis;function j(){}function bn(e,t){return typeof e=="function"?e(t):e}function Rt(e){return typeof e=="number"&&e>=0&&e!==1/0}function fn(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Nt(e,t){const{type:n="all",exact:i,fetchStatus:s,predicate:r,queryKey:o,stale:l}=e;if(o){if(i){if(t.queryHash!==bt(o,t.options))return!1}else if(!Te(t.queryKey,o))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||s&&s!==t.state.fetchStatus||r&&!r(t))}function Kt(e,t){const{exact:n,status:i,predicate:s,mutationKey:r}=e;if(r){if(!t.options.mutationKey)return!1;if(n){if(Re(t.options.mutationKey)!==Re(r))return!1}else if(!Te(t.options.mutationKey,r))return!1}return!(i&&t.state.status!==i||s&&!s(t))}function bt(e,t){return((t==null?void 0:t.queryKeyHashFn)||Re)(e)}function Re(e){return JSON.stringify(e,(t,n)=>yt(n)?Object.keys(n).sort().reduce((i,s)=>(i[s]=n[s],i),{}):n)}function Te(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Te(e[n],t[n])):!1}function Tt(e,t){if(e===t)return e;const n=Xt(e)&&Xt(t);if(n||yt(e)&&yt(t)){const i=n?e:Object.keys(e),s=i.length,r=n?t:Object.keys(t),o=r.length,l=n?[]:{};let a=0;for(let g=0;g<o;g++){const f=n?g:r[g];(!n&&i.includes(f)||n)&&e[f]===void 0&&t[f]===void 0?(l[f]=void 0,a++):(l[f]=Tt(e[f],t[f]),l[f]===e[f]&&e[f]!==void 0&&a++)}return s===o&&a===s?e:l}return t}function rt(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Xt(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function yt(e){if(!Wt(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Wt(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Wt(e){return Object.prototype.toString.call(e)==="[object Object]"}function Tn(e){return new Promise(t=>{setTimeout(t,e)})}function wt(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Tt(e,t):t}function qn(e,t,n=0){const i=[...e,t];return n&&i.length>n?i.slice(1):i}function Qn(e,t,n=0){const i=[t,...e];return n&&i.length>n?i.slice(0,-1):i}var hn=Symbol(),pn=(e,t)=>!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===hn?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn,ge,ne,ye,nn,Un=(nn=class extends Le{constructor(){super();C(this,ge,void 0);C(this,ne,void 0);C(this,ye,void 0);v(this,ye,t=>{if(!He&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){u(this,ne)||this.setEventListener(u(this,ye))}onUnsubscribe(){var t;this.hasListeners()||((t=u(this,ne))==null||t.call(this),v(this,ne,void 0))}setEventListener(t){var n;v(this,ye,t),(n=u(this,ne))==null||n.call(this),v(this,ne,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){u(this,ge)!==t&&(v(this,ge,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof u(this,ge)=="boolean"?u(this,ge):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ge=new WeakMap,ne=new WeakMap,ye=new WeakMap,nn),qt=new Un,we,ie,Fe,sn,kn=(sn=class extends Le{constructor(){super();C(this,we,!0);C(this,ie,void 0);C(this,Fe,void 0);v(this,Fe,t=>{if(!He&&window.addEventListener){const n=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",i)}}})}onSubscribe(){u(this,ie)||this.setEventListener(u(this,Fe))}onUnsubscribe(){var t;this.hasListeners()||((t=u(this,ie))==null||t.call(this),v(this,ie,void 0))}setEventListener(t){var n;v(this,Fe,t),(n=u(this,ie))==null||n.call(this),v(this,ie,t(this.setOnline.bind(this)))}setOnline(t){u(this,we)!==t&&(v(this,we,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return u(this,we)}},we=new WeakMap,ie=new WeakMap,Fe=new WeakMap,sn),ot=new kn;function jn(e){return Math.min(1e3*2**e,3e4)}function mn(e){return(e??"online")==="online"?ot.isOnline():!0}var vn=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function gt(e){return e instanceof vn}function Sn(e){let t=!1,n=0,i=!1,s,r,o;const l=new Promise((S,P)=>{r=S,o=P}),a=S=>{var P;i||(p(new vn(S)),(P=e.abort)==null||P.call(e))},g=()=>{t=!0},f=()=>{t=!1},h=()=>qt.isFocused()&&(e.networkMode==="always"||ot.isOnline())&&e.canRun(),d=()=>mn(e.networkMode)&&e.canRun(),c=S=>{var P;i||(i=!0,(P=e.onSuccess)==null||P.call(e,S),s==null||s(),r(S))},p=S=>{var P;i||(i=!0,(P=e.onError)==null||P.call(e,S),s==null||s(),o(S))},m=()=>new Promise(S=>{var P;s=R=>{(i||h())&&S(R)},(P=e.onPause)==null||P.call(e)}).then(()=>{var S;s=void 0,i||(S=e.onContinue)==null||S.call(e)}),y=()=>{if(i)return;let S;const P=n===0?e.initialPromise:void 0;try{S=P??e.fn()}catch(R){S=Promise.reject(R)}Promise.resolve(S).then(c).catch(R=>{var M;if(i)return;const $=e.retry??(He?0:3),I=e.retryDelay??jn,G=typeof I=="function"?I(n,R):I,U=$===!0||typeof $=="number"&&n<$||typeof $=="function"&&$(n,R);if(t||!U){p(R);return}n++,(M=e.onFail)==null||M.call(e,n,R),Tn(G).then(()=>h()?void 0:m()).then(()=>{t?p(R):y()})})};return{promise:l,cancel:a,continue:()=>(s==null||s(),l),cancelRetry:g,continueRetry:f,canStart:d,start:()=>(d()?y():m().then(y),l)}}function Bn(){let e=[],t=0,n=d=>{d()},i=d=>{d()},s=d=>setTimeout(d,0);const r=d=>{s=d},o=d=>{let c;t++;try{c=d()}finally{t--,t||g()}return c},l=d=>{t?e.push(d):s(()=>{n(d)})},a=d=>(...c)=>{l(()=>{d(...c)})},g=()=>{const d=e;e=[],d.length&&s(()=>{i(()=>{d.forEach(c=>{n(c)})})})};return{batch:o,batchCalls:a,schedule:l,setNotifyFunction:d=>{n=d},setBatchNotifyFunction:d=>{i=d},setScheduler:r}}var V=Bn(),fe,rn,Cn=(rn=class{constructor(){C(this,fe,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Rt(this.gcTime)&&v(this,fe,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(He?1/0:5*60*1e3))}clearGcTimeout(){u(this,fe)&&(clearTimeout(u(this,fe)),v(this,fe,void 0))}},fe=new WeakMap,rn),Pe,_e,k,A,qe,he,B,Y,on,Nn=(on=class extends Cn{constructor(t){super();C(this,B);C(this,Pe,void 0);C(this,_e,void 0);C(this,k,void 0);C(this,A,void 0);C(this,qe,void 0);C(this,he,void 0);v(this,he,!1),v(this,qe,t.defaultOptions),this.setOptions(t.options),this.observers=[],v(this,k,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,v(this,Pe,t.state||Kn(this.options)),this.state=u(this,Pe),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=u(this,A))==null?void 0:t.promise}setOptions(t){this.options={...u(this,qe),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&u(this,k).remove(this)}setData(t,n){const i=wt(this.state.data,t,this.options);return _(this,B,Y).call(this,{data:i,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),i}setState(t,n){_(this,B,Y).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var i,s;const n=(i=u(this,A))==null?void 0:i.promise;return(s=u(this,A))==null||s.cancel(t),n?n.then(j).catch(j):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(u(this,Pe))}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!fn(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(i=>i.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=u(this,A))==null||n.continue()}onOnline(){var n;const t=this.observers.find(i=>i.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=u(this,A))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),u(this,k).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(u(this,A)&&(u(this,he)?u(this,A).cancel({revert:!0}):u(this,A).cancelRetry()),this.scheduleGc()),u(this,k).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||_(this,B,Y).call(this,{type:"invalidate"})}fetch(t,n){var a,g,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(u(this,A))return u(this,A).continueRetry(),u(this,A).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(d=>d.options.queryFn);h&&this.setOptions(h.options)}const i=new AbortController,s=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(v(this,he,!0),i.signal)})},r=()=>{const h=pn(this.options,n),d={queryKey:this.queryKey,meta:this.meta};return s(d),v(this,he,!1),this.options.persister?this.options.persister(h,d,this):h(d)},o={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:r};s(o),(a=this.options.behavior)==null||a.onFetch(o,this),v(this,_e,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=o.fetchOptions)==null?void 0:g.meta))&&_(this,B,Y).call(this,{type:"fetch",meta:(f=o.fetchOptions)==null?void 0:f.meta});const l=h=>{var d,c,p,m;gt(h)&&h.silent||_(this,B,Y).call(this,{type:"error",error:h}),gt(h)||((c=(d=u(this,k).config).onError)==null||c.call(d,h,this),(m=(p=u(this,k).config).onSettled)==null||m.call(p,this.state.data,h,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return v(this,A,Sn({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,abort:i.abort.bind(i),onSuccess:h=>{var d,c,p,m;if(h===void 0){l(new Error(`${this.queryHash} data is undefined`));return}this.setData(h),(c=(d=u(this,k).config).onSuccess)==null||c.call(d,h,this),(m=(p=u(this,k).config).onSettled)==null||m.call(p,h,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(h,d)=>{_(this,B,Y).call(this,{type:"failed",failureCount:h,error:d})},onPause:()=>{_(this,B,Y).call(this,{type:"pause"})},onContinue:()=>{_(this,B,Y).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),u(this,A).start()}},Pe=new WeakMap,_e=new WeakMap,k=new WeakMap,A=new WeakMap,qe=new WeakMap,he=new WeakMap,B=new WeakSet,Y=function(t){const n=i=>{switch(t.type){case"failed":return{...i,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...Rn(i.data,this.options),fetchMeta:t.meta??null};case"success":return{...i,data:t.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return gt(s)&&s.revert&&u(this,_e)?{...u(this,_e),fetchStatus:"idle"}:{...i,error:s,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...t.state}}};this.state=n(this.state),V.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),u(this,k).notify({query:this,type:"updated",action:t})})},on);function Rn(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:mn(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Kn(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,i=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var K,un,Xn=(un=class extends Le{constructor(t={}){super();C(this,K,void 0);this.config=t,v(this,K,new Map)}build(t,n,i){const s=n.queryKey,r=n.queryHash??bt(s,n);let o=this.get(r);return o||(o=new Nn({cache:this,queryKey:s,queryHash:r,options:t.defaultQueryOptions(n),state:i,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){u(this,K).has(t.queryHash)||(u(this,K).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=u(this,K).get(t.queryHash);n&&(t.destroy(),n===t&&u(this,K).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){V.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return u(this,K).get(t)}getAll(){return[...u(this,K).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(i=>Nt(n,i))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(i=>Nt(t,i)):n}notify(t){V.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){V.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){V.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},K=new WeakMap,un),X,H,pe,W,te,ln,Wn=(ln=class extends Cn{constructor(t){super();C(this,W);C(this,X,void 0);C(this,H,void 0);C(this,pe,void 0);this.mutationId=t.mutationId,v(this,H,t.mutationCache),v(this,X,[]),this.state=t.state||yn(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){u(this,X).includes(t)||(u(this,X).push(t),this.clearGcTimeout(),u(this,H).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){v(this,X,u(this,X).filter(n=>n!==t)),this.scheduleGc(),u(this,H).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){u(this,X).length||(this.state.status==="pending"?this.scheduleGc():u(this,H).remove(this))}continue(){var t;return((t=u(this,pe))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,r,o,l,a,g,f,h,d,c,p,m,y,S,P,R,$,I,G,U;v(this,pe,Sn({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(M,T)=>{_(this,W,te).call(this,{type:"failed",failureCount:M,error:T})},onPause:()=>{_(this,W,te).call(this,{type:"pause"})},onContinue:()=>{_(this,W,te).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>u(this,H).canRun(this)}));const n=this.state.status==="pending",i=!u(this,pe).canStart();try{if(!n){_(this,W,te).call(this,{type:"pending",variables:t,isPaused:i}),await((r=(s=u(this,H).config).onMutate)==null?void 0:r.call(s,t,this));const T=await((l=(o=this.options).onMutate)==null?void 0:l.call(o,t));T!==this.state.context&&_(this,W,te).call(this,{type:"pending",context:T,variables:t,isPaused:i})}const M=await u(this,pe).start();return await((g=(a=u(this,H).config).onSuccess)==null?void 0:g.call(a,M,t,this.state.context,this)),await((h=(f=this.options).onSuccess)==null?void 0:h.call(f,M,t,this.state.context)),await((c=(d=u(this,H).config).onSettled)==null?void 0:c.call(d,M,null,this.state.variables,this.state.context,this)),await((m=(p=this.options).onSettled)==null?void 0:m.call(p,M,null,t,this.state.context)),_(this,W,te).call(this,{type:"success",data:M}),M}catch(M){try{throw await((S=(y=u(this,H).config).onError)==null?void 0:S.call(y,M,t,this.state.context,this)),await((R=(P=this.options).onError)==null?void 0:R.call(P,M,t,this.state.context)),await((I=($=u(this,H).config).onSettled)==null?void 0:I.call($,void 0,M,this.state.variables,this.state.context,this)),await((U=(G=this.options).onSettled)==null?void 0:U.call(G,void 0,M,t,this.state.context)),M}finally{_(this,W,te).call(this,{type:"error",error:M})}}finally{u(this,H).runNext(this)}}},X=new WeakMap,H=new WeakMap,pe=new WeakMap,W=new WeakSet,te=function(t){const n=i=>{switch(t.type){case"failed":return{...i,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...i,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:t.error,failureCount:i.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),V.batch(()=>{u(this,X).forEach(i=>{i.onMutationUpdate(t)}),u(this,H).notify({mutation:this,type:"updated",action:t})})},ln);function yn(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var q,Qe,an,Jn=(an=class extends Le{constructor(t={}){super();C(this,q,void 0);C(this,Qe,void 0);this.config=t,v(this,q,new Map),v(this,Qe,Date.now())}build(t,n,i){const s=new Wn({mutationCache:this,mutationId:++Ze(this,Qe)._,options:t.defaultMutationOptions(n),state:i});return this.add(s),s}add(t){const n=et(t),i=u(this,q).get(n)??[];i.push(t),u(this,q).set(n,i),this.notify({type:"added",mutation:t})}remove(t){var i;const n=et(t);if(u(this,q).has(n)){const s=(i=u(this,q).get(n))==null?void 0:i.filter(r=>r!==t);s&&(s.length===0?u(this,q).delete(n):u(this,q).set(n,s))}this.notify({type:"removed",mutation:t})}canRun(t){var i;const n=(i=u(this,q).get(et(t)))==null?void 0:i.find(s=>s.state.status==="pending");return!n||n===t}runNext(t){var i;const n=(i=u(this,q).get(et(t)))==null?void 0:i.find(s=>s!==t&&s.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){V.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...u(this,q).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(i=>Kt(n,i))}findAll(t={}){return this.getAll().filter(n=>Kt(t,n))}notify(t){V.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return V.batch(()=>Promise.all(t.map(n=>n.continue().catch(j))))}},q=new WeakMap,Qe=new WeakMap,an);function et(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Ft(e){return{onFetch:(t,n)=>{const i=async()=>{var p,m,y,S,P;const s=t.options,r=(y=(m=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:m.fetchMore)==null?void 0:y.direction,o=((S=t.state.data)==null?void 0:S.pages)||[],l=((P=t.state.data)==null?void 0:P.pageParams)||[],a={pages:[],pageParams:[]};let g=!1;const f=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},h=pn(t.options,t.fetchOptions),d=async(R,$,I)=>{if(g)return Promise.reject();if($==null&&R.pages.length)return Promise.resolve(R);const G={queryKey:t.queryKey,pageParam:$,direction:I?"backward":"forward",meta:t.options.meta};f(G);const U=await h(G),{maxPages:M}=t.options,T=I?Qn:qn;return{pages:T(R.pages,U,M),pageParams:T(R.pageParams,$,M)}};let c;if(r&&o.length){const R=r==="backward",$=R?wn:Pt,I={pages:o,pageParams:l},G=$(s,I);c=await d(I,G,R)}else{c=await d(a,l[0]??s.initialPageParam);const R=e??o.length;for(let $=1;$<R;$++){const I=Pt(s,c);c=await d(c,I)}}return c};t.options.persister?t.fetchFn=()=>{var s,r;return(r=(s=t.options).persister)==null?void 0:r.call(s,i,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=i}}}function Pt(e,{pages:t,pageParams:n}){const i=t.length-1;return e.getNextPageParam(t[i],t,n[i],n)}function wn(e,{pages:t,pageParams:n}){var i;return(i=e.getPreviousPageParam)==null?void 0:i.call(e,t[0],t,n[0],n)}function Yn(e,t){return t?Pt(e,t)!=null:!1}function Zn(e,t){return!t||!e.getPreviousPageParam?!1:wn(e,t)!=null}var E,se,re,Me,$e,oe,xe,Ie,cn,os=(cn=class{constructor(e={}){C(this,E,void 0);C(this,se,void 0);C(this,re,void 0);C(this,Me,void 0);C(this,$e,void 0);C(this,oe,void 0);C(this,xe,void 0);C(this,Ie,void 0);v(this,E,e.queryCache||new Xn),v(this,se,e.mutationCache||new Jn),v(this,re,e.defaultOptions||{}),v(this,Me,new Map),v(this,$e,new Map),v(this,oe,0)}mount(){Ze(this,oe)._++,u(this,oe)===1&&(v(this,xe,qt.subscribe(async e=>{e&&(await this.resumePausedMutations(),u(this,E).onFocus())})),v(this,Ie,ot.subscribe(async e=>{e&&(await this.resumePausedMutations(),u(this,E).onOnline())})))}unmount(){var e,t;Ze(this,oe)._--,u(this,oe)===0&&((e=u(this,xe))==null||e.call(this),v(this,xe,void 0),(t=u(this,Ie))==null||t.call(this),v(this,Ie,void 0))}isFetching(e){return u(this,E).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return u(this,se).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=u(this,E).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),i=u(this,E).build(this,n);return e.revalidateIfStale&&i.isStaleByTime(n.staleTime)&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return u(this,E).findAll(e).map(({queryKey:t,state:n})=>{const i=n.data;return[t,i]})}setQueryData(e,t,n){const i=this.defaultQueryOptions({queryKey:e}),s=u(this,E).get(i.queryHash),r=s==null?void 0:s.state.data,o=bn(t,r);if(o!==void 0)return u(this,E).build(this,i).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return V.batch(()=>u(this,E).findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=u(this,E).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=u(this,E);V.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=u(this,E),i={type:"active",...e};return V.batch(()=>(n.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries(i,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},i=V.batch(()=>u(this,E).findAll(e).map(s=>s.cancel(n)));return Promise.all(i).then(j).catch(j)}invalidateQueries(e={},t={}){return V.batch(()=>{if(u(this,E).findAll(e).forEach(i=>{i.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},i=V.batch(()=>u(this,E).findAll(e).filter(s=>!s.isDisabled()).map(s=>{let r=s.fetch(void 0,n);return n.throwOnError||(r=r.catch(j)),s.state.fetchStatus==="paused"?Promise.resolve():r}));return Promise.all(i).then(j)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=u(this,E).build(this,t);return n.isStaleByTime(t.staleTime)?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(j).catch(j)}fetchInfiniteQuery(e){return e.behavior=Ft(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(j).catch(j)}resumePausedMutations(){return ot.isOnline()?u(this,se).resumePausedMutations():Promise.resolve()}getQueryCache(){return u(this,E)}getMutationCache(){return u(this,se)}getDefaultOptions(){return u(this,re)}setDefaultOptions(e){v(this,re,e)}setQueryDefaults(e,t){u(this,Me).set(Re(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...u(this,Me).values()];let n={};return t.forEach(i=>{Te(e,i.queryKey)&&(n={...n,...i.defaultOptions})}),n}setMutationDefaults(e,t){u(this,$e).set(Re(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...u(this,$e).values()];let n={};return t.forEach(i=>{Te(e,i.mutationKey)&&(n={...n,...i.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...u(this,re).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=bt(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===hn&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...u(this,re).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){u(this,E).clear(),u(this,se).clear()}},E=new WeakMap,se=new WeakMap,re=new WeakMap,Me=new WeakMap,$e=new WeakMap,oe=new WeakMap,xe=new WeakMap,Ie=new WeakMap,cn),z,x,Ue,L,me,Oe,J,ke,Ee,Ve,ve,Se,ue,De,Ce,ze,je,_t,Be,Mt,Ne,$t,Ke,xt,Xe,It,We,Ot,Je,Et,ut,Pn,dn,Fn=(dn=class extends Le{constructor(t,n){super();C(this,Ce);C(this,je);C(this,Be);C(this,Ne);C(this,Ke);C(this,Xe);C(this,We);C(this,Je);C(this,ut);C(this,z,void 0);C(this,x,void 0);C(this,Ue,void 0);C(this,L,void 0);C(this,me,void 0);C(this,Oe,void 0);C(this,J,void 0);C(this,ke,void 0);C(this,Ee,void 0);C(this,Ve,void 0);C(this,ve,void 0);C(this,Se,void 0);C(this,ue,void 0);C(this,De,new Set);this.options=n,v(this,z,t),v(this,J,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(u(this,x).addObserver(this),Jt(u(this,x),this.options)?_(this,Ce,ze).call(this):this.updateResult(),_(this,Ke,xt).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Vt(u(this,x),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Vt(u(this,x),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,_(this,Xe,It).call(this),_(this,We,Ot).call(this),u(this,x).removeObserver(this)}setOptions(t,n){const i=this.options,s=u(this,x);if(this.options=u(this,z).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");_(this,Je,Et).call(this),u(this,x).setOptions(this.options),i._defaulted&&!rt(this.options,i)&&u(this,z).getQueryCache().notify({type:"observerOptionsUpdated",query:u(this,x),observer:this});const r=this.hasListeners();r&&Yt(u(this,x),s,this.options,i)&&_(this,Ce,ze).call(this),this.updateResult(n),r&&(u(this,x)!==s||this.options.enabled!==i.enabled||this.options.staleTime!==i.staleTime)&&_(this,je,_t).call(this);const o=_(this,Be,Mt).call(this);r&&(u(this,x)!==s||this.options.enabled!==i.enabled||o!==u(this,ue))&&_(this,Ne,$t).call(this,o)}getOptimisticResult(t){const n=u(this,z).getQueryCache().build(u(this,z),t),i=this.createResult(n,t);return ti(this,i)&&(v(this,L,i),v(this,Oe,this.options),v(this,me,u(this,x).state)),i}getCurrentResult(){return u(this,L)}trackResult(t,n){const i={};return Object.keys(t).forEach(s=>{Object.defineProperty(i,s,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(s),n==null||n(s),t[s])})}),i}trackProp(t){u(this,De).add(t)}getCurrentQuery(){return u(this,x)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=u(this,z).defaultQueryOptions(t),i=u(this,z).getQueryCache().build(u(this,z),n);return i.isFetchingOptimistic=!0,i.fetch().then(()=>this.createResult(i,n))}fetch(t){return _(this,Ce,ze).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),u(this,L)))}createResult(t,n){var U;const i=u(this,x),s=this.options,r=u(this,L),o=u(this,me),l=u(this,Oe),g=t!==i?t.state:u(this,Ue),{state:f}=t;let h={...f},d=!1,c;if(n._optimisticResults){const M=this.hasListeners(),T=!M&&Jt(t,n),ct=M&&Yt(t,i,n,s);(T||ct)&&(h={...h,...Rn(f.data,t.options)}),n._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:p,errorUpdatedAt:m,status:y}=h;if(n.select&&h.data!==void 0)if(r&&h.data===(o==null?void 0:o.data)&&n.select===u(this,ke))c=u(this,Ee);else try{v(this,ke,n.select),c=n.select(h.data),c=wt(r==null?void 0:r.data,c,n),v(this,Ee,c),v(this,J,null)}catch(M){v(this,J,M)}else c=h.data;if(n.placeholderData!==void 0&&c===void 0&&y==="pending"){let M;if(r!=null&&r.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData))M=r.data;else if(M=typeof n.placeholderData=="function"?n.placeholderData((U=u(this,Ve))==null?void 0:U.state.data,u(this,Ve)):n.placeholderData,n.select&&M!==void 0)try{M=n.select(M),v(this,J,null)}catch(T){v(this,J,T)}M!==void 0&&(y="success",c=wt(r==null?void 0:r.data,M,n),d=!0)}u(this,J)&&(p=u(this,J),c=u(this,Ee),m=Date.now(),y="error");const S=h.fetchStatus==="fetching",P=y==="pending",R=y==="error",$=P&&S,I=c!==void 0;return{status:y,fetchStatus:h.fetchStatus,isPending:P,isSuccess:y==="success",isError:R,isInitialLoading:$,isLoading:$,data:c,dataUpdatedAt:h.dataUpdatedAt,error:p,errorUpdatedAt:m,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>g.dataUpdateCount||h.errorUpdateCount>g.errorUpdateCount,isFetching:S,isRefetching:S&&!P,isLoadingError:R&&!I,isPaused:h.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:R&&I,isStale:Qt(t,n),refetch:this.refetch}}updateResult(t){const n=u(this,L),i=this.createResult(u(this,x),this.options);if(v(this,me,u(this,x).state),v(this,Oe,this.options),u(this,me).data!==void 0&&v(this,Ve,u(this,x)),rt(i,n))return;v(this,L,i);const s={},r=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,l=typeof o=="function"?o():o;if(l==="all"||!l&&!u(this,De).size)return!0;const a=new Set(l??u(this,De));return this.options.throwOnError&&a.add("error"),Object.keys(u(this,L)).some(g=>{const f=g;return u(this,L)[f]!==n[f]&&a.has(f)})};(t==null?void 0:t.listeners)!==!1&&r()&&(s.listeners=!0),_(this,ut,Pn).call(this,{...s,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&_(this,Ke,xt).call(this)}},z=new WeakMap,x=new WeakMap,Ue=new WeakMap,L=new WeakMap,me=new WeakMap,Oe=new WeakMap,J=new WeakMap,ke=new WeakMap,Ee=new WeakMap,Ve=new WeakMap,ve=new WeakMap,Se=new WeakMap,ue=new WeakMap,De=new WeakMap,Ce=new WeakSet,ze=function(t){_(this,Je,Et).call(this);let n=u(this,x).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(j)),n},je=new WeakSet,_t=function(){if(_(this,Xe,It).call(this),He||u(this,L).isStale||!Rt(this.options.staleTime))return;const n=fn(u(this,L).dataUpdatedAt,this.options.staleTime)+1;v(this,ve,setTimeout(()=>{u(this,L).isStale||this.updateResult()},n))},Be=new WeakSet,Mt=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(u(this,x)):this.options.refetchInterval)??!1},Ne=new WeakSet,$t=function(t){_(this,We,Ot).call(this),v(this,ue,t),!(He||this.options.enabled===!1||!Rt(u(this,ue))||u(this,ue)===0)&&v(this,Se,setInterval(()=>{(this.options.refetchIntervalInBackground||qt.isFocused())&&_(this,Ce,ze).call(this)},u(this,ue)))},Ke=new WeakSet,xt=function(){_(this,je,_t).call(this),_(this,Ne,$t).call(this,_(this,Be,Mt).call(this))},Xe=new WeakSet,It=function(){u(this,ve)&&(clearTimeout(u(this,ve)),v(this,ve,void 0))},We=new WeakSet,Ot=function(){u(this,Se)&&(clearInterval(u(this,Se)),v(this,Se,void 0))},Je=new WeakSet,Et=function(){const t=u(this,z).getQueryCache().build(u(this,z),this.options);if(t===u(this,x))return;const n=u(this,x);v(this,x,t),v(this,Ue,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},ut=new WeakSet,Pn=function(t){V.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(u(this,L))}),u(this,z).getQueryCache().notify({query:u(this,x),type:"observerResultsUpdated"})})},dn);function ei(e,t){return t.enabled!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Jt(e,t){return ei(e,t)||e.state.data!==void 0&&Vt(e,t,t.refetchOnMount)}function Vt(e,t,n){if(t.enabled!==!1){const i=typeof n=="function"?n(e):n;return i==="always"||i!==!1&&Qt(e,t)}return!1}function Yt(e,t,n,i){return(e!==t||i.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&Qt(e,n)}function Qt(e,t){return t.enabled!==!1&&e.isStaleByTime(t.staleTime)}function ti(e,t){return!rt(e.getCurrentResult(),t)}var ni=class extends Fn{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:Ft()},t)}getOptimisticResult(e){return e.behavior=Ft(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var p,m;const{state:n}=e,i=super.createResult(e,t),{isFetching:s,isRefetching:r,isError:o,isRefetchError:l}=i,a=(m=(p=n.fetchMeta)==null?void 0:p.fetchMore)==null?void 0:m.direction,g=o&&a==="forward",f=s&&a==="forward",h=o&&a==="backward",d=s&&a==="backward";return{...i,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Yn(t,n.data),hasPreviousPage:Zn(t,n.data),isFetchNextPageError:g,isFetchingNextPage:f,isFetchPreviousPageError:h,isFetchingPreviousPage:d,isRefetchError:l&&!g&&!h,isRefetching:r&&!f&&!d}}},le,ae,b,ee,Ae,st,Ye,Dt,gn,ii=(gn=class extends Le{constructor(t,n){super();C(this,Ae);C(this,Ye);C(this,le,void 0);C(this,ae,void 0);C(this,b,void 0);C(this,ee,void 0);v(this,le,t),this.setOptions(n),this.bindMethods(),_(this,Ae,st).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var i;const n=this.options;this.options=u(this,le).defaultMutationOptions(t),rt(this.options,n)||u(this,le).getMutationCache().notify({type:"observerOptionsUpdated",mutation:u(this,b),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Re(n.mutationKey)!==Re(this.options.mutationKey)?this.reset():((i=u(this,b))==null?void 0:i.state.status)==="pending"&&u(this,b).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=u(this,b))==null||t.removeObserver(this)}onMutationUpdate(t){_(this,Ae,st).call(this),_(this,Ye,Dt).call(this,t)}getCurrentResult(){return u(this,ae)}reset(){var t;(t=u(this,b))==null||t.removeObserver(this),v(this,b,void 0),_(this,Ae,st).call(this),_(this,Ye,Dt).call(this)}mutate(t,n){var i;return v(this,ee,n),(i=u(this,b))==null||i.removeObserver(this),v(this,b,u(this,le).getMutationCache().build(u(this,le),this.options)),u(this,b).addObserver(this),u(this,b).execute(t)}},le=new WeakMap,ae=new WeakMap,b=new WeakMap,ee=new WeakMap,Ae=new WeakSet,st=function(){var n;const t=((n=u(this,b))==null?void 0:n.state)??yn();v(this,ae,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},Ye=new WeakSet,Dt=function(t){V.batch(()=>{var n,i,s,r,o,l,a,g;if(u(this,ee)&&this.hasListeners()){const f=u(this,ae).variables,h=u(this,ae).context;(t==null?void 0:t.type)==="success"?((i=(n=u(this,ee)).onSuccess)==null||i.call(n,t.data,f,h),(r=(s=u(this,ee)).onSettled)==null||r.call(s,t.data,null,f,h)):(t==null?void 0:t.type)==="error"&&((l=(o=u(this,ee)).onError)==null||l.call(o,t.error,f,h),(g=(a=u(this,ee)).onSettled)==null||g.call(a,void 0,t.error,f,h))}this.listeners.forEach(f=>{f(u(this,ae))})})},gn),_n=O.createContext(void 0),lt=e=>{const t=O.useContext(_n);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},us=({client:e,children:t})=>(O.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),zn.jsx(_n.Provider,{value:e,children:t})),Mn=O.createContext(!1),si=()=>O.useContext(Mn);Mn.Provider;function ri(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var oi=O.createContext(ri()),ui=()=>O.useContext(oi);function $n(e,t){return typeof e=="function"?e(...t):!!e}function li(){}var ai=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},ci=e=>{O.useEffect(()=>{e.clearReset()},[e])},di=({result:e,errorResetBoundary:t,throwOnError:n,query:i})=>e.isError&&!t.isReset()&&!e.isFetching&&i&&$n(n,[e.error,i]),gi=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},fi=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,hi=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function xn(e,t,n){const i=lt(n),s=si(),r=ui(),o=i.defaultQueryOptions(e);o._optimisticResults=s?"isRestoring":"optimistic",gi(o),ai(o,r),ci(r);const[l]=O.useState(()=>new t(i,o)),a=l.getOptimisticResult(o);if(O.useSyncExternalStore(O.useCallback(g=>{const f=s?()=>{}:l.subscribe(V.batchCalls(g));return l.updateResult(),f},[l,s]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),O.useEffect(()=>{l.setOptions(o,{listeners:!1})},[o,l]),fi(o,a))throw hi(o,l,r);if(di({result:a,errorResetBoundary:r,throwOnError:o.throwOnError,query:i.getQueryCache().get(o.queryHash)}))throw a.error;return o.notifyOnChangeProps?a:l.trackResult(a)}function ls(e,t){return xn(e,Fn,t)}function as(e){return e}function cs(e){return e}function ds(e,t){const n=lt(t);return pi({filters:{...e,status:"pending"}},n).length}function Zt(e,t){return e.findAll(t.filters).map(n=>t.select?t.select(n):n.state)}function pi(e={},t){const n=lt(t).getMutationCache(),i=O.useRef(e),s=O.useRef(null);return s.current||(s.current=Zt(n,e)),O.useEffect(()=>{i.current=e}),O.useSyncExternalStore(O.useCallback(r=>n.subscribe(()=>{const o=Tt(s.current,Zt(n,i.current));s.current!==o&&(s.current=o,V.schedule(r))}),[n]),()=>s.current,()=>s.current)}function gs(e,t){const n=lt(t),[i]=O.useState(()=>new ii(n,e));O.useEffect(()=>{i.setOptions(e)},[i,e]);const s=O.useSyncExternalStore(O.useCallback(o=>i.subscribe(V.batchCalls(o)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),r=O.useCallback((o,l)=>{i.mutate(o,l).catch(li)},[i]);if(s.error&&$n(i.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:r,mutateAsync:s.mutate}}function fs(e,t){return xn(e,ni,t)}/**
|
1
|
+
var dt=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var u=(e,t,n)=>(dt(e,t,"read from private field"),n?n.call(e):t.get(e)),C=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},v=(e,t,n,i)=>(dt(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n);var Ze=(e,t,n,i)=>({set _(s){v(e,t,s,n)},get _(){return u(e,t,i)}}),_=(e,t,n)=>(dt(e,t,"access private method"),n);import{r as O,j as zn}from"./@radix-DnFH_oo1.js";var Le=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},He=typeof window>"u"||"Deno"in globalThis;function j(){}function bn(e,t){return typeof e=="function"?e(t):e}function Rt(e){return typeof e=="number"&&e>=0&&e!==1/0}function fn(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Nt(e,t){const{type:n="all",exact:i,fetchStatus:s,predicate:r,queryKey:o,stale:l}=e;if(o){if(i){if(t.queryHash!==bt(o,t.options))return!1}else if(!Te(t.queryKey,o))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||s&&s!==t.state.fetchStatus||r&&!r(t))}function Kt(e,t){const{exact:n,status:i,predicate:s,mutationKey:r}=e;if(r){if(!t.options.mutationKey)return!1;if(n){if(Re(t.options.mutationKey)!==Re(r))return!1}else if(!Te(t.options.mutationKey,r))return!1}return!(i&&t.state.status!==i||s&&!s(t))}function bt(e,t){return((t==null?void 0:t.queryKeyHashFn)||Re)(e)}function Re(e){return JSON.stringify(e,(t,n)=>yt(n)?Object.keys(n).sort().reduce((i,s)=>(i[s]=n[s],i),{}):n)}function Te(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Te(e[n],t[n])):!1}function Tt(e,t){if(e===t)return e;const n=Xt(e)&&Xt(t);if(n||yt(e)&&yt(t)){const i=n?e:Object.keys(e),s=i.length,r=n?t:Object.keys(t),o=r.length,l=n?[]:{};let a=0;for(let g=0;g<o;g++){const f=n?g:r[g];(!n&&i.includes(f)||n)&&e[f]===void 0&&t[f]===void 0?(l[f]=void 0,a++):(l[f]=Tt(e[f],t[f]),l[f]===e[f]&&e[f]!==void 0&&a++)}return s===o&&a===s?e:l}return t}function rt(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Xt(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function yt(e){if(!Wt(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Wt(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Wt(e){return Object.prototype.toString.call(e)==="[object Object]"}function Tn(e){return new Promise(t=>{setTimeout(t,e)})}function wt(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Tt(e,t):t}function qn(e,t,n=0){const i=[...e,t];return n&&i.length>n?i.slice(1):i}function Qn(e,t,n=0){const i=[t,...e];return n&&i.length>n?i.slice(0,-1):i}var hn=Symbol(),pn=(e,t)=>!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===hn?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn,ge,ne,ye,nn,Un=(nn=class extends Le{constructor(){super();C(this,ge,void 0);C(this,ne,void 0);C(this,ye,void 0);v(this,ye,t=>{if(!He&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){u(this,ne)||this.setEventListener(u(this,ye))}onUnsubscribe(){var t;this.hasListeners()||((t=u(this,ne))==null||t.call(this),v(this,ne,void 0))}setEventListener(t){var n;v(this,ye,t),(n=u(this,ne))==null||n.call(this),v(this,ne,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){u(this,ge)!==t&&(v(this,ge,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof u(this,ge)=="boolean"?u(this,ge):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ge=new WeakMap,ne=new WeakMap,ye=new WeakMap,nn),qt=new Un,we,ie,Fe,sn,kn=(sn=class extends Le{constructor(){super();C(this,we,!0);C(this,ie,void 0);C(this,Fe,void 0);v(this,Fe,t=>{if(!He&&window.addEventListener){const n=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",i)}}})}onSubscribe(){u(this,ie)||this.setEventListener(u(this,Fe))}onUnsubscribe(){var t;this.hasListeners()||((t=u(this,ie))==null||t.call(this),v(this,ie,void 0))}setEventListener(t){var n;v(this,Fe,t),(n=u(this,ie))==null||n.call(this),v(this,ie,t(this.setOnline.bind(this)))}setOnline(t){u(this,we)!==t&&(v(this,we,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return u(this,we)}},we=new WeakMap,ie=new WeakMap,Fe=new WeakMap,sn),ot=new kn;function jn(e){return Math.min(1e3*2**e,3e4)}function mn(e){return(e??"online")==="online"?ot.isOnline():!0}var vn=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function gt(e){return e instanceof vn}function Sn(e){let t=!1,n=0,i=!1,s,r,o;const l=new Promise((S,P)=>{r=S,o=P}),a=S=>{var P;i||(p(new vn(S)),(P=e.abort)==null||P.call(e))},g=()=>{t=!0},f=()=>{t=!1},h=()=>qt.isFocused()&&(e.networkMode==="always"||ot.isOnline())&&e.canRun(),d=()=>mn(e.networkMode)&&e.canRun(),c=S=>{var P;i||(i=!0,(P=e.onSuccess)==null||P.call(e,S),s==null||s(),r(S))},p=S=>{var P;i||(i=!0,(P=e.onError)==null||P.call(e,S),s==null||s(),o(S))},m=()=>new Promise(S=>{var P;s=R=>{(i||h())&&S(R)},(P=e.onPause)==null||P.call(e)}).then(()=>{var S;s=void 0,i||(S=e.onContinue)==null||S.call(e)}),y=()=>{if(i)return;let S;const P=n===0?e.initialPromise:void 0;try{S=P??e.fn()}catch(R){S=Promise.reject(R)}Promise.resolve(S).then(c).catch(R=>{var M;if(i)return;const $=e.retry??(He?0:3),I=e.retryDelay??jn,G=typeof I=="function"?I(n,R):I,U=$===!0||typeof $=="number"&&n<$||typeof $=="function"&&$(n,R);if(t||!U){p(R);return}n++,(M=e.onFail)==null||M.call(e,n,R),Tn(G).then(()=>h()?void 0:m()).then(()=>{t?p(R):y()})})};return{promise:l,cancel:a,continue:()=>(s==null||s(),l),cancelRetry:g,continueRetry:f,canStart:d,start:()=>(d()?y():m().then(y),l)}}function Bn(){let e=[],t=0,n=d=>{d()},i=d=>{d()},s=d=>setTimeout(d,0);const r=d=>{s=d},o=d=>{let c;t++;try{c=d()}finally{t--,t||g()}return c},l=d=>{t?e.push(d):s(()=>{n(d)})},a=d=>(...c)=>{l(()=>{d(...c)})},g=()=>{const d=e;e=[],d.length&&s(()=>{i(()=>{d.forEach(c=>{n(c)})})})};return{batch:o,batchCalls:a,schedule:l,setNotifyFunction:d=>{n=d},setBatchNotifyFunction:d=>{i=d},setScheduler:r}}var V=Bn(),fe,rn,Cn=(rn=class{constructor(){C(this,fe,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Rt(this.gcTime)&&v(this,fe,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(He?1/0:5*60*1e3))}clearGcTimeout(){u(this,fe)&&(clearTimeout(u(this,fe)),v(this,fe,void 0))}},fe=new WeakMap,rn),Pe,_e,k,A,qe,he,B,Y,on,Nn=(on=class extends Cn{constructor(t){super();C(this,B);C(this,Pe,void 0);C(this,_e,void 0);C(this,k,void 0);C(this,A,void 0);C(this,qe,void 0);C(this,he,void 0);v(this,he,!1),v(this,qe,t.defaultOptions),this.setOptions(t.options),this.observers=[],v(this,k,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,v(this,Pe,t.state||Kn(this.options)),this.state=u(this,Pe),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=u(this,A))==null?void 0:t.promise}setOptions(t){this.options={...u(this,qe),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&u(this,k).remove(this)}setData(t,n){const i=wt(this.state.data,t,this.options);return _(this,B,Y).call(this,{data:i,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),i}setState(t,n){_(this,B,Y).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var i,s;const n=(i=u(this,A))==null?void 0:i.promise;return(s=u(this,A))==null||s.cancel(t),n?n.then(j).catch(j):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(u(this,Pe))}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!fn(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(i=>i.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=u(this,A))==null||n.continue()}onOnline(){var n;const t=this.observers.find(i=>i.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=u(this,A))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),u(this,k).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(u(this,A)&&(u(this,he)?u(this,A).cancel({revert:!0}):u(this,A).cancelRetry()),this.scheduleGc()),u(this,k).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||_(this,B,Y).call(this,{type:"invalidate"})}fetch(t,n){var a,g,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(u(this,A))return u(this,A).continueRetry(),u(this,A).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(d=>d.options.queryFn);h&&this.setOptions(h.options)}const i=new AbortController,s=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(v(this,he,!0),i.signal)})},r=()=>{const h=pn(this.options,n),d={queryKey:this.queryKey,meta:this.meta};return s(d),v(this,he,!1),this.options.persister?this.options.persister(h,d,this):h(d)},o={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:r};s(o),(a=this.options.behavior)==null||a.onFetch(o,this),v(this,_e,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=o.fetchOptions)==null?void 0:g.meta))&&_(this,B,Y).call(this,{type:"fetch",meta:(f=o.fetchOptions)==null?void 0:f.meta});const l=h=>{var d,c,p,m;gt(h)&&h.silent||_(this,B,Y).call(this,{type:"error",error:h}),gt(h)||((c=(d=u(this,k).config).onError)==null||c.call(d,h,this),(m=(p=u(this,k).config).onSettled)==null||m.call(p,this.state.data,h,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return v(this,A,Sn({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,abort:i.abort.bind(i),onSuccess:h=>{var d,c,p,m;if(h===void 0){l(new Error(`${this.queryHash} data is undefined`));return}this.setData(h),(c=(d=u(this,k).config).onSuccess)==null||c.call(d,h,this),(m=(p=u(this,k).config).onSettled)==null||m.call(p,h,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(h,d)=>{_(this,B,Y).call(this,{type:"failed",failureCount:h,error:d})},onPause:()=>{_(this,B,Y).call(this,{type:"pause"})},onContinue:()=>{_(this,B,Y).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),u(this,A).start()}},Pe=new WeakMap,_e=new WeakMap,k=new WeakMap,A=new WeakMap,qe=new WeakMap,he=new WeakMap,B=new WeakSet,Y=function(t){const n=i=>{switch(t.type){case"failed":return{...i,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...Rn(i.data,this.options),fetchMeta:t.meta??null};case"success":return{...i,data:t.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return gt(s)&&s.revert&&u(this,_e)?{...u(this,_e),fetchStatus:"idle"}:{...i,error:s,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...t.state}}};this.state=n(this.state),V.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),u(this,k).notify({query:this,type:"updated",action:t})})},on);function Rn(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:mn(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Kn(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,i=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var K,un,Xn=(un=class extends Le{constructor(t={}){super();C(this,K,void 0);this.config=t,v(this,K,new Map)}build(t,n,i){const s=n.queryKey,r=n.queryHash??bt(s,n);let o=this.get(r);return o||(o=new Nn({cache:this,queryKey:s,queryHash:r,options:t.defaultQueryOptions(n),state:i,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){u(this,K).has(t.queryHash)||(u(this,K).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=u(this,K).get(t.queryHash);n&&(t.destroy(),n===t&&u(this,K).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){V.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return u(this,K).get(t)}getAll(){return[...u(this,K).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(i=>Nt(n,i))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(i=>Nt(t,i)):n}notify(t){V.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){V.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){V.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},K=new WeakMap,un),X,H,pe,W,te,ln,Wn=(ln=class extends Cn{constructor(t){super();C(this,W);C(this,X,void 0);C(this,H,void 0);C(this,pe,void 0);this.mutationId=t.mutationId,v(this,H,t.mutationCache),v(this,X,[]),this.state=t.state||yn(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){u(this,X).includes(t)||(u(this,X).push(t),this.clearGcTimeout(),u(this,H).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){v(this,X,u(this,X).filter(n=>n!==t)),this.scheduleGc(),u(this,H).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){u(this,X).length||(this.state.status==="pending"?this.scheduleGc():u(this,H).remove(this))}continue(){var t;return((t=u(this,pe))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,r,o,l,a,g,f,h,d,c,p,m,y,S,P,R,$,I,G,U;v(this,pe,Sn({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(M,T)=>{_(this,W,te).call(this,{type:"failed",failureCount:M,error:T})},onPause:()=>{_(this,W,te).call(this,{type:"pause"})},onContinue:()=>{_(this,W,te).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>u(this,H).canRun(this)}));const n=this.state.status==="pending",i=!u(this,pe).canStart();try{if(!n){_(this,W,te).call(this,{type:"pending",variables:t,isPaused:i}),await((r=(s=u(this,H).config).onMutate)==null?void 0:r.call(s,t,this));const T=await((l=(o=this.options).onMutate)==null?void 0:l.call(o,t));T!==this.state.context&&_(this,W,te).call(this,{type:"pending",context:T,variables:t,isPaused:i})}const M=await u(this,pe).start();return await((g=(a=u(this,H).config).onSuccess)==null?void 0:g.call(a,M,t,this.state.context,this)),await((h=(f=this.options).onSuccess)==null?void 0:h.call(f,M,t,this.state.context)),await((c=(d=u(this,H).config).onSettled)==null?void 0:c.call(d,M,null,this.state.variables,this.state.context,this)),await((m=(p=this.options).onSettled)==null?void 0:m.call(p,M,null,t,this.state.context)),_(this,W,te).call(this,{type:"success",data:M}),M}catch(M){try{throw await((S=(y=u(this,H).config).onError)==null?void 0:S.call(y,M,t,this.state.context,this)),await((R=(P=this.options).onError)==null?void 0:R.call(P,M,t,this.state.context)),await((I=($=u(this,H).config).onSettled)==null?void 0:I.call($,void 0,M,this.state.variables,this.state.context,this)),await((U=(G=this.options).onSettled)==null?void 0:U.call(G,void 0,M,t,this.state.context)),M}finally{_(this,W,te).call(this,{type:"error",error:M})}}finally{u(this,H).runNext(this)}}},X=new WeakMap,H=new WeakMap,pe=new WeakMap,W=new WeakSet,te=function(t){const n=i=>{switch(t.type){case"failed":return{...i,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...i,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:t.error,failureCount:i.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),V.batch(()=>{u(this,X).forEach(i=>{i.onMutationUpdate(t)}),u(this,H).notify({mutation:this,type:"updated",action:t})})},ln);function yn(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var q,Qe,an,Jn=(an=class extends Le{constructor(t={}){super();C(this,q,void 0);C(this,Qe,void 0);this.config=t,v(this,q,new Map),v(this,Qe,Date.now())}build(t,n,i){const s=new Wn({mutationCache:this,mutationId:++Ze(this,Qe)._,options:t.defaultMutationOptions(n),state:i});return this.add(s),s}add(t){const n=et(t),i=u(this,q).get(n)??[];i.push(t),u(this,q).set(n,i),this.notify({type:"added",mutation:t})}remove(t){var i;const n=et(t);if(u(this,q).has(n)){const s=(i=u(this,q).get(n))==null?void 0:i.filter(r=>r!==t);s&&(s.length===0?u(this,q).delete(n):u(this,q).set(n,s))}this.notify({type:"removed",mutation:t})}canRun(t){var i;const n=(i=u(this,q).get(et(t)))==null?void 0:i.find(s=>s.state.status==="pending");return!n||n===t}runNext(t){var i;const n=(i=u(this,q).get(et(t)))==null?void 0:i.find(s=>s!==t&&s.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){V.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...u(this,q).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(i=>Kt(n,i))}findAll(t={}){return this.getAll().filter(n=>Kt(t,n))}notify(t){V.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return V.batch(()=>Promise.all(t.map(n=>n.continue().catch(j))))}},q=new WeakMap,Qe=new WeakMap,an);function et(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Ft(e){return{onFetch:(t,n)=>{const i=async()=>{var p,m,y,S,P;const s=t.options,r=(y=(m=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:m.fetchMore)==null?void 0:y.direction,o=((S=t.state.data)==null?void 0:S.pages)||[],l=((P=t.state.data)==null?void 0:P.pageParams)||[],a={pages:[],pageParams:[]};let g=!1;const f=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},h=pn(t.options,t.fetchOptions),d=async(R,$,I)=>{if(g)return Promise.reject();if($==null&&R.pages.length)return Promise.resolve(R);const G={queryKey:t.queryKey,pageParam:$,direction:I?"backward":"forward",meta:t.options.meta};f(G);const U=await h(G),{maxPages:M}=t.options,T=I?Qn:qn;return{pages:T(R.pages,U,M),pageParams:T(R.pageParams,$,M)}};let c;if(r&&o.length){const R=r==="backward",$=R?wn:Pt,I={pages:o,pageParams:l},G=$(s,I);c=await d(I,G,R)}else{c=await d(a,l[0]??s.initialPageParam);const R=e??o.length;for(let $=1;$<R;$++){const I=Pt(s,c);c=await d(c,I)}}return c};t.options.persister?t.fetchFn=()=>{var s,r;return(r=(s=t.options).persister)==null?void 0:r.call(s,i,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=i}}}function Pt(e,{pages:t,pageParams:n}){const i=t.length-1;return e.getNextPageParam(t[i],t,n[i],n)}function wn(e,{pages:t,pageParams:n}){var i;return(i=e.getPreviousPageParam)==null?void 0:i.call(e,t[0],t,n[0],n)}function Yn(e,t){return t?Pt(e,t)!=null:!1}function Zn(e,t){return!t||!e.getPreviousPageParam?!1:wn(e,t)!=null}var E,se,re,Me,$e,oe,xe,Ie,cn,os=(cn=class{constructor(e={}){C(this,E,void 0);C(this,se,void 0);C(this,re,void 0);C(this,Me,void 0);C(this,$e,void 0);C(this,oe,void 0);C(this,xe,void 0);C(this,Ie,void 0);v(this,E,e.queryCache||new Xn),v(this,se,e.mutationCache||new Jn),v(this,re,e.defaultOptions||{}),v(this,Me,new Map),v(this,$e,new Map),v(this,oe,0)}mount(){Ze(this,oe)._++,u(this,oe)===1&&(v(this,xe,qt.subscribe(async e=>{e&&(await this.resumePausedMutations(),u(this,E).onFocus())})),v(this,Ie,ot.subscribe(async e=>{e&&(await this.resumePausedMutations(),u(this,E).onOnline())})))}unmount(){var e,t;Ze(this,oe)._--,u(this,oe)===0&&((e=u(this,xe))==null||e.call(this),v(this,xe,void 0),(t=u(this,Ie))==null||t.call(this),v(this,Ie,void 0))}isFetching(e){return u(this,E).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return u(this,se).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=u(this,E).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),i=u(this,E).build(this,n);return e.revalidateIfStale&&i.isStaleByTime(n.staleTime)&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return u(this,E).findAll(e).map(({queryKey:t,state:n})=>{const i=n.data;return[t,i]})}setQueryData(e,t,n){const i=this.defaultQueryOptions({queryKey:e}),s=u(this,E).get(i.queryHash),r=s==null?void 0:s.state.data,o=bn(t,r);if(o!==void 0)return u(this,E).build(this,i).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return V.batch(()=>u(this,E).findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=u(this,E).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=u(this,E);V.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=u(this,E),i={type:"active",...e};return V.batch(()=>(n.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries(i,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},i=V.batch(()=>u(this,E).findAll(e).map(s=>s.cancel(n)));return Promise.all(i).then(j).catch(j)}invalidateQueries(e={},t={}){return V.batch(()=>{if(u(this,E).findAll(e).forEach(i=>{i.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},i=V.batch(()=>u(this,E).findAll(e).filter(s=>!s.isDisabled()).map(s=>{let r=s.fetch(void 0,n);return n.throwOnError||(r=r.catch(j)),s.state.fetchStatus==="paused"?Promise.resolve():r}));return Promise.all(i).then(j)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=u(this,E).build(this,t);return n.isStaleByTime(t.staleTime)?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(j).catch(j)}fetchInfiniteQuery(e){return e.behavior=Ft(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(j).catch(j)}resumePausedMutations(){return ot.isOnline()?u(this,se).resumePausedMutations():Promise.resolve()}getQueryCache(){return u(this,E)}getMutationCache(){return u(this,se)}getDefaultOptions(){return u(this,re)}setDefaultOptions(e){v(this,re,e)}setQueryDefaults(e,t){u(this,Me).set(Re(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...u(this,Me).values()];let n={};return t.forEach(i=>{Te(e,i.queryKey)&&(n={...n,...i.defaultOptions})}),n}setMutationDefaults(e,t){u(this,$e).set(Re(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...u(this,$e).values()];let n={};return t.forEach(i=>{Te(e,i.mutationKey)&&(n={...n,...i.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...u(this,re).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=bt(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===hn&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...u(this,re).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){u(this,E).clear(),u(this,se).clear()}},E=new WeakMap,se=new WeakMap,re=new WeakMap,Me=new WeakMap,$e=new WeakMap,oe=new WeakMap,xe=new WeakMap,Ie=new WeakMap,cn),z,x,Ue,L,me,Oe,J,ke,Ee,Ve,ve,Se,ue,De,Ce,ze,je,_t,Be,Mt,Ne,$t,Ke,xt,Xe,It,We,Ot,Je,Et,ut,Pn,dn,Fn=(dn=class extends Le{constructor(t,n){super();C(this,Ce);C(this,je);C(this,Be);C(this,Ne);C(this,Ke);C(this,Xe);C(this,We);C(this,Je);C(this,ut);C(this,z,void 0);C(this,x,void 0);C(this,Ue,void 0);C(this,L,void 0);C(this,me,void 0);C(this,Oe,void 0);C(this,J,void 0);C(this,ke,void 0);C(this,Ee,void 0);C(this,Ve,void 0);C(this,ve,void 0);C(this,Se,void 0);C(this,ue,void 0);C(this,De,new Set);this.options=n,v(this,z,t),v(this,J,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(u(this,x).addObserver(this),Jt(u(this,x),this.options)?_(this,Ce,ze).call(this):this.updateResult(),_(this,Ke,xt).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Vt(u(this,x),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Vt(u(this,x),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,_(this,Xe,It).call(this),_(this,We,Ot).call(this),u(this,x).removeObserver(this)}setOptions(t,n){const i=this.options,s=u(this,x);if(this.options=u(this,z).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");_(this,Je,Et).call(this),u(this,x).setOptions(this.options),i._defaulted&&!rt(this.options,i)&&u(this,z).getQueryCache().notify({type:"observerOptionsUpdated",query:u(this,x),observer:this});const r=this.hasListeners();r&&Yt(u(this,x),s,this.options,i)&&_(this,Ce,ze).call(this),this.updateResult(n),r&&(u(this,x)!==s||this.options.enabled!==i.enabled||this.options.staleTime!==i.staleTime)&&_(this,je,_t).call(this);const o=_(this,Be,Mt).call(this);r&&(u(this,x)!==s||this.options.enabled!==i.enabled||o!==u(this,ue))&&_(this,Ne,$t).call(this,o)}getOptimisticResult(t){const n=u(this,z).getQueryCache().build(u(this,z),t),i=this.createResult(n,t);return ti(this,i)&&(v(this,L,i),v(this,Oe,this.options),v(this,me,u(this,x).state)),i}getCurrentResult(){return u(this,L)}trackResult(t,n){const i={};return Object.keys(t).forEach(s=>{Object.defineProperty(i,s,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(s),n==null||n(s),t[s])})}),i}trackProp(t){u(this,De).add(t)}getCurrentQuery(){return u(this,x)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=u(this,z).defaultQueryOptions(t),i=u(this,z).getQueryCache().build(u(this,z),n);return i.isFetchingOptimistic=!0,i.fetch().then(()=>this.createResult(i,n))}fetch(t){return _(this,Ce,ze).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),u(this,L)))}createResult(t,n){var U;const i=u(this,x),s=this.options,r=u(this,L),o=u(this,me),l=u(this,Oe),g=t!==i?t.state:u(this,Ue),{state:f}=t;let h={...f},d=!1,c;if(n._optimisticResults){const M=this.hasListeners(),T=!M&&Jt(t,n),ct=M&&Yt(t,i,n,s);(T||ct)&&(h={...h,...Rn(f.data,t.options)}),n._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:p,errorUpdatedAt:m,status:y}=h;if(n.select&&h.data!==void 0)if(r&&h.data===(o==null?void 0:o.data)&&n.select===u(this,ke))c=u(this,Ee);else try{v(this,ke,n.select),c=n.select(h.data),c=wt(r==null?void 0:r.data,c,n),v(this,Ee,c),v(this,J,null)}catch(M){v(this,J,M)}else c=h.data;if(n.placeholderData!==void 0&&c===void 0&&y==="pending"){let M;if(r!=null&&r.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData))M=r.data;else if(M=typeof n.placeholderData=="function"?n.placeholderData((U=u(this,Ve))==null?void 0:U.state.data,u(this,Ve)):n.placeholderData,n.select&&M!==void 0)try{M=n.select(M),v(this,J,null)}catch(T){v(this,J,T)}M!==void 0&&(y="success",c=wt(r==null?void 0:r.data,M,n),d=!0)}u(this,J)&&(p=u(this,J),c=u(this,Ee),m=Date.now(),y="error");const S=h.fetchStatus==="fetching",P=y==="pending",R=y==="error",$=P&&S,I=c!==void 0;return{status:y,fetchStatus:h.fetchStatus,isPending:P,isSuccess:y==="success",isError:R,isInitialLoading:$,isLoading:$,data:c,dataUpdatedAt:h.dataUpdatedAt,error:p,errorUpdatedAt:m,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>g.dataUpdateCount||h.errorUpdateCount>g.errorUpdateCount,isFetching:S,isRefetching:S&&!P,isLoadingError:R&&!I,isPaused:h.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:R&&I,isStale:Qt(t,n),refetch:this.refetch}}updateResult(t){const n=u(this,L),i=this.createResult(u(this,x),this.options);if(v(this,me,u(this,x).state),v(this,Oe,this.options),u(this,me).data!==void 0&&v(this,Ve,u(this,x)),rt(i,n))return;v(this,L,i);const s={},r=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,l=typeof o=="function"?o():o;if(l==="all"||!l&&!u(this,De).size)return!0;const a=new Set(l??u(this,De));return this.options.throwOnError&&a.add("error"),Object.keys(u(this,L)).some(g=>{const f=g;return u(this,L)[f]!==n[f]&&a.has(f)})};(t==null?void 0:t.listeners)!==!1&&r()&&(s.listeners=!0),_(this,ut,Pn).call(this,{...s,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&_(this,Ke,xt).call(this)}},z=new WeakMap,x=new WeakMap,Ue=new WeakMap,L=new WeakMap,me=new WeakMap,Oe=new WeakMap,J=new WeakMap,ke=new WeakMap,Ee=new WeakMap,Ve=new WeakMap,ve=new WeakMap,Se=new WeakMap,ue=new WeakMap,De=new WeakMap,Ce=new WeakSet,ze=function(t){_(this,Je,Et).call(this);let n=u(this,x).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(j)),n},je=new WeakSet,_t=function(){if(_(this,Xe,It).call(this),He||u(this,L).isStale||!Rt(this.options.staleTime))return;const n=fn(u(this,L).dataUpdatedAt,this.options.staleTime)+1;v(this,ve,setTimeout(()=>{u(this,L).isStale||this.updateResult()},n))},Be=new WeakSet,Mt=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(u(this,x)):this.options.refetchInterval)??!1},Ne=new WeakSet,$t=function(t){_(this,We,Ot).call(this),v(this,ue,t),!(He||this.options.enabled===!1||!Rt(u(this,ue))||u(this,ue)===0)&&v(this,Se,setInterval(()=>{(this.options.refetchIntervalInBackground||qt.isFocused())&&_(this,Ce,ze).call(this)},u(this,ue)))},Ke=new WeakSet,xt=function(){_(this,je,_t).call(this),_(this,Ne,$t).call(this,_(this,Be,Mt).call(this))},Xe=new WeakSet,It=function(){u(this,ve)&&(clearTimeout(u(this,ve)),v(this,ve,void 0))},We=new WeakSet,Ot=function(){u(this,Se)&&(clearInterval(u(this,Se)),v(this,Se,void 0))},Je=new WeakSet,Et=function(){const t=u(this,z).getQueryCache().build(u(this,z),this.options);if(t===u(this,x))return;const n=u(this,x);v(this,x,t),v(this,Ue,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},ut=new WeakSet,Pn=function(t){V.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(u(this,L))}),u(this,z).getQueryCache().notify({query:u(this,x),type:"observerResultsUpdated"})})},dn);function ei(e,t){return t.enabled!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Jt(e,t){return ei(e,t)||e.state.data!==void 0&&Vt(e,t,t.refetchOnMount)}function Vt(e,t,n){if(t.enabled!==!1){const i=typeof n=="function"?n(e):n;return i==="always"||i!==!1&&Qt(e,t)}return!1}function Yt(e,t,n,i){return(e!==t||i.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&Qt(e,n)}function Qt(e,t){return t.enabled!==!1&&e.isStaleByTime(t.staleTime)}function ti(e,t){return!rt(e.getCurrentResult(),t)}var ni=class extends Fn{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:Ft()},t)}getOptimisticResult(e){return e.behavior=Ft(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var p,m;const{state:n}=e,i=super.createResult(e,t),{isFetching:s,isRefetching:r,isError:o,isRefetchError:l}=i,a=(m=(p=n.fetchMeta)==null?void 0:p.fetchMore)==null?void 0:m.direction,g=o&&a==="forward",f=s&&a==="forward",h=o&&a==="backward",d=s&&a==="backward";return{...i,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Yn(t,n.data),hasPreviousPage:Zn(t,n.data),isFetchNextPageError:g,isFetchingNextPage:f,isFetchPreviousPageError:h,isFetchingPreviousPage:d,isRefetchError:l&&!g&&!h,isRefetching:r&&!f&&!d}}},le,ae,b,ee,Ae,st,Ye,Dt,gn,ii=(gn=class extends Le{constructor(t,n){super();C(this,Ae);C(this,Ye);C(this,le,void 0);C(this,ae,void 0);C(this,b,void 0);C(this,ee,void 0);v(this,le,t),this.setOptions(n),this.bindMethods(),_(this,Ae,st).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var i;const n=this.options;this.options=u(this,le).defaultMutationOptions(t),rt(this.options,n)||u(this,le).getMutationCache().notify({type:"observerOptionsUpdated",mutation:u(this,b),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Re(n.mutationKey)!==Re(this.options.mutationKey)?this.reset():((i=u(this,b))==null?void 0:i.state.status)==="pending"&&u(this,b).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=u(this,b))==null||t.removeObserver(this)}onMutationUpdate(t){_(this,Ae,st).call(this),_(this,Ye,Dt).call(this,t)}getCurrentResult(){return u(this,ae)}reset(){var t;(t=u(this,b))==null||t.removeObserver(this),v(this,b,void 0),_(this,Ae,st).call(this),_(this,Ye,Dt).call(this)}mutate(t,n){var i;return v(this,ee,n),(i=u(this,b))==null||i.removeObserver(this),v(this,b,u(this,le).getMutationCache().build(u(this,le),this.options)),u(this,b).addObserver(this),u(this,b).execute(t)}},le=new WeakMap,ae=new WeakMap,b=new WeakMap,ee=new WeakMap,Ae=new WeakSet,st=function(){var n;const t=((n=u(this,b))==null?void 0:n.state)??yn();v(this,ae,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},Ye=new WeakSet,Dt=function(t){V.batch(()=>{var n,i,s,r,o,l,a,g;if(u(this,ee)&&this.hasListeners()){const f=u(this,ae).variables,h=u(this,ae).context;(t==null?void 0:t.type)==="success"?((i=(n=u(this,ee)).onSuccess)==null||i.call(n,t.data,f,h),(r=(s=u(this,ee)).onSettled)==null||r.call(s,t.data,null,f,h)):(t==null?void 0:t.type)==="error"&&((l=(o=u(this,ee)).onError)==null||l.call(o,t.error,f,h),(g=(a=u(this,ee)).onSettled)==null||g.call(a,void 0,t.error,f,h))}this.listeners.forEach(f=>{f(u(this,ae))})})},gn),_n=O.createContext(void 0),lt=e=>{const t=O.useContext(_n);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},us=({client:e,children:t})=>(O.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),zn.jsx(_n.Provider,{value:e,children:t})),Mn=O.createContext(!1),si=()=>O.useContext(Mn);Mn.Provider;function ri(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var oi=O.createContext(ri()),ui=()=>O.useContext(oi);function $n(e,t){return typeof e=="function"?e(...t):!!e}function li(){}var ai=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},ci=e=>{O.useEffect(()=>{e.clearReset()},[e])},di=({result:e,errorResetBoundary:t,throwOnError:n,query:i})=>e.isError&&!t.isReset()&&!e.isFetching&&i&&$n(n,[e.error,i]),gi=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},fi=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,hi=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function xn(e,t,n){const i=lt(n),s=si(),r=ui(),o=i.defaultQueryOptions(e);o._optimisticResults=s?"isRestoring":"optimistic",gi(o),ai(o,r),ci(r);const[l]=O.useState(()=>new t(i,o)),a=l.getOptimisticResult(o);if(O.useSyncExternalStore(O.useCallback(g=>{const f=s?()=>{}:l.subscribe(V.batchCalls(g));return l.updateResult(),f},[l,s]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),O.useEffect(()=>{l.setOptions(o,{listeners:!1})},[o,l]),fi(o,a))throw hi(o,l,r);if(di({result:a,errorResetBoundary:r,throwOnError:o.throwOnError,query:i.getQueryCache().get(o.queryHash)}))throw a.error;return o.notifyOnChangeProps?a:l.trackResult(a)}function ls(e,t){return xn(e,Fn,t)}function as(e){return e}function cs(e){return e}function ds(e,t){const n=lt(t);return pi({filters:{...e,status:"pending"}},n).length}function Zt(e,t){return e.findAll(t.filters).map(n=>t.select?t.select(n):n.state)}function pi(e={},t){const n=lt(t).getMutationCache(),i=O.useRef(e),s=O.useRef(null);return s.current||(s.current=Zt(n,e)),O.useEffect(()=>{i.current=e}),O.useSyncExternalStore(O.useCallback(r=>n.subscribe(()=>{const o=Tt(s.current,Zt(n,i.current));s.current!==o&&(s.current=o,V.schedule(r))}),[n]),()=>s.current,()=>s.current)}function gs(e,t){const n=lt(t),[i]=O.useState(()=>new ii(n,e));O.useEffect(()=>{i.setOptions(e)},[i,e]);const s=O.useSyncExternalStore(O.useCallback(o=>i.subscribe(V.batchCalls(o)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),r=O.useCallback((o,l)=>{i.mutate(o,l).catch(li)},[i]);if(s.error&&$n(i.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:r,mutateAsync:s.mutate}}function fs(e,t){return xn(e,ni,t)}/**
|
2
2
|
* table-core
|
3
3
|
*
|
4
4
|
* Copyright (c) TanStack
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as m,j as e}from"./@radix-DnFH_oo1.js";import{v as g,w as p,aE as d,aG as h}from"./index-B9wVwe7u.js";const x=m.forwardRef((r,t)=>{const{triggerChildren:a,children:i,onSelect:o,onOpenChange:l,icon:D,open:n,...s}=r;return e.jsxs(g,{open:n,onOpenChange:l,children:[e.jsx(p,{asChild:!0,children:e.jsx(d,{...s,className:"hover:cursor-pointer",icon:r.icon,ref:t,onSelect:c=>{c.preventDefault(),o&&o()},children:a})}),e.jsx(h,{children:i})]})});x.displayName="AlertDialogItem";export{x as A};
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import{c as N,g as te,r as Y,j as E}from"./@radix-
|
1
|
+
import{c as N,g as te,r as Y,j as E}from"./@radix-DnFH_oo1.js";import{X}from"./index-B9wVwe7u.js";import{S as ae}from"./copy-CaGlDsUy.js";var J={exports:{}};(function(A){var R=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
2
2
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
3
3
|
*
|
4
4
|
* @license MIT <https://opensource.org/licenses/MIT>
|
5
5
|
* @author Lea Verou <https://lea.verou.me>
|
6
6
|
* @namespace
|
7
7
|
* @public
|
8
|
-
*/var i=function(g){var p=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,y=0,x={},s={manual:g.Prism&&g.Prism.manual,disableWorkerMessageHandler:g.Prism&&g.Prism.disableWorkerMessageHandler,util:{encode:function t(e){return e instanceof m?new m(e.type,t(e.content),e.alias):Array.isArray(e)?e.map(t):e.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(t){return Object.prototype.toString.call(t).slice(8,-1)},objId:function(t){return t.__id||Object.defineProperty(t,"__id",{value:++y}),t.__id},clone:function t(e,a){a=a||{};var n,r;switch(s.util.type(e)){case"Object":if(r=s.util.objId(e),a[r])return a[r];n={},a[r]=n;for(var u in e)e.hasOwnProperty(u)&&(n[u]=t(e[u],a));return n;case"Array":return r=s.util.objId(e),a[r]?a[r]:(n=[],a[r]=n,e.forEach(function(o,l){n[l]=t(o,a)}),n);default:return e}},getLanguage:function(t){for(;t;){var e=p.exec(t.className);if(e)return e[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,e){t.className=t.className.replace(RegExp(p,"gi"),""),t.classList.add("language-"+e)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(n){var t=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(n.stack)||[])[1];if(t){var e=document.getElementsByTagName("script");for(var a in e)if(e[a].src==t)return e[a]}return null}},isActive:function(t,e,a){for(var n="no-"+e;t;){var r=t.classList;if(r.contains(e))return!0;if(r.contains(n))return!1;t=t.parentElement}return!!a}},languages:{plain:x,plaintext:x,text:x,txt:x,extend:function(t,e){var a=s.util.clone(s.languages[t]);for(var n in e)a[n]=e[n];return a},insertBefore:function(t,e,a,n){n=n||s.languages;var r=n[t],u={};for(var o in r)if(r.hasOwnProperty(o)){if(o==e)for(var l in a)a.hasOwnProperty(l)&&(u[l]=a[l]);a.hasOwnProperty(o)||(u[o]=r[o])}var d=n[t];return n[t]=u,s.languages.DFS(s.languages,function(v,k){k===d&&v!=t&&(this[v]=u)}),u},DFS:function t(e,a,n,r){r=r||{};var u=s.util.objId;for(var o in e)if(e.hasOwnProperty(o)){a.call(e,o,e[o],n||o);var l=e[o],d=s.util.type(l);d==="Object"&&!r[u(l)]?(r[u(l)]=!0,t(l,a,null,r)):d==="Array"&&!r[u(l)]&&(r[u(l)]=!0,t(l,a,o,r))}}},plugins:{},highlightAll:function(t,e){s.highlightAllUnder(document,t,e)},highlightAllUnder:function(t,e,a){var n={callback:a,container:t,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",n),n.elements=Array.prototype.slice.apply(n.container.querySelectorAll(n.selector)),s.hooks.run("before-all-elements-highlight",n);for(var r=0,u;u=n.elements[r++];)s.highlightElement(u,e===!0,n.callback)},highlightElement:function(t,e,a){var n=s.util.getLanguage(t),r=s.languages[n];s.util.setLanguage(t,n);var u=t.parentElement;u&&u.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(u,n);var o=t.textContent,l={element:t,language:n,grammar:r,code:o};function d(k){l.highlightedCode=k,s.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,s.hooks.run("after-highlight",l),s.hooks.run("complete",l),a&&a.call(l.element)}if(s.hooks.run("before-sanity-check",l),u=l.element.parentElement,u&&u.nodeName.toLowerCase()==="pre"&&!u.hasAttribute("tabindex")&&u.setAttribute("tabindex","0"),!l.code){s.hooks.run("complete",l),a&&a.call(l.element);return}if(s.hooks.run("before-highlight",l),!l.grammar){d(s.util.encode(l.code));return}if(e&&g.Worker){var v=new Worker(s.filename);v.onmessage=function(k){d(k.data)},v.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else d(s.highlight(l.code,l.grammar,l.language))},highlight:function(t,e,a){var n={code:t,grammar:e,language:a};if(s.hooks.run("before-tokenize",n),!n.grammar)throw new Error('The language "'+n.language+'" has no grammar.');return n.tokens=s.tokenize(n.code,n.grammar),s.hooks.run("after-tokenize",n),m.stringify(s.util.encode(n.tokens),n.language)},tokenize:function(t,e){var a=e.rest;if(a){for(var n in a)e[n]=a[n];delete e.rest}var r=new j;return C(r,r.head,t),_(t,r,e,r.head,0),z(r)},hooks:{all:{},add:function(t,e){var a=s.hooks.all;a[t]=a[t]||[],a[t].push(e)},run:function(t,e){var a=s.hooks.all[t];if(!(!a||!a.length))for(var n=0,r;r=a[n++];)r(e)}},Token:m};g.Prism=s;function m(t,e,a,n){this.type=t,this.content=e,this.alias=a,this.length=(n||"").length|0}m.stringify=function t(e,a){if(typeof e=="string")return e;if(Array.isArray(e)){var n="";return e.forEach(function(d){n+=t(d,a)}),n}var r={type:e.type,content:t(e.content,a),tag:"span",classes:["token",e.type],attributes:{},language:a},u=e.alias;u&&(Array.isArray(u)?Array.prototype.push.apply(r.classes,u):r.classes.push(u)),s.hooks.run("wrap",r);var o="";for(var l in r.attributes)o+=" "+l+'="'+(r.attributes[l]||"").replace(/"/g,""")+'"';return"<"+r.tag+' class="'+r.classes.join(" ")+'"'+o+">"+r.content+"</"+r.tag+">"};function $(t,e,a,n){t.lastIndex=e;var r=t.exec(a);if(r&&n&&r[1]){var u=r[1].length;r.index+=u,r[0]=r[0].slice(u)}return r}function _(t,e,a,n,r,u){for(var o in a)if(!(!a.hasOwnProperty(o)||!a[o])){var l=a[o];l=Array.isArray(l)?l:[l];for(var d=0;d<l.length;++d){if(u&&u.cause==o+","+d)return;var v=l[d],k=v.inside,Z=!!v.lookbehind,B=!!v.greedy,K=v.alias;if(B&&!v.pattern.global){var Q=v.pattern.toString().match(/[imsuy]*$/)[0];v.pattern=RegExp(v.pattern.source,Q+"g")}for(var U=v.pattern||v,b=n.next,w=r;b!==e.tail&&!(u&&w>=u.reach);w+=b.value.length,b=b.next){var T=b.value;if(e.length>t.length)return;if(!(T instanceof m)){var L=1,F;if(B){if(F=$(U,w,t,Z),!F||F.index>=t.length)break;var D=F.index,V=F.index+F[0].length,S=w;for(S+=b.value.length;D>=S;)b=b.next,S+=b.value.length;if(S-=b.value.length,w=S,b.value instanceof m)continue;for(var P=b;P!==e.tail&&(S<V||typeof P.value=="string");P=P.next)L++,S+=P.value.length;L--,T=t.slice(w,S),F.index-=w}else if(F=$(U,0,T,Z),!F)continue;var D=F.index,I=F[0],H=T.slice(0,D),W=T.slice(D+I.length),q=w+T.length;u&&q>u.reach&&(u.reach=q);var M=b.prev;H&&(M=C(e,M,H),w+=H.length),O(e,M,L);var ee=new m(o,k?s.tokenize(I,k):I,K,I);if(b=C(e,M,ee),W&&C(e,b,W),L>1){var G={cause:o+","+d,reach:q};_(t,e,a,b.prev,w,G),u&&G.reach>u.reach&&(u.reach=G.reach)}}}}}}function j(){var t={value:null,prev:null,next:null},e={value:null,prev:t,next:null};t.next=e,this.head=t,this.tail=e,this.length=0}function C(t,e,a){var n=e.next,r={value:a,prev:e,next:n};return e.next=r,n.prev=r,t.length++,r}function O(t,e,a){for(var n=e.next,r=0;r<a&&n!==t.tail;r++)n=n.next;e.next=n,n.prev=e,t.length-=r}function z(t){for(var e=[],a=t.head.next;a!==t.tail;)e.push(a.value),a=a.next;return e}if(!g.document)return g.addEventListener&&(s.disableWorkerMessageHandler||g.addEventListener("message",function(t){var e=JSON.parse(t.data),a=e.language,n=e.code,r=e.immediateClose;g.postMessage(s.highlight(n,s.languages[a],a)),r&&g.close()},!1)),s;var f=s.util.currentScript();f&&(s.filename=f.src,f.hasAttribute("data-manual")&&(s.manual=!0));function c(){s.manual||s.highlightAll()}if(!s.manual){var h=document.readyState;h==="loading"||h==="interactive"&&f&&f.defer?document.addEventListener("DOMContentLoaded",c):window.requestAnimationFrame?window.requestAnimationFrame(c):window.setTimeout(c,16)}return s}(R);A.exports&&(A.exports=i),typeof N<"u"&&(N.Prism=i),i.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},i.languages.markup.tag.inside["attr-value"].inside.entity=i.languages.markup.entity,i.languages.markup.doctype.inside["internal-subset"].inside=i.languages.markup,i.hooks.add("wrap",function(g){g.type==="entity"&&(g.attributes.title=g.content.replace(/&/,"&"))}),Object.defineProperty(i.languages.markup.tag,"addInlined",{value:function(p,y){var x={};x["language-"+y]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:i.languages[y]},x.cdata=/^<!\[CDATA\[|\]\]>$/i;var s={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:x}};s["language-"+y]={pattern:/[\s\S]+/,inside:i.languages[y]};var m={};m[p]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return p}),"i"),lookbehind:!0,greedy:!0,inside:s},i.languages.insertBefore("markup","cdata",m)}}),Object.defineProperty(i.languages.markup.tag,"addAttribute",{value:function(g,p){i.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+g+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[p,"language-"+p],inside:i.languages[p]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),i.languages.html=i.languages.markup,i.languages.mathml=i.languages.markup,i.languages.svg=i.languages.markup,i.languages.xml=i.languages.extend("markup",{}),i.languages.ssml=i.languages.xml,i.languages.atom=i.languages.xml,i.languages.rss=i.languages.xml,function(g){var p=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;g.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+p.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+p.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+p.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+p.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:p,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},g.languages.css.atrule.inside.rest=g.languages.css;var y=g.languages.markup;y&&(y.tag.addInlined("style","css"),y.tag.addAttribute("style","css"))}(i),i.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},i.languages.javascript=i.languages.extend("clike",{"class-name":[i.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),i.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,i.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:i.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:i.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:i.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:i.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:i.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),i.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:i.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),i.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),i.languages.markup&&(i.languages.markup.tag.addInlined("script","javascript"),i.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),i.languages.js=i.languages.javascript,function(){if(typeof i>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var g="Loading…",p=function(f,c){return"✖ Error "+f+" while fetching file: "+c},y="✖ Error: File does not exist or is empty",x={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},s="data-src-status",m="loading",$="loaded",_="failed",j="pre[data-src]:not(["+s+'="'+$+'"]):not(['+s+'="'+m+'"])';function C(f,c,h){var t=new XMLHttpRequest;t.open("GET",f,!0),t.onreadystatechange=function(){t.readyState==4&&(t.status<400&&t.responseText?c(t.responseText):t.status>=400?h(p(t.status,t.statusText)):h(y))},t.send(null)}function O(f){var c=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(f||"");if(c){var h=Number(c[1]),t=c[2],e=c[3];return t?e?[h,Number(e)]:[h,void 0]:[h,h]}}i.hooks.add("before-highlightall",function(f){f.selector+=", "+j}),i.hooks.add("before-sanity-check",function(f){var c=f.element;if(c.matches(j)){f.code="",c.setAttribute(s,m);var h=c.appendChild(document.createElement("CODE"));h.textContent=g;var t=c.getAttribute("data-src"),e=f.language;if(e==="none"){var a=(/\.(\w+)$/.exec(t)||[,"none"])[1];e=x[a]||a}i.util.setLanguage(h,e),i.util.setLanguage(c,e);var n=i.plugins.autoloader;n&&n.loadLanguages(e),C(t,function(r){c.setAttribute(s,$);var u=O(c.getAttribute("data-range"));if(u){var o=r.split(/\r\n?|\n/g),l=u[0],d=u[1]==null?o.length:u[1];l<0&&(l+=o.length),l=Math.max(0,Math.min(l-1,o.length)),d<0&&(d+=o.length),d=Math.max(0,Math.min(d,o.length)),r=o.slice(l,d).join(`
|
8
|
+
*/var i=function(g){var p=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,y=0,x={},s={manual:g.Prism&&g.Prism.manual,disableWorkerMessageHandler:g.Prism&&g.Prism.disableWorkerMessageHandler,util:{encode:function t(e){return e instanceof m?new m(e.type,t(e.content),e.alias):Array.isArray(e)?e.map(t):e.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(t){return Object.prototype.toString.call(t).slice(8,-1)},objId:function(t){return t.__id||Object.defineProperty(t,"__id",{value:++y}),t.__id},clone:function t(e,a){a=a||{};var n,r;switch(s.util.type(e)){case"Object":if(r=s.util.objId(e),a[r])return a[r];n={},a[r]=n;for(var u in e)e.hasOwnProperty(u)&&(n[u]=t(e[u],a));return n;case"Array":return r=s.util.objId(e),a[r]?a[r]:(n=[],a[r]=n,e.forEach(function(o,l){n[l]=t(o,a)}),n);default:return e}},getLanguage:function(t){for(;t;){var e=p.exec(t.className);if(e)return e[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,e){t.className=t.className.replace(RegExp(p,"gi"),""),t.classList.add("language-"+e)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(n){var t=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(n.stack)||[])[1];if(t){var e=document.getElementsByTagName("script");for(var a in e)if(e[a].src==t)return e[a]}return null}},isActive:function(t,e,a){for(var n="no-"+e;t;){var r=t.classList;if(r.contains(e))return!0;if(r.contains(n))return!1;t=t.parentElement}return!!a}},languages:{plain:x,plaintext:x,text:x,txt:x,extend:function(t,e){var a=s.util.clone(s.languages[t]);for(var n in e)a[n]=e[n];return a},insertBefore:function(t,e,a,n){n=n||s.languages;var r=n[t],u={};for(var o in r)if(r.hasOwnProperty(o)){if(o==e)for(var l in a)a.hasOwnProperty(l)&&(u[l]=a[l]);a.hasOwnProperty(o)||(u[o]=r[o])}var d=n[t];return n[t]=u,s.languages.DFS(s.languages,function(v,k){k===d&&v!=t&&(this[v]=u)}),u},DFS:function t(e,a,n,r){r=r||{};var u=s.util.objId;for(var o in e)if(e.hasOwnProperty(o)){a.call(e,o,e[o],n||o);var l=e[o],d=s.util.type(l);d==="Object"&&!r[u(l)]?(r[u(l)]=!0,t(l,a,null,r)):d==="Array"&&!r[u(l)]&&(r[u(l)]=!0,t(l,a,o,r))}}},plugins:{},highlightAll:function(t,e){s.highlightAllUnder(document,t,e)},highlightAllUnder:function(t,e,a){var n={callback:a,container:t,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",n),n.elements=Array.prototype.slice.apply(n.container.querySelectorAll(n.selector)),s.hooks.run("before-all-elements-highlight",n);for(var r=0,u;u=n.elements[r++];)s.highlightElement(u,e===!0,n.callback)},highlightElement:function(t,e,a){var n=s.util.getLanguage(t),r=s.languages[n];s.util.setLanguage(t,n);var u=t.parentElement;u&&u.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(u,n);var o=t.textContent,l={element:t,language:n,grammar:r,code:o};function d(k){l.highlightedCode=k,s.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,s.hooks.run("after-highlight",l),s.hooks.run("complete",l),a&&a.call(l.element)}if(s.hooks.run("before-sanity-check",l),u=l.element.parentElement,u&&u.nodeName.toLowerCase()==="pre"&&!u.hasAttribute("tabindex")&&u.setAttribute("tabindex","0"),!l.code){s.hooks.run("complete",l),a&&a.call(l.element);return}if(s.hooks.run("before-highlight",l),!l.grammar){d(s.util.encode(l.code));return}if(e&&g.Worker){var v=new Worker(s.filename);v.onmessage=function(k){d(k.data)},v.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else d(s.highlight(l.code,l.grammar,l.language))},highlight:function(t,e,a){var n={code:t,grammar:e,language:a};if(s.hooks.run("before-tokenize",n),!n.grammar)throw new Error('The language "'+n.language+'" has no grammar.');return n.tokens=s.tokenize(n.code,n.grammar),s.hooks.run("after-tokenize",n),m.stringify(s.util.encode(n.tokens),n.language)},tokenize:function(t,e){var a=e.rest;if(a){for(var n in a)e[n]=a[n];delete e.rest}var r=new j;return C(r,r.head,t),_(t,r,e,r.head,0),z(r)},hooks:{all:{},add:function(t,e){var a=s.hooks.all;a[t]=a[t]||[],a[t].push(e)},run:function(t,e){var a=s.hooks.all[t];if(!(!a||!a.length))for(var n=0,r;r=a[n++];)r(e)}},Token:m};g.Prism=s;function m(t,e,a,n){this.type=t,this.content=e,this.alias=a,this.length=(n||"").length|0}m.stringify=function t(e,a){if(typeof e=="string")return e;if(Array.isArray(e)){var n="";return e.forEach(function(d){n+=t(d,a)}),n}var r={type:e.type,content:t(e.content,a),tag:"span",classes:["token",e.type],attributes:{},language:a},u=e.alias;u&&(Array.isArray(u)?Array.prototype.push.apply(r.classes,u):r.classes.push(u)),s.hooks.run("wrap",r);var o="";for(var l in r.attributes)o+=" "+l+'="'+(r.attributes[l]||"").replace(/"/g,""")+'"';return"<"+r.tag+' class="'+r.classes.join(" ")+'"'+o+">"+r.content+"</"+r.tag+">"};function $(t,e,a,n){t.lastIndex=e;var r=t.exec(a);if(r&&n&&r[1]){var u=r[1].length;r.index+=u,r[0]=r[0].slice(u)}return r}function _(t,e,a,n,r,u){for(var o in a)if(!(!a.hasOwnProperty(o)||!a[o])){var l=a[o];l=Array.isArray(l)?l:[l];for(var d=0;d<l.length;++d){if(u&&u.cause==o+","+d)return;var v=l[d],k=v.inside,Z=!!v.lookbehind,B=!!v.greedy,K=v.alias;if(B&&!v.pattern.global){var Q=v.pattern.toString().match(/[imsuy]*$/)[0];v.pattern=RegExp(v.pattern.source,Q+"g")}for(var U=v.pattern||v,b=n.next,w=r;b!==e.tail&&!(u&&w>=u.reach);w+=b.value.length,b=b.next){var T=b.value;if(e.length>t.length)return;if(!(T instanceof m)){var L=1,F;if(B){if(F=$(U,w,t,Z),!F||F.index>=t.length)break;var D=F.index,V=F.index+F[0].length,S=w;for(S+=b.value.length;D>=S;)b=b.next,S+=b.value.length;if(S-=b.value.length,w=S,b.value instanceof m)continue;for(var P=b;P!==e.tail&&(S<V||typeof P.value=="string");P=P.next)L++,S+=P.value.length;L--,T=t.slice(w,S),F.index-=w}else if(F=$(U,0,T,Z),!F)continue;var D=F.index,I=F[0],H=T.slice(0,D),W=T.slice(D+I.length),G=w+T.length;u&&G>u.reach&&(u.reach=G);var M=b.prev;H&&(M=C(e,M,H),w+=H.length),O(e,M,L);var ee=new m(o,k?s.tokenize(I,k):I,K,I);if(b=C(e,M,ee),W&&C(e,b,W),L>1){var q={cause:o+","+d,reach:G};_(t,e,a,b.prev,w,q),u&&q.reach>u.reach&&(u.reach=q.reach)}}}}}}function j(){var t={value:null,prev:null,next:null},e={value:null,prev:t,next:null};t.next=e,this.head=t,this.tail=e,this.length=0}function C(t,e,a){var n=e.next,r={value:a,prev:e,next:n};return e.next=r,n.prev=r,t.length++,r}function O(t,e,a){for(var n=e.next,r=0;r<a&&n!==t.tail;r++)n=n.next;e.next=n,n.prev=e,t.length-=r}function z(t){for(var e=[],a=t.head.next;a!==t.tail;)e.push(a.value),a=a.next;return e}if(!g.document)return g.addEventListener&&(s.disableWorkerMessageHandler||g.addEventListener("message",function(t){var e=JSON.parse(t.data),a=e.language,n=e.code,r=e.immediateClose;g.postMessage(s.highlight(n,s.languages[a],a)),r&&g.close()},!1)),s;var f=s.util.currentScript();f&&(s.filename=f.src,f.hasAttribute("data-manual")&&(s.manual=!0));function c(){s.manual||s.highlightAll()}if(!s.manual){var h=document.readyState;h==="loading"||h==="interactive"&&f&&f.defer?document.addEventListener("DOMContentLoaded",c):window.requestAnimationFrame?window.requestAnimationFrame(c):window.setTimeout(c,16)}return s}(R);A.exports&&(A.exports=i),typeof N<"u"&&(N.Prism=i),i.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},i.languages.markup.tag.inside["attr-value"].inside.entity=i.languages.markup.entity,i.languages.markup.doctype.inside["internal-subset"].inside=i.languages.markup,i.hooks.add("wrap",function(g){g.type==="entity"&&(g.attributes.title=g.content.replace(/&/,"&"))}),Object.defineProperty(i.languages.markup.tag,"addInlined",{value:function(p,y){var x={};x["language-"+y]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:i.languages[y]},x.cdata=/^<!\[CDATA\[|\]\]>$/i;var s={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:x}};s["language-"+y]={pattern:/[\s\S]+/,inside:i.languages[y]};var m={};m[p]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return p}),"i"),lookbehind:!0,greedy:!0,inside:s},i.languages.insertBefore("markup","cdata",m)}}),Object.defineProperty(i.languages.markup.tag,"addAttribute",{value:function(g,p){i.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+g+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[p,"language-"+p],inside:i.languages[p]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),i.languages.html=i.languages.markup,i.languages.mathml=i.languages.markup,i.languages.svg=i.languages.markup,i.languages.xml=i.languages.extend("markup",{}),i.languages.ssml=i.languages.xml,i.languages.atom=i.languages.xml,i.languages.rss=i.languages.xml,function(g){var p=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;g.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+p.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+p.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+p.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+p.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:p,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},g.languages.css.atrule.inside.rest=g.languages.css;var y=g.languages.markup;y&&(y.tag.addInlined("style","css"),y.tag.addAttribute("style","css"))}(i),i.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},i.languages.javascript=i.languages.extend("clike",{"class-name":[i.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),i.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,i.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:i.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:i.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:i.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:i.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:i.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),i.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:i.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),i.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),i.languages.markup&&(i.languages.markup.tag.addInlined("script","javascript"),i.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),i.languages.js=i.languages.javascript,function(){if(typeof i>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var g="Loading…",p=function(f,c){return"✖ Error "+f+" while fetching file: "+c},y="✖ Error: File does not exist or is empty",x={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},s="data-src-status",m="loading",$="loaded",_="failed",j="pre[data-src]:not(["+s+'="'+$+'"]):not(['+s+'="'+m+'"])';function C(f,c,h){var t=new XMLHttpRequest;t.open("GET",f,!0),t.onreadystatechange=function(){t.readyState==4&&(t.status<400&&t.responseText?c(t.responseText):t.status>=400?h(p(t.status,t.statusText)):h(y))},t.send(null)}function O(f){var c=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(f||"");if(c){var h=Number(c[1]),t=c[2],e=c[3];return t?e?[h,Number(e)]:[h,void 0]:[h,h]}}i.hooks.add("before-highlightall",function(f){f.selector+=", "+j}),i.hooks.add("before-sanity-check",function(f){var c=f.element;if(c.matches(j)){f.code="",c.setAttribute(s,m);var h=c.appendChild(document.createElement("CODE"));h.textContent=g;var t=c.getAttribute("data-src"),e=f.language;if(e==="none"){var a=(/\.(\w+)$/.exec(t)||[,"none"])[1];e=x[a]||a}i.util.setLanguage(h,e),i.util.setLanguage(c,e);var n=i.plugins.autoloader;n&&n.loadLanguages(e),C(t,function(r){c.setAttribute(s,$);var u=O(c.getAttribute("data-range"));if(u){var o=r.split(/\r\n?|\n/g),l=u[0],d=u[1]==null?o.length:u[1];l<0&&(l+=o.length),l=Math.max(0,Math.min(l-1,o.length)),d<0&&(d+=o.length),d=Math.max(0,Math.min(d,o.length)),r=o.slice(l,d).join(`
|
9
9
|
`),c.hasAttribute("data-start")||c.setAttribute("data-start",String(l+1))}h.textContent=r,i.highlightElement(h)},function(r){c.setAttribute(s,_),h.textContent=r})}}),i.plugins.fileHighlight={highlight:function(c){for(var h=(c||document).querySelectorAll(j),t=0,e;e=h[t++];)i.highlightElement(e)}};var z=!1;i.fileHighlight=function(){z||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),z=!0),i.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(J);var ne=J.exports;const re=te(ne);Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/};Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python;Prism.languages.py=Prism.languages.python;function ie({code:A}){return Y.useEffect(()=>{re.highlightAll()},[]),E.jsx("code",{className:"language-python",children:A})}function oe({code:A,wrap:R=!1,fullWidth:i=!1,highlightCode:g=!1,className:p,codeClasses:y}){const[x,s]=Y.useState(!1);async function m($){try{await navigator.clipboard.writeText($),s(!0),setTimeout(()=>{s(!1)},2e3)}catch(_){console.error("Failed to copy:",_)}}return E.jsxs("div",{className:X(`flex ${i?"w-full":"max-w-fit"} justify-between gap-4 rounded-md border border-theme-border-moderate bg-theme-surface-tertiary px-4 py-3`,p),children:[E.jsx("pre",{className:X(`${R?"":"whitespace-nowrap"} overflow-auto text-left font-mono text-theme-text-primary`,y),children:g?E.jsx(ie,{code:A}):E.jsx("code",{children:A})}),E.jsx("button",{onClick:()=>m(A),children:x?E.jsx("p",{children:"Copied!"}):E.jsx(ae,{className:"fill-neutral-500",width:24,height:24})})]})}export{oe as C};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as p,j as e}from"./@radix-DnFH_oo1.js";import{a7 as m,a5 as c,a8 as d,aa as x,X as b}from"./index-B9wVwe7u.js";import{S as f}from"./chevron-down-Cwb-W_B_.js";function g({title:r,children:s,initialOpen:o=!1,className:l,contentClassName:t,intent:n="primary"}){const[a,i]=p.useState(o);return e.jsxs(m,{className:l,open:a,onOpenChange:i,children:[e.jsx(c,{intent:n,children:e.jsxs(d,{className:"flex w-full items-center gap-[10px]",children:[e.jsx(f,{className:` ${a?"":"-rotate-90"} h-5 w-5 rounded-md fill-neutral-500 transition-transform duration-200 hover:bg-neutral-200`}),r]})}),e.jsx(x,{className:b("space-y-3 border-t border-theme-border-moderate bg-theme-surface-primary px-5 py-3",t),children:s})]})}export{g as C};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as a,j as e}from"./@radix-DnFH_oo1.js";import{ae as c,af as l,f as t,ag as d,ai as n,al as C,am as m}from"./index-B9wVwe7u.js";import{C as x}from"./CodeSnippet-DNWdQmbo.js";const h=s=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...s},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3ZM1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12ZM11.2451 7.43304C11.2546 7.43912 11.264 7.44517 11.2734 7.45121L15.994 10.4859C16.0026 10.4914 16.0112 10.497 16.02 10.5026C16.171 10.5996 16.3361 10.7057 16.4676 10.8083C16.6071 10.917 16.8273 11.1089 16.9571 11.4162C17.1148 11.7894 17.1148 12.2106 16.9571 12.5838C16.8273 12.8911 16.6071 13.083 16.4676 13.1917C16.3361 13.2943 16.171 13.4004 16.02 13.4974C16.0112 13.503 16.0026 13.5086 15.994 13.5141L11.2734 16.5488C11.264 16.5548 11.2545 16.5609 11.2451 16.567C11.0694 16.68 10.8846 16.7988 10.7219 16.8835C10.5582 16.9687 10.2611 17.1066 9.89314 17.0804C9.45914 17.0494 9.05999 16.8314 8.79923 16.4831C8.57813 16.1878 8.5335 15.8633 8.51664 15.6796C8.49989 15.4969 8.49995 15.2772 8.49999 15.0683C8.5 15.057 8.5 15.0458 8.5 15.0347V8.96533C8.5 8.95417 8.5 8.94296 8.49999 8.93173C8.49995 8.72279 8.49989 8.50311 8.51664 8.32042C8.5335 8.13665 8.57813 7.81219 8.79923 7.51687C9.05999 7.16856 9.45914 6.95064 9.89314 6.91964C10.2611 6.89336 10.5582 7.03127 10.7219 7.11647C10.8846 7.20117 11.0694 7.32001 11.2451 7.43304ZM10.5 9.33167V14.6683L14.6507 12L10.5 9.33167Z"}));function g({videoLink:s,isButton:r=!0,buttonText:i,fallbackImage:o}){return e.jsxs(c,{children:[r?e.jsx(l,{asChild:!0,children:e.jsxs(t,{className:"mt-5 h-auto gap-1 px-2 py-1 sm:h-7",size:"md",children:[e.jsx(h,{className:"h-5 w-5 shrink-0 fill-white"}),i??e.jsx(e.Fragment,{children:"Watch the Quickstart Guide (3 min)"})]})}):e.jsx(l,{children:o}),e.jsxs(d,{className:"max-w-[1000px]",children:[e.jsx("div",{className:"flex items-center justify-between border-b border-theme-border-moderate py-2 pl-5 pr-3",children:e.jsx(n,{className:"text-text-lg",children:"Get Started"})}),e.jsx("div",{className:"",children:e.jsx("iframe",{className:"aspect-video w-full overflow-hidden",src:s,allowFullScreen:!0,allow:"fullscreen"})}),e.jsx(C,{children:e.jsx(m,{asChild:!0,children:e.jsx(t,{size:"md",children:"Close"})})})]})]})}function f(s){return e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:s.description}),e.jsx(x,{codeClasses:"whitespace-pre-wrap",wrap:!0,code:s.command})]})}export{g as V,f as g};
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{r as a,j as e}from"./@radix-DnFH_oo1.js";import{T as d,G as u,H as m,J as x}from"./index-B9wVwe7u.js";import{S as f}from"./copy-CaGlDsUy.js";function v({copyText:s,isVisible:o,copyTitle:n}){const r=a.useRef(null),[p,i]=a.useState(!1),l=o?n:"Copy to Clipboard",c=()=>{navigator.clipboard&&(navigator.clipboard.writeText(s),i(!0),setTimeout(()=>{i(!1)},2e3))};return e.jsx(d,{children:e.jsxs(u,{delayDuration:200,children:[e.jsxs(m,{className:`${o?"":"invisible opacity-0 group-hover/copybutton:opacity-100"} h-4 w-4 rounded-sm p-0.25 transition-all
|
2
|
+
duration-200 hover:bg-theme-surface-primary active:bg-neutral-300 group-hover/copybutton:visible `,onClick:t=>{t.preventDefault(),c()},ref:r,children:[e.jsx("span",{className:"sr-only",children:"Copy to Clipboard"}),e.jsx(f,{className:`${o?"h-5 w-5":"h-3 w-3"} pointer-events-none fill-theme-text-tertiary`})]}),e.jsx(x,{onPointerDownOutside:t=>{t.currentTarget===r.current&&t.preventDefault()},className:"z-50 rounded-md bg-theme-text-primary px-3 py-2 text-text-xs text-theme-text-negative shadow-lg",sideOffset:5,children:p?"Copied!":l})]})})}export{v as C};
|
zenml/zen_server/dashboard/assets/{CsvVizualization-D3kAypDj.js → CsvVizualization-Dyasr2jU.js}
RENAMED
@@ -1,15 +1,15 @@
|
|
1
|
-
import{c as we,r as pe,j as G}from"./@radix-
|
1
|
+
import{c as we,r as pe,j as G}from"./@radix-DnFH_oo1.js";import{aY as Ce,aZ as xe,a_ as ke,a$ as Re,b0 as Oe,b1 as Te}from"./index-B9wVwe7u.js";import"./@tanstack-QbMbTrh5.js";import"./@react-router-APVeuk-U.js";import"./@reactflow-B6kq9fJZ.js";var be={exports:{}};/* @license
|
2
2
|
Papa Parse
|
3
3
|
v5.4.1
|
4
4
|
https://github.com/mholt/PapaParse
|
5
5
|
License: MIT
|
6
|
-
*/(function(se,ge){(function(ae,v){se.exports=v()})(we,function ae(){var v=typeof self<"u"?self:typeof window<"u"?window:v!==void 0?v:{},
|
6
|
+
*/(function(se,ge){(function(ae,v){se.exports=v()})(we,function ae(){var v=typeof self<"u"?self:typeof window<"u"?window:v!==void 0?v:{},V=!v.document&&!!v.postMessage,B=v.IS_PAPA_WORKER||!1,U={},ee=0,h={parse:function(t,e){var r=(e=e||{}).dynamicTyping||!1;if(p(r)&&(e.dynamicTypingFunction=r,r={}),e.dynamicTyping=r,e.transform=!!p(e.transform)&&e.transform,e.worker&&h.WORKERS_SUPPORTED){var i=function(){if(!h.WORKERS_SUPPORTED)return!1;var f=(A=v.URL||v.webkitURL||null,b=ae.toString(),h.BLOB_URL||(h.BLOB_URL=A.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",b,")();"],{type:"text/javascript"})))),d=new v.Worker(f),A,b;return d.onmessage=Ee,d.id=ee++,U[d.id]=d}();return i.userStep=e.step,i.userChunk=e.chunk,i.userComplete=e.complete,i.userError=e.error,e.step=p(e.step),e.chunk=p(e.chunk),e.complete=p(e.complete),e.error=p(e.error),delete e.worker,void i.postMessage({input:t,config:e,workerId:i.id})}var s=null;return h.NODE_STREAM_INPUT,typeof t=="string"?(t=function(f){return f.charCodeAt(0)===65279?f.slice(1):f}(t),s=e.download?new oe(e):new ie(e)):t.readable===!0&&p(t.read)&&p(t.on)?s=new he(e):(v.File&&t instanceof File||t instanceof Object)&&(s=new ue(e)),s.stream(t)},unparse:function(t,e){var r=!1,i=!0,s=",",f=`\r
|
7
7
|
`,d='"',A=d+d,b=!1,a=null,w=!1;(function(){if(typeof e=="object"){if(typeof e.delimiter!="string"||h.BAD_DELIMITERS.filter(function(n){return e.delimiter.indexOf(n)!==-1}).length||(s=e.delimiter),(typeof e.quotes=="boolean"||typeof e.quotes=="function"||Array.isArray(e.quotes))&&(r=e.quotes),typeof e.skipEmptyLines!="boolean"&&typeof e.skipEmptyLines!="string"||(b=e.skipEmptyLines),typeof e.newline=="string"&&(f=e.newline),typeof e.quoteChar=="string"&&(d=e.quoteChar),typeof e.header=="boolean"&&(i=e.header),Array.isArray(e.columns)){if(e.columns.length===0)throw new Error("Option columns is empty");a=e.columns}e.escapeChar!==void 0&&(A=e.escapeChar+d),(typeof e.escapeFormulae=="boolean"||e.escapeFormulae instanceof RegExp)&&(w=e.escapeFormulae instanceof RegExp?e.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var u=new RegExp(ne(d),"g");if(typeof t=="string"&&(t=JSON.parse(t)),Array.isArray(t)){if(!t.length||Array.isArray(t[0]))return P(null,t,b);if(typeof t[0]=="object")return P(a||Object.keys(t[0]),t,b)}else if(typeof t=="object")return typeof t.data=="string"&&(t.data=JSON.parse(t.data)),Array.isArray(t.data)&&(t.fields||(t.fields=t.meta&&t.meta.fields||a),t.fields||(t.fields=Array.isArray(t.data[0])?t.fields:typeof t.data[0]=="object"?Object.keys(t.data[0]):[]),Array.isArray(t.data[0])||typeof t.data[0]=="object"||(t.data=[t.data])),P(t.fields||[],t.data||[],b);throw new Error("Unable to serialize unrecognized input");function P(n,m,D){var E="";typeof n=="string"&&(n=JSON.parse(n)),typeof m=="string"&&(m=JSON.parse(m));var I=Array.isArray(n)&&0<n.length,O=!Array.isArray(m[0]);if(I&&i){for(var T=0;T<n.length;T++)0<T&&(E+=s),E+=S(n[T],T);0<m.length&&(E+=f)}for(var o=0;o<m.length;o++){var l=I?n.length:m[o].length,y=!1,R=I?Object.keys(m[o]).length===0:m[o].length===0;if(D&&!I&&(y=D==="greedy"?m[o].join("").trim()==="":m[o].length===1&&m[o][0].length===0),D==="greedy"&&I){for(var g=[],L=0;L<l;L++){var C=O?n[L]:L;g.push(m[o][C])}y=g.join("").trim()===""}if(!y){for(var _=0;_<l;_++){0<_&&!R&&(E+=s);var q=I&&O?n[_]:_;E+=S(m[o][q],_)}o<m.length-1&&(!D||0<l&&!R)&&(E+=f)}}return E}function S(n,m){if(n==null)return"";if(n.constructor===Date)return JSON.stringify(n).slice(1,25);var D=!1;w&&typeof n=="string"&&w.test(n)&&(n="'"+n,D=!0);var E=n.toString().replace(u,A);return(D=D||r===!0||typeof r=="function"&&r(n,m)||Array.isArray(r)&&r[m]||function(I,O){for(var T=0;T<O.length;T++)if(-1<I.indexOf(O[T]))return!0;return!1}(E,h.BAD_DELIMITERS)||-1<E.indexOf(s)||E.charAt(0)===" "||E.charAt(E.length-1)===" ")?d+E+d:E}}};if(h.RECORD_SEP="",h.UNIT_SEP="",h.BYTE_ORDER_MARK="\uFEFF",h.BAD_DELIMITERS=["\r",`
|
8
|
-
`,'"',h.BYTE_ORDER_MARK],h.WORKERS_SUPPORTED=!
|
9
|
-
`),
|
8
|
+
`,'"',h.BYTE_ORDER_MARK],h.WORKERS_SUPPORTED=!V&&!!v.Worker,h.NODE_STREAM_INPUT=1,h.LocalChunkSize=10485760,h.RemoteChunkSize=5242880,h.DefaultDelimiter=",",h.Parser=de,h.ParserHandle=_e,h.NetworkStreamer=oe,h.FileStreamer=ue,h.StringStreamer=ie,h.ReadableStreamStreamer=he,v.jQuery){var re=v.jQuery;re.fn.parse=function(t){var e=t.config||{},r=[];return this.each(function(f){if(!(re(this).prop("tagName").toUpperCase()==="INPUT"&&re(this).attr("type").toLowerCase()==="file"&&v.FileReader)||!this.files||this.files.length===0)return!0;for(var d=0;d<this.files.length;d++)r.push({file:this.files[d],inputElem:this,instanceConfig:re.extend({},e)})}),i(),this;function i(){if(r.length!==0){var f,d,A,b,a=r[0];if(p(t.before)){var w=t.before(a.file,a.inputElem);if(typeof w=="object"){if(w.action==="abort")return f="AbortError",d=a.file,A=a.inputElem,b=w.reason,void(p(t.error)&&t.error({name:f},d,A,b));if(w.action==="skip")return void s();typeof w.config=="object"&&(a.instanceConfig=re.extend(a.instanceConfig,w.config))}else if(w==="skip")return void s()}var u=a.instanceConfig.complete;a.instanceConfig.complete=function(P){p(u)&&u(P,a.file,a.inputElem),s()},h.parse(a.file,a.instanceConfig)}else p(t.complete)&&t.complete()}function s(){r.splice(0,1),i()}}}function H(t){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(e){var r=le(e);r.chunkSize=parseInt(r.chunkSize),e.step||e.chunk||(r.chunkSize=null),this._handle=new _e(r),(this._handle.streamer=this)._config=r}).call(this,t),this.parseChunk=function(e,r){if(this.isFirstChunk&&p(this._config.beforeFirstChunk)){var i=this._config.beforeFirstChunk(e);i!==void 0&&(e=i)}this.isFirstChunk=!1,this._halted=!1;var s=this._partialLine+e;this._partialLine="";var f=this._handle.parse(s,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var d=f.meta.cursor;this._finished||(this._partialLine=s.substring(d-this._baseIndex),this._baseIndex=d),f&&f.data&&(this._rowCount+=f.data.length);var A=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(B)v.postMessage({results:f,workerId:h.WORKER_ID,finished:A});else if(p(this._config.chunk)&&!r){if(this._config.chunk(f,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);f=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(f.data),this._completeResults.errors=this._completeResults.errors.concat(f.errors),this._completeResults.meta=f.meta),this._completed||!A||!p(this._config.complete)||f&&f.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),A||f&&f.meta.paused||this._nextChunk(),f}this._halted=!0},this._sendError=function(e){p(this._config.error)?this._config.error(e):B&&this._config.error&&v.postMessage({workerId:h.WORKER_ID,error:e,finished:!1})}}function oe(t){var e;(t=t||{}).chunkSize||(t.chunkSize=h.RemoteChunkSize),H.call(this,t),this._nextChunk=V?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(r){this._input=r,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(e=new XMLHttpRequest,this._config.withCredentials&&(e.withCredentials=this._config.withCredentials),V||(e.onload=Q(this._chunkLoaded,this),e.onerror=Q(this._chunkError,this)),e.open(this._config.downloadRequestBody?"POST":"GET",this._input,!V),this._config.downloadRequestHeaders){var r=this._config.downloadRequestHeaders;for(var i in r)e.setRequestHeader(i,r[i])}if(this._config.chunkSize){var s=this._start+this._config.chunkSize-1;e.setRequestHeader("Range","bytes="+this._start+"-"+s)}try{e.send(this._config.downloadRequestBody)}catch(f){this._chunkError(f.message)}V&&e.status===0&&this._chunkError()}},this._chunkLoaded=function(){e.readyState===4&&(e.status<200||400<=e.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:e.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(r){var i=r.getResponseHeader("Content-Range");return i===null?-1:parseInt(i.substring(i.lastIndexOf("/")+1))}(e),this.parseChunk(e.responseText)))},this._chunkError=function(r){var i=e.statusText||r;this._sendError(new Error(i))}}function ue(t){var e,r;(t=t||{}).chunkSize||(t.chunkSize=h.LocalChunkSize),H.call(this,t);var i=typeof FileReader<"u";this.stream=function(s){this._input=s,r=s.slice||s.webkitSlice||s.mozSlice,i?((e=new FileReader).onload=Q(this._chunkLoaded,this),e.onerror=Q(this._chunkError,this)):e=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var s=this._input;if(this._config.chunkSize){var f=Math.min(this._start+this._config.chunkSize,this._input.size);s=r.call(s,this._start,f)}var d=e.readAsText(s,this._config.encoding);i||this._chunkLoaded({target:{result:d}})},this._chunkLoaded=function(s){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(s.target.result)},this._chunkError=function(){this._sendError(e.error)}}function ie(t){var e;H.call(this,t=t||{}),this.stream=function(r){return e=r,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var r,i=this._config.chunkSize;return i?(r=e.substring(0,i),e=e.substring(i)):(r=e,e=""),this._finished=!e,this.parseChunk(r)}}}function he(t){H.call(this,t=t||{});var e=[],r=!0,i=!1;this.pause=function(){H.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){H.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(s){this._input=s,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){i&&e.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),e.length?this.parseChunk(e.shift()):r=!0},this._streamData=Q(function(s){try{e.push(typeof s=="string"?s:s.toString(this._config.encoding)),r&&(r=!1,this._checkIsFinished(),this.parseChunk(e.shift()))}catch(f){this._streamError(f)}},this),this._streamError=Q(function(s){this._streamCleanUp(),this._sendError(s)},this),this._streamEnd=Q(function(){this._streamCleanUp(),i=!0,this._streamData("")},this),this._streamCleanUp=Q(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function _e(t){var e,r,i,s=Math.pow(2,53),f=-s,d=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,A=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,b=this,a=0,w=0,u=!1,P=!1,S=[],n={data:[],errors:[],meta:{}};if(p(t.step)){var m=t.step;t.step=function(o){if(n=o,I())E();else{if(E(),n.data.length===0)return;a+=o.data.length,t.preview&&a>t.preview?r.abort():(n.data=n.data[0],m(n,b))}}}function D(o){return t.skipEmptyLines==="greedy"?o.join("").trim()==="":o.length===1&&o[0].length===0}function E(){return n&&i&&(T("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+h.DefaultDelimiter+"'"),i=!1),t.skipEmptyLines&&(n.data=n.data.filter(function(o){return!D(o)})),I()&&function(){if(!n)return;function o(y,R){p(t.transformHeader)&&(y=t.transformHeader(y,R)),S.push(y)}if(Array.isArray(n.data[0])){for(var l=0;I()&&l<n.data.length;l++)n.data[l].forEach(o);n.data.splice(0,1)}else n.data.forEach(o)}(),function(){if(!n||!t.header&&!t.dynamicTyping&&!t.transform)return n;function o(y,R){var g,L=t.header?{}:[];for(g=0;g<y.length;g++){var C=g,_=y[g];t.header&&(C=g>=S.length?"__parsed_extra":S[g]),t.transform&&(_=t.transform(_,C)),_=O(C,_),C==="__parsed_extra"?(L[C]=L[C]||[],L[C].push(_)):L[C]=_}return t.header&&(g>S.length?T("FieldMismatch","TooManyFields","Too many fields: expected "+S.length+" fields but parsed "+g,w+R):g<S.length&&T("FieldMismatch","TooFewFields","Too few fields: expected "+S.length+" fields but parsed "+g,w+R)),L}var l=1;return!n.data.length||Array.isArray(n.data[0])?(n.data=n.data.map(o),l=n.data.length):n.data=o(n.data,0),t.header&&n.meta&&(n.meta.fields=S),w+=l,n}()}function I(){return t.header&&S.length===0}function O(o,l){return y=o,t.dynamicTypingFunction&&t.dynamicTyping[y]===void 0&&(t.dynamicTyping[y]=t.dynamicTypingFunction(y)),(t.dynamicTyping[y]||t.dynamicTyping)===!0?l==="true"||l==="TRUE"||l!=="false"&&l!=="FALSE"&&(function(R){if(d.test(R)){var g=parseFloat(R);if(f<g&&g<s)return!0}return!1}(l)?parseFloat(l):A.test(l)?new Date(l):l===""?null:l):l;var y}function T(o,l,y,R){var g={type:o,code:l,message:y};R!==void 0&&(g.row=R),n.errors.push(g)}this.parse=function(o,l,y){var R=t.quoteChar||'"';if(t.newline||(t.newline=function(C,_){C=C.substring(0,1048576);var q=new RegExp(ne(_)+"([^]*?)"+ne(_),"gm"),F=(C=C.replace(q,"")).split("\r"),N=C.split(`
|
9
|
+
`),K=1<N.length&&N[0].length<F[0].length;if(F.length===1||K)return`
|
10
10
|
`;for(var z=0,k=0;k<F.length;k++)F[k][0]===`
|
11
11
|
`&&z++;return z>=F.length/2?`\r
|
12
|
-
`:"\r"}(o,R)),i=!1,t.delimiter)p(t.delimiter)&&(t.delimiter=t.delimiter(o),n.meta.delimiter=t.delimiter);else{var g=function(C,_,q,F,N){var
|
12
|
+
`:"\r"}(o,R)),i=!1,t.delimiter)p(t.delimiter)&&(t.delimiter=t.delimiter(o),n.meta.delimiter=t.delimiter);else{var g=function(C,_,q,F,N){var K,z,k,x;N=N||[","," ","|",";",h.RECORD_SEP,h.UNIT_SEP];for(var Y=0;Y<N.length;Y++){var c=N[Y],te=0,W=0,X=0;k=void 0;for(var J=new de({comments:F,delimiter:c,newline:_,preview:10}).parse(C),$=0;$<J.data.length;$++)if(q&&D(J.data[$]))X++;else{var Z=J.data[$].length;W+=Z,k!==void 0?0<Z&&(te+=Math.abs(Z-k),k=Z):k=Z}0<J.data.length&&(W/=J.data.length-X),(z===void 0||te<=z)&&(x===void 0||x<W)&&1.99<W&&(z=te,K=c,x=W)}return{successful:!!(t.delimiter=K),bestDelimiter:K}}(o,t.newline,t.skipEmptyLines,t.comments,t.delimitersToGuess);g.successful?t.delimiter=g.bestDelimiter:(i=!0,t.delimiter=h.DefaultDelimiter),n.meta.delimiter=t.delimiter}var L=le(t);return t.preview&&t.header&&L.preview++,e=o,r=new de(L),n=r.parse(e,l,y),E(),u?{meta:{paused:!0}}:n||{meta:{paused:!1}}},this.paused=function(){return u},this.pause=function(){u=!0,r.abort(),e=p(t.chunk)?"":e.substring(r.getCharIndex())},this.resume=function(){b.streamer._halted?(u=!1,b.streamer.parseChunk(e,!0)):setTimeout(b.resume,3)},this.aborted=function(){return P},this.abort=function(){P=!0,r.abort(),n.meta.aborted=!0,p(t.complete)&&t.complete(n),e=""}}function ne(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function de(t){var e,r=(t=t||{}).delimiter,i=t.newline,s=t.comments,f=t.step,d=t.preview,A=t.fastMode,b=e=t.quoteChar===void 0||t.quoteChar===null?'"':t.quoteChar;if(t.escapeChar!==void 0&&(b=t.escapeChar),(typeof r!="string"||-1<h.BAD_DELIMITERS.indexOf(r))&&(r=","),s===r)throw new Error("Comment character same as delimiter");s===!0?s="#":(typeof s!="string"||-1<h.BAD_DELIMITERS.indexOf(s))&&(s=!1),i!==`
|
13
13
|
`&&i!=="\r"&&i!==`\r
|
14
14
|
`&&(i=`
|
15
|
-
`);var a=0,w=!1;this.parse=function(u,P,S){if(typeof u!="string")throw new Error("Input must be a string");var n=u.length,m=r.length,D=i.length,E=s.length,I=p(f),O=[],T=[],o=[],l=a=0;if(!u)return M();if(t.header&&!P){var y=u.split(i)[0].split(r),R=[],g={},L=!1;for(var C in y){var _=y[C];p(t.transformHeader)&&(_=t.transformHeader(_,C));var q=_,F=g[_]||0;for(0<F&&(L=!0,q=_+"_"+F),g[_]=F+1;R.includes(q);)q=q+"_"+F;R.push(q)}if(L){var N=u.split(i);N[0]=R.join(r),u=N.join(i)}}if(A||A!==!1&&u.indexOf(e)===-1){for(var
|
15
|
+
`);var a=0,w=!1;this.parse=function(u,P,S){if(typeof u!="string")throw new Error("Input must be a string");var n=u.length,m=r.length,D=i.length,E=s.length,I=p(f),O=[],T=[],o=[],l=a=0;if(!u)return M();if(t.header&&!P){var y=u.split(i)[0].split(r),R=[],g={},L=!1;for(var C in y){var _=y[C];p(t.transformHeader)&&(_=t.transformHeader(_,C));var q=_,F=g[_]||0;for(0<F&&(L=!0,q=_+"_"+F),g[_]=F+1;R.includes(q);)q=q+"_"+F;R.push(q)}if(L){var N=u.split(i);N[0]=R.join(r),u=N.join(i)}}if(A||A!==!1&&u.indexOf(e)===-1){for(var K=u.split(i),z=0;z<K.length;z++){if(o=K[z],a+=o.length,z!==K.length-1)a+=i.length;else if(S)return M();if(!s||o.substring(0,E)!==s){if(I){if(O=[],X(o.split(r)),fe(),w)return M()}else X(o.split(r));if(d&&d<=z)return O=O.slice(0,d),M(!0)}}return M()}for(var k=u.indexOf(r,a),x=u.indexOf(i,a),Y=new RegExp(ne(b)+ne(e),"g"),c=u.indexOf(e,a);;)if(u[a]!==e)if(s&&o.length===0&&u.substring(a,a+E)===s){if(x===-1)return M();a=x+D,x=u.indexOf(i,a),k=u.indexOf(r,a)}else if(k!==-1&&(k<x||x===-1))o.push(u.substring(a,k)),a=k+m,k=u.indexOf(r,a);else{if(x===-1)break;if(o.push(u.substring(a,x)),Z(x+D),I&&(fe(),w))return M();if(d&&O.length>=d)return M(!0)}else for(c=a,a++;;){if((c=u.indexOf(e,c+1))===-1)return S||T.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:O.length,index:a}),$();if(c===n-1)return $(u.substring(a,c).replace(Y,e));if(e!==b||u[c+1]!==b){if(e===b||c===0||u[c-1]!==b){k!==-1&&k<c+1&&(k=u.indexOf(r,c+1)),x!==-1&&x<c+1&&(x=u.indexOf(i,c+1));var te=J(x===-1?k:Math.min(k,x));if(u.substr(c+1+te,m)===r){o.push(u.substring(a,c).replace(Y,e)),u[a=c+1+te+m]!==e&&(c=u.indexOf(e,a)),k=u.indexOf(r,a),x=u.indexOf(i,a);break}var W=J(x);if(u.substring(c+1+W,c+1+W+D)===i){if(o.push(u.substring(a,c).replace(Y,e)),Z(c+1+W+D),k=u.indexOf(r,a),c=u.indexOf(e,a),I&&(fe(),w))return M();if(d&&O.length>=d)return M(!0);break}T.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:O.length,index:a}),c++}}else c++}return $();function X(j){O.push(j),l=a}function J(j){var ye=0;if(j!==-1){var ce=u.substring(c+1,j);ce&&ce.trim()===""&&(ye=ce.length)}return ye}function $(j){return S||(j===void 0&&(j=u.substring(a)),o.push(j),a=n,X(o),I&&fe()),M()}function Z(j){a=j,X(o),o=[],x=u.indexOf(i,a)}function M(j){return{data:O,errors:T,meta:{delimiter:r,linebreak:i,aborted:w,truncated:!!j,cursor:l+(P||0)}}}function fe(){f(M()),O=[],T=[]}},this.abort=function(){w=!0},this.getCharIndex=function(){return a}}function Ee(t){var e=t.data,r=U[e.workerId],i=!1;if(e.error)r.userError(e.error,e.file);else if(e.results&&e.results.data){var s={abort:function(){i=!0,me(e.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:ve,resume:ve};if(p(r.userStep)){for(var f=0;f<e.results.data.length&&(r.userStep({data:e.results.data[f],errors:e.results.errors,meta:e.results.meta},s),!i);f++);delete e.results}else p(r.userChunk)&&(r.userChunk(e.results,s,e.file),delete e.results)}e.finished&&!i&&me(e.workerId,e.results)}function me(t,e){var r=U[t];p(r.userComplete)&&r.userComplete(e),r.terminate(),delete U[t]}function ve(){throw new Error("Not implemented.")}function le(t){if(typeof t!="object"||t===null)return t;var e=Array.isArray(t)?[]:{};for(var r in t)e[r]=le(t[r]);return e}function Q(t,e){return function(){t.apply(e,arguments)}}function p(t){return typeof t=="function"}return B&&(v.onmessage=function(t){var e=t.data;if(h.WORKER_ID===void 0&&e&&(h.WORKER_ID=e.workerId),typeof e.input=="string")v.postMessage({workerId:h.WORKER_ID,results:h.parse(e.input,e.config),finished:!0});else if(v.File&&e.input instanceof File||e.input instanceof Object){var r=h.parse(e.input,e.config);r&&v.postMessage({workerId:h.WORKER_ID,results:r,finished:!0})}}),(oe.prototype=Object.create(H.prototype)).constructor=oe,(ue.prototype=Object.create(H.prototype)).constructor=ue,(ie.prototype=Object.create(ie.prototype)).constructor=ie,(he.prototype=Object.create(H.prototype)).constructor=he,h})})(be);var Ae=be.exports;function ze({content:se}){const[ge,ae]=pe.useState([]),[v,V]=pe.useState([]);return pe.useEffect(()=>{Ae.parse(se,{header:!0,skipEmptyLines:!0,complete:B=>{const U=[],ee=[];B.data.forEach(h=>{U.push(Object.keys(h)),ee.push(Object.values(h))}),ae(U[0]),V(ee)}})},[se]),G.jsx("div",{className:"overflow-hidden overflow-x-auto rounded-md border",children:G.jsxs(Ce,{children:[G.jsx(xe,{className:"bg-theme-surface-tertiary",children:G.jsx(ke,{children:ge.map((B,U)=>G.jsx(Re,{className:"text-theme-text-secondary",children:B},U))})}),G.jsx(Oe,{children:v.map((B,U)=>G.jsx(ke,{children:B.map((ee,h)=>G.jsx(Te,{className:"bg-theme-surface-primary",children:ee},h))},U))})]})})}export{ze as default};
|
@@ -1 +1 @@
|
|
1
|
-
import{r as
|
1
|
+
import{r as o,j as r}from"./@radix-DnFH_oo1.js";import{ae as d,af as m,aE as g}from"./index-B9wVwe7u.js";const x=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2929 2.29295C17.788 0.797857 20.212 0.797859 21.7071 2.29295C23.2022 3.78805 23.2022 6.21207 21.7071 7.70717L18.7097 10.7045C18.7088 10.7054 18.708 10.7063 18.7071 10.7072C18.7062 10.708 18.7053 10.7089 18.7044 10.7098L8.50078 20.9134C8.48402 20.9302 8.46741 20.9468 8.45093 20.9633C8.20603 21.2086 7.99001 21.425 7.73334 21.5943C7.50768 21.7431 7.26295 21.8607 7.00578 21.9439C6.71327 22.0386 6.40936 22.0722 6.06483 22.1102C6.04165 22.1127 6.01829 22.1153 5.99474 22.1179L2.61038 22.4939C2.30845 22.5275 2.00765 22.422 1.79284 22.2072C1.57803 21.9924 1.47251 21.6916 1.50606 21.3896L1.8821 18.0053C1.88472 17.9817 1.8873 17.9583 1.88985 17.9352C1.92786 17.5906 1.96138 17.2867 2.05607 16.9942C2.13932 16.7371 2.25695 16.4923 2.40576 16.2667C2.57501 16.01 2.79138 15.794 3.03667 15.5491C3.05317 15.5326 3.06981 15.516 3.08657 15.4992L16.2929 2.29295ZM14 7.41427L4.50078 16.9134C4.17827 17.2359 4.1184 17.3025 4.07541 17.3677C4.02581 17.4429 3.9866 17.5245 3.95885 17.6102C3.9348 17.6845 3.92024 17.7728 3.86987 18.2261L3.63187 20.3681L5.77388 20.1301C6.22718 20.0798 6.3155 20.0652 6.3898 20.0412C6.47553 20.0134 6.5571 19.9742 6.63232 19.9246C6.69752 19.8816 6.76406 19.8217 7.08657 19.4992L16.5858 10.0001L14 7.41427ZM18 8.58584L15.4142 6.00006L17.7071 3.70716C18.4211 2.99312 19.5788 2.99312 20.2929 3.70717C21.0069 4.42121 21.0069 5.57891 20.2929 6.29295L18 8.58584Z"})),p=o.forwardRef((e,n)=>{const{triggerChildren:a,children:C,onSelect:t,onOpenChange:i,icon:L,open:l,...s}=e;return r.jsxs(d,{open:l,onOpenChange:i,children:[r.jsx(m,{asChild:!0,children:r.jsx(g,{...s,className:"hover:cursor-pointer",icon:e.icon,ref:n,onSelect:c=>{c.preventDefault(),t&&t()},children:a})}),C]})});p.displayName="DialogItem";export{p as D,x as S};
|
@@ -1 +1 @@
|
|
1
|
-
import{j as o}from"./@radix-
|
1
|
+
import{j as o}from"./@radix-DnFH_oo1.js";function s({dateString:t,short:n=!1}){const e=new Date(`${t}Z`);return o.jsx(o.Fragment,{children:n?i(e):e.toLocaleString()})}function i(t){const n={month:"short",day:"numeric",year:"numeric"},e={hour:"numeric",minute:"numeric",hour12:!1},r=t.toLocaleDateString("en-US",n),a=t.toLocaleTimeString("en-US",e);return`${r} ${a}`}export{s as D};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as y,j as e}from"./@radix-DnFH_oo1.js";import{S as $}from"./plus-Bc8eLSDM.js";import{S as M}from"./trash-DUWZWzse.js";import{q as V,b as Q,a as Z,c as L}from"./@tanstack-QbMbTrh5.js";import{l as j,m as w,k as g,n as v,F as N,z as o,ag as O,ah as R,ai as z,i as B,I as x,f as h,al as G,am as U,an as H}from"./index-B9wVwe7u.js";import{o as J}from"./url-DwbuKk1b.js";import{t as W}from"./zod-uFd1wBcd.js";import{u as X,a as Y,C as p}from"./index.esm-BE1uqCX5.js";async function _({params:t}){const i=j(w.secrets.all+"?"+J(t)),s=await g(i,{method:"GET",headers:{"Content-Type":"application/json"}});if(s.status===404&&v(),!s.ok){const l=await s.json().then(n=>Array.isArray(n.detail)?n.detail[1]:n.detail).catch(()=>"Failed to fetch secrets");throw new N({status:s.status,statusText:s.statusText,message:l})}return s.json()}async function I(t){const i=j(w.secrets.detail(t)),s=await g(i,{method:"GET",headers:{"Content-Type":"application/json"}});if(s.status===404&&v(),!s.ok){const l=await s.json().then(n=>Array.isArray(n.detail)?n.detail[1]:n.detail).catch(()=>`Failed to fetch secret ${t}`);throw new N({status:s.status,statusText:s.statusText,message:l})}return s.json()}const C={all:["secrets"],secretList:t=>V({queryKey:[...C.all,t],queryFn:async()=>_({params:t})}),secretDetail:t=>V({queryKey:[...C.all,t],queryFn:async()=>I(t)})},ee=t=>y.createElement("svg",{viewBox:"0 0 20 14",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.29898 3.86908C4.04374 4.91672 3.16532 6.14781 2.72143 6.85066C2.69198 6.89729 2.67138 6.92996 2.65417 6.95831C2.64281 6.97702 2.63531 6.98996 2.63029 6.99898C2.63029 6.99932 2.63029 6.99966 2.63029 6.99999C2.63029 7.00033 2.63029 7.00067 2.63029 7.001C2.63531 7.01003 2.64281 7.02297 2.65417 7.04168C2.67138 7.07003 2.69198 7.1027 2.72143 7.14933C3.16532 7.85218 4.04374 9.08327 5.29898 10.1309C6.55226 11.1769 8.13098 12 10.0004 12C11.8699 12 13.4486 11.1769 14.7019 10.1309C15.9571 9.08327 16.8355 7.85218 17.2794 7.14933C17.3089 7.1027 17.3295 7.07003 17.3467 7.04168C17.358 7.02297 17.3655 7.01002 17.3705 7.001C17.3705 7.00067 17.3705 7.00033 17.3705 6.99999C17.3705 6.99966 17.3705 6.99932 17.3705 6.99899C17.3655 6.98997 17.358 6.97702 17.3467 6.95831C17.3295 6.92996 17.3089 6.89729 17.2794 6.85066C16.8355 6.14781 15.9571 4.91672 14.7019 3.86908C13.4486 2.82308 11.8699 1.99999 10.0004 1.99999C8.13097 1.99999 6.55226 2.82308 5.29898 3.86908ZM4.23104 2.58952C5.67154 1.38726 7.61569 0.333328 10.0004 0.333328C12.3851 0.333328 14.3293 1.38726 15.7698 2.58952C17.2083 3.79014 18.1946 5.17857 18.6886 5.9607C18.6951 5.97104 18.7018 5.98159 18.7086 5.99236C18.8067 6.14664 18.9339 6.34696 18.9983 6.62764C19.0502 6.85426 19.0502 7.14573 18.9983 7.37235C18.9339 7.65303 18.8067 7.85335 18.7086 8.00763C18.7018 8.01841 18.6951 8.02895 18.6886 8.03929C18.1946 8.82142 17.2083 10.2098 15.7698 11.4105C14.3293 12.6127 12.3851 13.6667 10.0004 13.6667C7.61569 13.6667 5.67154 12.6127 4.23104 11.4105C2.7925 10.2098 1.80622 8.82142 1.31227 8.03929C1.30574 8.02895 1.29904 8.01841 1.2922 8.00764C1.19418 7.85335 1.06692 7.65303 1.00258 7.37235C0.950637 7.14573 0.950637 6.85426 1.00258 6.62764C1.06692 6.34696 1.19418 6.14664 1.2922 5.99235C1.29904 5.98158 1.30574 5.97104 1.31227 5.9607C1.80622 5.17857 2.7925 3.79014 4.23104 2.58952ZM10.0004 5.33333C9.07994 5.33333 8.33375 6.07952 8.33375 6.99999C8.33375 7.92047 9.07994 8.66666 10.0004 8.66666C10.9209 8.66666 11.6671 7.92047 11.6671 6.99999C11.6671 6.07952 10.9209 5.33333 10.0004 5.33333ZM6.66708 6.99999C6.66708 5.15905 8.15947 3.66666 10.0004 3.66666C11.8414 3.66666 13.3338 5.15905 13.3338 6.99999C13.3338 8.84094 11.8414 10.3333 10.0004 10.3333C8.15947 10.3333 6.66708 8.84094 6.66708 6.99999Z"})),se=o.object({secretName:o.string().min(1,"Secret Name is required"),keysValues:o.array(o.object({key:o.string().min(1,"Key is required"),value:o.string().min(1,"Value is required"),showPassword:o.boolean().optional()}))});async function te(t,i){const s=j(w.secrets.detail(t)),l=await g(s,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(l.status===404&&v(),!l.ok)throw new N({message:"Error updating secret",status:l.status,statusText:l.statusText});return l.json()}function ae(t){return Q({mutationFn:async({id:i,body:s})=>te(i,s),...t})}function he({secretId:t,isSecretNameEditable:i,dialogTitle:s}){return e.jsxs(O,{className:"mx-auto w-[90vw] max-w-[744px]",children:[e.jsx(R,{children:e.jsx(z,{children:s})}),e.jsx(re,{secretId:t,isSecretNameEditable:i})]})}function re({secretId:t,isSecretNameEditable:i}){const{data:s,isLoading:l,isError:n}=Z({...C.secretDetail(t)}),{handleSubmit:E,control:u,setValue:m,watch:b,formState:{isValid:T}}=X({resolver:W(se),defaultValues:{secretName:"",keysValues:[{key:"",value:""}]}}),{fields:f,append:q,remove:D}=Y({control:u,name:"keysValues"});y.useEffect(()=>{var a;s&&(m("secretName",s.name),m("keysValues",Object.entries(((a=s.body)==null?void 0:a.values)||{}).map(([r,c])=>({key:r,value:String(c)}))))},[s,m]);const F=()=>{q({key:"",value:"",showPassword:!1})},{toast:k}=B(),S=L(),{mutate:P}=ae({onError(a){H(a)&&k({status:"error",emphasis:"subtle",description:a.message,rounded:!0})},onSuccess(){k({status:"success",emphasis:"subtle",description:"Secret updated successfull",rounded:!0}),S.invalidateQueries({queryKey:["secrets"]}),S.invalidateQueries({queryKey:["secretDetail",t]})}}),K=a=>{const r={name:a.secretName,scope:"workspace",values:a.keysValues.reduce((c,d)=>(d.key&&d.value&&(c[d.key]=d.value),c),{})};P({id:t,body:r})},A=a=>{const r=b(`keysValues.${a}.showPassword`);m(`keysValues.${a}.showPassword`,!r)};return l?e.jsx("p",{children:"Loading..."}):n?e.jsx("p",{children:"Error fetching secret details."}):e.jsxs(e.Fragment,{children:[e.jsx("form",{id:"edit-secret-form",className:"gap-5 p-5",onSubmit:E(K),children:e.jsxs("div",{className:"space-y-0.5",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsxs("label",{className:"font-inter text-sm text-left font-medium leading-5",children:["Secret Name",e.jsx("span",{className:"ml-1 text-theme-text-error",children:"*"})]}),e.jsx(p,{name:"secretName",control:u,render:({field:a})=>e.jsx(x,{...a,className:"mb-3 w-full",required:!0,disabled:!i})})]}),e.jsxs("div",{className:"mt-10",children:[e.jsx("div",{children:e.jsx("h1",{className:"font-inter text-lg text-left font-semibold",children:"Keys"})}),e.jsxs("div",{className:"mt-5 flex flex-row",children:[e.jsx("div",{className:"flex-grow",children:e.jsx("label",{className:"font-inter text-sm text-left font-medium",children:"Key"})}),e.jsx("div",{className:"flex-grow pr-12",children:e.jsx("label",{className:"font-inter text-sm text-left font-medium",children:"Value"})})]})]}),f.map((a,r)=>e.jsxs("div",{className:"flex flex-row items-center space-x-1",children:[e.jsx("div",{className:"relative flex-grow",children:e.jsx(p,{name:`keysValues.${r}.key`,control:u,render:({field:c})=>e.jsx(x,{...c,className:"mb-2 w-full",required:!0,placeholder:"key"})})}),e.jsx("div",{className:"relative flex-grow",children:e.jsxs("div",{className:"relative",children:[e.jsx(p,{name:`keysValues.${r}.value`,control:u,render:({field:c})=>e.jsx(x,{...c,className:"mb-2 w-full pr-10",required:!0,placeholder:"•••••••••",type:b(`keysValues.${r}.showPassword`)?"text":"password"})}),e.jsx("div",{onClick:()=>A(r),className:"absolute inset-y-1 right-0 flex cursor-pointer items-center pb-1 pr-3",children:e.jsx(ee,{className:"h-4 w-4 flex-shrink-0 cursor-pointer"})})]})}),e.jsxs("div",{className:"flex items-center",children:[r===f.length-1&&e.jsx(h,{intent:"primary",emphasis:"subtle",onClick:F,className:"mb-2 flex h-7 w-7 items-center justify-center",children:e.jsx($,{className:"flex-shrink-0 fill-primary-600"})}),r!==f.length-1&&e.jsx(h,{intent:"secondary",emphasis:"minimal",onClick:()=>D(r),className:"mb-2 h-7 w-7 items-center justify-center",children:e.jsx(M,{className:"flex-shrink-0 fill-theme-text-secondary"})})]})]},a.id))]})}),e.jsxs(G,{className:"gap-[10px]",children:[e.jsx(U,{asChild:!0,children:e.jsx(h,{size:"sm",intent:"secondary",children:"Cancel"})}),e.jsx(h,{intent:"primary",type:"submit",form:"edit-secret-form",disabled:!T,children:"Save Secret"})]})]})}export{he as E,ee as S,C as a,se as s,ae as u};
|
@@ -1 +1 @@
|
|
1
|
-
import{j as l}from"./@radix-
|
1
|
+
import{j as l}from"./@radix-DnFH_oo1.js";function n({children:e,icon:t}){return l.jsxs("section",{className:"layout-container flex h-full w-full flex-1 flex-col items-center justify-center gap-5",children:[t,e]})}export{n as E};
|
@@ -1 +1 @@
|
|
1
|
-
import{j as e}from"./@radix-
|
1
|
+
import{j as e}from"./@radix-DnFH_oo1.js";import{j as r,W as a}from"./index-B9wVwe7u.js";import{E as l}from"./EmptyState-Cs3DEmso.js";function c({err:t,isAlertCircle:s=!1}){return e.jsx(l,{icon:s?e.jsx(r,{className:"h-[120px] w-[120px] fill-neutral-300"}):e.jsx(a,{className:"h-[120px] w-[120px] fill-neutral-300"}),children:e.jsx("div",{className:"text-center",children:e.jsx("p",{className:"text-text-lg text-theme-text-secondary",children:t.message})})})}export{c as E};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r,j as t}from"./@radix-DnFH_oo1.js";import{X as c,j as i}from"./index-B9wVwe7u.js";import{S as a}from"./check-circle-DOoS4yhF.js";const C=e=>r.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.6569 6.34315C14.5327 3.21895 9.46734 3.21895 6.34315 6.34315C5.23515 7.45114 4.52139 8.80057 4.19904 10.2213C4.07684 10.7599 3.54115 11.0974 3.00256 10.9752C2.46396 10.853 2.12641 10.3173 2.24862 9.77873C2.652 8.00086 3.54638 6.31149 4.92893 4.92893C8.83418 1.02369 15.1658 1.02369 19.0711 4.92893C19.8691 5.72692 20.5003 6.3951 21 6.95359V4C21 3.44772 21.4477 3 22 3C22.5523 3 23 3.44772 23 4V10C23 10.5523 22.5523 11 22 11H16C15.4477 11 15 10.5523 15 10C15 9.44772 15.4477 9 16 9H20.1257C19.6137 8.38306 18.8352 7.52152 17.6569 6.34315ZM20.9974 13.0248C21.536 13.147 21.8736 13.6827 21.7514 14.2213C21.348 15.9991 20.4536 17.6885 19.0711 19.0711C15.1658 22.9763 8.83418 22.9763 4.92893 19.0711C4.13094 18.2731 3.49975 17.6049 3 17.0464V20C3 20.5523 2.55228 21 2 21C1.44772 21 1 20.5523 1 20V14C1 13.4477 1.44772 13 2 13H8C8.55228 13 9 13.4477 9 14C9 14.5523 8.55228 15 8 15H3.87429C4.38627 15.6169 5.16477 16.4785 6.34315 17.6569C9.46734 20.781 14.5327 20.781 17.6569 17.6569C18.7648 16.5489 19.4786 15.1994 19.801 13.7787C19.9232 13.2401 20.4588 12.9026 20.9974 13.0248Z"})),s=e=>r.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3ZM1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12ZM10.7071 8.29289C11.0976 8.68342 11.0976 9.31658 10.7071 9.70711L8.41421 12L10.7071 14.2929C11.0976 14.6834 11.0976 15.3166 10.7071 15.7071C10.3166 16.0976 9.68342 16.0976 9.29289 15.7071L6.29289 12.7071C5.90237 12.3166 5.90237 11.6834 6.29289 11.2929L9.29289 8.29289C9.68342 7.90237 10.3166 7.90237 10.7071 8.29289ZM16.2071 8.29289C16.5976 8.68342 16.5976 9.31658 16.2071 9.70711L13.9142 12L16.2071 14.2929C16.5976 14.6834 16.5976 15.3166 16.2071 15.7071C15.8166 16.0976 15.1834 16.0976 14.7929 15.7071L11.7929 12.7071C11.4024 12.3166 11.4024 11.6834 11.7929 11.2929L14.7929 8.29289C15.1834 7.90237 15.8166 7.90237 16.2071 8.29289Z"})),u=e=>r.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3ZM1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12Z"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 12C6 11.1716 6.67157 10.5 7.5 10.5C8.32843 10.5 9 11.1716 9 12C9 12.8284 8.32843 13.5 7.5 13.5C6.67157 13.5 6 12.8284 6 12ZM10.5 12C10.5 11.1716 11.1716 10.5 12 10.5C12.8284 10.5 13.5 11.1716 13.5 12C13.5 12.8284 12.8284 13.5 12 13.5C11.1716 13.5 10.5 12.8284 10.5 12ZM15 12C15 11.1716 15.6716 10.5 16.5 10.5C17.3284 10.5 18 11.1716 18 12C18 12.8284 17.3284 13.5 16.5 13.5C15.6716 13.5 15 12.8284 15 12Z"}));function o(e){if(!e)return null;switch(e){case"completed":return"fill-success-500";case"failed":return"fill-error-500";case"initializing":return"fill-primary-400";case"cached":return"fill-neutral-400";case"running":return"fill-warning-500"}}function f(e){if(!e)return null;switch(e){case"completed":return"bg-success-50";case"failed":return"bg-error-50";case"initializing":return"bg-primary-50";case"cached":return"bg-theme-surface-tertiary";case"running":return"bg-warning-50"}}function p(e){if(!e)return"grey";switch(e){case"completed":return"green";case"failed":return"red";case"initializing":return"purple";case"cached":return"grey";case"running":return"yellow"}}function w({status:e,className:l}){if(!e)return null;const n=c("h-4 shrink-0 w-4",o(e),l);switch(e){case"completed":return t.jsx(a,{className:n});case"failed":return t.jsx(i,{className:n});case"initializing":return t.jsx(C,{className:n});case"cached":return t.jsx(s,{className:n});case"running":return t.jsx(u,{className:n})}}export{w as E,p as a,f as b,o as g};
|
@@ -1 +1 @@
|
|
1
|
-
import{j as e}from"./@radix-
|
1
|
+
import{j as e}from"./@radix-DnFH_oo1.js";import{B as t,aO as a}from"./index-B9wVwe7u.js";import{H as l}from"./help-CwN931fX.js";function m({link:s,text:r="Do you need help?"}){return e.jsxs(t,{className:"flex w-full flex-wrap items-center justify-between p-2",children:[e.jsxs("div",{className:"flex items-center gap-[10px]",children:[e.jsx("div",{className:"flex h-7 w-7 items-center justify-center rounded-sm bg-teal-25",children:e.jsx(l,{className:"h-5 w-5 fill-teal-400"})}),e.jsx("p",{children:r})]}),e.jsx("a",{target:"_blank",rel:"noopener noreferrer",className:a({intent:"primary",emphasis:"subtle",size:"md"}),href:s,children:"Browse our docs"})]})}export{m as H};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as t,j as r}from"./@radix-DnFH_oo1.js";import{X as i,a0 as l,aP as m}from"./index-B9wVwe7u.js";const o=e=>t.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{d:"M12 8C12.5523 8 13 8.44771 13 9V14C13 14.5523 12.5523 15 12 15C11.4477 15 11 14.5523 11 14V9C11 8.44771 11.4477 8 12 8Z"}),t.createElement("path",{d:"M12 18C12.5523 18 13 17.5523 13 17C13 16.4477 12.5523 16 12 16C11.4477 16 11 16.4477 11 17C11 17.5523 11.4477 18 12 18Z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2476 2.11111C11.0074 0.729566 12.9926 0.729561 13.7524 2.11111L23.0612 19.0361C23.7943 20.369 22.8299 21.9999 21.3087 21.9999H2.69127C1.17006 21.9999 0.205733 20.369 0.938833 19.0361L10.2476 2.11111ZM21.3087 19.9999L12 3.07495L2.69126 19.9999L21.3087 19.9999Z"})),d=m("flex items-center text-text-sm rounded-md border px-4 py-3",{variants:{intent:{primary:"border-primary-400 bg-primary-25",warning:"bg-[#FFF6EA] border-theme-border-moderate",neutral:"border-theme-border-moderate"}},defaultVariants:{intent:"primary"}});function f({children:e,className:n,intent:a,...s}){return r.jsxs("div",{...s,className:i(d({intent:a}),n),children:[r.jsx(c,{intent:a}),r.jsx("div",{className:"w-full min-w-0",children:e})]})}function c({intent:e}){switch(e){case"warning":return r.jsx(o,{className:"mr-4 h-5 w-5 shrink-0 fill-warning-700"});default:return r.jsx(l,{className:"mr-4 h-5 w-5 shrink-0 fill-theme-text-brand"})}}export{f as I};
|
@@ -1 +1 @@
|
|
1
|
-
import{j as e}from"./@radix-
|
1
|
+
import{j as e}from"./@radix-DnFH_oo1.js";import{A as s,b as a}from"./index-B9wVwe7u.js";function m({username:t}){return e.jsxs("div",{className:"inline-flex items-center gap-1",children:[e.jsx(s,{size:"sm",children:e.jsx(a,{size:"sm",children:t[0]})}),e.jsx("p",{className:"text-text-sm font-semibold text-theme-text-primary",children:t})]})}export{m as I};
|
@@ -1 +1 @@
|
|
1
|
-
import{r as C}from"./@radix-
|
1
|
+
import{r as C}from"./@radix-DnFH_oo1.js";const l=e=>C.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 8C6 4.68629 8.68629 2 12 2C15.3137 2 18 4.68629 18 8V9.15032C18.2826 9.21225 18.5539 9.30243 18.816 9.43597C19.5686 9.81947 20.1805 10.4314 20.564 11.184C20.8113 11.6694 20.9099 12.1861 20.9558 12.7482C21 13.2894 21 13.9537 21 14.7587V16.2413C21 17.0463 21 17.7106 20.9558 18.2518C20.9099 18.8139 20.8113 19.3306 20.564 19.816C20.1805 20.5686 19.5686 21.1805 18.816 21.564C18.3306 21.8113 17.8139 21.9099 17.2518 21.9558C16.7106 22 16.0463 22 15.2413 22H8.75868C7.95372 22 7.28936 22 6.74817 21.9558C6.18608 21.9099 5.66937 21.8113 5.18404 21.564C4.43139 21.1805 3.81947 20.5686 3.43597 19.816C3.18868 19.3306 3.09012 18.8139 3.04419 18.2518C2.99998 17.7106 2.99999 17.0463 3 16.2413V14.7587C2.99999 13.9537 2.99998 13.2894 3.04419 12.7482C3.09012 12.1861 3.18868 11.6694 3.43597 11.184C3.81947 10.4314 4.43139 9.81947 5.18404 9.43597C5.44614 9.30243 5.71739 9.21225 6 9.15032V8ZM8 9.00163C8.23771 8.99999 8.4904 9 8.7587 9H15.2413C15.5096 9 15.7623 8.99999 16 9.00163V8C16 5.79086 14.2091 4 12 4C9.79086 4 8 5.79086 8 8V9.00163ZM6.91104 11.0376C6.47262 11.0734 6.24842 11.1383 6.09202 11.218C5.7157 11.4097 5.40973 11.7157 5.21799 12.092C5.1383 12.2484 5.07337 12.4726 5.03755 12.911C5.00078 13.3611 5 13.9434 5 14.8V16.2C5 17.0566 5.00078 17.6389 5.03755 18.089C5.07337 18.5274 5.1383 18.7516 5.21799 18.908C5.40973 19.2843 5.7157 19.5903 6.09202 19.782C6.24842 19.8617 6.47262 19.9266 6.91104 19.9624C7.36113 19.9992 7.94342 20 8.8 20H15.2C16.0566 20 16.6389 19.9992 17.089 19.9624C17.5274 19.9266 17.7516 19.8617 17.908 19.782C18.2843 19.5903 18.5903 19.2843 18.782 18.908C18.8617 18.7516 18.9266 18.5274 18.9624 18.089C18.9992 17.6389 19 17.0566 19 16.2V14.8C19 13.9434 18.9992 13.3611 18.9624 12.911C18.9266 12.4726 18.8617 12.2484 18.782 12.092C18.5903 11.7157 18.2843 11.4097 17.908 11.218C17.7516 11.1383 17.5274 11.0734 17.089 11.0376C16.6389 11.0008 16.0566 11 15.2 11H8.8C7.94342 11 7.36113 11.0008 6.91104 11.0376ZM12 13.5C12.5523 13.5 13 13.9477 13 14.5V16.5C13 17.0523 12.5523 17.5 12 17.5C11.4477 17.5 11 17.0523 11 16.5V14.5C11 13.9477 11.4477 13.5 12 13.5Z"}));export{l as S};
|