sqlmesh 0.181.2.dev24__py3-none-any.whl → 0.181.2.dev25__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- sqlmesh/_version.py +2 -2
- {sqlmesh-0.181.2.dev24.dist-info → sqlmesh-0.181.2.dev25.dist-info}/METADATA +1 -1
- {sqlmesh-0.181.2.dev24.dist-info → sqlmesh-0.181.2.dev25.dist-info}/RECORD +50 -50
- web/client/dist/assets/{Audits-7rP8WdsD.js → Audits-9LEBiRIZ.js} +1 -1
- web/client/dist/assets/{Banner-jMPu9_jP.js → Banner-Cd1C5Udq.js} +1 -1
- web/client/dist/assets/{ChevronDownIcon-BZk6URUK.js → ChevronDownIcon-Clb0EegJ.js} +1 -1
- web/client/dist/assets/{ChevronRightIcon-Ctcbr61G.js → ChevronRightIcon-dJMaxBt0.js} +1 -1
- web/client/dist/assets/{Content-DITnFT31.js → Content-BR4S-QHM.js} +1 -1
- web/client/dist/assets/{Content-C43kcRta.js → Content-poZFtj-2.js} +1 -1
- web/client/dist/assets/{Data-B5q1KzIa.js → Data-DaQiUe8h.js} +1 -1
- web/client/dist/assets/{DataCatalog-BRzSrlJL.js → DataCatalog-DOMFDv-k.js} +1 -1
- web/client/dist/assets/{Editor-7muj9lbw.js → Editor-BcrLy189.js} +1 -1
- web/client/dist/assets/{Editor-CAMzYH0x.js → Editor-BmDyTaeT.js} +1 -1
- web/client/dist/assets/{Errors-Bbd2EOQg.js → Errors-Cjh1BMUt.js} +1 -1
- web/client/dist/assets/FileExplorer-Cdh0DRgS.js +2 -0
- web/client/dist/assets/{Footer-Cnu_IoqE.js → Footer-CrjZJkj4.js} +1 -1
- web/client/dist/assets/{Header-NJkxh8bb.js → Header-DE3bKMcG.js} +1 -1
- web/client/dist/assets/Input-BY5Rc3go.js +41 -0
- web/client/dist/assets/Lineage-CLoHrLAT.js +1 -0
- web/client/dist/assets/{ListboxShow-CwgOYGSe.js → ListboxShow-TFvq9fMB.js} +1 -1
- web/client/dist/assets/{ModelLineage-Bnes5PV4.js → ModelLineage-CB8Rie_r.js} +1 -1
- web/client/dist/assets/{Models-B_sukTY5.js → Models-DXUrmUm_.js} +1 -1
- web/client/dist/assets/{Page-DxTzPmYT.js → Page-KC6UG65M.js} +1 -1
- web/client/dist/assets/{Plan-B2b637kI.js → Plan-xbMFAnVh.js} +1 -1
- web/client/dist/assets/{PlusCircleIcon-FgfUjgrM.js → PlusCircleIcon-CoFMRFQI.js} +1 -1
- web/client/dist/assets/{ReportErrors-xnNgNULg.js → ReportErrors-mVM8O5iE.js} +1 -1
- web/client/dist/assets/{Root-BMcIwqdc.js → Root-BuQJ2VAg.js} +1 -1
- web/client/dist/assets/{SearchList-9n_6_E0k.js → SearchList-BShQn9jm.js} +1 -1
- web/client/dist/assets/{SelectEnvironment-DC6x26Ax.js → SelectEnvironment-8p6ZQ-QH.js} +1 -1
- web/client/dist/assets/{SourceList-Chz492Ne.js → SourceList-DQ72TcK1.js} +1 -1
- web/client/dist/assets/{SourceListItem-DIieM0S_.js → SourceListItem-CncMnWed.js} +1 -1
- web/client/dist/assets/{SplitPane-CmzNrZQN.js → SplitPane-BY85POxQ.js} +1 -1
- web/client/dist/assets/{Tests-DbVFKqeG.js → Tests-DeaITzzp.js} +1 -1
- web/client/dist/assets/{Welcome-DxKW_LKA.js → Welcome-Blok6Zy8.js} +1 -1
- web/client/dist/assets/{context-CzM900aY.js → context-B3nwRpP1.js} +1 -1
- web/client/dist/assets/{context-DhymIb_N.js → context-Dx2o1ZRq.js} +37 -37
- web/client/dist/assets/{editor-Bf9rhumO.js → editor-Dj_6cws7.js} +1 -1
- web/client/dist/assets/{file-CcK5Oobc.js → file-Bs2Eq56_.js} +1 -1
- web/client/dist/assets/{help-DtLmoC0U.js → help-Bolb6haG.js} +1 -1
- web/client/dist/assets/index-COQuzlwN.js +1 -0
- web/client/dist/assets/{index-KZcJd7F1.js → index-CkIQhGgw.js} +1 -1
- web/client/dist/assets/{index-CLuHMKlN.js → index-DQbKL5-Q.js} +1 -1
- web/client/dist/assets/{plan-e4fPD47J.js → plan-BZyi7OFv.js} +1 -1
- web/client/dist/assets/{project-CjyecwCx.js → project-XFpF0AcJ.js} +1 -1
- web/client/dist/assets/{transition-C8EjNcgL.js → transition-B5aHgz_j.js} +1 -1
- web/client/dist/index.html +1 -1
- web/client/dist/assets/FileExplorer-DMR02idl.js +0 -5
- web/client/dist/assets/Input-CYm3h-zG.js +0 -41
- web/client/dist/assets/Lineage-HZl7aUI5.js +0 -1
- web/client/dist/assets/index-BdXOfeCo.js +0 -1
- {sqlmesh-0.181.2.dev24.dist-info → sqlmesh-0.181.2.dev25.dist-info}/WHEEL +0 -0
- {sqlmesh-0.181.2.dev24.dist-info → sqlmesh-0.181.2.dev25.dist-info}/entry_points.txt +0 -0
- {sqlmesh-0.181.2.dev24.dist-info → sqlmesh-0.181.2.dev25.dist-info}/licenses/LICENSE +0 -0
- {sqlmesh-0.181.2.dev24.dist-info → sqlmesh-0.181.2.dev25.dist-info}/top_level.txt +0 -0
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import{r as c,R as J,j as U,b as Jn,c as we,f as eo,ad as ge,ac as pn,ae as to,m as ee,i as Bt}from"./index-KZcJd7F1.js";import{r as ot,R as no}from"./index-BdXOfeCo.js";function oo({title:e,titleId:t,...n},o){return c.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?c.createElement("title",{id:t},e):null,c.createElement("path",{fillRule:"evenodd",d:"M19.916 4.626a.75.75 0 0 1 .208 1.04l-9 13.5a.75.75 0 0 1-1.154.114l-6-6a.75.75 0 0 1 1.06-1.06l5.353 5.353 8.493-12.74a.75.75 0 0 1 1.04-.207Z",clipRule:"evenodd"}))}const ro=c.forwardRef(oo);function co({title:e,titleId:t,...n},o){return c.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?c.createElement("title",{id:t},e):null,c.createElement("path",{fillRule:"evenodd",d:"M12.53 16.28a.75.75 0 0 1-1.06 0l-7.5-7.5a.75.75 0 0 1 1.06-1.06L12 14.69l6.97-6.97a.75.75 0 1 1 1.06 1.06l-7.5 7.5Z",clipRule:"evenodd"}))}const io=c.forwardRef(co);function so({title:e,titleId:t,...n},o){return c.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?c.createElement("title",{id:t},e):null,c.createElement("path",{fillRule:"evenodd",d:"M11.47 4.72a.75.75 0 0 1 1.06 0l3.75 3.75a.75.75 0 0 1-1.06 1.06L12 6.31 8.78 9.53a.75.75 0 0 1-1.06-1.06l3.75-3.75Zm-3.75 9.75a.75.75 0 0 1 1.06 0L12 17.69l3.22-3.22a.75.75 0 1 1 1.06 1.06l-3.75 3.75a.75.75 0 0 1-1.06 0l-3.75-3.75a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const ao=c.forwardRef(so);function lo({title:e,titleId:t,...n},o){return c.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?c.createElement("title",{id:t},e):null,c.createElement("path",{fillRule:"evenodd",d:"M11.47 7.72a.75.75 0 0 1 1.06 0l7.5 7.5a.75.75 0 1 1-1.06 1.06L12 9.31l-6.97 6.97a.75.75 0 0 1-1.06-1.06l7.5-7.5Z",clipRule:"evenodd"}))}const uo=c.forwardRef(lo);function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},O.apply(null,arguments)}const fo=J.forwardRef(function({type:t="text",value:n,placeholder:o,className:r,disabled:i=!1,autoFocus:a=!1,onInput:s,onKeyDown:l},u){return n=n??"",U.jsx("input",{ref:u,className:we("placeholder:text-neutral-300 dark:placeholder:text-neutral-700",i&&"opacity-50 cursor-not-allowed",r),type:t,value:n,placeholder:o,disabled:i,autoFocus:a,readOnly:Jn(!!s),onInput:s,onKeyDown:l})});function Wt(e,[t,n]){return Math.min(n,Math.max(t,e))}function z(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Ot(e,t=[]){let n=[];function o(i,a){const s=c.createContext(a),l=n.length;n=[...n,a];function u(d){const{scope:x,children:m,...h}=d,f=(x==null?void 0:x[e][l])||s,v=c.useMemo(()=>h,Object.values(h));return c.createElement(f.Provider,{value:v},m)}function p(d,x){const m=(x==null?void 0:x[e][l])||s,h=c.useContext(m);if(h)return h;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,p]}const r=()=>{const i=n.map(a=>c.createContext(a));return function(s){const l=(s==null?void 0:s[e])||i;return c.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return r.scopeName=e,[o,po(r,...t)]}function po(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const a=o.reduce((s,{useScope:l,scopeName:u})=>{const d=l(i)[`__scope${u}`];return{...s,...d}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function mo(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function mn(...e){return t=>e.forEach(n=>mo(n,t))}function K(...e){return c.useCallback(mn(...e),e)}const Be=c.forwardRef((e,t)=>{const{children:n,...o}=e,r=c.Children.toArray(n),i=r.find(vo);if(i){const a=i.props.children,s=r.map(l=>l===i?c.Children.count(a)>1?c.Children.only(null):c.isValidElement(a)?a.props.children:null:l);return c.createElement(bt,O({},o,{ref:t}),c.isValidElement(a)?c.cloneElement(a,void 0,s):null)}return c.createElement(bt,O({},o,{ref:t}),n)});Be.displayName="Slot";const bt=c.forwardRef((e,t)=>{const{children:n,...o}=e;return c.isValidElement(n)?c.cloneElement(n,{...go(o,n.props),ref:t?mn(t,n.ref):n.ref}):c.Children.count(n)>1?c.Children.only(null):null});bt.displayName="SlotClone";const ho=({children:e})=>c.createElement(c.Fragment,null,e);function vo(e){return c.isValidElement(e)&&e.type===ho}function go(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...s)=>{i(...s),r(...s)}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function wo(e){const t=e+"CollectionProvider",[n,o]=Ot(t),[r,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=m=>{const{scope:h,children:f}=m,v=J.useRef(null),g=J.useRef(new Map).current;return J.createElement(r,{scope:h,itemMap:g,collectionRef:v},f)},s=e+"CollectionSlot",l=J.forwardRef((m,h)=>{const{scope:f,children:v}=m,g=i(s,f),w=K(h,g.collectionRef);return J.createElement(Be,{ref:w},v)}),u=e+"CollectionItemSlot",p="data-radix-collection-item",d=J.forwardRef((m,h)=>{const{scope:f,children:v,...g}=m,w=J.useRef(null),$=K(h,w),b=i(u,f);return J.useEffect(()=>(b.itemMap.set(w,{ref:w,...g}),()=>void b.itemMap.delete(w))),J.createElement(Be,{[p]:"",ref:$},v)});function x(m){const h=i(e+"CollectionConsumer",m);return J.useCallback(()=>{const v=h.collectionRef.current;if(!v)return[];const g=Array.from(v.querySelectorAll(`[${p}]`));return Array.from(h.itemMap.values()).sort((b,y)=>g.indexOf(b.ref.current)-g.indexOf(y.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:a,Slot:l,ItemSlot:d},x,o]}const xo=c.createContext(void 0);function $o(e){const t=c.useContext(xo);return e||t||"ltr"}const bo=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Z=bo.reduce((e,t)=>{const n=c.forwardRef((o,r)=>{const{asChild:i,...a}=o,s=i?Be:t;return c.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),c.createElement(s,O({},a,{ref:r}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function yo(e,t){e&&ot.flushSync(()=>e.dispatchEvent(t))}function de(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>{var o;return(o=t.current)===null||o===void 0?void 0:o.call(t,...n)},[])}function Eo(e,t=globalThis==null?void 0:globalThis.document){const n=de(e);c.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o),()=>t.removeEventListener("keydown",o)},[n,t])}const yt="dismissableLayer.update",So="dismissableLayer.pointerDownOutside",Co="dismissableLayer.focusOutside";let Ht;const Ro=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Po=c.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...u}=e,p=c.useContext(Ro),[d,x]=c.useState(null),m=(n=d==null?void 0:d.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,h]=c.useState({}),f=K(t,E=>x(E)),v=Array.from(p.layers),[g]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),w=v.indexOf(g),$=d?v.indexOf(d):-1,b=p.layersWithOutsidePointerEventsDisabled.size>0,y=$>=w,R=To(E=>{const A=E.target,_=[...p.branches].some(I=>I.contains(A));!y||_||(i==null||i(E),s==null||s(E),E.defaultPrevented||l==null||l())},m),S=Oo(E=>{const A=E.target;[...p.branches].some(I=>I.contains(A))||(a==null||a(E),s==null||s(E),E.defaultPrevented||l==null||l())},m);return Eo(E=>{$===p.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&l&&(E.preventDefault(),l()))},m),c.useEffect(()=>{if(d)return o&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Ht=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(d)),p.layers.add(d),Vt(),()=>{o&&p.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Ht)}},[d,m,o,p]),c.useEffect(()=>()=>{d&&(p.layers.delete(d),p.layersWithOutsidePointerEventsDisabled.delete(d),Vt())},[d,p]),c.useEffect(()=>{const E=()=>h({});return document.addEventListener(yt,E),()=>document.removeEventListener(yt,E)},[]),c.createElement(Z.div,O({},u,{ref:f,style:{pointerEvents:b?y?"auto":"none":void 0,...e.style},onFocusCapture:z(e.onFocusCapture,S.onFocusCapture),onBlurCapture:z(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:z(e.onPointerDownCapture,R.onPointerDownCapture)}))});function To(e,t=globalThis==null?void 0:globalThis.document){const n=de(e),o=c.useRef(!1),r=c.useRef(()=>{});return c.useEffect(()=>{const i=s=>{if(s.target&&!o.current){let u=function(){hn(So,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=u,t.addEventListener("click",r.current,{once:!0})):u()}o.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function Oo(e,t=globalThis==null?void 0:globalThis.document){const n=de(e),o=c.useRef(!1);return c.useEffect(()=>{const r=i=>{i.target&&!o.current&&hn(Co,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Vt(){const e=new CustomEvent(yt);document.dispatchEvent(e)}function hn(e,t,n,{discrete:o}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?yo(r,i):r.dispatchEvent(i)}let ft=0;function Ao(){c.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:jt()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:jt()),ft++,()=>{ft===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),ft--}},[])}function jt(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const pt="focusScope.autoFocusOnMount",mt="focusScope.autoFocusOnUnmount",Ut={bubbles:!1,cancelable:!0},Do=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:i,...a}=e,[s,l]=c.useState(null),u=de(r),p=de(i),d=c.useRef(null),x=K(t,f=>l(f)),m=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(o){let f=function($){if(m.paused||!s)return;const b=$.target;s.contains(b)?d.current=b:ve(d.current,{select:!0})},v=function($){if(m.paused||!s)return;const b=$.relatedTarget;b!==null&&(s.contains(b)||ve(d.current,{select:!0}))},g=function($){const b=document.activeElement;for(const y of $)y.removedNodes.length>0&&(s!=null&&s.contains(b)||ve(s))};document.addEventListener("focusin",f),document.addEventListener("focusout",v);const w=new MutationObserver(g);return s&&w.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",v),w.disconnect()}}},[o,s,m.paused]),c.useEffect(()=>{if(s){Kt.add(m);const f=document.activeElement;if(!s.contains(f)){const g=new CustomEvent(pt,Ut);s.addEventListener(pt,u),s.dispatchEvent(g),g.defaultPrevented||(_o(Lo(vn(s)),{select:!0}),document.activeElement===f&&ve(s))}return()=>{s.removeEventListener(pt,u),setTimeout(()=>{const g=new CustomEvent(mt,Ut);s.addEventListener(mt,p),s.dispatchEvent(g),g.defaultPrevented||ve(f??document.body,{select:!0}),s.removeEventListener(mt,p),Kt.remove(m)},0)}}},[s,u,p,m]);const h=c.useCallback(f=>{if(!n&&!o||m.paused)return;const v=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,g=document.activeElement;if(v&&g){const w=f.currentTarget,[$,b]=Io(w);$&&b?!f.shiftKey&&g===b?(f.preventDefault(),n&&ve($,{select:!0})):f.shiftKey&&g===$&&(f.preventDefault(),n&&ve(b,{select:!0})):g===w&&f.preventDefault()}},[n,o,m.paused]);return c.createElement(Z.div,O({tabIndex:-1},a,{ref:x,onKeyDown:h}))});function _o(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(ve(o,{select:t}),document.activeElement!==n)return}function Io(e){const t=vn(e),n=zt(t,e),o=zt(t.reverse(),e);return[n,o]}function vn(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function zt(e,t){for(const n of e)if(!No(n,{upTo:t}))return n}function No(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}function Mo(e){return e instanceof HTMLInputElement&&"select"in e}function ve(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Mo(e)&&t&&e.select()}}const Kt=ko();function ko(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Yt(e,t),e.unshift(t)},remove(t){var n;e=Yt(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function Yt(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function Lo(e){return e.filter(t=>t.tagName!=="A")}const te=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{},Fo=eo.useId||(()=>{});let Bo=0;function gn(e){const[t,n]=c.useState(Fo());return te(()=>{n(o=>o??String(Bo++))},[e]),e||(t?`radix-${t}`:"")}const Wo=["top","right","bottom","left"],xe=Math.min,G=Math.max,Je=Math.round,Ue=Math.floor,ie=e=>({x:e,y:e}),Ho={left:"right",right:"left",bottom:"top",top:"bottom"},Vo={start:"end",end:"start"};function Et(e,t,n){return G(e,xe(t,n))}function fe(e,t){return typeof e=="function"?e(t):e}function pe(e){return e.split("-")[0]}function _e(e){return e.split("-")[1]}function At(e){return e==="x"?"y":"x"}function Dt(e){return e==="y"?"height":"width"}function ue(e){return["top","bottom"].includes(pe(e))?"y":"x"}function _t(e){return At(ue(e))}function jo(e,t,n){n===void 0&&(n=!1);const o=_e(e),r=_t(e),i=Dt(r);let a=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=et(a)),[a,et(a)]}function Uo(e){const t=et(e);return[St(e),t,St(t)]}function St(e){return e.replace(/start|end/g,t=>Vo[t])}function zo(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:a;default:return[]}}function Ko(e,t,n,o){const r=_e(e);let i=zo(pe(e),n==="start",o);return r&&(i=i.map(a=>a+"-"+r),t&&(i=i.concat(i.map(St)))),i}function et(e){return e.replace(/left|right|bottom|top/g,t=>Ho[t])}function Yo(e){return{top:0,right:0,bottom:0,left:0,...e}}function wn(e){return typeof e!="number"?Yo(e):{top:e,right:e,bottom:e,left:e}}function tt(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Xt(e,t,n){let{reference:o,floating:r}=e;const i=ue(t),a=_t(t),s=Dt(a),l=pe(t),u=i==="y",p=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,x=o[s]/2-r[s]/2;let m;switch(l){case"top":m={x:p,y:o.y-r.height};break;case"bottom":m={x:p,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:d};break;case"left":m={x:o.x-r.width,y:d};break;default:m={x:o.x,y:o.y}}switch(_e(t)){case"start":m[a]-=x*(n&&u?-1:1);break;case"end":m[a]+=x*(n&&u?-1:1);break}return m}const Xo=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:p,y:d}=Xt(u,o,l),x=o,m={},h=0;for(let f=0;f<s.length;f++){const{name:v,fn:g}=s[f],{x:w,y:$,data:b,reset:y}=await g({x:p,y:d,initialPlacement:o,placement:x,strategy:r,middlewareData:m,rects:u,platform:a,elements:{reference:e,floating:t}});p=w??p,d=$??d,m={...m,[v]:{...m[v],...b}},y&&h<=50&&(h++,typeof y=="object"&&(y.placement&&(x=y.placement),y.rects&&(u=y.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:r}):y.rects),{x:p,y:d}=Xt(u,x,l)),f=-1)}return{x:p,y:d,placement:x,strategy:r,middlewareData:m}};async function We(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:p="viewport",elementContext:d="floating",altBoundary:x=!1,padding:m=0}=fe(t,e),h=wn(m),v=s[x?d==="floating"?"reference":"floating":d],g=tt(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:p,strategy:l})),w=d==="floating"?{x:o,y:r,width:a.floating.width,height:a.floating.height}:a.reference,$=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),b=await(i.isElement==null?void 0:i.isElement($))?await(i.getScale==null?void 0:i.getScale($))||{x:1,y:1}:{x:1,y:1},y=tt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:$,strategy:l}):w);return{top:(g.top-y.top+h.top)/b.y,bottom:(y.bottom-g.bottom+h.bottom)/b.y,left:(g.left-y.left+h.left)/b.x,right:(y.right-g.right+h.right)/b.x}}const Zo=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:p=0}=fe(e,t)||{};if(u==null)return{};const d=wn(p),x={x:n,y:o},m=_t(r),h=Dt(m),f=await a.getDimensions(u),v=m==="y",g=v?"top":"left",w=v?"bottom":"right",$=v?"clientHeight":"clientWidth",b=i.reference[h]+i.reference[m]-x[m]-i.floating[h],y=x[m]-i.reference[m],R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let S=R?R[$]:0;(!S||!await(a.isElement==null?void 0:a.isElement(R)))&&(S=s.floating[$]||i.floating[h]);const E=b/2-y/2,A=S/2-f[h]/2-1,_=xe(d[g],A),I=xe(d[w],A),F=_,D=S-f[h]-I,W=S/2-f[h]/2+E,T=Et(F,W,D),N=!l.arrow&&_e(r)!=null&&W!==T&&i.reference[h]/2-(W<F?_:I)-f[h]/2<0,V=N?W<F?W-F:W-D:0;return{[m]:x[m]+V,data:{[m]:T,centerOffset:W-T-V,...N&&{alignmentOffset:V}},reset:N}}}),qo=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:p=!0,crossAxis:d=!0,fallbackPlacements:x,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:f=!0,...v}=fe(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=pe(r),w=ue(s),$=pe(s)===s,b=await(l.isRTL==null?void 0:l.isRTL(u.floating)),y=x||($||!f?[et(s)]:Uo(s)),R=h!=="none";!x&&R&&y.push(...Ko(s,f,h,b));const S=[s,...y],E=await We(t,v),A=[];let _=((o=i.flip)==null?void 0:o.overflows)||[];if(p&&A.push(E[g]),d){const T=jo(r,a,b);A.push(E[T[0]],E[T[1]])}if(_=[..._,{placement:r,overflows:A}],!A.every(T=>T<=0)){var I,F;const T=(((I=i.flip)==null?void 0:I.index)||0)+1,N=S[T];if(N){var D;const P=d==="alignment"?w!==ue(N):!1,B=((D=_[0])==null?void 0:D.overflows[0])>0;if(!P||B)return{data:{index:T,overflows:_},reset:{placement:N}}}let V=(F=_.filter(P=>P.overflows[0]<=0).sort((P,B)=>P.overflows[1]-B.overflows[1])[0])==null?void 0:F.placement;if(!V)switch(m){case"bestFit":{var W;const P=(W=_.filter(B=>{if(R){const j=ue(B.placement);return j===w||j==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(j=>j>0).reduce((j,me)=>j+me,0)]).sort((B,j)=>B[1]-j[1])[0])==null?void 0:W[0];P&&(V=P);break}case"initialPlacement":V=s;break}if(r!==V)return{reset:{placement:V}}}return{}}}};function Zt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function qt(e){return Wo.some(t=>e[t]>=0)}const Go=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=fe(e,t);switch(o){case"referenceHidden":{const i=await We(t,{...r,elementContext:"reference"}),a=Zt(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:qt(a)}}}case"escaped":{const i=await We(t,{...r,altBoundary:!0}),a=Zt(i,n.floating);return{data:{escapedOffsets:a,escaped:qt(a)}}}default:return{}}}}};async function Qo(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),a=pe(n),s=_e(n),l=ue(n)==="y",u=["left","top"].includes(a)?-1:1,p=i&&l?-1:1,d=fe(t,e);let{mainAxis:x,crossAxis:m,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof h=="number"&&(m=s==="end"?h*-1:h),l?{x:m*p,y:x*u}:{x:x*u,y:m*p}}const Jo=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:a,middlewareData:s}=t,l=await Qo(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(o=s.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:a}}}}},er=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:v=>{let{x:g,y:w}=v;return{x:g,y:w}}},...l}=fe(e,t),u={x:n,y:o},p=await We(t,l),d=ue(pe(r)),x=At(d);let m=u[x],h=u[d];if(i){const v=x==="y"?"top":"left",g=x==="y"?"bottom":"right",w=m+p[v],$=m-p[g];m=Et(w,m,$)}if(a){const v=d==="y"?"top":"left",g=d==="y"?"bottom":"right",w=h+p[v],$=h-p[g];h=Et(w,h,$)}const f=s.fn({...t,[x]:m,[d]:h});return{...f,data:{x:f.x-n,y:f.y-o,enabled:{[x]:i,[d]:a}}}}}},tr=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=fe(e,t),p={x:n,y:o},d=ue(r),x=At(d);let m=p[x],h=p[d];const f=fe(s,t),v=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(l){const $=x==="y"?"height":"width",b=i.reference[x]-i.floating[$]+v.mainAxis,y=i.reference[x]+i.reference[$]-v.mainAxis;m<b?m=b:m>y&&(m=y)}if(u){var g,w;const $=x==="y"?"width":"height",b=["top","left"].includes(pe(r)),y=i.reference[d]-i.floating[$]+(b&&((g=a.offset)==null?void 0:g[d])||0)+(b?0:v.crossAxis),R=i.reference[d]+i.reference[$]+(b?0:((w=a.offset)==null?void 0:w[d])||0)-(b?v.crossAxis:0);h<y?h=y:h>R&&(h=R)}return{[x]:m,[d]:h}}}},nr=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:i,platform:a,elements:s}=t,{apply:l=()=>{},...u}=fe(e,t),p=await We(t,u),d=pe(r),x=_e(r),m=ue(r)==="y",{width:h,height:f}=i.floating;let v,g;d==="top"||d==="bottom"?(v=d,g=x===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(g=d,v=x==="end"?"top":"bottom");const w=f-p.top-p.bottom,$=h-p.left-p.right,b=xe(f-p[v],w),y=xe(h-p[g],$),R=!t.middlewareData.shift;let S=b,E=y;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=$),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(S=w),R&&!x){const _=G(p.left,0),I=G(p.right,0),F=G(p.top,0),D=G(p.bottom,0);m?E=h-2*(_!==0||I!==0?_+I:G(p.left,p.right)):S=f-2*(F!==0||D!==0?F+D:G(p.top,p.bottom))}await l({...t,availableWidth:E,availableHeight:S});const A=await a.getDimensions(s.floating);return h!==A.width||f!==A.height?{reset:{rects:!0}}:{}}}};function rt(){return typeof window<"u"}function Ie(e){return xn(e)?(e.nodeName||"").toLowerCase():"#document"}function Q(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ae(e){var t;return(t=(xn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function xn(e){return rt()?e instanceof Node||e instanceof Q(e).Node:!1}function re(e){return rt()?e instanceof Element||e instanceof Q(e).Element:!1}function se(e){return rt()?e instanceof HTMLElement||e instanceof Q(e).HTMLElement:!1}function Gt(e){return!rt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Q(e).ShadowRoot}function Ve(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=ce(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function or(e){return["table","td","th"].includes(Ie(e))}function ct(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function It(e){const t=Nt(),n=re(e)?ce(e):e;return["transform","translate","scale","rotate","perspective"].some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function rr(e){let t=$e(e);for(;se(t)&&!Ae(t);){if(It(t))return t;if(ct(t))return null;t=$e(t)}return null}function Nt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ae(e){return["html","body","#document"].includes(Ie(e))}function ce(e){return Q(e).getComputedStyle(e)}function it(e){return re(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $e(e){if(Ie(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Gt(e)&&e.host||ae(e);return Gt(t)?t.host:t}function $n(e){const t=$e(e);return Ae(t)?e.ownerDocument?e.ownerDocument.body:e.body:se(t)&&Ve(t)?t:$n(t)}function He(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=$n(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),a=Q(r);if(i){const s=Ct(a);return t.concat(a,a.visualViewport||[],Ve(r)?r:[],s&&n?He(s):[])}return t.concat(r,He(r,[],n))}function Ct(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bn(e){const t=ce(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=se(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:o,s=Je(n)!==i||Je(o)!==a;return s&&(n=i,o=a),{width:n,height:o,$:s}}function Mt(e){return re(e)?e:e.contextElement}function Te(e){const t=Mt(e);if(!se(t))return ie(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=bn(t);let a=(i?Je(n.width):n.width)/o,s=(i?Je(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const cr=ie(0);function yn(e){const t=Q(e);return!Nt()||!t.visualViewport?cr:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ir(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Q(e)?!1:t}function be(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=Mt(e);let a=ie(1);t&&(o?re(o)&&(a=Te(o)):a=Te(e));const s=ir(i,n,o)?yn(i):ie(0);let l=(r.left+s.x)/a.x,u=(r.top+s.y)/a.y,p=r.width/a.x,d=r.height/a.y;if(i){const x=Q(i),m=o&&re(o)?Q(o):o;let h=x,f=Ct(h);for(;f&&o&&m!==h;){const v=Te(f),g=f.getBoundingClientRect(),w=ce(f),$=g.left+(f.clientLeft+parseFloat(w.paddingLeft))*v.x,b=g.top+(f.clientTop+parseFloat(w.paddingTop))*v.y;l*=v.x,u*=v.y,p*=v.x,d*=v.y,l+=$,u+=b,h=Q(f),f=Ct(h)}}return tt({width:p,height:d,x:l,y:u})}function kt(e,t){const n=it(e).scrollLeft;return t?t.left+n:be(ae(e)).left+n}function En(e,t,n){n===void 0&&(n=!1);const o=e.getBoundingClientRect(),r=o.left+t.scrollLeft-(n?0:kt(e,o)),i=o.top+t.scrollTop;return{x:r,y:i}}function sr(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",a=ae(o),s=t?ct(t.floating):!1;if(o===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},u=ie(1);const p=ie(0),d=se(o);if((d||!d&&!i)&&((Ie(o)!=="body"||Ve(a))&&(l=it(o)),se(o))){const m=be(o);u=Te(o),p.x=m.x+o.clientLeft,p.y=m.y+o.clientTop}const x=a&&!d&&!i?En(a,l,!0):ie(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+p.x+x.x,y:n.y*u.y-l.scrollTop*u.y+p.y+x.y}}function ar(e){return Array.from(e.getClientRects())}function lr(e){const t=ae(e),n=it(e),o=e.ownerDocument.body,r=G(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=G(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+kt(e);const s=-n.scrollTop;return ce(o).direction==="rtl"&&(a+=G(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:s}}function ur(e,t){const n=Q(e),o=ae(e),r=n.visualViewport;let i=o.clientWidth,a=o.clientHeight,s=0,l=0;if(r){i=r.width,a=r.height;const u=Nt();(!u||u&&t==="fixed")&&(s=r.offsetLeft,l=r.offsetTop)}return{width:i,height:a,x:s,y:l}}function dr(e,t){const n=be(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=se(e)?Te(e):ie(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,l=r*i.x,u=o*i.y;return{width:a,height:s,x:l,y:u}}function Qt(e,t,n){let o;if(t==="viewport")o=ur(e,n);else if(t==="document")o=lr(ae(e));else if(re(t))o=dr(t,n);else{const r=yn(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return tt(o)}function Sn(e,t){const n=$e(e);return n===t||!re(n)||Ae(n)?!1:ce(n).position==="fixed"||Sn(n,t)}function fr(e,t){const n=t.get(e);if(n)return n;let o=He(e,[],!1).filter(s=>re(s)&&Ie(s)!=="body"),r=null;const i=ce(e).position==="fixed";let a=i?$e(e):e;for(;re(a)&&!Ae(a);){const s=ce(a),l=It(a);!l&&s.position==="fixed"&&(r=null),(i?!l&&!r:!l&&s.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Ve(a)&&!l&&Sn(e,a))?o=o.filter(p=>p!==a):r=s,a=$e(a)}return t.set(e,o),o}function pr(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const a=[...n==="clippingAncestors"?ct(t)?[]:fr(t,this._c):[].concat(n),o],s=a[0],l=a.reduce((u,p)=>{const d=Qt(t,p,r);return u.top=G(d.top,u.top),u.right=xe(d.right,u.right),u.bottom=xe(d.bottom,u.bottom),u.left=G(d.left,u.left),u},Qt(t,s,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function mr(e){const{width:t,height:n}=bn(e);return{width:t,height:n}}function hr(e,t,n){const o=se(t),r=ae(t),i=n==="fixed",a=be(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=ie(0);function u(){l.x=kt(r)}if(o||!o&&!i)if((Ie(t)!=="body"||Ve(r))&&(s=it(t)),o){const m=be(t,!0,i,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else r&&u();i&&!o&&r&&u();const p=r&&!o&&!i?En(r,s):ie(0),d=a.left+s.scrollLeft-l.x-p.x,x=a.top+s.scrollTop-l.y-p.y;return{x:d,y:x,width:a.width,height:a.height}}function ht(e){return ce(e).position==="static"}function Jt(e,t){if(!se(e)||ce(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ae(e)===n&&(n=n.ownerDocument.body),n}function Cn(e,t){const n=Q(e);if(ct(e))return n;if(!se(e)){let r=$e(e);for(;r&&!Ae(r);){if(re(r)&&!ht(r))return r;r=$e(r)}return n}let o=Jt(e,t);for(;o&&or(o)&&ht(o);)o=Jt(o,t);return o&&Ae(o)&&ht(o)&&!It(o)?n:o||rr(e)||n}const vr=async function(e){const t=this.getOffsetParent||Cn,n=this.getDimensions,o=await n(e.floating);return{reference:hr(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function gr(e){return ce(e).direction==="rtl"}const wr={convertOffsetParentRelativeRectToViewportRelativeRect:sr,getDocumentElement:ae,getClippingRect:pr,getOffsetParent:Cn,getElementRects:vr,getClientRects:ar,getDimensions:mr,getScale:Te,isElement:re,isRTL:gr};function Rn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function xr(e,t){let n=null,o;const r=ae(e);function i(){var s;clearTimeout(o),(s=n)==null||s.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const u=e.getBoundingClientRect(),{left:p,top:d,width:x,height:m}=u;if(s||t(),!x||!m)return;const h=Ue(d),f=Ue(r.clientWidth-(p+x)),v=Ue(r.clientHeight-(d+m)),g=Ue(p),$={rootMargin:-h+"px "+-f+"px "+-v+"px "+-g+"px",threshold:G(0,xe(1,l))||1};let b=!0;function y(R){const S=R[0].intersectionRatio;if(S!==l){if(!b)return a();S?a(!1,S):o=setTimeout(()=>{a(!1,1e-7)},1e3)}S===1&&!Rn(u,e.getBoundingClientRect())&&a(),b=!1}try{n=new IntersectionObserver(y,{...$,root:r.ownerDocument})}catch{n=new IntersectionObserver(y,$)}n.observe(e)}return a(!0),i}function $r(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,u=Mt(e),p=r||i?[...u?He(u):[],...He(t)]:[];p.forEach(g=>{r&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const d=u&&s?xr(u,n):null;let x=-1,m=null;a&&(m=new ResizeObserver(g=>{let[w]=g;w&&w.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var $;($=m)==null||$.observe(t)})),n()}),u&&!l&&m.observe(u),m.observe(t));let h,f=l?be(e):null;l&&v();function v(){const g=be(e);f&&!Rn(f,g)&&n(),f=g,h=requestAnimationFrame(v)}return n(),()=>{var g;p.forEach(w=>{r&&w.removeEventListener("scroll",n),i&&w.removeEventListener("resize",n)}),d==null||d(),(g=m)==null||g.disconnect(),m=null,l&&cancelAnimationFrame(h)}}const br=Jo,yr=er,Er=qo,Sr=nr,Cr=Go,en=Zo,Rr=tr,Pr=(e,t,n)=>{const o=new Map,r={platform:wr,...n},i={...r.platform,_c:o};return Xo(e,t,{...r,platform:i})};var qe=typeof document<"u"?c.useLayoutEffect:c.useEffect;function nt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!nt(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&e.$$typeof)&&!nt(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Pn(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function tn(e,t){const n=Pn(e);return Math.round(t*n)/n}function vt(e){const t=c.useRef(e);return qe(()=>{t.current=e}),t}function Tr(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[p,d]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[x,m]=c.useState(o);nt(x,o)||m(o);const[h,f]=c.useState(null),[v,g]=c.useState(null),w=c.useCallback(P=>{P!==R.current&&(R.current=P,f(P))},[]),$=c.useCallback(P=>{P!==S.current&&(S.current=P,g(P))},[]),b=i||h,y=a||v,R=c.useRef(null),S=c.useRef(null),E=c.useRef(p),A=l!=null,_=vt(l),I=vt(r),F=vt(u),D=c.useCallback(()=>{if(!R.current||!S.current)return;const P={placement:t,strategy:n,middleware:x};I.current&&(P.platform=I.current),Pr(R.current,S.current,P).then(B=>{const j={...B,isPositioned:F.current!==!1};W.current&&!nt(E.current,j)&&(E.current=j,ot.flushSync(()=>{d(j)}))})},[x,t,n,I,F]);qe(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,d(P=>({...P,isPositioned:!1})))},[u]);const W=c.useRef(!1);qe(()=>(W.current=!0,()=>{W.current=!1}),[]),qe(()=>{if(b&&(R.current=b),y&&(S.current=y),b&&y){if(_.current)return _.current(b,y,D);D()}},[b,y,D,_,A]);const T=c.useMemo(()=>({reference:R,floating:S,setReference:w,setFloating:$}),[w,$]),N=c.useMemo(()=>({reference:b,floating:y}),[b,y]),V=c.useMemo(()=>{const P={position:n,left:0,top:0};if(!N.floating)return P;const B=tn(N.floating,p.x),j=tn(N.floating,p.y);return s?{...P,transform:"translate("+B+"px, "+j+"px)",...Pn(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:B,top:j}},[n,s,N.floating,p.x,p.y]);return c.useMemo(()=>({...p,update:D,refs:T,elements:N,floatingStyles:V}),[p,D,T,N,V])}const Or=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?en({element:o.current,padding:r}).fn(n):{}:o?en({element:o,padding:r}).fn(n):{}}}},Ar=(e,t)=>({...br(e),options:[e,t]}),Dr=(e,t)=>({...yr(e),options:[e,t]}),_r=(e,t)=>({...Rr(e),options:[e,t]}),Ir=(e,t)=>({...Er(e),options:[e,t]}),Nr=(e,t)=>({...Sr(e),options:[e,t]}),Mr=(e,t)=>({...Cr(e),options:[e,t]}),kr=(e,t)=>({...Or(e),options:[e,t]});function Lr(e){const[t,n]=c.useState(void 0);return te(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let a,s;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;a=u.inlineSize,s=u.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}const Tn="Popper",[On,An]=Ot(Tn),[Fr,Dn]=On(Tn),Br=e=>{const{__scopePopper:t,children:n}=e,[o,r]=c.useState(null);return c.createElement(Fr,{scope:t,anchor:o,onAnchorChange:r},n)},Wr="PopperAnchor",Hr=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,i=Dn(Wr,n),a=c.useRef(null),s=K(t,a);return c.useEffect(()=>{i.onAnchorChange((o==null?void 0:o.current)||a.current)}),o?null:c.createElement(Z.div,O({},r,{ref:s}))}),_n="PopperContent",[Vr,Ii]=On(_n),jr=c.forwardRef((e,t)=>{var n,o,r,i,a,s,l,u;const{__scopePopper:p,side:d="bottom",sideOffset:x=0,align:m="center",alignOffset:h=0,arrowPadding:f=0,collisionBoundary:v=[],collisionPadding:g=0,sticky:w="partial",hideWhenDetached:$=!1,avoidCollisions:b=!0,onPlaced:y,...R}=e,S=Dn(_n,p),[E,A]=c.useState(null),_=K(t,X=>A(X)),[I,F]=c.useState(null),D=Lr(I),W=(n=D==null?void 0:D.width)!==null&&n!==void 0?n:0,T=(o=D==null?void 0:D.height)!==null&&o!==void 0?o:0,N=d+(m!=="center"?"-"+m:""),V=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},P=Array.isArray(v)?v:[v],B=P.length>0,j={padding:V,boundary:P.filter(Ur),altBoundary:B},{refs:me,floatingStyles:Se,placement:Me,isPositioned:ne,middlewareData:oe}=Tr({strategy:"fixed",placement:N,whileElementsMounted:$r,elements:{reference:S.anchor},middleware:[Ar({mainAxis:x+T,alignmentAxis:h}),b&&Dr({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?_r():void 0,...j}),b&&Ir({...j}),Nr({...j,apply:({elements:X,rects:ke,availableWidth:Le,availableHeight:Fe})=>{const{width:Gn,height:Qn}=ke.reference,je=X.floating.style;je.setProperty("--radix-popper-available-width",`${Le}px`),je.setProperty("--radix-popper-available-height",`${Fe}px`),je.setProperty("--radix-popper-anchor-width",`${Gn}px`),je.setProperty("--radix-popper-anchor-height",`${Qn}px`)}}),I&&kr({element:I,padding:f}),zr({arrowWidth:W,arrowHeight:T}),$&&Mr({strategy:"referenceHidden"})]}),[he,C]=In(Me),M=de(y);te(()=>{ne&&(M==null||M())},[ne,M]);const Y=(r=oe.arrow)===null||r===void 0?void 0:r.x,H=(i=oe.arrow)===null||i===void 0?void 0:i.y,k=((a=oe.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[L,q]=c.useState();return te(()=>{E&&q(window.getComputedStyle(E).zIndex)},[E]),c.createElement("div",{ref:me.setFloating,"data-radix-popper-content-wrapper":"",style:{...Se,transform:ne?Se.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:L,"--radix-popper-transform-origin":[(s=oe.transformOrigin)===null||s===void 0?void 0:s.x,(l=oe.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},c.createElement(Vr,{scope:p,placedSide:he,onArrowChange:F,arrowX:Y,arrowY:H,shouldHideArrow:k},c.createElement(Z.div,O({"data-side":he,"data-align":C},R,{ref:_,style:{...R.style,animation:ne?void 0:"none",opacity:(u=oe.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))});function Ur(e){return e!==null}const zr=e=>({name:"transformOrigin",options:e,fn(t){var n,o,r,i,a;const{placement:s,rects:l,middlewareData:u}=t,d=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,x=d?0:e.arrowWidth,m=d?0:e.arrowHeight,[h,f]=In(s),v={start:"0%",center:"50%",end:"100%"}[f],g=((o=(r=u.arrow)===null||r===void 0?void 0:r.x)!==null&&o!==void 0?o:0)+x/2,w=((i=(a=u.arrow)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)+m/2;let $="",b="";return h==="bottom"?($=d?v:`${g}px`,b=`${-m}px`):h==="top"?($=d?v:`${g}px`,b=`${l.floating.height+m}px`):h==="right"?($=`${-m}px`,b=d?v:`${w}px`):h==="left"&&($=`${l.floating.width+m}px`,b=d?v:`${w}px`),{data:{x:$,y:b}}}});function In(e){const[t,n="center"]=e.split("-");return[t,n]}const Kr=Br,Yr=Hr,Xr=jr,Zr=c.forwardRef((e,t)=>{var n;const{container:o=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...r}=e;return o?no.createPortal(c.createElement(Z.div,O({},r,{ref:t})),o):null});function nn({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,r]=qr({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:o,s=de(n),l=c.useCallback(u=>{if(i){const d=typeof u=="function"?u(e):u;d!==e&&s(d)}else r(u)},[i,e,r,s]);return[a,l]}function qr({defaultProp:e,onChange:t}){const n=c.useState(e),[o]=n,r=c.useRef(o),i=de(t);return c.useEffect(()=>{r.current!==o&&(i(o),r.current=o)},[o,r,i]),n}function Gr(e){const t=c.useRef({value:e,previous:e});return c.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Qr(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Jr(...e){return t=>e.forEach(n=>Qr(n,t))}const Nn=c.forwardRef((e,t)=>{const{children:n,...o}=e,r=c.Children.toArray(n),i=r.find(tc);if(i){const a=i.props.children,s=r.map(l=>l===i?c.Children.count(a)>1?c.Children.only(null):c.isValidElement(a)?a.props.children:null:l);return c.createElement(Rt,O({},o,{ref:t}),c.isValidElement(a)?c.cloneElement(a,void 0,s):null)}return c.createElement(Rt,O({},o,{ref:t}),n)});Nn.displayName="Slot";const Rt=c.forwardRef((e,t)=>{const{children:n,...o}=e;return c.isValidElement(n)?c.cloneElement(n,{...nc(o,n.props),ref:t?Jr(t,n.ref):n.ref}):c.Children.count(n)>1?c.Children.only(null):null});Rt.displayName="SlotClone";const ec=({children:e})=>c.createElement(c.Fragment,null,e);function tc(e){return c.isValidElement(e)&&e.type===ec}function nc(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...s)=>{i(...s),r(...s)}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}const oc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],rc=oc.reduce((e,t)=>{const n=c.forwardRef((o,r)=>{const{asChild:i,...a}=o,s=i?Nn:t;return c.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),c.createElement(s,O({},a,{ref:r}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),cc=c.forwardRef((e,t)=>c.createElement(rc.span,O({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})));var ic=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ce=new WeakMap,ze=new WeakMap,Ke={},gt=0,Mn=function(e){return e&&(e.host||Mn(e.parentNode))},sc=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=Mn(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},ac=function(e,t,n,o){var r=sc(t,Array.isArray(e)?e:[e]);Ke[n]||(Ke[n]=new WeakMap);var i=Ke[n],a=[],s=new Set,l=new Set(r),u=function(d){!d||s.has(d)||(s.add(d),u(d.parentNode))};r.forEach(u);var p=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(x){if(s.has(x))p(x);else try{var m=x.getAttribute(o),h=m!==null&&m!=="false",f=(Ce.get(x)||0)+1,v=(i.get(x)||0)+1;Ce.set(x,f),i.set(x,v),a.push(x),f===1&&h&&ze.set(x,!0),v===1&&x.setAttribute(n,"true"),h||x.setAttribute(o,"true")}catch(g){console.error("aria-hidden: cannot operate on ",x,g)}})};return p(t),s.clear(),gt++,function(){a.forEach(function(d){var x=Ce.get(d)-1,m=i.get(d)-1;Ce.set(d,x),i.set(d,m),x||(ze.has(d)||d.removeAttribute(o),ze.delete(d)),m||d.removeAttribute(n)}),gt--,gt||(Ce=new WeakMap,Ce=new WeakMap,ze=new WeakMap,Ke={})}},lc=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=ic(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live]"))),ac(o,r,n,"aria-hidden")):function(){return null}},Ge="right-scroll-bar-position",Qe="width-before-scroll-bar",uc="with-scroll-bars-hidden",dc="--removed-body-scroll-bar-size";function wt(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function fc(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}var pc=typeof window<"u"?c.useLayoutEffect:c.useEffect,on=new WeakMap;function mc(e,t){var n=fc(null,function(o){return e.forEach(function(r){return wt(r,o)})});return pc(function(){var o=on.get(n);if(o){var r=new Set(o),i=new Set(e),a=n.current;r.forEach(function(s){i.has(s)||wt(s,null)}),i.forEach(function(s){r.has(s)||wt(s,a)})}on.set(n,e)},[e]),n}function hc(e){return e}function vc(e,t){t===void 0&&(t=hc);var n=[],o=!1,r={read:function(){if(o)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 a=t(i,o);return n.push(a),function(){n=n.filter(function(s){return s!==a})}},assignSyncMedium:function(i){for(o=!0;n.length;){var a=n;n=[],a.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){o=!0;var a=[];if(n.length){var s=n;n=[],s.forEach(i),a=n}var l=function(){var p=a;a=[],p.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(p){a.push(p),u()},filter:function(p){return a=a.filter(p),n}}}};return r}function gc(e){e===void 0&&(e={});var t=vc(null);return t.options=ge({async:!0,ssr:!1},e),t}var kn=function(e){var t=e.sideCar,n=pn(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return c.createElement(o,ge({},n))};kn.isSideCarExport=!0;function wc(e,t){return e.useMedium(t),kn}var Ln=gc(),xt=function(){},st=c.forwardRef(function(e,t){var n=c.useRef(null),o=c.useState({onScrollCapture:xt,onWheelCapture:xt,onTouchMoveCapture:xt}),r=o[0],i=o[1],a=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,p=e.enabled,d=e.shards,x=e.sideCar,m=e.noIsolation,h=e.inert,f=e.allowPinchZoom,v=e.as,g=v===void 0?"div":v,w=pn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),$=x,b=mc([n,t]),y=ge(ge({},w),r);return c.createElement(c.Fragment,null,p&&c.createElement($,{sideCar:Ln,removeScrollBar:u,shards:d,noIsolation:m,inert:h,setCallbacks:i,allowPinchZoom:!!f,lockRef:n}),a?c.cloneElement(c.Children.only(s),ge(ge({},y),{ref:b})):c.createElement(g,ge({},y,{className:l,ref:b}),s))});st.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};st.classNames={fullWidth:Qe,zeroRight:Ge};var xc=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function $c(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=xc();return t&&e.setAttribute("nonce",t),e}function bc(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function yc(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ec=function(){var e=0,t=null;return{add:function(n){e==0&&(t=$c())&&(bc(t,n),yc(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Sc=function(){var e=Ec();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Fn=function(){var e=Sc(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},Cc={left:0,top:0,right:0,gap:0},$t=function(e){return parseInt(e||"",10)||0},Rc=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[$t(n),$t(o),$t(r)]},Pc=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Cc;var t=Rc(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},Tc=Fn(),Oe="data-scroll-locked",Oc=function(e,t,n,o){var r=e.left,i=e.top,a=e.right,s=e.gap;return n===void 0&&(n="margin"),`
|
|
2
|
-
.`.concat(uc,` {
|
|
3
|
-
overflow: hidden `).concat(o,`;
|
|
4
|
-
padding-right: `).concat(s,"px ").concat(o,`;
|
|
5
|
-
}
|
|
6
|
-
body[`).concat(Oe,`] {
|
|
7
|
-
overflow: hidden `).concat(o,`;
|
|
8
|
-
overscroll-behavior: contain;
|
|
9
|
-
`).concat([t&&"position: relative ".concat(o,";"),n==="margin"&&`
|
|
10
|
-
padding-left: `.concat(r,`px;
|
|
11
|
-
padding-top: `).concat(i,`px;
|
|
12
|
-
padding-right: `).concat(a,`px;
|
|
13
|
-
margin-left:0;
|
|
14
|
-
margin-top:0;
|
|
15
|
-
margin-right: `).concat(s,"px ").concat(o,`;
|
|
16
|
-
`),n==="padding"&&"padding-right: ".concat(s,"px ").concat(o,";")].filter(Boolean).join(""),`
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.`).concat(Ge,` {
|
|
20
|
-
right: `).concat(s,"px ").concat(o,`;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.`).concat(Qe,` {
|
|
24
|
-
margin-right: `).concat(s,"px ").concat(o,`;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.`).concat(Ge," .").concat(Ge,` {
|
|
28
|
-
right: 0 `).concat(o,`;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.`).concat(Qe," .").concat(Qe,` {
|
|
32
|
-
margin-right: 0 `).concat(o,`;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
body[`).concat(Oe,`] {
|
|
36
|
-
`).concat(dc,": ").concat(s,`px;
|
|
37
|
-
}
|
|
38
|
-
`)},rn=function(){var e=parseInt(document.body.getAttribute(Oe)||"0",10);return isFinite(e)?e:0},Ac=function(){c.useEffect(function(){return document.body.setAttribute(Oe,(rn()+1).toString()),function(){var e=rn()-1;e<=0?document.body.removeAttribute(Oe):document.body.setAttribute(Oe,e.toString())}},[])},Dc=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;Ac();var i=c.useMemo(function(){return Pc(r)},[r]);return c.createElement(Tc,{styles:Oc(i,!t,r,n?"":"!important")})},Pt=!1;if(typeof window<"u")try{var Ye=Object.defineProperty({},"passive",{get:function(){return Pt=!0,!0}});window.addEventListener("test",Ye,Ye),window.removeEventListener("test",Ye,Ye)}catch{Pt=!1}var Re=Pt?{passive:!1}:!1,_c=function(e){return e.tagName==="TEXTAREA"},Bn=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!_c(e)&&n[t]==="visible")},Ic=function(e){return Bn(e,"overflowY")},Nc=function(e){return Bn(e,"overflowX")},cn=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Wn(e,n);if(o){var r=Hn(e,n),i=r[1],a=r[2];if(i>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Mc=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},kc=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},Wn=function(e,t){return e==="v"?Ic(t):Nc(t)},Hn=function(e,t){return e==="v"?Mc(t):kc(t)},Lc=function(e,t){return e==="h"&&t==="rtl"?-1:1},Fc=function(e,t,n,o,r){var i=Lc(e,window.getComputedStyle(t).direction),a=i*o,s=n.target,l=t.contains(s),u=!1,p=a>0,d=0,x=0;do{var m=Hn(e,s),h=m[0],f=m[1],v=m[2],g=f-v-i*h;(h||g)&&Wn(e,s)&&(d+=g,x+=h),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(p&&d===0||!p&&x===0)&&(u=!0),u},Xe=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},sn=function(e){return[e.deltaX,e.deltaY]},an=function(e){return e&&"current"in e?e.current:e},Bc=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Wc=function(e){return`
|
|
39
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
40
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
41
|
-
`)},Hc=0,Pe=[];function Vc(e){var t=c.useRef([]),n=c.useRef([0,0]),o=c.useRef(),r=c.useState(Hc++)[0],i=c.useState(function(){return Fn()})[0],a=c.useRef(e);c.useEffect(function(){a.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var f=to([e.lockRef.current],(e.shards||[]).map(an),!0).filter(Boolean);return f.forEach(function(v){return v.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),f.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var s=c.useCallback(function(f,v){if("touches"in f&&f.touches.length===2)return!a.current.allowPinchZoom;var g=Xe(f),w=n.current,$="deltaX"in f?f.deltaX:w[0]-g[0],b="deltaY"in f?f.deltaY:w[1]-g[1],y,R=f.target,S=Math.abs($)>Math.abs(b)?"h":"v";if("touches"in f&&S==="h"&&R.type==="range")return!1;var E=cn(S,R);if(!E)return!0;if(E?y=S:(y=S==="v"?"h":"v",E=cn(S,R)),!E)return!1;if(!o.current&&"changedTouches"in f&&($||b)&&(o.current=y),!y)return!0;var A=o.current||y;return Fc(A,v,f,A==="h"?$:b)},[]),l=c.useCallback(function(f){var v=f;if(!(!Pe.length||Pe[Pe.length-1]!==i)){var g="deltaY"in v?sn(v):Xe(v),w=t.current.filter(function(y){return y.name===v.type&&y.target===v.target&&Bc(y.delta,g)})[0];if(w&&w.should){v.cancelable&&v.preventDefault();return}if(!w){var $=(a.current.shards||[]).map(an).filter(Boolean).filter(function(y){return y.contains(v.target)}),b=$.length>0?s(v,$[0]):!a.current.noIsolation;b&&v.cancelable&&v.preventDefault()}}},[]),u=c.useCallback(function(f,v,g,w){var $={name:f,delta:v,target:g,should:w};t.current.push($),setTimeout(function(){t.current=t.current.filter(function(b){return b!==$})},1)},[]),p=c.useCallback(function(f){n.current=Xe(f),o.current=void 0},[]),d=c.useCallback(function(f){u(f.type,sn(f),f.target,s(f,e.lockRef.current))},[]),x=c.useCallback(function(f){u(f.type,Xe(f),f.target,s(f,e.lockRef.current))},[]);c.useEffect(function(){return Pe.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:x}),document.addEventListener("wheel",l,Re),document.addEventListener("touchmove",l,Re),document.addEventListener("touchstart",p,Re),function(){Pe=Pe.filter(function(f){return f!==i}),document.removeEventListener("wheel",l,Re),document.removeEventListener("touchmove",l,Re),document.removeEventListener("touchstart",p,Re)}},[]);var m=e.removeScrollBar,h=e.inert;return c.createElement(c.Fragment,null,h?c.createElement(i,{styles:Wc(r)}):null,m?c.createElement(Dc,{gapMode:"margin"}):null)}const jc=wc(Ln,Vc);var Vn=c.forwardRef(function(e,t){return c.createElement(st,ge({},e,{ref:t,sideCar:jc}))});Vn.classNames=st.classNames;const Uc=[" ","Enter","ArrowUp","ArrowDown"],zc=[" ","Enter"],at="Select",[lt,ut,Kc]=wo(at),[Ne,Ni]=Ot(at,[Kc,An]),Lt=An(),[Yc,ye]=Ne(at),[Xc,Zc]=Ne(at),qc=e=>{const{__scopeSelect:t,children:n,open:o,defaultOpen:r,onOpenChange:i,value:a,defaultValue:s,onValueChange:l,dir:u,name:p,autoComplete:d,disabled:x,required:m}=e,h=Lt(t),[f,v]=c.useState(null),[g,w]=c.useState(null),[$,b]=c.useState(!1),y=$o(u),[R=!1,S]=nn({prop:o,defaultProp:r,onChange:i}),[E,A]=nn({prop:a,defaultProp:s,onChange:l}),_=c.useRef(null),I=f?!!f.closest("form"):!0,[F,D]=c.useState(new Set),W=Array.from(F).map(T=>T.props.value).join(";");return c.createElement(Kr,h,c.createElement(Yc,{required:m,scope:t,trigger:f,onTriggerChange:v,valueNode:g,onValueNodeChange:w,valueNodeHasChildren:$,onValueNodeHasChildrenChange:b,contentId:gn(),value:E,onValueChange:A,open:R,onOpenChange:S,dir:y,triggerPointerDownPosRef:_,disabled:x},c.createElement(lt.Provider,{scope:t},c.createElement(Xc,{scope:e.__scopeSelect,onNativeOptionAdd:c.useCallback(T=>{D(N=>new Set(N).add(T))},[]),onNativeOptionRemove:c.useCallback(T=>{D(N=>{const V=new Set(N);return V.delete(T),V})},[])},n)),I?c.createElement(Kn,{key:W,"aria-hidden":!0,required:m,tabIndex:-1,name:p,autoComplete:d,value:E,onChange:T=>A(T.target.value),disabled:x},E===void 0?c.createElement("option",{value:""}):null,Array.from(F)):null))},Gc="SelectTrigger",Qc=c.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:o=!1,...r}=e,i=Lt(n),a=ye(Gc,n),s=a.disabled||o,l=K(t,a.onTriggerChange),u=ut(n),[p,d,x]=Yn(h=>{const f=u().filter(w=>!w.disabled),v=f.find(w=>w.value===a.value),g=Xn(f,h,v);g!==void 0&&a.onValueChange(g.value)}),m=()=>{s||(a.onOpenChange(!0),x())};return c.createElement(Yr,O({asChild:!0},i),c.createElement(Z.button,O({type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":a.value===void 0?"":void 0},r,{ref:l,onClick:z(r.onClick,h=>{h.currentTarget.focus()}),onPointerDown:z(r.onPointerDown,h=>{const f=h.target;f.hasPointerCapture(h.pointerId)&&f.releasePointerCapture(h.pointerId),h.button===0&&h.ctrlKey===!1&&(m(),a.triggerPointerDownPosRef.current={x:Math.round(h.pageX),y:Math.round(h.pageY)},h.preventDefault())}),onKeyDown:z(r.onKeyDown,h=>{const f=p.current!=="";!(h.ctrlKey||h.altKey||h.metaKey)&&h.key.length===1&&d(h.key),!(f&&h.key===" ")&&Uc.includes(h.key)&&(m(),h.preventDefault())})})))}),Jc="SelectValue",ei=c.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,children:i,placeholder:a,...s}=e,l=ye(Jc,n),{onValueNodeHasChildrenChange:u}=l,p=i!==void 0,d=K(t,l.onValueNodeChange);return te(()=>{u(p)},[u,p]),c.createElement(Z.span,O({},s,{ref:d,style:{pointerEvents:"none"}}),l.value===void 0&&a!==void 0?a:i)}),ti=c.forwardRef((e,t)=>{const{__scopeSelect:n,children:o,...r}=e;return c.createElement(Z.span,O({"aria-hidden":!0},r,{ref:t}),o||"▼")}),ni=e=>c.createElement(Zr,O({asChild:!0},e)),De="SelectContent",oi=c.forwardRef((e,t)=>{const n=ye(De,e.__scopeSelect),[o,r]=c.useState();if(te(()=>{r(new DocumentFragment)},[]),!n.open){const i=o;return i?ot.createPortal(c.createElement(jn,{scope:e.__scopeSelect},c.createElement(lt.Slot,{scope:e.__scopeSelect},c.createElement("div",null,e.children))),i):null}return c.createElement(ri,O({},e,{ref:t}))}),le=10,[jn,Ee]=Ne(De),ri=c.forwardRef((e,t)=>{const{__scopeSelect:n,position:o="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:i,onPointerDownOutside:a,side:s,sideOffset:l,align:u,alignOffset:p,arrowPadding:d,collisionBoundary:x,collisionPadding:m,sticky:h,hideWhenDetached:f,avoidCollisions:v,...g}=e,w=ye(De,n),[$,b]=c.useState(null),[y,R]=c.useState(null),S=K(t,C=>b(C)),[E,A]=c.useState(null),[_,I]=c.useState(null),F=ut(n),[D,W]=c.useState(!1),T=c.useRef(!1);c.useEffect(()=>{if($)return lc($)},[$]),Ao();const N=c.useCallback(C=>{const[M,...Y]=F().map(L=>L.ref.current),[H]=Y.slice(-1),k=document.activeElement;for(const L of C)if(L===k||(L==null||L.scrollIntoView({block:"nearest"}),L===M&&y&&(y.scrollTop=0),L===H&&y&&(y.scrollTop=y.scrollHeight),L==null||L.focus(),document.activeElement!==k))return},[F,y]),V=c.useCallback(()=>N([E,$]),[N,E,$]);c.useEffect(()=>{D&&V()},[D,V]);const{onOpenChange:P,triggerPointerDownPosRef:B}=w;c.useEffect(()=>{if($){let C={x:0,y:0};const M=H=>{var k,L,q,X;C={x:Math.abs(Math.round(H.pageX)-((k=(L=B.current)===null||L===void 0?void 0:L.x)!==null&&k!==void 0?k:0)),y:Math.abs(Math.round(H.pageY)-((q=(X=B.current)===null||X===void 0?void 0:X.y)!==null&&q!==void 0?q:0))}},Y=H=>{C.x<=10&&C.y<=10?H.preventDefault():$.contains(H.target)||P(!1),document.removeEventListener("pointermove",M),B.current=null};return B.current!==null&&(document.addEventListener("pointermove",M),document.addEventListener("pointerup",Y,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",M),document.removeEventListener("pointerup",Y,{capture:!0})}}},[$,P,B]),c.useEffect(()=>{const C=()=>P(!1);return window.addEventListener("blur",C),window.addEventListener("resize",C),()=>{window.removeEventListener("blur",C),window.removeEventListener("resize",C)}},[P]);const[j,me]=Yn(C=>{const M=F().filter(k=>!k.disabled),Y=M.find(k=>k.ref.current===document.activeElement),H=Xn(M,C,Y);H&&setTimeout(()=>H.ref.current.focus())}),Se=c.useCallback((C,M,Y)=>{const H=!T.current&&!Y;(w.value!==void 0&&w.value===M||H)&&(A(C),H&&(T.current=!0))},[w.value]),Me=c.useCallback(()=>$==null?void 0:$.focus(),[$]),ne=c.useCallback((C,M,Y)=>{const H=!T.current&&!Y;(w.value!==void 0&&w.value===M||H)&&I(C)},[w.value]),oe=o==="popper"?ln:ci,he=oe===ln?{side:s,sideOffset:l,align:u,alignOffset:p,arrowPadding:d,collisionBoundary:x,collisionPadding:m,sticky:h,hideWhenDetached:f,avoidCollisions:v}:{};return c.createElement(jn,{scope:n,content:$,viewport:y,onViewportChange:R,itemRefCallback:Se,selectedItem:E,onItemLeave:Me,itemTextRefCallback:ne,focusSelectedItem:V,selectedItemText:_,position:o,isPositioned:D,searchRef:j},c.createElement(Vn,{as:Be,allowPinchZoom:!0},c.createElement(Do,{asChild:!0,trapped:w.open,onMountAutoFocus:C=>{C.preventDefault()},onUnmountAutoFocus:z(r,C=>{var M;(M=w.trigger)===null||M===void 0||M.focus({preventScroll:!0}),C.preventDefault()})},c.createElement(Po,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:C=>C.preventDefault(),onDismiss:()=>w.onOpenChange(!1)},c.createElement(oe,O({role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:C=>C.preventDefault()},g,he,{onPlaced:()=>W(!0),ref:S,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:z(g.onKeyDown,C=>{const M=C.ctrlKey||C.altKey||C.metaKey;if(C.key==="Tab"&&C.preventDefault(),!M&&C.key.length===1&&me(C.key),["ArrowUp","ArrowDown","Home","End"].includes(C.key)){let H=F().filter(k=>!k.disabled).map(k=>k.ref.current);if(["ArrowUp","End"].includes(C.key)&&(H=H.slice().reverse()),["ArrowUp","ArrowDown"].includes(C.key)){const k=C.target,L=H.indexOf(k);H=H.slice(L+1)}setTimeout(()=>N(H)),C.preventDefault()}})}))))))}),ci=c.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:o,...r}=e,i=ye(De,n),a=Ee(De,n),[s,l]=c.useState(null),[u,p]=c.useState(null),d=K(t,S=>p(S)),x=ut(n),m=c.useRef(!1),h=c.useRef(!0),{viewport:f,selectedItem:v,selectedItemText:g,focusSelectedItem:w}=a,$=c.useCallback(()=>{if(i.trigger&&i.valueNode&&s&&u&&f&&v&&g){const S=i.trigger.getBoundingClientRect(),E=u.getBoundingClientRect(),A=i.valueNode.getBoundingClientRect(),_=g.getBoundingClientRect();if(i.dir!=="rtl"){const k=_.left-E.left,L=A.left-k,q=S.left-L,X=S.width+q,ke=Math.max(X,E.width),Le=window.innerWidth-le,Fe=Wt(L,[le,Le-ke]);s.style.minWidth=X+"px",s.style.left=Fe+"px"}else{const k=E.right-_.right,L=window.innerWidth-A.right-k,q=window.innerWidth-S.right-L,X=S.width+q,ke=Math.max(X,E.width),Le=window.innerWidth-le,Fe=Wt(L,[le,Le-ke]);s.style.minWidth=X+"px",s.style.right=Fe+"px"}const I=x(),F=window.innerHeight-le*2,D=f.scrollHeight,W=window.getComputedStyle(u),T=parseInt(W.borderTopWidth,10),N=parseInt(W.paddingTop,10),V=parseInt(W.borderBottomWidth,10),P=parseInt(W.paddingBottom,10),B=T+N+D+P+V,j=Math.min(v.offsetHeight*5,B),me=window.getComputedStyle(f),Se=parseInt(me.paddingTop,10),Me=parseInt(me.paddingBottom,10),ne=S.top+S.height/2-le,oe=F-ne,he=v.offsetHeight/2,C=v.offsetTop+he,M=T+N+C,Y=B-M;if(M<=ne){const k=v===I[I.length-1].ref.current;s.style.bottom="0px";const L=u.clientHeight-f.offsetTop-f.offsetHeight,q=Math.max(oe,he+(k?Me:0)+L+V),X=M+q;s.style.height=X+"px"}else{const k=v===I[0].ref.current;s.style.top="0px";const q=Math.max(ne,T+f.offsetTop+(k?Se:0)+he)+Y;s.style.height=q+"px",f.scrollTop=M-ne+f.offsetTop}s.style.margin=`${le}px 0`,s.style.minHeight=j+"px",s.style.maxHeight=F+"px",o==null||o(),requestAnimationFrame(()=>m.current=!0)}},[x,i.trigger,i.valueNode,s,u,f,v,g,i.dir,o]);te(()=>$(),[$]);const[b,y]=c.useState();te(()=>{u&&y(window.getComputedStyle(u).zIndex)},[u]);const R=c.useCallback(S=>{S&&h.current===!0&&($(),w==null||w(),h.current=!1)},[$,w]);return c.createElement(ii,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:m,onScrollButtonChange:R},c.createElement("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:b}},c.createElement(Z.div,O({},r,{ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}}))))}),ln=c.forwardRef((e,t)=>{const{__scopeSelect:n,align:o="start",collisionPadding:r=le,...i}=e,a=Lt(n);return c.createElement(Xr,O({},a,i,{ref:t,align:o,collisionPadding:r,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))}),[ii,Ft]=Ne(De,{}),un="SelectViewport",si=c.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=Ee(un,n),i=Ft(un,n),a=K(t,r.onViewportChange),s=c.useRef(0);return c.createElement(c.Fragment,null,c.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),c.createElement(lt.Slot,{scope:n},c.createElement(Z.div,O({"data-radix-select-viewport":"",role:"presentation"},o,{ref:a,style:{position:"relative",flex:1,overflow:"auto",...o.style},onScroll:z(o.onScroll,l=>{const u=l.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:d}=i;if(d!=null&&d.current&&p){const x=Math.abs(s.current-u.scrollTop);if(x>0){const m=window.innerHeight-le*2,h=parseFloat(p.style.minHeight),f=parseFloat(p.style.height),v=Math.max(h,f);if(v<m){const g=v+x,w=Math.min(m,g),$=g-w;p.style.height=w+"px",p.style.bottom==="0px"&&(u.scrollTop=$>0?$:0,p.style.justifyContent="flex-end")}}}s.current=u.scrollTop})}))))}),ai="SelectGroup",[Mi,ki]=Ne(ai),Tt="SelectItem",[li,Un]=Ne(Tt),ui=c.forwardRef((e,t)=>{const{__scopeSelect:n,value:o,disabled:r=!1,textValue:i,...a}=e,s=ye(Tt,n),l=Ee(Tt,n),u=s.value===o,[p,d]=c.useState(i??""),[x,m]=c.useState(!1),h=K(t,g=>{var w;return(w=l.itemRefCallback)===null||w===void 0?void 0:w.call(l,g,o,r)}),f=gn(),v=()=>{r||(s.onValueChange(o),s.onOpenChange(!1))};return c.createElement(li,{scope:n,value:o,disabled:r,textId:f,isSelected:u,onItemTextChange:c.useCallback(g=>{d(w=>{var $;return w||(($=g==null?void 0:g.textContent)!==null&&$!==void 0?$:"").trim()})},[])},c.createElement(lt.ItemSlot,{scope:n,value:o,disabled:r,textValue:p},c.createElement(Z.div,O({role:"option","aria-labelledby":f,"data-highlighted":x?"":void 0,"aria-selected":u&&x,"data-state":u?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1},a,{ref:h,onFocus:z(a.onFocus,()=>m(!0)),onBlur:z(a.onBlur,()=>m(!1)),onPointerUp:z(a.onPointerUp,v),onPointerMove:z(a.onPointerMove,g=>{if(r){var w;(w=l.onItemLeave)===null||w===void 0||w.call(l)}else g.currentTarget.focus({preventScroll:!0})}),onPointerLeave:z(a.onPointerLeave,g=>{if(g.currentTarget===document.activeElement){var w;(w=l.onItemLeave)===null||w===void 0||w.call(l)}}),onKeyDown:z(a.onKeyDown,g=>{var w;((w=l.searchRef)===null||w===void 0?void 0:w.current)!==""&&g.key===" "||(zc.includes(g.key)&&v(),g.key===" "&&g.preventDefault())})}))))}),Ze="SelectItemText",di=c.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,...i}=e,a=ye(Ze,n),s=Ee(Ze,n),l=Un(Ze,n),u=Zc(Ze,n),[p,d]=c.useState(null),x=K(t,g=>d(g),l.onItemTextChange,g=>{var w;return(w=s.itemTextRefCallback)===null||w===void 0?void 0:w.call(s,g,l.value,l.disabled)}),m=p==null?void 0:p.textContent,h=c.useMemo(()=>c.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},m),[l.disabled,l.value,m]),{onNativeOptionAdd:f,onNativeOptionRemove:v}=u;return te(()=>(f(h),()=>v(h)),[f,v,h]),c.createElement(c.Fragment,null,c.createElement(Z.span,O({id:l.textId},i,{ref:x})),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?ot.createPortal(i.children,a.valueNode):null)}),fi="SelectItemIndicator",pi=c.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return Un(fi,n).isSelected?c.createElement(Z.span,O({"aria-hidden":!0},o,{ref:t})):null}),dn="SelectScrollUpButton",mi=c.forwardRef((e,t)=>{const n=Ee(dn,e.__scopeSelect),o=Ft(dn,e.__scopeSelect),[r,i]=c.useState(!1),a=K(t,o.onScrollButtonChange);return te(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=s.scrollTop>0;i(u)};const s=n.viewport;return l(),s.addEventListener("scroll",l),()=>s.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),r?c.createElement(zn,O({},e,{ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}})):null}),fn="SelectScrollDownButton",hi=c.forwardRef((e,t)=>{const n=Ee(fn,e.__scopeSelect),o=Ft(fn,e.__scopeSelect),[r,i]=c.useState(!1),a=K(t,o.onScrollButtonChange);return te(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=s.scrollHeight-s.clientHeight,p=Math.ceil(s.scrollTop)<u;i(p)};const s=n.viewport;return l(),s.addEventListener("scroll",l),()=>s.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),r?c.createElement(zn,O({},e,{ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}})):null}),zn=c.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:o,...r}=e,i=Ee("SelectScrollButton",n),a=c.useRef(null),s=ut(n),l=c.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return c.useEffect(()=>()=>l(),[l]),te(()=>{var u;const p=s().find(d=>d.ref.current===document.activeElement);p==null||(u=p.ref.current)===null||u===void 0||u.scrollIntoView({block:"nearest"})},[s]),c.createElement(Z.div,O({"aria-hidden":!0},r,{ref:t,style:{flexShrink:0,...r.style},onPointerDown:z(r.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(o,50))}),onPointerMove:z(r.onPointerMove,()=>{var u;(u=i.onItemLeave)===null||u===void 0||u.call(i),a.current===null&&(a.current=window.setInterval(o,50))}),onPointerLeave:z(r.onPointerLeave,()=>{l()})}))}),Kn=c.forwardRef((e,t)=>{const{value:n,...o}=e,r=c.useRef(null),i=K(t,r),a=Gr(n);return c.useEffect(()=>{const s=r.current,l=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==n&&p){const d=new Event("change",{bubbles:!0});p.call(s,n),s.dispatchEvent(d)}},[a,n]),c.createElement(cc,{asChild:!0},c.createElement("select",O({},o,{ref:i,defaultValue:n})))});Kn.displayName="BubbleSelect";function Yn(e){const t=de(e),n=c.useRef(""),o=c.useRef(0),r=c.useCallback(a=>{const s=n.current+a;t(s),function l(u){n.current=u,window.clearTimeout(o.current),u!==""&&(o.current=window.setTimeout(()=>l(""),1e3))}(s)},[t]),i=c.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return c.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,r,i]}function Xn(e,t,n){const r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let a=vi(e,Math.max(i,0));r.length===1&&(a=a.filter(u=>u!==n));const l=a.find(u=>u.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function vi(e,t){return e.map((n,o)=>e[(t+o)%e.length])}const gi=qc,wi=Qc,xi=ei,$i=ti,bi=ni,yi=oi,Ei=si,Si=ui,Ci=di,Ri=pi,Pi=mi,Ti=hi,Oi=J.forwardRef(function({list:t=[],required:n=!1,disabled:o=!1,autoFocus:r=!1,size:i=ee.md,name:a,value:s="default",className:l,onChange:u},p){const d=t.find(x=>x.value===s)??t[0]??{value:s};return o=o||t.length<2,U.jsxs(gi,{name:a,value:d.value,disabled:o,required:n,onValueChange:u,children:[U.jsxs(wi,{ref:p,className:we(l,o&&"opacity-50 cursor-not-allowed"),autoFocus:r,children:[U.jsx(xi,{}),U.jsx($i,{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-1",children:U.jsx(ao,{className:"w-4","aria-hidden":"true"})})]}),U.jsx(bi,{className:"z-50",children:U.jsxs(yi,{className:we("overflow-auto rounded-md bg-theme p-1 shadow-2xl border-2 border-neutral-200 dark:border-neutral-700 ring-opacity-5 focus:outline-none",i===ee.sm&&"text-xs",i===ee.md&&"text-sm",i===ee.lg&&"text-sm"),children:[U.jsx(Pi,{className:"flex items-center justify-center h-3 cursor-default",children:U.jsx(uo,{className:"w-4","aria-hidden":"true"})}),U.jsx(Ei,{className:"p-1",children:t.map(({text:x,value:m})=>U.jsx(Ai,{value:m,children:x},m))}),U.jsx(Ti,{className:"flex items-center justify-center h-3 cursor-default",children:U.jsx(io,{className:"w-4","aria-hidden":"true"})})]})})]})});function Ai({disabled:e=!1,value:t,children:n,className:o}){return U.jsxs(Si,{value:t,className:we("leading-none rounded-md flex items-center h-[25px] pr-[35px] pl-[25px] relative select-none data-[disabled]:pointer-events-none data-[highlighted]:outline-none data-[highlighted]:bg-brand-500 data-[highlighted]:text-brand-100",e&&"opacity-50 cursor-not-allowed",o),children:[U.jsx(Ci,{children:n}),U.jsx(Ri,{className:"absolute left-0 w-4 inline-flex items-center justify-center",children:U.jsx(ro,{})})]})}function dt({label:e,info:t,size:n=ee.md,className:o,children:r,disabled:i=!1,required:a=!1,autoFocus:s=!1}){const l=we("text-left relative block bg-theme-lighter border-neutral-200 dark:border-neutral-700","focus:outline-none focus:border-secondary-500","ring-secondary-300 ring-opacity-60 ring-offset ring-offset-secondary-100",n===ee.sm&&"px-2 py-0.5 text-xs leading-4 border-2 focus:ring-2 rounded-[0.25rem] min-w-[7rem]",n===ee.md&&"px-3 py-2 text-sm leading-4 border-2 focus:ring-4 rounded-md min-w-[10rem]",n===ee.lg&&"px-3 py-2 text-sm leading-6 border-2 focus:ring-4 rounded-md min-w-[10rem]");return U.jsxs("div",{className:we("inline-block relative m-1 text-left",i&&"opacity-50 cursor-not-allowed",o),children:[Bt(e)&&U.jsx(Zn,{size:n,children:e}),typeof r=="function"?r({disabled:i,required:a,autoFocus:s,size:n,className:l}):r,Bt(t)&&U.jsx(qn,{children:t})]})}function Zn({htmlFor:e,className:t,children:n,size:o=ee.md}){return U.jsx("label",{htmlFor:e,className:we("block mb-1 px-2 text-sm whitespace-nowrap",o===ee.sm&&"text-xs",o===ee.md&&"text-sm",o===ee.lg&&"text-md",t),children:n})}function qn({className:e,children:t}){return U.jsx("small",{className:we("block text-xs mt-1 px-3 text-neutral-400 dark:text-neutral-600",e),children:t})}dt.Label=Zn;dt.Info=qn;dt.Textfield=fo;dt.Selector=Oi;export{ao as F,dt as I,Dc as R,O as _,Nr as a,kr as b,$r as c,gc as d,mc as e,Ir as f,Qe as g,Mr as h,Fn as i,wc as j,lc as k,_r as l,uo as m,io as n,Ar as o,ro as p,Dr as s,Tr as u,Ge as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as u,U as c,a as n,w as a,j as s,e as f}from"./index-KZcJd7F1.js";import{L as g}from"./context-DhymIb_N.js";import x from"./ModelLineage-Bnes5PV4.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./index-BdXOfeCo.js";import"./Input-CYm3h-zG.js";import"./editor-Bf9rhumO.js";import"./file-CcK5Oobc.js";import"./project-CjyecwCx.js";import"./help-6Q7f7fjd.js";import"./SourceList-Chz492Ne.js";import"./index-CLuHMKlN.js";import"./transition-C8EjNcgL.js";import"./ListboxShow-CwgOYGSe.js";import"./SearchList-9n_6_E0k.js";function S(){const l=u(),{modelName:t}=c(),i=n(e=>e.models),o=n(e=>e.lastSelectedModel),r=a(t)||t===(o==null?void 0:o.name)?o:i.get(encodeURI(t));function d(e){const m=i.get(e);a(m)||l(f.LineageModels+"/"+m.name)}function p(e){console.log(e==null?void 0:e.message)}return s.jsx("div",{className:"flex overflow-hidden w-full h-full",children:s.jsx(g,{showColumns:!0,handleClickModel:d,handleError:p,children:s.jsx(x,{model:r})})})}export{S as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ax as a,a2 as r}from"./index-KZcJd7F1.js";var t=a();const e=r(t);export{e as R,t as r};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|