PageSourceSearch

https://www.wired.org.au/_next/static/chunks/7133-9c92506e0c4ade18.js

js wired.org.au collected 2026-10-06 22:35:50 UTC 71,170 bytes, 6 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7133],{1796:(e,t,r)=>{r.d(t,{C:()=>s,b:()=>a});var n=r(89707),i=r(59099),l=r(17821),o=r(12115);let s=(0,o.createContext)(null),a=(0,o.forwardRef)(function(e,t){let r=(0,o.useContext)(s);return r?.isInvalid?o.createElement(c,{...e,ref:t}):null}),c=(0,o.forwardRef)((e,t)=>{let r=(0,o.useContext)(s),{elementType:a,...c}=e,u=(0,l.$)(c,{global:!0}),d=(0,n.Sl)({...c,defaultClassName:"react-aria-FieldError",defaultChildren:0===r.validationErrors.length?void 0:r.validationErrors.join(" "),values:r});return null==d.children?null:o.createElement(i.E,{slot:"errorMessage",elementType:a,...u,...d,ref:t})})},4934:(e,t,r)=>{r.d(t,{a:()=>o,o:()=>s});var n=r(40166),i=r(63705),l=r(12115);let o=new WeakMap;function s(e){let{triggerRef:t,isOpen:r,onClose:s}=e;(0,l.useEffect)(()=>{if(r&&null!==s)return(0,n.W2)((0,i.vK)(t.current),"scroll",e=>{let r=(0,i.wt)(e);if(!t.current||r instanceof Node&&!(0,i.sD)(r,t.current)||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement)return;let n=s||o.get(t.current);n&&n()},!0)},[r,s,t])}},11858:(e,t,r)=>{r.d(t,{m:()=>i});var n=r(97366);function i(e,t){let r=e;for((0,n.o)(r,t)&&(r=r.parentElement);r&&!(0,n.o)(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}},13220:(e,t,r)=>{r.d(t,{k5:()=>u});var n=r(12115),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},l=n.createContext&&n.createContext(i),o=["attr","size","title"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){var n,i,l;n=e,i=t,l=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):n[i]=l}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u(e){return t=>n.createElement(d,s({attr:c({},e.attr)},t),function e(t){return t&&t.map((t,r)=>n.createElement(t.tag,c({key:r},t.attr),e(t.child)))}(e.child))}function d(e){var t=t=>{var r,{attr:i,size:l,title:a}=e,u=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,o),d=l||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),n.createElement("svg",s({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,u,{className:r,style:c(c({color:e.color||t.color},t.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),a&&n.createElement("title",null,a),e.children)};return void 0!==l?n.createElement(l.Consumer,null,e=>t(e)):t(i)}},14361:(e,t,r)=>{r.d(t,{O:()=>f,h:()=>d});var n=r(26696),i=r(40166),l=r(63705),o=r(71743);let s="u">typeof HTMLElement&&"inert"in HTMLElement.prototype;function a(e){return"true"===e.dataset.liveAnnouncer||void 0!==e.dataset.reactAriaTopLayer}let c=new WeakMap,u=[];function d(e,t){let r=(0,i.mD)(e?.[0]),d=t instanceof r.Element?{root:t}:t,f=d?.root??document.body,h=d?.shouldUseInert&&s,p=new Set(e),m=new Set,g=(e,t)=>
1{h&&e instanceof r.HTMLElement?e.inert=t:t?e.setAttribute("aria-hidden","true"):(e.removeAttribute("aria-hidden"),e instanceof r.HTMLElement&&(e.inert=!1))},v=new Set;if((0,o.Nf)()){let t=f.getRootNode();for(let r of e){let e=r.getRootNode();for(;(0,i.Ng)(e)&&e!==t;)v.add(e),e=e.host.getRootNode()}}let y=e=>{for(let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))p.add(t);let t=e=>{if(m.has(e)||p.has(e)||e.parentElement&&m.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of p)if((0,l.sD)(e,t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},r=(0,n.H)((0,i.TW)(e),e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),o=t(e);if(o===NodeFilter.FILTER_ACCEPT&&b(e),o!==NodeFilter.FILTER_REJECT){let e=r.nextNode();for(;null!=e;)b(e),e=r.nextNode()}},b=e=>{let t=c.get(e)??0;(h&&e instanceof r.HTMLElement?e.inert:"true"===e.getAttribute("aria-hidden"))&&0===t||(0===t&&g(e,!0),m.add(e),c.set(e,t+1))};u.length&&u[u.length-1].disconnect(),y(f);let E=new MutationObserver(e=>{for(let t of e)if("childList"===t.type){if(t.target.isConnected&&![...p,...m].some(e=>(0,l.sD)(e,t.target)))for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&a(e)?p.add(e):e instanceof Element&&y(e);if((0,o.Nf)()){for(let e of v)if(!e.isConnected){E.disconnect();break}}}});E.observe(f,{childList:!0,subtree:!0});let w=new Set;if((0,o.Nf)())for(let e of v){let t=new MutationObserver(e=>{for(let t of e)if("childList"===t.type){if(t.target.isConnected&&![...p,...m].some(e=>(0,l.sD)(e,t.target)))for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&a(e)?p.add(e):e instanceof Element&&y(e);if((0,o.Nf)()){for(let e of v)if(!e.isConnected){E.disconnect();break}}}});t.observe(e,{childList:!0,subtree:!0}),w.add(t)}let N={visibleNodes:p,hiddenNodes:m,observe(){E.observe(f,{childList:!0,subtree:!0})},disconnect(){E.disconnect()}};return u.push(N),()=>{if(E.disconnect(),(0,o.Nf)())for(let e of w)e.disconnect();for(let e of m){let t=c.get(e);null!=t&&(1===t?(g(e,!1),c.delete(e)):c.set(e,t-1))}N===u[u.length-1]?(u.pop(),u.length&&u[u.length-1].observe()):u.splice(u.indexOf(N),1)}}function f(e){let t=u[u.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}},18194:(e,t,r)=>{r.d(t,{OJ:()=>o,Pt:()=>n,Wk:()=>c,_B:()=>s,ox:()=>a});
1class n{constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}get childNodes(){throw Error("childNodes is not supported")}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,r){let n=this.clone();return t.addDescendants(n,e),n}}class i extends n{filter(e,t,r){let[n,i]=u(e,t,this.firstChildKey,r),l=this.clone();return l.firstChildKey=n,l.lastChildKey=i,l}}class l extends n{static{this.type="header"}}class o extends n{static{this.type="loader"}}class s extends i{static{this.type="item"}filter(e,t,r){if(r(this.textValue,this)){let r=this.clone();return t.addDescendants(r,e),r}return null}}class a extends i{static{this.type="section"}filter(e,t,r){let n=super.filter(e,t,r);if(n&&null!==n.lastChildKey){let t=e.getItem(n.lastChildKey);if(t&&"header"!==t.type)return n}return null}}class c{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=null!=this.firstKey?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=null!=e.nextKey?this.keyMap.get(e.nextKey):void 0}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let r=t.get(e),n=r?.firstChildKey!=null?t.get(r.firstChildKey):null;for(;n;)yield n,n=null!=n.nextKey?t.get(n.nextKey):void 0}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(null!=t.prevKey){for(t=this.keyMap.get(t.prevKey);t&&"item"!==t.type&&null!=t.lastChildKey;)t=this.keyMap.get(t.lastChildKey);return t?.key??null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if("item"!==t.type&&null!=t.firstChildKey)return t.firstChildKey;for(;t;){if(null!=t.nextKey)return t.nextKey;if(null!=t.parentKey)t=this.keyMap.get(t.parentKey);else break}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=null!=this.lastKey?this.keyMap.get(this.lastKey):null;for(;e?.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);return e?.key??null}getItem(e){return this.keyMap.get(e)??null}at(){throw Error("Not implemented")}clone(){let e=new this.constructor;return e.keyMap=new Map(this.keyMap),e.firstKey=this.firstKey,e.lastKey=this.lastKey,e.itemCount=this.itemCount,e}addNode(e){if(this.frozen)throw Error("Cannot add a node to a frozen collection");"item"===e.type&&null==this.keyMap.get(e.key)&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,t){for(let r of(this.addNode(e),t.getChildren(e.key)))this.addDescendants(r,t)}removeNode(e){if(this.frozen)throw Error("Cannot remove a node to a frozen collection");let t=this.keyMap.get(e);null!=t&&"item"===t.type&&this.itemCount--,this.keyMap.delete(e)}commit(e,t,r=!1){if(this.frozen)throw Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=t,this.frozen=!r}filter(e){let t=new this.constructor,[r,n]=u(this,t,this.firstKey,e);return t?.commit(r,n),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function u(e,t,r,n){if(null==r)return[null,null];let i=null,l=null,o=e.getItem(r);for(;null!=o;){let r=o.filter(e,t,n);null!=r&&(r.nextKey=null,l&&(r.prevKey=l.key,l.nextKey=r.key),null==i&&(i=r),t.addNode(r),l=r),o=null!=o.nextKey?e.getItem(o.nextKey):null}if(l&&"separator"===l.type){let e=l.prevKey;t.removeNode(l.key),null!=e?(l=t.getItem(e)).nextKey=null:l=null}return[i?.key??null,l?.key??null]}},18726:(e,t,r)=>{r.d(t,{X:()=>a});var n=r(63705),i=r(46198),l=r(10123),o=r(79457),s=r(12115);function a(e,t,r){let{validationBehavior:a,focus:c}=e;(0,o.N)(()=>
1{if("native"===a&&r?.current&&"setCustomValidity"in r.current&&!r.current.disabled){var e;let n,i=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(i),r.current.hasAttribute("title")||(r.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation({isInvalid:!(e=r.current).validity.valid,validationDetails:{badInput:(n=e.validity).badInput,customError:n.customError,patternMismatch:n.patternMismatch,rangeOverflow:n.rangeOverflow,rangeUnderflow:n.rangeUnderflow,stepMismatch:n.stepMismatch,tooLong:n.tooLong,tooShort:n.tooShort,typeMismatch:n.typeMismatch,valueMissing:n.valueMissing,valid:n.valid},validationErrors:e.validationMessage?[e.validationMessage]:[]})}});let u=(0,s.useRef)(!1),d=(0,l.J)(()=>{u.current||t.resetValidation()}),f=(0,l.J)(e=>{t.displayValidation.isInvalid||t.commitValidation();let n=r?.current?.form;!e.defaultPrevented&&r&&n&&function(e){for(let t=0;t<e.elements.length;t++){let r=e.elements[t];if(r.validity?.valid===!1)return r}return null}(n)===r.current&&(c?c():r.current?.focus(),(0,i.Cl)("keyboard")),e.preventDefault()}),h=(0,l.J)(()=>{t.commitValidation()});(0,s.useEffect)(()=>{let e=r?.current;if(!e)return;let t=e.form,i=t?.reset;return t&&(t.reset=()=>{u.current=!window.event||"message"===window.event.type&&(0,n.wt)(window.event)instanceof MessagePort,i?.call(t),u.current=!1}),e.addEventListener("invalid",f),e.addEventListener("change",h),t?.addEventListener("reset",d),()=>{e.removeEventListener("invalid",f),e.removeEventListener("change",h),t?.removeEventListener("reset",d),t&&(t.reset=i)}},[r,a])}},22257:(e,t,r)=>{function n(e,t){return"function"==typeof t.getChildren?t.getChildren(e.key):e.childNodes}function i(e){var t=e;!1;let r=0;for(let e of t){if(0===r)return e;r++}}function l(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...o(e,t),t],i=[...o(e,r),r],l=n.slice(0,i.length).findIndex((e,t)=>e!==i[t]);return -1!==l?(t=n[l],r=i[l],t.index-r.index):n.findIndex(e=>e===r)>=0?1:(i.findIndex(e=>e===t),-1)}function o(e,t){let r=[],n=t;for(;n?.parentKey!=null;)(n=e.getItem(n.parentKey))&&r.unshift(n);return r}r.d(t,{iQ:()=>n,o3:()=>l,ue:()=>i})},25854:(e,t,r)=>{r.d(t,{H:()=>K,q:()=>M});let n=(0,r(63329).tv)({base:"textfield",defaultVariants:{fullWidth:!1},variants:{fullWidth:{false:"",true:"textfield--full-width"}}});var i=r(12115),l=r(89707),o=r(1796),s=r(82490),a=r(80708);let c=(0,i.createContext)({});var u=r(27660),d=r(74630);let f=(0,i.createContext)({});var h=r(59099),p=r(17821),m=r(63705),g=r(10751),v=r(28217),y=r(366),b=r(62549),E=r(18726),w=r(49072),N=r(44574),S=r(60273);let C=(0,i.createContext)(null),T=(0,S.U7)(function(e,t){[e,t]=(0,l.JT)(e,t,C);let{validationBehavior:r}=(0,l.CC)(a.c)||{},n=e.validationBehavior??r??"native",S=(0,i.useRef)(null);[e,S]=(0,l.JT)(e,S,s.wv);let[T,x]=(0,l._E)(!e["aria-label"]&&!e["aria-labelledby"]),[R,K]=(0,i.useState)("input"),{labelProps:M,inputProps:L,descriptionProps:P,errorMessageProps:I,...k}=function(e,t){let{inputElementType:r="input",isDisabled:n=!1,isRequired:l=!1,isReadOnly:o=!1,type:s="text",validationBehavior:a="aria"}=e,[c,u]=(0,w.P)(e.value,e.defaultValue||"",e.onChange),{focusableProps:d}=(0,y.Wc)(e,t),f=(0,N.KZ)({...e,value:c}),{isInvalid:h,validationErrors:S,validationDetails:C}=f.displayValidation,{labelProps:T,fieldProps:x,descriptionProps:R,errorMessageProps:K}=(0,v.M)({...e,isInvalid:h,errorMessage:e.errorMessage||S}),M=(0,p.$)(e,{labelable:!0}),L={type:s,pattern:e.pattern},[P]=(0,i.useState)(c);return(0,b.F)(t,e.defaultValue??P,u),(0,E.X)(e,f,t),{labelProps:T,inputProps:(0,g.v)(M,"input"===r?L:void 0,{disabled:n,readOnly:o,required:l&&"native"===a,"aria-required":l&&"aria"===a||void 0,"aria-invalid":h||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:c,onChange:e=>u((0,m.wt)(e).value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spell
1Check:e.spellCheck,[parseInt(i.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...d,...x}),descriptionProps:R,errorMessageProps:K,isInvalid:h,validationErrors:S,validationDetails:C}}({...(0,l.SK)(e),inputElementType:R,label:x,validationBehavior:n},S),O=(0,i.useCallback)(e=>{S.current=e,e&&K(e instanceof HTMLTextAreaElement?"textarea":"input")},[S]),D=(0,l.Sl)({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:k.isInvalid,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-TextField"}),F=(0,p.$)(e,{global:!0});return delete F.id,i.createElement(l.tT.div,{...F,...D,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":k.isInvalid||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0},i.createElement(l.Kq,{values:[[d.I,{...M,ref:T}],[u.E,{...L,ref:O}],[f,{...L,ref:O}],[c,{role:"presentation",isInvalid:k.isInvalid,isDisabled:e.isDisabled||!1}],[h.h,{slots:{description:P,errorMessage:I}}],[o.C,k]]},D.children))});var x=r(42901),R=r(95155);let K=(0,i.createContext)({}),M=({children:e,className:t,fullWidth:r,variant:l,...o})=>{let s=i.useMemo(()=>n({fullWidth:r}),[r]);return(0,R.jsx)(T,{"data-slot":"textfield",...o,className:(0,x.e)(t,s),children:t=>(0,R.jsx)(K,{value:{variant:l},children:(0,R.jsx)(R.Fragment,{children:"function"==typeof e?e(t):e})})})}},26696:(e,t,r)=>{r.d(t,{H:()=>o});var n=r(63705),i=r(71743);class l{constructor(e,t,r,n){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=e=>{if(e.nodeType===Node.ELEMENT_NODE){let t=e.shadowRoot;if(t){let e=this._doc.createTreeWalker(t,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(e),NodeFilter.FILTER_ACCEPT}if("function"==typeof this.filter)return this.filter(e);if(this.filter?.acceptNode)return this.filter.acceptNode(e);else if(null===this.filter)return NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=t,this.filter=n??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=t,this._walkerStack.unshift(e.createTreeWalker(t,r,this._acceptNode));const i=t.shadowRoot;if(i){const e=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(e)}}get currentNode(){return this._currentNode}set currentNode(e){if(!(0,n.sD)(this.root,e))throw Error("Cannot set currentNode to a node that is not contained by the root node.");let t=[],r=e,i=e;for(this._currentNode=e;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let e=r,n=this._doc.createTreeWalker(e,this.whatToShow,{acceptNode:this._acceptNode});t.push(n),n.currentNode=i,this._currentSetFor.add(n),r=i=e.host}else r=r.parentNode;let l=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});t.push(l),l.currentNode=i,this._currentSetFor.add(l),this._walkerStack=t}get doc(){return this._doc}firstChild(){let e=this.currentNode,t=this.nextNode();return(0,n.sD)(e,t)?(t&&(this.currentNode=t),t):(this.currentNode=e,null)}lastChild(){let e=this._walkerStack[0].lastChild();return e&&(this.currentNode=e),e}nextNode(){let e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){let t;if("function"==typeof this.filter?t=this.filter(e):this.filter?.acceptNode&&(t=this.filter.acceptNode(e)),t===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let r=this.nextNode();return r&&(this.currentNode=r),r}return e&&(this.currentNode=e),e}if(!(this._walkerStack.length>1))return null;{this._walkerStack.shift();let e=this.nextNode();return e&&(this.currentNode=e),e}}previousNode(){let e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e)&&(this._currentSetFor.delete(e),this._walkerStack.length>1)){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}return null}let t=e.previousNode();if(t){if(t.shadowRoot){let e;if("function"==typeof this.filter?e=this.filter(t):this.filter?.acceptNode&&(e=this.filter.acceptNode(t)),e===NodeFilter.FILTER_ACCEPT)return t&&(this.currentNode=t),t;let r=this.lastChild();return r&&(this.currentNode=r),r}return t&&(this.currentNode=t),t}if(!(this._walkerStack.length>1))return null;{this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}}function o(e,t,r,n){return(0,i.Nf)()?new l(e,t,r,n):e.createTreeWalker(t,r,n)}},27660:(e,t,r)=>{r.d(t,{E:()=>c,p:()=>u});var n=r(89707),i=r(60273),l=r(10751),o=r(12115),s=r(22153),a=r(80876);let c=(0,o.createContext)({}),u=(0,i.U7)(function(e,t){[e,t]=(0,n.JT)(e,t,c);
1let{hoverProps:r,isHovered:i}=(0,a.M)({...e,isDisabled:e.disabled}),{isFocused:u,isFocusVisible:d,focusProps:f}=(0,s.o)({isTextInput:!0,autoFocus:e.autoFocus}),h=!!e["aria-invalid"]&&"false"!==e["aria-invalid"],p=(0,n.Sl)({...e,values:{isHovered:i,isFocused:u,isFocusVisible:d,isDisabled:e.disabled||!1,isInvalid:h},defaultClassName:"react-aria-Input"});return o.createElement(n.tT.input,{...(0,l.v)((e=>{let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,...i}=e;return i})(e),f,r),...p,ref:t,"data-focused":u||void 0,"data-disabled":e.disabled||void 0,"data-hovered":i||void 0,"data-focus-visible":d||void 0,"data-invalid":h||void 0})})},28217:(e,t,r)=>{r.d(t,{M:()=>o});var n=r(59171),i=r(10751),l=r(63875);function o(e){let{description:t,errorMessage:r,isInvalid:o,validationState:s}=e,{labelProps:a,fieldProps:c}=(0,n.M)(e),u=(0,l.X1)([!!t,!!r,o,s]),d=(0,l.X1)([!!t,!!r,o,s]);return{labelProps:a,fieldProps:c=(0,i.v)(c,{"aria-describedby":[u,d,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),descriptionProps:{id:u},errorMessageProps:{id:d}}}},30785:(e,t,r)=>{r.d(t,{b:()=>i});var n=r(63875);function i(e,t){let{id:r,"aria-label":i,"aria-labelledby":l}=e;return r=(0,n.Bi)(r),l&&i?l=[...new Set([r,...l.trim().split(/\s+/)])].join(" "):l&&(l=l.trim().split(/\s+/).join(" ")),i||l||!t||(i=t),{id:r,"aria-label":i,"aria-labelledby":l}}},39378:(e,t,r)=>{r.d(t,{e:()=>f});var n=r(63705),i=r(41320),l=r(96635),o=r(40166),s=r(10123),a=r(12115);function c(e,t){if(e.button>0)return!1;let r=(0,n.wt)(e);if(r){let e=r.ownerDocument;if(!e||!(0,n.sD)(e.documentElement,r)||r.closest("[data-react-aria-top-layer]"))return!1}return!!t.current&&!e.composedPath().includes(t.current)}var u=r(66515);let d=[];function f(e,t){let{onClose:r,shouldCloseOnBlur:f,isOpen:h,isDismissable:p=!1,isKeyboardDismissDisabled:m=!1,shouldCloseOnInteractOutside:g}=e,v=(0,a.useRef)(void 0);(0,a.useEffect)(()=>{if(h&&!d.includes(t))return d.push(t),()=>{let e=d.indexOf(t);e>=0&&d.splice(e,1)}},[h,t]);let y=()=>{d[d.length-1]===t&&r&&r()},{keyboardProps:b}=(0,u.d)({shortcuts:{Escape:()=>!m&&void y()}});!function(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:i}=e,l=(0,a.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),u=(0,s.J)(e=>{r&&c(e,t)&&(i&&i(e),l.current.isPointerDown=!0)}),d=(0,s.J)(e=>{r&&r(e)});(0,a.useEffect)(()=>{let e=l.current;if(n)return;let r=t.current,i=(0,o.TW)(r);if("u">typeof PointerEvent){let r=r=>{e.isPointerDown&&c(r,t)&&d(r),e.isPointerDown=!1};return i.addEventListener("pointerdown",u,!0),i.addEventListener("click",r,!0),()=>{i.removeEventListener("pointerdown",u,!0),i.removeEventListener("click",r,!0)}}},[t,n])}({ref:t,onInteractOutside:p&&h?e=>{(!g||g((0,n.wt)(e)))&&(d[d.length-1]===t&&e.stopPropagation(),v.current===t&&y()),v.current=void 0}:void 0,onInteractOutsideStart:e=>{let r=d[d.length-1];v.current=r,(!g||g((0,n.wt)(e)))&&r===t&&e.stopPropagation()}});let{focusWithinProps:E}=(0,l.R)({isDisabled:!f,onBlurWithin:e=>{!(!e.relatedTarget||(0,i.Pu)(e.relatedTarget))&&(!g||g(e.relatedTarget))&&r?.()}});return{overlayProps:{...b,...E},underlayProps:{}}}},39451:(e,t,r)=>{r.d(t,{B:()=>s,s:()=>a});var n=r(10751),i=r(96635),l=r(12115);let o={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function s(e={}){let{style:t,isFocusable:r}=e,[n,a]=(0,l.useState)(!1),{focusWithinProps:c}=(0,i.R)({isDisabled:!r,onFocusWithinChange:e=>a(e)}),u=(0,l.useMemo)(()=>n?t:t?{...o,...t}:o,[n]);return{visuallyHiddenProps:{...c,style:u}}}function a(e){let{children:t,elementType:r="div",isFocusable:i,style:o,...a}=e,{visuallyHiddenProps:c}=s(e);return l.createElement(r,(0,n.v)(a,c),t)}},40023:(e,t,r)=>{let n;r.d(t,{o:()=>h});var i=r(45249);let l=Symbol.for("react-aria.i18n.locale"),o=Symbol.for("react-aria.i18n.strings");class s{constructor(e,t="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,e])=>e)),this.defaultLocale=t}getStringForLocale(e,t){let r=this.getStringsForLocale(t)[e];if(!r)throw Error(`Could not find intl message ${e} in ${t} locale`);return r}getStringsForLocale(e){let t=this.strings[e];return t||(t=function(e,t,r="en-US"){var n;if(t[e])return t[e];let i=(n=e,Intl.Locale?new Intl.Locale(n).language:n.split("-")[0]),l=function(e){if(Intl.Locale)return new Intl.Locale(e).script}(e);if(l&&t[`${i}-${l}`])return t[`${i}-${l}`];if(t[i])return t[i];for(let e in t)if(e.startsWith(i+"-"))return t[e];return t[r]}(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(e){if("u"<typeof window)return null;let t=window[l];if(void 0===n){let e=window[o];if(!e)return null;for(let r in n={},e)n[r]=new s({[t]:e[r]},t)}let r=n?.[e];if(!r)throw Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}}let a=new Map,c=new Map;class u{constructor(e,t){this.locale=e,this.strings=t}format(e,t){let r=this.strings.getStringForLocale(e,this.locale);return"function"==typeof r?r(t,this):r}plural(e,t,r="cardinal"){let n=t["="+e];if(n)return"function"==typeof n?n():n;let i=this.locale+":"+r,l=a.get(i);return l||(l=new Intl.PluralRules(this.locale,{type:r}),a.set(i,l)),"function"==typeof(n=t[l.select(e)]||t.other)?n():n}number(e){let t=c.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),c.set(this.locale,t)),t.format(e)}select(e,t){let r=e[t]||e.other;return"function"==typeof r?r():r}}var d=r(12115);let f=new WeakMap;function h(e,t){let r,{locale:n}=(0,i.Y)(),l=t&&s.getGlobalDictionaryForPackage(t)||((r=f.get(e))||(r=new s(e),f.set(e,r)),r);return(0,d.useMemo)(()=>new u(n,l),[n,l])}},40677:(e,t,r)=>{let n,i,l;r.d(t,{pd:()=>E});let o=(0,r(63329).tv)({base:"input",defaultVariants:{fullWidth:!1,variant:"primary"},variants:{fullWidth:{false:"",true:"input--full-width"},variant:{primary:"input--primary",secondary:"input--secondary"}}});var s,a=r(12115),c=r(27660),u=r(95155),d=r(25854);let f={debug:"\x1b[35m",error:"\x1b[31m",info:"\x1b[34m",success:"\x1b[32m",warn:"\x1b[33m"},h={debug:"\uD83D\uDD0D",error:"❌",info:"ℹ️",success:"✅",warn:"⚠️"};class p{constructor(e={}){this.enabled=e.enabled??!0,this.prefix=e.prefix??"HeroUI"}formatMessage(e,t){let r=f[e],n=h[e];return`${r}[${this.prefix}]\x1b[0m ${n}  ${t}`}log(e,t,...r){if(!this.enabled)return;let n=this.formatMessage(e,t);switch(e){case"error":console.error(n,...r);break;case"warn":console.warn(n,...r);break;default:console.log(n,...r)}}info(e,...t){this.log("info",e,...t)}success(e,...t){this.log("success",e,...t)}warn(e,...t){this.log("warn",e,...t)}error(e,...t){this.log("error",e,...t)}debug(e,...t){this.log("debug",e,...t)}divider(e="=",t=80){this.enabled&&console.log(e.repeat(t))}newline(){this.enabled&&console.log()}}var m=r(41463);let g=new p({prefix:"HeroUI"}),v=(0,a.createContext)({});s="combo-box.inputGroup",void 0!==m,i=`$$heroui.collection.${s}`,l=(0,a.createContext)(void 0);var y=r(42901);let b=({className:e,fullWidth:t,variant:r,...n})=>{let i=(0,a.use)(d.H),l=(0,a.use)(v),s=r??i.variant??l.variant;return(0,u.jsx)(c.p,{className:(0,y.e)(e,o({fullWidth:t,variant:s})),"data-slot":"input",...n})},E=Object.assign(b,{Root:b})},41320:(e,t,r)=>{r.d(t,{N$:()=>R,Pu:()=>E,n1:()=>m});var n=r(26696),i=r(68615),l=r(63705),o=r(46198),s=r(40166),a=r(12652),c=r(78442),u=r(79457),d=r(12115);let f=d.createContext(null),h="react-aria-focus-scope-restore",p=null;function m(e){var t,r,n,i,c,m,E,K,P,I;let k,O,D,F,{children:A,contain:_,restoreFocus:H,autoFocus:z}=e,W=(0,d.useRef)(null),B=(0,d.useRef)(null),V=(0,d.useRef)([]),{parentNode:j}=(0,d.useContext)(f)||{},q=(0,d.useMemo)(()=>new M({scopeRef:V}),[V]);(0,u.N)(()=>{let e=j||L.root;if(L.getTreeNode(e.scopeRef)&&p&&!w(p,e.scopeRef)){let t=L.getTreeNode(p);t&&(e=t)}e.addChild(q),L.addNode(q)},[q,j]),(0,u.N)(()=>{let e=L.getTreeNode(V);e&&(e.contain=!!_)},[_]),(0,u.N)(()=>{let e=W.current?.nextSibling,t=[],r=e=>e.stopPropagation();for(;e&&e!==B.current;)t.push(e),e.addEventListener(h,r),e=e.nextSibling;return V.current=t,()=>{for(let e of t)e.removeEventListener(h,r)}},[A]),t=V,r=H,n=_,(0,u.N)(()=>
1{if(r||n)return;let e=t.current,i=(0,s.TW)(e?e[0]:void 0),o=e=>{let r=(0,l.wt)(e);y(r,t.current)?p=t:b(r)||(p=null)};return i.addEventListener("focusin",o,!1),e?.forEach(e=>e.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),e?.forEach(e=>e.removeEventListener("focusin",o,!1))}},[t,r,n]),i=V,c=_,k=(0,d.useRef)(void 0),O=(0,d.useRef)(void 0),(0,u.N)(()=>{let e=i.current;if(!c){O.current&&(cancelAnimationFrame(O.current),O.current=void 0);return}let t=(0,s.TW)(e?e[0]:void 0),r=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey||!v(i)||e.isComposing)return;let r=(0,l.bq)(t),n=i.current;if(!n||!y(r,n))return;let o=R(g(n),{tabbable:!0},n);if(!r)return;o.currentNode=r;let a=e.shiftKey?o.previousNode():o.nextNode();a||(o.currentNode=e.shiftKey?n[n.length-1].nextElementSibling:n[0].previousElementSibling,a=e.shiftKey?o.previousNode():o.nextNode()),e.preventDefault(),a&&(N(a,!0),a instanceof(0,s.mD)(a).HTMLInputElement&&a.select())},n=e=>{(!p||w(p,i))&&y((0,l.wt)(e),i.current)?(p=i,k.current=(0,l.wt)(e)):v(i)&&!b((0,l.wt)(e),i)?k.current?N(k.current):p&&p.current&&C(p.current):v(i)&&(k.current=(0,l.wt)(e))},u=e=>{O.current&&cancelAnimationFrame(O.current),O.current=requestAnimationFrame(()=>{let r=(0,o.ME)(),n=("virtual"===r||null===r)&&(0,a.m0)()&&(0,a.H8)(),s=(0,l.bq)(t);
1if(!n&&s&&v(i)&&!b(s,i)){p=i;let t=(0,l.wt)(e);t&&t.isConnected?(k.current=t,N(k.current)):p.current&&C(p.current)}})};return t.addEventListener("keydown",r,!1),t.addEventListener("focusin",n,!1),e?.forEach(e=>e.addEventListener("focusin",n,!1)),e?.forEach(e=>e.addEventListener("focusout",u,!1)),()=>{t.removeEventListener("keydown",r,!1),t.removeEventListener("focusin",n,!1),e?.forEach(e=>e.removeEventListener("focusin",n,!1)),e?.forEach(e=>e.removeEventListener("focusout",u,!1))}},[i,c]),(0,u.N)(()=>()=>{O.current&&cancelAnimationFrame(O.current)},[O]),m=V,E=H,K=_,D=(0,d.useRef)("u">typeof document?(0,l.bq)((0,s.TW)(m.current?m.current[0]:void 0)):null),(0,u.N)(()=>{let e=m.current,t=(0,s.TW)(e?e[0]:void 0);if(!E||K)return;let r=()=>{(!p||w(p,m))&&y((0,l.bq)(t),m.current)&&(p=m)};return t.addEventListener("focusin",r,!1),e?.forEach(e=>e.addEventListener("focusin",r,!1)),()=>{t.removeEventListener("focusin",r,!1),e?.forEach(e=>e.removeEventListener("focusin",r,!1))}},[m,K]),(0,u.N)(()=>{let e=(0,s.TW)(m.current?m.current[0]:void 0);if(!E)return;let t=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!v(m)||t.isComposing)return;let r=e.activeElement;if(!b(r,m)||!T(m))return;let n=L.getTreeNode(m);if(!n)return;let i=n.nodeToRestore,l=R(e.body,{tabbable:!0});l.currentNode=r;let o=t.shiftKey?l.previousNode():l.nextNode();if(i&&i.isConnected&&i!==e.body||(i=void 0,n.nodeToRestore=void 0),(!o||!b(o,m))&&i){l.currentNode=i;do o=t.shiftKey?l.previousNode():l.nextNode();while(b(o,m));(t.preventDefault(),t.stopPropagation(),o)?N(o,!0):b(i)?N(i,!0):r.blur()}};return K||e.addEventListener("keydown",t,!0),()=>{K||e.removeEventListener("keydown",t,!0)}},[m,E,K]),(0,u.N)(()=>{let e=(0,s.TW)(m.current?m.current[0]:void 0);if(!E)return;let t=L.getTreeNode(m);if(t)return t.nodeToRestore=D.current??void 0,()=>{let t=L.getTreeNode(m);if(!t)return;let r=t.nodeToRestore,n=(0,l.bq)(e);if(E&&r&&(n&&b(n,m)||n===e.body&&T(m))){let t=L.clone();requestAnimationFrame(()=>{if(e.activeElement===e.body){let e=t.getTreeNode(m);for(;e;){if(e.nodeToRestore&&e.nodeToRestore.isConnected)return void x(e.nodeToRestore);e=e.parent}for(e=t.getTreeNode(m);e;){if(e.scopeRef&&e.scopeRef.current&&L.getTreeNode(e.scopeRef))return void x(S(e.scopeRef.current,!0));e=e.parent}}})}}},[m,E]),P=V,I=z,F=d.useRef(I),(0,d.useEffect)(()=>{if(F.current){p=P;let e=(0,s.TW)(P.current?P.current[0]:void 0);!y((0,l.bq)(e),p.current)&&P.current&&C(P.current)}F.current=!1},[P]),(0,d.useEffect)(()=>{let e=(0,l.bq)((0,s.TW)(V.current?V.current[0]:void 0)),t=null;if(y(e,V.current)){for(let r of L.traverse())r.scopeRef&&y(e,r.scopeRef.current)&&(t=r);t===L.getTreeNode(V)&&(p=t.scopeRef)}},[V]),(0,u.N)(()=>()=>{let e=L.getTreeNode(V)?.parent?.scopeRef??null;(V===p||w(V,p))&&(!e||L.getTreeNode(e))&&(p=e),L.removeTreeNode(V)},[V]);let $=(0,d.useMemo)(()=>{var e;return e=V,{focusNext(t={}){let r=e.current,{from:n,tabbable:i,wrap:o,accept:a}=t,c=n||(0,l.bq)((0,s.TW)(r[0]??void 0)),u=r[0].previousElementSibling,d=R(g(r),{tabbable:i,accept:a},r);d.currentNode=y(c,r)?c:u;let f=d.nextNode();return!f&&o&&(d.currentNode=u,f=d.nextNode()),f&&N(f,!0),f},focusPrevious(t={}){let r=e.current,{from:n,tabbable:i,wrap:o,accept:a}=t,c=n||(0,l.bq)((0,s.TW)(r[0]??void 0)),u=r[r.length-1].nextElementSibling,d=R(g(r),{tabbable:i,accept:a},r);d.currentNode=y(c,r)?c:u;let f=d.previousNode();return!f&&o&&(d.currentNode=u,f=d.previousNode()),f&&N(f,!0),f},focusFirst(t={}){let r=e.current,{tabbable:n,accept:i}=t,l=R(g(r),{tabbable:n,accept:i},r);l.currentNode=r[0].previousElementSibling;let o=l.nextNode();return o&&N(o,!0),o},focusLast(t={}){let r=e.current,{tabbable:n,accept:i}=t,l=R(g(r),{tabbable:n,accept:i},r);l.currentNode=r[r.length-1].nextElementSibling;let o=l.previousNode();return o&&N(o,!0),o}}},[]),U=(0,d.useMemo)(()=>({focusManager:$,parentNode:q}),[q,$]);return d.createElement(f.Provider,{value:U},d.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:W}),A,d.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:B}))}function g(e){return e[0].parentElement}function v(e){let t=L.getTreeNode(p);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function y(e,t){return!!e&&!!t&&t.some(t=>(0,l.sD)(t,e))}function b(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of L.traverse(L.getTreeNode(t)))if(r&&y(e,r.current))return!0;return!1}function E(e){return b(e,p)}function w(e,t){let r=L.getTreeNode(t)?.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function N(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch{}}else try{(0,i.l)(e)}catch{}}function S(e,t=!0){let r=e[0].previousElementSibling,n=g(e),i=R(n,{tabbable:t},e);i.currentNode=r;let l=i.nextNode();return t&&!l&&((i=R(n=g(e),{tabbable:!1},e)).currentNode=r,l=i.nextNode()),l}function C(e,t=!0){N(S(e,t))}function T(e){let t=L.getTreeNode(p);for(;t&&t.scopeRef!==e;
1){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function x(e){e.dispatchEvent(new CustomEvent(h,{bubbles:!0,cancelable:!0}))&&N(e)}function R(e,t,r){let i=t?.tabbable?c.A:c.t,o=e?.nodeType===Node.ELEMENT_NODE?e:null,a=(0,s.TW)(o),u=(0,n.H)(a,e||a,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>(0,l.sD)(t?.from,e)||t?.tabbable&&"INPUT"===e.tagName&&"radio"===e.getAttribute("type")&&(!function(e){if(e.checked)return!0;let t=function(e){if(!e.form)return Array.from((0,s.TW)(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter(e=>!e.form);let t=e.form.elements.namedItem(e.name),r=(0,s.mD)(e);return t instanceof r.RadioNodeList?Array.from(t).filter(e=>e instanceof r.HTMLInputElement):t instanceof r.HTMLInputElement?[t]:[]}(e);return t.length>0&&!t.some(e=>e.checked)}(e)||"INPUT"===u.currentNode.tagName&&"radio"===u.currentNode.type&&u.currentNode.name===e.name)?NodeFilter.FILTER_REJECT:i(e)&&(!r||y(e,r))&&(!t?.accept||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});return t?.from&&(u.currentNode=t.from),u}class K{constructor(){this.fastMap=new Map,this.root=new M({scopeRef:null}),this.fastMap.set(null,this.root)}get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,r){let n=this.fastMap.get(t??null);if(!n)return;let i=new M({scopeRef:e});n.addChild(i),i.parent=n,this.fastMap.set(e,i),r&&(i.nodeToRestore=r)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let r=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&y(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let n=t.children;r&&(r.removeChild(t),n.size>0&&n.forEach(e=>r&&r.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){let e=new K;for(let t of this.traverse())e.addTreeNode(t.scopeRef,t.parent?.scopeRef??null,t.nodeToRestore);return e}}class M{constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}}let L=new K},44574:(e,t,r)=>{r.d(t,{KZ:()=>c});var n=r(12115);let i={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},l={...i,customError:!0,valid:!1},o={isInvalid:!1,validationDetails:i,validationErrors:[]},s=(0,n.createContext)({}),a="__reactAriaFormValidationState";function c(e){if(e[a]){let{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:i,commitValidation:l}=e[a];return{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:i,commitValidation:l}}return function(e){let{isInvalid:t,validationState:r,name:i,value:a,builtinValidation:c,validate:h,validationBehavior:p="aria"}=e;r&&(t||="invalid"===r);let m=void 0!==t?{isInvalid:t,validationErrors:[],validationDetails:l}:null,g=(0,n.useMemo)(()=>h&&null!=a?d(function(e,t){if("function"==typeof e){let r=e(t);if(r&&"boolean"!=typeof r)return u(r)}return[]}(h,a)):null,[h,a]);c?.validationDetails.valid&&(c=void 0);let v=(0,n.useContext)(s),y=(0,n.useMemo)(()=>i?Array.isArray(i)?i.flatMap(e=>u(v[e])):u(v[i]):[],[v,i]),[b,E]=(0,n.useState)(v),[w,N]=(0,n.useState)(!1);v!==b&&(E(v),N(!1));let S=(0,n.useMemo)(()=>d(w?[]:y),[w,y]),C=(0,n.useRef)(o),[T,x]=(0,n.useState)(o),R=(0,n.useRef)(o),[K,M]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{if(!K)return;M(!1);let e=g||c||C.current;f(e,R.current)||(R.current=e,x(e))}),{realtimeValidation:m||S||g||c||o,displayValidation:"native"===p?m||S||T:m||S||g||c||T,updateValidation(e){"aria"!==p||f(T,e)?C.current=e:x(e)},resetValidation(){f(o,R.current)||(R.current=o,x(o)),"native"===p&&M(!1),N(!0)},commitValidation(){"native"===p&&M(!0),N(!0)}}}(e)}function u(e){return e?Array.isArray(e)?e:[e]:[]}function d(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetail
1s:l}:null}function f(e,t){return e===t||!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((e,r)=>e===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([e,r])=>t.validationDetails[e]===r)}},45249:(e,t,r)=>{r.d(t,{Y:()=>h});let n=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),i=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);var l=r(32729),o=r(12115);let s=Symbol.for("react-aria.i18n.locale");function a(){let e="u">typeof window&&window[s]||"u">typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:!function(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),r="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(r)return"rtl"===r.direction;if(t.script)return n.has(t.script)}let t=e.split("-")[0];return i.has(t)}(e)?"ltr":"rtl"}}let c=a(),u=new Set;function d(){for(let e of(c=a(),u))e(c)}let f=o.createContext(null);function h(){let e=function(){let e=(0,l.wR)(),[t,r]=(0,o.useState)(c);return((0,o.useEffect)(()=>(0===u.size&&window.addEventListener("languagechange",d),u.add(r),()=>{u.delete(r),0===u.size&&window.removeEventListener("languagechange",d)}),[]),e)?{locale:"u">typeof window&&window[s]||"en-US",direction:"ltr"}:t}();return(0,o.useContext)(f)||e}},45826:(e,t,r)=>{r.d(t,{B:()=>i,o:()=>o});var n=r(12652);function i(e){return(0,n.cX)()?e.metaKey:e.ctrlKey}let l=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function o(e){return e instanceof HTMLInputElement&&!l.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}},46462:(e,t,r)=>{r.d(t,{JU:()=>s});let n=(0,r(63329).tv)({base:"label",defaultVariants:{isDisabled:!1,isInvalid:!1,isRequired:!1},variants:{isDisabled:{true:"label--disabled"},isInvalid:{true:"label--invalid"},isRequired:{true:"label--required"}}});var i=r(74630),l=r(95155);let o=({children:e,className:t,isDisabled:r,isInvalid:o,isRequired:s,...a})=>(0,l.jsx)(i.J,{className:n({isRequired:s,isDisabled:r,isInvalid:o,className:t}),"data-slot":"label",...a,children:e}),s=Object.assign(o,{Root:o})},48916:(e,t,r)=>{r.d(t,{o:()=>o});var n=r(4934),i=r(63875),l=r(12115);function o(e,t,r){let o,{type:s}=e,{isOpen:a}=t;(0,l.useEffect)(()=>{r&&r.current&&n.a.set(r.current,t.close)}),"menu"===s?o=!0:"listbox"===s&&(o="listbox");let c=(0,i.Bi)();return{triggerProps:{"aria-haspopup":o,"aria-expanded":a,"aria-controls":a?c:void 0,onPress:t.toggle},overlayProps:{id:c}}}},59099:(e,t,r)=>{r.d(t,{E:()=>o,h:()=>l});var n=r(89707),i=r(12115);let l=(0,i.createContext)({}),o=(0,i.forwardRef)(function(e,t){[e,t]=(0,n.JT)(e,t,l);let{elementType:r="span",...o}=e,s=n.tT[r];return i.createElement(s,{className:"react-aria-Text",...o,ref:t})})},59171:(e,t,r)=>{r.d(t,{M:()=>l});var n=r(63875),i=r(30785);function l(e){let{id:t,label:r,"aria-labelledby":l,"aria-label":o,labelElementType:s="label"}=e;t=(0,n.Bi)(t);let a=(0,n.Bi)(),c={};return r&&(l=l?`${a} ${l}`:a,c={id:a,htmlFor:"label"===s?t:void 0}),{labelProps:c,fieldProps:(0,i.b)({id:t,"aria-label":o,"aria-labelledby":l})}}},61244:(e,t,r)=>{r.d(t,{N:()=>c,Y:()=>a});var n=r(10751),i=r(97884),l=r(53270),o=r(17174),s=r(12115);let a=s.forwardRef(({children:e,...t},r)=>{let a=(0,s.useRef)(!1),c=(0,s.useContext)(i.F),u=(0,n.v)(c||{},{...t,register(){a.current=!0,c&&c.register()}});return u.ref=(0,l.U)(r||c?.ref),(0,o.w)(c,u.ref),(0,s.useEffect)(()=>{a.current||(a.current=!0)},[]),s.createElement(i.F.Provider,{value:u},e)});function c({children:e}){let t=(0,s.useMemo)(()=>({register:()=>{}}),[]);return s.createElement(i.F.Provider,{value:t},e)}},62549:(e,t,r)=>{r.d(t,{F:()=>l});var n=r(10123),i=r(12115);function l(e,t,r){let l=(0,n.J)(e=>{r&&!e.defaultPrevented&&r(t)});(0,i.useEffect)(()=>{let t=e?.current?.form;return t?.addEventListener("reset",l),()=>{t?.removeEventListener("reset",l)}},[e])}},63876:(e,t,r)=>{r.d(t,{A:()=>$,n:()=>j});var n=r(89707),i=r(12115);let l=(0,i.createContext)({placement:"bottom"});var o=r(86795),s=r(14361),a=r(12652),c=r(63705);function u(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}let d={top:"top",bottom:"top",left:"left",right:"left"}
1,f={top:"bottom",bottom:"top",left:"right",right:"left"},h={top:"left",left:"top"},p={top:"height",left:"width"},m={width:"totalWidth",height:"totalHeight"},g={};function v(e,t){let r=0,n=0,i=0,l=0,o=0,s=0,c={},u=(t?.scale??1)>1;if("BODY"===e.tagName||"HTML"===e.tagName){let a=document.documentElement;i=a.clientWidth,l=a.clientHeight,r=t?.width??i,n=t?.height??l,c.top=a.scrollTop||e.scrollTop,c.left=a.scrollLeft||e.scrollLeft,t&&(o=t.offsetTop,s=t.offsetLeft)}else({width:r,height:n,top:o,left:s}=S(e,!1)),c.top=e.scrollTop,c.left=e.scrollLeft,i=r,l=n;return(0,a.Tc)()&&("BODY"===e.tagName||"HTML"===e.tagName)&&u&&(c.top=0,c.left=0,o=t?.pageTop??0,s=t?.pageLeft??0),{width:r,height:n,totalWidth:i,totalHeight:l,scroll:c,top:o,left:s}}function y(e,t,r,n,i,l,o){let s=i.scroll[e]??0,a=n[p[e]],c=o[e]+n.scroll[d[e]]+l,u=o[e]+n.scroll[d[e]]+a-l,f=t-s+n.scroll[d[e]]+o[e]-n[d[e]],h=t-s+r+n.scroll[d[e]]+o[e]-n[d[e]];return f<c?c-f:h>u?Math.max(u-h,c-f):0}function b(e){if(g[e])return g[e];let[t,r]=e.split(" "),n=d[t]||"right",i=h[n];d[r]||(r="center");let l=p[n],o=p[i];return g[e]={placement:t,crossPlacement:r,axis:n,crossAxis:i,size:l,crossSize:o},g[e]}function E(e,t,r,n,i,l,o,s,a,c,d){let{placement:h,crossPlacement:p,axis:g,crossAxis:v,size:y,crossSize:b}=n,E={};E[v]=e[v]??0,"center"===p?E[v]+=((e[b]??0)-(r[b]??0))/2:p!==v&&(E[v]+=(e[b]??0)-(r[b]??0)),E[v]+=l;let w=e[v]-r[b]+a+c,N=e[v]+e[b]-a-c;if(E[v]=u(E[v],w,N),h===g){let t=s?d[y]:d[m[y]];E[f[g]]=Math.floor(t-e[g]+i)}else E[g]=Math.floor(e[g]+e[y]+i);return E}function w(e,t,r,n,i,l,o,s){let{placement:a,axis:c,size:u}=l;return a===c?Math.max(0,r[c]-(o.scroll[c]??0)-(e[c]+(s?t[c]:0))-(n[c]??0)-n[f[c]]-i):Math.max(0,e[u]+e[c]+(s?t[c]:0)-r[c]-r[u]+(o.scroll[c]??0)-(n[c]??0)-n[f[c]]-i)}function N(e,t){let{top:r,left:n,width:i,height:l}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(i=e.offsetWidth,l=e.offsetHeight),{top:r,left:n,width:i,height:l}}function S(e,t,r){let{top:n,left:i,width:l,height:o}=r||N(e,t),{scrollTop:s,scrollLeft:a,clientTop:c,clientLeft:u}=document.documentElement;return{top:n+s-c,left:i+a-u,width:l,height:o}}function C(e,t,r,n){let i,l=window.getComputedStyle(e);if("fixed"===l.position)i=n||N(e,r);else{i=S(e,r,n);let l=S(t,r),o=window.getComputedStyle(t);l.top+=(parseInt(o.borderTopWidth,10)||0)-t.scrollTop,l.left+=(parseInt(o.borderLeftWidth,10)||0)-t.scrollLeft,i.top-=l.top,i.left-=l.left}return i.top-=parseInt(l.marginTop,10)||0,i.left-=parseInt(l.marginLeft,10)||0,i}function T(e){let t=window.getComputedStyle(e);return"none"!==t.transform||/transform|perspective/.test(t.willChange)||"none"!==t.filter||"paint"===t.contain||"backdropFilter"in t&&"none"!==t.backdropFilter||"WebkitBackdropFilter"in t&&"none"!==t.WebkitBackdropFilter}var x=r(4934),R=r(79457),K=r(45249),M=r(10123);function L(e){let{ref:t,box:r,onResize:n}=e,l=(0,M.J)(n);(0,i.useEffect)(()=>{let e=t?.current;if(e)if(void 0===window.ResizeObserver)return window.addEventListener("resize",l,!1),()=>{window.removeEventListener("resize",l,!1)};else{let t=new window.ResizeObserver(e=>{e.length&&l()});return t.observe(e,{box:r}),()=>{e&&t.unobserve(e)}}},[t,r])}let P="u">typeof document?window.visualViewport:null;var I=r(96635),k=r(10751),O=r(39378),D=r(87791),F=r(91618),A=r(93311),_=r(17821),H=r(68615),z=r(46198),W=r(93952),B=r(68311),V=r(60273);let j=(0,i.createContext)(null),q=(0,i.createContext)(null),$=(0,i.forwardRef)(function(e,t){[e,t]=(0,n.JT)(e,t,j);let r=(0,i.useContext)(o.RG),l=(0,W.T)(e),s=null==e.isOpen&&null==e.defaultOpen&&r?r:l,a=(0,B.O)(t,s.isOpen),c=e.isExiting||!e.shouldSkipAnimation&&a||!1,u=(0,V.m_)(),{direction:d}=(0,K.Y)();if(u){let t=e.children;return"function"==typeof t&&(t=t({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),i.createElement(i.Fragment,null,t)}return!s||s.isOpen||c?i.createElement(U,{...e,triggerRef:e.triggerRef,state:s,popoverRef:t,isExiting:c,dir:d}):null});function U({state:e,isExiting:t,UNSTABLE_portalContainer:r,clearContexts:o,...a}){let h=(0,i.useRef)(null),p=(0,i.useRef)(null),g=(0,i.useContext)(q),M=g&&"SubmenuTrigger"===a.trigger,{popoverProps:W,underlayProps:V,arrowProps:j,placement:$,triggerAnchorPoint:J}=function(e,t){let{triggerRef:r,popoverRef:n,groupRef:l,isNonModal:o,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:h,...p}=e,g="SubmenuTrigger"===p.trigger,{overlayProps:M,underlayProps:F}
1=(0,O.e)({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!o||g,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:h},l??n),{overlayProps:A,arrowProps:_,placement:H,triggerAnchorPoint:z}=function(e){var t;let{direction:r}=(0,K.Y)(),{arrowSize:n,targetRef:l,overlayRef:o,arrowRef:s,scrollRef:a=o,placement:h="bottom",containerPadding:p=12,shouldFlip:g=!0,boundaryElement:M="u">typeof document?document.body:null,offset:I=0,crossOffset:k=0,shouldUpdatePosition:O=!0,isOpen:D=!0,onClose:F,maxHeight:A,arrowBoundaryOffset:_=0,getTargetRect:H}=e,[z,W]=(0,i.useState)(null),B=[O,h,o.current,l.current,s?.current,a.current,p,g,M,I,k,D,r,A,_,n],V=(0,i.useRef)(P?.scale);(0,i.useEffect)(()=>{D&&(V.current=P?.scale)},[D]);let j=(0,i.useCallback)(()=>{var e;if(!1===O||!D||!o.current||!l.current||!M||P?.scale!==V.current)return;let t=null;if(a.current&&(0,c.ae)(a.current)){let e=(0,c.bq)()?.getBoundingClientRect(),r=a.current.getBoundingClientRect();(t={type:"top",offset:(e?.top??0)-r.top}).offset>r.height/2&&(t.type="bottom",t.offset=(e?.bottom??0)-r.bottom)}let i=o.current;!A&&o.current&&(i.style.top="0px",i.style.bottom="",i.style.maxHeight=(window.visualViewport?.height??window.innerHeight)+"px");let x=function(e){let t,r,{placement:n,targetNode:i,overlayNode:l,scrollNode:o,padding:s,shouldFlip:a,boundaryElement:h,offset:p,crossOffset:g,maxHeight:x,arrowSize:R=0,arrowBoundaryOffset:K=0,targetRect:M}=e,L="u">typeof document?window.visualViewport:null,P=l instanceof HTMLElement?function(e){let t=e.offsetParent;if(t&&t===document.body&&"static"===window.getComputedStyle(t).position&&!T(t)&&(t=document.documentElement),null==t)for(t=e.parentElement;t&&!T(t);)t=t.parentElement;return t||document.documentElement}(l):document.documentElement,I=P===document.documentElement,k=window.getComputedStyle(P).position,O=I?S(i,!1,M):C(i,P,!1,M);if(!I){let{marginTop:e,marginLeft:t}=window.getComputedStyle(i);O.top+=parseInt(e,10)||0,O.left+=parseInt(t,10)||0}let D=S(l,!0),F={top:parseInt((t=window.getComputedStyle(l)).marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0};D.width+=(F.left??0)+(F.right??0),D.height+=(F.top??0)+(F.bottom??0),o.scrollTop,o.scrollLeft,o.scrollWidth,o.scrollHeight;let A=v(h,L),_=v(P,L);if("BODY"!==h.tagName&&"HTML"!==h.tagName||I)r=("BODY"===h.tagName||"HTML"===h.tagName)&&I?{top:0,left:0,width:0,height:0}:C(h,P,!1);else{let e=N(P,!1);r={top:-(e.top-A.top),left:-(e.left-A.left),width:0,height:0}}return function(e,t,r,n,i,l,o,s,a,c,h,p,g,v,N,S,C){var T,x,R;let K,M,L,P=b(e),{size:I,crossAxis:k,crossSize:O,placement:D,crossPlacement:F}=P,A=E(t,o,r,P,c,h,a,p,v,N,s),_=c,H=w(o,a,t,n,i+c,P,s,S);if(l&&r[I]>H){let e=b(`${f[D]} ${F}`),l=E(t,o,r,e,c,h,a,p,v,N,s);w(o,a,t,n,i+c,e,s,S)>H&&(P=e,A=l,_=c)}let z="bottom";"top"===P.axis?"top"===P.placement?z="top":"bottom"===P.placement&&(z="bottom"):"top"===P.crossAxis&&("top"===P.crossPlacement?z="bottom":"bottom"===P.crossPlacement&&(z="top"));let W=y(k,A[k],r[O],o,s,i,a);A[k]+=W;let B=(T=A,x=r.height,R=z,K=(null!=T.top?T.top:s[m.height]-(T.bottom??0)-x)-(s.scroll.top??0),M=S?a.top:0,L={top:Math.max(o.top+M,(C?.offsetTop??o.top)+M),bottom:Math.min(o.top+o.height+M,(C?.offsetTop??0)+(C?.height??0))},"top"!==R?Math.max(0,L.bottom-K-((n.top??0)+(n.bottom??0)+i)):Math.max(0,K+x-L.top-((n.top??0)+(n.bottom??0)+i)));g&&g<B&&(B=g),r.height=Math.min(r.height,B),W=y(k,(A=E(t,o,r,P,_,h,a,p,v,N,s))[k],r[O],o,s,i,a),A[k]+=W;let V={},j=t[k]-A[k]-n[d[k]],q=j+.5*t[O],$=v/2+N,U="left"===d[k]?(n.left??0)+(n.right??0):(n.top??0)+(n.bottom??0),J=r[O]-U-v/2-N,Y=u(q,t[k]+v/2-(A[k]+n[d[k]]),t[k]+t[O]-v/2-(A[k]+n[d[k]]));V[k]=u(Y,$,J),({placement:D,crossPlacement:F}=P),v?j=V[k]:"right"===F?j+=t[O]:"center"===F&&(j+=t[O]/2);let G="left"===D||"top"===D?r[I]:0,X={x:"top"===D||"bottom"===D?j:G,y:"left"===D||"right"===D?j:G};return{position:A,maxHeight:B,arrowOffsetLeft:V.left,arrowOffsetTop:V.top,placement:D,triggerAnchorPoint:X}}(n,O,D,F,s,a,A,_,r,p,g,!!k&&"static"!==k,x,R,K,(0,c.sD)(h,P),L)}({placement:(e=h,"rtl"===r?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")),overlayNode:o.current,targetNode:l.current,scrollNode:a.current||o.current,padding:p,shouldFlip:g,boundaryElement:M,offset:I,crossOffset:k,maxHeight:A,arrowSize:n??(s?.current?N(s.current,!0).width:0),arrowBoundaryOffset:_,targetRect:H?.(l.current)});if(!x.position)return;i.style.top="",i.style.bottom="",i.style.left="",i.style.right="",Object.keys(x.position).forEac
1h(e=>i.style[e]=x.position[e]+"px"),i.style.maxHeight=null!=x.maxHeight?x.maxHeight+"px":"";let R=(0,c.bq)();if(t&&R&&a.current){let e=R.getBoundingClientRect(),r=a.current.getBoundingClientRect(),n=e[t.type]-r[t.type];a.current.scrollTop+=n-t.offset}W(x)},B);(0,R.N)(j,B),t=j,(0,R.N)(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t]),L({ref:o,onResize:j}),L({ref:l,onResize:j});let q=(0,i.useRef)(!1);(0,R.N)(()=>{let e,t=()=>{q.current=!0,clearTimeout(e),e=setTimeout(()=>{q.current=!1},500),j()},r=()=>{q.current&&t()};return P?.addEventListener("resize",t),P?.addEventListener("scroll",r),()=>{P?.removeEventListener("resize",t),P?.removeEventListener("scroll",r)}},[j]);let $=(0,i.useCallback)(()=>{q.current||F?.()},[F,q]);return(0,x.o)({triggerRef:l,isOpen:D,onClose:F&&$}),{overlayProps:{style:{position:z?"absolute":"fixed",top:z?void 0:0,left:z?void 0:0,zIndex:1e5,...z?.position,maxHeight:z?.maxHeight??"100vh"}},placement:z?.placement??null,triggerAnchorPoint:z?.triggerAnchorPoint??null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:z?.arrowOffsetLeft,top:z?.arrowOffsetTop}},updatePosition:j}}({...p,targetRef:r,overlayRef:n,isOpen:t.isOpen,onClose:o&&!g?t.close:null,getTargetRect:p.getTargetRect??(t.point?()=>new DOMRect(t.point.x,t.point.y,0,0):void 0)});(0,D.H)({isDisabled:o||!t.isOpen}),(0,i.useEffect)(()=>{if(t.isOpen&&n.current)if(o)return(0,s.O)(l?.current??n.current);else return(0,s.h)([l?.current??n.current],{shouldUseInert:!0})},[o,t.isOpen,n,l]);let{focusWithinProps:W}=(0,I.R)(e);return{popoverProps:(0,k.v)(M,A,W),arrowProps:_,underlayProps:F,placement:H,triggerAnchorPoint:z}}({...a,offset:a.offset??8,arrowRef:h,groupRef:M?g:p},e),Y=a.popoverRef,G=(0,B._)(Y,!!$),X=a.isEntering||!a.shouldSkipAnimation&&G||!1,Z=(0,n.Sl)({...a,defaultClassName:"react-aria-Popover",values:{trigger:a.trigger||null,placement:$,isEntering:X,isExiting:t}}),Q=!a.isNonModal||"SubmenuTrigger"===a.trigger||"PreviewTrigger"===a.trigger,[ee,et]=(0,i.useState)("PreviewTrigger"===a.trigger);(0,R.N)(()=>{Y.current&&et(Q&&!Y.current.querySelector("[role=dialog]"))},[Y,Q]),(0,i.useEffect)(()=>{ee&&"PreviewTrigger"!==a.trigger&&("SubmenuTrigger"!==a.trigger||"pointer"!==(0,z.ME)())&&Y.current&&!(0,c.ae)(Y.current)&&(0,H.l)(Y.current)},[ee,Y,a.trigger]);let er=(0,i.useMemo)(()=>{let e=Z.children;if(o)for(let t of o)e=i.createElement(t.Provider,{value:null},e);return e},[Z.children,o]),[en,ei]=(0,i.useState)(null),el=(0,i.useCallback)(()=>{a.triggerRef.current&&ei(a.triggerRef.current.getBoundingClientRect().width+"px")},[a.triggerRef]);(0,R.N)(el,[el]),L({ref:Z.style?.["--trigger-width"]?void 0:a.triggerRef,onResize:el});let eo={...W.style,"--trigger-anchor-point":J?`${J.x}px ${J.y}px`:void 0,...Z.style,"--trigger-width":Z.style?.["--trigger-width"]||en},es=i.createElement(n.tT.div,{...(0,k.v)((0,_.$)(a,{global:!0}),W),...Z,id:ee?a.id:void 0,role:ee?"dialog":void 0,tabIndex:ee?-1:void 0,"aria-label":a["aria-label"],"aria-labelledby":a["aria-labelledby"],ref:Y,slot:a.slot||void 0,style:eo,dir:a.dir,"data-trigger":a.trigger,"data-placement":$,"data-entering":X||void 0,"data-exiting":t||void 0},!a.isNonModal&&i.createElement(F.R,{onDismiss:e.close}),i.createElement(l.Provider,{value:{...j,placement:$,ref:h}},er),i.createElement(F.R,{onDismiss:e.close}));return M?i.createElement(A.hJ,{...a,shouldContainFocus:ee&&"PreviewTrigger"!==a.trigger,isExiting:t,portalContainer:r??g?.current??void 0},es):i.createElement(A.hJ,{...a,shouldContainFocus:ee&&"PreviewTrigger"!==a.trigger,isExiting:t,portalContainer:r},!a.isNonModal&&e.isOpen&&i.createElement("div",{"data-testid":"underlay",...V,style:{position:"fixed",inset:0}}),i.createElement("div",{ref:p,style:{display:"contents"}},i.createElement(q.Provider,{value:p},es)))}},68311:(e,t,r)=>{r.d(t,{O:()=>s,_:()=>o});var n=r(79457),i=r(47650),l=r(12115);function o(e,t=!0){let[r,i]=(0,l.useState)(!0),s=r&&t;return(0,n.N)(()=>{if(s&&e.current&&"getAnimations"in e.current)for(let t of e.current.getAnimations())t instanceof CSSTransition&&t.cancel()},[e,s]),a(e,s,(0,l.useCallback)(()=>i(!1),[])),s}function s(e,t){let[r,n]=(0,l.useState)(t?"open":"closed");switch(r){case"open":t||n("exiting");break;case"closed":case"exiting":t&&n("open")}let i="exiting"===r;return a(e,i,(0,l.useCallback)(()=>{n(e=>"exiting"===e?"closed":e)},[])),i}function a(e,t,r){(0,n.N)(()=>
1{if(t&&e.current){if(!("getAnimations"in e.current))return void r();let t=e.current.getAnimations();if(0===t.length)return void r();let n=!1;return Promise.allSettled(t.map(e=>e.finished)).then(()=>{n||(0,i.flushSync)(()=>{r()})}),()=>{n=!0}}},[e,t,r])}},74630:(e,t,r)=>{r.d(t,{I:()=>o,J:()=>s});var n=r(89707),i=r(60273),l=r(12115);let o=(0,l.createContext)({}),s=(0,i.U7)(function(e,t){[e,t]=(0,n.JT)(e,t,o);let{elementType:r="label",...i}=e,s=n.tT[r];return l.createElement(s,{className:"react-aria-Label",...i,ref:t})})},76240:(e,t,r)=>{r.d(t,{A_:()=>i});var n=r(25854);let i=Object.assign(n.q,{Root:n.q})},80708:(e,t,r)=>{r.d(t,{c:()=>n});let n=(0,r(12115).createContext)(null)},82490:(e,t,r)=>{r.d(t,{Co:()=>i,wv:()=>l});var n=r(12115);let i=(0,n.createContext)(null),l=(0,n.createContext)(null)},86795:(e,t,r)=>{r.d(t,{lG:()=>T,zM:()=>C,RG:()=>S});var n=r(46689),i=r(89707),l=r(5266),o=r(63876),s=r(18194),a=r(12115),c=r(98314);let u=(0,a.createContext)(null);class d extends s.Pt{static{this.type="submenutrigger"}filter(e,t,r){let n=e.getItem(this.firstChildKey);if(n&&r(n.textValue,this)){let r=this.clone();return t.addDescendants(r,e),r}return null}}c.Y;var f=r(59099),h=r(17821),p=r(68615),m=r(63705),g=r(93311),v=r(63875),y=r(10751),b=r(61244),E=r(93952),w=r(48916);let N=(0,a.createContext)(null),S=(0,a.createContext)(null);function C(e){let t=function(e){let t=(0,E.T)(e),[r,n]=(0,a.useState)(null),[i,l]=(0,a.useState)([]);return{focusStrategy:r,...t,open(e=null){n(e),t.open()},toggle(e=null){n(e),t.toggle()},close(){l([]),t.close()},expandedKeysStack:i,openSubmenu:(e,t)=>{l(r=>t>r.length?r:[...r.slice(0,t),e])},closeSubmenu:(e,t)=>{l(r=>r[t]===e?r.slice(0,t):r)}}}(e),r=(0,a.useRef)(null),{triggerProps:n,overlayProps:l}=(0,w.o)({type:"dialog"},t,r);return n.id=(0,v.Bi)(),l["aria-labelledby"]=n.id,a.createElement(i.Kq,{values:[[S,t],[u,t],[N,l],[o.n,{trigger:"DialogTrigger",triggerRef:r,id:l.id,"aria-labelledby":l["aria-labelledby"]}]]},a.createElement(b.Y,{...n,ref:r,isPressed:t.isOpen},e.children))}let T=(0,a.forwardRef)(function(e,t){let r=e["aria-labelledby"];[e,t]=(0,i.JT)(e,t,N);let{dialogProps:o,titleProps:s,contentProps:c}=function(e,t){let{role:r="dialog"}=e,n=(0,v.X1)();n=e["aria-label"]?void 0:n;let i=(0,v.X1)();i="alertdialog"!==r||e["aria-describedby"]?void 0:i;let l=(0,a.useRef)(!1);(0,a.useEffect)(()=>{if(t.current&&!(0,m.ae)(t.current)){(0,p.l)(t.current);let e=setTimeout(()=>{((0,m.bq)()===t.current||(0,m.bq)()===document.body)&&(l.current=!0,t.current&&(t.current.blur(),(0,p.l)(t.current)),l.current=!1)},500);return()=>{clearTimeout(e)}}},[t]),(0,g.Se)(),(0,a.useRef)(!1),(0,a.useEffect)(()=>{});let o=e["aria-describedby"]??i;return{dialogProps:{...(0,h.$)(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]??n,"aria-describedby":o,onBlur:e=>{l.current&&e.stopPropagation()}},titleProps:{id:n},contentProps:{id:i}}}({...e,"aria-labelledby":r},t),u=(0,a.useContext)(S);o["aria-label"]||o["aria-labelledby"]||e["aria-labelledby"]&&(o["aria-labelledby"]=e["aria-labelledby"]);let d=(0,i.Sl)({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:u?.close||(()=>{})}}),b=(0,h.$)(e,{global:!0});return a.createElement(i.tT.section,{...(0,y.v)(b,d,o),render:e.render,ref:t,slot:e.slot||void 0},a.createElement(i.Kq,{values:[[l.A,{slots:{[i.P_]:{},title:{...s,level:2}}}],[f.h,{slots:{[i.P_]:{},description:c}}],[n.k,{slots:{[i.P_]:{},close:{onPress:()=>u?.close()}}}]]},d.children))})},87791:(e,t,r)=>{let n;r.d(t,{H:()=>p});var i=r(38402),l=r(63705),o=r(56836),s=r(11858),a=r(12652),c=r(97366),u=r(79457),d=r(45826);let f="u">typeof document&&window.visualViewport,h=0;function p(e={}){let{isDisabled:t}=e;(0,u.N)(()=>{if(!t){let e,t,r,u,f,p,y,b;return 1==++h&&(n=(0,a.un)()&&(0,a.Tc)()?(t=m(document.documentElement,"overflow","hidden"),r=!1,u=document.createElement("style"),(f=(0,o.m)())&&(u.nonce=f),u.textContent=`
2@layer {
3  * {
4    overscroll-behavior: contain;
5  }
6}`.trim(),document.head.prepend(u),p=HTMLElement.prototype.focus,HTMLElement.prototype.focus=function(e){let t=(0,l.bq)(),r=null!=t&&(0,d.o)(t);p.call(this,{...e,preventScroll:!0}),e&&e.preventScroll||v(this,r)},y=(0,i.c)(g(document,"touchstart",t=>{let n=(0,l.wt)(t);e=(0,c.o)(n)?n:(0,s.m)(n,!0),r=!1;let i=n.ownerDocument.defaultView.getSelection();i&&!i.isCollapsed&&i.containsNode(n,!0)&&(r=!0),t.composedPath().some(e=>e instanceof HTMLInputElement&&"range"===e.type)&&(r=!0),"selectionStart"in n&&"selectionEnd"in n&&n.selectionStart<n.selectionEnd&&n.ownerDocument.activeElement===n&&(r=!0)},{passive:!1,capture:!0}),g(document,"touchmove",t=>{if(2!==t.touches.length&&!r){if(!e||e===document.documentElement||e===document.body)return void t.preventDefault();e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&t.preventDefault()}},{passive:!1,capture:!0}),g(document,"blur",e=>{let t=(0,l.wt)(e),r=e.relatedTarget;if(r&&(0,d.o)(r))r.focus({preventScroll:!0}),v(r,(0,d.o)(t));else if(!r){let e=t.parentElement?.closest("[tabindex]");e?.focus({preventScroll:!0})}},!0)),()=>
6{t(),y(),u.remove(),HTMLElement.prototype.focus=p}):(b=window.innerWidth-document.documentElement.clientWidth,(0,i.c)(b>0&&("scrollbarGutter"in document.documentElement.style?m(document.documentElement,"scrollbarGutter","stable"):m(document.documentElement,"paddingRight",`${b}px`)),m(document.documentElement,"overflow","hidden")))),()=>{0==--h&&n()}}},[t])}function m(e,t,r){let n=e.style[t];return e.style[t]=r,()=>{e.style[t]=n}}function g(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function v(e,t){t||!f?y(e):f.addEventListener("resize",()=>y(e),{once:!0})}function y(e){let t=document.scrollingElement||document.documentElement,r=e;for(;r&&r!==t;){let e=(0,s.m)(r);if(e!==document.documentElement&&e!==document.body&&e!==r){let t=e.getBoundingClientRect(),n=r.getBoundingClientRect();if(n.top<t.top||n.bottom>t.top+r.clientHeight){let r=t.bottom;f&&(r=Math.min(r,f.offsetTop+f.height));let i=n.top-t.top-((r-t.top)/2-n.height/2);e.scrollTo({top:Math.max(0,Math.min(e.scrollHeight-e.clientHeight,e.scrollTop+i)),behavior:"smooth"})}}r=e.parentElement}}},91618:(e,t,r)=>{r.d(t,{R:()=>a});var n={};n={"ar-AE":{dismiss:"تجاهل"},"bg-BG":{dismiss:"Отхвърляне"},"cs-CZ":{dismiss:"Odstranit"},"da-DK":{dismiss:"Luk"},"de-DE":{dismiss:"Schlie\xdfen"},"el-GR":{dismiss:"Απόρριψη"},"en-US":{dismiss:"Dismiss"},"es-ES":{dismiss:"Descartar"},"et-EE":{dismiss:"L\xf5peta"},"fi-FI":{dismiss:"Hylk\xe4\xe4"},"fr-FR":{dismiss:"Rejeter"},"he-IL":{dismiss:"התעלם"},"hr-HR":{dismiss:"Odbaci"},"hu-HU":{dismiss:"Elutas\xedt\xe1s"},"it-IT":{dismiss:"Ignora"},"ja-JP":{dismiss:"閉じる"},"ko-KR":{dismiss:"무시"},"lt-LT":{dismiss:"Atmesti"},"lv-LV":{dismiss:"Nerādīt"},"nb-NO":{dismiss:"Lukk"},"nl-NL":{dismiss:"Negeren"},"pl-PL":{dismiss:"Zignoruj"},"pt-BR":{dismiss:"Descartar"},"pt-PT":{dismiss:"Dispensar"},"ro-RO":{dismiss:"Revocare"},"ru-RU":{dismiss:"Пропустить"},"sk-SK":{dismiss:"Zrušiť"},"sl-SI":{dismiss:"Opusti"},"sr-SP":{dismiss:"Odbaci"},"sv-SE":{dismiss:"Avvisa"},"tr-TR":{dismiss:"Kapat"},"uk-UA":{dismiss:"Скасувати"},"zh-CN":{dismiss:"取消"},"zh-TW":{dismiss:"關閉"}};var i=r(30785),l=r(40023),o=r(39451),s=r(12115);function a(e){var t;let{onDismiss:r,...a}=e,c=(0,l.o)((t=n)&&t.__esModule?t.default:t,"@react-aria/overlays"),u=(0,i.b)(a,c.format("dismiss"));return s.createElement(o.s,null,s.createElement("button",{...u,tabIndex:-1,onClick:()=>{r&&r()},style:{width:1,height:1}}))}},93311:(e,t,r)=>{r.d(t,{hJ:()=>f,Se:()=>h});var n=r(61244),i=r(366),l=r(41320),o=r(32729),s=r(79457),a=r(12115);let c=(0,a.createContext)({});var u=r(47650);let d=a.createContext(null);function f(e){let t=(0,o.wR)(),{portalContainer:r=t?null:document.body,isExiting:s}=e,[f,h]=(0,a.useState)(!1),p=(0,a.useMemo)(()=>({contain:f,setContain:h}),[f,h]),{getContainer:m}=(0,a.useContext)(c)??{};if(!e.portalContainer&&m&&(r=m()),!r)return null;let g=e.children;return e.disableFocusManagement||(g=a.createElement(l.n1,{restoreFocus:!0,contain:(e.shouldContainFocus||f)&&!s},g)),g=a.createElement(d.Provider,{value:p},a.createElement(n.N,null,a.createElement(i.gY.Provider,{value:null},g))),u.createPortal(g,r)}function h(){let e=(0,a.useContext)(d),t=e?.setContain;(0,s.N)(()=>{t?.(!0)},[t])}},93952:(e,t,r)=>{r.d(t,{T:()=>l});var n=r(49072),i=r(12115);function l(e){let[t,r]=(0,n.P)(e.isOpen,e.defaultOpen||!1,e.onOpenChange),[l,o]=(0,i.useState)(null),s=(0,i.useCallback)(()=>{r(!0)},[r]),a=(0,i.useCallback)(()=>{r(!1)},[r]),c=(0,i.useCallback)(()=>{r(!t)},[r,t]);return{isOpen:t,setOpen:r,open:s,close:a,toggle:c,point:l,setPoint:o}}},94039:(e,t,r)=>{r.d(t,{L:()=>n});class n extends Set{constructor(e,t,r){super(e),e instanceof n?(this.anchorKey=t??e.anchorKey,this.currentKey=r??e.currentKey):(this.anchorKey=t??null,this.currentKey=r??null)}}},97366:(e,t,r)=>{r.d(t,{o:()=>n});function n(e,t){if(!e)return!1;let r=window.getComputedStyle(e),n=document.scrollingElement||document.documentElement,i=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return e===n&&"hidden"!==r.overflow&&(i=!0),i&&t&&(i=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),i}},98314:(e,t,r)=>{r.d(t,{Y:()=>l});var n=r(22257),i=r(94039);class l{constructor(e,t,r){this.collection=e,this.state=t,this.allowsCellSelection=r?.allowsCellSelection??!1,this._isSelectAll=null,this.layoutDelegate=r?.layoutDelegate||null,this.fullCollection=r?.fullCollection||null}get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(null==e||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return"all"===this.state.selectedKeys?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if("none"===this.state.selectionMode)return!1;let t=this.getKey(e);return null!=t&&("all"===this.state.selectedKeys?this.canSelectItem(t):this.state.selectedKeys.has(t))}get isEmpty(){return"all"!==this.state.selectedKeys&&0===this.state.selectedKeys.size}get isSelectAll(){if(this.isEmpty)return!1;if("all"===this.state.selectedKeys)return!0;
6if(null!=this._isSelectAll)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every(e=>t.has(e)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let r=this.collection.getItem(t);(!e||r&&0>(0,n.o3)(this.collection,r,e))&&(e=r)}return e?.key??null}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let r=this.collection.getItem(t);(!e||r&&(0,n.o3)(this.collection,r,e)>0)&&(e=r)}return e?.key??null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){let t;if("none"===this.selectionMode)return;if("single"===this.selectionMode)return void this.replaceSelection(e);let r=this.getKey(e);if(null!=r){if("all"===this.state.selectedKeys)t=new(0,i.L)([r],r,r);else{let e=this.state.selectedKeys,n=e.anchorKey??r;for(let l of(t=new(0,i.L)(e,n,r),this.getKeyRange(n,e.currentKey??r)))t.delete(l);for(let e of this.getKeyRange(r,n))this.canSelectItem(e)&&t.add(e)}this.state.setSelectedKeys(t)}}getKeyRange(e,t){let r=this.collection.getItem(e),i=this.collection.getItem(t);return r&&i?0>=(0,n.o3)(this.collection,r,i)?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){if(this.layoutDelegate?.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let r=[],n=e;for(;null!=n;){let e=this.collection.getItem(n);if(e&&("item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&r.push(n),n===t)return r;n=this.collection.getKeyAfter(n)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t||"cell"===t.type&&this.allowsCellSelection)return e;for(;t&&"item"!==t.type&&null!=t.parentKey;)t=this.collection.getItem(t.parentKey);return t&&"item"===t.type?t.key:null}toggleSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode&&!this.isSelected(e))return void this.replaceSelection(e);let t=this.getKey(e);if(null==t)return;let r=new(0,i.L)("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);r.has(t)?r.delete(t):this.canSelectItem(t)&&(r.add(t),r.anchorKey=t,r.currentKey=t),this.disallowEmptySelection&&0===r.size||this.state.setSelectedKeys(r)}replaceSelection(e){if("none"===this.selectionMode)return;let t=this.getKey(e);if(null==t)return;let r=this.canSelectItem(t)?new(0,i.L)([t],t,t):new(0,i.L);this.state.setSelectedKeys(r)}setSelectedKeys(e){if("none"===this.selectionMode)return;let t=new(0,i.L);for(let r of e){let e=this.getKey(r);if(null!=e&&(t.add(e),"single"===this.selectionMode))break}this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=this.fullCollection??this.collection,t=[],r=i=>{for(;null!=i;){if(this.canSelectItemIn(i,e)){let l=e.getItem(i);l?.type==="item"&&t.push(i),l?.hasChildNodes&&(this.allowsCellSelection||"item"!==l.type)&&r((0,n.ue)((0,n.iQ)(l,e))?.key??null)}i=e.getKeyAfter(i)}};return r(e.getFirstKey()),t}selectAll(){this.isSelectAll||"multiple"!==this.selectionMode||this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&("all"===this.state.selectedKeys||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new(0,i.L))}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){"none"!==this.selectionMode&&("single"===this.selectionMode?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):"toggle"===this.selectionBehavior||t&&("touch"===t.pointerType||"virtual"===t.pointerType)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;for(let r of t)if(!e.has(r))return!1;return!0}canSelectItem(e){return this.canSelectItemIn(e,this.collection)}canSelectItemIn(e,t){if("none"===this.state.selectionMode||this.state.disabledKeys.has(e))return!1;let r=t.getItem(e);return!(!r||r?.props?.isDisabled)&&("cell"!==r.type||!!this.allowsCellSelection)}isDisabled(e){let t=this.collection.getItem(e);return"all"===this.state.disabledBehavior&&(this.state.disabledKeys.has(e)||!!t?.props?.isDisabled)&&t?.props?.disabledBehavior!=="selection"}isLink(e){return!!this.collection.getItem(e)?.props?.href}getItemProps(e){return this.collection.getItem(e)?.props}withCollection(e){return new l(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0,fullCollection:this.fullCollection??this.collection})}}}}]);

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.