1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1690],{66252:function(e,t,n){n.d(t,{x:function(){return a}});var o=n(13917),r=n(67294),i=n(85317);function a(e){var t=(0,r.useContext)((0,i.K)()),n=e||t.client;return __DEV__?(0,o.kG)(!!n,'Could not find "client" in the context or passed in as an option. Wrap the root component in an <ApolloProvider>, or pass an ApolloClient instance in via options.'):(0,o.kG)(!!n,32),n}},50319:function(e,t,n){n.d(t,{D:function(){return c}});var o=n(97582),r=n(67294),i=n(14012),a=n(30020),l=n(14692),u=n(30990),s=n(66252);function c(e,t){var n=(0,s.x)(null===t||void 0===t?void 0:t.client);(0,l.Vp)(e,l.n_.Mutation);var c=(0,r.useState)({called:!1,loading:!1,client:n}),d=c[0],p=c[1],f=(0,r.useRef)({result:d,mutationId:0,isMounted:!0,client:n,mutation:e,options:t});Object.assign(f.current,{client:n,options:t,mutation:e});var v=(0,r.useCallback)((function(e){void 0===e&&(e={});var t=f.current,n=t.options,r=t.mutation,l=(0,o.pi)((0,o.pi)({},n),{mutation:r}),s=e.client||f.current.client;f.current.result.loading||l.ignoreResults||!f.current.isMounted||p(f.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:s});var c=++f.current.mutationId,d=(0,i.J)(l,e);return s.mutate(d).then((function(t){var n,o=t.data,r=t.errors,i=r&&r.length>0?new u.cA({graphQLErrors:r}):void 0;if(c===f.current.mutationId&&!d.ignoreResults){var l={called:!0,loading:!1,data:o,error:i,client:s};f.current.isMounted&&!(0,a.D)(f.current.result,l)&&p(f.current.result=l)}var v=e.onCompleted||(null===(n=f.current.options)||void 0===n?void 0:n.onCompleted);return null===v||void 0===v||v(t.data,d),t})).catch((function(t){var n;if(c===f.current.mutationId&&f.current.isMounted){var o={loading:!1,error:t,data:void 0,called:!0,client:s};(0,a.D)(f.current.result,o)||p(f.current.result=o)}var r=e.onError||(null===(n=f.current.options)||void 0===n?void 0:n.onError);if(r)return r(t,d),{data:void 0,errors:t};throw t}))}),[]),b=(0,r.useCallback)((function(){f.current.isMounted&&p({called:!1,loading:!1,client:n})}),[]);return(0,r.useEffect)((function(){return f.current.isMounted=!0,function(){f.current.isMounted=!1}}),[]),[v,(0,o.pi)({reset:b},d)]}},14692:function(e,t,n){n.d(t,{n_:function(){return o},Vp:function(){return l}});var o,r=n(13917);!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(o||(o={}));var i=new Map;function a(e){var t;switch(e){case o.Query:t="Query";break;case o.Mutation:t="Mutation";break;case o.Subscription:t="Subscription"}return t}function l(e,t){var n=function(e){var t,n,a=i.get(e);if(a)return a;__DEV__?(0,r.kG)(!!e&&!!e.kind,"Argument of ".concat(e," passed to parser was not a valid GraphQL ")+"DocumentNode. You may need to use 'graphql-tag' or another method to convert your operation into a document"):(0,r.kG)(!!e&&!!e.kind,33);for(var l=[],u=[],s=[],c=[],d=0,p=e.definitions;d<p.length;d++){var f=p[d];if("FragmentDefinition"!==f.kind){if("OperationDefinition"===f.kind)switch(f.operation){case"query":u.push(f);break;case"mutation":s.push(f);break;case"subscription":c.push(f)}}else l.push(f)}__DEV__?(0,r.kG)(!l.length||u.length||s.length||c.length,"Passing only a fragment to 'graphql' is not yet supported. You must include a query, subscription or mutation as well"):(0,r.kG)(!l.length||u.length||s.length||c.length,34),__DEV__?(0,r.kG)(u.length+s.length+c.length<=1,"react-apollo only supports a query, subscription, or a mutation per HOC. "+"".concat(e," had ").concat(u.length," queries, ").concat(c.length," ")+"subscriptions and ".concat(s.length," mutations. ")+"You can use 'compose' to join multiple operation types to a component"):(0,r.kG)(u.length+s.length+c.length<=1,35),n=u.length?o.Query:o.Mutation,u.length||s.length||(n=o.Subscription);var v=u.length?u:s.length?s:c;__DEV__?(0,r.kG)(1===v.length,"react-apollo only supports one definition per HOC. ".concat(e," had ")+"".concat(v.length," definitions. ")+"You can use 'compose' to join multiple operation types to a component"):(0,r.kG)(1===v.length,36);var b=v[0];t=b.variableDefinitions||[];var g={name:b.name&&"Name"===b.name.kind?b.name.value:"data",type:n,variables:t};return i.set(e,g),g}(e),l=a(t),u=a(n.type);__DEV__?(0,r.kG)(n.type===t,"Running a ".concat(l," requires a graphql ")+"".concat(l,", but a ").concat(u," was used instead.")):(0,r.kG)(n.type===t,37)}},64729:function(e,t,n){n.d(t,{R:function(){return B}});var o,r,i=n(67294),a=n(94192),l=n(19946),u=n(16723),s=n(71646),c=n(23784),d=n(12351),p=n(32984),f=n(9362),v=n(61363),b=n(11497),g=n(64103),h=n(84575),x=n(16567),m=n(14157),R=n(39650),y=n(46045),O=n(18689),S=n(15466),T=n(73781),k=n(31147),L=n(3855),I=n(40476),E=n(55918),M=((r=M||{})[r.Open=0]="Open",r[r.Closed=1]="Closed",r),D=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(D||{}),P=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(P||{}),w=((o=w||{})[o.OpenListbox=0]="OpenListbox",o[o.CloseListbox=1]="CloseListbox",o[o.GoToOption=2]="GoToOption",o[o.Search=3]="Search",o[o.ClearSearch=4]="ClearSearch",o[o.RegisterOption=5]="RegisterOption",o[o.UnregisterOption=6]="UnregisterOption",o[o.RegisterLabel=7]="RegisterLabel",o);function C(e,t=(e=>e)){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,o=(0,h.z2)(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),r=n?o.indexOf(n):null;return-1===r&&(r=null),{options:o,activeOptionIndex:r}}let _={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1},0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,o=e.options.findIndex((e=>n(e.dataRef.current.value)));return-1!==o&&(t=o),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||1===e.listboxState)return e;let o=C(e),r=(0,b.d)(t,{resolveItems:()=>o.options,resolveActiveIndex:()=>o.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...o,searchQuery:"",activeOptionIndex:r,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>
1{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=""!==e.searchQuery?0:1,o=e.searchQuery+t.value.toLowerCase(),r=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find((e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(o))})),i=r?e.options.indexOf(r):-1;return-1===i||i===e.activeOptionIndex?{...e,searchQuery:o}:{...e,searchQuery:o,activeOptionIndex:i,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},o=C(e,(e=>[...e,n]));return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(o.activeOptionIndex=o.options.indexOf(n)),{...e,...o}},6:(e,t)=>{let n=C(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},z=(0,i.createContext)(null);function A(e){let t=(0,i.useContext)(z);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,A),t}return t}z.displayName="ListboxActionsContext";let G=(0,i.createContext)(null);function N(e){let t=(0,i.useContext)(G);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,N),t}return t}function V(e,t){return(0,p.E)(t.type,_,e,t)}G.displayName="ListboxDataContext";let Q=i.Fragment;let F=d.AN.RenderStrategy|d.AN.Static;let q=(0,d.yV)((function(e,t){let{value:n,defaultValue:o,form:r,name:l,onChange:s,by:f=((e,t)=>e===t),disabled:v=!1,horizontal:g=!1,multiple:m=!1,...S}=e;const L=g?"horizontal":"vertical";let I=(0,c.T)(t),[E=(m?[]:void 0),M]=(0,k.q)(n,s,o),[D,P]=(0,i.useReducer)(V,{dataRef:(0,i.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),w=(0,i.useRef)({static:!1,hold:!1}),C=(0,i.useRef)(null),_=(0,i.useRef)(null),A=(0,i.useRef)(null),N=(0,T.z)("string"==typeof f?(e,t)=>{let n=f;return(null==e?void 0:e[n])===(null==t?void 0:t[n])}:f),F=(0,i.useCallback)((e=>(0,p.E)(q.mode,{1:()=>E.some((t=>N(t,e))),0:()=>N(E,e)})),[E]),q=(0,i.useMemo)((()=>({...D,value:E,disabled:v,mode:m?1:0,orientation:L,compare:N,isSelected:F,optionsPropsRef:w,labelRef:C,buttonRef:_,optionsRef:A})),[E,v,m,D]);(0,u.e)((()=>{D.dataRef.current=q}),[q]),(0,R.O)([q.buttonRef,q.optionsRef],((e,t)=>{var n;P({type:1}),(0,h.sP)(t,h.tJ.Loose)||(e.preventDefault(),null==(n=q.buttonRef.current)||n.focus())}),0===q.listboxState);let U=(0,i.useMemo)((()=>({open:0===q.listboxState,disabled:v,value:E})),[q,v,E]),Y=(0,T.z)((e=>{let t=q.options.find((t=>t.id===e));t&&J(t.dataRef.current.value)})),$=(0,T.z)((()=>{if(null!==q.activeOptionIndex){let{dataRef:e,id:t}=q.options[q.activeOptionIndex];J(e.current.value),P({type:2,focus:b.T.Specific,id:t})}})),j=(0,T.z)((()=>P({type:0}))),B=(0,T.z)((()=>P({type:1}))),H=(0,T.z)(((e,t,n)=>e===b.T.Specific?P({type:2,focus:b.T.Specific,id:t,trigger:n}):P({type:2,focus:e,trigger:n}))),K=(0,T.z)(((e,t)=>(P({type:5,id:e,dataRef:t}),()=>P({type:6,id:e})))),Z=(0,T.z)((e=>(P({type:7,id:e}),()=>P({type:7,id:null})))),J=(0,T.z)((e=>(0,p.E)(q.mode,{0:()=>null==M?void 0:M(e),1(){let t=q.value.slice(),n=t.findIndex((t=>N(t,e)));return-1===n?t.push(e):t.splice(n,1),null==M?void 0:M(t)}}))),W=(0,T.z)((e=>P({type:3,value:e}))),X=(0,T.z)((()=>P({type:4}))),ee=(0,i.useMemo)((()=>({onChange:J,registerOption:K,registerLabel:Z,goToOption:H,closeListbox:B,openListbox:j,selectActiveOption:$,selectOption:Y,search:W,clearSearch:X})),[]),te={ref:I},ne=(0,i.useRef)(null),oe=(0,a.G)();return(0,i.useEffect)((()=>{ne.current&&void 0!==o&&oe.addEventListener(ne.current,"reset",(()=>{J(o)}))}),[ne,J]),i.createElement(z.Provider,{value:ee},i.createElement(G.Provider,{value:q},i.createElement(x.up,{value:(0,p.E)(q.listboxState,{0:x.ZM.Open,1:x.ZM.Closed})},null!=l&&null!=E&&(0,O.t)({[l]:E}).map((([e,t],n)=>i.createElement(y._,{features:y.A.Hidden,ref:0===n?e=>{var t;ne.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...(0,d.oA)({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:r,name:e,value:t})}))),(0,d.sY)({ourProps:te,theirProps:S,slot:U,defaultTag:Q,name:"Listbox"}))))})),U=(0,d.yV)((function(e,t){var n;let o=(0,l.M)(),{id:r=`headlessui-listbox-button-${o}`,...u}=e,p=N("Listbox.Button"),f=A("Listbox.Button"),h=(0,c.T)(p.buttonRef,t),x=(0,a.G)(),R=(0,T.z)((e=>{switch(e.key){case v.R.Space:case v.R.Enter:case v.R.ArrowDown:e.preventDefault(),f.openListbox(),x.nextFrame((()=>{p.value||f.goToOption(b.T.First)}));break;case v.R.ArrowUp:e.preventDefault(),f.openListbox(),x.nextFrame((()=>{p.value||f.goToOption(b.T.Last)}))}})),y=(0,T.z)((e=>{if(e.key===v.R.Space)e.preventDefault()})),O=(0,T.z)((e=>{if((0,g.P)(e.currentTarget))return e.preventDefault();0===p.listboxState?(f.closeListbox(),x.nextFrame((()=>{var e;return null==(e=p.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
1))):(e.preventDefault(),f.openListbox())})),S=(0,s.v)((()=>{if(p.labelId)return[p.labelId,r].join(" ")}),[p.labelId,r]),k=(0,i.useMemo)((()=>({open:0===p.listboxState,disabled:p.disabled,value:p.value})),[p]),L={ref:h,id:r,type:(0,m.f)(e,p.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(n=p.optionsRef.current)?void 0:n.id,"aria-expanded":p.disabled?void 0:0===p.listboxState,"aria-labelledby":S,disabled:p.disabled,onKeyDown:R,onKeyUp:y,onClick:O};return(0,d.sY)({ourProps:L,theirProps:u,slot:k,defaultTag:"button",name:"Listbox.Button"})})),Y=(0,d.yV)((function(e,t){let n=(0,l.M)(),{id:o=`headlessui-listbox-label-${n}`,...r}=e,a=N("Listbox.Label"),s=A("Listbox.Label"),p=(0,c.T)(a.labelRef,t);(0,u.e)((()=>s.registerLabel(o)),[o]);let f=(0,T.z)((()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})})),v=(0,i.useMemo)((()=>({open:0===a.listboxState,disabled:a.disabled})),[a]);return(0,d.sY)({ourProps:{ref:p,id:o,onClick:f},theirProps:r,slot:v,defaultTag:"label",name:"Listbox.Label"})})),$=(0,d.yV)((function(e,t){var n;let o=(0,l.M)(),{id:r=`headlessui-listbox-options-${o}`,...u}=e,g=N("Listbox.Options"),h=A("Listbox.Options"),m=(0,c.T)(g.optionsRef,t),R=(0,a.G)(),y=(0,a.G)(),O=(0,x.oJ)(),k=null!==O?(O&x.ZM.Open)===x.ZM.Open:0===g.listboxState;(0,i.useEffect)((()=>{var e;let t=g.optionsRef.current;t&&0===g.listboxState&&t!==(null==(e=(0,S.r)(t))?void 0:e.activeElement)&&t.focus({preventScroll:!0})}),[g.listboxState,g.optionsRef]);let L=(0,T.z)((e=>{switch(y.dispose(),e.key){case v.R.Space:if(""!==g.searchQuery)return e.preventDefault(),e.stopPropagation(),h.search(e.key);case v.R.Enter:if(e.preventDefault(),e.stopPropagation(),null!==g.activeOptionIndex){let{dataRef:e}=g.options[g.activeOptionIndex];h.onChange(e.current.value)}0===g.mode&&(h.closeListbox(),(0,f.k)().nextFrame((()=>{var e;return null==(e=g.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
1)));break;case(0,p.E)(g.orientation,{vertical:v.R.ArrowDown,horizontal:v.R.ArrowRight}):return e.preventDefault(),e.stopPropagation(),h.goToOption(b.T.Next);case(0,p.E)(g.orientation,{vertical:v.R.ArrowUp,horizontal:v.R.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),h.goToOption(b.T.Previous);case v.R.Home:case v.R.PageUp:return e.preventDefault(),e.stopPropagation(),h.goToOption(b.T.First);case v.R.End:case v.R.PageDown:return e.preventDefault(),e.stopPropagation(),h.goToOption(b.T.Last);case v.R.Escape:return e.preventDefault(),e.stopPropagation(),h.closeListbox(),R.nextFrame((()=>{var e;return null==(e=g.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));case v.R.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(h.search(e.key),y.setTimeout((()=>h.clearSearch()),350))}})),I=(0,s.v)((()=>{var e,t,n;return null!=(n=null==(e=g.labelRef.current)?void 0:e.id)?n:null==(t=g.buttonRef.current)?void 0:t.id}),[g.labelRef.current,g.buttonRef.current]),E=(0,i.useMemo)((()=>({open:0===g.listboxState})),[g]),M={"aria-activedescendant":null===g.activeOptionIndex||null==(n=g.options[g.activeOptionIndex])?void 0:n.id,"aria-multiselectable":1===g.mode||void 0,"aria-labelledby":I,"aria-orientation":g.orientation,id:r,onKeyDown:L,role:"listbox",tabIndex:0,ref:m};return(0,d.sY)({ourProps:M,theirProps:u,slot:E,defaultTag:"ul",features:F,visible:k,name:"Listbox.Options"})})),j=(0,d.yV)((function(e,t){let n=(0,l.M)(),{id:o=`headlessui-listbox-option-${n}`,disabled:r=!1,value:a,...s}=e,p=N("Listbox.Option"),v=A("Listbox.Option"),g=null!==p.activeOptionIndex&&p.options[p.activeOptionIndex].id===o,h=p.isSelected(a),x=(0,i.useRef)(null),m=(0,E.x)(x),R=(0,L.E)({disabled:r,value:a,domRef:x,get textValue(){return m()}}),y=(0,c.T)(t,x);(0,u.e)((()=>{if(0!==p.listboxState||!g||0===p.activationTrigger)return;let e=(0,f.k)();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=x.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[x,g,p.listboxState,p.activationTrigger,p.activeOptionIndex]),(0,u.e)((()=>v.registerOption(o,R)),[R,o]);let O=(0,T.z)((e=>{if(r)return e.preventDefault();v.onChange(a),0===p.mode&&(v.closeListbox(),(0,f.k)().nextFrame((()=>{var e;return null==(e=p.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
1)))})),S=(0,T.z)((()=>{if(r)return v.goToOption(b.T.Nothing);v.goToOption(b.T.Specific,o)})),k=(0,I.g)(),M=(0,T.z)((e=>k.update(e))),D=(0,T.z)((e=>{k.wasMoved(e)&&(r||g||v.goToOption(b.T.Specific,o,0))})),P=(0,T.z)((e=>{k.wasMoved(e)&&(r||g&&v.goToOption(b.T.Nothing))})),w=(0,i.useMemo)((()=>({active:g,selected:h,disabled:r})),[g,h,r]);return(0,d.sY)({ourProps:{id:o,ref:y,role:"option",tabIndex:!0===r?void 0:-1,"aria-disabled":!0===r||void 0,"aria-selected":h,disabled:void 0,onClick:O,onFocus:S,onPointerEnter:M,onMouseEnter:M,onPointerMove:D,onMouseMove:D,onPointerLeave:P,onMouseLeave:P},theirProps:s,slot:w,defaultTag:"li",name:"Listbox.Option"})})),B=Object.assign(q,{Button:U,Label:Y,Options:$,Option:j})},71646:function(e,t,n){n.d(t,{v:function(){return a}});var o=n(67294),r=n(16723),i=n(3855);function a(e,t){let[n,a]=(0,o.useState)(e),l=(0,i.E)(e);return(0,r.e)((()=>a(l.current)),[l,a,...t]),n}},31147:function(e,t,n){n.d(t,{q:function(){return i}});var o=n(67294),r=n(73781);function i(e,t,n){let[i,a]=(0,o.useState)(n),l=void 0!==e,u=(0,o.useRef)(l),s=(0,o.useRef)(!1),c=(0,o.useRef)(!1);return!l||u.current||s.current?!l&&u.current&&!c.current&&(c.current=!0,u.current=l,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.")):(s.current=!0,u.current=l,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.")),[l?e:i,(0,r.z)((e=>(l||a(e),null==t?void 0:t(e))))]}},18689:function(e,t,n){function o(e={},t=null,n=[]){for(let[o,a]of Object.entries(e))i(n,r(t,o),a);return n}function r(e,t){return e?e+"["+t+"]":t}function i(e,t,n){if(Array.isArray(n))for(let[o,a]of n.entries())i(e,r(t,o.toString()),a);else n instanceof Date?e.push([t,n.toISOString()]):"boolean"==typeof n?e.push([t,n?"1":"0"]):"string"==typeof n?e.push([t,n]):"number"==typeof n?e.push([t,`${n}`]):null==n?e.push([t,""]):o(n,t,e)}function a(e){var t;let n=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(n)for(let o of n.elements)if("INPUT"===o.tagName&&"submit"===o.type||"BUTTON"===o.tagName&&"submit"===o.type||"INPUT"===o.nodeName&&"image"===o.type)return void o.click()}n.d(t,{g:function(){return a},t:function(){return o}})}}]);
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.