@techdocs/cli
Version:
Utility CLI for managing TechDocs sites in Backstage.
1 lines • 171 kB
JavaScript
"use strict";(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([["5331"],{60806(e,t,n){n.d(t,{m:()=>E});var r=n(26157),i=n(61988),o=n(34122),l=n(81901),s=n(3837),a={};a={"ar-AE":{collectionLabel:"مقترحات"},"bg-BG":{collectionLabel:"Предложения"},"cs-CZ":{collectionLabel:"N\xe1vrhy"},"da-DK":{collectionLabel:"Forslag"},"de-DE":{collectionLabel:"Empfehlungen"},"el-GR":{collectionLabel:"Προτάσεις"},"en-US":{collectionLabel:"Suggestions"},"es-ES":{collectionLabel:"Sugerencias"},"et-EE":{collectionLabel:"Soovitused"},"fi-FI":{collectionLabel:"Ehdotukset"},"fr-FR":{collectionLabel:"Suggestions"},"he-IL":{collectionLabel:"הצעות"},"hr-HR":{collectionLabel:"Prijedlozi"},"hu-HU":{collectionLabel:"Javaslatok"},"it-IT":{collectionLabel:"Suggerimenti"},"ja-JP":{collectionLabel:"候補"},"ko-KR":{collectionLabel:"제안"},"lt-LT":{collectionLabel:"Pasiūlymai"},"lv-LV":{collectionLabel:"Ieteikumi"},"nb-NO":{collectionLabel:"Forslag"},"nl-NL":{collectionLabel:"Suggesties"},"pl-PL":{collectionLabel:"Sugestie"},"pt-BR":{collectionLabel:"Sugest\xf5es"},"pt-PT":{collectionLabel:"Sugest\xf5es"},"ro-RO":{collectionLabel:"Sugestii"},"ru-RU":{collectionLabel:"Предложения"},"sk-SK":{collectionLabel:"N\xe1vrhy"},"sl-SI":{collectionLabel:"Predlogi"},"sr-SP":{collectionLabel:"Predlozi"},"sv-SE":{collectionLabel:"F\xf6rslag"},"tr-TR":{collectionLabel:"\xd6neriler"},"uk-UA":{collectionLabel:"Пропозиції"},"zh-CN":{collectionLabel:"建议"},"zh-TW":{collectionLabel:"建議"}};var u=n(93523),c=n(99597),d=n(28052),f=n(92032),p=n(23900),h=n(55273),m=n(47499),g=n(5554),b=n(29226),v=n(44018),y=n(54469),w=n(14041);function E(e,t){var n;let{inputRef:E,collectionRef:P,filter:k,disableAutoFocusFirst:C=!1,disableVirtualFocus:T=!1}=e,S=(0,m.Bi)(),L=(0,w.useRef)(void 0),N=(0,w.useRef)(!1),x=(0,w.useRef)(null),K="virtual"===(0,l.ME)()&&((0,u.un)()||(0,u.m0)()),[M,D]=(0,w.useState)(!K&&!T),[R,F]=(0,w.useState)(!1);(0,w.useEffect)(()=>()=>clearTimeout(L.current),[]);let A=(0,p.J)(e=>{!e.isTrusted&&M&&E.current&&(0,o.bq)((0,s.TW)(E.current))!==E.current&&"touch"!==(0,l._q)()&&E.current.focus();let n=(0,o.wt)(e);!e.isTrusted&&n&&x.current!==n.id&&(clearTimeout(L.current),n!==P.current?N.current?(x.current=n.id,L.current=setTimeout(()=>{t.setFocusedNodeId(n.id)},500)):(x.current=n.id,t.setFocusedNodeId(n.id)):x.current&&!document.getElementById(x.current)&&(x.current=null,t.setFocusedNodeId(null)),N.current=!1)}),[I,O]=(0,w.useState)(null),B=(0,w.useCallback)(e=>{O(e),null!=e?(null!=e.getAttribute("tabindex")&&D(!1),F(!0)):F(!1)},[]);(0,b.N)(()=>(null!=I&&I.addEventListener("focusin",A),()=>{I?.removeEventListener("focusin",A)}),[I]);let H=(0,y.U)((0,w.useMemo)(()=>(0,f.P)(P,B),[P,B])),_=(0,w.useCallback)(()=>{N.current=!0,P.current?.dispatchEvent(new CustomEvent(r.C,{cancelable:!0,bubbles:!0,detail:{focusStrategy:"first"}}))},[P]),z=(0,w.useCallback)(e=>{(0,i.vX)((0,o.bq)()),x.current=null,t.setFocusedNodeId(null);let n=new CustomEvent(r.m,{cancelable:!0,bubbles:!0,detail:{clearFocusKey:e}});clearTimeout(L.current),N.current=!1,P.current?.dispatchEvent(n)},[P,t]),$=(0,w.useRef)("");(0,h._)(E,"input",e=>{let{inputType:t}=e;$.current=t});let W=(0,w.useRef)(null),V=(0,p.J)(e=>{if((0,o.wt)(e)===W.current){e.stopImmediatePropagation();let t=x.current;if(null==t)P.current?.dispatchEvent(new KeyboardEvent(e.type,e));else{let n=document.getElementById(t);n?.dispatchEvent(new KeyboardEvent(e.type,e))}}});(0,w.useEffect)(()=>(document.addEventListener("keyup",V,!0),()=>{document.removeEventListener("keyup",V,!0)}),[]);let U=(0,v.o)((n=a)&&n.__esModule?n.default:n,"@react-aria/autocomplete"),j=(0,g.b)({id:S,"aria-label":U.format("collectionLabel")}),q=(0,w.useCallback)((e,n)=>!k||k(e,t.inputValue,n),[t.inputValue,k]),G={value:t.inputValue,onChange:e=>{"insertText"!==$.current||C?$.current&&($.current.includes("insert")||$.current.includes("delete")||$.current.includes("history"))&&(z(!0),(0,i._P)(document)===E.current&&(0,i.Ig)(E.current,null)):_(),t.setInputValue(e)}},J={onKeyDown:e=>{if(W.current=(0,o.wt)(e),e.nativeEvent.isComposing)return;let n=x.current;switch(null!==n&&null==(0,s.TW)(E.current).getElementById(n)&&(x.current=null,n=null),e.key){case"a":if((0,c.B)(e))return;break;case"Escape":if(e.isDefaultPrevented())return;break;case" ":return;case"Tab":"continuePropagation"in e&&e.continuePropagation();return;case"Home":case"End":case"PageDown":case"PageUp":case"ArrowUp":case"ArrowDown":case"ArrowRight":case"ArrowLeft":{if(("Home"===e.key||"End"===e.key)&&null==n&&e.shiftKey)return;if(("ArrowRight"===e.key||"ArrowLeft"===e.key)&&t.inputValue.length>0){if(null==n){e.isPropagationStopped()||e.stopPropagation();return}break}e.preventDefault();let i=new CustomEvent(r.C,{cancelable:!0,bubbles:!0});P.current?.dispatchEvent(i)}}e.isPropagationStopped()||e.stopPropagation();let i=!0;if(null!==P.current)if(null==n)i=P.current?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent))||!1;else{let t=document.getElementById(n);t&&(i=t?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent))||!1)}if(i)switch(e.key){case"ArrowLeft":case"ArrowRight":z();break;case"Enter":if(null!=n){let t=document.getElementById(n);t?.dispatchEvent(new PointerEvent("click",e.nativeEvent))}}else e.preventDefault()},"aria-activedescendant":t.focusedNodeId??void 0,onBlur:e=>{if(!e.isTrusted)return;let t=x.current?document.getElementById(x.current):null;t&&(0,i.jo)(t,e.relatedTarget)},onFocus:e=>{if(e.isTrusted&&(x.current?document.getElementById(x.current):null)){let t=(0,o.wt)(e);queueMicrotask(()=>{(0,i.jo)(t,P.current),(0,i.Ig)(P.current,t)})}},onPointerDown:e=>{0===e.button&&"touch"!==e.pointerType&&null!=x.current&&null!=E.current&&(0,o.wt)(e)===E.current&&z()}};return R&&(G={...G,...M&&J,enterKeyHint:"go","aria-controls":S,"aria-autocomplete":"list",autoCorrect:"off",spellCheck:"false",autoComplete:"off"}),{inputProps:G,collectionProps:(0,d.v)(j,{shouldUseVirtualFocus:M,disallowTypeAhead:M}),collectionRef:H,filter:null!=k?q:void 0}}},3783(e,t,n){n.d(t,{i:()=>l});var r=n(59878),i={};i={"ar-AE":{breadcrumbs:"عناصر الواجهة"},"bg-BG":{breadcrumbs:"Трохи хляб"},"cs-CZ":{breadcrumbs:"Popis cesty"},"da-DK":{breadcrumbs:"Br\xf8dkrummer"},"de-DE":{breadcrumbs:"Breadcrumbs"},"el-GR":{breadcrumbs:"Πλοηγήσεις breadcrumb"},"en-US":{breadcrumbs:"Breadcrumbs"},"es-ES":{breadcrumbs:"Migas de pan"},"et-EE":{breadcrumbs:"Lingiread"},"fi-FI":{breadcrumbs:"Navigointilinkit"},"fr-FR":{breadcrumbs:"Chemin de navigation"},"he-IL":{breadcrumbs:"שבילי ניווט"},"hr-HR":{breadcrumbs:"Navigacijski putovi"},"hu-HU":{breadcrumbs:"Morzsamen\xfc"},"it-IT":{breadcrumbs:"Breadcrumb"},"ja-JP":{breadcrumbs:"パンくずリスト"},"ko-KR":{breadcrumbs:"탐색 표시"},"lt-LT":{breadcrumbs:"Naršymo kelias"},"lv-LV":{breadcrumbs:"Atpakaļceļi"},"nb-NO":{breadcrumbs:"Navigasjonsstier"},"nl-NL":{breadcrumbs:"Broodkruimels"},"pl-PL":{breadcrumbs:"Struktura nawigacyjna"},"pt-BR":{breadcrumbs:"Caminho detalhado"},"pt-PT":{breadcrumbs:"Categorias"},"ro-RO":{breadcrumbs:"Miez de p\xe2ine"},"ru-RU":{breadcrumbs:"Навигация"},"sk-SK":{breadcrumbs:"Navigačn\xe9 prvky Breadcrumbs"},"sl-SI":{breadcrumbs:"Drobtine"},"sr-SP":{breadcrumbs:"Putanje navigacije"},"sv-SE":{breadcrumbs:"S\xf6kv\xe4gar"},"tr-TR":{breadcrumbs:"İ\xe7erik haritaları"},"uk-UA":{breadcrumbs:"Навігаційна стежка"},"zh-CN":{breadcrumbs:"导航栏"},"zh-TW":{breadcrumbs:"導覽列"}};var o=n(44018);function l(e){var t;let{"aria-label":n,...l}=e,s=(0,o.o)((t=i)&&t.__esModule?t.default:t,"@react-aria/breadcrumbs");return{navProps:{...(0,r.$)(l,{labelable:!0}),"aria-label":n||s.format("breadcrumbs")}}}},4784(e,t,n){n.d(t,{s:()=>s});var r=n(59878),i=n(28052),o=n(73817),l=n(99278);function s(e,t){let n,{elementType:s="button",isDisabled:a,onPress:u,onPressStart:c,onPressEnd:d,onPressUp:f,onPressChange:p,preventFocusOnPress:h,allowFocusWhenDisabled:m,onClick:g,href:b,target:v,rel:y,type:w="button"}=e;n="button"===s?{type:w,disabled:a,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:{role:"button",href:"a"!==s||a?void 0:b,target:"a"===s?v:void 0,type:"input"===s?w:void 0,disabled:"input"===s?a:void 0,"aria-disabled":a&&"input"!==s?a:void 0,rel:"a"===s?y:void 0};let{pressProps:E,isPressed:P}=(0,l.d)({onPressStart:c,onPressEnd:d,onPressChange:p,onPress:u,onPressUp:f,onClick:g,isDisabled:a,preventFocusOnPress:h,ref:t}),{focusableProps:k}=(0,o.Wc)(e,t);m&&(k.tabIndex=a?-1:k.tabIndex);let C=(0,i.v)(k,E,(0,r.$)(e,{labelable:!0}));return{isPressed:P,buttonProps:(0,i.v)(n,C,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}},3453(e,t,n){n.d(t,{EH:()=>o,OJ:()=>l,Pt:()=>r,Wk:()=>u,_B:()=>s,ox:()=>a,ru:()=>i});class r{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,n){let r=this.clone();return t.addDescendants(r,e),r}}class i extends r{filter(e,t,n){let[r,i]=c(e,t,this.firstChildKey,n),o=this.clone();return o.firstChildKey=r,o.lastChildKey=i,o}}class o extends r{static{this.type="header"}}class l extends r{static{this.type="loader"}}class s extends i{static{this.type="item"}filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}}class a extends i{static{this.type="section"}filter(e,t,n){let r=super.filter(e,t,n);if(r&&null!==r.lastChildKey){let t=e.getItem(r.lastChildKey);if(t&&"header"!==t.type)return r}return null}}class u{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 n=t.get(e),r=n?.firstChildKey!=null?t.get(n.firstChildKey):null;for(;r;)yield r,r=null!=r.nextKey?t.get(r.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 n of(this.addNode(e),t.getChildren(e.key)))this.addDescendants(n,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,n=!1){if(this.frozen)throw Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=t,this.frozen=!n}filter(e){let t=new this.constructor,[n,r]=c(this,t,this.firstKey,e);return t?.commit(n,r),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function c(e,t,n,r){if(null==n)return[null,null];let i=null,o=null,l=e.getItem(n);for(;null!=l;){let n=l.filter(e,t,r);null!=n&&(n.nextKey=null,o&&(n.prevKey=o.key,o.nextKey=n.key),null==i&&(i=n),t.addNode(n),o=n),l=l.nextKey?e.getItem(l.nextKey):null}if(o&&"separator"===o.type){let e=o.prevKey;t.removeNode(o.key),e?(o=t.getItem(e)).nextKey=null:o=null}return[i?.key??null,o?.key??null]}},87426(e,t,n){n.d(t,{pM:()=>T,GQ:()=>g,KU:()=>E,yq:()=>P});var r=n(3453);class i{constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){return this.parentNode?.isConnected||!1}invalidateChildIndices(e){(null==this._minInvalidChildIndex||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),null==this.firstChild&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,t){if(null==t)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index-1,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode===this&&(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}}class o extends i{constructor(e,t){super(t),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof o?this.parentNode.level+ +(this.parentNode.node?.type==="item"):0}getMutableNode(){return null==this.node?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){let e=this.nextVisibleSibling,t=this.getMutableNode();if(null!=t&&(t.index=this.index,t.level=this.level,t.parentKey=this.parentNode instanceof o?this.parentNode.node?.key??null:null,t.prevKey=this.previousVisibleSibling?.node?.key??null,t.nextKey=e?.node?.key??null,t.hasChildNodes=!!this.firstChild,t.firstChildKey=this.firstVisibleChild?.node?.key??null,t.lastChildKey=this.lastVisibleChild?.node?.key??null,(null!=t.colSpan||null!=t.colIndex)&&e)){let n=(t.colIndex??t.index)+(t.colSpan??1);null!=e.node&&n!==e.node.colIndex&&(e.getMutableNode().colIndex=n)}}setProps(e,t,n,r,i){let o,{value:l,textValue:s,id:a,...u}=e;if(null==this.node?(o=new n(a??`react-aria-${++this.ownerDocument.nodeId}`),this.node=o):o=this.getMutableNode(),u.ref=t,o.props=u,o.rendered=r,o.render=i,o.value=l,e["aria-label"]&&(o["aria-label"]=e["aria-label"]),o.textValue=s||("string"==typeof u.children?u.children:"")||e["aria-label"]||"",null!=a&&a!==o.key)throw Error("Cannot change the id of an item");null!=u.colSpan&&(o.colSpan=u.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?"none":""},set display(value){let t="none"===value;if(e.isHidden!==t){(e.parentNode?.firstVisibleChild===e||e.parentNode?.lastVisibleChild===e)&&e.ownerDocument.markDirty(e.parentNode);let n=e.previousVisibleSibling,r=e.nextVisibleSibling;n&&e.ownerDocument.markDirty(n),r&&e.ownerDocument.markDirty(r),e.isHidden=t,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}}class l extends i{constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}get isConnected(){return!0}createElement(e){return new o(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||null==e.node)return;let t=this.getMutableCollection();if(!t.getItem(e.node.key))for(let t of e)this.addNode(t);t.addNode(e.node)}removeNode(e){for(let t of e)this.removeNode(t);e.node&&this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription||(this.queuedRender=!1,this.updateCollection()),this.collection}updateCollection(){for(let e of this.dirtyNodes)e instanceof o&&(!e.isConnected||e.isHidden)?this.removeNode(e):e.updateChildIndices();for(let e of this.dirtyNodes)e instanceof o?(e.isConnected&&!e.isHidden&&(e.updateNode(),this.addNode(e)),e.node&&this.dirtyNodes.delete(e),e.isMutated=!1):this.dirtyNodes.delete(e);this.nextCollection&&(this.nextCollection.commit(this.firstVisibleChild?.node?.key??null,this.lastVisibleChild?.node?.key??null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null))}queueUpdate(){if(0!==this.dirtyNodes.size&&!this.queuedRender){for(let e of(this.queuedRender=!0,this.inSubscription=!0,this.isSSR||(this.collection=this.collection.clone()),this.subscriptions))e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}}var s=n(24932),a=n(73817),u=n(30290),c=n(83146),d=n(43144),f=n(14041),p=n(58139);let h=(0,f.createContext)(!1),m=(0,f.createContext)(null);function g(e){if((0,f.useContext)(m))return e.content;let{collection:t,document:n}=function(e){let[t]=(0,f.useState)(()=>new l(e?.()||new(0,r.Wk)));return{collection:v((0,f.useCallback)(e=>t.subscribe(e),[t]),(0,f.useCallback)(()=>{let e=t.getCollection();return t.isSSR&&t.resetAfterSSR(),e},[t]),(0,f.useCallback)(()=>(t.isSSR=!0,t.getCollection()),[t])),document:t}}(e.createCollection);return f.createElement(f.Fragment,null,f.createElement(u.jZ,null,f.createElement(m.Provider,{value:n},e.content)),f.createElement(b,{render:e.children,collection:t}))}function b({collection:e,render:t}){return t(e)}let v="function"==typeof f.useSyncExternalStore?f.useSyncExternalStore:function(e,t,n){let r=(0,c.wR)(),i=(0,f.useRef)(r);i.current=r;let o=(0,f.useCallback)(()=>i.current?n():t(),[t,n]);return(0,p.useSyncExternalStore)(e,o)},y=(0,f.createContext)(null);function w(e,t,n,i,o,l){"string"==typeof e&&(e=function(e){return class extends r.Pt{static{this.type=e}}}(e));let s=(0,f.useCallback)(r=>{r?.setProps(t,n,e,i,l)},[t,n,i,l,e]),a=(0,f.useContext)(y);if(a){let r=a.ownerDocument.nodesByProps.get(t);return r||((r=a.ownerDocument.createElement(e.type)).setProps(t,n,e,i,l),a.appendChild(r),a.ownerDocument.updateCollection(),a.ownerDocument.nodesByProps.set(t,r)),o?f.createElement(y.Provider,{value:r},o):null}return f.createElement(e.type,{ref:s},o)}function E(e,t){let n=({node:e})=>t(e.props,e.props.ref,e),r=(0,f.forwardRef)((r,i)=>{let o=(0,f.useContext)(a.gY);if(!(0,f.useContext)(h)){if(t.length>=3)throw Error(t.name+" cannot be rendered outside a collection.");return t(r,i)}return w(e,r,i,"children"in r?r.children:null,null,e=>f.createElement(a.gY.Provider,{value:o},f.createElement(n,{node:e})))});return r.displayName=t.name,r}function P(e,t,n=k){let r=({node:e})=>t(e.props,e.props.ref,e),i=(0,f.forwardRef)((t,i)=>{let o=n(t);return w(e,t,i,null,o,e=>f.createElement(r,{node:e}))??f.createElement(f.Fragment,null)});return i.displayName=t.name,i}function k(e){return(0,s.p)({...e,addIdAndValue:!0})}let C=(0,f.createContext)(null);function T(e){let t=(0,f.useContext)(C),n=(t?.dependencies||[]).concat(e.dependencies),r=e.idScope??t?.idScope,i=k({...e,idScope:r,dependencies:n});return(0,f.useContext)(m)&&(i=f.createElement(S,null,i)),t=(0,f.useMemo)(()=>({dependencies:n,idScope:r}),[r,...n]),f.createElement(C.Provider,{value:t},i)}function S({children:e}){let t=(0,f.useContext)(m),n=(0,f.useMemo)(()=>f.createElement(m.Provider,{value:null},f.createElement(h.Provider,{value:!0},e)),[e]);return(0,c.wR)()?f.createElement(y.Provider,{value:t},n):(0,d.createPortal)(n,t)}},30290(e,t,n){n.d(t,{U7:()=>l,jZ:()=>o,m_:()=>s});var r=n(14041);"u">typeof HTMLTemplateElement&&(Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.content.firstChild}}),Object.defineProperty(HTMLTemplateElement.prototype,"appendChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.appendChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.removeChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:!0,enumerable:!0,value:function(e,t){return this.content.insertBefore(e,t)}}));let i=(0,r.createContext)(!1);function o(e){if((0,r.useContext)(i))return r.createElement(r.Fragment,null,e.children);let t=r.createElement(i.Provider,{value:!0},e.children);return r.createElement("template",null,t)}function l(e){let t=(t,n)=>(0,r.useContext)(i)?null:e(t,n);return t.displayName=e.displayName||e.name,(0,r.forwardRef)(t)}function s(){return(0,r.useContext)(i)}},24932(e,t,n){n.d(t,{p:()=>i});var r=n(14041);function i(e){let{children:t,items:n,idScope:i,addIdAndValue:o,dependencies:l=[]}=e,s=(0,r.useMemo)(()=>new WeakMap,l);return(0,r.useMemo)(()=>{if(n&&"function"==typeof t){let e=[];for(let l of n){let n=s.get(l);if(!n){let e=(n=t(l)).props.id??l.key??l.id;if(null==e)throw Error("Could not determine key for item");null!=i&&null==n.props.id&&(e=i+":"+e),n=(0,r.cloneElement)(n,o?{key:e,id:e,value:l}:{key:e}),s.set(l,n)}e.push(n)}return e}if("function"!=typeof t)return t},[t,n,s,i,o])}},62296(e,t,n){n.d(t,{s:()=>u});var r=n(59878),i=n(78484),o=n(34122),l=n(63430),s=n(47499),a=n(14041);function u(e,t){let{role:n="dialog"}=e,u=(0,s.X1)();u=e["aria-label"]?void 0:u;let c=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{if(t.current&&!(0,o.ae)(t.current)){(0,i.l)(t.current);let e=setTimeout(()=>{((0,o.bq)()===t.current||(0,o.bq)()===document.body)&&(c.current=!0,t.current&&(t.current.blur(),(0,i.l)(t.current)),c.current=!1)},500);return()=>{clearTimeout(e)}}},[t]),(0,l.Se)(),(0,a.useRef)(!1),(0,a.useEffect)(()=>{}),{dialogProps:{...(0,r.$)(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||u,onBlur:e=>{c.current&&e.stopPropagation()}},titleProps:{id:u}}}},65716(e,t,n){n.d(t,{j:()=>u});var r=n(55273),i=n(47499),o=n(83146),l=n(29226),s=n(43144),a=n(14041);function u(e,t,n){let{isDisabled:u}=e,c=(0,i.Bi)(),d=(0,i.Bi)(),f=(0,o.wR)(),p=(0,a.useRef)(null),h=(0,a.useCallback)(()=>{p.current=requestAnimationFrame(()=>{n.current&&n.current.setAttribute("hidden","until-found")}),(0,s.flushSync)(()=>{t.toggle()})},[n,t]);(0,r._)(n,"beforematch",h);let m=(0,a.useRef)(null);return(0,l.N)(()=>{if(p.current&&cancelAnimationFrame(p.current),n.current&&!f){let e=n.current;null==m.current||"function"!=typeof e.getAnimations?t.isExpanded?(e.removeAttribute("hidden"),e.style.setProperty("--disclosure-panel-width","auto"),e.style.setProperty("--disclosure-panel-height","auto")):(e.setAttribute("hidden","until-found"),e.style.setProperty("--disclosure-panel-width","0px"),e.style.setProperty("--disclosure-panel-height","0px")):t.isExpanded!==m.current&&(t.isExpanded?(e.removeAttribute("hidden"),e.style.setProperty("--disclosure-panel-width",e.scrollWidth+"px"),e.style.setProperty("--disclosure-panel-height",e.scrollHeight+"px"),Promise.all(e.getAnimations().map(e=>e.finished)).then(()=>{e.style.setProperty("--disclosure-panel-width","auto"),e.style.setProperty("--disclosure-panel-height","auto")}).catch(()=>{})):(e.style.setProperty("--disclosure-panel-width",e.scrollWidth+"px"),e.style.setProperty("--disclosure-panel-height",e.scrollHeight+"px"),window.getComputedStyle(e).height,e.style.setProperty("--disclosure-panel-width","0px"),e.style.setProperty("--disclosure-panel-height","0px"),Promise.all(e.getAnimations().map(e=>e.finished)).then(()=>e.setAttribute("hidden","until-found")).catch(()=>{}))),m.current=t.isExpanded}},[u,n,t.isExpanded,f]),(0,a.useEffect)(()=>()=>{p.current&&cancelAnimationFrame(p.current)},[]),{buttonProps:{id:c,"aria-expanded":t.isExpanded,"aria-controls":d,onPress:e=>{u||"keyboard"===e.pointerType||t.toggle()},isDisabled:u,onPressStart(e){"keyboard"!==e.pointerType||u||t.toggle()}},panelProps:{id:d,role:"group","aria-labelledby":c,"aria-hidden":!t.isExpanded,hidden:f?!t.isExpanded:void 0}}}},56059(e,t,n){n.d(t,{N$:()=>L,Pu:()=>w,n1:()=>m});var r=n(22139),i=n(78484),o=n(34122),l=n(81901),s=n(3837),a=n(93523),u=n(68509),c=n(29226),d=n(14041);let f=d.createContext(null),p="react-aria-focus-scope-restore",h=null;function m(e){var t,n,r,i,u,m,w,N,M,D;let R,F,A,I,{children:O,contain:B,restoreFocus:H,autoFocus:_}=e,z=(0,d.useRef)(null),$=(0,d.useRef)(null),W=(0,d.useRef)([]),{parentNode:V}=(0,d.useContext)(f)||{},U=(0,d.useMemo)(()=>new x({scopeRef:W}),[W]);(0,c.N)(()=>{let e=V||K.root;if(K.getTreeNode(e.scopeRef)&&h&&!E(h,e.scopeRef)){let t=K.getTreeNode(h);t&&(e=t)}e.addChild(U),K.addNode(U)},[U,V]),(0,c.N)(()=>{let e=K.getTreeNode(W);e&&(e.contain=!!B)},[B]),(0,c.N)(()=>{let e=z.current?.nextSibling,t=[],n=e=>e.stopPropagation();for(;e&&e!==$.current;)t.push(e),e.addEventListener(p,n),e=e.nextSibling;return W.current=t,()=>{for(let e of t)e.removeEventListener(p,n)}},[O]),t=W,n=H,r=B,(0,c.N)(()=>{if(n||r)return;let e=t.current,i=(0,s.TW)(e?e[0]:void 0),l=e=>{let n=(0,o.wt)(e);v(n,t.current)?h=t:y(n)||(h=null)};return i.addEventListener("focusin",l,!1),e?.forEach(e=>e.addEventListener("focusin",l,!1)),()=>{i.removeEventListener("focusin",l,!1),e?.forEach(e=>e.removeEventListener("focusin",l,!1))}},[t,n,r]),i=W,u=B,R=(0,d.useRef)(void 0),F=(0,d.useRef)(void 0),(0,c.N)(()=>{let e=i.current;if(!u){F.current&&(cancelAnimationFrame(F.current),F.current=void 0);return}let t=(0,s.TW)(e?e[0]:void 0),n=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey||!b(i)||e.isComposing)return;let n=(0,o.bq)(t),r=i.current;if(!r||!v(n,r))return;let l=L(g(r),{tabbable:!0},r);if(!n)return;l.currentNode=n;let a=e.shiftKey?l.previousNode():l.nextNode();a||(l.currentNode=e.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,a=e.shiftKey?l.previousNode():l.nextNode()),e.preventDefault(),a&&(P(a,!0),a instanceof(0,s.mD)(a).HTMLInputElement&&a.select())},r=e=>{(!h||E(h,i))&&v((0,o.wt)(e),i.current)?(h=i,R.current=(0,o.wt)(e)):b(i)&&!y((0,o.wt)(e),i)?R.current?R.current.focus():h&&h.current&&C(h.current):b(i)&&(R.current=(0,o.wt)(e))},c=e=>{F.current&&cancelAnimationFrame(F.current),F.current=requestAnimationFrame(()=>{let n=(0,l.ME)(),r=("virtual"===n||null===n)&&(0,a.m0)()&&(0,a.H8)(),s=(0,o.bq)(t);if(!r&&s&&b(i)&&!y(s,i)){h=i;let t=(0,o.wt)(e);t&&t.isConnected?(R.current=t,R.current?.focus()):h.current&&C(h.current)}})};return t.addEventListener("keydown",n,!1),t.addEventListener("focusin",r,!1),e?.forEach(e=>e.addEventListener("focusin",r,!1)),e?.forEach(e=>e.addEventListener("focusout",c,!1)),()=>{t.removeEventListener("keydown",n,!1),t.removeEventListener("focusin",r,!1),e?.forEach(e=>e.removeEventListener("focusin",r,!1)),e?.forEach(e=>e.removeEventListener("focusout",c,!1))}},[i,u]),(0,c.N)(()=>()=>{F.current&&cancelAnimationFrame(F.current)},[F]),m=W,w=H,N=B,A=(0,d.useRef)("u">typeof document?(0,o.bq)((0,s.TW)(m.current?m.current[0]:void 0)):null),(0,c.N)(()=>{let e=m.current,t=(0,s.TW)(e?e[0]:void 0);if(!w||N)return;let n=()=>{(!h||E(h,m))&&v((0,o.bq)(t),m.current)&&(h=m)};return t.addEventListener("focusin",n,!1),e?.forEach(e=>e.addEventListener("focusin",n,!1)),()=>{t.removeEventListener("focusin",n,!1),e?.forEach(e=>e.removeEventListener("focusin",n,!1))}},[m,N]),(0,c.N)(()=>{let e=(0,s.TW)(m.current?m.current[0]:void 0);if(!w)return;let t=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!b(m)||t.isComposing)return;let n=e.activeElement;if(!y(n,m)||!T(m))return;let r=K.getTreeNode(m);if(!r)return;let i=r.nodeToRestore,o=L(e.body,{tabbable:!0});o.currentNode=n;let l=t.shiftKey?o.previousNode():o.nextNode();if(i&&i.isConnected&&i!==e.body||(i=void 0,r.nodeToRestore=void 0),(!l||!y(l,m))&&i){o.currentNode=i;do l=t.shiftKey?o.previousNode():o.nextNode();while(y(l,m));(t.preventDefault(),t.stopPropagation(),l)?P(l,!0):y(i)?P(i,!0):n.blur()}};return N||e.addEventListener("keydown",t,!0),()=>{N||e.removeEventListener("keydown",t,!0)}},[m,w,N]),(0,c.N)(()=>{let e=(0,s.TW)(m.current?m.current[0]:void 0);if(!w)return;let t=K.getTreeNode(m);if(t)return t.nodeToRestore=A.current??void 0,()=>{let t=K.getTreeNode(m);if(!t)return;let n=t.nodeToRestore,r=(0,o.bq)(e);if(w&&n&&(r&&y(r,m)||r===e.body&&T(m))){let t=K.clone();requestAnimationFrame(()=>{if(e.activeElement===e.body){let e=t.getTreeNode(m);for(;e;){if(e.nodeToRestore&&e.nodeToRestore.isConnected)return void S(e.nodeToRestore);e=e.parent}for(e=t.getTreeNode(m);e;){if(e.scopeRef&&e.scopeRef.current&&K.getTreeNode(e.scopeRef))return void S(k(e.scopeRef.current,!0));e=e.parent}}})}}},[m,w]),M=W,D=_,I=d.useRef(D),(0,d.useEffect)(()=>{if(I.current){h=M;let e=(0,s.TW)(M.current?M.current[0]:void 0);!v((0,o.bq)(e),h.current)&&M.current&&C(M.current)}I.current=!1},[M]),(0,d.useEffect)(()=>{let e=(0,o.bq)((0,s.TW)(W.current?W.current[0]:void 0)),t=null;if(v(e,W.current)){for(let n of K.traverse())n.scopeRef&&v(e,n.scopeRef.current)&&(t=n);t===K.getTreeNode(W)&&(h=t.scopeRef)}},[W]),(0,c.N)(()=>()=>{let e=K.getTreeNode(W)?.parent?.scopeRef??null;(W===h||E(W,h))&&(!e||K.getTreeNode(e))&&(h=e),K.removeTreeNode(W)},[W]);let j=(0,d.useMemo)(()=>{var e;return e=W,{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:l,accept:a}=t,u=r||(0,o.bq)((0,s.TW)(n[0]??void 0)),c=n[0].previousElementSibling,d=L(g(n),{tabbable:i,accept:a},n);d.currentNode=v(u,n)?u:c;let f=d.nextNode();return!f&&l&&(d.currentNode=c,f=d.nextNode()),f&&P(f,!0),f},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:l,accept:a}=t,u=r||(0,o.bq)((0,s.TW)(n[0]??void 0)),c=n[n.length-1].nextElementSibling,d=L(g(n),{tabbable:i,accept:a},n);d.currentNode=v(u,n)?u:c;let f=d.previousNode();return!f&&l&&(d.currentNode=c,f=d.previousNode()),f&&P(f,!0),f},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,o=L(g(n),{tabbable:r,accept:i},n);o.currentNode=n[0].previousElementSibling;let l=o.nextNode();return l&&P(l,!0),l},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,o=L(g(n),{tabbable:r,accept:i},n);o.currentNode=n[n.length-1].nextElementSibling;let l=o.previousNode();return l&&P(l,!0),l}}},[]),q=(0,d.useMemo)(()=>({focusManager:j,parentNode:U}),[U,j]);return d.createElement(f.Provider,{value:q},d.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:z}),O,d.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:$}))}function g(e){return e[0].parentElement}function b(e){let t=K.getTreeNode(h);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function v(e,t){return!!e&&!!t&&t.some(t=>(0,o.sD)(t,e))}function y(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of K.traverse(K.getTreeNode(t)))if(n&&v(e,n.current))return!0;return!1}function w(e){return y(e,h)}function E(e,t){let n=K.getTreeNode(t)?.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function P(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch{}}else try{(0,i.l)(e)}catch{}}function k(e,t=!0){let n=e[0].previousElementSibling,r=g(e),i=L(r,{tabbable:t},e);i.currentNode=n;let o=i.nextNode();return t&&!o&&((i=L(r=g(e),{tabbable:!1},e)).currentNode=n,o=i.nextNode()),o}function C(e,t=!0){P(k(e,t))}function T(e){let t=K.getTreeNode(h);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function S(e){e.dispatchEvent(new CustomEvent(p,{bubbles:!0,cancelable:!0}))&&P(e)}function L(e,t,n){let i=t?.tabbable?u.A:u.t,l=e?.nodeType===Node.ELEMENT_NODE?e:null,a=(0,s.TW)(l),c=(0,r.H)(a,e||a,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>(0,o.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),n=(0,s.mD)(e);return t instanceof n.RadioNodeList?Array.from(t).filter(e=>e instanceof n.HTMLInputElement):t instanceof n.HTMLInputElement?[t]:[]}(e);return t.length>0&&!t.some(e=>e.checked)}(e)||"INPUT"===c.currentNode.tagName&&"radio"===c.currentNode.type&&c.currentNode.name===e.name)?NodeFilter.FILTER_REJECT:i(e)&&(!n||v(e,n))&&(!t?.accept||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});return t?.from&&(c.currentNode=t.from),c}class N{constructor(){this.fastMap=new Map,this.root=new x({scopeRef:null}),this.fastMap.set(null,this.root)}get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(t??null);if(!r)return;let i=new x({scopeRef:e});r.addChild(i),i.parent=r,this.fastMap.set(e,i),n&&(i.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&v(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach(e=>n&&n.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 N;for(let t of this.traverse())e.addTreeNode(t.scopeRef,t.parent?.scopeRef??null,t.nodeToRestore);return e}}class x{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 K=new N},86414(e,t,n){n.d(t,{o:()=>s});var r=n(81901),i=n(65433),o=n(28176),l=n(14041);function s(e={}){let{autoFocus:t=!1,isTextInput:n,within:a}=e,u=(0,l.useRef)({isFocused:!1,isFocusVisible:t||(0,r.pP)()}),[c,d]=(0,l.useState)(!1),[f,p]=(0,l.useState)(()=>u.current.isFocused&&u.current.isFocusVisible),h=(0,l.useCallback)(()=>p(u.current.isFocused&&u.current.isFocusVisible),[]),m=(0,l.useCallback)(e=>{u.current.isFocused=e,u.current.isFocusVisible=(0,r.pP)(),d(e),h()},[h]);(0,r.K7)(e=>{u.current.isFocusVisible=e,h()},[n,c],{enabled:c,isTextInput:n});let{focusProps:g}=(0,i.i)({isDisabled:a,onFocusChange:m}),{focusWithinProps:b}=(0,o.R)({isDisabled:!a,onFocusWithinChange:m});return{isFocused:c,isFocusVisible:f,focusProps:a?b:g}}},46713(e,t,n){n.d(t,{$:()=>l});var r=n(56059),i=n(29226),o=n(14041);function l(e,t){let n=t?.isDisabled,[l,s]=(0,o.useState)(!1);return(0,i.N)(()=>{if(e?.current&&!n){let t=()=>{e.current&&s(!!(0,r.N$)(e.current,{tabbable:!0}).nextNode())};t();let n=new MutationObserver(t);return n.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{n.disconnect()}}}),!n&&l}},61988(e,t,n){n.d(t,{Ig:()=>s,_P:()=>a,jo:()=>l,vX:()=>o});var r=n(34122),i=n(3837);function o(e){let t=a((0,i.TW)(e));t!==e&&(t&&l(t,e),e&&s(e,t))}function l(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function s(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function a(e){let t=(0,r.bq)(e),n=t?.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}},91821(e,t,n){n.d(t,{X:()=>a});var r=n(34122),i=n(81901),o=n(23900),l=n(29226),s=n(14041);function a(e,t,n){let{validationBehavior:a,focus:u}=e;(0,l.N)(()=>{if("native"===a&&n?.current&&!n.current.disabled){var e;let r,i=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(i),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation({isInvalid:!(e=n.current).validity.valid,validationDetails:{badInput:(r=e.validity).badInput,customError:r.customError,patternMismatch:r.patternMismatch,rangeOverflow:r.rangeOverflow,rangeUnderflow:r.rangeUnderflow,stepMismatch:r.stepMismatch,tooLong:r.tooLong,tooShort:r.tooShort,typeMismatch:r.typeMismatch,valueMissing:r.valueMissing,valid:r.valid},validationErrors:e.validationMessage?[e.validationMessage]:[]})}});let c=(0,s.useRef)(!1),d=(0,o.J)(()=>{c.current||t.resetValidation()}),f=(0,o.J)(e=>{t.displayValidation.isInvalid||t.commitValidation();let r=n?.current?.form;!e.defaultPrevented&&n&&r&&function(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(n.validity?.valid===!1)return n}return null}(r)===n.current&&(u?u():n.current?.focus(),(0,i.Cl)("keyboard")),e.preventDefault()}),p=(0,o.J)(()=>{t.commitValidation()});(0,s.useEffect)(()=>{let e=n?.current;if(!e)return;let t=e.form,i=t?.reset;return t&&(t.reset=()=>{c.current=!window.event||"message"===window.event.type&&(0,r.wt)(window.event)instanceof MessagePort,i?.call(t),c.current=!1}),e.addEventListener("invalid",f),e.addEventListener("change",p),t?.addEventListener("reset",d),()=>{e.removeEventListener("invalid",f),e.removeEventListener("change",p),t?.removeEventListener("reset",d),t&&(t.reset=i)}},[n,a])}},66030(e,t,n){n.d(t,{Y:()=>p});let r=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 o=n(83146),l=n(14041);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(),n="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(n)return"rtl"===n.direction;if(t.script)return r.has(t.script)}let t=e.split("-")[0];return i.has(t)}(e)?"ltr":"rtl"}}let u=a(),c=new Set;function d(){for(let e of(u=a(),c))e(u)}let f=l.createContext(null);function p(){let e=function(){let e=(0,o.wR)(),[t,n]=(0,l.useState)(u);return((0,l.useEffect)(()=>(0===c.size&&window.addEventListener("languagechange",d),c.add(n),()=>{c.delete(n),0===c.size&&window.removeEventListener("languagechange",d)}),[]),e)?{locale:"u">typeof window&&window[s]||"en-US",direction:"ltr"}:t}();return(0,l.useContext)(f)||e}},25678(e,t,n){n.d(t,{Q:()=>o});var r=n(66030);let i=new Map;function o(e){let{locale:t}=(0,r.Y)(),n=t+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(i.has(n))return i.get(n);let o=new Intl.Collator(t,e);return i.set(n,o),o}},44018(e,t,n){n.d(t,{o:()=>a});var r=n(66030),i=n(34895),o=n(76987),l=n(14041);let s=new WeakMap;function a(e,t){let n,{locale:a}=(0,r.Y)(),u=t&&i.B.getGlobalDictionaryForPackage(t)||((n=s.get(e))||(n=new(0,i.B)(e),s.set(e,n)),n);return(0,l.useMemo)(()=>new(0,o.J)(a,u),[a,u])}},12743(e,t,n){n.d(t,{N:()=>u,Y:()=>a});var r=n(28052),i=n(24447),o=n(54469),l=n(58801),s=n(14041);let a=s.forwardRef(({children:e,...t},n)=>{let a=(0,s.useRef)(!1),u=(0,s.useContext)(i.F),c=(0,r.v)(u||{},{...t,register(){a.current=!0,u&&u.register()}});return c.ref=(0,o.U)(n||u?.ref),(0,l.w)(u,c.ref),(0,s.useEffect)(()=>{a.current||(a.current=!0)},[]),s.createElement(i.F.Provider,{value:c},e)});function u({children:e}){let t=(0,s.useMemo)(()=>({register:()=>{}}),[]);return s.createElement(i.F.Provider,{value:t},e)}},24447(e,t,n){n.d(t,{F:()=>r});let r=n(14041).createContext({register:()=>{}});r.displayName="PressResponderContext"},78484(e,t,n){n.d(t,{l:()=>a});var r=n(88563),i=n(34122),o=n(81901),l=n(3837),s=n(59792);function a(e){if(!e.isConnected)return;let t=(0,l.TW)(e);if("virtual"===(0,o.ME)()){let n=(0,i.bq)(t);(0,s.v)(()=>{let o=(0,i.bq)(t);(o===n||o===t.body)&&e.isConnected&&(0,r.e)(e)})}else(0,r.e)(e)}},65433(e,t,n){n.d(t,{i:()=>s});var r=n(34122),i=n(3837),o=n(19793),l=n(14041);function s(e){let{isDisabled:t,onFocus:n,onBlur:s,onFocusChange:a}=e,u=(0,l.useCallback)(e=>{if((0,r.wt)(e)===e.currentTarget)return s&&s(e),a&&a(!1),!0},[s,a]),c=(0,o.yB)(u),d=(0,l.useCallback)(e=>{let t=(0,r.wt)(e),o=(0,i.TW)(t),l=o?(0,r.bq)(o):(0,r.bq)();t===e.currentTarget&&t===l&&(n&&n(e),a&&a(!0),c(e))},[a,n,c]);return{focusProps:{onFocus:!t&&(n||a||s)?d:void 0,onBlur:!t&&(s||a)?u:void 0}}}},81901(e,t,n){let r;n.d(t,{Cl:()=>x,K7:()=>F,ME:()=>N,Y0:()=>R,_q:()=>K,lb:()=>M,pP:()=>L});var i=n(34122),o=n(3837),l=n(19793),s=n(93523),a=n(54649),u=n(90970),c=n(83146),d=n(14041);let f=null,p="keyboard",h=new Set,m=new Map,g=!1,b=!1,v={Tab:!0,Escape:!0};function y(e,t){for(let n of h)n(e,t)}function w(e){g=!0,u.Fe.isOpening||e.metaKey||!(0,s.cX)()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(f="keyboard",p="keyboard",y("keyboard",e))}function E(e){f="pointer",p="pointerType"in e?e.pointerType:"mouse",("mousedown"===e.type||"pointerdown"===e.type)&&(g=!0,y("pointer",e))}function P(e){!u.Fe.isOpening&&(0,a.Y)(e)&&(g=!0,f="virtual",p="virtual")}function k(e){let t=(0,o.mD)((0,i.wt)(e)),n=(0,o.TW)((0,i.wt)(e));(0,i.wt)(e)!==t&&(0,i.wt)(e)!==n&&!l.lR&&e.isTrusted&&(g||b||(f="virtual",p="virtual",y("virtual",e)),g=!1,b=!1)}function C(){l.lR||(g=!1,b=!0)}function T(e){if("u"<typeof window||"u"<typeof document)return;let t=(0,o.mD)(e),n=(0,o.TW)(e);if(m.get(t))return;let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){g=!0,r.apply(this,arguments)},n.addEventListener("keydown",w,!0),n.addEventListener("keyup",w,!0),n.addEventListener("click",P,!0),t.addEventListener("focus",k,!0),t.addEventListener("blur",C,!1),"u">typeof PointerEvent&&(n.addEventListener("pointerdown",E,!0),n.addEventListener("pointermove",E,!0),n.addEventListener("pointerup",E,!0)),t.addEventListener("beforeunload",()=>{S(e)},{once:!0}),m.set(t,{focus:r})}let S=(e,t)=>{let n=(0,o.mD)(e),r=(0,o.TW)(e);t&&r.removeEventListener("DOMContentLoaded",t),m.has(n)&&(n.HTMLElement.prototype.focus=m.get(n).focus,r.removeEventListener("keydown",w,!0),r.removeEventListener("keyup",w,!0),r.removeEventListener("click",P,!0),n.removeEventListener("focus",k,!0),n.removeEventListener("blur",C,!1),"u">typeof PointerEvent&&(r.removeEventListener("pointerdown",E,!0),r.removeEventListener("pointermove",E,!0),r.removeEventListener("pointerup",E,!0)),m.delete(n))};function L(){return"pointer"!==f}function N(){return f}function x(e){f=e,p="pointer"===e?"mouse":e,y(e,null)}function K(){return p}function M(){T();let[e,t]=(0,d.useState)(f);return(0,d.useEffect)(()=>{let e=()=>{t(f)};return h.add(e),()=>{h.delete(e)}},[]),(0,c.wR)()?null:e}"u">typeof document&&("loading"!==(r=(0,o.TW)(void 0)).readyState?T(void 0):r.addEventListener("DOMContentLoaded",()=>{T(void 0)}));let D=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function R(e={}){let{isTextInput:t,autoFocus:n}=e,[r,i]=(0,d.useState)(n||L());return F(e=>{i(e)},[t],{isTextInput:t}),{isFocusVisible:r}}function F(e,t,n){T(),(0,d.useEffect)(()=>{if(n?.enabled===!1)return;let t=(t,r)=>{var l;let s,a,u,c,d,f,p,h;l=!!n?.isTextInput,s=r?(0,i.wt)(r):void 0,a=(0,o.TW)(s),c=void 0!==(u=(0,o.mD)(s))?u.HTMLInputElement:HTMLInputElement,d=void 0!==u?u.HTMLTextAreaElement:HTMLTextAreaElement,f=void 0!==u?u.HTMLElement:HTMLElement,p=void 0!==u?u.KeyboardEvent:KeyboardEvent,h=(0,i.bq)(a),(l=l||h instanceof c&&!D.has(h.type)||h instanceof d||h instanceof f&&h.isContentEditable)&&"keyboard"===t&&r instanceof p&&!v[r.key]||e(L())};return h.add(t),()=>{h.delete(t)}},t)}},28176(e,t,n){n.d(t,{R:()=>a});var r=n(19793),i=n(34122),o=n(3837),l=n(98417),s=n(14041);function a(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:a,onFocusWithinChange:u}=e,c=(0,s.useRef)({isFocusWithin:!1}),{addGlobalListener:d,removeAllGlobalListeners:f}=(0,l.A)(),p=(0,s.useCallback)(e=>{(0,i.sD)(e.currentTarget,(0,i.wt)(e))&&c.current.isFocusWithin&&!(0,i.sD)(e.currentTarget,e.relatedTarget)&&(c.current.isFocusWithin=!1,f(),n&&n(e),u&&u(!1))},[n,u,c,f]),h=(0,r.yB)(p),m=(0,s.useCallback)(e=>{if(!(0,i.sD)(e.currentTarget,(0,i.wt)(e)))return;let t=(0,i.wt)(e),n=(0,o.TW)(t),l=(0,i.bq)(n);if(!c.current.isFocusWithin&&l===t){a&&a(e),u&&u(!0),c.current.isFocusWithin=!0,h(e);let t=e.currentTarget;d(n,"focus",e=>{let o=(0,i.wt)(e);if(c.current.isFocusWithin&&!(0,i.sD)(t,o)){let e=new n.defaultView.FocusEvent("blur",{relatedTarget:o});(0,r.o1)(e,t),p((0,r.eg)(e))}},{capture:!0})}},[a,u,h,d,p]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:m,onBlur:p}}}},73817(e,t,n){n.d(t,{M2:()=>f,Wc:()=>p,gY:()=>d,zo:()=>h});var r=n(78484);n(3837),n(68509);var i=n(28052),o=n(92032),l=n(65433),s=n(59163),a=n(54469),u=n(58801),c=n(14041);let d=c.createContext(null),f=c.forwardRef(function(e,t){let{children:n,...r}=e,i=(0,a.U)(t),o={...r,ref:i};return c.createElement(d.Provider,{value:o},n)});function p(e,t){let{focusProps:n}=(0,l.i)(e),{keyboardProps:o}=(0,s.d)(e),a=(0,i.v)(n,o),f=function(e){let t=(0,c.useContext)(d)||{};(0,u.w)(t,e);let{ref:n,...r}=t;return r}(t),p=e.isDisabled?{}:f,h=(0,c.useRef)(e.autoFocus);(0,c.useEffect)(()=>{h.current&&t.current&&(0,r.l)(t.current),h.current=!1},[t]);let m=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(m=void 0),{focusableProps:(0,i.v)({...a,tabIndex:m},p)}}let h=(0,c.forwardRef)(({children:e,...t},n)=>{let{focusableProps:r}=p(t,n=(0,a.U)(n)),l=c.Children.only(e);(0,c.useEffect)(()=>{},[n,t.isDisabled]);let s=19>parseInt(c.version,10)?l.ref:l.props.ref;return c.cloneElement(l,{...(0,i.v)(r,l.props),ref:(0,o.P)(s,n)})})},44031(e,t,n){n.d(t,{M:()=>d});var r=n(34122),i=n(3837),o=n(98417),l=n(14041);let s=!1,a=0;function u(e){"touch"===e.pointerType&&(s=!0,setTimeout(()=>{s=!1},500))}function c(){let e=(0,i.TW)(null);if(void 0!==e)return 0===a&&"u">typeof PointerEvent&&e.addEventListener("pointerup",u),a++,()=>{!(--a>0)&&"u">typeof PointerEvent&&e.removeEventListener("pointerup",u)}}function d(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:a,isDisabled:u}=e,[d,f]=(0,l.useState)(!1),p=(0,l.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,l.useEffect)(c,[]);let{addGlobalListener:h,removeAllGlobalListeners:m}=(0,o.A)(),{hoverProps:g,triggerHoverEnd:b}=(0,l.useMemo)(()=>{let e=(e,t)=>{let r=p.target;p.pointerType="",p.target=null,"touch"!==t&&p.isHovered&&r&&(p.isHovered=!1,m(),a&&a({type:"hoverend",target:r,pointerType:t}),n&&n(!1),f(!1))},o={};return"u">typeof PointerEvent&&(o.onPointerEnter=o=>{s&&"mouse"===o.pointerType||((o,l)=>{if(p.pointerType=l,u||"touch"===l||p.isHovered||!(0,r.sD)(o.currentTarget,(0,r.wt)(o)))return;p.isHovered=!0;let s=o.currentTarget;p.target=s,h((0,i.TW)((0,r.wt)(o)),"pointerover",t=>{p.isHovered&&p.target&&!(0,r.sD)(p.target,(0,r.wt)(t))&&e(t,t.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:s,pointerType:l}),n&&n(!0),f(!0)})(o,o.pointerType)},o.onPointerLeave=t=>{!u&&(0,r.sD)(t.currentTarget,(0,r.wt)(t))&&e(t,t.pointerType)}),{hoverProps:o,triggerHoverEnd:e}},[t,n,a,u,p,h,m]);return(0,l.useEffect)(()=>{u&&b({currentTarget:p.target},p.pointerType)},[u]),{hoverProps:g,isHovered:d}}},71806(e,t,n){n.d(t,{$:()=>s});var r=n(34122),i=n(3837),o=n(23900),l=n(14041);function s(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:s}=e,u=(0,l.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),c=(0,o.J)(e=>{n&&a(e,