(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,35889,1893,e=>{var t=e.i(71645),n=e.i(14189),r=e.i(35696),l=e.i(55743),o=e.i(94316);let i=(0,t.createContext)(void 0);function u(){return(0,t.useContext)(i)}e.s(["f",0,u],1893);var a=e.i(20);let s=(0,t.createContext)(null);s.displayName="DescriptionContext";let c=Object.assign((0,a.t)(function(e,n){let i=(0,t.useId)(),c=u(),{id:d=`headlessui-description-${i}`,...f}=e,p=function e(){let n=(0,t.useContext)(s);if(null===n){let t=Error("You used a component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return n}(),m=(0,o.V)(n);(0,r.f)(()=>p.register(d),[d,p.register]);let v=(0,l.f)({...p.slot,disabled:c||!1}),h={ref:m,...p.props,id:d};return(0,a.n)()({ourProps:h,theirProps:f,slot:v,defaultTag:"p",name:p.name||"Description"})}),{});e.s(["u",0,c,"A",0,function(){var e,n;return null!=(n=null==(e=(0,t.useContext)(s))?void 0:e.value)?n:void 0},"s",0,function(){let[e,r]=(0,t.useState)([]);return[e.length>0?e.join(" "):void 0,(0,t.useMemo)(()=>function(e){let l=(0,n.f)(e=>(r(t=>[...t,e]),()=>r(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),o=(0,t.useMemo)(()=>({register:l,slot:e.slot,name:e.name,props:e.props,value:e.value}),[l,e.slot,e.name,e.props,e.value]);return t.default.createElement(s.Provider,{value:o},e.children)},[r])]}],35889)},54878,e=>{let t,n,r;var l=e.i(71645),o=e.i(98348),i=e.i(93456),u=e.i(29644),a=e.i(14189),s=e.i(84653),c=e.i(35696),d=e.i(77891),f=e.i(52744),p=e.i(5083),m=e.i(85935),v=e.i(1852),h=e.i(78677),g=e.i(55743),b=e.i(94316),E=e.i(74175),y=e.i(33137),w=e.i(96629),S=e.i(41650),F=e.i(40407),P=e.i(97701),T=e.i(20),C=e.i(35889),A=e.i(46725),O=e.i(53521),k=e.i(26599),x=e.i(61130);function N(e,t){let n=(0,l.useRef)([]),r=(0,a.f)(e);(0,l.useEffect)(()=>{let e=[...n.current];for(let[l,o]of t.entries())if(n.current[l]!==o){let l=r(t,e);return n.current=t,l}},[r,...t])}var R=e.i(2788),L=e.i(13581),j=e.i(52265);let D=[];function M(){"loading"!==document.readyState&&((()=>{function e(e){if(!L.N(e.target)||e.target===document.body||D[0]===e.target)return;let t=e.target;t=t.closest(j.c),D.unshift(null!=t?t:e.target),(D=D.filter(e=>null!=e&&e.isConnected)).splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})})(),document.removeEventListener("DOMContentLoaded",M))}"u">typeof window&&"u">typeof document&&(document.addEventListener("DOMContentLoaded",M),M());var I=e.i(68578),V=e.i(2155);function $(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let n of e.current)L.m(n.current)&&t.add(n.current);return t}var W=((t=W||{})[t.None=0]="None",t[t.InitialFocus=1]="InitialFocus",t[t.TabLock=2]="TabLock",t[t.FocusLock=4]="FocusLock",t[t.RestoreFocus=8]="RestoreFocus",t[t.AutoFocus=16]="AutoFocus",t);let U=Object.assign((0,T.t)(function(e,t){let n=(0,l.useRef)(null),r=(0,b.V)(n,t),{initialFocus:o,initialFocusFallback:s,containers:c,features:d=15,...f}=e;(0,h.f)()||(d=0);let m=(0,p.n)(n.current);!function(e,{ownerDocument:t}){let n=!!(8&e),r=function(e=!0){let t=(0,l.useRef)(D.slice());return N(([e],[n])=>{!0===n&&!1===e&&(0,I.f)(()=>{t.current.splice(0)}),!1===n&&!0===e&&(t.current=D.slice())},[e,D,t]),(0,a.f)(()=>{var e;return null!=(e=t.current.find(e=>null!=e&&e.isConnected))?e:null})}(n);N(()=>{n||(0,V.M)(null==t?void 0:t.body)&&(0,j.a)(r())},[n]),(0,k.f)(()=>{n&&(0,j.a)(r())})}(d,{ownerDocument:m});let v=function(e,{ownerDocument:t,container:n,initialFocus:r,initialFocusFallback:o}){let i=(0,l.useRef)(null),a=(0,u.f)(!!(1&e),"focus-trap#initial-focus"),s=(0,O.f)();return N(()=>{if(0===e)return;if(!a){null!=o&&o.current&&(0,j.a)(o.current);return}let l=n.current;l&&(0,I.f)(()=>{if(!s.current)return;let n=null==t?void 0:t.activeElement;if(null!=r&&r.current){if((null==r?void 0:r.current)===n){i.current=n;return}}else if(l.contains(n)){i.current=n;return}if(null!=r&&r.current)(0,j.a)(r.current);else{if(16&e){if((0,j.R)(l,j.b.First|j.b.AutoFocus)!==j.f.Error)return}else if((0,j.R)(l,j.b.First)!==j.f.Error)return;if(null!=o&&o.current&&((0,j.a)(o.current),(null==t?void 0:t.activeElement)===o.current))return;console.warn("There are no focusable elements inside the ")}i.current=null==t?void 0:t.activeElement})},[o,a,e]),i}(d,{ownerDocument:m,container:n,initialFocus:o,initialFocusFallback:s});!function(e,{ownerDocument:t,container:n,containers:r,previousActiveElement:l}){let o=(0,O.f)(),u=!!(4&e);(0,i.f)(null==t?void 0:t.defaultView,"focus",e=>{if(!u||!o.current)return;let t=$(r);L.F(n.current)&&t.add(n.current);let i=l.current;if(!i)return;let a=e.target;L.F(a)?H(t,a)?(l.current=a,(0,j.a)(a)):(e.preventDefault(),e.stopPropagation(),(0,j.a)(i)):(0,j.a)(l.current)},!0)}(d,{ownerDocument:m,container:n,containers:c,previousActiveElement:v});let g=(0,x.u)(),E=(0,a.f)(e=>{if(!L.F(n.current))return;let t=n.current;(0,P.f)(g.current,{[x.v.Forwards]:()=>{(0,j.R)(t,j.b.First,{skipElements:[e.relatedTarget,s]})},[x.v.Backwards]:()=>{(0,j.R)(t,j.b.Last,{skipElements:[e.relatedTarget,s]})}})}),y=(0,u.f)(!!(2&d),"focus-trap#tab-lock"),w=(0,A.f)(),S=(0,l.useRef)(!1),F=(0,T.n)();return l.default.createElement(l.default.Fragment,null,y&&l.default.createElement(R.g,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:E,features:R.X.Focusable}),F({ourProps:{ref:r,onKeyDown(e){"Tab"==e.key&&(S.current=!0,w.requestAnimationFrame(()=>{S.current=!1}))},onBlur(e){if(!(4&d))return;let t=$(c);L.F(n.current)&&t.add(n.current);let r=e.relatedTarget;L.N(r)&&"true"!==r.dataset.headlessuiFocusGuard&&(H(t,r)||(S.current?(0,j.R)(n.current,(0,P.f)(g.current,{[x.v.Forwards]:()=>j.b.Next,[x.v.Backwards]:()=>j.b.Previous})|j.b.WrapAround,{relativeTo:e.target}):L.N(e.target)&&(0,j.a)(e.target)))}},theirProps:f,defaultTag:"div",name:"FocusTrap"}),y&&l.default.createElement(R.g,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:E,features:R.X.Focusable}))}),{features:W});function H(e,t){for(let n of e)if(n.contains(t))return!0;return!1}var _=e.i(35307),B=e.i(54056),q=((n=q||{})[n.Open=0]="Open",n[n.Closed=1]="Closed",n),Y=((r=Y||{})[r.SetTitleId=0]="SetTitleId",r);let G={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},z=(0,l.createContext)(null);function K(e){let t=(0,l.useContext)(z);if(null===t){let t=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,K),t}return t}function X(e,t){return(0,P.f)(t.type,G,e,t)}z.displayName="DialogContext";let J=(0,T.t)(function(e,t){let n=(0,l.useId)(),{id:r=`headlessui-dialog-${n}`,open:P,onClose:A,initialFocus:O,role:k="dialog",autoFocus:x=!0,__demoMode:N=!1,unmount:R=!1,...L}=e,j=(0,l.useRef)(!1);k="dialog"===k||"alertdialog"===k?k:(j.current||(j.current=!0,console.warn(`Invalid role [${k}] passed to . Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog");let D=(0,y.N)();void 0===P&&null!==D&&(P=(D&y.A.Open)===y.A.Open);let M=(0,l.useRef)(null),I=(0,b.V)(M,t),V=(0,p.n)(M.current),$=+!P,[H,B]=(0,l.useReducer)(X,{titleId:null,descriptionId:null,panelRef:(0,l.createRef)()}),q=(0,a.f)(()=>A(!1)),Y=(0,a.f)(e=>B({type:0,id:e})),G=!!(0,h.f)()&&0===$,[K,J]=(0,_.U)(),ee=(0,m.G)(),{resolveContainers:et}=(0,m.$)({mainTreeNode:ee,portals:K,defaultContainers:[{get current(){var e;return null!=(e=H.panelRef.current)?e:M.current}}]}),en=null!==D&&(D&y.A.Closing)===y.A.Closing;(0,s.f)(!N&&!en&&G,{allowed:(0,a.f)(()=>{var e,t;return[null!=(t=null==(e=M.current)?void 0:e.closest("[data-headlessui-portal]"))?t:null]}),disallowed:(0,a.f)(()=>{var e;return[null!=(e=null==ee?void 0:ee.closest("body > *:not(#headlessui-portal-root)"))?e:null]})});let er=S.l.get(null);(0,c.f)(()=>{if(G)return er.actions.push(r),()=>er.actions.pop(r)},[er,r,G]);let el=(0,F.f)(er,(0,l.useCallback)(e=>er.selectors.isTop(e,r),[er,r]));(0,f.f)(el,et,e=>{e.preventDefault(),q()}),function(e,t="u">typeof document?document.defaultView:null,n){let r=(0,u.f)(e,"escape");(0,i.f)(t,"keydown",e=>{r&&(e.defaultPrevented||e.key===o.f.Escape&&n(e))})}(el,null==V?void 0:V.defaultView,e=>{e.preventDefault(),e.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur(),q()}),(0,v.f)(!N&&!en&&G,V,et),(0,d.f)(G,M,q);let[eo,ei]=(0,C.s)(),eu=(0,l.useMemo)(()=>[{dialogState:$,close:q,setTitleId:Y,unmount:R},H],[$,q,Y,R,H]),ea=(0,g.f)({open:0===$}),es={ref:I,id:r,role:k,tabIndex:-1,"aria-modal":N?void 0:0===$||void 0,"aria-labelledby":H.titleId,"aria-describedby":eo,unmount:R},ec=!function(){var e;let[t]=(0,l.useState)(()=>"u">typeof window&&"function"==typeof window.matchMedia?window.matchMedia("(pointer: coarse)"):null),[n,r]=(0,l.useState)(null!=(e=null==t?void 0:t.matches)&&e);return(0,c.f)(()=>{if(t)return t.addEventListener("change",e),()=>t.removeEventListener("change",e);function e(e){r(e.matches)}},[t]),n}(),ed=W.None;G&&!N&&(ed|=W.RestoreFocus,ed|=W.TabLock,x&&(ed|=W.AutoFocus),ec&&(ed|=W.InitialFocus));let ef=(0,T.n)();return l.default.createElement(y.P,null,l.default.createElement(w.d,{force:!0},l.default.createElement(_.z,null,l.default.createElement(z.Provider,{value:eu},l.default.createElement(_.n,{target:M},l.default.createElement(w.d,{force:!1},l.default.createElement(ei,{slot:ea},l.default.createElement(J,null,l.default.createElement(U,{initialFocus:O,initialFocusFallback:M,containers:et,features:ed},l.default.createElement(E.f,{value:q},ef({ourProps:es,theirProps:L,slot:ea,defaultTag:Z,features:Q,visible:0===$,name:"Dialog"})))))))))))}),Z="div",Q=T.J.RenderStrategy|T.J.Static,ee=(0,T.t)(function(e,t){let{transition:n=!1,open:r,...o}=e,i=(0,y.N)(),u=e.hasOwnProperty("open")||null!==i,a=e.hasOwnProperty("onClose");if(!u&&!a)throw Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!u)throw Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!a)throw Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!i&&"boolean"!=typeof e.open)throw Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if("function"!=typeof e.onClose)throw Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(void 0!==r||n)&&!o.static?l.default.createElement(m.u,null,l.default.createElement(B.I,{show:r,transition:n,unmount:o.unmount},l.default.createElement(J,{ref:t,...o}))):l.default.createElement(m.u,null,l.default.createElement(J,{ref:t,open:r,...o}))}),et=(0,T.t)(function(e,t){let n=(0,l.useId)(),{id:r=`headlessui-dialog-panel-${n}`,transition:o=!1,...i}=e,[{dialogState:u,unmount:s},c]=K("Dialog.Panel"),d=(0,b.V)(t,c.panelRef),f=(0,g.f)({open:0===u}),p=(0,a.f)(e=>{e.stopPropagation()}),m=o?B.p:l.Fragment,v=(0,T.n)();return l.default.createElement(m,{...o?{unmount:s}:{}},v({ourProps:{ref:d,id:r,onClick:p},theirProps:i,slot:f,defaultTag:"div",name:"Dialog.Panel"}))}),en=((0,T.t)(function(e,t){let{transition:n=!1,...r}=e,[{dialogState:o,unmount:i}]=K("Dialog.Backdrop"),u=(0,g.f)({open:0===o}),a=n?B.p:l.Fragment,s=(0,T.n)();return l.default.createElement(a,{...n?{unmount:i}:{}},s({ourProps:{ref:t,"aria-hidden":!0},theirProps:r,slot:u,defaultTag:"div",name:"Dialog.Backdrop"}))}),(0,T.t)(function(e,t){let n=(0,l.useId)(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:i,setTitleId:u}]=K("Dialog.Title"),a=(0,b.V)(t);(0,l.useEffect)(()=>(u(r),()=>u(null)),[r,u]);let s=(0,g.f)({open:0===i});return(0,T.n)()({ourProps:{ref:a,id:r},theirProps:o,slot:s,defaultTag:"h2",name:"Dialog.Title"})})),er=(C.u,Object.assign(ee,{Panel:et,Title:en,Description:C.u}));e.s(["f",0,er],54878)},98348,e=>{let t;var n=((t=n||{}).Space=" ",t.Enter="Enter",t.Escape="Escape",t.Backspace="Backspace",t.Delete="Delete",t.ArrowLeft="ArrowLeft",t.ArrowUp="ArrowUp",t.ArrowRight="ArrowRight",t.ArrowDown="ArrowDown",t.Home="Home",t.End="End",t.PageUp="PageUp",t.PageDown="PageDown",t.Tab="Tab",t);e.s(["f",0,n])},35307,e=>{var t=e.i(71645),n=e.i(74080),r=e.i(46725),l=e.i(14189),o=e.i(26599),i=e.i(5083),u=e.i(78677),a=e.i(94316),s=e.i(96629),c=e.i(80758),d=e.i(20);let f=t.Fragment,p=(0,d.t)(function(e,l){let{ownerDocument:p=null,...m}=e,g=(0,t.useRef)(null),b=(0,a.V)((0,a.f)(e=>{g.current=e}),l),E=(0,i.n)(g.current),y=function(e){let n=(0,s.e)(),r=(0,t.useContext)(v),[l,o]=(0,t.useState)(()=>{var t;if(!n&&null!==r)return null!=(t=r.current)?t:null;if(c.f.isServer)return null;let l=null==e?void 0:e.getElementById("headlessui-portal-root");if(l)return l;if(null===e)return null;let o=e.createElement("div");return o.setAttribute("id","headlessui-portal-root"),e.body.appendChild(o)});return(0,t.useEffect)(()=>{null!==l&&(null!=e&&e.body.contains(l)||null==e||e.body.appendChild(l))},[l,e]),(0,t.useEffect)(()=>{n||null!==r&&o(r.current)},[r,o,n]),l}(null!=p?p:E),w=(0,t.useContext)(h),S=(0,r.f)(),F=(0,u.f)(),P=(0,d.n)();return(0,o.f)(()=>{var e;y&&y.childNodes.length<=0&&(null==(e=y.parentElement)||e.removeChild(y))}),y&&F?(0,n.createPortal)(t.default.createElement("div",{"data-headlessui-portal":"",ref:e=>{S.dispose(),w&&e&&S.add(w.register(e))}},P({ourProps:{ref:b},theirProps:m,slot:{},defaultTag:f,name:"Portal"})),y):null}),m=t.Fragment,v=(0,t.createContext)(null),h=(0,t.createContext)(null),g=(0,d.t)(function(e,n){let r=(0,a.V)(n),{enabled:l=!0,ownerDocument:o,...i}=e,u=(0,d.n)();return l?t.default.createElement(p,{...i,ownerDocument:o,ref:r}):u({ourProps:{ref:r},theirProps:i,slot:{},defaultTag:f,name:"Portal"})}),b=(0,d.t)(function(e,n){let{target:r,...l}=e,o={ref:(0,a.V)(n)},i=(0,d.n)();return t.default.createElement(v.Provider,{value:r},i({ourProps:o,theirProps:l,defaultTag:m,name:"Popover.Group"}))}),E=Object.assign(g,{Group:b});e.s(["z",0,E,"n",0,b,"U",0,function(){let e=(0,t.useContext)(h),n=(0,t.useRef)([]),r=(0,l.f)(t=>(n.current.push(t),e&&e.register(t),()=>o(t))),o=(0,l.f)(t=>{let r=n.current.indexOf(t);-1!==r&&n.current.splice(r,1),e&&e.unregister(t)}),i=(0,t.useMemo)(()=>({register:r,unregister:o,portals:n}),[r,o,n]);return[n,(0,t.useMemo)(()=>function({children:e}){return t.default.createElement(h.Provider,{value:i},e)},[i])]}])},54056,e=>{let t;var n=e.i(71645),r=e.i(46725),l=e.i(14189),o=e.i(53521),i=e.i(35696),u=e.i(41444),a=e.i(78677),s=e.i(94316),c=e.i(83733),d=e.i(33137),f=e.i(32607),p=e.i(97701),m=e.i(20);function v(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||!(0,m.F)(null!=(t=e.as)?t:w)||1===n.default.Children.count(e.children)}let h=(0,n.createContext)(null);h.displayName="TransitionContext";var g=((t=g||{}).Visible="visible",t.Hidden="hidden",t);let b=(0,n.createContext)(null);function E(e){return"children"in e?E(e.children):e.current.filter(({el:e})=>null!==e.current).filter(({state:e})=>"visible"===e).length>0}function y(e,t){let i=(0,u.f)(e),a=(0,n.useRef)([]),s=(0,o.f)(),c=(0,r.f)(),d=(0,l.f)((e,t=m.j.Hidden)=>{let n=a.current.findIndex(({el:t})=>t===e);-1!==n&&((0,p.f)(t,{[m.j.Unmount](){a.current.splice(n,1)},[m.j.Hidden](){a.current[n].state="hidden"}}),c.microTask(()=>{var e;!E(a)&&s.current&&(null==(e=i.current)||e.call(i))}))}),f=(0,l.f)(e=>{let t=a.current.find(({el:t})=>t===e);return t?"visible"!==t.state&&(t.state="visible"):a.current.push({el:e,state:"visible"}),()=>d(e,m.j.Unmount)}),v=(0,n.useRef)([]),h=(0,n.useRef)(Promise.resolve()),g=(0,n.useRef)({enter:[],leave:[]}),b=(0,l.f)((e,n,r)=>{v.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter(([t])=>t!==e)),null==t||t.chains.current[n].push([e,new Promise(e=>{v.current.push(e)})]),null==t||t.chains.current[n].push([e,new Promise(e=>{Promise.all(g.current[n].map(([e,t])=>t)).then(()=>e())})]),"enter"===n?h.current=h.current.then(()=>null==t?void 0:t.wait.current).then(()=>r(n)):r(n)}),y=(0,l.f)((e,t,n)=>{Promise.all(g.current[t].splice(0).map(([e,t])=>t)).then(()=>{var e;null==(e=v.current.shift())||e()}).then(()=>n(t))});return(0,n.useMemo)(()=>({children:a,register:f,unregister:d,onStart:b,onStop:y,wait:h,chains:g}),[f,d,a,b,y,g,h])}b.displayName="NestingContext";let w=n.Fragment,S=m.J.RenderStrategy,F=(0,m.t)(function(e,t){let{show:r,appear:o=!1,unmount:u=!0,...c}=e,f=(0,n.useRef)(null),p=v(e),g=(0,s.V)(...p?[f,t]:null===t?[]:[t]);(0,a.f)();let w=(0,d.N)();if(void 0===r&&null!==w&&(r=(w&d.A.Open)===d.A.Open),void 0===r)throw Error("A is used but it is missing a `show={true | false}` prop.");let[F,T]=(0,n.useState)(r?"visible":"hidden"),C=y(()=>{r||T("hidden")}),[A,O]=(0,n.useState)(!0),k=(0,n.useRef)([r]);(0,i.f)(()=>{!1!==A&&k.current[k.current.length-1]!==r&&(k.current.push(r),O(!1))},[k,r]);let x=(0,n.useMemo)(()=>({show:r,appear:o,initial:A}),[r,o,A]);(0,i.f)(()=>{r?T("visible"):E(C)||null===f.current||T("hidden")},[r,C]);let N={unmount:u},R=(0,l.f)(()=>{var t;A&&O(!1),null==(t=e.beforeEnter)||t.call(e)}),L=(0,l.f)(()=>{var t;A&&O(!1),null==(t=e.beforeLeave)||t.call(e)}),j=(0,m.n)();return n.default.createElement(b.Provider,{value:C},n.default.createElement(h.Provider,{value:x},j({ourProps:{...N,as:n.Fragment,children:n.default.createElement(P,{ref:g,...N,...c,beforeEnter:R,beforeLeave:L})},theirProps:{},defaultTag:n.Fragment,features:S,visible:"visible"===F,name:"Transition"})))}),P=(0,m.t)(function(e,t){var r,o;let{transition:u=!0,beforeEnter:g,afterEnter:F,beforeLeave:P,afterLeave:T,enter:C,enterFrom:A,enterTo:O,entered:k,leave:x,leaveFrom:N,leaveTo:R,...L}=e,[j,D]=(0,n.useState)(null),M=(0,n.useRef)(null),I=v(e),V=(0,s.V)(...I?[M,t,D]:null===t?[]:[t]),$=null==(r=L.unmount)||r?m.j.Unmount:m.j.Hidden,{show:W,appear:U,initial:H}=function(){let e=(0,n.useContext)(h);if(null===e)throw Error("A is used but it is missing a parent or .");return e}(),[_,B]=(0,n.useState)(W?"visible":"hidden"),q=function(){let e=(0,n.useContext)(b);if(null===e)throw Error("A is used but it is missing a parent or .");return e}(),{register:Y,unregister:G}=q;(0,i.f)(()=>Y(M),[Y,M]),(0,i.f)(()=>{if($===m.j.Hidden&&M.current)return W&&"visible"!==_?void B("visible"):(0,p.f)(_,{hidden:()=>G(M),visible:()=>Y(M)})},[_,M,Y,G,W,$]);let z=(0,a.f)();(0,i.f)(()=>{if(I&&z&&"visible"===_&&null===M.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[M,_,z,I]);let K=H&&!U,X=U&&W&&H,J=(0,n.useRef)(!1),Z=y(()=>{J.current||(B("hidden"),G(M))},q),Q=(0,l.f)(e=>{J.current=!0,Z.onStart(M,e?"enter":"leave",e=>{"enter"===e?null==g||g():"leave"===e&&(null==P||P())})}),ee=(0,l.f)(e=>{let t=e?"enter":"leave";J.current=!1,Z.onStop(M,t,e=>{"enter"===e?null==F||F():"leave"===e&&(null==T||T())}),"leave"!==t||E(Z)||(B("hidden"),G(M))});(0,n.useEffect)(()=>{I&&u||(Q(W),ee(W))},[W,I,u]);let et=!(!u||!I||!z||K),[,en]=(0,c.S)(et,j,W,{start:Q,end:ee}),er=(0,m.x)({ref:V,className:(null==(o=(0,f.f)(L.className,X&&C,X&&A,en.enter&&C,en.enter&&en.closed&&A,en.enter&&!en.closed&&O,en.leave&&x,en.leave&&!en.closed&&N,en.leave&&en.closed&&R,!en.transition&&W&&k))?void 0:o.trim())||void 0,...(0,c.p)(en)}),el=0;"visible"===_&&(el|=d.A.Open),"hidden"===_&&(el|=d.A.Closed),W&&"hidden"===_&&(el|=d.A.Opening),W||"visible"!==_||(el|=d.A.Closing);let eo=(0,m.n)();return n.default.createElement(b.Provider,{value:Z},n.default.createElement(d.z,{value:el},eo({ourProps:er,theirProps:L,defaultTag:w,features:S,visible:"visible"===_,name:"Transition.Child"})))}),T=(0,m.t)(function(e,t){let r=null!==(0,n.useContext)(h),l=null!==(0,d.N)();return n.default.createElement(n.default.Fragment,null,!r&&l?n.default.createElement(F,{ref:t,...e}):n.default.createElement(P,{ref:t,...e}))}),C=Object.assign(F,{Child:T,Root:F});e.s(["I",0,C,"p",0,T])},46725,e=>{var t=e.i(71645),n=e.i(44508);e.s(["f",0,function(){let[e]=(0,t.useState)(n.f);return(0,t.useEffect)(()=>()=>e.dispose(),[e]),e}])},93456,85935,61130,e=>{let t;var n=e.i(71645),r=e.i(41444);e.s(["f",0,function(e,t,l,o){let i=(0,r.f)(l);(0,n.useEffect)(()=>{function n(e){i.current(e)}return(e=null!=e?e:window).addEventListener(t,n,o),()=>e.removeEventListener(t,n,o)},[e,t,o])}],93456);var l=e.i(2788),o=e.i(13581),i=e.i(2155),u=e.i(14189);let a=(0,n.createContext)(null);function s(e=null){var t;return null!=(t=(0,n.useContext)(a))?t:e}e.s(["u",0,function({children:e,node:t}){let[r,u]=(0,n.useState)(null),c=s(null!=t?t:r);return n.default.createElement(a.Provider,{value:c},e,null===c&&n.default.createElement(l.g,{features:l.X.Hidden,ref:e=>{var t,n;if(e){for(let r of null!=(n=null==(t=(0,i.o)(e))?void 0:t.querySelectorAll("html > *, body > *"))?n:[])if(r!==document.body&&r!==document.head&&o.m(r)&&null!=r&&r.contains(e)){u(r);break}}}}))},"G",0,s,"$",0,function({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=(0,u.f)(()=>{var r,l;let u=(0,i.o)(n),a=[];for(let t of e)null!==t&&(o.m(t)?a.push(t):"current"in t&&o.m(t.current)&&a.push(t.current));if(null!=t&&t.current)for(let e of t.current)a.push(e);for(let e of null!=(r=null==u?void 0:u.querySelectorAll("html > *, body > *"))?r:[])e!==document.body&&e!==document.head&&o.m(e)&&"headlessui-portal-root"!==e.id&&(n&&(e.contains(n)||e.contains(null==(l=null==n?void 0:n.getRootNode())?void 0:l.host))||a.some(t=>e.contains(t))||a.push(e));return a});return{resolveContainers:r,contains:(0,u.f)(e=>r().some(t=>t.contains(e)))}}],85935);var c=e.i(1141),d=((t=d||{})[t.Forwards=0]="Forwards",t[t.Backwards=1]="Backwards",t);e.s(["v",0,d,"u",0,function(){let e=(0,n.useRef)(0);return(0,c.f)(!0,"keydown",t=>{"Tab"===t.key&&(e.current=+!!t.shiftKey)},!0),e}],61130)},14189,e=>{var t=e.i(71645),n=e.i(41444);e.s(["f",0,function(e){let r=(0,n.f)(e);return t.default.useCallback((...e)=>r.current(...e),[r])}])},84653,e=>{var t=e.i(44508),n=e.i(2155),r=e.i(29644),l=e.i(35696);let o=new Map,i=new Map;function u(e){var t;let n=null!=(t=i.get(e))?t:0;return i.set(e,n+1),0!==n?()=>a(e):(o.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>a(e))}function a(e){var t;let n=null!=(t=i.get(e))?t:1;if(1===n?i.delete(e):i.set(e,n-1),1!==n)return;let r=o.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,o.delete(e))}e.s(["f",0,function(e,{allowed:o,disallowed:i}={}){let a=(0,r.f)(e,"inert-others");(0,l.f)(()=>{var e,r;if(!a)return;let l=(0,t.f)();for(let t of null!=(e=null==i?void 0:i())?e:[])t&&l.add(u(t));let s=null!=(r=null==o?void 0:o())?r:[];for(let e of s){if(!e)continue;let t=(0,n.o)(e);if(!t)continue;let r=e.parentElement;for(;r&&r!==t.body;){for(let e of r.children)s.some(t=>e.contains(t))||l.add(u(e));r=r.parentElement}}return l.dispose},[a,o,i])}])},53521,e=>{var t=e.i(71645),n=e.i(35696);e.s(["f",0,function(){let e=(0,t.useRef)(!1);return(0,n.f)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}])},29644,25720,41650,40407,e=>{let t;var n,r,l,o=e.i(71645);class i extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}}var u=e.i(44508),a=e.i(80758),s=Object.defineProperty,c=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},d=(e,t,n)=>(c(e,t,"read from private field"),n?n.call(e):t.get(e)),f=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},p=(e,t,n,r)=>(c(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);class m{constructor(e){var t,o;let c;f(this,n,{}),f(this,r,new i(()=>new Set)),f(this,l,new Set),t="disposables",o=(0,u.f)(),(c="symbol"!=typeof t?t+"":t)in this?s(this,c,{enumerable:!0,configurable:!0,writable:!0,value:o}):this[c]=o,p(this,n,e),a.f.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return d(this,n)}subscribe(e,t){if(a.f.isServer)return()=>{};let r={selector:e,callback:t,current:e(d(this,n))};return d(this,l).add(r),this.disposables.add(()=>{d(this,l).delete(r)})}on(e,t){return a.f.isServer?()=>{}:(d(this,r).get(e).add(t),this.disposables.add(()=>{d(this,r).get(e).delete(t)}))}send(e){let t=this.reduce(d(this,n),e);if(t!==d(this,n)){for(let e of(p(this,n,t),d(this,l))){let t=e.selector(d(this,n));v(e.current,t)||(e.current=t,e.callback(t))}for(let t of d(this,r).get(e.type))t(d(this,n),e)}}}function v(e,t){return!!Object.is(e,t)||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&(Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&h(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size===t.size&&h(e.entries(),t.entries()):!!(g(e)&&g(t))&&h(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()))}function h(e,t){for(;;){let n=e.next(),r=t.next();if(n.done&&r.done)return!0;if(n.done||r.done||!Object.is(n.value,r.value))return!1}}function g(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}n=new WeakMap,r=new WeakMap,l=new WeakMap,e.s(["$",0,m,"W",0,function(e){let[t,n]=e(),r=(0,u.f)();return(...e)=>{t(...e),r.dispose(),r.microTask(n)}},"o",0,v],25720);var b=e.i(97701),E=Object.defineProperty,y=(e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?E(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,n},w=((t=w||{})[t.Push=0]="Push",t[t.Pop=1]="Pop",t);let S={0(e,t){let n=t.id,r=e.stack,l=e.stack.indexOf(n);if(-1!==l){let t=e.stack.slice();return t.splice(l,1),t.push(n),r=t,{...e,stack:r}}return{...e,stack:[...e.stack,n]}},1(e,t){let n=t.id,r=e.stack.indexOf(n);if(-1===r)return e;let l=e.stack.slice();return l.splice(r,1),{...e,stack:l}}};class F extends m{constructor(){super(...arguments),y(this,"actions",{push:e=>this.send({type:0,id:e}),pop:e=>this.send({type:1,id:e})}),y(this,"selectors",{isTop:(e,t)=>e.stack[e.stack.length-1]===t,inStack:(e,t)=>e.stack.includes(t)})}static new(){return new F({stack:[]})}reduce(e,t){return(0,b.f)(t.type,S,e,t)}}let P=new i(()=>F.new());e.s(["R",0,w,"l",0,P],41650);var T=e.i(13027),C=e.i(14189);function A(e,t,n=v){return(0,T.useSyncExternalStoreWithSelector)((0,C.f)(t=>e.subscribe(O,t)),(0,C.f)(()=>e.state),(0,C.f)(()=>e.state),(0,C.f)(t),n)}function O(e){return e}e.s(["f",0,A],40407);var k=e.i(35696);e.s(["f",0,function(e,t){let n=(0,o.useId)(),r=P.get(t),[l,i]=A(r,(0,o.useCallback)(e=>[r.selectors.isTop(e,n),r.selectors.inStack(e,n)],[r,n]));return(0,k.f)(()=>{if(e)return r.actions.push(n),()=>r.actions.pop(n)},[r,e,n]),!!e&&(!i||l)}],29644)},41444,35696,e=>{var t=e.i(71645),n=e.i(80758);let r=(e,r)=>{n.f.isServer?(0,t.useEffect)(e,r):(0,t.useLayoutEffect)(e,r)};e.s(["f",0,r],35696),e.s(["f",0,function(e){let n=(0,t.useRef)(e);return r(()=>{n.current=e},[e]),n}],41444)},77891,22357,1141,52744,5083,8417,e=>{let t,n;var r,l,o=e.i(71645),i=e.i(44508),u=e.i(13581),a=e.i(41444);e.s(["f",0,function(e,t,n){let r=(0,a.f)(e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&n()});(0,o.useEffect)(()=>{if(!e)return;let n=null===t?null:u.F(t)?t:t.current;if(!n)return;let l=(0,i.f)();if("u">typeof ResizeObserver){let e=new ResizeObserver(()=>r.current(n));e.observe(n),l.add(()=>e.disconnect())}if("u">typeof IntersectionObserver){let e=new IntersectionObserver(()=>r.current(n));e.observe(n),l.add(()=>e.disconnect())}return()=>l.dispose()},[t,r,e])}],77891);var s=e.i(52265);function c(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function d(){return c()||/Android/gi.test(window.navigator.userAgent)}function f(e,t,n,r){let l=(0,a.f)(n);(0,o.useEffect)(()=>{if(e)return document.addEventListener(t,n,r),()=>document.removeEventListener(t,n,r);function n(e){l.current(e)}},[e,t,r])}function p(e,t,n,r){let l=(0,a.f)(n);(0,o.useEffect)(()=>{if(e)return window.addEventListener(t,n,r),()=>window.removeEventListener(t,n,r);function n(e){l.current(e)}},[e,t,r])}e.s(["f",0,f],22357),e.s(["f",0,p],1141),e.s(["f",0,function(e,t,n){let r=(0,a.f)(n),l=(0,o.useCallback)(function(e,n){if(e.defaultPrevented)return;let l=n(e);if(null!==l&&l.getRootNode().contains(l)&&l.isConnected){for(let n of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t))if(null!==n&&(n.contains(l)||e.composed&&e.composedPath().includes(n)))return;return(0,s.d)(l,s.m.Loose)||-1===l.tabIndex||e.preventDefault(),r.current(e,l)}},[r,t]),i=(0,o.useRef)(null);f(e,"pointerdown",e=>{var t,n;d()||(i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),f(e,"pointerup",e=>{if(d()||!i.current)return;let t=i.current;return i.current=null,l(e,()=>t)},!0);let c=(0,o.useRef)({x:0,y:0});f(e,"touchstart",e=>{c.current.x=e.touches[0].clientX,c.current.y=e.touches[0].clientY},!0),f(e,"touchend",e=>{let t={x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY};if(!(Math.abs(t.x-c.current.x)>=30||Math.abs(t.y-c.current.y)>=30))return l(e,()=>u.N(e.target)?e.target:null)},!0),p(e,"blur",e=>l(e,()=>u.I(window.document.activeElement)?window.document.activeElement:null),!0)}],52744);var m=e.i(2155);e.s(["n",0,function(...e){return(0,o.useMemo)(()=>(0,m.o)(...e),[...e])},"o",0,function(...e){return(0,o.useMemo)(()=>(0,m.g)(...e),[...e])}],5083);var v=e.i(35696);function h(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let g=(r=()=>new Map,l={PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:(0,i.f)(),meta:new Set,computedMeta:{}};return r.count++,r.meta.add(t),r.computedMeta=h(r.meta),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t),n.computedMeta=h(n.meta)),this},SCROLL_PREVENT(e){let t,n={doc:e.doc,d:e.d,meta:()=>e.computedMeta},r=[c()?{before({doc:e,d:t,meta:n}){function r(e){for(let t of n().containers)for(let n of t())if(n.contains(e))return!0;return!1}t.microTask(()=>{var n;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let n=(0,i.f)();n.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>n.dispose()))}let l=null!=(n=window.scrollY)?n:window.pageYOffset,o=null;t.addEventListener(e,"click",t=>{if(u.N(t.target))try{let n=t.target.closest("a");if(!n)return;let{hash:l}=new URL(n.href),i=e.querySelector(l);u.N(i)&&!r(i)&&(o=i)}catch{}},!0),t.group(n=>{t.addEventListener(e,"touchstart",e=>{if(n.dispose(),u.N(e.target)&&u.E(e.target))if(r(e.target)){let t=e.target;for(;t.parentElement&&r(t.parentElement);)t=t.parentElement;n.style(t,"overscrollBehavior","contain")}else n.style(e.target,"touchAction","none")})}),t.addEventListener(e,"touchmove",e=>{if(u.N(e.target)&&!u.k(e.target))if(r(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()},{passive:!1}),t.add(()=>{var e;l!==(null!=(e=window.scrollY)?e:window.pageYOffset)&&window.scrollTo(0,l),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)})})}}:{},{before({doc:e}){var n;let r=e.documentElement;t=Math.max(0,(null!=(n=e.defaultView)?n:window).innerWidth-r.clientWidth)},after({doc:e,d:n}){let r=e.documentElement,l=Math.max(0,r.clientWidth-r.offsetWidth),o=Math.max(0,t-l);n.style(r,"paddingRight",`${o}px`)}},{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];r.forEach(({before:e})=>null==e?void 0:e(n)),r.forEach(({after:e})=>null==e?void 0:e(n))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}},t=r(),n=new Set,{getSnapshot:()=>t,subscribe:e=>(n.add(e),()=>n.delete(e)),dispatch(e,...r){let o=l[e].call(t,...r);o&&(t=o,n.forEach(e=>e()))}});g.subscribe(()=>{let e=g.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&g.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&g.dispatch("TEARDOWN",n)}}),e.s(["f",0,function(e,t,n=()=>({containers:[]})){let r=(0,o.useSyncExternalStore)(g.subscribe,g.getSnapshot,g.getSnapshot),l=t?r.get(t):void 0,i=!!l&&l.count>0;return(0,v.f)(()=>{if(!(!t||!e))return g.dispatch("PUSH",t,n),()=>g.dispatch("POP",t,n)},[e,t]),i}],8417)},26599,e=>{var t=e.i(71645),n=e.i(68578),r=e.i(14189);e.s(["f",0,function(e){let l=(0,r.f)(e),o=(0,t.useRef)(!1);(0,t.useEffect)(()=>(o.current=!1,()=>{o.current=!0,(0,n.f)(()=>{o.current&&l()})}),[l])}])},1852,e=>{var t=e.i(8417),n=e.i(29644);e.s(["f",0,function(e,r,l=()=>[document.body]){let o=(0,n.f)(e,"scroll-lock");(0,t.f)(o,r,e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],l]}})}])},78677,96629,e=>{var t=e.i(71645),n=e.i(80758);e.s(["f",0,function(){let e,r=(e="u"()=>{},()=>!1,()=>!e)),[l,o]=t.useState(n.f.isHandoffComplete);return l&&!1===n.f.isHandoffComplete&&o(!1),t.useEffect(()=>{!0!==l&&o(!0)},[l]),t.useEffect(()=>n.f.handoff(),[]),!r&&l}],78677);let r=(0,t.createContext)(!1);e.s(["d",0,function(e){return t.default.createElement(r.Provider,{value:e.force},e.children)},"e",0,function(){return(0,t.useContext)(r)}],96629)},55743,94316,e=>{var t=e.i(71645);e.s(["f",0,function(e){return(0,t.useMemo)(()=>e,Object.values(e))}],55743);var n=e.i(14189);let r=Symbol();e.s(["f",0,function(e,t=!0){return Object.assign(e,{[r]:t})},"V",0,function(...e){let l=(0,t.useRef)(e);(0,t.useEffect)(()=>{l.current=e},[e]);let o=(0,n.f)(e=>{for(let t of l.current)null!=t&&("function"==typeof t?t(e):t.current=e)});return e.every(e=>null==e||(null==e?void 0:e[r]))?void 0:o}],94316)},83733,e=>{let t;var n,r,l=e.i(47167),o=e.i(71645),i=e.i(44508),u=e.i(46725),a=e.i(35696);void 0!==l.default&&"u">typeof globalThis&&"u">typeof Element&&(null==(n=null==l.default?void 0:l.default.env)?void 0:n.NODE_ENV)==="test"&&void 0===(null==(r=null==Element?void 0:Element.prototype)?void 0:r.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
`)),[]});var s=((t=s||{})[t.None=0]="None",t[t.Closed=1]="Closed",t[t.Enter=2]="Enter",t[t.Leave=4]="Leave",t);e.s(["p",0,function(e){let t={};for(let n in e)!0===e[n]&&(t[`data-${n}`]="");return t},"S",0,function(e,t,n,r){let[l,s]=(0,o.useState)(n),{hasFlag:c,addFlag:d,removeFlag:f}=function(e=0){let[t,n]=(0,o.useState)(e),r=(0,o.useCallback)(e=>n(e),[]),l=(0,o.useCallback)(e=>n(t=>t|e),[]),i=(0,o.useCallback)(e=>(t&e)===e,[t]);return{flags:t,setFlag:r,addFlag:l,hasFlag:i,removeFlag:(0,o.useCallback)(e=>n(t=>t&~e),[]),toggleFlag:(0,o.useCallback)(e=>n(t=>t^e),[])}}(e&&l?3:0),p=(0,o.useRef)(!1),m=(0,o.useRef)(!1),v=(0,u.f)();return(0,a.f)(()=>{var l;if(e){if(n&&s(!0),!t){n&&d(3);return}return null==(l=null==r?void 0:r.start)||l.call(r,n),function(e,{prepare:t,run:n,done:r,inFlight:l}){let o=(0,i.f)();return function(e,{inFlight:t,prepare:n}){if(null!=t&&t.current)return n();let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}(e,{prepare:t,inFlight:l}),o.nextFrame(()=>{n(),o.requestAnimationFrame(()=>{o.add(function(e,t){var n,r;let l=(0,i.f)();if(!e)return l.dispose;let o=!1;l.add(()=>{o=!0});let u=null!=(r=null==(n=e.getAnimations)?void 0:n.call(e).filter(e=>e instanceof CSSTransition))?r:[];return 0===u.length?t():Promise.allSettled(u.map(e=>e.finished)).then(()=>{o||t()}),l.dispose}(e,r))})}),o.dispose}(t,{inFlight:p,prepare(){m.current?m.current=!1:m.current=p.current,p.current=!0,m.current||(n?(d(3),f(4)):(d(4),f(2)))},run(){m.current?n?(f(3),d(4)):(f(4),d(3)):n?f(1):d(1)},done(){var e,l,o,i;m.current&&(null!=(i=null==(o=(l=t).getAnimations)?void 0:o.call(l))?i:[]).some(e=>e instanceof CSSTransition&&"finished"!==e.playState)||(p.current=!1,f(7),n||s(!1),null==(e=null==r?void 0:r.end)||e.call(r,n))}})}},[e,n,t,v]),e?[l,{closed:c(1),enter:c(2),leave:c(4),transition:c(2)||c(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}],83733)},74175,e=>{var t=e.i(71645);let n=(0,t.createContext)(()=>{});e.s(["f",0,function({value:e,children:r}){return t.default.createElement(n.Provider,{value:e},r)}])},2788,e=>{let t;var n=e.i(20),r=((t=r||{})[t.None=1]="None",t[t.Focusable=2]="Focusable",t[t.Hidden=4]="Hidden",t);let l=(0,n.t)(function(e,t){var r;let{features:l=1,...o}=e,i={ref:t,"aria-hidden":(2&l)==2||(null!=(r=o["aria-hidden"])?r:void 0),hidden:(4&l)==4||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&l)==4&&(2&l)!=2&&{display:"none"}}};return(0,n.n)()({ourProps:i,theirProps:o,slot:{},defaultTag:"span",name:"Hidden"})});e.s(["g",0,l,"X",0,r])},33137,e=>{let t;var n=e.i(71645);let r=(0,n.createContext)(null);r.displayName="OpenClosedContext";var l=((t=l||{})[t.Open=1]="Open",t[t.Closed=2]="Closed",t[t.Closing=4]="Closing",t[t.Opening=8]="Opening",t);e.s(["z",0,function({value:e,children:t}){return n.default.createElement(r.Provider,{value:e},t)},"P",0,function({children:e}){return n.default.createElement(r.Provider,{value:null},e)},"A",0,l,"N",0,function(){return(0,n.useContext)(r)}])},32607,e=>{e.s(["f",0,function(...e){return Array.from(new Set(e.flatMap(e=>"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}])},44508,68578,e=>{function t(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}e.s(["f",0,t],68578),e.s(["f",0,function e(){let n=[],r={addEventListener:(e,t,n,l)=>(e.addEventListener(t,n,l),r.add(()=>e.removeEventListener(t,n,l))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return r.add(()=>cancelAnimationFrame(t))},nextFrame:(...e)=>r.requestAnimationFrame(()=>r.requestAnimationFrame(...e)),setTimeout(...e){let t=setTimeout(...e);return r.add(()=>clearTimeout(t))},microTask(...e){let n={current:!0};return t(()=>{n.current&&e[0]()}),r.add(()=>{n.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(t){let n=e();return t(n),this.add(()=>n.dispose())},add:e=>(n.includes(e)||n.push(e),()=>{let t=n.indexOf(e);if(t>=0)for(let e of n.splice(t,1))e()}),dispose(){for(let e of n.splice(0))e()}};return r}],44508)},13581,e=>{function t(e){return"object"==typeof e&&null!==e&&"nodeType"in e}function n(e){return t(e)&&"tagName"in e}function r(e){return n(e)&&"accessKey"in e}e.s(["E",0,function(e){return n(e)&&"style"in e},"m",0,n,"F",0,r,"J",0,function(e){return r(e)&&"FIELDSET"===e.nodeName},"I",0,function(e){return r(e)&&"IFRAME"===e.nodeName},"k",0,function(e){return r(e)&&"INPUT"===e.nodeName},"M",0,function(e){return r(e)&&"LABEL"===e.nodeName},"D",0,function(e){return r(e)&&"LEGEND"===e.nodeName},"N",0,function(e){return n(e)&&"tabIndex"in e},"W",0,function(e){return!!n(e)&&e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]')},"t",0,t])},80758,e=>{var t=Object.defineProperty,n=(e,n,r)=>{let l;return(l="symbol"!=typeof n?n+"":n)in e?t(e,l,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[l]=r,r};let r=new class{constructor(){n(this,"current",this.detect()),n(this,"handoffState","pending"),n(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"u"{let t,n,r,l,o;e.i(44508),e.i(13581);var i=e.i(97701),u=e.i(2155);let a=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),s=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var c=((t=c||{})[t.First=1]="First",t[t.Previous=2]="Previous",t[t.Next=4]="Next",t[t.Last=8]="Last",t[t.WrapAround=16]="WrapAround",t[t.NoScroll=32]="NoScroll",t[t.AutoFocus=64]="AutoFocus",t),d=((n=d||{})[n.Error=0]="Error",n[n.Overflow=1]="Overflow",n[n.Success=2]="Success",n[n.Underflow=3]="Underflow",n),f=((r=f||{})[r.Previous=-1]="Previous",r[r.Next=1]="Next",r);function p(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(a)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var m=((l=m||{})[l.Strict=0]="Strict",l[l.Loose=1]="Loose",l),v=((o=v||{})[o.Keyboard=0]="Keyboard",o[o.Mouse=1]="Mouse",o);function h(e,t=e=>e){return e.slice().sort((e,n)=>{let r=t(e),l=t(n);if(null===r||null===l)return 0;let o=r.compareDocumentPosition(l);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function g(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:l=[]}={}){var o,i,a;let c=Array.isArray(e)?e.length>0?(0,u.g)(e[0]):document:(0,u.g)(e),d=Array.isArray(e)?n?h(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(s)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e):p(e);l.length>0&&d.length>1&&(d=d.filter(e=>!l.some(t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))),r=null!=r?r:null==c?void 0:c.activeElement;let f=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),m=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,d.indexOf(r))-1;if(4&t)return Math.max(0,d.indexOf(r))+1;if(8&t)return d.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),v=32&t?{preventScroll:!0}:{},b=0,E=d.length,y;do{if(b>=E||b+E<=0)return 0;let e=m+b;if(16&t)e=(e+E)%E;else{if(e<0)return 3;if(e>=E)return 1}null==(y=d[e])||y.focus(v),b+=f}while(y!==(0,u.z)(y))return 6&t&&null!=(a=null==(i=null==(o=y)?void 0:o.matches)?void 0:i.call(o,"textarea,input"))&&a&&y.select(),2}"u">typeof window&&"u">typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0)),e.s(["b",0,c,"f",0,d,"m",0,m,"a",0,function(e){null==e||e.focus({preventScroll:!0})},"e",0,function(e,t,n=null===e?document.body:(0,u.g)(e)){return g(p(n),t,{relativeTo:e})},"R",0,g,"c",0,a,"o",0,p,"d",0,function(e,t=0){var n;return e!==(null==(n=(0,u.o)(e))?void 0:n.body)&&(0,i.f)(t,{0:()=>e.matches(a),1(){let t=e;for(;null!==t;){if(t.matches(a))return!0;t=t.parentElement}return!1}})},"T",0,h])},97701,e=>{e.s(["f",0,function e(t,n,...r){if(t in n){let e=n[t];return"function"==typeof e?e(...r):e}let l=Error(`Tried to handle "${t}" but there is no handler defined. Only defined handlers are: ${Object.keys(n).map(e=>`"${e}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(l,e),l}])},2155,e=>{var t=e.i(80758);function n(e){var n,r;return t.f.isServer?null:null==e?document:null!=(r=null==(n=null==e?void 0:e.getRootNode)?void 0:n.call(e))?r:document}function r(e){var t,r;return null!=(r=null==(t=n(e))?void 0:t.activeElement)?r:null}e.s(["z",0,r,"o",0,function(e){var n;return t.f.isServer?null:null==e?document:null!=(n=null==e?void 0:e.ownerDocument)?n:document},"g",0,n,"M",0,function(e){return r(e)===e}])},20,e=>{let t,n;var r=e.i(71645),l=e.i(32607),o=e.i(97701),i=((t=i||{})[t.None=0]="None",t[t.RenderStrategy=1]="RenderStrategy",t[t.Static=2]="Static",t),u=((n=u||{})[n.Unmount=0]="Unmount",n[n.Hidden=1]="Hidden",n);function a(e,t={},n,o,i){let{as:u=n,children:s,refName:m="ref",...v}=f(e,["unmount","static"]),h=void 0!==e.ref?{[m]:e.ref}:{},g="function"==typeof s?s(t):s;g=function e(t){if(null!=t&&t.$$typeof===Symbol.for("react.lazy")){let n=t._payload;if(null!=n&&"fulfilled"===n.status)return e(n.value)}return t}(g),"className"in v&&v.className&&"function"==typeof v.className&&(v.className=v.className(t)),v["aria-labelledby"]&&v["aria-labelledby"]===v.id&&(v["aria-labelledby"]=void 0);let b={};if(t){let e=!1,n=[];for(let[r,l]of Object.entries(t))"boolean"==typeof l&&(e=!0),!0===l&&n.push(r.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`));if(e)for(let e of(b["data-headlessui-state"]=n.join(" "),n))b[`data-${e}`]=""}if(p(u)&&(Object.keys(d(v)).length>0||Object.keys(d(b)).length>0))if(!(0,r.isValidElement)(g)||Array.isArray(g)&&g.length>1||p(g.type)){if(Object.keys(d(v)).length>0)throw Error(['Passing props on "Fragment"!',"",`The current component <${o} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(d(v)).concat(Object.keys(d(b))).map(e=>` - ${e}`).join(`
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>` - ${e}`).join(`
`)].join(`
`))}else{var E;let e=g.props,t=null==e?void 0:e.className,n="function"==typeof t?(...e)=>(0,l.f)(t(...e),v.className):(0,l.f)(t,v.className),o=c(g.props,d(f(v,["ref"])));for(let e in b)e in o&&delete b[e];return(0,r.cloneElement)(g,Object.assign({},o,b,h,{ref:i((E=g,r.default.version.split(".")[0]>="19"?E.props.ref:E.ref),h.ref)},n?{className:n}:{}))}return(0,r.createElement)(u,Object.assign({},f(v,["ref"]),!p(u)&&h,!p(u)&&b),g)}function s(...e){return e.every(e=>null==e)?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function c(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])for(let e in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(n[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in n)Object.assign(t,{[e](t,...r){for(let l of n[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;l(t,...r)}}});return t}function d(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function f(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}function p(e){return e===r.Fragment||e===Symbol.for("react.fragment")}e.s(["J",0,i,"j",0,u,"x",0,d,"t",0,function(e){var t;return Object.assign((0,r.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})},"F",0,p,"w",0,function(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];for(let e in n)Object.assign(t,{[e](...t){for(let r of n[e])null==r||r(...t)}});return t},"n",0,function(){let e,t,n=(e=(0,r.useRef)([]),t=(0,r.useCallback)(t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)},[]),(...n)=>{if(!n.every(e=>null==e))return e.current=n,t});return(0,r.useCallback)(e=>(function({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:l,visible:i=!0,name:u,mergeRefs:d}){d=null!=d?d:s;let f=c(t,e);if(i)return a(f,n,r,u,d);let p=null!=l?l:0;if(2&p){let{static:e=!1,...t}=f;if(e)return a(t,n,r,u,d)}if(1&p){let{unmount:e=!0,...t}=f;return(0,o.f)(+!e,{0:()=>null,1:()=>a({...t,hidden:!0,style:{display:"none"}},n,r,u,d)})}return a(f,n,r,u,d)})({mergeRefs:n,...e}),[n])}])},14595,(e,t,n)=>{var r=e.r(71645),l="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useSyncExternalStore,i=r.useRef,u=r.useEffect,a=r.useMemo,s=r.useDebugValue;n.useSyncExternalStoreWithSelector=function(e,t,n,r,c){var d=i(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var p=o(e,(d=a(function(){function e(e){if(!u){if(u=!0,o=e,e=r(e),void 0!==c&&f.hasValue){var t=f.value;if(c(t,e))return i=t}return i=e}if(t=i,l(o,e))return t;var n=r(e);return void 0!==c&&c(t,n)?(o=e,t):(o=e,i=n)}var o,i,u=!1,a=void 0===n?null:n;return[function(){return e(t())},null===a?void 0:function(){return e(a())}]},[t,n,r,c]))[0],d[1]);return u(function(){f.hasValue=!0,f.value=p},[p]),s(p),p}},13027,(e,t,n)=>{e.i(47167),t.exports=e.r(14595)},89787,e=>{var t=e.i(71645);e.s(["f",0,(e=!1)=>{let[n,r]=(0,t.useState)(e),l=()=>{r(!1)},o=()=>{r(!0)},i=()=>{r(e=>!e)},u=[n,o,l,i];return u.state=n,u.open=o,u.close=l,u.toggle=i,u}])}])})();