zenml-nightly 0.58.2.dev20240626__py3-none-any.whl → 0.61.0.dev20240710__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- README.md +30 -9
- RELEASE_NOTES.md +240 -0
- zenml/VERSION +1 -1
- zenml/analytics/enums.py +3 -0
- zenml/cli/__init__.py +28 -0
- zenml/cli/artifact.py +1 -2
- zenml/cli/integration.py +9 -8
- zenml/cli/server.py +6 -0
- zenml/cli/stack.py +797 -39
- zenml/cli/stack_components.py +7 -0
- zenml/cli/text_utils.py +35 -1
- zenml/cli/utils.py +127 -10
- zenml/client.py +23 -14
- zenml/config/docker_settings.py +8 -5
- zenml/constants.py +5 -1
- zenml/container_registries/base_container_registry.py +1 -0
- zenml/enums.py +6 -0
- zenml/event_hub/event_hub.py +5 -8
- zenml/integrations/aws/__init__.py +1 -0
- zenml/integrations/azure/__init__.py +1 -0
- zenml/integrations/deepchecks/__init__.py +1 -0
- zenml/integrations/discord/__init__.py +1 -0
- zenml/integrations/evidently/__init__.py +1 -0
- zenml/integrations/facets/__init__.py +1 -0
- zenml/integrations/feast/__init__.py +1 -0
- zenml/integrations/gcp/__init__.py +3 -1
- zenml/integrations/gcp/google_credentials_mixin.py +1 -1
- zenml/integrations/gcp/service_connectors/gcp_service_connector.py +266 -58
- zenml/integrations/huggingface/__init__.py +1 -0
- zenml/integrations/integration.py +24 -0
- zenml/integrations/kubeflow/__init__.py +3 -0
- zenml/integrations/kubeflow/flavors/kubeflow_orchestrator_flavor.py +1 -1
- zenml/integrations/kubeflow/orchestrators/kubeflow_orchestrator.py +0 -1
- zenml/integrations/kubernetes/__init__.py +3 -1
- zenml/integrations/kubernetes/orchestrators/kube_utils.py +4 -1
- zenml/integrations/label_studio/annotators/label_studio_annotator.py +1 -0
- zenml/integrations/langchain/__init__.py +1 -0
- zenml/integrations/mlflow/__init__.py +3 -1
- zenml/integrations/neural_prophet/__init__.py +1 -0
- zenml/integrations/polars/__init__.py +1 -0
- zenml/integrations/prodigy/__init__.py +1 -0
- zenml/integrations/pycaret/__init__.py +6 -0
- zenml/integrations/registry.py +37 -0
- zenml/integrations/s3/artifact_stores/s3_artifact_store.py +17 -6
- zenml/integrations/seldon/__init__.py +1 -0
- zenml/integrations/seldon/model_deployers/seldon_model_deployer.py +1 -0
- zenml/integrations/skypilot/flavors/skypilot_orchestrator_base_vm_config.py +2 -2
- zenml/integrations/skypilot/orchestrators/skypilot_base_vm_orchestrator.py +1 -1
- zenml/integrations/skypilot/orchestrators/skypilot_orchestrator_entrypoint.py +2 -2
- zenml/integrations/skypilot_aws/__init__.py +2 -1
- zenml/integrations/skypilot_azure/__init__.py +1 -1
- zenml/integrations/skypilot_gcp/__init__.py +1 -1
- zenml/integrations/skypilot_lambda/__init__.py +1 -1
- zenml/integrations/skypilot_lambda/flavors/skypilot_orchestrator_lambda_vm_flavor.py +1 -1
- zenml/integrations/slack/__init__.py +1 -0
- zenml/integrations/tekton/__init__.py +1 -0
- zenml/integrations/tensorboard/__init__.py +0 -1
- zenml/integrations/tensorflow/__init__.py +18 -6
- zenml/integrations/wandb/__init__.py +1 -0
- zenml/models/__init__.py +9 -0
- zenml/models/v2/core/component.py +18 -0
- zenml/models/v2/core/model.py +1 -2
- zenml/models/v2/core/service_connector.py +17 -0
- zenml/models/v2/core/stack.py +31 -0
- zenml/models/v2/misc/full_stack.py +97 -0
- zenml/models/v2/misc/stack_deployment.py +66 -0
- zenml/new/pipelines/pipeline.py +1 -1
- zenml/orchestrators/input_utils.py +3 -6
- zenml/stack/stack.py +3 -6
- zenml/stack_deployments/__init__.py +14 -0
- zenml/stack_deployments/aws_stack_deployment.py +289 -0
- zenml/stack_deployments/stack_deployment.py +130 -0
- zenml/stack_deployments/utils.py +40 -0
- zenml/utils/function_utils.py +1 -1
- zenml/utils/pagination_utils.py +7 -5
- zenml/utils/pipeline_docker_image_builder.py +97 -68
- zenml/utils/pydantic_utils.py +6 -5
- zenml/zen_server/cloud_utils.py +18 -3
- zenml/zen_server/dashboard/assets/{404-CDPQCl4D.js → 404-DpJaNHKF.js} +1 -1
- zenml/zen_server/dashboard/assets/@radix-CFOkMR_E.js +85 -0
- zenml/zen_server/dashboard/assets/{@react-router-DYovave8.js → @react-router-CO-OsFwI.js} +2 -2
- zenml/zen_server/dashboard/assets/{@reactflow-CHBapDaj.js → @reactflow-DJfzkHO1.js} +2 -2
- zenml/zen_server/dashboard/assets/@tanstack-DYiOyJUL.js +22 -0
- zenml/zen_server/dashboard/assets/AwarenessChannel-BYDLT2xC.js +1 -0
- zenml/zen_server/dashboard/assets/{CodeSnippet-BidtnWOi.js → CodeSnippet-BkOuRmyq.js} +2 -2
- zenml/zen_server/dashboard/assets/Commands-ZvWR1BRs.js +1 -0
- zenml/zen_server/dashboard/assets/CopyButton-DVwLkafa.js +2 -0
- zenml/zen_server/dashboard/assets/{CsvVizualization-BOuez-fG.js → CsvVizualization-C2IiqX4I.js} +7 -7
- zenml/zen_server/dashboard/assets/DisplayDate-DYgIjlDF.js +1 -0
- zenml/zen_server/dashboard/assets/EmptyState-BMLnFVlB.js +1 -0
- zenml/zen_server/dashboard/assets/Error-CqX0VqW_.js +1 -0
- zenml/zen_server/dashboard/assets/ExecutionStatus-BoLUXR9t.js +1 -0
- zenml/zen_server/dashboard/assets/Helpbox-LFydyVwh.js +1 -0
- zenml/zen_server/dashboard/assets/Infobox-DnENC0sh.js +1 -0
- zenml/zen_server/dashboard/assets/InlineAvatar-CbJtYr0t.js +1 -0
- zenml/zen_server/dashboard/assets/{MarkdownVisualization-DsB2QZiK.js → MarkdownVisualization-xp3hhULl.js} +2 -2
- zenml/zen_server/dashboard/assets/Pagination-DEbVUupy.js +1 -0
- zenml/zen_server/dashboard/assets/PasswordChecker-DUveqlva.js +1 -0
- zenml/zen_server/dashboard/assets/SetPassword-BYBdbQDo.js +1 -0
- zenml/zen_server/dashboard/assets/SuccessStep-Nx743hll.js +1 -0
- zenml/zen_server/dashboard/assets/{UpdatePasswordSchemas-DnM-c11H.js → UpdatePasswordSchemas-DF9gSzE0.js} +1 -1
- zenml/zen_server/dashboard/assets/{aws-t0gKCj_R.js → aws-BgKTfTfx.js} +1 -1
- zenml/zen_server/dashboard/assets/{check-circle-BVvhm5dy.js → check-circle-i56092KI.js} +1 -1
- zenml/zen_server/dashboard/assets/{chevron-down-zcvCWmyP.js → chevron-down-D_ZlKMqH.js} +1 -1
- zenml/zen_server/dashboard/assets/{chevron-right-double-CJ50E9Gr.js → chevron-right-double-BiEMg7rd.js} +1 -1
- zenml/zen_server/dashboard/assets/cloud-only-DVbIeckv.js +1 -0
- zenml/zen_server/dashboard/assets/{copy-BRhQz3j-.js → copy-BXNk6BjL.js} +1 -1
- zenml/zen_server/dashboard/assets/{database-CRRnyFWh.js → database-1xWSgZfO.js} +1 -1
- zenml/zen_server/dashboard/assets/{docker-BAonhm6G.js → docker-CQMVm_4d.js} +1 -1
- zenml/zen_server/dashboard/assets/{file-text-CbVERUON.js → file-text-CqD_iu6l.js} +1 -1
- zenml/zen_server/dashboard/assets/{help-B8rqCvqn.js → help-bu_DgLKI.js} +1 -1
- zenml/zen_server/dashboard/assets/index-C_CrU4vI.js +1 -0
- zenml/zen_server/dashboard/assets/index-DK1ynKjA.js +55 -0
- zenml/zen_server/dashboard/assets/index-inApY3KQ.css +1 -0
- zenml/zen_server/dashboard/assets/index-rK_Wuy2W.js +1 -0
- zenml/zen_server/dashboard/assets/index.esm-Corw4lXQ.js +1 -0
- zenml/zen_server/dashboard/assets/{login-mutation-wzzl23C6.js → login-mutation-BUnVASxp.js} +1 -1
- zenml/zen_server/dashboard/assets/not-found-B4VnX8gK.js +1 -0
- zenml/zen_server/dashboard/assets/package-CsUhPmou.js +1 -0
- zenml/zen_server/dashboard/assets/{page-BmkSiYeQ.js → page-3efNCDeb.js} +2 -2
- zenml/zen_server/dashboard/assets/page-7zTHbhhI.js +1 -0
- zenml/zen_server/dashboard/assets/page-BEs6jK71.js +1 -0
- zenml/zen_server/dashboard/assets/page-BpSqIf4B.js +1 -0
- zenml/zen_server/dashboard/assets/{page-AQKopn_4.js → page-Bx6o0ARS.js} +1 -1
- zenml/zen_server/dashboard/assets/page-C43QGHTt.js +9 -0
- zenml/zen_server/dashboard/assets/page-CR0OG7ss.js +1 -0
- zenml/zen_server/dashboard/assets/page-CRTJ0UuR.js +1 -0
- zenml/zen_server/dashboard/assets/page-CUZIGO-3.js +1 -0
- zenml/zen_server/dashboard/assets/page-CaopxiU1.js +1 -0
- zenml/zen_server/dashboard/assets/{page-CuT1SUik.js → page-Cx67M0QT.js} +1 -1
- zenml/zen_server/dashboard/assets/page-D7Z399xy.js +1 -0
- zenml/zen_server/dashboard/assets/page-D93kd7Xj.js +1 -0
- zenml/zen_server/dashboard/assets/{page-BzVZGExK.js → page-DKlIdAe5.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-Bi5AI0S7.js → page-DMOYZppS.js} +1 -1
- zenml/zen_server/dashboard/assets/page-DMsSn3dv.js +2 -0
- zenml/zen_server/dashboard/assets/{page-BW6Ket3a.js → page-Dc_7KMQE.js} +1 -1
- zenml/zen_server/dashboard/assets/page-DvCvroOM.js +1 -0
- zenml/zen_server/dashboard/assets/page-Hus2pr9T.js +1 -0
- zenml/zen_server/dashboard/assets/page-JyfeDUfu.js +1 -0
- zenml/zen_server/dashboard/assets/{page-yN4rZ-ZS.js → page-Sxn82W-5.js} +1 -1
- zenml/zen_server/dashboard/assets/page-TKXERe16.js +1 -0
- zenml/zen_server/dashboard/assets/page-Xu8JEjSU.js +1 -0
- zenml/zen_server/dashboard/assets/{play-circle-DK5QMJyp.js → play-circle-CNtZKDnW.js} +1 -1
- zenml/zen_server/dashboard/assets/plus-DOeLmm7C.js +1 -0
- zenml/zen_server/dashboard/assets/{terminal-B2ovgWuz.js → terminal-By9cErXc.js} +1 -1
- zenml/zen_server/dashboard/assets/{update-server-settings-mutation-0Wgz8pUE.js → update-server-settings-mutation-CR8e3Sir.js} +1 -1
- zenml/zen_server/dashboard/assets/{url-6_xv0WJS.js → url-DuQMeqYA.js} +1 -1
- zenml/zen_server/dashboard/assets/{zod-DrZvVLjd.js → zod-BhoGpZ63.js} +1 -1
- zenml/zen_server/dashboard/index.html +7 -7
- zenml/zen_server/dashboard_legacy/asset-manifest.json +4 -4
- zenml/zen_server/dashboard_legacy/index.html +1 -1
- zenml/zen_server/dashboard_legacy/{precache-manifest.f4abc5b7cfa7d90c1caf5521918e29a8.js → precache-manifest.c8c57fb0d2132b1d3c2119e776b7dfb3.js} +4 -4
- zenml/zen_server/dashboard_legacy/service-worker.js +1 -1
- zenml/zen_server/dashboard_legacy/static/js/{main.ac2f17d0.chunk.js → main.382439a7.chunk.js} +2 -2
- zenml/zen_server/dashboard_legacy/static/js/{main.ac2f17d0.chunk.js.map → main.382439a7.chunk.js.map} +1 -1
- zenml/zen_server/deploy/helm/Chart.yaml +1 -1
- zenml/zen_server/deploy/helm/README.md +2 -2
- zenml/zen_server/feature_gate/zenml_cloud_feature_gate.py +11 -5
- zenml/zen_server/pipeline_deployment/utils.py +57 -44
- zenml/zen_server/rbac/zenml_cloud_rbac.py +11 -5
- zenml/zen_server/routers/stack_deployment_endpoints.py +144 -0
- zenml/zen_server/routers/workspaces_endpoints.py +64 -0
- zenml/zen_server/zen_server_api.py +2 -0
- zenml/zen_stores/migrations/utils.py +1 -1
- zenml/zen_stores/migrations/versions/0.60.0_release.py +23 -0
- zenml/zen_stores/migrations/versions/0.61.0_release.py +23 -0
- zenml/zen_stores/migrations/versions/0d707865f404_adding_labels_to_stacks.py +30 -0
- zenml/zen_stores/rest_zen_store.py +117 -0
- zenml/zen_stores/schemas/stack_schemas.py +10 -0
- zenml/zen_stores/schemas/step_run_schemas.py +27 -11
- zenml/zen_stores/sql_zen_store.py +283 -0
- zenml/zen_stores/zen_store_interface.py +79 -0
- {zenml_nightly-0.58.2.dev20240626.dist-info → zenml_nightly-0.61.0.dev20240710.dist-info}/METADATA +32 -10
- {zenml_nightly-0.58.2.dev20240626.dist-info → zenml_nightly-0.61.0.dev20240710.dist-info}/RECORD +177 -162
- zenml/zen_server/dashboard/assets/@radix-C9DBgJhe.js +0 -77
- zenml/zen_server/dashboard/assets/@tanstack-CEbkxrhX.js +0 -30
- zenml/zen_server/dashboard/assets/AwarenessChannel-nXGpmj_f.js +0 -1
- zenml/zen_server/dashboard/assets/Cards-nwsvQLVS.js +0 -1
- zenml/zen_server/dashboard/assets/Commands-DuIWKg_Q.js +0 -1
- zenml/zen_server/dashboard/assets/CopyButton-B_YSm-Ds.js +0 -2
- zenml/zen_server/dashboard/assets/DisplayDate-BdguISQF.js +0 -1
- zenml/zen_server/dashboard/assets/EmptyState-BkooiGtL.js +0 -1
- zenml/zen_server/dashboard/assets/Error-B6M0dPph.js +0 -1
- zenml/zen_server/dashboard/assets/Helpbox-BQoqCm04.js +0 -1
- zenml/zen_server/dashboard/assets/Infobox-Ce9mefqU.js +0 -1
- zenml/zen_server/dashboard/assets/InlineAvatar-DGf3dVhV.js +0 -1
- zenml/zen_server/dashboard/assets/PageHeader-DGaemzjc.js +0 -1
- zenml/zen_server/dashboard/assets/Pagination-DVYfBCCc.js +0 -1
- zenml/zen_server/dashboard/assets/PasswordChecker-DSLBp7Vl.js +0 -1
- zenml/zen_server/dashboard/assets/SetPassword-B5s7DJug.js +0 -1
- zenml/zen_server/dashboard/assets/SuccessStep-ZzczaM7g.js +0 -1
- zenml/zen_server/dashboard/assets/cloud-only-Ba_ShBR5.js +0 -1
- zenml/zen_server/dashboard/assets/index-CWJ3xbIf.css +0 -1
- zenml/zen_server/dashboard/assets/index-QORVVTMN.js +0 -55
- zenml/zen_server/dashboard/assets/index.esm-F7nqy9zY.js +0 -1
- zenml/zen_server/dashboard/assets/not-found-Dh2la7kh.js +0 -1
- zenml/zen_server/dashboard/assets/page-B-5jAKoO.js +0 -1
- zenml/zen_server/dashboard/assets/page-B-vWk8a6.js +0 -1
- zenml/zen_server/dashboard/assets/page-B0BrqfS8.js +0 -1
- zenml/zen_server/dashboard/assets/page-BQxVFlUl.js +0 -1
- zenml/zen_server/dashboard/assets/page-ByrHy6Ss.js +0 -1
- zenml/zen_server/dashboard/assets/page-CPtY4Kv_.js +0 -1
- zenml/zen_server/dashboard/assets/page-CmmukLsl.js +0 -1
- zenml/zen_server/dashboard/assets/page-D2D-7qyr.js +0 -9
- zenml/zen_server/dashboard/assets/page-DAQQyLxT.js +0 -1
- zenml/zen_server/dashboard/assets/page-DHkUMl_E.js +0 -1
- zenml/zen_server/dashboard/assets/page-DZCbwOEs.js +0 -2
- zenml/zen_server/dashboard/assets/page-DdaIt20-.js +0 -1
- zenml/zen_server/dashboard/assets/page-LqLs24Ot.js +0 -1
- zenml/zen_server/dashboard/assets/page-lebv0c7C.js +0 -1
- {zenml_nightly-0.58.2.dev20240626.dist-info → zenml_nightly-0.61.0.dev20240710.dist-info}/LICENSE +0 -0
- {zenml_nightly-0.58.2.dev20240626.dist-info → zenml_nightly-0.61.0.dev20240710.dist-info}/WHEEL +0 -0
- {zenml_nightly-0.58.2.dev20240626.dist-info → zenml_nightly-0.61.0.dev20240710.dist-info}/entry_points.txt +0 -0
@@ -1,30 +0,0 @@
|
|
1
|
-
var ct=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var u=(e,t,n)=>(ct(e,t,"read from private field"),n?n.call(e):t.get(e)),C=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},v=(e,t,n,i)=>(ct(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n);var Ze=(e,t,n,i)=>({set _(r){v(e,t,r,n)},get _(){return u(e,t,i)}}),P=(e,t,n)=>(ct(e,t,"access private method"),n);import{r as E}from"./@radix-C9DBgJhe.js";var dn={exports:{}},lt={};/**
|
2
|
-
* @license React
|
3
|
-
* react-jsx-runtime.production.min.js
|
4
|
-
*
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
6
|
-
*
|
7
|
-
* This source code is licensed under the MIT license found in the
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
9
|
-
*/var Hn=E,Gn=Symbol.for("react.element"),zn=Symbol.for("react.fragment"),Tn=Object.prototype.hasOwnProperty,bn=Hn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,qn={key:!0,ref:!0,__self:!0,__source:!0};function cn(e,t,n){var i,r={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(i in t)Tn.call(t,i)&&!qn.hasOwnProperty(i)&&(r[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps,t)r[i]===void 0&&(r[i]=t[i]);return{$$typeof:Gn,type:e,key:s,ref:o,props:r,_owner:bn.current}}lt.Fragment=zn;lt.jsx=cn;lt.jsxs=cn;dn.exports=lt;var Qn=dn.exports,He=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Le=typeof window>"u"||"Deno"in globalThis;function j(){}function Un(e,t){return typeof e=="function"?e(t):e}function yt(e){return typeof e=="number"&&e>=0&&e!==1/0}function gn(e,t){return Math.max(e+(t||0)-Date.now(),0)}function kt(e,t){const{type:n="all",exact:i,fetchStatus:r,predicate:s,queryKey:o,stale:l}=e;if(o){if(i){if(t.queryHash!==Gt(o,t.options))return!1}else if(!be(t.queryKey,o))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||r&&r!==t.state.fetchStatus||s&&!s(t))}function jt(e,t){const{exact:n,status:i,predicate:r,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(ye(t.options.mutationKey)!==ye(s))return!1}else if(!be(t.options.mutationKey,s))return!1}return!(i&&t.state.status!==i||r&&!r(t))}function Gt(e,t){return((t==null?void 0:t.queryKeyHashFn)||ye)(e)}function ye(e){return JSON.stringify(e,(t,n)=>Rt(n)?Object.keys(n).sort().reduce((i,r)=>(i[r]=n[r],i),{}):n)}function be(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!be(e[n],t[n])):!1}function fn(e,t){if(e===t)return e;const n=Bt(e)&&Bt(t);if(n||Rt(e)&&Rt(t)){const i=n?e:Object.keys(e),r=i.length,s=n?t:Object.keys(t),o=s.length,l=n?[]:{};let a=0;for(let g=0;g<o;g++){const f=n?g:s[g];(!n&&i.includes(f)||n)&&e[f]===void 0&&t[f]===void 0?(l[f]=void 0,a++):(l[f]=fn(e[f],t[f]),l[f]===e[f]&&e[f]!==void 0&&a++)}return r===o&&a===r?e:l}return t}function st(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Bt(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Rt(e){if(!Nt(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Nt(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Nt(e){return Object.prototype.toString.call(e)==="[object Object]"}function kn(e){return new Promise(t=>{setTimeout(t,e)})}function wt(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?fn(e,t):t}function jn(e,t,n=0){const i=[...e,t];return n&&i.length>n?i.slice(1):i}function Bn(e,t,n=0){const i=[t,...e];return n&&i.length>n?i.slice(0,-1):i}var hn=Symbol(),pn=(e,t)=>!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===hn?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn,ge,ne,Re,Zt,Nn=(Zt=class extends He{constructor(){super();C(this,ge,void 0);C(this,ne,void 0);C(this,Re,void 0);v(this,Re,t=>{if(!Le&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){u(this,ne)||this.setEventListener(u(this,Re))}onUnsubscribe(){var t;this.hasListeners()||((t=u(this,ne))==null||t.call(this),v(this,ne,void 0))}setEventListener(t){var n;v(this,Re,t),(n=u(this,ne))==null||n.call(this),v(this,ne,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){u(this,ge)!==t&&(v(this,ge,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof u(this,ge)=="boolean"?u(this,ge):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ge=new WeakMap,ne=new WeakMap,Re=new WeakMap,Zt),zt=new Nn,we,ie,Fe,en,Kn=(en=class extends He{constructor(){super();C(this,we,!0);C(this,ie,void 0);C(this,Fe,void 0);v(this,Fe,t=>{if(!Le&&window.addEventListener){const n=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",i)}}})}onSubscribe(){u(this,ie)||this.setEventListener(u(this,Fe))}onUnsubscribe(){var t;this.hasListeners()||((t=u(this,ie))==null||t.call(this),v(this,ie,void 0))}setEventListener(t){var n;v(this,Fe,t),(n=u(this,ie))==null||n.call(this),v(this,ie,t(this.setOnline.bind(this)))}setOnline(t){u(this,we)!==t&&(v(this,we,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return u(this,we)}},we=new WeakMap,ie=new WeakMap,Fe=new WeakMap,en),ot=new Kn;function Xn(e){return Math.min(1e3*2**e,3e4)}function mn(e){return(e??"online")==="online"?ot.isOnline():!0}var vn=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function gt(e){return e instanceof vn}function Sn(e){let t=!1,n=0,i=!1,r,s,o;const l=new Promise((S,_)=>{s=S,o=_}),a=S=>{var _;i||(p(new vn(S)),(_=e.abort)==null||_.call(e))},g=()=>{t=!0},f=()=>{t=!1},h=()=>zt.isFocused()&&(e.networkMode==="always"||ot.isOnline())&&e.canRun(),c=()=>mn(e.networkMode)&&e.canRun(),d=S=>{var _;i||(i=!0,(_=e.onSuccess)==null||_.call(e,S),r==null||r(),s(S))},p=S=>{var _;i||(i=!0,(_=e.onError)==null||_.call(e,S),r==null||r(),o(S))},m=()=>new Promise(S=>{var _;r=y=>{(i||h())&&S(y)},(_=e.onPause)==null||_.call(e)}).then(()=>{var S;r=void 0,i||(S=e.onContinue)==null||S.call(e)}),R=()=>{if(i)return;let S;const _=n===0?e.initialPromise:void 0;try{S=_??e.fn()}catch(y){S=Promise.reject(y)}Promise.resolve(S).then(d).catch(y=>{var M;if(i)return;const $=e.retry??(Le?0:3),I=e.retryDelay??Xn,G=typeof I=="function"?I(n,y):I,U=$===!0||typeof $=="number"&&n<$||typeof $=="function"&&$(n,y);if(t||!U){p(y);return}n++,(M=e.onFail)==null||M.call(e,n,y),kn(G).then(()=>h()?void 0:m()).then(()=>{t?p(y):R()})})};return{promise:l,cancel:a,continue:()=>(r==null||r(),l),cancelRetry:g,continueRetry:f,canStart:c,start:()=>(c()?R():m().then(R),l)}}function Wn(){let e=[],t=0,n=c=>{c()},i=c=>{c()},r=c=>setTimeout(c,0);const s=c=>{r=c},o=c=>{let d;t++;try{d=c()}finally{t--,t||g()}return d},l=c=>{t?e.push(c):r(()=>{n(c)})},a=c=>(...d)=>{l(()=>{c(...d)})},g=()=>{const c=e;e=[],c.length&&r(()=>{i(()=>{c.forEach(d=>{n(d)})})})};return{batch:o,batchCalls:a,schedule:l,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{i=c},setScheduler:s}}var V=Wn(),fe,tn,Cn=(tn=class{constructor(){C(this,fe,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),yt(this.gcTime)&&v(this,fe,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Le?1/0:5*60*1e3))}clearGcTimeout(){u(this,fe)&&(clearTimeout(u(this,fe)),v(this,fe,void 0))}},fe=new WeakMap,tn),_e,Pe,k,A,qe,he,B,Y,nn,Jn=(nn=class extends Cn{constructor(t){super();C(this,B);C(this,_e,void 0);C(this,Pe,void 0);C(this,k,void 0);C(this,A,void 0);C(this,qe,void 0);C(this,he,void 0);v(this,he,!1),v(this,qe,t.defaultOptions),this.setOptions(t.options),this.observers=[],v(this,k,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,v(this,_e,t.state||Yn(this.options)),this.state=u(this,_e),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=u(this,A))==null?void 0:t.promise}setOptions(t){this.options={...u(this,qe),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&u(this,k).remove(this)}setData(t,n){const i=wt(this.state.data,t,this.options);return P(this,B,Y).call(this,{data:i,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),i}setState(t,n){P(this,B,Y).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var i,r;const n=(i=u(this,A))==null?void 0:i.promise;return(r=u(this,A))==null||r.cancel(t),n?n.then(j).catch(j):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(u(this,_e))}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!gn(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(i=>i.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=u(this,A))==null||n.continue()}onOnline(){var n;const t=this.observers.find(i=>i.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=u(this,A))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),u(this,k).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(u(this,A)&&(u(this,he)?u(this,A).cancel({revert:!0}):u(this,A).cancelRetry()),this.scheduleGc()),u(this,k).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||P(this,B,Y).call(this,{type:"invalidate"})}fetch(t,n){var a,g,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(u(this,A))return u(this,A).continueRetry(),u(this,A).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(c=>c.options.queryFn);h&&this.setOptions(h.options)}const i=new AbortController,r=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(v(this,he,!0),i.signal)})},s=()=>{const h=pn(this.options,n),c={queryKey:this.queryKey,meta:this.meta};return r(c),v(this,he,!1),this.options.persister?this.options.persister(h,c,this):h(c)},o={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:s};r(o),(a=this.options.behavior)==null||a.onFetch(o,this),v(this,Pe,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=o.fetchOptions)==null?void 0:g.meta))&&P(this,B,Y).call(this,{type:"fetch",meta:(f=o.fetchOptions)==null?void 0:f.meta});const l=h=>{var c,d,p,m;gt(h)&&h.silent||P(this,B,Y).call(this,{type:"error",error:h}),gt(h)||((d=(c=u(this,k).config).onError)==null||d.call(c,h,this),(m=(p=u(this,k).config).onSettled)==null||m.call(p,this.state.data,h,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return v(this,A,Sn({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,abort:i.abort.bind(i),onSuccess:h=>{var c,d,p,m;if(h===void 0){l(new Error(`${this.queryHash} data is undefined`));return}this.setData(h),(d=(c=u(this,k).config).onSuccess)==null||d.call(c,h,this),(m=(p=u(this,k).config).onSettled)==null||m.call(p,h,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(h,c)=>{P(this,B,Y).call(this,{type:"failed",failureCount:h,error:c})},onPause:()=>{P(this,B,Y).call(this,{type:"pause"})},onContinue:()=>{P(this,B,Y).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),u(this,A).start()}},_e=new WeakMap,Pe=new WeakMap,k=new WeakMap,A=new WeakMap,qe=new WeakMap,he=new WeakMap,B=new WeakSet,Y=function(t){const n=i=>{switch(t.type){case"failed":return{...i,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...yn(i.data,this.options),fetchMeta:t.meta??null};case"success":return{...i,data:t.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=t.error;return gt(r)&&r.revert&&u(this,Pe)?{...u(this,Pe),fetchStatus:"idle"}:{...i,error:r,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...t.state}}};this.state=n(this.state),V.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),u(this,k).notify({query:this,type:"updated",action:t})})},nn);function yn(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:mn(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Yn(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,i=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var K,rn,Zn=(rn=class extends He{constructor(t={}){super();C(this,K,void 0);this.config=t,v(this,K,new Map)}build(t,n,i){const r=n.queryKey,s=n.queryHash??Gt(r,n);let o=this.get(s);return o||(o=new Jn({cache:this,queryKey:r,queryHash:s,options:t.defaultQueryOptions(n),state:i,defaultOptions:t.getQueryDefaults(r)}),this.add(o)),o}add(t){u(this,K).has(t.queryHash)||(u(this,K).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=u(this,K).get(t.queryHash);n&&(t.destroy(),n===t&&u(this,K).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){V.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return u(this,K).get(t)}getAll(){return[...u(this,K).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(i=>kt(n,i))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(i=>kt(t,i)):n}notify(t){V.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){V.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){V.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},K=new WeakMap,rn),X,L,pe,W,te,sn,ei=(sn=class extends Cn{constructor(t){super();C(this,W);C(this,X,void 0);C(this,L,void 0);C(this,pe,void 0);this.mutationId=t.mutationId,v(this,L,t.mutationCache),v(this,X,[]),this.state=t.state||Rn(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){u(this,X).includes(t)||(u(this,X).push(t),this.clearGcTimeout(),u(this,L).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){v(this,X,u(this,X).filter(n=>n!==t)),this.scheduleGc(),u(this,L).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){u(this,X).length||(this.state.status==="pending"?this.scheduleGc():u(this,L).remove(this))}continue(){var t;return((t=u(this,pe))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var r,s,o,l,a,g,f,h,c,d,p,m,R,S,_,y,$,I,G,U;v(this,pe,Sn({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(M,b)=>{P(this,W,te).call(this,{type:"failed",failureCount:M,error:b})},onPause:()=>{P(this,W,te).call(this,{type:"pause"})},onContinue:()=>{P(this,W,te).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>u(this,L).canRun(this)}));const n=this.state.status==="pending",i=!u(this,pe).canStart();try{if(!n){P(this,W,te).call(this,{type:"pending",variables:t,isPaused:i}),await((s=(r=u(this,L).config).onMutate)==null?void 0:s.call(r,t,this));const b=await((l=(o=this.options).onMutate)==null?void 0:l.call(o,t));b!==this.state.context&&P(this,W,te).call(this,{type:"pending",context:b,variables:t,isPaused:i})}const M=await u(this,pe).start();return await((g=(a=u(this,L).config).onSuccess)==null?void 0:g.call(a,M,t,this.state.context,this)),await((h=(f=this.options).onSuccess)==null?void 0:h.call(f,M,t,this.state.context)),await((d=(c=u(this,L).config).onSettled)==null?void 0:d.call(c,M,null,this.state.variables,this.state.context,this)),await((m=(p=this.options).onSettled)==null?void 0:m.call(p,M,null,t,this.state.context)),P(this,W,te).call(this,{type:"success",data:M}),M}catch(M){try{throw await((S=(R=u(this,L).config).onError)==null?void 0:S.call(R,M,t,this.state.context,this)),await((y=(_=this.options).onError)==null?void 0:y.call(_,M,t,this.state.context)),await((I=($=u(this,L).config).onSettled)==null?void 0:I.call($,void 0,M,this.state.variables,this.state.context,this)),await((U=(G=this.options).onSettled)==null?void 0:U.call(G,void 0,M,t,this.state.context)),M}finally{P(this,W,te).call(this,{type:"error",error:M})}}finally{u(this,L).runNext(this)}}},X=new WeakMap,L=new WeakMap,pe=new WeakMap,W=new WeakSet,te=function(t){const n=i=>{switch(t.type){case"failed":return{...i,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...i,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:t.error,failureCount:i.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),V.batch(()=>{u(this,X).forEach(i=>{i.onMutationUpdate(t)}),u(this,L).notify({mutation:this,type:"updated",action:t})})},sn);function Rn(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var q,Qe,on,ti=(on=class extends He{constructor(t={}){super();C(this,q,void 0);C(this,Qe,void 0);this.config=t,v(this,q,new Map),v(this,Qe,Date.now())}build(t,n,i){const r=new ei({mutationCache:this,mutationId:++Ze(this,Qe)._,options:t.defaultMutationOptions(n),state:i});return this.add(r),r}add(t){const n=et(t),i=u(this,q).get(n)??[];i.push(t),u(this,q).set(n,i),this.notify({type:"added",mutation:t})}remove(t){var i;const n=et(t);if(u(this,q).has(n)){const r=(i=u(this,q).get(n))==null?void 0:i.filter(s=>s!==t);r&&(r.length===0?u(this,q).delete(n):u(this,q).set(n,r))}this.notify({type:"removed",mutation:t})}canRun(t){var i;const n=(i=u(this,q).get(et(t)))==null?void 0:i.find(r=>r.state.status==="pending");return!n||n===t}runNext(t){var i;const n=(i=u(this,q).get(et(t)))==null?void 0:i.find(r=>r!==t&&r.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){V.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...u(this,q).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(i=>jt(n,i))}findAll(t={}){return this.getAll().filter(n=>jt(t,n))}notify(t){V.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return V.batch(()=>Promise.all(t.map(n=>n.continue().catch(j))))}},q=new WeakMap,Qe=new WeakMap,on);function et(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function ni(e){return{onFetch:(t,n)=>{const i=async()=>{var p,m,R,S,_;const r=t.options,s=(R=(m=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:m.fetchMore)==null?void 0:R.direction,o=((S=t.state.data)==null?void 0:S.pages)||[],l=((_=t.state.data)==null?void 0:_.pageParams)||[],a={pages:[],pageParams:[]};let g=!1;const f=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},h=pn(t.options,t.fetchOptions),c=async(y,$,I)=>{if(g)return Promise.reject();if($==null&&y.pages.length)return Promise.resolve(y);const G={queryKey:t.queryKey,pageParam:$,direction:I?"backward":"forward",meta:t.options.meta};f(G);const U=await h(G),{maxPages:M}=t.options,b=I?Bn:jn;return{pages:b(y.pages,U,M),pageParams:b(y.pageParams,$,M)}};let d;if(s&&o.length){const y=s==="backward",$=y?ii:Kt,I={pages:o,pageParams:l},G=$(r,I);d=await c(I,G,y)}else{d=await c(a,l[0]??r.initialPageParam);const y=e??o.length;for(let $=1;$<y;$++){const I=Kt(r,d);d=await c(d,I)}}return d};t.options.persister?t.fetchFn=()=>{var r,s;return(s=(r=t.options).persister)==null?void 0:s.call(r,i,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=i}}}function Kt(e,{pages:t,pageParams:n}){const i=t.length-1;return e.getNextPageParam(t[i],t,n[i],n)}function ii(e,{pages:t,pageParams:n}){var i;return(i=e.getPreviousPageParam)==null?void 0:i.call(e,t[0],t,n[0],n)}var O,re,se,Me,$e,oe,xe,Ie,un,dr=(un=class{constructor(e={}){C(this,O,void 0);C(this,re,void 0);C(this,se,void 0);C(this,Me,void 0);C(this,$e,void 0);C(this,oe,void 0);C(this,xe,void 0);C(this,Ie,void 0);v(this,O,e.queryCache||new Zn),v(this,re,e.mutationCache||new ti),v(this,se,e.defaultOptions||{}),v(this,Me,new Map),v(this,$e,new Map),v(this,oe,0)}mount(){Ze(this,oe)._++,u(this,oe)===1&&(v(this,xe,zt.subscribe(async e=>{e&&(await this.resumePausedMutations(),u(this,O).onFocus())})),v(this,Ie,ot.subscribe(async e=>{e&&(await this.resumePausedMutations(),u(this,O).onOnline())})))}unmount(){var e,t;Ze(this,oe)._--,u(this,oe)===0&&((e=u(this,xe))==null||e.call(this),v(this,xe,void 0),(t=u(this,Ie))==null||t.call(this),v(this,Ie,void 0))}isFetching(e){return u(this,O).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return u(this,re).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=u(this,O).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),i=u(this,O).build(this,n);return e.revalidateIfStale&&i.isStaleByTime(n.staleTime)&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return u(this,O).findAll(e).map(({queryKey:t,state:n})=>{const i=n.data;return[t,i]})}setQueryData(e,t,n){const i=this.defaultQueryOptions({queryKey:e}),r=u(this,O).get(i.queryHash),s=r==null?void 0:r.state.data,o=Un(t,s);if(o!==void 0)return u(this,O).build(this,i).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return V.batch(()=>u(this,O).findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=u(this,O).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=u(this,O);V.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=u(this,O),i={type:"active",...e};return V.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries(i,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},i=V.batch(()=>u(this,O).findAll(e).map(r=>r.cancel(n)));return Promise.all(i).then(j).catch(j)}invalidateQueries(e={},t={}){return V.batch(()=>{if(u(this,O).findAll(e).forEach(i=>{i.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},i=V.batch(()=>u(this,O).findAll(e).filter(r=>!r.isDisabled()).map(r=>{let s=r.fetch(void 0,n);return n.throwOnError||(s=s.catch(j)),r.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(i).then(j)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=u(this,O).build(this,t);return n.isStaleByTime(t.staleTime)?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(j).catch(j)}fetchInfiniteQuery(e){return e.behavior=ni(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(j).catch(j)}resumePausedMutations(){return ot.isOnline()?u(this,re).resumePausedMutations():Promise.resolve()}getQueryCache(){return u(this,O)}getMutationCache(){return u(this,re)}getDefaultOptions(){return u(this,se)}setDefaultOptions(e){v(this,se,e)}setQueryDefaults(e,t){u(this,Me).set(ye(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...u(this,Me).values()];let n={};return t.forEach(i=>{be(e,i.queryKey)&&(n={...n,...i.defaultOptions})}),n}setMutationDefaults(e,t){u(this,$e).set(ye(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...u(this,$e).values()];let n={};return t.forEach(i=>{be(e,i.mutationKey)&&(n={...n,...i.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...u(this,se).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Gt(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===hn&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...u(this,se).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){u(this,O).clear(),u(this,re).clear()}},O=new WeakMap,re=new WeakMap,se=new WeakMap,Me=new WeakMap,$e=new WeakMap,oe=new WeakMap,xe=new WeakMap,Ie=new WeakMap,un),z,x,Ue,H,me,Oe,J,ke,Ee,Ve,ve,Se,ue,De,Ce,ze,je,Ft,Be,_t,Ne,Pt,Ke,Mt,Xe,$t,We,xt,Je,It,ut,wn,ln,ri=(ln=class extends He{constructor(t,n){super();C(this,Ce);C(this,je);C(this,Be);C(this,Ne);C(this,Ke);C(this,Xe);C(this,We);C(this,Je);C(this,ut);C(this,z,void 0);C(this,x,void 0);C(this,Ue,void 0);C(this,H,void 0);C(this,me,void 0);C(this,Oe,void 0);C(this,J,void 0);C(this,ke,void 0);C(this,Ee,void 0);C(this,Ve,void 0);C(this,ve,void 0);C(this,Se,void 0);C(this,ue,void 0);C(this,De,new Set);this.options=n,v(this,z,t),v(this,J,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(u(this,x).addObserver(this),Xt(u(this,x),this.options)?P(this,Ce,ze).call(this):this.updateResult(),P(this,Ke,Mt).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ot(u(this,x),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ot(u(this,x),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,P(this,Xe,$t).call(this),P(this,We,xt).call(this),u(this,x).removeObserver(this)}setOptions(t,n){const i=this.options,r=u(this,x);if(this.options=u(this,z).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");P(this,Je,It).call(this),u(this,x).setOptions(this.options),i._defaulted&&!st(this.options,i)&&u(this,z).getQueryCache().notify({type:"observerOptionsUpdated",query:u(this,x),observer:this});const s=this.hasListeners();s&&Wt(u(this,x),r,this.options,i)&&P(this,Ce,ze).call(this),this.updateResult(n),s&&(u(this,x)!==r||this.options.enabled!==i.enabled||this.options.staleTime!==i.staleTime)&&P(this,je,Ft).call(this);const o=P(this,Be,_t).call(this);s&&(u(this,x)!==r||this.options.enabled!==i.enabled||o!==u(this,ue))&&P(this,Ne,Pt).call(this,o)}getOptimisticResult(t){const n=u(this,z).getQueryCache().build(u(this,z),t),i=this.createResult(n,t);return oi(this,i)&&(v(this,H,i),v(this,Oe,this.options),v(this,me,u(this,x).state)),i}getCurrentResult(){return u(this,H)}trackResult(t,n){const i={};return Object.keys(t).forEach(r=>{Object.defineProperty(i,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),n==null||n(r),t[r])})}),i}trackProp(t){u(this,De).add(t)}getCurrentQuery(){return u(this,x)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=u(this,z).defaultQueryOptions(t),i=u(this,z).getQueryCache().build(u(this,z),n);return i.isFetchingOptimistic=!0,i.fetch().then(()=>this.createResult(i,n))}fetch(t){return P(this,Ce,ze).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),u(this,H)))}createResult(t,n){var U;const i=u(this,x),r=this.options,s=u(this,H),o=u(this,me),l=u(this,Oe),g=t!==i?t.state:u(this,Ue),{state:f}=t;let h={...f},c=!1,d;if(n._optimisticResults){const M=this.hasListeners(),b=!M&&Xt(t,n),dt=M&&Wt(t,i,n,r);(b||dt)&&(h={...h,...yn(f.data,t.options)}),n._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:p,errorUpdatedAt:m,status:R}=h;if(n.select&&h.data!==void 0)if(s&&h.data===(o==null?void 0:o.data)&&n.select===u(this,ke))d=u(this,Ee);else try{v(this,ke,n.select),d=n.select(h.data),d=wt(s==null?void 0:s.data,d,n),v(this,Ee,d),v(this,J,null)}catch(M){v(this,J,M)}else d=h.data;if(n.placeholderData!==void 0&&d===void 0&&R==="pending"){let M;if(s!=null&&s.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData))M=s.data;else if(M=typeof n.placeholderData=="function"?n.placeholderData((U=u(this,Ve))==null?void 0:U.state.data,u(this,Ve)):n.placeholderData,n.select&&M!==void 0)try{M=n.select(M),v(this,J,null)}catch(b){v(this,J,b)}M!==void 0&&(R="success",d=wt(s==null?void 0:s.data,M,n),c=!0)}u(this,J)&&(p=u(this,J),d=u(this,Ee),m=Date.now(),R="error");const S=h.fetchStatus==="fetching",_=R==="pending",y=R==="error",$=_&&S,I=d!==void 0;return{status:R,fetchStatus:h.fetchStatus,isPending:_,isSuccess:R==="success",isError:y,isInitialLoading:$,isLoading:$,data:d,dataUpdatedAt:h.dataUpdatedAt,error:p,errorUpdatedAt:m,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>g.dataUpdateCount||h.errorUpdateCount>g.errorUpdateCount,isFetching:S,isRefetching:S&&!_,isLoadingError:y&&!I,isPaused:h.fetchStatus==="paused",isPlaceholderData:c,isRefetchError:y&&I,isStale:Tt(t,n),refetch:this.refetch}}updateResult(t){const n=u(this,H),i=this.createResult(u(this,x),this.options);if(v(this,me,u(this,x).state),v(this,Oe,this.options),u(this,me).data!==void 0&&v(this,Ve,u(this,x)),st(i,n))return;v(this,H,i);const r={},s=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,l=typeof o=="function"?o():o;if(l==="all"||!l&&!u(this,De).size)return!0;const a=new Set(l??u(this,De));return this.options.throwOnError&&a.add("error"),Object.keys(u(this,H)).some(g=>{const f=g;return u(this,H)[f]!==n[f]&&a.has(f)})};(t==null?void 0:t.listeners)!==!1&&s()&&(r.listeners=!0),P(this,ut,wn).call(this,{...r,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&P(this,Ke,Mt).call(this)}},z=new WeakMap,x=new WeakMap,Ue=new WeakMap,H=new WeakMap,me=new WeakMap,Oe=new WeakMap,J=new WeakMap,ke=new WeakMap,Ee=new WeakMap,Ve=new WeakMap,ve=new WeakMap,Se=new WeakMap,ue=new WeakMap,De=new WeakMap,Ce=new WeakSet,ze=function(t){P(this,Je,It).call(this);let n=u(this,x).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(j)),n},je=new WeakSet,Ft=function(){if(P(this,Xe,$t).call(this),Le||u(this,H).isStale||!yt(this.options.staleTime))return;const n=gn(u(this,H).dataUpdatedAt,this.options.staleTime)+1;v(this,ve,setTimeout(()=>{u(this,H).isStale||this.updateResult()},n))},Be=new WeakSet,_t=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(u(this,x)):this.options.refetchInterval)??!1},Ne=new WeakSet,Pt=function(t){P(this,We,xt).call(this),v(this,ue,t),!(Le||this.options.enabled===!1||!yt(u(this,ue))||u(this,ue)===0)&&v(this,Se,setInterval(()=>{(this.options.refetchIntervalInBackground||zt.isFocused())&&P(this,Ce,ze).call(this)},u(this,ue)))},Ke=new WeakSet,Mt=function(){P(this,je,Ft).call(this),P(this,Ne,Pt).call(this,P(this,Be,_t).call(this))},Xe=new WeakSet,$t=function(){u(this,ve)&&(clearTimeout(u(this,ve)),v(this,ve,void 0))},We=new WeakSet,xt=function(){u(this,Se)&&(clearInterval(u(this,Se)),v(this,Se,void 0))},Je=new WeakSet,It=function(){const t=u(this,z).getQueryCache().build(u(this,z),this.options);if(t===u(this,x))return;const n=u(this,x);v(this,x,t),v(this,Ue,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},ut=new WeakSet,wn=function(t){V.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(u(this,H))}),u(this,z).getQueryCache().notify({query:u(this,x),type:"observerResultsUpdated"})})},ln);function si(e,t){return t.enabled!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Xt(e,t){return si(e,t)||e.state.data!==void 0&&Ot(e,t,t.refetchOnMount)}function Ot(e,t,n){if(t.enabled!==!1){const i=typeof n=="function"?n(e):n;return i==="always"||i!==!1&&Tt(e,t)}return!1}function Wt(e,t,n,i){return(e!==t||i.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&Tt(e,n)}function Tt(e,t){return t.enabled!==!1&&e.isStaleByTime(t.staleTime)}function oi(e,t){return!st(e.getCurrentResult(),t)}var le,ae,T,ee,Ae,rt,Ye,Et,an,ui=(an=class extends He{constructor(t,n){super();C(this,Ae);C(this,Ye);C(this,le,void 0);C(this,ae,void 0);C(this,T,void 0);C(this,ee,void 0);v(this,le,t),this.setOptions(n),this.bindMethods(),P(this,Ae,rt).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var i;const n=this.options;this.options=u(this,le).defaultMutationOptions(t),st(this.options,n)||u(this,le).getMutationCache().notify({type:"observerOptionsUpdated",mutation:u(this,T),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&ye(n.mutationKey)!==ye(this.options.mutationKey)?this.reset():((i=u(this,T))==null?void 0:i.state.status)==="pending"&&u(this,T).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=u(this,T))==null||t.removeObserver(this)}onMutationUpdate(t){P(this,Ae,rt).call(this),P(this,Ye,Et).call(this,t)}getCurrentResult(){return u(this,ae)}reset(){var t;(t=u(this,T))==null||t.removeObserver(this),v(this,T,void 0),P(this,Ae,rt).call(this),P(this,Ye,Et).call(this)}mutate(t,n){var i;return v(this,ee,n),(i=u(this,T))==null||i.removeObserver(this),v(this,T,u(this,le).getMutationCache().build(u(this,le),this.options)),u(this,T).addObserver(this),u(this,T).execute(t)}},le=new WeakMap,ae=new WeakMap,T=new WeakMap,ee=new WeakMap,Ae=new WeakSet,rt=function(){var n;const t=((n=u(this,T))==null?void 0:n.state)??Rn();v(this,ae,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},Ye=new WeakSet,Et=function(t){V.batch(()=>{var n,i,r,s,o,l,a,g;if(u(this,ee)&&this.hasListeners()){const f=u(this,ae).variables,h=u(this,ae).context;(t==null?void 0:t.type)==="success"?((i=(n=u(this,ee)).onSuccess)==null||i.call(n,t.data,f,h),(s=(r=u(this,ee)).onSettled)==null||s.call(r,t.data,null,f,h)):(t==null?void 0:t.type)==="error"&&((l=(o=u(this,ee)).onError)==null||l.call(o,t.error,f,h),(g=(a=u(this,ee)).onSettled)==null||g.call(a,void 0,t.error,f,h))}this.listeners.forEach(f=>{f(u(this,ae))})})},an),Fn=E.createContext(void 0),_n=e=>{const t=E.useContext(Fn);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},cr=({client:e,children:t})=>(E.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),Qn.jsx(Fn.Provider,{value:e,children:t})),Pn=E.createContext(!1),li=()=>E.useContext(Pn);Pn.Provider;function ai(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var di=E.createContext(ai()),ci=()=>E.useContext(di);function Mn(e,t){return typeof e=="function"?e(...t):!!e}function gi(){}var fi=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},hi=e=>{E.useEffect(()=>{e.clearReset()},[e])},pi=({result:e,errorResetBoundary:t,throwOnError:n,query:i})=>e.isError&&!t.isReset()&&!e.isFetching&&i&&Mn(n,[e.error,i]),mi=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},vi=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Si=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Ci(e,t,n){const i=_n(n),r=li(),s=ci(),o=i.defaultQueryOptions(e);o._optimisticResults=r?"isRestoring":"optimistic",mi(o),fi(o,s),hi(s);const[l]=E.useState(()=>new t(i,o)),a=l.getOptimisticResult(o);if(E.useSyncExternalStore(E.useCallback(g=>{const f=r?()=>{}:l.subscribe(V.batchCalls(g));return l.updateResult(),f},[l,r]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),E.useEffect(()=>{l.setOptions(o,{listeners:!1})},[o,l]),vi(o,a))throw Si(o,l,s);if(pi({result:a,errorResetBoundary:s,throwOnError:o.throwOnError,query:i.getQueryCache().get(o.queryHash)}))throw a.error;return o.notifyOnChangeProps?a:l.trackResult(a)}function gr(e,t){return Ci(e,ri,t)}function fr(e,t){const n=_n(t),[i]=E.useState(()=>new ui(n,e));E.useEffect(()=>{i.setOptions(e)},[i,e]);const r=E.useSyncExternalStore(E.useCallback(o=>i.subscribe(V.batchCalls(o)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),s=E.useCallback((o,l)=>{i.mutate(o,l).catch(gi)},[i]);if(r.error&&Mn(i.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:s,mutateAsync:r.mutate}}/**
|
10
|
-
* table-core
|
11
|
-
*
|
12
|
-
* Copyright (c) TanStack
|
13
|
-
*
|
14
|
-
* This source code is licensed under the MIT license found in the
|
15
|
-
* LICENSE.md file in the root directory of this source tree.
|
16
|
-
*
|
17
|
-
* @license MIT
|
18
|
-
*/function de(e,t){return typeof e=="function"?e(t):e}function Q(e,t){return n=>{t.setState(i=>({...i,[e]:de(n,i[e])}))}}function at(e){return e instanceof Function}function yi(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function Ri(e,t){const n=[],i=r=>{r.forEach(s=>{n.push(s);const o=t(s);o!=null&&o.length&&i(o)})};return i(e),n}function w(e,t,n){let i=[],r;return s=>{let o;n.key&&n.debug&&(o=Date.now());const l=e(s);if(!(l.length!==i.length||l.some((f,h)=>i[h]!==f)))return r;i=l;let g;if(n.key&&n.debug&&(g=Date.now()),r=t(...l),n==null||n.onChange==null||n.onChange(r),n.key&&n.debug&&n!=null&&n.debug()){const f=Math.round((Date.now()-o)*100)/100,h=Math.round((Date.now()-g)*100)/100,c=h/16,d=(p,m)=>{for(p=String(p);p.length<m;)p=" "+p;return p};console.info(`%c⏱ ${d(h,5)} /${d(f,5)} ms`,`
|
19
|
-
font-size: .6rem;
|
20
|
-
font-weight: bold;
|
21
|
-
color: hsl(${Math.max(0,Math.min(120-120*c,120))}deg 100% 31%);`,n==null?void 0:n.key)}return r}}function F(e,t,n,i){return{debug:()=>{var r;return(r=e==null?void 0:e.debugAll)!=null?r:e[t]},key:!1,onChange:i}}function wi(e,t,n,i){const r=()=>{var o;return(o=s.getValue())!=null?o:e.options.renderFallbackValue},s={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(i),renderValue:r,getContext:w(()=>[e,n,t,s],(o,l,a,g)=>({table:o,column:l,row:a,cell:g,getValue:g.getValue,renderValue:g.renderValue}),F(e.options,"debugCells"))};return e._features.forEach(o=>{o.createCell==null||o.createCell(s,n,t,e)},{}),s}function Fi(e,t,n,i){var r,s;const l={...e._getDefaultColumnDef(),...t},a=l.accessorKey;let g=(r=(s=l.id)!=null?s:a?a.replace(".","_"):void 0)!=null?r:typeof l.header=="string"?l.header:void 0,f;if(l.accessorFn?f=l.accessorFn:a&&(a.includes(".")?f=c=>{let d=c;for(const m of a.split(".")){var p;d=(p=d)==null?void 0:p[m]}return d}:f=c=>c[l.accessorKey]),!g)throw new Error;let h={id:`${String(g)}`,accessorFn:f,parent:i,depth:n,columnDef:l,columns:[],getFlatColumns:w(()=>[!0],()=>{var c;return[h,...(c=h.columns)==null?void 0:c.flatMap(d=>d.getFlatColumns())]},F(e.options,"debugColumns")),getLeafColumns:w(()=>[e._getOrderColumnsFn()],c=>{var d;if((d=h.columns)!=null&&d.length){let p=h.columns.flatMap(m=>m.getLeafColumns());return c(p)}return[h]},F(e.options,"debugColumns"))};for(const c of e._features)c.createColumn==null||c.createColumn(h,e);return h}const D="debugHeaders";function Jt(e,t,n){var i;let s={id:(i=n.id)!=null?i:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const o=[],l=a=>{a.subHeaders&&a.subHeaders.length&&a.subHeaders.map(l),o.push(a)};return l(s),o},getContext:()=>({table:e,header:s,column:t})};return e._features.forEach(o=>{o.createHeader==null||o.createHeader(s,e)}),s}const _i={createTable:e=>{e.getHeaderGroups=w(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,i,r)=>{var s,o;const l=(s=i==null?void 0:i.map(h=>n.find(c=>c.id===h)).filter(Boolean))!=null?s:[],a=(o=r==null?void 0:r.map(h=>n.find(c=>c.id===h)).filter(Boolean))!=null?o:[],g=n.filter(h=>!(i!=null&&i.includes(h.id))&&!(r!=null&&r.includes(h.id)));return tt(t,[...l,...g,...a],e)},F(e.options,D)),e.getCenterHeaderGroups=w(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,i,r)=>(n=n.filter(s=>!(i!=null&&i.includes(s.id))&&!(r!=null&&r.includes(s.id))),tt(t,n,e,"center")),F(e.options,D)),e.getLeftHeaderGroups=w(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,i)=>{var r;const s=(r=i==null?void 0:i.map(o=>n.find(l=>l.id===o)).filter(Boolean))!=null?r:[];return tt(t,s,e,"left")},F(e.options,D)),e.getRightHeaderGroups=w(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,i)=>{var r;const s=(r=i==null?void 0:i.map(o=>n.find(l=>l.id===o)).filter(Boolean))!=null?r:[];return tt(t,s,e,"right")},F(e.options,D)),e.getFooterGroups=w(()=>[e.getHeaderGroups()],t=>[...t].reverse(),F(e.options,D)),e.getLeftFooterGroups=w(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),F(e.options,D)),e.getCenterFooterGroups=w(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),F(e.options,D)),e.getRightFooterGroups=w(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),F(e.options,D)),e.getFlatHeaders=w(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),F(e.options,D)),e.getLeftFlatHeaders=w(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),F(e.options,D)),e.getCenterFlatHeaders=w(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),F(e.options,D)),e.getRightFlatHeaders=w(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),F(e.options,D)),e.getCenterLeafHeaders=w(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var i;return!((i=n.subHeaders)!=null&&i.length)}),F(e.options,D)),e.getLeftLeafHeaders=w(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var i;return!((i=n.subHeaders)!=null&&i.length)}),F(e.options,D)),e.getRightLeafHeaders=w(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var i;return!((i=n.subHeaders)!=null&&i.length)}),F(e.options,D)),e.getLeafHeaders=w(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,i)=>{var r,s,o,l,a,g;return[...(r=(s=t[0])==null?void 0:s.headers)!=null?r:[],...(o=(l=n[0])==null?void 0:l.headers)!=null?o:[],...(a=(g=i[0])==null?void 0:g.headers)!=null?a:[]].map(f=>f.getLeafHeaders()).flat()},F(e.options,D))}};function tt(e,t,n,i){var r,s;let o=0;const l=function(c,d){d===void 0&&(d=1),o=Math.max(o,d),c.filter(p=>p.getIsVisible()).forEach(p=>{var m;(m=p.columns)!=null&&m.length&&l(p.columns,d+1)},0)};l(e);let a=[];const g=(c,d)=>{const p={depth:d,id:[i,`${d}`].filter(Boolean).join("_"),headers:[]},m=[];c.forEach(R=>{const S=[...m].reverse()[0],_=R.column.depth===p.depth;let y,$=!1;if(_&&R.column.parent?y=R.column.parent:(y=R.column,$=!0),S&&(S==null?void 0:S.column)===y)S.subHeaders.push(R);else{const I=Jt(n,y,{id:[i,d,y.id,R==null?void 0:R.id].filter(Boolean).join("_"),isPlaceholder:$,placeholderId:$?`${m.filter(G=>G.column===y).length}`:void 0,depth:d,index:m.length});I.subHeaders.push(R),m.push(I)}p.headers.push(R),R.headerGroup=p}),a.push(p),d>0&&g(m,d-1)},f=t.map((c,d)=>Jt(n,c,{depth:o,index:d}));g(f,o-1),a.reverse();const h=c=>c.filter(p=>p.column.getIsVisible()).map(p=>{let m=0,R=0,S=[0];p.subHeaders&&p.subHeaders.length?(S=[],h(p.subHeaders).forEach(y=>{let{colSpan:$,rowSpan:I}=y;m+=$,S.push(I)})):m=1;const _=Math.min(...S);return R=R+_,p.colSpan=m,p.rowSpan=R,{colSpan:m,rowSpan:R}});return h((r=(s=a[0])==null?void 0:s.headers)!=null?r:[]),a}const Pi=(e,t,n,i,r,s,o)=>{let l={id:t,index:i,original:n,depth:r,parentId:o,_valuesCache:{},_uniqueValuesCache:{},getValue:a=>{if(l._valuesCache.hasOwnProperty(a))return l._valuesCache[a];const g=e.getColumn(a);if(g!=null&&g.accessorFn)return l._valuesCache[a]=g.accessorFn(l.original,i),l._valuesCache[a]},getUniqueValues:a=>{if(l._uniqueValuesCache.hasOwnProperty(a))return l._uniqueValuesCache[a];const g=e.getColumn(a);if(g!=null&&g.accessorFn)return g.columnDef.getUniqueValues?(l._uniqueValuesCache[a]=g.columnDef.getUniqueValues(l.original,i),l._uniqueValuesCache[a]):(l._uniqueValuesCache[a]=[l.getValue(a)],l._uniqueValuesCache[a])},renderValue:a=>{var g;return(g=l.getValue(a))!=null?g:e.options.renderFallbackValue},subRows:s??[],getLeafRows:()=>Ri(l.subRows,a=>a.subRows),getParentRow:()=>l.parentId?e.getRow(l.parentId,!0):void 0,getParentRows:()=>{let a=[],g=l;for(;;){const f=g.getParentRow();if(!f)break;a.push(f),g=f}return a.reverse()},getAllCells:w(()=>[e.getAllLeafColumns()],a=>a.map(g=>wi(e,l,g,g.id)),F(e.options,"debugRows")),_getAllCellsByColumnId:w(()=>[l.getAllCells()],a=>a.reduce((g,f)=>(g[f.column.id]=f,g),{}),F(e.options,"debugRows"))};for(let a=0;a<e._features.length;a++){const g=e._features[a];g==null||g.createRow==null||g.createRow(l,e)}return l},Mi={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},$n=(e,t,n)=>{var i;const r=n.toLowerCase();return!!(!((i=e.getValue(t))==null||(i=i.toString())==null||(i=i.toLowerCase())==null)&&i.includes(r))};$n.autoRemove=e=>N(e);const xn=(e,t,n)=>{var i;return!!(!((i=e.getValue(t))==null||(i=i.toString())==null)&&i.includes(n))};xn.autoRemove=e=>N(e);const In=(e,t,n)=>{var i;return((i=e.getValue(t))==null||(i=i.toString())==null?void 0:i.toLowerCase())===(n==null?void 0:n.toLowerCase())};In.autoRemove=e=>N(e);const On=(e,t,n)=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(n)};On.autoRemove=e=>N(e)||!(e!=null&&e.length);const En=(e,t,n)=>!n.some(i=>{var r;return!((r=e.getValue(t))!=null&&r.includes(i))});En.autoRemove=e=>N(e)||!(e!=null&&e.length);const Vn=(e,t,n)=>n.some(i=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(i)});Vn.autoRemove=e=>N(e)||!(e!=null&&e.length);const Dn=(e,t,n)=>e.getValue(t)===n;Dn.autoRemove=e=>N(e);const An=(e,t,n)=>e.getValue(t)==n;An.autoRemove=e=>N(e);const bt=(e,t,n)=>{let[i,r]=n;const s=e.getValue(t);return s>=i&&s<=r};bt.resolveFilterValue=e=>{let[t,n]=e,i=typeof t!="number"?parseFloat(t):t,r=typeof n!="number"?parseFloat(n):n,s=t===null||Number.isNaN(i)?-1/0:i,o=n===null||Number.isNaN(r)?1/0:r;if(s>o){const l=s;s=o,o=l}return[s,o]};bt.autoRemove=e=>N(e)||N(e[0])&&N(e[1]);const Z={includesString:$n,includesStringSensitive:xn,equalsString:In,arrIncludes:On,arrIncludesAll:En,arrIncludesSome:Vn,equals:Dn,weakEquals:An,inNumberRange:bt};function N(e){return e==null||e===""}const $i={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Q("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],i=n==null?void 0:n.getValue(e.id);return typeof i=="string"?Z.includesString:typeof i=="number"?Z.inNumberRange:typeof i=="boolean"||i!==null&&typeof i=="object"?Z.equals:Array.isArray(i)?Z.arrIncludes:Z.weakEquals},e.getFilterFn=()=>{var n,i;return at(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(i=t.options.filterFns)==null?void 0:i[e.columnDef.filterFn])!=null?n:Z[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,i,r;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((i=t.options.enableColumnFilters)!=null?i:!0)&&((r=t.options.enableFilters)!=null?r:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(i=>i.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,i;return(n=(i=t.getState().columnFilters)==null?void 0:i.findIndex(r=>r.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(i=>{const r=e.getFilterFn(),s=i==null?void 0:i.find(f=>f.id===e.id),o=de(n,s?s.value:void 0);if(Yt(r,o,e)){var l;return(l=i==null?void 0:i.filter(f=>f.id!==e.id))!=null?l:[]}const a={id:e.id,value:o};if(s){var g;return(g=i==null?void 0:i.map(f=>f.id===e.id?a:f))!=null?g:[]}return i!=null&&i.length?[...i,a]:[a]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),i=r=>{var s;return(s=de(t,r))==null?void 0:s.filter(o=>{const l=n.find(a=>a.id===o.id);if(l){const a=l.getFilterFn();if(Yt(a,o.value,l))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(i)},e.resetColumnFilters=t=>{var n,i;e.setColumnFilters(t?[]:(n=(i=e.initialState)==null?void 0:i.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function Yt(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const xi=(e,t,n)=>n.reduce((i,r)=>{const s=r.getValue(e);return i+(typeof s=="number"?s:0)},0),Ii=(e,t,n)=>{let i;return n.forEach(r=>{const s=r.getValue(e);s!=null&&(i>s||i===void 0&&s>=s)&&(i=s)}),i},Oi=(e,t,n)=>{let i;return n.forEach(r=>{const s=r.getValue(e);s!=null&&(i<s||i===void 0&&s>=s)&&(i=s)}),i},Ei=(e,t,n)=>{let i,r;return n.forEach(s=>{const o=s.getValue(e);o!=null&&(i===void 0?o>=o&&(i=r=o):(i>o&&(i=o),r<o&&(r=o)))}),[i,r]},Vi=(e,t)=>{let n=0,i=0;if(t.forEach(r=>{let s=r.getValue(e);s!=null&&(s=+s)>=s&&(++n,i+=s)}),n)return i/n},Di=(e,t)=>{if(!t.length)return;const n=t.map(s=>s.getValue(e));if(!yi(n))return;if(n.length===1)return n[0];const i=Math.floor(n.length/2),r=n.sort((s,o)=>s-o);return n.length%2!==0?r[i]:(r[i-1]+r[i])/2},Ai=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),Li=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,Hi=(e,t)=>t.length,ft={sum:xi,min:Ii,max:Oi,extent:Ei,mean:Vi,median:Di,unique:Ai,uniqueCount:Li,count:Hi},Gi={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Q("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(i=>i!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,i;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((i=t.options.enableGrouping)!=null?i:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],i=n==null?void 0:n.getValue(e.id);if(typeof i=="number")return ft.sum;if(Object.prototype.toString.call(i)==="[object Date]")return ft.extent},e.getAggregationFn=()=>{var n,i;if(!e)throw new Error;return at(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(i=t.options.aggregationFns)==null?void 0:i[e.columnDef.aggregationFn])!=null?n:ft[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,i;e.setGrouping(t?[]:(n=(i=e.initialState)==null?void 0:i.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const i=t.getColumn(n);return i!=null&&i.columnDef.getGroupingValue?(e._groupingValuesCache[n]=i.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,i)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var r;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((r=n.subRows)!=null&&r.length)}}};function zi(e,t,n){if(!(t!=null&&t.length)||!n)return e;const i=e.filter(s=>!t.includes(s.id));return n==="remove"?i:[...t.map(s=>e.find(o=>o.id===s)).filter(Boolean),...i]}const Ti={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Q("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=w(n=>[Te(t,n)],n=>n.findIndex(i=>i.id===e.id),F(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var i;return((i=Te(t,n)[0])==null?void 0:i.id)===e.id},e.getIsLastColumn=n=>{var i;const r=Te(t,n);return((i=r[r.length-1])==null?void 0:i.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=w(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,i)=>r=>{let s=[];if(!(t!=null&&t.length))s=r;else{const o=[...t],l=[...r];for(;l.length&&o.length;){const a=o.shift(),g=l.findIndex(f=>f.id===a);g>-1&&s.push(l.splice(g,1)[0])}s=[...s,...l]}return zi(s,n,i)},F(e.options,"debugTable"))}},ht=()=>({left:[],right:[]}),bi={getInitialState:e=>({columnPinning:ht(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Q("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const i=e.getLeafColumns().map(r=>r.id).filter(Boolean);t.setColumnPinning(r=>{var s,o;if(n==="right"){var l,a;return{left:((l=r==null?void 0:r.left)!=null?l:[]).filter(h=>!(i!=null&&i.includes(h))),right:[...((a=r==null?void 0:r.right)!=null?a:[]).filter(h=>!(i!=null&&i.includes(h))),...i]}}if(n==="left"){var g,f;return{left:[...((g=r==null?void 0:r.left)!=null?g:[]).filter(h=>!(i!=null&&i.includes(h))),...i],right:((f=r==null?void 0:r.right)!=null?f:[]).filter(h=>!(i!=null&&i.includes(h)))}}return{left:((s=r==null?void 0:r.left)!=null?s:[]).filter(h=>!(i!=null&&i.includes(h))),right:((o=r==null?void 0:r.right)!=null?o:[]).filter(h=>!(i!=null&&i.includes(h)))}})},e.getCanPin=()=>e.getLeafColumns().some(i=>{var r,s,o;return((r=i.columnDef.enablePinning)!=null?r:!0)&&((s=(o=t.options.enableColumnPinning)!=null?o:t.options.enablePinning)!=null?s:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(l=>l.id),{left:i,right:r}=t.getState().columnPinning,s=n.some(l=>i==null?void 0:i.includes(l)),o=n.some(l=>r==null?void 0:r.includes(l));return s?"left":o?"right":!1},e.getPinnedIndex=()=>{var n,i;const r=e.getIsPinned();return r?(n=(i=t.getState().columnPinning)==null||(i=i[r])==null?void 0:i.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=w(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,i,r)=>{const s=[...i??[],...r??[]];return n.filter(o=>!s.includes(o.column.id))},F(t.options,"debugRows")),e.getLeftVisibleCells=w(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,i)=>(i??[]).map(s=>n.find(o=>o.column.id===s)).filter(Boolean).map(s=>({...s,position:"left"})),F(t.options,"debugRows")),e.getRightVisibleCells=w(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,i)=>(i??[]).map(s=>n.find(o=>o.column.id===s)).filter(Boolean).map(s=>({...s,position:"right"})),F(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,i;return e.setColumnPinning(t?ht():(n=(i=e.initialState)==null?void 0:i.columnPinning)!=null?n:ht())},e.getIsSomeColumnsPinned=t=>{var n;const i=e.getState().columnPinning;if(!t){var r,s;return!!((r=i.left)!=null&&r.length||(s=i.right)!=null&&s.length)}return!!((n=i[t])!=null&&n.length)},e.getLeftLeafColumns=w(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(i=>t.find(r=>r.id===i)).filter(Boolean),F(e.options,"debugColumns")),e.getRightLeafColumns=w(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(i=>t.find(r=>r.id===i)).filter(Boolean),F(e.options,"debugColumns")),e.getCenterLeafColumns=w(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,i)=>{const r=[...n??[],...i??[]];return t.filter(s=>!r.includes(s.id))},F(e.options,"debugColumns"))}},nt={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},pt=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),qi={getDefaultColumnDef:()=>nt,getInitialState:e=>({columnSizing:{},columnSizingInfo:pt(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Q("columnSizing",e),onColumnSizingInfoChange:Q("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,i,r;const s=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:nt.minSize,(i=s??e.columnDef.size)!=null?i:nt.size),(r=e.columnDef.maxSize)!=null?r:nt.maxSize)},e.getStart=w(n=>[n,Te(t,n),t.getState().columnSizing],(n,i)=>i.slice(0,e.getIndex(n)).reduce((r,s)=>r+s.getSize(),0),F(t.options,"debugColumns")),e.getAfter=w(n=>[n,Te(t,n),t.getState().columnSizing],(n,i)=>i.slice(e.getIndex(n)+1).reduce((r,s)=>r+s.getSize(),0),F(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:i,...r}=n;return r})},e.getCanResize=()=>{var n,i;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((i=t.options.enableColumnResizing)!=null?i:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const i=r=>{if(r.subHeaders.length)r.subHeaders.forEach(i);else{var s;n+=(s=r.column.getSize())!=null?s:0}};return i(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const i=t.getColumn(e.column.id),r=i==null?void 0:i.getCanResize();return s=>{if(!i||!r||(s.persist==null||s.persist(),mt(s)&&s.touches&&s.touches.length>1))return;const o=e.getSize(),l=e?e.getLeafHeaders().map(S=>[S.column.id,S.column.getSize()]):[[i.id,i.getSize()]],a=mt(s)?Math.round(s.touches[0].clientX):s.clientX,g={},f=(S,_)=>{typeof _=="number"&&(t.setColumnSizingInfo(y=>{var $,I;const G=t.options.columnResizeDirection==="rtl"?-1:1,U=(_-(($=y==null?void 0:y.startOffset)!=null?$:0))*G,M=Math.max(U/((I=y==null?void 0:y.startSize)!=null?I:0),-.999999);return y.columnSizingStart.forEach(b=>{let[dt,Ut]=b;g[dt]=Math.round(Math.max(Ut+Ut*M,0)*100)/100}),{...y,deltaOffset:U,deltaPercentage:M}}),(t.options.columnResizeMode==="onChange"||S==="end")&&t.setColumnSizing(y=>({...y,...g})))},h=S=>f("move",S),c=S=>{f("end",S),t.setColumnSizingInfo(_=>({..._,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},d=n||typeof document<"u"?document:null,p={moveHandler:S=>h(S.clientX),upHandler:S=>{d==null||d.removeEventListener("mousemove",p.moveHandler),d==null||d.removeEventListener("mouseup",p.upHandler),c(S.clientX)}},m={moveHandler:S=>(S.cancelable&&(S.preventDefault(),S.stopPropagation()),h(S.touches[0].clientX),!1),upHandler:S=>{var _;d==null||d.removeEventListener("touchmove",m.moveHandler),d==null||d.removeEventListener("touchend",m.upHandler),S.cancelable&&(S.preventDefault(),S.stopPropagation()),c((_=S.touches[0])==null?void 0:_.clientX)}},R=Qi()?{passive:!1}:!1;mt(s)?(d==null||d.addEventListener("touchmove",m.moveHandler,R),d==null||d.addEventListener("touchend",m.upHandler,R)):(d==null||d.addEventListener("mousemove",p.moveHandler,R),d==null||d.addEventListener("mouseup",p.upHandler,R)),t.setColumnSizingInfo(S=>({...S,startOffset:a,startSize:o,deltaOffset:0,deltaPercentage:0,columnSizingStart:l,isResizingColumn:i.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?pt():(n=e.initialState.columnSizingInfo)!=null?n:pt())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((i,r)=>i+r.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((i,r)=>i+r.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((i,r)=>i+r.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((i,r)=>i+r.getSize(),0))!=null?t:0}}};let it=null;function Qi(){if(typeof it=="boolean")return it;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return it=e,it}function mt(e){return e.type==="touchstart"}const Ui={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Q("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(i=>({...i,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,i;const r=e.columns;return(n=r.length?r.some(s=>s.getIsVisible()):(i=t.getState().columnVisibility)==null?void 0:i[e.id])!=null?n:!0},e.getCanHide=()=>{var n,i;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((i=t.options.enableHiding)!=null?i:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=w(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(i=>i.column.getIsVisible()),F(t.options,"debugRows")),e.getVisibleCells=w(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,i,r)=>[...n,...i,...r],F(t.options,"debugRows"))},createTable:e=>{const t=(n,i)=>w(()=>[i(),i().filter(r=>r.getIsVisible()).map(r=>r.id).join("_")],r=>r.filter(s=>s.getIsVisible==null?void 0:s.getIsVisible()),F(e.options,"debugColumns"));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var i;e.setColumnVisibility(n?{}:(i=e.initialState.columnVisibility)!=null?i:{})},e.toggleAllColumnsVisible=n=>{var i;n=(i=n)!=null?i:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((r,s)=>({...r,[s.id]:n||!(s.getCanHide!=null&&s.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var i;e.toggleAllColumnsVisible((i=n.target)==null?void 0:i.checked)}}};function Te(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const ki={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},ji={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Q("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const i=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof i=="string"||typeof i=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,i,r,s;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((i=t.options.enableGlobalFilter)!=null?i:!0)&&((r=t.options.enableFilters)!=null?r:!0)&&((s=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?s:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Z.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:i}=e.options;return at(i)?i:i==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[i])!=null?t:Z[i]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},Bi={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Q("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var i,r;if(!t){e._queue(()=>{t=!0});return}if((i=(r=e.options.autoResetAll)!=null?r:e.options.autoResetExpanded)!=null?i:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=i=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(i),e.toggleAllRowsExpanded=i=>{i??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=i=>{var r,s;e.setExpanded(i?{}:(r=(s=e.initialState)==null?void 0:s.expanded)!=null?r:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(i=>i.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>i=>{i.persist==null||i.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const i=e.getState().expanded;return i===!0||Object.values(i).some(Boolean)},e.getIsAllRowsExpanded=()=>{const i=e.getState().expanded;return typeof i=="boolean"?i===!0:!(!Object.keys(i).length||e.getRowModel().flatRows.some(r=>!r.getIsExpanded()))},e.getExpandedDepth=()=>{let i=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(s=>{const o=s.split(".");i=Math.max(i,o.length)}),i},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(i=>{var r;const s=i===!0?!0:!!(i!=null&&i[e.id]);let o={};if(i===!0?Object.keys(t.getRowModel().rowsById).forEach(l=>{o[l]=!0}):o=i,n=(r=n)!=null?r:!s,!s&&n)return{...o,[e.id]:!0};if(s&&!n){const{[e.id]:l,...a}=o;return a}return i})},e.getIsExpanded=()=>{var n;const i=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:i===!0||i!=null&&i[e.id])},e.getCanExpand=()=>{var n,i,r;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((i=t.options.enableExpanding)!=null?i:!0)&&!!((r=e.subRows)!=null&&r.length)},e.getIsAllParentsExpanded=()=>{let n=!0,i=e;for(;n&&i.parentId;)i=t.getRow(i.parentId,!0),n=i.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},Vt=0,Dt=10,vt=()=>({pageIndex:Vt,pageSize:Dt}),Ni={getInitialState:e=>({...e,pagination:{...vt(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Q("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var i,r;if(!t){e._queue(()=>{t=!0});return}if((i=(r=e.options.autoResetAll)!=null?r:e.options.autoResetPageIndex)!=null?i:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=i=>{const r=s=>de(i,s);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(r)},e.resetPagination=i=>{var r;e.setPagination(i?vt():(r=e.initialState.pagination)!=null?r:vt())},e.setPageIndex=i=>{e.setPagination(r=>{let s=de(i,r.pageIndex);const o=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return s=Math.max(0,Math.min(s,o)),{...r,pageIndex:s}})},e.resetPageIndex=i=>{var r,s;e.setPageIndex(i?Vt:(r=(s=e.initialState)==null||(s=s.pagination)==null?void 0:s.pageIndex)!=null?r:Vt)},e.resetPageSize=i=>{var r,s;e.setPageSize(i?Dt:(r=(s=e.initialState)==null||(s=s.pagination)==null?void 0:s.pageSize)!=null?r:Dt)},e.setPageSize=i=>{e.setPagination(r=>{const s=Math.max(1,de(i,r.pageSize)),o=r.pageSize*r.pageIndex,l=Math.floor(o/s);return{...r,pageIndex:l,pageSize:s}})},e.setPageCount=i=>e.setPagination(r=>{var s;let o=de(i,(s=e.options.pageCount)!=null?s:-1);return typeof o=="number"&&(o=Math.max(-1,o)),{...r,pageCount:o}}),e.getPageOptions=w(()=>[e.getPageCount()],i=>{let r=[];return i&&i>0&&(r=[...new Array(i)].fill(null).map((s,o)=>o)),r},F(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:i}=e.getState().pagination,r=e.getPageCount();return r===-1?!0:r===0?!1:i<r-1},e.previousPage=()=>e.setPageIndex(i=>i-1),e.nextPage=()=>e.setPageIndex(i=>i+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var i;return(i=e.options.pageCount)!=null?i:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var i;return(i=e.options.rowCount)!=null?i:e.getPrePaginationRowModel().rows.length}}},St=()=>({top:[],bottom:[]}),Ki={getInitialState:e=>({rowPinning:St(),...e}),getDefaultOptions:e=>({onRowPinningChange:Q("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,i,r)=>{const s=i?e.getLeafRows().map(a=>{let{id:g}=a;return g}):[],o=r?e.getParentRows().map(a=>{let{id:g}=a;return g}):[],l=new Set([...o,e.id,...s]);t.setRowPinning(a=>{var g,f;if(n==="bottom"){var h,c;return{top:((h=a==null?void 0:a.top)!=null?h:[]).filter(m=>!(l!=null&&l.has(m))),bottom:[...((c=a==null?void 0:a.bottom)!=null?c:[]).filter(m=>!(l!=null&&l.has(m))),...Array.from(l)]}}if(n==="top"){var d,p;return{top:[...((d=a==null?void 0:a.top)!=null?d:[]).filter(m=>!(l!=null&&l.has(m))),...Array.from(l)],bottom:((p=a==null?void 0:a.bottom)!=null?p:[]).filter(m=>!(l!=null&&l.has(m)))}}return{top:((g=a==null?void 0:a.top)!=null?g:[]).filter(m=>!(l!=null&&l.has(m))),bottom:((f=a==null?void 0:a.bottom)!=null?f:[]).filter(m=>!(l!=null&&l.has(m)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:i,enablePinning:r}=t.options;return typeof i=="function"?i(e):(n=i??r)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:i,bottom:r}=t.getState().rowPinning,s=n.some(l=>i==null?void 0:i.includes(l)),o=n.some(l=>r==null?void 0:r.includes(l));return s?"top":o?"bottom":!1},e.getPinnedIndex=()=>{var n,i;const r=e.getIsPinned();if(!r)return-1;const s=(n=t._getPinnedRows(r))==null?void 0:n.map(o=>{let{id:l}=o;return l});return(i=s==null?void 0:s.indexOf(e.id))!=null?i:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,i;return e.setRowPinning(t?St():(n=(i=e.initialState)==null?void 0:i.rowPinning)!=null?n:St())},e.getIsSomeRowsPinned=t=>{var n;const i=e.getState().rowPinning;if(!t){var r,s;return!!((r=i.top)!=null&&r.length||(s=i.bottom)!=null&&s.length)}return!!((n=i[t])!=null&&n.length)},e._getPinnedRows=w(t=>[e.getRowModel().rows,e.getState().rowPinning[t],t],(t,n,i)=>{var r;return((r=e.options.keepPinnedRows)==null||r?(n??[]).map(o=>{const l=e.getRow(o,!0);return l.getIsAllParentsExpanded()?l:null}):(n??[]).map(o=>t.find(l=>l.id===o))).filter(Boolean).map(o=>({...o,position:i}))},F(e.options,"debugRows")),e.getTopRows=()=>e._getPinnedRows("top"),e.getBottomRows=()=>e._getPinnedRows("bottom"),e.getCenterRows=w(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,i)=>{const r=new Set([...n??[],...i??[]]);return t.filter(s=>!r.has(s.id))},F(e.options,"debugRows"))}},Xi={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Q("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const i={...n},r=e.getPreGroupedRowModel().flatRows;return t?r.forEach(s=>{s.getCanSelect()&&(i[s.id]=!0)}):r.forEach(s=>{delete i[s.id]}),i})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const i=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),r={...n};return e.getRowModel().rows.forEach(s=>{At(r,s.id,i,!0,e)}),r}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=w(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?Ct(e,n):{rows:[],flatRows:[],rowsById:{}},F(e.options,"debugTable")),e.getFilteredSelectedRowModel=w(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?Ct(e,n):{rows:[],flatRows:[],rowsById:{}},F(e.options,"debugTable")),e.getGroupedSelectedRowModel=w(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?Ct(e,n):{rows:[],flatRows:[],rowsById:{}},F(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let i=!!(t.length&&Object.keys(n).length);return i&&t.some(r=>r.getCanSelect()&&!n[r.id])&&(i=!1),i},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(r=>r.getCanSelect()),{rowSelection:n}=e.getState();let i=!!t.length;return i&&t.some(r=>!n[r.id])&&(i=!1),i},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,i)=>{const r=e.getIsSelected();t.setRowSelection(s=>{var o;if(n=typeof n<"u"?n:!r,e.getCanSelect()&&r===n)return s;const l={...s};return At(l,e.id,n,(o=i==null?void 0:i.selectChildren)!=null?o:!0,t),l})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return qt(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return Lt(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return Lt(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return i=>{var r;n&&e.toggleSelected((r=i.target)==null?void 0:r.checked)}}}},At=(e,t,n,i,r)=>{var s;const o=r.getRow(t,!0);n?(o.getCanMultiSelect()||Object.keys(e).forEach(l=>delete e[l]),o.getCanSelect()&&(e[t]=!0)):delete e[t],i&&(s=o.subRows)!=null&&s.length&&o.getCanSelectSubRows()&&o.subRows.forEach(l=>At(e,l.id,n,i,r))};function Ct(e,t){const n=e.getState().rowSelection,i=[],r={},s=function(o,l){return o.map(a=>{var g;const f=qt(a,n);if(f&&(i.push(a),r[a.id]=a),(g=a.subRows)!=null&&g.length&&(a={...a,subRows:s(a.subRows)}),f)return a}).filter(Boolean)};return{rows:s(t.rows),flatRows:i,rowsById:r}}function qt(e,t){var n;return(n=t[e.id])!=null?n:!1}function Lt(e,t,n){var i;if(!((i=e.subRows)!=null&&i.length))return!1;let r=!0,s=!1;return e.subRows.forEach(o=>{if(!(s&&!r)&&(o.getCanSelect()&&(qt(o,t)?s=!0:r=!1),o.subRows&&o.subRows.length)){const l=Lt(o,t);l==="all"?s=!0:(l==="some"&&(s=!0),r=!1)}}),r?"all":s?"some":!1}const Ht=/([0-9]+)/gm,Wi=(e,t,n)=>Ln(ce(e.getValue(n)).toLowerCase(),ce(t.getValue(n)).toLowerCase()),Ji=(e,t,n)=>Ln(ce(e.getValue(n)),ce(t.getValue(n))),Yi=(e,t,n)=>Qt(ce(e.getValue(n)).toLowerCase(),ce(t.getValue(n)).toLowerCase()),Zi=(e,t,n)=>Qt(ce(e.getValue(n)),ce(t.getValue(n))),er=(e,t,n)=>{const i=e.getValue(n),r=t.getValue(n);return i>r?1:i<r?-1:0},tr=(e,t,n)=>Qt(e.getValue(n),t.getValue(n));function Qt(e,t){return e===t?0:e>t?1:-1}function ce(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function Ln(e,t){const n=e.split(Ht).filter(Boolean),i=t.split(Ht).filter(Boolean);for(;n.length&&i.length;){const r=n.shift(),s=i.shift(),o=parseInt(r,10),l=parseInt(s,10),a=[o,l].sort();if(isNaN(a[0])){if(r>s)return 1;if(s>r)return-1;continue}if(isNaN(a[1]))return isNaN(o)?-1:1;if(o>l)return 1;if(l>o)return-1}return n.length-i.length}const Ge={alphanumeric:Wi,alphanumericCaseSensitive:Ji,text:Yi,textCaseSensitive:Zi,datetime:er,basic:tr},nr={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Q("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let i=!1;for(const r of n){const s=r==null?void 0:r.getValue(e.id);if(Object.prototype.toString.call(s)==="[object Date]")return Ge.datetime;if(typeof s=="string"&&(i=!0,s.split(Ht).length>1))return Ge.alphanumeric}return i?Ge.text:Ge.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,i;if(!e)throw new Error;return at(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(i=t.options.sortingFns)==null?void 0:i[e.columnDef.sortingFn])!=null?n:Ge[e.columnDef.sortingFn]},e.toggleSorting=(n,i)=>{const r=e.getNextSortingOrder(),s=typeof n<"u"&&n!==null;t.setSorting(o=>{const l=o==null?void 0:o.find(d=>d.id===e.id),a=o==null?void 0:o.findIndex(d=>d.id===e.id);let g=[],f,h=s?n:r==="desc";if(o!=null&&o.length&&e.getCanMultiSort()&&i?l?f="toggle":f="add":o!=null&&o.length&&a!==o.length-1?f="replace":l?f="toggle":f="replace",f==="toggle"&&(s||r||(f="remove")),f==="add"){var c;g=[...o,{id:e.id,desc:h}],g.splice(0,g.length-((c=t.options.maxMultiSortColCount)!=null?c:Number.MAX_SAFE_INTEGER))}else f==="toggle"?g=o.map(d=>d.id===e.id?{...d,desc:h}:d):f==="remove"?g=o.filter(d=>d.id!==e.id):g=[{id:e.id,desc:h}];return g})},e.getFirstSortDir=()=>{var n,i;return((n=(i=e.columnDef.sortDescFirst)!=null?i:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var i,r;const s=e.getFirstSortDir(),o=e.getIsSorted();return o?o!==s&&((i=t.options.enableSortingRemoval)==null||i)&&(!(n&&(r=t.options.enableMultiRemove)!=null)||r)?!1:o==="desc"?"asc":"desc":s},e.getCanSort=()=>{var n,i;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((i=t.options.enableSorting)!=null?i:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,i;return(n=(i=e.columnDef.enableMultiSort)!=null?i:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const i=(n=t.getState().sorting)==null?void 0:n.find(r=>r.id===e.id);return i?i.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,i;return(n=(i=t.getState().sorting)==null?void 0:i.findIndex(r=>r.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(i=>i.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return i=>{n&&(i.persist==null||i.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(i):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,i;e.setSorting(t?[]:(n=(i=e.initialState)==null?void 0:i.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},ir=[_i,Ui,Ti,bi,Mi,$i,ki,ji,nr,Gi,Bi,Ni,Ki,Xi,qi];function rr(e){var t,n;const i=[...ir,...(t=e._features)!=null?t:[]];let r={_features:i};const s=r._features.reduce((c,d)=>Object.assign(c,d.getDefaultOptions==null?void 0:d.getDefaultOptions(r)),{}),o=c=>r.options.mergeOptions?r.options.mergeOptions(s,c):{...s,...c};let a={...{},...(n=e.initialState)!=null?n:{}};r._features.forEach(c=>{var d;a=(d=c.getInitialState==null?void 0:c.getInitialState(a))!=null?d:a});const g=[];let f=!1;const h={_features:i,options:{...s,...e},initialState:a,_queue:c=>{g.push(c),f||(f=!0,Promise.resolve().then(()=>{for(;g.length;)g.shift()();f=!1}).catch(d=>setTimeout(()=>{throw d})))},reset:()=>{r.setState(r.initialState)},setOptions:c=>{const d=de(c,r.options);r.options=o(d)},getState:()=>r.options.state,setState:c=>{r.options.onStateChange==null||r.options.onStateChange(c)},_getRowId:(c,d,p)=>{var m;return(m=r.options.getRowId==null?void 0:r.options.getRowId(c,d,p))!=null?m:`${p?[p.id,d].join("."):d}`},getCoreRowModel:()=>(r._getCoreRowModel||(r._getCoreRowModel=r.options.getCoreRowModel(r)),r._getCoreRowModel()),getRowModel:()=>r.getPaginationRowModel(),getRow:(c,d)=>{let p=(d?r.getPrePaginationRowModel():r.getRowModel()).rowsById[c];if(!p&&(p=r.getCoreRowModel().rowsById[c],!p))throw new Error;return p},_getDefaultColumnDef:w(()=>[r.options.defaultColumn],c=>{var d;return c=(d=c)!=null?d:{},{header:p=>{const m=p.header.column.columnDef;return m.accessorKey?m.accessorKey:m.accessorFn?m.id:null},cell:p=>{var m,R;return(m=(R=p.renderValue())==null||R.toString==null?void 0:R.toString())!=null?m:null},...r._features.reduce((p,m)=>Object.assign(p,m.getDefaultColumnDef==null?void 0:m.getDefaultColumnDef()),{}),...c}},F(e,"debugColumns")),_getColumnDefs:()=>r.options.columns,getAllColumns:w(()=>[r._getColumnDefs()],c=>{const d=function(p,m,R){return R===void 0&&(R=0),p.map(S=>{const _=Fi(r,S,R,m),y=S;return _.columns=y.columns?d(y.columns,_,R+1):[],_})};return d(c)},F(e,"debugColumns")),getAllFlatColumns:w(()=>[r.getAllColumns()],c=>c.flatMap(d=>d.getFlatColumns()),F(e,"debugColumns")),_getAllFlatColumnsById:w(()=>[r.getAllFlatColumns()],c=>c.reduce((d,p)=>(d[p.id]=p,d),{}),F(e,"debugColumns")),getAllLeafColumns:w(()=>[r.getAllColumns(),r._getOrderColumnsFn()],(c,d)=>{let p=c.flatMap(m=>m.getLeafColumns());return d(p)},F(e,"debugColumns")),getColumn:c=>r._getAllFlatColumnsById()[c]};Object.assign(r,h);for(let c=0;c<r._features.length;c++){const d=r._features[c];d==null||d.createTable==null||d.createTable(r)}return r}function hr(){return e=>w(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},i=function(r,s,o){s===void 0&&(s=0);const l=[];for(let g=0;g<r.length;g++){const f=Pi(e,e._getRowId(r[g],g,o),r[g],g,s,void 0,o==null?void 0:o.id);if(n.flatRows.push(f),n.rowsById[f.id]=f,l.push(f),e.options.getSubRows){var a;f.originalSubRows=e.options.getSubRows(r[g],g),(a=f.originalSubRows)!=null&&a.length&&(f.subRows=i(f.originalSubRows,s+1,f))}}return l};return n.rows=i(t),n},F(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}/**
|
22
|
-
* react-table
|
23
|
-
*
|
24
|
-
* Copyright (c) TanStack
|
25
|
-
*
|
26
|
-
* This source code is licensed under the MIT license found in the
|
27
|
-
* LICENSE.md file in the root directory of this source tree.
|
28
|
-
*
|
29
|
-
* @license MIT
|
30
|
-
*/function pr(e,t){return e?sr(e)?E.createElement(e,t):e:null}function sr(e){return or(e)||typeof e=="function"||ur(e)}function or(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function ur(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function mr(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=E.useState(()=>({current:rr(t)})),[i,r]=E.useState(()=>n.current.initialState);return n.current.setOptions(s=>({...s,...e,state:{...i,...e.state},onStateChange:o=>{r(o),e.onStateChange==null||e.onStateChange(o)}})),n.current}export{dr as Q,gr as a,fr as b,_n as c,Zn as d,cr as e,pr as f,hr as g,Qn as j,mr as u};
|
@@ -1 +0,0 @@
|
|
1
|
-
import{j as e}from"./@tanstack-CEbkxrhX.js";import{t as v}from"./zod-DrZvVLjd.js";import{I as w,ax as g,h as j,s as L,aq as b,ar as M,as as V,at as S,au as Z,aB as H}from"./index-QORVVTMN.js";import{r as l}from"./@radix-C9DBgJhe.js";import{u as y,C as N}from"./index.esm-F7nqy9zY.js";import{d as E,p as F,A as R}from"./SuccessStep-ZzczaM7g.js";import{S as k,a as P}from"./file-text-CbVERUON.js";import{S as B}from"./play-circle-DK5QMJyp.js";function l1({email:s,fullName:a,submitHandler:i}){const c=l.useId(),r=l.useId(),o=l.useId(),{register:m,handleSubmit:d,control:C,watch:n,formState:{isValid:x}}=y({resolver:v(E),defaultValues:{fullName:a||"",getUpdates:!0,email:s||""}});return e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-display-xs font-semibold",children:"Add your account details"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Please, fill in your details to get started with ZenML."})]}),e.jsxs("form",{onSubmit:d(i),className:"space-y-5",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx("label",{htmlFor:c,className:"text-text-sm",children:"Full Name (optional)"}),e.jsx(w,{...m("fullName"),id:c,className:"w-full"})]}),e.jsxs("div",{className:"space-y-0.5",children:[e.jsxs("label",{htmlFor:r,className:"text-text-sm",children:["Email ",!n("getUpdates")&&e.jsx(e.Fragment,{children:"(optional)"})]}),e.jsx(w,{placeholder:"example@company.inc",...m("email"),type:"email",id:r,className:"w-full"})]})]}),e.jsxs("div",{className:"flex items-center space-x-1",children:[e.jsx(N,{control:C,name:"getUpdates",render:({field:{onChange:t,value:p}})=>e.jsx(g,{checked:p,onCheckedChange:h=>t(!!h),id:o})}),e.jsx("label",{htmlFor:o,className:"text-text-sm",children:"I want to receive news and recommendations about how to use ZenML"})]}),e.jsx(j,{disabled:!x,className:"w-full text-center",size:"md",children:e.jsx("span",{className:"w-full",children:"Continue"})}),e.jsxs("p",{className:"text-center text-theme-text-secondary",children:["By continuing you agree to the"," ",e.jsx("a",{className:"link text-theme-text-brand",href:"https://www.zenml.io/privacy-policy",rel:"noopener noreferrer",target:"_blank",children:"Privacy Policy"})]})]})]})}const U=s=>l.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.16146 2H9.83854C10.3657 1.99998 10.8205 1.99997 11.195 2.03057C11.5904 2.06287 11.9836 2.13419 12.362 2.32698C12.9265 2.6146 13.3854 3.07354 13.673 3.63803C13.8658 4.01641 13.9371 4.40963 13.9694 4.80497C14 5.17955 14 5.63432 14 6.16148V10L17.8385 10C18.3657 9.99998 18.8205 9.99997 19.195 10.0306C19.5904 10.0629 19.9836 10.1342 20.362 10.327C20.9265 10.6146 21.3854 11.0735 21.673 11.638C21.8658 12.0164 21.9371 12.4096 21.9694 12.805C22 13.1795 22 13.6343 22 14.1614V20C22.5523 20 23 20.4477 23 21C23 21.5523 22.5523 22 22 22H2C1.44772 22 1 21.5523 1 21C1 20.4477 1.44772 20 2 20V6.16146C1.99998 5.63431 1.99997 5.17955 2.03057 4.80497C2.06287 4.40963 2.13419 4.01641 2.32698 3.63803C2.6146 3.07354 3.07354 2.6146 3.63803 2.32698C4.01641 2.13419 4.40963 2.06287 4.80497 2.03057C5.17954 1.99997 5.63431 1.99998 6.16146 2ZM4 20H12V6.2C12 5.62345 11.9992 5.25118 11.9761 4.96784C11.9539 4.69617 11.9162 4.59546 11.891 4.54601C11.7951 4.35785 11.6422 4.20487 11.454 4.109C11.4045 4.0838 11.3038 4.04612 11.0322 4.02393C10.7488 4.00078 10.3766 4 9.8 4H6.2C5.62345 4 5.25117 4.00078 4.96784 4.02393C4.69617 4.04612 4.59545 4.0838 4.54601 4.109C4.35785 4.20487 4.20487 4.35785 4.10899 4.54601C4.0838 4.59546 4.04612 4.69617 4.02393 4.96784C4.00078 5.25117 4 5.62345 4 6.2V20ZM14 12V20H20V14.2C20 13.6234 19.9992 13.2512 19.9761 12.9678C19.9539 12.6962 19.9162 12.5955 19.891 12.546C19.7951 12.3578 19.6422 12.2049 19.454 12.109C19.4045 12.0838 19.3038 12.0461 19.0322 12.0239C18.7488 12.0008 18.3766 12 17.8 12H14ZM5.5 7C5.5 6.44772 5.94772 6 6.5 6H9.5C10.0523 6 10.5 6.44772 10.5 7C10.5 7.55229 10.0523 8 9.5 8H6.5C5.94772 8 5.5 7.55229 5.5 7ZM5.5 11C5.5 10.4477 5.94772 10 6.5 10H9.5C10.0523 10 10.5 10.4477 10.5 11C10.5 11.5523 10.0523 12 9.5 12H6.5C5.94772 12 5.5 11.5523 5.5 11ZM5.5 15C5.5 14.4477 5.94772 14 6.5 14H9.5C10.0523 14 10.5 14.4477 10.5 15C10.5 15.5523 10.0523 16 9.5 16H6.5C5.94772 16 5.5 15.5523 5.5 15Z"})),_=s=>l.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.8026 4.52039L11.8026 4.52039L11.8026 4.52039ZM12 4.61798L19.7639 8.49994L19.5721 8.59583C19.5596 8.6018 19.5471 8.60803 19.5348 8.6145L17 9.88191L12.4472 7.60552C11.9532 7.35853 11.3526 7.55875 11.1056 8.05273C10.8586 8.54671 11.0588 9.14738 11.5528 9.39437L14.7639 10.9999L12 12.3819L4.4652 8.61451C4.4529 8.60803 4.44044 8.6018 4.42784 8.59583L4.23607 8.49994L12 4.61798ZM3 10.118L1.55279 9.39437C1.214 9.22498 1 8.87872 1 8.49994C1 8.12117 1.214 7.77491 1.55279 7.60552L11.195 2.7844C11.2024 2.7807 11.211 2.77633 11.2206 2.77143C11.3139 2.72382 11.507 2.62529 11.7234 2.58468C11.9062 2.55039 12.0938 2.55039 12.2766 2.58468C12.493 2.62529 12.6861 2.72382 12.7794 2.77143C12.789 2.77633 12.7976 2.7807 12.805 2.7844L22.4472 7.60552C22.786 7.77491 23 8.12117 23 8.49994C23 8.87872 22.786 9.22498 22.4472 9.39437L21 10.118V16.3066C21 16.332 21.0001 16.3582 21.0002 16.3851C21.0013 16.6707 21.0027 17.0296 20.884 17.3629C20.7814 17.6508 20.6142 17.9113 20.3952 18.1245C20.1417 18.3713 19.8149 18.5196 19.5548 18.6376C19.5303 18.6487 19.5065 18.6595 19.4833 18.6701L13.0833 21.6035C13.0667 21.6111 13.0496 21.619 13.0321 21.6271C12.8423 21.7147 12.6034 21.8251 12.3421 21.8704C12.1157 21.9097 11.8843 21.9097 11.6579 21.8704C11.3966 21.8251 11.1577 21.7147 10.9679 21.6271C10.9504 21.619 10.9333 21.6111 10.9167 21.6035L4.5167 18.6701L4.93335 17.7611L4.51669 18.6701C4.49354 18.6595 4.46967 18.6487 4.44522 18.6376C4.1851 18.5196 3.85826 18.3713 3.60476 18.1245C3.3858 17.9113 3.21862 17.6508 3.11604 17.3629C2.99727 17.0296 2.99867 16.6707 2.99979 16.3851C2.9999 16.3582 3 16.332 3 16.3066V10.118ZM5 11.118V16.3066C5 16.505 5.00047 16.6074 5.00521 16.6814C5.00536 16.6837 5.0055 16.6859 5.00565 16.688C5.00747 16.6889 5.00938 16.69 5.01138 16.6911C5.07675 16.7262 5.16965 16.7693 5.35001 16.852L11.75 19.7853C11.8813 19.8455 11.9473 19.8754 11.9962 19.895C11.9975 19.8955 11.9988 19.896 12 19.8965C12.0012 19.896 12.0025 19.8955 12.0038 19.895C12.0527 19.8754 12.1187 19.8455 12.25 19.7853L18.65 16.852C18.8304 16.7693 18.9233 16.7262 18.9886 16.6911C18.9906 16.69 18.9925 16.6889 18.9944 16.688C18.9945 16.6859 18.9946 16.6837 18.9948 16.6814C18.9995 16.6074 19 16.505 19 16.3066V11.118L18 11.618V14.4999C18 15.0522 17.5523 15.4999 17 15.4999C16.4477 15.4999 16 15.0522 16 14.4999V12.618L12.805 14.2155C12.7976 14.2192 12.789 14.2236 12.7794 14.2285C12.6861 14.2761 12.493 14.3746 12.2766 14.4152C12.0938 14.4495 11.9062 14.4495 11.7234 14.4152C11.507 14.3746 11.3139 14.2761 11.2206 14.2285C11.211 14.2236 11.2024 14.2192 11.195 14.2155L5 11.118ZM11.8026 12.4795C11.8024 12.4796 11.8024 12.4796 11.8026 12.4795L11.8026 12.4795ZM12.1974 12.4795C12.1976 12.4796 12.1976 12.4796 12.1974 12.4795L12.1974 12.4795ZM12.1974 4.52039L12.1974 4.52039L12.1974 4.52039Z"})),I=s=>l.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C10.067 4 8.50002 5.567 8.50002 7.5C8.50002 9.433 10.067 11 12 11C13.933 11 15.5 9.433 15.5 7.5C15.5 5.567 13.933 4 12 4ZM6.50002 7.5C6.50002 4.46243 8.96246 2 12 2C15.0376 2 17.5 4.46243 17.5 7.5C17.5 10.5376 15.0376 13 12 13C8.96246 13 6.50002 10.5376 6.50002 7.5ZM9.32629 14.5C9.38335 14.5 9.44125 14.5 9.50003 14.5H14.5C14.5588 14.5 14.6167 14.5 14.6738 14.5C15.901 14.4995 16.739 14.4992 17.4514 14.7153C19.0495 15.2 20.3 16.4506 20.7847 18.0486C21.0008 18.761 21.0005 19.599 21.0001 20.8263C21 20.8833 21 20.9412 21 21C21 21.5523 20.5523 22 20 22C19.4477 22 19 21.5523 19 21C19 19.5317 18.9892 19.0192 18.8708 18.6291C18.58 17.6703 17.8297 16.92 16.8709 16.6292C16.4808 16.5108 15.9683 16.5 14.5 16.5H9.50003C8.03171 16.5 7.51923 16.5108 7.12917 16.6292C6.17036 16.92 5.42005 17.6703 5.1292 18.6291C5.01088 19.0192 5.00002 19.5317 5.00002 21C5.00002 21.5523 4.55231 22 4.00002 22C3.44774 22 3.00002 21.5523 3.00002 21C3.00002 20.9412 3 20.8833 2.99998 20.8263C2.99953 19.599 2.99922 18.761 3.21532 18.0486C3.70007 16.4506 4.95059 15.2 6.54859 14.7153C7.261 14.4992 8.09902 14.4995 9.32629 14.5Z"})),u=l.forwardRef(({children:s,className:a,id:i,...c},r)=>e.jsxs("div",{className:"min-h-[160px] min-w-[160px]",children:[e.jsx("input",{id:i,...c,ref:r,className:L("peer sr-only",a),type:"radio"}),e.jsx("label",{htmlFor:i,className:"flex h-full w-full flex-col items-center justify-center space-y-5 rounded-md border border-theme-border-minimal bg-theme-surface-primary p-5 text-text-lg text-theme-text-secondary hover:cursor-pointer peer-checked:border-primary-100 peer-checked:bg-primary-25 peer-focus-visible:border-primary-100",children:s})]}));u.displayName="UseRadioButton";const A=["0","1-5","6-25","26-99","100+"];function s1({submitHandler:s,user:a}){var m,d,C,n;const{control:i,handleSubmit:c,register:r,formState:{isValid:o}}=y({defaultValues:{primaryUse:(d=(m=a==null?void 0:a.metadata)==null?void 0:m.user_metadata)==null?void 0:d.primary_use,amountProductionModels:(n=(C=a==null?void 0:a.metadata)==null?void 0:C.user_metadata)==null?void 0:n.models_production},resolver:v(F)});return e.jsxs("div",{className:"space-y-5",children:[e.jsx("div",{children:e.jsx("h1",{className:"text-display-xs font-semibold",children:"What will be your primary use for ZenML?"})}),e.jsxs("form",{onSubmit:c(s),className:"space-y-5",children:[e.jsxs("div",{className:"grid grid-cols-1 gap-[20px] md:grid-cols-3",children:[e.jsxs(u,{id:"use-personal",...r("primaryUse"),value:"personal",children:[e.jsx(I,{className:"h-7 w-7 fill-primary-400"}),e.jsx("span",{children:"Personal"})]}),e.jsxs(u,{...r("primaryUse"),id:"use-work",value:"work",children:[e.jsx(U,{className:"h-7 w-7 fill-primary-400"}),e.jsx("span",{children:"Work"})]}),e.jsxs(u,{...r("primaryUse"),id:"use-student",value:"student",children:[e.jsx(_,{className:"h-7 w-7 fill-primary-400"}),e.jsx("span",{children:"Student"})]})]}),e.jsxs("div",{className:"space-y-0.5",children:[e.jsx("label",{htmlFor:"amount-select",className:"font-semibold",children:"How many models do you have in production?"}),e.jsx(N,{name:"amountProductionModels",control:i,render:({field:{ref:x,onChange:t,...p}})=>e.jsxs(b,{...p,onValueChange:t,children:[e.jsx(M,{id:"amount-select",className:"w-full border border-neutral-300 bg-theme-surface-primary px-2 text-left text-text-md",children:e.jsx(V,{placeholder:"Select a range"})}),e.jsx(S,{className:"",children:A.map((h,f)=>e.jsx(Z,{value:h,children:e.jsx("div",{className:"flex items-center gap-1",children:h})},f))})]})})]}),e.jsx(j,{disabled:!o,className:"w-full text-center",size:"md",children:e.jsx("span",{className:"w-full",children:"Continue"})})]})]})}const z=s=>l.createElement("svg",{viewBox:"0 0 24 24",fill:"#0A66C2",xmlns:"http://www.w3.org/2000/svg",...s},l.createElement("path",{d:"M19.0409 18.8729H16.0776V14.2779C16.0776 13.1821 16.0578 11.7716 14.5363 11.7716C12.9929 11.7716 12.7567 12.9654 12.7567 14.1981V18.8726H9.79336V9.42332H12.6382V10.7147H12.678C12.9627 10.2327 13.3741 9.83617 13.8684 9.56738C14.3627 9.29859 14.9214 9.16757 15.4849 9.18828C18.4884 9.18828 19.0422 11.1444 19.0422 13.6892L19.0409 18.8729ZM6.44969 8.13167C6.10957 8.13173 5.77706 8.03192 5.49422 7.84487C5.21139 7.65782 4.99094 7.39193 4.86073 7.08081C4.73051 6.7697 4.69638 6.42734 4.76268 6.09703C4.82897 5.76672 4.99271 5.46329 5.23317 5.22511C5.47363 4.98694 5.78002 4.82471 6.11359 4.75895C6.44716 4.69319 6.79293 4.72685 7.10719 4.85567C7.42144 4.98449 7.69006 5.20269 7.87907 5.48267C8.06808 5.76265 8.16901 6.09184 8.16907 6.42861C8.16911 6.65222 8.12466 6.87365 8.03827 7.08025C7.95189 7.28685 7.82527 7.47458 7.66561 7.63273C7.50595 7.79087 7.31638 7.91633 7.10775 8.00193C6.89913 8.08754 6.67552 8.13163 6.44969 8.13167ZM7.93137 18.8729H4.96491V9.42332H7.93137V18.8729ZM20.5183 2.00135H3.47583C3.08901 1.99703 2.71626 2.14494 2.43953 2.41258C2.1628 2.68023 2.00472 3.04571 2 3.42871V20.3734C2.00456 20.7565 2.16255 21.1223 2.43927 21.3902C2.71599 21.6581 3.08882 21.8063 3.47583 21.8022H20.5183C20.9061 21.8071 21.28 21.6593 21.5578 21.3914C21.8356 21.1234 21.9946 20.7573 22 20.3734V3.42749C21.9945 3.04373 21.8353 2.67783 21.5575 2.41019C21.2797 2.14255 20.9059 1.99506 20.5183 2.00013"})),T=s=>l.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},l.createElement("g",{clipPath:"url(#clip0_1732_1425)"},l.createElement("path",{d:"M17.743 3H20.7952L14.1285 10.6707L22 21.0723H15.8153L10.996 14.7671L5.45382 21.0723H2.40161L9.5502 12.8795L2 3H8.34538L12.7229 8.78313L17.743 3ZM16.6586 19.2249H18.3454L7.42169 4.72691H5.5743L16.6586 19.2249Z",fill:"#7A3EF4"})),l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_1732_1425"},l.createElement("rect",{width:20,height:18.0723,fill:"white",transform:"translate(2 3)"})))),W=s=>l.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},l.createElement("g",{clipPath:"url(#clip0_1732_1440)"},l.createElement("path",{d:"M22 2H2V22H22V2Z",fill:"#7A3EF4"}),l.createElement("path",{d:"M14.0344 6.71565C14.2078 7.45081 14.868 7.99846 15.6562 7.99846C16.5766 7.99846 17.3226 7.25237 17.3226 6.33206C17.3226 5.41174 16.5766 4.66565 15.6562 4.66565C14.8516 4.66565 14.1805 5.23596 14.0242 5.99456C12.6765 6.13909 11.6242 7.28206 11.6242 8.66721C11.6242 8.67034 11.6242 8.67268 11.6242 8.67581C10.1586 8.73752 8.8203 9.15471 7.7578 9.81331C7.36327 9.50784 6.86796 9.32581 6.33046 9.32581C5.04061 9.32581 3.9953 10.3711 3.9953 11.661C3.9953 12.5969 4.5453 13.4031 5.33983 13.7758C5.41718 16.4867 8.37108 18.6672 12.0047 18.6672C15.6383 18.6672 18.5961 16.4844 18.6695 13.7711C19.4578 13.3961 20.0031 12.5922 20.0031 11.6617C20.0031 10.3719 18.9578 9.32659 17.668 9.32659C17.1328 9.32659 16.6398 9.50706 16.2461 9.81018C15.1742 9.1469 13.8211 8.72971 12.3406 8.67424C12.3406 8.6719 12.3406 8.67034 12.3406 8.66799C12.3406 7.67581 13.0781 6.85237 14.0344 6.71721V6.71565ZM7.66405 13.143C7.70311 12.2961 8.26561 11.6461 8.91952 11.6461C9.57343 11.6461 10.0734 12.3328 10.0344 13.1797C9.9953 14.0266 9.50702 14.3344 8.85233 14.3344C8.19764 14.3344 7.62499 13.9899 7.66405 13.143ZM15.0906 11.6461C15.7453 11.6461 16.3078 12.2961 16.3461 13.143C16.3851 13.9899 15.8117 14.3344 15.1578 14.3344C14.5039 14.3344 14.0148 14.0274 13.9758 13.1797C13.9367 12.3328 14.4359 11.6461 15.0906 11.6461ZM14.3125 15.1024C14.4351 15.1149 14.5133 15.2422 14.4656 15.3563C14.0633 16.318 13.1133 16.9938 12.0047 16.9938C10.8961 16.9938 9.94686 16.318 9.54374 15.3563C9.49608 15.2422 9.57421 15.1149 9.69686 15.1024C10.4156 15.0297 11.193 14.9899 12.0047 14.9899C12.8164 14.9899 13.593 15.0297 14.3125 15.1024Z",fill:"white"})),l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_1732_1440"},l.createElement("rect",{width:20,height:20,fill:"white",transform:"translate(2 2)"})))),D=s=>l.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...s},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.5 4C7.84315 4 6.5 5.34315 6.5 7C6.5 8.65685 7.84315 10 9.5 10C11.1569 10 12.5 8.65685 12.5 7C12.5 5.34315 11.1569 4 9.5 4ZM4.5 7C4.5 4.23858 6.73858 2 9.5 2C12.2614 2 14.5 4.23858 14.5 7C14.5 9.76142 12.2614 12 9.5 12C6.73858 12 4.5 9.76142 4.5 7ZM14.5731 2.91554C14.7803 2.40361 15.3633 2.1566 15.8752 2.36382C17.7058 3.10481 19 4.90006 19 7C19 9.09994 17.7058 10.8952 15.8752 11.6362C15.3633 11.8434 14.7803 11.5964 14.5731 11.0845C14.3658 10.5725 14.6129 9.98953 15.1248 9.7823C16.2261 9.33652 17 8.25744 17 7C17 5.74256 16.2261 4.66348 15.1248 4.2177C14.6129 4.01047 14.3658 3.42748 14.5731 2.91554ZM7.96448 14H11.0355C11.9373 14 12.6647 14 13.2567 14.0404C13.8654 14.0819 14.4037 14.1695 14.9134 14.3806C16.1386 14.8881 17.1119 15.8614 17.6194 17.0866C17.8305 17.5963 17.9181 18.1346 17.9596 18.7433C18 19.3353 18 20.0627 18 20.9645V21C18 21.5523 17.5523 22 17 22C16.4477 22 16 21.5523 16 21C16 20.0544 15.9995 19.3953 15.9643 18.8794C15.9297 18.3725 15.865 18.0773 15.7716 17.8519C15.4672 17.1169 14.8831 16.5328 14.1481 16.2284C13.9227 16.135 13.6275 16.0703 13.1206 16.0357C12.6047 16.0005 11.9456 16 11 16H8C7.05444 16 6.39534 16.0005 5.87945 16.0357C5.37254 16.0703 5.07733 16.135 4.85195 16.2284C4.11687 16.5328 3.53284 17.1169 3.22836 17.8519C3.135 18.0773 3.07033 18.3725 3.03574 18.8794C3.00054 19.3953 3 20.0544 3 21C3 21.5523 2.55229 22 2 22C1.44772 22 1 21.5523 1 21L1 20.9645C0.999993 20.0627 0.999988 19.3353 1.04038 18.7433C1.08191 18.1346 1.16948 17.5963 1.3806 17.0866C1.88807 15.8614 2.86144 14.8881 4.08658 14.3806C4.59628 14.1695 5.13456 14.0819 5.74331 14.0404C6.33531 14 7.06272 14 7.96448 14ZM18.0316 14.8768C18.1692 14.3419 18.7144 14.0199 19.2493 14.1576C21.4056 14.7126 23 16.6688 23 19V21C23 21.5523 22.5523 22 22 22C21.4477 22 21 21.5523 21 21V19C21 17.6035 20.0449 16.4275 18.7507 16.0945C18.2159 15.9568 17.8939 15.4116 18.0316 14.8768Z"})),O=s=>l.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 4C7.13401 4 4 7.13401 4 11C4 14.866 7.13401 18 11 18C12.8859 18 14.5977 17.2542 15.8564 16.0414C15.8827 16.0072 15.9115 15.9742 15.9429 15.9429C15.9742 15.9115 16.0072 15.8827 16.0414 15.8564C17.2542 14.5977 18 12.8859 18 11C18 7.13401 14.866 4 11 4ZM18.0319 16.6177C19.2635 15.078 20 13.125 20 11C20 6.02944 15.9706 2 11 2C6.02944 2 2 6.02944 2 11C2 15.9706 6.02944 20 11 20C13.125 20 15.078 19.2635 16.6177 18.0319L20.2929 21.7071C20.6834 22.0976 21.3166 22.0976 21.7071 21.7071C22.0976 21.3166 22.0976 20.6834 21.7071 20.2929L18.0319 16.6177Z"})),X=[{channel:"LinkedIn",icon:e.jsx(z,{className:"h-5 w-5 fill-primary-400"})},{channel:"X / Twitter",icon:e.jsx(T,{className:"h-5 w-5"})},{channel:"Newsletter",icon:e.jsx(k,{className:"h-5 w-5 fill-primary-400"})},{channel:"Webinar",icon:e.jsx(B,{className:"h-5 w-5 fill-primary-400"})},{channel:"Reddit",icon:e.jsx(W,{className:"h-5 w-5"})},{channel:"Conference",icon:e.jsx(H,{className:"h-5 w-5 fill-primary-400"})},{channel:"Recommendation",icon:e.jsx(D,{className:"h-5 w-5 fill-primary-400"})},{channel:"Blog",icon:e.jsx(P,{className:"h-5 w-5 fill-primary-400"})},{channel:"Google / Search Engine",icon:e.jsx(O,{className:"h-5 w-5 fill-primary-400"})}];function a1({submitHandler:s}){const{register:a,setValue:i,watch:c,handleSubmit:r,unregister:o,control:m,formState:{isValid:d}}=y({resolver:v(R),defaultValues:{channels:[]}}),C=c("other");return l.useEffect(()=>{C?a("otherVal"):o("otherVal")},[a,o,C]),e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-display-xs font-semibold",children:"How did you hear about us?"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Select all the applicable options"})]}),e.jsxs("form",{onSubmit:r(s),className:"space-y-5",children:[e.jsxs("div",{className:"grid w-full grid-cols-1 gap-[20px] md:grid-cols-2 xl:min-w-[700px]",children:[e.jsx(N,{control:m,name:"channels",render:({field:{onChange:n,value:x}})=>e.jsx(e.Fragment,{children:X.map((t,p)=>e.jsxs("div",{className:"flex items-center gap-1 rounded-md bg-theme-surface-primary pl-3",children:[e.jsx(g,{onCheckedChange:h=>{n(h?[...x,t.channel]:x.filter(f=>f!==t.channel))},value:t.channel,className:"h-3 w-3",id:t.channel}),e.jsxs("label",{className:"flex w-full items-center gap-1 py-3 pr-3 text-theme-text-secondary hover:cursor-pointer",htmlFor:t.channel,children:[t.icon,t.channel]})]},p))})}),e.jsxs("div",{className:"flex items-center rounded-md bg-theme-surface-primary pl-3",children:[e.jsx(g,{onCheckedChange:n=>i("other",!!n),...a("other",{value:!1}),className:"mr-2 h-3 w-3",id:"other"}),e.jsx("label",{className:"w-full py-3 pr-3 text-theme-text-secondary hover:cursor-pointer",htmlFor:"other",children:"Other (specify)"})]}),C&&e.jsx(w,{inputSize:"lg",...a("otherVal"),placeholder:"Specify...",className:"w-full border-theme-border-minimal"})]}),e.jsx(j,{disabled:!d,type:"submit",className:"w-full text-center",size:"md",children:e.jsx("span",{className:"w-full",children:"Continue"})})]})]})}export{l1 as A,s1 as P,a1 as a};
|
@@ -1 +0,0 @@
|
|
1
|
-
import{j as e}from"./@tanstack-CEbkxrhX.js";import{B as a,d as i,q as n}from"./index-QORVVTMN.js";import{r as l}from"./@radix-C9DBgJhe.js";import{S as c,a as o}from"./file-text-CbVERUON.js";import{S as m}from"./terminal-B2ovgWuz.js";const x=t=>l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},l.createElement("path",{d:"M6.20195 14.6383C6.20195 15.7947 5.25733 16.7393 4.10098 16.7393C2.94463 16.7393 2 15.7947 2 14.6383C2 13.482 2.94463 12.5374 4.10098 12.5374H6.20195V14.6383Z",fill:"#E01E5A"}),l.createElement("path",{d:"M7.26056 14.6383C7.26056 13.482 8.20518 12.5374 9.36154 12.5374C10.5179 12.5374 11.4625 13.482 11.4625 14.6383V19.8989C11.4625 21.0553 10.5179 21.9999 9.36154 21.9999C8.20518 21.9999 7.26056 21.0553 7.26056 19.8989V14.6383Z",fill:"#E01E5A"}),l.createElement("path",{d:"M9.36154 6.20195C8.20518 6.20195 7.26056 5.25733 7.26056 4.10098C7.26056 2.94463 8.20518 2 9.36154 2C10.5179 2 11.4625 2.94463 11.4625 4.10098V6.20195H9.36154Z",fill:"#36C5F0"}),l.createElement("path",{d:"M9.36156 7.26062C10.5179 7.26062 11.4625 8.20525 11.4625 9.3616C11.4625 10.5179 10.5179 11.4626 9.36156 11.4626H4.10098C2.94463 11.4626 2 10.5179 2 9.3616C2 8.20525 2.94463 7.26062 4.10098 7.26062H9.36156Z",fill:"#36C5F0"}),l.createElement("path",{d:"M17.798 9.3616C17.798 8.20525 18.7426 7.26062 19.8989 7.26062C21.0553 7.26062 21.9999 8.20525 21.9999 9.3616C21.9999 10.5179 21.0553 11.4626 19.8989 11.4626H17.798V9.3616Z",fill:"#2EB67D"}),l.createElement("path",{d:"M16.7394 9.36156C16.7394 10.5179 15.7948 11.4625 14.6385 11.4625C13.4821 11.4625 12.5375 10.5179 12.5375 9.36156V4.10098C12.5375 2.94463 13.4821 2 14.6385 2C15.7948 2 16.7394 2.94463 16.7394 4.10098V9.36156Z",fill:"#2EB67D"}),l.createElement("path",{d:"M14.6384 17.7981C15.7947 17.7981 16.7394 18.7427 16.7394 19.8991C16.7394 21.0554 15.7947 22 14.6384 22C13.482 22 12.5374 21.0554 12.5374 19.8991V17.7981H14.6384Z",fill:"#ECB22E"}),l.createElement("path",{d:"M14.6385 16.7393C13.4821 16.7393 12.5375 15.7947 12.5375 14.6383C12.5375 13.482 13.4821 12.5374 14.6385 12.5374H19.899C21.0554 12.5374 22 13.482 22 14.6383C22 15.7947 21.0554 16.7393 19.899 16.7393H14.6385Z",fill:"#ECB22E"})),d=t=>l.createElement("svg",{viewBox:"0 0 60 60",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.8968 2.5L35 2.5C35.663 2.5 36.2989 2.76339 36.7678 3.23224L51.7678 18.2322C52.2366 18.7011 52.5 19.337 52.5 20V43.1033C52.5 45.1157 52.5001 46.7766 52.3895 48.1296C52.2747 49.5348 52.0283 50.8266 51.4101 52.0399C50.4513 53.9215 48.9215 55.4513 47.0399 56.4101C45.8266 57.0283 44.5348 57.2747 43.1296 57.3895C41.7766 57.5001 40.1157 57.5 38.1033 57.5H21.8967C19.8843 57.5 18.2234 57.5001 16.8704 57.3895C15.4652 57.2747 14.1734 57.0283 12.9601 56.4101C11.0785 55.4513 9.54867 53.9215 8.58994 52.0399C7.97171 50.8266 7.7253 49.5348 7.61049 48.1296C7.49994 46.7766 7.49997 45.1157 7.5 43.1032V16.8968C7.49997 14.8843 7.49994 13.2234 7.61049 11.8704C7.7253 10.4652 7.97171 9.17344 8.58994 7.9601C9.54867 6.07848 11.0785 4.54867 12.9601 3.58994C14.1734 2.97171 15.4652 2.7253 16.8704 2.61049C18.2234 2.49994 19.8843 2.49997 21.8968 2.5ZM17.2776 7.59388C16.1816 7.68343 15.621 7.84575 15.2301 8.04497C14.2892 8.52434 13.5243 9.28924 13.045 10.23C12.8457 10.621 12.6834 11.1816 12.5939 12.2776C12.5019 13.4028 12.5 14.8586 12.5 17V43C12.5 45.1414 12.5019 46.5972 12.5939 47.7224C12.6834 48.8184 12.8457 49.3789 13.045 49.7699C13.5243 50.7108 14.2892 51.4757 15.2301 51.955C15.621 52.1543 16.1816 52.3166 17.2776 52.4061C18.4028 52.4981 19.8586 52.5 22 52.5H38C40.1415 52.5 41.5972 52.4981 42.7224 52.4061C43.8184 52.3166 44.379 52.1543 44.77 51.955C45.7108 51.4757 46.4757 50.7108 46.955 49.7699C47.1543 49.3789 47.3166 48.8184 47.4061 47.7224C47.4981 46.5972 47.5 45.1414 47.5 43V22.5002L38.9203 22.5002C38.2893 22.5003 37.6748 22.5003 37.1544 22.4578C36.5829 22.4111 35.9086 22.301 35.23 21.9552C34.2892 21.4758 33.5243 20.7109 33.045 19.7701C32.6992 19.0916 32.5891 18.4172 32.5424 17.8458C32.4998 17.3253 32.4999 16.7109 32.5 16.0799L32.5 7.5H22C19.8586 7.5 18.4028 7.50195 17.2776 7.59388ZM37.5 11.0355L43.9646 17.5002H39C38.2587 17.5002 37.8531 17.4982 37.5616 17.4744C37.55 17.4735 37.539 17.4725 37.5286 17.4716C37.5277 17.4612 37.5267 17.4502 37.5258 17.4386C37.5019 17.1471 37.5 16.7415 37.5 16.0002V11.0355ZM30.4548 28.7949C29.7284 28.6703 28.9814 28.8068 28.346 29.1803C27.7106 29.5537 27.2278 30.14 26.9833 30.8352C26.5251 32.1377 25.0978 32.8221 23.7953 32.3639C22.4929 31.9057 21.8084 30.4785 22.2666 29.176C22.903 27.3668 24.1592 25.8413 25.8126 24.8696C27.466 23.8979 29.4099 23.5427 31.3001 23.8669C33.1903 24.1911 34.9048 25.1738 36.1399 26.641C37.3746 28.1078 38.0506 29.9642 38.048 31.8815C38.0469 35.081 35.6802 37.1377 34.1244 38.1749C33.2702 38.7444 32.4338 39.1608 31.8208 39.4332C31.5108 39.571 31.2489 39.6759 31.0587 39.7484C30.9634 39.7847 30.8855 39.8131 30.8279 39.8336L30.7568 39.8585L30.7331 39.8666L30.7244 39.8695L30.7209 39.8707C30.7201 39.8709 30.7178 39.8717 29.9633 37.6083L30.7178 39.8717C29.4079 40.3083 27.9921 39.6004 27.5555 38.2906C27.1197 36.983 27.8243 35.5698 29.1298 35.1306L29.1528 35.1225C29.1775 35.1137 29.2204 35.0982 29.2788 35.076C29.396 35.0313 29.5732 34.9606 29.7901 34.8642C30.2311 34.6682 30.7999 34.382 31.3509 34.0147C32.6051 33.1785 33.048 32.4256 33.048 31.8792L33.048 31.8755C33.0491 31.1385 32.7894 30.4248 32.3147 29.861C31.8401 29.2972 31.1812 28.9195 30.4548 28.7949ZM27.5 45C27.5 43.6193 28.6193 42.5 30 42.5H30.025C31.4057 42.5 32.525 43.6193 32.525 45C32.525 46.3807 31.4057 47.5 30.025 47.5H30C28.6193 47.5 27.5 46.3807 27.5 45Z"})),h=t=>l.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5971 1.18505C11.8629 1.13038 12.1371 1.13038 12.4029 1.18505C12.7102 1.24824 12.9848 1.40207 13.2032 1.52436C13.2235 1.53575 13.2433 1.54687 13.2627 1.55761L20.6627 5.66872C20.6831 5.68009 20.7042 5.6917 20.7258 5.70359C20.9569 5.8309 21.2476 5.99097 21.4707 6.23315C21.6637 6.44253 21.8097 6.6907 21.899 6.96105C22.0024 7.27375 22.0011 7.60553 22.0002 7.8694C22.0001 7.89406 22 7.91813 22 7.94153V16.0586C22 16.082 22.0001 16.1061 22.0002 16.1308C22.0011 16.3946 22.0024 16.7264 21.899 17.0391C21.8097 17.3095 21.6637 17.5576 21.4707 17.767C21.2476 18.0092 20.9569 18.1693 20.7258 18.2966C20.7042 18.3085 20.6831 18.3201 20.6627 18.3314L13.2627 22.4426C13.2433 22.4533 13.2235 22.4644 13.2032 22.4758C12.9848 22.5981 12.7102 22.7519 12.4029 22.8151C12.1371 22.8698 11.8629 22.8698 11.5971 22.8151C11.2898 22.7519 11.0152 22.5981 10.7968 22.4758C10.7765 22.4644 10.7567 22.4533 10.7373 22.4426L3.33733 18.3314C3.31688 18.3201 3.2958 18.3085 3.2742 18.2966C3.04307 18.1693 2.75245 18.0092 2.52927 17.767C2.33632 17.5576 2.1903 17.3095 2.10097 17.0391C1.99765 16.7264 1.99886 16.3946 1.99982 16.1308C1.99991 16.1061 2 16.082 2 16.0586V7.94153C2 7.91813 1.99991 7.89406 1.99982 7.8694C1.99886 7.60553 1.99765 7.27375 2.10097 6.96105C2.1903 6.6907 2.33632 6.44253 2.52927 6.23315C2.75244 5.99097 3.04306 5.8309 3.27419 5.7036C3.29579 5.6917 3.31687 5.68009 3.33733 5.66872L10.7373 1.55761C10.7567 1.54687 10.7765 1.53575 10.7968 1.52436C11.0152 1.40207 11.2898 1.24824 11.5971 1.18505ZM12 3.14907L11.9952 3.15136C11.9375 3.1792 11.8602 3.22173 11.7086 3.30592L5.05914 7.00008L12 10.8561L18.9408 7.00006L12.2914 3.30592C12.1398 3.22173 12.0625 3.1792 12.0048 3.15136L12 3.14907ZM20 8.69955V16.0586C20 16.2416 19.9996 16.3353 19.9955 16.4031C19.9954 16.4051 19.9951 16.4088 19.9951 16.4088C19.9951 16.4088 19.992 16.4108 19.9903 16.4119C19.933 16.4484 19.8513 16.4943 19.6914 16.5831L13 20.3006L13 12.5885L20 8.69955ZM11 12.5885L4 8.69959V16.0586C4 16.2416 4.00042 16.3353 4.0045 16.4031C4.00462 16.4051 4.00487 16.4088 4.00487 16.4088C4.00487 16.4088 4.00802 16.4108 4.0097 16.4119C4.067 16.4484 4.14866 16.4943 4.30862 16.5831L11 20.3006L11 12.5885Z"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.62585 4.01444C6.89406 3.53166 7.50286 3.35771 7.98565 3.62593L16.9856 8.62593C17.4684 8.89414 17.6424 9.50294 17.3742 9.98573C17.1059 10.4685 16.4971 10.6425 16.0144 10.3742L7.01436 5.37424C6.53158 5.10603 6.35763 4.49722 6.62585 4.01444Z"}));function w(){const t=[{text:"Connect with Slack",href:"https://zenml.io/slack",icon:e.jsx(x,{className:"h-5 w-5"})},{text:"Send us a message",href:"mailto:cloud@zenml.io",icon:e.jsx(c,{className:"h-5 w-5 fill-primary-600"})}];return e.jsxs(a,{className:"flex w-full flex-col overflow-hidden",children:[e.jsx("div",{className:"flex h-[120px] items-center justify-center bg-primary-50 ",children:e.jsx(i,{className:"h-[60px] w-[60px]"})}),e.jsxs("div",{className:"p-5",children:[e.jsx("p",{className:"mb-0.5 text-text-lg font-semibold",children:"Need support?"}),e.jsx("p",{className:"mb-2 text-theme-text-secondary",children:"Schedule a call with us, connect with our Slack community or send us a message."}),e.jsx("ul",{className:"space-y-1",children:t.map((s,C)=>e.jsx("li",{children:e.jsx(r,{href:s.href,text:s.text,icon:s.icon})},C))})]})]})}function j(){const t=[{text:"Browse our docs",href:"https://docs.zenml.io",icon:e.jsx(o,{className:"h-5 w-5 fill-primary-600"})},{text:"Discover projects",href:"https://github.com/zenml-io/zenml-projects",icon:e.jsx(h,{className:"h-5 w-5 fill-primary-600"})},{text:"Navigate our examples",href:"https://github.com/zenml-io/zenml/tree/main/examples/",icon:e.jsx(m,{className:"h-5 w-5 fill-primary-600"})},{text:"Read our blog",href:"https://zenml.io/blog",icon:e.jsx(n,{className:"h-5 w-5 fill-primary-600"})}];return e.jsxs(a,{className:"flex w-full flex-col overflow-hidden",children:[e.jsx("div",{className:"flex h-[120px] items-center justify-center bg-turquoise-25",children:e.jsx(d,{className:"h-[60px] w-[60px] fill-teal-400"})}),e.jsxs("div",{className:"p-5",children:[e.jsx("p",{className:"mb-0.5 text-text-lg font-semibold",children:"Resources"}),e.jsx("p",{className:"mb-2 text-theme-text-secondary",children:"Need help? Follow our extensive documentation to get started."}),e.jsx("ul",{className:"space-y-1",children:t.map((s,C)=>e.jsx("li",{children:e.jsx(r,{href:s.href,text:s.text,icon:s.icon})},C))})]})]})}function r({href:t,text:s,icon:C}){return e.jsxs("a",{className:"inline-flex items-center gap-1 font-semibold text-primary-600 underline transition-all duration-200 hover:decoration-transparent",target:"_blank",href:t,rel:"noopener noreferrer",children:[C&&C,s]})}export{w as F,j as R};
|
@@ -1 +0,0 @@
|
|
1
|
-
import{j as e}from"./@tanstack-CEbkxrhX.js";import{$ as o,a0 as a,h as r,a1 as c,a3 as d,a6 as n,a7 as m}from"./index-QORVVTMN.js";import{S as x}from"./play-circle-DK5QMJyp.js";import{C as h}from"./CodeSnippet-BidtnWOi.js";function f({videoLink:s,isButton:t=!0,buttonText:l,fallbackImage:i}){return e.jsxs(o,{children:[t?e.jsx(a,{asChild:!0,children:e.jsxs(r,{className:"mt-5 h-auto gap-1 px-2 py-1 sm:h-7",size:"md",children:[e.jsx(x,{className:"h-5 w-5 shrink-0 fill-white"}),l??e.jsx(e.Fragment,{children:"Watch the Quickstart Guide (3 min)"})]})}):e.jsx(a,{children:i}),e.jsxs(c,{className:"max-w-[1000px]",children:[e.jsx("div",{className:"flex items-center justify-between border-b border-theme-border-moderate py-2 pl-5 pr-3",children:e.jsx(d,{className:"text-text-lg",children:"Get Started"})}),e.jsx("div",{className:"",children:e.jsx("iframe",{className:"aspect-video w-full overflow-hidden",src:s,allowFullScreen:!0,allow:"fullscreen"})}),e.jsx(n,{children:e.jsx(m,{asChild:!0,children:e.jsx(r,{size:"md",children:"Close"})})})]})]})}function w(s){return e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:s.description}),e.jsx(h,{codeClasses:"whitespace-pre-wrap",wrap:!0,code:s.command})]})}export{f as V,w as g};
|
@@ -1,2 +0,0 @@
|
|
1
|
-
import{r as t}from"./@radix-C9DBgJhe.js";import{j as r}from"./@tanstack-CEbkxrhX.js";import{s as u,i as d,x as p,y as g,E as m,G as f}from"./index-QORVVTMN.js";import{S as h}from"./check-circle-BVvhm5dy.js";import{S as v}from"./copy-BRhQz3j-.js";const x=e=>t.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("g",{id:"refresh-cw-01"},t.createElement("path",{id:"Icon (Stroke)",fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.47715 6.47715 2 12 2C14.7624 2 17.2648 3.12139 19.0735 4.93138C19.7132 5.57146 20.3981 6.36248 21 7.09444V4C21 3.44772 21.4477 3 22 3C22.5523 3 23 3.44772 23 4V10C23 10.5523 22.5523 11 22 11H16C15.4477 11 15 10.5523 15 10C15 9.44772 15.4477 9 16 9H19.9692C19.277 8.13128 18.4165 7.10335 17.6588 6.34511C16.2098 4.89514 14.2104 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20C15.6457 20 18.7243 17.5605 19.6874 14.2227C19.8406 13.6921 20.3948 13.3861 20.9255 13.5392C21.4561 13.6923 21.7622 14.2466 21.609 14.7773C20.4055 18.9481 16.5605 22 12 22C6.47715 22 2 17.5228 2 12Z"}))),N=x,w=e=>t.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.6569 6.34315C14.5327 3.21895 9.46734 3.21895 6.34315 6.34315C5.23515 7.45114 4.52139 8.80057 4.19904 10.2213C4.07684 10.7599 3.54115 11.0974 3.00256 10.9752C2.46396 10.853 2.12641 10.3173 2.24862 9.77873C2.652 8.00086 3.54638 6.31149 4.92893 4.92893C8.83418 1.02369 15.1658 1.02369 19.0711 4.92893C19.8691 5.72692 20.5003 6.3951 21 6.95359V4C21 3.44772 21.4477 3 22 3C22.5523 3 23 3.44772 23 4V10C23 10.5523 22.5523 11 22 11H16C15.4477 11 15 10.5523 15 10C15 9.44772 15.4477 9 16 9H20.1257C19.6137 8.38306 18.8352 7.52152 17.6569 6.34315ZM20.9974 13.0248C21.536 13.147 21.8736 13.6827 21.7514 14.2213C21.348 15.9991 20.4536 17.6885 19.0711 19.0711C15.1658 22.9763 8.83418 22.9763 4.92893 19.0711C4.13094 18.2731 3.49975 17.6049 3 17.0464V20C3 20.5523 2.55228 21 2 21C1.44772 21 1 20.5523 1 20V14C1 13.4477 1.44772 13 2 13H8C8.55228 13 9 13.4477 9 14C9 14.5523 8.55228 15 8 15H3.87429C4.38627 15.6169 5.16477 16.4785 6.34315 17.6569C9.46734 20.781 14.5327 20.781 17.6569 17.6569C18.7648 16.5489 19.4786 15.1994 19.801 13.7787C19.9232 13.2401 20.4588 12.9026 20.9974 13.0248Z"})),y=e=>t.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3ZM1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12ZM10.7071 8.29289C11.0976 8.68342 11.0976 9.31658 10.7071 9.70711L8.41421 12L10.7071 14.2929C11.0976 14.6834 11.0976 15.3166 10.7071 15.7071C10.3166 16.0976 9.68342 16.0976 9.29289 15.7071L6.29289 12.7071C5.90237 12.3166 5.90237 11.6834 6.29289 11.2929L9.29289 8.29289C9.68342 7.90237 10.3166 7.90237 10.7071 8.29289ZM16.2071 8.29289C16.5976 8.68342 16.5976 9.31658 16.2071 9.70711L13.9142 12L16.2071 14.2929C16.5976 14.6834 16.5976 15.3166 16.2071 15.7071C15.8166 16.0976 15.1834 16.0976 14.7929 15.7071L11.7929 12.7071C11.4024 12.3166 11.4024 11.6834 11.7929 11.2929L14.7929 8.29289C15.1834 7.90237 15.8166 7.90237 16.2071 8.29289Z"})),b=e=>t.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3ZM1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12Z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 12C6 11.1716 6.67157 10.5 7.5 10.5C8.32843 10.5 9 11.1716 9 12C9 12.8284 8.32843 13.5 7.5 13.5C6.67157 13.5 6 12.8284 6 12ZM10.5 12C10.5 11.1716 11.1716 10.5 12 10.5C12.8284 10.5 13.5 11.1716 13.5 12C13.5 12.8284 12.8284 13.5 12 13.5C11.1716 13.5 10.5 12.8284 10.5 12ZM15 12C15 11.1716 15.6716 10.5 16.5 10.5C17.3284 10.5 18 11.1716 18 12C18 12.8284 17.3284 13.5 16.5 13.5C15.6716 13.5 15 12.8284 15 12Z"}));function E(e){if(!e)return null;switch(e){case"completed":return"fill-success-500";case"failed":return"fill-error-500";case"initializing":return"fill-primary-400";case"cached":return"fill-neutral-400";case"running":return"fill-warning-500"}}function T(e){if(!e)return null;switch(e){case"completed":return"bg-success-50";case"failed":return"bg-error-50";case"initializing":return"bg-primary-50";case"cached":return"bg-theme-surface-tertiary";case"running":return"bg-warning-50"}}function k(e){if(!e)return"grey";switch(e){case"completed":return"green";case"failed":return"red";case"initializing":return"purple";case"cached":return"grey";case"running":return"yellow"}}function L({status:e,className:i}){if(!e)return null;const n=u("h-4 shrink-0 w-4",E(e),i);switch(e){case"completed":return r.jsx(h,{className:n});case"failed":return r.jsx(d,{className:n});case"initializing":return r.jsx(w,{className:n});case"cached":return r.jsx(y,{className:n});case"running":return r.jsx(b,{className:n})}}function z({copyText:e,isVisible:i,copyTitle:n}){const a=t.useRef(null),[s,o]=t.useState(!1),c=i?n:"Copy to Clipboard",C=()=>{navigator.clipboard&&(navigator.clipboard.writeText(e),o(!0),setTimeout(()=>{o(!1)},2e3))};return r.jsx(p,{children:r.jsxs(g,{delayDuration:200,children:[r.jsxs(m,{className:`${i?"":"invisible opacity-0 group-hover/copybutton:opacity-100"} h-4 w-4 rounded-sm p-0.25 transition-all
|
2
|
-
duration-200 hover:bg-theme-surface-primary active:bg-neutral-300 group-hover/copybutton:visible `,onClick:l=>{l.preventDefault(),C()},ref:a,children:[r.jsx("span",{className:"sr-only",children:"Copy to Clipboard"}),r.jsx(v,{className:`${i?"h-5 w-5":"h-3 w-3"} pointer-events-none fill-theme-text-tertiary`})]}),r.jsx(f,{onPointerDownOutside:l=>{l.currentTarget===a.current&&l.preventDefault()},className:"z-50 rounded-md bg-theme-text-primary px-3 py-2 text-text-xs text-theme-text-negative shadow-lg",sideOffset:5,children:s?"Copied!":c})]})})}export{z as C,L as E,N as R,k as a,T as b,E as g};
|
@@ -1 +0,0 @@
|
|
1
|
-
import{j as t}from"./@tanstack-CEbkxrhX.js";function a({dateString:e}){const n=new Date(`${e}Z`).toLocaleString();return t.jsx(t.Fragment,{children:n})}export{a as D};
|
@@ -1 +0,0 @@
|
|
1
|
-
import{j as l}from"./@tanstack-CEbkxrhX.js";function n({children:e,icon:t}){return l.jsxs("section",{className:"layout-container flex h-full w-full flex-1 flex-col items-center justify-center gap-5",children:[t,e]})}export{n as E};
|
@@ -1 +0,0 @@
|
|
1
|
-
import{j as e}from"./@tanstack-CEbkxrhX.js";import{i as r,q as a}from"./index-QORVVTMN.js";import{E as l}from"./EmptyState-BkooiGtL.js";function c({err:t,isAlertCircle:s=!1}){return e.jsx(l,{icon:s?e.jsx(r,{className:"h-[120px] w-[120px] fill-neutral-300"}):e.jsx(a,{className:"h-[120px] w-[120px] fill-neutral-300"}),children:e.jsx("div",{className:"text-center",children:e.jsx("p",{className:"text-text-lg text-theme-text-secondary",children:t.message})})})}export{c as E};
|
@@ -1 +0,0 @@
|
|
1
|
-
import{j as e}from"./@tanstack-CEbkxrhX.js";import{B as t,ay as a}from"./index-QORVVTMN.js";import{H as l}from"./help-B8rqCvqn.js";function m({link:s,text:r="Do you need help?"}){return e.jsxs(t,{className:"flex w-full flex-wrap items-center justify-between p-2",children:[e.jsxs("div",{className:"flex items-center gap-[10px]",children:[e.jsx("div",{className:"flex h-7 w-7 items-center justify-center rounded-sm bg-teal-25",children:e.jsx(l,{className:"h-5 w-5 fill-teal-400"})}),e.jsx("p",{children:r})]}),e.jsx("a",{target:"_blank",rel:"noopener noreferrer",className:a({intent:"primary",emphasis:"subtle",size:"md"}),href:s,children:"Browse our docs"})]})}export{m as H};
|
@@ -1 +0,0 @@
|
|
1
|
-
import{j as r}from"./@tanstack-CEbkxrhX.js";import{s as n,P as i,az as m}from"./index-QORVVTMN.js";const o=m("flex items-center text-text-sm rounded-md border px-4 py-3",{variants:{intent:{primary:"border-primary-400 bg-primary-25",neutral:"border-theme-border-moderate"}},defaultVariants:{intent:"primary"}});function l({children:e,className:t,intent:a,...s}){return r.jsxs("div",{...s,className:n(o({intent:a}),t),children:[r.jsx(i,{className:"mr-4 h-5 w-5 shrink-0 fill-theme-text-brand"}),r.jsx("div",{className:"w-full min-w-0",children:e})]})}export{l as I};
|
@@ -1 +0,0 @@
|
|
1
|
-
import{j as e}from"./@tanstack-CEbkxrhX.js";import{A as s,b as a}from"./index-QORVVTMN.js";function m({username:t}){return e.jsxs("div",{className:"inline-flex items-center gap-1",children:[e.jsx(s,{size:"sm",children:e.jsx(a,{size:"sm",children:t[0]})}),e.jsx("p",{className:"text-text-sm font-semibold text-theme-text-primary",children:t})]})}export{m as I};
|
@@ -1 +0,0 @@
|
|
1
|
-
import{j as a}from"./@tanstack-CEbkxrhX.js";import{s as m}from"./index-QORVVTMN.js";function p({children:r,className:e,...o}){return a.jsx("div",{...o,className:m("border-b border-theme-border-moderate bg-theme-surface-primary px-5 py-3",e),children:r})}export{p as P};
|
@@ -1 +0,0 @@
|
|
1
|
-
import{j as a}from"./@tanstack-CEbkxrhX.js";import{I as D,an as G,s as F}from"./index-QORVVTMN.js";import{g as Z,c as j,r as d}from"./@radix-C9DBgJhe.js";import{o as k}from"./url-6_xv0WJS.js";import{c as A,a as I}from"./@react-router-DYovave8.js";import{D as W}from"./chevron-right-double-CJ50E9Gr.js";var _="Expected a function",T=NaN,q="[object Symbol]",z=/^\s+|\s+$/g,H=/^[-+]0x[0-9a-f]+$/i,Q=/^0b[01]+$/i,U=/^0o[0-7]+$/i,V=parseInt,X=typeof j=="object"&&j&&j.Object===Object&&j,J=typeof self=="object"&&self&&self.Object===Object&&self,K=X||J||Function("return this")(),Y=Object.prototype,ee=Y.toString,te=Math.max,re=Math.min,w=function(){return K.Date.now()};function ne(e,r,o){var n,u,f,m,i,l,g=0,h=!1,t=!1,c=!0;if(typeof e!="function")throw new TypeError(_);r=P(r)||0,y(o)&&(h=!!o.leading,t="maxWait"in o,f=t?te(P(o.maxWait)||0,r):f,c="trailing"in o?!!o.trailing:c);function C(s){var p=n,x=u;return n=u=void 0,g=s,m=e.apply(x,p),m}function M(s){return g=s,i=setTimeout(v,r),h?C(s):m}function $(s){var p=s-l,x=s-g,N=r-p;return t?re(N,f-x):N}function E(s){var p=s-l,x=s-g;return l===void 0||p>=r||p<0||t&&x>=f}function v(){var s=w();if(E(s))return L(s);i=setTimeout(v,$(s))}function L(s){return i=void 0,c&&n?C(s):(n=u=void 0,m)}function B(){i!==void 0&&clearTimeout(i),g=0,n=l=u=i=void 0}function O(){return i===void 0?m:L(w())}function S(){var s=w(),p=E(s);if(n=arguments,u=this,l=s,p){if(i===void 0)return M(l);if(t)return i=setTimeout(v,r),C(l)}return i===void 0&&(i=setTimeout(v,r)),m}return S.cancel=B,S.flush=O,S}function y(e){var r=typeof e;return!!e&&(r=="object"||r=="function")}function ie(e){return!!e&&typeof e=="object"}function ae(e){return typeof e=="symbol"||ie(e)&&ee.call(e)==q}function P(e){if(typeof e=="number")return e;if(ae(e))return T;if(y(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=y(r)?r+"":r}if(typeof e!="string")return e===0?e:+e;e=e.replace(z,"");var o=Q.test(e);return o||U.test(e)?V(e.slice(2),o?2:8):H.test(e)?T:+e}var se=ne;const oe=Z(se),le=["equals:","contains:","startswith:","endswith:","gte:","gt:","lte:","lt:"];function ce(e){const r=le.find(o=>e.startsWith(o));return r?e.slice(r.length):e}const ue=d.forwardRef(({searchParams:e,searchContains:r=!0,...o},n)=>{const{pathname:u}=A(),f=I(),[m,i]=d.useState(ce(e.name||"")||""),l=d.useMemo(()=>oe(g,500),[]);d.useEffect(()=>()=>{l.cancel()},[l]);function g(t){const c=new URLSearchParams(k(e));c.delete("logical_operator"),t?(c.set("name",r?`contains:${t}`:`${t}`),c.set("operator","or"),c.set("page","1")):(c.delete("name"),c.delete("operator")),f(`${u}?${c.toString()}`,{preventScrollReset:!0,replace:!0})}function h(t){const{value:c}=t.target;i(c),l(c)}return a.jsx(D,{...o,ref:n,value:m,onChange:h,placeholder:"Search...",inputSize:"md"})});ue.displayName="SearchField";const de=e=>d.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 12C3 10.8954 3.89543 10 5 10C6.10457 10 7 10.8954 7 12C7 13.1046 6.10457 14 5 14C3.89543 14 3 13.1046 3 12ZM10 12C10 10.8954 10.8954 10 12 10C13.1046 10 14 10.8954 14 12C14 13.1046 13.1046 14 12 14C10.8954 14 10 13.1046 10 12ZM17 12C17 10.8954 17.8954 10 19 10C20.1046 10 21 10.8954 21 12C21 13.1046 20.1046 14 19 14C17.8954 14 17 13.1046 17 12Z",fill:"black"})),fe=e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{id:"chevron-left-double"},d.createElement("path",{id:"Icon (Stroke)",fillRule:"evenodd",clipRule:"evenodd",d:"M11.7071 6.29289C12.0976 6.68342 12.0976 7.31658 11.7071 7.70711L7.41421 12L11.7071 16.2929C12.0976 16.6834 12.0976 17.3166 11.7071 17.7071C11.3166 18.0976 10.6834 18.0976 10.2929 17.7071L5.29289 12.7071C4.90237 12.3166 4.90237 11.6834 5.29289 11.2929L10.2929 6.29289C10.6834 5.90237 11.3166 5.90237 11.7071 6.29289ZM18.7071 6.29289C19.0976 6.68342 19.0976 7.31658 18.7071 7.70711L14.4142 12L18.7071 16.2929C19.0976 16.6834 19.0976 17.3166 18.7071 17.7071C18.3166 18.0976 17.6834 18.0976 17.2929 17.7071L12.2929 12.7071C11.9024 12.3166 11.9024 11.6834 12.2929 11.2929L17.2929 6.29289C17.6834 5.90237 18.3166 5.90237 18.7071 6.29289Z"}))),me=fe,ge=e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{id:"chevron-left"},d.createElement("path",{id:"Icon (Stroke)",fillRule:"evenodd",clipRule:"evenodd",d:"M15.7071 5.29289C16.0976 5.68342 16.0976 6.31658 15.7071 6.70711L10.4142 12L15.7071 17.2929C16.0976 17.6834 16.0976 18.3166 15.7071 18.7071C15.3166 19.0976 14.6834 19.0976 14.2929 18.7071L8.29289 12.7071C7.90237 12.3166 7.90237 11.6834 8.29289 11.2929L14.2929 5.29289C14.6834 4.90237 15.3166 4.90237 15.7071 5.29289Z"}))),pe=ge;function Se({paginate:e,searchParams:r}){const o=I(),{index:n,total_pages:u}=e;function f(i){const l=new URLSearchParams(k(r));l.set("page",i.toString()),o(`?${l.toString()}`,{preventScrollReset:!1})}const m=()=>{const i=[];let g=!1,h=!1;for(let t=1;t<=u;t++){const c=t>1&&t<u&&Math.abs(t-n)>1;(t===1||t===u||c||Math.abs(t-n)<=1)&&(c?t<n&&!g?(i.push(a.jsx(R,{},"ellipsis-left")),g=!0):t>n&&!h&&(i.push(a.jsx(R,{},"ellipsis-right")),h=!0):i.push(a.jsx(b,{"aria-label":`Go to page ${t}`,"aria-current":t===n,className:`${t===n?"!bg-primary-500 text-theme-text-negative":""}`,onClick:()=>f(t),disabled:t===n,children:t},t)))}return i};return a.jsx("nav",{role:"navigation","aria-label":"Pagination Navigation",children:a.jsxs("ul",{className:"flex gap-1",children:[a.jsx("li",{children:a.jsx(b,{disabled:n===1,onClick:()=>f(1),"aria-label":"Go to first page",children:a.jsx(me,{className:"h-4 w-4 group-disabled/button:fill-neutral-300"})})}),a.jsx("li",{children:a.jsx(b,{disabled:n===1,onClick:()=>f(n-1),"aria-label":"Go to previous page",children:a.jsx(pe,{className:"h-4 w-4 group-disabled/button:fill-neutral-300"})})}),m().map((i,l)=>a.jsx("li",{children:i},l)),a.jsx("li",{children:a.jsx(b,{disabled:n===u,onClick:()=>f(n+1),"aria-label":"Go to next page",children:a.jsx(G,{className:"h-4 w-4 group-disabled/button:fill-neutral-300"})})}),a.jsx("li",{children:a.jsx(b,{disabled:n===u,onClick:()=>f(u),"aria-label":"Go to last page",children:a.jsx(W,{className:"h-4 w-4 group-disabled/button:fill-neutral-300"})})})]})})}function R(){return a.jsx("div",{className:"flex h-[36px] w-[36px] items-center justify-center rounded-sm border border-theme-border-moderate",children:a.jsx(de,{className:"h-4 w-4"})})}const b=d.forwardRef(({className:e,...r},o)=>a.jsx("button",{...r,ref:o,className:F("group/button flex h-[36px] w-[36px] items-center justify-center rounded-sm border border-neutral-300 hover:bg-neutral-200 active:border-neutral-400 active:bg-neutral-300 disabled:pointer-events-none disabled:bg-theme-surface-primary ",e)}));b.displayName="PaginationButton";export{Se as P,ue as S,de as a};
|
@@ -1 +0,0 @@
|
|
1
|
-
import{j as s}from"./@tanstack-CEbkxrhX.js";const a={uppercase:"Password must contain at least one uppercase letter",lowercase:"Password must contain at least one lowercase letter",number:"Password must contain at least one number",special:"Password must contain at least one special character",length:"Password must be at least 8 characters"};function l({errors:c,val:t}){const e=n(c||{});function r(o){return t?e.includes(o)?"text-theme-text-error":"text-theme-text-success":"text-theme-text-secondary"}return s.jsxs("div",{className:"space-y-1 rounded-md border border-theme-border-moderate bg-theme-surface-secondary px-5 py-3 text-text-xs text-theme-text-secondary",children:[s.jsx("p",{className:"text-text-sm text-theme-text-primary",children:"Password criteria"}),s.jsxs("div",{children:[s.jsx("p",{className:r(a.length),children:"Minimum 8 characters"}),s.jsx("p",{className:r(a.number),children:"Must Contain one Numeric value"}),s.jsx("p",{className:r(a.uppercase),children:"Must include upper cases"}),s.jsx("p",{className:r(a.lowercase),children:"Must include lower cases"}),s.jsx("p",{className:r(a.special),children:"Must include one special character (!,@,#...)"})]})]})}function n(c){const t=[];return Object.values(c).forEach(e=>{typeof e=="string"?t.push(e):Array.isArray(e)?t.push(...e):typeof e=="object"&&e!==null&&t.push(...n(e))}),t}export{l as P};
|
@@ -1 +0,0 @@
|
|
1
|
-
import{j as s}from"./@tanstack-CEbkxrhX.js";import{I as a,h as p}from"./index-QORVVTMN.js";import{u as w}from"./index.esm-F7nqy9zY.js";import{t as h}from"./zod-DrZvVLjd.js";import{P as u}from"./PasswordChecker-DSLBp7Vl.js";import{g as f}from"./SuccessStep-ZzczaM7g.js";function b({displayUsername:r=!1,submitHandler:l,headline:o="Create your password",subHeadine:c="Select a password for your account"}){var t;const{register:e,watch:m,handleSubmit:d,formState:{isValid:i,errors:n}}=w({resolver:h(f(r)),mode:"onChange",criteriaMode:"all",defaultValues:{username:""}}),x=(t=n.newPassword)==null?void 0:t.types;return s.jsxs("div",{className:"space-y-5",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-display-xs font-semibold",children:o}),s.jsx("p",{className:"text-theme-text-secondary",children:c})]}),s.jsxs("form",{onSubmit:d(l),className:"space-y-5",children:[s.jsx("div",{className:"space-y-2",children:r&&s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{className:"text-text-sm",children:"Username"}),s.jsx(a,{...e("username"),className:"w-full"})]})}),s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{className:"text-text-sm",children:"New Password"}),s.jsx(a,{...e("newPassword"),type:"password",className:"w-full"})]}),s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{className:"text-text-sm",children:"Confirm Password"}),s.jsx(a,{...e("confirmPassword"),type:"password",className:"w-full"})]}),s.jsx(u,{val:m("newPassword"),errors:x||[]}),s.jsx(p,{disabled:!i,className:"w-full text-center",size:"md",children:s.jsx("span",{className:"w-full",children:"Continue"})})]})]})}export{b as S};
|
@@ -1 +0,0 @@
|
|
1
|
-
import{j as s}from"./@tanstack-CEbkxrhX.js";import{r as n}from"./@radix-C9DBgJhe.js";import{z as r,B as u,h as p,r as d}from"./index-QORVVTMN.js";import{a as h}from"./UpdatePasswordSchemas-DnM-c11H.js";import{S as x}from"./check-circle-BVvhm5dy.js";import{u as f}from"./url-6_xv0WJS.js";import{b as g,L as S}from"./@react-router-DYovave8.js";const c=n.createContext(null);function E({children:e,initialStep:t=1}){const[o,a]=n.useState(t);return s.jsx(c.Provider,{value:{surveyStep:o,setSurveyStep:a},children:e})}function w(){const e=n.useContext(c);if(e===null)throw new Error("useSurveyContext must be used within an SurveyProvider");return e}function F({stepAmount:e}){const{surveyStep:t}=w();return t>e?null:s.jsx("ol",{className:"flex flex-wrap justify-center gap-1 pb-5","aria-label":"progress",children:Array.from({length:e},(o,a)=>s.jsx("li",{"aria-current":t===a+1?"step":void 0,className:`h-0.5 w-[90px] rounded-rounded ${t===a+1?"bg-primary-100":t>a?"bg-primary-300":"bg-neutral-200"}`},a))})}const R=r.object({fullName:r.union([r.string(),r.literal("")]),email:r.union([r.string().email(),r.literal("")]),getUpdates:r.boolean()}).refine(e=>e.getUpdates?e.email!=="":!0),U=r.object({primaryUse:r.string().min(1),amountProductionModels:r.string().min(1)}),k=r.object({channels:r.string().array(),other:r.boolean(),otherVal:r.string().optional()}).refine(e=>e.other?e.otherVal!=="":e.channels.length>0),z=r.object({serverName:r.string().optional()});function y(e=!1){return h.extend({username:r.string()}).refine(t=>t.newPassword===t.confirmPassword,{path:["confirmPassword"],message:"Passwords do not match"}).refine(t=>e?t.username.length>0:!0)}y();const v=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.2929 4.29289C11.6834 3.90237 12.3166 3.90237 12.7071 4.29289L19.7071 11.2929C20.0976 11.6834 20.0976 12.3166 19.7071 12.7071L12.7071 19.7071C12.3166 20.0976 11.6834 20.0976 11.2929 19.7071C10.9024 19.3166 10.9024 18.6834 11.2929 18.2929L16.5858 13H5C4.44772 13 4 12.5523 4 12C4 11.4477 4.44772 11 5 11H16.5858L11.2929 5.70711C10.9024 5.31658 10.9024 4.68342 11.2929 4.29289Z"}));function A({username:e,subHeader:t,displayBody:o=!0}){const[a]=g(),i=a.get("redirect"),m=i&&`${window.location.origin}${i}`,l=f.safeParse(m);return s.jsxs(u,{className:"flex max-w-[540px] flex-col items-center justify-center space-y-7 px-7 py-9",children:[s.jsx(x,{className:"h-[120px] w-[120px] fill-theme-text-success"}),s.jsxs("div",{className:"space-y-3 text-center",children:[s.jsxs("p",{className:"text-display-xs font-semibold",children:["Congratulations!",s.jsx("br",{}),t]}),o&&s.jsxs("p",{className:"text-theme-text-secondary",children:["You can log in to the dashboard with your username"," ",s.jsx("span",{className:"font-semibold text-theme-text-primary",children:e})," and your password to start exploring!"]}),s.jsx(p,{className:"inline-flex",size:"md",intent:"primary",asChild:!0,children:s.jsxs(S,{to:l.success?l.data:d.home,children:[s.jsx("span",{children:"Go to Dashboard"}),s.jsx(v,{className:"h-5 w-5 fill-white"})]})})]})]})}export{k as A,F as S,A as a,E as b,z as c,R as d,y as g,U as p,w as u};
|
@@ -1 +0,0 @@
|
|
1
|
-
import{j as e}from"./@tanstack-CEbkxrhX.js";import{B as l,ay as r}from"./index-QORVVTMN.js";const s=["Managed ZenML server on your VPC or hosted on our servers","Social SSO, RBAC, and User Management","CI/CD/CT, Artifact Control Plane and more!"],c=["Model Control Plane Dashboard",...s],m=["Artifact Control Plane Dashboard",...s];function x({features:t,image:a}){return e.jsxs(l,{className:"relative overflow-hidden px-7 py-5",children:[e.jsxs("div",{className:"max-w-[450px] space-y-4",children:[e.jsx("p",{className:"text-display-xs font-semibold",children:"Access Advanced Model Management Features with ZenML Cloud"}),e.jsx("ul",{className:"space-y-2",children:t.map((n,o)=>e.jsx("li",{className:"text-text-md text-theme-text-secondary",children:n},o))}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx("a",{href:"https://zenml.io/pricing",target:"_blank",rel:"noopener noreferrer",className:r({intent:"primary",size:"md"}),children:"Start the free trial"}),e.jsx("a",{href:"https://www.zenml.io/cloud",target:"_blank",rel:"noopener noreferrer",className:r({intent:"primary",size:"md",emphasis:"minimal"}),children:"Learn more"})]})]}),e.jsx("img",{className:"absolute right-0 top-0 hidden translate-x-[45%] translate-y-[10%] rounded-md border border-theme-border-moderate lg:block",src:a.src,alt:a.alt})]})}export{x as C,m as a,c as m};
|