@jetcrab/pi-desk 1.1.20-dev → 1.1.22-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/plugins.md +81 -1
- package/package.json +3 -3
- package/src/app/page.tsx +6 -1
- package/src/app/project-preview/page.tsx +10 -0
- package/src/client/l1_entry/pages/l1-home-page.tsx +30 -0
- package/src/client/l1_entry/pages/l1-project-preview-page.tsx +33 -0
- package/src/client/l1_entry/providers/l1-app-providers.tsx +18 -15
- package/src/client/l1_entry/providers/l1-app-runtime-provider.tsx +2 -2
- package/src/client/l2_biz/auth/l2-login-biz.ts +3 -0
- package/src/client/l2_biz/auth/l2-login.tsx +2 -3
- package/src/client/l2_biz/plugin-host/l2-plugin-capability-details.tsx +6 -1
- package/src/client/l2_biz/plugin-host/l2-plugin-contribution-host.tsx +71 -10
- package/src/client/l2_biz/plugin-host/l2-plugin-management-controls.tsx +9 -0
- package/src/client/l2_biz/plugin-host/l2-plugin-session-header-layout.ts +18 -0
- package/src/client/l2_biz/plugin-host/l2-plugin-session-header.tsx +247 -0
- package/src/client/l2_biz/plugin-host/l2-plugin-widgets.tsx +50 -0
- package/src/client/l2_biz/plugin-host/views/l2-plugin-session-header-action.tsx +112 -0
- package/src/client/l2_biz/project-preview/hooks/l2-use-project-picker.ts +76 -0
- package/src/client/l2_biz/project-preview/hooks/l2-use-project-preview.ts +214 -0
- package/src/client/l2_biz/project-preview/l2-project-preview-biz.ts +49 -4
- package/src/client/l2_biz/project-preview/l2-project-preview-dialog.tsx +42 -450
- package/src/client/l2_biz/project-preview/l2-project-preview-page.tsx +61 -0
- package/src/client/l2_biz/project-preview/l2-project-preview.tsx +342 -0
- package/src/client/l2_biz/project-preview/runtime/l2-project-history-runtime.ts +9 -3
- package/src/client/l2_biz/project-preview/views/l2-project-picker.tsx +168 -0
- package/src/client/l2_biz/settings/hooks/l2-use-model-settings.ts +34 -31
- package/src/client/l2_biz/settings/views/l2-model-replacement-preview.tsx +7 -1
- package/src/client/l2_biz/workbench/file-workspace/l2-project-preview-biz.ts +4 -3
- package/src/client/l2_biz/workbench/hooks/l2-workbench-chat-viewport.ts +28 -21
- package/src/client/l2_biz/workbench/l2-work-session-columns.module.css +32 -0
- package/src/client/l2_biz/workbench/l2-work-session-columns.tsx +55 -16
- package/src/client/l2_biz/workbench/l2-work-session-sidebar.tsx +19 -8
- package/src/client/l2_biz/workbench/l2-workbench-chat-composer.tsx +12 -1
- package/src/client/l2_biz/workbench/l2-workbench-initialization-notice.tsx +8 -3
- package/src/client/l2_biz/workbench/l2-workbench-plugin-slots.ts +13 -0
- package/src/client/l2_biz/workbench/l2-workbench.tsx +15 -2
- package/src/client/l3_modules/conversation/l3-conversation-viewport.tsx +12 -6
- package/src/client/l3_modules/project-files/l3-markdown-preview.module.css +1 -1
- package/src/client/l3_modules/project-files/l3-project-document-git.ts +4 -3
- package/src/client/l3_modules/project-files/l3-project-document-view.tsx +4 -1
- package/src/client/l3_modules/project-files/l3-project-reader.ts +23 -35
- package/src/client/l4_foundation/lib/l4-client-id.tsx +11 -0
- package/src/client/l4_foundation/plugin-host/l4-plugin-host-runtime.ts +316 -35
- package/src/common/l2_biz/auth/l2-auth-return-to.ts +41 -0
- package/src/common/l2_biz/model-settings/l2-model-settings-contract.ts +5 -1
- package/src/common/l2_biz/plugin/l2-plugin-management-messages.ts +4 -0
- package/src/common/l2_biz/project-preview/l2-project-history-messages.ts +28 -0
- package/src/common/l2_biz/project-preview/l2-project-preview-navigation.ts +5 -0
- package/src/common/l2_biz/settings/l2-settings-messages.ts +4 -3
- package/src/common/l2_biz/workbench/l2-workbench-locale-messages.ts +2 -0
- package/src/server/l1_entry/node/l1-server.ts +8 -4
- package/src/server/l4_foundation/model-settings/l4-model-settings-store.ts +29 -20
- package/src/server/l4_foundation/model-settings/l4-model-settings-types.ts +1 -1
- package/src/server/l4_foundation/pi/l4-pi-chat-worker.ts +22 -5
- package/src/server/l4_foundation/pi/l4-pi-plugin-owner-runtime.ts +133 -13
- package/src/server/l4_foundation/pi/l4-pi-session-initialization.ts +9 -0
- package/temp/build/pi-desk/release/.next/BUILD_ID +1 -1
- package/temp/build/pi-desk/release/.next/app-path-routes-manifest.json +3 -2
- package/temp/build/pi-desk/release/.next/build-manifest.json +3 -3
- package/temp/build/pi-desk/release/.next/react-loadable-manifest.json +1 -2
- package/temp/build/pi-desk/release/.next/required-server-files.js +2 -2
- package/temp/build/pi-desk/release/.next/required-server-files.json +2 -2
- package/temp/build/pi-desk/release/.next/routes-manifest.json +6 -0
- package/temp/build/pi-desk/release/.next/server/app/_global-error/page.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/_global-error.html +1 -1
- package/temp/build/pi-desk/release/.next/server/app/_global-error.rsc +3 -3
- package/temp/build/pi-desk/release/.next/server/app/_global-error.segments/_full.segment.rsc +3 -3
- package/temp/build/pi-desk/release/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +3 -3
- package/temp/build/pi-desk/release/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/temp/build/pi-desk/release/.next/server/app/_not-found/page.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/auth/login/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/auth/logout/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/auth-settings/get/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/auth-settings/replace/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/capability-modes/get/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/capability-modes/replace/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/chat/context/get/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/chat/images/get/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/chat/messages/get/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/health/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/mcp-check/get/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/mcp-settings/del/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/mcp-settings/get/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/mcp-settings/replace/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/model-catalog/list/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/model-settings/get/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/model-settings/preview/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/model-settings/replace/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/pi/directories/list/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/pi/directory-entries/list/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/pi/directory-ignores/list/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/pi/directory-ignores/replace/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/pi/models/list/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/pi/session-user-messages/list/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/pi/sessions/list/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/plugin-catalog/get/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/plugin-catalog/search/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/plugin-catalog/settings-get/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/plugin-catalog/settings-replace/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/plugins/add/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/plugins/apply/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/plugins/batch/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/plugins/browser-resources/[resourceGroup]/[...resourcePath]/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/plugins/del/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/plugins/enabled-set/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/plugins/get/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/plugins/host-runtime/[runtimeVersion]/[...resourcePath]/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/plugins/list/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/plugins/reload/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/plugins/update/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/project-files/get/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/project-files/list/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/project-files/reveal/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/project-files/search/route.js +2 -2
- package/temp/build/pi-desk/release/.next/server/app/api/project-git/get/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/project-git-branches/list/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/project-git-changes/list/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/project-git-diff/get/route.js +2 -2
- package/temp/build/pi-desk/release/.next/server/app/api/project-git-heads/get/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/project-git-log/list/route.js +2 -2
- package/temp/build/pi-desk/release/.next/server/app/api/project-model-default/get/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/project-model-default/replace/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/skill-files/get/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/skill-files/list/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/skill-files/replace/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/skills/list/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/task-center/images/get/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/task-center/messages/get/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/work-session-git-branch/add/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/work-session-git-branch/replace/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/work-session-tree/get/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/work-session-tree-entry/get/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/work-sessions/add/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/work-sessions/branch/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/work-sessions/del/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/work-sessions/rename/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/work-sessions/replace/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/api/work-sessions/sort/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/favicon.ico/route.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/login/page.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/page.js +140 -140
- package/temp/build/pi-desk/release/.next/server/app/page_client-reference-manifest.js +1 -1
- package/temp/build/pi-desk/release/.next/server/app/project-preview/page.js +1 -0
- package/temp/build/pi-desk/release/.next/server/app/project-preview/page_client-reference-manifest.js +1 -0
- package/temp/build/pi-desk/release/.next/server/app-paths-manifest.json +3 -2
- package/temp/build/pi-desk/release/.next/server/chunks/10912.js +2 -2
- package/temp/build/pi-desk/release/.next/server/chunks/20460.js +15 -0
- package/temp/build/pi-desk/release/.next/server/chunks/25406.js +8 -8
- package/temp/build/pi-desk/release/.next/server/chunks/35985.js +3 -17
- package/temp/build/pi-desk/release/.next/server/chunks/36361.js +1 -1
- package/temp/build/pi-desk/release/.next/server/chunks/48180.js +1 -1
- package/temp/build/pi-desk/release/.next/server/chunks/56830.js +235 -0
- package/temp/build/pi-desk/release/.next/server/chunks/78262.js +1 -1
- package/temp/build/pi-desk/release/.next/server/chunks/79686.js +62 -0
- package/temp/build/pi-desk/release/.next/server/chunks/80780.js +1 -0
- package/temp/build/pi-desk/release/.next/server/chunks/81363.js +1 -1
- package/temp/build/pi-desk/release/.next/server/chunks/82499.js +4 -4
- package/temp/build/pi-desk/release/.next/server/chunks/92386.js +8 -8
- package/temp/build/pi-desk/release/.next/server/middleware-build-manifest.js +1 -1
- package/temp/build/pi-desk/release/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/temp/build/pi-desk/release/.next/server/pages/500.html +1 -1
- package/temp/build/pi-desk/release/.next/static/MV6_lBt7Mzmi1rBNI-3dx/_buildManifest.js +1 -0
- package/temp/build/pi-desk/release/.next/static/chunks/11937-1d0a9822f2c7995b.js +1 -0
- package/temp/build/pi-desk/release/.next/static/chunks/14825-5579aed34a631ad7.js +62 -0
- package/temp/build/pi-desk/release/.next/static/chunks/15302-9c807afc6c60de0c.js +1 -0
- package/temp/build/pi-desk/release/.next/static/chunks/19991.8aa2e4b6df15fad6.js +1 -0
- package/temp/build/pi-desk/release/.next/static/chunks/22092-6d1bfbefa825ec03.js +1 -0
- package/temp/build/pi-desk/release/.next/static/chunks/37313-d5970e2d0c270d22.js +238 -0
- package/temp/build/pi-desk/release/.next/static/chunks/57235-03ba1044f22b6c84.js +1 -0
- package/temp/build/pi-desk/release/.next/static/chunks/79267-7d21d7cdbd7cfca1.js +1 -0
- package/temp/build/pi-desk/release/.next/static/chunks/82371-f7ba4a07a5dbcf34.js +1 -0
- package/temp/build/pi-desk/release/.next/static/chunks/9038-03144ed96d613f75.js +15 -0
- package/temp/build/pi-desk/release/.next/static/chunks/app/{error-0296a3b20cd1bf00.js → error-216b14b5da089ed3.js} +1 -1
- package/temp/build/pi-desk/release/.next/static/chunks/app/layout-20718f1503910291.js +1 -0
- package/temp/build/pi-desk/release/.next/static/chunks/app/login/page-0d3d4827802108e5.js +1 -0
- package/temp/build/pi-desk/release/.next/static/chunks/app/{not-found-2aab8b33ebbf3257.js → not-found-720cdf6a606b821a.js} +1 -1
- package/temp/build/pi-desk/release/.next/static/chunks/app/page-e8a5274c115f528d.js +158 -0
- package/temp/build/pi-desk/release/.next/static/chunks/app/project-preview/page-d70ee4e9409b970a.js +1 -0
- package/temp/build/pi-desk/release/.next/static/chunks/webpack-b60891a214e0925d.js +1 -0
- package/temp/build/pi-desk/release/.next/static/css/{250a6b93cc2222d1.css → 1e780a4936aa6ba3.css} +1 -1
- package/temp/build/pi-desk/release/.next/static/css/f646ca6c07245c4c.css +1 -0
- package/temp/build/pi-desk/release/.next/trace-build +1 -1
- package/temp/build/pi-desk/release/.next/server/chunks/10881.js +0 -296
- package/temp/build/pi-desk/release/.next/static/RLKcK-RQF5FvEeDmS9uih/_buildManifest.js +0 -1
- package/temp/build/pi-desk/release/.next/static/chunks/27611-0890482fe76bd9d6.js +0 -238
- package/temp/build/pi-desk/release/.next/static/chunks/31087-d8e5765d541d5c26.js +0 -1
- package/temp/build/pi-desk/release/.next/static/chunks/3814-35cfab0ce3aa7c41.js +0 -1
- package/temp/build/pi-desk/release/.next/static/chunks/70669.07f3670bfb7d6dd2.js +0 -1
- package/temp/build/pi-desk/release/.next/static/chunks/74220-795a2e7185bd66cb.js +0 -1
- package/temp/build/pi-desk/release/.next/static/chunks/77592-5bef6acb8e7c4b96.js +0 -13
- package/temp/build/pi-desk/release/.next/static/chunks/78923-17a9c337b29dcecd.js +0 -1
- package/temp/build/pi-desk/release/.next/static/chunks/81881-f11dbe7dc0d04ed9.js +0 -1
- package/temp/build/pi-desk/release/.next/static/chunks/96995-8f8313ea2ac3abd7.js +0 -62
- package/temp/build/pi-desk/release/.next/static/chunks/app/layout-a50c456648537afb.js +0 -3
- package/temp/build/pi-desk/release/.next/static/chunks/app/login/page-84892b06243891f0.js +0 -1
- package/temp/build/pi-desk/release/.next/static/chunks/app/page-0789c43551b29dd2.js +0 -158
- package/temp/build/pi-desk/release/.next/static/chunks/webpack-d7248206b7fc7ba8.js +0 -1
- package/temp/build/pi-desk/release/.next/static/css/a4cf28fd76c70165.css +0 -1
- /package/temp/build/pi-desk/release/.next/static/{RLKcK-RQF5FvEeDmS9uih → MV6_lBt7Mzmi1rBNI-3dx}/_ssgManifest.js +0 -0
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[96995],{301:(e,t,n)=>{n.d(t,{q:()=>r});function r(e){return null==e?e:"current"in e?e.current:e}},1712:(e,t,n)=>{n.d(t,{$v:()=>p,Jd:()=>o,Kp:()=>u,Qi:()=>f,RJ:()=>s,eR:()=>l,il:()=>i,jF:()=>c,rT:()=>d,yZ:()=>a});var r=n(10813);let i="ArrowUp",o="ArrowDown",l="ArrowLeft",s="ArrowRight",a="Home",u="End",c=new Set([i,o,l,s,a,u]),d=["Shift","Control","Alt","Meta"];function f(e){return!!((0,r.sb)(e)&&"INPUT"===e.tagName&&null!=e.selectionStart||(0,r.sb)(e)&&"TEXTAREA"===e.tagName)}function p(e,t,n,r){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,o=e.scrollTop,l=e.clientWidth<e.scrollWidth,s=e.clientHeight<e.scrollHeight;if(l&&"vertical"!==r){let r=h(e,t,"left"),o=m(e),l=m(t);"ltr"===n&&(r+t.offsetWidth+l.scrollMarginRight>e.scrollLeft+e.clientWidth-o.scrollPaddingRight?i=r+t.offsetWidth+l.scrollMarginRight-e.clientWidth+o.scrollPaddingRight:r-l.scrollMarginLeft<e.scrollLeft+o.scrollPaddingLeft&&(i=r-l.scrollMarginLeft-o.scrollPaddingLeft)),"rtl"===n&&(r-l.scrollMarginLeft<e.scrollLeft+o.scrollPaddingLeft?i=r-l.scrollMarginLeft-o.scrollPaddingLeft:r+t.offsetWidth+l.scrollMarginRight>e.scrollLeft+e.clientWidth-o.scrollPaddingRight&&(i=r+t.offsetWidth+l.scrollMarginRight-e.clientWidth+o.scrollPaddingRight))}if(s&&"horizontal"!==r){let n=h(e,t,"top"),r=m(e),i=m(t);n-i.scrollMarginTop<e.scrollTop+r.scrollPaddingTop?o=n-i.scrollMarginTop-r.scrollPaddingTop:n+t.offsetHeight+i.scrollMarginBottom>e.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(o=n+t.offsetHeight+i.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:i,top:o,behavior:"auto"})}function h(e,t,n){let r="left"===n?"offsetLeft":"offsetTop",i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);)t=t.offsetParent;return i}function m(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}},6561:(e,t,n)=>{n.d(t,{EW:()=>l,RS:()=>i,gR:()=>o});var r=n(10813);function i(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function o(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&(0,r.Ng)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function l(e){return"composedPath"in e?e.composedPath()[0]:e.target}},6761:(e,t,n)=>{n.d(t,{BT:()=>i,Ed:()=>r,Jd:()=>a,RJ:()=>l,eR:()=>o,il:()=>s});let r="data-base-ui-focusable",i="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",o="ArrowLeft",l="ArrowRight",s="ArrowUp",a="ArrowDown"},7058:(e,t,n)=>{n.d(t,{y:()=>o});var r=n(69266),i=n(48356);function o(e){r.useEffect(e,i.Ml)}},8028:(e,t,n)=>{n.d(t,{D:()=>i,M:()=>o});var r=n(69266);let i=r.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function o(){return r.useContext(i)}},9279:(e,t,n)=>{n.d(t,{S:()=>l});var r=n(80417),i=n(69266);let o=i.createContext(void 0);function l(e){let t=i.useContext(o);if(void 0===t&&!e)throw Error((0,r.A)(69));return t}},9542:(e,t,n)=>{n.d(t,{e:()=>i});var r=n(63829);function i(e){return(0,r.B)(e,"base-ui")}},12418:(e,t,n)=>{n.d(t,{Ev:()=>c,Go:()=>u,O_:()=>l,Pg:()=>a,YF:()=>s,jo:()=>o});var r=n(29666),i=n(83350);function o(e){e.preventDefault(),e.stopPropagation()}function l(e){return"nativeEvent"in e}function s(e){return""===e.pointerType&&!!e.isTrusted||(r.yA&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function a(e){return!i.I&&(!r.yA&&0===e.width&&0===e.height||r.yA&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function u(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function c(e){let t=e.type;return"click"===t||"mousedown"===t||"keydown"===t||"keyup"===t}},12590:(e,t,n)=>{n.d(t,{V$:()=>u});var r=n(80417),i=n(69266),o=n(48356),l=n(54967);let s={invalid:void 0,name:void 0,validityData:{state:l.ZV,errors:[],error:"",value:"",initialValue:null},setValidityData:o.tE,disabled:void 0,setTouched:o.tE,setDirty:o.tE,setFilled:o.tE,setFocused:o.tE,validationMode:"onSubmit",shouldValidateOnChange:()=>!1,state:l.mk,registerFieldControl:o.tE,validation:{getValidationProps:(e,t=o.t0)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:o.tE,getInputControl:()=>null,commit:async()=>{},change:o.tE}},a=i.createContext(s);function u(e=!0){let t=i.useContext(a);if(t.setValidityData===o.tE&&!e)throw Error((0,r.A)(28));return t}},14044:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(50735).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},14738:(e,t,n)=>{n.d(t,{Z:()=>r});class r{constructor(){this.idMap=new Map}add(e,t){this.idMap.set(e,t)}delete(e){this.idMap.delete(e)}hasElement(e){for(let t of this.idMap.values())if(t===e)return!0;return!1}hasMatchingElement(e){for(let t of this.idMap.values())if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}}},17399:(e,t,n)=>{n.d(t,{KP:()=>s,NR:()=>a});var r=n(75645),i=n(7058);class o{request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||(this.callbacks[t]=null,this.callbacksCount-=1)}constructor(){this.callbacks=[],this.callbacksCount=0,this.nextId=1,this.startId=1,this.isScheduled=!1,this.tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)}}}let l=new o;class s{static create(){return new s}static request(e){return l.request(e)}static cancel(e){return l.cancel(e)}request(e){this.cancel(),this.currentId=l.request(()=>{this.currentId=null,e()})}constructor(){this.currentId=null,this.cancel=()=>{null!==this.currentId&&(l.cancel(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.cancel}}function a(){let e=(0,r.j)(s.create).current;return(0,i.y)(e.disposeEffect),e}},18065:(e,t,n)=>{e.exports=n(58689)},18452:(e,t,n)=>{n.d(t,{JG:()=>s,RT:()=>o,ST:()=>l});let{userAgent:r,platform:i,maxTouchPoints:o}="u"<typeof navigator?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0},l=r.toLowerCase(),s=i.toLowerCase()},18652:(e,t,n)=>{n.d(t,{Y:()=>i});var r=n(36100);function i(e){return(0,r._)(19)?e:e?"true":void 0}},19223:(e,t,n)=>{n.d(t,{D:()=>s});var r=n(69266),i=n(66758),o=n(10813),l=n(97626);function s(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:s,floatingId:a,nested:u,onOpenChange:c}=e,d=t.useState("open"),f=t.useState("activeTriggerElement"),p=t.useState(n?"popupElement":"positionerElement"),h=t.context.triggerElements,m=r.useRef(null);void 0===s&&null===m.current&&(m.current=new l.K({open:d,transitionStatus:void 0,referenceElement:f,floatingElement:p,triggerElements:h,onOpenChange:c,floatingId:a,syncOnly:!0,nested:u}));let g=s??m.current;return t.useSyncedValue("floatingId",a),(0,i.g)(()=>{let e={open:d,floatingId:a,referenceElement:f,floatingElement:p};(0,o.vq)(f)&&(e.domReferenceElement=f),g.state.positionReference===g.state.referenceElement&&(e.positionReference=f),g.update(e)},[d,a,f,p,g]),g.context.onOpenChange=c,g.context.nested=u,g}},22634:(e,t,n)=>{n.d(t,{$u:()=>c,F2:()=>a,H5:()=>d,Hi:()=>s,WZ:()=>f,em:()=>p,nd:()=>h,tZ:()=>u});var r=n(10813),i=n(83350),o=n(6761),l=n(6561);function s(e,t){if(!(0,r.vq)(e))return!1;if(t.hasElement(e))return!e.hasAttribute("data-trigger-disabled");for(let[,n]of t.entries())if((0,l.gR)(n,e))return!n.hasAttribute("data-trigger-disabled");return!1}function a(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))}function u(e){return e.matches("html,body")}function c(e){return(0,r.sb)(e)&&e.matches(o.BT)}function d(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${o.BT}`)!=null}function f(e){return!!e&&"combobox"===e.getAttribute("role")&&c(e)}function p(e){if(!e||i.I)return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}function h(e){return e?e.hasAttribute(o.Ed)?e:e.querySelector(`[${o.Ed}]`)||e:null}},24082:(e,t,n)=>{n.d(t,{k:()=>i});var r=n(33090);class i{nodesRef={current:[]};events=(0,r.d)();addNode(e){this.nodesRef.current.push(e)}removeNode(e){let t=this.nodesRef.current.findIndex(t=>t===e);-1!==t&&this.nodesRef.current.splice(t,1)}}},24121:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(50735).A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},24960:(e,t,n)=>{n.d(t,{K:()=>y});var r=n(10813),i=n(88944),o=n(68509),l=n(29666),s=n(33914),a=n(66758),u=n(34517),c=n(17399);let d={},f={},p="";function h(e,t){return(0,r.ZU)(e)?e:t}function m(e,t,n){return/hidden|clip/.test(e.getComputedStyle(h(t,n)).overflowY)}class g{acquire(e){return this.lockCount+=1,1===this.lockCount&&null===this.restore&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}lock(e){let t,n,a;if(0===this.lockCount||null!==this.restore)return;let u=(0,s.R)(e),g=u.documentElement,v=u.body,y=(0,r.zk)(g);if(m(y,g,v)){let t=new y.MutationObserver(()=>{m(y,g,v)||(t.disconnect(),this.restore=null,this.lock(e))}),n={attributes:!0};t.observe(g,n),t.observe(v,n),this.restore=()=>t.disconnect();return}let b=l.s4||!function(e){if("u"<typeof document)return!1;let t=(0,s.R)(e);return(0,r.zk)(t).innerWidth-t.documentElement.clientWidth>0}(e);this.restore=b?(a={overflowY:(n=h((t=(0,s.R)(e)).documentElement,t.body)).style.overflowY,overflowX:n.style.overflowX},Object.assign(n.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(n.style,a)}):function(e){let t=(0,s.R)(e),n=t.documentElement,l=t.body,a=(0,r.zk)(n),u=0,m=0,g=!1,v=c.KP.create();if(o.Fp&&(a.visualViewport?.scale??1)!==1)return()=>{};function y(){let t=a.getComputedStyle(n),r=a.getComputedStyle(l),i=(t.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";u=n.scrollTop,m=n.scrollLeft,d={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},p=n.style.scrollBehavior,f={position:l.style.position,height:l.style.height,width:l.style.width,boxSizing:l.style.boxSizing,overflowY:l.style.overflowY,overflowX:l.style.overflowX,scrollBehavior:l.style.scrollBehavior};let o=n.scrollHeight>n.clientHeight,c=n.scrollWidth>n.clientWidth,v="scroll"===t.overflowY||"scroll"===r.overflowY,y="scroll"===t.overflowX||"scroll"===r.overflowX,b=Math.max(0,a.innerWidth-l.clientWidth),_=Math.max(0,a.innerHeight-l.clientHeight),w=parseFloat(r.marginTop)+parseFloat(r.marginBottom),x=parseFloat(r.marginLeft)+parseFloat(r.marginRight),z=h(n,l);if(g=function(e){if(!("u">typeof CSS&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||"u"<typeof document)return!1;let t=(0,s.R)(e),n=t.documentElement,r=h(n,t.body),i=r.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter="stable",r.style.overflowY="scroll";let l=r.offsetWidth;r.style.overflowY="hidden";let a=r.offsetWidth;return r.style.overflowY=i,n.style.scrollbarGutter=o,l===a}(e)){n.style.scrollbarGutter=i,z.style.overflowY="hidden",z.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:i,overflowY:"hidden",overflowX:"hidden"}),(o||v)&&(n.style.overflowY="scroll"),(c||y)&&(n.style.overflowX="scroll"),Object.assign(l.style,{position:"relative",height:w||_?`calc(100dvh - ${w+_}px)`:"100dvh",width:x||b?`calc(100vw - ${x+b}px)`:"100vw",boxSizing:"border-box",overflowY:"hidden",overflowX:"hidden",scrollBehavior:"unset"}),l.scrollTop=u,l.scrollLeft=m,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function b(){Object.assign(n.style,d),Object.assign(l.style,f),g||(n.scrollTop=u,n.scrollLeft=m,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=p)}y();let _=(0,i.q)(a,"resize",function(){b(),v.request(y)});return()=>{v.cancel(),b(),"function"==typeof a.removeEventListener&&_()}}(e)}constructor(){this.lockCount=0,this.restore=null,this.timeoutLock=u.E.create(),this.timeoutUnlock=u.E.create(),this.release=()=>{this.lockCount-=1,0===this.lockCount&&this.restore&&this.timeoutUnlock.start(0,this.unlock)},this.unlock=()=>{0===this.lockCount&&this.restore&&(this.restore?.(),this.restore=null)}}}let v=new g;function y(e=!0,t=null){(0,a.g)(()=>{if(e)return v.acquire(t)},[e,t])}},25327:(e,t,n)=>{n.d(t,{CK:()=>z,XF:()=>k,vB:()=>w});var r=n(69266),i=n(44911),o=n(10813),l=n(88944),s=n(94532),a=n(63829),u=n(66758),c=n(66538),d=n(48356),f=n(69609),p=n(44453),h=n(53402),m=n(27944),g=n(51378),v=n(69611),y=n(73146),b=n(7962);let _=r.createContext(null),w=()=>r.useContext(_),x=(0,g.F)("portal");function z(e={}){let{ref:t,container:n,componentProps:l=d.t0,elementProps:s}=e,f=(0,a.B)(),p=w(),h=p?.portalNode,[m,g]=r.useState(null),[y,b]=r.useState(null),_=(0,c.K)(e=>{null!==e&&b(e)}),k=r.useRef(null);(0,u.g)(()=>{if(null===n){k.current&&(k.current=null,b(null),g(null));return}let e=(n&&((0,o.Ll)(n)?n:n.current))??h??document.body;if(null==e){k.current&&(k.current=null,b(null),g(null));return}k.current!==e&&(k.current=e,b(null),g(e))},[n,h]);let S=(0,v.o)("div",l,{ref:[t,_],props:[{id:f,[x]:""},s]}),E=m&&S?i.createPortal(S,m):null;return{node:y,nodeId:r.isValidElement(S)?S.props.id:void 0,subtree:E}}let k=r.forwardRef(function(e,t){let{render:n,className:o,style:a,children:c,container:d,...g}=e,{node:v,nodeId:w,subtree:x}=z({container:d,ref:t,componentProps:e,elementProps:g}),k=r.useRef(null),S=r.useRef(null),E=r.useRef(null),R=r.useRef(null),[T,$]=r.useState(null),O=r.useRef(!1),C=T?.modal,A=T?.open,P=!!T&&!T.modal&&T.open&&!!v;r.useEffect(()=>{if(v&&!C)return(0,s.g)((0,l.q)(v,"focusin",e,!0),(0,l.q)(v,"focusout",e,!0));function e(e){v&&e.relatedTarget&&(0,p.Qp)(e)&&("focusin"===e.type?O.current&&((0,p.yV)(v),O.current=!1):((0,p.N)(v),O.current=!0))}},[v,C]),(0,u.g)(()=>{v&&!0===A&&O.current&&((0,p.yV)(v),O.current=!1)},[A,v]);let I=r.useMemo(()=>({beforeOutsideRef:k,afterOutsideRef:S,beforeInsideRef:E,afterInsideRef:R,portalNode:v,setFocusManagerState:$}),[v]);return(0,b.jsxs)(r.Fragment,{children:[x,(0,b.jsxs)(_.Provider,{value:I,children:[P&&v&&(0,b.jsx)(f.U,{"data-type":"outside",ref:k,onFocus:e=>{if((0,p.Qp)(e,v))E.current?.focus();else{let e=T?T.domReference:null,t=(0,p.XJ)(e);t?.focus()}}}),P&&v&&(0,b.jsx)("span",{"aria-owns":w,style:y.z_}),v&&i.createPortal(c,v),P&&v&&(0,b.jsx)(f.U,{"data-type":"outside",ref:S,onFocus:e=>{if((0,p.Qp)(e,v))R.current?.focus();else{let t=T?T.domReference:null,n=(0,p.vF)(t);n?.focus(),T?.closeOnFocusOut&&T?.onOpenChange(!1,(0,h.d)(m.Xn,e.nativeEvent))}}})]})]})})},27944:(e,t,n)=>{n.d(t,{Bo:()=>a,Dq:()=>f,F4:()=>l,L5:()=>b,LO:()=>p,N7:()=>o,Np:()=>s,SR:()=>u,Ui:()=>i,Vh:()=>v,Xn:()=>c,c:()=>g,dv:()=>r,jv:()=>d,p:()=>h,r9:()=>m,zJ:()=>y});let r="none",i="trigger-press",o="trigger-hover",l="trigger-focus",s="outside-press",a="item-press",u="close-press",c="focus-out",d="escape-key",f="list-navigation",p="cancel-open",h="sibling-open",m="disabled",g="missing",v="initial",y="imperative-action",b="window-resize"},27989:(e,t,n)=>{n.d(t,{l:()=>d});var r=n(69266),i=n(66758),o=n(66538),l=n(34517),s=n(48356),a=n(86947),u=n(6561),c=n(12418);function d(e,t){let{listRef:n,elementsRef:d,activeIndex:f,onMatch:p,disabledIndices:h,onTyping:m,enabled:g=!0,resetMs:v=750,selectedIndex:y=null}=t,b="rootStore"in e?e.rootStore:e,_=b.useState("open"),w=(0,l.Z)(),x=r.useRef(""),z=r.useRef(y??f??-1),k=r.useRef(null),S=(0,o.K)(e=>{function t(e){let t=d?.current[e];return!(t&&!(0,a.J9)(t)||t?.matches(":disabled"))&&(null==h||!(0,a.FP)(s.Ml,e,h))}function r(e,n,i=0){if(0===e.length)return -1;let o=(i%e.length+e.length)%e.length,l=n.toLowerCase();for(let n=0;n<e.length;n+=1){let r=(o+n)%e.length,i=e[r];if(i?.toLowerCase().startsWith(l)&&t(r))return r}return -1}let i=n.current;if(x.current.length>0&&" "===e.key&&((0,c.jo)(e),m?.(!0)),x.current.length>0&&" "!==x.current[0]&&-1===r(i,x.current)&&" "!==e.key&&m?.(!1),null==i||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;_&&" "!==e.key&&((0,c.jo)(e),m?.(!0));let o=""===x.current;o&&(z.current=y??f??-1),i.every((e,n)=>!(e&&t(n))||e[0]?.toLowerCase()!==e[1]?.toLowerCase())&&x.current===e.key&&(x.current="",z.current=k.current),x.current+=e.key,w.start(v,()=>{x.current="",z.current=k.current,m?.(!1)});let l=o?y??f??-1:z.current,u=r(i,x.current,(l??0)+1);-1!==u?(p?.(u),k.current=u):" "!==e.key&&(x.current="",m?.(!1))}),E=(0,o.K)(e=>{let t=e.relatedTarget,n=b.select("domReferenceElement"),r=b.select("floatingElement");(0,u.gR)(n,t)||(0,u.gR)(r,t)||(w.clear(),x.current="",z.current=k.current,m?.(!1))});(0,i.g)(()=>{(_||null===y)&&(w.clear(),k.current=null,""!==x.current&&(x.current=""))},[_,y,w]);let R=r.useMemo(()=>({onKeyDown:S,onBlur:E}),[S,E]);return r.useMemo(()=>g?{reference:R,floating:R}:{},[g,R])}},29585:(e,t,n)=>{n.d(t,{H:()=>l});var r=n(69266),i=n(48356);let o=r.createContext({controlId:void 0,registerControlId:i.tE,labelId:void 0,setLabelId:i.tE,messageIds:[],setMessageIds:i.tE,getDescriptionProps:e=>e});function l(){return r.useContext(o)}},29666:(e,t,n)=>{n.d(t,{Bt:()=>a,Md:()=>s,s4:()=>i,yA:()=>l});var r=n(18452);let i=/^i(os$|p)/.test(r.JG)||"macintel"===r.JG&&r.RT>1,o="android",l=r.JG===o||r.ST.includes(o),s=!i&&r.JG.startsWith("mac");r.JG.startsWith("win"),l||/^(linux|chrome os)/.test(r.JG);let a=s||i},29815:(e,t,n)=>{n.d(t,{V:()=>s});var r=n(44911),i=n(17399),o=n(66538),l=n(301);function s(e,t=!1){let n=(0,i.NR)();return(0,o.K)((i,o=null)=>{n.cancel();let s=(0,l.q)(e);if(null==s)return;let a=()=>{r.flushSync(i)};if("function"!=typeof s.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED)return void i();function u(){Promise.all(s.getAnimations().map(e=>e.finished)).then(()=>{o?.aborted||a()},()=>{o?.aborted||(s.getAnimations().some(e=>e.pending||"finished"!==e.playState)?u():a())})}if(t){let e="data-starting-style";if(!s.hasAttribute(e))return void n.request(u);let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),u())});return t.observe(s,{attributes:!0,attributeFilter:[e]}),void o?.addEventListener("abort",()=>t.disconnect(),{once:!0})}n.request(u)})}},31025:(e,t,n)=>{n.d(t,{s:()=>V});var r=n(69266),i=n(10813),o=n(88944),l=n(94532),s=n(82956),a=n(95472),u=n(66538),c=n(66758),d=n(34517),f=n(68509),p=n(17399),h=n(33914),m=n(69609),g=n(6561),v=n(22634),y=n(12418),b=n(44453),_=n(46681),w=n(86947),x=n(53402),z=n(27944),k=n(51378),S=n(63150);let E={inert:new WeakMap,"aria-hidden":new WeakMap},R="data-base-ui-inert",T={inert:new WeakSet,"aria-hidden":new WeakSet},$=new WeakMap,O=0,C=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=function e(t){return t?(0,i.Ng)(t)?t.host:e(t.parentNode):null}(t);return e.contains(n)?n:null}).filter(e=>null!=e),A=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},P=(e,t,n)=>{let r=[],o=e=>{!e||n.has(e)||Array.from(e.children).forEach(e=>{"script"!==(0,i.mq)(e)&&(t.has(e)?o(e):r.push(e))})};return o(e),r};function I(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0}=t,o=(0,h.R)(e[0]).body;return function(e,t,n,r,{mark:i=!0}){let o=null;r?o="inert":n&&(o="aria-hidden");let l=null,s=null,a=C(t,e),u=i?P(t,A(a),new Set(a)):[],c=[],d=[];if(o){let e=E[o],n=T[o];s=n,l=e;let r=C(t,Array.from(t.querySelectorAll("[aria-live]"))),i=a.concat(r);P(t,A(i),new Set(i)).forEach(t=>{let r=t.getAttribute(o),i=null!==r&&"false"!==r,l=(e.get(t)||0)+1;e.set(t,l),c.push(t),1===l&&i&&n.add(t),i||t.setAttribute(o,"inert"===o?"":"true")})}return i&&u.forEach(e=>{let t=($.get(e)||0)+1;$.set(e,t),d.push(e),1===t&&e.setAttribute(R,"")}),O+=1,()=>{l&&c.forEach(e=>{let t=(l.get(e)||0)-1;l.set(e,t),t||(!s?.has(e)&&o&&e.removeAttribute(o),s?.delete(e))}),i&&d.forEach(e=>{let t=($.get(e)||0)-1;$.set(e,t),t||e.removeAttribute(R)}),(O-=1)||(E.inert=new WeakMap,E["aria-hidden"]=new WeakMap,T.inert=new WeakSet,T["aria-hidden"]=new WeakSet,$=new WeakMap)}}(e,o,n,r,{mark:i})}var M=n(25327),j=n(52333),Z=n(73146),N=n(301),F=n(7962);let L=[];function q(){L=L.filter(e=>e.deref()?.isConnected)}function D(e){q(),e&&"body"!==(0,i.mq)(e)&&(L.push(new WeakRef(e)),L.length>20&&(L=L.slice(-20)))}function W(){return q(),L[L.length-1]?.deref()}function J(e){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!e.getAttribute("role")?.includes("dialog"))return;let t=(0,b.nq)(e).filter(e=>{let t=e.getAttribute("data-tabindex")||"";return(0,b.AO)(e)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),n=e.getAttribute("tabindex");0===t.length?"0"!==n&&(e.setAttribute("tabindex","0"),e.setAttribute("data-tabindex","0")):("-1"!==n||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function V(e){let{context:t,children:n,disabled:E=!1,initialFocus:R=!0,returnFocus:T=!0,restoreFocus:$=!1,modal:O=!0,closeOnFocusOut:C=!0,openInteractionType:A="",nextFocusableElement:P,previousFocusableElement:L,beforeContentFocusGuardRef:V,externalTree:K,getInsideElements:U}=e,B="rootStore"in t?t.rootStore:t,H=B.useState("open"),X=B.useState("domReferenceElement"),G=B.useState("floatingElement"),{events:Y,dataRef:Q}=B.context,ee=(0,u.K)(()=>Q.current.floatingContext?.nodeId),et=(0,v.WZ)(X)&&!1===R,en=(0,a.u)(R),er=(0,a.u)(T),ei=(0,a.u)(A),eo=(0,a.u)(H),el=(0,j.cq)(K),es=(0,M.vB)(),ea=r.useRef(!1),eu=r.useRef(!1),ec=r.useRef(!1),ed=r.useRef(null),ef=r.useRef(""),ep=r.useRef(""),eh=r.useRef(null),em=r.useRef(null),eg=(0,s.a)(eh,V,es?.beforeInsideRef),ev=(0,s.a)(em,es?.afterInsideRef),ey=(0,d.Z)(),eb=(0,d.Z)(),e_=(0,p.NR)(),ew=null!=es,ex=(0,v.nd)(G),ez=(0,u.K)((e=ex)=>e?(0,b.Kr)(e):[]),ek=(0,u.K)(()=>U?.().filter(e=>null!=e)??[]);r.useEffect(()=>{if(E||!O)return;let e=(0,h.R)(ex);return(0,o.q)(e,"keydown",function(e){"Tab"===e.key&&(0,g.gR)(ex,(0,g.RS)((0,h.R)(ex)))&&0===ez().length&&!et&&(0,y.jo)(e)})},[E,ex,O,et,ez]),r.useEffect(()=>{if(E||!H)return;let e=(0,h.R)(ex);function t(){ec.current=!1}return(0,l.g)((0,o.q)(e,"pointerdown",function(e){let t=(0,g.EW)(e),n=ek();ec.current=!((0,g.gR)(G,t)||(0,g.gR)(X,t)||(0,g.gR)(es?.portalNode,t)||n.some(e=>e===t||(0,g.gR)(e,t))),ep.current=e.pointerType||"keyboard",t?.closest(`[${Z.Kd}]`)&&(eu.current=!0,eb.start(0,()=>{eu.current=!1}))},!0),(0,o.q)(e,"pointerup",t,!0),(0,o.q)(e,"pointercancel",t,!0),(0,o.q)(e,"keydown",function(){ep.current="keyboard"},!0),t)},[E,G,X,ex,H,es,eb,ek]),r.useEffect(()=>{if(E||!C)return;let e=(0,h.R)(ex);function t(t){let n=t.relatedTarget,r=t.currentTarget,o=(0,g.EW)(t);O&&null==n&&null!=o&&(0,g.gR)(G,o)&&D(o),queueMicrotask(()=>{let l=ee(),s=B.context.triggerElements,a=ek(),u=n?.hasAttribute((0,k.F)("focus-guard"))&&[eh.current,em.current,es?.beforeInsideRef.current,es?.afterInsideRef.current,es?.beforeOutsideRef.current,es?.afterOutsideRef.current,(0,N.q)(L),(0,N.q)(P)].includes(n),c=!((0,g.gR)(X,n)||(0,g.gR)(G,n)||(0,g.gR)(n,G)||(0,g.gR)(es?.portalNode,n)||a.some(e=>e===n||(0,g.gR)(e,n))||s.hasMatchingElement(e=>(0,g.gR)(e,n))||u||el&&((0,_.CM)(el.nodesRef.current,l).find(e=>(0,g.gR)(e.context?.elements.floating,n)||(0,g.gR)(e.context?.elements.domReference,n))||(0,_.$4)(el.nodesRef.current,l).find(e=>[e.context?.elements.floating,(0,v.nd)(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(r===X&&ex&&J(ex),$&&r!==X&&!(0,w.J9)(o)&&(0,g.RS)(e)===e.body){if((0,i.sb)(ex)&&(ex.focus(),"popup"===$))return void e_.request(()=>{ex.focus()});let e=ez(),t=ed.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||ex;(0,i.sb)(n)&&n.focus()}if(Q.current.insideReactTree){Q.current.insideReactTree=!1;return}(et||!O)&&n&&c&&!eu.current&&(et||n!==W())&&(ea.current=!0,B.setOpen(!1,(0,x.d)(z.Xn,t)))})}let n=(0,i.sb)(X)?X:null;if(G||n)return(0,l.g)(n&&(0,o.q)(n,"focusout",t),n&&(0,o.q)(n,"pointerdown",function(){eu.current=!0,eb.start(0,()=>{eu.current=!1})}),G&&(0,o.q)(G,"focusin",function(e){let t=(0,g.EW)(e);(0,b.AO)(t)&&(ed.current=t)}),G&&(0,o.q)(G,"focusout",t),G&&es&&(0,o.q)(G,"focusout",function(){ec.current||(Q.current.insideReactTree=!0,ey.start(0,()=>{Q.current.insideReactTree=!1}))},!0))},[E,X,G,ex,O,el,es,B,C,$,ez,et,ee,Q,ey,eb,e_,P,L,ek]),r.useEffect(()=>{if(E||!G||!H)return;let e=Array.from(es?.portalNode?.querySelectorAll(`[${(0,k.F)("portal")}]`)||[]),t=el?(0,_.$4)(el.nodesRef.current,ee()):[],n=t.find(e=>(0,v.WZ)(e.context?.elements.domReference||null))?.context?.elements.domReference,r=I([G,...e,eh.current,em.current,es?.beforeOutsideRef.current,es?.afterOutsideRef.current,...ek(),n,(0,N.q)(L),(0,N.q)(P),et?X:null].filter(e=>null!=e),{ariaHidden:O||et,mark:!1}),i=I([G,...e].filter(e=>null!=e));return()=>{i(),r()}},[H,E,X,G,O,es,et,el,ee,P,L,ek]),(0,c.g)(()=>{if(!H||E||!(0,i.sb)(ex))return;ef.current="",ep.current="";let e=(0,h.R)(ex),t=(0,g.RS)(e);queueMicrotask(()=>{let n,r=en.current,i="function"==typeof r?r(ei.current||""):r;if(void 0===i||!1===i||(0,g.gR)(ex,t))return;let o=null,l=()=>(null==o&&(o=ez(ex)),o[0]||ex);n=(n=!0===i||null===i?l():(0,N.q)(i))||l();let s=(0,g.gR)(ex,(0,g.RS)(e));(0,S.p)(n,{preventScroll:n===ex,shouldFocus(){if(!eo.current)return!1;if(s)return!0;let t=(0,g.RS)(e);return!(t!==n&&(0,g.gR)(ex,t))}})})},[E,H,ex,ez,en,ei,eo]),(0,c.g)(()=>{if(E||!ex)return;let e=(0,h.R)(ex),t=(0,g.RS)(e),n=null==ei.current;function r(e){var t,n;let r;if(e.open||(t=e.nativeEvent,n=ep.current,r=(0,i.zk)((0,g.EW)(t)),ef.current=t instanceof r.KeyboardEvent?"keyboard":t instanceof r.FocusEvent?n||"keyboard":"pointerType"in t?t.pointerType||"keyboard":"touches"in t?"touch":t instanceof r.MouseEvent?n||(0===t.detail?"keyboard":"mouse"):""),e.reason===z.N7&&"mouseleave"===e.nativeEvent.type&&(ea.current=!0),e.reason===z.Np)if(e.nested)ea.current=!1;else if((0,y.YF)(e.nativeEvent)||(0,y.Pg)(e.nativeEvent))ea.current=!1;else{let e=!1;(0,h.R)(ex).createElement("div").focus({get preventScroll(){return e=!0,!1}}),e?ea.current=!1:ea.current=!0}}return D(t),Y.on("openchange",r),()=>{Y.off("openchange",r);let o=(0,g.RS)(e),l=ek(),s=(0,g.gR)(G,o)||l.some(e=>e===o||(0,g.gR)(e,o))||el&&(0,_.CM)(el.nodesRef.current,ee(),!1).some(e=>(0,g.gR)(e.context?.elements.floating,o)),a=er.current,u=ef.current,c=function(e){let r=er.current,o="function"==typeof r?r(e):r;if(void 0===o||!1===o)return null;null===o&&(o=!0);let l=X?.isConnected?X:null,s=t?.isConnected&&"body"!==(0,i.mq)(t)?t:null,a=n?s||l:l||s;return(a||(a=W()||null),"boolean"==typeof o)?a:(0,N.q)(o)||a||null}(u);queueMicrotask(()=>{let t=c?(0,b.AO)(c)?c:(0,b.Kr)(c)[0]||c:null;if(a&&!ea.current&&(0,i.sb)(t)&&("boolean"!=typeof a||t===o||o===e.body||s)){let e={preventScroll:!0};"keyboard"===u&&(e.focusVisible=!0),t.focus(e)}ea.current=!1})}},[E,G,ex,er,ei,Y,el,X,ee,ek]),(0,c.g)(()=>{if(!f.Fp||H||!G)return;let e=(0,g.RS)((0,h.R)(G));(0,i.sb)(e)&&(0,v.$u)(e)&&(0,g.gR)(G,e)&&e.blur()},[H,G]),(0,c.g)(()=>{if(!E&&es)return es.setFocusManagerState({modal:O,closeOnFocusOut:C,open:H,onOpenChange:B.setOpen,domReference:X}),()=>{es.setFocusManagerState(null)}},[E,es,O,H,B,C,X]),(0,c.g)(()=>{if(!E&&ex)return J(ex),()=>{queueMicrotask(q)}},[E,ex]);let eS=!E&&(!O||!et)&&(ew||O);return(0,F.jsxs)(r.Fragment,{children:[eS&&(0,F.jsx)(m.U,{"data-type":"inside",ref:eg,onFocus:e=>{if(O){let e=ez();(0,S.p)(e[e.length-1])}else if(es?.portalNode)if(ea.current=!1,(0,b.Qp)(e,es.portalNode)){let e=(0,b.vF)(X);e?.focus()}else(0,N.q)(L??es.beforeOutsideRef)?.focus()}}),n,eS&&(0,F.jsx)(m.U,{"data-type":"inside",ref:ev,onFocus:e=>{if(O)(0,S.p)(ez()[0]);else if(es?.portalNode)if(C&&(ea.current=!0),(0,b.Qp)(e,es.portalNode)){let e=(0,b.XJ)(X);e?.focus()}else(0,N.q)(P??es.afterOutsideRef)?.focus()}})]})}},33090:(e,t,n)=>{n.d(t,{d:()=>r});function r(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}},33099:(e,t,n)=>{n.d(t,{W:()=>o});var r=n(69266),i=n(7962);let o=r.forwardRef(function(e,t){let n,{cutout:r,...o}=e;if(r){let e=r.getBoundingClientRect();n=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,i.jsx)("div",{ref:t,role:"presentation","data-base-ui-inert":"",...o,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:n}})})},33914:(e,t,n)=>{n.d(t,{R:()=>r});function r(e){return e?.ownerDocument||document}},34517:(e,t,n)=>{n.d(t,{E:()=>o,Z:()=>l});var r=n(75645),i=n(7058);class o{static create(){return new o}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}}function l(){let e=(0,r.j)(o.create).current;return(0,i.y)(e.disposeEffect),e}},35215:(e,t,n)=>{n.d(t,{G:()=>a,L:()=>s});var r=n(69266),i=n(66538),o=n(29666),l=n(65369);function s(e,t){var n;let l,s,{onClick:a,onPointerDown:u}=(n=(0,i.K)((n,r)=>{("function"==typeof e?e():e)||t(r||(o.s4?"touch":""))}),l=r.useRef(""),s=r.useCallback(e=>{e.defaultPrevented||(l.current=e.pointerType,n(e,e.pointerType))},[n]),{onClick:r.useCallback(e=>{0===e.detail?n(e,"keyboard"):("pointerType"in e?n(e,e.pointerType):n(e,l.current),l.current="")},[n]),onPointerDown:s});return r.useMemo(()=>({onClick:a,onPointerDown:u}),[a,u])}function a(e){let[t,n]=r.useState(null),i=s(e,n);return(0,l.x)(e,t=>{t&&!e&&n(null)}),r.useMemo(()=>({openMethod:t,triggerProps:i}),[t,i])}},36158:(e,t,n)=>{n.d(t,{s:()=>_});var r=n(69266),i=n(88944),o=n(94532),l=n(33914),s=n(66538),a=n(34517),u=n(10813),c=n(68509),d=n(52333),f=n(53402),p=n(27944),h=n(51378),m=n(22634),g=n(6561),v=n(12418),y=n(46681);function b(){return!1}function _(e,t={}){let{enabled:n=!0,escapeKey:w=!0,outsidePress:x=!0,outsidePressEvent:z="sloppy",referencePress:k=b,bubbles:S,externalTree:E}=t,R="rootStore"in e?e.rootStore:e,T=R.useState("open"),$=R.useState("floatingElement"),{dataRef:O}=R.context,C=(0,d.cq)(E),A=(0,s.K)("function"==typeof x?x:()=>!1),P="function"==typeof x?A:x,I=!1!==P,M=(0,s.K)(()=>z),{escapeKey:j,outsidePress:Z}={escapeKey:"boolean"==typeof S?S:S?.escapeKey??!1,outsidePress:"boolean"==typeof S?S:S?.outsidePress??!0},N=r.useRef(!1),F=r.useRef(!1),L=r.useRef(!1),q=r.useRef(!1),D=r.useRef(""),W=r.useRef(null),J=(0,a.Z)(),V=(0,a.Z)(),K=(0,s.K)(()=>{V.clear(),O.current.insideReactTree=!1}),U=(0,s.K)(e=>{let t=O.current.floatingContext?.nodeId;return(C?(0,y.CM)(C.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),B=(0,s.K)(e=>(0,m.F2)(e,R.select("floatingElement"))||(0,m.F2)(e,R.select("domReferenceElement"))),H=(0,s.K)(e=>{k()&&R.setOpen(!1,(0,f.d)(p.Ui,e.nativeEvent))}),X=(0,s.K)(e=>{if(!T||!n||!w||"Escape"!==e.key||q.current||!j&&U("__escapeKeyBubbles"))return;let t=(0,v.O_)(e)?e.nativeEvent:e,r=(0,f.d)(p.jv,t);R.setOpen(!1,r),r.isCanceled||e.preventDefault(),j||r.isPropagationAllowed||e.stopPropagation()}),G=(0,s.K)(()=>{O.current.insideReactTree=!0,V.start(0,K)}),Y=(0,s.K)(e=>{if(!T||!n||0!==e.button)return;let t=(0,g.EW)(e.nativeEvent);(0,g.gR)(R.select("floatingElement"),t)&&(N.current||(N.current=!0,F.current=!1))}),Q=(0,s.K)(e=>{!T||!n||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&N.current&&(F.current=!0)});r.useEffect(()=>{if(!T||!n)return K;O.current.__escapeKeyBubbles=j,O.current.__outsidePressBubbles=Z;let e=new a.E,t=new a.E;function r(){L.current=!0,t.start(0,()=>{L.current=!1})}function s(){N.current=!1,F.current=!1}function d(){let e=D.current,t=M(),n="function"==typeof t?t():t;return"string"==typeof n?n:n["pen"!==e&&e?e:"mouse"]}function v(e){let t=O.current.floatingContext?.nodeId,n=C&&(0,y.CM)(C.nodesRef.current,t).some(t=>(0,m.F2)(e,t.context?.elements.floating));return B(e)||n}function b(e){let n;if("intentional"===(n=d())&&"click"!==e.type||"sloppy"===n&&"click"===e.type){"click"===e.type||B(e)||(t.clear(),L.current=!1),K();return}if(O.current.insideReactTree)return void K();let r=(0,g.EW)(e),i=`[${(0,h.F)("inert")}]`,o=(0,u.vq)(r)?r.getRootNode():null,s=Array.from(((0,u.Ng)(o)?o:(0,l.R)(R.select("floatingElement"))).querySelectorAll(i)),a=R.context.triggerElements;if(r&&(a.hasElement(r)||a.hasMatchingElement(e=>(0,g.gR)(e,r))))return;let c=(0,u.vq)(r)?r:null;for(;c&&!(0,u.eu)(c);){let e=(0,u.$4)(c);if((0,u.eu)(e)||!(0,u.vq)(e))break;c=e}if(!(s.length&&(0,u.vq)(r)&&!(0,m.tZ)(r)&&!(0,g.gR)(r,R.select("floatingElement"))&&s.every(e=>!(0,g.gR)(c,e)))){if((0,u.sb)(r)&&!("touches"in e)){let t=(0,u.eu)(r),n=(0,u.L9)(r),i=/auto|scroll/,o=t||i.test(n.overflowX),l=t||i.test(n.overflowY),s=o&&r.clientWidth>0&&r.scrollWidth>r.clientWidth,a=l&&r.clientHeight>0&&r.scrollHeight>r.clientHeight,c="rtl"===n.direction,d=a&&(c?e.offsetX<=r.offsetWidth-r.clientWidth:e.offsetX>r.clientWidth),f=s&&e.offsetY>r.clientHeight;if(d||f)return}if(!v(e)){if("intentional"===d()&&L.current){t.clear(),L.current=!1;return}"function"==typeof P&&!P(e)||U("__outsidePressBubbles")||(R.setOpen(!1,(0,f.d)(p.Np,e)),K())}}}function _(e){if("sloppy"!==d()||!R.select("open")||!n||B(e))return;let t=e.touches[0];t&&(W.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},J.start(1e3,()=>{W.current&&(W.current.dismissOnTouchEnd=!1,W.current.dismissOnMouseDown=!1)}))}function x(e,t){let n=(0,g.EW)(e);if(!n)return;let r=(0,i.q)(n,e.type,()=>{t(e),r()})}function z(e){J.clear(),"pointerdown"===e.type&&(D.current=e.pointerType),("mousedown"!==e.type||!W.current||W.current.dismissOnMouseDown)&&x(e,e=>{if("pointerdown"===e.type)"sloppy"!==d()||"touch"===e.pointerType||!R.select("open")||!n||B(e)||b(e);else b(e)})}function k(e){if(!N.current)return;let n=F.current;if(s(),"intentional"===d()){if("pointercancel"===e.type){n&&r();return}v(e)||(n?r():("function"!=typeof P||P(e))&&(t.clear(),L.current=!0,K()))}}function S(e){if("sloppy"!==d()||!W.current||B(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-W.current.startX),r=Math.abs(t.clientY-W.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(W.current.dismissOnTouchEnd=!0),i>10&&(b(e),J.clear(),W.current=null)}function E(e){"sloppy"!==d()||!W.current||B(e)||(W.current.dismissOnTouchEnd&&b(e),J.clear(),W.current=null)}let A=(0,l.R)($),V=(0,o.g)(w&&(0,o.g)((0,i.q)(A,"keydown",X),(0,i.q)(A,"compositionstart",function(){e.clear(),q.current=!0}),(0,i.q)(A,"compositionend",function(){e.start(5*!!c.Fp,()=>{q.current=!1})})),I&&(0,o.g)((0,i.q)(A,"click",z,!0),(0,i.q)(A,"pointerdown",z,!0),(0,i.q)(A,"pointerup",k,!0),(0,i.q)(A,"pointercancel",k,!0),(0,i.q)(A,"mousedown",z,!0),(0,i.q)(A,"mouseup",k,!0),(0,i.q)(A,"touchstart",function(e){D.current="touch",x(e,_)},!0),(0,i.q)(A,"touchmove",function(e){x(e,S)},!0),(0,i.q)(A,"touchend",function(e){x(e,E)},!0)));return()=>{V(),e.clear(),t.clear(),s(),L.current=!1,K()}},[O,$,w,I,P,T,n,j,Z,X,K,M,U,B,C,R,J]);let ee=r.useMemo(()=>({onKeyDown:X,onPointerDown:H,onClick:H}),[X,H]),et=r.useMemo(()=>({onKeyDown:X,onPointerDown:Q,onMouseDown:Q,onClickCapture:G,onMouseDownCapture(e){G(),Y(e)},onPointerDownCapture(e){G(),Y(e)},onMouseUpCapture:G,onTouchEndCapture:G,onTouchMoveCapture:G}),[X,G,Y,Q]);return r.useMemo(()=>n?{reference:ee,floating:et,trigger:ee}:{},[n,ee,et])}},38979:(e,t,n)=>{var r,i;function o(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:l,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=l.prototype,o=Object.keys(i);for(let e=0;e<o.length;e++){let t=o[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class o extends i{}function l(e){var t;let i=n?.Parent?new o:this;for(let n of(r(i,e),(t=i._zod).deferred??(t.deferred=[]),i._zod.deferred))n();return i}return Object.defineProperty(o,"name",{value:e}),Object.defineProperty(l,"init",{value:r}),Object.defineProperty(l,Symbol.hasInstance,{value:t=>!!n?.Parent&&t instanceof n.Parent||t?._zod?.traits?.has(e)}),Object.defineProperty(l,"name",{value:e}),l}n.d(t,{EB:()=>nx,YO:()=>n0,zM:()=>nU,Ie:()=>rz,gM:()=>n5,k5:()=>rr,Pq:()=>rk,eu:()=>ro,ch:()=>nH,ai:()=>nW,Ik:()=>n6,g1:()=>rt,Yj:()=>nw,Uy:()=>r_,PV:()=>n7,KC:()=>n2,L5:()=>nG}),Symbol("zod_brand");class l extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class s extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}(r=globalThis).__zod_globalConfig??(r.__zod_globalConfig={});let a=globalThis.__zod_globalConfig;function u(e){return e&&Object.assign(a,e),a}let c=/^[cC][0-9a-z]{6,}$/,d=/^[0-9a-z]+$/,f=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,p=/^[0-9a-vA-V]{20}$/,h=/^[A-Za-z0-9]{27}$/,m=/^[a-zA-Z0-9_-]{21}$/,g=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,v=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,y=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,b=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,_=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,w=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,x=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,z=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,k=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,S=/^[A-Za-z0-9_-]*$/,E=/^https?$/,R=/^\+[1-9]\d{6,14}$/,T="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",$=RegExp(`^${T}$`);function O(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}let C=/^-?\d+$/,A=/^-?\d+(?:\.\d+)?$/,P=/^(?:true|false)$/i,I=/^null$/i,M=/^[^A-Z]*$/,j=/^[^a-z]*$/;function Z(e){let t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e,n])=>-1===t.indexOf(+e)).map(([e,t])=>t)}function N(e,t){return"bigint"==typeof t?t.toString():t}function F(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function L(e){let t=+!!e.startsWith("^"),n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}let q=Symbol("evaluating");function D(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==q)return void 0===r&&(r=q,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function W(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function J(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}function V(e){return JSON.stringify(e)}let K="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function U(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}let B=F(()=>{if(a.jitless||"u">typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return Function(""),!0}catch(e){return!1}});function H(e){if(!1===U(e))return!1;let t=e.constructor;if(void 0===t||"function"!=typeof t)return!0;let n=t.prototype;return!1!==U(n)&&!1!==Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")}function X(e){return H(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}let G=new Set(["string","number","symbol"]),Y=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Q(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ee(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function et(e){if(!e)return{};if("string"==typeof e)return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");e.error=e.message}return(delete e.message,"string"==typeof e.error)?{...e,error:()=>e.error}:e}let en={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-0x80000000,0x7fffffff],uint32:[0,0xffffffff],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function er(e,t=0){if(!0===e.aborted)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function ei(e,t){return t.map(t=>(t.path??(t.path=[]),t.path.unshift(e),t))}function eo(e){return"string"==typeof e?e:e?.message}function el(e,t,n){let r=e.message?e.message:eo(e.inst?._zod.def?.error?.(e))??eo(t?.error?.(e))??eo(n.customError?.(e))??eo(n.localeError?.(e))??"Invalid input",{inst:i,continue:o,input:l,...s}=e;return s.path??(s.path=[]),s.message=r,t?.reportInput&&(s.input=l),s}function es(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function ea(...e){let[t,n,r]=e;return"string"==typeof t?{message:t,code:"custom",input:n,inst:r}:{...t}}let eu=o("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),ec={number:"number",bigint:"bigint",object:"date"},ed=o("$ZodCheckLessThan",(e,t)=>{eu.init(e,t);let n=ec[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:"object"==typeof t.value?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ef=o("$ZodCheckGreaterThan",(e,t)=>{eu.init(e,t);let n=ec[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:"object"==typeof t.value?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ep=o("$ZodCheckMultipleOf",(e,t)=>{eu.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{let r,i,o;if(typeof n.value!=typeof t.value)throw Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof n.value?n.value%t.value===BigInt(0):0==(i=Math.round(r=n.value/t.value),o=Number.EPSILON*Math.max(Math.abs(r),1),Math.abs(r-i)<o?0:r-i))||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),eh=o("$ZodCheckNumberFormat",(e,t)=>{eu.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),r=n?"int":"number",[i,o]=en[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=o,n&&(r.pattern=C)}),e._zod.check=l=>{let s=l.value;if(n){if(!Number.isInteger(s))return void l.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});if(!Number.isSafeInteger(s))return void(s>0?l.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):l.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}))}s<i&&l.issues.push({origin:"number",input:s,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>o&&l.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),em=o("$ZodCheckMaxLength",(e,t)=>{var n;eu.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return null!=t&&void 0!==t.length}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=es(r);n.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),eg=o("$ZodCheckMinLength",(e,t)=>{var n;eu.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return null!=t&&void 0!==t.length}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=es(r);n.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),ev=o("$ZodCheckLengthEquals",(e,t)=>{var n;eu.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return null!=t&&void 0!==t.length}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let o=es(r),l=i>t.length;n.issues.push({origin:o,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),ey=o("$ZodCheckStringFormat",(e,t)=>{var n,r;eu.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??(n.patterns=new Set),n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),eb=o("$ZodCheckRegex",(e,t)=>{ey.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),e_=o("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=M),ey.init(e,t)}),ew=o("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=j),ey.init(e,t)}),ex=o("$ZodCheckIncludes",(e,t)=>{eu.init(e,t);let n=Q(t.includes),r=new RegExp("number"==typeof t.position?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),ez=o("$ZodCheckStartsWith",(e,t)=>{eu.init(e,t);let n=RegExp(`^${Q(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),ek=o("$ZodCheckEndsWith",(e,t)=>{eu.init(e,t);let n=RegExp(`.*${Q(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),eS=o("$ZodCheckOverwrite",(e,t)=>{eu.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});class eE{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let t=e.split("\n").filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length));for(let e of t.map(e=>e.slice(n)).map(e=>" ".repeat(2*this.indent)+e))this.content.push(e)}compile(){return Function(...this?.args,[...(this?.content??[""]).map(e=>` ${e}`)].join("\n"))}}let eR=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,N,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},eT=o("$ZodError",eR),e$=o("$ZodError",eR,{Parent:Error}),eO=e=>(t,n,r,i)=>{let o=r?{...r,async:!1}:{async:!1},s=t._zod.run({value:n,issues:[]},o);if(s instanceof Promise)throw new l;if(s.issues.length){let t=new(i?.Err??e)(s.issues.map(e=>el(e,o,u())));throw K(t,i?.callee),t}return s.value},eC=e=>async(t,n,r,i)=>{let o=r?{...r,async:!0}:{async:!0},l=t._zod.run({value:n,issues:[]},o);if(l instanceof Promise&&(l=await l),l.issues.length){let t=new(i?.Err??e)(l.issues.map(e=>el(e,o,u())));throw K(t,i?.callee),t}return l.value},eA=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},i);if(o instanceof Promise)throw new l;return o.issues.length?{success:!1,error:new(e??eT)(o.issues.map(e=>el(e,i,u())))}:{success:!0,data:o.value}},eP=eA(e$),eI=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(e=>el(e,i,u())))}:{success:!0,data:o.value}},eM=eI(e$),ej={major:4,minor:4,patch:3},eZ=o("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=ej;let r=[...e._zod.def.checks??[]];for(let t of(e._zod.traits.has("$ZodCheck")&&r.unshift(e),r))for(let n of t._zod.onattach)n(e);if(0===r.length)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r,i=er(e);for(let o of t){if(o._zod.def.when){if(function(e,t=0){if(!0===e.aborted)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}(e)||!o._zod.def.when(e))continue}else if(i)continue;let t=e.issues.length,s=o._zod.check(e);if(s instanceof Promise&&n?.async===!1)throw new l;if(r||s instanceof Promise)r=(r??Promise.resolve()).then(async()=>{await s,e.issues.length!==t&&(i||(i=er(e,t)))});else{if(e.issues.length===t)continue;i||(i=er(e,t))}}return r?r.then(()=>e):e},n=(n,i,o)=>{if(er(n))return n.aborted=!0,n;let s=t(i,r,o);if(s instanceof Promise){if(!1===o.async)throw new l;return s.then(t=>e._zod.parse(t,o))}return e._zod.parse(s,o)};e._zod.run=(i,o)=>{if(o.skipChecks)return e._zod.parse(i,o);if("backward"===o.direction){let t=e._zod.parse({value:i.value,issues:[]},{...o,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,o)):n(t,i,o)}let s=e._zod.parse(i,o);if(s instanceof Promise){if(!1===o.async)throw new l;return s.then(e=>t(e,r,o))}return t(s,r,o)}}D(e,"~standard",()=>({validate:t=>{try{let n=eP(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch(n){return eM(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:"zod",version:1}))}),eN=o("$ZodString",(e,t)=>{var n;let r;eZ.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??(r=(n=e._zod.bag)?`[\\s\\S]{${n?.minimum??0},${n?.maximum??""}}`:"[\\s\\S]*",RegExp(`^${r}$`)),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch(e){}return"string"==typeof n.value||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),eF=o("$ZodStringFormat",(e,t)=>{ey.init(e,t),eN.init(e,t)}),eL=o("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=v),eF.init(e,t)}),eq=o("$ZodUUID",(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=y(e))}else t.pattern??(t.pattern=y());eF.init(e,t)}),eD=o("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=b),eF.init(e,t)}),eW=o("$ZodURL",(e,t)=>{eF.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===E.source&&!/^https?:\/\//i.test(r))return void n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch(r){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),eJ=o("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),eF.init(e,t)}),eV=o("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=m),eF.init(e,t)}),eK=o("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=c),eF.init(e,t)}),eU=o("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=d),eF.init(e,t)}),eB=o("$ZodULID",(e,t)=>{t.pattern??(t.pattern=f),eF.init(e,t)}),eH=o("$ZodXID",(e,t)=>{t.pattern??(t.pattern=p),eF.init(e,t)}),eX=o("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=h),eF.init(e,t)}),eG=o("$ZodISODateTime",(e,t)=>{let n,r,i;t.pattern??(n=O({precision:t.precision}),r=["Z"],t.local&&r.push(""),t.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)"),i=`${n}(?:${r.join("|")})`,t.pattern=RegExp(`^${T}T(?:${i})$`)),eF.init(e,t)}),eY=o("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=$),eF.init(e,t)}),eQ=o("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=RegExp(`^${O(t)}$`)),eF.init(e,t)}),e0=o("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=g),eF.init(e,t)}),e1=o("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=_),eF.init(e,t),e._zod.bag.format="ipv4"}),e6=o("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=w),eF.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),e9=o("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=x),eF.init(e,t)}),e2=o("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=z),eF.init(e,t),e._zod.check=n=>{let r=n.value.split("/");try{if(2!==r.length)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function e4(e){if(""===e)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}let e5=o("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=k),eF.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{e4(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}}),e3=o("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=S),eF.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{!function(e){if(!S.test(e))return!1;let t=e.replace(/[-_]/g,e=>"-"===e?"+":"/");return e4(t.padEnd(4*Math.ceil(t.length/4),"="))}(n.value)&&n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),e8=o("$ZodE164",(e,t)=>{t.pattern??(t.pattern=R),eF.init(e,t)}),e7=o("$ZodJWT",(e,t)=>{eF.init(e,t),e._zod.check=n=>{!function(e,t=null){try{let n=e.split(".");if(3!==n.length)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));if("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))return!1;return!0}catch{return!1}}(n.value,t.alg)&&n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),te=o("$ZodNumber",(e,t)=>{eZ.init(e,t),e._zod.pattern=e._zod.bag.pattern??A,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch(e){}let i=n.value;if("number"==typeof i&&!Number.isNaN(i)&&Number.isFinite(i))return n;let o="number"==typeof i?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...o?{received:o}:{}}),n}}),tt=o("$ZodNumberFormat",(e,t)=>{eh.init(e,t),te.init(e,t)}),tn=o("$ZodBoolean",(e,t)=>{eZ.init(e,t),e._zod.pattern=P,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch(e){}let i=n.value;return"boolean"==typeof i||n.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),n}}),tr=o("$ZodNull",(e,t)=>{eZ.init(e,t),e._zod.pattern=I,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return null===r||t.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),t}}),ti=o("$ZodUnknown",(e,t)=>{eZ.init(e,t),e._zod.parse=e=>e}),to=o("$ZodNever",(e,t)=>{eZ.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)});function tl(e,t,n){e.issues.length&&t.issues.push(...ei(n,e.issues)),t.value[n]=e.value}let ts=o("$ZodArray",(e,t)=>{eZ.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),n;n.value=Array(i.length);let o=[];for(let e=0;e<i.length;e++){let l=i[e],s=t.element._zod.run({value:l,issues:[]},r);s instanceof Promise?o.push(s.then(t=>tl(t,n,e))):tl(s,n,e)}return o.length?Promise.all(o).then(()=>n):n}});function ta(e,t,n,r,i,o){let l=n in r;if(e.issues.length){if(i&&o&&!l)return;t.issues.push(...ei(n,e.issues))}if(!l&&!i){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}void 0===e.value?l&&(t.value[n]=void 0):t.value[n]=e.value}function tu(e){var t;let n=Object.keys(e.shape);for(let t of n)if(!e.shape?.[t]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${t}": expected a Zod schema`);let r=Object.keys(t=e.shape).filter(e=>"optional"===t[e]._zod.optin&&"optional"===t[e]._zod.optout);return{...e,keys:n,keySet:new Set(n),numKeys:n.length,optionalKeys:new Set(r)}}function tc(e,t,n,r,i,o){let l=[],s=i.keySet,a=i.catchall._zod,u=a.def.type,c="optional"===a.optin,d="optional"===a.optout;for(let i in t){if("__proto__"===i||s.has(i))continue;if("never"===u){l.push(i);continue}let o=a.run({value:t[i],issues:[]},r);o instanceof Promise?e.push(o.then(e=>ta(e,n,i,t,c,d))):ta(o,n,i,t,c,d)}return(l.length&&n.issues.push({code:"unrecognized_keys",keys:l,input:t,inst:o}),e.length)?Promise.all(e).then(()=>n):n}let td=o("$ZodObject",(e,t)=>{let n;eZ.init(e,t);let r=Object.getOwnPropertyDescriptor(t,"shape");if(!r?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let n={...e};return Object.defineProperty(t,"shape",{value:n}),n}})}let i=F(()=>tu(t));D(e._zod,"propValues",()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values)for(let e of(n[t]??(n[t]=new Set),r.values))n[t].add(e)}return n});let o=t.catchall;e._zod.parse=(t,r)=>{n??(n=i.value);let l=t.value;if(!U(l))return t.issues.push({expected:"object",code:"invalid_type",input:l,inst:e}),t;t.value={};let s=[],a=n.shape;for(let e of n.keys){let n=a[e],i="optional"===n._zod.optin,o="optional"===n._zod.optout,u=n._zod.run({value:l[e],issues:[]},r);u instanceof Promise?s.push(u.then(n=>ta(n,t,e,l,i,o))):ta(u,t,e,l,i,o)}return o?tc(s,l,t,r,i.value,e):s.length?Promise.all(s).then(()=>t):t}}),tf=o("$ZodObjectJIT",(e,t)=>{let n,r;td.init(e,t);let i=e._zod.parse,o=F(()=>tu(t)),l=!a.jitless,s=l&&B.value,u=t.catchall;e._zod.parse=(a,c)=>{r??(r=o.value);let d=a.value;return U(d)?l&&s&&c?.async===!1&&!0!==c.jitless?(n||(n=(e=>{let t=new eE(["shape","payload","ctx"]),n=o.value,r=e=>{let t=V(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");let i=Object.create(null),l=0;for(let e of n.keys)i[e]=`key_${l++}`;for(let o of(t.write("const newResult = {};"),n.keys)){let n=i[o],l=V(o),s=e[o],a=s?._zod?.optin==="optional",u=s?._zod?.optout==="optional";t.write(`const ${n} = ${r(o)};`),a&&u?t.write(`
|
|
2
|
-
if (${n}.issues.length) {
|
|
3
|
-
if (${l} in input) {
|
|
4
|
-
payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
|
|
5
|
-
...iss,
|
|
6
|
-
path: iss.path ? [${l}, ...iss.path] : [${l}]
|
|
7
|
-
})));
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
if (${n}.value === undefined) {
|
|
12
|
-
if (${l} in input) {
|
|
13
|
-
newResult[${l}] = undefined;
|
|
14
|
-
}
|
|
15
|
-
} else {
|
|
16
|
-
newResult[${l}] = ${n}.value;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
`):a?t.write(`
|
|
20
|
-
if (${n}.issues.length) {
|
|
21
|
-
payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
|
|
22
|
-
...iss,
|
|
23
|
-
path: iss.path ? [${l}, ...iss.path] : [${l}]
|
|
24
|
-
})));
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
if (${n}.value === undefined) {
|
|
28
|
-
if (${l} in input) {
|
|
29
|
-
newResult[${l}] = undefined;
|
|
30
|
-
}
|
|
31
|
-
} else {
|
|
32
|
-
newResult[${l}] = ${n}.value;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
`):t.write(`
|
|
36
|
-
const ${n}_present = ${l} in input;
|
|
37
|
-
if (${n}.issues.length) {
|
|
38
|
-
payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
|
|
39
|
-
...iss,
|
|
40
|
-
path: iss.path ? [${l}, ...iss.path] : [${l}]
|
|
41
|
-
})));
|
|
42
|
-
}
|
|
43
|
-
if (!${n}_present && !${n}.issues.length) {
|
|
44
|
-
payload.issues.push({
|
|
45
|
-
code: "invalid_type",
|
|
46
|
-
expected: "nonoptional",
|
|
47
|
-
input: undefined,
|
|
48
|
-
path: [${l}]
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
if (${n}_present) {
|
|
53
|
-
if (${n}.value === undefined) {
|
|
54
|
-
newResult[${l}] = undefined;
|
|
55
|
-
} else {
|
|
56
|
-
newResult[${l}] = ${n}.value;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
`)}t.write("payload.value = newResult;"),t.write("return payload;");let s=t.compile();return(t,n)=>s(e,t,n)})(t.shape)),a=n(a,c),u)?tc([],d,a,c,r,e):a:i(a,c):(a.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),a)}});function tp(e,t,n,r){for(let n of e)if(0===n.issues.length)return t.value=n.value,t;let i=e.filter(e=>!er(e));return 1===i.length?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>el(e,r,u())))}),t)}let th=o("$ZodUnion",(e,t)=>{eZ.init(e,t),D(e._zod,"optin",()=>t.options.some(e=>"optional"===e._zod.optin)?"optional":void 0),D(e._zod,"optout",()=>t.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),D(e._zod,"values",()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),D(e._zod,"pattern",()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>L(e.source)).join("|")})$`)}});let n=1===t.options.length?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let o=!1,l=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)l.push(t),o=!0;else{if(0===t.issues.length)return t;l.push(t)}}return o?Promise.all(l).then(t=>tp(t,r,e,i)):tp(l,r,e,i)}}),tm=o("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,th.init(e,t);let n=e._zod.parse;D(e._zod,"propValues",()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||0===Object.keys(r).length)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r))for(let r of(e[t]||(e[t]=new Set),n))e[t].add(r)}return e});let r=F(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||0===e.size)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,o)=>{let l=i.value;if(!U(l))return i.issues.push({code:"invalid_type",expected:"object",input:l,inst:e}),i;let s=r.value.get(l?.[t.discriminator]);return s?s._zod.run(i,o):t.unionFallback||"backward"===o.direction?n(i,o):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(r.value.keys()),input:l,path:[t.discriminator],inst:e}),i)}}),tg=o("$ZodIntersection",(e,t)=>{eZ.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),o=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||o instanceof Promise?Promise.all([i,o]).then(([t,n])=>tv(e,t,n)):tv(e,i,o)}});function tv(e,t,n){let r,i=new Map;for(let n of t.issues)if("unrecognized_keys"===n.code)for(let e of(r??(r=n),n.keys))i.has(e)||i.set(e,{}),i.get(e).l=!0;else e.issues.push(n);for(let t of n.issues)if("unrecognized_keys"===t.code)for(let e of t.keys)i.has(e)||i.set(e,{}),i.get(e).r=!0;else e.issues.push(t);let o=[...i].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(o.length&&r&&e.issues.push({...r,keys:o}),er(e))return e;let l=function e(t,n){if(t===n||t instanceof Date&&n instanceof Date&&+t==+n)return{valid:!0,data:t};if(H(t)&&H(n)){let r=Object.keys(n),i=Object.keys(t).filter(e=>-1!==r.indexOf(e)),o={...t,...n};for(let r of i){let i=e(t[r],n[r]);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};o[r]=i.data}return{valid:!0,data:o}}if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let i=0;i<t.length;i++){let o=e(t[i],n[i]);if(!o.valid)return{valid:!1,mergeErrorPath:[i,...o.mergeErrorPath]};r.push(o.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}(t.value,n.value);if(!l.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(l.mergeErrorPath)}`);return e.value=l.data,e}let ty=o("$ZodTuple",(e,t)=>{eZ.init(e,t);let n=t.items;e._zod.parse=(r,i)=>{let o=r.value;if(!Array.isArray(o))return r.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),r;r.value=[];let l=[],s=tb(n,"optin"),a=tb(n,"optout");if(!t.rest){if(o.length<s)return r.issues.push({code:"too_small",minimum:s,inclusive:!0,input:o,inst:e,origin:"array"}),r;o.length>n.length&&r.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:o,inst:e,origin:"array"})}let u=Array(n.length);for(let e=0;e<n.length;e++){let t=n[e]._zod.run({value:o[e],issues:[]},i);t instanceof Promise?l.push(t.then(t=>{u[e]=t})):u[e]=t}if(t.rest){let e=n.length-1;for(let s of o.slice(n.length)){e++;let n=t.rest._zod.run({value:s,issues:[]},i);n instanceof Promise?l.push(n.then(t=>t_(t,r,e))):t_(n,r,e)}}return l.length?Promise.all(l).then(()=>tw(u,r,n,o,a)):tw(u,r,n,o,a)}});function tb(e,t){for(let n=e.length-1;n>=0;n--)if("optional"!==e[n]._zod[t])return n+1;return 0}function t_(e,t,n){e.issues.length&&t.issues.push(...ei(n,e.issues)),t.value[n]=e.value}function tw(e,t,n,r,i){for(let o=0;o<n.length;o++){let n=e[o],l=o<r.length;if(n.issues.length){if(!l&&o>=i){t.value.length=o;break}t.issues.push(...ei(o,n.issues))}t.value[o]=n.value}for(let e=t.value.length-1;e>=r.length;e--)if("optional"===n[e]._zod.optout&&void 0===t.value[e])t.value.length=e;else break;return t}let tx=o("$ZodRecord",(e,t)=>{eZ.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!H(i))return n.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),n;let o=[],l=t.keyType._zod.values;if(l){let s;n.value={};let a=new Set;for(let s of l)if("string"==typeof s||"number"==typeof s||"symbol"==typeof s){a.add("number"==typeof s?s.toString():s);let l=t.keyType._zod.run({value:s,issues:[]},r);if(l instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(l.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(e=>el(e,r,u())),input:s,path:[s],inst:e});continue}let c=l.value,d=t.valueType._zod.run({value:i[s],issues:[]},r);d instanceof Promise?o.push(d.then(e=>{e.issues.length&&n.issues.push(...ei(s,e.issues)),n.value[c]=e.value})):(d.issues.length&&n.issues.push(...ei(s,d.issues)),n.value[c]=d.value)}for(let e in i)a.has(e)||(s=s??[]).push(e);s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:s})}else for(let l of(n.value={},Reflect.ownKeys(i))){if("__proto__"===l||!Object.prototype.propertyIsEnumerable.call(i,l))continue;let s=t.keyType._zod.run({value:l,issues:[]},r);if(s instanceof Promise)throw Error("Async schemas not supported in object keys currently");if("string"==typeof l&&A.test(l)&&s.issues.length){let e=t.keyType._zod.run({value:Number(l),issues:[]},r);if(e instanceof Promise)throw Error("Async schemas not supported in object keys currently");0===e.issues.length&&(s=e)}if(s.issues.length){"loose"===t.mode?n.value[l]=i[l]:n.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(e=>el(e,r,u())),input:l,path:[l],inst:e});continue}let a=t.valueType._zod.run({value:i[l],issues:[]},r);a instanceof Promise?o.push(a.then(e=>{e.issues.length&&n.issues.push(...ei(l,e.issues)),n.value[s.value]=e.value})):(a.issues.length&&n.issues.push(...ei(l,a.issues)),n.value[s.value]=a.value)}return o.length?Promise.all(o).then(()=>n):n}}),tz=o("$ZodEnum",(e,t)=>{eZ.init(e,t);let n=Z(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>G.has(typeof e)).map(e=>"string"==typeof e?Q(e):e.toString()).join("|")})$`),e._zod.parse=(t,i)=>{let o=t.value;return r.has(o)||t.issues.push({code:"invalid_value",values:n,input:o,inst:e}),t}}),tk=o("$ZodLiteral",(e,t)=>{if(eZ.init(e,t),0===t.values.length)throw Error("Cannot create literal schema with no valid values");let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>"string"==typeof e?Q(e):e?Q(e.toString()):String(e)).join("|")})$`),e._zod.parse=(r,i)=>{let o=r.value;return n.has(o)||r.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),r}}),tS=o("$ZodTransform",(e,t)=>{eZ.init(e,t),e._zod.optin="optional",e._zod.parse=(n,r)=>{if("backward"===r.direction)throw new s(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new l;return n.value=i,n.fallback=!0,n}});function tE(e,t){return void 0===t&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}let tR=o("$ZodOptional",(e,t)=>{eZ.init(e,t),e._zod.optin="optional",e._zod.optout="optional",D(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),D(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${L(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if("optional"===t.innerType._zod.optin){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>tE(e,r)):tE(i,r)}return void 0===e.value?e:t.innerType._zod.run(e,n)}}),tT=o("$ZodExactOptional",(e,t)=>{tR.init(e,t),D(e._zod,"values",()=>t.innerType._zod.values),D(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),t$=o("$ZodNullable",(e,t)=>{eZ.init(e,t),D(e._zod,"optin",()=>t.innerType._zod.optin),D(e._zod,"optout",()=>t.innerType._zod.optout),D(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${L(e.source)}|null)$`):void 0}),D(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>null===e.value?e:t.innerType._zod.run(e,n)}),tO=o("$ZodDefault",(e,t)=>{eZ.init(e,t),e._zod.optin="optional",D(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if("backward"===n.direction)return t.innerType._zod.run(e,n);if(void 0===e.value)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>tC(e,t)):tC(r,t)}});function tC(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}let tA=o("$ZodPrefault",(e,t)=>{eZ.init(e,t),e._zod.optin="optional",D(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,n)=>("backward"===n.direction||void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),tP=o("$ZodNonOptional",(e,t)=>{eZ.init(e,t),D(e._zod,"values",()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>void 0!==e)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>tI(t,e)):tI(i,e)}});function tI(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}let tM=o("$ZodCatch",(e,t)=>{eZ.init(e,t),e._zod.optin="optional",D(e._zod,"optout",()=>t.innerType._zod.optout),D(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if("backward"===n.direction)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>el(e,n,u()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>el(e,n,u()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),tj=o("$ZodPipe",(e,t)=>{eZ.init(e,t),D(e._zod,"values",()=>t.in._zod.values),D(e._zod,"optin",()=>t.in._zod.optin),D(e._zod,"optout",()=>t.out._zod.optout),D(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if("backward"===n.direction){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>tZ(e,t.in,n)):tZ(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>tZ(e,t.out,n)):tZ(r,t.out,n)}});function tZ(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}let tN=o("$ZodReadonly",(e,t)=>{eZ.init(e,t),D(e._zod,"propValues",()=>t.innerType._zod.propValues),D(e._zod,"values",()=>t.innerType._zod.values),D(e._zod,"optin",()=>t.innerType?._zod?.optin),D(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if("backward"===n.direction)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(tF):tF(r)}});function tF(e){return e.value=Object.freeze(e.value),e}let tL=o("$ZodTemplateLiteral",(e,t)=>{eZ.init(e,t);let n=[];for(let e of t.parts)if("object"==typeof e&&null!==e){if(!e._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);let t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw Error(`Invalid template literal part: ${e._zod.traits}`);let r=+!!t.startsWith("^"),i=t.endsWith("$")?t.length-1:t.length;n.push(t.slice(r,i))}else if(null===e||Y.has(typeof e))n.push(Q(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${n.join("")}$`),e._zod.parse=(n,r)=>("string"!=typeof n.value?n.issues.push({input:n.value,inst:e,expected:"string",code:"invalid_type"}):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source})),n)}),tq=o("$ZodLazy",(e,t)=>{eZ.init(e,t),D(e._zod,"innerType",()=>(t._cachedInner||(t._cachedInner=t.getter()),t._cachedInner)),D(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),D(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),D(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),D(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),tD=o("$ZodCustom",(e,t)=>{eu.init(e,t),eZ.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>tW(t,n,r,e));tW(i,n,r,e)}});function tW(e,t,n,r){if(!e){let e={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(ea(e))}}Symbol("ZodOutput"),Symbol("ZodInput");class tJ{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&"object"==typeof n&&"id"in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}(i=globalThis).__zod_globalRegistry??(i.__zod_globalRegistry=new tJ);let tV=globalThis.__zod_globalRegistry;function tK(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...et(t)})}function tU(e,t){return new ed({check:"less_than",...et(t),value:e,inclusive:!1})}function tB(e,t){return new ed({check:"less_than",...et(t),value:e,inclusive:!0})}function tH(e,t){return new ef({check:"greater_than",...et(t),value:e,inclusive:!1})}function tX(e,t){return new ef({check:"greater_than",...et(t),value:e,inclusive:!0})}function tG(e,t){return new ep({check:"multiple_of",...et(t),value:e})}function tY(e,t){return new em({check:"max_length",...et(t),maximum:e})}function tQ(e,t){return new eg({check:"min_length",...et(t),minimum:e})}function t0(e,t){return new ev({check:"length_equals",...et(t),length:e})}function t1(e){return new eS({check:"overwrite",tx:e})}function t6(e){let t=e?.target??"draft-2020-12";return"draft-4"===t&&(t="draft-04"),"draft-7"===t&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??tV,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function t9(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,o=t.seen.get(e);if(o)return o.count++,n.schemaPath.includes(e)&&(o.cycle=n.path),o.schema;let l={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,l);let s=e._zod.toJSONSchema?.();if(s)l.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,l.schema,r);else{let n=l.schema,o=t.processors[i.type];if(!o)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);o(e,t,n,r)}let o=e._zod.parent;o&&(l.ref||(l.ref=o),t9(o,t,r),t.seen.get(o).isParent=!0)}let a=t.metadataRegistry.get(e);return a&&Object.assign(l.schema,a),"input"===t.io&&function e(t,n){let r=n??{seen:new Set};if(r.seen.has(t))return!1;r.seen.add(t);let i=t._zod.def;if("transform"===i.type)return!0;if("array"===i.type)return e(i.element,r);if("set"===i.type)return e(i.valueType,r);if("lazy"===i.type)return e(i.getter(),r);if("promise"===i.type||"optional"===i.type||"nonoptional"===i.type||"nullable"===i.type||"readonly"===i.type||"default"===i.type||"prefault"===i.type)return e(i.innerType,r);if("intersection"===i.type)return e(i.left,r)||e(i.right,r);if("record"===i.type||"map"===i.type)return e(i.keyType,r)||e(i.valueType,r);if("pipe"===i.type)return!!t._zod.traits.has("$ZodCodec")||e(i.in,r)||e(i.out,r);if("object"===i.type){for(let t in i.shape)if(e(i.shape[t],r))return!0;return!1}if("union"===i.type){for(let t of i.options)if(e(t,r))return!0;return!1}if("tuple"===i.type){for(let t of i.items)if(e(t,r))return!0;if(i.rest&&e(i.rest,r))return!0}return!1}(e)&&(delete l.schema.examples,delete l.schema.default),"input"===t.io&&"_prefault"in l.schema&&((r=l.schema).default??(r.default=l.schema._prefault)),delete l.schema._prefault,t.seen.get(e).schema}function t2(e,t){let n=e.seen.get(t);if(!n)throw Error("Unprocessed schema. This is a bug in Zod.");let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{if(t[1].schema.$ref)return;let r=t[1],{ref:i,defId:o}=(t=>{let r="draft-2020-12"===e.target?"$defs":"definitions";if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let o=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=o,{defId:o,ref:`${i("__shared")}#/${r}/${o}`}}if(t[1]===n)return{ref:"#"};let i=`#/${r}/`,o=t[1].schema.id??`__schema${e.counter++}`;return{defId:o,ref:i+o}})(t);r.def={...r.schema},o&&(r.defId=o);let l=r.schema;for(let e in l)delete l[e];l.$ref=i};if("throw"===e.cycles)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join("/")}/<root>
|
|
61
|
-
|
|
62
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){i(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){i(n);continue}}if(e.metadataRegistry.get(n[0])?.id||r.cycle||r.count>1&&"ref"===e.reused){i(n);continue}}}function t4(e,t){let n=e.seen.get(t);if(!n)throw Error("Unprocessed schema. This is a bug in Zod.");let r=t=>{let n=e.seen.get(t);if(null===n.ref)return;let i=n.def??n.schema,o={...i},l=n.ref;if(n.ref=null,l){r(l);let n=e.seen.get(l),s=n.schema;if(s.$ref&&("draft-07"===e.target||"draft-04"===e.target||"openapi-3.0"===e.target)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,o),t._zod.parent===l)for(let e in i)"$ref"!==e&&"allOf"!==e&&(e in o||delete i[e]);if(s.$ref&&n.def)for(let e in i)"$ref"!==e&&"allOf"!==e&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==l){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)"$ref"!==e&&"allOf"!==e&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if("draft-2020-12"===e.target?i.$schema="https://json-schema.org/draft/2020-12/schema":"draft-07"===e.target?i.$schema="http://json-schema.org/draft-07/schema#":"draft-04"===e.target?i.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let o=e.metadataRegistry.get(t)?.id;void 0!==o&&i.id===o&&delete i.id;let l=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,l[e.defId]=e.def)}e.external||Object.keys(l).length>0&&("draft-2020-12"===e.target?i.$defs=l:i.definitions=l);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t["~standard"],jsonSchema:{input:t5(t,"input",e.processors),output:t5(t,"output",e.processors)}},enumerable:!1,writable:!1}),n}catch(e){throw Error("Error converting schema to JSON.")}}let t5=(e,t,n={})=>r=>{let{libraryOptions:i,target:o}=r??{},l=t6({...i??{},target:o,io:t,processors:n});return t9(e,l),t2(l,e),t4(l,e)},t3={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},t8=(e,t,n,r)=>{let i=e._zod.def;t9(i.innerType,t,r),t.seen.get(e).ref=i.innerType},t7=o("ZodISODateTime",(e,t)=>{eG.init(e,t),nx.init(e,t)}),ne=o("ZodISODate",(e,t)=>{eY.init(e,t),nx.init(e,t)}),nt=o("ZodISOTime",(e,t)=>{eQ.init(e,t),nx.init(e,t)}),nn=o("ZodISODuration",(e,t)=>{e0.init(e,t),nx.init(e,t)}),nr=o("ZodError",(e,t)=>{eT.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>(function(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let o of e.issues)if("invalid_union"===o.code&&o.errors.length)o.errors.map(e=>r({issues:e},[...i,...o.path]));else if("invalid_key"===o.code)r({issues:o.issues},[...i,...o.path]);else if("invalid_element"===o.code)r({issues:o.issues},[...i,...o.path]);else{let e=[...i,...o.path];if(0===e.length)n._errors.push(t(o));else{let r=n,i=0;for(;i<e.length;){let n=e[i];i===e.length-1?(r[n]=r[n]||{_errors:[]},r[n]._errors.push(t(o))):r[n]=r[n]||{_errors:[]},r=r[n],i++}}}};return r(e),n})(e,t)},flatten:{value:t=>(function(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}})(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,N,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,N,2)}},isEmpty:{get:()=>0===e.issues.length}})},{Parent:Error}),ni=eO(nr),no=eC(nr),nl=eA(nr),ns=eI(nr),na=(e,t,n)=>{let r=n?{...n,direction:"backward"}:{direction:"backward"};return eO(nr)(e,t,r)},nu=(e,t,n)=>eO(nr)(e,t,n),nc=async(e,t,n)=>{let r=n?{...n,direction:"backward"}:{direction:"backward"};return eC(nr)(e,t,r)},nd=async(e,t,n)=>eC(nr)(e,t,n),nf=(e,t,n)=>{let r=n?{...n,direction:"backward"}:{direction:"backward"};return eA(nr)(e,t,r)},np=(e,t,n)=>eA(nr)(e,t,n),nh=async(e,t,n)=>{let r=n?{...n,direction:"backward"}:{direction:"backward"};return eI(nr)(e,t,r)},nm=async(e,t,n)=>eI(nr)(e,t,n),ng=new WeakMap;function nv(e,t,n){let r=Object.getPrototypeOf(e),i=ng.get(r);if(i||(i=new Set,ng.set(r,i)),!i.has(t))for(let e in i.add(t),n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}let ny=o("ZodType",(e,t)=>(eZ.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:t5(e,"input"),output:t5(e,"output")}}),e.toJSONSchema=((e,t={})=>n=>{let r=t6({...n,processors:t});return t9(e,r),t2(r,e),t4(r,e)})(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>ni(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>nl(e,t,n),e.parseAsync=async(t,n)=>no(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>ns(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>na(e,t,n),e.decode=(t,n)=>nu(e,t,n),e.encodeAsync=async(t,n)=>nc(e,t,n),e.decodeAsync=async(t,n)=>nd(e,t,n),e.safeEncode=(t,n)=>nf(e,t,n),e.safeDecode=(t,n)=>np(e,t,n),e.safeEncodeAsync=async(t,n)=>nh(e,t,n),e.safeDecodeAsync=async(t,n)=>nm(e,t,n),nv(e,"ZodType",{check(...e){let t=this.def;return this.clone(J(t,{checks:[...t.checks??[],...e.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return ee(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(function(e,t={}){return new rx({type:"custom",check:"custom",fn:e,...et(t)})}(e,t))},superRefine(e,t){return this.check(function(e,t){var n;let r,i;return n=t=>(t.addIssue=e=>{"string"==typeof e?t.issues.push(ea(e,t.value,r._zod.def)):(e.fatal&&(e.continue=!1),e.code??(e.code="custom"),e.input??(e.input=t.value),e.inst??(e.inst=r),e.continue??(e.continue=!r._zod.def.abort),t.issues.push(ea(e)))},e(t.value,t)),(i=new eu({check:"custom",...et(t)}))._zod.check=n,r=i}(e,t))},overwrite(e){return this.check(t1(e))},optional(){return ra(this)},exactOptional(){var e;return e=this,new ru({type:"optional",innerType:e})},nullable(){return rd(this)},nullish(){return ra(rd(this))},nonoptional(e){var t;return t=this,new rh({type:"nonoptional",innerType:t,...et(e)})},array(){return n0(this)},or(e){return n2([this,e])},and(e){var t;return t=this,new n3({type:"intersection",left:t,right:e})},transform(e){return rv(this,new rl({type:"transform",transform:e}))},default(e){var t,n;return t=this,n=e,new rf({type:"default",innerType:t,get defaultValue(){return"function"==typeof n?n():X(n)}})},prefault(e){var t,n;return t=this,n=e,new rp({type:"prefault",innerType:t,get defaultValue(){return"function"==typeof n?n():X(n)}})},catch(e){var t,n;return t=this,new rm({type:"catch",innerType:t,catchValue:"function"==typeof(n=e)?n:()=>n})},pipe(e){return rv(this,e)},readonly(){var e;return e=this,new ry({type:"readonly",innerType:e})},describe(e){let t=this.clone();return tV.add(t,{description:e}),t},meta(...e){if(0===e.length)return tV.get(this);let t=this.clone();return tV.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get:()=>tV.get(e)?.description,configurable:!0}),e)),nb=o("_ZodString",(e,t)=>{eN.init(e,t),ny.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n)=>{n.type="string";let{minimum:r,maximum:i,format:o,patterns:l,contentEncoding:s}=e._zod.bag;if("number"==typeof r&&(n.minLength=r),"number"==typeof i&&(n.maxLength=i),o&&(n.format=t3[o]??o,""===n.format&&delete n.format,"time"===o&&delete n.format),s&&(n.contentEncoding=s),l&&l.size>0){let e=[...l];1===e.length?n.pattern=e[0].source:e.length>1&&(n.allOf=[...e.map(e=>({..."draft-07"===t.target||"draft-04"===t.target||"openapi-3.0"===t.target?{type:"string"}:{},pattern:e.source}))])}})(e,t,n);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,nv(e,"_ZodString",{regex(...e){return this.check(function(e,t){return new eb({check:"string_format",format:"regex",...et(t),pattern:e})}(...e))},includes(...e){return this.check(function(e,t){return new ex({check:"string_format",format:"includes",...et(t),includes:e})}(...e))},startsWith(...e){return this.check(function(e,t){return new ez({check:"string_format",format:"starts_with",...et(t),prefix:e})}(...e))},endsWith(...e){return this.check(function(e,t){return new ek({check:"string_format",format:"ends_with",...et(t),suffix:e})}(...e))},min(...e){return this.check(tQ(...e))},max(...e){return this.check(tY(...e))},length(...e){return this.check(t0(...e))},nonempty(...e){return this.check(tQ(1,...e))},lowercase(e){return this.check(new e_({check:"string_format",format:"lowercase",...et(e)}))},uppercase(e){return this.check(new ew({check:"string_format",format:"uppercase",...et(e)}))},trim(){return this.check(t1(e=>e.trim()))},normalize(...e){return this.check(function(e){return t1(t=>t.normalize(e))}(...e))},toLowerCase(){return this.check(t1(e=>e.toLowerCase()))},toUpperCase(){return this.check(t1(e=>e.toUpperCase()))},slugify(){return this.check(t1(e=>e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")))}})}),n_=o("ZodString",(e,t)=>{eN.init(e,t),nb.init(e,t),e.email=t=>e.check(new nz({type:"string",format:"email",check:"string_format",abort:!1,...et(t)})),e.url=t=>e.check(new nE({type:"string",format:"url",check:"string_format",abort:!1,...et(t)})),e.jwt=t=>e.check(new nq({type:"string",format:"jwt",check:"string_format",abort:!1,...et(t)})),e.emoji=t=>e.check(new nR({type:"string",format:"emoji",check:"string_format",abort:!1,...et(t)})),e.guid=t=>e.check(tK(nk,t)),e.uuid=t=>e.check(new nS({type:"string",format:"uuid",check:"string_format",abort:!1,...et(t)})),e.uuidv4=t=>e.check(new nS({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...et(t)})),e.uuidv6=t=>e.check(new nS({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...et(t)})),e.uuidv7=t=>e.check(new nS({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...et(t)})),e.nanoid=t=>e.check(new nT({type:"string",format:"nanoid",check:"string_format",abort:!1,...et(t)})),e.guid=t=>e.check(tK(nk,t)),e.cuid=t=>e.check(new n$({type:"string",format:"cuid",check:"string_format",abort:!1,...et(t)})),e.cuid2=t=>e.check(new nO({type:"string",format:"cuid2",check:"string_format",abort:!1,...et(t)})),e.ulid=t=>e.check(new nC({type:"string",format:"ulid",check:"string_format",abort:!1,...et(t)})),e.base64=t=>e.check(new nN({type:"string",format:"base64",check:"string_format",abort:!1,...et(t)})),e.base64url=t=>e.check(new nF({type:"string",format:"base64url",check:"string_format",abort:!1,...et(t)})),e.xid=t=>e.check(new nA({type:"string",format:"xid",check:"string_format",abort:!1,...et(t)})),e.ksuid=t=>e.check(new nP({type:"string",format:"ksuid",check:"string_format",abort:!1,...et(t)})),e.ipv4=t=>e.check(new nI({type:"string",format:"ipv4",check:"string_format",abort:!1,...et(t)})),e.ipv6=t=>e.check(new nM({type:"string",format:"ipv6",check:"string_format",abort:!1,...et(t)})),e.cidrv4=t=>e.check(new nj({type:"string",format:"cidrv4",check:"string_format",abort:!1,...et(t)})),e.cidrv6=t=>e.check(new nZ({type:"string",format:"cidrv6",check:"string_format",abort:!1,...et(t)})),e.e164=t=>e.check(new nL({type:"string",format:"e164",check:"string_format",abort:!1,...et(t)})),e.datetime=t=>e.check(new t7({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...et(t)})),e.date=t=>e.check(new ne({type:"string",format:"date",check:"string_format",...et(t)})),e.time=t=>e.check(new nt({type:"string",format:"time",check:"string_format",precision:null,...et(t)})),e.duration=t=>e.check(new nn({type:"string",format:"duration",check:"string_format",...et(t)}))});function nw(e){return new n_({type:"string",...et(e)})}let nx=o("ZodStringFormat",(e,t)=>{eF.init(e,t),nb.init(e,t)}),nz=o("ZodEmail",(e,t)=>{eD.init(e,t),nx.init(e,t)}),nk=o("ZodGUID",(e,t)=>{eL.init(e,t),nx.init(e,t)}),nS=o("ZodUUID",(e,t)=>{eq.init(e,t),nx.init(e,t)}),nE=o("ZodURL",(e,t)=>{eW.init(e,t),nx.init(e,t)}),nR=o("ZodEmoji",(e,t)=>{eJ.init(e,t),nx.init(e,t)}),nT=o("ZodNanoID",(e,t)=>{eV.init(e,t),nx.init(e,t)}),n$=o("ZodCUID",(e,t)=>{eK.init(e,t),nx.init(e,t)}),nO=o("ZodCUID2",(e,t)=>{eU.init(e,t),nx.init(e,t)}),nC=o("ZodULID",(e,t)=>{eB.init(e,t),nx.init(e,t)}),nA=o("ZodXID",(e,t)=>{eH.init(e,t),nx.init(e,t)}),nP=o("ZodKSUID",(e,t)=>{eX.init(e,t),nx.init(e,t)}),nI=o("ZodIPv4",(e,t)=>{e1.init(e,t),nx.init(e,t)}),nM=o("ZodIPv6",(e,t)=>{e6.init(e,t),nx.init(e,t)}),nj=o("ZodCIDRv4",(e,t)=>{e9.init(e,t),nx.init(e,t)}),nZ=o("ZodCIDRv6",(e,t)=>{e2.init(e,t),nx.init(e,t)}),nN=o("ZodBase64",(e,t)=>{e5.init(e,t),nx.init(e,t)}),nF=o("ZodBase64URL",(e,t)=>{e3.init(e,t),nx.init(e,t)}),nL=o("ZodE164",(e,t)=>{e8.init(e,t),nx.init(e,t)}),nq=o("ZodJWT",(e,t)=>{e7.init(e,t),nx.init(e,t)}),nD=o("ZodNumber",(e,t)=>{te.init(e,t),ny.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n)=>{let{minimum:r,maximum:i,format:o,multipleOf:l,exclusiveMaximum:s,exclusiveMinimum:a}=e._zod.bag;"string"==typeof o&&o.includes("int")?n.type="integer":n.type="number";let u="number"==typeof a&&a>=(r??-1/0),c="number"==typeof s&&s<=(i??1/0),d="draft-04"===t.target||"openapi-3.0"===t.target;u?d?(n.minimum=a,n.exclusiveMinimum=!0):n.exclusiveMinimum=a:"number"==typeof r&&(n.minimum=r),c?d?(n.maximum=s,n.exclusiveMaximum=!0):n.exclusiveMaximum=s:"number"==typeof i&&(n.maximum=i),"number"==typeof l&&(n.multipleOf=l)})(e,t,n),nv(e,"ZodNumber",{gt(e,t){return this.check(tH(e,t))},gte(e,t){return this.check(tX(e,t))},min(e,t){return this.check(tX(e,t))},lt(e,t){return this.check(tU(e,t))},lte(e,t){return this.check(tB(e,t))},max(e,t){return this.check(tB(e,t))},int(e){return this.check(nV(e))},safe(e){return this.check(nV(e))},positive(e){return this.check(tH(0,e))},nonnegative(e){return this.check(tX(0,e))},negative(e){return this.check(tU(0,e))},nonpositive(e){return this.check(tB(0,e))},multipleOf(e,t){return this.check(tG(e,t))},step(e,t){return this.check(tG(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function nW(e){return new nD({type:"number",checks:[],...et(e)})}let nJ=o("ZodNumberFormat",(e,t)=>{tt.init(e,t),nD.init(e,t)});function nV(e){return new nJ({type:"number",check:"number_format",abort:!1,format:"safeint",...et(e)})}let nK=o("ZodBoolean",(e,t)=>{tn.init(e,t),ny.init(e,t),e._zod.processJSONSchema=(e,t,n)=>{t.type="boolean"}});function nU(e){return new nK({type:"boolean",...et(e)})}let nB=o("ZodNull",(e,t)=>{tr.init(e,t),ny.init(e,t),e._zod.processJSONSchema=(e,t,n)=>{"openapi-3.0"===e.target?(t.type="string",t.nullable=!0,t.enum=[null]):t.type="null"}});function nH(e){return new nB({type:"null",...et(e)})}let nX=o("ZodUnknown",(e,t)=>{ti.init(e,t),ny.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function nG(){return new nX({type:"unknown"})}let nY=o("ZodNever",(e,t)=>{to.init(e,t),ny.init(e,t),e._zod.processJSONSchema=(e,t,n)=>{t.not={}}}),nQ=o("ZodArray",(e,t)=>{ts.init(e,t),ny.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{let i=e._zod.def,{minimum:o,maximum:l}=e._zod.bag;"number"==typeof o&&(n.minItems=o),"number"==typeof l&&(n.maxItems=l),n.type="array",n.items=t9(i.element,t,{...r,path:[...r.path,"items"]})})(e,t,n,r),e.element=t.element,nv(e,"ZodArray",{min(e,t){return this.check(tQ(e,t))},nonempty(e){return this.check(tQ(1,e))},max(e,t){return this.check(tY(e,t))},length(e,t){return this.check(t0(e,t))},unwrap(){return this.element}})});function n0(e,t){return new nQ({type:"array",element:e,...et(t)})}let n1=o("ZodObject",(e,t)=>{tf.init(e,t),ny.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{let i=e._zod.def;n.type="object",n.properties={};let o=i.shape;for(let e in o)n.properties[e]=t9(o[e],t,{...r,path:[...r.path,"properties",e]});let l=new Set([...new Set(Object.keys(o))].filter(e=>{let n=i.shape[e]._zod;return"input"===t.io?void 0===n.optin:void 0===n.optout}));l.size>0&&(n.required=Array.from(l)),i.catchall?._zod.def.type==="never"?n.additionalProperties=!1:i.catchall?i.catchall&&(n.additionalProperties=t9(i.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):"output"===t.io&&(n.additionalProperties=!1)})(e,t,n,r),D(e,"shape",()=>t.shape),nv(e,"ZodObject",{keyof(){return rr(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:nG()})},loose(){return this.clone({...this._zod.def,catchall:nG()})},strict(){return this.clone({...this._zod.def,catchall:new nY({type:"never",...et(void 0)})})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return function(e,t){if(!H(t))throw Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(void 0!==Object.getOwnPropertyDescriptor(n,e))throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let r=J(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return W(this,"shape",n),n}});return ee(e,r)}(this,e)},safeExtend(e){var t=this;if(!H(e))throw Error("Invalid input to safeExtend: expected a plain object");let n=J(t._zod.def,{get shape(){let n={...t._zod.def.shape,...e};return W(this,"shape",n),n}});return ee(t,n)},merge(e){var t=this;if(t._zod.def.checks?.length)throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n=J(t._zod.def,{get shape(){let n={...t._zod.def.shape,...e._zod.def.shape};return W(this,"shape",n),n},get catchall(){return e._zod.def.catchall},checks:e._zod.def.checks??[]});return ee(t,n)},pick(e){return function(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let i=J(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return W(this,"shape",e),e},checks:[]});return ee(e,i)}(this,e)},omit(e){return function(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let i=J(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return W(this,"shape",r),r},checks:[]});return ee(e,i)}(this,e)},partial(...e){return function(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(".partial() cannot be used on object schemas containing refinements");let i=J(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:"optional",innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:"optional",innerType:r[t]}):r[t];return W(this,"shape",i),i},checks:[]});return ee(t,i)}(rs,this,e[0])},required(...e){var t,n;let r;return t=this,n=e[0],r=J(t._zod.def,{get shape(){let e=t._zod.def.shape,r={...e};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(r[t]=new rh({type:"nonoptional",innerType:e[t]}))}else for(let t in e)r[t]=new rh({type:"nonoptional",innerType:e[t]});return W(this,"shape",r),r}}),ee(t,r)}})});function n6(e,t){return new n1({type:"object",shape:e??{},...et(t)})}let n9=o("ZodUnion",(e,t)=>{th.init(e,t),ny.init(e,t),e._zod.processJSONSchema=(t,n,r)=>{let i,o,l;return o=!1===(i=e._zod.def).inclusive,l=i.options.map((e,n)=>t9(e,t,{...r,path:[...r.path,o?"oneOf":"anyOf",n]})),void(o?n.oneOf=l:n.anyOf=l)},e.options=t.options});function n2(e,t){return new n9({type:"union",options:e,...et(t)})}let n4=o("ZodDiscriminatedUnion",(e,t)=>{n9.init(e,t),tm.init(e,t)});function n5(e,t,n){return new n4({type:"union",options:t,discriminator:e,...et(n)})}let n3=o("ZodIntersection",(e,t)=>{tg.init(e,t),ny.init(e,t),e._zod.processJSONSchema=(t,n,r)=>{let i,o,l,s;return o=t9((i=e._zod.def).left,t,{...r,path:[...r.path,"allOf",0]}),l=t9(i.right,t,{...r,path:[...r.path,"allOf",1]}),void(n.allOf=[...(s=e=>"allOf"in e&&1===Object.keys(e).length)(o)?o.allOf:[o],...s(l)?l.allOf:[l]])}}),n8=o("ZodTuple",(e,t)=>{ty.init(e,t),ny.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{let i=e._zod.def;n.type="array";let o="draft-2020-12"===t.target?"prefixItems":"items",l="draft-2020-12"===t.target||"openapi-3.0"===t.target?"items":"additionalItems",s=i.items.map((e,n)=>t9(e,t,{...r,path:[...r.path,o,n]})),a=i.rest?t9(i.rest,t,{...r,path:[...r.path,l,..."openapi-3.0"===t.target?[i.items.length]:[]]}):null;"draft-2020-12"===t.target?(n.prefixItems=s,a&&(n.items=a)):"openapi-3.0"===t.target?(n.items={anyOf:s},a&&n.items.anyOf.push(a),n.minItems=s.length,a||(n.maxItems=s.length)):(n.items=s,a&&(n.additionalItems=a));let{minimum:u,maximum:c}=e._zod.bag;"number"==typeof u&&(n.minItems=u),"number"==typeof c&&(n.maxItems=c)})(e,t,n,r),e.rest=t=>e.clone({...e._zod.def,rest:t})});function n7(e,t,n){let r=t instanceof eZ,i=r?n:t;return new n8({type:"tuple",items:e,rest:r?t:null,...et(i)})}let re=o("ZodRecord",(e,t)=>{tx.init(e,t),ny.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{let i=e._zod.def;n.type="object";let o=i.keyType,l=o._zod.bag,s=l?.patterns;if("loose"===i.mode&&s&&s.size>0){let e=t9(i.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});for(let t of(n.patternProperties={},s))n.patternProperties[t.source]=e}else("draft-07"===t.target||"draft-2020-12"===t.target)&&(n.propertyNames=t9(i.keyType,t,{...r,path:[...r.path,"propertyNames"]})),n.additionalProperties=t9(i.valueType,t,{...r,path:[...r.path,"additionalProperties"]});let a=o._zod.values;if(a){let e=[...a].filter(e=>"string"==typeof e||"number"==typeof e);e.length>0&&(n.required=e)}})(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function rt(e,t,n){return new re(t&&t._zod?{type:"record",keyType:e,valueType:t,...et(n)}:{type:"record",keyType:nw(),valueType:e,...et(t)})}let rn=o("ZodEnum",(e,t)=>{tz.init(e,t),ny.init(e,t),e._zod.processJSONSchema=(t,n,r)=>{let i;(i=Z(e._zod.def.entries)).every(e=>"number"==typeof e)&&(n.type="number"),i.every(e=>"string"==typeof e)&&(n.type="string"),n.enum=i},e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new rn({...t,checks:[],...et(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new rn({...t,checks:[],...et(r),entries:i})}});function rr(e,t){return new rn({type:"enum",entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...et(t)})}let ri=o("ZodLiteral",(e,t)=>{tk.init(e,t),ny.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n)=>{let r=e._zod.def,i=[];for(let e of r.values)if(void 0===e){if("throw"===t.unrepresentable)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if("bigint"==typeof e)if("throw"===t.unrepresentable)throw Error("BigInt literals cannot be represented in JSON Schema");else i.push(Number(e));else i.push(e);if(0===i.length);else if(1===i.length){let e=i[0];n.type=null===e?"null":typeof e,"draft-04"===t.target||"openapi-3.0"===t.target?n.enum=[e]:n.const=e}else i.every(e=>"number"==typeof e)&&(n.type="number"),i.every(e=>"string"==typeof e)&&(n.type="string"),i.every(e=>"boolean"==typeof e)&&(n.type="boolean"),i.every(e=>null===e)&&(n.type="null"),n.enum=i})(e,t,n),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function ro(e,t){return new ri({type:"literal",values:Array.isArray(e)?e:[e],...et(t)})}let rl=o("ZodTransform",(e,t)=>{tS.init(e,t),ny.init(e,t),e._zod.processJSONSchema=(e,t,n)=>(e=>{if("throw"===e.unrepresentable)throw Error("Transforms cannot be represented in JSON Schema")})(e),e._zod.parse=(n,r)=>{if("backward"===r.direction)throw new s(e.constructor.name);n.addIssue=r=>{"string"==typeof r?n.issues.push(ea(r,n.value,t)):(r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=e),n.issues.push(ea(r)))};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}}),rs=o("ZodOptional",(e,t)=>{tR.init(e,t),ny.init(e,t),e._zod.processJSONSchema=(t,n,r)=>t8(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ra(e){return new rs({type:"optional",innerType:e})}let ru=o("ZodExactOptional",(e,t)=>{tT.init(e,t),ny.init(e,t),e._zod.processJSONSchema=(t,n,r)=>t8(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),rc=o("ZodNullable",(e,t)=>{t$.init(e,t),ny.init(e,t),e._zod.processJSONSchema=(t,n,r)=>{let i,o,l;return o=t9((i=e._zod.def).innerType,t,r),l=t.seen.get(e),void("openapi-3.0"===t.target?(l.ref=i.innerType,n.nullable=!0):n.anyOf=[o,{type:"null"}])},e.unwrap=()=>e._zod.def.innerType});function rd(e){return new rc({type:"nullable",innerType:e})}let rf=o("ZodDefault",(e,t)=>{tO.init(e,t),ny.init(e,t),e._zod.processJSONSchema=(t,n,r)=>{let i;t9((i=e._zod.def).innerType,t,r),t.seen.get(e).ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),rp=o("ZodPrefault",(e,t)=>{tA.init(e,t),ny.init(e,t),e._zod.processJSONSchema=(t,n,r)=>{let i;t9((i=e._zod.def).innerType,t,r),t.seen.get(e).ref=i.innerType,"input"===t.io&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},e.unwrap=()=>e._zod.def.innerType}),rh=o("ZodNonOptional",(e,t)=>{tP.init(e,t),ny.init(e,t),e._zod.processJSONSchema=(t,n,r)=>{let i;t9((i=e._zod.def).innerType,t,r),t.seen.get(e).ref=i.innerType},e.unwrap=()=>e._zod.def.innerType}),rm=o("ZodCatch",(e,t)=>{tM.init(e,t),ny.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{let i,o=e._zod.def;t9(o.innerType,t,r),t.seen.get(e).ref=o.innerType;try{i=o.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}n.default=i})(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),rg=o("ZodPipe",(e,t)=>{tj.init(e,t),ny.init(e,t),e._zod.processJSONSchema=(t,n,r)=>{let i,o,l;return o=(i=e._zod.def).in._zod.traits.has("$ZodTransform"),void(t9(l="input"===t.io?o?i.out:i.in:i.out,t,r),t.seen.get(e).ref=l)},e.in=t.in,e.out=t.out});function rv(e,t){return new rg({type:"pipe",in:e,out:t})}let ry=o("ZodReadonly",(e,t)=>{tN.init(e,t),ny.init(e,t),e._zod.processJSONSchema=(t,n,r)=>{let i;t9((i=e._zod.def).innerType,t,r),t.seen.get(e).ref=i.innerType,n.readOnly=!0},e.unwrap=()=>e._zod.def.innerType}),rb=o("ZodTemplateLiteral",(e,t)=>{tL.init(e,t),ny.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t)=>{let n=e._zod.pattern;if(!n)throw Error("Pattern not found in template literal");t.type="string",t.pattern=n.source})(e,n)});function r_(e,t){return new rb({type:"template_literal",parts:e,...et(t)})}let rw=o("ZodLazy",(e,t)=>{tq.init(e,t),ny.init(e,t),e._zod.processJSONSchema=(t,n,r)=>{let i;t9(i=e._zod.innerType,t,r),t.seen.get(e).ref=i},e.unwrap=()=>e._zod.def.getter()}),rx=o("ZodCustom",(e,t)=>{tD.init(e,t),ny.init(e,t),e._zod.processJSONSchema=(e,t,n)=>(e=>{if("throw"===e.unrepresentable)throw Error("Custom types cannot be represented in JSON Schema")})(e)});function rz(e,t){var n;let r;return n=e??(()=>!0),(r=et(t)).abort??(r.abort=!0),new rx({type:"custom",check:"custom",fn:n,...r})}function rk(e){let t=new rw({type:"lazy",getter:()=>n2([nw(e),nW(),nU(),nH(),n0(t),rt(nw(),t)])});return t}},40516:(e,t,n)=>{n.d(t,{E:()=>o});var r=n(7962);let i="base-ui-disable-scrollbar",o={className:i,getElement:e=>(0,r.jsx)("style",{nonce:e,href:i,precedence:"base-ui:low",children:`.${i}{scrollbar-width:none}.${i}::-webkit-scrollbar{display:none}`})}},41604:(e,t,n)=>{n.d(t,{N:()=>r});let r=n(29666).Bt},43745:(e,t,n)=>{n.d(t,{v:()=>l});var r=n(69266),i=n(66538),o=n(29815);function l(e){let{enabled:t=!0,open:n,ref:l,onComplete:s}=e,a=(0,i.K)(s),u=(0,o.V)(l,n);r.useEffect(()=>{if(!t)return;let e=new AbortController;return u(a,e.signal),()=>{e.abort()}},[t,n,a,u])}},44453:(e,t,n)=>{n.d(t,{AO:()=>p,Kr:()=>m,N:()=>z,Qp:()=>x,XJ:()=>y,Yu:()=>_,bp:()=>w,nq:()=>h,vF:()=>v,yV:()=>k});var r=n(10813),i=n(33914),o=n(6561),l=n(86947);function s(e){for(let t of Array.from(e.children))if("summary"===(0,r.mq)(t))return t;return null}function a(e){let t=e?(0,r.mq)(e):"";return null!=e&&e.matches('a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]')&&("summary"!==t||null!=e.parentElement&&"details"===(0,r.mq)(e.parentElement)&&s(e.parentElement)===e)&&("details"!==t||null==s(e))&&("input"!==t||"hidden"!==e.type)}function u(e){if(!a(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=function(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return(0,r.Ng)(n)?n.host:null}(t)){let n=t!==e,i="slot"===(0,r.mq)(t);if(t.hasAttribute("inert")||n&&"details"===(0,r.mq)(t)&&!t.open&&!function(e,t){let n=s(t);return!!n&&(e===n||(0,o.gR)(n,e))}(e,t)||t.hasAttribute("hidden")||!i&&!function(e,t){let n=(0,r.L9)(e);return t?"none"!==n.display:(0,l.J9)(e,n)}(t,n))return!1}return!0}function c(e){let t=e.tabIndex;if(t<0){let t=(0,r.mq)(e);if("details"===t||"audio"===t||"video"===t||(0,r.sb)(e)&&e.isContentEditable)return 0}return t}function d(e){return"input"!==(0,r.mq)(e)?null:"radio"===e.type&&""!==e.name?e:null}function f(e){if((0,r.sb)(e)&&"slot"===(0,r.mq)(e)){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return(0,r.sb)(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function p(e){return u(e)&&c(e)>=0}function h(e){let t=[];return!function e(t,n){f(t).forEach(t=>{a(t)&&n.push(t),e(t,n)})}(e,t),t.filter(u)}function m(e){let t=h(e);return t.filter(e=>c(e)>=0&&function(e,t){let n=d(e);if(!n)return!0;let r=t.find(e=>{let t=d(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=d(e);return t?.name===n.name&&t.form===n.form})===n}(e,t))}function g(e,t){let n=m(e),r=n.length;if(0===r)return;let l=(0,o.RS)((0,i.R)(e)),s=n.indexOf(l);return n[-1===s?1===t?0:r-1:s+t]}function v(e){return g((0,i.R)(e).body,1)||e}function y(e){return g((0,i.R)(e).body,-1)||e}function b(e,t){if(!e)return null;let n=m((0,i.R)(e).body),r=n.length;if(0===r)return null;let o=n.indexOf(e);return -1===o?null:n[(o+t+r)%r]}function _(e){return b(e,1)}function w(e){return b(e,-1)}function x(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!(0,o.gR)(n,r)}function z(e){m(e).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function k(e){let t=[];!function e(t,n,i){f(t).forEach(t=>{(0,r.sb)(t)&&t.matches(n)&&i.push(t),e(t,n,i)})}(e,"[data-tabindex]",t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}},44596:(e,t,n)=>{n.d(t,{H:()=>u});var r=n(69266),i=n(86517);class o{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t]))return void this.setState({...this.state,...e})}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return(0,i.P)(this,e,t,n,r)}}var l=n(66538),s=n(66758),a=n(48356);class u extends o{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){r.useDebugValue(e);let n=this;(0,s.g)(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;(0,s.g)(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this,n=Object.values(e);(0,s.g)(()=>{t.update(e)},[t,...n])}useControlledProp(e,t){r.useDebugValue(e);let n=this,i=void 0!==t;(0,s.g)(()=>{i&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,i])}select(e,t,n,r){return(0,this.selectors[e])(this.state,t,n,r)}useState(e,t,n,o){return r.useDebugValue(e),(0,i.P)(this,this.selectors[e],t,n,o)}useContextCallback(e,t){r.useDebugValue(e);let n=(0,l.K)(t??a.tE);this.context[e]=n}useStateSetter(e){let t=r.useRef(void 0);return void 0===t.current&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n,r=(n="function"==typeof e?e:this.selectors[e])(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}}},46681:(e,t,n)=>{n.d(t,{$4:()=>r,CM:()=>function e(t,n,r=!0){return t.filter(e=>e.parentId===n).flatMap(n=>[...!r||n.context?.open?[n]:[],...e(t,n.id,r)])}});function r(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}},47623:(e,t,n)=>{n.d(t,{$:()=>l});var r=n(69266),i=n(66758),o=n(17399);function l(e,t=!1,n=!1){let[s,a]=r.useState(e&&t?"idle":void 0),[u,c]=r.useState(e);return e&&!u&&(c(!0),a("starting")),e||!u||"ending"===s||n||a("ending"),e||u||"ending"!==s||a(void 0),(0,i.g)(()=>{if(!e&&u&&"ending"!==s&&n){let e=o.KP.request(()=>{a("ending")});return()=>{o.KP.cancel(e)}}},[e,u,s,n]),(0,i.g)(()=>{if(!e||t)return;let n=o.KP.request(()=>{a(void 0)});return()=>{o.KP.cancel(n)}},[t,e]),(0,i.g)(()=>{if(!e||!t)return;e&&u&&"idle"!==s&&a("starting");let n=o.KP.request(()=>{a("idle")});return()=>{o.KP.cancel(n)}},[t,e,u,s]),{mounted:u,setMounted:c,transitionStatus:s}}},49535:(e,t,n)=>{n.d(t,{x:()=>l});var r=n(69266),i=n(48356);let o=r.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:i.tE,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});function l(){return r.useContext(o)}},50735:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(69266);let i=(...e)=>e.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim(),o=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let s=(0,r.createContext)({}),a=(0,r.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:o,className:a="",children:u,iconNode:c,...d},f)=>{let{size:p=24,strokeWidth:h=2,absoluteStrokeWidth:m=!1,color:g="currentColor",className:v=""}=(0,r.useContext)(s)??{},y=o??m?24*Number(n??h)/Number(t??p):n??h;return(0,r.createElement)("svg",{ref:f,...l,width:t??p??l.width,height:t??p??l.height,stroke:e??g,strokeWidth:y,className:i("lucide",v,a),...!u&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(d)&&{"aria-hidden":"true"},...d},[...c.map(([e,t])=>(0,r.createElement)(e,t)),...Array.isArray(u)?u:[u]])}),u=(e,t)=>{let n=(0,r.forwardRef)(({className:n,...l},s)=>(0,r.createElement)(a,{ref:s,iconNode:t,className:i(`lucide-${o(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,n),...l}));return n.displayName=o(e),n}},51210:(e,t,n)=>{n.d(t,{C:()=>k});var r=n(69266),i=n(17399),o=n(66758),l=n(33914),s=n(66538),a=n(95472),u=n(68509),c=n(10813),d=n(53402),f=n(27944),p=n(52333),h=n(86947),m=n(6761),g=n(22634),v=n(6561),y=n(63150),b=n(12418);function _(e){return u.Fp&&0===e.movementX&&0===e.movementY}function w(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function x(e,t){return w(t,e===m.il||e===m.Jd,e===m.eR||e===m.RJ)}function z(e,t,n){return w(t,e===m.Jd,n?e===m.eR:e===m.RJ)||"Enter"===e||" "===e||""===e}function k(e,t){let{listRef:n,activeIndex:u,onNavigate:k=()=>{},enabled:S=!0,selectedIndex:E=null,allowEscape:R=!1,loopFocus:T=!1,nested:$=!1,rtl:O=!1,virtual:C=!1,focusItemOnOpen:A="auto",focusItemOnHover:P=!0,openOnArrowKeyDown:I=!0,disabledIndices:M,orientation:j="vertical",parentOrientation:Z,id:N,resetOnPointerLeave:F=!0,externalTree:L,grid:q}=t,D=null!=q,W="rootStore"in e?e.rootStore:e,J=W.useState("open"),V=W.useState("floatingElement"),K=W.useState("domReferenceElement"),U=W.context.dataRef,B=(0,g.nd)(V),H=(0,g.WZ)(K),X=(0,a.u)(B),G=(0,p.R1)(),Y=(0,p.cq)(L),Q=r.useRef(A),ee=r.useRef(E??-1),et=r.useRef(null),en=r.useRef(!0),er=(0,s.K)(e=>{k(-1===ee.current?null:ee.current,e)}),ei=r.useRef(!!V),eo=r.useRef(J),el=r.useRef(!1),es=r.useRef(!1),ea=r.useRef(null),eu=(0,a.u)(M),ec=(0,a.u)(J),ed=(0,a.u)(E),ef=(0,a.u)(F),ep=(0,i.NR)(),eh=(0,i.NR)(),em=(0,s.K)(()=>{function e(e){C?Y?.events.emit("virtualfocus",e):ea.current=(0,y.p)(e,{sync:el.current,preventScroll:!0})}let t=n.current[ee.current],r=es.current;t&&e(t),(el.current?e=>e():e=>ep.request(e))(()=>{let i=n.current[ee.current]||t;!i||(t||e(i),ew&&(r||!en.current)&&i.scrollIntoView?.({block:"nearest",inline:"nearest"}))})});(0,o.g)(()=>{U.current.orientation=j},[U,j]),(0,o.g)(()=>{S&&(J&&V?(ee.current=E??-1,Q.current&&null!=E&&(es.current=!0,er())):ei.current&&(ee.current=-1,er()))},[S,J,V,E,er]),(0,o.g)(()=>{if(S){if(!J){el.current=!1;return}if(V)if(null==u){if(el.current=!1,null!=ed.current)return;if(ei.current&&(ee.current=-1,em()),(!eo.current||!ei.current)&&Q.current&&(null!=et.current||!0===Q.current&&null==et.current)){let e=0,t=()=>{null==n.current[0]?(e<2&&(e?e=>eh.request(e):queueMicrotask)(t),e+=1):(ee.current=null==et.current||z(et.current,j,O)||$?(0,h.Zb)(n):(0,h.vB)(n),et.current=null,er())};t()}}else(0,h.du)(n.current,u)||(ee.current=u,em(),es.current=!1)}},[S,J,V,u,ed,$,n,j,O,er,em,eh]),(0,o.g)(()=>{if(!S||V||!Y||C||!ei.current)return;let e=Y.nodesRef.current,t=e.find(e=>e.id===G)?.context?.elements.floating,n=(0,v.RS)((0,l.R)(K??t??null)),r=e.some(e=>e.context&&(0,v.gR)(e.context.elements.floating,n));t&&!r&&en.current&&t.focus({preventScroll:!0})},[S,V,K,Y,G,C]),(0,o.g)(()=>{eo.current=J,ei.current=!!V}),(0,o.g)(()=>{J||(et.current=null,Q.current=A)},[J,A]);let eg=null!=u,ev=(0,s.K)(e=>{if(!ec.current)return;let t=n.current.indexOf(e.currentTarget);-1!==t&&(ee.current!==t||u!==t)&&(ee.current=t,er(e))}),ey=(0,s.K)(()=>Z??Y?.nodesRef.current.find(e=>e.id===G)?.context?.dataRef?.current.orientation),eb=(0,s.K)(()=>(0,h.Zb)(n,eu.current)),e_=(0,s.K)(e=>{var t;let r,i;if(en.current=!1,el.current=!0,229===e.which||!ec.current&&e.currentTarget===X.current)return;if($&&(t=e.key,r=O?t===m.RJ:t===m.eR,i=t===m.il,"both"===j||"horizontal"===j&&D?"Escape"===t:w(j,r,i))){x(e.key,ey())||(0,b.jo)(e),W.setOpen(!1,(0,d.d)(f.Dq,e.nativeEvent)),(0,c.sb)(K)&&(C?Y?.events.emit("virtualfocus",K):K.focus());return}let o=ee.current,l=(0,h.Zb)(n,M),s=(0,h.vB)(n,M);if(H||("Home"===e.key&&((0,b.jo)(e),ee.current=l,er(e)),"End"===e.key&&((0,b.jo)(e),ee.current=s,er(e))),null!=q){let t=q(e,ee.current,n,j,T,O,M,l,s);if(null!=t&&(ee.current=t,er(e)),"both"===j)return}if(x(e.key,j)){if((0,b.jo)(e),J&&!C&&(0,v.RS)(e.currentTarget.ownerDocument)===e.currentTarget){ee.current=z(e.key,j,O)?l:s,er(e);return}z(e.key,j,O)?T?o>=s?R&&o!==n.current.length?ee.current=-1:(el.current=!1,ee.current=l):ee.current=(0,h.BF)(n.current,{startingIndex:o,disabledIndices:M}):ee.current=Math.min(s,(0,h.BF)(n.current,{startingIndex:o,disabledIndices:M})):T?o<=l?R&&-1!==o?ee.current=n.current.length:(el.current=!1,ee.current=s):ee.current=(0,h.BF)(n.current,{startingIndex:o,decrement:!0,disabledIndices:M}):ee.current=Math.max(l,(0,h.BF)(n.current,{startingIndex:o,decrement:!0,disabledIndices:M})),(0,h.du)(n.current,ee.current)&&(ee.current=-1),er(e)}}),ew=r.useMemo(()=>({onFocus(e){el.current=!0,ev(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){!_(e)&&(el.current=!0,es.current=!1,P&&ev(e))},onPointerLeave(e){if(!ec.current||!en.current||"touch"===e.pointerType)return;el.current=!0;let t=e.relatedTarget;if(!(!P||n.current.includes(t))&&ef.current&&(ea.current?.(),ea.current=null,ee.current=-1,er(e),!C)){let e=X.current,t=(0,v.RS)((0,l.R)(e));e&&(0,v.gR)(e,t)&&e.focus({preventScroll:!0})}}}),[ev,ec,X,P,n,er,ef,C]),ex=r.useMemo(()=>C&&J&&eg&&{"aria-activedescendant":`${N}-${u}`},[C,J,eg,N,u]),ez=r.useMemo(()=>({"aria-orientation":"both"===j?void 0:j,...!H?ex:{},onKeyDown(e){if("Tab"===e.key&&e.shiftKey&&J&&!C){let t=(0,v.EW)(e.nativeEvent);if(t&&!(0,v.gR)(X.current,t))return;(0,b.jo)(e),W.setOpen(!1,(0,d.d)(f.Xn,e.nativeEvent)),(0,c.sb)(K)&&K.focus();return}e_(e)},onPointerMove(e){_(e)||(en.current=!0)}}),[ex,e_,X,j,H,W,J,C,K]),ek=r.useMemo(()=>{function e(e){W.setOpen(!0,(0,d.d)(f.Dq,e.nativeEvent,e.currentTarget))}function t(e){"auto"===A&&(0,b.YF)(e.nativeEvent)&&(Q.current=!C)}function n(e){Q.current=A,"auto"===A&&(0,b.Pg)(e.nativeEvent)&&(Q.current=!0)}return{onKeyDown(t){var n,r;let i=W.select("open");en.current=!1;let o=t.key.startsWith("Arrow"),l=(n=t.key,r=ey(),w(r,O?n===m.eR:n===m.RJ,n===m.Jd)),s=x(t.key,j),a=($?l:s)||"Enter"===t.key||""===t.key.trim();if(C&&i)return e_(t);if(i||I||!o){if(a){let e=x(t.key,ey());et.current=$&&e?null:t.key}if($){l&&((0,b.jo)(t),i?(ee.current=eb(),er(t)):e(t));return}s&&(null!=ed.current&&(ee.current=ed.current),(0,b.jo)(t),!i&&I?e(t):e_(t),i&&er(t))}},onFocus(e){W.select("open")&&!C&&(ee.current=-1,er(e))},onPointerDown:n,onPointerEnter:n,onMouseDown:t,onClick:t}},[e_,A,eb,$,er,W,I,j,ey,O,ed,C]),eS=r.useMemo(()=>({...ex,...ek}),[ex,ek]);return r.useMemo(()=>S?{reference:eS,floating:ez,item:ew,trigger:ek}:{},[S,eS,ez,ek,ew])}},51378:(e,t,n)=>{n.d(t,{F:()=>r});function r(e){return`data-base-ui-${e}`}},52333:(e,t,n)=>{n.d(t,{$c:()=>h,P6:()=>m,R1:()=>d,cq:()=>f,fI:()=>p});var r=n(69266),i=n(63829),o=n(66758),l=n(75645),s=n(24082),a=n(7962);let u=r.createContext(null),c=r.createContext(null),d=()=>r.useContext(u)?.id||null,f=e=>{let t=r.useContext(c);return e??t};function p(e){let t=(0,i.B)(),n=f(e),r=d();return(0,o.g)(()=>{if(!t)return;let e={id:t,parentId:r};return n?.addNode(e),()=>{n?.removeNode(e)}},[n,t,r]),t}function h(e){let{children:t,id:n}=e,i=d();return(0,a.jsx)(u.Provider,{value:r.useMemo(()=>({id:n,parentId:i}),[n,i]),children:t})}function m(e){let{children:t,externalTree:n}=e,r=(0,l.j)(()=>n??new s.k).current;return(0,a.jsx)(c.Provider,{value:r,children:t})}},52343:(e,t,n)=>{n.d(t,{I:()=>l});var r=n(66758),i=n(75645),o=n(12590);function l(e,t,n,s,a=!0,u){let{registerFieldControl:c}=(0,o.V$)(),d=(0,i.j)(()=>Symbol());(0,r.g)(()=>{let r=d.current;a?c(r,{controlRef:e,getValue:s,id:t,name:u,value:n}):c(r,void 0)},[e,a,s,t,u,c,d,n]),(0,r.g)(()=>{let e=d.current;return()=>{c(e,void 0)}},[c,d])}},53402:(e,t,n)=>{n.d(t,{d:()=>i});var r=n(48356);function i(e,t,n,i){let o=!1,l=!1,s=i??r.t0;return{reason:e,event:t??new Event("base-ui"),cancel(){o=!0},allowPropagation(){l=!0},get isCanceled(){return o},get isPropagationAllowed(){return l},trigger:n,...s}}},53555:(e,t,n)=>{n.d(t,{p:()=>_});var r=n(69266),i=n(74388),o=n(66758),l=n(33914),s=n(66538),a=n(12590),u=n(52343),c=n(49535),d=n(29585),f=n(71508),p=n(54967),h=n(69611),m=n(53402),g=n(27944),v=n(6561);let y=r.forwardRef(function(e,t){let{render:n,className:y,id:b,name:_,value:w,disabled:x=!1,onValueChange:z,defaultValue:k,autoFocus:S=!1,style:E,...R}=e,{state:T,name:$,disabled:O,setTouched:C,setDirty:A,validityData:P,setFocused:I,setFilled:M,validationMode:j,validation:Z}=(0,a.V$)(),{clearErrors:N}=(0,c.x)(),F=O||x,L=$??_,q={...T,disabled:F},{labelId:D}=(0,d.H)(),W=(0,f.l)({id:b});(0,o.g)(()=>{let e=null!=w;Z.inputRef.current?.value||e&&""!==w?M(!0):e&&""===w&&M(!1)},[Z.inputRef,M,w]);let J=r.useRef(null);(0,o.g)(()=>{S&&J.current===(0,v.RS)((0,l.R)(J.current))&&I(!0)},[S,I]);let[V]=(0,i.q)({controlled:w,default:k,name:"FieldControl",state:"value"}),K=void 0!==w,U=K?V:void 0,B=(0,s.K)(()=>Z.inputRef.current?.value);return(0,u.I)(Z.inputRef,W,U,B,!F,_),(0,h.o)("input",e,{ref:[t,J],state:q,props:[{id:W,disabled:F,name:L,ref:Z.inputRef,"aria-labelledby":D,autoFocus:S,...K?{value:U}:{defaultValue:k},onChange(e){let t=e.currentTarget.value;z?.(t,(0,m.d)(g.dv,e.nativeEvent)),A(t!==(P.initialValue??"")),M(""!==t),e.nativeEvent.defaultPrevented||(N(L),Z.change(t))},onFocus(){I(!0)},onBlur(e){C(!0),I(!1),"onBlur"===j&&Z.commit(e.currentTarget.value)},onKeyDown(e){"INPUT"===e.currentTarget.tagName&&"Enter"===e.key&&(C(!0),Z.commit(e.currentTarget.value))}},R,e=>Z.getValidationProps(F,e)],stateAttributesMapping:p.dc})});var b=n(7962);let _=r.forwardRef(function(e,t){return(0,b.jsx)(y,{ref:t,...e})})},53949:(e,t,n)=>{let r;n.d(t,{G1:()=>u,iE:()=>s,kz:()=>a,nk:()=>c});var i=n(69266),o=n(75645);let l=[];function s(){return r}function a(e){l.push(e)}function u(e){let t=(t,n)=>{let i,s=(0,o.j)(d).current;try{for(let e of(r=s,l))e.before(s);for(let r of(i=e(t,n),l))r.after(s);s.didInitialize=!0}finally{r=void 0}return i};return t.displayName=e.displayName||e.name,t}function c(e){return i.forwardRef(u(e))}function d(){return{didInitialize:!1}}},54545:(e,t,n)=>{n.d(t,{q:()=>l});var r=n(69266),i=n(66758),o=n(8028);function l(e={}){let{guess:t,label:n,metadata:s,textRef:a,index:u}=e,{register:c,unregister:d,subscribeMapChange:f,nextIndexRef:p}=(0,o.M)(),h=r.useRef(-1),[m,g]=r.useState(null==u&&t?()=>{if(-1===h.current){let e=p.current;p.current+=1,h.current=e}return h.current}:-1),v=u??m,y=r.useRef(null),b=r.useCallback(e=>{let t=y.current;t&&d(t),y.current=e,e&&c(e,{metadata:s??null,index:u??null,label:n,textRef:a})},[u,c,d,s,n,a]);return(0,i.g)(()=>{if(null==u)return f(e=>{let t=y.current?e.get(y.current)?.index:null;null!=t&&g(t)})},[u,f]),{ref:b,index:v}}},54967:(e,t,n)=>{n.d(t,{ZV:()=>r,dc:()=>o,mk:()=>i});let r={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},i={disabled:!1,valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},o={valid:e=>null===e?null:e?{"data-valid":""}:{"data-invalid":""}}},56869:(e,t,n)=>{n.d(t,{n:()=>l});var r=n(69266);let i=r.createContext(void 0),o={disableStyleElements:!1};function l(){return r.useContext(i)??o}},58689:(e,t,n)=>{var r=n(69266),i=n(88359),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},l=i.useSyncExternalStore,s=r.useRef,a=r.useEffect,u=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var p=l(e,(d=u(function(){function e(e){if(!a){if(a=!0,l=e,e=r(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return s=t}return s=e}if(t=s,o(l,e))return t;var n=r(e);return void 0!==i&&i(t,n)?(l=e,t):(l=e,s=n)}var l,s,a=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,n,r,i]))[0],d[1]);return a(function(){f.hasValue=!0,f.value=p},[p]),c(p),p}},60601:(e,t,n)=>{n.d(t,{i:()=>l});var r=n(85933),i=n(69611),o=n(82909);function l(e,t,{styles:n,transitionStatus:s,props:a,refs:u,hidden:c,inert:d=!1}){let f={...n};return d&&(f.pointerEvents="none"),(0,i.o)("div",e,{state:t,ref:u,props:[{role:"presentation",hidden:c,style:f},(0,o.d)(s),a],stateAttributesMapping:r.GW})}},63150:(e,t,n)=>{n.d(t,{p:()=>o});var r=n(48356);let i=0;function o(e,t={}){let{preventScroll:n=!1,sync:l=!1,shouldFocus:s}=t;function a(){(!s||s())&&e?.focus({preventScroll:n})}if(cancelAnimationFrame(i),l)return a(),r.tE;let u=requestAnimationFrame(a);return i=u,()=>{i===u&&(cancelAnimationFrame(u),i=0)}}},63717:(e,t,n)=>{n.d(t,{u:()=>u});var r=n(69266),i=n(75645),o=n(66538),l=n(66758),s=n(8028),a=n(7962);function u(e){let{children:t,elementsRef:n,labelsRef:u,onMapChange:p}=e,h=(0,o.K)(p),[,m]=r.useState(!1),g=(0,i.j)(d).current,v=(0,i.j)(c).current,y=r.useRef(0),b=r.useRef(!0),_=r.useRef([]),w=r.useRef(null),x=(0,o.K)(()=>{b.current||(b.current=!0,m(e=>!e))}),z=(0,o.K)((e,t)=>{v.set(e,t),x()}),k=(0,o.K)(e=>{v.delete(e),x()}),S=(0,o.K)(e=>{let t=new Map;return n.current.length=0,u&&(u.current.length=0),e.forEach(e=>{t.set(e.element,{...e.registration.metadata??{},index:e.index}),n.current[e.index]=e.element,u&&(u.current[e.index]=void 0!==e.registration.label?e.registration.label:e.registration.textRef?.current?.textContent??e.element.textContent)}),y.current=n.current.length,t}),E=(0,o.K)(()=>{var e;let t,n,r,i,[o,l]=(e=v,t=new Set,n=[],r=[],e.forEach((e,i)=>{if(!i.isConnected)return;let o=e.index,l={index:o??-1,element:i,registration:e};null===o?r.push(l):o>=0&&(t.add(o),n.push(l))}),i=0,r.sort((e,t)=>f(e.element,t.element)),r.forEach(e=>{for(;t.has(i);)i+=1;e.index=i,n.push(e),i+=1}),t.size>0&&n.sort((e,t)=>e.index-t.index),[n,r.map(e=>e.element)]),s=S(o);!function(e){if(w.current?.disconnect(),w.current=null,"function"!=typeof MutationObserver||e.length<2)return;let t=new MutationObserver(n=>{if(!function(e){for(let t of e)for(let e=0;e<t.removedNodes.length;e+=1)if(t.removedNodes[e].isConnected)return!0;return!1}(n))return;let r=null;for(let n of e)if(n.isConnected){if(r&&f(r,n)>0){t.disconnect(),x();return}r=n}});w.current=t;let n=new Set;for(let t=1;t<e.length;t+=1){let r=function(e,t){let n=e.parentElement;for(;n&&!n.contains(t);)n=n.parentElement;return n}(e[t-1],e[t]);r&&n.add(r)}n.forEach(e=>t.observe(e,{childList:!0}))}(l),_.current=o,b.current=!1,g.forEach(e=>e(s)),h(s)});(0,l.g)(()=>(b.current||S(_.current),()=>{n.current=[],u&&(u.current=[])}),[n,u,S]),(0,l.g)(()=>{b.current&&E()}),(0,l.g)(()=>()=>{w.current?.disconnect(),b.current=!0},[]);let R=(0,o.K)(e=>(g.add(e),()=>{g.delete(e)})),T=r.useMemo(()=>({register:z,unregister:k,subscribeMapChange:R,nextIndexRef:y}),[z,k,R,y]);return(0,a.jsx)(s.D.Provider,{value:T,children:t})}function c(){return new Map}function d(){return new Set}function f(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}},63829:(e,t,n)=>{n.d(t,{B:()=>s});var r=n(69266),i=n(97059);let o=0,l=i.X.useId;function s(e,t){if(void 0!==l){let n=l();return e??(t?`${t}-${n}`:n)}return function(e,t="mui"){let[n,i]=r.useState(e),l=e||n;return r.useEffect(()=>{null==n&&(o+=1,i(`${t}-${o}`))},[n,t]),l}(e,t)}},63962:(e,t,n)=>{n.d(t,{Ae:()=>_,DU:()=>k,L_:()=>S,Ls:()=>v,T1:()=>z,UM:()=>y,VI:()=>w,i:()=>x,i6:()=>T,l$:()=>R,tr:()=>E,xp:()=>b,xs:()=>$});var r=n(69266),i=n(44911),o=n(48356),l=n(63829),s=n(66538),a=n(66758),u=n(75645),c=n(6761),d=n(52333),f=n(19223),p=n(47623),h=n(43745),m=n(53402),g=n(27944);let v={tabIndex:-1,[c.Ed]:""};function y(e){return t=>"touch"!==t||e.current}function b(e,t=!1){let n=(0,l.B)(),r=null!=(0,d.R1)(),i=(0,u.j)(()=>e(n,r)).current;return(0,f.D)({popupStore:i,treatPopupAsFloatingElement:t,floatingRootContext:i.state.floatingRootContext,floatingId:n,nested:r,onOpenChange:i.setOpen}),i}function _({handle:e,store:t}){return(0,a.g)(()=>e.attachStore(t),[e,t]),null}function w(e,t){let n=r.useRef(null),i=r.useRef(null);return r.useCallback(r=>{if(void 0===e)return;let o=!1;if(null!==n.current){let e=n.current,r=i.current,l=t.context.triggerElements.getById(e);r&&l===r&&(t.context.triggerElements.delete(e),o=!0),n.current=null,i.current=null}if(null!==r&&(n.current=e,i.current=r,t.context.triggerElements.add(e,r),o=!0),o){let e=t.context.triggerElements.size;t.select("open")&&t.state.triggerCount!==e&&t.set("triggerCount",e)}},[t,e])}function x(e,t,n,r=!1){t?e.preventUnmountingOnClose=!1:r&&(e.preventUnmountingOnClose=!0);let i=n?.id??null;(i||t)&&(e.activeTriggerId=i,e.activeTriggerElement=n??null)}function z(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function k(e,t,n,r={}){let o=n.reason,l=o===g.N7,s=t&&o===g.F4,a=!t&&(o===g.Ui||o===g.jv),u=z(n);if(e.context.onOpenChange?.(t,n),n.isCanceled)return;r.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,n);let c=()=>{let i={...r.extraState,open:t};s?i.instantType="focus":a?i.instantType="dismiss":l&&(i.instantType=void 0),x(i,t,n.trigger,u()),e.update(i)};l?i.flushSync(c):c()}function S(e,t,n,i){let o=n.useState("isMountedByTrigger",e),l=w(e,n),u=(0,s.K)(t=>{let r=n.select("open"),o=n.select("activeTriggerId");o===e?n.update({activeTriggerElement:t,...r?i:null}):null==o&&r&&n.update({activeTriggerId:e,activeTriggerElement:t,...i})}),c=r.useCallback(e=>{l(e),e&&u(e)},[l,u]);return(0,a.g)(()=>{o&&n.update({activeTriggerElement:t.current,...i})},[o,n,t,...Object.values(i)]),{registerTrigger:c,isMountedByThisTrigger:o}}function E(e,t={}){let{closeOnActiveTriggerUnmount:n=!1}=t,i=r.useRef(null),o=e.useState("open"),l=e.useState("triggerCount"),s=e.useState("activeTriggerId"),u=e.useState("activeTriggerElement");(0,a.g)(()=>{if(!o){i.current=null,0!==e.state.triggerCount&&e.set("triggerCount",0);return}let t=e.context.triggerElements.size,r={};e.state.triggerCount!==t&&(r.triggerCount=t);let l=e.select("activeTriggerId"),s=null;if(l){let t=e.context.triggerElements.getById(l);if(t)i.current=l,t!==e.state.activeTriggerElement&&(r.activeTriggerElement=t);else{for(let[t,n]of e.context.triggerElements.entries())if(n===e.state.activeTriggerElement){r.activeTriggerId=t,r.activeTriggerElement=n,i.current=t;break}void 0===r.activeTriggerId&&(i.current===l?s=l:i.current=null)}}else i.current=null;if(!s&&!l&&1===t){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;r.activeTriggerId=e,r.activeTriggerElement=n,i.current=e}}(void 0!==r.triggerCount||void 0!==r.activeTriggerId||void 0!==r.activeTriggerElement)&&e.update(r),s&&n&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===s&&!e.context.triggerElements.getById(s)){let t=(0,m.d)(g.dv);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[o,e,l,s,u,n])}function R(e,t,n){let{mounted:r,setMounted:i,transitionStatus:o}=(0,p.$)(e),l=t.useState("preventUnmountingOnClose"),a=!e&&l;t.useSyncedValues({mounted:r,transitionStatus:o,preventUnmountingOnClose:a});let u=(0,s.K)(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)});return(0,h.v)({enabled:r&&!e&&!a,open:e,ref:t.context.popupRef,onComplete(){e||u()}}),{forceUnmount:u,transitionStatus:o}}function T(e,t){e.useSyncedValues(t),(0,a.g)(()=>()=>{e.update({activeTriggerProps:o.t0,inactiveTriggerProps:o.t0,popupProps:o.t0})},[e])}function $(e,t){(0,a.g)(()=>{t||null===e.state.openMethod||e.set("openMethod",null)},[t,e]),(0,a.g)(()=>()=>{null!==e.state.openMethod&&e.set("openMethod",null)},[e])}},65369:(e,t,n)=>{n.d(t,{x:()=>l});var r=n(69266),i=n(66758),o=n(66538);function l(e,t){let n=r.useRef(e),l=(0,o.K)(t);(0,i.g)(()=>{n.current!==e&&l(n.current),n.current=e},[e,l])}},66867:(e,t,n)=>{n.d(t,{Pv:()=>i,Qw:()=>l,XF:()=>o});var r=n(94296);let i=1;function o(e,t){return Math.max(0,e-t)}function l(e,t){if(t<=0)return 0;let n=(0,r.q)(e,0,t),o=t-n,l=n<=i,s=o<=i;return l&&s?n<=o?0:t:l?0:s?t:n}},68509:(e,t,n)=>{n.d(t,{Fp:()=>i});var r=n(18452);let i="u">typeof CSS&&!!CSS.supports?.("-webkit-backdrop-filter:none");i||r.ST.includes("firefox"),i||r.ST.includes("chrom")},69609:(e,t,n)=>{n.d(t,{U:()=>u});var r=n(69266),i=n(66758),o=n(41604),l=n(68509),s=n(81137),a=n(7962);let u=r.forwardRef(function(e,t){let[n,u]=r.useState();return(0,i.g)(()=>{o.N&&l.Fp&&u("button")},[]),(0,a.jsx)("span",{...e,ref:t,style:s.Q,"aria-hidden":!n||void 0,...{tabIndex:0,role:n},"data-base-ui-focus-guard":""})})},69738:(e,t,n)=>{n.d(t,{k:()=>f});var r=n(69266),i=n(17399),o=n(34517),l=n(48356),s=n(6561),a=n(22634),u=n(12418),c=n(53402),d=n(27944);function f(e,t={}){let{enabled:n=!0,event:p="click",toggle:h=!0,ignoreMouse:m=!1,stickIfOpen:g=!0,touchOpenDelay:v=0,reason:y=d.Ui}=t,b="rootStore"in e?e.rootStore:e,_=b.context.dataRef,w=r.useRef(void 0),x=(0,i.NR)(),z=(0,o.Z)(),k=r.useMemo(()=>{function e(e,t,n,r){let i=(0,c.d)(y,t,n);e&&"touch"===r&&v>0?z.start(v,()=>{b.setOpen(!0,i)}):b.setOpen(e,i)}function t(e,t,n){let r=_.current.openEvent,i=b.select("domReferenceElement")!==t;return!!e&&!!i||!e||!h||!!r&&!!g&&!n(r.type)}return{onPointerDown(e){w.current=(0,u.Go)(e.pointerType,!0)&&(0,u.Pg)(e.nativeEvent)?"virtual":e.pointerType},onMouseDown(n){let r=w.current,i=n.nativeEvent,o=b.select("open");if(0!==n.button||"click"===p||(0,u.Go)(r,!0)&&m)return;let l=t(o,n.currentTarget,e=>"click"===e||"mousedown"===e),c=(0,s.EW)(i);if((0,a.$u)(c))return void e(l,i,c,r);let d=n.currentTarget;x.request(()=>{e(l,i,d,r)})},onClick(n){if("mousedown-only"===p)return;let r=w.current;if("mousedown"===p&&r){w.current=void 0;return}(0,u.Go)(r,!0)&&m||e(t(b.select("open"),n.currentTarget,e=>"click"===e||"mousedown"===e||"keydown"===e||"keyup"===e),n.nativeEvent,n.currentTarget,r)},onKeyDown(){w.current=void 0}}},[_,p,m,y,b,g,h,x,z,v]);return r.useMemo(()=>n?{reference:k}:l.t0,[n,k])}},71508:(e,t,n)=>{n.d(t,{l:()=>d});var r=n(69266),i=n(66758),o=n(66538),l=n(75645),s=n(10813),a=n(48356),u=n(9542),c=n(29585);function d(e={}){let{id:t,implicit:n=!1,controlRef:f}=e,{controlId:p,registerControlId:h}=(0,c.H)(),m=(0,u.e)(t),g=n?p:void 0,v=(0,l.j)(()=>Symbol()),y=r.useRef(!1),b=r.useRef(null!=t),_=(0,o.K)(()=>{y.current&&h!==a.tE&&(y.current=!1,h(v.current,void 0))});return(0,i.g)(()=>{let e;if(h!==a.tE){if(n){let n=f?.current;e=(0,s.vq)(n)&&null!=n.closest("label")?t??null:g??m}else if(null!=t)b.current=!0,e=t;else{if(!b.current)return void _();e=m}if(void 0===e)return void _();y.current=!0,h(v.current,e)}},[t,f,g,h,n,m,v,_]),r.useEffect(()=>_,[_]),p??m}},73146:(e,t,n)=>{n.d(t,{BF:()=>s,HQ:()=>r,K2:()=>o,Kd:()=>l,Pe:()=>c,X3:()=>i,eZ:()=>a,uD:()=>u,z_:()=>d});let r=500,i=500,o={style:{transition:"none"}},l="data-base-ui-click-trigger",s="[data-base-ui-swipe-ignore]",a="[data-swipe-ignore]",u={fallbackAxisSide:"none"},c={fallbackAxisSide:"end"},d={clipPath:"inset(50%)",position:"fixed",top:0,left:0}},73881:(e,t,n)=>{n.d(t,{j:()=>o});var r=n(69266);let i=r.createContext(void 0);function o(){let e=r.useContext(i);return e?.direction??"ltr"}},74388:(e,t,n)=>{n.d(t,{q:()=>i});var r=n(69266);function i({controlled:e,default:t,name:n,state:o="value"}){let{current:l}=r.useRef(void 0!==e),[s,a]=r.useState(t),u=r.useCallback(e=>{l||a(e)},[]);return[l?e:s,u]}},80576:(e,t,n)=>{n.d(t,{ll:()=>S,rD:()=>C,UU:()=>T,ER:()=>O,cY:()=>E,iD:()=>z,BN:()=>R,Ej:()=>$});var r=n(86975);function i(e,t,n){let i,{reference:o,floating:l}=e,s=(0,r.TV)(t),a=(0,r.Dz)(t),u=(0,r.sq)(a),c=(0,r.C0)(t),d=o.x+o.width/2-l.width/2,f=o.y+o.height/2-l.height/2,p=o[u]/2-l[u]/2;switch(c){case"top":i={x:d,y:o.y-l.height};break;case"bottom":i={x:d,y:o.y+o.height};break;case"right":i={x:o.x+o.width,y:f};break;case"left":i={x:o.x-l.width,y:f};break;default:i={x:o.x,y:o.y}}let h=(0,r.Sg)(t);return h&&(i[a]+=p*("end"===h?1:-1)*(n&&"y"===s?-1:1)),i}async function o(e,t){var n;void 0===t&&(t={});let{x:i,y:o,platform:l,rects:s,elements:a,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=(0,r._3)(t,e),m=(0,r.nI)(h),g=a[p?"floating"===f?"reference":"floating":f],v=(0,r.B1)(await l.getClippingRect({element:null==(n=await (null==l.isElement?void 0:l.isElement(g)))||n?g:g.contextElement||await (null==l.getDocumentElement?void 0:l.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:u})),y="floating"===f?{x:i,y:o,width:s.floating.width,height:s.floating.height}:s.reference,b=await (null==l.getOffsetParent?void 0:l.getOffsetParent(a.floating)),_=await (null==l.isElement?void 0:l.isElement(b))&&await (null==l.getScale?void 0:l.getScale(b))||{x:1,y:1},w=(0,r.B1)(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:b,strategy:u}):y);return{top:(v.top-w.top+m.top)/_.y,bottom:(w.bottom-v.bottom+m.bottom)/_.y,left:(v.left-w.left+m.left)/_.x,right:(w.right-v.right+m.right)/_.x}}let l=async(e,t,n)=>{let{placement:r="bottom",strategy:l="absolute",middleware:s=[],platform:a}=n,u=a.detectOverflow?a:{...a,detectOverflow:o},c=await (null==a.isRTL?void 0:a.isRTL(t)),d=await a.getElementRects({reference:e,floating:t,strategy:l}),{x:f,y:p}=i(d,r,c),h=r,m=0,g={};for(let n=0;n<s.length;n++){let o=s[n];if(!o)continue;let{name:v,fn:y}=o,{x:b,y:_,data:w,reset:x}=await y({x:f,y:p,initialPlacement:r,placement:h,strategy:l,middlewareData:g,rects:d,platform:u,elements:{reference:e,floating:t}});f=null!=b?b:f,p=null!=_?_:p,g[v]={...g[v],...w},x&&m<50&&(m++,"object"==typeof x&&(x.placement&&(h=x.placement),x.rects&&(d=!0===x.rects?await a.getElementRects({reference:e,floating:t,strategy:l}):x.rects),{x:f,y:p}=i(d,h,c)),n=-1)}return{x:f,y:p,placement:h,strategy:l,middlewareData:g}},s=new Set(["left","top"]);async function a(e,t){let{placement:n,platform:i,elements:o}=e,l=await (null==i.isRTL?void 0:i.isRTL(o.floating)),a=(0,r.C0)(n),u=(0,r.Sg)(n),c="y"===(0,r.TV)(n),d=s.has(a)?-1:1,f=l&&c?-1:1,p=(0,r._3)(t,e),{mainAxis:h,crossAxis:m,alignmentAxis:g}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return u&&"number"==typeof g&&(m="end"===u?-1*g:g),c?{x:m*f,y:h*d}:{x:h*d,y:m*f}}var u=n(10813);function c(e){let t=(0,u.L9)(e),n=parseFloat(t.width)||0,i=parseFloat(t.height)||0,o=(0,u.sb)(e),l=o?e.offsetWidth:n,s=o?e.offsetHeight:i,a=(0,r.LI)(n)!==l||(0,r.LI)(i)!==s;return a&&(n=l,i=s),{width:n,height:i,$:a}}function d(e){return(0,u.vq)(e)?e:e.contextElement}function f(e){let t=d(e);if(!(0,u.sb)(t))return(0,r.Jx)(1);let n=t.getBoundingClientRect(),{width:i,height:o,$:l}=c(t),s=(l?(0,r.LI)(n.width):n.width)/i,a=(l?(0,r.LI)(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}let p=(0,r.Jx)(0);function h(e){let t=(0,u.zk)(e);return(0,u.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:p}function m(e,t,n,i){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let l=e.getBoundingClientRect(),s=d(e),a=(0,r.Jx)(1);t&&(i?(0,u.vq)(i)&&(a=f(i)):a=f(e));let c=(void 0===(o=n)&&(o=!1),i&&o&&i===(0,u.zk)(s))?h(s):(0,r.Jx)(0),p=(l.left+c.x)/a.x,m=(l.top+c.y)/a.y,g=l.width/a.x,v=l.height/a.y;if(s&&i){let e=(0,u.zk)(s),t=(0,u.vq)(i)?(0,u.zk)(i):i,n=e,r=(0,u._m)(n);for(;r&&t!==n;){let e=f(r),t=r.getBoundingClientRect(),i=(0,u.L9)(r),o=t.left+(r.clientLeft+parseFloat(i.paddingLeft))*e.x,l=t.top+(r.clientTop+parseFloat(i.paddingTop))*e.y;p*=e.x,m*=e.y,g*=e.x,v*=e.y,p+=o,m+=l,n=(0,u.zk)(r),r=(0,u._m)(n)}}return(0,r.B1)({width:g,height:v,x:p,y:m})}function g(e,t){let n=(0,u.CP)(e).scrollLeft;return t?t.left+n:m((0,u.ep)(e)).left+n}function v(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-g(e,n),y:n.top+t.scrollTop}}function y(e,t,n){var i;let o;if("viewport"===t||"layoutViewport"===t)o=function(e,t,n){void 0===n&&(n="viewport");let r="layoutViewport"===n,i=(0,u.zk)(e),o=(0,u.ep)(e),l=i.visualViewport,s=o.clientWidth,a=o.clientHeight,c=0,d=0;if(l){let e=!(0,u.Tc)()||"fixed"===t;r?e||(c=-l.offsetLeft,d=-l.offsetTop):(s=l.width,a=l.height,e&&(c=l.offsetLeft,d=l.offsetTop))}if(0>=g(o)){let e=o.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(o.clientWidth-t.clientWidth-r),l="stable both-edges"===getComputedStyle(o).scrollbarGutter?i/2:i;l<=25&&(s-=l)}return{width:s,height:a,x:c,y:d}}(e,n,t);else if("document"===t){let t,n,l,s,a,c;i=(0,u.ep)(e),t=(0,u.CP)(i),n=i.ownerDocument.body,l=(0,r.T9)(i.scrollWidth,i.clientWidth,n.scrollWidth,n.clientWidth),s=(0,r.T9)(i.scrollHeight,i.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+g(i),c=-t.scrollTop,"rtl"===(0,u.L9)(n).direction&&(a+=(0,r.T9)(i.clientWidth,n.clientWidth)-l),o={width:l,height:s,x:a,y:c}}else if((0,u.vq)(t)){let e,r,i,l,s,a;r=(e=m(t,!0,"fixed"===n)).top+t.clientTop,i=e.left+t.clientLeft,l=f(t),s=t.clientWidth*l.x,a=t.clientHeight*l.y,o={width:s,height:a,x:i*l.x,y:r*l.y}}else{let n=h(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return(0,r.B1)(o)}function b(e){return"static"===(0,u.L9)(e).position}function _(e,t){if(!(0,u.sb)(e)||"fixed"===(0,u.L9)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,u.ep)(e)===n&&(n=n.ownerDocument.body),n}function w(e,t){let n=(0,u.zk)(e);if((0,u.Tf)(e))return n;if(!(0,u.sb)(e)){let t=(0,u.$4)(e);for(;t&&!(0,u.eu)(t);){if((0,u.vq)(t)&&!b(t))return t;t=(0,u.$4)(t)}return n}let r=_(e,t);for(;r&&(0,u.Lv)(r)&&b(r);)r=_(r,t);return r&&(0,u.eu)(r)&&b(r)&&!(0,u.sQ)(r)?n:r||(0,u.gJ)(e)||n}let x=async function(e){let t=this.getOffsetParent||w,n=this.getDimensions,i=await n(e.floating);return{reference:function(e,t,n){let i=(0,u.sb)(t),o=(0,u.ep)(t),l="fixed"===n,s=m(e,!0,l,t),a={scrollLeft:0,scrollTop:0},c=(0,r.Jx)(0);if((i||!l)&&(("body"!==(0,u.mq)(t)||(0,u.ZU)(o))&&(a=(0,u.CP)(t)),i)){let e=m(t,!0,l,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!i&&o&&(c.x=g(o));let d=!o||i||l?(0,r.Jx)(0):v(o,a);return{x:s.left+a.scrollLeft-c.x-d.x,y:s.top+a.scrollTop-c.y-d.y,width:s.width,height:s.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},z={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:i,strategy:o}=e,l="fixed"===o,s=(0,u.ep)(i),a=!!t&&(0,u.Tf)(t.floating);if(i===s||a&&l)return n;let c={scrollLeft:0,scrollTop:0},d=(0,r.Jx)(1),p=(0,r.Jx)(0),h=(0,u.sb)(i);if((h||!l)&&(("body"!==(0,u.mq)(i)||(0,u.ZU)(s))&&(c=(0,u.CP)(i)),h)){let e=m(i);d=f(i),p.x=e.x+i.clientLeft,p.y=e.y+i.clientTop}let g=!s||h||l?(0,r.Jx)(0):v(s,c);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+p.x+g.x,y:n.y*d.y-c.scrollTop*d.y+p.y+g.y}},getDocumentElement:u.ep,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:i,strategy:o}=e,l=[..."clippingAncestors"===n?(0,u.Tf)(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=(0,u.v9)(e,[],!1).filter(e=>(0,u.vq)(e)&&"body"!==(0,u.mq)(e)),i=null,o="fixed"===(0,u.L9)(e).position,l=o?(0,u.$4)(e):e;for(;(0,u.vq)(l)&&!(0,u.eu)(l);){let e=(0,u.L9)(l),t=(0,u.sQ)(l),n=i?i.position:o?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?i=e:r=r.filter(e=>e!==l),l=(0,u.$4)(l)}return t.set(e,r),r}(t,this._c):[].concat(n),i],s=y(t,l[0],o),a=s.top,c=s.right,d=s.bottom,f=s.left;for(let e=1;e<l.length;e++){let n=y(t,l[e],o);a=(0,r.T9)(n.top,a),c=(0,r.jk)(n.right,c),d=(0,r.jk)(n.bottom,d),f=(0,r.T9)(n.left,f)}return{width:c-f,height:d-a,x:f,y:a}},getOffsetParent:w,getElementRects:x,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:n}=c(e);return{width:t,height:n}},getScale:f,isElement:u.vq,isRTL:function(e){return"rtl"===(0,u.L9)(e).direction}};function k(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function S(e,t,n,i){let o;void 0===i&&(i={});let{ancestorScroll:l=!0,ancestorResize:s=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:f=!1}=i,p=d(e),h=l||s?[...p?(0,u.v9)(p):[],...t?(0,u.v9)(t):[]]:[];h.forEach(e=>{l&&e.addEventListener("scroll",n),s&&e.addEventListener("resize",n)});let g=p&&c?function(e,t,n){let i,o=null,l=(0,u.ep)(e);function s(){var e;clearTimeout(i),null==(e=o)||e.disconnect(),o=null}function a(n,u){void 0===n&&(n=!1),void 0===u&&(u=1),s();let c=e.getBoundingClientRect(),{left:d,top:f,width:p,height:h}=c;if(n||t(),!p||!h)return;let m={rootMargin:-(0,r.RI)(f)+"px "+-(0,r.RI)(l.clientWidth-(d+p))+"px "+-(0,r.RI)(l.clientHeight-(f+h))+"px "+-(0,r.RI)(d)+"px",threshold:(0,r.T9)(0,(0,r.jk)(1,u))||1},g=!0;function v(t){let n=t[0].intersectionRatio;if(!k(c,e.getBoundingClientRect()))return a();if(n!==u){if(!g)return a();n?a(!1,n):i=setTimeout(()=>{a(!1,1e-7)},1e3)}g=!1}try{o=new IntersectionObserver(v,{...m,root:l.ownerDocument})}catch(e){o=new IntersectionObserver(v,m)}o.observe(e)}let c=(0,u.zk)(e),d=()=>a(n);return c.addEventListener("resize",d),a(!0),()=>{c.removeEventListener("resize",d),s()}}(p,n,s):null,v=-1,y=null;a&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&y&&t&&(y.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),p&&!f&&y.observe(p),t&&y.observe(t));let b=f?m(e):null;return f&&function t(){let r=m(e);b&&!k(b,r)&&n(),b=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;h.forEach(e=>{l&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==g||g(),null==(e=y)||e.disconnect(),y=null,f&&cancelAnimationFrame(o)}}let E=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:o,placement:l,middlewareData:s}=t,u=await a(t,e);return l===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+u.x,y:o+u.y,data:{...u,placement:l}}}}},R=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:i,placement:o,platform:l}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=(0,r._3)(e,t),d={x:n,y:i},f=await l.detectOverflow(t,c),p=(0,r.TV)(o),h=(0,r.PG)(p),m=d[h],g=d[p],v=(e,t)=>(0,r.qE)(t+f["y"===e?"top":"left"],t,t-f["y"===e?"bottom":"right"]);s&&(m=v(h,m)),a&&(g=v(p,g));let y=u.fn({...t,[h]:m,[p]:g});return{...y,data:{x:y.x-n,y:y.y-i,enabled:{[h]:s,[p]:a}}}}}},T=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,i,o,l,s;let{placement:a,middlewareData:u,rects:c,initialPlacement:d,platform:f,elements:p}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:b=!0,..._}=(0,r._3)(e,t);if(null!=(n=u.arrow)&&n.alignmentOffset)return{};let w=(0,r.C0)(a),x=(0,r.TV)(d),z=(0,r.C0)(d)===d,k=await (null==f.isRTL?void 0:f.isRTL(p.floating)),S=g||(z||!b?[(0,r.bV)(d)]:(0,r.WJ)(d)),E="none"!==y;!g&&E&&S.push(...(0,r.lP)(d,b,y,k));let R=[d,...S],T=await f.detectOverflow(t,_),$=[],O=(null==(i=u.flip)?void 0:i.overflows)||[];if(h&&$.push(T[w]),m){let e=(0,r.w7)(a,c,k);$.push(T[e[0]],T[e[1]])}if(O=[...O,{placement:a,overflows:$}],!$.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=R[e];if(t&&("alignment"!==m||x===(0,r.TV)(t)||O.every(e=>(0,r.TV)(e.placement)!==x||e.overflows[0]>0)))return{data:{index:e,overflows:O},reset:{placement:t}};let n=null==(l=O.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:l.placement;if(!n)switch(v){case"bestFit":{let e=null==(s=O.filter(e=>{if(E){let t=(0,r.TV)(e.placement);return t===x||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:s[0];e&&(n=e);break}case"initialPlacement":n=d}if(a!==n)return{reset:{placement:n}}}return{}}}},$=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let n,i,{placement:o,rects:l,platform:s,elements:a}=t,{apply:u=()=>{},...c}=(0,r._3)(e,t),d=await s.detectOverflow(t,c),f=(0,r.C0)(o),p=(0,r.Sg)(o),h="y"===(0,r.TV)(o),{width:m,height:g}=l.floating;"top"===f||"bottom"===f?(n=f,i=p===(await (null==s.isRTL?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(i=f,n="end"===p?"top":"bottom");let v=g-d.top-d.bottom,y=m-d.left-d.right,b=(0,r.jk)(g-d[n],v),_=(0,r.jk)(m-d[i],y),w=t.middlewareData.shift,x=!w,z=b,k=_;null!=w&&w.enabled.x&&(k=y),null!=w&&w.enabled.y&&(z=v),x&&!p&&(h?k=m-2*(0,r.T9)(d.left,d.right):z=g-2*(0,r.T9)(d.top,d.bottom)),await u({...t,availableWidth:k,availableHeight:z});let S=await s.getDimensions(a.floating);return m!==S.width||g!==S.height?{reset:{rects:!0}}:{}}}},O=function(e){return void 0===e&&(e={}),{options:e,fn(t){var n,i,o,l;let{x:a,y:u,placement:c,rects:d,middlewareData:f}=t,{offset:p=0,mainAxis:h=!0,crossAxis:m=!0}=(0,r._3)(e,t),g={x:a,y:u},v=(0,r.TV)(c),y=(0,r.PG)(v),b=g[y],_=g[v],w=(0,r._3)(p,t),x="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:null!=(n=w.mainAxis)?n:0,crossAxis:null!=(i=w.crossAxis)?i:0};if(h){let e="y"===y?"height":"width",t=d.reference[y]-d.floating[e]+x.mainAxis,n=d.reference[y]+d.reference[e]-x.mainAxis;b<t?b=t:b>n&&(b=n)}if(m){let e="y"===y?"width":"height",t=s.has((0,r.C0)(c)),n=d.reference[v]-d.floating[e]+(t&&(null==(o=f.offset)?void 0:o[v])||0)+(t?0:x.crossAxis),i=d.reference[v]+d.reference[e]+(t?0:(null==(l=f.offset)?void 0:l[v])||0)-(t?x.crossAxis:0);_<n?_=n:_>i&&(_=i)}return{[y]:b,[v]:_}}}},C=(e,t,n)=>{let r=new Map,i=null!=n?n:{},o={...z,...i.platform,_c:r};return l(e,t,{...i,platform:o})}},81137:(e,t,n)=>{n.d(t,{Q:()=>i,a:()=>o});let r={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},i={...r,position:"fixed",top:0,left:0},o={...r,position:"absolute"}},82909:(e,t,n)=>{n.d(t,{d:()=>o});var r=n(48356),i=n(73146);function o(e){return"starting"===e?i.K2:r.t0}},83350:(e,t,n)=>{n.d(t,{I:()=>i});var r=n(18452);let i=/jsdom|happydom/.test(r.ST)},85933:(e,t,n)=>{n.d(t,{GW:()=>f,LM:()=>p,jL:()=>d,qV:()=>c});var r,i=n(97591);(r={}).open="data-open",r.closed="data-closed",r[r.startingStyle=i.T.startingStyle]="startingStyle",r[r.endingStyle=i.T.endingStyle]="endingStyle",r.anchorHidden="data-anchor-hidden",r.side="data-side",r.align="data-align";let o={"data-popup-open":""},l={"data-popup-open":"","data-pressed":""},s={"data-open":""},a={"data-closed":""},u={"data-anchor-hidden":""},c={open:e=>e?o:null},d={open:e=>e?l:null},f={open:e=>e?s:a,anchorHidden:e=>e?u:null},p={...f,...i.G}},86517:(e,t,n)=>{n.d(t,{P:()=>u});var r=n(69266),i=n(88359),o=n(18065),l=n(36100),s=n(53949);let a=(0,l._)(19)?function(e,t,n,o,l){let a,u=(0,s.iE)();if(!u){let s;return s=r.useCallback(()=>t(e.getSnapshot(),n,o,l),[e,t,n,o,l]),(0,i.useSyncExternalStore)(e.subscribe,s,s)}let c=u.syncIndex;return u.syncIndex+=1,u.didInitialize?(a=u.syncHooks[c]).store===e&&a.selector===t&&Object.is(a.a1,n)&&Object.is(a.a2,o)&&Object.is(a.a3,l)||(a.store!==e&&(u.didChangeStore=!0),a.store=e,a.selector=t,a.a1=n,a.a2=o,a.a3=l,a.value=t(e.getSnapshot(),n,o,l)):(a={store:e,selector:t,a1:n,a2:o,a3:l,value:t(e.getSnapshot(),n,o,l)},u.syncHooks.push(a)),a.value}:function(e,t,n,r,i){return(0,o.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))};function u(e,t,n,r,i){return a(e,t,n,r,i)}(0,s.kz)({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,i)||(t=!0,r.value=i)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,i.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}})},86758:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(50735).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},86947:(e,t,n)=>{n.d(t,{BF:()=>s,FP:()=>a,J9:()=>u,Zb:()=>o,du:()=>i,vB:()=>l});var r=n(10813);function i(e,t){return t<0||t>=e.length}function o(e,t){return s(e.current,{disabledIndices:t})}function l(e,t){return s(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function s(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let o=t;do o+=n?-i:i;while(o>=0&&o<=e.length-1&&a(e,o,r));return o}function a(e,t,n){if("function"==typeof n?n(t):n?.includes(t)??!1)return!0;let r=e[t];return!!r&&(!!(!u(r)||r.matches(":disabled"))||!n&&(r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")))}function u(e,t=e?(0,r.L9)(e):null){var n;return!!e&&!!e.isConnected&&!!t&&"hidden"!==(n=t).visibility&&"collapse"!==n.visibility&&("function"==typeof e.checkVisibility?e.checkVisibility():"none"!==t.display&&"contents"!==t.display)}},86975:(e,t,n)=>{n.d(t,{B1:()=>R,C0:()=>d,Dz:()=>g,Jx:()=>s,LI:()=>o,PG:()=>p,RI:()=>l,Sg:()=>f,T9:()=>i,TV:()=>m,WJ:()=>y,_3:()=>c,bV:()=>S,jk:()=>r,lP:()=>k,nI:()=>E,qE:()=>u,sq:()=>h,w7:()=>v});let r=Math.min,i=Math.max,o=Math.round,l=Math.floor,s=e=>({x:e,y:e}),a={left:"right",right:"left",bottom:"top",top:"bottom"};function u(e,t,n){return i(e,r(t,n))}function c(e,t){return"function"==typeof e?e(t):e}function d(e){return e.split("-")[0]}function f(e){return e.split("-")[1]}function p(e){return"x"===e?"y":"x"}function h(e){return"y"===e?"height":"width"}function m(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function g(e){return p(m(e))}function v(e,t,n){void 0===n&&(n=!1);let r=f(e),i=g(e),o=h(i),l="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=S(l)),[l,S(l)]}function y(e){let t=S(e);return[b(e),t,b(t)]}function b(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let _=["left","right"],w=["right","left"],x=["top","bottom"],z=["bottom","top"];function k(e,t,n,r){let i=f(e),o=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?w:_;return t?_:w;case"left":case"right":return t?x:z;default:return[]}}(d(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(b)))),o}function S(e){let t=d(e);return a[t]+e.slice(t.length)}function E(e){var t,n,r,i;return"number"!=typeof e?{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(i=e.left)?i:0}:{top:e,right:e,bottom:e,left:e}}function R(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}},88944:(e,t,n)=>{n.d(t,{q:()=>r});function r(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}},90458:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(50735).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},94296:(e,t,n)=>{n.d(t,{q:()=>r});function r(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}},94532:(e,t,n)=>{n.d(t,{g:()=>r});function r(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}},95472:(e,t,n)=>{n.d(t,{u:()=>o});var r=n(66758),i=n(75645);function o(e){let t=(0,i.j)(l,e).current;return t.next=e,(0,r.g)(t.effect),t}function l(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}},95522:(e,t,n)=>{n.d(t,{s:()=>E});var r=n(69266),i=n(86975),o=n(10813),l=n(33914),s=n(66758),a=n(95472),u=n(66538),c=n(80576),d=n(44911),f="u">typeof document?r.useLayoutEffect:function(){};function p(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!p(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!p(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function h(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function m(e,t){let n=h(e);return Math.round(t*n)/n}function g(e){let t=r.useRef(e);return f(()=>{t.current=e}),t}var v=n(52333);function y(e){return function(e,t){let{nodeId:n,externalTree:i}=e,l=t.useState("referenceElement"),a=t.useState("floatingElement"),u=t.useState("domReferenceElement"),y=t.useState("open"),b=t.useState("floatingId"),[_,w]=r.useState(null),[x,z]=r.useState(void 0),[k,S]=r.useState(void 0),E=r.useRef(null),R=(0,v.cq)(i),T=r.useMemo(()=>({reference:l,floating:a,domReference:u}),[l,a,u]),$=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:o,elements:{reference:l,floating:s}={},transform:a=!0,whileElementsMounted:u,open:v}=e,[y,b]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[_,w]=r.useState(i);p(_,i)||w(i);let[x,z]=r.useState(null),[k,S]=r.useState(null),E=r.useCallback(e=>{e!==O.current&&(O.current=e,z(e))},[]),R=r.useCallback(e=>{e!==C.current&&(C.current=e,S(e))},[]),T=l||x,$=s||k,O=r.useRef(null),C=r.useRef(null),A=r.useRef(y),P=null!=u,I=g(u),M=g(o),j=g(v),Z=r.useCallback(()=>{if(!O.current||!C.current)return;let e={placement:t,strategy:n,middleware:_};M.current&&(e.platform=M.current),(0,c.rD)(O.current,C.current,e).then(e=>{let t={...e,isPositioned:!1!==j.current};N.current&&!p(A.current,t)&&(A.current=t,d.flushSync(()=>{b(t)}))})},[_,t,n,M,j]);f(()=>{!1===v&&A.current.isPositioned&&(A.current.isPositioned=!1,b(e=>({...e,isPositioned:!1})))},[v]);let N=r.useRef(!1);f(()=>(N.current=!0,()=>{N.current=!1}),[]),f(()=>{if(T&&(O.current=T),$&&(C.current=$),T&&$){if(I.current)return I.current(T,$,Z);Z()}},[T,$,Z,I,P]);let F=r.useMemo(()=>({reference:O,floating:C,setReference:E,setFloating:R}),[E,R]),L=r.useMemo(()=>({reference:T,floating:$}),[T,$]),q=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!L.floating)return e;let t=m(L.floating,y.x),r=m(L.floating,y.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...h(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,a,L.floating,y.x,y.y]);return r.useMemo(()=>({...y,update:Z,refs:F,elements:L,floatingStyles:q}),[y,Z,F,L,q])}({...e,elements:{...T,..._&&{reference:_}}}),O=(0,o.vq)(x)?x:null,C=void 0===k?t.state.floatingElement:k;t.useSyncedValue("referenceElement",x??null),t.useSyncedValue("domReferenceElement",void 0===x?u:O),t.useSyncedValue("floatingElement",C);let A=r.useCallback(e=>{let t=(0,o.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;w(t),$.refs.setReference(t)},[$.refs]),P=r.useCallback(e=>{((0,o.vq)(e)||null===e)&&(E.current=e,z(e)),((0,o.vq)($.refs.reference.current)||null===$.refs.reference.current||null!==e&&!(0,o.vq)(e))&&$.refs.setReference(e)},[$.refs,z]),I=r.useCallback(e=>{S(e),$.refs.setFloating(e)},[$.refs]),M=r.useMemo(()=>({...$.refs,setReference:P,setFloating:I,setPositionReference:A,domReference:E}),[$.refs,P,I,A]),j=r.useMemo(()=>({...$.elements,domReference:u}),[$.elements,u]),Z=r.useMemo(()=>({...$,dataRef:t.context.dataRef,open:y,onOpenChange:t.setOpen,events:t.context.events,floatingId:b,refs:M,elements:j,nodeId:n,rootStore:t}),[$,M,j,n,t,y,b]);return(0,s.g)(()=>{u&&(E.current=u)},[u]),(0,s.g)(()=>{t.context.dataRef.current.floatingContext=Z;let e=R?.nodesRef.current.find(e=>e.id===n);e&&(e.context=Z)}),r.useMemo(()=>({...$,context:Z,refs:M,elements:j,rootStore:t}),[$,M,j,Z,t])}(e,e.rootContext)}var b=n(73881);let _={name:"hide",async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,o=await e.platform.detectOverflow(e,{elementContext:"reference"});return{data:{referenceHidden:o.top-n>=0||o.right-t>=0||o.bottom-n>=0||o.left-t>=0||0===t&&0===n&&0===r&&0===i}}}},w={sideX:"left",sideY:"top"},x="--available-width",z="--available-height";function k(e,t,n){let r="inline-start"===e||"inline-end"===e;return({top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"})[t]}function S(e,t,n){let{rects:r,placement:o}=e;return{side:k(t,(0,i.C0)(o),n),align:(0,i.Sg)(o)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function E(e){return function(e,t){var n,d,f,p,h,m,g,v,y;let E,T,$,O,{anchor:C,positionMethod:A="absolute",side:P="bottom",sideOffset:I=0,align:M="center",alignOffset:j=0,collisionBoundary:Z,collisionPadding:N=5,sticky:F=!1,arrowPadding:L=5,disableAnchorTracking:q=!1,inline:D,keepMounted:W=!1,floatingRootContext:J,mounted:V,collisionAvoidance:K,shift:U,nodeId:B,adaptiveOrigin:H,lazyFlip:X=!1,externalTree:G}=e,[Y,Q]=r.useState(null);V||null===Y||Q(null);let ee=K.side||"flip",et=K.align||"flip",en=K.fallbackAxisSide||"end",er=U?.crossAxis??!1,ei=U?.rootBoundary,eo="function"==typeof C?C:void 0,el=(0,u.K)(eo),es=eo?el:C,ea=(0,a.u)(C),eu=(0,a.u)(V),ec="rtl"===(0,b.j)(),ed=Y||({top:"top",right:"right",bottom:"bottom",left:"left","inline-end":ec?"left":"right","inline-start":ec?"right":"left"})[P],ef="center"===M?ed:`${ed}-${M}`,ep=N;"number"==typeof ep?ep={top:ep,right:ep,bottom:ep,left:ep}:ep&&(ep={top:ep.top||0,right:ep.right||0,bottom:ep.bottom||0,left:ep.left||0});let eh=+("bottom"===P),em=+("top"===P),eg=+("right"===P),ev=+("left"===P),ey={boundary:"clipping-ancestors"===Z?"clippingAncestors":Z,padding:ep},eb=r.useRef(null),e_=(0,a.u)(I),ew=(0,a.u)(j),ex=[];D&&ex.push(D),ex.push((n=e=>{let t=S(e,P,ec),n="function"==typeof e_.current?e_.current(t):e_.current,r="function"==typeof ew.current?ew.current(t):ew.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},d=["function"!=typeof I?I:0,"function"!=typeof j?j:0,ec,P],{name:(E=(0,c.cY)(n)).name,fn:E.fn,options:[n,d]}));let ez="none"===et&&"shift"!==ee,ek=!ez&&(F||er||"shift"===ee),eS="none"===ee?null:(f={...ey,padding:{top:ep.top+1+eh,right:ep.right+1+ev,bottom:ep.bottom+1+em,left:ep.left+1+eg},mainAxis:!er&&"flip"===ee,crossAxis:"flip"===et&&"alignment",fallbackAxisSideDirection:en},{name:(T=(0,c.UU)(f)).name,fn:T.fn,options:[f,void 0]}),eE=ez?null:(h={...ey,rootBoundary:ei,mainAxis:"none"!==et,crossAxis:ek,limiter:F||er?void 0:(p=e=>{if(!eb.current)return{};let{width:t,height:n}=eb.current.getBoundingClientRect(),r=(0,i.TV)((0,i.C0)(e.placement)),o="y"===r?ep.left+ep.right:ep.top+ep.bottom;return{offset:("y"===r?t:n)/2+o/2}},{fn:(0,c.ER)(p).fn,options:[p,void 0]})},m=[ey,F,er,ei,ep,et],{name:($=(0,c.BN)(h)).name,fn:$.fn,options:[h,m]});"shift"===ee||"shift"===et||"center"===M?ex.push(eE,eS):ex.push(eS,eE),ex.push((g={...ey,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!eu.current)return;let i=e.style;i.setProperty(x,`${t}px`),i.setProperty(z,`${n}px`);let l=(0,o.zk)(e).devicePixelRatio||1,{x:s,y:a,width:u,height:c}=r.reference,d=(Math.round((s+u)*l)-Math.round(s*l))/l,f=(Math.round((a+c)*l)-Math.round(a*l))/l;i.setProperty("--anchor-width",`${d}px`),i.setProperty("--anchor-height",`${f}px`)}},{name:(O=(0,c.Ej)(g)).name,fn:O.fn,options:[g,void 0]}),(v=e=>({element:eb.current||(0,l.R)(e.elements.floating).createElement("div"),padding:L,offsetParent:"floating"}),y=[L],{...{name:"arrow",options:v,async fn(e){let{x:t,y:n,placement:r,rects:o,platform:l,elements:s,middlewareData:a}=e,{element:u,padding:c=0,offsetParent:d="real"}=(0,i._3)(v,e)||{};if(null==u)return{};let f=(0,i.nI)(c),p={x:t,y:n},h=(0,i.Dz)(r),m=(0,i.sq)(h),g=await l.getDimensions(u),y="y"===h,b=y?"clientHeight":"clientWidth",_=o.reference[m]+o.reference[h]-p[h]-o.floating[m],w=p[h]-o.reference[h],x="real"===d?await l.getOffsetParent?.(u):s.floating,z=s.floating[b]||o.floating[m];z&&await l.isElement?.(x)||(z=s.floating[b]||o.floating[m]);let k=z/2-g[m]/2-1,S=Math.min(f[y?"top":"left"],k),E=Math.min(f[y?"bottom":"right"],k),R=z-g[m]-E,T=z/2-g[m]/2+(_/2-w/2),$=(0,i.qE)(S,T,R),O=!a.arrow&&null!=(0,i.Sg)(r)&&T!==$&&o.reference[m]/2-(T<S?S:E)-g[m]/2<0,C=O?T<S?T-S:T-R:0;return{[h]:p[h]+C,data:{[h]:$,centerOffset:T-$-C,...O&&{alignmentOffset:C}},reset:O}}},options:[v,y]}),{name:"transformOrigin",fn(e){let{elements:t,middlewareData:n,placement:r,rects:o,y:l}=e,s=(0,i.C0)(r),a=(0,i.TV)(s),u=eb.current,c=n.arrow?.x||0,d=n.arrow?.y||0,f=u?.clientWidth||0,p=u?.clientHeight||0,h=c+f/2,m=d+p/2,g=Math.abs(n.shift?.y||0),v=o.reference.height/2,y="function"==typeof I?I(S(e,P,ec)):I,b=g>y,_={top:`${h}px calc(100% + ${y}px)`,bottom:`${h}px ${-y}px`,left:`calc(100% + ${y}px) ${m}px`,right:`${-y}px ${m}px`}[s],w=`${h}px ${o.reference.y+v-l}px`;return t.floating.style.setProperty("--transform-origin",ek&&"y"===a&&b?w:_),{}}},_,H),(0,s.g)(()=>{!V&&J&&J.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[V,J]);let eR=r.useMemo(()=>({elementResize:!q&&"u">typeof ResizeObserver,layoutShift:!q&&"u">typeof IntersectionObserver}),[q]),{refs:eT,elements:e$,x:eO,y:eC,middlewareData:eA,update:eP,placement:eI,context:eM,isPositioned:ej,floatingStyles:eZ}=t({rootContext:J,open:W?V:void 0,placement:ef,middleware:ex,strategy:A,whileElementsMounted:W?void 0:(...e)=>(0,c.ll)(...e,eR),nodeId:B,externalTree:G}),{sideX:eN,sideY:eF}=eA.adaptiveOrigin||w,eL=ej?A:"fixed",eq=r.useMemo(()=>{let e;return(e=ej?H?{position:eL,[eN]:eO,[eF]:eC}:{...eZ,position:eL}:{position:eL,top:0,left:0})[x]="100vw",e[z]="100vh",ej||(e.opacity=0),e},[H,eL,eN,eO,eF,eC,eZ,ej]),eD=r.useRef(null);(0,s.g)(()=>{if(!V)return;let e=ea.current,t="function"==typeof e?e():e,n=(R(t)?t.current:t)||null;n!==eD.current&&(eT.setPositionReference(n),eD.current=n)},[V,eT,es,ea]),r.useEffect(()=>{if(!V)return;let e=ea.current;"function"!=typeof e&&R(e)&&e.current!==eD.current&&(eT.setPositionReference(e.current),eD.current=e.current)},[V,eT,es,ea]),r.useEffect(()=>{if(W&&V&&e$.reference&&e$.floating)return(0,c.ll)(e$.reference,e$.floating,eP,eR)},[W,V,e$,eP,eR]);let eW=(0,i.C0)(eI),eJ=k(P,eW,ec),eV=(0,i.Sg)(eI)||"center",eK=!!eA.hide?.referenceHidden;(0,s.g)(()=>{X&&V&&ej&&eW!==ed&&Q(eW)},[X,V,ej,eW,ed]);let eU=r.useMemo(()=>({position:"absolute",top:eA.arrow?.y,left:eA.arrow?.x}),[eA.arrow]),eB=eA.arrow?.centerOffset!==0;return r.useMemo(()=>({positionerStyles:eq,arrowStyles:eU,arrowRef:eb,arrowUncentered:eB,side:eJ,align:eV,physicalSide:eW,anchorHidden:eK,refs:eT,context:eM,isPositioned:ej,update:eP}),[eq,eU,eb,eB,eJ,eV,eW,eK,eT,eM,ej,eP])}(e,y)}function R(e){return null!=e&&"current"in e}},96909:(e,t,n)=>{n.d(t,{G:()=>s});var r=n(69266),i=n(33914),o=n(24960),l=n(66758);function s(e,t,n,s){let[a,u]=r.useState(!1);(0,l.g)(()=>{if(!e||!t||null==n)return void u(!1);let r=(0,i.R)(n).documentElement.clientWidth,o=n.offsetWidth;u(r>0&&o>0&&o>=r-20)},[e,t,n]),(0,o.K)(e&&(!t||a),s)}},97591:(e,t,n)=>{var r;n.d(t,{G:()=>s,T:()=>i});let i=((r={}).startingStyle="data-starting-style",r.endingStyle="data-ending-style",r),o={"data-starting-style":""},l={"data-ending-style":""},s={transitionStatus:e=>"starting"===e?o:"ending"===e?l:null}},97626:(e,t,n)=>{n.d(t,{K:()=>s});var r=n(44596),i=n(33090),o=n(12418);let l={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId};class s extends r.H{constructor(e){const{syncOnly:t,nested:n,onOpenChange:r,triggerElements:o,...s}=e;super({...s,positionReference:s.referenceElement,domReferenceElement:s.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:(0,i.d)(),nested:n,triggerElements:o},l),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||null!=t&&(0,o.Ev)(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit("openchange",n)};setOpen=(e,t)=>{this.syncOnly||this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}}}}]);
|