(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,446443,e=>{"use strict";var t=e.i(16043);let r=t.createContext({disabled:!1});e.s(["f",0,function(){return t.useContext(r)}])},987457,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(136562);e.s(["f",0,function(e){let o,i,s,a,l,u,c=(0,r.c)(15),{children:d,className:f,variant:p,decorative:m,ringClassName:h}=e,g=void 0!==m&&m||void 0;c[0]!==f?(o=(0,n.f)("relative flex shrink-0 items-center justify-center","box-content p-px","overflow-hidden rounded-sm bg-background","size-6",f),c[0]=f,c[1]=o):o=c[1],c[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,n.f)("absolute inset-px flex items-center justify-center","[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:object-contain","[&_img]:rounded-sm"),c[2]=i):i=c[2],c[3]!==d?(s=(0,t.jsx)("div",{className:i,children:d}),c[3]=d,c[4]=s):s=c[4];let v="app"===(void 0===p?"default":p)&&"dark:inset-px dark:ring-white";return c[5]!==h||c[6]!==v?(a=(0,n.f)("pointer-events-none absolute inset-0 rounded-[inherit] ring-1 ring-inset ring-border/60",v,h),c[5]=h,c[6]=v,c[7]=a):a=c[7],c[8]!==a?(l=(0,t.jsx)("div",{"aria-hidden":!0,className:a}),c[8]=a,c[9]=l):l=c[9],c[10]!==g||c[11]!==o||c[12]!==s||c[13]!==l?(u=(0,t.jsxs)("div",{"aria-hidden":g,className:o,children:[s,l]}),c[10]=g,c[11]=o,c[12]=s,c[13]=l,c[14]=u):u=c[14],u}])},829622,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(214051),o=e.i(51365),i=e.i(288265),s=e.i(16043);e.s(["RemoteFavicon",0,function(e){let a,l,u,c,d,f,p,m,h,g,v,w,x,b=(0,r.c)(55),y=(0,i.f)(),[S,N]=(0,s.useState)(null),[j,C]=(0,s.useState)(null),[P,T]=(0,s.useState)(!1),[R,M]=(0,s.useState)(!1),k=e.size||256;b[0]!==P||b[1]!==R||b[2]!==e.curatedIconAppId||b[3]!==e.faviconFor||b[4]!==e.imgSrc||b[5]!==k?(a=function({faviconFor:e,size:t,didCuratedIconFail:r,didSiteIconFail:n,curatedIconAppId:i,imgSrc:s}){if(s)return{source:"given",src:s};if(void 0!==i&&(0,o.Q)(e)&&!r)return{source:"curated",src:(0,o.$)(e)?e:(0,o.g)(i)};let a=n?(0,o.Z)(e):null;return null!==a?{source:"parent-site",src:(0,o.e)(a,t)}:{source:"site",src:(0,o.e)(e,t)}}({faviconFor:e.faviconFor,size:k,didCuratedIconFail:P,didSiteIconFail:R,curatedIconAppId:e.curatedIconAppId,imgSrc:e.imgSrc}),b[0]=P,b[1]=R,b[2]=e.curatedIconAppId,b[3]=e.faviconFor,b[4]=e.imgSrc,b[5]=k,b[6]=a):a=b[6];let{source:F,src:I}=a;b[7]!==e.faviconFor||b[8]!==k||b[9]!==F?(l=t=>{"site"!==F||k<=16||t>16||null!==(0,o.Z)(e.faviconFor)&&M(!0)},b[7]=e.faviconFor,b[8]=k,b[9]=F,b[10]=l):l=b[10];let D=l;b[11]!==e.faviconFor||b[12]!==F?(u=t=>{switch(F){case"curated":if((0,o.$)(e.faviconFor))return void N(t);T(!0);return;case"site":if(null===(0,o.Z)(e.faviconFor))return void N(t);M(!0);return;case"given":case"parent-site":return void N(t);default:N(t)}},b[11]=e.faviconFor,b[12]=F,b[13]=u):u=b[13];let A=u;b[14]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{N(null)},b[14]=c):c=b[14],b[15]!==I?(d=[I],b[15]=I,b[16]=d):d=b[16],(0,s.useEffect)(c,d),b[17]===Symbol.for("react.memo_cache_sentinel")?(f=()=>{T(!1),M(!1)},b[17]=f):f=b[17],b[18]!==e.curatedIconAppId||b[19]!==e.faviconFor||b[20]!==e.imgSrc||b[21]!==k?(p=[e.faviconFor,e.curatedIconAppId,e.imgSrc,k],b[18]=e.curatedIconAppId,b[19]=e.faviconFor,b[20]=e.imgSrc,b[21]=k,b[22]=p):p=b[22],(0,s.useEffect)(f,p),b[23]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{C(null)},b[23]=m):m=b[23],b[24]!==e.imgSrcDark?(h=[e.imgSrcDark],b[24]=e.imgSrcDark,b[25]=h):h=b[25],(0,s.useEffect)(m,h),b[26]!==y||b[27]!==e.faviconFor?(g=y("Favicon for {faviconFor}",{faviconFor:e.faviconFor}),b[26]=y,b[27]=e.faviconFor,b[28]=g):g=b[28],b[29]!==k||b[30]!==g?(v={width:k,height:k,alt:g,className:"h-full w-full object-cover"},b[29]=k,b[30]=g,b[31]=v):v=b[31];let E=v;if(e.imgSrcDark){let r,o,i;return b[32]!==S||b[33]!==E||b[34]!==A||b[35]!==D||b[36]!==I?(r=(0,t.jsx)("span",{className:"block h-full w-full shrink-0 dark:hidden",children:S?(0,t.jsx)("span",{className:"bg-muted",children:(0,t.jsx)(n.f,{className:"h-4 w-4 text-muted-foreground/60"})}):(0,t.jsx)("img",{...E,src:I,onError:e=>A(e.toString()),onLoad:e=>D(e.currentTarget.naturalWidth)})}),b[32]=S,b[33]=E,b[34]=A,b[35]=D,b[36]=I,b[37]=r):r=b[37],b[38]!==j||b[39]!==E||b[40]!==e.imgSrcDark?(o=(0,t.jsx)("span",{className:"hidden h-full w-full shrink-0 dark:block",children:j?(0,t.jsx)("span",{className:"bg-muted",children:(0,t.jsx)(n.f,{className:"h-4 w-4 text-muted-foreground/60"})}):(0,t.jsx)("img",{...E,src:e.imgSrcDark,onError:e=>C(e.toString())})}),b[38]=j,b[39]=E,b[40]=e.imgSrcDark,b[41]=o):o=b[41],b[42]!==e.className||b[43]!==r||b[44]!==o?(i=(0,t.jsxs)("div",{className:e.className,children:[r,o]}),b[42]=e.className,b[43]=r,b[44]=o,b[45]=i):i=b[45],i}return b[46]!==S||b[47]!==E||b[48]!==A||b[49]!==D||b[50]!==I?(w=S?(0,t.jsx)("span",{className:"bg-muted",children:(0,t.jsx)(n.f,{className:"h-4 w-4 text-muted-foreground/60"})}):(0,t.jsx)("picture",{className:"h-full w-full shrink-0",children:(0,t.jsx)("img",{...E,src:I,loading:"lazy",decoding:"async",onError:e=>A(e.toString()),onLoad:e=>D(e.currentTarget.naturalWidth)})}),b[46]=S,b[47]=E,b[48]=A,b[49]=D,b[50]=I,b[51]=w):w=b[51],b[52]!==e.className||b[53]!==w?(x=(0,t.jsx)("div",{className:e.className,children:w}),b[52]=e.className,b[53]=w,b[54]=x):x=b[54],x}])},217411,e=>{"use strict";var t,r,n=e.i(659350),o=e.i(663456),i=e.i(694448),s=e.i(806733),a=e.i(376032),l=e.i(718251),u=e.i(192154),c=e.i(613733),d=e.i(512682),f=e.i(779243),p=e.i(16043),m=e.i(113003),h=e.i(93836),g=e.i(664591);let v="--drawer-height",w="--drawer-swipe-movement-x",x="--drawer-swipe-movement-y",b="--drawer-snap-point-offset",y="--drawer-swipe-strength",S="--drawer-swipe-progress",N=p.forwardRef(function(e,t){let{render:r,className:n,style:o,forceRender:i=!1,...s}=e,a=(0,m.x)(),l=a.useState("open"),u=a.useState("nested"),c=a.useState("mounted"),d=a.useState("transitionStatus");return(0,h.a)("div",e,{state:{open:l,transitionStatus:d},ref:[a.context.backdropRef,t],stateAttributesMapping:g.M,props:[{role:"presentation",hidden:!c,style:{pointerEvents:l?void 0:"none",userSelect:"none",WebkitUserSelect:"none",[S]:"0",[y]:"1"}},s],enabled:i||!u})}),j="data-drawer-content",C=p.forwardRef(function(e,t){let{render:r,className:n,style:o,...i}=e;return(0,m.x)(),(0,h.a)("div",e,{ref:t,props:[{[j]:""},i]})});var P=e.i(533124),T=e.i(815922),R=e.i(115370),M=e.i(909005),k=e.i(350683),F=e.i(894788),I=e.i(106513),D=e.i(431891);k.f.open,F.f.closed,I.f.startingStyle,D.f.endingStyle;let A="data-swipe-dismiss",E="data-swiping";var $=e.i(791170),O=e.i(692933),Y=e.i(597233),z=e.i(107397);let X=p.createContext(void 0);function W(e){let t=p.useContext(X);if(!0!==e&&void 0===t)throw Error((0,z.f)(90));return t}var L=e.i(997932),H=e.i(788968);function U(e,t){let r=e+t;return r>=0?t:-Math.sqrt(-r)-e}function V(e,t,r){if(!Number.isFinite(t)||t<=0)return null;if("number"==typeof e)return Number.isFinite(e)?e<=1?(0,H.f)(e,0,1)*t:e:null;let n=e.trim();if(n.endsWith("px")){let e=Number.parseFloat(n);return Number.isFinite(e)?e:null}if(n.endsWith("rem")){let e=Number.parseFloat(n);return Number.isFinite(e)?e*r:null}return null}function _(e,t){let r=-1,n=1/0;for(let o=0;o{let e=(0,L.f)(i).documentElement;a(i?i.offsetHeight:e.clientHeight);let t=parseFloat(getComputedStyle(e).fontSize);Number.isFinite(t)&&u(t)});(0,P.f)(()=>{if(c(),!i||"function"!=typeof ResizeObserver)return;let e=new ResizeObserver(c);return e.observe(i),()=>{e.disconnect()}},[c,i]);let d=p.useMemo(()=>{if(!t||0===t.length||s<=0||o<=0)return[];let e=Math.min(o,s),r=t.map(t=>{let r=V(t,s,l);if(null===r)return null;let n=(0,H.f)(r,0,e);return{value:t,height:n,offset:Math.max(0,o-n)}}).filter(e=>!!e);if(r.length<=1)return r;let n=[],i=[];for(let e=r.length-1;e>=0;e-=1){let t=r[e];i.some(e=>1>=Math.abs(e-t.height))||(i.push(t.height),n.push(t))}return n.reverse(),n},[o,l,t,s]),f=p.useMemo(()=>{if(null===r)return;let e=d.find(e=>Object.is(e.value,r));if(e)return e;let t=Math.min(o,s),n=V(r,s,l);if(null===n)return;let i=(0,H.f)(n,0,t);return d[_(d.map(e=>e.height),i)]},[r,o,d,l,s]);return{snapPoints:t,activeSnapPoint:r,setActiveSnapPoint:n,popupHeight:o,viewportHeight:s,resolvedSnapPoints:d,activeSnapPointOffset:f?.offset??null}}let Z=p.createContext(null);var K=e.i(369714);let q=!1,G={...g.M,expanded:e=>e?{"data-expanded":""}:null,nestedDrawerOpen:e=>e?{"data-nested-drawer-open":""}:null,nestedDrawerSwiping:e=>e?{"data-nested-drawer-swiping":""}:null,swipeDirection:e=>({"data-swipe-direction":e}),swiping:e=>e?{[E]:""}:null},Q=p.forwardRef(function(e,t){let r,{render:o,className:i,style:s,finalFocus:a,initialFocus:l,...u}=e,c=(0,m.x)(),d=c.context.popupRef,{swipeDirection:f,frontmostHeight:g,hasNestedDrawer:N,nestedSwiping:j,nestedSwipeProgressStore:C,onPopupHeightChange:k,notifyParentFrontmostHeight:F,notifyParentHasNestedDrawer:I}=W(),D=c.useState("descriptionElementId"),A=c.useState("disablePointerDismissal"),E=c.useState("floatingRootContext"),z=c.useState("popupProps"),X=c.useState("modal"),L=c.useState("mounted"),H=c.useState("nested"),V=c.useState("nestedOpenDrawerCount"),_=c.useState("transitionStatus"),Q=c.useState("open"),J=c.useState("openMethod"),ee=c.useState("titleElementId"),et=c.useState("role"),er=E.useState("floatingId"),en=u.id??er,eo=p.useContext(Z);(0,$.Z)();let{snapPoints:ei,activeSnapPoint:es,activeSnapPointOffset:ea}=B(),el=V>0,eu=eo?.swiping??!1,ec=eo?.swipeStrength??null,[ed,ef]=p.useState(0),ep=p.useRef(0),em=(0,T.f)(()=>{let e=d.current;if(!e)return;let t=e.offsetHeight;if(!(ep.current>0)||!(g>ep.current)||!(t>ep.current)){if(ep.current>0&&N){let e=ep.current;ef(e),k(e);return}t!==ep.current&&(ep.current=t,ef(t),k(t))}});(0,P.f)(()=>{if(!L){ep.current=0,ef(0),k(0);return}let e=d.current;if(!e||(q||("u">typeof CSS&&"registerProperty"in CSS&&([w,x,b].forEach(e=>{try{CSS.registerProperty({name:e,syntax:"",inherits:!1,initialValue:"0px"})}catch{}}),[{name:S,initialValue:"0"},{name:y,initialValue:"1"}].forEach(({name:e,initialValue:t})=>{try{CSS.registerProperty({name:e,syntax:"",inherits:!1,initialValue:t})}catch{}})),q=!0),em(),"function"!=typeof ResizeObserver))return;let t=new ResizeObserver(em);return t.observe(e),()=>{t.disconnect()}},[em,L,el,k,d]),(0,P.f)(()=>{let e=()=>{let e=d.current;if(!e)return;let t=C.getSnapshot();t>0?e.style.setProperty(S,`${t}`):e.style.setProperty(S,"0")};e();let t=C.subscribe(e),r=d.current;return()=>{t(),r&&r.style.setProperty(S,"0")}},[C,d]),(0,P.f)(()=>{if(Q)return F?.(g),()=>{F?.(0)}},[g,Q,F]),(0,P.f)(()=>{if(I)return I(Q||"ending"===_),()=>{I(!1)}},[I,Q,_]),(0,O.f)({open:Q,ref:d,onComplete(){Q&&c.context.onOpenChangeComplete?.(!0)}});let eh=void 0===l?d:l,eg=c.useStateSetter("popupElement"),ev=!N&&"ending"!==_;ed&&!ev&&(r=`${ed}px`);let ew=ei&&ei.length>0&&("down"===f||"up"===f),ex=null;ew&&null!==ea&&(ex="up"===f?-ea:ea);let eb=eo?eo.getDragStyles():R.w;if(ew&&"down"===f){let e=Number.parseFloat(String(eb[x]));eb=eu&&Number.isFinite(e)?{...eb,transform:void 0,[x]:`${U(ea??0,e)}px`}:{...eb,transform:void 0}}let ey=(0,h.a)("div",e,{state:{open:Q,nested:H,transitionStatus:_,expanded:1===es,nestedDrawerOpen:el,nestedDrawerSwiping:j,swipeDirection:f,swiping:eu},props:[z,{id:en,"aria-labelledby":ee,"aria-describedby":D,role:et,...K.X,hidden:!L,onKeyDown(e){Y.J.has(e.key)&&e.stopPropagation()},style:{...eb,[S]:"0","--nested-drawers":V,[v]:r,[b]:"number"==typeof ex?`${ex}px`:"0px","--drawer-frontmost-height":g?`${g}px`:void 0,[y]:"number"==typeof ec&&Number.isFinite(ec)&&ec>0?`${ec}`:"1"}},u],ref:[t,d,eg],stateAttributesMapping:G});return(0,n.jsx)(M.f,{context:E,openInteractionType:J,disabled:!L,closeOnFocusOut:!A,initialFocus:eh,returnFocus:a,modal:!1!==X,restoreFocus:"popup",children:ey})}),J=e.i(899575).f;var ee=e.i(976987),et=e.i(389475),er=e.i(223732),en=e.i(195155),eo=e.i(132887),ei=e.i(111407),es=e.i(24220),es=es,ea=e.i(874511);let el=p.createContext(void 0);function eu(){return p.useContext(el)}function ec(){let e=0,t=new Set;return{getSnapshot:()=>e,set(r){let n=Number.isFinite(r)?r:0;n!==e&&(e=n,t.forEach(e=>{e()}))},subscribe:e=>(t.add(e),()=>{t.delete(e)})}}function ed(){let e=eu(),t=(0,m.x)(!1),r=e?.setDrawerOpen,n=e?.removeDrawer,o=t.useState("open"),i=t.useState("nestedOpenDialogCount"),s=t.useState("popupElement"),a=0===i;return(0,P.f)(()=>{if(n)return()=>{n(t)}},[n,t]),(0,P.f)(()=>{r?.(t,o)},[o,r,t]),p.useEffect(()=>{if(!o||!a||!en.f.os.android)return;let e=(0,er.f)(s).CloseWatcher;if(!e)return;let r=new e,n=(0,ee.f)(r,"cancel",function(e){if(!t.select("open"))return;let r=(0,eo.j)(es.closeWatcher,e);e.cancelable||(r.cancel=R.x),t.setOpen(!1,r),r.isCanceled&&e.preventDefault()});return()=>{n(),r.destroy()}},[t,a,o,s]),null}var ef=e.i(18728),ep=e.i(807257),em=e.i(792343),eh=e.i(334932);k.f.open,F.f.closed,I.f.startingStyle,D.f.endingStyle;var eg=e.i(195618),ev=e.i(662254),ew=es,ex=e.i(393298),eb=e.i(773183),ey=e.i(212962),eS=e.i(510043),eN=e.i(511196);let ej=p.createContext(void 0),eC=`[${j}]`,eP={horizontal:`[${eS.a}="x"]`,vertical:`[${eS.a}="y"]`},eT=p.forwardRef(function(e,t){let{render:r,className:o,style:i,children:s,...a}=e,l=(0,m.x)(),u=l.context.popupRef,c=l.context.backdropRef,{swipeDirection:d,notifyParentSwipingChange:f,notifyParentSwipeProgressChange:h,frontmostHeight:g,snapToSequentialPoints:b,swipeAreaActiveRef:y}=W(),N=eu(),{snapPoints:j,resolvedSnapPoints:C,activeSnapPoint:R,activeSnapPointOffset:M,setActiveSnapPoint:k,popupHeight:F}=B(),I=l.useState("open"),D=l.useState("mounted"),E=l.useState("nested"),$=l.useState("nestedOpenDrawerCount"),O=l.useState("viewportElement"),Y=l.useState("popupElement"),z=N?.visualStateStore,X=$>0,V="left"===d||"right"===d?"horizontal":"vertical",K="vertical"===V,q=K?"horizontal":"vertical",[G,Q]=p.useState(null),J=p.useRef(void 0),et=p.useRef(null),en=(0,em.z)(),ei=p.useRef(!1),es=p.useRef(!1),ea=p.useRef(""),el=p.useRef(!1),ec=p.useRef(!1),ed=p.useRef(null),eT=p.useContext(ej),eE=p.useMemo(()=>{if(!j||j.length<2||C.length<2||"down"!==d&&"up"!==d)return null;let e=C.map(e=>e.offset).sort((e,t)=>e-t),t=e[0];return{minOffset:t,range:e[1]-t}},[C,j,d]),e$=p.useMemo(()=>eE&&null!==M?(0,H.f)((M-eE.minOffset)/eE.range,0,1):null,[M,eE]),eO=p.useMemo(()=>j&&j.length>0&&("down"===d||"up"===d)?"down"===d?["down","up"]:["up","down"]:[d],[j,d]),eY=(0,T.f)(e=>{u.current?.toggleAttribute(A,e),c.current?.toggleAttribute(A,e)}),ez=(0,T.f)(()=>{eY(!1),u.current?.removeAttribute(eb.f.endingStyle),Q(null)}),eX=(0,T.f)(()=>{es.current&&(es.current=!1,f?.(!1))}),eW=(0,T.f)((e,t,r)=>{let n=I&&!E&&t,o=n?e:0,i=I&&t?e:0;r&&h&&(h(i),i<=0&&eX()),z?.set({swipeProgress:o,frontmostHeight:o>0?g:0});let s=c.current;if(!s)return;let a=n&&o>0;s.style.setProperty(S,a?`${o}`:"0"),a&&g>0?s.style.setProperty(v,`${g}px`):s.style.removeProperty(v)}),eL=(0,ev.w)({enabled:D&&!X,directions:eO,elementRef:l.context.popupRef,ignoreSelectorWhenTouch:!1,ignoreScrollableAncestors:!0,movementCssVars:{x:w,y:x},onSwipeStart(e){if("touches"in e||"touch"===e.pointerType)return;let t=u.current,r=(0,L.f)(t),n=r.getSelection?.();if(!n||n.isCollapsed)return;let o=(0,ep.m)(n.anchorNode)?n.anchorNode:n.anchorNode?.parentElement,i=(0,ep.m)(n.focusNode)?n.focusNode:n.focusNode?.parentElement;((0,ex.I)(t,o)||(0,ex.I)(t,i))&&n.removeAllRanges()},onSwipingChange(e){ei.current=e,eR(l.context.backdropRef.current,e),e||h||eX()},swipeThreshold:({element:e,direction:t})=>ek(e,t),canStart(e,t){let r=l.context.popupRef.current;if(!r)return!1;let n=t.nativeEvent,o="touches"in n||"touch"===n.pointerType,i=o?ed.current:null,s=r.ownerDocument,a=(0,eN.f)(r.getRootNode(),e.x,e.y);return!(!i?.startedInPopup&&!(0,ex.I)(r,a)||o&&eF(s,r)||i?.hasCrossAxisGestureTarget&&!i.drawerAxisAttributed&&!0!==i.allowSwipe)},onProgress(e,t){let r=ei.current;r&&function(e){if(es.current||!e)return;let t=e.direction??d;10>Math.abs((0,ev.R)(t,e.deltaX,e.deltaY))||(es.current=!0,f?.(!0))}(t);let n=!!(j&&j.length>0);if(r&&"down"===d&&n&&t){let e=l.context.popupRef.current;e&&(e.style.removeProperty("transform"),e.style.setProperty(x,`${U(M??0,t.deltaY)}px`))}let o=e;if(eE&&F>0){let e=M??eE.minOffset;if(r&&t&&Number.isFinite(t.deltaY)){let r;r=(0,H.f)(e+t.deltaY,0,F),o=(0,H.f)((r-eE.minOffset)/eE.range,0,1)}else null!==e$&&(o=e$)}r||(h?.(0),eX()),eW(o,!0,r)},onRelease({event:e,deltaX:t,deltaY:r,direction:n,velocityX:o,velocityY:i,releaseVelocityX:s,releaseVelocityY:a}){let u=l.context.popupRef.current;if(!u)return void ez();function c(e){eX(),eY(!0),u.style.removeProperty("transition"),u.setAttribute(eb.f.endingStyle,""),ef.flushSync(()=>{Q(function(e,t,r,n,o,i,s,a){let l=eM(e,t);if(l<=0)return null;let u=Math.max(0,l-((("down"===t||"up"===t)&&j&&j.length>0?M??0:0)+(0,ev.R)(t,r,n)));if(u<=0)return null;let c=(0,ev.R)(t,s,a),d=Math.abs(c)>0?c:(0,ev.R)(t,o,i);if(d<=.2)return null;let f=(0,H.f)(d,.2,4);return .1+((0,H.f)(u/f,80,360)-80)/280*.9}(u,e,t,r,o,i,s,a))})}if(!j||0===j.length){if(!n)return void ez();let e=(0,ev.R)(n,t,r);if(e<=0)return ez(),!1;if((0,ev.R)(n,o,i)>=.5)return c(n),!0;let s=e>ek(u,n);return s?c(n):ez(),s}if("down"!==d&&"up"!==d)return void ez();if(!F)return ez(),!1;if(0===C.length)return void ez();let f="down"===d?r:-r,p=Math.sign(f),m="down"===d?a:-a,h="down"===d?i:-i,g=m;if(0!==p&&Math.abs(f)>=10){let e=Math.sign(g);0!==e&&e!==p&&(g=h)}let v=M??0,w=(0,H.f)(v+f,0,F),x=Math.abs(g)>=.5?300*(0,H.f)(g,-4,4):0,y=b?w:(0,H.f)(w+x,0,F),S=(0,eo.j)(ew.swipe,e),N=()=>(eW(0,!0,!0),ez(),!1),P=e=>(k(e.value,S),N()),T=e=>n?(k(null,S),S.isCanceled)?N():(J.current=R,c(d),!0):P(e);if(b){let e=[...C].sort((e,t)=>e.offset-t.offset),t=e.map(e=>e.offset),r=_(t,v),n=e[_(t,y)],o=Math.sign(g),i=y;if(0!==p&&0!==o&&o===p&&Math.abs(g)>=.5){let t=(0,H.f)(r+p,0,e.length-1);if(t!==r){let r=e[t];(p>0?yr.offset)&&(n=r,i=r.offset)}else if(p>0)return T(n)}return Math.abs(i-F)e.offset),y)];return g>=.5&&f>0||Math.abs(y-F){if(l.select("open")){let t=J.current;void 0!==t&&k(t,(0,eo.j)(ew.swipe,e)),J.current=void 0,ez(),et.current?.()}else J.current=void 0}):(J.current=void 0,eY(!0))}}),eH=eL.getPointerProps(),eU=eL.getTouchProps(),{moveNative:eV,reset:e_}=eL;et.current=e_,p.useEffect(()=>{let e=O??Y;if(!e||!I||!D)return;let t=(0,L.f)(e);return(0,ee.f)(t,"touchmove",function(r){var n,o;if(eT?.onTouchMove(r),ec.current)return;let i=ed.current,s=r.touches[0];s&&i&&(!function(r,n,o){let i=K?o.clientY-n.lastY:o.clientX-n.lastX;if(2===r.touches.length||eF(t,e)||X||function(e,t,r,n){if(e.preserveNativeCrossAxisScroll)return!0;if(e.drawerAxisAttributed||!0===e.allowSwipe||!e.hasCrossAxisGestureTarget)return!1;if(!t.cancelable)return e.preserveNativeCrossAxisScroll=!0,!0;let o=n?r.clientY-e.startY:r.clientX-e.startX,i=n?r.clientX-e.startX:r.clientY-e.startY,s=Math.abs(o),a=Math.abs(i);return a>=6&&a>s+2?(e.preserveNativeCrossAxisScroll=!0,!0):!(s>=6)||(e.drawerAxisAttributed=!0,!1)}(n,r,o,K))return;let s=n.scrollTarget;if(!s||s===t.documentElement||s===t.body){r.cancelable&&r.preventDefault(),r.stopPropagation(),eV(r,e);return}if(!(eI(s,V).max>0)){r.cancelable&&r.preventDefault(),r.stopPropagation();return}if(0!==i){var a,l,u,c;let e=(a=s,l=V,u=d,c=i,!!(eA(u,l)?c>0:c<0)&&eD(a,l,u));n.allowSwipe?r.cancelable&&r.preventDefault():r.cancelable&&e?(n.allowSwipe=!0,r.preventDefault()):n.allowSwipe=!1}!0===n.allowSwipe&&(r.stopPropagation(),eV(r,e))}(r,i,s),(n=i).lastX=(o=s).clientX,n.lastY=o.clientY)},{passive:!1,capture:!0})},[D,X,I,Y,K,V,d,eV,O,eT]),(0,P.f)(()=>{eE&&!eL.swiping&&eW(!I||E?0:e$??0,!0,!1)},[eW,g,E,h,I,e$,eE,eL.swiping,l,z]),(0,P.f)(()=>{if(h)return I||h(0),()=>{h(0)}},[h,I]),(0,P.f)(()=>{I&&(y.current||e_(),ez())},[ez,I,e_,y]),(0,P.f)(()=>{let e=c.current;return()=>{z?.set({swipeProgress:0,frontmostHeight:0}),eR(e,!1);let t=c.current;t!==e&&eR(t,!1),eX()}},[c,eX,z]);let eB=p.useMemo(()=>({swiping:eL.swiping,getDragStyles:eL.getDragStyles,swipeStrength:G??null,setSwipeDismissed:eY}),[eY,eL.getDragStyles,eL.swiping,G]);function eZ(e){ec.current=e,ed.current=null}function eK(){eZ(!1),ea.current="",el.current=!1}function eq(e){return ea.current="","touch"!==e.pointerType}return(0,n.jsx)(eh.f,{ref:t,className:o,style:i,render:r,...(0,eg.w)(a,{onPointerDown(e){var t,r;if(ea.current=e.pointerType,el.current="pen"===e.pointerType,!I||!D||X)return;let n=(0,eN.f)(e.currentTarget.getRootNode(),e.clientX,e.clientY);t=n,(0,ex.h)(t,eS.u)||(r=n,(0,ex.h)(r,eC))||"touch"!==e.pointerType&&eH.onPointerDown?.(e)},onPointerMove(e){"touch"!==e.pointerType&&eH.onPointerMove?.(e)},onPointerUp(e){eq(e)&&eH.onPointerUp?.(e)},onPointerCancel(e){eq(e)&&eH.onPointerCancel?.(e)},onTouchStart(e){var t,r,n;if("pen"===ea.current&&el.current){el.current=!1,eZ(!1);return}if(!I||!D||X)return void eZ(!1);let o=e.touches[0];if(!o)return;if(r=(t=e).nativeEvent,n=(0,er.f)(t.currentTarget),r.composedPath().some(e=>e instanceof n.HTMLInputElement&&"range"===e.type))return void eZ(!1);let i=e.currentTarget,s=(0,eN.f)(i.getRootNode(),o.clientX,o.clientY),a=(0,ex.Z)(e.nativeEvent),l=(0,ep.m)(a)?a:i;if(!(0,ex.I)(i,l)||(eT?.onTouchStart(e),(0,ex.h)(s,`${eS.u}:not(${eP[q]})`)))return void eZ(!0);ec.current=!1;let c=(0,ey.U)(l,i,V),f=null!=(0,ey.U)(l,i,q)||null!=(0,ex.h)(s,eP[q]),p=null;c&&(p=!!eD(c,V,d)&&null),ed.current={startX:o.clientX,startY:o.clientY,lastX:o.clientX,lastY:o.clientY,startedInPopup:(0,ex.I)(u.current,s),scrollTarget:c,hasCrossAxisGestureTarget:f,allowSwipe:p,preserveNativeCrossAxisScroll:!1,drawerAxisAttributed:!1},eU.onTouchStart?.(e)},onTouchEnd(e){eT?.onTouchEnd(e),eK(),eU.onTouchEnd?.(e)},onTouchCancel(e){eT?.onTouchCancel(),eK(),eU.onTouchCancel?.(e)},"data-nested-dialog-open":void 0}),children:(0,n.jsx)(Z.Provider,{value:eB,children:s})})});function eR(e,t){e?.toggleAttribute(E,t)}function eM(e,t){return"left"===t||"right"===t?e.offsetWidth:e.offsetHeight}function ek(e,t){return Math.max(.5*eM(e,t),10)}function eF(e,t){let r,n,o=(0,ex.T)(e);if(o&&(0,ex.I)(t,o)&&("INPUT"===o.tagName||"TEXTAREA"===o.tagName)){let{selectionStart:e,selectionEnd:t}=o;if(null!=e&&null!=t&&e=i}function eA(e,t){return"vertical"===t?"down"===e:"right"===e}e.s(["Backdrop",0,N,"Content",0,C,"Popup",0,Q,"Portal",0,J,"Root",0,function(e){let{children:o,open:i,defaultOpen:s=!1,onOpenChange:a,onOpenChangeComplete:l,disablePointerDismissal:u=!1,modal:c=!0,actionsRef:d,handle:f,triggerId:m,defaultTriggerId:h=null,swipeDirection:g="down",snapToSequentialPoints:v=!1,snapPoints:w,snapPoint:x,defaultSnapPoint:b,onSnapPointChange:y}=e,S=W(!0),N=S?.onNestedSwipeProgressChange,j=S?.onNestedFrontmostHeightChange,C=S?.onNestedSwipingChange,P=S?.onNestedDrawerPresenceChange,[R,M]=p.useState(0),[k,F]=p.useState(0),[I,D]=p.useState(!1),[A,E]=p.useState(!1),[$]=p.useState(ec),O=void 0!==b?b:w?.[0]??null,Y=void 0!==x,[z,L]=(0,et.f)({controlled:x,default:O,name:"Drawer",state:"snapPoint"}),H=p.useRef(!1),U=p.useRef(!1),V=(0,T.f)((e,t)=>{let r=t??(0,eo.j)(ei.f.none);y?.(e,r),r.isCanceled||L(e)}),_=p.useMemo(()=>Y||!w||0===w.length||null!==z&&w.some(e=>Object.is(e,z))?z:O,[z,Y,O,w]),B=(0,T.f)(e=>{M(e),!H.current&&e>0&&F(e)}),Z=(0,T.f)(e=>{if(e>0){H.current=!0,F(e);return}H.current=!1,R>0&&F(R)}),K=(0,T.f)(e=>{D(e)}),q=(0,T.f)(e=>{$.set(e),N?.(e)}),G=(0,T.f)(e=>{E(e),C?.(e)}),Q=(0,T.f)((e,t)=>{a?.(e,t),!t.isCanceled&&!e&&w&&w.length>0&&V(O,(0,eo.j)(t.reason,t.event,t.trigger))}),J=p.useMemo(()=>({swipeDirection:g,swipeAreaActiveRef:U,snapToSequentialPoints:v,snapPoints:w,activeSnapPoint:_,setActiveSnapPoint:V,frontmostHeight:k,popupHeight:R,hasNestedDrawer:I,nestedSwiping:A,nestedSwipeProgressStore:$,onNestedDrawerPresenceChange:K,onPopupHeightChange:B,onNestedFrontmostHeightChange:Z,onNestedSwipingChange:G,onNestedSwipeProgressChange:q,notifyParentFrontmostHeight:j,notifyParentSwipingChange:C,notifyParentSwipeProgressChange:N,notifyParentHasNestedDrawer:P}),[_,k,I,A,$,P,N,C,j,K,Z,q,G,B,R,V,w,v,U,g]),ee="function"==typeof o?e=>(0,n.jsxs)(p.Fragment,{children:[t||(t=(0,n.jsx)(ed,{})),o(e)]}):(0,n.jsxs)(p.Fragment,{children:[r||(r=(0,n.jsx)(ed,{})),o]}),er=(0,ea.f)("drawer",{open:i,defaultOpen:s,onOpenChange:Q,onOpenChangeComplete:l,disablePointerDismissal:u,modal:c,actionsRef:d,handle:f,triggerId:m,defaultTriggerId:h,children:ee});return(0,n.jsx)(X.Provider,{value:J,children:er})},"Viewport",0,eT],22034);var eE=e.i(22034),eE=eE,e$=eE,eO=eE,eY=eE,ez=eE,eX=eE,eW=e.i(207298),eL=e.i(196991),eH=e.i(612927),eU=e.i(136562),eV=e.i(857162),e_=e.i(80676),eB=e.i(374696);let eZ=(0,p.createContext)(null),eK=l.f.Portal;function eq(e){let t,r,i,s,a,l=(0,o.c)(10);return l[0]!==e?({className:t,ref:i,...r}=e,l[0]=e,l[1]=t,l[2]=r,l[3]=i):(t=l[1],r=l[2],i=l[3]),l[4]!==t?(s=(0,eU.f)("fixed inset-0 z-modal bg-black/50 ease-drawer data-[open]:duration-slow data-[closed]:duration-medium data-[open]:animate-in data-[closed]:animate-out data-[closed]:fade-out-0 data-[open]:fade-in-0",t),l[4]=t,l[5]=s):s=l[5],l[6]!==r||l[7]!==i||l[8]!==s?(a=(0,n.jsx)(u.f.Backdrop,{className:s,"data-slot":"sheet-overlay",...r,forceRender:!0,ref:i}),l[6]=r,l[7]=i,l[8]=s,l[9]=a):a=l[9],a}let eG=(0,eW.f)("fixed gap-4 border-border bg-popover p-6 text-popover-foreground shadow-lg transition ease-drawer data-[open]:animate-in data-[closed]:animate-out data-[closed]:duration-medium data-[open]:duration-slow",{variants:{side:{top:"inset-x-0 top-0 border-b data-[closed]:slide-out-to-top data-[open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[closed]:slide-out-to-bottom data-[open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[closed]:slide-out-to-left data-[open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[closed]:slide-out-to-right data-[open]:slide-in-from-right sm:max-w-sm"},layer:{modal:"z-modal",overlay:"z-overlay"}},defaultVariants:{side:"right",layer:"modal"}}),eQ=(0,eW.f)("[--viewport-padding:0px] supports-[-webkit-touch-callout:none]:[--viewport-padding:0.625rem] fixed inset-0 z-overlay flex p-(--viewport-padding)",{variants:{side:{top:"items-start justify-stretch",bottom:"items-end justify-stretch",left:"items-stretch justify-start",right:"items-stretch justify-end"}},defaultVariants:{side:"right"}}),eJ="duration-[450ms] data-[ending-style]:duration-[calc(var(--drawer-swipe-strength)*var(--duration-slow))]",e0=(0,eW.f)((0,eU.f)("[--bleed:3rem] supports-[-webkit-touch-callout:none]:[--bleed:0px]","fixed bg-popover text-popover-foreground shadow-lg","overflow-y-auto overscroll-contain touch-auto","transition-transform ease-drawer","data-[swiping]:select-none data-[swiping]:duration-0","motion-reduce:transition-none","[&:is([data-starting-style],[data-ending-style])]:[transform:var(--exit)]"),{variants:{side:{top:(0,eU.f)("inset-x-0 top-0 max-h-[calc(100dvh-var(--viewport-padding)*2)] border-b p-6",eJ,"[transform:translateY(var(--drawer-swipe-movement-y))]","[--exit:translateY(calc(-100%+var(--bleed)-var(--viewport-padding)-2px))]"),bottom:(0,eU.f)("inset-x-2 bottom-2 max-h-[calc(100dvh-var(--viewport-padding)*2-3.5rem)] rounded-sheet border p-4","pb-sheet-safe","duration-slow data-[ending-style]:duration-[calc(var(--drawer-swipe-strength)*var(--duration-fast))]","[transform:translateY(var(--drawer-swipe-movement-y))]","[--exit:translateY(calc(100%-var(--bleed)+var(--viewport-padding)+0.5rem+2px))]"),left:(0,eU.f)("inset-y-0 left-0 h-full w-3/4 border-r p-6 sm:max-w-sm",eJ,"[transform:translateX(var(--drawer-swipe-movement-x))]","[--exit:translateX(calc(-100%-var(--viewport-padding)-2px))]"),right:(0,eU.f)("inset-y-0 right-0 h-full w-3/4 border-l p-6 sm:max-w-sm",eJ,"[transform:translateX(var(--drawer-swipe-movement-x))]","[--exit:translateX(calc(100%+var(--viewport-padding)+2px))]")}},defaultVariants:{side:"right"}});function e1(e){let t,r,i,s,l,u,c,d,f,p,m,h,g,v,w,x,b,y,S,N,j,C,P,T,R,M=(0,o.c)(62);if(M[0]!==e){let{side:n,className:o,children:a,showCloseButton:g,overlayClassName:v,keepMounted:w,container:x,nonModal:b,showNonModalScrim:y,ref:S,render:N,style:j,...C}=e;d=n,r=o,t=a,f=g,s=v,p=w,i=x,m=b,h=y,u=S,c=j,l=C,M[0]=e,M[1]=t,M[2]=r,M[3]=i,M[4]=s,M[5]=l,M[6]=u,M[7]=c,M[8]=d,M[9]=f,M[10]=p,M[11]=m,M[12]=h}else t=M[1],r=M[2],i=M[3],s=M[4],l=M[5],u=M[6],c=M[7],d=M[8],f=M[9],p=M[10],m=M[11],h=M[12];let k=void 0===d?"right":d,F=void 0===f||f,I=void 0===p||p,D=void 0!==m&&m,A=void 0!==h&&h,E=(0,eB.r)();M[13]!==s||M[14]!==E?(g=s?.includes("z-popover-overlay")?"z-popover-overlay":E,M[13]=s,M[14]=E,M[15]=g):g=M[15];let $=g;return M[16]!==D||M[17]!==s||M[18]!==E||M[19]!==k?(v=!D&&(0,n.jsx)(e$.Backdrop,{className:(0,eU.f)("fixed inset-0 z-overlay min-h-dvh bg-black/50 opacity-[calc(1-var(--drawer-swipe-progress))] transition-opacity ease-drawer data-[swiping]:duration-0 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0 supports-[-webkit-touch-callout:none]:absolute",E,e2(k),s),"data-slot":"sheet-overlay",forceRender:!0}),M[16]=D,M[17]=s,M[18]=E,M[19]=k,M[20]=v):v=M[20],M[21]!==D||M[22]!==s||M[23]!==A||M[24]!==k?(w=D&&A&&(0,n.jsx)(e$.Backdrop,{className:(0,eU.f)("pointer-events-none fixed inset-0 z-overlay min-h-dvh bg-background/80 transition-opacity ease-drawer data-[ending-style]:opacity-0 data-[starting-style]:opacity-0",e2(k),s),"data-slot":"sheet-overlay",forceRender:!0}),M[21]=D,M[22]=s,M[23]=A,M[24]=k,M[25]=w):w=M[25],M[26]!==$||M[27]!==D||M[28]!==k?(x=(0,eU.f)(eQ({side:k}),$,D&&"pointer-events-none"),M[26]=$,M[27]=D,M[28]=k,M[29]=x):x=M[29],M[30]!==r||M[31]!==$||M[32]!==D||M[33]!==k?(b=(0,eU.f)(e0({side:k}),$,D&&"pointer-events-auto",r),M[30]=r,M[31]=$,M[32]=D,M[33]=k,M[34]=b):b=M[34],M[35]!==c?(y="function"==typeof c?e=>c({open:e.open,transitionStatus:e.transitionStatus,nested:e.nested,nestedDialogOpen:e.nestedDrawerOpen}):c,M[35]=c,M[36]=y):y=M[36],M[37]!==t||M[38]!==D?(S=D?t:(0,n.jsx)(eB.l,{children:t}),M[37]=t,M[38]=D,M[39]=S):S=M[39],M[40]!==S?(N=(0,n.jsx)(eO.Content,{className:"contents",children:S}),M[40]=S,M[41]=N):N=M[41],M[42]!==F?(j=F&&(0,n.jsxs)(a.f.Close,{className:(0,eU.f)("absolute right-6 top-6 cursor-pointer",e_.k,"rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100","focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none"),children:[(0,n.jsx)(eH.X,{className:"h-4 w-4"}),(0,n.jsx)(eL.T,{children:(0,n.jsx)("span",{className:"sr-only",children:"Close"})})]}),M[42]=F,M[43]=j):j=M[43],M[44]!==l||M[45]!==u||M[46]!==b||M[47]!==y||M[48]!==N||M[49]!==j?(C=(0,n.jsxs)(eY.Popup,{ref:u,initialFocus:!1,className:b,style:y,...l,children:[N,j]}),M[44]=l,M[45]=u,M[46]=b,M[47]=y,M[48]=N,M[49]=j,M[50]=C):C=M[50],M[51]!==C||M[52]!==x?(P=(0,n.jsx)(ez.Viewport,{className:x,children:C}),M[51]=C,M[52]=x,M[53]=P):P=M[53],M[54]!==P||M[55]!==v||M[56]!==w?(T=(0,n.jsxs)(eV.ContainedContextProvider,{value:!1,children:[v,w,P]}),M[54]=P,M[55]=v,M[56]=w,M[57]=T):T=M[57],M[58]!==i||M[59]!==I||M[60]!==T?(R=(0,n.jsx)(eX.Portal,{keepMounted:I,container:i,children:T}),M[58]=i,M[59]=I,M[60]=T,M[61]=R):R=M[61],R}function e2(e){return"bottom"===e?"duration-slow data-[ending-style]:duration-fast":"duration-[450ms] data-[ending-style]:duration-slow"}e.s(["j",0,function(e){let t,r=(0,o.c)(11);if(void 0!==e.swipeDirection){let t,o,i,s;return r[0]!==e?({swipeDirection:o,...t}=e,r[0]=e,r[1]=t,r[2]=o):(t=r[1],o=r[2]),r[3]!==t||r[4]!==o?(i=(0,n.jsx)(eE.Root,{swipeDirection:o,...t}),r[3]=t,r[4]=o,r[5]=i):i=r[5],r[6]!==o||r[7]!==i?(s=(0,n.jsx)(eZ.Provider,{value:o,children:i}),r[6]=o,r[7]=i,r[8]=s):s=r[8],s}return r[9]!==e?(t=(0,n.jsx)(eZ.Provider,{value:null,children:(0,n.jsx)(i.f.Root,{...e})}),r[9]=e,r[10]=t):t=r[10],t},"O",0,function(e){let t,r=(0,o.c)(2);return r[0]!==e?(t=(0,n.jsx)(a.f.Close,{...e}),r[0]=e,r[1]=t):t=r[1],t},"U",0,function(e){let t,r,i,s,l,u,d,f,m,h,g,v,w,x,b,y,S,N,j,C=(0,o.c)(54);C[0]!==e?({side:d,className:r,children:t,showCloseButton:f,overlayClassName:s,keepMounted:m,container:i,nonModal:h,showNonModalScrim:g,ref:u,...l}=e,C[0]=e,C[1]=t,C[2]=r,C[3]=i,C[4]=s,C[5]=l,C[6]=u,C[7]=d,C[8]=f,C[9]=m,C[10]=h,C[11]=g):(t=C[1],r=C[2],i=C[3],s=C[4],l=C[5],u=C[6],d=C[7],f=C[8],m=C[9],h=C[10],g=C[11]);let P=void 0===d?"right":d,T=void 0===f||f,R=void 0===m||m,M=void 0!==h&&h,k=void 0!==g&&g;if(null!==(0,p.useContext)(eZ)){let e;return C[12]!==t||C[13]!==r||C[14]!==i||C[15]!==R||C[16]!==M||C[17]!==s||C[18]!==l||C[19]!==u||C[20]!==T||C[21]!==k||C[22]!==P?(e=(0,n.jsx)(e1,{side:P,className:r,showCloseButton:T,overlayClassName:s,keepMounted:R,container:i,nonModal:M,showNonModalScrim:k,ref:u,...l,children:t}),C[12]=t,C[13]=r,C[14]=i,C[15]=R,C[16]=M,C[17]=s,C[18]=l,C[19]=u,C[20]=T,C[21]=k,C[22]=P,C[23]=e):e=C[23],e}return C[24]!==M||C[25]!==s?(v=!M&&(0,n.jsx)(eq,{className:s}),C[24]=M,C[25]=s,C[26]=v):v=C[26],C[27]!==M||C[28]!==s||C[29]!==k?(w=M&&k&&(0,n.jsx)(eq,{className:(0,eU.f)("pointer-events-none z-overlay",s)}),C[27]=M,C[28]=s,C[29]=k,C[30]=w):w=C[30],C[31]!==r||C[32]!==M||C[33]!==P?(x=(0,eU.f)(eG({side:P,layer:M?"overlay":"modal"}),r),C[31]=r,C[32]=M,C[33]=P,C[34]=x):x=C[34],C[35]!==t||C[36]!==M?(b=M?t:(0,n.jsx)(eB.l,{children:t}),C[35]=t,C[36]=M,C[37]=b):b=C[37],C[38]!==T?(y=T&&(0,n.jsxs)(a.f.Close,{className:(0,eU.f)("absolute right-6 top-6 cursor-pointer",e_.k,"rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100","focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none"),children:[(0,n.jsx)(eH.X,{className:"h-4 w-4"}),(0,n.jsx)(eL.T,{children:(0,n.jsx)("span",{className:"sr-only",children:"Close"})})]}),C[38]=T,C[39]=y):y=C[39],C[40]!==l||C[41]!==u||C[42]!==y||C[43]!==x||C[44]!==b?(S=(0,n.jsxs)(c.f.Popup,{ref:u,initialFocus:!1,className:x,...l,children:[b,y]}),C[40]=l,C[41]=u,C[42]=y,C[43]=x,C[44]=b,C[45]=S):S=C[45],C[46]!==S||C[47]!==v||C[48]!==w?(N=(0,n.jsxs)(eV.ContainedContextProvider,{value:!1,children:[v,w,S]}),C[46]=S,C[47]=v,C[48]=w,C[49]=N):N=C[49],C[50]!==i||C[51]!==R||C[52]!==N?(j=(0,n.jsx)(eK,{keepMounted:R,container:i,children:N}),C[50]=i,C[51]=R,C[52]=N,C[53]=j):j=C[53],j},"c",0,function(e){let t,r,i,s,a,l=(0,o.c)(10);return l[0]!==e?({className:t,ref:i,...r}=e,l[0]=e,l[1]=t,l[2]=r,l[3]=i):(t=l[1],r=l[2],i=l[3]),l[4]!==t?(s=(0,eU.f)("text-xs text-muted-foreground",t),l[4]=t,l[5]=s):s=l[5],l[6]!==r||l[7]!==i||l[8]!==s?(a=(0,n.jsx)(f.f.Description,{ref:i,className:s,...r}),l[6]=r,l[7]=i,l[8]=s,l[9]=a):a=l[9],a},"L",0,function(e){let t,r,i,s,a,l=(0,o.c)(10);return l[0]!==e?({className:t,ref:i,...r}=e,l[0]=e,l[1]=t,l[2]=r,l[3]=i):(t=l[1],r=l[2],i=l[3]),l[4]!==t?(s=(0,eU.f)("pr-10 text-base font-semibold text-foreground",t),l[4]=t,l[5]=s):s=l[5],l[6]!==r||l[7]!==i||l[8]!==s?(a=(0,n.jsx)(d.f.Title,{ref:i,className:s,...r}),l[6]=r,l[7]=i,l[8]=s,l[9]=a):a=l[9],a},"V",0,function(e){let t,r=(0,o.c)(2);return r[0]!==e?(t=(0,n.jsx)(s.f.Trigger,{...e}),r[0]=e,r[1]=t):t=r[1],t}],217411)},51365,e=>{"use strict";e.i(640216);let t=new Set(["ac","co","com","edu","go","gob","gov","ltd","me","ne","net","nom","or","org","plc","sch"]),r=(e,t=256)=>`https://t0.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=${e}&size=${t}`,n=new Set(["amazonaws.com","azurewebsites.net","cloudfront.net","firebaseapp.com","fly.dev","github.io","gitlab.io","herokuapp.com","ngrok.app","ngrok.io","netlify.app","onrender.com","pages.dev","run.app","vercel.app","web.app","workers.dev"]),o=/\.(png|jpe?g|ico|svg|webp|gif|bmp)$/i,i=r("https://huggingface.co/");e.s(["t",0,i,"g",0,e=>`/api/frontend/v1/apps/${e}/icon`,"e",0,r,"r",0,e=>`/images/icons/${e}`,"Z",0,e=>{let r=(e=>{let t=/^[a-z][a-z\d+\-.]*:\/\//iu.test(e)?e:`https://${e}`;try{return new URL(t).hostname.toLowerCase().replace(/\.$/u,"")}catch{return null}})(e);if(null===r)return null;let o=r.split(".").slice(1);if(o.length<2||2===o.length&&2===(o[1]??"").length&&t.has(o[0]??""))return null;let i=o.join(".");return[...n].some(e=>i===e||i.endsWith(`.${e}`))?null:`https://${i}`},"Q",0,e=>{try{return o.test(new URL(e).pathname)}catch{return!1}},"$",0,e=>{try{let t=new URL(e).hostname.toLowerCase().replace(/\.$/,"");return"openrouter.ai"===t||t.endsWith(".openrouter.ai")}catch{return!1}}],51365)},640216,e=>{"use strict";var t=e.i(914571),r=e.i(647204),n=e.i(30012);function o(e){let t=e.replaceAll(/^\[|\]$/g,""),r=l(t);if(r)return o(r);if(i(t)){let e=Number.parseInt(t.split(".")[0]??"",10);return 0===e||127===e}let n=s(t);if(n)return n.slice(0,15).every(e=>0===e)&&(0===n[15]||1===n[15]);let a=u(t);return"localhost"===a||a.endsWith(".localhost")||a.includes(":")}function i(e){let t=e.split(".");return 4===t.length&&t.every(e=>/^\d{1,3}$/.test(e)&&Number(e)>=0&&255>=Number(e))}function s(e){let t=e.replaceAll(/^\[|\]$/g,"").toLowerCase(),r=t.indexOf("%");if(-1!==r){if(0===r||r===t.length-1)return null;t=t.slice(0,r)}if(!t.includes(":"))return null;if(t.includes(".")){let e=t.lastIndexOf(":");if(-1===e)return null;let r=t.slice(e+1);if(!i(r))return null;let n=r.split(".").map(Number),o=(n[0]??0)<<8|(n[1]??0),s=(n[2]??0)<<8|(n[3]??0);t=`${t.slice(0,e+1)}${o.toString(16)}:${s.toString(16)}`}let n=t.indexOf("::");if(n!==t.lastIndexOf("::"))return null;let o=-1!==n?function(e,t){let r=e.slice(0,t),n=e.slice(t+2),o=""===r?[]:r.split(":"),i=""===n?[]:n.split(":");if(o.some(e=>""===e)||i.some(e=>""===e))return null;let s=8-o.length-i.length;return s<1?null:[...o,...Array.from({length:s},()=>"0"),...i]}(t,n):t.split(":");return null===o||8!==o.length||o.some(e=>!/^[0-9a-f]{1,4}$/.test(e))?null:o.flatMap(e=>{let t=Number.parseInt(e,16);return[t>>8&255,255&t]})}function a(e){return 254===e[0]&&((e[1]??0)&192)==128}function l(e){let t=s(e);if(null===t)return null;let r=t.slice(0,10).every(e=>0===e)&&255===t[10]&&255===t[11],n=t.slice(0,12).every(e=>0===e),o=t.slice(0,15).every(e=>0===e)&&(0===t[15]||1===t[15]);return!r&&!n||n&&o?null:`${t[12]}.${t[13]}.${t[14]}.${t[15]}`}function u(e){let t=e.toLowerCase(),r=t.length;for(;r>0&&"."===t[r-1];)r-=1;return t.slice(0,r)}t.n,e.s(["b",0,function(e,t){return"https:"===e.protocol||"http:"===e.protocol&&t&&o(e.hostname)},"i",0,function(e){let t=u(e);return"cfargotunnel.com"===t||t.endsWith(".cfargotunnel.com")},"y",0,o,"r",0,function(e){let t=u(e);return"openrouter.ai"===t||t.endsWith(".openrouter.ai")},"E",0,function(e,t={}){let c,d,f,p;try{c=new URL(e)}catch{return(0,r.Y)("Invalid URL format")}let m=c.hostname.toLowerCase(),h=c.protocol,g=(0,n.T)()&&!0;if(o(m)&&g)return"http:"!==h&&"https:"!==h?(0,r.Y)("Only HTTP and HTTPS protocols are allowed"):(0,r.N)(!0);if(o(m))return(0,r.Y)("Localhost URLs are not allowed");if(function e(t){let r=l(t.replaceAll(/^\[|\]$/g,""));if(r)return e(r)||o(r);if(i(t)){let e=t.split(".").map(Number);if(4!==e.length||e.some(e=>Number.isNaN(e)))return!1;let[r,n]=e;return void 0!==r&&void 0!==n&&(10===r||172===r&&n>=16&&n<=31||192===r&&168===n||100===r&&n>=64&&n<=127||169===r&&254===n)}if(null!==s(t)){let e=s(t);return null!==e&&(((e[0]??0)&254)==252||a(e))}return!1}(m))return(0,r.Y)("Private IP addresses are not allowed");if(function(e){if(i(e)){let t=e.split(".").map(Number);if(4===t.length&&169===t[0]&&254===t[1])return!0}if(null!==s(e)){let t=s(e);return null!==t&&a(t)}return!1}(m)||"metadata.google.internal"===(d=u(m))||d.endsWith(".metadata.google.internal")||(f=u(m)).endsWith(".svc")||f.endsWith(".svc.cluster.local")||f.endsWith(".cluster.local")||(p=u(m)).endsWith(".internal")||p.endsWith(".local"))return(0,r.Y)("Unsupported URL, public internet addresses only");if(!g&&"https:"!==h){if(!t.allowHttp)return(0,r.Y)("Only HTTPS URLs are allowed");if("http:"!==h)return(0,r.Y)("Only HTTP and HTTPS protocols are allowed")}return g&&"http:"!==h&&"https:"!==h?(0,r.Y)("Only HTTP and HTTPS protocols are allowed in dev"):(0,r.N)(!0)}],640216)},667417,e=>{"use strict";var t,r,n=e.i(988590),o=((t={}).Text="text",t.Image="image",t.Embeddings="embeddings",t.Audio="audio",t.Video="video",t.Rerank="rerank",t.Decisions="decisions",t.TTS="speech",t.Transcription="transcription",t),i=((r={}).Text="text",r.Image="image",r.File="file",r.Audio="audio",r.Video="video",r);let s=(0,n.v)(i),a=(0,n.v)(o);e.s(["v",0,s,"D",()=>i,"Z",0,a,"j",()=>o,"f",0,["text","image","video","speech","transcription","embeddings","rerank","decisions","audio"],"K",0,function(e){return 1===e.length&&e.includes("text")}])}]); //# sourceMappingURL=0e3zmf35429q3.js.map