@undefineds.co/xpod 0.4.14 → 0.4.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/cloud.json +0 -3
- package/config/local.json +0 -3
- package/config/xpod.base.json +0 -24
- package/dist/api/ai-config/AiConfigStore.d.ts +2 -2
- package/dist/api/ai-config/AiConfigStore.js +4 -1
- package/dist/api/ai-gateway/auth/CallerPodAccess.d.ts +2 -5
- package/dist/api/ai-gateway/auth/CallerPodAccess.js +3 -42
- package/dist/api/ai-gateway/auth/GatewayApiKeyAuthenticator.d.ts +2 -1
- package/dist/api/ai-gateway/auth/GatewayApiKeyAuthenticator.js +1 -1
- package/dist/api/ai-gateway/auth/PodGatewayAccessKeyRepository.d.ts +3 -8
- package/dist/api/ai-gateway/auth/PodGatewayAccessKeyRepository.js +9 -32
- package/dist/api/ai-gateway/connect/index.d.ts +3 -3
- package/dist/api/ai-gateway/connect/index.js +9 -38
- package/dist/api/ai-gateway/errors.js +2 -1
- package/dist/api/ai-gateway/models/PodModelSelectionRepository.d.ts +3 -3
- package/dist/api/ai-gateway/models/PodModelSelectionRepository.js +7 -11
- package/dist/api/ai-gateway/pod/HostedPodRoute.d.ts +27 -0
- package/dist/api/ai-gateway/pod/HostedPodRoute.js +47 -0
- package/dist/api/ai-gateway/pod/OwnerPodAccess.d.ts +79 -0
- package/dist/api/ai-gateway/pod/OwnerPodAccess.js +192 -0
- package/dist/api/ai-gateway/pod/PodInterfaceKeyStore.d.ts +52 -0
- package/dist/api/ai-gateway/pod/PodInterfaceKeyStore.js +61 -0
- package/dist/api/ai-gateway/quota/ProviderQuotaAdapter.d.ts +3 -3
- package/dist/api/ai-gateway/quota/ProviderQuotaAdapter.js +7 -32
- package/dist/api/auth/ClientCredentialsAuthenticator.js +5 -28
- package/dist/api/auth/TokenEndpointRoute.d.ts +18 -0
- package/dist/api/auth/TokenEndpointRoute.js +36 -0
- package/dist/api/chatkit/pod-store.d.ts +4 -4
- package/dist/api/chatkit/pod-store.js +24 -95
- package/dist/api/container/common.js +36 -23
- package/dist/api/container/local.js +62 -29
- package/dist/api/container/routes.js +39 -7
- package/dist/api/container/types.d.ts +2 -2
- package/dist/api/handlers/AiGatewayManagementHandler.d.ts +6 -0
- package/dist/api/handlers/AiGatewayManagementHandler.js +17 -4
- package/dist/api/handlers/NetworkSettingsHandler.d.ts +7 -0
- package/dist/api/handlers/NetworkSettingsHandler.js +7 -0
- package/dist/api/handlers/PodSettingsHandler.d.ts +3 -3
- package/dist/api/handlers/PodSettingsHandler.js +3 -3
- package/dist/api/handlers/ProvisionHandler.d.ts +29 -0
- package/dist/api/handlers/ProvisionHandler.js +46 -0
- package/dist/api/handlers/ReachabilityHandler.js +3 -1
- package/dist/api/runtime.d.ts +9 -0
- package/dist/api/runtime.js +16 -3
- package/dist/cli/commands/start.d.ts +9 -2
- package/dist/cli/commands/start.js +15 -17
- package/dist/components/components.jsonld +1 -1
- package/dist/components/context.jsonld +5 -42
- package/dist/edge/EdgeNodeAgent.d.ts +10 -0
- package/dist/edge/EdgeNodeAgent.js +55 -0
- package/dist/edge/EdgeNodeAgent.jsonld +8 -0
- package/dist/edge/reachability/ReachabilitySessionService.js +4 -1
- package/dist/edge/reachability/RouteSetBuilder.d.ts +18 -1
- package/dist/edge/reachability/RouteSetBuilder.js +47 -0
- package/dist/edge/reachability/RouteSetBuilder.jsonld +29 -0
- package/dist/edge/reachability/types.d.ts +8 -2
- package/dist/http/SubgraphSparqlHttpHandler.d.ts +1 -25
- package/dist/http/SubgraphSparqlHttpHandler.js +0 -100
- package/dist/http/SubgraphSparqlHttpHandler.jsonld +0 -8
- package/dist/identity/drizzle/PodInterfaceKeyRepository.d.ts +33 -0
- package/dist/identity/drizzle/PodInterfaceKeyRepository.js +78 -0
- package/dist/identity/drizzle/db.d.ts +7 -0
- package/dist/identity/drizzle/db.js +30 -0
- package/dist/identity/drizzle/schema.pg.d.ts +9 -0
- package/dist/identity/drizzle/schema.pg.js +16 -1
- package/dist/identity/drizzle/schema.sqlite.d.ts +106 -0
- package/dist/identity/drizzle/schema.sqlite.js +16 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.js +3 -5
- package/dist/runtime/GatewayAdminProxyAuth.d.ts +1 -16
- package/dist/runtime/GatewayAdminProxyAuth.js +2 -71
- package/dist/runtime/Proxy.d.ts +10 -1
- package/dist/runtime/Proxy.js +95 -28
- package/dist/runtime/bootstrap.d.ts +10 -0
- package/dist/runtime/bootstrap.js +24 -0
- package/dist/runtime/host/node/NodeRuntimeHost.js +5 -3
- package/dist/runtime/index.d.ts +1 -1
- package/dist/runtime/index.js +2 -3
- package/dist/runtime/js-runtime.js +10 -3
- package/dist/runtime/lifecycle.js +5 -4
- package/dist/runtime/port-finder.d.ts +9 -13
- package/dist/runtime/port-finder.js +18 -37
- package/dist/tunnel/AutoTunnelProvider.d.ts +56 -0
- package/dist/tunnel/AutoTunnelProvider.js +181 -0
- package/dist/tunnel/index.d.ts +1 -0
- package/dist/tunnel/index.js +3 -1
- package/node_modules/@undefineds.co/ai-connections/dist/error-wording.js +7 -2
- package/node_modules/@undefineds.co/solid-sdk/dist/access-route.cjs +230 -0
- package/node_modules/@undefineds.co/solid-sdk/dist/access-route.d.ts +76 -0
- package/node_modules/@undefineds.co/solid-sdk/dist/access-route.js +115 -0
- package/node_modules/@undefineds.co/solid-sdk/dist/index.cjs +89 -0
- package/node_modules/@undefineds.co/solid-sdk/dist/index.d.ts +1 -0
- package/node_modules/@undefineds.co/solid-sdk/dist/index.js +1 -0
- package/node_modules/@undefineds.co/solid-sdk/package.json +6 -1
- package/package.json +2 -2
- package/static/app/assets/inrupt-smoke.js +23 -23
- package/static/auth-callback/assets/{AiConfigContext-DCXpjzpj.js → AiConfigContext-Bx0HCAW5.js} +1 -1
- package/static/auth-callback/assets/{AiConfigPage-fe-xMIXa.js → AiConfigPage-ChQImMbm.js} +1 -1
- package/static/auth-callback/assets/{DocumentProcessingPanel-BGnkfMuU.js → DocumentProcessingPanel-D830H4SH.js} +1 -1
- package/static/auth-callback/assets/{IndexLifecyclePanel-42Jups0j.js → IndexLifecyclePanel-CnlkjMF8.js} +1 -1
- package/static/auth-callback/assets/{IndexSubjectPanel-CYyLOlQU.js → IndexSubjectPanel-CdEfg_CO.js} +1 -1
- package/static/auth-callback/assets/{ModelAssignmentsPanel-BOvUH4yr.js → ModelAssignmentsPanel-D-8A8dZx.js} +1 -1
- package/static/auth-callback/assets/{ModelsPage-DwyITxt7.js → ModelsPage-Cim7cubp.js} +3 -3
- package/static/auth-callback/assets/{NetworkPage-CG9RelJA.js → NetworkPage-CfK3x-pb.js} +2 -2
- package/static/auth-callback/assets/{PaneListHeader-yvd5ohs6.js → PaneListHeader-Bf_kEd4U.js} +1 -1
- package/static/auth-callback/assets/{SearchIndexingPanel-2_a6ezzj.js → SearchIndexingPanel-4kD4RBEQ.js} +1 -1
- package/static/auth-callback/assets/{StatusSubjectPanel-8qtVxnzC.js → StatusSubjectPanel-Bw9AiTSf.js} +1 -1
- package/static/auth-callback/assets/{StatusWorkspace-CBdRahCF.js → StatusWorkspace-C-301H-0.js} +1 -1
- package/static/auth-callback/assets/{SystemSettingsPage-BZJ6vWkg.js → SystemSettingsPage-BbWn-eG6.js} +1 -1
- package/static/auth-callback/assets/{SystemSettingsSubjectPanel-xm08UhXP.js → SystemSettingsSubjectPanel-DA4wvNSm.js} +1 -1
- package/static/auth-callback/assets/{XpodAiConnectionsPodStore-V6vgGfuw.js → XpodAiConnectionsPodStore-CohdyLoX.js} +1 -1
- package/static/auth-callback/assets/{activity-CeM7xly8.js → activity-CCsb9Oam.js} +1 -1
- package/static/auth-callback/assets/ai-connections-DexTPyfC.js +1 -0
- package/static/auth-callback/assets/{auth-callback-DTG8cSj7.js → auth-callback-Ds-c62W3.js} +5 -5
- package/static/auth-callback/assets/{badge-qJo2Zr4d.js → badge-CQm5OyzR.js} +1 -1
- package/static/auth-callback/assets/{collection-runtime-Bztsz31a.js → collection-runtime-DlAuU5TW.js} +1 -1
- package/static/auth-callback/assets/{dialog-D-h6x5x0.js → dialog-CnGzg5Ff.js} +1 -1
- package/static/auth-callback/assets/{download-C2ir4lmR.js → download-DwMONJvm.js} +1 -1
- package/static/auth-callback/assets/{external-link-THLDL4On.js → external-link-Bu5AGqCO.js} +1 -1
- package/static/auth-callback/assets/{index-BlVZb9A7.js → index-B0T-1YO8.js} +1 -1
- package/static/auth-callback/assets/{index-BRpv4yO3.js → index-C8QZf_4W.js} +1 -1
- package/static/auth-callback/assets/{index-D983R1FV.js → index-DwIlrIDG.js} +1 -1
- package/static/auth-callback/assets/{index-browser-3FvR0aaf.js → index-browser-lRsMcP_7.js} +1 -1
- package/static/auth-callback/assets/{key-round-C9U5j1Ly.js → key-round-BDMtU57P.js} +1 -1
- package/static/auth-callback/assets/{rotate-ccw-DP45cD4o.js → rotate-ccw-CoKIGCsQ.js} +1 -1
- package/static/auth-callback/assets/{skeleton-Dn4EiSCS.js → skeleton-CPoSWHDr.js} +1 -1
- package/static/auth-callback/assets/{waypoints-uqFQ3uEG.js → waypoints-BeYHxqHv.js} +1 -1
- package/static/auth-callback/assets/{workspace-layout-DLYK0Wwu.js → workspace-layout-xA5YxiK3.js} +1 -1
- package/static/auth-callback/auth-callback.html +1 -1
- package/static/dashboard/assets/{AiConfigContext-DJcMECNw.js → AiConfigContext-rWx4TyiH.js} +1 -1
- package/static/dashboard/assets/{AiConfigPage-BvE7dOTy.js → AiConfigPage-StVJpDFT.js} +1 -1
- package/static/dashboard/assets/{DocumentProcessingPanel-D9780krf.js → DocumentProcessingPanel-DJ5yul2O.js} +1 -1
- package/static/dashboard/assets/{IndexLifecyclePanel-SjsUcnbM.js → IndexLifecyclePanel-CpjtgezK.js} +1 -1
- package/static/dashboard/assets/{IndexSubjectPanel-C-ym2Tqi.js → IndexSubjectPanel-BVKcot1_.js} +1 -1
- package/static/dashboard/assets/{ModelAssignmentsPanel-BRjZ-arB.js → ModelAssignmentsPanel-BxVgWZPc.js} +1 -1
- package/static/dashboard/assets/{ModelsPage-BtTU6du3.js → ModelsPage-CECBwmeO.js} +3 -3
- package/static/dashboard/assets/{NetworkPage-CV9qpkDg.js → NetworkPage-zQgFscEW.js} +2 -2
- package/static/dashboard/assets/{PaneListHeader-KyPTTBsv.js → PaneListHeader-DIPe8pS6.js} +1 -1
- package/static/dashboard/assets/{SearchIndexingPanel-DolHGawg.js → SearchIndexingPanel-lalFJ3c8.js} +1 -1
- package/static/dashboard/assets/{StatusSubjectPanel-_YZvKiYi.js → StatusSubjectPanel-CpY_KU-G.js} +1 -1
- package/static/dashboard/assets/{StatusWorkspace-Dlbh_G40.js → StatusWorkspace-BwWCii3A.js} +1 -1
- package/static/dashboard/assets/{SystemSettingsPage-Be7QSIoz.js → SystemSettingsPage-BKZxX-_n.js} +1 -1
- package/static/dashboard/assets/{SystemSettingsSubjectPanel-DBp0gja7.js → SystemSettingsSubjectPanel-BZrqb2C5.js} +1 -1
- package/static/dashboard/assets/{XpodAiConnectionsPodStore-ClpSjzpP.js → XpodAiConnectionsPodStore-Bbpx9dTN.js} +1 -1
- package/static/dashboard/assets/{activity-lsNbTXJu.js → activity-BJ15TLVP.js} +1 -1
- package/static/dashboard/assets/ai-connections-GG6qkTJt.js +1 -0
- package/static/dashboard/assets/{badge-CVatKjaG.js → badge-BBX5FlaB.js} +1 -1
- package/static/dashboard/assets/{collection-runtime-Ec4UnY28.js → collection-runtime-UBbHBzdf.js} +1 -1
- package/static/dashboard/assets/{dashboard-BEzsRsvF.js → dashboard-7Y6BHyV9.js} +62 -62
- package/static/dashboard/assets/{dialog-BuyelQ4V.js → dialog-QrOJ-hB0.js} +1 -1
- package/static/dashboard/assets/{download-B4Nf678F.js → download-DK9x-VOP.js} +1 -1
- package/static/dashboard/assets/{external-link-PYv9CvKL.js → external-link-Cnkn87mJ.js} +1 -1
- package/static/dashboard/assets/{index-C9XPE-mI.js → index-B1z84it5.js} +1 -1
- package/static/dashboard/assets/{index-awr7ulur.js → index-DzjauX3N.js} +1 -1
- package/static/dashboard/assets/{index-Cx69bTNh.js → index-cIa8_efI.js} +1 -1
- package/static/dashboard/assets/{key-round-VsY80U1Z.js → key-round-BoS6UqKz.js} +1 -1
- package/static/dashboard/assets/{rotate-ccw-Cz1K4vE9.js → rotate-ccw-BeWV76i0.js} +1 -1
- package/static/dashboard/assets/{skeleton-BhNv_8tO.js → skeleton-CypcJL07.js} +1 -1
- package/static/dashboard/assets/{waypoints-DYS9XFYV.js → waypoints-zHOOqfhi.js} +1 -1
- package/static/dashboard/assets/{workspace-layout-OZJAFx5V.js → workspace-layout-DZ9JuxnM.js} +1 -1
- package/static/dashboard/dashboard.html +1 -1
- package/static/settings/assets/{AiConfigContext-B8JS3MXF.js → AiConfigContext-D3b1l_Kw.js} +1 -1
- package/static/settings/assets/{AiConfigPage-C3Zl8LUl.js → AiConfigPage-DYKw-atP.js} +1 -1
- package/static/settings/assets/{DocumentProcessingPanel-DpDZAQvf.js → DocumentProcessingPanel-DguRfsIV.js} +1 -1
- package/static/settings/assets/{IndexLifecyclePanel-Ec1XF88t.js → IndexLifecyclePanel-B85qJJA4.js} +1 -1
- package/static/settings/assets/{IndexSubjectPanel-BulT9BmO.js → IndexSubjectPanel-CsN7IxaV.js} +1 -1
- package/static/settings/assets/{ModelAssignmentsPanel-BcGSmYjb.js → ModelAssignmentsPanel-DEp9byI6.js} +1 -1
- package/static/settings/assets/{ModelsPage-CvTCKy1T.js → ModelsPage-CzTnPs_G.js} +3 -3
- package/static/settings/assets/{NetworkPage-DQF5u9Bn.js → NetworkPage-BDVnmUU0.js} +2 -2
- package/static/settings/assets/{PaneListHeader-D40hqcVl.js → PaneListHeader-Cpe39N76.js} +1 -1
- package/static/settings/assets/{SearchIndexingPanel-iCUPOx_0.js → SearchIndexingPanel-DA9w8lLL.js} +1 -1
- package/static/settings/assets/{StatusSubjectPanel-E--ZHSql.js → StatusSubjectPanel-BU0Aq0CS.js} +1 -1
- package/static/settings/assets/{StatusWorkspace-YjDAx1II.js → StatusWorkspace-D1AC1i5N.js} +1 -1
- package/static/settings/assets/{SystemSettingsPage-CDdV3mC9.js → SystemSettingsPage-ChKvOioO.js} +1 -1
- package/static/settings/assets/{SystemSettingsSubjectPanel-Br8WazDq.js → SystemSettingsSubjectPanel-DyTpOnD2.js} +1 -1
- package/static/settings/assets/{XpodAiConnectionsPodStore-CLr38P_Z.js → XpodAiConnectionsPodStore-VU5Bsz1a.js} +1 -1
- package/static/settings/assets/{activity-C5DAHHTE.js → activity-DGpLfsQB.js} +1 -1
- package/static/settings/assets/ai-connections-DexTPyfC.js +1 -0
- package/static/settings/assets/{badge-D8eIyxKt.js → badge-_hCrrWRP.js} +1 -1
- package/static/settings/assets/{collection-runtime-DLc9zil8.js → collection-runtime-E40TZ8Cl.js} +1 -1
- package/static/settings/assets/{dialog-CyuR7Va4.js → dialog-DTr2JkHn.js} +1 -1
- package/static/settings/assets/{download-c0oxZrCz.js → download-B_D21DDX.js} +1 -1
- package/static/settings/assets/{external-link-D3Z34fP_.js → external-link-BATYaM13.js} +1 -1
- package/static/settings/assets/{index-CSr3-2Cj.js → index-BAlAVi-J.js} +1 -1
- package/static/settings/assets/{index-ComidxAm.js → index-Ckh4h9jj.js} +1 -1
- package/static/settings/assets/{index-CKGbRFlc.js → index-DOiwLF4B.js} +1 -1
- package/static/settings/assets/{index-browser-CAscEbae.js → index-browser-DFFWN3Kr.js} +1 -1
- package/static/settings/assets/{key-round-DyjLmXuB.js → key-round-ZTVU_1O1.js} +1 -1
- package/static/settings/assets/{rotate-ccw-679HF_ec.js → rotate-ccw-DDdw8PTU.js} +1 -1
- package/static/settings/assets/{settings-DKknqu4C.js → settings-CyLnISOv.js} +62 -62
- package/static/settings/assets/{skeleton-CkopNkPB.js → skeleton-DEzA3hc2.js} +1 -1
- package/static/settings/assets/{waypoints-CrqfAftE.js → waypoints-BSdfNvEb.js} +1 -1
- package/static/settings/assets/{workspace-layout-UN6c4qTG.js → workspace-layout-BOQnl_3d.js} +1 -1
- package/static/settings/settings.html +1 -1
- package/dist/api/ai-gateway/pod/HostedPodDataAccess.d.ts +0 -31
- package/dist/api/ai-gateway/pod/HostedPodDataAccess.js +0 -330
- package/dist/http/InternalPodDataHttpHandler.d.ts +0 -57
- package/dist/http/InternalPodDataHttpHandler.js +0 -551
- package/dist/http/InternalPodDataHttpHandler.jsonld +0 -243
- package/static/auth-callback/assets/ai-connections-C6yaE6WQ.js +0 -1
- package/static/dashboard/assets/ai-connections-CXp5gd1J.js +0 -1
- package/static/settings/assets/ai-connections-C6yaE6WQ.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as a,l as U,_ as J,m as Fe,W as j,j as pe,P as Ee,$ as ct,V as lt}from"./settings-DKknqu4C.js";var ft=Object.defineProperty,B=(e,t)=>ft(e,"name",{value:t,configurable:!0}),Me=!!(typeof window<"u"&&window.document&&window.document.createElement);function Z(e,t,{checkForDefaultPrevented:n=!0}={}){return B(function(o){if(e?.(o),n===!1||!o||!o.defaultPrevented)return t?.(o)},"handleEvent")}B(Z,"composeEventHandlers");function dt(e){if(!Me)throw new Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window}B(dt,"getOwnerWindow");function ue(e){if(!Me)throw new Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}B(ue,"getOwnerDocument");function ke(e,t=!1){const{activeElement:n}=ue(e);if(!n?.nodeName)return null;if(_e(n)&&n.contentDocument)return ke(n.contentDocument.body,t);if(t){const r=n.getAttribute("aria-activedescendant");if(r){const o=ue(n).getElementById(r);if(o)return o}}return n}B(ke,"getActiveElement");function _e(e){return e.tagName==="IFRAME"}B(_e,"isFrame");var vt=Object.defineProperty,mt=(e,t)=>vt(e,"name",{value:t,configurable:!0}),ht=J[" useId ".trim().toString()]||(()=>{}),pt=0;function Et(e){const[t,n]=a.useState(ht());return U(()=>{e||n(r=>r??String(pt++))},[e]),e||(t?`radix-${t}`:"")}mt(Et,"useId");var bt=Object.defineProperty,yt=(e,t)=>bt(e,"name",{value:t,configurable:!0}),Se=J[" useEffectEvent ".trim().toString()],Ce=J[" useInsertionEffect ".trim().toString()];function xe(e){if(typeof Se=="function")return Se(e);const t=a.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof Ce=="function"?Ce(()=>{t.current=e}):U(()=>{t.current=e}),a.useMemo(()=>((...n)=>t.current?.(...n)),[])}yt(xe,"useEffectEvent");var gt=Object.defineProperty,V=(e,t)=>gt(e,"name",{value:t,configurable:!0}),wt=J[" useInsertionEffect ".trim().toString()]||U;function St({prop:e,defaultProp:t,onChange:n=V(()=>{},"onChange"),caller:r}){const[o,i,l]=We({defaultProp:t,onChange:n}),u=e!==void 0,d=u?e:o,p=a.useCallback(m=>{if(u){const s=Ue(m)?m(e):m;s!==e&&l.current?.(s)}else i(m)},[u,e,i,l]);return[d,p]}V(St,"useControllableState");function We({defaultProp:e,onChange:t}){const[n,r]=a.useState(e),o=a.useRef(n),i=a.useRef(t);return wt(()=>{i.current=t},[t]),a.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}V(We,"useUncontrolledState");function Ue(e){return typeof e=="function"}V(Ue,"isFunction");var Pe=Symbol("RADIX:SYNC_STATE");function Ct(e,t,n,r){const{prop:o,defaultProp:i,onChange:l,caller:u}=t,d=o!==void 0,p=xe(l),m=[{...n,state:i}];r&&m.push(r);const[s,f]=a.useReducer((c,y)=>{if(y.type===Pe)return{...c,state:y.state};const E=e(c,y);return d&&!Object.is(E.state,c.state)&&p(E.state),E},...m),g=s.state,h=a.useRef(g);a.useEffect(()=>{h.current!==g&&(h.current=g,d||p(g))},[g,h,d]);const v=a.useMemo(()=>o!==void 0?{...s,state:o}:s,[s,o]);return a.useEffect(()=>{d&&!Object.is(o,s.state)&&f({type:Pe,state:o})},[o,s.state,d]),[v,f]}V(Ct,"useControllableStateReducer");var Pt=Object.defineProperty,O=(e,t)=>Pt(e,"name",{value:t,configurable:!0}),ce="dismissableLayer.update",Ot="dismissableLayer.pointerDownOutside",Rt="dismissableLayer.focusOutside",Oe,Be=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Cn=a.forwardRef(O(function(t,n){const{disableOutsidePointerEvents:r=!1,deferPointerDownOutside:o=!1,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:d,onDismiss:p,...m}=t,s=a.useContext(Be),[f,g]=a.useState(null),h=f?.ownerDocument??globalThis?.document,[,v]=a.useState({}),c=Fe(n,g),y=Array.from(s.layers),[E]=[...s.layersWithOutsidePointerEventsDisabled].slice(-1),b=E?y.indexOf(E):-1,S=f?y.indexOf(f):-1,w=s.layersWithOutsidePointerEventsDisabled.size>0,P=S>=b,D=a.useRef(!1),$=je(C=>{l?.(C),d?.(C),C.defaultPrevented||p?.()},{ownerDocument:h,deferPointerDownOutside:o,isDeferredPointerDownOutsideRef:D,dismissableSurfaces:s.dismissableSurfaces,shouldHandlePointerDownOutside:a.useCallback(C=>{if(!(C instanceof Node))return!1;const te=[...s.branches].some(we=>we.contains(C));return P&&!te},[s.branches,P])}),L=Ve(C=>{if(o&&D.current)return;const te=C.target;[...s.branches].some(ut=>ut.contains(te))||(u?.(C),d?.(C),C.defaultPrevented||p?.())},h),H=f?S===y.length-1:!1,I=j(C=>{C.key==="Escape"&&(i?.(C),!C.defaultPrevented&&p&&(C.preventDefault(),p()))});return a.useEffect(()=>{if(H)return h.addEventListener("keydown",I,{capture:!0}),()=>h.removeEventListener("keydown",I,{capture:!0})},[h,H,I]),a.useEffect(()=>{if(f)return r&&(s.layersWithOutsidePointerEventsDisabled.size===0&&(Oe=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),s.layersWithOutsidePointerEventsDisabled.add(f)),s.layers.add(f),le(),()=>{r&&(s.layersWithOutsidePointerEventsDisabled.delete(f),s.layersWithOutsidePointerEventsDisabled.size===0&&(h.body.style.pointerEvents=Oe))}},[f,h,r,s]),a.useEffect(()=>()=>{f&&(s.layers.delete(f),s.layersWithOutsidePointerEventsDisabled.delete(f),le())},[f,s]),a.useEffect(()=>{const C=O(()=>v({}),"handleUpdate");return document.addEventListener(ce,C),()=>document.removeEventListener(ce,C)},[]),pe.jsx(Ee.div,{...m,ref:c,style:{pointerEvents:w?P?"auto":"none":void 0,...t.style},onFocusCapture:Z(t.onFocusCapture,L.onFocusCapture),onBlurCapture:Z(t.onBlurCapture,L.onBlurCapture),onPointerDownCapture:Z(t.onPointerDownCapture,$.onPointerDownCapture)})},"DismissableLayer"));function Dt(){const e=a.useContext(Be),[t,n]=a.useState(null);return a.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}O(Dt,"useDismissableLayerSurface");var Nt=O(()=>!0,"IS_TRUE");function je(e,t){const{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:i,shouldHandlePointerDownOutside:l=Nt}=t,u=j(e),d=a.useRef(!1),p=a.useRef(!1),m=a.useRef(new Map),s=a.useRef(()=>{});return a.useEffect(()=>{function f(){p.current=!1,o.current=!1,m.current.clear()}O(f,"resetOutsideInteraction");function g(){return Array.from(m.current.values()).some(Boolean)}O(g,"isOutsideInteractionIntercepted");function h(b){if(!p.current)return;const S=b.target;S instanceof Node&&[...i].some(P=>P.contains(S))||m.current.set(b.type,!0),b.type==="click"&&window.setTimeout(()=>{p.current&&s.current()},0)}O(h,"handleInteractionCapture");function v(b){p.current&&m.current.set(b.type,!1)}O(v,"handleInteractionBubble");const c=O(b=>{if(b.target&&!d.current){let S=function(){n.removeEventListener("click",s.current);const P=g();f(),P||be(Ot,u,w,{discrete:!0})};if(O(S,"handleAndDispatchPointerDownOutsideEvent"),!l(b.target)){n.removeEventListener("click",s.current),f(),d.current=!1;return}const w={originalEvent:b};p.current=!0,o.current=r&&b.button===0,m.current.clear(),!r||b.button!==0?S():(n.removeEventListener("click",s.current),s.current=S,n.addEventListener("click",s.current,{once:!0}))}else n.removeEventListener("click",s.current),f();d.current=!1},"handlePointerDown"),y=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const b of y)n.addEventListener(b,h,!0),n.addEventListener(b,v);const E=window.setTimeout(()=>{n.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(E),n.removeEventListener("pointerdown",c),n.removeEventListener("click",s.current);for(const b of y)n.removeEventListener(b,h,!0),n.removeEventListener(b,v)}},[n,u,r,o,i,l]),{onPointerDownCapture:O(()=>d.current=!0,"onPointerDownCapture")}}O(je,"usePointerDownOutside");function Ve(e,t=globalThis?.document){const n=j(e),r=a.useRef(!1);return a.useEffect(()=>{const o=O(i=>{i.target&&!r.current&&be(Rt,n,{originalEvent:i},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:O(()=>r.current=!0,"onFocusCapture"),onBlurCapture:O(()=>r.current=!1,"onBlurCapture")}}O(Ve,"useFocusOutside");function le(){const e=new CustomEvent(ce);document.dispatchEvent(e)}O(le,"dispatchUpdate");function be(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ct(o,i):o.dispatchEvent(i)}O(be,"handleAndDispatchCustomEvent");var Tt=Object.defineProperty,R=(e,t)=>Tt(e,"name",{value:t,configurable:!0}),ne="focusScope.autoFocusOnMount",re="focusScope.autoFocusOnUnmount",Re={bubbles:!1,cancelable:!0},Pn=a.forwardRef(R(function(t,n){const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:l,...u}=t,[d,p]=a.useState(null),m=j(i),s=j(l),f=a.useRef(null),g=Fe(n,p),h=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(o){let c=function(S){if(h.paused||!d)return;const w=S.target;d.contains(w)?f.current=w:T(f.current,{select:!0})},y=function(S){if(h.paused||!d)return;const w=S.relatedTarget;w!==null&&(d.contains(w)||T(f.current,{select:!0}))},E=function(S){if(document.activeElement===document.body)for(const P of S)P.removedNodes.length>0&&T(d)};R(c,"handleFocusIn"),R(y,"handleFocusOut"),R(E,"handleMutations"),document.addEventListener("focusin",c),document.addEventListener("focusout",y);const b=new MutationObserver(E);return d&&b.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",c),document.removeEventListener("focusout",y),b.disconnect()}}},[o,d,h.paused]),a.useEffect(()=>{if(d){De.add(h);const c=document.activeElement;if(!d.contains(c)){const E=new CustomEvent(ne,Re);d.addEventListener(ne,m),d.dispatchEvent(E),E.defaultPrevented||($e(Ge(ye(d)),{select:!0}),document.activeElement===c&&T(d))}return()=>{d.removeEventListener(ne,m),setTimeout(()=>{const E=new CustomEvent(re,Re);d.addEventListener(re,s),d.dispatchEvent(E),E.defaultPrevented||T(c??document.body,{select:!0}),d.removeEventListener(re,s),De.remove(h)},0)}}},[d,m,s,h]);const v=a.useCallback(c=>{if(!r&&!o||h.paused)return;const y=c.key==="Tab"&&!c.altKey&&!c.ctrlKey&&!c.metaKey,E=document.activeElement;if(y&&E){const b=c.currentTarget,[S,w]=He(b);S&&w?!c.shiftKey&&E===w?(c.preventDefault(),r&&T(S,{select:!0})):c.shiftKey&&E===S&&(c.preventDefault(),r&&T(w,{select:!0})):E===b&&c.preventDefault()}},[r,o,h.paused]);return pe.jsx(Ee.div,{tabIndex:-1,...u,ref:g,onKeyDown:v})},"FocusScope"));function $e(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(T(r,{select:t}),document.activeElement!==n)return}R($e,"focusFirst");function He(e){const t=ye(e),n=fe(t,e),r=fe(t.reverse(),e);return[n,r]}R(He,"getTabbableEdges");function ye(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:R(r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}R(ye,"getTabbableCandidates");function fe(e,t){const n=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):Ke(r,{upTo:t})))return r}R(fe,"findVisible");function Ke(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}R(Ke,"isHidden");function Xe(e){return e instanceof HTMLInputElement&&"select"in e}R(Xe,"isSelectableInput");function T(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Xe(e)&&t&&e.select()}}R(T,"focus");var De=Ye();function Ye(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=de(e,t),e.unshift(t)},remove(t){e=de(e,t),e[0]?.resume()}}}R(Ye,"createFocusScopesStack");function de(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}R(de,"arrayRemove");function Ge(e){return e.filter(t=>t.tagName!=="A")}R(Ge,"removeLinks");var At=Object.defineProperty,It=(e,t)=>At(e,"name",{value:t,configurable:!0}),On=a.forwardRef(It(function(t,n){const{container:r,...o}=t,[i,l]=a.useState(!1);U(()=>l(!0),[]);const u=r||i&&globalThis?.document?.body;return u?lt.createPortal(pe.jsx(Ee.div,{...o,ref:n}),u):null},"Portal")),Lt=Object.defineProperty,A=(e,t)=>Lt(e,"name",{value:t,configurable:!0});function ze(e,t){return a.useReducer((n,r)=>t[n][r]??n,e)}A(ze,"useStateMachine");var Rn=A(e=>{const{present:t,children:n}=e,r=Ze(t),o=typeof n=="function"?n({present:r.isPresent}):a.Children.only(n),i=Qe(r.ref,qe(o));return typeof n=="function"||r.isPresent?a.cloneElement(o,{ref:i}):null},"Presence");function Ze(e){const[t,n]=a.useState(),r=a.useRef(null),o=a.useRef(e),i=a.useRef("none"),l=a.useRef(void 0),u=e?"mounted":"unmounted",[d,p]=ze(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{d==="mounted"?(i.current=l.current??x(r.current),l.current=void 0):i.current="none"},[d]),U(()=>{const m=r.current,s=o.current;if(s!==e){const g=i.current,h=x(m);e?(l.current=h,p("MOUNT")):h==="none"||m?.display==="none"?p("UNMOUNT"):p(s&&g!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,p]),U(()=>{if(t){let m;const s=t.ownerDocument.defaultView??window,f=A(h=>{const c=x(r.current).includes(CSS.escape(h.animationName));if(h.target===t&&c&&(p("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",m=s.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},"handleAnimationEnd"),g=A(h=>{h.target===t&&(i.current=x(r.current))},"handleAnimationStart");return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{s.clearTimeout(m),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:a.useCallback(m=>{if(m){const s=getComputedStyle(m);r.current=s,l.current=x(s)}else r.current=null;n(m)},[])}}A(Ze,"usePresence");function ve(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}A(ve,"setRef");function Qe(...e){const t=a.useRef(e);return t.current=e,a.useCallback(n=>{const r=t.current;let o=!1;const i=r.map(l=>{const u=ve(l,n);return!o&&typeof u=="function"&&(o=!0),u});if(o)return()=>{for(let l=0;l<i.length;l++){const u=i[l];typeof u=="function"?u():ve(r[l],null)}}},[])}A(Qe,"useStableComposedRefs");function x(e){return e?.animationName||"none"}A(x,"getAnimationName");function qe(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}A(qe,"getElementRef");var Ft=Object.defineProperty,ge=(e,t)=>Ft(e,"name",{value:t,configurable:!0}),K=0,F=null;function Mt(e){return Je(),e.children}ge(Mt,"FocusGuards");function Je(){a.useEffect(()=>{F||(F={start:me(),end:me()});const{start:e,end:t}=F;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),K++,()=>{K===1&&(F?.start.remove(),F?.end.remove(),F=null),K=Math.max(0,K-1)}},[])}ge(Je,"useFocusGuards");function me(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}ge(me,"createFocusGuard");var N=function(){return N=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},N.apply(this,arguments)};function et(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function kt(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var Q="right-scroll-bar-position",q="width-before-scroll-bar",_t="with-scroll-bars-hidden",xt="--removed-body-scroll-bar-size";function oe(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Wt(e,t){var n=a.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Ut=typeof window<"u"?a.useLayoutEffect:a.useEffect,Ne=new WeakMap;function Bt(e,t){var n=Wt(null,function(r){return e.forEach(function(o){return oe(o,r)})});return Ut(function(){var r=Ne.get(n);if(r){var o=new Set(r),i=new Set(e),l=n.current;o.forEach(function(u){i.has(u)||oe(u,null)}),i.forEach(function(u){o.has(u)||oe(u,l)})}Ne.set(n,e)},[e]),n}function jt(e){return e}function Vt(e,t){t===void 0&&(t=jt);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var l=t(i,r);return n.push(l),function(){n=n.filter(function(u){return u!==l})}},assignSyncMedium:function(i){for(r=!0;n.length;){var l=n;n=[],l.forEach(i)}n={push:function(u){return i(u)},filter:function(){return n}}},assignMedium:function(i){r=!0;var l=[];if(n.length){var u=n;n=[],u.forEach(i),l=n}var d=function(){var m=l;l=[],m.forEach(i)},p=function(){return Promise.resolve().then(d)};p(),n={push:function(m){l.push(m),p()},filter:function(m){return l=l.filter(m),n}}}};return o}function $t(e){e===void 0&&(e={});var t=Vt(null);return t.options=N({async:!0,ssr:!1},e),t}var tt=function(e){var t=e.sideCar,n=et(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return a.createElement(r,N({},n))};tt.isSideCarExport=!0;function Ht(e,t){return e.useMedium(t),tt}var nt=$t(),ae=function(){},ee=a.forwardRef(function(e,t){var n=a.useRef(null),r=a.useState({onScrollCapture:ae,onWheelCapture:ae,onTouchMoveCapture:ae}),o=r[0],i=r[1],l=e.forwardProps,u=e.children,d=e.className,p=e.removeScrollBar,m=e.enabled,s=e.shards,f=e.sideCar,g=e.noRelative,h=e.noIsolation,v=e.inert,c=e.allowPinchZoom,y=e.as,E=y===void 0?"div":y,b=e.gapMode,S=et(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=f,P=Bt([n,t]),D=N(N({},S),o);return a.createElement(a.Fragment,null,m&&a.createElement(w,{sideCar:nt,removeScrollBar:p,shards:s,noRelative:g,noIsolation:h,inert:v,setCallbacks:i,allowPinchZoom:!!c,lockRef:n,gapMode:b}),l?a.cloneElement(a.Children.only(u),N(N({},D),{ref:P})):a.createElement(E,N({},D,{className:d,ref:P}),u))});ee.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ee.classNames={fullWidth:q,zeroRight:Q};var Kt=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Xt(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Kt();return t&&e.setAttribute("nonce",t),e}function Yt(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Gt(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var zt=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Xt())&&(Yt(t,n),Gt(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Zt=function(){var e=zt();return function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},rt=function(){var e=Zt(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Qt={left:0,top:0,right:0,gap:0},ie=function(e){return parseInt(e||"",10)||0},qt=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[ie(n),ie(r),ie(o)]},Jt=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Qt;var t=qt(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},en=rt(),W="data-scroll-locked",tn=function(e,t,n,r){var o=e.left,i=e.top,l=e.right,u=e.gap;return n===void 0&&(n="margin"),`
|
|
1
|
+
import{r as a,l as U,_ as J,m as Fe,W as j,j as pe,P as Ee,$ as ct,V as lt}from"./settings-CyLnISOv.js";var ft=Object.defineProperty,B=(e,t)=>ft(e,"name",{value:t,configurable:!0}),Me=!!(typeof window<"u"&&window.document&&window.document.createElement);function Z(e,t,{checkForDefaultPrevented:n=!0}={}){return B(function(o){if(e?.(o),n===!1||!o||!o.defaultPrevented)return t?.(o)},"handleEvent")}B(Z,"composeEventHandlers");function dt(e){if(!Me)throw new Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window}B(dt,"getOwnerWindow");function ue(e){if(!Me)throw new Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}B(ue,"getOwnerDocument");function ke(e,t=!1){const{activeElement:n}=ue(e);if(!n?.nodeName)return null;if(_e(n)&&n.contentDocument)return ke(n.contentDocument.body,t);if(t){const r=n.getAttribute("aria-activedescendant");if(r){const o=ue(n).getElementById(r);if(o)return o}}return n}B(ke,"getActiveElement");function _e(e){return e.tagName==="IFRAME"}B(_e,"isFrame");var vt=Object.defineProperty,mt=(e,t)=>vt(e,"name",{value:t,configurable:!0}),ht=J[" useId ".trim().toString()]||(()=>{}),pt=0;function Et(e){const[t,n]=a.useState(ht());return U(()=>{e||n(r=>r??String(pt++))},[e]),e||(t?`radix-${t}`:"")}mt(Et,"useId");var bt=Object.defineProperty,yt=(e,t)=>bt(e,"name",{value:t,configurable:!0}),Se=J[" useEffectEvent ".trim().toString()],Ce=J[" useInsertionEffect ".trim().toString()];function xe(e){if(typeof Se=="function")return Se(e);const t=a.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof Ce=="function"?Ce(()=>{t.current=e}):U(()=>{t.current=e}),a.useMemo(()=>((...n)=>t.current?.(...n)),[])}yt(xe,"useEffectEvent");var gt=Object.defineProperty,V=(e,t)=>gt(e,"name",{value:t,configurable:!0}),wt=J[" useInsertionEffect ".trim().toString()]||U;function St({prop:e,defaultProp:t,onChange:n=V(()=>{},"onChange"),caller:r}){const[o,i,l]=We({defaultProp:t,onChange:n}),u=e!==void 0,d=u?e:o,p=a.useCallback(m=>{if(u){const s=Ue(m)?m(e):m;s!==e&&l.current?.(s)}else i(m)},[u,e,i,l]);return[d,p]}V(St,"useControllableState");function We({defaultProp:e,onChange:t}){const[n,r]=a.useState(e),o=a.useRef(n),i=a.useRef(t);return wt(()=>{i.current=t},[t]),a.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}V(We,"useUncontrolledState");function Ue(e){return typeof e=="function"}V(Ue,"isFunction");var Pe=Symbol("RADIX:SYNC_STATE");function Ct(e,t,n,r){const{prop:o,defaultProp:i,onChange:l,caller:u}=t,d=o!==void 0,p=xe(l),m=[{...n,state:i}];r&&m.push(r);const[s,f]=a.useReducer((c,y)=>{if(y.type===Pe)return{...c,state:y.state};const E=e(c,y);return d&&!Object.is(E.state,c.state)&&p(E.state),E},...m),g=s.state,h=a.useRef(g);a.useEffect(()=>{h.current!==g&&(h.current=g,d||p(g))},[g,h,d]);const v=a.useMemo(()=>o!==void 0?{...s,state:o}:s,[s,o]);return a.useEffect(()=>{d&&!Object.is(o,s.state)&&f({type:Pe,state:o})},[o,s.state,d]),[v,f]}V(Ct,"useControllableStateReducer");var Pt=Object.defineProperty,O=(e,t)=>Pt(e,"name",{value:t,configurable:!0}),ce="dismissableLayer.update",Ot="dismissableLayer.pointerDownOutside",Rt="dismissableLayer.focusOutside",Oe,Be=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Cn=a.forwardRef(O(function(t,n){const{disableOutsidePointerEvents:r=!1,deferPointerDownOutside:o=!1,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:d,onDismiss:p,...m}=t,s=a.useContext(Be),[f,g]=a.useState(null),h=f?.ownerDocument??globalThis?.document,[,v]=a.useState({}),c=Fe(n,g),y=Array.from(s.layers),[E]=[...s.layersWithOutsidePointerEventsDisabled].slice(-1),b=E?y.indexOf(E):-1,S=f?y.indexOf(f):-1,w=s.layersWithOutsidePointerEventsDisabled.size>0,P=S>=b,D=a.useRef(!1),$=je(C=>{l?.(C),d?.(C),C.defaultPrevented||p?.()},{ownerDocument:h,deferPointerDownOutside:o,isDeferredPointerDownOutsideRef:D,dismissableSurfaces:s.dismissableSurfaces,shouldHandlePointerDownOutside:a.useCallback(C=>{if(!(C instanceof Node))return!1;const te=[...s.branches].some(we=>we.contains(C));return P&&!te},[s.branches,P])}),L=Ve(C=>{if(o&&D.current)return;const te=C.target;[...s.branches].some(ut=>ut.contains(te))||(u?.(C),d?.(C),C.defaultPrevented||p?.())},h),H=f?S===y.length-1:!1,I=j(C=>{C.key==="Escape"&&(i?.(C),!C.defaultPrevented&&p&&(C.preventDefault(),p()))});return a.useEffect(()=>{if(H)return h.addEventListener("keydown",I,{capture:!0}),()=>h.removeEventListener("keydown",I,{capture:!0})},[h,H,I]),a.useEffect(()=>{if(f)return r&&(s.layersWithOutsidePointerEventsDisabled.size===0&&(Oe=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),s.layersWithOutsidePointerEventsDisabled.add(f)),s.layers.add(f),le(),()=>{r&&(s.layersWithOutsidePointerEventsDisabled.delete(f),s.layersWithOutsidePointerEventsDisabled.size===0&&(h.body.style.pointerEvents=Oe))}},[f,h,r,s]),a.useEffect(()=>()=>{f&&(s.layers.delete(f),s.layersWithOutsidePointerEventsDisabled.delete(f),le())},[f,s]),a.useEffect(()=>{const C=O(()=>v({}),"handleUpdate");return document.addEventListener(ce,C),()=>document.removeEventListener(ce,C)},[]),pe.jsx(Ee.div,{...m,ref:c,style:{pointerEvents:w?P?"auto":"none":void 0,...t.style},onFocusCapture:Z(t.onFocusCapture,L.onFocusCapture),onBlurCapture:Z(t.onBlurCapture,L.onBlurCapture),onPointerDownCapture:Z(t.onPointerDownCapture,$.onPointerDownCapture)})},"DismissableLayer"));function Dt(){const e=a.useContext(Be),[t,n]=a.useState(null);return a.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}O(Dt,"useDismissableLayerSurface");var Nt=O(()=>!0,"IS_TRUE");function je(e,t){const{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:i,shouldHandlePointerDownOutside:l=Nt}=t,u=j(e),d=a.useRef(!1),p=a.useRef(!1),m=a.useRef(new Map),s=a.useRef(()=>{});return a.useEffect(()=>{function f(){p.current=!1,o.current=!1,m.current.clear()}O(f,"resetOutsideInteraction");function g(){return Array.from(m.current.values()).some(Boolean)}O(g,"isOutsideInteractionIntercepted");function h(b){if(!p.current)return;const S=b.target;S instanceof Node&&[...i].some(P=>P.contains(S))||m.current.set(b.type,!0),b.type==="click"&&window.setTimeout(()=>{p.current&&s.current()},0)}O(h,"handleInteractionCapture");function v(b){p.current&&m.current.set(b.type,!1)}O(v,"handleInteractionBubble");const c=O(b=>{if(b.target&&!d.current){let S=function(){n.removeEventListener("click",s.current);const P=g();f(),P||be(Ot,u,w,{discrete:!0})};if(O(S,"handleAndDispatchPointerDownOutsideEvent"),!l(b.target)){n.removeEventListener("click",s.current),f(),d.current=!1;return}const w={originalEvent:b};p.current=!0,o.current=r&&b.button===0,m.current.clear(),!r||b.button!==0?S():(n.removeEventListener("click",s.current),s.current=S,n.addEventListener("click",s.current,{once:!0}))}else n.removeEventListener("click",s.current),f();d.current=!1},"handlePointerDown"),y=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const b of y)n.addEventListener(b,h,!0),n.addEventListener(b,v);const E=window.setTimeout(()=>{n.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(E),n.removeEventListener("pointerdown",c),n.removeEventListener("click",s.current);for(const b of y)n.removeEventListener(b,h,!0),n.removeEventListener(b,v)}},[n,u,r,o,i,l]),{onPointerDownCapture:O(()=>d.current=!0,"onPointerDownCapture")}}O(je,"usePointerDownOutside");function Ve(e,t=globalThis?.document){const n=j(e),r=a.useRef(!1);return a.useEffect(()=>{const o=O(i=>{i.target&&!r.current&&be(Rt,n,{originalEvent:i},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:O(()=>r.current=!0,"onFocusCapture"),onBlurCapture:O(()=>r.current=!1,"onBlurCapture")}}O(Ve,"useFocusOutside");function le(){const e=new CustomEvent(ce);document.dispatchEvent(e)}O(le,"dispatchUpdate");function be(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ct(o,i):o.dispatchEvent(i)}O(be,"handleAndDispatchCustomEvent");var Tt=Object.defineProperty,R=(e,t)=>Tt(e,"name",{value:t,configurable:!0}),ne="focusScope.autoFocusOnMount",re="focusScope.autoFocusOnUnmount",Re={bubbles:!1,cancelable:!0},Pn=a.forwardRef(R(function(t,n){const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:l,...u}=t,[d,p]=a.useState(null),m=j(i),s=j(l),f=a.useRef(null),g=Fe(n,p),h=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(o){let c=function(S){if(h.paused||!d)return;const w=S.target;d.contains(w)?f.current=w:T(f.current,{select:!0})},y=function(S){if(h.paused||!d)return;const w=S.relatedTarget;w!==null&&(d.contains(w)||T(f.current,{select:!0}))},E=function(S){if(document.activeElement===document.body)for(const P of S)P.removedNodes.length>0&&T(d)};R(c,"handleFocusIn"),R(y,"handleFocusOut"),R(E,"handleMutations"),document.addEventListener("focusin",c),document.addEventListener("focusout",y);const b=new MutationObserver(E);return d&&b.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",c),document.removeEventListener("focusout",y),b.disconnect()}}},[o,d,h.paused]),a.useEffect(()=>{if(d){De.add(h);const c=document.activeElement;if(!d.contains(c)){const E=new CustomEvent(ne,Re);d.addEventListener(ne,m),d.dispatchEvent(E),E.defaultPrevented||($e(Ge(ye(d)),{select:!0}),document.activeElement===c&&T(d))}return()=>{d.removeEventListener(ne,m),setTimeout(()=>{const E=new CustomEvent(re,Re);d.addEventListener(re,s),d.dispatchEvent(E),E.defaultPrevented||T(c??document.body,{select:!0}),d.removeEventListener(re,s),De.remove(h)},0)}}},[d,m,s,h]);const v=a.useCallback(c=>{if(!r&&!o||h.paused)return;const y=c.key==="Tab"&&!c.altKey&&!c.ctrlKey&&!c.metaKey,E=document.activeElement;if(y&&E){const b=c.currentTarget,[S,w]=He(b);S&&w?!c.shiftKey&&E===w?(c.preventDefault(),r&&T(S,{select:!0})):c.shiftKey&&E===S&&(c.preventDefault(),r&&T(w,{select:!0})):E===b&&c.preventDefault()}},[r,o,h.paused]);return pe.jsx(Ee.div,{tabIndex:-1,...u,ref:g,onKeyDown:v})},"FocusScope"));function $e(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(T(r,{select:t}),document.activeElement!==n)return}R($e,"focusFirst");function He(e){const t=ye(e),n=fe(t,e),r=fe(t.reverse(),e);return[n,r]}R(He,"getTabbableEdges");function ye(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:R(r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}R(ye,"getTabbableCandidates");function fe(e,t){const n=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):Ke(r,{upTo:t})))return r}R(fe,"findVisible");function Ke(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}R(Ke,"isHidden");function Xe(e){return e instanceof HTMLInputElement&&"select"in e}R(Xe,"isSelectableInput");function T(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Xe(e)&&t&&e.select()}}R(T,"focus");var De=Ye();function Ye(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=de(e,t),e.unshift(t)},remove(t){e=de(e,t),e[0]?.resume()}}}R(Ye,"createFocusScopesStack");function de(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}R(de,"arrayRemove");function Ge(e){return e.filter(t=>t.tagName!=="A")}R(Ge,"removeLinks");var At=Object.defineProperty,It=(e,t)=>At(e,"name",{value:t,configurable:!0}),On=a.forwardRef(It(function(t,n){const{container:r,...o}=t,[i,l]=a.useState(!1);U(()=>l(!0),[]);const u=r||i&&globalThis?.document?.body;return u?lt.createPortal(pe.jsx(Ee.div,{...o,ref:n}),u):null},"Portal")),Lt=Object.defineProperty,A=(e,t)=>Lt(e,"name",{value:t,configurable:!0});function ze(e,t){return a.useReducer((n,r)=>t[n][r]??n,e)}A(ze,"useStateMachine");var Rn=A(e=>{const{present:t,children:n}=e,r=Ze(t),o=typeof n=="function"?n({present:r.isPresent}):a.Children.only(n),i=Qe(r.ref,qe(o));return typeof n=="function"||r.isPresent?a.cloneElement(o,{ref:i}):null},"Presence");function Ze(e){const[t,n]=a.useState(),r=a.useRef(null),o=a.useRef(e),i=a.useRef("none"),l=a.useRef(void 0),u=e?"mounted":"unmounted",[d,p]=ze(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{d==="mounted"?(i.current=l.current??x(r.current),l.current=void 0):i.current="none"},[d]),U(()=>{const m=r.current,s=o.current;if(s!==e){const g=i.current,h=x(m);e?(l.current=h,p("MOUNT")):h==="none"||m?.display==="none"?p("UNMOUNT"):p(s&&g!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,p]),U(()=>{if(t){let m;const s=t.ownerDocument.defaultView??window,f=A(h=>{const c=x(r.current).includes(CSS.escape(h.animationName));if(h.target===t&&c&&(p("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",m=s.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},"handleAnimationEnd"),g=A(h=>{h.target===t&&(i.current=x(r.current))},"handleAnimationStart");return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{s.clearTimeout(m),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:a.useCallback(m=>{if(m){const s=getComputedStyle(m);r.current=s,l.current=x(s)}else r.current=null;n(m)},[])}}A(Ze,"usePresence");function ve(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}A(ve,"setRef");function Qe(...e){const t=a.useRef(e);return t.current=e,a.useCallback(n=>{const r=t.current;let o=!1;const i=r.map(l=>{const u=ve(l,n);return!o&&typeof u=="function"&&(o=!0),u});if(o)return()=>{for(let l=0;l<i.length;l++){const u=i[l];typeof u=="function"?u():ve(r[l],null)}}},[])}A(Qe,"useStableComposedRefs");function x(e){return e?.animationName||"none"}A(x,"getAnimationName");function qe(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}A(qe,"getElementRef");var Ft=Object.defineProperty,ge=(e,t)=>Ft(e,"name",{value:t,configurable:!0}),K=0,F=null;function Mt(e){return Je(),e.children}ge(Mt,"FocusGuards");function Je(){a.useEffect(()=>{F||(F={start:me(),end:me()});const{start:e,end:t}=F;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),K++,()=>{K===1&&(F?.start.remove(),F?.end.remove(),F=null),K=Math.max(0,K-1)}},[])}ge(Je,"useFocusGuards");function me(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}ge(me,"createFocusGuard");var N=function(){return N=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},N.apply(this,arguments)};function et(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function kt(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var Q="right-scroll-bar-position",q="width-before-scroll-bar",_t="with-scroll-bars-hidden",xt="--removed-body-scroll-bar-size";function oe(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Wt(e,t){var n=a.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Ut=typeof window<"u"?a.useLayoutEffect:a.useEffect,Ne=new WeakMap;function Bt(e,t){var n=Wt(null,function(r){return e.forEach(function(o){return oe(o,r)})});return Ut(function(){var r=Ne.get(n);if(r){var o=new Set(r),i=new Set(e),l=n.current;o.forEach(function(u){i.has(u)||oe(u,null)}),i.forEach(function(u){o.has(u)||oe(u,l)})}Ne.set(n,e)},[e]),n}function jt(e){return e}function Vt(e,t){t===void 0&&(t=jt);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var l=t(i,r);return n.push(l),function(){n=n.filter(function(u){return u!==l})}},assignSyncMedium:function(i){for(r=!0;n.length;){var l=n;n=[],l.forEach(i)}n={push:function(u){return i(u)},filter:function(){return n}}},assignMedium:function(i){r=!0;var l=[];if(n.length){var u=n;n=[],u.forEach(i),l=n}var d=function(){var m=l;l=[],m.forEach(i)},p=function(){return Promise.resolve().then(d)};p(),n={push:function(m){l.push(m),p()},filter:function(m){return l=l.filter(m),n}}}};return o}function $t(e){e===void 0&&(e={});var t=Vt(null);return t.options=N({async:!0,ssr:!1},e),t}var tt=function(e){var t=e.sideCar,n=et(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return a.createElement(r,N({},n))};tt.isSideCarExport=!0;function Ht(e,t){return e.useMedium(t),tt}var nt=$t(),ae=function(){},ee=a.forwardRef(function(e,t){var n=a.useRef(null),r=a.useState({onScrollCapture:ae,onWheelCapture:ae,onTouchMoveCapture:ae}),o=r[0],i=r[1],l=e.forwardProps,u=e.children,d=e.className,p=e.removeScrollBar,m=e.enabled,s=e.shards,f=e.sideCar,g=e.noRelative,h=e.noIsolation,v=e.inert,c=e.allowPinchZoom,y=e.as,E=y===void 0?"div":y,b=e.gapMode,S=et(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=f,P=Bt([n,t]),D=N(N({},S),o);return a.createElement(a.Fragment,null,m&&a.createElement(w,{sideCar:nt,removeScrollBar:p,shards:s,noRelative:g,noIsolation:h,inert:v,setCallbacks:i,allowPinchZoom:!!c,lockRef:n,gapMode:b}),l?a.cloneElement(a.Children.only(u),N(N({},D),{ref:P})):a.createElement(E,N({},D,{className:d,ref:P}),u))});ee.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ee.classNames={fullWidth:q,zeroRight:Q};var Kt=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Xt(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Kt();return t&&e.setAttribute("nonce",t),e}function Yt(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Gt(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var zt=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Xt())&&(Yt(t,n),Gt(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Zt=function(){var e=zt();return function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},rt=function(){var e=Zt(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Qt={left:0,top:0,right:0,gap:0},ie=function(e){return parseInt(e||"",10)||0},qt=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[ie(n),ie(r),ie(o)]},Jt=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Qt;var t=qt(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},en=rt(),W="data-scroll-locked",tn=function(e,t,n,r){var o=e.left,i=e.top,l=e.right,u=e.gap;return n===void 0&&(n="margin"),`
|
|
2
2
|
.`.concat(_t,` {
|
|
3
3
|
overflow: hidden `).concat(r,`;
|
|
4
4
|
padding-right: `).concat(u,"px ").concat(r,`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as P,l as ct,V as ye,n as ve,m as Yt,W as be,j as Q,P as Pt}from"./settings-DKknqu4C.js";var Ae=Object.defineProperty,Re=(t,e)=>Ae(t,"name",{value:e,configurable:!0});function qt(t){const[e,n]=P.useState(void 0);return ct(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const s=r[0];let i,c;if("borderBoxSize"in s){const l=s.borderBoxSize,a=Array.isArray(l)?l[0]:l;i=a.inlineSize,c=a.blockSize}else i=t.offsetWidth,c=t.offsetHeight;n({width:i,height:c})});return o.observe(t,{box:"border-box"}),()=>o.unobserve(t)}else n(void 0)},[t]),e}Re(qt,"useSize");const Oe=["top","right","bottom","left"],q=Math.min,B=Math.max,at=Math.round,st=Math.floor,j=t=>({x:t,y:t}),Pe={left:"right",right:"left",bottom:"top",top:"bottom"};function Ut(t,e,n){return B(t,q(e,n))}function I(t,e){return typeof t=="function"?t(e):t}function U(t){return t.split("-")[0]}function et(t){return t.split("-")[1]}function Ct(t){return t==="x"?"y":"x"}function St(t){return t==="y"?"height":"width"}function z(t){const e=t[0];return e==="t"||e==="b"?"y":"x"}function Et(t){return Ct(z(t))}function Ce(t,e,n){n===void 0&&(n=!1);const o=et(t),r=Et(t),s=St(r);let i=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(i=ft(i)),[i,ft(i)]}function Se(t){const e=ft(t);return[Rt(t),e,Rt(e)]}function Rt(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const Ft=["left","right"],Ht=["right","left"],Ee=["top","bottom"],Le=["bottom","top"];function De(t,e,n){switch(t){case"top":case"bottom":return n?e?Ht:Ft:e?Ft:Ht;case"left":case"right":return e?Ee:Le;default:return[]}}function Te(t,e,n,o){const r=et(t);let s=De(U(t),n==="start",o);return r&&(s=s.map(i=>i+"-"+r),e&&(s=s.concat(s.map(Rt)))),s}function ft(t){const e=U(t);return Pe[e]+t.slice(e.length)}function $e(t){var e,n,o,r;return{top:(e=t.top)!=null?e:0,right:(n=t.right)!=null?n:0,bottom:(o=t.bottom)!=null?o:0,left:(r=t.left)!=null?r:0}}function Kt(t){return typeof t!="number"?$e(t):{top:t,right:t,bottom:t,left:t}}function ut(t){const{x:e,y:n,width:o,height:r}=t;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}function kt(t,e,n){let{reference:o,floating:r}=t;const s=z(e),i=Et(e),c=St(i),l=U(e),a=s==="y",d=o.x+o.width/2-r.width/2,u=o.y+o.height/2-r.height/2,m=o[c]/2-r[c]/2;let f;switch(l){case"top":f={x:d,y:o.y-r.height};break;case"bottom":f={x:d,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:u};break;case"left":f={x:o.x-r.width,y:u};break;default:f={x:o.x,y:o.y}}const p=et(e);return p&&(f[i]+=m*(p==="end"?1:-1)*(n&&a?-1:1)),f}async function _e(t,e){var n;e===void 0&&(e={});const{x:o,y:r,platform:s,rects:i,elements:c,strategy:l}=t,{boundary:a="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:m=!1,padding:f=0}=I(e,t),p=Kt(f),w=c[m?u==="floating"?"reference":"floating":u],g=ut(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(w)))==null||n?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:a,rootBoundary:d,strategy:l})),x=u==="floating"?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),v=await(s.isElement==null?void 0:s.isElement(b))&&await(s.getScale==null?void 0:s.getScale(b))||{x:1,y:1},A=ut(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:b,strategy:l}):x);return{top:(g.top-A.top+p.top)/v.y,bottom:(A.bottom-g.bottom+p.bottom)/v.y,left:(g.left-A.left+p.left)/v.x,right:(A.right-g.right+p.right)/v.x}}const Me=50,We=async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:i}=n,c=i.detectOverflow?i:{...i,detectOverflow:_e},l=await(i.isRTL==null?void 0:i.isRTL(e));let a=await i.getElementRects({reference:t,floating:e,strategy:r}),{x:d,y:u}=kt(a,o,l),m=o,f=0;const p={};for(let h=0;h<s.length;h++){const w=s[h];if(!w)continue;const{name:g,fn:x}=w,{x:b,y:v,data:A,reset:y}=await x({x:d,y:u,initialPlacement:o,placement:m,strategy:r,middlewareData:p,rects:a,platform:c,elements:{reference:t,floating:e}});d=b??d,u=v??u,p[g]={...p[g],...A},y&&f<Me&&(f++,typeof y=="object"&&(y.placement&&(m=y.placement),y.rects&&(a=y.rects===!0?await i.getElementRects({reference:t,floating:e,strategy:r}):y.rects),{x:d,y:u}=kt(a,m,l)),h=-1)}return{x:d,y:u,placement:m,strategy:r,middlewareData:p}},Fe=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:s,platform:i,elements:c,middlewareData:l}=e,{element:a,padding:d=0}=I(t,e)||{};if(a==null)return{};const u=Kt(d),m={x:n,y:o},f=Et(r),p=St(f),h=await i.getDimensions(a),w=f==="y",g=w?"top":"left",x=w?"bottom":"right",b=w?"clientHeight":"clientWidth",v=s.reference[p]+s.reference[f]-m[f]-s.floating[p],A=m[f]-s.reference[f],y=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a));let O=y?y[b]:0;(!O||!await(i.isElement==null?void 0:i.isElement(y)))&&(O=c.floating[b]||s.floating[p]);const S=v/2-A/2,$=O/2-h[p]/2-1,C=q(u[g],$),H=q(u[x],$),k=O-h[p]-H,T=O/2-h[p]/2+S,E=Ut(C,T,k),W=!l.arrow&&et(r)!=null&&T!==E&&s.reference[p]/2-(T<C?C:H)-h[p]/2<0,L=W?T<C?T-C:T-k:0;return{[f]:m[f]+L,data:{[f]:E,centerOffset:T-E-L,...W&&{alignmentOffset:L}},reset:W}}}),He=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:s,rects:i,initialPlacement:c,platform:l,elements:a}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...w}=I(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const g=U(r),x=z(c),b=U(c)===c,v=await(l.isRTL==null?void 0:l.isRTL(a.floating)),A=m||(b||!h?[ft(c)]:Se(c)),y=p!=="none";!m&&y&&A.push(...Te(c,h,p,v));const O=[c,...A],S=await l.detectOverflow(e,w),$=[];let C=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&$.push(S[g]),u){const E=Ce(r,i,v);$.push(S[E[0]],S[E[1]])}if(C=[...C,{placement:r,overflows:$}],!$.every(E=>E<=0)){var H,k;const E=(((H=s.flip)==null?void 0:H.index)||0)+1,W=O[E];if(W&&(!(u==="alignment"?x!==z(W):!1)||C.every(R=>z(R.placement)===x?R.overflows[0]>0:!0)))return{data:{index:E,overflows:C},reset:{placement:W}};let L=(k=C.filter(_=>_.overflows[0]<=0).sort((_,R)=>_.overflows[1]-R.overflows[1])[0])==null?void 0:k.placement;if(!L)switch(f){case"bestFit":{var T;const _=(T=C.filter(R=>{if(y){const D=z(R.placement);return D===x||D==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(D=>D>0).reduce((D,F)=>D+F,0)]).sort((R,D)=>R[1]-D[1])[0])==null?void 0:T[0];_&&(L=_);break}case"initialPlacement":L=c;break}if(r!==L)return{reset:{placement:L}}}return{}}}};function zt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Nt(t){return Oe.some(e=>t[e]>=0)}const ke=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n,platform:o}=e,{strategy:r="referenceHidden",...s}=I(t,e);switch(r){case"referenceHidden":{const i=await o.detectOverflow(e,{...s,elementContext:"reference"}),c=zt(i,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Nt(c)}}}case"escaped":{const i=await o.detectOverflow(e,{...s,altBoundary:!0}),c=zt(i,n.floating);return{data:{escapedOffsets:c,escaped:Nt(c)}}}default:return{}}}}},Zt=new Set(["left","top"]);async function ze(t,e){const{placement:n,platform:o,elements:r}=t,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=U(n),c=et(n),l=z(n)==="y",a=Zt.has(i)?-1:1,d=s&&l?-1:1,u=I(e,t);let{mainAxis:m,crossAxis:f,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&typeof p=="number"&&(f=c==="end"?p*-1:p),l?{x:f*d,y:m*a}:{x:m*a,y:f*d}}const Ne=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:r,y:s,placement:i,middlewareData:c}=e,l=await ze(e,t);return i===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:s+l.y,data:{...l,placement:i}}}}},Ve=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:r,platform:s}=e,{mainAxis:i=!0,crossAxis:c=!1,limiter:l={fn:x=>{let{x:b,y:v}=x;return{x:b,y:v}}},...a}=I(t,e),d={x:n,y:o},u=await s.detectOverflow(e,a),m=z(r),f=Ct(m);let p=d[f],h=d[m];const w=(x,b)=>Ut(b+u[x==="y"?"top":"left"],b,b-u[x==="y"?"bottom":"right"]);i&&(p=w(f,p)),c&&(h=w(m,h));const g=l.fn({...e,[f]:p,[m]:h});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[f]:i,[m]:c}}}}}},Be=function(t){return t===void 0&&(t={}),{options:t,fn(e){var n,o;const{x:r,y:s,placement:i,rects:c,middlewareData:l}=e,{offset:a=0,mainAxis:d=!0,crossAxis:u=!0}=I(t,e),m={x:r,y:s},f=z(i),p=Ct(f);let h=m[p],w=m[f];const g=I(a,e),x=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:(n=g.mainAxis)!=null?n:0,crossAxis:(o=g.crossAxis)!=null?o:0};if(d){const A=p==="y"?"height":"width",y=c.reference[p]-c.floating[A]+x.mainAxis,O=c.reference[p]+c.reference[A]-x.mainAxis;h<y?h=y:h>O&&(h=O)}if(u){var b,v;const A=p==="y"?"width":"height",y=Zt.has(U(i)),O=c.reference[f]-c.floating[A]+(y&&((b=l.offset)==null?void 0:b[f])||0)+(y?0:x.crossAxis),S=c.reference[f]+c.reference[A]+(y?0:((v=l.offset)==null?void 0:v[f])||0)-(y?x.crossAxis:0);w<O?w=O:w>S&&(w=S)}return{[p]:h,[f]:w}}}},je=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:o,platform:r,elements:s}=e,{apply:i=()=>{},...c}=I(t,e),l=await r.detectOverflow(e,c),a=U(n),d=et(n),u=z(n)==="y",{width:m,height:f}=o.floating;let p,h;a==="top"||a==="bottom"?(p=a,h=d===(await(r.isRTL==null?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(h=a,p=d==="end"?"top":"bottom");const w=f-l.top-l.bottom,g=m-l.left-l.right,x=q(f-l[p],w),b=q(m-l[h],g),v=e.middlewareData.shift,A=!v;let y=x,O=b;v!=null&&v.enabled.x&&(O=g),v!=null&&v.enabled.y&&(y=w),A&&!d&&(u?O=m-2*B(l.left,l.right):y=f-2*B(l.top,l.bottom)),await i({...e,availableWidth:O,availableHeight:y});const S=await r.getDimensions(s.floating);return m!==S.width||f!==S.height?{reset:{rects:!0}}:{}}}};function pt(){return typeof window<"u"}function nt(t){return Gt(t)?(t.nodeName||"").toLowerCase():"#document"}function M(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function X(t){var e;return(e=(Gt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Gt(t){return pt()?t instanceof Node||t instanceof M(t).Node:!1}function N(t){return pt()?t instanceof Element||t instanceof M(t).Element:!1}function K(t){return pt()?t instanceof HTMLElement||t instanceof M(t).HTMLElement:!1}function Vt(t){return!pt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof M(t).ShadowRoot}function mt(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=V(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&r!=="inline"&&r!=="contents"}function Ie(t){return/^(table|td|th)$/.test(nt(t))}function ht(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const Xe=/transform|translate|scale|rotate|perspective|filter/,Ye=/paint|layout|strict|content/,Z=t=>!!t&&t!=="none";let vt;function Lt(t){const e=N(t)?V(t):t;return Z(e.transform)||Z(e.translate)||Z(e.scale)||Z(e.rotate)||Z(e.perspective)||!Dt()&&(Z(e.backdropFilter)||Z(e.filter))||Xe.test(e.willChange||"")||Ye.test(e.contain||"")}function qe(t){let e=G(t);for(;K(e)&&!ot(e);){if(Lt(e))return e;if(ht(e))return null;e=G(e)}return null}function Dt(){return vt==null&&(vt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),vt}function ot(t){return/^(html|body|#document)$/.test(nt(t))}function V(t){return M(t).getComputedStyle(t)}function gt(t){return N(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function G(t){if(nt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Vt(t)&&t.host||X(t);return Vt(e)?e.host:e}function Jt(t){const e=G(t);return ot(e)?(t.ownerDocument||t).body:K(e)&&mt(e)?e:Jt(e)}function rt(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=Jt(t),s=r===((o=t.ownerDocument)==null?void 0:o.body),i=M(r);if(s){const c=Ot(i);return e.concat(i,i.visualViewport||[],mt(r)?r:[],c&&n?rt(c):[])}else return e.concat(r,rt(r,[],n))}function Ot(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Qt(t){const e=V(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=K(t),s=r?t.offsetWidth:n,i=r?t.offsetHeight:o,c=at(n)!==s||at(o)!==i;return c&&(n=s,o=i),{width:n,height:o,$:c}}function Tt(t){return N(t)?t:t.contextElement}function tt(t){const e=Tt(t);if(!K(e))return j(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:s}=Qt(e);let i=(s?at(n.width):n.width)/o,c=(s?at(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}const Ue=j(0);function te(t){const e=M(t);return!Dt()||!e.visualViewport?Ue:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Ke(t,e,n){return e===void 0&&(e=!1),!!n&&e&&n===M(t)}function J(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),s=Tt(t);let i=j(1);e&&(o?N(o)&&(i=tt(o)):i=tt(t));const c=Ke(s,n,o)?te(s):j(0);let l=(r.left+c.x)/i.x,a=(r.top+c.y)/i.y,d=r.width/i.x,u=r.height/i.y;if(s&&o){const m=M(s),f=N(o)?M(o):o;let p=m,h=Ot(p);for(;h&&f!==p;){const w=tt(h),g=h.getBoundingClientRect(),x=V(h),b=g.left+(h.clientLeft+parseFloat(x.paddingLeft))*w.x,v=g.top+(h.clientTop+parseFloat(x.paddingTop))*w.y;l*=w.x,a*=w.y,d*=w.x,u*=w.y,l+=b,a+=v,p=M(h),h=Ot(p)}}return ut({width:d,height:u,x:l,y:a})}function wt(t,e){const n=gt(t).scrollLeft;return e?e.left+n:J(X(t)).left+n}function ee(t,e){const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-wt(t,n),r=n.top+e.scrollTop;return{x:o,y:r}}function Ze(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const s=r==="fixed",i=X(o),c=e?ht(e.floating):!1;if(o===i||c&&s)return n;let l={scrollLeft:0,scrollTop:0},a=j(1);const d=j(0),u=K(o);if((u||!s)&&((nt(o)!=="body"||mt(i))&&(l=gt(o)),u)){const f=J(o);a=tt(o),d.x=f.x+o.clientLeft,d.y=f.y+o.clientTop}const m=i&&!u&&!s?ee(i,l):j(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+d.x+m.x,y:n.y*a.y-l.scrollTop*a.y+d.y+m.y}}function Ge(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Je(t){const e=gt(t),n=t.ownerDocument.body,o=B(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),r=B(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-e.scrollLeft+wt(t);const i=-e.scrollTop;return V(n).direction==="rtl"&&(s+=B(t.clientWidth,n.clientWidth)-o),{width:o,height:r,x:s,y:i}}const Qe=25;function tn(t,e,n){n===void 0&&(n="viewport");const o=n==="layoutViewport",r=M(t),s=X(t),i=r.visualViewport;let c=s.clientWidth,l=s.clientHeight,a=0,d=0;if(i){const m=!Dt()||e==="fixed";o?m||(a=-i.offsetLeft,d=-i.offsetTop):(c=i.width,l=i.height,m&&(a=i.offsetLeft,d=i.offsetTop))}if(wt(s)<=0){const m=s.ownerDocument,f=m.body,p=getComputedStyle(f),h=m.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,w=Math.abs(s.clientWidth-f.clientWidth-h),g=getComputedStyle(s).scrollbarGutter==="stable both-edges"?w/2:w;g<=Qe&&(c-=g)}return{width:c,height:l,x:a,y:d}}function en(t,e){const n=J(t,!0,e==="fixed"),o=n.top+t.clientTop,r=n.left+t.clientLeft,s=tt(t),i=t.clientWidth*s.x,c=t.clientHeight*s.y,l=r*s.x,a=o*s.y;return{width:i,height:c,x:l,y:a}}function Bt(t,e,n){let o;if(e==="viewport"||e==="layoutViewport")o=tn(t,n,e);else if(e==="document")o=Je(X(t));else if(N(e))o=en(e,n);else{const r=te(t);o={x:e.x-r.x,y:e.y-r.y,width:e.width,height:e.height}}return ut(o)}function nn(t,e){const n=e.get(t);if(n)return n;let o=rt(t,[],!1).filter(c=>N(c)&&nt(c)!=="body"),r=null;const s=V(t).position==="fixed";let i=s?G(t):t;for(;N(i)&&!ot(i);){const c=V(i),l=Lt(i),a=r?r.position:s?"fixed":"";!l&&(a==="fixed"||a==="absolute"&&c.position==="static")?o=o.filter(u=>u!==i):r=c,i=G(i)}return e.set(t,o),o}function on(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const i=[...n==="clippingAncestors"?ht(e)?[]:nn(e,this._c):[].concat(n),o],c=Bt(e,i[0],r);let l=c.top,a=c.right,d=c.bottom,u=c.left;for(let m=1;m<i.length;m++){const f=Bt(e,i[m],r);l=B(f.top,l),a=q(f.right,a),d=q(f.bottom,d),u=B(f.left,u)}return{width:a-u,height:d-l,x:u,y:l}}function rn(t){const{width:e,height:n}=Qt(t);return{width:e,height:n}}function sn(t,e,n){const o=K(e),r=X(e),s=n==="fixed",i=J(t,!0,s,e);let c={scrollLeft:0,scrollTop:0};const l=j(0);if((o||!s)&&((nt(e)!=="body"||mt(r))&&(c=gt(e)),o)){const m=J(e,!0,s,e);l.x=m.x+e.clientLeft,l.y=m.y+e.clientTop}!o&&r&&(l.x=wt(r));const a=r&&!o&&!s?ee(r,c):j(0),d=i.left+c.scrollLeft-l.x-a.x,u=i.top+c.scrollTop-l.y-a.y;return{x:d,y:u,width:i.width,height:i.height}}function bt(t){return V(t).position==="static"}function jt(t,e){if(!K(t)||V(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return X(t)===n&&(n=n.ownerDocument.body),n}function ne(t,e){const n=M(t);if(ht(t))return n;if(!K(t)){let r=G(t);for(;r&&!ot(r);){if(N(r)&&!bt(r))return r;r=G(r)}return n}let o=jt(t,e);for(;o&&Ie(o)&&bt(o);)o=jt(o,e);return o&&ot(o)&&bt(o)&&!Lt(o)?n:o||qe(t)||n}const cn=async function(t){const e=this.getOffsetParent||ne,n=this.getDimensions,o=await n(t.floating);return{reference:sn(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function ln(t){return V(t).direction==="rtl"}const an={convertOffsetParentRelativeRectToViewportRelativeRect:Ze,getDocumentElement:X,getClippingRect:on,getOffsetParent:ne,getElementRects:cn,getClientRects:Ge,getDimensions:rn,getScale:tt,isElement:N,isRTL:ln};function oe(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function fn(t,e,n){let o=null,r;const s=X(t);function i(){var d;clearTimeout(r),(d=o)==null||d.disconnect(),o=null}function c(d,u){d===void 0&&(d=!1),u===void 0&&(u=1),i();const m=t.getBoundingClientRect(),{left:f,top:p,width:h,height:w}=m;if(d||e(),!h||!w)return;const g=st(p),x=st(s.clientWidth-(f+h)),b=st(s.clientHeight-(p+w)),v=st(f),y={rootMargin:-g+"px "+-x+"px "+-b+"px "+-v+"px",threshold:B(0,q(1,u))||1};let O=!0;function S($){const C=$[0].intersectionRatio;if(!oe(m,t.getBoundingClientRect()))return c();if(C!==u){if(!O)return c();C?c(!1,C):r=setTimeout(()=>{c(!1,1e-7)},1e3)}O=!1}try{o=new IntersectionObserver(S,{...y,root:s.ownerDocument})}catch{o=new IntersectionObserver(S,y)}o.observe(t)}const l=M(t),a=()=>c(n);return l.addEventListener("resize",a),c(!0),()=>{l.removeEventListener("resize",a),i()}}function un(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,a=Tt(t),d=r||s?[...a?rt(a):[],...e?rt(e):[]]:[];d.forEach(g=>{r&&g.addEventListener("scroll",n),s&&g.addEventListener("resize",n)});const u=a&&c?fn(a,n,s):null;let m=-1,f=null;i&&(f=new ResizeObserver(g=>{let[x]=g;x&&x.target===a&&f&&e&&(f.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var b;(b=f)==null||b.observe(e)})),n()}),a&&!l&&f.observe(a),e&&f.observe(e));let p,h=l?J(t):null;l&&w();function w(){const g=J(t);h&&!oe(h,g)&&n(),h=g,p=requestAnimationFrame(w)}return n(),()=>{var g;d.forEach(x=>{r&&x.removeEventListener("scroll",n),s&&x.removeEventListener("resize",n)}),u?.(),(g=f)==null||g.disconnect(),f=null,l&&cancelAnimationFrame(p)}}const dn=Ne,pn=Ve,mn=He,hn=je,gn=ke,It=Fe,wn=Be,xn=(t,e,n)=>{const o=new Map,r=n??{},s={...an,...r.platform,_c:o};return We(t,e,{...r,platform:s})};var yn=typeof document<"u",vn=function(){},lt=yn?P.useLayoutEffect:vn;function dt(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,o,r;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(o=n;o--!==0;)if(!dt(t[o],e[o]))return!1;return!0}if(r=Object.keys(t),n=r.length,n!==Object.keys(e).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(e,r[o]))return!1;for(o=n;o--!==0;){const s=r[o];if(!(s==="_owner"&&t.$$typeof)&&!dt(t[s],e[s]))return!1}return!0}return t!==t&&e!==e}function re(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Xt(t,e){const n=re(t);return Math.round(e*n)/n}function At(t){const e=P.useRef(t);return lt(()=>{e.current=t}),e}function bn(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:s,floating:i}={},transform:c=!0,whileElementsMounted:l,open:a}=t,[d,u]=P.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[m,f]=P.useState(o);dt(m,o)||f(o);const[p,h]=P.useState(null),[w,g]=P.useState(null),x=P.useCallback(R=>{R!==y.current&&(y.current=R,h(R))},[]),b=P.useCallback(R=>{R!==O.current&&(O.current=R,g(R))},[]),v=s||p,A=i||w,y=P.useRef(null),O=P.useRef(null),S=P.useRef(d),$=l!=null,C=At(l),H=At(r),k=At(a),T=P.useCallback(()=>{if(!y.current||!O.current)return;const R={placement:e,strategy:n,middleware:m};H.current&&(R.platform=H.current),xn(y.current,O.current,R).then(D=>{const F={...D,isPositioned:k.current!==!1};E.current&&!dt(S.current,F)&&(S.current=F,ye.flushSync(()=>{u(F)}))})},[m,e,n,H,k]);lt(()=>{a===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,u(R=>({...R,isPositioned:!1})))},[a]);const E=P.useRef(!1);lt(()=>(E.current=!0,()=>{E.current=!1}),[]),lt(()=>{if(v&&(y.current=v),A&&(O.current=A),v&&A){if(C.current)return C.current(v,A,T);T()}},[v,A,T,C,$]);const W=P.useMemo(()=>({reference:y,floating:O,setReference:x,setFloating:b}),[x,b]),L=P.useMemo(()=>({reference:v,floating:A}),[v,A]),_=P.useMemo(()=>{const R={position:n,left:0,top:0};if(!L.floating)return R;const D=Xt(L.floating,d.x),F=Xt(L.floating,d.y);return c?{...R,transform:"translate("+D+"px, "+F+"px)",...re(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:D,top:F}},[n,c,L.floating,d.x,d.y]);return P.useMemo(()=>({...d,update:T,refs:W,elements:L,floatingStyles:_}),[d,T,W,L,_])}const An=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:o,padding:r}=typeof t=="function"?t(n):t;return o&&e(o)?o.current!=null?It({element:o.current,padding:r}).fn(n):{}:o?It({element:o,padding:r}).fn(n):{}}}},Rn=(t,e)=>{const n=dn(t);return{name:n.name,fn:n.fn,options:[t,e]}},On=(t,e)=>{const n=pn(t);return{name:n.name,fn:n.fn,options:[t,e]}},Pn=(t,e)=>({fn:wn(t).fn,options:[t,e]}),Cn=(t,e)=>{const n=mn(t);return{name:n.name,fn:n.fn,options:[t,e]}},Sn=(t,e)=>{const n=hn(t);return{name:n.name,fn:n.fn,options:[t,e]}},En=(t,e)=>{const n=gn(t);return{name:n.name,fn:n.fn,options:[t,e]}},Ln=(t,e)=>{const n=An(t);return{name:n.name,fn:n.fn,options:[t,e]}};var Dn=Object.defineProperty,Y=(t,e)=>Dn(t,"name",{value:e,configurable:!0}),ie="Popper",[se,jn]=ve(ie),[Tn,ce]=se(ie),$n=Y(t=>{const{__scopePopper:e,children:n}=t,[o,r]=P.useState(null),[s,i]=P.useState(void 0);return Q.jsx(Tn,{scope:e,anchor:o,onAnchorChange:r,placementState:s,setPlacementState:i,children:n})},"Popper"),_n="PopperAnchor",Mn=P.forwardRef(Y(function(e,n){const{__scopePopper:o,virtualRef:r,...s}=e,i=ce(_n,o),c=P.useRef(null),l=i.onAnchorChange,a=P.useCallback(h=>{c.current=h,h&&l(h)},[l]),d=Yt(n,a),u=P.useRef(null);P.useEffect(()=>{if(!r)return;const h=u.current;u.current=r.current,h!==u.current&&l(u.current)});const m=i.placementState&&xt(i.placementState),f=m?.[0],p=m?.[1];return r?null:Q.jsx(Pt.div,{"data-radix-popper-side":f,"data-radix-popper-align":p,...s,ref:d})},"PopperAnchor")),le="PopperContent",[Wn,In]=se(le),Fn=P.forwardRef(Y(function(e,n){const{__scopePopper:o,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:c=0,arrowPadding:l=0,avoidCollisions:a=!0,collisionBoundary:d=[],collisionPadding:u=0,sticky:m="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:h,...w}=e,g=ce(le,o),[x,b]=P.useState(null),v=Yt(n,b),[A,y]=P.useState(null),O=qt(A),S=O?.width??0,$=O?.height??0,C=r+(i!=="center"?"-"+i:""),H=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},k=Array.isArray(d)?d:[d],T=k.length>0,E={padding:H,boundary:k.filter(ae),altBoundary:T},{refs:W,floatingStyles:L,placement:_,isPositioned:R,middlewareData:D}=bn({strategy:"fixed",placement:C,whileElementsMounted:Y((...yt)=>un(...yt,{animationFrame:p==="always"}),"whileElementsMounted"),elements:{reference:g.anchor},middleware:[Rn({mainAxis:s+$,alignmentAxis:c}),a&&On({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?Pn():void 0,...E}),a&&Cn({...E}),Sn({...E,apply:Y(({elements:yt,rects:Wt,availableWidth:he,availableHeight:ge})=>{const{width:we,height:xe}=Wt.reference,it=yt.floating.style;it.setProperty("--radix-popper-available-width",`${he}px`),it.setProperty("--radix-popper-available-height",`${ge}px`),it.setProperty("--radix-popper-anchor-width",`${we}px`),it.setProperty("--radix-popper-anchor-height",`${xe}px`)},"apply")}),A&&Ln({element:A,padding:l}),Hn({arrowWidth:S,arrowHeight:$}),f&&En({strategy:"referenceHidden",...E,boundary:T?E.boundary:void 0})]}),F=g.setPlacementState;ct(()=>(F(_),()=>{F(void 0)}),[_,F]);const[$t,_t]=xt(_),Mt=be(h);ct(()=>{R&&Mt?.()},[R,Mt]);const fe=D.arrow?.x,ue=D.arrow?.y,de=D.arrow?.centerOffset!==0,[pe,me]=P.useState();return ct(()=>{x&&me(window.getComputedStyle(x).zIndex)},[x]),Q.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...L,transform:R?L.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:pe,"--radix-popper-transform-origin":[D.transformOrigin?.x,D.transformOrigin?.y].join(" "),...D.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:Q.jsx(Wn,{scope:o,placedSide:$t,placedAlign:_t,onArrowChange:y,arrowX:fe,arrowY:ue,shouldHideArrow:de,children:Q.jsx(Pt.div,{"data-side":$t,"data-align":_t,...w,ref:v,style:{...w.style,animation:R?w.style?.animation:"none"}})})})},"PopperContent"));function ae(t){return t!==null}Y(ae,"isNotNull");var Hn=Y(t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:o,middlewareData:r}=e,i=r.arrow?.centerOffset!==0,c=i?0:t.arrowWidth,l=i?0:t.arrowHeight,[a,d]=xt(n),u={start:"0%",center:"50%",end:"100%"}[d],m=(r.arrow?.x??0)+c/2,f=(r.arrow?.y??0)+l/2;let p="",h="";return a==="bottom"?(p=i?u:`${m}px`,h=`${-l}px`):a==="top"?(p=i?u:`${m}px`,h=`${o.floating.height+l}px`):a==="right"?(p=`${-l}px`,h=i?u:`${f}px`):a==="left"&&(p=`${o.floating.width+l}px`,h=i?u:`${f}px`),{data:{x:p,y:h}}}}),"transformOrigin");function xt(t){const[e,n="center"]=t.split("-");return[e,n]}Y(xt,"getSideAndAlignFromPlacement");var Xn=$n,Yn=Mn,qn=Fn,kn=Object.defineProperty,zn=(t,e)=>kn(t,"name",{value:e,configurable:!0}),Nn=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Vn=P.forwardRef(zn(function(e,n){return Q.jsx(Pt.span,{...e,ref:n,style:{...Nn,...e.style}})},"VisuallyHidden")),Un=Vn;export{Yn as A,qn as C,Xn as R,Nn as V,Un as a,jn as c};
|
|
1
|
+
import{r as P,l as ct,V as ye,n as ve,m as Yt,W as be,j as Q,P as Pt}from"./settings-CyLnISOv.js";var Ae=Object.defineProperty,Re=(t,e)=>Ae(t,"name",{value:e,configurable:!0});function qt(t){const[e,n]=P.useState(void 0);return ct(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const s=r[0];let i,c;if("borderBoxSize"in s){const l=s.borderBoxSize,a=Array.isArray(l)?l[0]:l;i=a.inlineSize,c=a.blockSize}else i=t.offsetWidth,c=t.offsetHeight;n({width:i,height:c})});return o.observe(t,{box:"border-box"}),()=>o.unobserve(t)}else n(void 0)},[t]),e}Re(qt,"useSize");const Oe=["top","right","bottom","left"],q=Math.min,B=Math.max,at=Math.round,st=Math.floor,j=t=>({x:t,y:t}),Pe={left:"right",right:"left",bottom:"top",top:"bottom"};function Ut(t,e,n){return B(t,q(e,n))}function I(t,e){return typeof t=="function"?t(e):t}function U(t){return t.split("-")[0]}function et(t){return t.split("-")[1]}function Ct(t){return t==="x"?"y":"x"}function St(t){return t==="y"?"height":"width"}function z(t){const e=t[0];return e==="t"||e==="b"?"y":"x"}function Et(t){return Ct(z(t))}function Ce(t,e,n){n===void 0&&(n=!1);const o=et(t),r=Et(t),s=St(r);let i=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(i=ft(i)),[i,ft(i)]}function Se(t){const e=ft(t);return[Rt(t),e,Rt(e)]}function Rt(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const Ft=["left","right"],Ht=["right","left"],Ee=["top","bottom"],Le=["bottom","top"];function De(t,e,n){switch(t){case"top":case"bottom":return n?e?Ht:Ft:e?Ft:Ht;case"left":case"right":return e?Ee:Le;default:return[]}}function Te(t,e,n,o){const r=et(t);let s=De(U(t),n==="start",o);return r&&(s=s.map(i=>i+"-"+r),e&&(s=s.concat(s.map(Rt)))),s}function ft(t){const e=U(t);return Pe[e]+t.slice(e.length)}function $e(t){var e,n,o,r;return{top:(e=t.top)!=null?e:0,right:(n=t.right)!=null?n:0,bottom:(o=t.bottom)!=null?o:0,left:(r=t.left)!=null?r:0}}function Kt(t){return typeof t!="number"?$e(t):{top:t,right:t,bottom:t,left:t}}function ut(t){const{x:e,y:n,width:o,height:r}=t;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}function kt(t,e,n){let{reference:o,floating:r}=t;const s=z(e),i=Et(e),c=St(i),l=U(e),a=s==="y",d=o.x+o.width/2-r.width/2,u=o.y+o.height/2-r.height/2,m=o[c]/2-r[c]/2;let f;switch(l){case"top":f={x:d,y:o.y-r.height};break;case"bottom":f={x:d,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:u};break;case"left":f={x:o.x-r.width,y:u};break;default:f={x:o.x,y:o.y}}const p=et(e);return p&&(f[i]+=m*(p==="end"?1:-1)*(n&&a?-1:1)),f}async function _e(t,e){var n;e===void 0&&(e={});const{x:o,y:r,platform:s,rects:i,elements:c,strategy:l}=t,{boundary:a="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:m=!1,padding:f=0}=I(e,t),p=Kt(f),w=c[m?u==="floating"?"reference":"floating":u],g=ut(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(w)))==null||n?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:a,rootBoundary:d,strategy:l})),x=u==="floating"?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),v=await(s.isElement==null?void 0:s.isElement(b))&&await(s.getScale==null?void 0:s.getScale(b))||{x:1,y:1},A=ut(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:b,strategy:l}):x);return{top:(g.top-A.top+p.top)/v.y,bottom:(A.bottom-g.bottom+p.bottom)/v.y,left:(g.left-A.left+p.left)/v.x,right:(A.right-g.right+p.right)/v.x}}const Me=50,We=async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:i}=n,c=i.detectOverflow?i:{...i,detectOverflow:_e},l=await(i.isRTL==null?void 0:i.isRTL(e));let a=await i.getElementRects({reference:t,floating:e,strategy:r}),{x:d,y:u}=kt(a,o,l),m=o,f=0;const p={};for(let h=0;h<s.length;h++){const w=s[h];if(!w)continue;const{name:g,fn:x}=w,{x:b,y:v,data:A,reset:y}=await x({x:d,y:u,initialPlacement:o,placement:m,strategy:r,middlewareData:p,rects:a,platform:c,elements:{reference:t,floating:e}});d=b??d,u=v??u,p[g]={...p[g],...A},y&&f<Me&&(f++,typeof y=="object"&&(y.placement&&(m=y.placement),y.rects&&(a=y.rects===!0?await i.getElementRects({reference:t,floating:e,strategy:r}):y.rects),{x:d,y:u}=kt(a,m,l)),h=-1)}return{x:d,y:u,placement:m,strategy:r,middlewareData:p}},Fe=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:s,platform:i,elements:c,middlewareData:l}=e,{element:a,padding:d=0}=I(t,e)||{};if(a==null)return{};const u=Kt(d),m={x:n,y:o},f=Et(r),p=St(f),h=await i.getDimensions(a),w=f==="y",g=w?"top":"left",x=w?"bottom":"right",b=w?"clientHeight":"clientWidth",v=s.reference[p]+s.reference[f]-m[f]-s.floating[p],A=m[f]-s.reference[f],y=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a));let O=y?y[b]:0;(!O||!await(i.isElement==null?void 0:i.isElement(y)))&&(O=c.floating[b]||s.floating[p]);const S=v/2-A/2,$=O/2-h[p]/2-1,C=q(u[g],$),H=q(u[x],$),k=O-h[p]-H,T=O/2-h[p]/2+S,E=Ut(C,T,k),W=!l.arrow&&et(r)!=null&&T!==E&&s.reference[p]/2-(T<C?C:H)-h[p]/2<0,L=W?T<C?T-C:T-k:0;return{[f]:m[f]+L,data:{[f]:E,centerOffset:T-E-L,...W&&{alignmentOffset:L}},reset:W}}}),He=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:s,rects:i,initialPlacement:c,platform:l,elements:a}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...w}=I(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const g=U(r),x=z(c),b=U(c)===c,v=await(l.isRTL==null?void 0:l.isRTL(a.floating)),A=m||(b||!h?[ft(c)]:Se(c)),y=p!=="none";!m&&y&&A.push(...Te(c,h,p,v));const O=[c,...A],S=await l.detectOverflow(e,w),$=[];let C=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&$.push(S[g]),u){const E=Ce(r,i,v);$.push(S[E[0]],S[E[1]])}if(C=[...C,{placement:r,overflows:$}],!$.every(E=>E<=0)){var H,k;const E=(((H=s.flip)==null?void 0:H.index)||0)+1,W=O[E];if(W&&(!(u==="alignment"?x!==z(W):!1)||C.every(R=>z(R.placement)===x?R.overflows[0]>0:!0)))return{data:{index:E,overflows:C},reset:{placement:W}};let L=(k=C.filter(_=>_.overflows[0]<=0).sort((_,R)=>_.overflows[1]-R.overflows[1])[0])==null?void 0:k.placement;if(!L)switch(f){case"bestFit":{var T;const _=(T=C.filter(R=>{if(y){const D=z(R.placement);return D===x||D==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(D=>D>0).reduce((D,F)=>D+F,0)]).sort((R,D)=>R[1]-D[1])[0])==null?void 0:T[0];_&&(L=_);break}case"initialPlacement":L=c;break}if(r!==L)return{reset:{placement:L}}}return{}}}};function zt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Nt(t){return Oe.some(e=>t[e]>=0)}const ke=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n,platform:o}=e,{strategy:r="referenceHidden",...s}=I(t,e);switch(r){case"referenceHidden":{const i=await o.detectOverflow(e,{...s,elementContext:"reference"}),c=zt(i,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Nt(c)}}}case"escaped":{const i=await o.detectOverflow(e,{...s,altBoundary:!0}),c=zt(i,n.floating);return{data:{escapedOffsets:c,escaped:Nt(c)}}}default:return{}}}}},Zt=new Set(["left","top"]);async function ze(t,e){const{placement:n,platform:o,elements:r}=t,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=U(n),c=et(n),l=z(n)==="y",a=Zt.has(i)?-1:1,d=s&&l?-1:1,u=I(e,t);let{mainAxis:m,crossAxis:f,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&typeof p=="number"&&(f=c==="end"?p*-1:p),l?{x:f*d,y:m*a}:{x:m*a,y:f*d}}const Ne=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:r,y:s,placement:i,middlewareData:c}=e,l=await ze(e,t);return i===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:s+l.y,data:{...l,placement:i}}}}},Ve=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:r,platform:s}=e,{mainAxis:i=!0,crossAxis:c=!1,limiter:l={fn:x=>{let{x:b,y:v}=x;return{x:b,y:v}}},...a}=I(t,e),d={x:n,y:o},u=await s.detectOverflow(e,a),m=z(r),f=Ct(m);let p=d[f],h=d[m];const w=(x,b)=>Ut(b+u[x==="y"?"top":"left"],b,b-u[x==="y"?"bottom":"right"]);i&&(p=w(f,p)),c&&(h=w(m,h));const g=l.fn({...e,[f]:p,[m]:h});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[f]:i,[m]:c}}}}}},Be=function(t){return t===void 0&&(t={}),{options:t,fn(e){var n,o;const{x:r,y:s,placement:i,rects:c,middlewareData:l}=e,{offset:a=0,mainAxis:d=!0,crossAxis:u=!0}=I(t,e),m={x:r,y:s},f=z(i),p=Ct(f);let h=m[p],w=m[f];const g=I(a,e),x=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:(n=g.mainAxis)!=null?n:0,crossAxis:(o=g.crossAxis)!=null?o:0};if(d){const A=p==="y"?"height":"width",y=c.reference[p]-c.floating[A]+x.mainAxis,O=c.reference[p]+c.reference[A]-x.mainAxis;h<y?h=y:h>O&&(h=O)}if(u){var b,v;const A=p==="y"?"width":"height",y=Zt.has(U(i)),O=c.reference[f]-c.floating[A]+(y&&((b=l.offset)==null?void 0:b[f])||0)+(y?0:x.crossAxis),S=c.reference[f]+c.reference[A]+(y?0:((v=l.offset)==null?void 0:v[f])||0)-(y?x.crossAxis:0);w<O?w=O:w>S&&(w=S)}return{[p]:h,[f]:w}}}},je=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:o,platform:r,elements:s}=e,{apply:i=()=>{},...c}=I(t,e),l=await r.detectOverflow(e,c),a=U(n),d=et(n),u=z(n)==="y",{width:m,height:f}=o.floating;let p,h;a==="top"||a==="bottom"?(p=a,h=d===(await(r.isRTL==null?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(h=a,p=d==="end"?"top":"bottom");const w=f-l.top-l.bottom,g=m-l.left-l.right,x=q(f-l[p],w),b=q(m-l[h],g),v=e.middlewareData.shift,A=!v;let y=x,O=b;v!=null&&v.enabled.x&&(O=g),v!=null&&v.enabled.y&&(y=w),A&&!d&&(u?O=m-2*B(l.left,l.right):y=f-2*B(l.top,l.bottom)),await i({...e,availableWidth:O,availableHeight:y});const S=await r.getDimensions(s.floating);return m!==S.width||f!==S.height?{reset:{rects:!0}}:{}}}};function pt(){return typeof window<"u"}function nt(t){return Gt(t)?(t.nodeName||"").toLowerCase():"#document"}function M(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function X(t){var e;return(e=(Gt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Gt(t){return pt()?t instanceof Node||t instanceof M(t).Node:!1}function N(t){return pt()?t instanceof Element||t instanceof M(t).Element:!1}function K(t){return pt()?t instanceof HTMLElement||t instanceof M(t).HTMLElement:!1}function Vt(t){return!pt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof M(t).ShadowRoot}function mt(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=V(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&r!=="inline"&&r!=="contents"}function Ie(t){return/^(table|td|th)$/.test(nt(t))}function ht(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const Xe=/transform|translate|scale|rotate|perspective|filter/,Ye=/paint|layout|strict|content/,Z=t=>!!t&&t!=="none";let vt;function Lt(t){const e=N(t)?V(t):t;return Z(e.transform)||Z(e.translate)||Z(e.scale)||Z(e.rotate)||Z(e.perspective)||!Dt()&&(Z(e.backdropFilter)||Z(e.filter))||Xe.test(e.willChange||"")||Ye.test(e.contain||"")}function qe(t){let e=G(t);for(;K(e)&&!ot(e);){if(Lt(e))return e;if(ht(e))return null;e=G(e)}return null}function Dt(){return vt==null&&(vt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),vt}function ot(t){return/^(html|body|#document)$/.test(nt(t))}function V(t){return M(t).getComputedStyle(t)}function gt(t){return N(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function G(t){if(nt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Vt(t)&&t.host||X(t);return Vt(e)?e.host:e}function Jt(t){const e=G(t);return ot(e)?(t.ownerDocument||t).body:K(e)&&mt(e)?e:Jt(e)}function rt(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=Jt(t),s=r===((o=t.ownerDocument)==null?void 0:o.body),i=M(r);if(s){const c=Ot(i);return e.concat(i,i.visualViewport||[],mt(r)?r:[],c&&n?rt(c):[])}else return e.concat(r,rt(r,[],n))}function Ot(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Qt(t){const e=V(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=K(t),s=r?t.offsetWidth:n,i=r?t.offsetHeight:o,c=at(n)!==s||at(o)!==i;return c&&(n=s,o=i),{width:n,height:o,$:c}}function Tt(t){return N(t)?t:t.contextElement}function tt(t){const e=Tt(t);if(!K(e))return j(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:s}=Qt(e);let i=(s?at(n.width):n.width)/o,c=(s?at(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}const Ue=j(0);function te(t){const e=M(t);return!Dt()||!e.visualViewport?Ue:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Ke(t,e,n){return e===void 0&&(e=!1),!!n&&e&&n===M(t)}function J(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),s=Tt(t);let i=j(1);e&&(o?N(o)&&(i=tt(o)):i=tt(t));const c=Ke(s,n,o)?te(s):j(0);let l=(r.left+c.x)/i.x,a=(r.top+c.y)/i.y,d=r.width/i.x,u=r.height/i.y;if(s&&o){const m=M(s),f=N(o)?M(o):o;let p=m,h=Ot(p);for(;h&&f!==p;){const w=tt(h),g=h.getBoundingClientRect(),x=V(h),b=g.left+(h.clientLeft+parseFloat(x.paddingLeft))*w.x,v=g.top+(h.clientTop+parseFloat(x.paddingTop))*w.y;l*=w.x,a*=w.y,d*=w.x,u*=w.y,l+=b,a+=v,p=M(h),h=Ot(p)}}return ut({width:d,height:u,x:l,y:a})}function wt(t,e){const n=gt(t).scrollLeft;return e?e.left+n:J(X(t)).left+n}function ee(t,e){const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-wt(t,n),r=n.top+e.scrollTop;return{x:o,y:r}}function Ze(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const s=r==="fixed",i=X(o),c=e?ht(e.floating):!1;if(o===i||c&&s)return n;let l={scrollLeft:0,scrollTop:0},a=j(1);const d=j(0),u=K(o);if((u||!s)&&((nt(o)!=="body"||mt(i))&&(l=gt(o)),u)){const f=J(o);a=tt(o),d.x=f.x+o.clientLeft,d.y=f.y+o.clientTop}const m=i&&!u&&!s?ee(i,l):j(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+d.x+m.x,y:n.y*a.y-l.scrollTop*a.y+d.y+m.y}}function Ge(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Je(t){const e=gt(t),n=t.ownerDocument.body,o=B(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),r=B(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-e.scrollLeft+wt(t);const i=-e.scrollTop;return V(n).direction==="rtl"&&(s+=B(t.clientWidth,n.clientWidth)-o),{width:o,height:r,x:s,y:i}}const Qe=25;function tn(t,e,n){n===void 0&&(n="viewport");const o=n==="layoutViewport",r=M(t),s=X(t),i=r.visualViewport;let c=s.clientWidth,l=s.clientHeight,a=0,d=0;if(i){const m=!Dt()||e==="fixed";o?m||(a=-i.offsetLeft,d=-i.offsetTop):(c=i.width,l=i.height,m&&(a=i.offsetLeft,d=i.offsetTop))}if(wt(s)<=0){const m=s.ownerDocument,f=m.body,p=getComputedStyle(f),h=m.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,w=Math.abs(s.clientWidth-f.clientWidth-h),g=getComputedStyle(s).scrollbarGutter==="stable both-edges"?w/2:w;g<=Qe&&(c-=g)}return{width:c,height:l,x:a,y:d}}function en(t,e){const n=J(t,!0,e==="fixed"),o=n.top+t.clientTop,r=n.left+t.clientLeft,s=tt(t),i=t.clientWidth*s.x,c=t.clientHeight*s.y,l=r*s.x,a=o*s.y;return{width:i,height:c,x:l,y:a}}function Bt(t,e,n){let o;if(e==="viewport"||e==="layoutViewport")o=tn(t,n,e);else if(e==="document")o=Je(X(t));else if(N(e))o=en(e,n);else{const r=te(t);o={x:e.x-r.x,y:e.y-r.y,width:e.width,height:e.height}}return ut(o)}function nn(t,e){const n=e.get(t);if(n)return n;let o=rt(t,[],!1).filter(c=>N(c)&&nt(c)!=="body"),r=null;const s=V(t).position==="fixed";let i=s?G(t):t;for(;N(i)&&!ot(i);){const c=V(i),l=Lt(i),a=r?r.position:s?"fixed":"";!l&&(a==="fixed"||a==="absolute"&&c.position==="static")?o=o.filter(u=>u!==i):r=c,i=G(i)}return e.set(t,o),o}function on(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const i=[...n==="clippingAncestors"?ht(e)?[]:nn(e,this._c):[].concat(n),o],c=Bt(e,i[0],r);let l=c.top,a=c.right,d=c.bottom,u=c.left;for(let m=1;m<i.length;m++){const f=Bt(e,i[m],r);l=B(f.top,l),a=q(f.right,a),d=q(f.bottom,d),u=B(f.left,u)}return{width:a-u,height:d-l,x:u,y:l}}function rn(t){const{width:e,height:n}=Qt(t);return{width:e,height:n}}function sn(t,e,n){const o=K(e),r=X(e),s=n==="fixed",i=J(t,!0,s,e);let c={scrollLeft:0,scrollTop:0};const l=j(0);if((o||!s)&&((nt(e)!=="body"||mt(r))&&(c=gt(e)),o)){const m=J(e,!0,s,e);l.x=m.x+e.clientLeft,l.y=m.y+e.clientTop}!o&&r&&(l.x=wt(r));const a=r&&!o&&!s?ee(r,c):j(0),d=i.left+c.scrollLeft-l.x-a.x,u=i.top+c.scrollTop-l.y-a.y;return{x:d,y:u,width:i.width,height:i.height}}function bt(t){return V(t).position==="static"}function jt(t,e){if(!K(t)||V(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return X(t)===n&&(n=n.ownerDocument.body),n}function ne(t,e){const n=M(t);if(ht(t))return n;if(!K(t)){let r=G(t);for(;r&&!ot(r);){if(N(r)&&!bt(r))return r;r=G(r)}return n}let o=jt(t,e);for(;o&&Ie(o)&&bt(o);)o=jt(o,e);return o&&ot(o)&&bt(o)&&!Lt(o)?n:o||qe(t)||n}const cn=async function(t){const e=this.getOffsetParent||ne,n=this.getDimensions,o=await n(t.floating);return{reference:sn(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function ln(t){return V(t).direction==="rtl"}const an={convertOffsetParentRelativeRectToViewportRelativeRect:Ze,getDocumentElement:X,getClippingRect:on,getOffsetParent:ne,getElementRects:cn,getClientRects:Ge,getDimensions:rn,getScale:tt,isElement:N,isRTL:ln};function oe(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function fn(t,e,n){let o=null,r;const s=X(t);function i(){var d;clearTimeout(r),(d=o)==null||d.disconnect(),o=null}function c(d,u){d===void 0&&(d=!1),u===void 0&&(u=1),i();const m=t.getBoundingClientRect(),{left:f,top:p,width:h,height:w}=m;if(d||e(),!h||!w)return;const g=st(p),x=st(s.clientWidth-(f+h)),b=st(s.clientHeight-(p+w)),v=st(f),y={rootMargin:-g+"px "+-x+"px "+-b+"px "+-v+"px",threshold:B(0,q(1,u))||1};let O=!0;function S($){const C=$[0].intersectionRatio;if(!oe(m,t.getBoundingClientRect()))return c();if(C!==u){if(!O)return c();C?c(!1,C):r=setTimeout(()=>{c(!1,1e-7)},1e3)}O=!1}try{o=new IntersectionObserver(S,{...y,root:s.ownerDocument})}catch{o=new IntersectionObserver(S,y)}o.observe(t)}const l=M(t),a=()=>c(n);return l.addEventListener("resize",a),c(!0),()=>{l.removeEventListener("resize",a),i()}}function un(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,a=Tt(t),d=r||s?[...a?rt(a):[],...e?rt(e):[]]:[];d.forEach(g=>{r&&g.addEventListener("scroll",n),s&&g.addEventListener("resize",n)});const u=a&&c?fn(a,n,s):null;let m=-1,f=null;i&&(f=new ResizeObserver(g=>{let[x]=g;x&&x.target===a&&f&&e&&(f.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var b;(b=f)==null||b.observe(e)})),n()}),a&&!l&&f.observe(a),e&&f.observe(e));let p,h=l?J(t):null;l&&w();function w(){const g=J(t);h&&!oe(h,g)&&n(),h=g,p=requestAnimationFrame(w)}return n(),()=>{var g;d.forEach(x=>{r&&x.removeEventListener("scroll",n),s&&x.removeEventListener("resize",n)}),u?.(),(g=f)==null||g.disconnect(),f=null,l&&cancelAnimationFrame(p)}}const dn=Ne,pn=Ve,mn=He,hn=je,gn=ke,It=Fe,wn=Be,xn=(t,e,n)=>{const o=new Map,r=n??{},s={...an,...r.platform,_c:o};return We(t,e,{...r,platform:s})};var yn=typeof document<"u",vn=function(){},lt=yn?P.useLayoutEffect:vn;function dt(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,o,r;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(o=n;o--!==0;)if(!dt(t[o],e[o]))return!1;return!0}if(r=Object.keys(t),n=r.length,n!==Object.keys(e).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(e,r[o]))return!1;for(o=n;o--!==0;){const s=r[o];if(!(s==="_owner"&&t.$$typeof)&&!dt(t[s],e[s]))return!1}return!0}return t!==t&&e!==e}function re(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Xt(t,e){const n=re(t);return Math.round(e*n)/n}function At(t){const e=P.useRef(t);return lt(()=>{e.current=t}),e}function bn(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:s,floating:i}={},transform:c=!0,whileElementsMounted:l,open:a}=t,[d,u]=P.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[m,f]=P.useState(o);dt(m,o)||f(o);const[p,h]=P.useState(null),[w,g]=P.useState(null),x=P.useCallback(R=>{R!==y.current&&(y.current=R,h(R))},[]),b=P.useCallback(R=>{R!==O.current&&(O.current=R,g(R))},[]),v=s||p,A=i||w,y=P.useRef(null),O=P.useRef(null),S=P.useRef(d),$=l!=null,C=At(l),H=At(r),k=At(a),T=P.useCallback(()=>{if(!y.current||!O.current)return;const R={placement:e,strategy:n,middleware:m};H.current&&(R.platform=H.current),xn(y.current,O.current,R).then(D=>{const F={...D,isPositioned:k.current!==!1};E.current&&!dt(S.current,F)&&(S.current=F,ye.flushSync(()=>{u(F)}))})},[m,e,n,H,k]);lt(()=>{a===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,u(R=>({...R,isPositioned:!1})))},[a]);const E=P.useRef(!1);lt(()=>(E.current=!0,()=>{E.current=!1}),[]),lt(()=>{if(v&&(y.current=v),A&&(O.current=A),v&&A){if(C.current)return C.current(v,A,T);T()}},[v,A,T,C,$]);const W=P.useMemo(()=>({reference:y,floating:O,setReference:x,setFloating:b}),[x,b]),L=P.useMemo(()=>({reference:v,floating:A}),[v,A]),_=P.useMemo(()=>{const R={position:n,left:0,top:0};if(!L.floating)return R;const D=Xt(L.floating,d.x),F=Xt(L.floating,d.y);return c?{...R,transform:"translate("+D+"px, "+F+"px)",...re(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:D,top:F}},[n,c,L.floating,d.x,d.y]);return P.useMemo(()=>({...d,update:T,refs:W,elements:L,floatingStyles:_}),[d,T,W,L,_])}const An=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:o,padding:r}=typeof t=="function"?t(n):t;return o&&e(o)?o.current!=null?It({element:o.current,padding:r}).fn(n):{}:o?It({element:o,padding:r}).fn(n):{}}}},Rn=(t,e)=>{const n=dn(t);return{name:n.name,fn:n.fn,options:[t,e]}},On=(t,e)=>{const n=pn(t);return{name:n.name,fn:n.fn,options:[t,e]}},Pn=(t,e)=>({fn:wn(t).fn,options:[t,e]}),Cn=(t,e)=>{const n=mn(t);return{name:n.name,fn:n.fn,options:[t,e]}},Sn=(t,e)=>{const n=hn(t);return{name:n.name,fn:n.fn,options:[t,e]}},En=(t,e)=>{const n=gn(t);return{name:n.name,fn:n.fn,options:[t,e]}},Ln=(t,e)=>{const n=An(t);return{name:n.name,fn:n.fn,options:[t,e]}};var Dn=Object.defineProperty,Y=(t,e)=>Dn(t,"name",{value:e,configurable:!0}),ie="Popper",[se,jn]=ve(ie),[Tn,ce]=se(ie),$n=Y(t=>{const{__scopePopper:e,children:n}=t,[o,r]=P.useState(null),[s,i]=P.useState(void 0);return Q.jsx(Tn,{scope:e,anchor:o,onAnchorChange:r,placementState:s,setPlacementState:i,children:n})},"Popper"),_n="PopperAnchor",Mn=P.forwardRef(Y(function(e,n){const{__scopePopper:o,virtualRef:r,...s}=e,i=ce(_n,o),c=P.useRef(null),l=i.onAnchorChange,a=P.useCallback(h=>{c.current=h,h&&l(h)},[l]),d=Yt(n,a),u=P.useRef(null);P.useEffect(()=>{if(!r)return;const h=u.current;u.current=r.current,h!==u.current&&l(u.current)});const m=i.placementState&&xt(i.placementState),f=m?.[0],p=m?.[1];return r?null:Q.jsx(Pt.div,{"data-radix-popper-side":f,"data-radix-popper-align":p,...s,ref:d})},"PopperAnchor")),le="PopperContent",[Wn,In]=se(le),Fn=P.forwardRef(Y(function(e,n){const{__scopePopper:o,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:c=0,arrowPadding:l=0,avoidCollisions:a=!0,collisionBoundary:d=[],collisionPadding:u=0,sticky:m="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:h,...w}=e,g=ce(le,o),[x,b]=P.useState(null),v=Yt(n,b),[A,y]=P.useState(null),O=qt(A),S=O?.width??0,$=O?.height??0,C=r+(i!=="center"?"-"+i:""),H=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},k=Array.isArray(d)?d:[d],T=k.length>0,E={padding:H,boundary:k.filter(ae),altBoundary:T},{refs:W,floatingStyles:L,placement:_,isPositioned:R,middlewareData:D}=bn({strategy:"fixed",placement:C,whileElementsMounted:Y((...yt)=>un(...yt,{animationFrame:p==="always"}),"whileElementsMounted"),elements:{reference:g.anchor},middleware:[Rn({mainAxis:s+$,alignmentAxis:c}),a&&On({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?Pn():void 0,...E}),a&&Cn({...E}),Sn({...E,apply:Y(({elements:yt,rects:Wt,availableWidth:he,availableHeight:ge})=>{const{width:we,height:xe}=Wt.reference,it=yt.floating.style;it.setProperty("--radix-popper-available-width",`${he}px`),it.setProperty("--radix-popper-available-height",`${ge}px`),it.setProperty("--radix-popper-anchor-width",`${we}px`),it.setProperty("--radix-popper-anchor-height",`${xe}px`)},"apply")}),A&&Ln({element:A,padding:l}),Hn({arrowWidth:S,arrowHeight:$}),f&&En({strategy:"referenceHidden",...E,boundary:T?E.boundary:void 0})]}),F=g.setPlacementState;ct(()=>(F(_),()=>{F(void 0)}),[_,F]);const[$t,_t]=xt(_),Mt=be(h);ct(()=>{R&&Mt?.()},[R,Mt]);const fe=D.arrow?.x,ue=D.arrow?.y,de=D.arrow?.centerOffset!==0,[pe,me]=P.useState();return ct(()=>{x&&me(window.getComputedStyle(x).zIndex)},[x]),Q.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...L,transform:R?L.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:pe,"--radix-popper-transform-origin":[D.transformOrigin?.x,D.transformOrigin?.y].join(" "),...D.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:Q.jsx(Wn,{scope:o,placedSide:$t,placedAlign:_t,onArrowChange:y,arrowX:fe,arrowY:ue,shouldHideArrow:de,children:Q.jsx(Pt.div,{"data-side":$t,"data-align":_t,...w,ref:v,style:{...w.style,animation:R?w.style?.animation:"none"}})})})},"PopperContent"));function ae(t){return t!==null}Y(ae,"isNotNull");var Hn=Y(t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:o,middlewareData:r}=e,i=r.arrow?.centerOffset!==0,c=i?0:t.arrowWidth,l=i?0:t.arrowHeight,[a,d]=xt(n),u={start:"0%",center:"50%",end:"100%"}[d],m=(r.arrow?.x??0)+c/2,f=(r.arrow?.y??0)+l/2;let p="",h="";return a==="bottom"?(p=i?u:`${m}px`,h=`${-l}px`):a==="top"?(p=i?u:`${m}px`,h=`${o.floating.height+l}px`):a==="right"?(p=`${-l}px`,h=i?u:`${f}px`):a==="left"&&(p=`${o.floating.width+l}px`,h=i?u:`${f}px`),{data:{x:p,y:h}}}}),"transformOrigin");function xt(t){const[e,n="center"]=t.split("-");return[e,n]}Y(xt,"getSideAndAlignFromPlacement");var Xn=$n,Yn=Mn,qn=Fn,kn=Object.defineProperty,zn=(t,e)=>kn(t,"name",{value:e,configurable:!0}),Nn=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Vn=P.forwardRef(zn(function(e,n){return Q.jsx(Pt.span,{...e,ref:n,style:{...Nn,...e.style}})},"VisuallyHidden")),Un=Vn;export{Yn as A,qn as C,Xn as R,Nn as V,Un as a,jn as c};
|