1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,140197,e=>{"use strict";e.s([],243736),e.i(243736),e.i(39693);var t,r,n,i,l,o,u=e.i(630242),s=e.i(68585),a=e.i(648585),c=e.i(833551),p=e.i(810954);let f=((t={}).nestedDrawers="--nested-drawers",t.height="--drawer-height",t.frontmostHeight="--drawer-frontmost-height",t.swipeMovementX="--drawer-swipe-movement-x",t.swipeMovementY="--drawer-swipe-movement-y",t.snapPointOffset="--drawer-snap-point-offset",t.swipeStrength="--drawer-swipe-strength",t),d=((r={}).swipeProgress="--drawer-swipe-progress",r),h={...c.popupStateMapping,...p.transitionStatusMapping},g=u.forwardRef(function(e,t){let{render:r,className:n,forceRender:i=!1,...l}=e,{store:o}=(0,s.useDialogRootContext)(),u=o.useState("open"),c=o.useState("nested"),p=o.useState("mounted"),g=o.useState("transitionStatus");return(0,a.useRenderElement)("div",e,{state:{open:u,transitionStatus:g},ref:[o.context.backdropRef,t],stateAttributesMapping:h,props:[{role:"presentation",hidden:!p,style:{pointerEvents:u?void 0:"none",userSelect:"none",WebkitUserSelect:"none",[d.swipeProgress]:"0",[f.swipeStrength]:"1"}},l],enabled:i||!c})}),m=e.i(677775).DialogClose,x="data-drawer-content",v=u.forwardRef(function(e,t){let{render:r,className:n,...i}=e;return(0,s.useDialogRootContext)(),(0,a.useRenderElement)("div",e,{ref:t,props:[{[x]:""},i]})}),w=e.i(61009).DialogDescription;var y=e.i(565693),b=e.i(702232);let S=u.createContext(void 0);function P(e){let t=u.useContext(S);if(!1===e&&void 0===t)throw Error((0,b.default)(91));return t}let C={active:e=>e?{"data-active":""}:{"data-inactive":""}},R=u.forwardRef(function(e,t){let{render:r,className:n,...i}=e,l=P(!0),o=l?.active??!1,s=l?.visualStateStore,c=u.useRef(null);return(0,y.useIsoLayoutEffect)(()=>{let e=c.current;if(!e||!s)return;let t=()=>{let{swipeProgress:t,frontmostHeight:r}=s.getSnapshot();t<=0?e.style.setProperty(d.swipeProgress,"0"):e.style.setProperty(d.swipeProgress,`${t}`),r<=0?e.style.removeProperty(f.height):e.style.setProperty(f.height,`${r}px`)};t();let r=s.subscribe(t);return()=>{r(),e.style.setProperty(d.swipeProgress,"0"),e.style.removeProperty(f.height)}},[s]),(0,a.useRenderElement)("div",e,{ref:[t,c],state:{active:o},props:[{style:{[d.swipeProgress]:"0"}},i],stateAttributesMapping:C})}),E={active:e=>e?{"data-active":""}:{"data-inactive":""}},M=u.forwardRef(function(e,t){let{render:r,className:n,...i}=e,l=P(!0),o=l?.active??!1;return(0,a.useRenderElement)("div",e,{ref:t,state:{active:o},props:i,stateAttributesMapping:E})});var D=e.i(278051),N=e.i(901348);let T=((n={})[n.open=c.CommonPopupDataAttributes.open]="open",n[n.closed=c.CommonPopupDataAttributes.closed]="closed",n[n.startingStyle=c.CommonPopupDataAttributes.startingStyle]="startingStyle",n[n.endingStyle=c.CommonPopupDataAttributes.endingStyle]="endingStyle",n.expanded="data-expanded",n.nestedDrawerOpen="data-nested-drawer-open",n.nestedDrawerSwiping="data-nested-drawer-swiping",n.swipeDismiss="data-swipe-dismiss",n.swipeDirection="data-swipe-direction",n.swiping="data-swiping",n);var F=e.i(998471),k=e.i(24542),A=e.i(845891);let O=u.createContext(void 0);function q(e){let t=u.useContext(O);if(!1===e&&void 0===t)throw Error((0,b.default)(90));return t}var Y=e.i(226115),j=e.i(295445);function X(e,t,r){if(!Number.isFinite(t)||t<=0)return null;if("number"==typeof e)return Number.isFinite(e)?e<=1?(0,j.clamp)(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 H(){let{store:e}=(0,s.useDialogRootContext)(),{snapPoints:t,activeSnapPoint:r,setActiveSnapPoint:n,popupHeight:i}=q(),l=e.useState("viewportElement"),[o,a]=u.useState(0),[c,p]=u.useState(16),f=(0,D.useStableCallback)(()=>{let e=(0,Y.ownerDocument)(l).documentElement;l&&a(l.offsetHeight),l||a(e.clientHeight);let t=parseFloat(getComputedStyle(e).fontSize);Number.isFinite(t)&&p(t)});(0,y.useIsoLayoutEffect)(()=>{if(f(),!l||"function"!=typeof ResizeObserver)return;let e=new ResizeObserver(f);return e.observe(l),()=>{e.disconnect()}},[f,l]);let d=u.useMemo(()=>
1{if(!t||0===t.length||o<=0||i<=0)return[];let e=Math.min(i,o);if(!Number.isFinite(e)||e<=0)return[];let r=t.map(t=>{let r=X(t,o,c);if(null===r||!Number.isFinite(r))return null;let n=(0,j.clamp)(r,0,e);return{value:t,height:n,offset:Math.max(0,i-n)}}).filter(e=>!!e);if(r.length<=1)return r;let n=[],l=[];for(let e=r.length-1;e>=0;e-=1){let t=r[e];l.some(e=>1>=Math.abs(e-t.height))||(l.push(t.height),n.push(t))}return n.reverse(),n},[i,c,t,o]),h=u.useMemo(()=>{if(void 0===r)return d[0];if(null===r)return;let e=d.find(e=>Object.is(e.value,r));if(e)return e;let t=Math.min(i,o),n=X(r,o,c);if(null!==n&&Number.isFinite(n))return function(e,t){let r=null,n=1/0;for(let i of t){let t=Math.abs(i.height-e);t<n&&(n=t,r=i)}return r}((0,j.clamp)(n,0,t),d)??void 0},[r,i,d,c,o]);return{snapPoints:t,activeSnapPoint:r,setActiveSnapPoint:n,popupHeight:i,viewportHeight:o,resolvedSnapPoints:d,activeSnapPointOffset:h?.offset??null}}let I=u.createContext(null);var W=e.i(297454),$=e.i(161605);let V=!1,L={...c.popupStateMapping,...p.transitionStatusMapping,expanded:e=>e?{[T.expanded]:""}:null,nestedDrawerOpen:e=>e?{[T.nestedDrawerOpen]:""}:null,nestedDrawerSwiping:e=>e?{[T.nestedDrawerSwiping]:""}:null,swipeDirection:e=>e?{[T.swipeDirection]:e}:null,swiping:e=>e?{[T.swiping]:""}:null},z=u.forwardRef(function(e,t){let r,{className:n,finalFocus:i,initialFocus:l,render:o,...c}=e,{store:p}=(0,s.useDialogRootContext)(),{swipeDirection:h,frontmostHeight:g,hasNestedDrawer:m,nestedSwiping:x,nestedSwipeProgressStore:v,onPopupHeightChange:w,notifyParentFrontmostHeight:S,notifyParentHasNestedDrawer:P}=q(),C=p.useState("descriptionElementId"),R=p.useState("disablePointerDismissal"),E=p.useState("floatingRootContext"),M=p.useState("popupProps"),T=p.useState("modal"),O=p.useState("mounted"),Y=p.useState("nested"),j=p.useState("nestedOpenDialogCount"),X=p.useState("transitionStatus"),z=p.useState("open"),B=p.useState("openMethod"),U=p.useState("titleElementId"),_=p.useState("role"),K=j>0,G=function(e){let t=u.useContext(I);if(!1===e&&null===t)throw Error((0,b.default)(92));return t}(!0),J=G?.swiping??!1,Q=G?.swipeStrength??null,{snapPoints:Z,activeSnapPoint:ee,activeSnapPointOffset:et}=H();(0,F.useDialogPortalContext)();let[er,en]=u.useState(0),ei=u.useRef(0),el=(0,D.useStableCallback)(()=>{let e=p.context.popupRef.current;if(!e)return;let t=e.offsetHeight;if(!(ei.current>0)||!(g>ei.current)||!(t>ei.current)){if(ei.current>0&&m){let e=ei.current;en(e),w(e);return}t!==ei.current&&(ei.current=t,en(t),w(t))}});(0,y.useIsoLayoutEffect)(()=>{if(!O){ei.current=0,en(0),w(0);return}let e=p.context.popupRef.current;if(!e||(V||("u">typeof CSS&&"registerProperty"in CSS&&([f.swipeMovementX,f.swipeMovementY,f.snapPointOffset].forEach(e=>{try{CSS.registerProperty({name:e,syntax:"<length>",inherits:!1,initialValue:"0px"})}catch{}}),[{name:d.swipeProgress,initialValue:"0"},{name:f.swipeStrength,initialValue:"1"}].forEach(({name:e,initialValue:t})=>{try{CSS.registerProperty({name:e,syntax:"<number>",inherits:!1,initialValue:t})}catch{}})),V=!0),el(),"function"!=typeof ResizeObserver))return;let t=new ResizeObserver(el);return t.observe(e),()=>{t.disconnect()}},[el,O,K,w,p.context.popupRef]),(0,y.useIsoLayoutEffect)(()=>{let e=p.context.popupRef,t=()=>{let t=e.current;if(!t)return;let r=v.getSnapshot();r>0?t.style.setProperty(d.swipeProgress,`${r}`):t.style.setProperty(d.swipeProgress,"0")};t();let r=v.subscribe(t);return()=>{r();let t=e.current;t&&t.style.setProperty(d.swipeProgress,"0")}},[v,p.context.popupRef]),u.useEffect(()=>{if(z)return S?.(g),()=>{S?.(0)}},[g,z,S]),u.useEffect(()=>{if(P)return P(z||"ending"===X),()=>{P(!1)}},[P,z,X]),(0,k.useOpenChangeComplete)({open:z,ref:p.context.popupRef,onComplete(){z&&p.context.onOpenChangeComplete?.(!0)}});let eo=void 0===l?p.context.popupRef:l,eu=!m&&"ending"!==X;er&&!eu&&(r=`${er}px`);let es=Z&&Z.length>0&&("down"===h||"up"===h),ea=null;es&&null!==et&&(ea="up"===h?-et:et);let ec=G?G.getDragStyles():W.EMPTY_OBJECT;if(es&&"down"===h){let e=et??0,t=Number.parseFloat(String(ec[f.swipeMovementY]??0)),r=Number.isFinite(t)?e+t:e;if(J&&r<0&&Number.isFinite(t)){let t=-Math.sqrt(Math.abs(r));ec={...ec,transform:void 0,[f.swipeMovementY]:`${t-e}px`}}else ec={...ec,transform:void 0}}let ep=(0,a.useRenderElement)("div",e,{state:{open:z,nested:Y,transitionStatus:X,expanded:1===ee,nestedDrawerOpen:K,nestedDrawerSwiping:x,swipeDirection:h,swiping:J},props:[M,{"aria-labelledby":U,"aria-describedby":C,role:_,tabIndex:-1,hidden:!O,onKeyDown(e){A.COMPOSITE_KEYS.has(e.key)&&e.stopPropagation()}
1,style:{...ec,[d.swipeProgress]:"0",[f.nestedDrawers]:j,[f.height]:r,[f.snapPointOffset]:"number"==typeof ea?`${ea}px`:"0px",[f.frontmostHeight]:g?`${g}px`:void 0,[f.swipeStrength]:"number"==typeof Q&&Number.isFinite(Q)&&Q>0?`${Q}`:"1"}},c],ref:[t,p.context.popupRef,p.useStateSetter("popupElement")],stateAttributesMapping:L});return(0,$.jsx)(N.FloatingFocusManager,{context:E,openInteractionType:B,disabled:!O,closeOnFocusOut:!R,initialFocus:eo,returnFocus:i,modal:!1!==T,restoreFocus:"popup",children:ep})}),B=e.i(329423).DialogPortal;function U(){let e={swipeProgress:0,frontmostHeight:0},t=new Set;return{getSnapshot:()=>e,set(r){let n=e.swipeProgress;void 0!==r.swipeProgress&&(n=Number.isFinite(r.swipeProgress)?r.swipeProgress:0);let i=e.frontmostHeight;void 0!==r.frontmostHeight&&(i=Number.isFinite(r.frontmostHeight)?r.frontmostHeight:0),(n!==e.swipeProgress||i!==e.frontmostHeight)&&(e={swipeProgress:n,frontmostHeight:i},t.forEach(e=>{e()}))},subscribe:e=>(t.add(e),()=>{t.delete(e)})}}var _=e.i(48416),K=e.i(479995),G=e.i(234006),J=e.i(761806),Q=e.i(305281),Z=e.i(523686),ee=e.i(739474);function et(){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 er(){let e=(0,J.useId)(),t=P(!0),r=(0,s.useDialogRootContext)(!1),n=r.store.useState("open"),i=r.store.useState("nestedOpenDialogCount"),l=r.store.useState("popupElement"),o=0===i;return u.useEffect(()=>{if(t&&null!=e)return()=>{t.removeDrawer(e)}},[e,t]),u.useEffect(()=>{null!=e&&t?.setDrawerOpen(e,n)},[e,n,t]),u.useEffect(()=>{if(!n||!o||!G.isAndroid)return;let e=(0,K.ownerWindow)(l).CloseWatcher;if(!e)return;function t(e){r.store.select("open")&&r.store.setOpen(!1,(0,Z.createChangeEventDetails)(ee.REASONS.closeWatcher,e))}let i=new e;return i.addEventListener("close",t),()=>{i.removeEventListener("close",t),i.destroy()}},[r.store,o,n,l]),null}var en=e.i(732612),ei=e.i(430186),el=e.i(880269);function eo(e,t){let r=(0,el.getComputedStyle)(e);if("vertical"===t){let t=r.overflowY;return("auto"===t||"scroll"===t)&&e.scrollHeight>e.clientHeight}let n=r.overflowX;return("auto"===n||"scroll"===n)&&e.scrollWidth>e.clientWidth}function eu(e,t,r="vertical"){let n=(0,el.isHTMLElement)(e)?e:null;for(;n&&n!==t;){if(eo(n,r))return n;n=n.parentElement}return eo(t,r)?t:null}function es(e,t,r){return"function"==typeof e?.elementFromPoint?e.elementFromPoint(t,r):null}function ea(e,t,r){switch(e){case"up":return-r;case"down":return r;case"left":return-t;case"right":return t;default:return 0}}function ec(e){let t=window.getComputedStyle(e).transform,r=0,n=0,i=1;if(t&&"none"!==t){let e=t.match(/matrix(?:3d)?\(([^)]+)\)/);if(e){let t=e[1].split(", ").map(parseFloat);6===t.length?(r=t[4],n=t[5],i=Math.sqrt(t[0]*t[0]+t[1]*t[1])):16===t.length&&(r=t[12],n=t[13],i=t[0])}}return{x:r,y:n,scale:i}}function ep(e){return Number.isFinite(e)&&e>0?e:null}function ef(e,t,r){let n=e[r];if("function"==typeof n)try{n.call(e,t)}catch(e){if(e&&"object"==typeof e&&"name"in e&&"NotFoundError"===e.name)return;throw e}}function ed(e){let{enabled:t,directions:r,elementRef:n,movementCssVars:i,canStart:l,ignoreSelectorWhenTouch:o=!0,ignoreScrollableAncestors:s=!1,swipeThreshold:a,onDismiss:c,onProgress:p,onSwipeStart:f,onRelease:d,onSwipingChange:h,trackDrag:g=!0}=e,m=1===r.length?r[0]:void 0,x=Math.max(0,"number"==typeof a?a:40),v=r.includes("left"),w=r.includes("right"),y=r.includes("up"),b=r.includes("down"),S=v||w,P=y||b,C=u.useMemo(()=>{let e=[];return P&&e.push("vertical"),S&&e.push("horizontal"),e},[S,P]),[R,E]=u.useState(void 0),[M,N]=u.useState(!1),[T,F]=u.useState(!1),[k,A]=u.useState(!1),[O,q]=u.useState({x:0,y:0}),[X,H]=u.useState({x:0,y:0,scale:1}),[I,W]=u.useState(null),$=u.useRef({x:0,y:0}),V=u.useRef({x:0,y:0}),L=u.useRef(null),z=u.useRef({x:0,y:0,scale:1}),B=u.useRef(void 0),U=u.useRef(0),_=u.useRef(!1),K=u.useRef({x:0,y:0}),G=u.useRef(!1),J=u.useRef(!1),Q=u.useRef(null),Z=u.useRef(!1),ee=u.useRef(!1),et=u.useRef({width:0,height:0}),er=u.useRef(0),en=u.useRef(x),el=u.useRef(null),ed=u.useRef(null),eh=u.useRef({x:0,y:0}),eg=u.useRef(null),em=u.useRef(!1),ex=(0,D.useStableCallback)(e=>{em.current!==e&&(em.current=e,N(e),h?.(e))});function ev(e){if(!e)return;if("function"!=typeof a){en.current=x;return}let t=n.current;t&&(en.current=Math.max(0,a({element:t,direction:e})))}let ew=(0,D.useStableCallback)((e,t)=>{let r=Number.isFinite(e)?(0,j.clamp)(e,0,1):0,n=r!==er.current,i=!1;if(t){let e=eg.current;i=!e||e.deltaX!==t.deltaX||e.deltaY!==t.deltaY||e.direction!==t.direction}(n||i)&&(er.current=r,t?eg.current=t:n&&(eg.current=null),p?.(r,t))});function ey(e,t){if(null===t)return;let r=ed.current;if(r&&t>r.time){let n=Math.max(t-r.time,16);eh.current={x:(e.x-r.x)/n,y:(e.y-r.y)/n}}ed.current={x:e.x,y:e.y,time:t}}let eb=u.useCallback(()=>{E(void 0),ex(!1),F(!1),A(!1),q({x:0,y:0}),H({x:0,y:0,scale:1}),W(null),ew(0),en.current=x,$.current={x:0,y:0},V.current={x:0,y:0},z.current={x:0,y:0,scale:1},B.current=void 0,U.current=0,_.current=!1,K.current={x:0,y:0},G.current=!1,L.current=null,J.current=!1,Q.current=null,Z.current=!1,ee.current=!1,et.current={width:0,height:0},el.current=null,ed.current=null,eh.current={x:0,y:0},eg.current=null},[ex,x,ew]);function eS(e){if("touches"in e){let t=e.touches[0];return t?{x:t.clientX,y:t.clientY}:null}return{x:e.clientX,y:e.clientY}}function eP(e){return"touches"in e||"touch"===e.pointerType}
1function eC(e,t){return es((0,Y.ownerDocument)(n.current),e.x,e.y)??(0,ei.getTarget)(t)}function eR(e,t){return S&&!P?eu(e,t,"horizontal"):P&&!S?eu(e,t,"vertical"):eu(e,t,"vertical")??eu(e,t,"horizontal")}function eE(e,t,r){Z.current=!1;let i=eP(e),l=eC(t,e.nativeEvent),u=(0,Y.ownerDocument)(n.current).body,a=i&&u?eR(l,u):null,c=r?.ignoreScrollableTarget??!1;if(a&&!c||(Z.current=!!(a&&c),l&&l.closest('button,a,input,select,textarea,label,[role="button"]')&&(!i||o)))return!1;let p=n.current;if(s&&p&&l&&C.length>0&&!r?.ignoreScrollableAncestors&&function(e,t,r){let n=e;for(;n&&n!==t;){for(let e of r)if(eo(n,e))return!0;n=n.parentElement}return!1}(l,p,C))return!1;if(_.current=!1,B.current=void 0,U.current=0,$.current=t,el.current=ep(e.timeStamp),K.current=t,L.current=t,p){et.current={width:p.offsetWidth,height:p.offsetHeight},ev(m);let t=ec(p);z.current=t,V.current={x:t.x,y:t.y},H(t),q({x:t.x,y:t.y}),ey({x:t.x,y:t.y},el.current),"touches"in e||ef(p,e.pointerId,"setPointerCapture")}return f?.(e.nativeEvent),ex(!0),F(!1),W(null),G.current=!0,ew(0),!0}function eM(){eD(),Z.current=!1,L.current=null}function eD(){J.current=!1,Q.current=null}u.useEffect(()=>{"function"!=typeof a&&(en.current=x)},[x,a]);let eN=(0,D.useStableCallback)(e=>{if(!t||e.defaultPrevented||e.nativeEvent.defaultPrevented||!("touches"in e)&&0!==e.button)return;let r=eS(e);!r||(J.current=!0,Q.current=r,Z.current=!1,ee.current=!1,(!l||l(r,{nativeEvent:e.nativeEvent,direction:m}))&&eE(e,r)&&eD())}),eT=(0,D.useStableCallback)(e=>{let r=eS(e);if(!r)return;if(!("touches"in e)){let t=e.buttons%2==1;t&&(ee.current=!0);let r=0===e.buttons&&ee.current;if(0!==e.buttons&&!t||r)return void function(e){if(eM(),!em.current)return;ex(!1),F(!1),W(null);let t=g?X:z.current;V.current={x:t.x,y:t.y},q({x:t.x,y:t.y}),E(void 0),ee.current=!1;let r=n.current;r&&ef(r,e.pointerId,"releasePointerCapture"),ew(0,{deltaX:0,deltaY:0,direction:void 0})}(e)}if(!M&&J.current){if(!eP(e)&&(e.defaultPrevented||e.nativeEvent.defaultPrevented))return void eM();if(!l||l(r,{nativeEvent:e.nativeEvent,direction:m})){let t=Q.current,i=!1;if(eP(e)){let l=n.current;if(t&&l){let n=eC(r,e.nativeEvent),o=(0,Y.ownerDocument)(l).body,u=o?eR(n,o):null;if(u&&((0,ei.contains)(l,u)||(0,ei.contains)(u,l))){let e=function(e,t,r){let n=Math.abs(t),i=Math.abs(r);if(P&&0!==r&&(!S||i>=n)){let t=Math.max(0,e.scrollHeight-e.clientHeight),n=e.scrollTop<=0,i=e.scrollTop>=t,l=r>0&&n&&b,o=r<0&&i&&y;return l||o}if(S&&0!==t&&(!P||n>i)){let r=Math.max(0,e.scrollWidth-e.clientWidth),n=e.scrollLeft<=0,i=e.scrollLeft>=r,l=t>0&&n&&w,o=t<0&&i&&v;return l||o}return null}(u,r.x-t.x,r.y-t.y);if(!1===e)return;!0===e&&(i=!0)}}}eE(e,r,{ignoreScrollableTarget:i,ignoreScrollableAncestors:i})&&(t&&i?(eD(),$.current=t,K.current=t,L.current=t,G.current=!1):(eD(),Z.current=!1))}}let i=L.current,o=null===i?{x:0,y:0}:{x:r.x-i.x,y:r.y-i.y};L.current=r,function(e,r,n){let i,l,o;if(!t||!em.current)return;let u=(0,ei.getTarget)(e.nativeEvent);if(eP(e)&&!Z.current&&eR(u,e.currentTarget))return;if("touches"in e||e.preventDefault(),G.current){$.current=r;let t=ep(e.timeStamp);null!==t&&(el.current=t),G.current=!1}let s=r.x,a=r.y,c=n.x,p=n.y;(p<0&&a>K.current.y||p>0&&a<K.current.y)&&(K.current={x:K.current.x,y:a}),(c<0&&s>K.current.x||c>0&&s<K.current.x)&&(K.current={x:s,y:K.current.y});let f=s-$.current.x,d=a-$.current.y,h=a-K.current.y,x=s-K.current.x;if(!T&&Math.sqrt(f*f+d*d)>=1&&(F(!0),null===I&&S&&P&&W(Math.abs(f)>Math.abs(d)?"horizontal":"vertical")),B.current){let e=B.current,t=ea(e,x,h);t>en.current?(_.current=!1,E(e)):v&&w||y&&b||!(U.current-t>=10)||(_.current=!0)}else"vertical"===I?d>0?i="down":d<0&&(i="up"):"horizontal"===I?f>0?i="right":f<0&&(i="left"):i=Math.abs(f)>=Math.abs(d)?f>0?"right":"left":d>0?"down":"up",i&&("left"===i&&v||"right"===i&&w||"up"===i&&y||"down"===i&&b)&&(B.current=i,U.current=ea(i,f,d),E(i),ev(i));let C=(l=e=>e>=0?e**.5:-(Math.abs(e)**.5),o=(e,t,r)=>!t&&e<0||!r&&e>0?l(e):e,{x:S?o(f,v,w):l(f),y:P?o(d,y,b):l(d)}),R=z.current.x,M=z.current.y;"horizontal"===I?S&&(R+=C.x):("vertical"===I||S&&(R+=C.x),P&&(M+=C.y)),V.current={x:R,y:M},g&&q({x:R,y:M}),ey({x:R,y:M},ep(e.timeStamp));let D=R-z.current.x,N=M-z.current.y,k=B.current,A=m??B.current;if(!A)return ew(0,{deltaX:D,deltaY:N,direction:k});let O="left"===A||"right"===A?et.current.width:et.current.height,Y=z.current.scale||1;if(O<=0||Y<=0)return ew(0,{deltaX:D,deltaY:N,direction:k});let j=ea(A,R-z.current.x,M-z.current.y);j<=0?ew(0,{deltaX:D,deltaY:N,direction:k}):ew(j/(O*Y),{deltaX:D,deltaY:N,direction:k})}(e,r,o)}),eF=(0,D.useStableCallback)(e=>{let i;if(!t)return;let l=V.current,o=z.current,u=l.x-o.x,s=l.y-o.y,a={deltaX:u,deltaY:s,direction:R??B.current};if(!em.current){eM(),ew(0,a);return}ex(!1),F(!1),W(null),eM(),ee.current=!1;let p=n.current;!p||"touches"in e||ef(p,e.pointerId,"releasePointerCapture");let f=el.current,h=ep(e.timeStamp),g=null!==f&&null!==h&&h>f?h-f:0,x=g>0?Math.max(g,50):0,v=eh.current.x,w=eh.current.y,y=ed.current;if(y&&null!==h&&h>=y.time){let e=h-y.time;if(e<=80){let t=Math.max(e,16),r=l.x-y.x,n=l.y-y.y,i=r/t,o=n/t;0!==i&&(v=i),0!==o&&(w=o)}else v=0,w=0}let b=d?.({event:e.nativeEvent,direction:R??B.current,deltaX:u,deltaY:s,velocityX:x>0?u/x:0,velocityY:x>0?s/x:0,releaseVelocityX:v,releaseVelocityY:w}),S="boolean"==typeof b;if(_.current&&!S){V.current={x:o.x,y:o.y},q({x:o.x,y:o.y}),E(void 0),ew(0,a);return}let P=!1;if(S)P=b,i=R??B.current??m;else for(let e of r){switch(e){case"right":u>en.current&&(P=!0,i="right");break;case"left":u<-en.current&&(P=!0,i="left");break;case"down":s>en.current&&(P=!0,i="down");break;case"up":s<-en.current&&(P=!0,i="up")}if(P)break}P&&i?(E(i),A(!0),c?.(e.nativeEvent,{direction:i})):(V.current={x:o.x,y:o.y},q({x:o.x,y:o.y}),E(void 0),ew(0,a))}),ek=u.useCallback(()=>{let e=g?O:V.current,t=g?X:z.current;if(!M&&e.x===t.x&&e.y===t.y&&!k)return{[i.x]:"0px",[i.y]:"0px"};let r=e.x-t.x,n=e.y-t.y;return{transition:M?"none":void 0,transform:M?`translateX(${e.x}px) translateY(${e.y}px) scale(${t.scale})`:void 0,[i.x]:`${r}px`,[i.y]:`${n}px`}},[k,O,X,M,i,g]);return{swiping:M,swipeDirection:R,dragDismissed:k,getPointerProps:u.useCallback(()=>t?{onPointerDown:eN,onPointerMove:eT,onPointerUp:eF,onPointerCancel:eF}:{},[t,eF,eT,eN]),getTouchProps:u.useCallback(()=>t?{onTouchStart:eN,onTouchMove:eT,onTouchEnd:eF,onTouchCancel:eF}:{},[t,eF,eT,eN]),getDragStyles:ek,reset:eb}}var eh=e.i(739774),eg=e.i(290915);let em=((i={})[i.open=c.CommonPopupDataAttributes.open]="open",i[i.closed=c.CommonPopupDataAttributes.closed]="closed",i.disabled="data-disabled",i.swipeDirection="data-swipe-direction",i.swiping="data-swiping",i
1),ex={[em.open]:""},ev={[em.closed]:""},ew={[em.swiping]:""},ey={[em.disabled]:""},eb={open:e=>e?ex:ev,swiping:e=>e?ew:null,swipeDirection:e=>e?{[em.swipeDirection]:e}:null,disabled:e=>e?ey:null},eS={up:"down",down:"up",left:"right",right:"left"},eP=u.forwardRef(function(e,t){let{className:r,render:n,disabled:i=!1,swipeDirection:l,...o}=e,{store:c}=(0,s.useDialogRootContext)(),{swipeDirection:p,frontmostHeight:h}=q(),g=P(!0),[m,x]=u.useState(!1),v=(0,en.useTimeout)(),w=u.useRef(null),y=u.useRef(null),b=u.useRef(!1),S=u.useRef({x:0,y:0}),C=u.useRef(null),R=u.useRef(!1),E=u.useRef(null),M=(0,eh.useBaseUiId)(e.id),N=(0,eg.useTriggerRegistration)(M,c),F=c.useState("open"),k=l??eS[p],A=eS[k],O=!i&&(!F||m),Y=(0,D.useStableCallback)(()=>{S.current.x=0,S.current.y=0});function j(){let e=c.context.popupRef.current;if(!e)return null;let t="left"===A||"right"===A?e.offsetWidth:e.offsetHeight;return t<=0?null:t}let X=(0,D.useStableCallback)(()=>{let e=c.context.popupRef.current;e&&R.current&&(e.style.removeProperty(f.swipeMovementX),e.style.removeProperty(f.swipeMovementY),e.removeAttribute(T.swiping)),e&&null!==E.current&&(e.style.transition=E.current,E.current=null);let t=c.context.backdropRef.current;t&&(t.removeAttribute(T.swiping),t.style.setProperty(d.swipeProgress,"0"),t.style.removeProperty(f.height)),g?.visualStateStore.set({swipeProgress:0,frontmostHeight:0}),R.current=!1});function H(e){c.select("open")||(b.current=!0,c.setOpen(!0,(0,Z.createChangeEventDetails)(ee.REASONS.swipe,e,w.current??void 0)))}let I=ed({enabled:O,directions:[k],elementRef:w,trackDrag:!1,movementCssVars:{x:f.swipeMovementX,y:f.swipeMovementY},onSwipeStart(e){v.clear(),c.context.outsidePressEnabledRef.current=!1,y.current=e,b.current=!1,x(!0),Y()},onProgress(e,t){t&&y.current&&(S.current.x=t.deltaX,S.current.y=t.deltaY,t.direction!==k||(!(1>ea(k,t.deltaX,t.deltaY))||b.current)&&(b.current||H(y.current),function(){if(!m)return;let e=c.context.popupRef.current;if(!e||!c.select("open")||!c.select("mounted"))return;null==C.current&&(C.current=function(){let e=j();if(null==e)return null;let t=c.context.popupRef.current;if(!t)return e;let r=ec(t),n="left"===A||"right"===A?r.x:r.y;return Number.isFinite(n)&&Math.abs(n)>.5?Math.min(e,Math.abs(n)):e}());let t=C.current;if(!t||!Number.isFinite(t)||t<=0)return;let{x:r,y:n}=S.current,i=Math.max(0,ea(k,r,n)),l=i>t?t+Math.sqrt(i-t):i,o=(t-l)*("left"===A||"up"===A?-1:1),u="left"===A||"right"===A,s=Math.max(0,Math.min(1,i/t)),a=Math.max(0,Math.min(1,1-s));e.style.setProperty(f.swipeMovementX,`${u?o:0}px`),e.style.setProperty(f.swipeMovementY,`${u?0:o}px`),e.setAttribute(T.swiping,""),null===E.current&&(E.current=e.style.transition),e.style.transition="none";let p=c.context.backdropRef.current;p&&(p.setAttribute(T.swiping,""),p.style.setProperty(d.swipeProgress,`${a}`),s>0&&h>0?p.style.setProperty(f.height,`${h}px`):p.style.removeProperty(f.height)),g?.visualStateStore.set({swipeProgress:s,frontmostHeight:s>0?h:0}),R.current=!0}()))},onRelease({event:e,direction:t,deltaX:r,deltaY:n,releaseVelocityX:l,releaseVelocityY:o}){let u,s=ea(k,r,n),a=ea(k,l,o),p=null==(u=j())?40:.5*u;if(null!=p&&t===k&&(null!=p&&s>=p||a>=.1)&&!i)c.select("open")||H(e);else b.current&&c.select("open")&&c.setOpen(!1,(0,Z.createChangeEventDetails)(ee.REASONS.swipe,e,w.current??void 0));return y.current=null,b.current=!1,x(!1),C.current=null,v.start(0,()=>{c.context.outsidePressEnabledRef.current=!0}),Y(),X(),!1}}),W=I.getPointerProps(),$=I.getTouchProps(),V=I.reset;u.useEffect(()=>{O||(V(),Y(),X(),x(!1),b.current=!1,y.current=null,C.current=null)},[X,O,Y,V]),u.useEffect(()=>()=>{c.context.outsidePressEnabledRef.current=!0},[c]);let L={open:F,swiping:I.swiping,swipeDirection:k,disabled:i};return(0,a.useRenderElement)("div",e,{state:L,ref:[t,w,N],stateAttributesMapping:eb,props:[{role:"presentation","aria-hidden":!0,style:{pointerEvents:O?void 0:"none",touchAction:"left"===k||"right"===k?"pan-y":"pan-x"},onPointerDown(e){"touch"!==e.pointerType&&(W.onPointerDown?.(e),e.cancelable&&e.preventDefault())},onPointerMove(e){"touch"!==e.pointerType&&W.onPointerMove?.(e)},onPointerUp(e){"touch"!==e.pointerType&&W.onPointerUp?.(e)},onPointerCancel(e){"touch"!==e.pointerType&&W.onPointerCancel?.(e)}},$,M?{id:M}:void 0,o]})}),eC=e.i(269504).DialogTitle,eR=e.i(957796).DialogTrigger;var eE=e.i(95431),eM=e.i(575272),eD=e.i(272494),eN=e.i(309899),eT=e.i(300310);let eF=`[${x}
1]`,ek=u.forwardRef(function(e,t){let{className:r,render:n,children:i,...l}=e,{store:o}=(0,s.useDialogRootContext)(),{swipeDirection:a,notifyParentSwipingChange:c,notifyParentSwipeProgressChange:h,frontmostHeight:g,snapToSequentialPoints:m}=q(),x=P(!0),v=x?.visualStateStore,w=o.useState("open"),y=o.useState("mounted"),b=o.useState("nested"),S=o.useState("nestedOpenDialogCount"),C=o.useState("viewportElement"),R=o.useState("popupElement"),E=S>0,M="left"===a||"right"===a?"horizontal":"vertical",N="vertical"===M,T=N?"horizontal":"vertical",{snapPoints:F,resolvedSnapPoints:k,activeSnapPoint:A,activeSnapPointOffset:O,setActiveSnapPoint:X,popupHeight:W}=H(),[V,L]=u.useState(null),z=u.useRef(void 0),B=u.useRef(null),U=(0,eM.useAnimationFrame)(),_=u.useRef(!1),G=u.useRef(""),J=u.useRef(!1),Q=u.useRef(!1),et=u.useRef(null),er=u.useMemo(()=>{if(!F||F.length<2||"down"!==a&&"up"!==a||k.length<2)return null;let e=k.map(e=>e.offset).filter(e=>Number.isFinite(e)).sort((e,t)=>e-t);if(e.length<2)return null;let t=e[0],r=e[1],n=e[e.length-1],i=r-t;if(!Number.isFinite(i)||i<=0){let e=n-t;if(!Number.isFinite(e)||e<=0)return null;i=e}return{minOffset:t,range:i}},[k,F,a]),en=u.useMemo(()=>er&&null!==O?(0,j.clamp)((O-er.minOffset)/er.range,0,1):null,[O,er]),eo=u.useMemo(()=>F&&F.length>0&&("down"===a||"up"===a)?"down"===a?["down","up"]:["up","down"]:[a],[F,a]),ea=(0,D.useStableCallback)(e=>{eA(o.context.popupRef.current,o.context.backdropRef.current,e)}),ec=(0,D.useStableCallback)(()=>{ea(!1),o.context.popupRef.current?.removeAttribute(p.TransitionStatusDataAttributes.endingStyle),L(null)}),ep=(0,D.useStableCallback)(({resolvedProgress:e,shouldTrackProgress:t,notifyParent:r})=>{let n=w&&!b&&t,i=n?e:0;r&&h&&h(w&&t?e:0),v?.set({swipeProgress:i,frontmostHeight:i>0?g:0});let l=o.context.backdropRef.current;if(l){if(!n||i<=0){l.style.setProperty(d.swipeProgress,"0"),l.style.removeProperty(f.height);return}l.style.setProperty(d.swipeProgress,`${i}`),g>0?l.style.setProperty(f.height,`${g}px`):l.style.removeProperty(f.height)}}),ef=ed({enabled:y&&!E,directions:eo,elementRef:o.context.popupRef,ignoreSelectorWhenTouch:!1,ignoreScrollableAncestors:!0,movementCssVars:{x:f.swipeMovementX,y:f.swipeMovementY},onSwipeStart(e){if("touches"in e||"pointerType"in e&&"touch"===e.pointerType)return;let t=o.context.popupRef.current;if(!t)return;let r=(0,Y.ownerDocument)(t),n=r.getSelection?.();if(!n||n.isCollapsed)return;
1let i=(0,el.isElement)(n.anchorNode)?n.anchorNode:n.anchorNode?.parentElement,l=(0,el.isElement)(n.focusNode)?n.focusNode:n.focusNode?.parentElement;((0,ei.contains)(t,i)||(0,ei.contains)(t,l))&&n.removeAllRanges()},onSwipingChange(e){eO(o.context.backdropRef.current,e),e||(_.current=!1,c?.(!1))},swipeThreshold:({element:e,direction:t})=>eY(e,t),canStart(e,t){let r=o.context.popupRef.current;if(!r)return!1;let n=r.ownerDocument,i=es(n,e.x,e.y);if(!i||!(0,ei.contains)(r,i))return!1;let l=t.nativeEvent;return!(("touches"in l||"pointerType"in l&&"touch"===l.pointerType)&&eX(n,r)||"touchstart"===l.type&&eq(i))},onProgress(e,t){!function(e){if(_.current||!e)return;let t=e.direction??a,r="left"===t||"right"===t?e.deltaX:e.deltaY;!Number.isFinite(r)||10>Math.abs(r)||(_.current=!0,c?.(!0))}(t);let r=t?.direction??ef.swipeDirection,n=void 0===r||r===a,i=!!(F&&F.length>0),l="down"===a||"up"===a,o=i&&l||!i||"left"===a||"right"===a||n,u=e;if(er&&W>0){if(t&&Number.isFinite(t.deltaY)){let e=O??er.minOffset,r=(0,j.clamp)(e+t.deltaY,0,W);u=(0,j.clamp)((r-er.minOffset)/er.range,0,1)}else if(null!==en)u=en;else if("down"===r||"up"===r){let t=e*W,n=O??er.minOffset;u=(0,j.clamp)((("down"===r?n+t:n-t)-er.minOffset)/er.range,0,1)}}ep({resolvedProgress:u,shouldTrackProgress:o,notifyParent:!0})},onRelease({event:e,deltaX:t,deltaY:r,direction:n,velocityX:i,velocityY:l,releaseVelocityX:u,releaseVelocityY:s}){let f={deltaX:t,deltaY:r,velocityX:i,velocityY:l,releaseVelocityX:u,releaseVelocityY:s};function d(e){let t=o.context.popupRef.current;t&&(c?.(!1),ea(!0),t.style.removeProperty("transition"),t.setAttribute(p.TransitionStatusDataAttributes.endingStyle,""),eE.flushSync(()=>{L(function({direction:e,deltaX:t,deltaY:r,velocityX:n,velocityY:i,releaseVelocityX:l,releaseVelocityY:u}){if(!e)return null;let s=o.context.popupRef.current;if(!s)return null;let a="left"===e||"right"===e?s.offsetWidth:s.offsetHeight;if(!Number.isFinite(a)||a<=0)return null;let c=F&&F.length>0?O??0:0,p=0;"down"===e?p=c:"up"===e&&(p=-c);let f=p+("left"===e||"right"===e?t:r),d=Math.max(0,a-("left"===e||"up"===e?-f:f));if(!Number.isFinite(d)||d<=0)return null;let h="left"===e||"right"===e?l:u,g=Math.abs(h)>
10&&Number.isFinite(h)?h:"left"===e||"right"===e?n:i,m="left"===e||"up"===e?-g:g;if(!Number.isFinite(m)||m<=.2)return null;let x=(0,j.clamp)(m,.2,4),v=(0,j.clamp)(d/x,80,360);if(!Number.isFinite(v))return null;let w=(0,j.clamp)(.1+(v-80)/280*.9,.1,1);return!Number.isFinite(w)||w<=0?null:w}({direction:e,...f}))}))}if(!F||0===F.length){if(!n)return void ec();let e=o.context.popupRef.current;if(!e)return void ec();let u=eY(e,n),s="left"===n||"right"===n?t:r;if(!Number.isFinite(s))return void ec();let a="left"===n||"up"===n?-s:s;if(a<=0)return ec(),!1;let c="left"===n||"right"===n?i:l;if(("left"===n||"up"===n?-c:c)>=.5&&a>0)return d(n),!0;let p=a>u;return p?d(n):ec(),p}if("down"!==a&&"up"!==a||!W||0===k.length)return void ec();let h="down"===a?r:-r;if(!Number.isFinite(h))return void ec();let g=Math.sign(h),x="down"===a?s:-s,v="down"===a?l:-l,w=Number.isFinite(x)?x:v;if(0!==g&&Math.abs(h)>=10&&Number.isFinite(w)){let e=Math.sign(w);0!==e&&e!==g&&(w=v)}let y=O??0,b=(0,j.clamp)(y+h,0,W),S=Number.isFinite(w)&&Math.abs(w)>=.5?300*(0,j.clamp)(w,-4,4):0,P=m?b:(0,j.clamp)(b+S,0,W),C=(0,Z.createChangeEventDetails)(ee.REASONS.swipe,e),R=()=>(z.current=A,X?.(null,C),d(a),!0);if(m){let e=[...k].sort((e,t)=>e.offset-t.offset);if(0===e.length)return ec(),!1;let t=0,r=Math.abs(y-e[0].offset);for(let n=1;n<e.length;n+=1){let i=Math.abs(y-e[n].offset);i<r&&(r=i,t=n)}let n=e[0];for(let t of(r=Math.abs(P-n.offset),e)){let e=Math.abs(P-t.offset);e<r&&(r=e,n=t)}let i=Math.sign(w),l=P;if(0!==g&&0!==i&&i===g&&Math.abs(w)>=.5){let r=(0,j.clamp)(t+g,0,e.length-1);if(r!==t){let t=e[r];(g>0?P<t.offset:P>t.offset)&&(n=t,l=t.offset)}else if(g>0)return R()}return Math.abs(l-W)<Math.abs(l-n.offset)?R():(X?.(n.value,C),ec(),!1)}if(w>=.5&&h>0)return R();let E=k[0],M=Math.abs(P-E.offset);for(let e of k){let t=Math.abs(P-e.offset);t<M&&(M=t,E=e)}return Math.abs(P-W)<M?R():(X?.(E.value,C),ec(),!1)},onDismiss(e){v?.set({swipeProgress:0,frontmostHeight:0});let t=o.context.backdropRef.current;t&&(t.style.setProperty(d.swipeProgress,"0"),t.style.removeProperty(f.height));let r=(0,Z.createChangeEventDetails)(ee.REASONS.swipe,e);if(o.setOpen(!1,r),r.isCanceled){let t=z.current;void 0!==t&&X?.(t,(0,Z.createChangeEventDetails)(ee.REASONS.swipe,e)),z.current=void 0,B.current?.(),ec();return}o.select("open")?U.request(()=>{if(o.select("open")){let t=z.current;void 0!==t&&X?.(t,(0,Z.createChangeEventDetails)(ee.REASONS.swipe,e)),z.current=void 0,ec(),B.current?.()}else z.current=void 0}):(z.current=void 0,ea(!0))}}),eh=ef.getPointerProps(),eg=ef.getTouchProps(),em=ef.reset;B.current=em,u.useEffect(()=>{let e=C??R;if(!e)return;let t=(0,Y.ownerDocument)(e),r=(0,K.ownerWindow)(t);function n(n){var i;if(Q.current)return;let l=et.current,o=n.touches[0];if(!o||!l)return;let u=N?o.clientY-l.lastY:o.clientX-l.lastX;if(eH(n,r)){l.allowSwipe=!1,eW(l,o);return}if(2===n.touches.length||eX(t,e)||!w||!y||E||function(e,t,r){if(e.preserveNativeCrossAxisScroll)return!0;if(!0===e.allowSwipe||!e.hasCrossAxisScrollableContent)return!1;let n=r?t.clientY-e.startY:t.clientX-e.startX,i=r?t.clientX-e.startX:t.clientY-e.startY,l=Math.abs(n),o=Math.abs(i);return!(o<6)&&!(o<=l+2)&&(e.preserveNativeCrossAxisScroll=!0,!0)}(l,o,N))return void eW(l,o);let s=l.scrollTarget;if(!s||s===t.documentElement||s===t.body||(i=s,"vertical"===M?!(i.scrollHeight>i.clientHeight):!(i.scrollWidth>i.clientWidth))){n.cancelable&&n.preventDefault(),eW(l,o);return}if(0!==u){let e=function(e,t,r,n){let{offset:i,max:l}=e$(e,t),o=eV(r,t);return null!==o&&!!(o?n>0:n<0)&&(o?i<=0:i>=l)}(s,M,a,u);l.allowSwipe?n.cancelable&&n.preventDefault():n.cancelable&&e?(l.allowSwipe=!0,n.preventDefault()):l.allowSwipe=!1}eW(l,o)}return t.addEventListener("touchmove",n,{passive:!1,capture:!0}),()=>{t.removeEventListener("touchmove",n,{capture:!0})}},[y,E,w,R,N,M,a,C]),u.useEffect(()=>{!er||ef.swiping||ep({resolvedProgress:!w||b?0:en??0,shouldTrackProgress:!0,notifyParent:!1})},[ep,g,b,h,w,en,er,ef.swiping,o,v]),u.useEffect(()=>{if(h)return w||h(0),()=>{h(0)}},[h,w]),u.useEffect(()=>{w&&(em(),ec())},[ec,w,em]),u.useEffect(()=>()=>{v?.set({swipeProgress:0,frontmostHeight:0}),eO(o.context.backdropRef.current,!1),c?.(!1)},[c,o,v]);let ex=u.useMemo(()=>({swiping:ef.swiping,getDragStyles:ef.getDragStyles,swipeStrength:V??null,setSwipeDismissed(e){eA(o.context.popupRef.current,o.context.backdropRef.current,e)}}),[o,ef.getDragStyles,ef.swiping,V]);function ev(){Q.current=!1,et.current=null,G.current="",J.current=!1}return(0,$.jsx)(eD.DialogViewport,{ref:t,className:r,render:n,...(0,eN.mergeProps)(l,{onPointerDown(e){var t;if(G.current=e.pointerType,J.current="pen"===e.pointerType,!w||!y||E)return;let r=es((0,Y.ownerDocument)(e.currentTarget),e.clientX,e.clientY);eq(r)||(t=r,t?.closest(eF))||"touch"!==e.pointerType&&eh.onPointerDown?.(e)},onPointerMove(e){"touch"!==e.pointerType&&eh.onPointerMove?.(e)},onPointerUp(e){G.current===e.pointerType&&(G.current=""),"touch"!==e.pointerType&&eh.onPointerUp?.(e)},onPointerCancel(e){G.current===e.pointerType&&(G.current=""),"touch"!==e.pointerType&&eh.onPointerCancel?.(e)},onTouchStart(e){if("pen"===G.current&&J.current){J.current=!1,Q.current=!1,et.current=null;return}if(!w||!y||E){Q.current=!1,et.current=null;return}let t=e.touches[0];if(!t)return;if(eI(e)){Q.current=!1,et.current=null;return}if(Q.current=eq(es((0,Y.ownerDocument)(e.currentTarget),t.clientX,t.clientY)),Q.current){et.current=null;return}
1let r=C??R,n=(0,el.isElement)(e.target)?e.target:null,i=null,l=!1;r&&n&&(0,ei.contains)(r,n)&&(i=eu(n,r,M),l=null!=eu(n,r,T));let o=null;i&&(o=!!function(e,t,r){let{offset:n,max:i}=e$(e,t),l=eV(r,t);return null!==l&&(l?n<=0:n>=i)}(i,M,a)&&null),et.current={startX:t.clientX,startY:t.clientY,lastX:t.clientX,lastY:t.clientY,scrollTarget:i,hasCrossAxisScrollableContent:l,allowSwipe:o,preserveNativeCrossAxisScroll:!1},eg.onTouchStart?.(e)},onTouchMove(e){if(Q.current||eI(e))return;let t=et.current;t?.preserveNativeCrossAxisScroll||t?.allowSwipe!==!1&&(t?.scrollTarget==null||t.allowSwipe)&&eg.onTouchMove?.(e)},onTouchEnd(e){ev(),eg.onTouchEnd?.(e)},onTouchCancel(e){ev(),eg.onTouchCancel?.(e)},"data-nested-dialog-open":void 0}),children:(0,$.jsx)(I.Provider,{value:ex,children:i})})});function eA(e,t,r){if(r){e?.setAttribute(T.swipeDismiss,""),t?.setAttribute(T.swipeDismiss,"");return}e?.removeAttribute(T.swipeDismiss),t?.removeAttribute(T.swipeDismiss)}function eO(e,t){if(e){if(t)return void e.setAttribute(T.swiping,"");e.removeAttribute(T.swiping)}}function eq(e){return!!e?.closest(eT.BASE_UI_SWIPE_IGNORE_SELECTOR)}function eY(e,t){return Math.max(.5*("left"===t||"right"===t?e.offsetWidth:e.offsetHeight),10)}function ej(e,t){return e instanceof t.HTMLInputElement&&"range"===e.type}function eX(e,t){let r,n,i=e.activeElement;if(i&&(0,ei.contains)(t,i)&&(0,el.isElement)(i)&&("INPUT"===i.tagName||"TEXTAREA"===i.tagName)){let{selectionStart:e,selectionEnd:t}=i;if(null!=e&&null!=t&&e<t)return!0}let l=e.getSelection?.();return!!l&&!l.isCollapsed&&(r=(0,el.isElement)(l.anchorNode)?l.anchorNode:l.anchorNode?.parentElement,n=(0,el.isElement)(l.focusNode)?l.focusNode:l.focusNode?.parentElement,l.containsNode(t,!0)||(0,ei.contains)(t,r)||(0,ei.contains)(t,n))}function eH(e,t){let r=e.composedPath();return r?r.some(e=>ej(e,t)):ej(e.target,t)}function eI(e){return eH(e.nativeEvent,(0,K.ownerWindow)(e.currentTarget))}function eW(e,t){e.lastX=t.clientX,e.lastY=t.clientY}function e$(e,t){if("vertical"===t){let t=Math.max(0,e.scrollHeight-e.clientHeight);return{offset:e.scrollTop,max:t}}let r=Math.max(0,e.scrollWidth-e.clientWidth);return{offset:e.scrollLeft,max:r}}function eV(e,t){return"vertical"===t?"down"===e||"up"!==e&&null:"right"===e||"left"!==e&&null}var eL=e.i(303687);e.s(["Backdrop",0,g,"Close",0,m,"Content",0,v,"Description",0,w,"Handle",()=>eL.DialogHandle,"Indent",0,R,"IndentBackground",0,M,"Popup",0,z,"Portal",0,B,"Provider",0,function(e){let{children:t}=e,[r,n]=u.useState(()=>new Map),[i]=u.useState(U),l=(0,D.useStableCallback)((e,t)=>{n(r=>{if(r.get(e)===t)return r;let n=new Map(r);return n.set(e,t),n})}),o=(0,D.useStableCallback)(e=>{n(t=>{if(!t.has(e))return t;let r=new Map(t);return r.delete(e),r})}),s=u.useMemo(()=>{for(let e of r.values())if(e)return!0;return!1},[r]),a=u.useMemo(()=>({setDrawerOpen:l,removeDrawer:o,active:s,visualStateStore:i}),[s,o,l,i]);return(0,$.jsx)(S.Provider,{value:a,children:t})},"Root",0,function(e){let{children:t,open:r,defaultOpen:n=!1,onOpenChange:i,onOpenChangeComplete:s,disablePointerDismissal:a=!1,modal:c=!0,actionsRef:p,handle:f,triggerId:d,defaultTriggerId:h=null,swipeDirection:g="down",snapToSequentialPoints:m=!1,snapPoints:x,snapPoint:v,defaultSnapPoint:w,onSnapPointChange:y}=e,b=(0,D.useStableCallback)(y),S=q(!0),P=S?.onNestedSwipeProgressChange,C=S?.onNestedFrontmostHeightChange,R=S?.onNestedSwipingChange,E=S?.onNestedDrawerPresenceChange,[M,N]=u.useState(0),[T,F]=u.useState(0),[k,A]=u.useState(!1),[Y,j]=u.useState(!1),[X]=u.useState(et),H=void 0!==w?w:x?.[0]??null,I=void 0!==v,[W,V]=(0,_.useControlled)({controlled:v,default:H,name:"Drawer",state:"snapPoint"}),L=u.useRef(!1),z=(0,D.useStableCallback)((e,t)=>{let r=t??(0,Z.createChangeEventDetails)(ee.REASONS.none);b?.(e,r),r.isCanceled||V(e)}),B=u.useMemo(()=>I||!x||0===x.length||null!==W&&x.some(e=>Object.is(e,W))?W:H,[W,I,H,x]),U=(0,D.useStableCallback)(e=>{N(e),!L.current&&e>0&&F(e)}),K=(0,D.useStableCallback)(e=>{if(e>0){L.current=!0,F(e);return}L.current=!1,M>0&&F(M)}),G=(0,D.useStableCallback)(e=>{A(e)}),J=(0,D.useStableCallback)(e=>{X.set(e),P?.(e)}),en=(0,D.useStableCallback)(e=>{j(e),R?.(e)}),ei=(0,D.useStableCallback)((e,t)=>
1{i?.(e,t),!t.isCanceled&&!e&&x&&x.length>0&&z(H,(0,Z.createChangeEventDetails)(t.reason,t.event,t.trigger))}),el=u.useMemo(()=>({swipeDirection:g,snapToSequentialPoints:m,snapPoints:x,activeSnapPoint:B,setActiveSnapPoint:z,frontmostHeight:T,popupHeight:M,hasNestedDrawer:k,nestedSwiping:Y,nestedSwipeProgressStore:X,onNestedDrawerPresenceChange:G,onPopupHeightChange:U,onNestedFrontmostHeightChange:K,onNestedSwipingChange:en,onNestedSwipeProgressChange:J,notifyParentFrontmostHeight:C,notifyParentSwipingChange:R,notifyParentSwipeProgressChange:P,notifyParentHasNestedDrawer:E}),[B,T,k,Y,X,E,P,R,C,G,K,J,en,U,M,z,x,m,g]),eo="function"==typeof t?e=>(0,$.jsxs)(u.Fragment,{children:[l||(l=(0,$.jsx)(er,{})),t(e)]}):(0,$.jsxs)(u.Fragment,{children:[o||(o=(0,$.jsx)(er,{})),t]});return(0,$.jsx)(O.Provider,{value:el,children:(0,$.jsx)(Q.Dialog.Root,{open:r,defaultOpen:n,onOpenChange:ei,onOpenChangeComplete:s,disablePointerDismissal:a,modal:c,actionsRef:p,handle:f,triggerId:d,defaultTriggerId:h,children:eo})})},"SwipeArea",0,eP,"Title",0,eC,"Trigger",0,eR,"Viewport",0,ek,"createHandle",()=>eL.createDialogHandle],396623);var ez=e.i(396623),ez=ez,eB=e.i(7284),eU=e.i(665846),e_=e.i(583676),eK=e.i(242304),eG=e.i(389162),eJ=e.i(49621),eQ=e.i(640161),eZ=e.i(539369),e0=e.i(955578),e1=e.i(51497),e3=(0,e1.createRuntimeFn)({defaultClassName:"qtx3q6",variantClassNames:{size:{s:"qtx3q7",m:"qtx3q8",l:"qtx3q9"}},defaultVariants:{},compoundVariants:[]}),e2=(0,e1.createRuntimeFn)({defaultClassName:"qtx3qf",variantClassNames:{side:{bottom:"qtx3qg",left:"qtx3qh",right:"qtx3qi",top:"qtx3qj"}},defaultVariants:{},compoundVariants:[]}),e6=(0,e1.createRuntimeFn)({defaultClassName:"qtx3qa",variantClassNames:{size:{s:"qtx3qb",m:"qtx3qc",l:"qtx3qd"}},defaultVariants:{},compoundVariants:[]}),e5=(0,e1.createRuntimeFn)({defaultClassName:"qtx3q1",variantClassNames:{side:{bottom:"qtx3q2",left:"qtx3q3",right:"qtx3q4",top:"qtx3q5"}},defaultVariants:{},compoundVariants:[]});let e4=new Set(["close-watcher","escape-key","focus-out","outside-press","swipe"]),e9={bottom:"down",left:"left",right:"right",top:"up"},e7=(0,u.createContext)("right");function e8({children:e,nativeButton:t=!0,...r}){return(0,$.jsx)(ez.Close,{...r,nativeButton:t,render:e})}function te({closeAccessibilityLabel:e,iconSize:t="m",insetFocus:r,size:n="s",...i}){return(0,$.jsx)(e8,{children:(0,$.jsx)(eU.Button,{...i,accessibilityLabel:e,color:"transparent",icon:e_.IconX,iconSize:t,insetFocus:r,size:n})})}function tt(e){return(0,$.jsx)(eK.Stack,{grow:!0,minWidth:0,paddingLeft:["m","l"],paddingRight:"s",shrink:!0,children:(0,$.jsx)(eZ.Text,{...e,color:"primary",font:"heading-2",numberOfLines:2})})}e.s(["Sheet",0,function({dismissible:e=!0,side:t="right",onOpenChange:r,...n}){let i=(0,u.useCallback)((t,n)=>{!t&&!e&&e4.has(n.reason)?n.cancel():r?.(t,n)},[e,r]);return(0,$.jsx)(e7,{value:t,children:(0,$.jsx)(ez.Root,{...n,swipeDirection:e9[t],onOpenChange:i})})},"SheetBody",0,function({children:e,paddingBottom:t="m",paddingLeft:r=["m","l"],paddingRight:n=["m","l"],paddingTop:i="none",...l}){return(0,$.jsx)(eQ.Scroller,{...l,paddingBottom:t,paddingLeft:r,paddingRight:n,paddingTop:i,scrollShadow:!0,children:e})},"SheetCloseButton",0,e8,"SheetCloseIconButton",0,te,"SheetContent",0,function({accessibilityLabel:e,children:t,closeAccessibilityLabel:r,closeButton:n,description:i,headerActions:l,size:o="m",title:s,...a}){let c=(0,eJ.usePortalContainer)(),p=(0,u.use)(e7),f="left"===p||"right"===p,d=(0,eB.clsx)(e2({side:p}),f?e3({size:o}):e6({size:o}));return(0,$.jsxs)(ez.Portal,{container:c,children:[(0,$.jsx)(ez.Backdrop,{className:"qtx3q0"}),(0,$.jsx)(ez.Viewport,{className:e5({side:p}),children:(0,$.jsx)(ez.Popup,{...a,className:d,children:(0,$.jsx)(eG.Panel,{height:"100%",width:"100%",children:(0,$.jsxs)(eK.Stack,{height:"100%",children:[e?(0,$.jsx)(e0.VisuallyHidden,{as:"div",children:(0,$.jsx)(ez.Title,{children:e})}):null,i?(0,$.jsx)(e0.VisuallyHidden,{as:"div",children:(0,$.jsx)(ez.Description,{children:i})}):null,t,s||r||l?(0,$.jsx)("div",{className:"qtx3qe",children:(0,$.jsxs)(eK.Stack,{align:"right",gap:"xxs",orientation:"horizontal",paddingRight:["m","l"],paddingY:["m","l"],verticalAlign:"top",children:[s&&!e?(0,$.jsx)(ez.Title,{render:(0,$.jsx)(tt,{}),children:s}
1):null,s&&e?(0,$.jsx)(tt,{children:s}):null,l,r?(0,$.jsx)(te,{closeAccessibilityLabel:r}):null]})}):null]})})})})]})},"SheetFooter",0,function(e){return(0,$.jsx)(eK.Stack,{...e,gap:"m",paddingX:["m","l"],paddingY:"m",width:"100%"})},"SheetTitle",0,tt,"SheetTrigger",0,function({children:e,nativeButton:t=!0,...r}){return(0,$.jsx)(ez.Trigger,{...r,nativeButton:t,render:e})}],140197)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.