<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">import{R as p,r as i,c as Je,h as oe}from"./app-d72ac34c.js";import{b as z,s as _,l as O,u as C,a as $e,e as se,L as y,D as S,o as $,y as P,p as Ke,f as Q,g as ye,T as ze,j as Ee,C as Qe,d as V}from"./transition-9655039f.js";var we;let N=(we=p.useId)!=null?we:function(){let e=z(),[t,n]=p.useState(e?()=&gt;_.nextId():null);return O(()=&gt;{t===null&amp;&amp;n(_.nextId())},[t]),t!=null?""+t:void 0};function de(e){return _.isServer?null:e instanceof Node?e.ownerDocument:e!=null&amp;&amp;e.hasOwnProperty("current")&amp;&amp;e.current instanceof Node?e.current.ownerDocument:document}let le=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=&gt;`${e}:not([tabindex='-1'])`).join(",");var x=(e=&gt;(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(x||{}),Se=(e=&gt;(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Se||{}),Ze=(e=&gt;(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Ze||{});function Le(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(le)).sort((t,n)=&gt;Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Pe=(e=&gt;(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Pe||{});function Te(e,t=0){var n;return e===((n=de(e))==null?void 0:n.body)?!1:C(t,{[0](){return e.matches(le)},[1](){let r=e;for(;r!==null;){if(r.matches(le))return!0;r=r.parentElement}return!1}})}function Rn(e){let t=de(e);$e().nextFrame(()=&gt;{t&amp;&amp;!Te(t.activeElement,0)&amp;&amp;F(e)})}function F(e){e==null||e.focus({preventScroll:!0})}let et=["textarea","input"].join(",");function tt(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,et))!=null?n:!1}function nt(e,t=n=&gt;n){return e.slice().sort((n,r)=&gt;{let l=t(n),a=t(r);if(l===null||a===null)return 0;let o=l.compareDocumentPosition(a);return o&amp;Node.DOCUMENT_POSITION_FOLLOWING?-1:o&amp;Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Fn(e,t){return j(Le(),t,{relativeTo:e})}function j(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:l=[]}={}){let a=Array.isArray(e)?e.length&gt;0?e[0].ownerDocument:document:e.ownerDocument,o=Array.isArray(e)?n?nt(e):e:Le(e);l.length&gt;0&amp;&amp;o.length&gt;1&amp;&amp;(o=o.filter(E=&gt;!l.includes(E))),r=r??a.activeElement;let u=(()=&gt;{if(t&amp;5)return 1;if(t&amp;10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=&gt;{if(t&amp;1)return 0;if(t&amp;2)return Math.max(0,o.indexOf(r))-1;if(t&amp;4)return Math.max(0,o.indexOf(r))+1;if(t&amp;8)return o.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=t&amp;32?{preventScroll:!0}:{},s=0,f=o.length,v;do{if(s&gt;=f||s+f&lt;=0)return 0;let E=c+s;if(t&amp;16)E=(E+f)%f;else{if(E&lt;0)return 3;if(E&gt;=f)return 1}v=o[E],v==null||v.focus(d),s+=u}while(v!==a.activeElement);return t&amp;6&amp;&amp;tt(v)&amp;&amp;v.select(),v.hasAttribute("tabindex")||v.setAttribute("tabindex","0"),2}function te(e,t,n){let r=se(t);i.useEffect(()=&gt;{function l(a){r.current(a)}return document.addEventListener(e,l,n),()=&gt;document.removeEventListener(e,l,n)},[e,n])}function rt(e,t,n=!0){let r=i.useRef(!1);i.useEffect(()=&gt;{requestAnimationFrame(()=&gt;{r.current=n})},[n]);function l(o,u){if(!r.current||o.defaultPrevented)return;let c=function s(f){return typeof f=="function"?s(f()):Array.isArray(f)||f instanceof Set?f:[f]}(e),d=u(o);if(d!==null&amp;&amp;d.getRootNode().contains(d)){for(let s of c){if(s===null)continue;let f=s instanceof HTMLElement?s:s.current;if(f!=null&amp;&amp;f.contains(d)||o.composed&amp;&amp;o.composedPath().includes(f))return}return!Te(d,Pe.Loose)&amp;&amp;d.tabIndex!==-1&amp;&amp;o.preventDefault(),t(o,d)}}let a=i.useRef(null);te("mousedown",o=&gt;{var u,c;r.current&amp;&amp;(a.current=((c=(u=o.composedPath)==null?void 0:u.call(o))==null?void 0:c[0])||o.target)},!0),te("click",o=&gt;{a.current&amp;&amp;(l(o,()=&gt;a.current),a.current=null)},!0),te("blur",o=&gt;l(o,()=&gt;window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function ot(e){let t=e.parentElement,n=null;for(;t&amp;&amp;!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&amp;&amp;(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&amp;&amp;lt(n)?!1:r}function lt(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let at="div";var J=(e=&gt;(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(J||{});function ut(e,t){let{features:n=1,...r}=e,l={ref:t,"aria-hidden":(n&amp;2)===2?!0: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",...(n&amp;4)===4&amp;&amp;(n&amp;2)!==2&amp;&amp;{display:"none"}}};return S({ourProps:l,theirProps:r,slot:{},defaultTag:at,name:"Hidden"})}let ae=y(ut);var De=(e=&gt;(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(De||{});function fe(e,t){let n=i.useRef([]),r=$(e);i.useEffect(()=&gt;{let l=[...n.current];for(let[a,o]of t.entries())if(n.current[a]!==o){let u=r(t,l);return n.current=t,u}},[r,...t])}function it(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&amp;&amp;window.navigator.maxTouchPoints&gt;0}function ct(e,t,n){let r=se(t);i.useEffect(()=&gt;{function l(a){r.current(a)}return window.addEventListener(e,l,n),()=&gt;window.removeEventListener(e,l,n)},[e,n])}var B=(e=&gt;(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(B||{});function st(){let e=i.useRef(0);return ct("keydown",t=&gt;{t.key==="Tab"&amp;&amp;(e.current=t.shiftKey?1:0)},!0),e}function Z(...e){return i.useMemo(()=&gt;de(...e),[...e])}function Re(e,t,n,r){let l=se(n);i.useEffect(()=&gt;{e=e??window;function a(o){l.current(o)}return e.addEventListener(t,a,r),()=&gt;e.removeEventListener(t,a,r)},[e,t,r])}function Fe(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&amp;&amp;t.add(n.current);return t}let dt="div";var xe=(e=&gt;(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(xe||{});function ft(e,t){let n=i.useRef(null),r=P(n,t),{initialFocus:l,containers:a,features:o=30,...u}=e;z()||(o=1);let c=Z(n);vt({ownerDocument:c},!!(o&amp;16));let d=ht({ownerDocument:c,container:n,initialFocus:l},!!(o&amp;2));gt({ownerDocument:c,container:n,containers:a,previousActiveElement:d},!!(o&amp;8));let s=st(),f=$(h=&gt;{let L=n.current;L&amp;&amp;(D=&gt;D())(()=&gt;{C(s.current,{[B.Forwards]:()=&gt;{j(L,x.First,{skipElements:[h.relatedTarget]})},[B.Backwards]:()=&gt;{j(L,x.Last,{skipElements:[h.relatedTarget]})}})})}),v=Ke(),E=i.useRef(!1),T={ref:r,onKeyDown(h){h.key=="Tab"&amp;&amp;(E.current=!0,v.requestAnimationFrame(()=&gt;{E.current=!1}))},onBlur(h){let L=Fe(a);n.current instanceof HTMLElement&amp;&amp;L.add(n.current);let D=h.relatedTarget;D instanceof HTMLElement&amp;&amp;D.dataset.headlessuiFocusGuard!=="true"&amp;&amp;(Ae(L,D)||(E.current?j(n.current,C(s.current,{[B.Forwards]:()=&gt;x.Next,[B.Backwards]:()=&gt;x.Previous})|x.WrapAround,{relativeTo:h.target}):h.target instanceof HTMLElement&amp;&amp;F(h.target)))}};return p.createElement(p.Fragment,null,!!(o&amp;4)&amp;&amp;p.createElement(ae,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:J.Focusable}),S({ourProps:T,theirProps:u,defaultTag:dt,name:"FocusTrap"}),!!(o&amp;4)&amp;&amp;p.createElement(ae,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:J.Focusable}))}let pt=y(ft),I=Object.assign(pt,{features:xe}),R=[];if(typeof window&lt;"u"&amp;&amp;typeof document&lt;"u"){let e=function(t){t.target instanceof HTMLElement&amp;&amp;t.target!==document.body&amp;&amp;R[0]!==t.target&amp;&amp;(R.unshift(t.target),R=R.filter(n=&gt;n!=null&amp;&amp;n.isConnected),R.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})}function mt(e=!0){let t=i.useRef(R.slice());return fe(([n],[r])=&gt;{r===!0&amp;&amp;n===!1&amp;&amp;Q(()=&gt;{t.current.splice(0)}),r===!1&amp;&amp;n===!0&amp;&amp;(t.current=R.slice())},[e,R,t]),$(()=&gt;{var n;return(n=t.current.find(r=&gt;r!=null&amp;&amp;r.isConnected))!=null?n:null})}function vt({ownerDocument:e},t){let n=mt(t);fe(()=&gt;{t||(e==null?void 0:e.activeElement)===(e==null?void 0:e.body)&amp;&amp;F(n())},[t]);let r=i.useRef(!1);i.useEffect(()=&gt;(r.current=!1,()=&gt;{r.current=!0,Q(()=&gt;{r.current&amp;&amp;F(n())})}),[])}function ht({ownerDocument:e,container:t,initialFocus:n},r){let l=i.useRef(null),a=ye();return fe(()=&gt;{if(!r)return;let o=t.current;o&amp;&amp;Q(()=&gt;{if(!a.current)return;let u=e==null?void 0:e.activeElement;if(n!=null&amp;&amp;n.current){if((n==null?void 0:n.current)===u){l.current=u;return}}else if(o.contains(u)){l.current=u;return}n!=null&amp;&amp;n.current?F(n.current):j(o,x.First)===Se.Error&amp;&amp;console.warn("There are no focusable elements inside the &lt;FocusTrap /&gt;"),l.current=e==null?void 0:e.activeElement})},[r]),l}function gt({ownerDocument:e,container:t,containers:n,previousActiveElement:r},l){let a=ye();Re(e==null?void 0:e.defaultView,"focus",o=&gt;{if(!l||!a.current)return;let u=Fe(n);t.current instanceof HTMLElement&amp;&amp;u.add(t.current);let c=r.current;if(!c)return;let d=o.target;d&amp;&amp;d instanceof HTMLElement?Ae(u,d)?(r.current=d,F(d)):(o.preventDefault(),o.stopPropagation(),F(c)):F(r.current)},!0)}function Ae(e,t){for(let n of e)if(n.contains(t))return!0;return!1}let Me=i.createContext(!1);function Et(){return i.useContext(Me)}function ue(e){return p.createElement(Me.Provider,{value:e.force},e.children)}function wt(e){let t=Et(),n=i.useContext(ke),r=Z(e),[l,a]=i.useState(()=&gt;{if(!t&amp;&amp;n!==null||_.isServer)return null;let o=r==null?void 0:r.getElementById("headlessui-portal-root");if(o)return o;if(r===null)return null;let u=r.createElement("div");return u.setAttribute("id","headlessui-portal-root"),r.body.appendChild(u)});return i.useEffect(()=&gt;{l!==null&amp;&amp;(r!=null&amp;&amp;r.body.contains(l)||r==null||r.body.appendChild(l))},[l,r]),i.useEffect(()=&gt;{t||n!==null&amp;&amp;a(n.current)},[n,a,t]),l}let bt=i.Fragment;function $t(e,t){let n=e,r=i.useRef(null),l=P(ze(s=&gt;{r.current=s}),t),a=Z(r),o=wt(r),[u]=i.useState(()=&gt;{var s;return _.isServer?null:(s=a==null?void 0:a.createElement("div"))!=null?s:null}),c=z(),d=i.useRef(!1);return O(()=&gt;{if(d.current=!1,!(!o||!u))return o.contains(u)||(u.setAttribute("data-headlessui-portal",""),o.appendChild(u)),()=&gt;{d.current=!0,Q(()=&gt;{var s;d.current&amp;&amp;(!o||!u||(u instanceof Node&amp;&amp;o.contains(u)&amp;&amp;o.removeChild(u),o.childNodes.length&lt;=0&amp;&amp;((s=o.parentElement)==null||s.removeChild(o))))})}},[o,u]),c?!o||!u?null:Je.createPortal(S({ourProps:{ref:l},theirProps:n,defaultTag:bt,name:"Portal"}),u):null}let yt=i.Fragment,ke=i.createContext(null);function St(e,t){let{target:n,...r}=e,l={ref:P(t)};return p.createElement(ke.Provider,{value:n},S({ourProps:l,theirProps:r,defaultTag:yt,name:"Popover.Group"}))}let Lt=y($t),Pt=y(St),ie=Object.assign(Lt,{Group:Pt}),Ce=i.createContext(null);function Oe(){let e=i.useContext(Ce);if(e===null){let t=new Error("You used a &lt;Description /&gt; component, but it is not inside a relevant parent.");throw Error.captureStackTrace&amp;&amp;Error.captureStackTrace(t,Oe),t}return e}function Tt(){let[e,t]=i.useState([]);return[e.length&gt;0?e.join(" "):void 0,i.useMemo(()=&gt;function(n){let r=$(a=&gt;(t(o=&gt;[...o,a]),()=&gt;t(o=&gt;{let u=o.slice(),c=u.indexOf(a);return c!==-1&amp;&amp;u.splice(c,1),u}))),l=i.useMemo(()=&gt;({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return p.createElement(Ce.Provider,{value:l},n.children)},[t])]}let Dt="p";function Rt(e,t){let n=N(),{id:r=`headlessui-description-${n}`,...l}=e,a=Oe(),o=P(t);O(()=&gt;a.register(r),[r,a.register]);let u={ref:o,...a.props,id:r};return S({ourProps:u,theirProps:l,slot:a.slot||{},defaultTag:Dt,name:a.name||"Description"})}let Ft=y(Rt),xt=Object.assign(Ft,{}),pe=i.createContext(()=&gt;{});pe.displayName="StackContext";var ce=(e=&gt;(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(ce||{});function At(){return i.useContext(pe)}function Mt({children:e,onUpdate:t,type:n,element:r,enabled:l}){let a=At(),o=$((...u)=&gt;{t==null||t(...u),a(...u)});return O(()=&gt;{let u=l===void 0||l===!0;return u&amp;&amp;o(0,n,r),()=&gt;{u&amp;&amp;o(1,n,r)}},[o,n,r,l]),p.createElement(pe.Provider,{value:o},e)}function kt(e,t){return e===t&amp;&amp;(e!==0||1/e===1/t)||e!==e&amp;&amp;t!==t}const Ct=typeof Object.is=="function"?Object.is:kt,{useState:Ot,useEffect:Nt,useLayoutEffect:It,useDebugValue:Ht}=oe;function Bt(e,t,n){const r=t(),[{inst:l},a]=Ot({inst:{value:r,getSnapshot:t}});return It(()=&gt;{l.value=r,l.getSnapshot=t,ne(l)&amp;&amp;a({inst:l})},[e,r,t]),Nt(()=&gt;(ne(l)&amp;&amp;a({inst:l}),e(()=&gt;{ne(l)&amp;&amp;a({inst:l})})),[e]),Ht(r),r}function ne(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!Ct(n,r)}catch{return!0}}function jt(e,t,n){return t()}const _t=typeof window&lt;"u"&amp;&amp;typeof window.document&lt;"u"&amp;&amp;typeof window.document.createElement&lt;"u",Wt=!_t,Ut=Wt?jt:Bt,Yt="useSyncExternalStore"in oe?(e=&gt;e.useSyncExternalStore)(oe):Ut;function Gt(e){return Yt(e.subscribe,e.getSnapshot,e.getSnapshot)}function Vt(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(l){return r.add(l),()=&gt;r.delete(l)},dispatch(l,...a){let o=t[l].call(n,...a);o&amp;&amp;(n=o,r.forEach(u=&gt;u()))}}}function Xt(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,l=r.clientWidth-r.offsetWidth,a=e-l;n.style(r,"paddingRight",`${a}px`)}}}function qt(){if(!it())return{};let e;return{before(){e=window.pageYOffset},after({doc:t,d:n,meta:r}){function l(o){return r.containers.flatMap(u=&gt;u()).some(u=&gt;u.contains(o))}n.style(t.body,"marginTop",`-${e}px`),window.scrollTo(0,0);let a=null;n.addEventListener(t,"click",o=&gt;{if(o.target instanceof HTMLElement)try{let u=o.target.closest("a");if(!u)return;let{hash:c}=new URL(u.href),d=t.querySelector(c);d&amp;&amp;!l(d)&amp;&amp;(a=d)}catch{}},!0),n.addEventListener(t,"touchmove",o=&gt;{o.target instanceof HTMLElement&amp;&amp;!l(o.target)&amp;&amp;o.preventDefault()},{passive:!1}),n.add(()=&gt;{window.scrollTo(0,window.pageYOffset+e),a&amp;&amp;a.isConnected&amp;&amp;(a.scrollIntoView({block:"nearest"}),a=null)})}}}function Jt(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function Kt(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let A=Vt(()=&gt;new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:$e(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&amp;&amp;(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:Kt(n)},l=[qt(),Xt(),Jt()];l.forEach(({before:a})=&gt;a==null?void 0:a(r)),l.forEach(({after:a})=&gt;a==null?void 0:a(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});A.subscribe(()=&gt;{let e=A.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",l=n.count!==0;(l&amp;&amp;!r||!l&amp;&amp;r)&amp;&amp;A.dispatch(n.count&gt;0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&amp;&amp;A.dispatch("TEARDOWN",n)}});function zt(e,t,n){let r=Gt(A),l=e?r.get(e):void 0,a=l?l.count&gt;0:!1;return O(()=&gt;{if(!(!e||!t))return A.dispatch("PUSH",e,n),()=&gt;A.dispatch("POP",e,n)},[t,e]),a}let re=new Map,H=new Map;function be(e,t=!0){O(()=&gt;{var n;if(!t)return;let r=typeof e=="function"?e():e.current;if(!r)return;function l(){var o;if(!r)return;let u=(o=H.get(r))!=null?o:1;if(u===1?H.delete(r):H.set(r,u-1),u!==1)return;let c=re.get(r);c&amp;&amp;(c["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",c["aria-hidden"]),r.inert=c.inert,re.delete(r))}let a=(n=H.get(r))!=null?n:0;return H.set(r,a+1),a!==0||(re.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),l},[e,t])}var Qt=(e=&gt;(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Qt||{}),Zt=(e=&gt;(e[e.SetTitleId=0]="SetTitleId",e))(Zt||{});let en={[0](e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},K=i.createContext(null);K.displayName="DialogContext";function W(e){let t=i.useContext(K);if(t===null){let n=new Error(`&lt;${e} /&gt; is missing a parent &lt;Dialog /&gt; component.`);throw Error.captureStackTrace&amp;&amp;Error.captureStackTrace(n,W),n}return t}function tn(e,t,n=()=&gt;[document.body]){zt(e,t,r=&gt;{var l;return{containers:[...(l=r.containers)!=null?l:[],n]}})}function nn(e,t){return C(t.type,en,e,t)}let rn="div",on=Ee.RenderStrategy|Ee.Static;function ln(e,t){let n=N(),{id:r=`headlessui-dialog-${n}`,open:l,onClose:a,initialFocus:o,__demoMode:u=!1,...c}=e,[d,s]=i.useState(0),f=Qe();l===void 0&amp;&amp;f!==null&amp;&amp;(l=(f&amp;V.Open)===V.Open);let v=i.useRef(null),E=P(v,t),T=i.useRef(null),h=Z(v),L=e.hasOwnProperty("open")||f!==null,D=e.hasOwnProperty("onClose");if(!L&amp;&amp;!D)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!L)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!D)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(typeof l!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${l}`);if(typeof a!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${a}`);let w=l?0:1,[M,Ne]=i.useReducer(nn,{titleId:null,descriptionId:null,panelRef:i.createRef()}),k=$(()=&gt;a(!1)),me=$(m=&gt;Ne({type:0,id:m})),U=z()?u?!1:w===0:!1,Y=d&gt;1,ve=i.useContext(K)!==null,Ie=Y?"parent":"leaf",he=f!==null?(f&amp;V.Closing)===V.Closing:!1,He=(()=&gt;ve||he?!1:U)(),Be=i.useCallback(()=&gt;{var m,b;return(b=Array.from((m=h==null?void 0:h.querySelectorAll("body &gt; *"))!=null?m:[]).find(g=&gt;g.id==="headlessui-portal-root"?!1:g.contains(T.current)&amp;&amp;g instanceof HTMLElement))!=null?b:null},[T]);be(Be,He);let je=(()=&gt;Y?!0:U)(),_e=i.useCallback(()=&gt;{var m,b;return(b=Array.from((m=h==null?void 0:h.querySelectorAll("[data-headlessui-portal]"))!=null?m:[]).find(g=&gt;g.contains(T.current)&amp;&amp;g instanceof HTMLElement))!=null?b:null},[T]);be(_e,je);let ee=$(()=&gt;{var m,b;return[...Array.from((m=h==null?void 0:h.querySelectorAll("html &gt; *, body &gt; *, [data-headlessui-portal]"))!=null?m:[]).filter(g=&gt;!(g===document.body||g===document.head||!(g instanceof HTMLElement)||g.contains(T.current)||M.panelRef.current&amp;&amp;g.contains(M.panelRef.current))),(b=M.panelRef.current)!=null?b:v.current]}),We=(()=&gt;!(!U||Y))();rt(()=&gt;ee(),k,We);let Ue=(()=&gt;!(Y||w!==0))();Re(h==null?void 0:h.defaultView,"keydown",m=&gt;{Ue&amp;&amp;(m.defaultPrevented||m.key===De.Escape&amp;&amp;(m.preventDefault(),m.stopPropagation(),k()))});let Ye=(()=&gt;!(he||w!==0||ve))();tn(h,Ye,ee),i.useEffect(()=&gt;{if(w!==0||!v.current)return;let m=new ResizeObserver(b=&gt;{for(let g of b){let G=g.target.getBoundingClientRect();G.x===0&amp;&amp;G.y===0&amp;&amp;G.width===0&amp;&amp;G.height===0&amp;&amp;k()}});return m.observe(v.current),()=&gt;m.disconnect()},[w,v,k]);let[Ge,Ve]=Tt(),Xe=i.useMemo(()=&gt;[{dialogState:w,close:k,setTitleId:me},M],[w,M,k,me]),ge=i.useMemo(()=&gt;({open:w===0}),[w]),qe={ref:E,id:r,role:"dialog","aria-modal":w===0?!0:void 0,"aria-labelledby":M.titleId,"aria-describedby":Ge};return p.createElement(Mt,{type:"Dialog",enabled:w===0,element:v,onUpdate:$((m,b)=&gt;{b==="Dialog"&amp;&amp;C(m,{[ce.Add]:()=&gt;s(g=&gt;g+1),[ce.Remove]:()=&gt;s(g=&gt;g-1)})})},p.createElement(ue,{force:!0},p.createElement(ie,null,p.createElement(K.Provider,{value:Xe},p.createElement(ie.Group,{target:v},p.createElement(ue,{force:!1},p.createElement(Ve,{slot:ge,name:"Dialog.Description"},p.createElement(I,{initialFocus:o,containers:ee,features:U?C(Ie,{parent:I.features.RestoreFocus,leaf:I.features.All&amp;~I.features.FocusLock}):I.features.None},S({ourProps:qe,theirProps:c,slot:ge,defaultTag:rn,features:on,visible:w===0,name:"Dialog"})))))))),p.createElement(ae,{features:J.Hidden,ref:T}))}let an="div";function un(e,t){let n=N(),{id:r=`headlessui-dialog-overlay-${n}`,...l}=e,[{dialogState:a,close:o}]=W("Dialog.Overlay"),u=P(t),c=$(s=&gt;{if(s.target===s.currentTarget){if(ot(s.currentTarget))return s.preventDefault();s.preventDefault(),s.stopPropagation(),o()}}),d=i.useMemo(()=&gt;({open:a===0}),[a]);return S({ourProps:{ref:u,id:r,"aria-hidden":!0,onClick:c},theirProps:l,slot:d,defaultTag:an,name:"Dialog.Overlay"})}let cn="div";function sn(e,t){let n=N(),{id:r=`headlessui-dialog-backdrop-${n}`,...l}=e,[{dialogState:a},o]=W("Dialog.Backdrop"),u=P(t);i.useEffect(()=&gt;{if(o.panelRef.current===null)throw new Error("A &lt;Dialog.Backdrop /&gt; component is being used, but a &lt;Dialog.Panel /&gt; component is missing.")},[o.panelRef]);let c=i.useMemo(()=&gt;({open:a===0}),[a]);return p.createElement(ue,{force:!0},p.createElement(ie,null,S({ourProps:{ref:u,id:r,"aria-hidden":!0},theirProps:l,slot:c,defaultTag:cn,name:"Dialog.Backdrop"})))}let dn="div";function fn(e,t){let n=N(),{id:r=`headlessui-dialog-panel-${n}`,...l}=e,[{dialogState:a},o]=W("Dialog.Panel"),u=P(t,o.panelRef),c=i.useMemo(()=&gt;({open:a===0}),[a]),d=$(s=&gt;{s.stopPropagation()});return S({ourProps:{ref:u,id:r,onClick:d},theirProps:l,slot:c,defaultTag:dn,name:"Dialog.Panel"})}let pn="h2";function mn(e,t){let n=N(),{id:r=`headlessui-dialog-title-${n}`,...l}=e,[{dialogState:a,setTitleId:o}]=W("Dialog.Title"),u=P(t);i.useEffect(()=&gt;(o(r),()=&gt;o(null)),[r,o]);let c=i.useMemo(()=&gt;({open:a===0}),[a]);return S({ourProps:{ref:u,id:r},theirProps:l,slot:c,defaultTag:pn,name:"Dialog.Title"})}let vn=y(ln),hn=y(sn),gn=y(fn),En=y(un),wn=y(mn),xn=Object.assign(vn,{Backdrop:hn,Panel:gn,Overlay:En,Title:wn,Description:xt});const X=i;function bn({title:e,titleId:t,...n},r){return X.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?X.createElement("title",{id:t},e):null,X.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))}const $n=X.forwardRef(bn);var yn=$n;const q=i;function Sn({title:e,titleId:t,...n},r){return q.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?q.createElement("title",{id:t},e):null,q.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))}const Ln=q.forwardRef(Sn);var Pn=Ln,An=yn,Mn=Pn;export{nt as A,An as B,Pe as F,N as I,rt as L,xn as S,Mn as X,x as a,de as e,Rn as g,Te as h,Z as n,De as o,ot as r,Fn as v};
</pre></body></html>