"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7779],{42084:function(e,t,n){n.r(t),n.d(t,{Button:function(){return c}});var r=n(96117),o=n(83892),u=n(2265),l=n(54079),i=n(83040),a=n(3600);let c=(0,a.yV)(function(e,t){var n;let c=(0,i.B)(),s=(0,a.Y2)(),{disabled:d=c||!1,autoFocus:f=!1,...p}=e,{isFocusVisible:v,focusProps:m}=(0,r.F)({autoFocus:f}),{isHovered:h,hoverProps:b}=(0,o.X)({isDisabled:d}),{pressed:g,pressProps:E}=(0,l.x)({disabled:d}),y=(0,a.dG)({ref:t,type:null!=(n=p.type)?n:"button",disabled:d||void 0,autoFocus:f},m,b,E),k=(0,u.useMemo)(()=>({disabled:d,hover:h,focus:v,active:g,autofocus:f}),[d,h,v,g,f]);return(0,a.sY)({mergeRefs:s,ourProps:y,theirProps:p,slot:k,defaultTag:"button",name:"Button"})})},76636:function(e,t,n){n.r(t),n.d(t,{Checkbox:function(){return y}});var r=n(96117),o=n(83892),u=n(2265),l=n(54079),i=n(93169),a=n(95839),c=n(99299),s=n(6584),d=n(83040),f=n(76935),p=n(21495),v=n(47986),m=n(69331),h=n(3600),b=n(83184),g=n(7551),E=n(43003);let y=(0,h.yV)(function(e,t){let n=(0,u.useId)(),y=(0,p.Q)(),k=(0,d.B)(),{id:P=y||"headlessui-checkbox-".concat(n),disabled:x=k||!1,autoFocus:T=!1,checked:C,defaultChecked:F,onChange:w,name:S,value:D,form:L,indeterminate:M=!1,...A}=e,H=(0,a.L)(F),[B,I]=(0,i.q)(C,w,null!=H&&H),R=(0,E.wp)(),z=(0,b.z)(),N=(0,c.G)(),[O,Y]=(0,u.useState)(!1),V=(0,s.z)(()=>{Y(!0),null==I||I(!B),N.nextFrame(()=>{Y(!1)})}),U=(0,s.z)(e=>{if((0,v.P)(e.currentTarget))return e.preventDefault();e.preventDefault(),V()}),_=(0,s.z)(e=>{e.key===g.R.Space?(e.preventDefault(),V()):e.key===g.R.Enter&&(0,m.g)(e.currentTarget)}),j=(0,s.z)(e=>e.preventDefault()),{isFocusVisible:G,focusProps:Q}=(0,r.F)({autoFocus:T}),{isHovered:q,hoverProps:X}=(0,o.X)({isDisabled:x}),{pressed:K,pressProps:W}=(0,l.x)({disabled:x}),J=(0,h.dG)({ref:t,id:P,role:"checkbox","aria-checked":M?"mixed":B?"true":"false","aria-labelledby":R,"aria-describedby":z,"aria-disabled":!!x||void 0,indeterminate:M?"true":void 0,tabIndex:x?void 0:0,onKeyUp:x?void 0:_,onKeyPress:x?void 0:j,onClick:x?void 0:U},Q,X,W),Z=(0,u.useMemo)(()=>({checked:B,disabled:x,hover:q,focus:G,active:K,indeterminate:M,changing:O,autofocus:T}),[B,M,x,q,G,K,O,T]),$=(0,u.useCallback)(()=>{if(void 0!==H)return null==I?void 0:I(H)},[I,H]);return u.createElement(u.Fragment,null,null!=S&&u.createElement(f.Mt,{disabled:x,data:{[S]:D||"on"},overrides:{type:"checkbox",checked:B},form:L,onReset:$}),(0,h.sY)({ourProps:J,theirProps:A,slot:Z,defaultTag:"span",name:"Checkbox"}))})},83184:function(e,t,n){n.d(t,{Description:function(){return f},f:function(){return d},z:function(){return s}});var r=n(2265),o=n(6584),u=n(61463),l=n(41469),i=n(83040),a=n(3600);let c=(0,r.createContext)(null);function s(){var e,t;return null!=(t=null==(e=(0,r.useContext)(c))?void 0:e.value)?t:void 0}function d(){let[e,t]=(0,r.useState)([]);return[e.length>0?e.join(" "):void 0,(0,r.useMemo)(()=>function(e){let n=(0,o.z)(e=>(t(t=>[...t,e]),()=>t(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),u=(0,r.useMemo)(()=>({register:n,slot:e.slot,name:e.name,props:e.props,value:e.value}),[n,e.slot,e.name,e.props,e.value]);return r.createElement(c.Provider,{value:u},e.children)},[t])]}c.displayName="DescriptionContext";let f=Object.assign((0,a.yV)(function(e,t){let n=(0,r.useId)(),o=(0,i.B)(),{id:s="headlessui-description-".concat(n),...d}=e,f=function e(){let t=(0,r.useContext)(c);if(null===t){let t=Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),p=(0,l.T)(t);(0,u.e)(()=>f.register(s),[s,f.register]);let v=o||!1,m=(0,r.useMemo)(()=>({...f.slot,disabled:v}),[f.slot,v]),h={ref:p,...f.props,id:s};return(0,a.sY)({ourProps:h,theirProps:d,slot:m,defaultTag:"p",name:f.name||"Description"})}),{})},84576:function(e,t,n){n.r(t),n.d(t,{Field:function(){return s}});var r=n(2265),o=n(83040),u=n(76935),l=n(21495),i=n(3600),a=n(83184),c=n(43003);let s=(0,i.yV)(function(e,t){let n="headlessui-control-".concat((0,r.useId)()),[s,d]=(0,c.bE)(),[f,p]=(0,a.f)(),v=(0,o.B)(),{disabled:m=v||!1,...h}=e,b=(0,r.useMemo)(()=>({disabled:m}),[m]);return r.createElement(o.G,{value:m},r.createElement(d,{value:s},r.createElement(p,{value:f},r.createElement(l.v,{id:n},(0,i.sY)({ourProps:{ref:t,disabled:m||void 0,"aria-disabled":m||void 0},theirProps:{...h,children:r.createElement(u.wR,null,"function"==typeof h.children?h.children(b):h.children)},slot:b,defaultTag:"div",name:"Field"})))))})},11528:function(e,t,n){n.r(t),n.d(t,{Input:function(){return d}});var r=n(96117),o=n(83892),u=n(2265),l=n(83040),i=n(21495),a=n(3600),c=n(83184),s=n(43003);let d=(0,a.yV)(function(e,t){let n=(0,u.useId)(),d=(0,i.Q)(),f=(0,l.B)(),{id:p=d||"headlessui-input-".concat(n),disabled:v=f||!1,autoFocus:m=!1,invalid:h=!1,...b}=e,g=(0,s.wp)(),E=(0,c.z)(),{isFocused:y,focusProps:k}=(0,r.F)({autoFocus:m}),{isHovered:P,hoverProps:x}=(0,o.X)({isDisabled:v}),T=(0,a.dG)({ref:t,id:p,"aria-labelledby":g,"aria-describedby":E,"aria-invalid":h?"":void 0,disabled:v||void 0,autoFocus:m},k,x),C=(0,u.useMemo)(()=>({disabled:v,invalid:h,hover:P,focus:y,autofocus:m}),[v,h,P,y,m]);return(0,a.sY)({ourProps:T,theirProps:b,slot:C,defaultTag:"input",name:"Input"})})},7551:function(e,t,n){let r;n.d(t,{R:function(){return o}});var o=((r=o||{}).Space=" ",r.Enter="Enter",r.Escape="Escape",r.Backspace="Backspace",r.Delete="Delete",r.ArrowLeft="ArrowLeft",r.ArrowUp="ArrowUp",r.ArrowRight="ArrowRight",r.ArrowDown="ArrowDown",r.Home="Home",r.End="End",r.PageUp="PageUp",r.PageDown="PageDown",r.Tab="Tab",r)},43003:function(e,t,n){n.d(t,{Label:function(){return v},bE:function(){return p},t0:function(){return d},wp:function(){return f}});var r=n(2265),o=n(6584),u=n(61463),l=n(41469),i=n(83040),a=n(21495),c=n(3600);let s=(0,r.createContext)(null);function d(){let e=(0,r.useContext)(s);if(null===e){let e=Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,d),e}return e}function f(e){var t,n,o;let u=null!=(n=null==(t=(0,r.useContext)(s))?void 0:t.value)?n:void 0;return(null!=(o=null==e?void 0:e.length)?o:0)>0?[u,...e].filter(Boolean).join(" "):u}function p(){let{inherit:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=f(),[n,u]=(0,r.useState)([]),l=e?[t,...n].filter(Boolean):n;return[l.length>0?l.join(" "):void 0,(0,r.useMemo)(()=>function(e){let t=(0,o.z)(e=>(u(t=>[...t,e]),()=>u(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),n=(0,r.useMemo)(()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value}),[t,e.slot,e.name,e.props,e.value]);return r.createElement(s.Provider,{value:n},e.children)},[u])]}s.displayName="LabelContext";let v=Object.assign((0,c.yV)(function(e,t){var n;let s=(0,r.useId)(),f=d(),p=(0,a.Q)(),v=(0,i.B)(),{id:m="headlessui-label-".concat(s),htmlFor:h=null!=p?p:null==(n=f.props)?void 0:n.htmlFor,passive:b=!1,...g}=e,E=(0,l.T)(t);(0,u.e)(()=>f.register(m),[m,f.register]);let y=(0,o.z)(e=>{let t=e.currentTarget;if(t instanceof HTMLLabelElement&&e.preventDefault(),f.props&&"onClick"in f.props&&"function"==typeof f.props.onClick&&f.props.onClick(e),t instanceof HTMLLabelElement){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let n=e.getAttribute("aria-disabled");if("true"===n||""===n)return;(e instanceof HTMLInputElement&&("radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}}),k=v||!1,P=(0,r.useMemo)(()=>({...f.slot,disabled:k}),[f.slot,k]),x={ref:E,...f.props,id:m,htmlFor:h,onClick:y};return b&&("onClick"in x&&(delete x.htmlFor,delete x.onClick),"onClick"in g&&delete g.onClick),(0,c.sY)({ourProps:x,theirProps:g,slot:P,defaultTag:h?"label":"div",name:f.name||"Label"})}),{})},93169:function(e,t,n){n.d(t,{q:function(){return u}});var r=n(2265),o=n(6584);function u(e,t,n){let[u,l]=(0,r.useState)(n),i=void 0!==e,a=(0,r.useRef)(i),c=(0,r.useRef)(!1),s=(0,r.useRef)(!1);return!i||a.current||c.current?i||!a.current||s.current||(s.current=!0,a.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(c.current=!0,a.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[i?e:u,(0,o.z)(e=>(i||l(e),null==t?void 0:t(e)))]}},95839:function(e,t,n){n.d(t,{L:function(){return o}});var r=n(2265);function o(e){let[t]=(0,r.useState)(e);return t}},41469:function(e,t,n){n.d(t,{T:function(){return i},h:function(){return l}});var r=n(2265),o=n(6584);let u=Symbol();function l(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return Object.assign(e,{[u]:t})}function i(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let l=(0,r.useRef)(t);(0,r.useEffect)(()=>{l.current=t},[t]);let i=(0,o.z)(e=>{for(let t of l.current)null!=t&&("function"==typeof t?t(e):t.current=e)});return t.every(e=>null==e||(null==e?void 0:e[u]))?void 0:i}},83040:function(e,t,n){n.d(t,{B:function(){return u},G:function(){return l}});var r=n(2265);let o=(0,r.createContext)(void 0);function u(){return(0,r.useContext)(o)}function l(e){let{value:t,children:n}=e;return r.createElement(o.Provider,{value:t},n)}},76935:function(e,t,n){n.d(t,{Mt:function(){return f},wR:function(){return s}});var r=n(2265),o=n(54887),u=n(99299),l=n(69331),i=n(3600),a=n(89080);let c=(0,r.createContext)(null);function s(e){let[t,n]=(0,r.useState)(null);return r.createElement(c.Provider,{value:{target:t}},e.children,r.createElement(a._,{features:a.x.Hidden,ref:n}))}function d(e){let{children:t}=e,n=(0,r.useContext)(c);if(!n)return r.createElement(r.Fragment,null,t);let{target:u}=n;return u?(0,o.createPortal)(r.createElement(r.Fragment,null,t),u):null}function f(e){let{data:t,form:n,disabled:o,onReset:c,overrides:s}=e,[f,v]=(0,r.useState)(null),m=(0,u.G)();return(0,r.useEffect)(()=>{if(c&&f)return m.addEventListener(f,"reset",c)},[f,n,c]),r.createElement(d,null,r.createElement(p,{setForm:v,formId:n}),(0,l.t)(t).map(e=>{let[t,u]=e;return r.createElement(a._,{features:a.x.Hidden,...(0,i.oA)({key:t,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:n,disabled:o,name:t,value:u,...s})})}))}function p(e){let{setForm:t,formId:n}=e;return(0,r.useEffect)(()=>{if(n){let e=document.getElementById(n);e&&t(e)}},[t,n]),n?null:r.createElement(a._,{features:a.x.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:e=>{if(!e)return;let n=e.closest("form");n&&t(n)}})}},89080:function(e,t,n){let r;n.d(t,{_:function(){return l},x:function(){return u}});var o=n(3600),u=((r=u||{})[r.None=1]="None",r[r.Focusable=2]="Focusable",r[r.Hidden=4]="Hidden",r);let l=(0,o.yV)(function(e,t){var n;let{features:r=1,...u}=e,l={ref:t,"aria-hidden":(2&r)==2||(null!=(n=u["aria-hidden"])?n:void 0),hidden:(4&r)==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&r)==4&&(2&r)!=2&&{display:"none"}}};return(0,o.sY)({ourProps:l,theirProps:u,slot:{},defaultTag:"span",name:"Hidden"})})},21495:function(e,t,n){n.d(t,{Q:function(){return u},v:function(){return l}});var r=n(2265);let o=(0,r.createContext)(void 0);function u(){return(0,r.useContext)(o)}function l(e){let{id:t,children:n}=e;return r.createElement(o.Provider,{value:t},n)}},47986:function(e,t,n){function r(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(null==t?void 0:t.getAttribute("disabled"))==="";return!(r&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}n.d(t,{P:function(){return r}})},69331:function(e,t,n){function r(e,t){return e?e+"["+t+"]":t}function o(e){var t,n;let r=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(r){for(let t of r.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type)){t.click();return}null==(n=r.requestSubmit)||n.call(r)}}n.d(t,{g:function(){return o},t:function(){return function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];for(let[u,l]of Object.entries(t))!function t(n,o,u){if(Array.isArray(u))for(let[e,l]of u.entries())t(n,r(o,e.toString()),l);else u instanceof Date?n.push([o,u.toISOString()]):"boolean"==typeof u?n.push([o,u?"1":"0"]):"string"==typeof u?n.push([o,u]):"number"==typeof u?n.push([o,"".concat(u)]):null==u?n.push([o,""]):e(u,o,n)}(o,r(n,u),l);return o}}})}}]);