quick-pp 0.3.1__tar.gz → 0.3.2__tar.gz
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.
- {quick_pp-0.3.1 → quick_pp-0.3.2}/CITATION.cff +1 -1
- {quick_pp-0.3.1 → quick_pp-0.3.2}/MANIFEST.in +14 -9
- {quick_pp-0.3.1/quick_pp.egg-info → quick_pp-0.3.2}/PKG-INFO +1 -1
- {quick_pp-0.3.1 → quick_pp-0.3.2}/docs/community/changelog.md +7 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/pyproject.toml +1 -1
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/__init__.py +1 -1
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/main.py +7 -5
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/mlflow_model_deployment.py +4 -4
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/docker/docker-compose.yaml +5 -11
- quick_pp-0.3.1/quick_pp/app/frontend/build/client/_app/immutable/chunks/BTQgF4CK.js → quick_pp-0.3.2/quick_pp/app/frontend/build/client/_app/immutable/chunks/C9S-lD2T.js +1 -1
- quick_pp-0.3.2/quick_pp/app/frontend/build/client/_app/immutable/chunks/C9S-lD2T.js.br +0 -0
- quick_pp-0.3.2/quick_pp/app/frontend/build/client/_app/immutable/chunks/C9S-lD2T.js.gz +0 -0
- quick_pp-0.3.2/quick_pp/app/frontend/build/client/_app/immutable/chunks/CbSSxSHK.js +1 -0
- quick_pp-0.3.2/quick_pp/app/frontend/build/client/_app/immutable/chunks/CbSSxSHK.js.br +0 -0
- quick_pp-0.3.2/quick_pp/app/frontend/build/client/_app/immutable/chunks/CbSSxSHK.js.gz +0 -0
- quick_pp-0.3.1/quick_pp/app/frontend/build/client/_app/immutable/chunks/DPS-9Tab.js → quick_pp-0.3.2/quick_pp/app/frontend/build/client/_app/immutable/chunks/CyPEyWTe.js +2 -2
- quick_pp-0.3.2/quick_pp/app/frontend/build/client/_app/immutable/chunks/CyPEyWTe.js.br +0 -0
- quick_pp-0.3.2/quick_pp/app/frontend/build/client/_app/immutable/chunks/CyPEyWTe.js.gz +0 -0
- quick_pp-0.3.1/quick_pp/app/frontend/build/client/_app/immutable/chunks/D2-HiYON.js → quick_pp-0.3.2/quick_pp/app/frontend/build/client/_app/immutable/chunks/DX4JULhN.js +1 -1
- quick_pp-0.3.2/quick_pp/app/frontend/build/client/_app/immutable/chunks/DX4JULhN.js.br +0 -0
- quick_pp-0.3.2/quick_pp/app/frontend/build/client/_app/immutable/chunks/DX4JULhN.js.gz +0 -0
- quick_pp-0.3.1/quick_pp/app/frontend/build/client/_app/immutable/entry/app.BjiXv2VT.js → quick_pp-0.3.2/quick_pp/app/frontend/build/client/_app/immutable/entry/app.Du3yKlHU.js +2 -2
- quick_pp-0.3.2/quick_pp/app/frontend/build/client/_app/immutable/entry/app.Du3yKlHU.js.br +0 -0
- quick_pp-0.3.2/quick_pp/app/frontend/build/client/_app/immutable/entry/app.Du3yKlHU.js.gz +0 -0
- quick_pp-0.3.2/quick_pp/app/frontend/build/client/_app/immutable/entry/start.CS9NuK-3.js +1 -0
- quick_pp-0.3.2/quick_pp/app/frontend/build/client/_app/immutable/entry/start.CS9NuK-3.js.br +2 -0
- quick_pp-0.3.2/quick_pp/app/frontend/build/client/_app/immutable/entry/start.CS9NuK-3.js.gz +0 -0
- quick_pp-0.3.1/quick_pp/app/frontend/build/client/_app/immutable/nodes/0.BeYT7seF.js → quick_pp-0.3.2/quick_pp/app/frontend/build/client/_app/immutable/nodes/0.DGYb_pOz.js +1 -1
- quick_pp-0.3.2/quick_pp/app/frontend/build/client/_app/immutable/nodes/0.DGYb_pOz.js.br +0 -0
- quick_pp-0.3.2/quick_pp/app/frontend/build/client/_app/immutable/nodes/0.DGYb_pOz.js.gz +0 -0
- quick_pp-0.3.1/quick_pp/app/frontend/build/client/_app/immutable/nodes/1.BAQYoDX7.js → quick_pp-0.3.2/quick_pp/app/frontend/build/client/_app/immutable/nodes/1.rTlP0uti.js +1 -1
- quick_pp-0.3.2/quick_pp/app/frontend/build/client/_app/immutable/nodes/1.rTlP0uti.js.br +2 -0
- quick_pp-0.3.2/quick_pp/app/frontend/build/client/_app/immutable/nodes/1.rTlP0uti.js.gz +0 -0
- quick_pp-0.3.1/quick_pp/app/frontend/build/client/_app/immutable/nodes/2.B3MYCZz3.js → quick_pp-0.3.2/quick_pp/app/frontend/build/client/_app/immutable/nodes/2.BOp79Wmm.js +1 -1
- quick_pp-0.3.2/quick_pp/app/frontend/build/client/_app/immutable/nodes/2.BOp79Wmm.js.br +0 -0
- quick_pp-0.3.2/quick_pp/app/frontend/build/client/_app/immutable/nodes/2.BOp79Wmm.js.gz +0 -0
- quick_pp-0.3.1/quick_pp/app/frontend/build/client/_app/immutable/nodes/3.BPzAluJI.js → quick_pp-0.3.2/quick_pp/app/frontend/build/client/_app/immutable/nodes/3.1lGYbbiZ.js +1 -1
- quick_pp-0.3.2/quick_pp/app/frontend/build/client/_app/immutable/nodes/3.1lGYbbiZ.js.br +0 -0
- quick_pp-0.3.2/quick_pp/app/frontend/build/client/_app/immutable/nodes/3.1lGYbbiZ.js.gz +0 -0
- quick_pp-0.3.2/quick_pp/app/frontend/build/client/_app/version.json +1 -0
- quick_pp-0.3.2/quick_pp/app/frontend/build/client/_app/version.json.br +0 -0
- quick_pp-0.3.2/quick_pp/app/frontend/build/client/_app/version.json.gz +0 -0
- quick_pp-0.3.1/quick_pp/app/frontend/build/server/chunks/0-W8XugK1t.js → quick_pp-0.3.2/quick_pp/app/frontend/build/server/chunks/0-DMKKz5R8.js +3 -3
- quick_pp-0.3.1/quick_pp/app/frontend/build/server/chunks/0-W8XugK1t.js.map → quick_pp-0.3.2/quick_pp/app/frontend/build/server/chunks/0-DMKKz5R8.js.map +1 -1
- quick_pp-0.3.1/quick_pp/app/frontend/build/server/chunks/1-id-aVrfW.js → quick_pp-0.3.2/quick_pp/app/frontend/build/server/chunks/1-37gCc1m_.js +2 -2
- quick_pp-0.3.1/quick_pp/app/frontend/build/server/chunks/1-id-aVrfW.js.map → quick_pp-0.3.2/quick_pp/app/frontend/build/server/chunks/1-37gCc1m_.js.map +1 -1
- quick_pp-0.3.2/quick_pp/app/frontend/build/server/chunks/2-Is53z11s.js +9 -0
- quick_pp-0.3.1/quick_pp/app/frontend/build/server/chunks/2-B9AI2Kfj.js.map → quick_pp-0.3.2/quick_pp/app/frontend/build/server/chunks/2-Is53z11s.js.map +1 -1
- quick_pp-0.3.1/quick_pp/app/frontend/build/server/chunks/3-CXXJWEu4.js → quick_pp-0.3.2/quick_pp/app/frontend/build/server/chunks/3-DI51tjm-.js +3 -3
- quick_pp-0.3.1/quick_pp/app/frontend/build/server/chunks/3-CXXJWEu4.js.map → quick_pp-0.3.2/quick_pp/app/frontend/build/server/chunks/3-DI51tjm-.js.map +1 -1
- quick_pp-0.3.1/quick_pp/app/frontend/build/server/chunks/_layout.svelte-DtmrsB01.js → quick_pp-0.3.2/quick_pp/app/frontend/build/server/chunks/_layout.svelte-BzPdTxK_.js +3 -3
- quick_pp-0.3.1/quick_pp/app/frontend/build/server/chunks/_layout.svelte-DtmrsB01.js.map → quick_pp-0.3.2/quick_pp/app/frontend/build/server/chunks/_layout.svelte-BzPdTxK_.js.map +1 -1
- quick_pp-0.3.1/quick_pp/app/frontend/build/server/chunks/_page.svelte-Ch4tjy8X.js → quick_pp-0.3.2/quick_pp/app/frontend/build/server/chunks/_page.svelte-4QY1XEM1.js +3 -3
- quick_pp-0.3.1/quick_pp/app/frontend/build/server/chunks/_page.svelte-Ch4tjy8X.js.map → quick_pp-0.3.2/quick_pp/app/frontend/build/server/chunks/_page.svelte-4QY1XEM1.js.map +1 -1
- quick_pp-0.3.1/quick_pp/app/frontend/build/server/chunks/_page.svelte-oMQeyKl0.js → quick_pp-0.3.2/quick_pp/app/frontend/build/server/chunks/_page.svelte-CCyaEEs6.js +2 -2
- quick_pp-0.3.1/quick_pp/app/frontend/build/server/chunks/_page.svelte-oMQeyKl0.js.map → quick_pp-0.3.2/quick_pp/app/frontend/build/server/chunks/_page.svelte-CCyaEEs6.js.map +1 -1
- quick_pp-0.3.1/quick_pp/app/frontend/build/server/chunks/auth.svelte-DB8hVU1b.js → quick_pp-0.3.2/quick_pp/app/frontend/build/server/chunks/auth.svelte-BuXSahIP.js +7 -4
- quick_pp-0.3.2/quick_pp/app/frontend/build/server/chunks/auth.svelte-BuXSahIP.js.map +1 -0
- quick_pp-0.3.1/quick_pp/app/frontend/build/server/chunks/formatters-DANcygsu.js → quick_pp-0.3.2/quick_pp/app/frontend/build/server/chunks/formatters-DRwQoDjx.js +2 -2
- quick_pp-0.3.1/quick_pp/app/frontend/build/server/chunks/formatters-DANcygsu.js.map → quick_pp-0.3.2/quick_pp/app/frontend/build/server/chunks/formatters-DRwQoDjx.js.map +1 -1
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/server/index.js +1 -1
- quick_pp-0.3.2/quick_pp/app/frontend/build/server/index.js.map +1 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/server/manifest.js +5 -5
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/server/manifest.js.map +1 -1
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/package-lock.json +2 -2
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/package.json +1 -1
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/api/client.ts +11 -4
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/state/auth.svelte.ts +1 -1
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/cli.py +36 -20
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/database/db_connector.py +7 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2/quick_pp.egg-info}/PKG-INFO +1 -1
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp.egg-info/SOURCES.txt +49 -66
- quick_pp-0.3.2/tests/test_cli.py +384 -0
- quick_pp-0.3.1/data/tutorials/chatbot-simulation-evaluation/simulation_utils.py +0 -203
- quick_pp-0.3.1/data/tutorials/llm-compiler/math_tools.py +0 -144
- quick_pp-0.3.1/data/tutorials/llm-compiler/output_parser.py +0 -177
- quick_pp-0.3.1/deploy/demo/seed_demo.py +0 -790
- quick_pp-0.3.1/notebooks/data/01_raw/VOLVE/seismic/examples/QuickOverview.py +0 -160
- quick_pp-0.3.1/notebooks/data/01_raw/VOLVE/seismic/examples/archive/ar.examples_subsurface.py +0 -53
- quick_pp-0.3.1/notebooks/data/01_raw/VOLVE/seismic/examples/archive/example_zgy.py +0 -101
- quick_pp-0.3.1/notebooks/data/01_raw/VOLVE/seismic/examples/example_amplitude_extraction_displays.py +0 -286
- quick_pp-0.3.1/notebooks/data/01_raw/VOLVE/seismic/examples/example_depth_conversion.py +0 -323
- quick_pp-0.3.1/notebooks/data/01_raw/VOLVE/seismic/examples/example_extract_arbitrary_line.py +0 -293
- quick_pp-0.3.1/notebooks/data/01_raw/VOLVE/seismic/examples/example_extract_data_on_a_horizon.py +0 -118
- quick_pp-0.3.1/notebooks/data/01_raw/VOLVE/seismic/examples/example_merge_surveys.py +0 -429
- quick_pp-0.3.1/notebooks/data/01_raw/VOLVE/seismic/examples/example_segy_headers.py +0 -100
- quick_pp-0.3.1/notebooks/data/01_raw/VOLVE/seismic/examples/example_segysak_basics.py +0 -168
- quick_pp-0.3.1/notebooks/data/01_raw/VOLVE/seismic/examples/example_segysak_dask.py +0 -122
- quick_pp-0.3.1/notebooks/data/01_raw/VOLVE/seismic/examples/example_segysak_segy_vectorisation.py +0 -96
- quick_pp-0.3.1/notebooks/data/01_raw/VOLVE/seismic/examples/example_working_with_3d_gathers.py +0 -196
- quick_pp-0.3.1/quick_pp/app/frontend/build/client/_app/immutable/chunks/BTQgF4CK.js.br +0 -0
- quick_pp-0.3.1/quick_pp/app/frontend/build/client/_app/immutable/chunks/BTQgF4CK.js.gz +0 -0
- quick_pp-0.3.1/quick_pp/app/frontend/build/client/_app/immutable/chunks/D2-HiYON.js.br +0 -0
- quick_pp-0.3.1/quick_pp/app/frontend/build/client/_app/immutable/chunks/D2-HiYON.js.gz +0 -0
- quick_pp-0.3.1/quick_pp/app/frontend/build/client/_app/immutable/chunks/DPS-9Tab.js.br +0 -0
- quick_pp-0.3.1/quick_pp/app/frontend/build/client/_app/immutable/chunks/DPS-9Tab.js.gz +0 -0
- quick_pp-0.3.1/quick_pp/app/frontend/build/client/_app/immutable/chunks/HTrLrrC6.js +0 -1
- quick_pp-0.3.1/quick_pp/app/frontend/build/client/_app/immutable/chunks/HTrLrrC6.js.br +0 -0
- quick_pp-0.3.1/quick_pp/app/frontend/build/client/_app/immutable/chunks/HTrLrrC6.js.gz +0 -0
- quick_pp-0.3.1/quick_pp/app/frontend/build/client/_app/immutable/entry/app.BjiXv2VT.js.br +0 -0
- quick_pp-0.3.1/quick_pp/app/frontend/build/client/_app/immutable/entry/app.BjiXv2VT.js.gz +0 -0
- quick_pp-0.3.1/quick_pp/app/frontend/build/client/_app/immutable/entry/start.DYelKUWm.js +0 -1
- quick_pp-0.3.1/quick_pp/app/frontend/build/client/_app/immutable/entry/start.DYelKUWm.js.br +0 -2
- quick_pp-0.3.1/quick_pp/app/frontend/build/client/_app/immutable/entry/start.DYelKUWm.js.gz +0 -0
- quick_pp-0.3.1/quick_pp/app/frontend/build/client/_app/immutable/nodes/0.BeYT7seF.js.br +0 -0
- quick_pp-0.3.1/quick_pp/app/frontend/build/client/_app/immutable/nodes/0.BeYT7seF.js.gz +0 -0
- quick_pp-0.3.1/quick_pp/app/frontend/build/client/_app/immutable/nodes/1.BAQYoDX7.js.br +0 -1
- quick_pp-0.3.1/quick_pp/app/frontend/build/client/_app/immutable/nodes/1.BAQYoDX7.js.gz +0 -0
- quick_pp-0.3.1/quick_pp/app/frontend/build/client/_app/immutable/nodes/2.B3MYCZz3.js.br +0 -0
- quick_pp-0.3.1/quick_pp/app/frontend/build/client/_app/immutable/nodes/2.B3MYCZz3.js.gz +0 -0
- quick_pp-0.3.1/quick_pp/app/frontend/build/client/_app/immutable/nodes/3.BPzAluJI.js.br +0 -0
- quick_pp-0.3.1/quick_pp/app/frontend/build/client/_app/immutable/nodes/3.BPzAluJI.js.gz +0 -0
- quick_pp-0.3.1/quick_pp/app/frontend/build/client/_app/version.json +0 -1
- quick_pp-0.3.1/quick_pp/app/frontend/build/client/_app/version.json.br +0 -0
- quick_pp-0.3.1/quick_pp/app/frontend/build/client/_app/version.json.gz +0 -0
- quick_pp-0.3.1/quick_pp/app/frontend/build/server/chunks/2-B9AI2Kfj.js +0 -9
- quick_pp-0.3.1/quick_pp/app/frontend/build/server/chunks/auth.svelte-DB8hVU1b.js.map +0 -1
- quick_pp-0.3.1/quick_pp/app/frontend/build/server/index.js.map +0 -1
- quick_pp-0.3.1/scripts/release.py +0 -294
- {quick_pp-0.3.1 → quick_pp-0.3.2}/LICENSE +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/README.md +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/docs/api/core_analysis.md +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/docs/api/lithology.md +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/docs/api/machine_learning.md +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/docs/api/overview.md +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/docs/api/permeability.md +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/docs/api/plotter.md +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/docs/api/porosity.md +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/docs/api/qaqc.md +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/docs/api/ressum.md +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/docs/api/rock_physics.md +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/docs/api/rock_type.md +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/docs/api/saturation.md +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/docs/api/scal.md +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/docs/api/uncertainty.md +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/docs/api/upscaling.md +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/docs/community/authors.md +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/docs/community/contributing.md +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/docs/getting-started/ai-assistant.md +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/docs/getting-started/installation.md +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/docs/getting-started/usage.md +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/docs/hooks.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/docs/index.md +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/docs/tutorials/index.md +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/__init__.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/exceptions.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/fastapi_mlflow/__init__.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/fastapi_mlflow/_mlflow_types.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/fastapi_mlflow/applications.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/fastapi_mlflow/exceptions.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/fastapi_mlflow/predictors.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/mcp_server.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/router.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/schemas/lithology_hc_correction.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/schemas/lithology_multi_mineral.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/schemas/lithology_ssc.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/schemas/lithology_vsh_gr.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/schemas/permeability_choo.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/schemas/permeability_others.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/schemas/porosity.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/schemas/porosity_shale.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/schemas/ressum.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/schemas/saturation_archie.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/schemas/saturation_b.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/schemas/saturation_qv.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/schemas/saturation_qvn.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/schemas/saturation_rw.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/schemas/saturation_temp_grad.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/schemas/saturation_waxman_smits.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/services/ancillary.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/services/auth.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/services/chat.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/services/database.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/services/las_handler.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/services/lithology.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/services/perm_transform.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/services/permeability.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/services/plotter.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/services/porosity.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/services/qaqc.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/services/reservoir_summary.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/services/rock_typing.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/services/saturation.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/services/scal.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/services/shf.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/services/uncertainty.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/services/upscaling.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/services/workspace.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/static/favicon.ico +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/static/logo-typo.png +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/static/logo.png +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/static/typo.png +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/template/chat.html +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/template/home.html +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/utils/auth.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/utils/db.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/utils/qr_svg.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/backend/utils/utils.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/docker/Dockerfile +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/docker/nginx.conf +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/client/_app/immutable/assets/0.DuBWDEAx.css +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/client/_app/immutable/assets/0.DuBWDEAx.css.br +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/client/_app/immutable/assets/0.DuBWDEAx.css.gz +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/client/_app/immutable/assets/favicon.DFEIifsl.ico +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/client/_app/immutable/assets/logo.CT2Yyt_j.png +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/client/_app/immutable/chunks/4DO0fYo4.js +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/client/_app/immutable/chunks/4DO0fYo4.js.br +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/client/_app/immutable/chunks/4DO0fYo4.js.gz +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/client/_app/immutable/chunks/B47cw2fH.js +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/client/_app/immutable/chunks/B47cw2fH.js.br +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/client/_app/immutable/chunks/B47cw2fH.js.gz +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/client/_app/immutable/chunks/BIsZEnBs.js +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/client/_app/immutable/chunks/BIsZEnBs.js.br +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/client/_app/immutable/chunks/BIsZEnBs.js.gz +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/client/_app/immutable/chunks/Cvj-X7M2.js +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/client/_app/immutable/chunks/Cvj-X7M2.js.br +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/client/_app/immutable/chunks/Cvj-X7M2.js.gz +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/client/_app/immutable/chunks/D4yRw9VE.js +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/client/_app/immutable/chunks/D4yRw9VE.js.br +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/client/_app/immutable/chunks/D4yRw9VE.js.gz +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/client/_app/immutable/chunks/DLhmdl0p.js +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/client/_app/immutable/chunks/DLhmdl0p.js.br +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/client/_app/immutable/chunks/DLhmdl0p.js.gz +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/client/_app/immutable/chunks/Dg9q6Q-0.js +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/client/_app/immutable/chunks/Dg9q6Q-0.js.br +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/client/_app/immutable/chunks/Dg9q6Q-0.js.gz +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/client/_app/immutable/chunks/PPVm8Dsz.js +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/client/_app/immutable/chunks/PPVm8Dsz.js.br +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/client/_app/immutable/chunks/PPVm8Dsz.js.gz +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/client/robots.txt +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/env.js +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/handler.js +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/index.js +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/server/chunks/client-DNieO5kw.js +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/server/chunks/client-DNieO5kw.js.map +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/server/chunks/error.svelte-BaZ6z9Kz.js +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/server/chunks/error.svelte-BaZ6z9Kz.js.map +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/server/chunks/exports-DIb2KU79.js +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/server/chunks/exports-DIb2KU79.js.map +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/server/chunks/index-BEWAzEoM.js +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/server/chunks/index-BEWAzEoM.js.map +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/server/chunks/index2-3EnvJK3y.js +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/server/chunks/index2-3EnvJK3y.js.map +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/server/chunks/logo-9X4qug43.js +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/server/chunks/logo-9X4qug43.js.map +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/build/shims.js +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/components.json +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/app.d.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/app.html +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/api/schema.d.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/assets/favicon.ico +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/assets/logo.png +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/BulkAncillaryImporter.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/WellSelector.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/modules/InspectorAncillary.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/modules/InspectorLithoPoro.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/modules/InspectorPerm.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/modules/InspectorQaqc.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/modules/InspectorResSum.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/modules/InspectorSaturation.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/modules/InspectorScal.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/modules/MultiWellInventory.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/modules/MultiWellMlTrainer.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/modules/MultiWellPermTransform.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/modules/MultiWellRockTyping.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/modules/MultiWellShf.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/shell/BulkImporterModal.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/shell/PetrophysicalAssistantDrawer.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/shell/StatusBar.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/shell/TopContextBar.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/shell/UamConsoleModal.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/shell/WorkflowStepper.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/avatar/avatar-fallback.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/avatar/avatar-image.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/avatar/avatar.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/avatar/index.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/badge/badge.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/badge/index.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/breadcrumb/breadcrumb-ellipsis.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/breadcrumb/breadcrumb-item.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/breadcrumb/breadcrumb-link.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/breadcrumb/breadcrumb-list.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/breadcrumb/breadcrumb-page.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/breadcrumb/breadcrumb-separator.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/breadcrumb/breadcrumb.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/breadcrumb/index.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/button/button.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/button/index.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/card/card-action.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/card/card-content.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/card/card-description.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/card/card-footer.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/card/card-header.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/card/card-title.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/card/card.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/card/index.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/chart/chart-container.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/chart/chart-style.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/chart/chart-tooltip.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/chart/chart-utils.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/chart/index.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/checkbox/checkbox.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/checkbox/index.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/collapsible/collapsible-content.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/collapsible/collapsible-trigger.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/collapsible/collapsible.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/collapsible/index.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/data-table/data-table.svelte.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/data-table/flex-render.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/data-table/index.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/data-table/render-helpers.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/drawer/drawer-close.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/drawer/drawer-content.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/drawer/drawer-description.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/drawer/drawer-footer.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/drawer/drawer-header.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/drawer/drawer-nested.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/drawer/drawer-overlay.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/drawer/drawer-title.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/drawer/drawer-trigger.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/drawer/drawer.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/drawer/index.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-checkbox-group.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-content.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-group.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-item.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-label.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-radio-group.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-separator.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-trigger.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/dropdown-menu/index.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/field/field-content.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/field/field-description.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/field/field-error.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/field/field-group.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/field/field-label.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/field/field-legend.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/field/field-separator.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/field/field-set.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/field/field-title.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/field/field.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/field/index.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/input/index.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/input/input.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/label/index.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/label/label.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/select/index.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/select/select-content.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/select/select-group-heading.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/select/select-group.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/select/select-item.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/select/select-label.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/select/select-scroll-down-button.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/select/select-scroll-up-button.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/select/select-separator.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/select/select-trigger.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/separator/index.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/separator/separator.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/sheet/index.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/sheet/sheet-close.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/sheet/sheet-content.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/sheet/sheet-description.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/sheet/sheet-footer.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/sheet/sheet-header.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/sheet/sheet-overlay.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/sheet/sheet-title.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/sheet/sheet-trigger.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/sidebar/constants.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/sidebar/context.svelte.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/sidebar/index.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/sidebar/sidebar-content.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/sidebar/sidebar-footer.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/sidebar/sidebar-group-action.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/sidebar/sidebar-group-content.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/sidebar/sidebar-group-label.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/sidebar/sidebar-group.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/sidebar/sidebar-header.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/sidebar/sidebar-input.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/sidebar/sidebar-inset.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/sidebar/sidebar-menu-action.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/sidebar/sidebar-menu-badge.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/sidebar/sidebar-menu-button.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/sidebar/sidebar-menu-item.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/sidebar/sidebar-menu-skeleton.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/sidebar/sidebar-menu-sub-button.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/sidebar/sidebar-menu-sub-item.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/sidebar/sidebar-menu-sub.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/sidebar/sidebar-menu.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/sidebar/sidebar-provider.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/sidebar/sidebar-rail.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/sidebar/sidebar-separator.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/sidebar/sidebar-trigger.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/sidebar/sidebar.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/skeleton/index.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/skeleton/skeleton.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/table/index.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/table/table-body.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/table/table-caption.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/table/table-cell.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/table/table-footer.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/table/table-head.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/table/table-header.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/table/table-row.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/table/table.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/tabs/index.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/tabs/tabs-content.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/tabs/tabs-list.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/tabs/tabs-trigger.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/tabs/tabs.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/toggle/index.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/toggle/toggle.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/toggle-group/index.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/toggle-group/toggle-group-item.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/toggle-group/toggle-group.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/tooltip/index.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/tooltip/tooltip-content.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/ui/tooltip/tooltip-trigger.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/workbench/CompactDataGrid.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/workbench/CrossplotCanvas.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/workbench/LogTrackCanvas.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/workbench/NumericScrubber.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/components/workbench/ParameterSection.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/hooks/is-mobile.svelte.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/index.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/state/projectData.svelte.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/state/status.svelte.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/state/wellData.svelte.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/state/workbench.svelte.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/types.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/utils/formatters.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/utils/petrophysicsColors.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/lib/utils.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/routes/+layout.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/routes/+page.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/routes/layout.css +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/src/routes/login/+page.svelte +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/static/robots.txt +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/svelte.config.js +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/tsconfig.json +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/app/frontend/vite.config.ts +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/config.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/core_analysis.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/database/__init__.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/database/models.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/database/objects.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/database/setup_postgresql_db.sql +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/database/setup_sqlite_db.sql +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/fluid_type.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/las_handler.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/lithology/__init__.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/lithology/carbonate.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/lithology/multi_mineral.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/lithology/sand_shale.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/lithology/sand_silt_clay.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/lithology/thin_beds.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/machine_learning/__init__.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/machine_learning/config.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/machine_learning/feature_engineering.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/machine_learning/mock_data/mock_data.parquet +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/machine_learning/predict_pipeline.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/machine_learning/train_pipeline.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/machine_learning/utils.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/permeability.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/plotter/__init__.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/plotter/plotter.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/plotter/well_log.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/plotter/well_log_config.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/porosity.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/qaqc.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/ressum.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/rock_physics/__init__.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/rock_physics/geomechanics.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/rock_physics/geophysics.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/rock_physics/rpm.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/rock_type.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/saturation.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/scal.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/uncertainty.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/upscaling.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp/utils.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp.egg-info/dependency_links.txt +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp.egg-info/entry_points.txt +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp.egg-info/requires.txt +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/quick_pp.egg-info/top_level.txt +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/setup.cfg +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/tests/__init__.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/tests/conftest.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/tests/test_ancillary.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/tests/test_backend_workspace_api.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/tests/test_core_analysis.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/tests/test_live_demo.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/tests/test_ml_physics.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/tests/test_multi_mineral.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/tests/test_new_modules_integration.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/tests/test_qaqc_normalization.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/tests/test_quick_pp.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/tests/test_uam_auth.py +0 -0
- {quick_pp-0.3.1 → quick_pp-0.3.2}/tests/test_uncertainty_and_ressum.py +0 -0
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
include LICENSE
|
|
2
|
-
include README.md
|
|
3
|
-
include CITATION.cff
|
|
4
|
-
|
|
5
|
-
recursive-include tests *.py
|
|
6
|
-
recursive-include docs *.md *.png *.jpg *.gif
|
|
7
|
-
recursive-exclude * __pycache__
|
|
8
|
-
recursive-exclude * *.py[co]
|
|
9
|
-
recursive-exclude docs/_build *
|
|
1
|
+
include LICENSE
|
|
2
|
+
include README.md
|
|
3
|
+
include CITATION.cff
|
|
4
|
+
|
|
5
|
+
recursive-include tests *.py
|
|
6
|
+
recursive-include docs *.md *.png *.jpg *.gif
|
|
7
|
+
recursive-exclude * __pycache__
|
|
8
|
+
recursive-exclude * *.py[co]
|
|
9
|
+
recursive-exclude docs/_build *
|
|
10
|
+
|
|
11
|
+
prune scripts
|
|
12
|
+
prune deploy
|
|
13
|
+
prune data
|
|
14
|
+
prune notebooks
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: quick-pp
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Summary: Comprehensive Python package and web platform for deterministic and probabilistic petrophysical evaluation, SCAL & relative permeability modeling, multi-well FWL optimization, stratigraphic normalization, and geomodel log upscaling.
|
|
5
5
|
Author-email: Imran Fadhil <imranfadhil@gmail.com>
|
|
6
6
|
Maintainer-email: Imran Fadhil <imranfadhil@gmail.com>
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.2 (2026)
|
|
4
|
+
- Fixed frontend API base URL resolution (`resolveApiBase` in `client.ts`) when running the standalone production server on port `5469` (`quick_pp app` and `quick_pp frontend`), routing requests directly to the FastAPI backend on port `6312`.
|
|
5
|
+
- Fixed `quick_pp docker up` container volume mounts (`docker-compose.yaml`) to mount the complete `quick_pp` package (`core_analysis.py`, `saturation.py`, `scal.py`, `uncertainty.py`, `upscaling.py`, etc.) and use the pre-built frontend bundle (`build/index.js`).
|
|
6
|
+
- Improved `DBConnector` and FastAPI startup (`main.py`) to automatically create parent directories for any file-backed `sqlite:///` database URL and ensure schema initialization completes before bootstrapping the default administrator.
|
|
7
|
+
- Updated `seed_demo.py` so non-demo logins (`QPP_DEMO_MODE=false`) prompt for initial password and QR code MFA setup instead of using an un-scanned random TOTP secret.
|
|
8
|
+
- Fixed CLI edge cases across `quick_pp app --open`, `quick_pp model-deployment`, and `quick_pp docker`, added automated Docker Hub image publishing to `scripts/release.py`, and added a comprehensive CLI unit test suite (`tests/test_cli.py`).
|
|
9
|
+
|
|
3
10
|
## 0.3.1 (2026)
|
|
4
11
|
- Added **Multi-Well Conformal ML Model Training** (`MultiWellMlTrainer.svelte`, `train_multi_well_conformal_model`) to train, evaluate, and persist custom Physics-Informed Machine Learning (PIML) conformal prediction suites across project wells for Single-Well Lithology & Porosity inference.
|
|
5
12
|
- Added **Automated Badhole Flagging & Lithology Mitigation** (`badhole_flagging` in `quick_pp.qaqc`, `InspectorQaqc.svelte`, `InspectorLithoPoro.svelte`) with caliper, density correction (`DRHO`), and density/neutron washout detection, log track shading, and badhole mitigation in Single-Well Lithology & Porosity evaluation.
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "quick-pp"
|
|
7
|
-
version = "0.3.
|
|
7
|
+
version = "0.3.2"
|
|
8
8
|
description = "Comprehensive Python package and web platform for deterministic and probabilistic petrophysical evaluation, SCAL & relative permeability modeling, multi-well FWL optimization, stratigraphic normalization, and geomodel log upscaling."
|
|
9
9
|
readme = { file = "README.md", content-type = "text/markdown" }
|
|
10
10
|
license = "MIT"
|
|
@@ -46,7 +46,7 @@ logging.getLogger("mlflow").setLevel(logging.WARNING)
|
|
|
46
46
|
|
|
47
47
|
__author__ = """Imran Fadhil"""
|
|
48
48
|
__email__ = "imranfadhil@gmail.com"
|
|
49
|
-
__version__ = "0.3.
|
|
49
|
+
__version__ = "0.3.2" # Need to be updated manually when releasing a new version/ change in pyproject.toml
|
|
50
50
|
|
|
51
51
|
# Expose core petrophysical submodules and key public functions at top-level package namespace
|
|
52
52
|
from quick_pp import qaqc, saturation, scal, uncertainty, upscaling # noqa: E402
|
|
@@ -27,8 +27,10 @@ _db_connector_instance = None
|
|
|
27
27
|
def get_db_connector():
|
|
28
28
|
global _db_connector_instance
|
|
29
29
|
if _db_connector_instance is None:
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
from quick_pp.app.backend.utils.db import _connector
|
|
31
|
+
|
|
32
|
+
_db_connector_instance = _connector
|
|
33
|
+
_db_connector_instance.setup_db()
|
|
32
34
|
logging.getLogger(__name__).info("DBConnector initialized (singleton)")
|
|
33
35
|
return _db_connector_instance
|
|
34
36
|
|
|
@@ -94,9 +96,9 @@ app = FastAPI(
|
|
|
94
96
|
)
|
|
95
97
|
|
|
96
98
|
# Setup static files and templates
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
99
|
+
api_folder = resources.files("quick_pp.app.backend")
|
|
100
|
+
static_folder = api_folder / "static"
|
|
101
|
+
template_folder = api_folder / "template"
|
|
100
102
|
|
|
101
103
|
app.mount("/static", StaticFiles(directory=static_folder), name="static")
|
|
102
104
|
|
|
@@ -31,14 +31,14 @@ app = FastAPI(
|
|
|
31
31
|
swagger_ui_parameters={"defaultModelsExpandDepth": -1},
|
|
32
32
|
debug=True,
|
|
33
33
|
)
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
app.mount("/static", StaticFiles(directory=static_folder), name="static")
|
|
34
|
+
api_folder = resources.files("quick_pp.app.backend")
|
|
35
|
+
static_folder = api_folder / "static"
|
|
36
|
+
app.mount("/static", StaticFiles(directory=str(static_folder)), name="static")
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
@app.get("/favicon.ico", include_in_schema=False)
|
|
40
40
|
async def favicon():
|
|
41
|
-
return FileResponse("
|
|
41
|
+
return FileResponse(str(static_folder / "favicon.ico"))
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
# set_body and get_body required to extract request body in middleware
|
|
@@ -42,16 +42,10 @@ services:
|
|
|
42
42
|
- SMTP_FROM=${SMTP_FROM:-}
|
|
43
43
|
- SMTP_TLS=${SMTP_TLS:-true}
|
|
44
44
|
volumes:
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
49
|
-
- ../../../quick_pp/database:/venv/lib/python3.11/site-packages/quick_pp/database
|
|
50
|
-
- ../../../quick_pp/machine_learning:/venv/lib/python3.11/site-packages/quick_pp/machine_learning
|
|
51
|
-
- ../../../quick_pp/qaqc.py:/code/quick_pp/qaqc.py
|
|
52
|
-
- ../../../quick_pp/app/backend:/code/quick_pp/app/backend
|
|
53
|
-
- ../../../quick_pp/database:/code/quick_pp/database
|
|
54
|
-
- ../../../quick_pp/machine_learning:/code/quick_pp/machine_learning
|
|
45
|
+
- ${QPP_HOST_UPLOADS_DIR:-../../../uploads}:/code/uploads
|
|
46
|
+
- ${QPP_HOST_DATA_DIR:-../../../data}:/code/data
|
|
47
|
+
- ../..:/venv/lib/python3.11/site-packages/quick_pp
|
|
48
|
+
- ../..:/code/quick_pp
|
|
55
49
|
networks:
|
|
56
50
|
- qpp-network
|
|
57
51
|
|
|
@@ -71,7 +65,7 @@ services:
|
|
|
71
65
|
- PORT=5469
|
|
72
66
|
- NODE_OPTIONS=--max-old-space-size=${FRONTEND_MAX_OLD_SPACE:-4096}
|
|
73
67
|
# Install deps, build the app, and run the production server
|
|
74
|
-
command: sh -c "npm install && npm run build && node build"
|
|
68
|
+
command: sh -c "if [ -f build/index.js ]; then node build/index.js; else npm install && npm run build && node build/index.js; fi"
|
|
75
69
|
networks:
|
|
76
70
|
- qpp-network
|
|
77
71
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{M as z,C as O,a8 as de,A as Z,H as pe,G as ae,g as d,V as fe,J as me,K as ge,L as se,N as Q,D as U,a9 as ve,aa as we,ab as re,w as Ce,B as Y,F as _e,ac as ue,ad as K,ae as be,af as J,a6 as Ee,ag as Ie,ah as Se,ai as ye,aj as $,x as ce,z as he,ak as G,Q as Te,al as Ne,am as Me,an as Re,y as Fe,I as De,b as p,d as v,W as S,u as k}from"./B47cw2fH.js";import{B as Pe}from"./BIsZEnBs.js";import{f as B,h as N,p as A,i as ie,j as ne,k as le,A as xe,l as je}from"./DPS-9Tab.js";function Be(h,e){return e}function Ae(h,e,i){for(var r=[],n=e.length,t,s=e.length,l=0;l<n;l++){let E=e[l];he(E,()=>{if(t){if(t.pending.delete(E),t.done.add(E),t.pending.size===0){var g=h.outrogroups;X(K(t.done)),g.delete(t),g.size===0&&(h.outrogroups=null)}}else s-=1},!1)}if(s===0){var u=r.length===0&&i!==null;if(u){var c=i,m=c.parentNode;Re(m),m.append(c),h.items.clear()}X(e,!u)}else t={pending:new Set(e),done:new Set},(h.outrogroups??=new Set).add(t)}function X(h,e=!0){for(var i=0;i<h.length;i++)Fe(h[i],e)}var oe;function Ve(h,e,i,r,n,t=null){var s=h,l=new Map,u=(e&ue)!==0;if(u){var c=h;s=O?z(de(c)):c.appendChild(Z())}O&&pe();var m=null,E=fe(()=>{var f=i();return be(f)?f:f==null?[]:K(f)}),g,_=!0;function M(){o.fallback=m,$e(o,g,s,e,r),m!==null&&(g.length===0?(m.f&$)===0?ce(m):(m.f^=$,q(m,null,s)):he(m,()=>{m=null}))}var x=ae(()=>{g=d(E);var f=g.length;let y=!1;if(O){var T=me(s)===ge;T!==(f===0)&&(s=se(),z(s),Q(!1),y=!0)}for(var F=new Set,D=Ce,j=_e(),w=0;w<f;w+=1){O&&U.nodeType===ve&&U.data===we&&(s=U,y=!0,Q(!1));var C=g[w],b=r(C,w),I=_?null:l.get(b);I?(I.v&&re(I.v,C),I.i&&re(I.i,w),j&&D.skipped_effects.delete(I.e)):(I=Le(l,_?s:oe??=Z(),C,b,w,n,e,i),_||(I.e.f|=$),l.set(b,I)),F.add(b)}if(f===0&&t&&!m&&(_?m=Y(()=>t(s)):(m=Y(()=>t(oe??=Z())),m.f|=$)),O&&f>0&&z(se()),!_)if(j){for(const[P,W]of l)F.has(P)||D.skipped_effects.add(W.e);D.oncommit(M),D.ondiscard(()=>{})}else M();y&&Q(!0),d(E)}),o={effect:x,items:l,outrogroups:null,fallback:m};_=!1,O&&(s=U)}function $e(h,e,i,r,n){var t=(r&Me)!==0,s=e.length,l=h.items,u=h.effect.first,c,m=null,E,g=[],_=[],M,x,o,f;if(t)for(f=0;f<s;f+=1)M=e[f],x=n(M,f),o=l.get(x).e,(o.f&$)===0&&(o.nodes?.a?.measure(),(E??=new Set).add(o));for(f=0;f<s;f+=1){if(M=e[f],x=n(M,f),o=l.get(x).e,h.outrogroups!==null)for(const I of h.outrogroups)I.pending.delete(o),I.done.delete(o);if((o.f&$)!==0)if(o.f^=$,o===u)q(o,null,i);else{var y=m?m.next:u;o===h.effect.last&&(h.effect.last=o.prev),o.prev&&(o.prev.next=o.next),o.next&&(o.next.prev=o.prev),L(h,m,o),L(h,o,y),q(o,y,i),m=o,g=[],_=[],u=m.next;continue}if((o.f&G)!==0&&(ce(o),t&&(o.nodes?.a?.unfix(),(E??=new Set).delete(o))),o!==u){if(c!==void 0&&c.has(o)){if(g.length<_.length){var T=_[0],F;m=T.prev;var D=g[0],j=g[g.length-1];for(F=0;F<g.length;F+=1)q(g[F],T,i);for(F=0;F<_.length;F+=1)c.delete(_[F]);L(h,D.prev,j.next),L(h,m,D),L(h,j,T),u=T,m=j,f-=1,g=[],_=[]}else c.delete(o),q(o,u,i),L(h,o.prev,o.next),L(h,o,m===null?h.effect.first:m.next),L(h,m,o),m=o;continue}for(g=[],_=[];u!==null&&u!==o;)(c??=new Set).add(u),_.push(u),u=u.next;if(u===null)continue}(o.f&$)===0&&g.push(o),m=o,u=o.next}if(h.outrogroups!==null){for(const I of h.outrogroups)I.pending.size===0&&(X(K(I.done)),h.outrogroups?.delete(I));h.outrogroups.size===0&&(h.outrogroups=null)}if(u!==null||c!==void 0){var w=[];if(c!==void 0)for(o of c)(o.f&G)===0&&w.push(o);for(;u!==null;)(u.f&G)===0&&u!==h.fallback&&w.push(u),u=u.next;var C=w.length;if(C>0){var b=(r&ue)!==0&&s===0?i:null;if(t){for(f=0;f<C;f+=1)w[f].nodes?.a?.measure();for(f=0;f<C;f+=1)w[f].nodes?.a?.fix()}Ae(h,w,b)}}t&&Te(()=>{if(E!==void 0)for(o of E)o.nodes?.a?.apply()})}function Le(h,e,i,r,n,t,s,l){var u=(s&Se)!==0?(s&ye)===0?Ee(i,!1,!1):J(i):null,c=(s&Ie)!==0?J(n):null;return{v:u,i:c,e:Y(()=>(t(e,u??i,c??n,l),()=>{h.delete(r)}))}}function q(h,e,i){if(h.nodes)for(var r=h.nodes.start,n=h.nodes.end,t=e&&(e.f&$)===0?e.nodes.start:i;r!==null;){var s=Ne(r);if(t.before(r),r===n)return;r=s}}function L(h,e,i){e===null?h.effect.first=i:e.next=i,i===null?h.effect.last=e:i.prev=e}function ze(h,e,...i){var r=new Pe(h);ae(()=>{const n=e()??null;r.ensure(n,n&&(t=>n(t,...i)))},De)}function Ze(h){var e=J(0);return function(){return arguments.length===1?(p(e,d(e)+1),arguments[0]):(d(e),h())}}class ke{#e=v(null);get projectId(){return d(this.#e)}set projectId(e){p(this.#e,e,!0)}#t=v(null);get wellId(){return d(this.#t)}set wellId(e){p(this.#t,e,!0)}#s=v("single-well");get scope(){return d(this.#s)}set scope(e){p(this.#s,e,!0)}#r=v("qaqc");get singleWellStep(){return d(this.#r)}set singleWellStep(e){p(this.#r,e,!0)}#i=v("inventory");get multiWellStep(){return d(this.#i)}set multiWellStep(e){p(this.#i,e,!0)}#n=v(null);get depthFilter(){return d(this.#n)}set depthFilter(e){p(this.#n,e,!0)}#l=v(S([]));get selectedZones(){return d(this.#l)}set selectedZones(e){p(this.#l,e,!0)}#o=v(null);get cursorDepth(){return d(this.#o)}set cursorDepth(e){p(this.#o,e,!0)}#a=v(S(new Set));get brushedDepthIndices(){return d(this.#a)}set brushedDepthIndices(e){p(this.#a,e,!0)}#u=v(null);get targetScrollDepth(){return d(this.#u)}set targetScrollDepth(e){p(this.#u,e,!0)}#c=v("split");get rightPaneTab(){return d(this.#c)}set rightPaneTab(e){p(this.#c,e,!0)}#h=v("GR");get selectedQaqcCurve(){return d(this.#h)}set selectedQaqcCurve(e){p(this.#h,e,!0)}#d=v(!1);get importerOpen(){return d(this.#d)}set importerOpen(e){p(this.#d,e,!0)}#p=v(!1);get aiDrawerOpen(){return d(this.#p)}set aiDrawerOpen(e){p(this.#p,e,!0)}#f=v(!1);get sectionFocusMode(){return d(this.#f)}set sectionFocusMode(e){p(this.#f,e,!0)}#m=v(null);get focusedSectionTitle(){return d(this.#m)}set focusedSectionTitle(e){p(this.#m,e,!0)}#g=v(S({type:"collapse-all",seq:0}));get sectionBulkAction(){return d(this.#g)}set sectionBulkAction(e){p(this.#g,e,!0)}#v=v(S({model:"ssc",porosityMethod:"neu_den",useHcCorrected:!0,enableHcCorrection:!0,rhoWater:1,rhoHc:.8,hiHc:.9,hcBuffer:0,drySandNphi:-.02,drySandRhob:2.65,drySiltNphi:.12,drySiltRhob:2.68,dryClayNphi:.33,dryClayRhob:2.7,fluidNphi:1,fluidRhob:1,siltLineAngle:119,grClean:15,grClay:115,minerals:["QUARTZ","CALCITE","DOLOMITE","SHALE"],enableCoalFlagging:!0,coalRhobMax:2,coalNphiMin:.3,coalWindowSize:41,coalTrendFactor:.05,badholeTreatment:"vsh_gr"}));get lithoParams(){return d(this.#v)}set lithoParams(e){p(this.#v,e,!0)}#w=v(S({useCali:!0,caliThreshold:2,autoBitsize:!0,bitsizeDefault:8.5,useDrho:!0,drhoThreshold:.15,useRhobNphi:!1,rhobMin:1.95,rhobMax:2.95,nphiMax:.45,excludeCoal:!0,useRugosity:!1,rugosityWindow:21,rhobTrendFactor:.05,caliSpikeThreshold:.5}));get badholeParams(){return d(this.#w)}set badholeParams(e){p(this.#w,e,!0)}#C=v(S({method:"waxman_smits",rwMode:"salinity_temp",measSystem:"metric",waterSalinity:35e3,rwPickett:.08,a:1,m:2,n:2,tempGradient:30,surfaceTemp:25,bMethod:"waxman_smits",qvMethod:"cec",cecClay:.1,rhoDryClay:2.71}));get saturationParams(){return d(this.#C)}set saturationParams(e){p(this.#C,e,!0)}#_=v(S({model:"let",swirr:.15,sor:.2,krw_max:.45,kro_max:.9,nw:2.5,no:2.5,lam:2,lw:2,ew:1.5,tw:2,lo:2,eo:1.5,to:2,mu_w:.5,mu_o:1.5,pc_entry:1.5,pc_exponent:2,pc_max:50,n_points:25}));get scalParams(){return d(this.#_)}set scalParams(e){p(this.#_,e,!0)}#b=v(null);get scalResult(){return d(this.#b)}set scalResult(e){p(this.#b,e,!0)}clearFilters(){this.depthFilter=null,this.selectedZones=[],this.brushedDepthIndices=new Set}setBrushedIndices(e){this.brushedDepthIndices=new Set(e)}scrollToDepth(e){this.targetScrollDepth=e,this.cursorDepth=e}expandAllSections(){this.sectionFocusMode=!1,this.sectionBulkAction={type:"expand-all",seq:this.sectionBulkAction.seq+1}}collapseAllSections(){this.focusedSectionTitle=null,this.sectionBulkAction={type:"collapse-all",seq:this.sectionBulkAction.seq+1}}toggleFocusMode(){this.sectionFocusMode=!this.sectionFocusMode,this.sectionFocusMode&&(this.sectionBulkAction={type:"focus",seq:this.sectionBulkAction.seq+1})}triggerSectionFocus(e){this.focusedSectionTitle=e,this.sectionBulkAction={type:"focus",seq:this.sectionBulkAction.seq+1}}}const a=new ke;function H(h){const e=h.filter(l=>typeof l=="number"&&Number.isFinite(l));if(e.length===0)return{count:0,min:null,max:null,mean:null,p10:null,p50:null,p90:null};const i=[...e].sort((l,u)=>l-u),r=i.length,t=i.reduce((l,u)=>l+u,0)/r,s=l=>{const u=l/100*(r-1),c=Math.floor(u),m=Math.ceil(u);return c===m?i[c]:i[c]+(i[m]-i[c])*(u-c)};return{count:r,min:Number(i[0].toFixed(4)),max:Number(i[r-1].toFixed(4)),mean:Number(t.toFixed(4)),p10:Number(s(10).toFixed(4)),p50:Number(s(50).toFixed(4)),p90:Number(s(90).toFixed(4))}}class We{#e=v(!1);get isLoading(){return d(this.#e)}set isLoading(e){p(this.#e,e,!0)}#t=v(!1);get isCalculating(){return d(this.#t)}set isCalculating(e){p(this.#t,e,!0)}#s=v(null);get lastError(){return d(this.#s)}set lastError(e){p(this.#s,e,!0)}#r=v(null);get lastSavedMessage(){return d(this.#r)}set lastSavedMessage(e){p(this.#r,e,!0)}#i=v(S({}));get curves(){return d(this.#i)}set curves(e){p(this.#i,e,!0)}#n=v(S({}));get originalCurves(){return d(this.#n)}set originalCurves(e){p(this.#n,e,!0)}#l=v(S({}));get committedBaseCurves(){return d(this.#l)}set committedBaseCurves(e){p(this.#l,e,!0)}#o=v(S([]));get zonesColumn(){return d(this.#o)}set zonesColumn(e){p(this.#o,e,!0)}#a=v(S({}));get stats(){return d(this.#a)}set stats(e){p(this.#a,e,!0)}#u=v(S([]));get tops(){return d(this.#u)}set tops(e){p(this.#u,e,!0)}#c=v(S([]));get contacts(){return d(this.#c)}set contacts(e){p(this.#c,e,!0)}#h=v(S([]));get coreSamples(){return d(this.#h)}set coreSamples(e){p(this.#h,e,!0)}#d=v(S([]));get pressureTests(){return d(this.#d)}set pressureTests(e){p(this.#d,e,!0)}#p=v(S([]));get survey(){return d(this.#p)}set survey(e){p(this.#p,e,!0)}#f=v(S({}));get config(){return d(this.#f)}set config(e){p(this.#f,e,!0)}#m=v(S([]));get zonalSummary(){return d(this.#m)}set zonalSummary(e){p(this.#m,e,!0)}#g=v(null);get poroCoreMetrics(){return d(this.#g)}set poroCoreMetrics(e){p(this.#g,e,!0)}#v=v(null);get permCoreMetrics(){return d(this.#v)}set permCoreMetrics(e){p(this.#v,e,!0)}#w=v(S({}));get pendingModuleCurves(){return d(this.#w)}set pendingModuleCurves(e){p(this.#w,e,!0)}#C=k(()=>{const e=this.curves.DEPT??this.curves.DEPTH??[],i=!!a.depthFilter,r=a.selectedZones.length>0;if(!i&&!r)return e.map((u,c)=>c);const n=a.depthFilter?.min??-1/0,t=a.depthFilter?.max??1/0,s=new Set(a.selectedZones),l=[...this.tops].sort((u,c)=>u.depth-c.depth);return e.reduce((u,c,m)=>{if(c==null||Number.isNaN(c)||c<n||c>t)return u;if(r){let E=this.zonesColumn[m]??null;if(!E&&l.length>0){for(let g=l.length-1;g>=0;g--)if(c>=l[g].depth){E=l[g].name;break}}if(!E||!s.has(E))return u}return u.push(m),u},[])});get visibleIndices(){return d(this.#C)}set visibleIndices(e){p(this.#C,e)}#_=k(()=>{const i=(this.curves.DEPT??this.curves.DEPTH??[]).filter(r=>typeof r=="number"&&Number.isFinite(r));return i.length===0?{min:0,max:1e3}:{min:Math.min(...i),max:Math.max(...i)}});get depthRange(){return d(this.#_)}set depthRange(e){p(this.#_,e)}#b=k(()=>Object.keys(this.curves).filter(e=>e!=="DEPT"&&e!=="DEPTH"&&e!=="WELL_NAME"&&e!=="ZONES"));get availableCurves(){return d(this.#b)}set availableCurves(e){p(this.#b,e)}#E=k(()=>(this.curves.DEPT??this.curves.DEPTH??[]).length);get totalDepthRows(){return d(this.#E)}set totalDepthRows(e){p(this.#E,e)}#I=k(()=>{if(!(!!a.depthFilter||a.selectedZones.length>0))return this.stats;const i=this.visibleIndices,r={};for(const[n,t]of Object.entries(this.curves)){if(n==="WELL_NAME"||n==="ZONES")continue;const s=i.map(l=>t[l]);r[n]=H(s)}return r});get activeStats(){return d(this.#I)}set activeStats(e){p(this.#I,e)}getLocalStorageFocusKey(e,i){return`qpp_well_focus_${e}_${i}`}async loadWellBundle(e,i){if(!(!e||!i)){this.isLoading=!0,this.lastError=null;try{const{data:r,error:n}=await B.GET("/quick_pp/workspace/projects/{project_id}/wells/{well_name}/bundle",{params:{path:{project_id:e,well_name:i}}});if(n||!r)throw new Error(String(n?.detail??"Failed to load well bundle"));const t={},s={},l={};let u=[];for(const[o,f]of Object.entries(r.curves||{})){if(o==="ZONES"){u=(f||[]).map(T=>T!=null?String(T):null);continue}if(o==="WELL_NAME")continue;const y=(f||[]).map(T=>typeof T=="number"&&Number.isFinite(T)?T:Number.NaN);t[o]=y,s[o]=[...y],l[o]=[...y]}for(const o of Object.keys(t))!o.endsWith("_ORI")&&t[`${o}_ORI`]&&(s[o]=[...t[`${o}_ORI`]]);t.DEPTH&&!t.DEPT&&(t.DEPT=t.DEPTH,s.DEPT=[...t.DEPTH],l.DEPT=[...t.DEPTH]);const c=o=>Array.isArray(t[o])&&t[o].some(f=>Number.isFinite(f)&&f>.001),m=(o,f)=>{if(!o||!f||o.length===0||o.length!==f.length)return!1;let y=0;for(let T=0;T<o.length;T+=Math.max(1,Math.floor(o.length/25)))if(Number.isFinite(o[T])&&Number.isFinite(f[T])&&(y++,Math.abs(o[T]-f[T])>1e-4))return!1;return y>0};if(c("VCALC")||c("VDOLO")||c("VANHY")||c("VHALI")){m(t.VSAND,t.VCALC)&&(t.VSAND=new Array(t.VSAND.length).fill(0),s.VSAND=[...t.VSAND]),m(t.VSILT,t.VDOLO)&&(t.VSILT=new Array(t.VSILT.length).fill(0),s.VSILT=[...t.VSILT]);const o=[];c("VSAND")&&o.push("QUARTZ"),c("VCALC")&&o.push("CALCITE"),c("VDOLO")&&o.push("DOLOMITE"),(c("VCLAY")||c("VSHALE"))&&o.push("SHALE"),c("VANHY")&&o.push("ANHYDRITE"),c("VHALI")&&o.push("HALITE"),o.length>0&&(a.lithoParams.model="multi_mineral",a.lithoParams.minerals=o)}else(c("VSAND")||c("VSILT"))&&a.lithoParams.model==="multi_mineral"&&(a.lithoParams.model="ssc");this.curves=t,this.originalCurves=s,this.committedBaseCurves=l,this.zonesColumn=u,this.stats=r.stats||{},this.tops=(r.tops||[]).sort((o,f)=>o.depth-f.depth),this.contacts=(r.contacts||[]).map(o=>({id:o.id,type:o.type||o.name||"OWC",name:o.name||o.type||"OWC",depth:o.depth})),this.coreSamples=r.core_samples||[],this.pressureTests=r.pressure_tests||[],this.survey=r.survey||[],this.config=r.config||{},this.pendingModuleCurves={},a.brushedDepthIndices=new Set;let g=typeof this.config.focus_min_depth=="number"&&Number.isFinite(this.config.focus_min_depth)?this.config.focus_min_depth:null,_=typeof this.config.focus_max_depth=="number"&&Number.isFinite(this.config.focus_max_depth)?this.config.focus_max_depth:null;if(g===null&&_===null&&typeof window<"u")try{const o=localStorage.getItem(this.getLocalStorageFocusKey(e,i));if(o){const f=JSON.parse(o);typeof f?.min=="number"&&Number.isFinite(f.min)&&(g=f.min),typeof f?.max=="number"&&Number.isFinite(f.max)&&(_=f.max)}}catch{}if(g!==null||_!==null){const o=this.depthRange,f=g!==null?g:o.min,y=_!==null?_:o.max;a.depthFilter={min:Math.min(f,y),max:Math.max(f,y)},this.config={...this.config,focus_min_depth:a.depthFilter.min,focus_max_depth:a.depthFilter.max}}else a.depthFilter=null;const M=(t.DEPT??t.DEPTH??[]).length,x=Object.keys(t).filter(o=>o!=="DEPT"&&o!=="DEPTH").length;N.success(`Loaded well ${i}`,`${M.toLocaleString()} depth rows • ${x} curves • ${this.tops.length} tops`)}catch(r){const n=r?.message||"Error loading well data";this.lastError=n,N.error(n,i)}finally{this.isLoading=!1}}}mergeComputedCurves(e,i){const r=this.curves.DEPT??this.curves.DEPTH??[],n=e.DEPTH??e.DEPT??[],t={...this.curves};if(n.length===r.length||r.length===0){for(const[s,l]of Object.entries(e))s==="WELL_NAME"||s==="ZONES"||(t[s]=l.map(u=>typeof u=="number"&&Number.isFinite(u)?u:Number.NaN));t.DEPTH&&(t.DEPT=t.DEPTH)}else{const s=new Map;r.forEach((l,u)=>{Number.isFinite(l)&&s.set(Number(l.toFixed(4)),u)});for(const[l,u]of Object.entries(e)){if(l==="DEPTH"||l==="DEPT"||l==="WELL_NAME"||l==="ZONES")continue;const c=t[l]?[...t[l]]:new Array(r.length).fill(Number.NaN);n.forEach((m,E)=>{if(m==null)return;const g=s.get(Number(Number(m).toFixed(4)));if(g!==void 0){const _=u[E];c[g]=typeof _=="number"&&Number.isFinite(_)?_:Number.NaN}}),t[l]=c}}this.curves=t,i&&(this.stats={...this.stats,...i})}markModuleComputed(e,i){const n=(Array.isArray(i)?i:Object.keys(i||{})).map(s=>String(s).trim().toUpperCase()).filter(s=>!!s&&s!=="DEPTH"&&s!=="DEPT"&&s!=="WELL_NAME"&&s!=="ZONES"&&!!this.curves[s]);if(n.length===0)return;const t=new Set(this.pendingModuleCurves[e]??[]);for(const s of n)t.add(s);this.pendingModuleCurves={...this.pendingModuleCurves,[e]:Array.from(t)}}hasPendingComputed(e){return(this.pendingModuleCurves[e]?.length??0)>0}async saveModuleComputed(e,i){const r=a.projectId,n=a.wellId,t=this.pendingModuleCurves[e]??[];if(!r||!n||t.length===0)return!1;const s=this.curves.DEPT??this.curves.DEPTH??[];if(s.length===0)return!1;const l={};for(const u of t){const c=this.curves[u];c&&c.length===s.length&&(l[u]=c.map(m=>Number.isFinite(m)?m:null))}if(Object.keys(l).length===0)return!1;this.isCalculating=!0,this.lastError=null;try{await A(`/quick_pp/workspace/projects/${encodeURIComponent(r)}/wells/${encodeURIComponent(n)}/save_computed`,{module:e,depths:s.map(c=>Number.isFinite(c)?c:null),curves:l});const u={...this.pendingModuleCurves};return delete u[e],this.pendingModuleCurves=u,this.lastSavedMessage=i,N.success(i,n),!0}catch(u){return this.lastError=u?.message||"Failed to save computed curves",!1}finally{this.isCalculating=!1}}async transformCurve(e){const i=e.sourceCurve.trim().toUpperCase(),r=(e.targetCurve?.trim()||i).toUpperCase(),n=this.curves[i],t=this.curves.DEPT??this.curves.DEPTH??[];if(!n||t.length===0)throw new Error(`Curve ${i} not found in active well.`);const s=i.endsWith("_ORI")?null:`${i}_ORI`,l=(s?this.curves[s]:void 0)??this.originalCurves[i]??[...n];this.originalCurves[i]||(this.originalCurves={...this.originalCurves,[i]:[...l]}),this.committedBaseCurves[i]||(this.committedBaseCurves={...this.committedBaseCurves,[i]:[...n]});const u=r===i?this.committedBaseCurves[i]??l:n,c=e.scope??"full";let m;c==="brushed"&&a.brushedDepthIndices.size>0?m=new Set(a.brushedDepthIndices):c==="filtered"?m=new Set(this.visibleIndices):m=new Set(t.map((w,C)=>C));const g=[...c!=="full"&&r!==i&&this.curves[r]?[...this.curves[r]]:[...u]],_=e.operation,M=Number(e.value??0),x=Number(e.scale??1),o=Number(e.offset??0),f=e.minVal!==void 0&&e.minVal!==null?Number(e.minVal):null,y=e.maxVal!==void 0&&e.maxVal!==null?Number(e.maxVal):null,T=Math.max(3,Math.round(Number(e.window??5)));if(_==="depth_shift"){const w=[];for(let C=0;C<t.length;C++)Number.isFinite(t[C])&&Number.isFinite(u[C])&&w.push({d:t[C]+M,v:u[C]});if(w.sort((C,b)=>C.d-b.d),w.length>=2)for(const C of m){const b=t[C];if(!Number.isFinite(b))continue;if(b<w[0].d||b>w[w.length-1].d){g[C]=Number.NaN;continue}let I=0,P=w.length-1;for(;I<P-1;){const V=I+P>>1;w[V].d<=b?I=V:P=V}const W=w[I],ee=w[P],te=ee.d-W.d;g[C]=Math.abs(te)<1e-9?W.v:W.v+(b-W.d)/te*(ee.v-W.v)}}else if(_==="smooth"){const w=Math.floor(T/2);for(const C of m){let b=0,I=0;for(let P=Math.max(0,C-w);P<=Math.min(u.length-1,C+w);P++)Number.isFinite(u[P])&&(b+=u[P],I++);g[C]=I>0?b/I:Number.NaN}}else for(const w of m){const C=u[w];if(!Number.isFinite(C)){g[w]=Number.NaN;continue}if(_==="add")g[w]=C+M;else if(_==="subtract")g[w]=C-M;else if(_==="multiply")g[w]=C*M;else if(_==="divide"){if(Math.abs(M)<1e-12)throw new Error("Cannot divide by zero.");g[w]=C/M}else if(_==="linear")g[w]=C*x+o;else if(_==="clip"){let b=C;f!==null&&Number.isFinite(f)&&b<f&&(b=f),y!==null&&Number.isFinite(y)&&b>y&&(b=y),g[w]=b}else if(_==="null_outside"){let b=!0;f!==null&&Number.isFinite(f)&&C<f&&(b=!1),y!==null&&Number.isFinite(y)&&C>y&&(b=!1),g[w]=b?C:Number.NaN}}const F=H(g),D={...this.curves,[r]:g},j={...this.stats,[r]:F};if(r===i&&s&&!D[s]){const w=[...l];D[s]=w,j[s]=H(w)}if(this.curves=D,this.stats=j,a.selectedQaqcCurve=r,e.persist&&a.projectId&&a.wellId){this.isCalculating=!0;try{const w=r===i&&s?D[s]:null;await A(`/quick_pp/workspace/projects/${encodeURIComponent(a.projectId)}/wells/${encodeURIComponent(a.wellId)}/curve_edit`,{action:"save_values",curve:i,target_curve:r,depths:t,values:g.map(b=>Number.isFinite(b)?b:null),ori_curve:r===i&&s?s:null,ori_values:w?w.map(b=>Number.isFinite(b)?b:null):null,save:!0});const C={...this.pendingModuleCurves};delete C["qaqc-edit"],this.pendingModuleCurves=C,this.lastSavedMessage=r===i&&s?`Saved ${r} (kept ${s}) ✓`:`Saved ${r} ✓`,N.success(r===i&&s?`Saved ${r} & preserved ${s} (${m.size.toLocaleString()} pts)`:`Saved curve ${r} (${m.size.toLocaleString()} pts edited)`,a.wellId)}finally{this.isCalculating=!1}}else{const w=[r];r===i&&s&&D[s]&&w.push(s),this.markModuleComputed("qaqc-edit",w),N.success(r===i&&s?`Previewed ${r} (${_}, ${s} preserved)`:`Updated ${r} in memory (${_}, ${m.size.toLocaleString()} pts)`,a.wellId??void 0)}}async duplicateCurve(e,i,r=!0){const n=e.trim().toUpperCase(),t=i.trim().toUpperCase().replace(/\s+/g,"_");if(!t)throw new Error("Please enter a new curve mnemonic.");if(["DEPTH","DEPT","WELL_NAME","ZONES"].includes(t))throw new Error(`Cannot overwrite reserved column ${t}`);const s=this.curves[n];if(!s)throw new Error(`Source curve ${n} not found.`);const l=[...s];if(this.curves={...this.curves,[t]:l},this.originalCurves={...this.originalCurves,[t]:[...l]},this.stats={...this.stats,[t]:H(l)},a.selectedQaqcCurve=t,r&&a.projectId&&a.wellId){this.isCalculating=!0;try{await A(`/quick_pp/workspace/projects/${encodeURIComponent(a.projectId)}/wells/${encodeURIComponent(a.wellId)}/curve_edit`,{action:"duplicate",curve:n,target_curve:t,save:!0}),this.lastSavedMessage=`Duplicated ${n} → ${t} ✓`,N.success(`Duplicated curve ${n} → ${t}`,a.wellId)}finally{this.isCalculating=!1}}}async renameCurve(e,i,r=!0){const n=e.trim().toUpperCase(),t=i.trim().toUpperCase().replace(/\s+/g,"_");if(!t||t===n)throw new Error("Please enter a different target curve mnemonic.");if(["DEPTH","DEPT","WELL_NAME","ZONES"].includes(n)||["DEPTH","DEPT","WELL_NAME","ZONES"].includes(t))throw new Error("Cannot rename protected depth/zone columns.");const s=this.curves[n];if(!s)throw new Error(`Curve ${n} not found.`);const l={...this.curves,[t]:[...s]};delete l[n],this.curves=l;const u={...this.stats,[t]:this.stats[n]??H(s)};if(delete u[n],this.stats=u,this.originalCurves[n]){const c={...this.originalCurves,[t]:this.originalCurves[n]};delete c[n],this.originalCurves=c}if(a.selectedQaqcCurve=t,r&&a.projectId&&a.wellId){this.isCalculating=!0;try{await A(`/quick_pp/workspace/projects/${encodeURIComponent(a.projectId)}/wells/${encodeURIComponent(a.wellId)}/curve_edit`,{action:"rename",curve:n,target_curve:t,save:!0}),this.lastSavedMessage=`Renamed ${n} → ${t} ✓`,N.success(`Renamed curve ${n} → ${t}`,a.wellId)}finally{this.isCalculating=!1}}}async deleteCurve(e,i=!0){const r=e.trim().toUpperCase();if(["DEPTH","DEPT","WELL_NAME","ZONES"].includes(r))throw new Error(`Cannot delete protected column ${r}`);if(!this.curves[r])return;const n={...this.curves};delete n[r],this.curves=n;const t={...this.stats};if(delete t[r],this.stats=t,a.selectedQaqcCurve===r){const s=Object.keys(n).filter(l=>l!=="DEPT"&&l!=="DEPTH"&&l!=="WELL_NAME"&&l!=="ZONES");a.selectedQaqcCurve=s[0]??"GR"}if(i&&a.projectId&&a.wellId){this.isCalculating=!0;try{await A(`/quick_pp/workspace/projects/${encodeURIComponent(a.projectId)}/wells/${encodeURIComponent(a.wellId)}/curve_edit`,{action:"delete",curve:r,save:!0}),this.lastSavedMessage=`Deleted ${r} ✓`,N.success(`Deleted curve ${r}`,a.wellId)}finally{this.isCalculating=!1}}}commitCurveEditBase(e){const i=e.trim().toUpperCase();!i||!this.curves[i]||(this.committedBaseCurves={...this.committedBaseCurves,[i]:[...this.curves[i]]})}async restoreCurveSnapshot(e,i=!1){const r=e.trim().toUpperCase(),n=r.endsWith("_ORI")?null:`${r}_ORI`,t=(n?this.curves[n]:void 0)??this.originalCurves[r];if(!t)return;const s=this.curves.DEPT??this.curves.DEPTH??[];this.curves={...this.curves,[r]:[...t]},this.committedBaseCurves={...this.committedBaseCurves,[r]:[...t]},this.stats={...this.stats,[r]:H(t)},i&&a.projectId&&a.wellId&&(await A(`/quick_pp/workspace/projects/${encodeURIComponent(a.projectId)}/wells/${encodeURIComponent(a.wellId)}/curve_edit`,{action:"save_values",curve:r,target_curve:r,depths:s,values:t.map(l=>Number.isFinite(l)?l:null),save:!0}),this.lastSavedMessage=`Restored ${r} ✓`),N.info(`Restored original values for ${r}`,a.wellId??void 0)}async saveWellFocusDepth(e,i,r=!0){const n=a.projectId,t=a.wellId,s=typeof e=="number"&&Number.isFinite(e),l=typeof i=="number"&&Number.isFinite(i);if(!s&&!l){a.depthFilter=null,this.config={...this.config,focus_min_depth:null,focus_max_depth:null},n&&t&&typeof window<"u"&&localStorage.removeItem(this.getLocalStorageFocusKey(n,t)),r&&n&&t&&(await A(`/quick_pp/workspace/projects/${encodeURIComponent(n)}/wells/${encodeURIComponent(t)}/config`,{clear_focus_depth:!0}),this.lastSavedMessage="Reset Working Depth ✓",N.info("Reset working depth interval to full well",t));return}const u=this.depthRange,c=s?Number(e):u.min,m=l?Number(i):u.max,E=Number(Math.min(c,m).toFixed(2)),g=Number(Math.max(c,m).toFixed(2));a.depthFilter={min:E,max:g},this.config={...this.config,focus_min_depth:E,focus_max_depth:g},n&&t&&typeof window<"u"&&localStorage.setItem(this.getLocalStorageFocusKey(n,t),JSON.stringify({min:E,max:g})),r&&n&&t&&(await A(`/quick_pp/workspace/projects/${encodeURIComponent(n)}/wells/${encodeURIComponent(t)}/config`,{focus_min_depth:E,focus_max_depth:g}),this.lastSavedMessage=`Working Depth [${E}–${g}m] ✓`,N.success(`Saved working depth interval: ${E.toFixed(1)} – ${g.toFixed(1)} m`,t))}async updateTopDepth(e,i,r=!0){const n=Number(i.toFixed(1)),t=this.tops.find(s=>s.id===e);if(this.tops=this.tops.map(s=>s.id===e?{...s,depth:n}:s).sort((s,l)=>s.depth-l.depth),r&&a.projectId&&a.wellId)try{await ie(a.projectId,a.wellId,"formation_tops","tops",this.tops.map(s=>({name:s.name,depth:s.depth}))),t&&N.success(`Updated formation top ${t.name} → ${n.toFixed(1)} m`,a.wellId)}catch(s){this.lastError=s?.message||"Failed to persist formation top"}}async updateContactDepth(e,i,r=!0){const n=Number(i.toFixed(1)),t=this.contacts.find(s=>s.id===e);if(this.contacts=this.contacts.map(s=>s.id===e?{...s,depth:n}:s),r&&a.projectId&&a.wellId)try{await ie(a.projectId,a.wellId,"fluid_contacts","contacts",this.contacts.map(s=>({name:s.type,depth:s.depth}))),t&&N.success(`Updated fluid contact ${t.type} → ${n.toFixed(1)} m`,a.wellId)}catch(s){this.lastError=s?.message||"Failed to persist fluid contact"}}getReadoutAtDepth(e){if(e===null||!Number.isFinite(e))return{};const i=this.curves.DEPT??this.curves.DEPTH??[];if(i.length===0)return{};let r=0,n=i.length-1;for(;r<n;){const s=r+n>>1;i[s]<e?r=s+1:n=s}r>0&&Math.abs(i[r-1]-e)<Math.abs(i[r]-e)&&(r=r-1);const t={DEPT:i[r]};for(const s of["GR","RT","NPHI","RHOB","VCLAY","VCALC","VDOLO","VSAND","VSILT","PHIT","PHIE","PERM","SWT","SWE"])if(this.curves[s]){const l=this.curves[s][r];t[s]=Number.isFinite(l)?l:null}return t}}const R=new We;class Oe{#e=v(S([]));get projects(){return d(this.#e)}set projects(e){p(this.#e,e,!0)}#t=v(null);get summary(){return d(this.#t)}set summary(e){p(this.#t,e,!0)}#s=v(!1);get isLoading(){return d(this.#s)}set isLoading(e){p(this.#s,e,!0)}#r=v(!1);get isComputingMultiWell(){return d(this.#r)}set isComputingMultiWell(e){p(this.#r,e,!0)}#i=v(null);get error(){return d(this.#i)}set error(e){p(this.#i,e,!0)}#n=v(S({}));get pendingMultiWellModules(){return d(this.#n)}set pendingMultiWellModules(e){p(this.#n,e,!0)}#l=v(S([.5,1.2,2.5,5]));get fziCutoffs(){return d(this.#l)}set fziCutoffs(e){p(this.#l,e,!0)}#o=v(S([]));get selectedWellNames(){return d(this.#o)}set selectedWellNames(e){p(this.#o,e,!0)}#a=v(null);get rockTypingResult(){return d(this.#a)}set rockTypingResult(e){p(this.#a,e,!0)}#u=v(null);get permTransformResult(){return d(this.#u)}set permTransformResult(e){p(this.#u,e,!0)}#c=v(S({model:"leverett_j",unit:"metric",fwl:2500,fwlByZone:{},ift:30,theta:30,gw:1.05,ghc:.8}));get shfParams(){return d(this.#c)}set shfParams(e){p(this.#c,e,!0)}#h=v(null);get shfResult(){return d(this.#h)}set shfResult(e){p(this.#h,e,!0)}#d=v(null);get mlTrainingResult(){return d(this.#d)}set mlTrainingResult(e){p(this.#d,e,!0)}#p=k(()=>this.summary?.wells??[]);get wells(){return d(this.#p)}set wells(e){p(this.#p,e)}#f=k(()=>this.summary?.all_zones??[]);get allZones(){return d(this.#f)}set allZones(e){p(this.#f,e)}#m=k(()=>this.summary?.all_curves??[]);get allCurves(){return d(this.#m)}set allCurves(e){p(this.#m,e)}markMultiWellComputed(e){this.pendingMultiWellModules={...this.pendingMultiWellModules,[e]:!0}}hasPendingMultiWell(e){return!!this.pendingMultiWellModules[e]}async saveMultiWellComputed(e){const i=a.projectId;if(!i||!this.hasPendingMultiWell(e))return!1;let r=[],n=[],t={},s="";if(e==="rock-typing"&&this.rockTypingResult)r=this.rockTypingResult.well_names,n=this.rockTypingResult.depths,t={ROCK_FLAG:this.rockTypingResult.rock_flags.map(l=>l!=null&&Number.isFinite(l)?l:null)},this.rockTypingResult.fzi?.length===n.length&&(t.FZI=this.rockTypingResult.fzi.map(l=>l!=null&&Number.isFinite(l)?l:null)),s="ROCK_FLAG";else if(e==="perm-transform"&&this.permTransformResult)r=this.permTransformResult.well_names,n=this.permTransformResult.depths,t={PERM_TRANS:(this.permTransformResult.perm_pred||[]).map(l=>l!=null&&Number.isFinite(l)?l:null)},s="PERM_TRANS";else if(e==="shf"&&this.shfResult)r=this.shfResult.well_names,n=this.shfResult.depths,t={SHF:(this.shfResult.shf||[]).map(l=>l!=null&&Number.isFinite(l)?l:null)},s="SHF";else return!1;if(r.length===0||n.length===0)return!1;this.isComputingMultiWell=!0,this.error=null;try{const l=await A(`/quick_pp/workspace/projects/${encodeURIComponent(i)}/save_multi_well_computed`,{module:e,well_names:r,depths:n,curves:t});this.pendingMultiWellModules={...this.pendingMultiWellModules,[e]:!1};const u=`Saved ${s} (${l.saved_wells} wells) ✓`;return R.lastSavedMessage=u,N.success(u),!0}catch(l){return this.error=l?.message||`Failed to save ${s} across wells`,!1}finally{this.isComputingMultiWell=!1}}async loadProjects(){try{const{data:e}=await B.GET("/quick_pp/database/projects");return this.projects=Array.isArray(e)?e:[],this.projects}catch(e){return this.error=e?.message||"Failed to load projects",[]}}clearProject(){a.projectId=null,a.wellId=null,this.summary=null,this.selectedWellNames=[],this.pendingMultiWellModules={},this.rockTypingResult=null,this.permTransformResult=null,this.shfResult=null,R.curves={},R.tops=[],R.contacts=[],R.coreSamples=[]}async selectProject(e,i){if(!e)return;const r=String(e),n=a.projectId!==r;a.projectId=r,n&&(this.pendingMultiWellModules={},this.rockTypingResult=null,this.permTransformResult=null,this.shfResult=null),this.isLoading=!0,this.error=null;try{const{data:t,error:s}=await B.GET("/quick_pp/workspace/projects/{project_id}/summary",{params:{path:{project_id:r}}});if(s||!t)throw new Error(String(s?.detail??"Failed to load project summary"));this.summary=t,this.selectedWellNames=(t.wells||[]).map(c=>c.name);const l=t.wells||[];let u=i&&l.some(c=>c.name===i)?i:a.wellId&&l.some(c=>c.name===a.wellId)?a.wellId:l[0]?.name??null;a.wellId=u,u?await R.loadWellBundle(r,u):(R.curves={},R.tops=[],R.contacts=[],R.coreSamples=[],N.info(`Loaded project ${t.name} (0 wells)`))}catch(t){const s=t?.message||"Failed to load project summary";this.error=s,N.error(s)}finally{this.isLoading=!1}}async selectWell(e){!a.projectId||!e||(a.wellId=e,await R.loadWellBundle(a.projectId,e))}async stepWell(e){const i=this.wells;if(i.length===0)return;const r=i.findIndex(t=>t.name===a.wellId),n=r===-1?0:(r+e+i.length)%i.length;await this.selectWell(i[n].name)}async createProject(e,i=""){const{data:r,error:n}=await B.POST("/quick_pp/database/projects",{body:{name:e.trim(),description:i}});if(n||!r)throw new Error(String(n?.detail??"Failed to create project"));return await this.loadProjects(),await this.selectProject(r.project_id),r}async renameProject(e,i,r){const n=i.trim();if(!n)throw new Error("Project name is required");const t={name:n};r!==void 0&&(t.description=r);const s=await ne(`/quick_pp/database/projects/${encodeURIComponent(String(e))}`,t);return await this.loadProjects(),String(a.projectId)===String(e)&&(this.summary?this.summary={...this.summary,name:s.name,description:s.description??this.summary.description}:await this.selectProject(e,a.wellId)),N.success(`Renamed project to "${s.name}"`),s}async deleteProject(e){const i=String(e),r=await le(`/quick_pp/database/projects/${encodeURIComponent(i)}`),n=await this.loadProjects();return N.success(`Deleted project "${r.name||i}"`),String(a.projectId)===i&&(n.length>0?await this.selectProject(n[0].project_id):(a.projectId=null,a.wellId=null,this.summary=null,this.selectedWellNames=[],R.curves={},R.tops=[],R.contacts=[],R.coreSamples=[])),r}async renameWell(e,i){if(!a.projectId)throw new Error("No active project selected");const r=i.trim();if(!r)throw new Error("New well name is required");if(r===e)return;const n=a.projectId,t=await ne(`/quick_pp/database/projects/${encodeURIComponent(n)}/wells/${encodeURIComponent(e)}`,{name:r}),s=t.well_name||r,l=a.wellId===e;return await this.selectProject(n,l?s:a.wellId),N.success(`Renamed well "${e}" → "${s}"`,s),t}async deleteWell(e){if(!a.projectId)throw new Error("No active project selected");const i=a.projectId,r=this.wells.map(s=>s.name),n=r.indexOf(e);let t=a.wellId;if(a.wellId===e){const s=r.filter(l=>l!==e);t=s.length>0?s[Math.min(Math.max(0,n),s.length-1)]:null}await le(`/quick_pp/database/projects/${encodeURIComponent(i)}/wells/${encodeURIComponent(e)}`),await this.selectProject(i,t),N.success(`Deleted well "${e}"`)}async uploadProjectFiles(e){if(!a.projectId||!e||e.length===0)return;const i=Array.from(e),r=N.startTask(`Uploading & parsing ${i.length} log file(s)...`,i.map(t=>t.name).join(", ")),n=new FormData;for(const t of i)n.append("files",t);try{const t=await fetch(`${xe}/quick_pp/database/projects/${a.projectId}/read_las`,{method:"POST",credentials:"include",headers:je(),body:n});if(!t.ok){const s=await t.text();throw new Error(s||"Upload failed")}N.endTask(r,{level:"success",message:`Imported ${i.length} well log file(s)`,detail:i.map(s=>s.name).join(", ")}),await this.selectProject(a.projectId,a.wellId)}catch(t){throw N.endTask(r,{level:"error",message:t?.message||"Well log upload failed"}),t}}}const Qe=new Oe;function Ge(h,e=3,i="—"){if(h==null||h==="")return i;const r=typeof h=="number"?h:Number(h);return Number.isFinite(r)?r.toFixed(e):i}function Ye(h,e="m"){return h==null||!Number.isFinite(h)?"—":`${h.toFixed(1)}${e}`}function Je(h){return h==null||!Number.isFinite(h)?"—":h>=100?h.toFixed(1):h>=1?h.toFixed(2):h.toFixed(4)}function Xe(h){return h.replace(/\r\n/g,`
|
|
1
|
+
import{M as z,C as O,a8 as de,A as Z,H as pe,G as ae,g as d,V as fe,J as me,K as ge,L as se,N as Q,D as U,a9 as ve,aa as we,ab as re,w as Ce,B as Y,F as _e,ac as ue,ad as K,ae as be,af as J,a6 as Ee,ag as Ie,ah as Se,ai as ye,aj as $,x as ce,z as he,ak as G,Q as Te,al as Ne,am as Me,an as Re,y as Fe,I as De,b as p,d as v,W as S,u as k}from"./B47cw2fH.js";import{B as Pe}from"./BIsZEnBs.js";import{f as B,h as N,p as A,i as ie,j as ne,k as le,A as xe,l as je}from"./CyPEyWTe.js";function Be(h,e){return e}function Ae(h,e,i){for(var r=[],n=e.length,t,s=e.length,l=0;l<n;l++){let E=e[l];he(E,()=>{if(t){if(t.pending.delete(E),t.done.add(E),t.pending.size===0){var g=h.outrogroups;X(K(t.done)),g.delete(t),g.size===0&&(h.outrogroups=null)}}else s-=1},!1)}if(s===0){var u=r.length===0&&i!==null;if(u){var c=i,m=c.parentNode;Re(m),m.append(c),h.items.clear()}X(e,!u)}else t={pending:new Set(e),done:new Set},(h.outrogroups??=new Set).add(t)}function X(h,e=!0){for(var i=0;i<h.length;i++)Fe(h[i],e)}var oe;function Ve(h,e,i,r,n,t=null){var s=h,l=new Map,u=(e&ue)!==0;if(u){var c=h;s=O?z(de(c)):c.appendChild(Z())}O&&pe();var m=null,E=fe(()=>{var f=i();return be(f)?f:f==null?[]:K(f)}),g,_=!0;function M(){o.fallback=m,$e(o,g,s,e,r),m!==null&&(g.length===0?(m.f&$)===0?ce(m):(m.f^=$,q(m,null,s)):he(m,()=>{m=null}))}var x=ae(()=>{g=d(E);var f=g.length;let y=!1;if(O){var T=me(s)===ge;T!==(f===0)&&(s=se(),z(s),Q(!1),y=!0)}for(var F=new Set,D=Ce,j=_e(),w=0;w<f;w+=1){O&&U.nodeType===ve&&U.data===we&&(s=U,y=!0,Q(!1));var C=g[w],b=r(C,w),I=_?null:l.get(b);I?(I.v&&re(I.v,C),I.i&&re(I.i,w),j&&D.skipped_effects.delete(I.e)):(I=Le(l,_?s:oe??=Z(),C,b,w,n,e,i),_||(I.e.f|=$),l.set(b,I)),F.add(b)}if(f===0&&t&&!m&&(_?m=Y(()=>t(s)):(m=Y(()=>t(oe??=Z())),m.f|=$)),O&&f>0&&z(se()),!_)if(j){for(const[P,W]of l)F.has(P)||D.skipped_effects.add(W.e);D.oncommit(M),D.ondiscard(()=>{})}else M();y&&Q(!0),d(E)}),o={effect:x,items:l,outrogroups:null,fallback:m};_=!1,O&&(s=U)}function $e(h,e,i,r,n){var t=(r&Me)!==0,s=e.length,l=h.items,u=h.effect.first,c,m=null,E,g=[],_=[],M,x,o,f;if(t)for(f=0;f<s;f+=1)M=e[f],x=n(M,f),o=l.get(x).e,(o.f&$)===0&&(o.nodes?.a?.measure(),(E??=new Set).add(o));for(f=0;f<s;f+=1){if(M=e[f],x=n(M,f),o=l.get(x).e,h.outrogroups!==null)for(const I of h.outrogroups)I.pending.delete(o),I.done.delete(o);if((o.f&$)!==0)if(o.f^=$,o===u)q(o,null,i);else{var y=m?m.next:u;o===h.effect.last&&(h.effect.last=o.prev),o.prev&&(o.prev.next=o.next),o.next&&(o.next.prev=o.prev),L(h,m,o),L(h,o,y),q(o,y,i),m=o,g=[],_=[],u=m.next;continue}if((o.f&G)!==0&&(ce(o),t&&(o.nodes?.a?.unfix(),(E??=new Set).delete(o))),o!==u){if(c!==void 0&&c.has(o)){if(g.length<_.length){var T=_[0],F;m=T.prev;var D=g[0],j=g[g.length-1];for(F=0;F<g.length;F+=1)q(g[F],T,i);for(F=0;F<_.length;F+=1)c.delete(_[F]);L(h,D.prev,j.next),L(h,m,D),L(h,j,T),u=T,m=j,f-=1,g=[],_=[]}else c.delete(o),q(o,u,i),L(h,o.prev,o.next),L(h,o,m===null?h.effect.first:m.next),L(h,m,o),m=o;continue}for(g=[],_=[];u!==null&&u!==o;)(c??=new Set).add(u),_.push(u),u=u.next;if(u===null)continue}(o.f&$)===0&&g.push(o),m=o,u=o.next}if(h.outrogroups!==null){for(const I of h.outrogroups)I.pending.size===0&&(X(K(I.done)),h.outrogroups?.delete(I));h.outrogroups.size===0&&(h.outrogroups=null)}if(u!==null||c!==void 0){var w=[];if(c!==void 0)for(o of c)(o.f&G)===0&&w.push(o);for(;u!==null;)(u.f&G)===0&&u!==h.fallback&&w.push(u),u=u.next;var C=w.length;if(C>0){var b=(r&ue)!==0&&s===0?i:null;if(t){for(f=0;f<C;f+=1)w[f].nodes?.a?.measure();for(f=0;f<C;f+=1)w[f].nodes?.a?.fix()}Ae(h,w,b)}}t&&Te(()=>{if(E!==void 0)for(o of E)o.nodes?.a?.apply()})}function Le(h,e,i,r,n,t,s,l){var u=(s&Se)!==0?(s&ye)===0?Ee(i,!1,!1):J(i):null,c=(s&Ie)!==0?J(n):null;return{v:u,i:c,e:Y(()=>(t(e,u??i,c??n,l),()=>{h.delete(r)}))}}function q(h,e,i){if(h.nodes)for(var r=h.nodes.start,n=h.nodes.end,t=e&&(e.f&$)===0?e.nodes.start:i;r!==null;){var s=Ne(r);if(t.before(r),r===n)return;r=s}}function L(h,e,i){e===null?h.effect.first=i:e.next=i,i===null?h.effect.last=e:i.prev=e}function ze(h,e,...i){var r=new Pe(h);ae(()=>{const n=e()??null;r.ensure(n,n&&(t=>n(t,...i)))},De)}function Ze(h){var e=J(0);return function(){return arguments.length===1?(p(e,d(e)+1),arguments[0]):(d(e),h())}}class ke{#e=v(null);get projectId(){return d(this.#e)}set projectId(e){p(this.#e,e,!0)}#t=v(null);get wellId(){return d(this.#t)}set wellId(e){p(this.#t,e,!0)}#s=v("single-well");get scope(){return d(this.#s)}set scope(e){p(this.#s,e,!0)}#r=v("qaqc");get singleWellStep(){return d(this.#r)}set singleWellStep(e){p(this.#r,e,!0)}#i=v("inventory");get multiWellStep(){return d(this.#i)}set multiWellStep(e){p(this.#i,e,!0)}#n=v(null);get depthFilter(){return d(this.#n)}set depthFilter(e){p(this.#n,e,!0)}#l=v(S([]));get selectedZones(){return d(this.#l)}set selectedZones(e){p(this.#l,e,!0)}#o=v(null);get cursorDepth(){return d(this.#o)}set cursorDepth(e){p(this.#o,e,!0)}#a=v(S(new Set));get brushedDepthIndices(){return d(this.#a)}set brushedDepthIndices(e){p(this.#a,e,!0)}#u=v(null);get targetScrollDepth(){return d(this.#u)}set targetScrollDepth(e){p(this.#u,e,!0)}#c=v("split");get rightPaneTab(){return d(this.#c)}set rightPaneTab(e){p(this.#c,e,!0)}#h=v("GR");get selectedQaqcCurve(){return d(this.#h)}set selectedQaqcCurve(e){p(this.#h,e,!0)}#d=v(!1);get importerOpen(){return d(this.#d)}set importerOpen(e){p(this.#d,e,!0)}#p=v(!1);get aiDrawerOpen(){return d(this.#p)}set aiDrawerOpen(e){p(this.#p,e,!0)}#f=v(!1);get sectionFocusMode(){return d(this.#f)}set sectionFocusMode(e){p(this.#f,e,!0)}#m=v(null);get focusedSectionTitle(){return d(this.#m)}set focusedSectionTitle(e){p(this.#m,e,!0)}#g=v(S({type:"collapse-all",seq:0}));get sectionBulkAction(){return d(this.#g)}set sectionBulkAction(e){p(this.#g,e,!0)}#v=v(S({model:"ssc",porosityMethod:"neu_den",useHcCorrected:!0,enableHcCorrection:!0,rhoWater:1,rhoHc:.8,hiHc:.9,hcBuffer:0,drySandNphi:-.02,drySandRhob:2.65,drySiltNphi:.12,drySiltRhob:2.68,dryClayNphi:.33,dryClayRhob:2.7,fluidNphi:1,fluidRhob:1,siltLineAngle:119,grClean:15,grClay:115,minerals:["QUARTZ","CALCITE","DOLOMITE","SHALE"],enableCoalFlagging:!0,coalRhobMax:2,coalNphiMin:.3,coalWindowSize:41,coalTrendFactor:.05,badholeTreatment:"vsh_gr"}));get lithoParams(){return d(this.#v)}set lithoParams(e){p(this.#v,e,!0)}#w=v(S({useCali:!0,caliThreshold:2,autoBitsize:!0,bitsizeDefault:8.5,useDrho:!0,drhoThreshold:.15,useRhobNphi:!1,rhobMin:1.95,rhobMax:2.95,nphiMax:.45,excludeCoal:!0,useRugosity:!1,rugosityWindow:21,rhobTrendFactor:.05,caliSpikeThreshold:.5}));get badholeParams(){return d(this.#w)}set badholeParams(e){p(this.#w,e,!0)}#C=v(S({method:"waxman_smits",rwMode:"salinity_temp",measSystem:"metric",waterSalinity:35e3,rwPickett:.08,a:1,m:2,n:2,tempGradient:30,surfaceTemp:25,bMethod:"waxman_smits",qvMethod:"cec",cecClay:.1,rhoDryClay:2.71}));get saturationParams(){return d(this.#C)}set saturationParams(e){p(this.#C,e,!0)}#_=v(S({model:"let",swirr:.15,sor:.2,krw_max:.45,kro_max:.9,nw:2.5,no:2.5,lam:2,lw:2,ew:1.5,tw:2,lo:2,eo:1.5,to:2,mu_w:.5,mu_o:1.5,pc_entry:1.5,pc_exponent:2,pc_max:50,n_points:25}));get scalParams(){return d(this.#_)}set scalParams(e){p(this.#_,e,!0)}#b=v(null);get scalResult(){return d(this.#b)}set scalResult(e){p(this.#b,e,!0)}clearFilters(){this.depthFilter=null,this.selectedZones=[],this.brushedDepthIndices=new Set}setBrushedIndices(e){this.brushedDepthIndices=new Set(e)}scrollToDepth(e){this.targetScrollDepth=e,this.cursorDepth=e}expandAllSections(){this.sectionFocusMode=!1,this.sectionBulkAction={type:"expand-all",seq:this.sectionBulkAction.seq+1}}collapseAllSections(){this.focusedSectionTitle=null,this.sectionBulkAction={type:"collapse-all",seq:this.sectionBulkAction.seq+1}}toggleFocusMode(){this.sectionFocusMode=!this.sectionFocusMode,this.sectionFocusMode&&(this.sectionBulkAction={type:"focus",seq:this.sectionBulkAction.seq+1})}triggerSectionFocus(e){this.focusedSectionTitle=e,this.sectionBulkAction={type:"focus",seq:this.sectionBulkAction.seq+1}}}const a=new ke;function H(h){const e=h.filter(l=>typeof l=="number"&&Number.isFinite(l));if(e.length===0)return{count:0,min:null,max:null,mean:null,p10:null,p50:null,p90:null};const i=[...e].sort((l,u)=>l-u),r=i.length,t=i.reduce((l,u)=>l+u,0)/r,s=l=>{const u=l/100*(r-1),c=Math.floor(u),m=Math.ceil(u);return c===m?i[c]:i[c]+(i[m]-i[c])*(u-c)};return{count:r,min:Number(i[0].toFixed(4)),max:Number(i[r-1].toFixed(4)),mean:Number(t.toFixed(4)),p10:Number(s(10).toFixed(4)),p50:Number(s(50).toFixed(4)),p90:Number(s(90).toFixed(4))}}class We{#e=v(!1);get isLoading(){return d(this.#e)}set isLoading(e){p(this.#e,e,!0)}#t=v(!1);get isCalculating(){return d(this.#t)}set isCalculating(e){p(this.#t,e,!0)}#s=v(null);get lastError(){return d(this.#s)}set lastError(e){p(this.#s,e,!0)}#r=v(null);get lastSavedMessage(){return d(this.#r)}set lastSavedMessage(e){p(this.#r,e,!0)}#i=v(S({}));get curves(){return d(this.#i)}set curves(e){p(this.#i,e,!0)}#n=v(S({}));get originalCurves(){return d(this.#n)}set originalCurves(e){p(this.#n,e,!0)}#l=v(S({}));get committedBaseCurves(){return d(this.#l)}set committedBaseCurves(e){p(this.#l,e,!0)}#o=v(S([]));get zonesColumn(){return d(this.#o)}set zonesColumn(e){p(this.#o,e,!0)}#a=v(S({}));get stats(){return d(this.#a)}set stats(e){p(this.#a,e,!0)}#u=v(S([]));get tops(){return d(this.#u)}set tops(e){p(this.#u,e,!0)}#c=v(S([]));get contacts(){return d(this.#c)}set contacts(e){p(this.#c,e,!0)}#h=v(S([]));get coreSamples(){return d(this.#h)}set coreSamples(e){p(this.#h,e,!0)}#d=v(S([]));get pressureTests(){return d(this.#d)}set pressureTests(e){p(this.#d,e,!0)}#p=v(S([]));get survey(){return d(this.#p)}set survey(e){p(this.#p,e,!0)}#f=v(S({}));get config(){return d(this.#f)}set config(e){p(this.#f,e,!0)}#m=v(S([]));get zonalSummary(){return d(this.#m)}set zonalSummary(e){p(this.#m,e,!0)}#g=v(null);get poroCoreMetrics(){return d(this.#g)}set poroCoreMetrics(e){p(this.#g,e,!0)}#v=v(null);get permCoreMetrics(){return d(this.#v)}set permCoreMetrics(e){p(this.#v,e,!0)}#w=v(S({}));get pendingModuleCurves(){return d(this.#w)}set pendingModuleCurves(e){p(this.#w,e,!0)}#C=k(()=>{const e=this.curves.DEPT??this.curves.DEPTH??[],i=!!a.depthFilter,r=a.selectedZones.length>0;if(!i&&!r)return e.map((u,c)=>c);const n=a.depthFilter?.min??-1/0,t=a.depthFilter?.max??1/0,s=new Set(a.selectedZones),l=[...this.tops].sort((u,c)=>u.depth-c.depth);return e.reduce((u,c,m)=>{if(c==null||Number.isNaN(c)||c<n||c>t)return u;if(r){let E=this.zonesColumn[m]??null;if(!E&&l.length>0){for(let g=l.length-1;g>=0;g--)if(c>=l[g].depth){E=l[g].name;break}}if(!E||!s.has(E))return u}return u.push(m),u},[])});get visibleIndices(){return d(this.#C)}set visibleIndices(e){p(this.#C,e)}#_=k(()=>{const i=(this.curves.DEPT??this.curves.DEPTH??[]).filter(r=>typeof r=="number"&&Number.isFinite(r));return i.length===0?{min:0,max:1e3}:{min:Math.min(...i),max:Math.max(...i)}});get depthRange(){return d(this.#_)}set depthRange(e){p(this.#_,e)}#b=k(()=>Object.keys(this.curves).filter(e=>e!=="DEPT"&&e!=="DEPTH"&&e!=="WELL_NAME"&&e!=="ZONES"));get availableCurves(){return d(this.#b)}set availableCurves(e){p(this.#b,e)}#E=k(()=>(this.curves.DEPT??this.curves.DEPTH??[]).length);get totalDepthRows(){return d(this.#E)}set totalDepthRows(e){p(this.#E,e)}#I=k(()=>{if(!(!!a.depthFilter||a.selectedZones.length>0))return this.stats;const i=this.visibleIndices,r={};for(const[n,t]of Object.entries(this.curves)){if(n==="WELL_NAME"||n==="ZONES")continue;const s=i.map(l=>t[l]);r[n]=H(s)}return r});get activeStats(){return d(this.#I)}set activeStats(e){p(this.#I,e)}getLocalStorageFocusKey(e,i){return`qpp_well_focus_${e}_${i}`}async loadWellBundle(e,i){if(!(!e||!i)){this.isLoading=!0,this.lastError=null;try{const{data:r,error:n}=await B.GET("/quick_pp/workspace/projects/{project_id}/wells/{well_name}/bundle",{params:{path:{project_id:e,well_name:i}}});if(n||!r)throw new Error(String(n?.detail??"Failed to load well bundle"));const t={},s={},l={};let u=[];for(const[o,f]of Object.entries(r.curves||{})){if(o==="ZONES"){u=(f||[]).map(T=>T!=null?String(T):null);continue}if(o==="WELL_NAME")continue;const y=(f||[]).map(T=>typeof T=="number"&&Number.isFinite(T)?T:Number.NaN);t[o]=y,s[o]=[...y],l[o]=[...y]}for(const o of Object.keys(t))!o.endsWith("_ORI")&&t[`${o}_ORI`]&&(s[o]=[...t[`${o}_ORI`]]);t.DEPTH&&!t.DEPT&&(t.DEPT=t.DEPTH,s.DEPT=[...t.DEPTH],l.DEPT=[...t.DEPTH]);const c=o=>Array.isArray(t[o])&&t[o].some(f=>Number.isFinite(f)&&f>.001),m=(o,f)=>{if(!o||!f||o.length===0||o.length!==f.length)return!1;let y=0;for(let T=0;T<o.length;T+=Math.max(1,Math.floor(o.length/25)))if(Number.isFinite(o[T])&&Number.isFinite(f[T])&&(y++,Math.abs(o[T]-f[T])>1e-4))return!1;return y>0};if(c("VCALC")||c("VDOLO")||c("VANHY")||c("VHALI")){m(t.VSAND,t.VCALC)&&(t.VSAND=new Array(t.VSAND.length).fill(0),s.VSAND=[...t.VSAND]),m(t.VSILT,t.VDOLO)&&(t.VSILT=new Array(t.VSILT.length).fill(0),s.VSILT=[...t.VSILT]);const o=[];c("VSAND")&&o.push("QUARTZ"),c("VCALC")&&o.push("CALCITE"),c("VDOLO")&&o.push("DOLOMITE"),(c("VCLAY")||c("VSHALE"))&&o.push("SHALE"),c("VANHY")&&o.push("ANHYDRITE"),c("VHALI")&&o.push("HALITE"),o.length>0&&(a.lithoParams.model="multi_mineral",a.lithoParams.minerals=o)}else(c("VSAND")||c("VSILT"))&&a.lithoParams.model==="multi_mineral"&&(a.lithoParams.model="ssc");this.curves=t,this.originalCurves=s,this.committedBaseCurves=l,this.zonesColumn=u,this.stats=r.stats||{},this.tops=(r.tops||[]).sort((o,f)=>o.depth-f.depth),this.contacts=(r.contacts||[]).map(o=>({id:o.id,type:o.type||o.name||"OWC",name:o.name||o.type||"OWC",depth:o.depth})),this.coreSamples=r.core_samples||[],this.pressureTests=r.pressure_tests||[],this.survey=r.survey||[],this.config=r.config||{},this.pendingModuleCurves={},a.brushedDepthIndices=new Set;let g=typeof this.config.focus_min_depth=="number"&&Number.isFinite(this.config.focus_min_depth)?this.config.focus_min_depth:null,_=typeof this.config.focus_max_depth=="number"&&Number.isFinite(this.config.focus_max_depth)?this.config.focus_max_depth:null;if(g===null&&_===null&&typeof window<"u")try{const o=localStorage.getItem(this.getLocalStorageFocusKey(e,i));if(o){const f=JSON.parse(o);typeof f?.min=="number"&&Number.isFinite(f.min)&&(g=f.min),typeof f?.max=="number"&&Number.isFinite(f.max)&&(_=f.max)}}catch{}if(g!==null||_!==null){const o=this.depthRange,f=g!==null?g:o.min,y=_!==null?_:o.max;a.depthFilter={min:Math.min(f,y),max:Math.max(f,y)},this.config={...this.config,focus_min_depth:a.depthFilter.min,focus_max_depth:a.depthFilter.max}}else a.depthFilter=null;const M=(t.DEPT??t.DEPTH??[]).length,x=Object.keys(t).filter(o=>o!=="DEPT"&&o!=="DEPTH").length;N.success(`Loaded well ${i}`,`${M.toLocaleString()} depth rows • ${x} curves • ${this.tops.length} tops`)}catch(r){const n=r?.message||"Error loading well data";this.lastError=n,N.error(n,i)}finally{this.isLoading=!1}}}mergeComputedCurves(e,i){const r=this.curves.DEPT??this.curves.DEPTH??[],n=e.DEPTH??e.DEPT??[],t={...this.curves};if(n.length===r.length||r.length===0){for(const[s,l]of Object.entries(e))s==="WELL_NAME"||s==="ZONES"||(t[s]=l.map(u=>typeof u=="number"&&Number.isFinite(u)?u:Number.NaN));t.DEPTH&&(t.DEPT=t.DEPTH)}else{const s=new Map;r.forEach((l,u)=>{Number.isFinite(l)&&s.set(Number(l.toFixed(4)),u)});for(const[l,u]of Object.entries(e)){if(l==="DEPTH"||l==="DEPT"||l==="WELL_NAME"||l==="ZONES")continue;const c=t[l]?[...t[l]]:new Array(r.length).fill(Number.NaN);n.forEach((m,E)=>{if(m==null)return;const g=s.get(Number(Number(m).toFixed(4)));if(g!==void 0){const _=u[E];c[g]=typeof _=="number"&&Number.isFinite(_)?_:Number.NaN}}),t[l]=c}}this.curves=t,i&&(this.stats={...this.stats,...i})}markModuleComputed(e,i){const n=(Array.isArray(i)?i:Object.keys(i||{})).map(s=>String(s).trim().toUpperCase()).filter(s=>!!s&&s!=="DEPTH"&&s!=="DEPT"&&s!=="WELL_NAME"&&s!=="ZONES"&&!!this.curves[s]);if(n.length===0)return;const t=new Set(this.pendingModuleCurves[e]??[]);for(const s of n)t.add(s);this.pendingModuleCurves={...this.pendingModuleCurves,[e]:Array.from(t)}}hasPendingComputed(e){return(this.pendingModuleCurves[e]?.length??0)>0}async saveModuleComputed(e,i){const r=a.projectId,n=a.wellId,t=this.pendingModuleCurves[e]??[];if(!r||!n||t.length===0)return!1;const s=this.curves.DEPT??this.curves.DEPTH??[];if(s.length===0)return!1;const l={};for(const u of t){const c=this.curves[u];c&&c.length===s.length&&(l[u]=c.map(m=>Number.isFinite(m)?m:null))}if(Object.keys(l).length===0)return!1;this.isCalculating=!0,this.lastError=null;try{await A(`/quick_pp/workspace/projects/${encodeURIComponent(r)}/wells/${encodeURIComponent(n)}/save_computed`,{module:e,depths:s.map(c=>Number.isFinite(c)?c:null),curves:l});const u={...this.pendingModuleCurves};return delete u[e],this.pendingModuleCurves=u,this.lastSavedMessage=i,N.success(i,n),!0}catch(u){return this.lastError=u?.message||"Failed to save computed curves",!1}finally{this.isCalculating=!1}}async transformCurve(e){const i=e.sourceCurve.trim().toUpperCase(),r=(e.targetCurve?.trim()||i).toUpperCase(),n=this.curves[i],t=this.curves.DEPT??this.curves.DEPTH??[];if(!n||t.length===0)throw new Error(`Curve ${i} not found in active well.`);const s=i.endsWith("_ORI")?null:`${i}_ORI`,l=(s?this.curves[s]:void 0)??this.originalCurves[i]??[...n];this.originalCurves[i]||(this.originalCurves={...this.originalCurves,[i]:[...l]}),this.committedBaseCurves[i]||(this.committedBaseCurves={...this.committedBaseCurves,[i]:[...n]});const u=r===i?this.committedBaseCurves[i]??l:n,c=e.scope??"full";let m;c==="brushed"&&a.brushedDepthIndices.size>0?m=new Set(a.brushedDepthIndices):c==="filtered"?m=new Set(this.visibleIndices):m=new Set(t.map((w,C)=>C));const g=[...c!=="full"&&r!==i&&this.curves[r]?[...this.curves[r]]:[...u]],_=e.operation,M=Number(e.value??0),x=Number(e.scale??1),o=Number(e.offset??0),f=e.minVal!==void 0&&e.minVal!==null?Number(e.minVal):null,y=e.maxVal!==void 0&&e.maxVal!==null?Number(e.maxVal):null,T=Math.max(3,Math.round(Number(e.window??5)));if(_==="depth_shift"){const w=[];for(let C=0;C<t.length;C++)Number.isFinite(t[C])&&Number.isFinite(u[C])&&w.push({d:t[C]+M,v:u[C]});if(w.sort((C,b)=>C.d-b.d),w.length>=2)for(const C of m){const b=t[C];if(!Number.isFinite(b))continue;if(b<w[0].d||b>w[w.length-1].d){g[C]=Number.NaN;continue}let I=0,P=w.length-1;for(;I<P-1;){const V=I+P>>1;w[V].d<=b?I=V:P=V}const W=w[I],ee=w[P],te=ee.d-W.d;g[C]=Math.abs(te)<1e-9?W.v:W.v+(b-W.d)/te*(ee.v-W.v)}}else if(_==="smooth"){const w=Math.floor(T/2);for(const C of m){let b=0,I=0;for(let P=Math.max(0,C-w);P<=Math.min(u.length-1,C+w);P++)Number.isFinite(u[P])&&(b+=u[P],I++);g[C]=I>0?b/I:Number.NaN}}else for(const w of m){const C=u[w];if(!Number.isFinite(C)){g[w]=Number.NaN;continue}if(_==="add")g[w]=C+M;else if(_==="subtract")g[w]=C-M;else if(_==="multiply")g[w]=C*M;else if(_==="divide"){if(Math.abs(M)<1e-12)throw new Error("Cannot divide by zero.");g[w]=C/M}else if(_==="linear")g[w]=C*x+o;else if(_==="clip"){let b=C;f!==null&&Number.isFinite(f)&&b<f&&(b=f),y!==null&&Number.isFinite(y)&&b>y&&(b=y),g[w]=b}else if(_==="null_outside"){let b=!0;f!==null&&Number.isFinite(f)&&C<f&&(b=!1),y!==null&&Number.isFinite(y)&&C>y&&(b=!1),g[w]=b?C:Number.NaN}}const F=H(g),D={...this.curves,[r]:g},j={...this.stats,[r]:F};if(r===i&&s&&!D[s]){const w=[...l];D[s]=w,j[s]=H(w)}if(this.curves=D,this.stats=j,a.selectedQaqcCurve=r,e.persist&&a.projectId&&a.wellId){this.isCalculating=!0;try{const w=r===i&&s?D[s]:null;await A(`/quick_pp/workspace/projects/${encodeURIComponent(a.projectId)}/wells/${encodeURIComponent(a.wellId)}/curve_edit`,{action:"save_values",curve:i,target_curve:r,depths:t,values:g.map(b=>Number.isFinite(b)?b:null),ori_curve:r===i&&s?s:null,ori_values:w?w.map(b=>Number.isFinite(b)?b:null):null,save:!0});const C={...this.pendingModuleCurves};delete C["qaqc-edit"],this.pendingModuleCurves=C,this.lastSavedMessage=r===i&&s?`Saved ${r} (kept ${s}) ✓`:`Saved ${r} ✓`,N.success(r===i&&s?`Saved ${r} & preserved ${s} (${m.size.toLocaleString()} pts)`:`Saved curve ${r} (${m.size.toLocaleString()} pts edited)`,a.wellId)}finally{this.isCalculating=!1}}else{const w=[r];r===i&&s&&D[s]&&w.push(s),this.markModuleComputed("qaqc-edit",w),N.success(r===i&&s?`Previewed ${r} (${_}, ${s} preserved)`:`Updated ${r} in memory (${_}, ${m.size.toLocaleString()} pts)`,a.wellId??void 0)}}async duplicateCurve(e,i,r=!0){const n=e.trim().toUpperCase(),t=i.trim().toUpperCase().replace(/\s+/g,"_");if(!t)throw new Error("Please enter a new curve mnemonic.");if(["DEPTH","DEPT","WELL_NAME","ZONES"].includes(t))throw new Error(`Cannot overwrite reserved column ${t}`);const s=this.curves[n];if(!s)throw new Error(`Source curve ${n} not found.`);const l=[...s];if(this.curves={...this.curves,[t]:l},this.originalCurves={...this.originalCurves,[t]:[...l]},this.stats={...this.stats,[t]:H(l)},a.selectedQaqcCurve=t,r&&a.projectId&&a.wellId){this.isCalculating=!0;try{await A(`/quick_pp/workspace/projects/${encodeURIComponent(a.projectId)}/wells/${encodeURIComponent(a.wellId)}/curve_edit`,{action:"duplicate",curve:n,target_curve:t,save:!0}),this.lastSavedMessage=`Duplicated ${n} → ${t} ✓`,N.success(`Duplicated curve ${n} → ${t}`,a.wellId)}finally{this.isCalculating=!1}}}async renameCurve(e,i,r=!0){const n=e.trim().toUpperCase(),t=i.trim().toUpperCase().replace(/\s+/g,"_");if(!t||t===n)throw new Error("Please enter a different target curve mnemonic.");if(["DEPTH","DEPT","WELL_NAME","ZONES"].includes(n)||["DEPTH","DEPT","WELL_NAME","ZONES"].includes(t))throw new Error("Cannot rename protected depth/zone columns.");const s=this.curves[n];if(!s)throw new Error(`Curve ${n} not found.`);const l={...this.curves,[t]:[...s]};delete l[n],this.curves=l;const u={...this.stats,[t]:this.stats[n]??H(s)};if(delete u[n],this.stats=u,this.originalCurves[n]){const c={...this.originalCurves,[t]:this.originalCurves[n]};delete c[n],this.originalCurves=c}if(a.selectedQaqcCurve=t,r&&a.projectId&&a.wellId){this.isCalculating=!0;try{await A(`/quick_pp/workspace/projects/${encodeURIComponent(a.projectId)}/wells/${encodeURIComponent(a.wellId)}/curve_edit`,{action:"rename",curve:n,target_curve:t,save:!0}),this.lastSavedMessage=`Renamed ${n} → ${t} ✓`,N.success(`Renamed curve ${n} → ${t}`,a.wellId)}finally{this.isCalculating=!1}}}async deleteCurve(e,i=!0){const r=e.trim().toUpperCase();if(["DEPTH","DEPT","WELL_NAME","ZONES"].includes(r))throw new Error(`Cannot delete protected column ${r}`);if(!this.curves[r])return;const n={...this.curves};delete n[r],this.curves=n;const t={...this.stats};if(delete t[r],this.stats=t,a.selectedQaqcCurve===r){const s=Object.keys(n).filter(l=>l!=="DEPT"&&l!=="DEPTH"&&l!=="WELL_NAME"&&l!=="ZONES");a.selectedQaqcCurve=s[0]??"GR"}if(i&&a.projectId&&a.wellId){this.isCalculating=!0;try{await A(`/quick_pp/workspace/projects/${encodeURIComponent(a.projectId)}/wells/${encodeURIComponent(a.wellId)}/curve_edit`,{action:"delete",curve:r,save:!0}),this.lastSavedMessage=`Deleted ${r} ✓`,N.success(`Deleted curve ${r}`,a.wellId)}finally{this.isCalculating=!1}}}commitCurveEditBase(e){const i=e.trim().toUpperCase();!i||!this.curves[i]||(this.committedBaseCurves={...this.committedBaseCurves,[i]:[...this.curves[i]]})}async restoreCurveSnapshot(e,i=!1){const r=e.trim().toUpperCase(),n=r.endsWith("_ORI")?null:`${r}_ORI`,t=(n?this.curves[n]:void 0)??this.originalCurves[r];if(!t)return;const s=this.curves.DEPT??this.curves.DEPTH??[];this.curves={...this.curves,[r]:[...t]},this.committedBaseCurves={...this.committedBaseCurves,[r]:[...t]},this.stats={...this.stats,[r]:H(t)},i&&a.projectId&&a.wellId&&(await A(`/quick_pp/workspace/projects/${encodeURIComponent(a.projectId)}/wells/${encodeURIComponent(a.wellId)}/curve_edit`,{action:"save_values",curve:r,target_curve:r,depths:s,values:t.map(l=>Number.isFinite(l)?l:null),save:!0}),this.lastSavedMessage=`Restored ${r} ✓`),N.info(`Restored original values for ${r}`,a.wellId??void 0)}async saveWellFocusDepth(e,i,r=!0){const n=a.projectId,t=a.wellId,s=typeof e=="number"&&Number.isFinite(e),l=typeof i=="number"&&Number.isFinite(i);if(!s&&!l){a.depthFilter=null,this.config={...this.config,focus_min_depth:null,focus_max_depth:null},n&&t&&typeof window<"u"&&localStorage.removeItem(this.getLocalStorageFocusKey(n,t)),r&&n&&t&&(await A(`/quick_pp/workspace/projects/${encodeURIComponent(n)}/wells/${encodeURIComponent(t)}/config`,{clear_focus_depth:!0}),this.lastSavedMessage="Reset Working Depth ✓",N.info("Reset working depth interval to full well",t));return}const u=this.depthRange,c=s?Number(e):u.min,m=l?Number(i):u.max,E=Number(Math.min(c,m).toFixed(2)),g=Number(Math.max(c,m).toFixed(2));a.depthFilter={min:E,max:g},this.config={...this.config,focus_min_depth:E,focus_max_depth:g},n&&t&&typeof window<"u"&&localStorage.setItem(this.getLocalStorageFocusKey(n,t),JSON.stringify({min:E,max:g})),r&&n&&t&&(await A(`/quick_pp/workspace/projects/${encodeURIComponent(n)}/wells/${encodeURIComponent(t)}/config`,{focus_min_depth:E,focus_max_depth:g}),this.lastSavedMessage=`Working Depth [${E}–${g}m] ✓`,N.success(`Saved working depth interval: ${E.toFixed(1)} – ${g.toFixed(1)} m`,t))}async updateTopDepth(e,i,r=!0){const n=Number(i.toFixed(1)),t=this.tops.find(s=>s.id===e);if(this.tops=this.tops.map(s=>s.id===e?{...s,depth:n}:s).sort((s,l)=>s.depth-l.depth),r&&a.projectId&&a.wellId)try{await ie(a.projectId,a.wellId,"formation_tops","tops",this.tops.map(s=>({name:s.name,depth:s.depth}))),t&&N.success(`Updated formation top ${t.name} → ${n.toFixed(1)} m`,a.wellId)}catch(s){this.lastError=s?.message||"Failed to persist formation top"}}async updateContactDepth(e,i,r=!0){const n=Number(i.toFixed(1)),t=this.contacts.find(s=>s.id===e);if(this.contacts=this.contacts.map(s=>s.id===e?{...s,depth:n}:s),r&&a.projectId&&a.wellId)try{await ie(a.projectId,a.wellId,"fluid_contacts","contacts",this.contacts.map(s=>({name:s.type,depth:s.depth}))),t&&N.success(`Updated fluid contact ${t.type} → ${n.toFixed(1)} m`,a.wellId)}catch(s){this.lastError=s?.message||"Failed to persist fluid contact"}}getReadoutAtDepth(e){if(e===null||!Number.isFinite(e))return{};const i=this.curves.DEPT??this.curves.DEPTH??[];if(i.length===0)return{};let r=0,n=i.length-1;for(;r<n;){const s=r+n>>1;i[s]<e?r=s+1:n=s}r>0&&Math.abs(i[r-1]-e)<Math.abs(i[r]-e)&&(r=r-1);const t={DEPT:i[r]};for(const s of["GR","RT","NPHI","RHOB","VCLAY","VCALC","VDOLO","VSAND","VSILT","PHIT","PHIE","PERM","SWT","SWE"])if(this.curves[s]){const l=this.curves[s][r];t[s]=Number.isFinite(l)?l:null}return t}}const R=new We;class Oe{#e=v(S([]));get projects(){return d(this.#e)}set projects(e){p(this.#e,e,!0)}#t=v(null);get summary(){return d(this.#t)}set summary(e){p(this.#t,e,!0)}#s=v(!1);get isLoading(){return d(this.#s)}set isLoading(e){p(this.#s,e,!0)}#r=v(!1);get isComputingMultiWell(){return d(this.#r)}set isComputingMultiWell(e){p(this.#r,e,!0)}#i=v(null);get error(){return d(this.#i)}set error(e){p(this.#i,e,!0)}#n=v(S({}));get pendingMultiWellModules(){return d(this.#n)}set pendingMultiWellModules(e){p(this.#n,e,!0)}#l=v(S([.5,1.2,2.5,5]));get fziCutoffs(){return d(this.#l)}set fziCutoffs(e){p(this.#l,e,!0)}#o=v(S([]));get selectedWellNames(){return d(this.#o)}set selectedWellNames(e){p(this.#o,e,!0)}#a=v(null);get rockTypingResult(){return d(this.#a)}set rockTypingResult(e){p(this.#a,e,!0)}#u=v(null);get permTransformResult(){return d(this.#u)}set permTransformResult(e){p(this.#u,e,!0)}#c=v(S({model:"leverett_j",unit:"metric",fwl:2500,fwlByZone:{},ift:30,theta:30,gw:1.05,ghc:.8}));get shfParams(){return d(this.#c)}set shfParams(e){p(this.#c,e,!0)}#h=v(null);get shfResult(){return d(this.#h)}set shfResult(e){p(this.#h,e,!0)}#d=v(null);get mlTrainingResult(){return d(this.#d)}set mlTrainingResult(e){p(this.#d,e,!0)}#p=k(()=>this.summary?.wells??[]);get wells(){return d(this.#p)}set wells(e){p(this.#p,e)}#f=k(()=>this.summary?.all_zones??[]);get allZones(){return d(this.#f)}set allZones(e){p(this.#f,e)}#m=k(()=>this.summary?.all_curves??[]);get allCurves(){return d(this.#m)}set allCurves(e){p(this.#m,e)}markMultiWellComputed(e){this.pendingMultiWellModules={...this.pendingMultiWellModules,[e]:!0}}hasPendingMultiWell(e){return!!this.pendingMultiWellModules[e]}async saveMultiWellComputed(e){const i=a.projectId;if(!i||!this.hasPendingMultiWell(e))return!1;let r=[],n=[],t={},s="";if(e==="rock-typing"&&this.rockTypingResult)r=this.rockTypingResult.well_names,n=this.rockTypingResult.depths,t={ROCK_FLAG:this.rockTypingResult.rock_flags.map(l=>l!=null&&Number.isFinite(l)?l:null)},this.rockTypingResult.fzi?.length===n.length&&(t.FZI=this.rockTypingResult.fzi.map(l=>l!=null&&Number.isFinite(l)?l:null)),s="ROCK_FLAG";else if(e==="perm-transform"&&this.permTransformResult)r=this.permTransformResult.well_names,n=this.permTransformResult.depths,t={PERM_TRANS:(this.permTransformResult.perm_pred||[]).map(l=>l!=null&&Number.isFinite(l)?l:null)},s="PERM_TRANS";else if(e==="shf"&&this.shfResult)r=this.shfResult.well_names,n=this.shfResult.depths,t={SHF:(this.shfResult.shf||[]).map(l=>l!=null&&Number.isFinite(l)?l:null)},s="SHF";else return!1;if(r.length===0||n.length===0)return!1;this.isComputingMultiWell=!0,this.error=null;try{const l=await A(`/quick_pp/workspace/projects/${encodeURIComponent(i)}/save_multi_well_computed`,{module:e,well_names:r,depths:n,curves:t});this.pendingMultiWellModules={...this.pendingMultiWellModules,[e]:!1};const u=`Saved ${s} (${l.saved_wells} wells) ✓`;return R.lastSavedMessage=u,N.success(u),!0}catch(l){return this.error=l?.message||`Failed to save ${s} across wells`,!1}finally{this.isComputingMultiWell=!1}}async loadProjects(){try{const{data:e}=await B.GET("/quick_pp/database/projects");return this.projects=Array.isArray(e)?e:[],this.projects}catch(e){return this.error=e?.message||"Failed to load projects",[]}}clearProject(){a.projectId=null,a.wellId=null,this.summary=null,this.selectedWellNames=[],this.pendingMultiWellModules={},this.rockTypingResult=null,this.permTransformResult=null,this.shfResult=null,R.curves={},R.tops=[],R.contacts=[],R.coreSamples=[]}async selectProject(e,i){if(!e)return;const r=String(e),n=a.projectId!==r;a.projectId=r,n&&(this.pendingMultiWellModules={},this.rockTypingResult=null,this.permTransformResult=null,this.shfResult=null),this.isLoading=!0,this.error=null;try{const{data:t,error:s}=await B.GET("/quick_pp/workspace/projects/{project_id}/summary",{params:{path:{project_id:r}}});if(s||!t)throw new Error(String(s?.detail??"Failed to load project summary"));this.summary=t,this.selectedWellNames=(t.wells||[]).map(c=>c.name);const l=t.wells||[];let u=i&&l.some(c=>c.name===i)?i:a.wellId&&l.some(c=>c.name===a.wellId)?a.wellId:l[0]?.name??null;a.wellId=u,u?await R.loadWellBundle(r,u):(R.curves={},R.tops=[],R.contacts=[],R.coreSamples=[],N.info(`Loaded project ${t.name} (0 wells)`))}catch(t){const s=t?.message||"Failed to load project summary";this.error=s,N.error(s)}finally{this.isLoading=!1}}async selectWell(e){!a.projectId||!e||(a.wellId=e,await R.loadWellBundle(a.projectId,e))}async stepWell(e){const i=this.wells;if(i.length===0)return;const r=i.findIndex(t=>t.name===a.wellId),n=r===-1?0:(r+e+i.length)%i.length;await this.selectWell(i[n].name)}async createProject(e,i=""){const{data:r,error:n}=await B.POST("/quick_pp/database/projects",{body:{name:e.trim(),description:i}});if(n||!r)throw new Error(String(n?.detail??"Failed to create project"));return await this.loadProjects(),await this.selectProject(r.project_id),r}async renameProject(e,i,r){const n=i.trim();if(!n)throw new Error("Project name is required");const t={name:n};r!==void 0&&(t.description=r);const s=await ne(`/quick_pp/database/projects/${encodeURIComponent(String(e))}`,t);return await this.loadProjects(),String(a.projectId)===String(e)&&(this.summary?this.summary={...this.summary,name:s.name,description:s.description??this.summary.description}:await this.selectProject(e,a.wellId)),N.success(`Renamed project to "${s.name}"`),s}async deleteProject(e){const i=String(e),r=await le(`/quick_pp/database/projects/${encodeURIComponent(i)}`),n=await this.loadProjects();return N.success(`Deleted project "${r.name||i}"`),String(a.projectId)===i&&(n.length>0?await this.selectProject(n[0].project_id):(a.projectId=null,a.wellId=null,this.summary=null,this.selectedWellNames=[],R.curves={},R.tops=[],R.contacts=[],R.coreSamples=[])),r}async renameWell(e,i){if(!a.projectId)throw new Error("No active project selected");const r=i.trim();if(!r)throw new Error("New well name is required");if(r===e)return;const n=a.projectId,t=await ne(`/quick_pp/database/projects/${encodeURIComponent(n)}/wells/${encodeURIComponent(e)}`,{name:r}),s=t.well_name||r,l=a.wellId===e;return await this.selectProject(n,l?s:a.wellId),N.success(`Renamed well "${e}" → "${s}"`,s),t}async deleteWell(e){if(!a.projectId)throw new Error("No active project selected");const i=a.projectId,r=this.wells.map(s=>s.name),n=r.indexOf(e);let t=a.wellId;if(a.wellId===e){const s=r.filter(l=>l!==e);t=s.length>0?s[Math.min(Math.max(0,n),s.length-1)]:null}await le(`/quick_pp/database/projects/${encodeURIComponent(i)}/wells/${encodeURIComponent(e)}`),await this.selectProject(i,t),N.success(`Deleted well "${e}"`)}async uploadProjectFiles(e){if(!a.projectId||!e||e.length===0)return;const i=Array.from(e),r=N.startTask(`Uploading & parsing ${i.length} log file(s)...`,i.map(t=>t.name).join(", ")),n=new FormData;for(const t of i)n.append("files",t);try{const t=await fetch(`${xe}/quick_pp/database/projects/${a.projectId}/read_las`,{method:"POST",credentials:"include",headers:je(),body:n});if(!t.ok){const s=await t.text();throw new Error(s||"Upload failed")}N.endTask(r,{level:"success",message:`Imported ${i.length} well log file(s)`,detail:i.map(s=>s.name).join(", ")}),await this.selectProject(a.projectId,a.wellId)}catch(t){throw N.endTask(r,{level:"error",message:t?.message||"Well log upload failed"}),t}}}const Qe=new Oe;function Ge(h,e=3,i="—"){if(h==null||h==="")return i;const r=typeof h=="number"?h:Number(h);return Number.isFinite(r)?r.toFixed(e):i}function Ye(h,e="m"){return h==null||!Number.isFinite(h)?"—":`${h.toFixed(1)}${e}`}function Je(h){return h==null||!Number.isFinite(h)?"—":h>=100?h.toFixed(1):h>=1?h.toFixed(2):h.toFixed(4)}function Xe(h){return h.replace(/\r\n/g,`
|
|
2
2
|
`).replace(/\r/g,`
|
|
3
3
|
`).split(`
|
|
4
4
|
`).map(e=>e.split(" ").map(i=>i.trim())).filter(e=>e.some(i=>i.length>0))}function Ke(h,e){const i=h.join(" "),r=e.map(n=>h.map(t=>{const s=n[t];return s==null?"":String(s)}).join(" "));return[i,...r].join(`
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b8 as me,be as wt,o as Ve,d as A,g as T,b as I,j as vt,a7 as ee,bf as Be,bg as yt}from"./B47cw2fH.js";const V=[];function Le(e,t=me){let n=null;const a=new Set;function r(s){if(wt(e,s)&&(e=s,n)){const c=!V.length;for(const l of a)l[1](),V.push(l,e);if(c){for(let l=0;l<V.length;l+=2)V[l][0](V[l+1]);V.length=0}}}function i(s){r(s(e))}function o(s,c=me){const l=[s,c];return a.add(l),a.size===1&&(n=t(r,i)||me),s(e),()=>{a.delete(l),a.size===0&&n&&(n(),n=null)}}return{set:r,update:i,subscribe:o}}class Ue{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Ae{constructor(t,n){this.status=t,this.location=n}}class Te extends Error{constructor(t,n,a){super(a),this.status=t,this.text=n}}new URL("sveltekit-internal://");function bt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function kt(e){return e.split("%25").map(decodeURI).join("%25")}function St(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function we({href:e}){return e.split("#")[0]}function Et(...e){let t=5381;for(const n of e)if(typeof n=="string"){let a=n.length;for(;a;)t=t*33^n.charCodeAt(--a)}else if(ArrayBuffer.isView(n)){const a=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let r=a.length;for(;r;)t=t*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;new TextDecoder;function Rt(e){const t=atob(e),n=new Uint8Array(t.length);for(let a=0;a<t.length;a++)n[a]=t.charCodeAt(a);return n}const xt=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&G.delete(Ie(e)),xt(e,t));const G=new Map;function Lt(e,t){const n=Ie(e,t),a=document.querySelector(n);if(a?.textContent){a.remove();let{body:r,...i}=JSON.parse(a.textContent);const o=a.getAttribute("data-ttl");return o&&G.set(n,{body:r,init:i,ttl:1e3*Number(o)}),a.getAttribute("data-b64")!==null&&(r=Rt(r)),Promise.resolve(new Response(r,i))}return window.fetch(e,t)}function Ut(e,t,n){if(G.size>0){const a=Ie(e,n),r=G.get(a);if(r){if(performance.now()<r.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(r.body,r.init);G.delete(a)}}return window.fetch(t,n)}function Ie(e,t){let a=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const r=[];t.headers&&r.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&r.push(t.body),a+=`[data-hash="${Et(...r)}"]`}return a}const At=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function Tt(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${$t(e).map(a=>{const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(a);if(r)return t.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const i=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(a);if(i)return t.push({name:i[1],matcher:i[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!a)return;const o=a.split(/\[(.+?)\](?!\])/);return"/"+o.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return ve(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return ve(String.fromCharCode(...c.slice(2).split("-").map(m=>parseInt(m,16))));const f=At.exec(c),[,h,w,u,g]=f;return t.push({name:u,matcher:g,optional:!!h,rest:!!w,chained:w?l===1&&o[0]==="":!1}),w?"([^]*?)":h?"([^/]*)?":"([^/]+?)"}return ve(c)}).join("")}).join("")}/?$`),params:t}}function It(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function $t(e){return e.slice(1).split("/").filter(It)}function Ot(e,t,n){const a={},r=e.slice(1),i=r.filter(s=>s!==void 0);let o=0;for(let s=0;s<t.length;s+=1){const c=t[s];let l=r[s-o];if(c.chained&&c.rest&&o&&(l=r.slice(s-o,s+1).filter(f=>f).join("/"),o=0),l===void 0){c.rest&&(a[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){a[c.name]=l;const f=t[s+1],h=r[s+1];f&&!f.rest&&f.optional&&h&&c.chained&&(o=0),!f&&!h&&Object.keys(a).length===i.length&&(o=0);continue}if(c.optional&&c.chained){o++;continue}return}if(!o)return a}function ve(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Pt({nodes:e,server_loads:t,dictionary:n,matchers:a}){const r=new Set(t);return Object.entries(n).map(([s,[c,l,f]])=>{const{pattern:h,params:w}=Tt(s),u={id:s,exec:g=>{const m=h.exec(g);if(m)return Ot(m,w,a)},errors:[1,...f||[]].map(g=>e[g]),layouts:[0,...l||[]].map(o),leaf:i(c)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function i(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function o(s){return s===void 0?s:[r.has(s),e[s]]}}function Je(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Ke(e,t,n=JSON.stringify){const a=n(t);try{sessionStorage[e]=a}catch{}}const L=globalThis.__sveltekit_1b7zqz8?.base??"",Ct=globalThis.__sveltekit_1b7zqz8?.assets??L??"",jt="1792678430424",Xe="sveltekit:snapshot",Qe="sveltekit:scroll",$e="sveltekit:states",Ze="sveltekit:pageurl",N="sveltekit:history",M="sveltekit:navigation",j={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},le=location.origin;function ue(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function fe(){return{x:pageXOffset,y:pageYOffset}}function B(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Me={...j,"":j.hover};function et(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function tt(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=et(e)}}function ke(e,t,n){let a;try{if(a=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&a.hash.match(/^#[^/]/)){const s=location.hash.split("#")[1]||"/";a.hash=`#${s}${a.hash}`}}catch{}const r=e instanceof SVGAElement?e.target.baseVal:e.target,i=!a||!!r||de(a,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=a?.origin===le&&e.hasAttribute("download");return{url:a,external:i,target:r,download:o}}function te(e){let t=null,n=null,a=null,r=null,i=null,o=null,s=e;for(;s&&s!==document.documentElement;)a===null&&(a=B(s,"preload-code")),r===null&&(r=B(s,"preload-data")),t===null&&(t=B(s,"keepfocus")),n===null&&(n=B(s,"noscroll")),i===null&&(i=B(s,"reload")),o===null&&(o=B(s,"replacestate")),s=et(s);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Me[a??"off"],preload_data:Me[r??"off"],keepfocus:c(t),noscroll:c(n),reload:c(i),replace_state:c(o)}}function Fe(e){const t=Le(e);let n=!0;function a(){n=!0,t.update(o=>o)}function r(o){n=!1,t.set(o)}function i(o){let s;return t.subscribe(c=>{(s===void 0||n&&c!==s)&&o(s=c)})}return{notify:a,set:r,subscribe:i}}const nt={v:()=>{}};function qt(){const{set:e,subscribe:t}=Le(!1);let n;async function a(){clearTimeout(n);try{const r=await fetch(`${Ct}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const o=(await r.json()).version!==jt;return o&&(e(!0),nt.v(),clearTimeout(n)),o}catch{return!1}}return{subscribe:t,check:a}}function de(e,t,n){return e.origin!==le||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function un(e){}const at=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...at];const Nt=new Set([...at]);[...Nt];function zt(e){return e.filter(t=>t!=null)}function Oe(e){return e instanceof Ue||e instanceof Te?e.status:500}function Dt(e){return e instanceof Te?e.text:"Internal Error"}let b,Y,ye;const Vt=Ve.toString().includes("$$")||/function \w+\(\) \{\}/.test(Ve.toString());Vt?(b={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},Y={current:null},ye={current:!1}):(b=new class{#e=A({});get data(){return T(this.#e)}set data(t){I(this.#e,t)}#t=A(null);get form(){return T(this.#t)}set form(t){I(this.#t,t)}#n=A(null);get error(){return T(this.#n)}set error(t){I(this.#n,t)}#a=A({});get params(){return T(this.#a)}set params(t){I(this.#a,t)}#r=A({id:null});get route(){return T(this.#r)}set route(t){I(this.#r,t)}#o=A({});get state(){return T(this.#o)}set state(t){I(this.#o,t)}#s=A(-1);get status(){return T(this.#s)}set status(t){I(this.#s,t)}#i=A(new URL("https://example.com"));get url(){return T(this.#i)}set url(t){I(this.#i,t)}},Y=new class{#e=A(null);get current(){return T(this.#e)}set current(t){I(this.#e,t)}},ye=new class{#e=A(!1);get current(){return T(this.#e)}set current(t){I(this.#e,t)}},nt.v=()=>ye.current=!0);function rt(e){Object.assign(b,e)}const Bt=vt??(e=>e()),Kt=new Set(["icon","shortcut icon","apple-touch-icon"]),z=Je(Qe)??{},H=Je(Xe)??{},C={url:Fe({}),page:Fe({}),navigating:Le(null),updated:qt()};function Pe(e){z[e]=fe()}function Mt(e,t){let n=e+1;for(;z[n];)delete z[n],n+=1;for(n=t+1;H[n];)delete H[n],n+=1}function J(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function ot(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(L||"/");e&&await e.update()}}function Ge(){}let Ce,Se,ne,$,Ee,v;const ae=[],re=[];let R=null;function Re(){R?.fork?.then(e=>e?.discard()),R=null}const Z=new Map,st=new Set,Ft=new Set,W=new Set;let _={branch:[],error:null,url:null},it=!1,oe=!1,We=!0,X=!1,F=!1,ct=!1,je=!1,he,y,x,q;const se=new Set,Ye=new Map;async function pn(e,t,n){globalThis.__sveltekit_1b7zqz8?.data&&globalThis.__sveltekit_1b7zqz8.data,document.URL!==location.href&&(location.href=location.href),v=e,await e.hooks.init?.(),Ce=Pt(e),$=document.documentElement,Ee=t,Se=e.nodes[0],ne=e.nodes[1],Se(),ne(),y=history.state?.[N],x=history.state?.[M],y||(y=x=Date.now(),history.replaceState({...history.state,[N]:y,[M]:x},""));const a=z[y];function r(){a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y))}n?(r(),await rn(Ee,n)):(await K({type:"enter",url:ue(v.hash?cn(new URL(location.href)):location.href),replace_state:!0}),r()),an()}function Gt(){ae.length=0,je=!1}function lt(e){re.some(t=>t?.snapshot)&&(H[e]=re.map(t=>t?.snapshot?.capture()))}function ut(e){H[e]?.forEach((t,n)=>{re[n]?.snapshot?.restore(t)})}function He(){Pe(y),Ke(Qe,z),lt(x),Ke(Xe,H)}async function ft(e,t,n,a){let r;t.invalidateAll&&Re(),await K({type:"goto",url:ue(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:a,accept:()=>{t.invalidateAll&&(je=!0,r=[...Ye.keys()]),t.invalidate&&t.invalidate.forEach(nn)}}),t.invalidateAll&&ee().then(ee).then(()=>{Ye.forEach(({resource:i},o)=>{r?.includes(o)&&i.refresh?.()})})}async function Wt(e){if(e.id!==R?.id){Re();const t={};if(se.add(t),R={id:e.id,token:t,promise:ht({...e,preload:t}).then(n=>(se.delete(t),n.type==="loaded"&&n.state.error&&Re(),n)),fork:null},Be){const n=R;n.fork=n.promise.then(a=>{if(n===R&&a.type==="loaded")try{return Be(()=>{he.$set(a.props),rt(a.props.page)})}catch{}return null})}}return R.promise}async function be(e){const t=(await pe(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}async function dt(e,t,n){_=e.state;const a=document.querySelector("style[data-sveltekit]");if(a&&a.remove(),Object.assign(b,e.props.page),he=new v.root({target:t,props:{...e.props,stores:C,components:re},hydrate:n,sync:!1}),await Promise.resolve(),ut(x),n){const r={from:null,to:{params:_.params,route:{id:_.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};W.forEach(i=>i(r))}oe=!0}function ie({url:e,params:t,branch:n,status:a,error:r,route:i,form:o}){let s="never";if(L&&(e.pathname===L||e.pathname===L+"/"))s="always";else for(const u of n)u?.slash!==void 0&&(s=u.slash);e.pathname=bt(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:r,route:i},props:{constructors:zt(n).map(u=>u.node.component),page:ge(b)}};o!==void 0&&(c.props.form=o);let l={},f=!b,h=0;for(let u=0;u<Math.max(n.length,_.branch.length);u+=1){const g=n[u],m=_.branch[u];g?.data!==m?.data&&(f=!0),g&&(l={...l,...g.data},f&&(c.props[`data_${h}`]=l),h+=1)}return(!_.url||e.href!==_.url.href||_.error!==r||o!==void 0&&o!==b.form||f)&&(c.props.page={error:r,params:t,route:{id:i?.id??null},state:{},status:a,url:new URL(e),form:o??null,data:f?l:b.data}),c}async function qe({loader:e,parent:t,url:n,params:a,route:r,server_data_node:i}){let o=null;const s={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await e();return{node:c,loader:e,server:i,universal:c.universal?.load?{type:"data",data:o,uses:s}:null,data:o??i?.data??null,slash:c.universal?.trailingSlash??i?.slash}}function Yt(e,t,n){let a=e instanceof Request?e.url:e;const r=new URL(a,n);r.origin===n.origin&&(a=r.href.slice(n.origin.length));const i=oe?Ut(a,r.href,t):Lt(a,t);return{resolved:r,promise:i}}function Ht(e,t,n,a,r,i){if(je)return!0;if(!r)return!1;if(r.parent&&e||r.route&&t||r.url&&n)return!0;for(const o of r.search_params)if(a.has(o))return!0;for(const o of r.params)if(i[o]!==_.params[o])return!0;for(const o of r.dependencies)if(ae.some(s=>s(new URL(o))))return!0;return!1}function Ne(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Jt(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const a of n){const r=e.searchParams.getAll(a),i=t.searchParams.getAll(a);r.every(o=>i.includes(o))&&i.every(o=>r.includes(o))&&n.delete(a)}return n}function Xt({error:e,url:t,route:n,params:a}){return{type:"loaded",state:{error:e,url:t,route:n,params:a,branch:[]},props:{page:ge(b),constructors:[]}}}async function ht({id:e,invalidating:t,url:n,params:a,route:r,preload:i}){if(R?.id===e)return se.delete(R.token),R.promise;const{errors:o,layouts:s,leaf:c}=r,l=[...s,c];o.forEach(p=>p?.().catch(()=>{})),l.forEach(p=>p?.[1]().catch(()=>{}));const f=_.url?e!==ce(_.url):!1,h=_.route?r.id!==_.route.id:!1,w=Jt(_.url,n);let u=!1;const g=l.map(async(p,d)=>{if(!p)return;const S=_.branch[d];return p[1]===S?.loader&&!Ht(u,h,f,w,S.universal?.uses,a)?S:(u=!0,qe({loader:p[1],url:n,params:a,route:r,parent:async()=>{const O={};for(let U=0;U<d;U+=1)Object.assign(O,(await g[U])?.data);return O},server_data_node:Ne(p[0]?{type:"skip"}:null,p[0]?S?.server:void 0)}))});for(const p of g)p.catch(()=>{});const m=[];for(let p=0;p<l.length;p+=1)if(l[p])try{m.push(await g[p])}catch(d){if(d instanceof Ae)return{type:"redirect",location:d.location};if(se.has(i))return Xt({error:await Q(d,{params:a,url:n,route:{id:r.id}}),url:n,params:a,route:r});let S=Oe(d),E;if(d instanceof Ue)E=d.body;else{if(await C.updated.check())return await ot(),await J(n);E=await Q(d,{params:a,url:n,route:{id:r.id}})}const O=await Qt(p,m,o);return O?ie({url:n,params:a,branch:m.slice(0,O.idx).concat(O.node),status:S,error:E,route:r}):await gt(n,{id:r.id},E,S)}else m.push(void 0);return ie({url:n,params:a,branch:m,status:200,error:null,route:r,form:t?void 0:null})}async function Qt(e,t,n){for(;e--;)if(n[e]){let a=e;for(;!t[a];)a-=1;try{return{idx:a+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function ze({status:e,error:t,url:n,route:a}){const r={};let i=null;try{const o=await qe({loader:Se,url:n,params:r,route:a,parent:()=>Promise.resolve({}),server_data_node:Ne(i)}),s={node:await ne(),loader:ne,universal:null,server:null,data:null};return ie({url:n,params:r,branch:[o,s],status:e,error:t,route:null})}catch(o){if(o instanceof Ae)return ft(new URL(o.location,location.href),{},0);throw o}}async function Zt(e){const t=e.href;if(Z.has(t))return Z.get(t);let n;try{const a=(async()=>{let r=await v.hooks.reroute({url:new URL(e),fetch:async(i,o)=>Yt(i,o,e).promise})??e;if(typeof r=="string"){const i=new URL(e);v.hash?i.hash=r:i.pathname=r,r=i}return r})();Z.set(t,a),n=await a}catch{Z.delete(t);return}return n}async function pe(e,t){if(e&&!de(e,L,v.hash)){const n=await Zt(e);if(!n)return;const a=en(n);for(const r of Ce){const i=r.exec(a);if(i)return{id:ce(e),invalidating:t,route:r,params:St(i),url:e}}}}function en(e){return kt(v.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(L.length))||"/"}function ce(e){return(v.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function pt({url:e,type:t,intent:n,delta:a,event:r}){let i=!1;const o=De(_,n,e,t);a!==void 0&&(o.navigation.delta=a),r!==void 0&&(o.navigation.event=r);const s={...o.navigation,cancel:()=>{i=!0,o.reject(new Error("navigation cancelled"))}};return X||st.forEach(c=>c(s)),i?null:o}async function K({type:e,url:t,popped:n,keepfocus:a,noscroll:r,replace_state:i,state:o={},redirect_count:s=0,nav_token:c={},accept:l=Ge,block:f=Ge,event:h}){const w=q;q=c;const u=await pe(t,!1),g=e==="enter"?De(_,u,t,e):pt({url:t,type:e,delta:n?.delta,intent:u,event:h});if(!g){f(),q===c&&(q=w);return}const m=y,p=x;l(),X=!0,oe&&g.navigation.type!=="enter"&&C.navigating.set(Y.current=g.navigation);let d=u&&await ht(u);if(!d){if(de(t,L,v.hash))return await J(t,i);d=await gt(t,{id:null},await Q(new Te(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,i)}if(t=u?.url||t,q!==c)return g.reject(new Error("navigation aborted")),!1;if(d.type==="redirect"){if(s<20){await K({type:e,url:new URL(d.location,t),popped:n,keepfocus:a,noscroll:r,replace_state:i,state:o,redirect_count:s+1,nav_token:c}),g.fulfil(void 0);return}d=await ze({status:500,error:await Q(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else d.props.page.status>=400&&await C.updated.check()&&(await ot(),await J(t,i));if(Gt(),Pe(m),lt(p),d.props.page.url.pathname!==t.pathname&&(t.pathname=d.props.page.url.pathname),o=n?n.state:o,!n){const k=i?0:1,D={[N]:y+=k,[M]:x+=k,[$e]:o};(i?history.replaceState:history.pushState).call(history,D,"",t),i||Mt(y,x)}const S=u&&R?.id===u.id?R.fork:null;R=null,d.props.page.state=o;let E;if(oe){const k=(await Promise.all(Array.from(Ft,P=>P(g.navigation)))).filter(P=>typeof P=="function");if(k.length>0){let P=function(){k.forEach(_e=>{W.delete(_e)})};k.push(P),k.forEach(_e=>{W.add(_e)})}_=d.state,d.props.page&&(d.props.page.url=t);const D=S&&await S;D?E=D.commit():(he.$set(d.props),rt(d.props.page),E=yt?.()),ct=!0}else await dt(d,Ee,!1);const{activeElement:O}=document;await E,await ee(),await ee();let U=n?n.scroll:r?fe():null;if(We){const k=t.hash&&document.getElementById(_t(t));if(U)scrollTo(U.x,U.y);else if(k){k.scrollIntoView();const{top:D,left:P}=k.getBoundingClientRect();U={x:pageXOffset+P,y:pageYOffset+D}}else scrollTo(0,0)}const mt=document.activeElement!==O&&document.activeElement!==document.body;!a&&!mt&&sn(t,U),We=!0,d.props.page&&Object.assign(b,d.props.page),X=!1,e==="popstate"&&ut(x),g.fulfil(void 0),W.forEach(k=>k(g.navigation)),C.navigating.set(Y.current=null)}async function gt(e,t,n,a,r){return e.origin===le&&e.pathname===location.pathname&&!it?await ze({status:a,error:n,url:e,route:t}):await J(e,r)}function tn(){let e,t,n;$.addEventListener("mousemove",s=>{const c=s.target;clearTimeout(e),e=setTimeout(()=>{i(c,j.hover)},20)});function a(s){s.defaultPrevented||i(s.composedPath()[0],j.tap)}$.addEventListener("mousedown",a),$.addEventListener("touchstart",a,{passive:!0});const r=new IntersectionObserver(s=>{for(const c of s)c.isIntersecting&&(be(new URL(c.target.href)),r.unobserve(c.target))},{threshold:0});async function i(s,c){const l=tt(s,$),f=l===t&&c>=n;if(!l||f)return;const{url:h,external:w,download:u}=ke(l,L,v.hash);if(w||u)return;const g=te(l),m=h&&ce(_.url)===ce(h);if(!(g.reload||m))if(c<=g.preload_data){t=l,n=j.tap;const p=await pe(h,!1);if(!p)return;Wt(p)}else c<=g.preload_code&&(t=l,n=c,be(h))}function o(){r.disconnect();for(const s of $.querySelectorAll("a")){const{url:c,external:l,download:f}=ke(s,L,v.hash);if(l||f)continue;const h=te(s);h.reload||(h.preload_code===j.viewport&&r.observe(s),h.preload_code===j.eager&&be(c))}}W.add(o),o()}function Q(e,t){if(e instanceof Ue)return e.body;const n=Oe(e),a=Dt(e);return v.hooks.handleError({error:e,event:t,status:n,message:a})??{message:a}}function gn(e,t={}){return e=new URL(ue(e)),e.origin!==le?Promise.reject(new Error("goto: invalid URL")):ft(e,t,0)}function nn(e){if(typeof e=="function")ae.push(e);else{const{href:t}=new URL(e,location.href);ae.push(n=>n.href===t)}}function _n(e,t){const n={[N]:y,[M]:x,[Ze]:b.url.href,[$e]:t};history.replaceState(n,"",ue(e)),b.state=t,he.$set({page:Bt(()=>ge(b))})}function an(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(He(),!X){const a=De(_,void 0,null,"leave"),r={...a.navigation,cancel:()=>{n=!0,a.reject(new Error("navigation cancelled"))}};st.forEach(i=>i(r))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&He()}),navigator.connection?.saveData||tn(),$.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=tt(t.composedPath()[0],$);if(!n)return;const{url:a,external:r,target:i,download:o}=ke(n,L,v.hash);if(!a)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const s=te(n);if(!(n instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||o)return;const[l,f]=(v.hash?a.hash.replace(/^#/,""):a.href).split("#"),h=l===we(location);if(r||s.reload&&(!h||!f)){pt({url:a,type:"link",event:t})?X=!0:t.preventDefault();return}if(f!==void 0&&h){const[,w]=_.url.href.split("#");if(w===f){if(t.preventDefault(),f===""||f==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const u=n.ownerDocument.getElementById(decodeURIComponent(f));u&&(u.scrollIntoView(),u.focus())}return}if(F=!0,Pe(y),e(a),!s.replace_state)return;F=!1}t.preventDefault(),await new Promise(w=>{requestAnimationFrame(()=>{setTimeout(w,0)}),setTimeout(w,100)}),await K({type:"link",url:a,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??a.href===location.href,event:t})}),$.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),a=t.submitter;if((a?.formTarget||n.target)==="_blank"||(a?.formMethod||n.method)!=="get")return;const o=new URL(a?.hasAttribute("formaction")&&a?.formAction||n.action);if(de(o,L,!1))return;const s=t.target,c=te(s);if(c.reload)return;t.preventDefault(),t.stopPropagation();const l=new FormData(s,a);o.search=new URLSearchParams(l).toString(),K({type:"form",url:o,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??o.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!xe){if(t.state?.[N]){const n=t.state[N];if(q={},n===y)return;const a=z[n],r=t.state[$e]??{},i=new URL(t.state[Ze]??location.href),o=t.state[M],s=_.url?we(location)===we(_.url):!1;if(o===x&&(ct||s)){r!==b.state&&(b.state=r),e(i),z[y]=fe(),a&&scrollTo(a.x,a.y),y=n;return}const l=n-y;await K({type:"popstate",url:i,popped:{state:r,scroll:a,delta:l},accept:()=>{y=n,x=o},block:()=>{history.go(-l)},nav_token:q,event:t})}else if(!F){const n=new URL(location.href);e(n),v.hash&&location.reload()}}}),addEventListener("hashchange",()=>{F&&(F=!1,history.replaceState({...history.state,[N]:++y,[M]:x},"",location.href))});for(const t of document.querySelectorAll("link"))Kt.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&C.navigating.set(Y.current=null)});function e(t){_.url=b.url=t,C.page.set(ge(b)),C.page.notify()}}async function rn(e,{status:t=200,error:n,node_ids:a,params:r,route:i,server_route:o,data:s,form:c}){it=!0;const l=new URL(location.href);let f;({params:r={},route:i={id:null}}=await pe(l,!1)||{}),f=Ce.find(({id:u})=>u===i.id);let h,w=!0;try{const u=a.map(async(m,p)=>{const d=s[p];return d?.uses&&(d.uses=on(d.uses)),qe({loader:v.nodes[m],url:l,params:r,route:i,parent:async()=>{const S={};for(let E=0;E<p;E+=1)Object.assign(S,(await u[E]).data);return S},server_data_node:Ne(d)})}),g=await Promise.all(u);if(f){const m=f.layouts;for(let p=0;p<m.length;p++)m[p]||g.splice(p,0,void 0)}h=ie({url:l,params:r,branch:g,status:t,error:n,form:c,route:f??null})}catch(u){if(u instanceof Ae){await J(new URL(u.location,location.href));return}h=await ze({status:Oe(u),error:await Q(u,{url:l,params:r,route:i}),url:l,route:i}),e.textContent="",w=!1}h.props.page&&(h.props.page.state={}),await dt(h,e,w)}function on(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let xe=!1;function sn(e,t=null){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const a=_t(e);if(a&&document.getElementById(a)){const{x:i,y:o}=t??fe();setTimeout(()=>{const s=history.state;xe=!0,location.replace(`#${a}`),v.hash&&location.replace(e.hash),history.replaceState(s,"",e.hash),scrollTo(i,o),xe=!1})}else{const i=document.body,o=i.getAttribute("tabindex");i.tabIndex=-1,i.focus({preventScroll:!0,focusVisible:!1}),o!==null?i.setAttribute("tabindex",o):i.removeAttribute("tabindex")}const r=getSelection();if(r&&r.type!=="None"){const i=[];for(let o=0;o<r.rangeCount;o+=1)i.push(r.getRangeAt(o));setTimeout(()=>{if(r.rangeCount===i.length){for(let o=0;o<r.rangeCount;o+=1){const s=i[o],c=r.getRangeAt(o);if(s.commonAncestorContainer!==c.commonAncestorContainer||s.startContainer!==c.startContainer||s.endContainer!==c.endContainer||s.startOffset!==c.startOffset||s.endOffset!==c.endOffset)return}r.removeAllRanges()}})}}}function De(e,t,n,a){let r,i;const o=new Promise((c,l)=>{r=c,i=l});return o.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n},willUnload:!t,type:a,complete:o},fulfil:r,reject:i}}function ge(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function cn(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function _t(e){let t;if(v.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{pn as a,gn as g,un as l,b as p,_n as r,C as s};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{aO as
|
|
2
|
-
\r\f \v\uFEFF`];function dt(e,t,r){var s=e==null?"":""+e;if(t&&(s=s?s+" "+t:t),r){for(var n in r)if(r[n])s=s?s+" "+n:n;else if(s.length)for(var i=n.length,a=0;(a=s.indexOf(n,a))>=0;){var o=a+i;(a===0||Se.includes(s[a-1]))&&(o===s.length||Se.includes(s[o]))?s=(a===0?"":s.substring(0,a))+s.substring(o+1):a=o}}return s===""?null:s}function $e(e,t=!1){var r=t?" !important;":";",s="";for(var n in e){var i=e[n];i!=null&&i!==""&&(s+=" "+n+": "+i+r)}return s}function le(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function ft(e,t){if(t){var r="",s,n;if(Array.isArray(t)?(s=t[0],n=t[1]):s=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var i=!1,a=0,o=!1,c=[];s&&c.push(...Object.keys(s).map(le)),n&&c.push(...Object.keys(n).map(le));var d=0,S=-1;const R=e.length;for(var f=0;f<R;f++){var l=e[f];if(o?l==="/"&&e[f-1]==="*"&&(o=!1):i?i===l&&(i=!1):l==="/"&&e[f+1]==="*"?o=!0:l==='"'||l==="'"?i=l:l==="("?a++:l===")"&&a--,!o&&i===!1&&a===0){if(l===":"&&S===-1)S=f;else if(l===";"||f===R-1){if(S!==-1){var u=le(e.substring(d,S).trim());if(!c.includes(u)){l!==";"&&f++;var m=e.substring(d,f).trim();r+=" "+m+";"}}d=f+1,S=-1}}}}return s&&(r+=$e(s)),n&&(r+=$e(n,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function ht(e,t,r,s,n,i){var a=e.__className;if(M||a!==r||a===void 0){var o=dt(r,s,i);(!M||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):t?e.className=o:e.setAttribute("class",o)),e.__className=r}else if(i&&n!==i)for(var c in i){var d=!!i[c];(n==null||d!==!!n[c])&&e.classList.toggle(c,d)}return i}function ue(e,t={},r,s){for(var n in r){var i=r[n];t[n]!==i&&(r[n]==null?e.style.removeProperty(n):e.style.setProperty(n,i,s))}}function pt(e,t,r,s){var n=e.__style;if(M||n!==t){var i=ft(t,s);(!M||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}else s&&(Array.isArray(s)?(ue(e,r?.[0],s[0]),ue(e,r?.[1],s[1],"important")):ue(e,r,s));return s}function re(e,t,r=!1){if(e.multiple){if(t==null)return;if(!Fe(t))return Be();for(var s of e.options)s.selected=t.includes(Y(s));return}for(s of e.options){var n=Y(s);if(Ge(n,t)){s.selected=!0;return}}(!r||t!==void 0)&&(e.selectedIndex=-1)}function Ie(e){var t=new MutationObserver(()=>{re(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Ne(()=>{t.disconnect()})}function Wt(e,t,r=t){var s=new WeakSet,n=!0;ge(e,"change",i=>{var a=i?"[selected]":":checked",o;if(e.multiple)o=[].map.call(e.querySelectorAll(a),Y);else{var c=e.querySelector(a)??e.querySelector("option:not([disabled])");o=c&&Y(c)}r(o),W!==null&&s.add(W)}),ve(()=>{var i=t();if(e===document.activeElement){var a=je??W;if(s.has(a))return}if(re(e,i,n),n&&i===void 0){var o=e.querySelector(":checked");o!==null&&(i=Y(o),r(i))}e.__value=i,n=!1}),Ie(e)}function Y(e){return"__value"in e?e.__value:e.value}const G=Symbol("class"),V=Symbol("style"),Oe=Symbol("is custom element"),Le=Symbol("is html");function vt(e){if(M){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var s=e.value;se(e,"value",null),e.value=s}if(e.hasAttribute("checked")){var n=e.checked;se(e,"checked",null),e.checked=n}}};e.__on_r=r,Je(r),Ke()}}function qt(e,t){var r=ie(e);r.value===(r.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!=="PROGRESS")||(e.value=t??"")}function Dt(e,t){var r=ie(e);r.checked!==(r.checked=t??void 0)&&(e.checked=t)}function gt(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function se(e,t,r,s){var n=ie(e);M&&(n[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||n[t]!==(n[t]=r)&&(t==="loading"&&(e[et]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Ue(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function mt(e,t,r,s,n=!1,i=!1){if(M&&n&&e.tagName==="INPUT"){var a=e,o=a.type==="checkbox"?"defaultChecked":"defaultValue";o in r||vt(a)}var c=ie(e),d=c[Oe],S=!c[Le];let f=M&&d;f&&be(!1);var l=t||{},u=e.tagName==="OPTION";for(var m in t)m in r||(r[m]=null);r.class?r.class=ct(r.class):r[G]&&(r.class=null),r[V]&&(r.style??=null);var R=Ue(e);for(const h in r){let v=r[h];if(u&&h==="value"&&v==null){e.value=e.__value="",l[h]=v;continue}if(h==="class"){var I=e.namespaceURI==="http://www.w3.org/1999/xhtml";ht(e,I,v,s,t?.[G],r[G]),l[h]=v,l[G]=r[G];continue}if(h==="style"){pt(e,v,t?.[V],r[V]),l[h]=v,l[V]=r[V];continue}var $=l[h];if(!(v===$&&!(v===void 0&&e.hasAttribute(h)))){l[h]=v;var P=h[0]+h[1];if(P!=="$$")if(P==="on"){const _={},C="$$"+h;let b=h.slice(2);var O=ot(b);if(st(b)&&(b=b.slice(0,-7),_.capture=!0),!O&&$){if(v!=null)continue;e.removeEventListener(b,l[C],_),l[C]=null}if(v!=null)if(O)e[`__${b}`]=v,nt([b]);else{let F=function(Z){l[h].call(this,Z)};l[C]=it(b,e,F,_)}else O&&(e[`__${b}`]=void 0)}else if(h==="style")se(e,h,v);else if(h==="autofocus")Ze(e,!!v);else if(!d&&(h==="__value"||h==="value"&&v!=null))e.value=e.__value=v;else if(h==="selected"&&u)gt(e,v);else{var y=h;S||(y=at(y));var N=y==="defaultValue"||y==="defaultChecked";if(v==null&&!d&&!N)if(c[h]=null,y==="value"||y==="checked"){let _=e;const C=t===void 0;if(y==="value"){let b=_.defaultValue;_.removeAttribute(y),_.defaultValue=b,_.value=_.__value=C?b:null}else{let b=_.defaultChecked;_.removeAttribute(y),_.defaultChecked=b,_.checked=C?b:!1}}else e.removeAttribute(h);else N||R.includes(y)&&(d||typeof v!="string")?(e[y]=v,y in c&&(c[y]=Xe)):typeof v!="function"&&se(e,y,v)}}}return f&&be(!0),l}function zt(e,t,r=[],s=[],n=[],i,a=!1,o=!1){Qe(n,r,s,c=>{var d=void 0,S={},f=e.nodeName==="SELECT",l=!1;if(Ce(()=>{var m=t(...c.map(p)),R=mt(e,d,m,i,a,o);l&&f&&"value"in m&&re(e,m.value);for(let $ of Object.getOwnPropertySymbols(S))m[$]||he(S[$]);for(let $ of Object.getOwnPropertySymbols(m)){var I=m[$];$.description===Ye&&(!d||I!==d[$])&&(S[$]&&he(S[$]),S[$]=Ee(()=>lt(e,()=>I))),R[$]=I}d=R}),f){var u=e;ve(()=>{re(u,d.value,!0),Ie(u)})}l=!0})}function ie(e){return e.__attributes??={[Oe]:e.nodeName.includes("-"),[Le]:e.namespaceURI===Ve}}var _e=new Map;function Ue(e){var t=e.getAttribute("is")||e.nodeName,r=_e.get(t);if(r)return r;_e.set(t,r=[]);for(var s,n=e,i=Element.prototype;i!==n;){s=tt(n);for(var a in s)s[a].set&&r.push(a);n=xe(n)}return r}function Ht(e,t,r=t){var s=new WeakSet;ge(e,"input",async n=>{var i=n?e.defaultValue:e.value;if(i=ce(e)?de(i):i,r(i),W!==null&&s.add(W),await rt(),i!==(i=t())){var a=e.selectionStart,o=e.selectionEnd,c=e.value.length;if(e.value=i??"",o!==null){var d=e.value.length;a===o&&o===c&&d>c?(e.selectionStart=d,e.selectionEnd=d):(e.selectionStart=a,e.selectionEnd=Math.min(o,d))}}}),(M&&e.defaultValue!==e.value||Q(t)==null&&e.value)&&(r(ce(e)?de(e.value):e.value),W!==null&&s.add(W)),Me(()=>{var n=t();if(e===document.activeElement){var i=je??W;if(s.has(i))return}ce(e)&&n===de(e.value)||e.type==="date"&&!n&&!e.value||n!==e.value&&(e.value=n??"")})}function Nt(e,t,r=t){ge(e,"change",s=>{var n=s?e.defaultChecked:e.checked;r(n)}),(M&&e.defaultChecked!==e.checked||Q(t)==null)&&r(e.checked),Me(()=>{var s=t();e.checked=!!s})}function ce(e){var t=e.type;return t==="number"||t==="range"}function de(e){return e===""?null:+e}const yt=/\{[^{}]+\}/g,bt=()=>typeof process=="object"&&Number.parseInt(process?.versions?.node?.substring(0,2))>=18&&process.versions.undici;function wt(){return Math.random().toString(36).slice(2,11)}function kt(e){let{baseUrl:t="",Request:r=globalThis.Request,fetch:s=globalThis.fetch,querySerializer:n,bodySerializer:i,pathSerializer:a,headers:o,requestInitExt:c=void 0,...d}={...e};c=bt()?c:void 0,t=Re(t);const S=[];async function f(l,u){const{baseUrl:m,fetch:R=s,Request:I=r,headers:$,params:P={},parseAs:O="json",querySerializer:y,bodySerializer:N=i??$t,pathSerializer:h,body:v,middleware:_=[],...C}=u||{};let b=t;m&&(b=Re(m)??t);let F=typeof n=="function"?n:Te(n);y&&(F=typeof y=="function"?y:Te({...typeof n=="object"?n:{},...y}));const Z=h||a||St,ae=v===void 0?void 0:N(v,Ae(o,$,P.header)),ze=Ae(ae===void 0||ae instanceof FormData?{}:{"Content-Type":"application/json"},o,$,P.header),L=[...S,..._],He={redirect:"follow",...d,...C,body:ae,headers:ze};let X,x,U=new I(_t(l,{baseUrl:b,params:P,querySerializer:F,pathSerializer:Z}),He),w;for(const T in C)T in U||(U[T]=C[T]);if(L.length){X=wt(),x=Object.freeze({baseUrl:b,fetch:R,parseAs:O,querySerializer:F,bodySerializer:N,pathSerializer:Z});for(const T of L)if(T&&typeof T=="object"&&typeof T.onRequest=="function"){const k=await T.onRequest({request:U,schemaPath:l,params:P,options:x,id:X});if(k)if(k instanceof I)U=k;else if(k instanceof Response){w=k;break}else throw new Error("onRequest: must return new Request() or Response() when modifying the request")}}if(!w){try{w=await R(U,c)}catch(T){let k=T;if(L.length)for(let q=L.length-1;q>=0;q--){const ee=L[q];if(ee&&typeof ee=="object"&&typeof ee.onError=="function"){const B=await ee.onError({request:U,error:k,schemaPath:l,params:P,options:x,id:X});if(B){if(B instanceof Response){k=void 0,w=B;break}if(B instanceof Error){k=B;continue}throw new Error("onError: must return new Response() or instance of Error")}}}if(k)throw k}if(L.length)for(let T=L.length-1;T>=0;T--){const k=L[T];if(k&&typeof k=="object"&&typeof k.onResponse=="function"){const q=await k.onResponse({request:U,response:w,schemaPath:l,params:P,options:x,id:X});if(q){if(!(q instanceof Response))throw new Error("onResponse: must return new Response() when modifying the response");w=q}}}}const ye=w.headers.get("Content-Length");if(w.status===204||U.method==="HEAD"||ye==="0"&&!w.headers.get("Transfer-Encoding")?.includes("chunked"))return w.ok?{data:void 0,response:w}:{error:void 0,response:w};if(w.ok)return{data:await(async()=>{if(O==="stream")return w.body;if(O==="json"&&!ye){const k=await w.text();return k?JSON.parse(k):void 0}return await w[O]()})(),response:w};let oe=await w.text();try{oe=JSON.parse(oe)}catch{}return{error:oe,response:w}}return{request(l,u,m){return f(u,{...m,method:l.toUpperCase()})},GET(l,u){return f(l,{...u,method:"GET"})},PUT(l,u){return f(l,{...u,method:"PUT"})},POST(l,u){return f(l,{...u,method:"POST"})},DELETE(l,u){return f(l,{...u,method:"DELETE"})},OPTIONS(l,u){return f(l,{...u,method:"OPTIONS"})},HEAD(l,u){return f(l,{...u,method:"HEAD"})},PATCH(l,u){return f(l,{...u,method:"PATCH"})},TRACE(l,u){return f(l,{...u,method:"TRACE"})},use(...l){for(const u of l)if(u){if(typeof u!="object"||!("onRequest"in u||"onResponse"in u||"onError"in u))throw new Error("Middleware must be an object with one of `onRequest()`, `onResponse() or `onError()`");S.push(u)}},eject(...l){for(const u of l){const m=S.indexOf(u);m!==-1&&S.splice(m,1)}}}}function ne(e,t,r){if(t==null)return"";if(typeof t=="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${r?.allowReserved===!0?t:encodeURIComponent(t)}`}function We(e,t,r){if(!t||typeof t!="object")return"";const s=[],n={simple:",",label:".",matrix:";"}[r.style]||"&";if(r.style!=="deepObject"&&r.explode===!1){for(const o in t)s.push(o,r.allowReserved===!0?t[o]:encodeURIComponent(t[o]));const a=s.join(",");switch(r.style){case"form":return`${e}=${a}`;case"label":return`.${a}`;case"matrix":return`;${e}=${a}`;default:return a}}for(const a in t){const o=r.style==="deepObject"?`${e}[${a}]`:a;s.push(ne(o,t[a],r))}const i=s.join(n);return r.style==="label"||r.style==="matrix"?`${n}${i}`:i}function qe(e,t,r){if(!Array.isArray(t))return"";if(r.explode===!1){const i={form:",",spaceDelimited:"%20",pipeDelimited:"|"}[r.style]||",",a=(r.allowReserved===!0?t:t.map(o=>encodeURIComponent(o))).join(i);switch(r.style){case"simple":return a;case"label":return`.${a}`;case"matrix":return`;${e}=${a}`;default:return`${e}=${a}`}}const s={simple:",",label:".",matrix:";"}[r.style]||"&",n=[];for(const i of t)r.style==="simple"||r.style==="label"?n.push(r.allowReserved===!0?i:encodeURIComponent(i)):n.push(ne(e,i,r));return r.style==="label"||r.style==="matrix"?`${s}${n.join(s)}`:n.join(s)}function Te(e){return function(r){const s=[];if(r&&typeof r=="object")for(const n in r){const i=r[n];if(i!=null){if(Array.isArray(i)){if(i.length===0)continue;s.push(qe(n,i,{style:"form",explode:!0,...e?.array,allowReserved:e?.allowReserved||!1}));continue}if(typeof i=="object"){s.push(We(n,i,{style:"deepObject",explode:!0,...e?.object,allowReserved:e?.allowReserved||!1}));continue}s.push(ne(n,i,e))}}return s.join("&")}}function St(e,t){let r=e;for(const s of e.match(yt)??[]){let n=s.substring(1,s.length-1),i=!1,a="simple";if(n.endsWith("*")&&(i=!0,n=n.substring(0,n.length-1)),n.startsWith(".")?(a="label",n=n.substring(1)):n.startsWith(";")&&(a="matrix",n=n.substring(1)),!t||t[n]===void 0||t[n]===null)continue;const o=t[n];if(Array.isArray(o)){r=r.replace(s,qe(n,o,{style:a,explode:i}));continue}if(typeof o=="object"){r=r.replace(s,We(n,o,{style:a,explode:i}));continue}if(a==="matrix"){r=r.replace(s,`;${ne(n,o)}`);continue}r=r.replace(s,a==="label"?`.${encodeURIComponent(o)}`:encodeURIComponent(o))}return r}function $t(e,t){return e instanceof FormData?e:t&&(t.get instanceof Function?t.get("Content-Type")??t.get("content-type"):t["Content-Type"]??t["content-type"])==="application/x-www-form-urlencoded"?new URLSearchParams(e).toString():JSON.stringify(e)}function _t(e,t){let r=`${t.baseUrl}${e}`;t.params?.path&&(r=t.pathSerializer(r,t.params.path));let s=t.querySerializer(t.params.query??{});return s.startsWith("?")&&(s=s.substring(1)),s&&(r+=`?${s}`),r}function Ae(...e){const t=new Headers;for(const r of e){if(!r||typeof r!="object")continue;const s=r instanceof Headers?r.entries():Object.entries(r);for(const[n,i]of s)if(i===null)t.delete(n);else if(Array.isArray(i))for(const a of i)t.append(n,a);else i!==void 0&&t.set(n,i)}return t}function Re(e){return e.endsWith("/")?e.substring(0,e.length-1):e}const Tt=40;function At(){return new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}class Rt{#e=A(we([]));get activeTasks(){return p(this.#e)}set activeTasks(t){g(this.#e,t,!0)}#t=A("idle");get level(){return p(this.#t)}set level(t){g(this.#t,t,!0)}#r=A("Ready");get message(){return p(this.#r)}set message(t){g(this.#r,t,!0)}#s=A(null);get detail(){return p(this.#s)}set detail(t){g(this.#s,t,!0)}#i=A(null);get lastDurationMs(){return p(this.#i)}set lastDurationMs(t){g(this.#i,t,!0)}#n=A(we([]));get history(){return p(this.#n)}set history(t){g(this.#n,t,!0)}#a=A(!1);get logPopoverOpen(){return p(this.#a)}set logPopoverOpen(t){g(this.#a,t,!0)}taskCounter=0;#o=E(()=>this.activeTasks.length>0);get isBusy(){return p(this.#o)}set isBusy(t){g(this.#o,t)}#l=E(()=>this.activeTasks.length>0?this.activeTasks[this.activeTasks.length-1]:null);get currentTask(){return p(this.#l)}set currentTask(t){g(this.#l,t)}#u=E(()=>this.activeTasks.length>0?"busy":this.level);get displayLevel(){return p(this.#u)}set displayLevel(t){g(this.#u,t)}#c=E(()=>this.currentTask?this.currentTask.label:this.message);get displayMessage(){return p(this.#c)}set displayMessage(t){g(this.#c,t)}#d=E(()=>this.currentTask?this.currentTask.detail??null:this.detail);get displayDetail(){return p(this.#d)}set displayDetail(t){g(this.#d,t)}#f=E(()=>this.currentTask?.progress??null);get displayProgress(){return p(this.#f)}set displayProgress(t){g(this.#f,t)}startTask(t,r,s=null){const n=`task-${++this.taskCounter}-${Date.now()}`,i=typeof performance<"u"?performance.now():Date.now();return Q(()=>{this.activeTasks=[...this.activeTasks,{id:n,label:t,detail:r,progress:s,startedAt:i}]}),n}updateTask(t,r){Q(()=>{this.activeTasks=this.activeTasks.map(s=>s.id===t?{...s,label:r.label!==void 0?r.label:s.label,detail:r.detail!==void 0?r.detail:s.detail,progress:r.progress!==void 0?r.progress:s.progress}:s)})}endTask(t,r){return Q(()=>{const s=this.activeTasks.find(d=>d.id===t),n=typeof performance<"u"?performance.now():Date.now(),i=s?Math.max(1,Math.round(n-s.startedAt)):0;if(this.activeTasks=this.activeTasks.filter(d=>d.id!==t),r?.silent)return i;const a=r?.level??"success",o=r?.message??(s?s.label.replace(/\.{2,}$/,""):this.message),c=r?.detail!==void 0?r.detail:s?.detail??null;return this.level=a,this.message=o,this.detail=c,this.lastDurationMs=i,a!=="idle"&&this.pushHistory({level:a==="error"?"error":a==="warning"?"warning":a==="success"?"success":"info",message:o,detail:c??void 0,durationMs:i}),i})}setStatus(t,r,s=null,n=null){this.level=t,this.message=r,this.detail=s,this.lastDurationMs=n,t!=="idle"&&t!=="busy"&&this.pushHistory({level:t==="error"?"error":t==="warning"?"warning":t==="success"?"success":"info",message:r,detail:s??void 0,durationMs:n??void 0})}info(t,r){this.setStatus("idle",t,r??null,null),this.pushHistory({level:"info",message:t,detail:r})}success(t,r,s){this.setStatus("success",t,r??null,s??this.lastDurationMs)}warn(t,r){this.setStatus("warning",t,r??null,null)}error(t,r){this.setStatus("error",t,r??null,null)}clearHistory(){this.history=[]}pushHistory(t){const r={id:`log-${++this.taskCounter}-${Date.now()}`,timestamp:At(),...t};this.history=[r,...this.history].slice(0,Tt)}}const j=new Rt;function Ct(){return typeof window<"u"?window.location.port==="5173"?"http://localhost:6312":"":"http://localhost:6312"}const D=Ct(),pe="qpp_access_token";function me(){return typeof window>"u"?null:localStorage.getItem(pe)}function te(e){typeof window>"u"||(e?localStorage.setItem(pe,e):localStorage.removeItem(pe))}function z(e={}){const t={...e},r=me();return r&&(t.Authorization=`Bearer ${r}`),t}function De(e,t){const r=e.toUpperCase();let s=t;try{const c=new URL(t,"http://localhost");s=decodeURIComponent(c.pathname)}catch{s=decodeURIComponent(t)}const n=s.match(/\/wells\/([^/]+)\/([^/]+)$/),i=n?n[1]:void 0,a=n?n[2]:void 0;if(s.endsWith("/auth/me"))return{active:"Verifying session identity...",done:"Session verified",silent:!0};if(s.endsWith("/auth/logout"))return{active:"Signing out...",done:"Signed out",silent:!0};if(s.includes("/auth/"))return{active:"Authenticating...",done:"Authenticated",silent:!0};if(s.endsWith("/assistant/providers"))return{active:"Checking AI providers...",done:"Providers loaded",silent:!0};if(s.endsWith("/assistant/chat"))return{active:"Running Petrophysical MCP Assistant...",done:"MCP Assistant completed",detail:i};if(s.endsWith("/database/projects")&&r==="GET")return{active:"Loading projects...",done:"Projects loaded",silent:!0};if(s.endsWith("/database/projects")&&r==="POST")return{active:"Creating new project...",done:"New project created"};if(/\/database\/projects\/[^/]+$/.test(s)&&r==="PATCH")return{active:"Updating project details...",done:"Project updated"};if(/\/database\/projects\/[^/]+$/.test(s)&&r==="DELETE")return{active:"Deleting project...",done:"Project deleted"};const o=s.match(/\/database\/projects\/[^/]+\/wells\/([^/]+)$/);if(o&&r==="PATCH")return{active:`Renaming well (${o[1]})...`,done:`Well renamed (${o[1]})`,detail:o[1]};if(o&&r==="DELETE")return{active:`Deleting well (${o[1]})...`,done:`Well deleted (${o[1]})`,detail:o[1]};if(s.endsWith("/summary")&&r==="GET")return{active:"Loading project inventory & wells...",done:"Project summary loaded"};if(s.endsWith("/demo/reset"))return{active:"Resetting ephemeral demo workspace...",done:"Demo session restored to seed state"};if(s.endsWith("/read_las"))return{active:"Uploading & parsing LAS/Parquet log files...",done:"Well log files imported"};if(i&&a)switch(a){case"bundle":return{active:`Loading well bundle (${i})...`,done:`Loaded well ${i}`,detail:i};case"hc_correction":return{active:`Running NPHI/RHOB hydrocarbon correction (${i})...`,done:`HC correction updated (${i})`,detail:i};case"lithology":return{active:`Computing lithology model (${i})...`,done:`Lithology computed (${i})`,detail:i};case"porosity":return{active:`Computing porosity logs (${i})...`,done:`Lithology & Porosity updated (${i})`,detail:i};case"permeability":return{active:`Computing permeability log (${i})...`,done:`Permeability updated (${i})`,detail:i};case"saturation":return{active:`Computing water saturation (${i})...`,done:`Water saturation updated (${i})`,detail:i};case"reservoir_summary":return{active:`Computing reservoir summary & pay flags (${i})...`,done:`Reservoir summary updated (${i})`,detail:i};case"ml_inference":return{active:`Running pre-trained PIML conformal inference (${i})...`,done:`PIML conformal bounds computed (${i})`,detail:i};case"environmental_corrections":return{active:`Applying borehole environmental corrections (${i})...`,done:`Environmental corrections applied (${i})`,detail:i};case"curve_edit":return{active:`Updating well log curve (${i})...`,done:`Well log curve updated (${i})`,detail:i};case"save_computed":return{active:`Saving computed curves (${i})...`,done:`Saved computed curves (${i})`,detail:i};case"config":return{active:`Saving working depth interval (${i})...`,done:`Working depth interval saved (${i})`,detail:i};case"formation_tops":return{active:`Saving formation tops (${i})...`,done:`Formation tops saved (${i})`,detail:i};case"fluid_contacts":return{active:`Saving fluid contacts (${i})...`,done:`Fluid contacts saved (${i})`,detail:i};case"core_samples":return{active:`Saving core plug samples (${i})...`,done:`Core samples saved (${i})`,detail:i};case"pressure_tests":return{active:`Saving formation pressure tests (${i})...`,done:`Pressure tests saved (${i})`,detail:i};case"well_surveys":return{active:`Saving deviation survey (${i})...`,done:`Deviation survey saved (${i})`,detail:i}}return s.endsWith("/scal/relperm")?{active:"Computing SCAL relative permeability curves...",done:"SCAL rel-perm curves updated"}:s.endsWith("/scal/swof")?{active:"Generating Eclipse SWOF simulation table...",done:"SCAL rel-perm & SWOF table updated"}:s.endsWith("/scal/core_corrections")?{active:"Applying core overburden stress & Klinkenberg corrections...",done:"Core stress & Klinkenberg corrections applied"}:s.endsWith("/scal/pc_lab_to_reservoir")?{active:"Converting lab capillary pressure to reservoir conditions...",done:"Lab-to-reservoir Pc conversion complete"}:s.endsWith("/upscaling/permeability_bounds")?{active:"Computing Cardwell-Parsons permeability bounds...",done:"Permeability bounds computed",silent:!0}:s.endsWith("/uncertainty/volumetric")?{active:"Running 5,000-trial LHS volumetric Monte Carlo...",done:"Volumetric STOIIP Monte Carlo (5,000 LHS) complete"}:s.endsWith("/rock_typing/compute")?{active:"Clustering multi-well FZI discrete rock types...",done:"Multi-well FZI rock typing updated"}:s.endsWith("/perm_transform/compute")?{active:"Fitting multi-well porosity-permeability transforms...",done:"Multi-well permeability transforms updated"}:s.endsWith("/shf/compute")?{active:"Computing multi-well saturation height function (SHF)...",done:"Multi-well SHF updated"}:s.endsWith("/ml_models/train")?{active:"Training & evaluating multi-well Conformal PIML model...",done:"Conformal PIML model trained & evaluated"}:s.endsWith("/ml_models/save")?{active:"Saving trained model to global bundle...",done:"Model suite saved to global bundle"}:s.endsWith("/ml_models")&&r==="GET"?{active:"Checking pre-trained ML model bundle...",done:"Pre-trained ML model status loaded",silent:!0}:s.endsWith("/optimize_fwl")?{active:"Optimizing field Free Water Level (FWL) & fluid contacts...",done:"Field FWL optimization complete"}:s.endsWith("/stratigraphic_normalization")?{active:"Running multi-well stratigraphic normalization...",done:"Multi-well stratigraphic normalization complete"}:s.includes("/uam/audit-logs")?{active:"Loading audit logs...",done:"Audit logs loaded",silent:!0}:s.includes("/uam/users")?{active:r==="GET"?"Loading UAM user directory...":"Updating UAM user access...",done:r==="GET"?"UAM directory loaded":"UAM user access updated",silent:r==="GET"}:{active:`${r} ${s.replace(/^\/quick_pp/,"")}...`,done:`Completed ${s.replace(/^\/quick_pp/,"")}`}}const J=new WeakMap,Et=kt({baseUrl:D});Et.use({async onRequest({request:e}){const t=me();t&&e.headers.set("Authorization",`Bearer ${t}`);const r=De(e.method,e.url),s=j.startTask(r.active,r.detail);return J.set(e,{taskId:s,desc:r}),e},async onResponse({request:e,response:t}){const r=J.get(e);return r&&(J.delete(e),t.ok?j.endTask(r.taskId,{level:"success",message:r.desc.done,detail:r.desc.detail??null,silent:r.desc.silent}):j.endTask(r.taskId,{level:"error",message:`Error (${t.status}): ${r.desc.active.replace(/\.{2,}$/,"")}`,detail:r.desc.detail??null})),t},async onError({request:e,error:t}){const r=J.get(e);r&&(J.delete(e),j.endTask(r.taskId,{level:"error",message:t?.message||"Network request failed",detail:r.desc.detail??null}))}});async function jt(e,t){const r=await e.text();let s="";if(r)try{const n=JSON.parse(r);s=n?.detail?typeof n.detail=="string"?n.detail:JSON.stringify(n.detail):n?.message?String(n.message):r}catch{e.status===502||e.status===503||e.status===504?s=`Backend server is unreachable or starting up (HTTP ${e.status}).`:s=r.slice(0,200)}return new Error(s||`${t} (HTTP ${e.status})`)}async function H(e,t,r){const s=De(t.method||"GET",e),n=s.silent?null:j.startTask(s.active,s.detail);try{const i=await fetch(e,t);if(!i.ok){const a=await jt(i,r);throw n?j.endTask(n,{level:"error",message:a.message,detail:s.detail??null}):s.silent||j.error(a.message,s.detail),a}return n&&j.endTask(n,{level:"success",message:s.done,detail:s.detail??null,silent:s.silent}),i}catch(i){throw n&&j.activeTasks.some(a=>a.id===n)&&j.endTask(n,{level:"error",message:i?.message||r,detail:s.detail??null}),i}}async function Ft(e,t,r,s,n){const i=`${D}/quick_pp/database/projects/${e}/wells/${encodeURIComponent(t)}/${r}`;return(await H(i,{method:"POST",credentials:"include",headers:z({"Content-Type":"application/json"}),body:JSON.stringify({[s]:n})},`Failed to save ${r}`)).json()}async function Bt(e,t,r,s){const n=`${D}/quick_pp/database/projects/${e}/wells/${encodeURIComponent(t)}/${r}/${encodeURIComponent(String(s))}`;return(await H(n,{method:"DELETE",credentials:"include",headers:z()},`Failed to delete ${r} item`)).json()}async function fe(e){const t=e.startsWith("http")?e:`${D}${e}`;return(await H(t,{method:"GET",credentials:"include",headers:z()},"Request failed")).json()}async function K(e,t={}){const r=e.startsWith("http")?e:`${D}${e}`;return(await H(r,{method:"POST",credentials:"include",headers:z({"Content-Type":"application/json"}),body:JSON.stringify(t)},"Request failed")).json()}async function Mt(e,t={}){const r=e.startsWith("http")?e:`${D}${e}`;return(await H(r,{method:"PATCH",credentials:"include",headers:z({"Content-Type":"application/json"}),body:JSON.stringify(t)},"Request failed")).json()}async function Pt(e){const t=e.startsWith("http")?e:`${D}${e}`;return(await H(t,{method:"DELETE",credentials:"include",headers:z()},"Request failed")).json()}const Gt=K;class It{#e=A(null);get user(){return p(this.#e)}set user(t){g(this.#e,t,!0)}#t=A(null);get token(){return p(this.#t)}set token(t){g(this.#t,t,!0)}#r=A("0.3.1");get appVersion(){return p(this.#r)}set appVersion(t){g(this.#r,t,!0)}#s=A(!0);get isInitializing(){return p(this.#s)}set isInitializing(t){g(this.#s,t,!0)}#i=A(!1);get uamModalOpen(){return p(this.#i)}set uamModalOpen(t){g(this.#i,t,!0)}#n=A(!1);get accountModalOpen(){return p(this.#n)}set accountModalOpen(t){g(this.#n,t,!0)}#a=A(!1);get smtpConfigured(){return p(this.#a)}set smtpConfigured(t){g(this.#a,t,!0)}#o=A(null);get smtpHost(){return p(this.#o)}set smtpHost(t){g(this.#o,t,!0)}#l=E(()=>!!(this.user&&this.token));get isAuthenticated(){return p(this.#l)}set isAuthenticated(t){g(this.#l,t)}#u=E(()=>this.user?.role==="admin");get isAdmin(){return p(this.#u)}set isAdmin(t){g(this.#u,t)}#c=E(()=>!!this.user?.demo_mode);get isDemoMode(){return p(this.#c)}set isDemoMode(t){g(this.#c,t)}#d=E(()=>{if(!this.user)return"QP";const t=(this.user.full_name||this.user.username||"U").trim(),r=t.split(/\s+/);return r.length>=2?(r[0][0]+r[1][0]).toUpperCase():t.slice(0,2).toUpperCase()});get userInitials(){return p(this.#d)}set userInitials(t){g(this.#d,t)}async initialize(){this.isInitializing=!0;try{const t=me();this.token=t;const r=await fe("/quick_pp/auth/me");return r?.version&&(this.appVersion=r.version),r?.user?(this.user=r.user,r.user.demo_mode?(te(null),this.token="demo-session"):this.token||(this.token="cookie-session"),!0):(this.clearSession(),!1)}catch{return this.clearSession(),!1}finally{this.isInitializing=!1}}setAuthenticated(t,r){r.demo_mode?(te(null),this.token="demo-session"):(te(t),this.token=t),this.user=r}clearSession(){te(null),this.token=null,this.user=null,this.uamModalOpen=!1,this.accountModalOpen=!1}async logout(){if(this.isDemoMode){await ke("/");return}try{await K("/quick_pp/auth/logout",{})}catch{}this.clearSession(),await ke("/login")}getProjectRole(t){if(!this.user)return"viewer";if(this.user.role==="admin")return"admin";if(!t)return"viewer";const r=Number(t);return this.user.project_memberships?.find(n=>n.project_id===r)?.role??"viewer"}canEditProject(t){const r=this.getProjectRole(t);return r==="admin"||r==="editor"}async listUsers(){const t=await fe("/quick_pp/uam/users");return this.smtpConfigured=!!t.smtp_configured,this.smtpHost=t.smtp_host??null,t.users||[]}async inviteUser(t){const r=typeof window<"u"?window.location.origin:void 0;return K("/quick_pp/uam/users/invite",{...t,base_url:r})}async reinviteUser(t){const r=typeof window<"u"?encodeURIComponent(window.location.origin):"";return K(`/quick_pp/uam/users/${t}/reinvite?base_url=${r}`,{})}async resetUserMfa(t){return(await K(`/quick_pp/uam/users/${t}/reset-mfa`,{})).user}async updateUser(t,r){const s=await Mt(`/quick_pp/uam/users/${t}`,r);return this.user&&this.user.user_id===t&&(this.user=s.user),s.user}async deleteUser(t){await Pt(`/quick_pp/uam/users/${t}`)}async listAuditLogs(t=50){return(await fe(`/quick_pp/uam/audit-logs?limit=${t}`)).logs||[]}}const Vt=new It;export{D as A,Vt as a,ht as b,ct as c,Ht as d,qt as e,Et as f,fe as g,j as h,Ft as i,Mt as j,Pt as k,z as l,Ie as m,re as n,Gt as o,K as p,Dt as q,vt as r,se as s,pt as t,Wt as u,ut as v,zt as w,Nt as x,Bt as y};
|
|
1
|
+
import{aO as Ee,y as he,B as Re,O as ve,C as M,aP as ge,w as W,aQ as je,aC as Ne,ae as Fe,aR as Be,aS as Ge,aT as Ve,Q as Je,aU as Ke,aV as Qe,g as p,aW as Ye,N as be,aX as Ze,aY as Xe,aZ as xe,a_ as et,a$ as tt,j as Q,P as Me,a7 as rt,d as A,W as we,b as g,u as R}from"./B47cw2fH.js";import{i as st,b as it,d as nt,n as at,g as ot}from"./Cvj-X7M2.js";import{g as ke}from"./CbSSxSHK.js";function lt(e,t){var r=void 0,s;Ee(()=>{r!==(r=t())&&(s&&(he(s),s=null),r&&(s=Re(()=>{ve(()=>r(e))})))})}function Pe(e){var t,r,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=Pe(e[t]))&&(s&&(s+=" "),s+=r)}else for(r in e)e[r]&&(s&&(s+=" "),s+=r);return s}function ut(){for(var e,t,r=0,s="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=Pe(e))&&(s&&(s+=" "),s+=t);return s}function ct(e){return typeof e=="object"?ut(e):e??""}const Se=[...`
|
|
2
|
+
\r\f \v\uFEFF`];function dt(e,t,r){var s=e==null?"":""+e;if(t&&(s=s?s+" "+t:t),r){for(var n in r)if(r[n])s=s?s+" "+n:n;else if(s.length)for(var i=n.length,a=0;(a=s.indexOf(n,a))>=0;){var o=a+i;(a===0||Se.includes(s[a-1]))&&(o===s.length||Se.includes(s[o]))?s=(a===0?"":s.substring(0,a))+s.substring(o+1):a=o}}return s===""?null:s}function $e(e,t=!1){var r=t?" !important;":";",s="";for(var n in e){var i=e[n];i!=null&&i!==""&&(s+=" "+n+": "+i+r)}return s}function le(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function ft(e,t){if(t){var r="",s,n;if(Array.isArray(t)?(s=t[0],n=t[1]):s=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var i=!1,a=0,o=!1,c=[];s&&c.push(...Object.keys(s).map(le)),n&&c.push(...Object.keys(n).map(le));var d=0,S=-1;const C=e.length;for(var f=0;f<C;f++){var l=e[f];if(o?l==="/"&&e[f-1]==="*"&&(o=!1):i?i===l&&(i=!1):l==="/"&&e[f+1]==="*"?o=!0:l==='"'||l==="'"?i=l:l==="("?a++:l===")"&&a--,!o&&i===!1&&a===0){if(l===":"&&S===-1)S=f;else if(l===";"||f===C-1){if(S!==-1){var u=le(e.substring(d,S).trim());if(!c.includes(u)){l!==";"&&f++;var m=e.substring(d,f).trim();r+=" "+m+";"}}d=f+1,S=-1}}}}return s&&(r+=$e(s)),n&&(r+=$e(n,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function ht(e,t,r,s,n,i){var a=e.__className;if(M||a!==r||a===void 0){var o=dt(r,s,i);(!M||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):t?e.className=o:e.setAttribute("class",o)),e.__className=r}else if(i&&n!==i)for(var c in i){var d=!!i[c];(n==null||d!==!!n[c])&&e.classList.toggle(c,d)}return i}function ue(e,t={},r,s){for(var n in r){var i=r[n];t[n]!==i&&(r[n]==null?e.style.removeProperty(n):e.style.setProperty(n,i,s))}}function pt(e,t,r,s){var n=e.__style;if(M||n!==t){var i=ft(t,s);(!M||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}else s&&(Array.isArray(s)?(ue(e,r?.[0],s[0]),ue(e,r?.[1],s[1],"important")):ue(e,r,s));return s}function re(e,t,r=!1){if(e.multiple){if(t==null)return;if(!Fe(t))return Be();for(var s of e.options)s.selected=t.includes(Y(s));return}for(s of e.options){var n=Y(s);if(Ge(n,t)){s.selected=!0;return}}(!r||t!==void 0)&&(e.selectedIndex=-1)}function Ie(e){var t=new MutationObserver(()=>{re(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Ne(()=>{t.disconnect()})}function Wt(e,t,r=t){var s=new WeakSet,n=!0;ge(e,"change",i=>{var a=i?"[selected]":":checked",o;if(e.multiple)o=[].map.call(e.querySelectorAll(a),Y);else{var c=e.querySelector(a)??e.querySelector("option:not([disabled])");o=c&&Y(c)}r(o),W!==null&&s.add(W)}),ve(()=>{var i=t();if(e===document.activeElement){var a=je??W;if(s.has(a))return}if(re(e,i,n),n&&i===void 0){var o=e.querySelector(":checked");o!==null&&(i=Y(o),r(i))}e.__value=i,n=!1}),Ie(e)}function Y(e){return"__value"in e?e.__value:e.value}const G=Symbol("class"),V=Symbol("style"),Oe=Symbol("is custom element"),Le=Symbol("is html");function vt(e){if(M){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var s=e.value;se(e,"value",null),e.value=s}if(e.hasAttribute("checked")){var n=e.checked;se(e,"checked",null),e.checked=n}}};e.__on_r=r,Je(r),Ke()}}function qt(e,t){var r=ie(e);r.value===(r.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!=="PROGRESS")||(e.value=t??"")}function Dt(e,t){var r=ie(e);r.checked!==(r.checked=t??void 0)&&(e.checked=t)}function gt(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function se(e,t,r,s){var n=ie(e);M&&(n[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||n[t]!==(n[t]=r)&&(t==="loading"&&(e[et]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Ue(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function mt(e,t,r,s,n=!1,i=!1){if(M&&n&&e.tagName==="INPUT"){var a=e,o=a.type==="checkbox"?"defaultChecked":"defaultValue";o in r||vt(a)}var c=ie(e),d=c[Oe],S=!c[Le];let f=M&&d;f&&be(!1);var l=t||{},u=e.tagName==="OPTION";for(var m in t)m in r||(r[m]=null);r.class?r.class=ct(r.class):r[G]&&(r.class=null),r[V]&&(r.style??=null);var C=Ue(e);for(const h in r){let v=r[h];if(u&&h==="value"&&v==null){e.value=e.__value="",l[h]=v;continue}if(h==="class"){var I=e.namespaceURI==="http://www.w3.org/1999/xhtml";ht(e,I,v,s,t?.[G],r[G]),l[h]=v,l[G]=r[G];continue}if(h==="style"){pt(e,v,t?.[V],r[V]),l[h]=v,l[V]=r[V];continue}var $=l[h];if(!(v===$&&!(v===void 0&&e.hasAttribute(h)))){l[h]=v;var P=h[0]+h[1];if(P!=="$$")if(P==="on"){const _={},E="$$"+h;let b=h.slice(2);var O=ot(b);if(st(b)&&(b=b.slice(0,-7),_.capture=!0),!O&&$){if(v!=null)continue;e.removeEventListener(b,l[E],_),l[E]=null}if(v!=null)if(O)e[`__${b}`]=v,nt([b]);else{let F=function(Z){l[h].call(this,Z)};l[E]=it(b,e,F,_)}else O&&(e[`__${b}`]=void 0)}else if(h==="style")se(e,h,v);else if(h==="autofocus")Ze(e,!!v);else if(!d&&(h==="__value"||h==="value"&&v!=null))e.value=e.__value=v;else if(h==="selected"&&u)gt(e,v);else{var y=h;S||(y=at(y));var N=y==="defaultValue"||y==="defaultChecked";if(v==null&&!d&&!N)if(c[h]=null,y==="value"||y==="checked"){let _=e;const E=t===void 0;if(y==="value"){let b=_.defaultValue;_.removeAttribute(y),_.defaultValue=b,_.value=_.__value=E?b:null}else{let b=_.defaultChecked;_.removeAttribute(y),_.defaultChecked=b,_.checked=E?b:!1}}else e.removeAttribute(h);else N||C.includes(y)&&(d||typeof v!="string")?(e[y]=v,y in c&&(c[y]=Xe)):typeof v!="function"&&se(e,y,v)}}}return f&&be(!0),l}function zt(e,t,r=[],s=[],n=[],i,a=!1,o=!1){Qe(n,r,s,c=>{var d=void 0,S={},f=e.nodeName==="SELECT",l=!1;if(Ee(()=>{var m=t(...c.map(p)),C=mt(e,d,m,i,a,o);l&&f&&"value"in m&&re(e,m.value);for(let $ of Object.getOwnPropertySymbols(S))m[$]||he(S[$]);for(let $ of Object.getOwnPropertySymbols(m)){var I=m[$];$.description===Ye&&(!d||I!==d[$])&&(S[$]&&he(S[$]),S[$]=Re(()=>lt(e,()=>I))),C[$]=I}d=C}),f){var u=e;ve(()=>{re(u,d.value,!0),Ie(u)})}l=!0})}function ie(e){return e.__attributes??={[Oe]:e.nodeName.includes("-"),[Le]:e.namespaceURI===Ve}}var _e=new Map;function Ue(e){var t=e.getAttribute("is")||e.nodeName,r=_e.get(t);if(r)return r;_e.set(t,r=[]);for(var s,n=e,i=Element.prototype;i!==n;){s=tt(n);for(var a in s)s[a].set&&r.push(a);n=xe(n)}return r}function Ht(e,t,r=t){var s=new WeakSet;ge(e,"input",async n=>{var i=n?e.defaultValue:e.value;if(i=ce(e)?de(i):i,r(i),W!==null&&s.add(W),await rt(),i!==(i=t())){var a=e.selectionStart,o=e.selectionEnd,c=e.value.length;if(e.value=i??"",o!==null){var d=e.value.length;a===o&&o===c&&d>c?(e.selectionStart=d,e.selectionEnd=d):(e.selectionStart=a,e.selectionEnd=Math.min(o,d))}}}),(M&&e.defaultValue!==e.value||Q(t)==null&&e.value)&&(r(ce(e)?de(e.value):e.value),W!==null&&s.add(W)),Me(()=>{var n=t();if(e===document.activeElement){var i=je??W;if(s.has(i))return}ce(e)&&n===de(e.value)||e.type==="date"&&!n&&!e.value||n!==e.value&&(e.value=n??"")})}function Nt(e,t,r=t){ge(e,"change",s=>{var n=s?e.defaultChecked:e.checked;r(n)}),(M&&e.defaultChecked!==e.checked||Q(t)==null)&&r(e.checked),Me(()=>{var s=t();e.checked=!!s})}function ce(e){var t=e.type;return t==="number"||t==="range"}function de(e){return e===""?null:+e}const yt=/\{[^{}]+\}/g,bt=()=>typeof process=="object"&&Number.parseInt(process?.versions?.node?.substring(0,2))>=18&&process.versions.undici;function wt(){return Math.random().toString(36).slice(2,11)}function kt(e){let{baseUrl:t="",Request:r=globalThis.Request,fetch:s=globalThis.fetch,querySerializer:n,bodySerializer:i,pathSerializer:a,headers:o,requestInitExt:c=void 0,...d}={...e};c=bt()?c:void 0,t=Ce(t);const S=[];async function f(l,u){const{baseUrl:m,fetch:C=s,Request:I=r,headers:$,params:P={},parseAs:O="json",querySerializer:y,bodySerializer:N=i??$t,pathSerializer:h,body:v,middleware:_=[],...E}=u||{};let b=t;m&&(b=Ce(m)??t);let F=typeof n=="function"?n:Te(n);y&&(F=typeof y=="function"?y:Te({...typeof n=="object"?n:{},...y}));const Z=h||a||St,ae=v===void 0?void 0:N(v,Ae(o,$,P.header)),ze=Ae(ae===void 0||ae instanceof FormData?{}:{"Content-Type":"application/json"},o,$,P.header),L=[...S,..._],He={redirect:"follow",...d,...E,body:ae,headers:ze};let X,x,U=new I(_t(l,{baseUrl:b,params:P,querySerializer:F,pathSerializer:Z}),He),w;for(const T in E)T in U||(U[T]=E[T]);if(L.length){X=wt(),x=Object.freeze({baseUrl:b,fetch:C,parseAs:O,querySerializer:F,bodySerializer:N,pathSerializer:Z});for(const T of L)if(T&&typeof T=="object"&&typeof T.onRequest=="function"){const k=await T.onRequest({request:U,schemaPath:l,params:P,options:x,id:X});if(k)if(k instanceof I)U=k;else if(k instanceof Response){w=k;break}else throw new Error("onRequest: must return new Request() or Response() when modifying the request")}}if(!w){try{w=await C(U,c)}catch(T){let k=T;if(L.length)for(let q=L.length-1;q>=0;q--){const ee=L[q];if(ee&&typeof ee=="object"&&typeof ee.onError=="function"){const B=await ee.onError({request:U,error:k,schemaPath:l,params:P,options:x,id:X});if(B){if(B instanceof Response){k=void 0,w=B;break}if(B instanceof Error){k=B;continue}throw new Error("onError: must return new Response() or instance of Error")}}}if(k)throw k}if(L.length)for(let T=L.length-1;T>=0;T--){const k=L[T];if(k&&typeof k=="object"&&typeof k.onResponse=="function"){const q=await k.onResponse({request:U,response:w,schemaPath:l,params:P,options:x,id:X});if(q){if(!(q instanceof Response))throw new Error("onResponse: must return new Response() when modifying the response");w=q}}}}const ye=w.headers.get("Content-Length");if(w.status===204||U.method==="HEAD"||ye==="0"&&!w.headers.get("Transfer-Encoding")?.includes("chunked"))return w.ok?{data:void 0,response:w}:{error:void 0,response:w};if(w.ok)return{data:await(async()=>{if(O==="stream")return w.body;if(O==="json"&&!ye){const k=await w.text();return k?JSON.parse(k):void 0}return await w[O]()})(),response:w};let oe=await w.text();try{oe=JSON.parse(oe)}catch{}return{error:oe,response:w}}return{request(l,u,m){return f(u,{...m,method:l.toUpperCase()})},GET(l,u){return f(l,{...u,method:"GET"})},PUT(l,u){return f(l,{...u,method:"PUT"})},POST(l,u){return f(l,{...u,method:"POST"})},DELETE(l,u){return f(l,{...u,method:"DELETE"})},OPTIONS(l,u){return f(l,{...u,method:"OPTIONS"})},HEAD(l,u){return f(l,{...u,method:"HEAD"})},PATCH(l,u){return f(l,{...u,method:"PATCH"})},TRACE(l,u){return f(l,{...u,method:"TRACE"})},use(...l){for(const u of l)if(u){if(typeof u!="object"||!("onRequest"in u||"onResponse"in u||"onError"in u))throw new Error("Middleware must be an object with one of `onRequest()`, `onResponse() or `onError()`");S.push(u)}},eject(...l){for(const u of l){const m=S.indexOf(u);m!==-1&&S.splice(m,1)}}}}function ne(e,t,r){if(t==null)return"";if(typeof t=="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${r?.allowReserved===!0?t:encodeURIComponent(t)}`}function We(e,t,r){if(!t||typeof t!="object")return"";const s=[],n={simple:",",label:".",matrix:";"}[r.style]||"&";if(r.style!=="deepObject"&&r.explode===!1){for(const o in t)s.push(o,r.allowReserved===!0?t[o]:encodeURIComponent(t[o]));const a=s.join(",");switch(r.style){case"form":return`${e}=${a}`;case"label":return`.${a}`;case"matrix":return`;${e}=${a}`;default:return a}}for(const a in t){const o=r.style==="deepObject"?`${e}[${a}]`:a;s.push(ne(o,t[a],r))}const i=s.join(n);return r.style==="label"||r.style==="matrix"?`${n}${i}`:i}function qe(e,t,r){if(!Array.isArray(t))return"";if(r.explode===!1){const i={form:",",spaceDelimited:"%20",pipeDelimited:"|"}[r.style]||",",a=(r.allowReserved===!0?t:t.map(o=>encodeURIComponent(o))).join(i);switch(r.style){case"simple":return a;case"label":return`.${a}`;case"matrix":return`;${e}=${a}`;default:return`${e}=${a}`}}const s={simple:",",label:".",matrix:";"}[r.style]||"&",n=[];for(const i of t)r.style==="simple"||r.style==="label"?n.push(r.allowReserved===!0?i:encodeURIComponent(i)):n.push(ne(e,i,r));return r.style==="label"||r.style==="matrix"?`${s}${n.join(s)}`:n.join(s)}function Te(e){return function(r){const s=[];if(r&&typeof r=="object")for(const n in r){const i=r[n];if(i!=null){if(Array.isArray(i)){if(i.length===0)continue;s.push(qe(n,i,{style:"form",explode:!0,...e?.array,allowReserved:e?.allowReserved||!1}));continue}if(typeof i=="object"){s.push(We(n,i,{style:"deepObject",explode:!0,...e?.object,allowReserved:e?.allowReserved||!1}));continue}s.push(ne(n,i,e))}}return s.join("&")}}function St(e,t){let r=e;for(const s of e.match(yt)??[]){let n=s.substring(1,s.length-1),i=!1,a="simple";if(n.endsWith("*")&&(i=!0,n=n.substring(0,n.length-1)),n.startsWith(".")?(a="label",n=n.substring(1)):n.startsWith(";")&&(a="matrix",n=n.substring(1)),!t||t[n]===void 0||t[n]===null)continue;const o=t[n];if(Array.isArray(o)){r=r.replace(s,qe(n,o,{style:a,explode:i}));continue}if(typeof o=="object"){r=r.replace(s,We(n,o,{style:a,explode:i}));continue}if(a==="matrix"){r=r.replace(s,`;${ne(n,o)}`);continue}r=r.replace(s,a==="label"?`.${encodeURIComponent(o)}`:encodeURIComponent(o))}return r}function $t(e,t){return e instanceof FormData?e:t&&(t.get instanceof Function?t.get("Content-Type")??t.get("content-type"):t["Content-Type"]??t["content-type"])==="application/x-www-form-urlencoded"?new URLSearchParams(e).toString():JSON.stringify(e)}function _t(e,t){let r=`${t.baseUrl}${e}`;t.params?.path&&(r=t.pathSerializer(r,t.params.path));let s=t.querySerializer(t.params.query??{});return s.startsWith("?")&&(s=s.substring(1)),s&&(r+=`?${s}`),r}function Ae(...e){const t=new Headers;for(const r of e){if(!r||typeof r!="object")continue;const s=r instanceof Headers?r.entries():Object.entries(r);for(const[n,i]of s)if(i===null)t.delete(n);else if(Array.isArray(i))for(const a of i)t.append(n,a);else i!==void 0&&t.set(n,i)}return t}function Ce(e){return e.endsWith("/")?e.substring(0,e.length-1):e}const Tt=40;function At(){return new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}class Ct{#e=A(we([]));get activeTasks(){return p(this.#e)}set activeTasks(t){g(this.#e,t,!0)}#t=A("idle");get level(){return p(this.#t)}set level(t){g(this.#t,t,!0)}#r=A("Ready");get message(){return p(this.#r)}set message(t){g(this.#r,t,!0)}#s=A(null);get detail(){return p(this.#s)}set detail(t){g(this.#s,t,!0)}#i=A(null);get lastDurationMs(){return p(this.#i)}set lastDurationMs(t){g(this.#i,t,!0)}#n=A(we([]));get history(){return p(this.#n)}set history(t){g(this.#n,t,!0)}#a=A(!1);get logPopoverOpen(){return p(this.#a)}set logPopoverOpen(t){g(this.#a,t,!0)}taskCounter=0;#o=R(()=>this.activeTasks.length>0);get isBusy(){return p(this.#o)}set isBusy(t){g(this.#o,t)}#l=R(()=>this.activeTasks.length>0?this.activeTasks[this.activeTasks.length-1]:null);get currentTask(){return p(this.#l)}set currentTask(t){g(this.#l,t)}#u=R(()=>this.activeTasks.length>0?"busy":this.level);get displayLevel(){return p(this.#u)}set displayLevel(t){g(this.#u,t)}#c=R(()=>this.currentTask?this.currentTask.label:this.message);get displayMessage(){return p(this.#c)}set displayMessage(t){g(this.#c,t)}#d=R(()=>this.currentTask?this.currentTask.detail??null:this.detail);get displayDetail(){return p(this.#d)}set displayDetail(t){g(this.#d,t)}#f=R(()=>this.currentTask?.progress??null);get displayProgress(){return p(this.#f)}set displayProgress(t){g(this.#f,t)}startTask(t,r,s=null){const n=`task-${++this.taskCounter}-${Date.now()}`,i=typeof performance<"u"?performance.now():Date.now();return Q(()=>{this.activeTasks=[...this.activeTasks,{id:n,label:t,detail:r,progress:s,startedAt:i}]}),n}updateTask(t,r){Q(()=>{this.activeTasks=this.activeTasks.map(s=>s.id===t?{...s,label:r.label!==void 0?r.label:s.label,detail:r.detail!==void 0?r.detail:s.detail,progress:r.progress!==void 0?r.progress:s.progress}:s)})}endTask(t,r){return Q(()=>{const s=this.activeTasks.find(d=>d.id===t),n=typeof performance<"u"?performance.now():Date.now(),i=s?Math.max(1,Math.round(n-s.startedAt)):0;if(this.activeTasks=this.activeTasks.filter(d=>d.id!==t),r?.silent)return i;const a=r?.level??"success",o=r?.message??(s?s.label.replace(/\.{2,}$/,""):this.message),c=r?.detail!==void 0?r.detail:s?.detail??null;return this.level=a,this.message=o,this.detail=c,this.lastDurationMs=i,a!=="idle"&&this.pushHistory({level:a==="error"?"error":a==="warning"?"warning":a==="success"?"success":"info",message:o,detail:c??void 0,durationMs:i}),i})}setStatus(t,r,s=null,n=null){this.level=t,this.message=r,this.detail=s,this.lastDurationMs=n,t!=="idle"&&t!=="busy"&&this.pushHistory({level:t==="error"?"error":t==="warning"?"warning":t==="success"?"success":"info",message:r,detail:s??void 0,durationMs:n??void 0})}info(t,r){this.setStatus("idle",t,r??null,null),this.pushHistory({level:"info",message:t,detail:r})}success(t,r,s){this.setStatus("success",t,r??null,s??this.lastDurationMs)}warn(t,r){this.setStatus("warning",t,r??null,null)}error(t,r){this.setStatus("error",t,r??null,null)}clearHistory(){this.history=[]}pushHistory(t){const r={id:`log-${++this.taskCounter}-${Date.now()}`,timestamp:At(),...t};this.history=[r,...this.history].slice(0,Tt)}}const j=new Ct;function Et(){if(typeof window<"u"){if(window.location.port==="5173"||window.location.port==="5469"){const e=window.location.hostname||"localhost";return`${window.location.protocol}//${e}:6312`}return""}return"http://localhost:6312"}const D=Et(),pe="qpp_access_token";function me(){return typeof window>"u"?null:localStorage.getItem(pe)}function te(e){typeof window>"u"||(e?localStorage.setItem(pe,e):localStorage.removeItem(pe))}function z(e={}){const t={...e},r=me();return r&&(t.Authorization=`Bearer ${r}`),t}function De(e,t){const r=e.toUpperCase();let s=t;try{const c=new URL(t,"http://localhost");s=decodeURIComponent(c.pathname)}catch{s=decodeURIComponent(t)}const n=s.match(/\/wells\/([^/]+)\/([^/]+)$/),i=n?n[1]:void 0,a=n?n[2]:void 0;if(s.endsWith("/auth/me"))return{active:"Verifying session identity...",done:"Session verified",silent:!0};if(s.endsWith("/auth/logout"))return{active:"Signing out...",done:"Signed out",silent:!0};if(s.includes("/auth/"))return{active:"Authenticating...",done:"Authenticated",silent:!0};if(s.endsWith("/assistant/providers"))return{active:"Checking AI providers...",done:"Providers loaded",silent:!0};if(s.endsWith("/assistant/chat"))return{active:"Running Petrophysical MCP Assistant...",done:"MCP Assistant completed",detail:i};if(s.endsWith("/database/projects")&&r==="GET")return{active:"Loading projects...",done:"Projects loaded",silent:!0};if(s.endsWith("/database/projects")&&r==="POST")return{active:"Creating new project...",done:"New project created"};if(/\/database\/projects\/[^/]+$/.test(s)&&r==="PATCH")return{active:"Updating project details...",done:"Project updated"};if(/\/database\/projects\/[^/]+$/.test(s)&&r==="DELETE")return{active:"Deleting project...",done:"Project deleted"};const o=s.match(/\/database\/projects\/[^/]+\/wells\/([^/]+)$/);if(o&&r==="PATCH")return{active:`Renaming well (${o[1]})...`,done:`Well renamed (${o[1]})`,detail:o[1]};if(o&&r==="DELETE")return{active:`Deleting well (${o[1]})...`,done:`Well deleted (${o[1]})`,detail:o[1]};if(s.endsWith("/summary")&&r==="GET")return{active:"Loading project inventory & wells...",done:"Project summary loaded"};if(s.endsWith("/demo/reset"))return{active:"Resetting ephemeral demo workspace...",done:"Demo session restored to seed state"};if(s.endsWith("/read_las"))return{active:"Uploading & parsing LAS/Parquet log files...",done:"Well log files imported"};if(i&&a)switch(a){case"bundle":return{active:`Loading well bundle (${i})...`,done:`Loaded well ${i}`,detail:i};case"hc_correction":return{active:`Running NPHI/RHOB hydrocarbon correction (${i})...`,done:`HC correction updated (${i})`,detail:i};case"lithology":return{active:`Computing lithology model (${i})...`,done:`Lithology computed (${i})`,detail:i};case"porosity":return{active:`Computing porosity logs (${i})...`,done:`Lithology & Porosity updated (${i})`,detail:i};case"permeability":return{active:`Computing permeability log (${i})...`,done:`Permeability updated (${i})`,detail:i};case"saturation":return{active:`Computing water saturation (${i})...`,done:`Water saturation updated (${i})`,detail:i};case"reservoir_summary":return{active:`Computing reservoir summary & pay flags (${i})...`,done:`Reservoir summary updated (${i})`,detail:i};case"ml_inference":return{active:`Running pre-trained PIML conformal inference (${i})...`,done:`PIML conformal bounds computed (${i})`,detail:i};case"environmental_corrections":return{active:`Applying borehole environmental corrections (${i})...`,done:`Environmental corrections applied (${i})`,detail:i};case"curve_edit":return{active:`Updating well log curve (${i})...`,done:`Well log curve updated (${i})`,detail:i};case"save_computed":return{active:`Saving computed curves (${i})...`,done:`Saved computed curves (${i})`,detail:i};case"config":return{active:`Saving working depth interval (${i})...`,done:`Working depth interval saved (${i})`,detail:i};case"formation_tops":return{active:`Saving formation tops (${i})...`,done:`Formation tops saved (${i})`,detail:i};case"fluid_contacts":return{active:`Saving fluid contacts (${i})...`,done:`Fluid contacts saved (${i})`,detail:i};case"core_samples":return{active:`Saving core plug samples (${i})...`,done:`Core samples saved (${i})`,detail:i};case"pressure_tests":return{active:`Saving formation pressure tests (${i})...`,done:`Pressure tests saved (${i})`,detail:i};case"well_surveys":return{active:`Saving deviation survey (${i})...`,done:`Deviation survey saved (${i})`,detail:i}}return s.endsWith("/scal/relperm")?{active:"Computing SCAL relative permeability curves...",done:"SCAL rel-perm curves updated"}:s.endsWith("/scal/swof")?{active:"Generating Eclipse SWOF simulation table...",done:"SCAL rel-perm & SWOF table updated"}:s.endsWith("/scal/core_corrections")?{active:"Applying core overburden stress & Klinkenberg corrections...",done:"Core stress & Klinkenberg corrections applied"}:s.endsWith("/scal/pc_lab_to_reservoir")?{active:"Converting lab capillary pressure to reservoir conditions...",done:"Lab-to-reservoir Pc conversion complete"}:s.endsWith("/upscaling/permeability_bounds")?{active:"Computing Cardwell-Parsons permeability bounds...",done:"Permeability bounds computed",silent:!0}:s.endsWith("/uncertainty/volumetric")?{active:"Running 5,000-trial LHS volumetric Monte Carlo...",done:"Volumetric STOIIP Monte Carlo (5,000 LHS) complete"}:s.endsWith("/rock_typing/compute")?{active:"Clustering multi-well FZI discrete rock types...",done:"Multi-well FZI rock typing updated"}:s.endsWith("/perm_transform/compute")?{active:"Fitting multi-well porosity-permeability transforms...",done:"Multi-well permeability transforms updated"}:s.endsWith("/shf/compute")?{active:"Computing multi-well saturation height function (SHF)...",done:"Multi-well SHF updated"}:s.endsWith("/ml_models/train")?{active:"Training & evaluating multi-well Conformal PIML model...",done:"Conformal PIML model trained & evaluated"}:s.endsWith("/ml_models/save")?{active:"Saving trained model to global bundle...",done:"Model suite saved to global bundle"}:s.endsWith("/ml_models")&&r==="GET"?{active:"Checking pre-trained ML model bundle...",done:"Pre-trained ML model status loaded",silent:!0}:s.endsWith("/optimize_fwl")?{active:"Optimizing field Free Water Level (FWL) & fluid contacts...",done:"Field FWL optimization complete"}:s.endsWith("/stratigraphic_normalization")?{active:"Running multi-well stratigraphic normalization...",done:"Multi-well stratigraphic normalization complete"}:s.includes("/uam/audit-logs")?{active:"Loading audit logs...",done:"Audit logs loaded",silent:!0}:s.includes("/uam/users")?{active:r==="GET"?"Loading UAM user directory...":"Updating UAM user access...",done:r==="GET"?"UAM directory loaded":"UAM user access updated",silent:r==="GET"}:{active:`${r} ${s.replace(/^\/quick_pp/,"")}...`,done:`Completed ${s.replace(/^\/quick_pp/,"")}`}}const J=new WeakMap,Rt=kt({baseUrl:D});Rt.use({async onRequest({request:e}){const t=me();t&&e.headers.set("Authorization",`Bearer ${t}`);const r=De(e.method,e.url),s=j.startTask(r.active,r.detail);return J.set(e,{taskId:s,desc:r}),e},async onResponse({request:e,response:t}){const r=J.get(e);return r&&(J.delete(e),t.ok?j.endTask(r.taskId,{level:"success",message:r.desc.done,detail:r.desc.detail??null,silent:r.desc.silent}):j.endTask(r.taskId,{level:"error",message:`Error (${t.status}): ${r.desc.active.replace(/\.{2,}$/,"")}`,detail:r.desc.detail??null})),t},async onError({request:e,error:t}){const r=J.get(e);r&&(J.delete(e),j.endTask(r.taskId,{level:"error",message:t?.message||"Network request failed",detail:r.desc.detail??null}))}});async function jt(e,t){const r=await e.text();let s="";if(r)try{const n=JSON.parse(r);s=n?.detail?typeof n.detail=="string"?n.detail:JSON.stringify(n.detail):n?.message?String(n.message):r}catch{e.status===502||e.status===503||e.status===504?s=`Backend server is unreachable or starting up (HTTP ${e.status}).`:r.trimStart().toLowerCase().startsWith("<!doctype html")||r.trimStart().toLowerCase().startsWith("<html")?s=`Backend API endpoint returned HTTP ${e.status}. Ensure the quick_pp backend server is running on port 6312.`:s=r.slice(0,200)}return new Error(s||`${t} (HTTP ${e.status})`)}async function H(e,t,r){const s=De(t.method||"GET",e),n=s.silent?null:j.startTask(s.active,s.detail);try{const i=await fetch(e,t);if(!i.ok){const a=await jt(i,r);throw n?j.endTask(n,{level:"error",message:a.message,detail:s.detail??null}):s.silent||j.error(a.message,s.detail),a}return n&&j.endTask(n,{level:"success",message:s.done,detail:s.detail??null,silent:s.silent}),i}catch(i){throw n&&j.activeTasks.some(a=>a.id===n)&&j.endTask(n,{level:"error",message:i?.message||r,detail:s.detail??null}),i}}async function Ft(e,t,r,s,n){const i=`${D}/quick_pp/database/projects/${e}/wells/${encodeURIComponent(t)}/${r}`;return(await H(i,{method:"POST",credentials:"include",headers:z({"Content-Type":"application/json"}),body:JSON.stringify({[s]:n})},`Failed to save ${r}`)).json()}async function Bt(e,t,r,s){const n=`${D}/quick_pp/database/projects/${e}/wells/${encodeURIComponent(t)}/${r}/${encodeURIComponent(String(s))}`;return(await H(n,{method:"DELETE",credentials:"include",headers:z()},`Failed to delete ${r} item`)).json()}async function fe(e){const t=e.startsWith("http")?e:`${D}${e}`;return(await H(t,{method:"GET",credentials:"include",headers:z()},"Request failed")).json()}async function K(e,t={}){const r=e.startsWith("http")?e:`${D}${e}`;return(await H(r,{method:"POST",credentials:"include",headers:z({"Content-Type":"application/json"}),body:JSON.stringify(t)},"Request failed")).json()}async function Mt(e,t={}){const r=e.startsWith("http")?e:`${D}${e}`;return(await H(r,{method:"PATCH",credentials:"include",headers:z({"Content-Type":"application/json"}),body:JSON.stringify(t)},"Request failed")).json()}async function Pt(e){const t=e.startsWith("http")?e:`${D}${e}`;return(await H(t,{method:"DELETE",credentials:"include",headers:z()},"Request failed")).json()}const Gt=K;class It{#e=A(null);get user(){return p(this.#e)}set user(t){g(this.#e,t,!0)}#t=A(null);get token(){return p(this.#t)}set token(t){g(this.#t,t,!0)}#r=A("0.3.2");get appVersion(){return p(this.#r)}set appVersion(t){g(this.#r,t,!0)}#s=A(!0);get isInitializing(){return p(this.#s)}set isInitializing(t){g(this.#s,t,!0)}#i=A(!1);get uamModalOpen(){return p(this.#i)}set uamModalOpen(t){g(this.#i,t,!0)}#n=A(!1);get accountModalOpen(){return p(this.#n)}set accountModalOpen(t){g(this.#n,t,!0)}#a=A(!1);get smtpConfigured(){return p(this.#a)}set smtpConfigured(t){g(this.#a,t,!0)}#o=A(null);get smtpHost(){return p(this.#o)}set smtpHost(t){g(this.#o,t,!0)}#l=R(()=>!!(this.user&&this.token));get isAuthenticated(){return p(this.#l)}set isAuthenticated(t){g(this.#l,t)}#u=R(()=>this.user?.role==="admin");get isAdmin(){return p(this.#u)}set isAdmin(t){g(this.#u,t)}#c=R(()=>!!this.user?.demo_mode);get isDemoMode(){return p(this.#c)}set isDemoMode(t){g(this.#c,t)}#d=R(()=>{if(!this.user)return"QP";const t=(this.user.full_name||this.user.username||"U").trim(),r=t.split(/\s+/);return r.length>=2?(r[0][0]+r[1][0]).toUpperCase():t.slice(0,2).toUpperCase()});get userInitials(){return p(this.#d)}set userInitials(t){g(this.#d,t)}async initialize(){this.isInitializing=!0;try{const t=me();this.token=t;const r=await fe("/quick_pp/auth/me");return r?.version&&(this.appVersion=r.version),r?.user?(this.user=r.user,r.user.demo_mode?(te(null),this.token="demo-session"):this.token||(this.token="cookie-session"),!0):(this.clearSession(),!1)}catch{return this.clearSession(),!1}finally{this.isInitializing=!1}}setAuthenticated(t,r){r.demo_mode?(te(null),this.token="demo-session"):(te(t),this.token=t),this.user=r}clearSession(){te(null),this.token=null,this.user=null,this.uamModalOpen=!1,this.accountModalOpen=!1}async logout(){if(this.isDemoMode){await ke("/");return}try{await K("/quick_pp/auth/logout",{})}catch{}this.clearSession(),await ke("/login")}getProjectRole(t){if(!this.user)return"viewer";if(this.user.role==="admin")return"admin";if(!t)return"viewer";const r=Number(t);return this.user.project_memberships?.find(n=>n.project_id===r)?.role??"viewer"}canEditProject(t){const r=this.getProjectRole(t);return r==="admin"||r==="editor"}async listUsers(){const t=await fe("/quick_pp/uam/users");return this.smtpConfigured=!!t.smtp_configured,this.smtpHost=t.smtp_host??null,t.users||[]}async inviteUser(t){const r=typeof window<"u"?window.location.origin:void 0;return K("/quick_pp/uam/users/invite",{...t,base_url:r})}async reinviteUser(t){const r=typeof window<"u"?encodeURIComponent(window.location.origin):"";return K(`/quick_pp/uam/users/${t}/reinvite?base_url=${r}`,{})}async resetUserMfa(t){return(await K(`/quick_pp/uam/users/${t}/reset-mfa`,{})).user}async updateUser(t,r){const s=await Mt(`/quick_pp/uam/users/${t}`,r);return this.user&&this.user.user_id===t&&(this.user=s.user),s.user}async deleteUser(t){await Pt(`/quick_pp/uam/users/${t}`)}async listAuditLogs(t=50){return(await fe(`/quick_pp/uam/audit-logs?limit=${t}`)).logs||[]}}const Vt=new It;export{D as A,Vt as a,ht as b,ct as c,Ht as d,qt as e,Rt as f,fe as g,j as h,Ft as i,Mt as j,Pt as k,z as l,Ie as m,re as n,Gt as o,K as p,Dt as q,vt as r,se as s,pt as t,Wt as u,ut as v,zt as w,Nt as x,Bt as y};
|
|
Binary file
|