PageSourceSearch

https://www.pinegap.ai/_next/static/immutable/chunks/391h5vd8pe21w.js

js pinegap.ai collected 2026-10-04 23:25:52 UTC 90,263 bytes, 31 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="ab97e9d2-5ee2-e6f9-2d62-75ecb6334ca0")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,915874,e=>{"use strict";e.s(["default",0,function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}])},885963,e=>{"use strict";function t(e,n){return(t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,n)}e.s(["default",()=>t])},934537,e=>{"use strict";var t=e.i(66511),n=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,r=(0,t.default)(function(e){return n.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)});e.s(["default",0,r])},884364,e=>{"use strict";var t=e.i(476464),n=e.i(271645),r=e.i(627472),s=e.i(758600),o=e.i(204249);e.i(398437);
2var i=(0,t.w)(function(e,i){var a=e.styles,l=(0,o.serializeStyles)([a],void 0,n.useContext(t.T)),u=n.useRef();return(0,s.useInsertionEffectWithLayoutFallback)(function(){var e=i.key+"-global",t=new i.sheet.constructor({key:e,nonce:i.sheet.nonce,container:i.sheet.container,speedy:i.sheet.isSpeedy}),n=!1,r=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return i.sheet.tags.length&&(t.before=i.sheet.tags[0]),null!==r&&(n=!0,r.setAttribute("data-emotion",e),t.hydrate([r])),u.current=[t,n],function(){t.flush()}},[i]),(0,s.useInsertionEffectWithLayoutFallback)(function(){var e=u.current,t=e[0];if(e[1]){e[1]=!1;return}if(void 0!==l.next&&(0,r.insertStyles)(i,l.next,!0),t.tags.length){var n=t.tags[t.tags.length-1].nextElementSibling;t.before=n,t.flush()}i.insert("",l,t,!1)},[i,l.name]),null});function a(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.serializeStyles)(t)}e.s(["Global",0,i,"css",0,a,"keyframes",0,function(){var e=a.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}])},24489,e=>{"use strict";var t=e.i(783222),n=e.i(433336),r=e.i(271645),s=e.i(394487),o=e.i(503269),i=e.i(214520),a=e.i(746725),l=e.i(914189),u=e.i(255743),c=e.i(601893),d=e.i(140721),p=e.i(942803),f=e.i(233538),h=e.i(694421),m=e.i(700020),v=e.i(35889),b=e.i(998348),g=e.i(722678);let y=(0,m.forwardRefWithAs)(function(e,y){let S=(0,r.useId)(),x=(0,p.useProvidedId)(),C=(0,c.useDisabled)(),{id:E=x||`headlessui-checkbox-${S}`,disabled:P=C||!1,autoFocus:w=!1,checked:R,defaultChecked:k,onChange:I,name:_,value:O,form:F,indeterminate:T=!1,tabIndex:D=0,...A}=e,L=(0,i.useDefaultValue)(k),[M,j]=(0,o.useControllable)(R,I,null!=L&&L),N=(0,g.useLabelledBy)(),B=(0,v.useDescribedBy)(),z=(0,a.useDisposables)(),[H,K]=(0,r.useState)(!1),U=(0,l.useEvent)(()=>{K(!0),null==j||j(!M),z.nextFrame(()=>{K(!1)})}),V=(0,l.useEvent)(e=>{if((0,f.isDisabledReactIssue7711)(e.currentTarget))return e.preventDefault();e.preventDefault(),U()}),q=(0,l.useEvent)(e=>{e.key===b.Keys.Space?(e.preventDefault(),U()):e.key===b.Keys.Enter&&(0,h.attemptSubmit)(e.currentTarget)}),W=(0,l.useEvent)(e=>e.preventDefault()),{isFocusVisible:$,focusProps:G}=(0,t.useFocusRing)({autoFocus:w}),{isHovered:Q,hoverProps:Z}=(0,n.useHover)({isDisabled:P}),{pressed:X,pressProps:Y}=(0,s.useActivePress)({disabled:P}),J=(0,m.mergeProps)({ref:y,id:E,role:"checkbox","aria-checked":T?"mixed":M?"true":"false","aria-labelledby":N,"aria-describedby":B,"aria-disabled":!!P||void 0,indeterminate:T?"true":void 0,tabIndex:P?void 0:D,onKeyUp:P?void 0:q,onKeyPress:P?void 0:W,onClick:P?void 0:V},G,Z,Y),ee=(0,u.useSlot)({checked:M,disabled:P,hover:Q,focus:$,active:X,indeterminate:T,changing:H,autofocus:w}),et=(0,r.useCallback)(()=>{if(void 0!==L)return null==j?void 0:j(L)},[j,L]),en=(0,m.useRender)();return r.default.createElement(r.default.Fragment,null,null!=_&&r.default.createElement(d.FormFields,{disabled:P,data:{[_]:O||"on"},overrides:{type:"checkbox",checked:M},form:F,onReset:et}),en({ourProps:J,theirProps:A,slot:ee,defaultTag:"span",name:"Checkbox"}))});e.s(["Checkbox",0,y])},495470,e=>{"use strict";let t,n,r,s;var o=e.i(783222),i=e.i(433336),a=e.i(271645),l=e.i(174080),u=e.i(394487),c=e.i(436289),d=e.i(503269),p=e.i(214520),f=e.i(746725),h=e.i(992704),m=e.i(914189),v=e.i(488374),b=e.i(684653),g=e.i(835696),y=e.i(941444),S=e.i(877891),x=e.i(952744),C=e.i(605083),E=e.i(157138),P=e.i(144279),w=e.i(101852),R=e.i(255743),k=e.i(294316),I=e.i(249578),_=e.i(571616),O=e.i(83733),F=e.i(601893),T=e.i(919751),D=e.i(140721),A=e.i(904016),L=e.i(942803),M=e.i(233137),j=e.i(341650),N=e.i(140407),B=e.i(65659),z=e.i(544508),H=e.i(628144),K=e.i(652265),U=e.i(694421),V=e.i(397701),q=e.i(402155),W=e.i(700020),$=e.i(35889),G=e.i(998348),Q=e.i(722678),Z=e.i(635307),X=e.i(825720),Y=e.i(667310),J=Object.defineProperty,ee=(e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?J(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,n},et=((t=et||{})[t.Open=0]="Open",t[t.Closed=1]="Closed",t),en=((n=en||{})[n.Single=0]="Single",n[n.Multi=1]="Multi",n),er=((r=er||{})[r.Pointer=0]="Pointer",r[r.Other=1]="Other",r),es=((s=es||{})[s.OpenListbox=0]="OpenListbox",s[s.CloseListbox=1]="CloseListbox",s[s.GoToOption=2]="GoToOption",s[s.Search=3]="Search",s[s.ClearSearch=4]="ClearSearch",s[s.SelectOption=5]="SelectOption",s[s.RegisterOptions=6]="RegisterOptions",s[s.UnregisterOptions=7]="UnregisterOptions",s[s.SetButtonElement=8]="SetButtonElement",s[s.SetOptionsElement=9]="SetOptionsElement",s[s.SortOptions=10]="SortOptions",s[s.MarkButtonAsMoved=11]="MarkButtonAsMoved",s);function eo(e,t=e=>e){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=(0,K.sortByDomNode)(t(e.options.slice()),e=>e.dataRef.current.domRef.current),s=n?r.indexOf(n):null;return -1===s&&(s=null),{options:r,activeOptionIndex:s}}let ei={1(e){if(e.dataRef.current.disabled||1===e.listboxState)return e;let t=e.buttonElement?Y.ElementPositionState.Tracked((0,Y.computeVisualPosition)(e.buttonElement)):e.buttonPositionState;return{...e,activeOptionIndex:null,pendingFocus:{focus:B.Focus.Nothing},listboxState:1,__demoMode:!1,buttonPositionState:t}},0(e,t){if(e.dataRef.current.disabled||0===e.listboxState)return e;let n=e.activeOptionIndex,{isSelected:r}=e.dataRef.current,s=e.options.findIndex(e=>r(e.dataRef.current.value));return -1!==s&&(n=s),{...e,frozenValue:!1,pendingFocus:t.focus,listboxState:0,activeOptionIndex:n,__demoMode:!1,buttonPositionState:Y.ElementPositionState.Idle}},2(e,t){var n,r,s,o,i;if(e.dataRef.current.disabled||1===e.listboxState)return e;let a={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===B.Focus.Nothing)return{...a,activeOptionIndex:null};if(t.focus===B.Focus.Specific)return{...a,activeOptionIndex:e.options.findIndex(e=>e.id===t.id)};if(t.focus===B.Focus.Previous){let n=e.activeOptionIndex;if(null!==n){let o=e.options[n].dataRef.current.domRef,i=(0,B.calculateActiveIndex)(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==i){let t=e.options[i].dataRef.current.domRef;if((null==(r=o.current)?void 0:r.previousElementSibling)===t.current||(null==(s=t.current)?void 0:s.previousElementSibling)===null)return{...a,activeOptionIndex:i}}}}else if(t.focus===B.Focus.Next){let n=e.activeOptionIndex;if(null!==n){let r=e.options[n].dataRef.current.domRef,s=(0,B.calculateActiveIndex)(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==s){let t=e.options[s].dataRef.current.domRef;if((null==(o=r.current)?void 0:o.nextElementSibling)===t.current||(null==(i=t.current)?void 0:i.nextElementSibling)===null)return{...a,activeOptionIndex:s}}}}let l=eo(e),u=(0,B.calculateActiveIndex)(t,{resolveItems:()=>l.options,resolveActiveIndex:()=>l.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...a,...l,activeOptionIndex:u}},3:(e,t)=>
2{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=+(""===e.searchQuery),r=e.searchQuery+t.value.toLowerCase(),s=(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(r))}),o=s?e.options.indexOf(s):-1;return -1===o||o===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:o,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:e=>0===e.dataRef.current.mode?{...e,frozenValue:!0}:{...e},6:(e,t)=>{let n=e.options.concat(t.options),r=e.activeOptionIndex;if(e.pendingFocus.focus!==B.Focus.Nothing&&(r=(0,B.calculateActiveIndex)(e.pendingFocus,{resolveItems:()=>n,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled})),null===e.activeOptionIndex){let{isSelected:t}=e.dataRef.current;if(t){let e=n.findIndex(e=>null==t?void 0:t(e.dataRef.current.value));-1!==e&&(r=e)}}return{...e,options:n,activeOptionIndex:r,pendingFocus:{focus:B.Focus.Nothing},pendingShouldSort:!0}},7:(e,t)=>{let n=e.options,r=[],s=new Set(t.options);for(let[e,t]of n.entries())if(s.has(t.id)&&(r.push(e),s.delete(t.id),0===s.size))break;if(r.length>0)for(let e of(n=n.slice(),r.reverse()))n.splice(e,1);return{...e,options:n,activationTrigger:1}},8:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},9:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element},10:e=>e.pendingShouldSort?{...e,...eo(e),pendingShouldSort:!1}:e,11:e=>"Tracked"!==e.buttonPositionState.kind?e:{...e,buttonPositionState:Y.ElementPositionState.Moved}};class ea extends X.Machine{constructor(e){super(e),ee(this,"actions",{onChange:e=>{let{onChange:t,compare:n,mode:r,value:s}=this.state.dataRef.current;return(0,V.match)(r,{0:()=>null==t?void 0:t(e),1:()=>{let r=s.slice(),o=r.findIndex(t=>n(t,e));return -1===o?r.push(e):r.splice(o,1),null==t?void 0:t(r)}})},registerOption:(0,X.batch)(()=>{let e=[],t=new Set;return[(n,r)=>{t.has(r)||(t.add(r),e.push({id:n,dataRef:r}))},()=>(t.clear(),this.send({type:6,options:e.splice(0)}))]}),unregisterOption:(0,X.batch)(()=>{let e=[];return[t=>e.push(t),()=>{this.send({type:7,options:e.splice(0)})}]}),goToOption:(0,X.batch)(()=>{let e=null;return[(t,n)=>{e={type:2,...t,trigger:n}},()=>e&&this.send(e)]}),closeListbox:()=>{this.send({type:1})},openListbox:e=>{this.send({type:0,focus:e})},selectActiveOption:()=>{var e;if(null!==this.state.activeOptionIndex){let{dataRef:e}=this.state.options[this.state.activeOptionIndex];this.actions.selectOption(e.current.value)}else 0===this.state.dataRef.current.mode&&(this.actions.closeListbox(),null==(e=this.state.buttonElement)||e.focus({preventScroll:!0}))},selectOption:e=>{this.send({type:5,value:e})},search:e=>{this.send({type:3,value:e})},clearSearch:()=>{this.send({type:4})},setButtonElement:e=>{this.send({type:8,element:e})},setOptionsElement:e=>{this.send({type:9,element:e})}}),ee(this,"selectors",{activeDescendantId(e){var t;let n=e.activeOptionIndex,r=e.options;return null===n||null==(t=r[n])?void 0:t.id},isActive(e,t){var n;let r=e.activeOptionIndex,s=e.options;return null!==r&&(null==(n=s[r])?void 0:n.id)===t},hasFrozenValue:e=>e.frozenValue,shouldScrollIntoView(e,t){return!e.__demoMode&&0===e.listboxState&&0!==e.activationTrigger&&this.isActive(e,t)},didButtonMove:e=>"Moved"===e.buttonPositionState.kind}),this.on(6,()=>{requestAnimationFrame(()=>{this.send({type:10})})});{let e=this.state.id,t=j.stackMachines.get(null);this.disposables.add(t.on(j.ActionTypes.Push,n=>{t.selectors.isTop(n,e)||0!==this.state.listboxState||this.actions.closeListbox()})),this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}this.disposables.group(e=>{this.on(1,t=>{t.buttonElement&&(e.dispose(),e.add((0,Y.detectMovement)(t.buttonElement,t.buttonPositionState,()=>{this.send({type:11})})))})}),this.on(5,(e,t)=>{var n;this.actions.onChange(t.value),0===this.state.dataRef.current.mode&&(this.actions.closeListbox(),null==(n=this.state.buttonElement)||n.focus({preventScroll:!0}))})}static new({id:e,__demoMode:t=!1}){return new ea({id:e,dataRef:{current:{}},listboxState:+!t,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,buttonElement:null,optionsElement:null,pendingShouldSort:!1,pendingFocus:{focus:B.Focus.Nothing},frozenValue:!1,__demoMode:t,buttonPositionState:Y.ElementPositionState.Idle})}reduce(e,t){return(0,V.match)(t.type,ei,e,t)}}var el=e.i(526599);let eu=(0,a.createContext)(null);function ec(e){let t=(0,a.useContext)(eu);if(null===t){let t=Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ed),t}return t}function ed({id:e,__demoMode:t=!1}){let n=(0,a.useMemo)(()=>ea.new({id:e,__demoMode:t}),[]);return(0,el.useOnUnmount)(()=>n.dispose()),n}let ep=(0,a.createContext)(null);function ef(e){let t=(0,a.useContext)(ep);if(null===t){let t=Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ef),t}return t}ep.displayName="ListboxDataContext";let eh=a.Fragment,em=(0,a.createContext)(!1),ev=W.RenderFeatures.RenderStrategy|W.RenderFeatures.Static,eb=a.Fragment,eg=(0,W.forwardRefWithAs)(function(e,t){let n=(0,a.useId)(),r=(0,F.useDisabled)(),{value:s,defaultValue:o,form:i,name:l,onCh
2ange:u,by:f,invalid:h=!1,disabled:m=r||!1,horizontal:v=!1,multiple:b=!1,__demoMode:y=!1,...S}=e,C=(0,k.useSyncRefs)(t),E=(0,p.useDefaultValue)(o),[P=b?[]:void 0,w]=(0,d.useControllable)(s,u,E),I=ed({id:n,__demoMode:y}),_=(0,a.useRef)({static:!1,hold:!1}),O=(0,a.useRef)(new Map),A=(0,c.useByComparator)(f),L=(0,a.useCallback)(e=>(0,V.match)(B.mode,{[en.Multi]:()=>P.some(t=>A(t,e)),[en.Single]:()=>A(P,e)}),[P]),B=(0,R.useSlot)({value:P,disabled:m,invalid:h,mode:b?en.Multi:en.Single,orientation:v?"horizontal":"vertical",onChange:w,compare:A,isSelected:L,optionsPropsRef:_,listRef:O});(0,g.useIsoMorphicEffect)(()=>{I.state.dataRef.current=B},[B]);let z=(0,N.useSlice)(I,e=>e.listboxState),H=j.stackMachines.get(null),U=(0,N.useSlice)(H,(0,a.useCallback)(e=>H.selectors.isTop(e,n),[H,n])),[q,$]=(0,N.useSlice)(I,e=>[e.buttonElement,e.optionsElement]);(0,x.useOutsideClick)(U,[q,$],(e,t)=>{I.send({type:es.CloseListbox}),(0,K.isFocusableElement)(t,K.FocusableMode.Loose)||(e.preventDefault(),null==q||q.focus())});let G=(0,R.useSlot)({open:z===et.Open,disabled:m,invalid:h,value:P}),[Z,X]=(0,Q.useLabels)({inherit:!0}),Y=(0,a.useCallback)(()=>{if(void 0!==E)return null==w?void 0:w(E)},[w,E]),J=(0,W.useRender)();return a.default.createElement(X,{value:Z,props:{htmlFor:null==q?void 0:q.id},slot:{open:z===et.Open,disabled:m}},a.default.createElement(T.FloatingProvider,null,a.default.createElement(eu.Provider,{value:I},a.default.createElement(ep.Provider,{value:B},a.default.createElement(M.OpenClosedProvider,{value:(0,V.match)(z,{[et.Open]:M.State.Open,[et.Closed]:M.State.Closed})},null!=l&&null!=P&&a.default.createElement(D.FormFields,{disabled:m,data:{[l]:P},form:i,onReset:Y}),J({ourProps:{ref:C},theirProps:S,slot:G,defaultTag:eh,name:"Listbox"}))))))}),ey=(0,W.forwardRefWithAs)(function(e,t){let n=(0,a.useId)(),r=(0,L.useProvidedId)(),s=ef("Listbox.Button"),c=ec("Listbox.Button"),{id:d=r||`headlessui-listbox-button-${n}`,disabled:p=s.disabled||!1,autoFocus:f=!1,...h}=e,b=(0,k.useSyncRefs)(t,(0,T.useFloatingReference)(),c.actions.setButtonElement),g=(0,T.useFloatingReferenceProps)(),[y,S,x]=(0,N.useSlice)(c,e=>[e.listboxState,e.buttonElement,e.optionsElement]),C=y===et.Open;(0,E.useQuickRelease)(C,{trigger:S,action:(0,a.useCallback)(e=>{if(null!=S&&S.contains(e.target))return E.Action.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return H.isHTMLElement(t)?E.Action.Select(t):null!=x&&x.contains(e.target)?E.Action.Ignore:E.Action.Close},[S,x]),close:c.actions.closeListbox,select:c.actions.selectActiveOption});let w=(0,m.useEvent)(e=>{switch(e.key){case G.Keys.Enter:(0,U.attemptSubmit)(e.currentTarget);break;case G.Keys.Space:case G.Keys.ArrowDown:e.preventDefault(),c.actions.openListbox({focus:s.value?B.Focus.Nothing:B.Focus.First});break;case G.Keys.ArrowUp:e.preventDefault(),c.actions.openListbox({focus:s.value?B.Focus.Nothing:B.Focus.Last})}}),I=(0,m.useEvent)(e=>{e.key===G.Keys.Space&&e.preventDefault()}),_=(0,v.useHandleToggle)(e=>{var t;c.state.listboxState===et.Open?((0,l.flushSync)(()=>c.actions.closeListbox()),null==(t=c.state.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),c.actions.openListbox({focus:B.Focus.Nothing}))}),O=(0,m.useEvent)(e=>e.preventDefault()),F=(0,Q.useLabelledBy)([d]),D=(0,$.useDescribedBy)(),{isFocusVisible:A,focusProps:M}=(0,o.useFocusRing)({autoFocus:f}),{isHovered:j,hoverProps:z}=(0,i.useHover)({isDisabled:p}),{pressed:K,pressProps:V}=(0,u.useActivePress)({disabled:p}),q=(0,R.useSlot)({open:y===et.Open,active:K||y===et.Open,disabled:p,invalid:s.invalid,value:s.value,hover:j,focus:A,autofocus:f}),Z=(0,N.useSlice)(c,e=>e.listboxState===et.Open),X=(0,W.mergeProps)(g(),{ref:b,id:d,type:(0,P.useResolveButtonType)(e,S),"aria-haspopup":"listbox","aria-controls":null==x?void 0:x.id,"aria-expanded":Z,"aria-labelledby":F,"aria-describedby":D,disabled:p||void 0,autoFocus:f,onKeyDown:w,onKeyUp:I,onKeyPress:O},_,M,z,V);return(0,W.useRender)()({ourProps:X,theirProps:h,slot:q,defaultTag:"button",name:"Listbox.Button"})}),eS=Q.Label,ex=(0,W.forwardRefWithAs)(function(e,t){let n=(0,a.useId)(),{id:r=`headlessui-listbox-options-${n}`,anchor:s,portal:o=!1,modal:i=!0,transition:u=!1,...c}=e,d=(0,T.useResolvedAnchor)(s),[p,v]=(0,a.useState)(null);d&&(o=!0);let g=ef("Listbox.Options"),y=ec("Listbox.Options"),[x,E,P,I]=(0,N.useSlice)(y,e=>[e.listboxState,e.buttonElement,e.optionsElement,e.__demoMode]),_=(0,C.useOwnerDocument)(E),F=(0,C.useOwnerDocument)(P),D=(0,M.useOpenClosed)(),[L,j]=(0,O.useTransition)(u,p,null!==D?(D&M.State.Open)===M.State.Open:x===et.Open);(0,S.useOnDisappear)(L,E,y.actions.closeListbox);let z=!I&&i&&x===et.Open;
2(0,w.useScrollLock)(z,F);let H=!I&&i&&x===et.Open;(0,b.useInertOthers)(H,{allowed:(0,a.useCallback)(()=>[E,P],[E,P])});let U=!(0,N.useSlice)(y,y.selectors.didButtonMove)&&L,$=(0,N.useSlice)(y,y.selectors.hasFrozenValue)&&!e.static,Q=(0,A.useFrozenData)($,g.value),X=(0,a.useCallback)(e=>g.compare(Q,e),[g.compare,Q]),Y=(0,N.useSlice)(y,e=>{var t;if(null==d||!(null!=(t=null==d?void 0:d.to)&&t.includes("selection")))return null;let n=e.options.findIndex(e=>X(e.dataRef.current.value));return -1===n&&(n=0),n}),J=(()=>{if(null==d)return;if(null===Y)return{...d,inner:void 0};let e=Array.from(g.listRef.current.values());return{...d,inner:{listRef:{current:e},index:Y}}})(),[ee,er]=(0,T.useFloatingPanel)(J),es=(0,T.useFloatingPanelProps)(),eo=(0,k.useSyncRefs)(t,d?ee:null,y.actions.setOptionsElement,v),ei=(0,f.useDisposables)();(0,a.useEffect)(()=>{P&&x===et.Open&&((0,q.isActiveElement)(P)||null==P||P.focus({preventScroll:!0}))},[x,P]);let ea=(0,m.useEvent)(e=>{var t;switch(ei.dispose(),e.key){case G.Keys.Space:if(""!==y.state.searchQuery)return e.preventDefault(),e.stopPropagation(),y.actions.search(e.key);case G.Keys.Enter:e.preventDefault(),e.stopPropagation(),y.actions.selectActiveOption();break;case(0,V.match)(g.orientation,{vertical:G.Keys.ArrowDown,horizontal:G.Keys.ArrowRight}):return e.preventDefault(),e.stopPropagation(),y.actions.goToOption({focus:B.Focus.Next});case(0,V.match)(g.orientation,{vertical:G.Keys.ArrowUp,horizontal:G.Keys.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),y.actions.goToOption({focus:B.Focus.Previous});case G.Keys.Home:case G.Keys.PageUp:return e.preventDefault(),e.stopPropagation(),y.actions.goToOption({focus:B.Focus.First});case G.Keys.End:case G.Keys.PageDown:return e.preventDefault(),e.stopPropagation(),y.actions.goToOption({focus:B.Focus.Last});case G.Keys.Escape:e.preventDefault(),e.stopPropagation(),(0,l.flushSync)(()=>y.actions.closeListbox()),null==(t=y.state.buttonElement)||t.focus({preventScroll:!0});return;case G.Keys.Tab:e.preventDefault(),e.stopPropagation(),(0,l.flushSync)(()=>y.actions.closeListbox()),(0,K.focusFrom)(y.state.buttonElement,e.shiftKey?K.Focus.Previous:K.Focus.Next);break;default:1===e.key.length&&(y.actions.search(e.key),ei.setTimeout(()=>y.actions.clearSearch(),350))}}),el=(0,N.useSlice)(y,e=>{var t;return null==(t=e.buttonElement)?void 0:t.id}),eu=(0,R.useSlot)({open:x===et.Open}),ed=(0,W.mergeProps)(d?es():{},{id:r,ref:eo,"aria-activedescendant":(0,N.useSlice)(y,y.selectors.activeDescendantId),"aria-multiselectable":g.mode===en.Multi||void 0,"aria-labelledby":el,"aria-orientation":g.orientation,onKeyDown:ea,role:"listbox",tabIndex:x===et.Open?0:void 0,style:{...c.style,...er,"--button-width":(0,h.useElementSize)(L,E,!0).width},...(0,O.transitionDataAttributes)(j)}),eh=(0,W.useRender)(),em=(0,a.useMemo)(()=>g.mode===en.Multi?g:{...g,isSelected:X},[g,X]);return a.default.createElement(Z.Portal,{enabled:!!o&&(e.static||L),ownerDocument:_},a.default.createElement(ep.Provider,{value:em},eh({ourProps:ed,theirProps:c,slot:eu,defaultTag:"div",features:ev,visible:U,name:"Listbox.Options"}
2)))}),eC=(0,W.forwardRefWithAs)(function(e,t){let n=(0,a.useId)(),{id:r=`headlessui-listbox-option-${n}`,disabled:s=!1,value:o,...i}=e,l=!0===(0,a.useContext)(em),u=ef("Listbox.Option"),c=ec("Listbox.Option"),d=(0,N.useSlice)(c,e=>c.selectors.isActive(e,r)),p=u.isSelected(o),f=(0,a.useRef)(null),h=(0,I.useTextValue)(f),v=(0,y.useLatestValue)({disabled:s,value:o,domRef:f,get textValue(){return h()}}),b=(0,k.useSyncRefs)(t,f,e=>{e?u.listRef.current.set(r,e):u.listRef.current.delete(r)}),S=(0,N.useSlice)(c,e=>c.selectors.shouldScrollIntoView(e,r));(0,g.useIsoMorphicEffect)(()=>{if(S)return(0,z.disposables)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=f.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[S,f]),(0,g.useIsoMorphicEffect)(()=>{if(!l)return c.actions.registerOption(r,v),()=>c.actions.unregisterOption(r)},[v,r,l]);let x=(0,m.useEvent)(e=>{if(s)return e.preventDefault();c.actions.selectOption(o)}),C=(0,m.useEvent)(()=>{if(s)return c.actions.goToOption({focus:B.Focus.Nothing});c.actions.goToOption({focus:B.Focus.Specific,id:r})}),E=(0,_.useTrackedPointer)(),P=(0,m.useEvent)(e=>E.update(e)),w=(0,m.useEvent)(e=>{E.wasMoved(e)&&(s||d&&c.state.activationTrigger===er.Pointer||c.actions.goToOption({focus:B.Focus.Specific,id:r},er.Pointer))}),O=(0,m.useEvent)(e=>{E.wasMoved(e)&&(s||d&&c.state.activationTrigger===er.Pointer&&c.actions.goToOption({focus:B.Focus.Nothing}))}),F=(0,R.useSlot)({active:d,focus:d,selected:p,disabled:s,selectedOption:p&&l}),T=l?{}:{id:r,ref:b,role:"option",tabIndex:!0===s?void 0:-1,"aria-disabled":!0===s||void 0,"aria-selected":p,disabled:void 0,onClick:x,onFocus:C,onPointerEnter:P,onMouseEnter:P,onPointerMove:w,onMouseMove:w,onPointerLeave:O,onMouseLeave:O},D=(0,W.useRender)();return!p&&l?null:D({ourProps:T,theirProps:i,slot:F,defaultTag:"div",name:"Listbox.Option"})}),eE=(0,W.forwardRefWithAs)(function(e,t){let{options:n,placeholder:r,...s}=e,o={ref:(0,k.useSyncRefs)(t)},i=ef("ListboxSelectedOption"),l=(0,R.useSlot)({}),u=void 0===i.value||null===i.value||i.mode===en.Multi&&Array.isArray(i.value)&&0===i.value.length,c=(0,W.useRender)();return a.default.createElement(em.Provider,{value:!0},c({ourProps:o,theirProps:{...s,children:a.default.createElement(a.default.Fragment,null,r&&u?r:n)},slot:l,defaultTag:eb,name:"ListboxSelectedOption"}))}),eP=Object.assign(eg,{Button:ey,Label:eS,Options:ex,Option:eC,SelectedOption:eE});e.s(["Listbox",0,eP,"ListboxButton",0,ey,"ListboxLabel",0,eS,"ListboxOption",0,eC,"ListboxOptions",0,ex,"ListboxSelectedOption",0,eE],495470)},998307,e=>{"use strict";let t,n;var r=e.i(783222),s=e.i(433336),o=e.i(271645),i=e.i(394487),a=e.i(992704),l=e.i(914189),u=e.i(693456),c=e.i(835696),d=e.i(941444),p=e.i(877891),f=e.i(952744),h=e.i(605083),m=e.i(144279),v=e.i(185935),b=e.i(101852),g=e.i(255743),y=e.i(294316),S=e.i(661130),x=e.i(83733),C=e.i(674175),E=e.i(919751),P=e.i(2788),w=e.i(233137),R=e.i(140407),k=e.i(233538),I=e.i(628144),_=e.i(652265),O=e.i(397701),F=e.i(402155),T=e.i(700020),D=e.i(998348),A=e.i(635307),L=e.i(825720),M=e.i(341650),j=Object.defineProperty,N=(e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?j(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,n},B=((t=B||{})[t.Open=0]="Open",t[t.Closed=1]="Closed",t),z=((n=z||{})[n.OpenPopover=0]="OpenPopover",n[n.ClosePopover=1]="ClosePopover",n[n.SetButton=2]="SetButton",n[n.SetButtonId=3]="SetButtonId",n[n.SetPanel=4]="SetPanel",n[n.SetPanelId=5]="SetPanelId",n);let H={0:e=>0===e.popoverState?e:{...e,popoverState:0,__demoMode:!1},1:e=>1===e.popoverState?e:{...e,popoverState:1,__demoMode:!1},2:(e,t)=>e.button===t.button?e:{...e,button:t.button},3:(e,t)=>
2e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},4:(e,t)=>e.panel===t.panel?e:{...e,panel:t.panel},5:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId}};class K extends L.Machine{constructor(e){super(e),N(this,"actions",{close:()=>this.send({type:1}),refocusableClose:e=>{this.actions.close();let t=e?I.isHTMLElement(e)?e:"current"in e&&I.isHTMLElement(e.current)?e.current:this.state.button:this.state.button;null==t||t.focus()},open:()=>this.send({type:0}),setButtonId:e=>this.send({type:3,buttonId:e}),setButton:e=>this.send({type:2,button:e}),setPanelId:e=>this.send({type:5,panelId:e}),setPanel:e=>this.send({type:4,panel:e})}),N(this,"selectors",{isPortalled:e=>{var t;if(!e.button||!e.panel)return!1;let n=null!=(t=(0,F.getOwnerDocument)(e.button))?t:document;for(let t of n.querySelectorAll("body > *"))if(Number(null==t?void 0:t.contains(e.button))^Number(null==t?void 0:t.contains(e.panel)))return!0;let r=(0,_.getFocusableElements)(n),s=r.indexOf(e.button),o=(s+r.length-1)%r.length,i=(s+1)%r.length,a=r[o],l=r[i];return!e.panel.contains(a)&&!e.panel.contains(l)}});{let e=this.state.id,t=M.stackMachines.get(null);this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}}static new({id:e,__demoMode:t=!1}){return new K({id:e,__demoMode:t,popoverState:+!t,buttons:{current:[]},button:null,buttonId:null,panel:null,panelId:null,beforePanelSentinel:{current:null},afterPanelSentinel:{current:null},afterButtonSentinel:{current:null}})}reduce(e,t){return(0,O.match)(t.type,H,e,t)}}var U=e.i(526599);let V=(0,o.createContext)(null);function q(e){let t=(0,o.useContext)(V);if(null===t){let t=Error(`<${e} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,q),t}return t}let W=(0,o.createContext)(null);function $(){return(0,o.useContext)(W)}W.displayName="PopoverGroupContext";let G=(0,o.createContext)(null);G.displayName="PopoverPanelContext";let Q=T.RenderFeatures.RenderStrategy|T.RenderFeatures.Static;function Z(e,t){let n=(0,o.useId)(),{id:r=`headlessui-popover-backdrop-${n}`,transition:s=!1,...i}=e,a=q("Popover.Backdrop"),u=(0,R.useSlice)(a,(0,o.useCallback)(e=>e.popoverState,[])),[c,d]=(0,o.useState)(null),p=(0,y.useSyncRefs)(t,d),f=(0,w.useOpenClosed)(),[h,m]=(0,x.useTransition)(s,c,null!==f?(f&w.State.Open)===w.State.Open:u===B.Open),v=(0,l.useEvent)(e=>{if((0,k.isDisabledReactIssue7711)(e.currentTarget))return e.preventDefault();a.actions.close()}),b=(0,g.useSlot)({open:u===B.Open}),S={ref:p,id:r,"aria-hidden":!0,onClick:v,...(0,x.transitionDataAttributes)(m)};return(0,T.useRender)()({ourProps:S,theirProps:i,slot:b,defaultTag:"div",features:Q,visible:h,name:"Popover.Backdrop"})}let X=T.RenderFeatures.RenderStrategy|T.RenderFeatures.Static,Y=(0,T.forwardRefWithAs)(function(e,t){var n;let r=(0,o.useId)(),{__demoMode:s=!1,...i}=e,a=function({id:e,__demoMode:t=!1}){let n=(0,o.useMemo)(()=>K.new({id:e,__demoMode:t}),[]);return(0,U.useOnUnmount)(()=>n.dispose()),n}({id:r,__demoMode:s}),c=(0,o.useRef)(null),p=(0,y.useSyncRefs)(t,(0,y.optionalRef)(e=>{c.current=e})),[m,b,S,x,P]=(0,R.useSlice)(a,(0,o.useCallback)(e=>[e.popoverState,e.button,e.panel,e.buttonId,e.panelId],[])),k=(0,h.useRootDocument)(null!=(n=c.current)?n:b),D=(0,d.useLatestValue)(x),L=(0,d.useLatestValue)(P),M=(0,o.useMemo)(()=>({buttonId:D,panelId:L,close:a.actions.close}),[D,L,a]),j=$(),N=null==j?void 0:j.registerPopover,z=(0,l.useEvent)(()=>{var e,t;let n=(0,F.getActiveElement)(null!=(e=c.current)?e:b);return null!=(t=null==j?void 0:j.isFocusWithinPopoverGroup())?t:n&&((null==b?void 0:b.contains(n))||(null==S?void 0:S.contains(n)))});(0,o.useEffect)(()=>null==N?void 0:N(M),[N,M]);let[H,q]=(0,A.useNestedPortals)(),W=(0,v.useMainTreeNode)(b),Q=(0,v.useRootContainers)({mainTreeNode:W,portals:H,defaultContainers:[{get current(){return a.state.button}},{get current(){return a.state.panel}}]});(0,u.useEventListener)(k,"focus",e=>{var t,n,r,s,o,i;e.target!==window&&I.isHTMLorSVGElement(e.target)&&a.state.popoverState===B.Open&&(z()||a.state.button&&a.state.panel&&(Q.contains(e.target)||null!=(n=null==(t=a.state.beforePanelSentinel.current)?void 0:t.contains)&&n.call(t,e.target)||null!=(s=null==(r=a.state.afterPanelSentinel.current)?void 0:r.contains)&&s.call(r,e.target)||null!=(i=null==(o=a.state.afterButtonSentinel.current)?void 0:o.contains)&&i.call(o,e.target)||a.actions.close()))},!0);let Z=m===B.Open;(0,f.useOutsideClick)(Z,Q.resolveContainers,(e,t)=>{a.actions.close(),(0,_.isFocusableElement)(t,_.FocusableMode.Loose)||(e.preventDefault(),null==b||b.focu
2s())});let X=(0,g.useSlot)({open:m===B.Open,close:a.actions.refocusableClose}),Y=(0,R.useSlice)(a,(0,o.useCallback)(e=>(0,O.match)(e.popoverState,{[B.Open]:w.State.Open,[B.Closed]:w.State.Closed}),[])),J=(0,T.useRender)();return o.default.createElement(v.MainTreeProvider,{node:W},o.default.createElement(E.FloatingProvider,null,o.default.createElement(G.Provider,{value:null},o.default.createElement(V.Provider,{value:a},o.default.createElement(C.CloseProvider,{value:a.actions.refocusableClose},o.default.createElement(w.OpenClosedProvider,{value:Y},o.default.createElement(q,null,J({ourProps:{ref:p},theirProps:i,slot:X,defaultTag:"div",name:"Popover"}))))))))}),J=(0,T.forwardRefWithAs)(function(e,t){let n=(0,o.useId)(),{id:a=`headlessui-popover-button-${n}`,disabled:u=!1,autoFocus:c=!1,...d}=e,p=q("Popover.Button"),[f,h,v,b,x,C,w]=(0,R.useSlice)(p,(0,o.useCallback)(e=>[e.popoverState,p.selectors.isPortalled(e),e.button,e.buttonId,e.panel,e.panelId,e.afterButtonSentinel],[])),A=(0,o.useRef)(null),L=`headlessui-focus-sentinel-${(0,o.useId)()}`,M=$(),j=null==M?void 0:M.closeOthers,N=null!==(0,o.useContext)(G);(0,o.useEffect)(()=>{if(!N)return p.actions.setButtonId(a),()=>p.actions.setButtonId(null)},[N,a,p]);let[z]=(0,o.useState)(()=>Symbol()),H=(0,y.useSyncRefs)(A,t,(0,E.useFloatingReference)(),(0,l.useEvent)(e=>{if(!N){if(e)p.state.buttons.current.push(z);else{let e=p.state.buttons.current.indexOf(z);-1!==e&&p.state.buttons.current.splice(e,1)}p.state.buttons.current.length>1&&console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."),e&&p.actions.setButton(e)}})),K=(0,y.useSyncRefs)(A,t),U=(0,l.useEvent)(e=>{var t,n,r;if(N){if(p.state.popoverState===B.Closed)return;switch(e.key){case D.Keys.Space:case D.Keys.Enter:e.preventDefault(),null==(n=(t=e.target).click)||n.call(t),p.actions.close(),null==(r=p.state.button)||r.focus()}}else switch(e.key){case D.Keys.Space:case D.Keys.Enter:e.preventDefault(),e.stopPropagation(),p.state.popoverState===B.Closed?(null==j||j(p.state.buttonId),p.actions.open()):p.actions.close();break;case D.Keys.Escape:if(p.state.popoverState!==B.Open)return null==j?void 0:j(p.state.buttonId);if(!A.current)return;let s=(0,F.getActiveElement)(A.current);if(s&&!A.current.contains(s))return;e.preventDefault(),e.stopPropagation(),p.actions.close()}}),V=(0,l.useEvent)(e=>{N||e.key===D.Keys.Space&&e.preventDefault()}),W=(0,l.useEvent)(e=>{var t,n;(0,k.isDisabledReactIssue7711)(e.currentTarget)||u||(N?(p.actions.close(),null==(t=p.state.button)||t.focus()):(e.preventDefault(),e.stopPropagation(),p.state.popoverState===B.Closed?(null==j||j(p.state.buttonId),p.actions.open()):p.actions.close(),null==(n=p.state.button)||n.focus()))}),Q=(0,l.useEvent)(e=>{e.preventDefault(),e.stopPropagation()}),{isFocusVisible:Z,focusProps:X}=(0,r.useFocusRing)({autoFocus:c}),{isHovered:Y,hoverProps:J}=(0,s.useHover)({isDisabled:u}),{pressed:ee,pressProps:et}=(0,i.useActivePress)({disabled:u}),en=f===B.Open,er=(0,g.useSlot)({open:en,active:ee||en,disabled:u,hover:Y,focus:Z,autofocus:c}),es=(0,m.useResolveButtonType)(e,v),eo=N?(0,T.mergeProps)({ref:K,type:es,onKeyDown:U,onClick:W,disabled:u||void 0,autoFocus:c},X,J,et):(0,T.mergeProps)({ref:H,id:b,type:es,"aria-expanded":f===B.Open,"aria-controls":x?C:void 0,disabled:u||void 0,autoFocus:c,onKeyDown:U,onKeyUp:V,onClick:W,onMouseDown:Q},X,J,et),ei=(0,S.useTabDirection)(),ea=(0,l.useEvent)(()=>{if(!I.isHTMLElement(p.state.panel))return;let e=p.state.panel;(0,O.match)(ei.current,{[S.Direction.Forwards]:()=>(0,_.focusIn)(e,_.Focus.First),[S.Direction.Backwards]:()=>(0,_.focusIn)(e,_.Focus.Last)})===_.FocusResult.Error&&(0,_.focusIn)((0,_.getFocusableElements)((0,F.getRootNode)(p.state.button)).filter(e=>"true"!==e.dataset.headlessuiFocusGuard),(0,O.match)(ei.current,{[S.Direction.Forwards]:_.Focus.Next,[S.Direction.Backwards]:_.Focus.Previous}),{relativeTo:p.state.button})}),el=(0,T.useRender)();return o.default.createElement(o.default.Fragment,null,el({ourProps:eo,theirProps:d,slot:er,defaultTag:"button",name:"Popover.Button"}),en&&!N&&h&&o.default.createElement(P.Hidden,{id:L,ref:w,features:P.HiddenFeatures.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:ea}))}),ee=(0,T.forwardRefWithAs)(Z),et=(0,T.forwardRefWithAs)(Z),en=(0,T.forwardRefWithAs)(function(e,t){let n=(0,o.useId)(),{id:r=`headlessui-popover-panel-${n}`,focus:s=!1,anchor:i,portal:u=!1,modal:d=!1,transition:f=!1,...m}=e,v=q("Popover.Panel"),k=(0,R.useSlice)(v,v.selectors.isPortalled),[I,L,M,j,N]=(0,R.useSlice)(v,(0,o.useCallback)(e=>[e.popoverState,e.button,e.__demoMode,e.beforePanelSentinel,e.afterPanelSentinel],[])),z=`headlessui-focus-sentinel-before-${n}`,H=`headlessui-focus-sentinel-after-${n}`,K=(0,o.useRef)(null),U=(0,E.useResolvedAnchor)(i),[V,W]=(0,E.useFloatingPanel)(U),$=(0,E.useFloatingPanelProps)();U&&(u=!0);let[Q,Z]=(0,o.useState)(null),Y=(0,y.useSyncRefs)(K,t,U?V:null,v.actions.setPanel,Z),J=(0,h.useOwnerDocument)(L),ee=(0,h.useOwnerDocument)(K.current);(0,c.useIsoMorphicEffect)(()=>(v.actions.setPanelId(r),()=>v.actions.setPanelId(null)),[r,v]);let et=(0,w.useOpenClosed)(),[en,er]=(0,x.useTransition)(f,Q,null!==et?(et&w.State.Open)===w.State.Open:I===B.Open);(0,p.useOnDisappear)(en,L,v.actions.close),(0,b.useScrollLock)(!M&&d&&en,ee);let es=(0,l.useEvent)(e=>{var t;if(e.key===D.Keys.Escape){if(v.state.popoverState!==B.Open||!K.current)return;let n=(0,F.getActiveElement)(K.current);if(n&&!K.current.contains(n))return;e.preventDefault(),e.stopPropagation(),v.actions.close(),null==(t=v.state.button)||t.focu
2s()}});(0,o.useEffect)(()=>{var t;e.static||I===B.Closed&&(null==(t=e.unmount)||t)&&v.actions.setPanel(null)},[I,e.unmount,e.static,v]),(0,o.useEffect)(()=>{if(M||!s||I!==B.Open||!K.current)return;let e=(0,F.getActiveElement)(K.current);K.current.contains(e)||(0,_.focusIn)(K.current,_.Focus.First)},[M,s,K.current,I]);let eo=(0,g.useSlot)({open:I===B.Open,close:v.actions.refocusableClose}),ei=(0,T.mergeProps)(U?$():{},{ref:Y,id:r,onKeyDown:es,onBlur:s&&I===B.Open?e=>{var t,n,r,s,o;let i=e.relatedTarget;i&&K.current&&(null!=(t=K.current)&&t.contains(i)||(v.actions.close(),(null!=(r=null==(n=j.current)?void 0:n.contains)&&r.call(n,i)||null!=(o=null==(s=N.current)?void 0:s.contains)&&o.call(s,i))&&i.focus({preventScroll:!0})))}:void 0,tabIndex:-1,style:{...m.style,...W,"--button-width":(0,a.useElementSize)(en,L,!0).width},...(0,x.transitionDataAttributes)(er)}),ea=(0,S.useTabDirection)(),el=(0,l.useEvent)(()=>{let e=K.current;e&&(0,O.match)(ea.current,{[S.Direction.Forwards]:()=>{var t;(0,_.focusIn)(e,_.Focus.First)===_.FocusResult.Error&&(null==(t=v.state.afterPanelSentinel.current)||t.focus())},[S.Direction.Backwards]:()=>{var e;null==(e=v.state.button)||e.focus({preventScroll:!0})}})}),eu=(0,l.useEvent)(()=>{let e=K.current;e&&(0,O.match)(ea.current,{[S.Direction.Forwards]:()=>{var e;if(!v.state.button)return;let t=null!=(e=(0,F.getRootNode)(v.state.button))?e:document.body,n=(0,_.getFocusableElements)(t),r=n.indexOf(v.state.button),s=n.slice(0,r+1),o=[...n.slice(r+1),...s];for(let e of o.slice())if("true"===e.dataset.headlessuiFocusGuard||null!=Q&&Q.contains(e)){let t=o.indexOf(e);-1!==t&&o.splice(t,1)}(0,_.focusIn)(o,_.Focus.First,{sorted:!1})},[S.Direction.Backwards]:()=>{var t;(0,_.focusIn)(e,_.Focus.Previous)===_.FocusResult.Error&&(null==(t=v.state.button)||t.focus())}})}),ec=(0,T.useRender)();return o.default.createElement(w.ResetOpenClosedProvider,null,o.default.createElement(G.Provider,{value:r},o.default.createElement(C.CloseProvider,{value:v.actions.refocusableClose},o.default.createElement(A.Portal,{enabled:!!u&&(e.static||en),ownerDocument:J},en&&k&&o.default.createElement(P.Hidden,{id:z,ref:j,features:P.HiddenFeatures.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:el}),ec({ourProps:ei,theirProps:m,slot:eo,defaultTag:"div",features:X,visible:en,name:"Popover.Panel"}),en&&k&&o.default.createElement(P.Hidden,{id:H,ref:N,features:P.HiddenFeatures.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:eu})))))}),er=(0,T.forwardRefWithAs)(function(e,t){let n=(0,o.useRef)(null),r=(0,y.useSyncRefs)(n,t),[s,i]=(0,o.useState)([]),a=(0,l.useEvent)(e=>{i(t=>{let n=t.indexOf(e);if(-1!==n){let e=t.slice();return e.splice(n,1),e}return t})}),u=(0,l.useEvent)(e=>(i(t=>[...t,e]),()=>a(e))),c=(0,l.useEvent)(()=>{var e;let t=(0,F.getRootNode)(n.current);if(!t)return!1;let r=(0,F.getActiveElement)(n.current);return!!(null!=(e=n.current)&&e.contains(r))||s.some(e=>{var n,s;return(null==(n=t.getElementById(e.buttonId.current))?void 0:n.contains(r))||(null==(s=t.getElementById(e.panelId.current))?void 0:s.contains(r))})}),d=(0,l.useEvent)(e=>{for(let t of s)t.buttonId.current!==e&&t.close()}),p=(0,o.useMemo)(()=>({registerPopover:u,unregisterPopover:a,isFocusWithinPopoverGroup:c,closeOthers:d}),[u,a,c,d]),f=(0,g.useSlot)({}),h=(0,T.useRender)();return o.default.createElement(v.MainTreeProvider,null,o.default.createElement(W.Provider,{value:p},h({ourProps:{ref:r},theirProps:e,slot:f,defaultTag:"div",name:"Popover.Group"})))}),es=Object.assign(Y,{Button:J,Backdrop:et,Overlay:ee,Panel:en,Group:er});e.s(["Popover",0,es,"PopoverBackdrop",0,et,"PopoverButton",0,J,"PopoverGroup",0,er,"PopoverOverlay",0,ee,"PopoverPanel",0,en],998307)},368497,e=>{"use strict";var t=e.i(783222),n=e.i(433336),r=e.i(271645),s=e.i(394487),o=e.i(503269),i=e.i(214520),a=e.i(746725),l=e.i(914189),u=e.i(144279),c=e.i(255743),d=e.i(294316),p=e.i(601893),f=e.i(140721),h=e.i(942803),m=e.i(233538),v=e.i(628144),b=e.i(694421),g=e.i(700020),y=e.i(35889),S=e.i(998348),x=e.i(722678);let C=(0,r.createContext)(null);C.displayName="GroupContext";let E=r.Fragment,P=(0,g.forwardRefWithAs)(function(e,v){var E;let P=(0,r.useId)(),w=(0,h.useProvidedId)(),R=(0,p.useDisabled)(),{id:k=w||`headlessui-switch-${P}`,disabled:I=R||!1,checked:_,defaultChecked:O,onChange:F,name:T,value:D,form:A,autoFocus:L=!1,...M}=e,j=(0,r.useContext)(C),[N,B]=(0,r.useState)(null),z=(0,r.useRef)(null),H=(0,d.useSyncRefs)(z,v,null===j?null:j.setSwitch,B),K=(0,i.useDefaultValue)(O),[U,V]=(0,o.useControllable)(_,F,null!=K&&K),q=(0,a.useDisposables)(),[W,$]=(0,r.useState)(!1),G=(0,l.useEvent)(()=>{$(!0),null==V||V(!U),q.nextFrame(()=>{$(!1)})}),Q=(0,l.useEvent)(e=>{if((0,m.isDisabledReactIssue7711)(e.currentTarget))return e.preventDefault();e.preventDefault(),G()}),Z=(0,l.useEvent)(e=>{e.key===S.Keys.Space?(e.preventDefault(),G()):e.key===S.Keys.Enter&&(0,b.attemptSubmit)(e.currentTarget)}),X=(0,l.useEvent)(e=>e.preventDefault()),Y=(0,x.useLabelledBy)(),J=(0,y.useDescribedBy)(),{isFocusVisible:ee,focusProps:et}=(0,t.useFocusRing)({autoFocus:L}),{isHovered:en,hoverProps:er}=(0,n.useHover)({isDisabled:I}),{pressed:es,pressProps:eo}=(0,s.useActivePress)({disabled:I}),ei=(0,c.useSlot)({checked:U,disabled:I,hover:en,focus:ee,active:es,autofocus:L,changing:W}),ea=(0,g.mergeProps)({id:k,ref:H,role:"switch",type:(0,u.useResolveButtonType)(e,N),tabIndex:-1===e.tabIndex?0:null!=(E=e.tabIndex)?E:0,"aria-checked":U,"aria-labelledby":Y,"aria-describedby":J,disabled:I||void 0,autoFocus:L,onClick:Q,onKeyUp:Z,onKeyPress:X},et,er,eo),el=(0,r.useCallback)(()=>
2{if(void 0!==K)return null==V?void 0:V(K)},[V,K]),eu=(0,g.useRender)();return r.default.createElement(r.default.Fragment,null,null!=T&&r.default.createElement(f.FormFields,{disabled:I,data:{[T]:D||"on"},overrides:{type:"checkbox",checked:U},form:A,onReset:el}),eu({ourProps:ea,theirProps:M,slot:ei,defaultTag:"button",name:"Switch"}))}),w=function(e){var t;let[n,s]=(0,r.useState)(null),[o,i]=(0,x.useLabels)(),[a,l]=(0,y.useDescriptions)(),u=(0,r.useMemo)(()=>({switch:n,setSwitch:s}),[n,s]),c=(0,g.useRender)();return r.default.createElement(l,{name:"Switch.Description",value:a},r.default.createElement(i,{name:"Switch.Label",value:o,props:{htmlFor:null==(t=u.switch)?void 0:t.id,onClick(e){n&&(v.isHTMLLabelElement(e.currentTarget)&&e.preventDefault(),n.click(),n.focus({preventScroll:!0}))}}},r.default.createElement(C.Provider,{value:u},c({ourProps:{},theirProps:e,slot:{},defaultTag:E,name:"Switch.Group"}))))},R=x.Label,k=y.Description,I=Object.assign(P,{Group:w,Label:R,Description:k});e.s(["Switch",0,I,"SwitchDescription",0,k,"SwitchGroup",0,w,"SwitchLabel",0,R])},970554,e=>{"use strict";let t,n,r;var s=e.i(783222),o=e.i(433336),i=e.i(271645),a=e.i(394487),l=e.i(914189),u=e.i(835696),c=e.i(941444),d=e.i(144279),p=e.i(255743),f=e.i(294316),h=e.i(553521),m=e.i(2788);function v({onFocus:e}){let[t,n]=(0,i.useState)(!0),r=(0,h.useIsMounted)();return t?i.default.createElement(m.Hidden,{as:"button",type:"button",features:m.HiddenFeatures.Focusable,onFocus:t=>{t.preventDefault();let s,o=50;s=requestAnimationFrame(function t(){if(o--<=0){s&&cancelAnimationFrame(s);return}if(e()){if(cancelAnimationFrame(s),!r.current)return;n(!1);return}s=requestAnimationFrame(t)})}}):null}var b=e.i(652265),g=e.i(397701),y=e.i(368578),S=e.i(402155),x=e.i(700020);let C=i.createContext(null);function E({children:e}){let t=i.useRef({groups:new Map,get(e,t){var n;let r=this.groups.get(e);r||(r=new Map,this.groups.set(e,r));let s=null!=(n=r.get(t))?n:0;return r.set(t,s+1),[Array.from(r.keys()).indexOf(t),function(){let e=r.get(t);e>1?r.set(t,e-1):r.delete(t)}]}});return i.createElement(C.Provider,{value:t},e)}function P(e){let t=i.useContext(C);if(!t)throw Error("You must wrap your component in a <StableCollection>");let n=i.useId(),[r,s]=t.current.get(e,n);return i.useEffect(()=>s,[]),r}var w=e.i(998348),R=((t=R||{})[t.Forwards=0]="Forwards",t[t.Backwards=1]="Backwards",t),k=((n=k||{})[n.Less=-1]="Less",n[n.Equal=0]="Equal",n[n.Greater=1]="Greater",n),I=((r=I||{})[r.SetSelectedIndex=0]="SetSelectedIndex",r[r.RegisterTab=1]="RegisterTab",r[r.UnregisterTab=2]="UnregisterTab",r[r.RegisterPanel=3]="RegisterPanel",r[r.UnregisterPanel=4]="UnregisterPanel",r);let _={0(e,t){var n;let r=(0,b.sortByDomNode)(e.tabs,e=>e.current),s=(0,b.sortByDomNode)(e.panels,e=>e.current),o=r.filter(e=>{var t;return!(null!=(t=e.current)&&t.hasAttribute("disabled"))}),i={...e,tabs:r,panels:s};if(t.index<0||t.index>r.length-1){let n=(0,g.match)(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,0:()=>(0,g.match)(Math.sign(t.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(0===o.length)return i;let s=(0,g.match)(n,{0:()=>r.indexOf(o[0]),1:()=>r.indexOf(o[o.length-1])});return{...i,selectedIndex:-1===s?e.selectedIndex:s}}let a=r.slice(0,t.index),l=[...r.slice(t.index),...a].find(e=>o.includes(e));if(!l)return i;let u=null!=(n=r.indexOf(l))?n:e.selectedIndex;return -1===u&&(u=e.selectedIndex),{...i,selectedIndex:u}},1(e,t){if(e.tabs.includes(t.tab))return e;let n=e.tabs[e.selectedIndex],r=(0,b.sortByDomNode)([...e.tabs,t.tab],e=>e.current),s=e.selectedIndex;return e.info.current.isControlled||-1===(s=r.indexOf(n))&&(s=e.selectedIndex),{...e,tabs:r,selectedIndex:s}},2:(e,t)=>({...e,tabs:e.tabs.filter(e=>e!==t.tab)}),3:(e,t)=>e.panels.includes(t.panel)?e:{...e,panels:(0,b.sortByDomNode)([...e.panels,t.panel],e=>e.current)},4:(e,t)=>({...e,panels:e.panels.filter(e=>e!==t.panel)})},O=(0,i.createContext)(null);function F(e){let t=(0,i.useContext)(O);if(null===t){let t=Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,F),t}return t}O.displayName="TabsDataContext";let T=(0,i.createContext)(null);function D(e){let t=(0,i.useContext)(T);if(null===t){let t=Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,D),t}return t}function A(e,t){return(0,g.match)(t.type,_,e,t)}T.displayName="TabsActionsContext";let L=x.RenderFeatures.RenderStrategy|x.RenderFeatures.Static,M=(0,x.forwardRefWithAs)(function(e,t){var n,r;let c=(0,i.useId)(),{id:h=`headlessui-tabs-tab-${c}`,disabled:m=!1,autoFocus:v=!1,...C}=e,{orientation:E,activation:R,selectedIndex:k,tabs:I,panels:_}=F("Tab"),O=D("Tab"),T=F("Tab"),[A,L]=(0,i.useState)(null),M=(0,i.useRef)(null),j=(0,f.useSyncRefs)(M,t,L);(0,u.useIsoMorphicEffect)(()=>O.registerTab(M),[O,M]);let N=P("tabs"),B=I.indexOf(M);-1===B&&(B=N);let z=B===k,H=(0,l.useEvent)(e=>{let t=e();if(t===b.FocusResult.Success&&"auto"===R){let e=(0,S.getActiveElement)(M.current),t=T.tabs.findIndex(t=>t.current===e);-1!==t&&O.change(t)}
2return t}),K=(0,l.useEvent)(e=>{let t=I.map(e=>e.current).filter(Boolean);if(e.key===w.Keys.Space||e.key===w.Keys.Enter){e.preventDefault(),e.stopPropagation(),O.change(B);return}switch(e.key){case w.Keys.Home:case w.Keys.PageUp:return e.preventDefault(),e.stopPropagation(),H(()=>(0,b.focusIn)(t,b.Focus.First));case w.Keys.End:case w.Keys.PageDown:return e.preventDefault(),e.stopPropagation(),H(()=>(0,b.focusIn)(t,b.Focus.Last))}if(H(()=>(0,g.match)(E,{vertical:()=>e.key===w.Keys.ArrowUp?(0,b.focusIn)(t,b.Focus.Previous|b.Focus.WrapAround):e.key===w.Keys.ArrowDown?(0,b.focusIn)(t,b.Focus.Next|b.Focus.WrapAround):b.FocusResult.Error,horizontal:()=>e.key===w.Keys.ArrowLeft?(0,b.focusIn)(t,b.Focus.Previous|b.Focus.WrapAround):e.key===w.Keys.ArrowRight?(0,b.focusIn)(t,b.Focus.Next|b.Focus.WrapAround):b.FocusResult.Error}))===b.FocusResult.Success)return e.preventDefault()}),U=(0,i.useRef)(!1),V=(0,l.useEvent)(()=>{var e;U.current||(U.current=!0,null==(e=M.current)||e.focus({preventScroll:!0}),O.change(B),(0,y.microTask)(()=>{U.current=!1}))}),q=(0,l.useEvent)(e=>{e.preventDefault()}),{isFocusVisible:W,focusProps:$}=(0,s.useFocusRing)({autoFocus:v}),{isHovered:G,hoverProps:Q}=(0,o.useHover)({isDisabled:m}),{pressed:Z,pressProps:X}=(0,a.useActivePress)({disabled:m}),Y=(0,p.useSlot)({selected:z,hover:G,active:Z,focus:W,autofocus:v,disabled:m}),J=(0,x.mergeProps)({ref:j,onKeyDown:K,onMouseDown:q,onClick:V,id:h,role:"tab",type:(0,d.useResolveButtonType)(e,A),"aria-controls":null==(r=null==(n=_[B])?void 0:n.current)?void 0:r.id,"aria-selected":z,tabIndex:z?0:-1,disabled:m||void 0,autoFocus:v},$,Q,X);return(0,x.useRender)()({ourProps:J,theirProps:C,slot:Y,defaultTag:"button",name:"Tabs.Tab"})}),j=(0,x.forwardRefWithAs)(function(e,t){let{defaultIndex:n=0,vertical:r=!1,manual:s=!1,onChange:o,selectedIndex:a=null,...d}=e,h=r?"vertical":"horizontal",m=s?"manual":"auto",g=null!==a,y=(0,c.useLatestValue)({isControlled:g}),S=(0,f.useSyncRefs)(t),[C,P]=(0,i.useReducer)(A,{info:y,selectedIndex:null!=a?a:n,tabs:[],panels:[]}),w=(0,p.useSlot)({selectedIndex:C.selectedIndex}),R=(0,c.useLatestValue)(o||(()=>{})),k=(0,c.useLatestValue)(C.tabs),I=(0,i.useMemo)(()=>({orientation:h,activation:m,...C}),[h,m,C]),_=(0,l.useEvent)(e=>(P({type:1,tab:e}),()=>P({type:2,tab:e}))),F=(0,l.useEvent)(e=>(P({type:3,panel:e}),()=>P({type:4,panel:e}))),D=(0,l.useEvent)(e=>{L.current!==e&&R.current(e),g||P({type:0,index:e})}),L=(0,c.useLatestValue)(g?e.selectedIndex:C.selectedIndex),M=(0,i.useMemo)(()=>({registerTab:_,registerPanel:F,change:D}),[]);(0,u.useIsoMorphicEffect)(()=>{P({type:0,index:null!=a?a:n})},[a]),(0,u.useIsoMorphicEffect)(()=>{if(void 0===L.current||C.tabs.length<=0)return;let e=(0,b.sortByDomNode)(C.tabs,e=>e.current);e.some((e,t)=>C.tabs[t]!==e)&&D(e.indexOf(C.tabs[L.current]))});let j=(0,x.useRender)();return i.default.createElement(E,null,i.default.createElement(T.Provider,{value:M},i.default.createElement(O.Provider,{value:I},I.tabs.length<=0&&i.default.createElement(v,{onFocus:()=>{var e,t;for(let n of k.current)if((null==(e=n.current)?void 0:e.tabIndex)===0)return null==(t=n.current)||t.focus(),!0;return!1}}),j({ourProps:{ref:S},theirProps:d,slot:w,defaultTag:"div",name:"Tabs"}))))}),N=(0,x.forwardRefWithAs)(function(e,t){let{orientation:n,selectedIndex:r}=F("Tab.List"),s=(0,f.useSyncRefs)(t),o=(0,p.useSlot)({selectedIndex:r});return(0,x.useRender)()({ourProps:{ref:s,role:"tablist","aria-orientation":n},theirProps:e,slot:o,defaultTag:"div",name:"Tabs.List"})}),B=(0,x.forwardRefWithAs)(function(e,t){let{selectedIndex:n}=F("Tab.Panels"),r=(0,f.useSyncRefs)(t),s=(0,p.useSlot)({selectedIndex:n});return(0,x.useRender)()({ourProps:{ref:r},theirProps:e,slot:s,defaultTag:"div",name:"Tabs.Panels"})}),z=(0,x.forwardRefWithAs)(function(e,t){var n,r,o,a;let l=(0,i.useId)(),{id:c=`headlessui-tabs-panel-${l}`,tabIndex:d=0,...h}=e,{selectedIndex:v,tabs:b,panels:g}=F("Tab.Panel"),y=D("Tab.Panel"),S=(0,i.useRef)(null),C=(0,f.useSyncRefs)(S,t);(0,u.useIsoMorphicEffect)(()=>y.registerPanel(S),[y,S]);let E=P("panels"),w=g.indexOf(S);-1===w&&(w=E);let R=w===v,{isFocusVisible:k,focusProps:I}=(0,s.useFocusRing)(),_=(0,p.useSlot)({selected:R,focus:k}),O=(0,x.mergeProps)({ref:C,id:c,role:"tabpanel","aria-labelledby":null==(r=null==(n=b[w])?void 0:n.current)?void 0:r.id,tabIndex:R?d:-1},I),T=(0,x.useRender)();return R||null!=(o=h.unmount)&&!o||null!=(a=h.static)&&a?T({ourProps:O,theirProps:h,slot:_,defaultTag:"div",features:L,visible:R,name:"Tabs.Panel"}):i.default.createElement(m.Hidden,{"aria-hidden":"true",...O})}),H=Object.assign(M,{Group:j,List:N,Panels:B,Panel:z});e.s(["Tab",0,H,"TabGroup",0,j,"TabList",0,N,"TabPanel",0,z,"TabPanels",0,B],970554)},436289,e=>{"use strict";var t=e.i(271645);function n(e,t){return null!==e&&null!==t&&"object"==typeof e&&"object"==typeof t&&"id"in e&&"id"in t?e.id===t.id:e===t}e.s(["useByComparator",0,function(e=n){return(0,t.useCallback)((t,n)=>"string"==typeof e?(null==t?void 0:t[e])===(null==n?void 0:n[e]):e(t,n),[e])}])},503269,214520,e=>{"use strict";var t=e.i(271645),n=e.i(174080),r=e.i(914189);e.s(["useControllable",0,function(e,s,o){let[i,a]=(0,t.useState)(o),l=void 0!==e,u=(0,t.useRef)(l),c=(0,t.useRef)(!1),d=(0,t.useRef)(!1);return!l||u.current||c.current?l||!u.current||d.current||(d.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.")):(c.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.useEvent)(e=>(l||(0,n.flushSync)(()=>a(e)),null==s?void 0:s(e)))]}],503269),e.s(["useDefaultValue",0,function(e){let[n]=(0,t.useState)(e);return n}],214520)},140721,694421,e=>{"use strict";var t=e.i(271645),n=e.i(174080),r=e.i(746725);function s(e={},n=null,r=[]){for(let[i,a]of Object.entries(e))!function e(n,r,i){if(Array.isArray(i))for(let[t,s]of i.entries())e(n,o(r,t.toString()),s);else i instanceof Date?n.push([r,i.toISOString()]):"boolean"==typeof i?n.push([r,i?"1":"0"]):"string"==typeof i?n.push([r,i]):"number"==typeof i?n.push([r,`${i}`]):null==i?n.push([r,""]):function(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}(i)&&!(0,t.isValidElement)(i)&&s(i,r,n)}(r,o(n,i),a);return r}function o(e,t){return e?e+"["+t+"]":t}e.s(["attemptSubmit",0,function(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))return void t.click();null==(n=r.requestSubmit)||n.call(r)}},"objectToFormEntries",0,s],694421);var i=e.i(700020),a=e.i(2788);let l=(0,t.createContext)(null);function u({children:e}){let r=(0,t.useContext)(l);if(!r)return t.default.createElement(t.default.Fragment,null,e);let{target:s}=r;return s?(0,n.createPortal)(t.default.createElement(t.default.Fragment,null,e),s):null}function c({setForm:e,formId:n}){return(0,t.useEffect)(()=>
2{if(n){let t=document.getElementById(n);t&&e(t)}},[e,n]),n?null:t.default.createElement(a.Hidden,{features:a.HiddenFeatures.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:t=>{if(!t)return;let n=t.closest("form");n&&e(n)}})}e.s(["FormFields",0,function({data:e,form:n,disabled:o,onReset:l,overrides:d}){let[p,f]=(0,t.useState)(null),h=(0,r.useDisposables)();return(0,t.useEffect)(()=>{if(l&&p)return h.addEventListener(p,"reset",l)},[p,n,l]),t.default.createElement(u,null,t.default.createElement(c,{setForm:f,formId:n}),s(e).map(([e,r])=>t.default.createElement(a.Hidden,{features:a.HiddenFeatures.Hidden,...(0,i.compact)({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:n,disabled:o,name:e,value:r,...d})})))},"FormFieldsProvider",0,function(e){let[n,r]=(0,t.useState)(null);return t.default.createElement(l.Provider,{value:{target:n}},e.children,t.default.createElement(a.Hidden,{features:a.HiddenFeatures.Hidden,ref:r}))}],140721)},904016,e=>{"use strict";var t=e.i(271645);let n=t.default.forwardRef(function({children:e,freeze:n},s){let o=r(n,e);return(0,t.isValidElement)(o)?(0,t.cloneElement)(o,{ref:s}):t.default.createElement(t.default.Fragment,null,o)});function r(e,n){let[r,s]=(0,t.useState)(n);return e||r===n||s(n),e?r:n}e.s(["Frozen",0,n,"useFrozenData",0,r])},576700,e=>{"use strict";var t=e.i(271645),n=e.i(207670),r=e.i(519130),s=e.i(884364),o=e.i(261722),i=e.i(50915),a=e.i(699844),l=e.i(390290),u=e.i(549728),c=e.i(540672),d=e.i(319727);function p(e){return(0,d.default)("MuiCircularProgress",e)}(0,c.default)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var f=e.i(843476);let h=s.keyframes`
3  0% {
4    transform: rotate(0deg);
5  }
6
7  100% {
8    transform: rotate(360deg);
9  }
10`,m=s.keyframes`
11  0% {
12    stroke-dasharray: 1px, 200px;
13    stroke-dashoffset: 0;
14  }
15
16  50% {
17    stroke-dasharray: 100px, 200px;
18    stroke-dashoffset: -15px;
19  }
20
21  100% {
22    stroke-dasharray: 100px, 200px;
23    stroke-dashoffset: -125px;
24  }
25`,v="string"!=typeof h?s.css`
26        animation: ${h} 1.4s linear infinite;
27      `:null,b="string"!=typeof m?s.css`
28        animation: ${m} 1.4s ease-in-out infinite;
29      `:null,g=(0,o.styled)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`color${(0,l.default)(n.color)}`]]}})((0,i.default)(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:v||{animation:`${h} 1.4s linear infinite`}},...Object.entries(e.palette).filter((0,u.default)()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),y=(0,o.styled)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),S=(0,o.styled)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.circle,t[`circle${(0,l.default)(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})((0,i.default)(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink,style:b||{animation:`${m} 1.4s ease-in-out infinite`}}]}))),x=t.forwardRef(function(e,t){let s=(0,a.useDefaultProps)({props:e,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:u=!1,size:c=40,style:d,thickness:h=3.6,value:m=0,variant:v="indeterminate",...b}=s,x={...s,color:i,disableShrink:u,size:c,thickness:h,value:m,variant:v},C=(e=>{let{classes:t,variant:n,color:s,disableShrink:o}=e,i={root:["root",n,`color${(0,l.default)(s)}`],svg:["svg"],circle:["circle",`circle${(0,l.default)(n)}`,o&&"circleDisableShrink"]};return(0,r.default)(i,p,t)})(x),E={},P={},w={};if("determinate"===v){let e=2*Math.PI*((44-h)/2);E.strokeDasharray=e.toFixed(3),w["aria-valuenow"]=Math.round(m),E.strokeDashoffset=`${((100-m)/100*e).toFixed(3)}px`,P.transform="rotate(-90deg)"}return(0,f.jsx)(g,{className:(0,n.default)(C.root,o),style:{width:c,height:c,...P,...d},ownerState:x,ref:t,role:"progressbar",...w,...b,children:(0,f.jsx)(y,{className:C.svg,ownerState:x,viewBox:"22 22 44 44",children:(0,f.jsx)(S,{className:C.circle,style:E,ownerState:x,cx:44,cy:44,r:(44-h)/2,fill:"none",strokeWidth:h})})})});e.s(["default",0,x],576700)},700756,e=>{"use strict";var t=e.i(576700);e.s(["CircularProgress",()=>t.default])},940374,e=>{"use strict";var t=e.i(654963);e.s(["Popper",()=>t.default])},549728,e=>{"use strict";e.s(["default",0,function(e=[]){return([,t])=>t&&function(e,t=[]){if("string"!=typeof e.main)return!1;for(let n of t)if(!e.hasOwnProperty(n)||"string"!=typeof e[n])return!1;return!0}(t,e)}])},522016,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={default:function(){return b},useLinkStatus:function(){return y}};for(var s in r)Object.defineProperty(n,s,{enumerable:!0,get:r[s]});let o=e.r(190809),i=e.r(843476),a=o._(e.r(271645)),l=e.r(195057),u=e.r(8372),c=e.r(818581),d=e.r(718967),p=e.r(405550),f=e.r(388540),h=e.r(91949),m=e.r(573668),v=e.r(509396);function b(t){var n;let r,s,o,[b,y]=(0,a.useOptimistic)(h.IDLE_LINK_STATUS),S=(0,a.useRef)(null),{href:x,as:C,children:E,prefetch:P=null,passHref:w,replace:R,shallow:k,scroll:I,onClick:_,onMouseEnter:O,onTouchStart:F,legacyBehavior:T=!1,onNavigate:D,transitionTypes:A,ref:L,unstable_dynamicOnHover:M,...j}=t;r=E,T&&("string"==typeof r||"number"==typeof r)&&(r=(0,i.jsx)("a",{children:r}));let N=a.default.useContext(u.AppRouterContext),B=!1!==P,z=!1===P?"none":!0===P?"full":"auto",H="none"!==z?"auto"===z?v.FetchStrategy.PPR:v.FetchStrategy.Full:v.FetchStrategy.PPR,K="string"==typeof(n=C||x)?n:(0,l.formatUrl)(n);if(T){if(r?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>
29` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});s=a.default.Children.only(r)}let U=T?s&&"object"==typeof s&&s.ref:L,V,q=a.default.useCallback(e=>(null!==N&&(S.current=(0,h.mountLinkInstance)(e,K,N,H,B,y,V)),()=>{S.current&&((0,h.unmountLinkForCurrentNavigation)(S.current),S.current=null),(0,h.unmountPrefetchableInstance)(e)}),[B,K,N,H,y,V]),W={ref:(0,c.useMergedRef)(q,U),onClick(t){T||"function"!=typeof _||_(t),T&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(t),!N||t.defaultPrevented||function(t,n,r,s,o,i,l,u="none"){if("u">typeof window){let c,{nodeName:d}=t.currentTarget;if("A"===d.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(n)){s&&(t.preventDefault(),location.replace(n));return}if(t.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:p}=e.r(699781);a.default.startTransition(()=>{p(n,s?"replace":"push",!1===o?f.ScrollBehavior.NoScroll:f.ScrollBehavior.Default,r.current,l,u)})}}(t,K,S,R,I,D,A,z)},onMouseEnter(e){T||"function"!=typeof O||O(e),T&&s.props&&"function"==typeof s.props.onMouseEnter&&s.props.onMouseEnter(e),N&&B&&(0,h.onNavigationIntent)(e.currentTarget,!0===M)},onTouchStart:function(e){T||"function"!=typeof F||F(e),T&&s.props&&"function"==typeof s.props.onTouchStart&&s.props.onTouchStart(e),N&&B&&(0,h.onNavigationIntent)(e.currentTarget,!0===M)}};return(0,d.isAbsoluteUrl)(K)?W.href=K:T&&!w&&("a"!==s.type||"href"in s.props)||(W.href=(0,p.addBasePath)(K)),o=T?a.default.cloneElement(s,W):(0,i.jsx)("a",{...j,...W,children:r}),(0,i.jsx)(g.Provider,{value:b,children:o})}let g=(0,a.createContext)(h.IDLE_LINK_STATUS),y=()=>(0,a.useContext)(g);("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},516015,(e,t,n)=>{},898547,(e,t,n)=>{var r=e.i(247167);e.r(516015);var s=e.r(271645),o=s&&"object"==typeof s&&"default"in s?s:{default:s},i=void 0!==r.default&&r.default.env&&!0,a=function(e){return"[object String]"===Object.prototype.toString.call(e)},l=function(){function e(e){var t=void 0===e?{}:e,n=t.name,r=void 0===n?"stylesheet":n,s=t.optimizeForSpeed,o=void 0===s?i:s;u(a(r),"`name` must be a string"),this._name=r,this._deletedRulePlaceholder="#"+r+"-deleted-rule____{}",u("boolean"==typeof o,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=o,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var l="u">typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=l?l.getAttribute("content"):null}var t,n=e.prototype;return n.setOptimizeForSpeed=function(e){u("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),u(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},n.isOptimizeForSpeed=function(){return this._optimizeForSpeed},n.inject=function(){var e=this;if(u(!this._injected,"sheet already injected"),this._injected=!0,"u">typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(i||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,n){return"number"==typeof n?e._serverSheet.cssRules[n]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),n},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},n.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},n.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},n.insertRule=function(e,t){if(u(a(e),"`insertRule` accepts only strings"),"u"<typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;
29if(this._optimizeForSpeed){var n=this.getSheet();"number"!=typeof t&&(t=n.cssRules.length);try{n.insertRule(e,t)}catch(t){return i||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var r=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,r))}return this._rulesCount++},n.replaceRule=function(e,t){if(this._optimizeForSpeed||"u"<typeof window){var n="u">typeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!n.cssRules[e])return e;n.deleteRule(e);try{n.insertRule(t,e)}catch(r){i||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),n.insertRule(this._deletedRulePlaceholder,e)}}else{var r=this._tags[e];u(r,"old rule at index `"+e+"` not found"),r.textContent=t}return e},n.deleteRule=function(e){if("u"<typeof window)return void this._serverSheet.deleteRule(e);if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];u(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},n.flush=function(){this._injected=!1,this._rulesCount=0,"u">
29typeof window?(this._tags.forEach(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},n.cssRules=function(){var e=this;return"u"<typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,n){return n?t=t.concat(Array.prototype.map.call(e.getSheetForTag(n).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},n.makeStyleTag=function(e,t,n){t&&u(a(t),"makeStyleTag accepts only strings as second parameter");var r=document.createElement("style");this._nonce&&r.setAttribute("nonce",this._nonce),r.type="text/css",r.setAttribute("data-"+e,""),t&&r.appendChild(document.createTextNode(t));var s=document.head||document.getElementsByTagName("head")[0];return n?s.insertBefore(r,n):s.appendChild(r),r},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function u(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var c=function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0},d={};function p(e,t){if(!t)return"jsx-"+e;var n=String(t),r=e+n;return d[r]||(d[r]="jsx-"+c(e+"-"+n)),d[r]}function f(e,t){"u"<typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var n=e+t;return d[n]||(d[n]=t.replace(/__jsx-style-dynamic-selector/g,e)),d[n]}var h=function(){function e(e){var t=void 0===e?{}:e,n=t.styleSheet,r=void 0===n?null:n,s=t.optimizeForSpeed,o=void 0!==s&&s;this._sheet=r||new l({name:"styled-jsx",optimizeForSpeed:o}),this._sheet.inject(),r&&"boolean"==typeof o&&(this._sheet.setOptimizeForSpeed(o),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"u">typeof window&&!this._fromServer&&(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var n=this.getIdAndRules(e),r=n.styleId,s=n.rules;if(r in this._instancesCounts){this._instancesCounts[r]+=1;return}var o=s.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[r]=o,this._instancesCounts[r]=1},t.remove=function(e){var t=this,n=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(n in this._instancesCounts,"styleId: `"+n+"` not found"),this._instancesCounts[n]-=1,this._instancesCounts[n]<1){var r=this._fromServer&&this._fromServer[n];r?(r.parentNode.removeChild(r),delete this._fromServer[n]):(this._indices[n].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[n]),delete this._instancesCounts[n]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],n=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return n[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,n;return t=this.cssRules(),void 0===(n=e)&&(n={}),t.map(function(e){var t=e[0],r=e[1];return o.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:n.nonce?n.nonce:void 0,dangerouslySetInnerHTML:{__html:r}})})},t.getIdAndRules=function(e){var t=e.children,n=e.dynamic,r=e.id;if(n){var s=p(r,n);return{styleId:s,rules:Array.isArray(t)?t.map(function(e){return f(s,e)}):[f(s,t)]}}return{styleId:p(r),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),m=s.createContext(null);function v(){return new h}function b(){return s.useContext(m)}m.displayName="StyleSheetContext";var g=o.default.useInsertionEffect||o.default.useLayoutEffect,y="u">typeof window?v():void 0;function S(e){var t=y||b();return t&&("u"<typeof window?t.add(e):g(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}S.dynamic=function(e){return e.map(function(e){return p(e[0],e[1])}).join(" ")},n.StyleRegistry=function(e){var t=e.registry,n=e.children,r=s.useContext(m),i=s.useState(function(){return r||t||v()})[0];return o.default.createElement(m.Provider,{value:i},n)}
29,n.createStyleRegistry=v,n.style=S,n.useStyleRegistry=b},437902,(e,t,n)=>{t.exports=e.r(898547).style},871182,e=>{e.q("/_next/static/immutable/media/add-white.2y-fd6k5og_20.svg")},194294,e=>{e.q("/_next/static/immutable/media/add.36nfhdy2ye17x.svg")},761708,e=>{"use strict";let t={src:e.i(194294).default,width:18,height:19,blurWidth:0,blurHeight:0};e.s(["default",0,t])},715506,e=>{e.q("/_next/static/immutable/media/arrow-ios.2-5i6m0v49ka6.svg")},829260,e=>{e.q("/_next/static/immutable/media/bar-chart.0tiqmrft9eioc.svg")},718883,e=>{e.q("/_next/static/immutable/media/bolt.0u1wtqf4t13xl.svg")},765993,e=>{e.q("/_next/static/immutable/media/book-gray.22akji_ewwsbj.svg")},202408,e=>{e.q("/_next/static/immutable/media/check.0pt3aga7pdx-g.svg")},220062,e=>{"use strict";let t={src:e.i(202408).default,width:8,height:6,blurWidth:0,blurHeight:0};e.s(["default",0,t])},684237,e=>{e.q("/_next/static/immutable/media/close-gray.2bayzjo1xm-k_.svg")},83519,e=>{"use strict";let t={src:e.i(684237).default,width:16,height:16,blurWidth:0,blurHeight:0};e.s(["default",0,t])},843278,e=>{e.q("/_next/static/immutable/media/close-keyword.3v5au7k8n36g6.svg")},143389,e=>{"use strict";var t=e.i(843476);e.s(["CloseSmallSVG",0,e=>(0,t.jsx)("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,t.jsx)("path",{d:"M0.73334 7.88142L0.118652 7.26673L3.38532 4.00007L0.118652 0.733401L0.73334 0.118713L4.00001 3.38538L7.26667 0.118713L7.88136 0.733401L4.61469 4.00007L7.88136 7.26673L7.26667 7.88142L4.00001 4.61476L0.73334 7.88142Z",fill:"currentColor"})})])},285325,e=>{e.q("/_next/static/immutable/media/close.1xs4oe16u3rgv.svg")},785034,e=>{"use strict";let t={src:e.i(285325).default,width:14,height:14,blurWidth:0,blurHeight:0};e.s(["default",0,t])},750629,e=>{e.q("/_next/static/immutable/media/content-copy.1bhqdehq_n_6w.svg")},123889,e=>{e.q("/_next/static/immutable/media/empty-graph.1w71092watr7x.svg")},442271,e=>{e.q("/_next/static/immutable/media/history-2.3_idwucylzqv0.svg")},149122,e=>{e.q("/_next/static/immutable/media/info-bold.2f0n5yzz7sxgy.svg")},653887,e=>{e.q("/_next/static/immutable/media/info.0mwle9qxycvzf.svg")},19936,e=>{e.q("/_next/static/immutable/media/keyboard-arrow-down.339gxvh216fmh.svg")},582514,e=>{"use strict";let t={src:e.i(19936).default,width:10,height:6,blurWidth:0,blurHeight:0};e.s(["default",0,t])},46517,e=>{"use strict";var t=e.i(843476);e.s(["KeyboardArrowDown",0,e=>(0,t.jsx)("svg",{width:"8",height:"5",viewBox:"0 0 8 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,t.jsx)("path",{d:"M3.99999 4.98334C3.9111 4.98334 3.82777 4.96945 3.74999 4.94167C3.67221 4.91389 3.59999 4.86667 3.53333 4.8L0.466659 1.73334C0.344436 1.61111 0.283325 1.45556 0.283325 1.26667C0.283325 1.07778 0.344436 0.922224 0.466659 0.800002C0.588881 0.67778 0.744436 0.616669 0.933325 0.616669C1.12221 0.616669 1.27777 0.67778 1.39999 0.800002L3.99999 3.4L6.59999 0.800002C6.72221 0.67778 6.87777 0.616669 7.06666 0.616669C7.25555 0.616669 7.4111 0.67778 7.53333 0.800002C7.65555 0.922224 7.71666 1.07778 7.71666 1.26667C7.71666 1.45556 7.65555 1.61111 7.53333 1.73334L4.46666 4.8C4.39999 4.86667 4.32777 4.91389 4.24999 4.94167C4.17221 4.96945 4.08888 4.98334 3.99999 4.98334Z",fill:"currentColor"})})])},443366,e=>{e.q("/_next/static/immutable/media/list.0-v0oir2z69_e.svg")},824647,e=>{e.q("/_next/static/immutable/media/no-document.0s97oueq-r8be.svg")},81387,e=>{e.q("/_next/static/immutable/media/quotes.2epc07doj2f3f.svg")},30054,e=>{e.q("/_next/static/immutable/media/reload.2_5_ofo3rhnc1.svg")},848118,e=>{e.q("/_next/static/immutable/media/remove.0r7cwzlxo5z0t.svg")},233780,e=>{e.q("/_next/static/immutable/media/search.1jpdd8rmdjftv.svg")},554524,e=>{"use strict";let t={src:e.i(233780).default,width:12,height:12,blurWidth:0,blurHeight:0};e.s(["default",0,t])},730300,e=>{e.q("/_next/static/immutable/media/settings.0fzol94agtd4w.svg")},944306,e=>{e.q("/_next/static/immutable/media/submit-arrow.3nggd1o4y26pj.svg")},643974,e=>{e.q("/_next/static/immutable/media/upcoming.2-qpp-ia_rwf9.svg")},342627,e=>{e.q("/_next/static/immutable/media/upload-white.2eiy45l4ysuhn.svg")},961992,471934,e=>{"use strict";var t,n=e.i(843476),r=e.i(657688),s=e.i(220062),o=e.i(678931),i=((t={}).CHECKED="CHECKED",t.UNCHECKED="UNCHECKED",t.INDETERMINATE="INDETERMINATE",t.DISABLED="DISABLED",t);e.s(["CheckState",()=>i,"CustomCheck",0,({state:e,isSelected:t,size:i,onClick:a,className:l})=>{let u=e??(t?"CHECKED":"UNCHECKED"),c="DISABLED"===u,d="CHECKED"===u||"INDETERMINATE"===u,p=i??14;return(0,n.jsxs)("div",{onClick:c?void 0:a,style:{width:p,height:p},className:(0,o.cn)("group flex shrink-0 items-center justify-center rounded-[4px] border-2",c&&"cursor-not-allowed border-[#C4C6D0] bg-gray-100",!c&&d&&"cursor-pointer border-transparent bg-[#3060ff]",!c&&!d&&"cursor-pointer border-[#8B8D98] bg-white",l),children:["CHECKED"===u&&(p>=20?(0,n.jsx)("svg",{viewBox:"0 0 12 12",className:"size-3",fill:"none","aria-hidden":!0,
29children:(0,n.jsx)("path",{d:"M2.2 6.2L4.8 8.8L9.8 3.2",stroke:"white",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})}):(0,n.jsx)(r.default,{src:s.default,alt:"check",className:"size-2 fill-black"})),"INDETERMINATE"===u&&(0,n.jsx)("span",{className:"block h-[2px] w-[8px] rounded bg-white"})]})}],471934),e.s([],961992)},83308,524175,e=>{"use strict";var t=e.i(843476),n=e.i(657688);let r={src:e.i(123889).default,width:149,height:164,blurWidth:0,blurHeight:0};e.s(["default",0,r],524175);let s={src:e.i(643974).default,width:110,height:110,blurWidth:0,blurHeight:0};e.s(["EmptyStateGraph",0,({heading:e,subheading:o,className:i,imageClass:a,type:l="Graph",headingClass:u,subheadingClass:c})=>(0,t.jsxs)("div",{className:i??"flex h-fit w-fit flex-col items-center justify-center",children:[(0,t.jsx)(n.default,{src:"Graph"===l?r:s,alt:"Empty",className:a}),(0,t.jsxs)("div",{className:"flex flex-col gap-1 text-center",children:[(0,t.jsx)("p",{className:`text-[15px] font-semibold text-[#1E293B] ${u}`,children:e}),(0,t.jsx)("p",{className:`text-[13px] font-medium text-[#64748B] ${c} `,children:o})]})]})],83308)},605977,e=>{"use strict";var t=e.i(843476),n=e.i(657688);let r={src:e.i(824647).default,width:199,height:102,blurWidth:0,blurHeight:0};e.s(["EmptyState",0,({heading:e,subheading:s="Please check back after some time.",small:o})=>(0,t.jsxs)("div",{className:`flex shrink-0 flex-col justify-center space-y-6 text-center text-lg font-medium text-[#64748B] ${o&&"!text-base"}`,children:[(0,t.jsx)(n.default,{src:r,className:"h-[101px] w-full",alt:""}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{children:e&&e}),(0,t.jsx)("p",{className:"text-center",children:s&&s})]})]})],605977)},345351,e=>{"use strict";var t=e.i(843476);e.s(["LoaderWith3Dots",0,()=>(0,t.jsxs)("div",{className:"flex h-fit w-fit items-center justify-center space-x-[2.7px]",children:[(0,t.jsx)("span",{className:"sr-only",children:"Loading..."}),(0,t.jsx)("div",{className:"size-1 animate-[loader_1s_infinite] rounded-full bg-[#D9D9D9]"}),(0,t.jsx)("div",{className:"size-1 animate-[loader_1s_infinite] rounded-full bg-[#D9D9D9] [animation-delay:0.33s]"}),(0,t.jsx)("div",{className:"size-1 animate-[loader_1s_infinite] rounded-full bg-[#D9D9D9] [animation-delay:0.66s]"})]})])},105968,e=>{"use strict";e.s(["FRONTEND_DEFAULT_URL",0,"/home","ImageURL",0,"https://company-logos-data.s3.us-east-1.amazonaws.com/CompanyLogos/","RagConferenceURL",0,"https://txt-rag-documents.s3.us-east-1.amazonaws.com","RagDocumentURL",0,"https://txt-rag-documents.s3.amazonaws.com"])},763549,e=>{"use strict";var t=e.i(843476),n=e.i(948252),r=e.i(678931);e.s(["TenantLogo",0,({variant:e="full",className:s,iconClassName:o,wordmarkClassName:i,wordmarkWidth:a,wordmarkHeight:l,compactWordmark:u})=>{let{logo:c,smallLogo:d}=n.tenant;if("mark"===e)return"svg"===d.kind?(0,t.jsx)(d.Component,{className:(0,r.cn)(o,s)}):(0,t.jsx)("img",{src:d.src.src,alt:d.alt,className:(0,r.cn)(o,s)});if("split"===c.kind){if("icon"===e)return(0,t.jsx)(c.Icon,{className:(0,r.cn)(o,s)});let n=u&&c.CompactWordmark?c.CompactWordmark:c.Wordmark;return(0,t.jsxs)("span",{className:(0,r.cn)("flex h-full items-center gap-1",s),children:[(0,t.jsx)(c.Icon,{className:o}),(0,t.jsx)(n,{...void 0!==a?{width:a}:{},...void 0!==l?{height:l}:{},className:i})]})}return(0,t.jsx)("img",{src:c.src.src,alt:c.alt,className:s})}])},181002,e=>{"use strict";var t=e.i(768526);e.s(["createPathCookie",0,e=>{let n=new Date;n.setTime(n.getTime()+2592e6),document.cookie=`${t.URL_COOKIE_NAME}=${e}; path=/; expires=${n.toUTCString()};`},"deletePathCookie",0,()=>{document.cookie=`${t.URL_COOKIE_NAME}=; path=/; expires=Thu, 01 Jan 1970 00:00:00 UTC;`}])},640998,e=>{"use strict";let t=(e,t)=>{let n=(()=>{if("u"<typeof navigator)return!1;let e=/iPad|iPhone|iPod/.test(navigator.userAgent),t="MacIntel"===navigator.platform&&navigator.maxTouchPoints>1;return e||t})(),r=URL.createObjectURL(n?new File([e],t,{type:e.type}):e);if(n)window.location.href=`${r}#${encodeURIComponent(t)}`;else{let e=document.createElement("a");e.href=r,e.download=t,document.body.appendChild(e),e.click(),e.remove()}setTimeout(()=>URL.revokeObjectURL(r),6e4)},n=Promise.resolve();e.s(["downloadBlobViaServer",0,(e,r)=>{if(0===e.size||e.size>4194304)return t(e,r),Promise.resolve(!0);let s=async()=>{try{let n=crypto.randomUUID(),s=document.createElement("form");s.method="POST",s.action="/api/download",s.enctype="multipart/form-data",s.hidden=!0;let o=document.createElement("input");o.type="file",o.name="file";let i=new DataTransfer;i.items.add(new File([e],r,{type:e.type})),o.files=i.files;let a=document.createElement("input");return a.type="hidden",a.name="token",a.value=n,s.append(o,a),document.body.append(s),s.submit(),setTimeout(()=>s.remove(),0),await new Promise(s=>{let o=setTimeout(()=>{clearInterval(i),t(e,r),s(!1)},6e4),i=setInterval(()=>{document.cookie.includes(`__dl_${n}`)&&(document.cookie=`__dl_${n}=; Path=/; Max-Age=0`,clearInterval(i),clearTimeout(o),s(!0))},100)})}catch{return t(e,r),!0}},o=n.then(s).catch(()=>!1);return n=o,o}])},316015,309041,e=>{"use strict";var t,n,r,s=e.i(843476);let o=e=>(0,s.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,s.jsx)("mask",{id:"mask0_5223_19012",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"18",height:"18",children:(0,s.jsx)("rect",{width:"18",height:"18",fill:"#D9D9D9"})}),(0,s.jsx)("g",{mask:"url(#mask0_5223_19012)",children:(0,s.jsx)("path",{d:"M8.98546 15.375C7.36146 15.375 5.94609 14.8404 4.73934 13.7711C3.53259 12.7019 2.8379 11.3615 2.65527 9.75H3.80334C3.99271 11.0453 4.57565 12.1191 5.55215 12.9714C6.52852 13.8238 7.67296 14.25 8.98546 14.25C10.448 14.25 11.6886 13.7406 12.7073 12.7219C13.7261 11.7031 14.2355 10.4625 14.2355 9C14.2355 7.5375 13.7261 6.29688 12.7073 5.27813C11.6886 4.25938 10.448 3.75 8.98546 3.75C8.16621 3.75 7.39846 3.932 6.68221 4.296C5.96584 4.65987 5.34896 5.16056 4.83159 5.79806H6.79321V6.92306H2.98546V3.11531H4.11046V4.89225C4.71909 4.174 5.44796 3.61656 6.29709 3.21994C7.14609 2.82331 8.04221 2.625 8.98546 2.625C9.87009 2.625 10.699 2.79231 11.4721 3.12694C12.2451 3.46156 12.9191 3.91637 13.4941 4.49137C14.0691 5.06637 14.5239 5.74
29044 14.8585 6.51356C15.1931 7.28656 15.3605 8.11538 15.3605 9C15.3605 9.88462 15.1931 10.7134 14.8585 11.4864C14.5239 12.2596 14.0691 12.9336 13.4941 13.5086C12.9191 14.0836 12.2451 14.5384 11.4721 14.8731C10.699 15.2077 9.87009 15.375 8.98546 15.375ZM11.237 12.0202L8.44471 9.22781V5.25H9.56952V8.77219L12.0273 11.2298L11.237 12.0202Z",fill:"currentColor"})})]}),i=e=>(0,s.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,s.jsx)("mask",{id:"mask0_5223_19019",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"18",height:"18",children:(0,s.jsx)("rect",{width:"18",height:"18",fill:"#D9D9D9"})}),(0,s.jsx)("g",{mask:"url(#mask0_5223_19019)",children:(0,s.jsx)("path",{d:"M0.375 13.341V12.4266C0.375 11.9276 0.635563 11.5177 1.15669 11.197C1.67794 10.8763 2.35731 10.716 3.19481 10.716C3.33319 10.716 3.47256 10.7203 3.61294 10.729C3.75331 10.7376 3.89469 10.7544 4.03706 10.7794C3.89094 11.0132 3.7825 11.2557 3.71175 11.5071C3.64113 11.7586 3.60581 12.0165 3.60581 12.2809V13.341H0.375ZM4.875 13.341V12.3098C4.875 11.9587 4.97356 11.6377 5.17069 11.347C5.36781 11.0561 5.65194 10.8025 6.02306 10.5863C6.39419 10.3699 6.83269 10.2077 7.33856 10.0995C7.84431 9.99128 8.39719 9.93716 8.99719 9.93716C9.60869 9.93716 10.1673 9.99128 10.6731 10.0995C11.1788 10.2077 11.6172 10.3699 11.9884 10.5863C12.3596 10.8025 12.6419 11.0561 12.8351 11.347C13.0284 11.6377 13.125 11.9587 13.125 12.3098V13.341H4.875ZM14.3942 13.341V12.2832C14.3942 12.001 14.3608 11.7352 14.2941 11.4855C14.2272 11.236 14.1269 11.0007 13.9933 10.7794C14.1404 10.7544 14.2811 10.7376 14.4152 10.729C14.5493 10.7203 14.6817 10.716 14.8125 10.716C15.65 10.716 16.3281 10.8745 16.8469 11.1913C17.3656 11.5081 17.625 11.9198 17.625 12.4266V13.341H14.3942ZM6.05775 12.216H11.9539V12.1367C11.877 11.8338 11.5578 11.579 10.9961 11.3723C10.4346 11.1655 9.76925 11.0622 9 11.0622C8.23075 11.0622 7.56538 11.1655 7.00388 11.3723C6.44225 11.579 6.12687 11.8338 6.05775 12.1367V12.216ZM3.19275 9.98759C2.83925 9.98759 2.53725 9.86191 2.28675 9.61053C2.03625 9.35916 1.911 9.05697 1.911 8.70397C1.911 8.34634 2.03675 8.04422 2.28825 7.79759C2.53963 7.55097 2.84181 7.42766 3.19481 7.42766C3.55244 7.42766 3.85575 7.55097 4.10475 7.79759C4.35388 8.04422 4.47844 8.34709 4.47844 8.70622C4.47844 9.05472 4.35519 9.35541 4.10869 9.60828C3.86231 9.86116 3.557 9.98759 3.19275 9.98759ZM14.8125 9.98759C14.4625 9.98759 14.1611 9.86116 13.9082 9.60828C13.6553 9.35541 13.5289 9.05472 13.5289 8.70622C13.5289 8.34709 13.6553 8.04422 13.9082 7.79759C14.1611 7.55097 14.4629 7.42766 14.8138 7.42766C15.1754 7.42766 15.4796 7.55097 15.7262 7.79759C15.9728 8.04422 16.0961 8.34634 16.0961 8.70397C16.0961 9.05697 15.9731 9.35916 15.7271 9.61053C15.4811 9.86191 15.1762 9.98759 14.8125 9.98759ZM9.00263 9.37466C8.46238 9.37466 8.00238 9.18534 7.62263 8.80672C7.24288 8.42822 7.053 7.96853 7.053 7.42766C7.053 6.87591 7.24225 6.41347 7.62075 6.04034C7.99938 5.66709 8.45912 5.48047 9 5.48047C9.55163 5.48047 10.0141 5.66684 10.3873 6.03959C10.7604 6.41222 10.947 6.87403 10.947 7.42503C10.947 7.96516 10.7607 8.42516 10.3881 8.80503C10.0153 9.18478 9.5535 9.37466 9.00263 9.37466ZM9.00356 8.24966C9.23294 8.24966 9.42669 8.16941 9.58481 8.00891C9.74306 7.84828 9.82219 7.65328 9.82219 7.42391C9.82219 7.19466 9.74338 7.00091 9.58575 6.84266C9.42813 6.68453 9.23287 6.60547 9 6.60547C8.77312 6.60547 8.57938 6.68428 8.41875 6.84191C8.25813 6.99941 8.17781 7.19466 8.17781 7.42766C8.17781 7.65453 8.25813 7.84828 8.41875 8.00891C8.57938 8.16941 8.77431 8.24966 9.00356 8.24966Z",fill:"currentColor"})})]});e.s(["ArrowDownSVG",0,e=>(0,s.jsx)("svg",{width:"10",height:"5",viewBox:"0 0 10 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,s.jsx)("path",{d:"M4.4752 4.475L0.850195 0.85C0.800195 0.8 0.762695 0.745833 0.737695 0.6875C0.712695 0.629167 0.700195 0.566667 0.700195 0.5C0.700195 0.366667 0.746029 0.25 0.837695 0.15C0.929362 0.05 1.0502 0 1.2002 0H8.8002C8.9502 0 9.07103 0.05 9.1627 0.15C9.25436 0.25 9.3002 0.366667 9.3002 0.5C9.3002 0.533333 9.2502 0.65 9.1502 0.85L5.5252 4.475C5.44186 4.55833 5.35853 4.61667 5.2752 4.65C5.19186 4.68333 5.1002 4.7 5.0002 4.7C4.9002 4.7 4.80853 4.68333 4.7252 4.65C4.64186 4.61667 4.55853 4.55833 4.4752 4.475Z",fill:"currentColor"})}),"CompetitorSVG",0,i,"QuarterSVG",0,o],309041);var a=((t={}).Competitors="Competitors",t.TimeSeries="Time Series",t);let l=[{label:"Comp sheet",value:"Competitors",logo:i},{label:"Time Series",value:"Time Series",logo:o}];var u=((n={}).VALUATION="Valuation",n.FUNDAMENTALS="Fundamentals",n.GROWTH="Growth",n.PROFITABILITY="Profitability",n),c=((r={}).TIME_SERIES="time series",r.COMP_SHEET="comp sheet",r);e.s(["BASIS_OPTIONS",0,["FY","Q1","Q2","Q3","Q4"],"CompSheetSubTypeEnum",()=>u,"CompSheetTypeEnum",()=>c,"MONTH_MAP",0,{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},"QUANTITATIVE_COMPARE_TAB_OPTIONS",0,l,"QuantitativeCompareTab",()=>a],316015)},818215,e=>{"use strict";var t=e.i(95187);let n=(0,t.createServerReference)("403f2c1dde7f72b870ca8a88f27c5b86ad5c2c563f",t.callServer,void 0,t.findSourceMapURL,"postTickerTopology");e.s(["postTickerTopology",0,n])}]);
30
31//# debugId=ab97e9d2-5ee2-e6f9-2d62-75ecb6334ca0

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.