@helloimjolopez-pathway/pathway-components 0.11.1 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/badge/badge.jsx +3 -1
- package/components/bottom-sheet/bottom-sheet.jsx +4 -4
- package/components/icon/action-icon.jsx +57 -45
- package/components/popover-menu/popover-menu.jsx +1 -1
- package/components/top-nav/top-nav.jsx +3 -3
- package/dist/pathway-accounting-sidenav.js +14 -14
- package/dist/pathway-components.js +109 -109
- package/dist/pathway-sidenav.js +52 -52
- package/package.json +1 -1
package/dist/pathway-sidenav.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
var g$=Object.create;var bf=Object.defineProperty;var $$=Object.getOwnPropertyDescriptor;var b$=Object.getOwnPropertyNames;var y$=Object.getPrototypeOf,v$=Object.prototype.hasOwnProperty;var Gt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var x$=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of b$(t))!v$.call(e,o)&&o!==n&&bf(e,o,{get:()=>t[o],enumerable:!(r=$$(t,o))||r.enumerable});return e};var S=(e,t,n)=>(n=e!=null?g$(y$(e)):{},x$(t||!e||!e.__esModule?bf(n,"default",{value:e,enumerable:!0}):n,e));var Lf=Gt(X=>{"use strict";var Go=Symbol.for("react.element"),w$=Symbol.for("react.portal"),S$=Symbol.for("react.fragment"),C$=Symbol.for("react.strict_mode"),k$=Symbol.for("react.profiler"),E$=Symbol.for("react.provider"),T$=Symbol.for("react.context"),_$=Symbol.for("react.forward_ref"),P$=Symbol.for("react.suspense"),L$=Symbol.for("react.memo"),N$=Symbol.for("react.lazy"),yf=Symbol.iterator;function R$(e){return e===null||typeof e!="object"?null:(e=yf&&e[yf]||e["@@iterator"],typeof e=="function"?e:null)}var wf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Sf=Object.assign,Cf={};function Zr(e,t,n){this.props=e,this.context=t,this.refs=Cf,this.updater=n||wf}Zr.prototype.isReactComponent={};Zr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Zr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function kf(){}kf.prototype=Zr.prototype;function Hs(e,t,n){this.props=e,this.context=t,this.refs=Cf,this.updater=n||wf}var Vs=Hs.prototype=new kf;Vs.constructor=Hs;Sf(Vs,Zr.prototype);Vs.isPureReactComponent=!0;var vf=Array.isArray,Ef=Object.prototype.hasOwnProperty,Ws={current:null},Tf={key:!0,ref:!0,__self:!0,__source:!0};function _f(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)Ef.call(t,r)&&!Tf.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:Go,type:e,key:i,ref:a,props:o,_owner:Ws.current}}function M$(e,t){return{$$typeof:Go,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Us(e){return typeof e=="object"&&e!==null&&e.$$typeof===Go}function I$(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var xf=/\/+/g;function zs(e,t){return typeof e=="object"&&e!==null&&e.key!=null?I$(""+e.key):t.toString(36)}function Ea(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Go:case w$:a=!0}}if(a)return a=e,o=o(a),e=r===""?"."+zs(a,0):r,vf(o)?(n="",e!=null&&(n=e.replace(xf,"$&/")+"/"),Ea(o,t,n,"",function(u){return u})):o!=null&&(Us(o)&&(o=M$(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(xf,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=r===""?".":r+":",vf(e))for(var l=0;l<e.length;l++){i=e[l];var s=r+zs(i,l);a+=Ea(i,t,n,s,o)}else if(s=R$(e),typeof s=="function")for(e=s.call(e),l=0;!(i=e.next()).done;)i=i.value,s=r+zs(i,l++),a+=Ea(i,t,n,s,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function ka(e,t,n){if(e==null)return e;var r=[],o=0;return Ea(e,r,"","",function(i){return t.call(n,i,o++)}),r}function D$(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Je={current:null},Ta={transition:null},F$={ReactCurrentDispatcher:Je,ReactCurrentBatchConfig:Ta,ReactCurrentOwner:Ws};function Pf(){throw Error("act(...) is not supported in production builds of React.")}X.Children={map:ka,forEach:function(e,t,n){ka(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ka(e,function(){t++}),t},toArray:function(e){return ka(e,function(t){return t})||[]},only:function(e){if(!Us(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};X.Component=Zr;X.Fragment=S$;X.Profiler=k$;X.PureComponent=Hs;X.StrictMode=C$;X.Suspense=P$;X.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F$;X.act=Pf;X.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Sf({},e.props),o=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=Ws.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)Ef.call(t,s)&&!Tf.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&l!==void 0?l[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){l=Array(s);for(var u=0;u<s;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Go,type:e.type,key:o,ref:i,props:r,_owner:a}};X.createContext=function(e){return e={$$typeof:T$,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:E$,_context:e},e.Consumer=e};X.createElement=_f;X.createFactory=function(e){var t=_f.bind(null,e);return t.type=e,t};X.createRef=function(){return{current:null}};X.forwardRef=function(e){return{$$typeof:_$,render:e}};X.isValidElement=Us;X.lazy=function(e){return{$$typeof:N$,_payload:{_status:-1,_result:e},_init:D$}};X.memo=function(e,t){return{$$typeof:L$,type:e,compare:t===void 0?null:t}};X.startTransition=function(e){var t=Ta.transition;Ta.transition={};try{e()}finally{Ta.transition=t}};X.unstable_act=Pf;X.useCallback=function(e,t){return Je.current.useCallback(e,t)};X.useContext=function(e){return Je.current.useContext(e)};X.useDebugValue=function(){};X.useDeferredValue=function(e){return Je.current.useDeferredValue(e)};X.useEffect=function(e,t){return Je.current.useEffect(e,t)};X.useId=function(){return Je.current.useId()};X.useImperativeHandle=function(e,t,n){return Je.current.useImperativeHandle(e,t,n)};X.useInsertionEffect=function(e,t){return Je.current.useInsertionEffect(e,t)};X.useLayoutEffect=function(e,t){return Je.current.useLayoutEffect(e,t)};X.useMemo=function(e,t){return Je.current.useMemo(e,t)};X.useReducer=function(e,t,n){return Je.current.useReducer(e,t,n)};X.useRef=function(e){return Je.current.useRef(e)};X.useState=function(e){return Je.current.useState(e)};X.useSyncExternalStore=function(e,t,n){return Je.current.useSyncExternalStore(e,t,n)};X.useTransition=function(){return Je.current.useTransition()};X.version="18.3.1"});var K=Gt((Cx,Nf)=>{"use strict";Nf.exports=Lf()});var zf=Gt(ce=>{"use strict";function Ys(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(0<_a(o,t))e[r]=t,e[n]=o,n=r;else break e}}function Qt(e){return e.length===0?null:e[0]}function La(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,i=o>>>1;r<i;){var a=2*(r+1)-1,l=e[a],s=a+1,u=e[s];if(0>_a(l,n))s<o&&0>_a(u,l)?(e[r]=u,e[s]=n,r=s):(e[r]=l,e[a]=n,r=a);else if(s<o&&0>_a(u,n))e[r]=u,e[s]=n,r=s;else break e}}return t}function _a(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(Rf=performance,ce.unstable_now=function(){return Rf.now()}):(js=Date,Mf=js.now(),ce.unstable_now=function(){return js.now()-Mf});var Rf,js,Mf,dn=[],Vn=[],K$=1,Kt=null,Ue=3,Na=!1,yr=!1,Yo=!1,Ff=typeof setTimeout=="function"?setTimeout:null,Kf=typeof clearTimeout=="function"?clearTimeout:null,If=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Xs(e){for(var t=Qt(Vn);t!==null;){if(t.callback===null)La(Vn);else if(t.startTime<=e)La(Vn),t.sortIndex=t.expirationTime,Ys(dn,t);else break;t=Qt(Vn)}}function qs(e){if(Yo=!1,Xs(e),!yr)if(Qt(dn)!==null)yr=!0,Js(Zs);else{var t=Qt(Vn);t!==null&&eu(qs,t.startTime-e)}}function Zs(e,t){yr=!1,Yo&&(Yo=!1,Kf(Xo),Xo=-1),Na=!0;var n=Ue;try{for(Xs(t),Kt=Qt(dn);Kt!==null&&(!(Kt.expirationTime>t)||e&&!Bf());){var r=Kt.callback;if(typeof r=="function"){Kt.callback=null,Ue=Kt.priorityLevel;var o=r(Kt.expirationTime<=t);t=ce.unstable_now(),typeof o=="function"?Kt.callback=o:Kt===Qt(dn)&&La(dn),Xs(t)}else La(dn);Kt=Qt(dn)}if(Kt!==null)var i=!0;else{var a=Qt(Vn);a!==null&&eu(qs,a.startTime-t),i=!1}return i}finally{Kt=null,Ue=n,Na=!1}}var Ra=!1,Pa=null,Xo=-1,Of=5,Af=-1;function Bf(){return!(ce.unstable_now()-Af<Of)}function Gs(){if(Pa!==null){var e=ce.unstable_now();Af=e;var t=!0;try{t=Pa(!0,e)}finally{t?Qo():(Ra=!1,Pa=null)}}else Ra=!1}var Qo;typeof If=="function"?Qo=function(){If(Gs)}:typeof MessageChannel<"u"?(Qs=new MessageChannel,Df=Qs.port2,Qs.port1.onmessage=Gs,Qo=function(){Df.postMessage(null)}):Qo=function(){Ff(Gs,0)};var Qs,Df;function Js(e){Pa=e,Ra||(Ra=!0,Qo())}function eu(e,t){Xo=Ff(function(){e(ce.unstable_now())},t)}ce.unstable_IdlePriority=5;ce.unstable_ImmediatePriority=1;ce.unstable_LowPriority=4;ce.unstable_NormalPriority=3;ce.unstable_Profiling=null;ce.unstable_UserBlockingPriority=2;ce.unstable_cancelCallback=function(e){e.callback=null};ce.unstable_continueExecution=function(){yr||Na||(yr=!0,Js(Zs))};ce.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Of=0<e?Math.floor(1e3/e):5};ce.unstable_getCurrentPriorityLevel=function(){return Ue};ce.unstable_getFirstCallbackNode=function(){return Qt(dn)};ce.unstable_next=function(e){switch(Ue){case 1:case 2:case 3:var t=3;break;default:t=Ue}var n=Ue;Ue=t;try{return e()}finally{Ue=n}};ce.unstable_pauseExecution=function(){};ce.unstable_requestPaint=function(){};ce.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=Ue;Ue=e;try{return t()}finally{Ue=n}};ce.unstable_scheduleCallback=function(e,t,n){var r=ce.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?r+n:r):n=r,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=n+o,e={id:K$++,callback:t,priorityLevel:e,startTime:n,expirationTime:o,sortIndex:-1},n>r?(e.sortIndex=n,Ys(Vn,e),Qt(dn)===null&&e===Qt(Vn)&&(Yo?(Kf(Xo),Xo=-1):Yo=!0,eu(qs,n-r))):(e.sortIndex=o,Ys(dn,e),yr||Na||(yr=!0,Js(Zs))),e};ce.unstable_shouldYield=Bf;ce.unstable_wrapCallback=function(e){var t=Ue;return function(){var n=Ue;Ue=t;try{return e.apply(this,arguments)}finally{Ue=n}}}});var Vf=Gt((Ex,Hf)=>{"use strict";Hf.exports=zf()});var G0=Gt(Tt=>{"use strict";var O$=K(),kt=Vf();function x(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Xp=new Set,bi={};function Rr(e,t){vo(e,t),vo(e+"Capture",t)}function vo(e,t){for(bi[e]=t,e=0;e<t.length;e++)Xp.add(t[e])}var Ln=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Su=Object.prototype.hasOwnProperty,A$=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Wf={},Uf={};function B$(e){return Su.call(Uf,e)?!0:Su.call(Wf,e)?!1:A$.test(e)?Uf[e]=!0:(Wf[e]=!0,!1)}function z$(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function H$(e,t,n,r){if(t===null||typeof t>"u"||z$(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function nt(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Ve={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ve[e]=new nt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ve[t]=new nt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ve[e]=new nt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ve[e]=new nt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ve[e]=new nt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ve[e]=new nt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ve[e]=new nt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ve[e]=new nt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ve[e]=new nt(e,5,!1,e.toLowerCase(),null,!1,!1)});var hc=/[\-:]([a-z])/g;function gc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(hc,gc);Ve[t]=new nt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(hc,gc);Ve[t]=new nt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(hc,gc);Ve[t]=new nt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ve[e]=new nt(e,1,!1,e.toLowerCase(),null,!1,!1)});Ve.xlinkHref=new nt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ve[e]=new nt(e,1,!1,e.toLowerCase(),null,!0,!0)});function $c(e,t,n,r){var o=Ve.hasOwnProperty(t)?Ve[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(H$(t,n,o,r)&&(n=null),r||o===null?B$(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var In=O$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ma=Symbol.for("react.element"),to=Symbol.for("react.portal"),no=Symbol.for("react.fragment"),bc=Symbol.for("react.strict_mode"),Cu=Symbol.for("react.profiler"),qp=Symbol.for("react.provider"),Zp=Symbol.for("react.context"),yc=Symbol.for("react.forward_ref"),ku=Symbol.for("react.suspense"),Eu=Symbol.for("react.suspense_list"),vc=Symbol.for("react.memo"),Un=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var Jp=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var jf=Symbol.iterator;function qo(e){return e===null||typeof e!="object"?null:(e=jf&&e[jf]||e["@@iterator"],typeof e=="function"?e:null)}var Se=Object.assign,tu;function ii(e){if(tu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);tu=t&&t[1]||""}return`
|
|
2
|
-
`+
|
|
1
|
+
var $$=Object.create;var yf=Object.defineProperty;var b$=Object.getOwnPropertyDescriptor;var y$=Object.getOwnPropertyNames;var v$=Object.getPrototypeOf,x$=Object.prototype.hasOwnProperty;var Gt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var w$=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of y$(t))!x$.call(e,o)&&o!==n&&yf(e,o,{get:()=>t[o],enumerable:!(r=b$(t,o))||r.enumerable});return e};var S=(e,t,n)=>(n=e!=null?$$(v$(e)):{},w$(t||!e||!e.__esModule?yf(n,"default",{value:e,enumerable:!0}):n,e));var Nf=Gt(X=>{"use strict";var Xo=Symbol.for("react.element"),S$=Symbol.for("react.portal"),C$=Symbol.for("react.fragment"),k$=Symbol.for("react.strict_mode"),E$=Symbol.for("react.profiler"),T$=Symbol.for("react.provider"),_$=Symbol.for("react.context"),P$=Symbol.for("react.forward_ref"),L$=Symbol.for("react.suspense"),N$=Symbol.for("react.memo"),R$=Symbol.for("react.lazy"),vf=Symbol.iterator;function M$(e){return e===null||typeof e!="object"?null:(e=vf&&e[vf]||e["@@iterator"],typeof e=="function"?e:null)}var Sf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Cf=Object.assign,kf={};function Jr(e,t,n){this.props=e,this.context=t,this.refs=kf,this.updater=n||Sf}Jr.prototype.isReactComponent={};Jr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Jr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ef(){}Ef.prototype=Jr.prototype;function Ws(e,t,n){this.props=e,this.context=t,this.refs=kf,this.updater=n||Sf}var Us=Ws.prototype=new Ef;Us.constructor=Ws;Cf(Us,Jr.prototype);Us.isPureReactComponent=!0;var xf=Array.isArray,Tf=Object.prototype.hasOwnProperty,js={current:null},_f={key:!0,ref:!0,__self:!0,__source:!0};function Pf(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)Tf.call(t,r)&&!_f.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:Xo,type:e,key:i,ref:a,props:o,_owner:js.current}}function I$(e,t){return{$$typeof:Xo,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Gs(e){return typeof e=="object"&&e!==null&&e.$$typeof===Xo}function D$(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var wf=/\/+/g;function Vs(e,t){return typeof e=="object"&&e!==null&&e.key!=null?D$(""+e.key):t.toString(36)}function _a(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Xo:case S$:a=!0}}if(a)return a=e,o=o(a),e=r===""?"."+Vs(a,0):r,xf(o)?(n="",e!=null&&(n=e.replace(wf,"$&/")+"/"),_a(o,t,n,"",function(u){return u})):o!=null&&(Gs(o)&&(o=I$(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(wf,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=r===""?".":r+":",xf(e))for(var l=0;l<e.length;l++){i=e[l];var s=r+Vs(i,l);a+=_a(i,t,n,s,o)}else if(s=M$(e),typeof s=="function")for(e=s.call(e),l=0;!(i=e.next()).done;)i=i.value,s=r+Vs(i,l++),a+=_a(i,t,n,s,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Ta(e,t,n){if(e==null)return e;var r=[],o=0;return _a(e,r,"","",function(i){return t.call(n,i,o++)}),r}function F$(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Je={current:null},Pa={transition:null},K$={ReactCurrentDispatcher:Je,ReactCurrentBatchConfig:Pa,ReactCurrentOwner:js};function Lf(){throw Error("act(...) is not supported in production builds of React.")}X.Children={map:Ta,forEach:function(e,t,n){Ta(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ta(e,function(){t++}),t},toArray:function(e){return Ta(e,function(t){return t})||[]},only:function(e){if(!Gs(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};X.Component=Jr;X.Fragment=C$;X.Profiler=E$;X.PureComponent=Ws;X.StrictMode=k$;X.Suspense=L$;X.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=K$;X.act=Lf;X.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Cf({},e.props),o=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=js.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)Tf.call(t,s)&&!_f.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&l!==void 0?l[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){l=Array(s);for(var u=0;u<s;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Xo,type:e.type,key:o,ref:i,props:r,_owner:a}};X.createContext=function(e){return e={$$typeof:_$,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:T$,_context:e},e.Consumer=e};X.createElement=Pf;X.createFactory=function(e){var t=Pf.bind(null,e);return t.type=e,t};X.createRef=function(){return{current:null}};X.forwardRef=function(e){return{$$typeof:P$,render:e}};X.isValidElement=Gs;X.lazy=function(e){return{$$typeof:R$,_payload:{_status:-1,_result:e},_init:F$}};X.memo=function(e,t){return{$$typeof:N$,type:e,compare:t===void 0?null:t}};X.startTransition=function(e){var t=Pa.transition;Pa.transition={};try{e()}finally{Pa.transition=t}};X.unstable_act=Lf;X.useCallback=function(e,t){return Je.current.useCallback(e,t)};X.useContext=function(e){return Je.current.useContext(e)};X.useDebugValue=function(){};X.useDeferredValue=function(e){return Je.current.useDeferredValue(e)};X.useEffect=function(e,t){return Je.current.useEffect(e,t)};X.useId=function(){return Je.current.useId()};X.useImperativeHandle=function(e,t,n){return Je.current.useImperativeHandle(e,t,n)};X.useInsertionEffect=function(e,t){return Je.current.useInsertionEffect(e,t)};X.useLayoutEffect=function(e,t){return Je.current.useLayoutEffect(e,t)};X.useMemo=function(e,t){return Je.current.useMemo(e,t)};X.useReducer=function(e,t,n){return Je.current.useReducer(e,t,n)};X.useRef=function(e){return Je.current.useRef(e)};X.useState=function(e){return Je.current.useState(e)};X.useSyncExternalStore=function(e,t,n){return Je.current.useSyncExternalStore(e,t,n)};X.useTransition=function(){return Je.current.useTransition()};X.version="18.3.1"});var K=Gt((Ex,Rf)=>{"use strict";Rf.exports=Nf()});var Hf=Gt(ce=>{"use strict";function qs(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(0<La(o,t))e[r]=t,e[n]=o,n=r;else break e}}function Qt(e){return e.length===0?null:e[0]}function Ra(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,i=o>>>1;r<i;){var a=2*(r+1)-1,l=e[a],s=a+1,u=e[s];if(0>La(l,n))s<o&&0>La(u,l)?(e[r]=u,e[s]=n,r=s):(e[r]=l,e[a]=n,r=a);else if(s<o&&0>La(u,n))e[r]=u,e[s]=n,r=s;else break e}}return t}function La(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(Mf=performance,ce.unstable_now=function(){return Mf.now()}):(Qs=Date,If=Qs.now(),ce.unstable_now=function(){return Qs.now()-If});var Mf,Qs,If,dn=[],Vn=[],O$=1,Kt=null,Ue=3,Ma=!1,yr=!1,Zo=!1,Kf=typeof setTimeout=="function"?setTimeout:null,Of=typeof clearTimeout=="function"?clearTimeout:null,Df=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Zs(e){for(var t=Qt(Vn);t!==null;){if(t.callback===null)Ra(Vn);else if(t.startTime<=e)Ra(Vn),t.sortIndex=t.expirationTime,qs(dn,t);else break;t=Qt(Vn)}}function Js(e){if(Zo=!1,Zs(e),!yr)if(Qt(dn)!==null)yr=!0,tu(eu);else{var t=Qt(Vn);t!==null&&nu(Js,t.startTime-e)}}function eu(e,t){yr=!1,Zo&&(Zo=!1,Of(Jo),Jo=-1),Ma=!0;var n=Ue;try{for(Zs(t),Kt=Qt(dn);Kt!==null&&(!(Kt.expirationTime>t)||e&&!Bf());){var r=Kt.callback;if(typeof r=="function"){Kt.callback=null,Ue=Kt.priorityLevel;var o=r(Kt.expirationTime<=t);t=ce.unstable_now(),typeof o=="function"?Kt.callback=o:Kt===Qt(dn)&&Ra(dn),Zs(t)}else Ra(dn);Kt=Qt(dn)}if(Kt!==null)var i=!0;else{var a=Qt(Vn);a!==null&&nu(Js,a.startTime-t),i=!1}return i}finally{Kt=null,Ue=n,Ma=!1}}var Ia=!1,Na=null,Jo=-1,Af=5,zf=-1;function Bf(){return!(ce.unstable_now()-zf<Af)}function Ys(){if(Na!==null){var e=ce.unstable_now();zf=e;var t=!0;try{t=Na(!0,e)}finally{t?qo():(Ia=!1,Na=null)}}else Ia=!1}var qo;typeof Df=="function"?qo=function(){Df(Ys)}:typeof MessageChannel<"u"?(Xs=new MessageChannel,Ff=Xs.port2,Xs.port1.onmessage=Ys,qo=function(){Ff.postMessage(null)}):qo=function(){Kf(Ys,0)};var Xs,Ff;function tu(e){Na=e,Ia||(Ia=!0,qo())}function nu(e,t){Jo=Kf(function(){e(ce.unstable_now())},t)}ce.unstable_IdlePriority=5;ce.unstable_ImmediatePriority=1;ce.unstable_LowPriority=4;ce.unstable_NormalPriority=3;ce.unstable_Profiling=null;ce.unstable_UserBlockingPriority=2;ce.unstable_cancelCallback=function(e){e.callback=null};ce.unstable_continueExecution=function(){yr||Ma||(yr=!0,tu(eu))};ce.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Af=0<e?Math.floor(1e3/e):5};ce.unstable_getCurrentPriorityLevel=function(){return Ue};ce.unstable_getFirstCallbackNode=function(){return Qt(dn)};ce.unstable_next=function(e){switch(Ue){case 1:case 2:case 3:var t=3;break;default:t=Ue}var n=Ue;Ue=t;try{return e()}finally{Ue=n}};ce.unstable_pauseExecution=function(){};ce.unstable_requestPaint=function(){};ce.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=Ue;Ue=e;try{return t()}finally{Ue=n}};ce.unstable_scheduleCallback=function(e,t,n){var r=ce.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?r+n:r):n=r,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=n+o,e={id:O$++,callback:t,priorityLevel:e,startTime:n,expirationTime:o,sortIndex:-1},n>r?(e.sortIndex=n,qs(Vn,e),Qt(dn)===null&&e===Qt(Vn)&&(Zo?(Of(Jo),Jo=-1):Zo=!0,nu(Js,n-r))):(e.sortIndex=o,qs(dn,e),yr||Ma||(yr=!0,tu(eu))),e};ce.unstable_shouldYield=Bf;ce.unstable_wrapCallback=function(e){var t=Ue;return function(){var n=Ue;Ue=t;try{return e.apply(this,arguments)}finally{Ue=n}}}});var Wf=Gt((_x,Vf)=>{"use strict";Vf.exports=Hf()});var Q0=Gt(Tt=>{"use strict";var A$=K(),kt=Wf();function x(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var qp=new Set,xi={};function Rr(e,t){xo(e,t),xo(e+"Capture",t)}function xo(e,t){for(xi[e]=t,e=0;e<t.length;e++)qp.add(t[e])}var Ln=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ku=Object.prototype.hasOwnProperty,z$=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Uf={},jf={};function B$(e){return ku.call(jf,e)?!0:ku.call(Uf,e)?!1:z$.test(e)?jf[e]=!0:(Uf[e]=!0,!1)}function H$(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function V$(e,t,n,r){if(t===null||typeof t>"u"||H$(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function nt(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Ve={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ve[e]=new nt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ve[t]=new nt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ve[e]=new nt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ve[e]=new nt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ve[e]=new nt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ve[e]=new nt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ve[e]=new nt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ve[e]=new nt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ve[e]=new nt(e,5,!1,e.toLowerCase(),null,!1,!1)});var $c=/[\-:]([a-z])/g;function bc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace($c,bc);Ve[t]=new nt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace($c,bc);Ve[t]=new nt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace($c,bc);Ve[t]=new nt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ve[e]=new nt(e,1,!1,e.toLowerCase(),null,!1,!1)});Ve.xlinkHref=new nt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ve[e]=new nt(e,1,!1,e.toLowerCase(),null,!0,!0)});function yc(e,t,n,r){var o=Ve.hasOwnProperty(t)?Ve[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(V$(t,n,o,r)&&(n=null),r||o===null?B$(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var In=A$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Da=Symbol.for("react.element"),no=Symbol.for("react.portal"),ro=Symbol.for("react.fragment"),vc=Symbol.for("react.strict_mode"),Eu=Symbol.for("react.profiler"),Zp=Symbol.for("react.provider"),Jp=Symbol.for("react.context"),xc=Symbol.for("react.forward_ref"),Tu=Symbol.for("react.suspense"),_u=Symbol.for("react.suspense_list"),wc=Symbol.for("react.memo"),Un=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var em=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var Gf=Symbol.iterator;function ei(e){return e===null||typeof e!="object"?null:(e=Gf&&e[Gf]||e["@@iterator"],typeof e=="function"?e:null)}var Se=Object.assign,ru;function si(e){if(ru===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ru=t&&t[1]||""}return`
|
|
2
|
+
`+ru+e}var ou=!1;function iu(e,t){if(!e||ou)return"";ou=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
|
|
3
3
|
`),i=r.stack.split(`
|
|
4
4
|
`),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(a!==1||l!==1)do if(a--,l--,0>l||o[a]!==i[l]){var s=`
|
|
5
|
-
`+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{nu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ii(e):""}function V$(e){switch(e.tag){case 5:return ii(e.type);case 16:return ii("Lazy");case 13:return ii("Suspense");case 19:return ii("SuspenseList");case 0:case 2:case 15:return e=ru(e.type,!1),e;case 11:return e=ru(e.type.render,!1),e;case 1:return e=ru(e.type,!0),e;default:return""}}function Tu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case no:return"Fragment";case to:return"Portal";case Cu:return"Profiler";case bc:return"StrictMode";case ku:return"Suspense";case Eu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Zp:return(e.displayName||"Context")+".Consumer";case qp:return(e._context.displayName||"Context")+".Provider";case yc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case vc:return t=e.displayName||null,t!==null?t:Tu(e.type)||"Memo";case Un:t=e._payload,e=e._init;try{return Tu(e(t))}catch{}}return null}function W$(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Tu(t);case 8:return t===bc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ir(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function em(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function U$(e){var t=em(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ia(e){e._valueTracker||(e._valueTracker=U$(e))}function tm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=em(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function sl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function _u(e,t){var n=t.checked;return Se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Gf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ir(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function nm(e,t){t=t.checked,t!=null&&$c(e,"checked",t,!1)}function Pu(e,t){nm(e,t);var n=ir(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Lu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Lu(e,t.type,ir(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Qf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Lu(e,t,n){(t!=="number"||sl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ai=Array.isArray;function mo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ir(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Nu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(x(91));return Se({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Yf(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(x(92));if(ai(n)){if(1<n.length)throw Error(x(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ir(n)}}function rm(e,t){var n=ir(t.value),r=ir(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Xf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function om(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ru(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?om(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Da,im=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Da=Da||document.createElement("div"),Da.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Da.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function yi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ui={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},j$=["Webkit","ms","Moz","O"];Object.keys(ui).forEach(function(e){j$.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ui[t]=ui[e]})});function am(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ui.hasOwnProperty(e)&&ui[e]?(""+t).trim():t+"px"}function lm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=am(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var G$=Se({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Mu(e,t){if(t){if(G$[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(x(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(x(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(x(61))}if(t.style!=null&&typeof t.style!="object")throw Error(x(62))}}function Iu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Du=null;function xc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fu=null,ho=null,go=null;function qf(e){if(e=Ki(e)){if(typeof Fu!="function")throw Error(x(280));var t=e.stateNode;t&&(t=Fl(t),Fu(e.stateNode,e.type,t))}}function sm(e){ho?go?go.push(e):go=[e]:ho=e}function um(){if(ho){var e=ho,t=go;if(go=ho=null,qf(e),t)for(e=0;e<t.length;e++)qf(t[e])}}function cm(e,t){return e(t)}function dm(){}var ou=!1;function fm(e,t,n){if(ou)return e(t,n);ou=!0;try{return cm(e,t,n)}finally{ou=!1,(ho!==null||go!==null)&&(dm(),um())}}function vi(e,t){var n=e.stateNode;if(n===null)return null;var r=Fl(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(x(231,t,typeof n));return n}var Ku=!1;if(Ln)try{Jr={},Object.defineProperty(Jr,"passive",{get:function(){Ku=!0}}),window.addEventListener("test",Jr,Jr),window.removeEventListener("test",Jr,Jr)}catch{Ku=!1}var Jr;function Q$(e,t,n,r,o,i,a,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var ci=!1,ul=null,cl=!1,Ou=null,Y$={onError:function(e){ci=!0,ul=e}};function X$(e,t,n,r,o,i,a,l,s){ci=!1,ul=null,Q$.apply(Y$,arguments)}function q$(e,t,n,r,o,i,a,l,s){if(X$.apply(this,arguments),ci){if(ci){var u=ul;ci=!1,ul=null}else throw Error(x(198));cl||(cl=!0,Ou=u)}}function Mr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function pm(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Zf(e){if(Mr(e)!==e)throw Error(x(188))}function Z$(e){var t=e.alternate;if(!t){if(t=Mr(e),t===null)throw Error(x(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Zf(o),e;if(i===r)return Zf(o),t;i=i.sibling}throw Error(x(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a)throw Error(x(189))}}if(n.alternate!==r)throw Error(x(190))}if(n.tag!==3)throw Error(x(188));return n.stateNode.current===n?e:t}function mm(e){return e=Z$(e),e!==null?hm(e):null}function hm(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=hm(e);if(t!==null)return t;e=e.sibling}return null}var gm=kt.unstable_scheduleCallback,Jf=kt.unstable_cancelCallback,J$=kt.unstable_shouldYield,eb=kt.unstable_requestPaint,Te=kt.unstable_now,tb=kt.unstable_getCurrentPriorityLevel,wc=kt.unstable_ImmediatePriority,$m=kt.unstable_UserBlockingPriority,dl=kt.unstable_NormalPriority,nb=kt.unstable_LowPriority,bm=kt.unstable_IdlePriority,Rl=null,hn=null;function rb(e){if(hn&&typeof hn.onCommitFiberRoot=="function")try{hn.onCommitFiberRoot(Rl,e,void 0,(e.current.flags&128)===128)}catch{}}var Jt=Math.clz32?Math.clz32:ab,ob=Math.log,ib=Math.LN2;function ab(e){return e>>>=0,e===0?32:31-(ob(e)/ib|0)|0}var Fa=64,Ka=4194304;function li(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function fl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~o;l!==0?r=li(l):(i&=a,i!==0&&(r=li(i)))}else a=n&~o,a!==0?r=li(a):i!==0&&(r=li(i));if(r===0)return 0;if(t!==0&&t!==r&&(t&o)===0&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Jt(t),o=1<<n,r|=e[n],t&=~o;return r}function lb(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function sb(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-Jt(i),l=1<<a,s=o[a];s===-1?((l&n)===0||(l&r)!==0)&&(o[a]=lb(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}function Au(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ym(){var e=Fa;return Fa<<=1,(Fa&4194240)===0&&(Fa=64),e}function iu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Di(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Jt(t),e[t]=n}function ub(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Jt(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function Sc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Jt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var ae=0;function vm(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var xm,Cc,wm,Sm,Cm,Bu=!1,Oa=[],qn=null,Zn=null,Jn=null,xi=new Map,wi=new Map,Gn=[],cb="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ep(e,t){switch(e){case"focusin":case"focusout":qn=null;break;case"dragenter":case"dragleave":Zn=null;break;case"mouseover":case"mouseout":Jn=null;break;case"pointerover":case"pointerout":xi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":wi.delete(t.pointerId)}}function Zo(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=Ki(t),t!==null&&Cc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function db(e,t,n,r,o){switch(t){case"focusin":return qn=Zo(qn,e,t,n,r,o),!0;case"dragenter":return Zn=Zo(Zn,e,t,n,r,o),!0;case"mouseover":return Jn=Zo(Jn,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return xi.set(i,Zo(xi.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,wi.set(i,Zo(wi.get(i)||null,e,t,n,r,o)),!0}return!1}function km(e){var t=wr(e.target);if(t!==null){var n=Mr(t);if(n!==null){if(t=n.tag,t===13){if(t=pm(n),t!==null){e.blockedOn=t,Cm(e.priority,function(){wm(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Za(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=zu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Du=r,n.target.dispatchEvent(r),Du=null}else return t=Ki(n),t!==null&&Cc(t),e.blockedOn=n,!1;t.shift()}return!0}function tp(e,t,n){Za(e)&&n.delete(t)}function fb(){Bu=!1,qn!==null&&Za(qn)&&(qn=null),Zn!==null&&Za(Zn)&&(Zn=null),Jn!==null&&Za(Jn)&&(Jn=null),xi.forEach(tp),wi.forEach(tp)}function Jo(e,t){e.blockedOn===t&&(e.blockedOn=null,Bu||(Bu=!0,kt.unstable_scheduleCallback(kt.unstable_NormalPriority,fb)))}function Si(e){function t(o){return Jo(o,e)}if(0<Oa.length){Jo(Oa[0],e);for(var n=1;n<Oa.length;n++){var r=Oa[n];r.blockedOn===e&&(r.blockedOn=null)}}for(qn!==null&&Jo(qn,e),Zn!==null&&Jo(Zn,e),Jn!==null&&Jo(Jn,e),xi.forEach(t),wi.forEach(t),n=0;n<Gn.length;n++)r=Gn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Gn.length&&(n=Gn[0],n.blockedOn===null);)km(n),n.blockedOn===null&&Gn.shift()}var $o=In.ReactCurrentBatchConfig,pl=!0;function pb(e,t,n,r){var o=ae,i=$o.transition;$o.transition=null;try{ae=1,kc(e,t,n,r)}finally{ae=o,$o.transition=i}}function mb(e,t,n,r){var o=ae,i=$o.transition;$o.transition=null;try{ae=4,kc(e,t,n,r)}finally{ae=o,$o.transition=i}}function kc(e,t,n,r){if(pl){var o=zu(e,t,n,r);if(o===null)fu(e,t,r,ml,n),ep(e,r);else if(db(o,e,t,n,r))r.stopPropagation();else if(ep(e,r),t&4&&-1<cb.indexOf(e)){for(;o!==null;){var i=Ki(o);if(i!==null&&xm(i),i=zu(e,t,n,r),i===null&&fu(e,t,r,ml,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else fu(e,t,r,null,n)}}var ml=null;function zu(e,t,n,r){if(ml=null,e=xc(r),e=wr(e),e!==null)if(t=Mr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=pm(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ml=e,null}function Em(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(tb()){case wc:return 1;case $m:return 4;case dl:case nb:return 16;case bm:return 536870912;default:return 16}default:return 16}}var Yn=null,Ec=null,Ja=null;function Tm(){if(Ja)return Ja;var e,t=Ec,n=t.length,r,o="value"in Yn?Yn.value:Yn.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===o[i-r];r++);return Ja=o.slice(e,1<r?1-r:void 0)}function el(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Aa(){return!0}function np(){return!1}function Et(e){function t(n,r,o,i,a){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Aa:np,this.isPropagationStopped=np,this}return Se(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Aa)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Aa)},persist:function(){},isPersistent:Aa}),t}var To={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tc=Et(To),Fi=Se({},To,{view:0,detail:0}),hb=Et(Fi),au,lu,ei,Ml=Se({},Fi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_c,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ei&&(ei&&e.type==="mousemove"?(au=e.screenX-ei.screenX,lu=e.screenY-ei.screenY):lu=au=0,ei=e),au)},movementY:function(e){return"movementY"in e?e.movementY:lu}}),rp=Et(Ml),gb=Se({},Ml,{dataTransfer:0}),$b=Et(gb),bb=Se({},Fi,{relatedTarget:0}),su=Et(bb),yb=Se({},To,{animationName:0,elapsedTime:0,pseudoElement:0}),vb=Et(yb),xb=Se({},To,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wb=Et(xb),Sb=Se({},To,{data:0}),op=Et(Sb),Cb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kb={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Eb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tb(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Eb[e])?!!t[e]:!1}function _c(){return Tb}var _b=Se({},Fi,{key:function(e){if(e.key){var t=Cb[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=el(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?kb[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_c,charCode:function(e){return e.type==="keypress"?el(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?el(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Pb=Et(_b),Lb=Se({},Ml,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ip=Et(Lb),Nb=Se({},Fi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_c}),Rb=Et(Nb),Mb=Se({},To,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ib=Et(Mb),Db=Se({},Ml,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Fb=Et(Db),Kb=[9,13,27,32],Pc=Ln&&"CompositionEvent"in window,di=null;Ln&&"documentMode"in document&&(di=document.documentMode);var Ob=Ln&&"TextEvent"in window&&!di,_m=Ln&&(!Pc||di&&8<di&&11>=di),ap=" ",lp=!1;function Pm(e,t){switch(e){case"keyup":return Kb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ro=!1;function Ab(e,t){switch(e){case"compositionend":return Lm(t);case"keypress":return t.which!==32?null:(lp=!0,ap);case"textInput":return e=t.data,e===ap&&lp?null:e;default:return null}}function Bb(e,t){if(ro)return e==="compositionend"||!Pc&&Pm(e,t)?(e=Tm(),Ja=Ec=Yn=null,ro=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return _m&&t.locale!=="ko"?null:t.data;default:return null}}var zb={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function sp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!zb[e.type]:t==="textarea"}function Nm(e,t,n,r){sm(r),t=hl(t,"onChange"),0<t.length&&(n=new Tc("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var fi=null,Ci=null;function Hb(e){Hm(e,0)}function Il(e){var t=ao(e);if(tm(t))return e}function Vb(e,t){if(e==="change")return t}var Rm=!1;Ln&&(Ln?(za="oninput"in document,za||(uu=document.createElement("div"),uu.setAttribute("oninput","return;"),za=typeof uu.oninput=="function"),Ba=za):Ba=!1,Rm=Ba&&(!document.documentMode||9<document.documentMode));var Ba,za,uu;function up(){fi&&(fi.detachEvent("onpropertychange",Mm),Ci=fi=null)}function Mm(e){if(e.propertyName==="value"&&Il(Ci)){var t=[];Nm(t,Ci,e,xc(e)),fm(Hb,t)}}function Wb(e,t,n){e==="focusin"?(up(),fi=t,Ci=n,fi.attachEvent("onpropertychange",Mm)):e==="focusout"&&up()}function Ub(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Il(Ci)}function jb(e,t){if(e==="click")return Il(t)}function Gb(e,t){if(e==="input"||e==="change")return Il(t)}function Qb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tn=typeof Object.is=="function"?Object.is:Qb;function ki(e,t){if(tn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Su.call(t,o)||!tn(e[o],t[o]))return!1}return!0}function cp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dp(e,t){var n=cp(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=cp(n)}}function Im(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Im(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Dm(){for(var e=window,t=sl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=sl(e.document)}return t}function Lc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Yb(e){var t=Dm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Im(n.ownerDocument.documentElement,n)){if(r!==null&&Lc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=dp(n,i);var a=dp(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Xb=Ln&&"documentMode"in document&&11>=document.documentMode,oo=null,Hu=null,pi=null,Vu=!1;function fp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Vu||oo==null||oo!==sl(r)||(r=oo,"selectionStart"in r&&Lc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),pi&&ki(pi,r)||(pi=r,r=hl(Hu,"onSelect"),0<r.length&&(t=new Tc("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=oo)))}function Ha(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var io={animationend:Ha("Animation","AnimationEnd"),animationiteration:Ha("Animation","AnimationIteration"),animationstart:Ha("Animation","AnimationStart"),transitionend:Ha("Transition","TransitionEnd")},cu={},Fm={};Ln&&(Fm=document.createElement("div").style,"AnimationEvent"in window||(delete io.animationend.animation,delete io.animationiteration.animation,delete io.animationstart.animation),"TransitionEvent"in window||delete io.transitionend.transition);function Dl(e){if(cu[e])return cu[e];if(!io[e])return e;var t=io[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Fm)return cu[e]=t[n];return e}var Km=Dl("animationend"),Om=Dl("animationiteration"),Am=Dl("animationstart"),Bm=Dl("transitionend"),zm=new Map,pp="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function lr(e,t){zm.set(e,t),Rr(t,[e])}for(Va=0;Va<pp.length;Va++)Wa=pp[Va],mp=Wa.toLowerCase(),hp=Wa[0].toUpperCase()+Wa.slice(1),lr(mp,"on"+hp);var Wa,mp,hp,Va;lr(Km,"onAnimationEnd");lr(Om,"onAnimationIteration");lr(Am,"onAnimationStart");lr("dblclick","onDoubleClick");lr("focusin","onFocus");lr("focusout","onBlur");lr(Bm,"onTransitionEnd");vo("onMouseEnter",["mouseout","mouseover"]);vo("onMouseLeave",["mouseout","mouseover"]);vo("onPointerEnter",["pointerout","pointerover"]);vo("onPointerLeave",["pointerout","pointerover"]);Rr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Rr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Rr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Rr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Rr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Rr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var si="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),qb=new Set("cancel close invalid load scroll toggle".split(" ").concat(si));function gp(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,q$(r,t,void 0,e),e.currentTarget=null}function Hm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==i&&o.isPropagationStopped())break e;gp(o,l,u),i=s}else for(a=0;a<r.length;a++){if(l=r[a],s=l.instance,u=l.currentTarget,l=l.listener,s!==i&&o.isPropagationStopped())break e;gp(o,l,u),i=s}}}if(cl)throw e=Ou,cl=!1,Ou=null,e}function pe(e,t){var n=t[Qu];n===void 0&&(n=t[Qu]=new Set);var r=e+"__bubble";n.has(r)||(Vm(t,e,2,!1),n.add(r))}function du(e,t,n){var r=0;t&&(r|=4),Vm(n,e,r,t)}var Ua="_reactListening"+Math.random().toString(36).slice(2);function Ei(e){if(!e[Ua]){e[Ua]=!0,Xp.forEach(function(n){n!=="selectionchange"&&(qb.has(n)||du(n,!1,e),du(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ua]||(t[Ua]=!0,du("selectionchange",!1,t))}}function Vm(e,t,n,r){switch(Em(t)){case 1:var o=pb;break;case 4:o=mb;break;default:o=kc}n=o.bind(null,t,n,e),o=void 0,!Ku||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function fu(e,t,n,r,o){var i=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var l=r.stateNode.containerInfo;if(l===o||l.nodeType===8&&l.parentNode===o)break;if(a===4)for(a=r.return;a!==null;){var s=a.tag;if((s===3||s===4)&&(s=a.stateNode.containerInfo,s===o||s.nodeType===8&&s.parentNode===o))return;a=a.return}for(;l!==null;){if(a=wr(l),a===null)return;if(s=a.tag,s===5||s===6){r=i=a;continue e}l=l.parentNode}}r=r.return}fm(function(){var u=i,c=xc(n),d=[];e:{var m=zm.get(e);if(m!==void 0){var g=Tc,y=e;switch(e){case"keypress":if(el(n)===0)break e;case"keydown":case"keyup":g=Pb;break;case"focusin":y="focus",g=su;break;case"focusout":y="blur",g=su;break;case"beforeblur":case"afterblur":g=su;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=rp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=$b;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=Rb;break;case Km:case Om:case Am:g=vb;break;case Bm:g=Ib;break;case"scroll":g=hb;break;case"wheel":g=Fb;break;case"copy":case"cut":case"paste":g=wb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=ip}var b=(t&4)!==0,R=!b&&e==="scroll",p=b?m!==null?m+"Capture":null:m;b=[];for(var f=u,h;f!==null;){h=f;var $=h.stateNode;if(h.tag===5&&$!==null&&(h=$,p!==null&&($=vi(f,p),$!=null&&b.push(Ti(f,$,h)))),R)break;f=f.return}0<b.length&&(m=new g(m,y,null,n,c),d.push({event:m,listeners:b}))}}if((t&7)===0){e:{if(m=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",m&&n!==Du&&(y=n.relatedTarget||n.fromElement)&&(wr(y)||y[Nn]))break e;if((g||m)&&(m=c.window===c?c:(m=c.ownerDocument)?m.defaultView||m.parentWindow:window,g?(y=n.relatedTarget||n.toElement,g=u,y=y?wr(y):null,y!==null&&(R=Mr(y),y!==R||y.tag!==5&&y.tag!==6)&&(y=null)):(g=null,y=u),g!==y)){if(b=rp,$="onMouseLeave",p="onMouseEnter",f="mouse",(e==="pointerout"||e==="pointerover")&&(b=ip,$="onPointerLeave",p="onPointerEnter",f="pointer"),R=g==null?m:ao(g),h=y==null?m:ao(y),m=new b($,f+"leave",g,n,c),m.target=R,m.relatedTarget=h,$=null,wr(c)===u&&(b=new b(p,f+"enter",y,n,c),b.target=h,b.relatedTarget=R,$=b),R=$,g&&y)t:{for(b=g,p=y,f=0,h=b;h;h=eo(h))f++;for(h=0,$=p;$;$=eo($))h++;for(;0<f-h;)b=eo(b),f--;for(;0<h-f;)p=eo(p),h--;for(;f--;){if(b===p||p!==null&&b===p.alternate)break t;b=eo(b),p=eo(p)}b=null}else b=null;g!==null&&$p(d,m,g,b,!1),y!==null&&R!==null&&$p(d,R,y,b,!0)}}e:{if(m=u?ao(u):window,g=m.nodeName&&m.nodeName.toLowerCase(),g==="select"||g==="input"&&m.type==="file")var C=Vb;else if(sp(m))if(Rm)C=Gb;else{C=Ub;var E=Wb}else(g=m.nodeName)&&g.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(C=jb);if(C&&(C=C(e,u))){Nm(d,C,n,c);break e}E&&E(e,m,u),e==="focusout"&&(E=m._wrapperState)&&E.controlled&&m.type==="number"&&Lu(m,"number",m.value)}switch(E=u?ao(u):window,e){case"focusin":(sp(E)||E.contentEditable==="true")&&(oo=E,Hu=u,pi=null);break;case"focusout":pi=Hu=oo=null;break;case"mousedown":Vu=!0;break;case"contextmenu":case"mouseup":case"dragend":Vu=!1,fp(d,n,c);break;case"selectionchange":if(Xb)break;case"keydown":case"keyup":fp(d,n,c)}var P;if(Pc)e:{switch(e){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else ro?Pm(e,n)&&(N="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&(_m&&n.locale!=="ko"&&(ro||N!=="onCompositionStart"?N==="onCompositionEnd"&&ro&&(P=Tm()):(Yn=c,Ec="value"in Yn?Yn.value:Yn.textContent,ro=!0)),E=hl(u,N),0<E.length&&(N=new op(N,e,null,n,c),d.push({event:N,listeners:E}),P?N.data=P:(P=Lm(n),P!==null&&(N.data=P)))),(P=Ob?Ab(e,n):Bb(e,n))&&(u=hl(u,"onBeforeInput"),0<u.length&&(c=new op("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=P))}Hm(d,t)})}function Ti(e,t,n){return{instance:e,listener:t,currentTarget:n}}function hl(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=vi(e,n),i!=null&&r.unshift(Ti(e,i,o)),i=vi(e,t),i!=null&&r.push(Ti(e,i,o))),e=e.return}return r}function eo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function $p(e,t,n,r,o){for(var i=t._reactName,a=[];n!==null&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(s!==null&&s===r)break;l.tag===5&&u!==null&&(l=u,o?(s=vi(n,i),s!=null&&a.unshift(Ti(n,s,l))):o||(s=vi(n,i),s!=null&&a.push(Ti(n,s,l)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var Zb=/\r\n?/g,Jb=/\u0000|\uFFFD/g;function bp(e){return(typeof e=="string"?e:""+e).replace(Zb,`
|
|
6
|
-
`).replace(Jb,"")}function ja(e,t,n){if(t=bp(t),bp(e)!==t&&n)throw Error(x(425))}function gl(){}var Wu=null,Uu=null;function ju(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Gu=typeof setTimeout=="function"?setTimeout:void 0,ey=typeof clearTimeout=="function"?clearTimeout:void 0,yp=typeof Promise=="function"?Promise:void 0,ty=typeof queueMicrotask=="function"?queueMicrotask:typeof yp<"u"?function(e){return yp.resolve(null).then(e).catch(ny)}:Gu;function ny(e){setTimeout(function(){throw e})}function pu(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Si(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Si(t)}function er(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function vp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var _o=Math.random().toString(36).slice(2),mn="__reactFiber$"+_o,_i="__reactProps$"+_o,Nn="__reactContainer$"+_o,Qu="__reactEvents$"+_o,ry="__reactListeners$"+_o,oy="__reactHandles$"+_o;function wr(e){var t=e[mn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Nn]||n[mn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=vp(e);e!==null;){if(n=e[mn])return n;e=vp(e)}return t}e=n,n=e.parentNode}return null}function Ki(e){return e=e[mn]||e[Nn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ao(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(x(33))}function Fl(e){return e[_i]||null}var Yu=[],lo=-1;function sr(e){return{current:e}}function me(e){0>lo||(e.current=Yu[lo],Yu[lo]=null,lo--)}function de(e,t){lo++,Yu[lo]=e.current,e.current=t}var ar={},Ye=sr(ar),gt=sr(!1),Tr=ar;function xo(e,t){var n=e.type.contextTypes;if(!n)return ar;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function $t(e){return e=e.childContextTypes,e!=null}function $l(){me(gt),me(Ye)}function xp(e,t,n){if(Ye.current!==ar)throw Error(x(168));de(Ye,t),de(gt,n)}function Wm(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(x(108,W$(e)||"Unknown",o));return Se({},n,r)}function bl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ar,Tr=Ye.current,de(Ye,e),de(gt,gt.current),!0}function wp(e,t,n){var r=e.stateNode;if(!r)throw Error(x(169));n?(e=Wm(e,t,Tr),r.__reactInternalMemoizedMergedChildContext=e,me(gt),me(Ye),de(Ye,e)):me(gt),de(gt,n)}var En=null,Kl=!1,mu=!1;function Um(e){En===null?En=[e]:En.push(e)}function iy(e){Kl=!0,Um(e)}function ur(){if(!mu&&En!==null){mu=!0;var e=0,t=ae;try{var n=En;for(ae=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}En=null,Kl=!1}catch(o){throw En!==null&&(En=En.slice(e+1)),gm(wc,ur),o}finally{ae=t,mu=!1}}return null}var so=[],uo=0,yl=null,vl=0,Ot=[],At=0,_r=null,Tn=1,_n="";function vr(e,t){so[uo++]=vl,so[uo++]=yl,yl=e,vl=t}function jm(e,t,n){Ot[At++]=Tn,Ot[At++]=_n,Ot[At++]=_r,_r=e;var r=Tn;e=_n;var o=32-Jt(r)-1;r&=~(1<<o),n+=1;var i=32-Jt(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Tn=1<<32-Jt(t)+o|n<<o|r,_n=i+e}else Tn=1<<i|n<<o|r,_n=e}function Nc(e){e.return!==null&&(vr(e,1),jm(e,1,0))}function Rc(e){for(;e===yl;)yl=so[--uo],so[uo]=null,vl=so[--uo],so[uo]=null;for(;e===_r;)_r=Ot[--At],Ot[At]=null,_n=Ot[--At],Ot[At]=null,Tn=Ot[--At],Ot[At]=null}var Ct=null,St=null,be=!1,Zt=null;function Gm(e,t){var n=Bt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Sp(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ct=e,St=er(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ct=e,St=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=_r!==null?{id:Tn,overflow:_n}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Bt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ct=e,St=null,!0):!1;default:return!1}}function Xu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function qu(e){if(be){var t=St;if(t){var n=t;if(!Sp(e,t)){if(Xu(e))throw Error(x(418));t=er(n.nextSibling);var r=Ct;t&&Sp(e,t)?Gm(r,n):(e.flags=e.flags&-4097|2,be=!1,Ct=e)}}else{if(Xu(e))throw Error(x(418));e.flags=e.flags&-4097|2,be=!1,Ct=e}}}function Cp(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ct=e}function Ga(e){if(e!==Ct)return!1;if(!be)return Cp(e),be=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ju(e.type,e.memoizedProps)),t&&(t=St)){if(Xu(e))throw Qm(),Error(x(418));for(;t;)Gm(e,t),t=er(t.nextSibling)}if(Cp(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(x(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){St=er(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}St=null}}else St=Ct?er(e.stateNode.nextSibling):null;return!0}function Qm(){for(var e=St;e;)e=er(e.nextSibling)}function wo(){St=Ct=null,be=!1}function Mc(e){Zt===null?Zt=[e]:Zt.push(e)}var ay=In.ReactCurrentBatchConfig;function ti(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(x(309));var r=n.stateNode}if(!r)throw Error(x(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var l=o.refs;a===null?delete l[i]:l[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(x(284));if(!n._owner)throw Error(x(290,e))}return e}function Qa(e,t){throw e=Object.prototype.toString.call(t),Error(x(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function kp(e){var t=e._init;return t(e._payload)}function Ym(e){function t(p,f){if(e){var h=p.deletions;h===null?(p.deletions=[f],p.flags|=16):h.push(f)}}function n(p,f){if(!e)return null;for(;f!==null;)t(p,f),f=f.sibling;return null}function r(p,f){for(p=new Map;f!==null;)f.key!==null?p.set(f.key,f):p.set(f.index,f),f=f.sibling;return p}function o(p,f){return p=or(p,f),p.index=0,p.sibling=null,p}function i(p,f,h){return p.index=h,e?(h=p.alternate,h!==null?(h=h.index,h<f?(p.flags|=2,f):h):(p.flags|=2,f)):(p.flags|=1048576,f)}function a(p){return e&&p.alternate===null&&(p.flags|=2),p}function l(p,f,h,$){return f===null||f.tag!==6?(f=xu(h,p.mode,$),f.return=p,f):(f=o(f,h),f.return=p,f)}function s(p,f,h,$){var C=h.type;return C===no?c(p,f,h.props.children,$,h.key):f!==null&&(f.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Un&&kp(C)===f.type)?($=o(f,h.props),$.ref=ti(p,f,h),$.return=p,$):($=ll(h.type,h.key,h.props,null,p.mode,$),$.ref=ti(p,f,h),$.return=p,$)}function u(p,f,h,$){return f===null||f.tag!==4||f.stateNode.containerInfo!==h.containerInfo||f.stateNode.implementation!==h.implementation?(f=wu(h,p.mode,$),f.return=p,f):(f=o(f,h.children||[]),f.return=p,f)}function c(p,f,h,$,C){return f===null||f.tag!==7?(f=Er(h,p.mode,$,C),f.return=p,f):(f=o(f,h),f.return=p,f)}function d(p,f,h){if(typeof f=="string"&&f!==""||typeof f=="number")return f=xu(""+f,p.mode,h),f.return=p,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case Ma:return h=ll(f.type,f.key,f.props,null,p.mode,h),h.ref=ti(p,null,f),h.return=p,h;case to:return f=wu(f,p.mode,h),f.return=p,f;case Un:var $=f._init;return d(p,$(f._payload),h)}if(ai(f)||qo(f))return f=Er(f,p.mode,h,null),f.return=p,f;Qa(p,f)}return null}function m(p,f,h,$){var C=f!==null?f.key:null;if(typeof h=="string"&&h!==""||typeof h=="number")return C!==null?null:l(p,f,""+h,$);if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Ma:return h.key===C?s(p,f,h,$):null;case to:return h.key===C?u(p,f,h,$):null;case Un:return C=h._init,m(p,f,C(h._payload),$)}if(ai(h)||qo(h))return C!==null?null:c(p,f,h,$,null);Qa(p,h)}return null}function g(p,f,h,$,C){if(typeof $=="string"&&$!==""||typeof $=="number")return p=p.get(h)||null,l(f,p,""+$,C);if(typeof $=="object"&&$!==null){switch($.$$typeof){case Ma:return p=p.get($.key===null?h:$.key)||null,s(f,p,$,C);case to:return p=p.get($.key===null?h:$.key)||null,u(f,p,$,C);case Un:var E=$._init;return g(p,f,h,E($._payload),C)}if(ai($)||qo($))return p=p.get(h)||null,c(f,p,$,C,null);Qa(f,$)}return null}function y(p,f,h,$){for(var C=null,E=null,P=f,N=f=0,M=null;P!==null&&N<h.length;N++){P.index>N?(M=P,P=null):M=P.sibling;var F=m(p,P,h[N],$);if(F===null){P===null&&(P=M);break}e&&P&&F.alternate===null&&t(p,P),f=i(F,f,N),E===null?C=F:E.sibling=F,E=F,P=M}if(N===h.length)return n(p,P),be&&vr(p,N),C;if(P===null){for(;N<h.length;N++)P=d(p,h[N],$),P!==null&&(f=i(P,f,N),E===null?C=P:E.sibling=P,E=P);return be&&vr(p,N),C}for(P=r(p,P);N<h.length;N++)M=g(P,p,N,h[N],$),M!==null&&(e&&M.alternate!==null&&P.delete(M.key===null?N:M.key),f=i(M,f,N),E===null?C=M:E.sibling=M,E=M);return e&&P.forEach(function(j){return t(p,j)}),be&&vr(p,N),C}function b(p,f,h,$){var C=qo(h);if(typeof C!="function")throw Error(x(150));if(h=C.call(h),h==null)throw Error(x(151));for(var E=C=null,P=f,N=f=0,M=null,F=h.next();P!==null&&!F.done;N++,F=h.next()){P.index>N?(M=P,P=null):M=P.sibling;var j=m(p,P,F.value,$);if(j===null){P===null&&(P=M);break}e&&P&&j.alternate===null&&t(p,P),f=i(j,f,N),E===null?C=j:E.sibling=j,E=j,P=M}if(F.done)return n(p,P),be&&vr(p,N),C;if(P===null){for(;!F.done;N++,F=h.next())F=d(p,F.value,$),F!==null&&(f=i(F,f,N),E===null?C=F:E.sibling=F,E=F);return be&&vr(p,N),C}for(P=r(p,P);!F.done;N++,F=h.next())F=g(P,p,N,F.value,$),F!==null&&(e&&F.alternate!==null&&P.delete(F.key===null?N:F.key),f=i(F,f,N),E===null?C=F:E.sibling=F,E=F);return e&&P.forEach(function(O){return t(p,O)}),be&&vr(p,N),C}function R(p,f,h,$){if(typeof h=="object"&&h!==null&&h.type===no&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case Ma:e:{for(var C=h.key,E=f;E!==null;){if(E.key===C){if(C=h.type,C===no){if(E.tag===7){n(p,E.sibling),f=o(E,h.props.children),f.return=p,p=f;break e}}else if(E.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Un&&kp(C)===E.type){n(p,E.sibling),f=o(E,h.props),f.ref=ti(p,E,h),f.return=p,p=f;break e}n(p,E);break}else t(p,E);E=E.sibling}h.type===no?(f=Er(h.props.children,p.mode,$,h.key),f.return=p,p=f):($=ll(h.type,h.key,h.props,null,p.mode,$),$.ref=ti(p,f,h),$.return=p,p=$)}return a(p);case to:e:{for(E=h.key;f!==null;){if(f.key===E)if(f.tag===4&&f.stateNode.containerInfo===h.containerInfo&&f.stateNode.implementation===h.implementation){n(p,f.sibling),f=o(f,h.children||[]),f.return=p,p=f;break e}else{n(p,f);break}else t(p,f);f=f.sibling}f=wu(h,p.mode,$),f.return=p,p=f}return a(p);case Un:return E=h._init,R(p,f,E(h._payload),$)}if(ai(h))return y(p,f,h,$);if(qo(h))return b(p,f,h,$);Qa(p,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,f!==null&&f.tag===6?(n(p,f.sibling),f=o(f,h),f.return=p,p=f):(n(p,f),f=xu(h,p.mode,$),f.return=p,p=f),a(p)):n(p,f)}return R}var So=Ym(!0),Xm=Ym(!1),xl=sr(null),wl=null,co=null,Ic=null;function Dc(){Ic=co=wl=null}function Fc(e){var t=xl.current;me(xl),e._currentValue=t}function Zu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function bo(e,t){wl=e,Ic=co=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(ht=!0),e.firstContext=null)}function Ht(e){var t=e._currentValue;if(Ic!==e)if(e={context:e,memoizedValue:t,next:null},co===null){if(wl===null)throw Error(x(308));co=e,wl.dependencies={lanes:0,firstContext:e}}else co=co.next=e;return t}var Sr=null;function Kc(e){Sr===null?Sr=[e]:Sr.push(e)}function qm(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Kc(t)):(n.next=o.next,o.next=n),t.interleaved=n,Rn(e,r)}function Rn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var jn=!1;function Oc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Zm(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Pn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function tr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(J&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Rn(e,n)}return o=r.interleaved,o===null?(t.next=t,Kc(r)):(t.next=o.next,o.next=t),r.interleaved=t,Rn(e,n)}function tl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Sc(e,n)}}function Ep(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Sl(e,t,n,r){var o=e.updateQueue;jn=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var s=l,u=s.next;s.next=null,a===null?i=u:a.next=u,a=s;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==a&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(i!==null){var d=o.baseState;a=0,c=u=s=null,l=i;do{var m=l.lane,g=l.eventTime;if((r&m)===m){c!==null&&(c=c.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=e,b=l;switch(m=t,g=n,b.tag){case 1:if(y=b.payload,typeof y=="function"){d=y.call(g,d,m);break e}d=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=b.payload,m=typeof y=="function"?y.call(g,d,m):y,m==null)break e;d=Se({},d,m);break e;case 2:jn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[l]:m.push(l))}else g={eventTime:g,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=g,s=d):c=c.next=g,a|=m;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;m=l,l=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(!0);if(c===null&&(s=d),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Lr|=a,e.lanes=a,e.memoizedState=d}}function Tp(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(x(191,o));o.call(r)}}}var Oi={},gn=sr(Oi),Pi=sr(Oi),Li=sr(Oi);function Cr(e){if(e===Oi)throw Error(x(174));return e}function Ac(e,t){switch(de(Li,t),de(Pi,e),de(gn,Oi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ru(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ru(t,e)}me(gn),de(gn,t)}function Co(){me(gn),me(Pi),me(Li)}function Jm(e){Cr(Li.current);var t=Cr(gn.current),n=Ru(t,e.type);t!==n&&(de(Pi,e),de(gn,n))}function Bc(e){Pi.current===e&&(me(gn),me(Pi))}var xe=sr(0);function Cl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var hu=[];function zc(){for(var e=0;e<hu.length;e++)hu[e]._workInProgressVersionPrimary=null;hu.length=0}var nl=In.ReactCurrentDispatcher,gu=In.ReactCurrentBatchConfig,Pr=0,we=null,Ie=null,Fe=null,kl=!1,mi=!1,Ni=0,ly=0;function je(){throw Error(x(321))}function Hc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!tn(e[n],t[n]))return!1;return!0}function Vc(e,t,n,r,o,i){if(Pr=i,we=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,nl.current=e===null||e.memoizedState===null?dy:fy,e=n(r,o),mi){i=0;do{if(mi=!1,Ni=0,25<=i)throw Error(x(301));i+=1,Fe=Ie=null,t.updateQueue=null,nl.current=py,e=n(r,o)}while(mi)}if(nl.current=El,t=Ie!==null&&Ie.next!==null,Pr=0,Fe=Ie=we=null,kl=!1,t)throw Error(x(300));return e}function Wc(){var e=Ni!==0;return Ni=0,e}function pn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Fe===null?we.memoizedState=Fe=e:Fe=Fe.next=e,Fe}function Vt(){if(Ie===null){var e=we.alternate;e=e!==null?e.memoizedState:null}else e=Ie.next;var t=Fe===null?we.memoizedState:Fe.next;if(t!==null)Fe=t,Ie=e;else{if(e===null)throw Error(x(310));Ie=e,e={memoizedState:Ie.memoizedState,baseState:Ie.baseState,baseQueue:Ie.baseQueue,queue:Ie.queue,next:null},Fe===null?we.memoizedState=Fe=e:Fe=Fe.next=e}return Fe}function Ri(e,t){return typeof t=="function"?t(e):t}function $u(e){var t=Vt(),n=t.queue;if(n===null)throw Error(x(311));n.lastRenderedReducer=e;var r=Ie,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var l=a=null,s=null,u=i;do{var c=u.lane;if((Pr&c)===c)s!==null&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};s===null?(l=s=d,a=r):s=s.next=d,we.lanes|=c,Lr|=c}u=u.next}while(u!==null&&u!==i);s===null?a=r:s.next=l,tn(r,t.memoizedState)||(ht=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,we.lanes|=i,Lr|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function bu(e){var t=Vt(),n=t.queue;if(n===null)throw Error(x(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var a=o=o.next;do i=e(i,a.action),a=a.next;while(a!==o);tn(i,t.memoizedState)||(ht=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function e0(){}function t0(e,t){var n=we,r=Vt(),o=t(),i=!tn(r.memoizedState,o);if(i&&(r.memoizedState=o,ht=!0),r=r.queue,Uc(o0.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Fe!==null&&Fe.memoizedState.tag&1){if(n.flags|=2048,Mi(9,r0.bind(null,n,r,o,t),void 0,null),Ke===null)throw Error(x(349));(Pr&30)!==0||n0(n,t,o)}return o}function n0(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=we.updateQueue,t===null?(t={lastEffect:null,stores:null},we.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function r0(e,t,n,r){t.value=n,t.getSnapshot=r,i0(t)&&a0(e)}function o0(e,t,n){return n(function(){i0(t)&&a0(e)})}function i0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!tn(e,n)}catch{return!0}}function a0(e){var t=Rn(e,1);t!==null&&en(t,e,1,-1)}function _p(e){var t=pn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ri,lastRenderedState:e},t.queue=e,e=e.dispatch=cy.bind(null,we,e),[t.memoizedState,e]}function Mi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=we.updateQueue,t===null?(t={lastEffect:null,stores:null},we.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function l0(){return Vt().memoizedState}function rl(e,t,n,r){var o=pn();we.flags|=e,o.memoizedState=Mi(1|t,n,void 0,r===void 0?null:r)}function Ol(e,t,n,r){var o=Vt();r=r===void 0?null:r;var i=void 0;if(Ie!==null){var a=Ie.memoizedState;if(i=a.destroy,r!==null&&Hc(r,a.deps)){o.memoizedState=Mi(t,n,i,r);return}}we.flags|=e,o.memoizedState=Mi(1|t,n,i,r)}function Pp(e,t){return rl(8390656,8,e,t)}function Uc(e,t){return Ol(2048,8,e,t)}function s0(e,t){return Ol(4,2,e,t)}function u0(e,t){return Ol(4,4,e,t)}function c0(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function d0(e,t,n){return n=n!=null?n.concat([e]):null,Ol(4,4,c0.bind(null,t,e),n)}function jc(){}function f0(e,t){var n=Vt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Hc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function p0(e,t){var n=Vt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Hc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function m0(e,t,n){return(Pr&21)===0?(e.baseState&&(e.baseState=!1,ht=!0),e.memoizedState=n):(tn(n,t)||(n=ym(),we.lanes|=n,Lr|=n,e.baseState=!0),t)}function sy(e,t){var n=ae;ae=n!==0&&4>n?n:4,e(!0);var r=gu.transition;gu.transition={};try{e(!1),t()}finally{ae=n,gu.transition=r}}function h0(){return Vt().memoizedState}function uy(e,t,n){var r=rr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},g0(e))$0(t,n);else if(n=qm(e,t,n,r),n!==null){var o=tt();en(n,e,r,o),b0(n,t,r)}}function cy(e,t,n){var r=rr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(g0(e))$0(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,tn(l,a)){var s=t.interleaved;s===null?(o.next=o,Kc(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=qm(e,t,o,r),n!==null&&(o=tt(),en(n,e,r,o),b0(n,t,r))}}function g0(e){var t=e.alternate;return e===we||t!==null&&t===we}function $0(e,t){mi=kl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function b0(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Sc(e,n)}}var El={readContext:Ht,useCallback:je,useContext:je,useEffect:je,useImperativeHandle:je,useInsertionEffect:je,useLayoutEffect:je,useMemo:je,useReducer:je,useRef:je,useState:je,useDebugValue:je,useDeferredValue:je,useTransition:je,useMutableSource:je,useSyncExternalStore:je,useId:je,unstable_isNewReconciler:!1},dy={readContext:Ht,useCallback:function(e,t){return pn().memoizedState=[e,t===void 0?null:t],e},useContext:Ht,useEffect:Pp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,rl(4194308,4,c0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return rl(4194308,4,e,t)},useInsertionEffect:function(e,t){return rl(4,2,e,t)},useMemo:function(e,t){var n=pn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=pn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=uy.bind(null,we,e),[r.memoizedState,e]},useRef:function(e){var t=pn();return e={current:e},t.memoizedState=e},useState:_p,useDebugValue:jc,useDeferredValue:function(e){return pn().memoizedState=e},useTransition:function(){var e=_p(!1),t=e[0];return e=sy.bind(null,e[1]),pn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=we,o=pn();if(be){if(n===void 0)throw Error(x(407));n=n()}else{if(n=t(),Ke===null)throw Error(x(349));(Pr&30)!==0||n0(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Pp(o0.bind(null,r,i,e),[e]),r.flags|=2048,Mi(9,r0.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=pn(),t=Ke.identifierPrefix;if(be){var n=_n,r=Tn;n=(r&~(1<<32-Jt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ni++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=ly++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},fy={readContext:Ht,useCallback:f0,useContext:Ht,useEffect:Uc,useImperativeHandle:d0,useInsertionEffect:s0,useLayoutEffect:u0,useMemo:p0,useReducer:$u,useRef:l0,useState:function(){return $u(Ri)},useDebugValue:jc,useDeferredValue:function(e){var t=Vt();return m0(t,Ie.memoizedState,e)},useTransition:function(){var e=$u(Ri)[0],t=Vt().memoizedState;return[e,t]},useMutableSource:e0,useSyncExternalStore:t0,useId:h0,unstable_isNewReconciler:!1},py={readContext:Ht,useCallback:f0,useContext:Ht,useEffect:Uc,useImperativeHandle:d0,useInsertionEffect:s0,useLayoutEffect:u0,useMemo:p0,useReducer:bu,useRef:l0,useState:function(){return bu(Ri)},useDebugValue:jc,useDeferredValue:function(e){var t=Vt();return Ie===null?t.memoizedState=e:m0(t,Ie.memoizedState,e)},useTransition:function(){var e=bu(Ri)[0],t=Vt().memoizedState;return[e,t]},useMutableSource:e0,useSyncExternalStore:t0,useId:h0,unstable_isNewReconciler:!1};function Xt(e,t){if(e&&e.defaultProps){t=Se({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ju(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Se({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Al={isMounted:function(e){return(e=e._reactInternals)?Mr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tt(),o=rr(e),i=Pn(r,o);i.payload=t,n!=null&&(i.callback=n),t=tr(e,i,o),t!==null&&(en(t,e,o,r),tl(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tt(),o=rr(e),i=Pn(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=tr(e,i,o),t!==null&&(en(t,e,o,r),tl(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tt(),r=rr(e),o=Pn(n,r);o.tag=2,t!=null&&(o.callback=t),t=tr(e,o,r),t!==null&&(en(t,e,r,n),tl(t,e,r))}};function Lp(e,t,n,r,o,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,a):t.prototype&&t.prototype.isPureReactComponent?!ki(n,r)||!ki(o,i):!0}function y0(e,t,n){var r=!1,o=ar,i=t.contextType;return typeof i=="object"&&i!==null?i=Ht(i):(o=$t(t)?Tr:Ye.current,r=t.contextTypes,i=(r=r!=null)?xo(e,o):ar),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Al,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Np(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Al.enqueueReplaceState(t,t.state,null)}function ec(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Oc(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Ht(i):(i=$t(t)?Tr:Ye.current,o.context=xo(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Ju(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Al.enqueueReplaceState(o,o.state,null),Sl(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function ko(e,t){try{var n="",r=t;do n+=V$(r),r=r.return;while(r);var o=n}catch(i){o=`
|
|
5
|
+
`+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{ou=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?si(e):""}function W$(e){switch(e.tag){case 5:return si(e.type);case 16:return si("Lazy");case 13:return si("Suspense");case 19:return si("SuspenseList");case 0:case 2:case 15:return e=iu(e.type,!1),e;case 11:return e=iu(e.type.render,!1),e;case 1:return e=iu(e.type,!0),e;default:return""}}function Pu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ro:return"Fragment";case no:return"Portal";case Eu:return"Profiler";case vc:return"StrictMode";case Tu:return"Suspense";case _u:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Jp:return(e.displayName||"Context")+".Consumer";case Zp:return(e._context.displayName||"Context")+".Provider";case xc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case wc:return t=e.displayName||null,t!==null?t:Pu(e.type)||"Memo";case Un:t=e._payload,e=e._init;try{return Pu(e(t))}catch{}}return null}function U$(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Pu(t);case 8:return t===vc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ir(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function tm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function j$(e){var t=tm(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Fa(e){e._valueTracker||(e._valueTracker=j$(e))}function nm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=tm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function cl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Lu(e,t){var n=t.checked;return Se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Qf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ir(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function rm(e,t){t=t.checked,t!=null&&yc(e,"checked",t,!1)}function Nu(e,t){rm(e,t);var n=ir(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ru(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ru(e,t.type,ir(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Yf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ru(e,t,n){(t!=="number"||cl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ui=Array.isArray;function ho(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ir(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Mu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(x(91));return Se({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Xf(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(x(92));if(ui(n)){if(1<n.length)throw Error(x(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ir(n)}}function om(e,t){var n=ir(t.value),r=ir(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function qf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function im(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Iu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?im(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ka,am=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ka=Ka||document.createElement("div"),Ka.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ka.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function wi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var fi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},G$=["Webkit","ms","Moz","O"];Object.keys(fi).forEach(function(e){G$.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fi[t]=fi[e]})});function lm(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||fi.hasOwnProperty(e)&&fi[e]?(""+t).trim():t+"px"}function sm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=lm(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Q$=Se({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Du(e,t){if(t){if(Q$[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(x(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(x(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(x(61))}if(t.style!=null&&typeof t.style!="object")throw Error(x(62))}}function Fu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ku=null;function Sc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ou=null,go=null,$o=null;function Zf(e){if(e=zi(e)){if(typeof Ou!="function")throw Error(x(280));var t=e.stateNode;t&&(t=Ol(t),Ou(e.stateNode,e.type,t))}}function um(e){go?$o?$o.push(e):$o=[e]:go=e}function cm(){if(go){var e=go,t=$o;if($o=go=null,Zf(e),t)for(e=0;e<t.length;e++)Zf(t[e])}}function dm(e,t){return e(t)}function fm(){}var au=!1;function pm(e,t,n){if(au)return e(t,n);au=!0;try{return dm(e,t,n)}finally{au=!1,(go!==null||$o!==null)&&(fm(),cm())}}function Si(e,t){var n=e.stateNode;if(n===null)return null;var r=Ol(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(x(231,t,typeof n));return n}var Au=!1;if(Ln)try{eo={},Object.defineProperty(eo,"passive",{get:function(){Au=!0}}),window.addEventListener("test",eo,eo),window.removeEventListener("test",eo,eo)}catch{Au=!1}var eo;function Y$(e,t,n,r,o,i,a,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var pi=!1,dl=null,fl=!1,zu=null,X$={onError:function(e){pi=!0,dl=e}};function q$(e,t,n,r,o,i,a,l,s){pi=!1,dl=null,Y$.apply(X$,arguments)}function Z$(e,t,n,r,o,i,a,l,s){if(q$.apply(this,arguments),pi){if(pi){var u=dl;pi=!1,dl=null}else throw Error(x(198));fl||(fl=!0,zu=u)}}function Mr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function mm(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Jf(e){if(Mr(e)!==e)throw Error(x(188))}function J$(e){var t=e.alternate;if(!t){if(t=Mr(e),t===null)throw Error(x(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Jf(o),e;if(i===r)return Jf(o),t;i=i.sibling}throw Error(x(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a)throw Error(x(189))}}if(n.alternate!==r)throw Error(x(190))}if(n.tag!==3)throw Error(x(188));return n.stateNode.current===n?e:t}function hm(e){return e=J$(e),e!==null?gm(e):null}function gm(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=gm(e);if(t!==null)return t;e=e.sibling}return null}var $m=kt.unstable_scheduleCallback,ep=kt.unstable_cancelCallback,eb=kt.unstable_shouldYield,tb=kt.unstable_requestPaint,Te=kt.unstable_now,nb=kt.unstable_getCurrentPriorityLevel,Cc=kt.unstable_ImmediatePriority,bm=kt.unstable_UserBlockingPriority,pl=kt.unstable_NormalPriority,rb=kt.unstable_LowPriority,ym=kt.unstable_IdlePriority,Il=null,hn=null;function ob(e){if(hn&&typeof hn.onCommitFiberRoot=="function")try{hn.onCommitFiberRoot(Il,e,void 0,(e.current.flags&128)===128)}catch{}}var Jt=Math.clz32?Math.clz32:lb,ib=Math.log,ab=Math.LN2;function lb(e){return e>>>=0,e===0?32:31-(ib(e)/ab|0)|0}var Oa=64,Aa=4194304;function ci(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ml(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~o;l!==0?r=ci(l):(i&=a,i!==0&&(r=ci(i)))}else a=n&~o,a!==0?r=ci(a):i!==0&&(r=ci(i));if(r===0)return 0;if(t!==0&&t!==r&&(t&o)===0&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Jt(t),o=1<<n,r|=e[n],t&=~o;return r}function sb(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ub(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-Jt(i),l=1<<a,s=o[a];s===-1?((l&n)===0||(l&r)!==0)&&(o[a]=sb(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}function Bu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function vm(){var e=Oa;return Oa<<=1,(Oa&4194240)===0&&(Oa=64),e}function lu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Oi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Jt(t),e[t]=n}function cb(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Jt(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function kc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Jt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var ae=0;function xm(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var wm,Ec,Sm,Cm,km,Hu=!1,za=[],qn=null,Zn=null,Jn=null,Ci=new Map,ki=new Map,Gn=[],db="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function tp(e,t){switch(e){case"focusin":case"focusout":qn=null;break;case"dragenter":case"dragleave":Zn=null;break;case"mouseover":case"mouseout":Jn=null;break;case"pointerover":case"pointerout":Ci.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ki.delete(t.pointerId)}}function ti(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=zi(t),t!==null&&Ec(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function fb(e,t,n,r,o){switch(t){case"focusin":return qn=ti(qn,e,t,n,r,o),!0;case"dragenter":return Zn=ti(Zn,e,t,n,r,o),!0;case"mouseover":return Jn=ti(Jn,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Ci.set(i,ti(Ci.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,ki.set(i,ti(ki.get(i)||null,e,t,n,r,o)),!0}return!1}function Em(e){var t=wr(e.target);if(t!==null){var n=Mr(t);if(n!==null){if(t=n.tag,t===13){if(t=mm(n),t!==null){e.blockedOn=t,km(e.priority,function(){Sm(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function el(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Vu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ku=r,n.target.dispatchEvent(r),Ku=null}else return t=zi(n),t!==null&&Ec(t),e.blockedOn=n,!1;t.shift()}return!0}function np(e,t,n){el(e)&&n.delete(t)}function pb(){Hu=!1,qn!==null&&el(qn)&&(qn=null),Zn!==null&&el(Zn)&&(Zn=null),Jn!==null&&el(Jn)&&(Jn=null),Ci.forEach(np),ki.forEach(np)}function ni(e,t){e.blockedOn===t&&(e.blockedOn=null,Hu||(Hu=!0,kt.unstable_scheduleCallback(kt.unstable_NormalPriority,pb)))}function Ei(e){function t(o){return ni(o,e)}if(0<za.length){ni(za[0],e);for(var n=1;n<za.length;n++){var r=za[n];r.blockedOn===e&&(r.blockedOn=null)}}for(qn!==null&&ni(qn,e),Zn!==null&&ni(Zn,e),Jn!==null&&ni(Jn,e),Ci.forEach(t),ki.forEach(t),n=0;n<Gn.length;n++)r=Gn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Gn.length&&(n=Gn[0],n.blockedOn===null);)Em(n),n.blockedOn===null&&Gn.shift()}var bo=In.ReactCurrentBatchConfig,hl=!0;function mb(e,t,n,r){var o=ae,i=bo.transition;bo.transition=null;try{ae=1,Tc(e,t,n,r)}finally{ae=o,bo.transition=i}}function hb(e,t,n,r){var o=ae,i=bo.transition;bo.transition=null;try{ae=4,Tc(e,t,n,r)}finally{ae=o,bo.transition=i}}function Tc(e,t,n,r){if(hl){var o=Vu(e,t,n,r);if(o===null)mu(e,t,r,gl,n),tp(e,r);else if(fb(o,e,t,n,r))r.stopPropagation();else if(tp(e,r),t&4&&-1<db.indexOf(e)){for(;o!==null;){var i=zi(o);if(i!==null&&wm(i),i=Vu(e,t,n,r),i===null&&mu(e,t,r,gl,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else mu(e,t,r,null,n)}}var gl=null;function Vu(e,t,n,r){if(gl=null,e=Sc(r),e=wr(e),e!==null)if(t=Mr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=mm(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return gl=e,null}function Tm(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(nb()){case Cc:return 1;case bm:return 4;case pl:case rb:return 16;case ym:return 536870912;default:return 16}default:return 16}}var Yn=null,_c=null,tl=null;function _m(){if(tl)return tl;var e,t=_c,n=t.length,r,o="value"in Yn?Yn.value:Yn.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===o[i-r];r++);return tl=o.slice(e,1<r?1-r:void 0)}function nl(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ba(){return!0}function rp(){return!1}function Et(e){function t(n,r,o,i,a){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Ba:rp,this.isPropagationStopped=rp,this}return Se(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ba)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ba)},persist:function(){},isPersistent:Ba}),t}var _o={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pc=Et(_o),Ai=Se({},_o,{view:0,detail:0}),gb=Et(Ai),su,uu,ri,Dl=Se({},Ai,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Lc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ri&&(ri&&e.type==="mousemove"?(su=e.screenX-ri.screenX,uu=e.screenY-ri.screenY):uu=su=0,ri=e),su)},movementY:function(e){return"movementY"in e?e.movementY:uu}}),op=Et(Dl),$b=Se({},Dl,{dataTransfer:0}),bb=Et($b),yb=Se({},Ai,{relatedTarget:0}),cu=Et(yb),vb=Se({},_o,{animationName:0,elapsedTime:0,pseudoElement:0}),xb=Et(vb),wb=Se({},_o,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Sb=Et(wb),Cb=Se({},_o,{data:0}),ip=Et(Cb),kb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Eb={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Tb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _b(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Tb[e])?!!t[e]:!1}function Lc(){return _b}var Pb=Se({},Ai,{key:function(e){if(e.key){var t=kb[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=nl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Eb[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Lc,charCode:function(e){return e.type==="keypress"?nl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?nl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Lb=Et(Pb),Nb=Se({},Dl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ap=Et(Nb),Rb=Se({},Ai,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Lc}),Mb=Et(Rb),Ib=Se({},_o,{propertyName:0,elapsedTime:0,pseudoElement:0}),Db=Et(Ib),Fb=Se({},Dl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Kb=Et(Fb),Ob=[9,13,27,32],Nc=Ln&&"CompositionEvent"in window,mi=null;Ln&&"documentMode"in document&&(mi=document.documentMode);var Ab=Ln&&"TextEvent"in window&&!mi,Pm=Ln&&(!Nc||mi&&8<mi&&11>=mi),lp=" ",sp=!1;function Lm(e,t){switch(e){case"keyup":return Ob.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Nm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var oo=!1;function zb(e,t){switch(e){case"compositionend":return Nm(t);case"keypress":return t.which!==32?null:(sp=!0,lp);case"textInput":return e=t.data,e===lp&&sp?null:e;default:return null}}function Bb(e,t){if(oo)return e==="compositionend"||!Nc&&Lm(e,t)?(e=_m(),tl=_c=Yn=null,oo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Pm&&t.locale!=="ko"?null:t.data;default:return null}}var Hb={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function up(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Hb[e.type]:t==="textarea"}function Rm(e,t,n,r){um(r),t=$l(t,"onChange"),0<t.length&&(n=new Pc("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var hi=null,Ti=null;function Vb(e){Vm(e,0)}function Fl(e){var t=lo(e);if(nm(t))return e}function Wb(e,t){if(e==="change")return t}var Mm=!1;Ln&&(Ln?(Va="oninput"in document,Va||(du=document.createElement("div"),du.setAttribute("oninput","return;"),Va=typeof du.oninput=="function"),Ha=Va):Ha=!1,Mm=Ha&&(!document.documentMode||9<document.documentMode));var Ha,Va,du;function cp(){hi&&(hi.detachEvent("onpropertychange",Im),Ti=hi=null)}function Im(e){if(e.propertyName==="value"&&Fl(Ti)){var t=[];Rm(t,Ti,e,Sc(e)),pm(Vb,t)}}function Ub(e,t,n){e==="focusin"?(cp(),hi=t,Ti=n,hi.attachEvent("onpropertychange",Im)):e==="focusout"&&cp()}function jb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Fl(Ti)}function Gb(e,t){if(e==="click")return Fl(t)}function Qb(e,t){if(e==="input"||e==="change")return Fl(t)}function Yb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tn=typeof Object.is=="function"?Object.is:Yb;function _i(e,t){if(tn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!ku.call(t,o)||!tn(e[o],t[o]))return!1}return!0}function dp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fp(e,t){var n=dp(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=dp(n)}}function Dm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Dm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Fm(){for(var e=window,t=cl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=cl(e.document)}return t}function Rc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Xb(e){var t=Fm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Dm(n.ownerDocument.documentElement,n)){if(r!==null&&Rc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=fp(n,i);var a=fp(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var qb=Ln&&"documentMode"in document&&11>=document.documentMode,io=null,Wu=null,gi=null,Uu=!1;function pp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Uu||io==null||io!==cl(r)||(r=io,"selectionStart"in r&&Rc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),gi&&_i(gi,r)||(gi=r,r=$l(Wu,"onSelect"),0<r.length&&(t=new Pc("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=io)))}function Wa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ao={animationend:Wa("Animation","AnimationEnd"),animationiteration:Wa("Animation","AnimationIteration"),animationstart:Wa("Animation","AnimationStart"),transitionend:Wa("Transition","TransitionEnd")},fu={},Km={};Ln&&(Km=document.createElement("div").style,"AnimationEvent"in window||(delete ao.animationend.animation,delete ao.animationiteration.animation,delete ao.animationstart.animation),"TransitionEvent"in window||delete ao.transitionend.transition);function Kl(e){if(fu[e])return fu[e];if(!ao[e])return e;var t=ao[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Km)return fu[e]=t[n];return e}var Om=Kl("animationend"),Am=Kl("animationiteration"),zm=Kl("animationstart"),Bm=Kl("transitionend"),Hm=new Map,mp="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function lr(e,t){Hm.set(e,t),Rr(t,[e])}for(Ua=0;Ua<mp.length;Ua++)ja=mp[Ua],hp=ja.toLowerCase(),gp=ja[0].toUpperCase()+ja.slice(1),lr(hp,"on"+gp);var ja,hp,gp,Ua;lr(Om,"onAnimationEnd");lr(Am,"onAnimationIteration");lr(zm,"onAnimationStart");lr("dblclick","onDoubleClick");lr("focusin","onFocus");lr("focusout","onBlur");lr(Bm,"onTransitionEnd");xo("onMouseEnter",["mouseout","mouseover"]);xo("onMouseLeave",["mouseout","mouseover"]);xo("onPointerEnter",["pointerout","pointerover"]);xo("onPointerLeave",["pointerout","pointerover"]);Rr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Rr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Rr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Rr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Rr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Rr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var di="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Zb=new Set("cancel close invalid load scroll toggle".split(" ").concat(di));function $p(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Z$(r,t,void 0,e),e.currentTarget=null}function Vm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==i&&o.isPropagationStopped())break e;$p(o,l,u),i=s}else for(a=0;a<r.length;a++){if(l=r[a],s=l.instance,u=l.currentTarget,l=l.listener,s!==i&&o.isPropagationStopped())break e;$p(o,l,u),i=s}}}if(fl)throw e=zu,fl=!1,zu=null,e}function pe(e,t){var n=t[Xu];n===void 0&&(n=t[Xu]=new Set);var r=e+"__bubble";n.has(r)||(Wm(t,e,2,!1),n.add(r))}function pu(e,t,n){var r=0;t&&(r|=4),Wm(n,e,r,t)}var Ga="_reactListening"+Math.random().toString(36).slice(2);function Pi(e){if(!e[Ga]){e[Ga]=!0,qp.forEach(function(n){n!=="selectionchange"&&(Zb.has(n)||pu(n,!1,e),pu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ga]||(t[Ga]=!0,pu("selectionchange",!1,t))}}function Wm(e,t,n,r){switch(Tm(t)){case 1:var o=mb;break;case 4:o=hb;break;default:o=Tc}n=o.bind(null,t,n,e),o=void 0,!Au||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function mu(e,t,n,r,o){var i=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var l=r.stateNode.containerInfo;if(l===o||l.nodeType===8&&l.parentNode===o)break;if(a===4)for(a=r.return;a!==null;){var s=a.tag;if((s===3||s===4)&&(s=a.stateNode.containerInfo,s===o||s.nodeType===8&&s.parentNode===o))return;a=a.return}for(;l!==null;){if(a=wr(l),a===null)return;if(s=a.tag,s===5||s===6){r=i=a;continue e}l=l.parentNode}}r=r.return}pm(function(){var u=i,c=Sc(n),d=[];e:{var p=Hm.get(e);if(p!==void 0){var g=Pc,y=e;switch(e){case"keypress":if(nl(n)===0)break e;case"keydown":case"keyup":g=Lb;break;case"focusin":y="focus",g=cu;break;case"focusout":y="blur",g=cu;break;case"beforeblur":case"afterblur":g=cu;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=op;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=bb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=Mb;break;case Om:case Am:case zm:g=xb;break;case Bm:g=Db;break;case"scroll":g=gb;break;case"wheel":g=Kb;break;case"copy":case"cut":case"paste":g=Sb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=ap}var b=(t&4)!==0,D=!b&&e==="scroll",m=b?p!==null?p+"Capture":null:p;b=[];for(var f=u,h;f!==null;){h=f;var $=h.stateNode;if(h.tag===5&&$!==null&&(h=$,m!==null&&($=Si(f,m),$!=null&&b.push(Li(f,$,h)))),D)break;f=f.return}0<b.length&&(p=new g(p,y,null,n,c),d.push({event:p,listeners:b}))}}if((t&7)===0){e:{if(p=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",p&&n!==Ku&&(y=n.relatedTarget||n.fromElement)&&(wr(y)||y[Nn]))break e;if((g||p)&&(p=c.window===c?c:(p=c.ownerDocument)?p.defaultView||p.parentWindow:window,g?(y=n.relatedTarget||n.toElement,g=u,y=y?wr(y):null,y!==null&&(D=Mr(y),y!==D||y.tag!==5&&y.tag!==6)&&(y=null)):(g=null,y=u),g!==y)){if(b=op,$="onMouseLeave",m="onMouseEnter",f="mouse",(e==="pointerout"||e==="pointerover")&&(b=ap,$="onPointerLeave",m="onPointerEnter",f="pointer"),D=g==null?p:lo(g),h=y==null?p:lo(y),p=new b($,f+"leave",g,n,c),p.target=D,p.relatedTarget=h,$=null,wr(c)===u&&(b=new b(m,f+"enter",y,n,c),b.target=h,b.relatedTarget=D,$=b),D=$,g&&y)t:{for(b=g,m=y,f=0,h=b;h;h=to(h))f++;for(h=0,$=m;$;$=to($))h++;for(;0<f-h;)b=to(b),f--;for(;0<h-f;)m=to(m),h--;for(;f--;){if(b===m||m!==null&&b===m.alternate)break t;b=to(b),m=to(m)}b=null}else b=null;g!==null&&bp(d,p,g,b,!1),y!==null&&D!==null&&bp(d,D,y,b,!0)}}e:{if(p=u?lo(u):window,g=p.nodeName&&p.nodeName.toLowerCase(),g==="select"||g==="input"&&p.type==="file")var C=Wb;else if(up(p))if(Mm)C=Qb;else{C=jb;var E=Ub}else(g=p.nodeName)&&g.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(C=Gb);if(C&&(C=C(e,u))){Rm(d,C,n,c);break e}E&&E(e,p,u),e==="focusout"&&(E=p._wrapperState)&&E.controlled&&p.type==="number"&&Ru(p,"number",p.value)}switch(E=u?lo(u):window,e){case"focusin":(up(E)||E.contentEditable==="true")&&(io=E,Wu=u,gi=null);break;case"focusout":gi=Wu=io=null;break;case"mousedown":Uu=!0;break;case"contextmenu":case"mouseup":case"dragend":Uu=!1,pp(d,n,c);break;case"selectionchange":if(qb)break;case"keydown":case"keyup":pp(d,n,c)}var P;if(Nc)e:{switch(e){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else oo?Lm(e,n)&&(N="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&(Pm&&n.locale!=="ko"&&(oo||N!=="onCompositionStart"?N==="onCompositionEnd"&&oo&&(P=_m()):(Yn=c,_c="value"in Yn?Yn.value:Yn.textContent,oo=!0)),E=$l(u,N),0<E.length&&(N=new ip(N,e,null,n,c),d.push({event:N,listeners:E}),P?N.data=P:(P=Nm(n),P!==null&&(N.data=P)))),(P=Ab?zb(e,n):Bb(e,n))&&(u=$l(u,"onBeforeInput"),0<u.length&&(c=new ip("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=P))}Vm(d,t)})}function Li(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $l(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Si(e,n),i!=null&&r.unshift(Li(e,i,o)),i=Si(e,t),i!=null&&r.push(Li(e,i,o))),e=e.return}return r}function to(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function bp(e,t,n,r,o){for(var i=t._reactName,a=[];n!==null&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(s!==null&&s===r)break;l.tag===5&&u!==null&&(l=u,o?(s=Si(n,i),s!=null&&a.unshift(Li(n,s,l))):o||(s=Si(n,i),s!=null&&a.push(Li(n,s,l)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var Jb=/\r\n?/g,ey=/\u0000|\uFFFD/g;function yp(e){return(typeof e=="string"?e:""+e).replace(Jb,`
|
|
6
|
+
`).replace(ey,"")}function Qa(e,t,n){if(t=yp(t),yp(e)!==t&&n)throw Error(x(425))}function bl(){}var ju=null,Gu=null;function Qu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Yu=typeof setTimeout=="function"?setTimeout:void 0,ty=typeof clearTimeout=="function"?clearTimeout:void 0,vp=typeof Promise=="function"?Promise:void 0,ny=typeof queueMicrotask=="function"?queueMicrotask:typeof vp<"u"?function(e){return vp.resolve(null).then(e).catch(ry)}:Yu;function ry(e){setTimeout(function(){throw e})}function hu(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Ei(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Ei(t)}function er(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function xp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Po=Math.random().toString(36).slice(2),mn="__reactFiber$"+Po,Ni="__reactProps$"+Po,Nn="__reactContainer$"+Po,Xu="__reactEvents$"+Po,oy="__reactListeners$"+Po,iy="__reactHandles$"+Po;function wr(e){var t=e[mn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Nn]||n[mn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=xp(e);e!==null;){if(n=e[mn])return n;e=xp(e)}return t}e=n,n=e.parentNode}return null}function zi(e){return e=e[mn]||e[Nn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function lo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(x(33))}function Ol(e){return e[Ni]||null}var qu=[],so=-1;function sr(e){return{current:e}}function me(e){0>so||(e.current=qu[so],qu[so]=null,so--)}function de(e,t){so++,qu[so]=e.current,e.current=t}var ar={},Ye=sr(ar),gt=sr(!1),Tr=ar;function wo(e,t){var n=e.type.contextTypes;if(!n)return ar;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function $t(e){return e=e.childContextTypes,e!=null}function yl(){me(gt),me(Ye)}function wp(e,t,n){if(Ye.current!==ar)throw Error(x(168));de(Ye,t),de(gt,n)}function Um(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(x(108,U$(e)||"Unknown",o));return Se({},n,r)}function vl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ar,Tr=Ye.current,de(Ye,e),de(gt,gt.current),!0}function Sp(e,t,n){var r=e.stateNode;if(!r)throw Error(x(169));n?(e=Um(e,t,Tr),r.__reactInternalMemoizedMergedChildContext=e,me(gt),me(Ye),de(Ye,e)):me(gt),de(gt,n)}var En=null,Al=!1,gu=!1;function jm(e){En===null?En=[e]:En.push(e)}function ay(e){Al=!0,jm(e)}function ur(){if(!gu&&En!==null){gu=!0;var e=0,t=ae;try{var n=En;for(ae=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}En=null,Al=!1}catch(o){throw En!==null&&(En=En.slice(e+1)),$m(Cc,ur),o}finally{ae=t,gu=!1}}return null}var uo=[],co=0,xl=null,wl=0,Ot=[],At=0,_r=null,Tn=1,_n="";function vr(e,t){uo[co++]=wl,uo[co++]=xl,xl=e,wl=t}function Gm(e,t,n){Ot[At++]=Tn,Ot[At++]=_n,Ot[At++]=_r,_r=e;var r=Tn;e=_n;var o=32-Jt(r)-1;r&=~(1<<o),n+=1;var i=32-Jt(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Tn=1<<32-Jt(t)+o|n<<o|r,_n=i+e}else Tn=1<<i|n<<o|r,_n=e}function Mc(e){e.return!==null&&(vr(e,1),Gm(e,1,0))}function Ic(e){for(;e===xl;)xl=uo[--co],uo[co]=null,wl=uo[--co],uo[co]=null;for(;e===_r;)_r=Ot[--At],Ot[At]=null,_n=Ot[--At],Ot[At]=null,Tn=Ot[--At],Ot[At]=null}var Ct=null,St=null,be=!1,Zt=null;function Qm(e,t){var n=zt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Cp(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ct=e,St=er(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ct=e,St=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=_r!==null?{id:Tn,overflow:_n}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=zt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ct=e,St=null,!0):!1;default:return!1}}function Zu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ju(e){if(be){var t=St;if(t){var n=t;if(!Cp(e,t)){if(Zu(e))throw Error(x(418));t=er(n.nextSibling);var r=Ct;t&&Cp(e,t)?Qm(r,n):(e.flags=e.flags&-4097|2,be=!1,Ct=e)}}else{if(Zu(e))throw Error(x(418));e.flags=e.flags&-4097|2,be=!1,Ct=e}}}function kp(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ct=e}function Ya(e){if(e!==Ct)return!1;if(!be)return kp(e),be=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Qu(e.type,e.memoizedProps)),t&&(t=St)){if(Zu(e))throw Ym(),Error(x(418));for(;t;)Qm(e,t),t=er(t.nextSibling)}if(kp(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(x(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){St=er(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}St=null}}else St=Ct?er(e.stateNode.nextSibling):null;return!0}function Ym(){for(var e=St;e;)e=er(e.nextSibling)}function So(){St=Ct=null,be=!1}function Dc(e){Zt===null?Zt=[e]:Zt.push(e)}var ly=In.ReactCurrentBatchConfig;function oi(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(x(309));var r=n.stateNode}if(!r)throw Error(x(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var l=o.refs;a===null?delete l[i]:l[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(x(284));if(!n._owner)throw Error(x(290,e))}return e}function Xa(e,t){throw e=Object.prototype.toString.call(t),Error(x(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ep(e){var t=e._init;return t(e._payload)}function Xm(e){function t(m,f){if(e){var h=m.deletions;h===null?(m.deletions=[f],m.flags|=16):h.push(f)}}function n(m,f){if(!e)return null;for(;f!==null;)t(m,f),f=f.sibling;return null}function r(m,f){for(m=new Map;f!==null;)f.key!==null?m.set(f.key,f):m.set(f.index,f),f=f.sibling;return m}function o(m,f){return m=or(m,f),m.index=0,m.sibling=null,m}function i(m,f,h){return m.index=h,e?(h=m.alternate,h!==null?(h=h.index,h<f?(m.flags|=2,f):h):(m.flags|=2,f)):(m.flags|=1048576,f)}function a(m){return e&&m.alternate===null&&(m.flags|=2),m}function l(m,f,h,$){return f===null||f.tag!==6?(f=Su(h,m.mode,$),f.return=m,f):(f=o(f,h),f.return=m,f)}function s(m,f,h,$){var C=h.type;return C===ro?c(m,f,h.props.children,$,h.key):f!==null&&(f.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Un&&Ep(C)===f.type)?($=o(f,h.props),$.ref=oi(m,f,h),$.return=m,$):($=ul(h.type,h.key,h.props,null,m.mode,$),$.ref=oi(m,f,h),$.return=m,$)}function u(m,f,h,$){return f===null||f.tag!==4||f.stateNode.containerInfo!==h.containerInfo||f.stateNode.implementation!==h.implementation?(f=Cu(h,m.mode,$),f.return=m,f):(f=o(f,h.children||[]),f.return=m,f)}function c(m,f,h,$,C){return f===null||f.tag!==7?(f=Er(h,m.mode,$,C),f.return=m,f):(f=o(f,h),f.return=m,f)}function d(m,f,h){if(typeof f=="string"&&f!==""||typeof f=="number")return f=Su(""+f,m.mode,h),f.return=m,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case Da:return h=ul(f.type,f.key,f.props,null,m.mode,h),h.ref=oi(m,null,f),h.return=m,h;case no:return f=Cu(f,m.mode,h),f.return=m,f;case Un:var $=f._init;return d(m,$(f._payload),h)}if(ui(f)||ei(f))return f=Er(f,m.mode,h,null),f.return=m,f;Xa(m,f)}return null}function p(m,f,h,$){var C=f!==null?f.key:null;if(typeof h=="string"&&h!==""||typeof h=="number")return C!==null?null:l(m,f,""+h,$);if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Da:return h.key===C?s(m,f,h,$):null;case no:return h.key===C?u(m,f,h,$):null;case Un:return C=h._init,p(m,f,C(h._payload),$)}if(ui(h)||ei(h))return C!==null?null:c(m,f,h,$,null);Xa(m,h)}return null}function g(m,f,h,$,C){if(typeof $=="string"&&$!==""||typeof $=="number")return m=m.get(h)||null,l(f,m,""+$,C);if(typeof $=="object"&&$!==null){switch($.$$typeof){case Da:return m=m.get($.key===null?h:$.key)||null,s(f,m,$,C);case no:return m=m.get($.key===null?h:$.key)||null,u(f,m,$,C);case Un:var E=$._init;return g(m,f,h,E($._payload),C)}if(ui($)||ei($))return m=m.get(h)||null,c(f,m,$,C,null);Xa(f,$)}return null}function y(m,f,h,$){for(var C=null,E=null,P=f,N=f=0,R=null;P!==null&&N<h.length;N++){P.index>N?(R=P,P=null):R=P.sibling;var F=p(m,P,h[N],$);if(F===null){P===null&&(P=R);break}e&&P&&F.alternate===null&&t(m,P),f=i(F,f,N),E===null?C=F:E.sibling=F,E=F,P=R}if(N===h.length)return n(m,P),be&&vr(m,N),C;if(P===null){for(;N<h.length;N++)P=d(m,h[N],$),P!==null&&(f=i(P,f,N),E===null?C=P:E.sibling=P,E=P);return be&&vr(m,N),C}for(P=r(m,P);N<h.length;N++)R=g(P,m,N,h[N],$),R!==null&&(e&&R.alternate!==null&&P.delete(R.key===null?N:R.key),f=i(R,f,N),E===null?C=R:E.sibling=R,E=R);return e&&P.forEach(function(j){return t(m,j)}),be&&vr(m,N),C}function b(m,f,h,$){var C=ei(h);if(typeof C!="function")throw Error(x(150));if(h=C.call(h),h==null)throw Error(x(151));for(var E=C=null,P=f,N=f=0,R=null,F=h.next();P!==null&&!F.done;N++,F=h.next()){P.index>N?(R=P,P=null):R=P.sibling;var j=p(m,P,F.value,$);if(j===null){P===null&&(P=R);break}e&&P&&j.alternate===null&&t(m,P),f=i(j,f,N),E===null?C=j:E.sibling=j,E=j,P=R}if(F.done)return n(m,P),be&&vr(m,N),C;if(P===null){for(;!F.done;N++,F=h.next())F=d(m,F.value,$),F!==null&&(f=i(F,f,N),E===null?C=F:E.sibling=F,E=F);return be&&vr(m,N),C}for(P=r(m,P);!F.done;N++,F=h.next())F=g(P,m,N,F.value,$),F!==null&&(e&&F.alternate!==null&&P.delete(F.key===null?N:F.key),f=i(F,f,N),E===null?C=F:E.sibling=F,E=F);return e&&P.forEach(function(O){return t(m,O)}),be&&vr(m,N),C}function D(m,f,h,$){if(typeof h=="object"&&h!==null&&h.type===ro&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case Da:e:{for(var C=h.key,E=f;E!==null;){if(E.key===C){if(C=h.type,C===ro){if(E.tag===7){n(m,E.sibling),f=o(E,h.props.children),f.return=m,m=f;break e}}else if(E.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Un&&Ep(C)===E.type){n(m,E.sibling),f=o(E,h.props),f.ref=oi(m,E,h),f.return=m,m=f;break e}n(m,E);break}else t(m,E);E=E.sibling}h.type===ro?(f=Er(h.props.children,m.mode,$,h.key),f.return=m,m=f):($=ul(h.type,h.key,h.props,null,m.mode,$),$.ref=oi(m,f,h),$.return=m,m=$)}return a(m);case no:e:{for(E=h.key;f!==null;){if(f.key===E)if(f.tag===4&&f.stateNode.containerInfo===h.containerInfo&&f.stateNode.implementation===h.implementation){n(m,f.sibling),f=o(f,h.children||[]),f.return=m,m=f;break e}else{n(m,f);break}else t(m,f);f=f.sibling}f=Cu(h,m.mode,$),f.return=m,m=f}return a(m);case Un:return E=h._init,D(m,f,E(h._payload),$)}if(ui(h))return y(m,f,h,$);if(ei(h))return b(m,f,h,$);Xa(m,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,f!==null&&f.tag===6?(n(m,f.sibling),f=o(f,h),f.return=m,m=f):(n(m,f),f=Su(h,m.mode,$),f.return=m,m=f),a(m)):n(m,f)}return D}var Co=Xm(!0),qm=Xm(!1),Sl=sr(null),Cl=null,fo=null,Fc=null;function Kc(){Fc=fo=Cl=null}function Oc(e){var t=Sl.current;me(Sl),e._currentValue=t}function ec(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function yo(e,t){Cl=e,Fc=fo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(ht=!0),e.firstContext=null)}function Ht(e){var t=e._currentValue;if(Fc!==e)if(e={context:e,memoizedValue:t,next:null},fo===null){if(Cl===null)throw Error(x(308));fo=e,Cl.dependencies={lanes:0,firstContext:e}}else fo=fo.next=e;return t}var Sr=null;function Ac(e){Sr===null?Sr=[e]:Sr.push(e)}function Zm(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Ac(t)):(n.next=o.next,o.next=n),t.interleaved=n,Rn(e,r)}function Rn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var jn=!1;function zc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Jm(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Pn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function tr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(J&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Rn(e,n)}return o=r.interleaved,o===null?(t.next=t,Ac(r)):(t.next=o.next,o.next=t),r.interleaved=t,Rn(e,n)}function rl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,kc(e,n)}}function Tp(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function kl(e,t,n,r){var o=e.updateQueue;jn=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var s=l,u=s.next;s.next=null,a===null?i=u:a.next=u,a=s;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==a&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(i!==null){var d=o.baseState;a=0,c=u=s=null,l=i;do{var p=l.lane,g=l.eventTime;if((r&p)===p){c!==null&&(c=c.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=e,b=l;switch(p=t,g=n,b.tag){case 1:if(y=b.payload,typeof y=="function"){d=y.call(g,d,p);break e}d=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=b.payload,p=typeof y=="function"?y.call(g,d,p):y,p==null)break e;d=Se({},d,p);break e;case 2:jn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[l]:p.push(l))}else g={eventTime:g,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=g,s=d):c=c.next=g,a|=p;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;p=l,l=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(c===null&&(s=d),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Lr|=a,e.lanes=a,e.memoizedState=d}}function _p(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(x(191,o));o.call(r)}}}var Bi={},gn=sr(Bi),Ri=sr(Bi),Mi=sr(Bi);function Cr(e){if(e===Bi)throw Error(x(174));return e}function Bc(e,t){switch(de(Mi,t),de(Ri,e),de(gn,Bi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Iu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Iu(t,e)}me(gn),de(gn,t)}function ko(){me(gn),me(Ri),me(Mi)}function e0(e){Cr(Mi.current);var t=Cr(gn.current),n=Iu(t,e.type);t!==n&&(de(Ri,e),de(gn,n))}function Hc(e){Ri.current===e&&(me(gn),me(Ri))}var xe=sr(0);function El(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var $u=[];function Vc(){for(var e=0;e<$u.length;e++)$u[e]._workInProgressVersionPrimary=null;$u.length=0}var ol=In.ReactCurrentDispatcher,bu=In.ReactCurrentBatchConfig,Pr=0,we=null,Ie=null,Fe=null,Tl=!1,$i=!1,Ii=0,sy=0;function je(){throw Error(x(321))}function Wc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!tn(e[n],t[n]))return!1;return!0}function Uc(e,t,n,r,o,i){if(Pr=i,we=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ol.current=e===null||e.memoizedState===null?fy:py,e=n(r,o),$i){i=0;do{if($i=!1,Ii=0,25<=i)throw Error(x(301));i+=1,Fe=Ie=null,t.updateQueue=null,ol.current=my,e=n(r,o)}while($i)}if(ol.current=_l,t=Ie!==null&&Ie.next!==null,Pr=0,Fe=Ie=we=null,Tl=!1,t)throw Error(x(300));return e}function jc(){var e=Ii!==0;return Ii=0,e}function pn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Fe===null?we.memoizedState=Fe=e:Fe=Fe.next=e,Fe}function Vt(){if(Ie===null){var e=we.alternate;e=e!==null?e.memoizedState:null}else e=Ie.next;var t=Fe===null?we.memoizedState:Fe.next;if(t!==null)Fe=t,Ie=e;else{if(e===null)throw Error(x(310));Ie=e,e={memoizedState:Ie.memoizedState,baseState:Ie.baseState,baseQueue:Ie.baseQueue,queue:Ie.queue,next:null},Fe===null?we.memoizedState=Fe=e:Fe=Fe.next=e}return Fe}function Di(e,t){return typeof t=="function"?t(e):t}function yu(e){var t=Vt(),n=t.queue;if(n===null)throw Error(x(311));n.lastRenderedReducer=e;var r=Ie,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var l=a=null,s=null,u=i;do{var c=u.lane;if((Pr&c)===c)s!==null&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};s===null?(l=s=d,a=r):s=s.next=d,we.lanes|=c,Lr|=c}u=u.next}while(u!==null&&u!==i);s===null?a=r:s.next=l,tn(r,t.memoizedState)||(ht=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,we.lanes|=i,Lr|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function vu(e){var t=Vt(),n=t.queue;if(n===null)throw Error(x(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var a=o=o.next;do i=e(i,a.action),a=a.next;while(a!==o);tn(i,t.memoizedState)||(ht=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function t0(){}function n0(e,t){var n=we,r=Vt(),o=t(),i=!tn(r.memoizedState,o);if(i&&(r.memoizedState=o,ht=!0),r=r.queue,Gc(i0.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Fe!==null&&Fe.memoizedState.tag&1){if(n.flags|=2048,Fi(9,o0.bind(null,n,r,o,t),void 0,null),Ke===null)throw Error(x(349));(Pr&30)!==0||r0(n,t,o)}return o}function r0(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=we.updateQueue,t===null?(t={lastEffect:null,stores:null},we.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function o0(e,t,n,r){t.value=n,t.getSnapshot=r,a0(t)&&l0(e)}function i0(e,t,n){return n(function(){a0(t)&&l0(e)})}function a0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!tn(e,n)}catch{return!0}}function l0(e){var t=Rn(e,1);t!==null&&en(t,e,1,-1)}function Pp(e){var t=pn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Di,lastRenderedState:e},t.queue=e,e=e.dispatch=dy.bind(null,we,e),[t.memoizedState,e]}function Fi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=we.updateQueue,t===null?(t={lastEffect:null,stores:null},we.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function s0(){return Vt().memoizedState}function il(e,t,n,r){var o=pn();we.flags|=e,o.memoizedState=Fi(1|t,n,void 0,r===void 0?null:r)}function zl(e,t,n,r){var o=Vt();r=r===void 0?null:r;var i=void 0;if(Ie!==null){var a=Ie.memoizedState;if(i=a.destroy,r!==null&&Wc(r,a.deps)){o.memoizedState=Fi(t,n,i,r);return}}we.flags|=e,o.memoizedState=Fi(1|t,n,i,r)}function Lp(e,t){return il(8390656,8,e,t)}function Gc(e,t){return zl(2048,8,e,t)}function u0(e,t){return zl(4,2,e,t)}function c0(e,t){return zl(4,4,e,t)}function d0(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function f0(e,t,n){return n=n!=null?n.concat([e]):null,zl(4,4,d0.bind(null,t,e),n)}function Qc(){}function p0(e,t){var n=Vt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Wc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function m0(e,t){var n=Vt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Wc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function h0(e,t,n){return(Pr&21)===0?(e.baseState&&(e.baseState=!1,ht=!0),e.memoizedState=n):(tn(n,t)||(n=vm(),we.lanes|=n,Lr|=n,e.baseState=!0),t)}function uy(e,t){var n=ae;ae=n!==0&&4>n?n:4,e(!0);var r=bu.transition;bu.transition={};try{e(!1),t()}finally{ae=n,bu.transition=r}}function g0(){return Vt().memoizedState}function cy(e,t,n){var r=rr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},$0(e))b0(t,n);else if(n=Zm(e,t,n,r),n!==null){var o=tt();en(n,e,r,o),y0(n,t,r)}}function dy(e,t,n){var r=rr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if($0(e))b0(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,tn(l,a)){var s=t.interleaved;s===null?(o.next=o,Ac(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=Zm(e,t,o,r),n!==null&&(o=tt(),en(n,e,r,o),y0(n,t,r))}}function $0(e){var t=e.alternate;return e===we||t!==null&&t===we}function b0(e,t){$i=Tl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function y0(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,kc(e,n)}}var _l={readContext:Ht,useCallback:je,useContext:je,useEffect:je,useImperativeHandle:je,useInsertionEffect:je,useLayoutEffect:je,useMemo:je,useReducer:je,useRef:je,useState:je,useDebugValue:je,useDeferredValue:je,useTransition:je,useMutableSource:je,useSyncExternalStore:je,useId:je,unstable_isNewReconciler:!1},fy={readContext:Ht,useCallback:function(e,t){return pn().memoizedState=[e,t===void 0?null:t],e},useContext:Ht,useEffect:Lp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,il(4194308,4,d0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return il(4194308,4,e,t)},useInsertionEffect:function(e,t){return il(4,2,e,t)},useMemo:function(e,t){var n=pn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=pn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=cy.bind(null,we,e),[r.memoizedState,e]},useRef:function(e){var t=pn();return e={current:e},t.memoizedState=e},useState:Pp,useDebugValue:Qc,useDeferredValue:function(e){return pn().memoizedState=e},useTransition:function(){var e=Pp(!1),t=e[0];return e=uy.bind(null,e[1]),pn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=we,o=pn();if(be){if(n===void 0)throw Error(x(407));n=n()}else{if(n=t(),Ke===null)throw Error(x(349));(Pr&30)!==0||r0(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Lp(i0.bind(null,r,i,e),[e]),r.flags|=2048,Fi(9,o0.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=pn(),t=Ke.identifierPrefix;if(be){var n=_n,r=Tn;n=(r&~(1<<32-Jt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ii++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=sy++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},py={readContext:Ht,useCallback:p0,useContext:Ht,useEffect:Gc,useImperativeHandle:f0,useInsertionEffect:u0,useLayoutEffect:c0,useMemo:m0,useReducer:yu,useRef:s0,useState:function(){return yu(Di)},useDebugValue:Qc,useDeferredValue:function(e){var t=Vt();return h0(t,Ie.memoizedState,e)},useTransition:function(){var e=yu(Di)[0],t=Vt().memoizedState;return[e,t]},useMutableSource:t0,useSyncExternalStore:n0,useId:g0,unstable_isNewReconciler:!1},my={readContext:Ht,useCallback:p0,useContext:Ht,useEffect:Gc,useImperativeHandle:f0,useInsertionEffect:u0,useLayoutEffect:c0,useMemo:m0,useReducer:vu,useRef:s0,useState:function(){return vu(Di)},useDebugValue:Qc,useDeferredValue:function(e){var t=Vt();return Ie===null?t.memoizedState=e:h0(t,Ie.memoizedState,e)},useTransition:function(){var e=vu(Di)[0],t=Vt().memoizedState;return[e,t]},useMutableSource:t0,useSyncExternalStore:n0,useId:g0,unstable_isNewReconciler:!1};function Xt(e,t){if(e&&e.defaultProps){t=Se({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function tc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Se({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Bl={isMounted:function(e){return(e=e._reactInternals)?Mr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tt(),o=rr(e),i=Pn(r,o);i.payload=t,n!=null&&(i.callback=n),t=tr(e,i,o),t!==null&&(en(t,e,o,r),rl(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tt(),o=rr(e),i=Pn(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=tr(e,i,o),t!==null&&(en(t,e,o,r),rl(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tt(),r=rr(e),o=Pn(n,r);o.tag=2,t!=null&&(o.callback=t),t=tr(e,o,r),t!==null&&(en(t,e,r,n),rl(t,e,r))}};function Np(e,t,n,r,o,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,a):t.prototype&&t.prototype.isPureReactComponent?!_i(n,r)||!_i(o,i):!0}function v0(e,t,n){var r=!1,o=ar,i=t.contextType;return typeof i=="object"&&i!==null?i=Ht(i):(o=$t(t)?Tr:Ye.current,r=t.contextTypes,i=(r=r!=null)?wo(e,o):ar),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Bl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Rp(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Bl.enqueueReplaceState(t,t.state,null)}function nc(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},zc(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Ht(i):(i=$t(t)?Tr:Ye.current,o.context=wo(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(tc(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Bl.enqueueReplaceState(o,o.state,null),kl(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Eo(e,t){try{var n="",r=t;do n+=W$(r),r=r.return;while(r);var o=n}catch(i){o=`
|
|
7
7
|
Error generating stack: `+i.message+`
|
|
8
|
-
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function yu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function tc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var my=typeof WeakMap=="function"?WeakMap:Map;function v0(e,t,n){n=Pn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){_l||(_l=!0,dc=r),tc(e,t)},n}function x0(e,t,n){n=Pn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){tc(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){tc(e,t),typeof r!="function"&&(nr===null?nr=new Set([this]):nr.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function Rp(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new my;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=_y.bind(null,e,t,n),t.then(e,e))}function Mp(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Ip(e,t,n,r,o){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Pn(-1,1),t.tag=2,tr(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var hy=In.ReactCurrentOwner,ht=!1;function et(e,t,n,r){t.child=e===null?Xm(t,null,n,r):So(t,e.child,n,r)}function Dp(e,t,n,r,o){n=n.render;var i=t.ref;return bo(t,o),r=Vc(e,t,n,r,i,o),n=Wc(),e!==null&&!ht?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Mn(e,t,o)):(be&&n&&Nc(t),t.flags|=1,et(e,t,r,o),t.child)}function Fp(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!ed(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,w0(e,t,i,r,o)):(e=ll(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,(e.lanes&o)===0){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:ki,n(a,r)&&e.ref===t.ref)return Mn(e,t,o)}return t.flags|=1,e=or(i,r),e.ref=t.ref,e.return=t,t.child=e}function w0(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(ki(i,r)&&e.ref===t.ref)if(ht=!1,t.pendingProps=r=i,(e.lanes&o)!==0)(e.flags&131072)!==0&&(ht=!0);else return t.lanes=e.lanes,Mn(e,t,o)}return nc(e,t,n,r,o)}function S0(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},de(po,wt),wt|=n;else{if((n&1073741824)===0)return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,de(po,wt),wt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,de(po,wt),wt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,de(po,wt),wt|=r;return et(e,t,o,n),t.child}function C0(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function nc(e,t,n,r,o){var i=$t(n)?Tr:Ye.current;return i=xo(t,i),bo(t,o),n=Vc(e,t,n,r,i,o),r=Wc(),e!==null&&!ht?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Mn(e,t,o)):(be&&r&&Nc(t),t.flags|=1,et(e,t,n,o),t.child)}function Kp(e,t,n,r,o){if($t(n)){var i=!0;bl(t)}else i=!1;if(bo(t,o),t.stateNode===null)ol(e,t),y0(t,n,r),ec(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ht(u):(u=$t(n)?Tr:Ye.current,u=xo(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||s!==u)&&Np(t,a,r,u),jn=!1;var m=t.memoizedState;a.state=m,Sl(t,r,a,o),s=t.memoizedState,l!==r||m!==s||gt.current||jn?(typeof c=="function"&&(Ju(t,n,c,r),s=t.memoizedState),(l=jn||Lp(t,n,l,r,m,s,u))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=u,r=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Zm(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Xt(t.type,l),a.props=u,d=t.pendingProps,m=a.context,s=n.contextType,typeof s=="object"&&s!==null?s=Ht(s):(s=$t(n)?Tr:Ye.current,s=xo(t,s));var g=n.getDerivedStateFromProps;(c=typeof g=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==d||m!==s)&&Np(t,a,r,s),jn=!1,m=t.memoizedState,a.state=m,Sl(t,r,a,o);var y=t.memoizedState;l!==d||m!==y||gt.current||jn?(typeof g=="function"&&(Ju(t,n,g,r),y=t.memoizedState),(u=jn||Lp(t,n,u,r,m,y,s)||!1)?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,y,s),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,y,s)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),a.props=r,a.state=y,a.context=s,r=u):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return rc(e,t,n,r,i,o)}function rc(e,t,n,r,o,i){C0(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&wp(t,n,!1),Mn(e,t,i);r=t.stateNode,hy.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=So(t,e.child,null,i),t.child=So(t,null,l,i)):et(e,t,l,i),t.memoizedState=r.state,o&&wp(t,n,!0),t.child}function k0(e){var t=e.stateNode;t.pendingContext?xp(e,t.pendingContext,t.pendingContext!==t.context):t.context&&xp(e,t.context,!1),Ac(e,t.containerInfo)}function Op(e,t,n,r,o){return wo(),Mc(o),t.flags|=256,et(e,t,n,r),t.child}var oc={dehydrated:null,treeContext:null,retryLane:0};function ic(e){return{baseLanes:e,cachePool:null,transitions:null}}function E0(e,t,n){var r=t.pendingProps,o=xe.current,i=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),de(xe,o&1),e===null)return qu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(a=r.children,e=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},(r&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=a):i=Hl(a,r,0,null),e=Er(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=ic(n),t.memoizedState=oc,e):Gc(t,a));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return gy(e,t,a,r,l,o,n);if(i){i=r.fallback,a=t.mode,o=e.child,l=o.sibling;var s={mode:"hidden",children:r.children};return(a&1)===0&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=or(o,s),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?i=or(l,i):(i=Er(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?ic(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=oc,r}return i=e.child,e=i.sibling,r=or(i,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Gc(e,t){return t=Hl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ya(e,t,n,r){return r!==null&&Mc(r),So(t,e.child,null,n),e=Gc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function gy(e,t,n,r,o,i,a){if(n)return t.flags&256?(t.flags&=-257,r=yu(Error(x(422))),Ya(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Hl({mode:"visible",children:r.children},o,0,null),i=Er(i,o,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,(t.mode&1)!==0&&So(t,e.child,null,a),t.child.memoizedState=ic(a),t.memoizedState=oc,i);if((t.mode&1)===0)return Ya(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(x(419)),r=yu(i,r,void 0),Ya(e,t,a,r)}if(l=(a&e.childLanes)!==0,ht||l){if(r=Ke,r!==null){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=(o&(r.suspendedLanes|a))!==0?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Rn(e,o),en(r,e,o,-1))}return Jc(),r=yu(Error(x(421))),Ya(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Py.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,St=er(o.nextSibling),Ct=t,be=!0,Zt=null,e!==null&&(Ot[At++]=Tn,Ot[At++]=_n,Ot[At++]=_r,Tn=e.id,_n=e.overflow,_r=t),t=Gc(t,r.children),t.flags|=4096,t)}function Ap(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Zu(e.return,t,n)}function vu(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function T0(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(et(e,t,r.children,n),r=xe.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ap(e,n,t);else if(e.tag===19)Ap(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(de(xe,r),(t.mode&1)===0)t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Cl(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),vu(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Cl(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}vu(t,!0,n,null,i);break;case"together":vu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ol(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Mn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Lr|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(x(153));if(t.child!==null){for(e=t.child,n=or(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=or(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function $y(e,t,n){switch(t.tag){case 3:k0(t),wo();break;case 5:Jm(t);break;case 1:$t(t.type)&&bl(t);break;case 4:Ac(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;de(xl,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(de(xe,xe.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?E0(e,t,n):(de(xe,xe.current&1),e=Mn(e,t,n),e!==null?e.sibling:null);de(xe,xe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return T0(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),de(xe,xe.current),r)break;return null;case 22:case 23:return t.lanes=0,S0(e,t,n)}return Mn(e,t,n)}var _0,ac,P0,L0;_0=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};ac=function(){};P0=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Cr(gn.current);var i=null;switch(n){case"input":o=_u(e,o),r=_u(e,r),i=[];break;case"select":o=Se({},o,{value:void 0}),r=Se({},r,{value:void 0}),i=[];break;case"textarea":o=Nu(e,o),r=Nu(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=gl)}Mu(n,r);var a;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var l=o[u];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(bi.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var s=r[u];if(l=o?.[u],r.hasOwnProperty(u)&&s!==l&&(s!=null||l!=null))if(u==="style")if(l){for(a in l)!l.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in s)s.hasOwnProperty(a)&&l[a]!==s[a]&&(n||(n={}),n[a]=s[a])}else n||(i||(i=[]),i.push(u,n)),n=s;else u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(i=i||[]).push(u,s)):u==="children"?typeof s!="string"&&typeof s!="number"||(i=i||[]).push(u,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(bi.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&pe("scroll",e),i||l===s||(i=[])):(i=i||[]).push(u,s))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};L0=function(e,t,n,r){n!==r&&(t.flags|=4)};function ni(e,t){if(!be)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ge(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function by(e,t,n){var r=t.pendingProps;switch(Rc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ge(t),null;case 1:return $t(t.type)&&$l(),Ge(t),null;case 3:return r=t.stateNode,Co(),me(gt),me(Ye),zc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ga(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Zt!==null&&(mc(Zt),Zt=null))),ac(e,t),Ge(t),null;case 5:Bc(t);var o=Cr(Li.current);if(n=t.type,e!==null&&t.stateNode!=null)P0(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(x(166));return Ge(t),null}if(e=Cr(gn.current),Ga(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[mn]=t,r[_i]=i,e=(t.mode&1)!==0,n){case"dialog":pe("cancel",r),pe("close",r);break;case"iframe":case"object":case"embed":pe("load",r);break;case"video":case"audio":for(o=0;o<si.length;o++)pe(si[o],r);break;case"source":pe("error",r);break;case"img":case"image":case"link":pe("error",r),pe("load",r);break;case"details":pe("toggle",r);break;case"input":Gf(r,i),pe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},pe("invalid",r);break;case"textarea":Yf(r,i),pe("invalid",r)}Mu(n,i),o=null;for(var a in i)if(i.hasOwnProperty(a)){var l=i[a];a==="children"?typeof l=="string"?r.textContent!==l&&(i.suppressHydrationWarning!==!0&&ja(r.textContent,l,e),o=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&ja(r.textContent,l,e),o=["children",""+l]):bi.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&pe("scroll",r)}switch(n){case"input":Ia(r),Qf(r,i,!0);break;case"textarea":Ia(r),Xf(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=gl)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=om(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[mn]=t,e[_i]=r,_0(e,t,!1,!1),t.stateNode=e;e:{switch(a=Iu(n,r),n){case"dialog":pe("cancel",e),pe("close",e),o=r;break;case"iframe":case"object":case"embed":pe("load",e),o=r;break;case"video":case"audio":for(o=0;o<si.length;o++)pe(si[o],e);o=r;break;case"source":pe("error",e),o=r;break;case"img":case"image":case"link":pe("error",e),pe("load",e),o=r;break;case"details":pe("toggle",e),o=r;break;case"input":Gf(e,r),o=_u(e,r),pe("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Se({},r,{value:void 0}),pe("invalid",e);break;case"textarea":Yf(e,r),o=Nu(e,r),pe("invalid",e);break;default:o=r}Mu(n,o),l=o;for(i in l)if(l.hasOwnProperty(i)){var s=l[i];i==="style"?lm(e,s):i==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&im(e,s)):i==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&yi(e,s):typeof s=="number"&&yi(e,""+s):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(bi.hasOwnProperty(i)?s!=null&&i==="onScroll"&&pe("scroll",e):s!=null&&$c(e,i,s,a))}switch(n){case"input":Ia(e),Qf(e,r,!1);break;case"textarea":Ia(e),Xf(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ir(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?mo(e,!!r.multiple,i,!1):r.defaultValue!=null&&mo(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=gl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ge(t),null;case 6:if(e&&t.stateNode!=null)L0(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(x(166));if(n=Cr(Li.current),Cr(gn.current),Ga(t)){if(r=t.stateNode,n=t.memoizedProps,r[mn]=t,(i=r.nodeValue!==n)&&(e=Ct,e!==null))switch(e.tag){case 3:ja(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ja(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[mn]=t,t.stateNode=r}return Ge(t),null;case 13:if(me(xe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(be&&St!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Qm(),wo(),t.flags|=98560,i=!1;else if(i=Ga(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(x(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(x(317));i[mn]=t}else wo(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ge(t),i=!1}else Zt!==null&&(mc(Zt),Zt=null),i=!0;if(!i)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(xe.current&1)!==0?De===0&&(De=3):Jc())),t.updateQueue!==null&&(t.flags|=4),Ge(t),null);case 4:return Co(),ac(e,t),e===null&&Ei(t.stateNode.containerInfo),Ge(t),null;case 10:return Fc(t.type._context),Ge(t),null;case 17:return $t(t.type)&&$l(),Ge(t),null;case 19:if(me(xe),i=t.memoizedState,i===null)return Ge(t),null;if(r=(t.flags&128)!==0,a=i.rendering,a===null)if(r)ni(i,!1);else{if(De!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(a=Cl(e),a!==null){for(t.flags|=128,ni(i,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return de(xe,xe.current&1|2),t.child}e=e.sibling}i.tail!==null&&Te()>Eo&&(t.flags|=128,r=!0,ni(i,!1),t.lanes=4194304)}else{if(!r)if(e=Cl(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ni(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!be)return Ge(t),null}else 2*Te()-i.renderingStartTime>Eo&&n!==1073741824&&(t.flags|=128,r=!0,ni(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Te(),t.sibling=null,n=xe.current,de(xe,r?n&1|2:n&1),t):(Ge(t),null);case 22:case 23:return Zc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(wt&1073741824)!==0&&(Ge(t),t.subtreeFlags&6&&(t.flags|=8192)):Ge(t),null;case 24:return null;case 25:return null}throw Error(x(156,t.tag))}function yy(e,t){switch(Rc(t),t.tag){case 1:return $t(t.type)&&$l(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Co(),me(gt),me(Ye),zc(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Bc(t),null;case 13:if(me(xe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(x(340));wo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return me(xe),null;case 4:return Co(),null;case 10:return Fc(t.type._context),null;case 22:case 23:return Zc(),null;case 24:return null;default:return null}}var Xa=!1,Qe=!1,vy=typeof WeakSet=="function"?WeakSet:Set,D=null;function fo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ke(e,t,r)}else n.current=null}function lc(e,t,n){try{n()}catch(r){ke(e,t,r)}}var Bp=!1;function xy(e,t){if(Wu=pl,e=Dm(),Lc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,l=-1,s=-1,u=0,c=0,d=e,m=null;t:for(;;){for(var g;d!==n||o!==0&&d.nodeType!==3||(l=a+o),d!==i||r!==0&&d.nodeType!==3||(s=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(g=d.firstChild)!==null;)m=d,d=g;for(;;){if(d===e)break t;if(m===n&&++u===o&&(l=a),m===i&&++c===r&&(s=a),(g=d.nextSibling)!==null)break;d=m,m=d.parentNode}d=g}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Uu={focusedElem:e,selectionRange:n},pl=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var y=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var b=y.memoizedProps,R=y.memoizedState,p=t.stateNode,f=p.getSnapshotBeforeUpdate(t.elementType===t.type?b:Xt(t.type,b),R);p.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(x(163))}}catch($){ke(t,t.return,$)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return y=Bp,Bp=!1,y}function hi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&lc(t,n,i)}o=o.next}while(o!==r)}}function Bl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function sc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function N0(e){var t=e.alternate;t!==null&&(e.alternate=null,N0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[mn],delete t[_i],delete t[Qu],delete t[ry],delete t[oy])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function R0(e){return e.tag===5||e.tag===3||e.tag===4}function zp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||R0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function uc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=gl));else if(r!==4&&(e=e.child,e!==null))for(uc(e,t,n),e=e.sibling;e!==null;)uc(e,t,n),e=e.sibling}function cc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(cc(e,t,n),e=e.sibling;e!==null;)cc(e,t,n),e=e.sibling}var ze=null,qt=!1;function Wn(e,t,n){for(n=n.child;n!==null;)M0(e,t,n),n=n.sibling}function M0(e,t,n){if(hn&&typeof hn.onCommitFiberUnmount=="function")try{hn.onCommitFiberUnmount(Rl,n)}catch{}switch(n.tag){case 5:Qe||fo(n,t);case 6:var r=ze,o=qt;ze=null,Wn(e,t,n),ze=r,qt=o,ze!==null&&(qt?(e=ze,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ze.removeChild(n.stateNode));break;case 18:ze!==null&&(qt?(e=ze,n=n.stateNode,e.nodeType===8?pu(e.parentNode,n):e.nodeType===1&&pu(e,n),Si(e)):pu(ze,n.stateNode));break;case 4:r=ze,o=qt,ze=n.stateNode.containerInfo,qt=!0,Wn(e,t,n),ze=r,qt=o;break;case 0:case 11:case 14:case 15:if(!Qe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&lc(n,t,a),o=o.next}while(o!==r)}Wn(e,t,n);break;case 1:if(!Qe&&(fo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ke(n,t,l)}Wn(e,t,n);break;case 21:Wn(e,t,n);break;case 22:n.mode&1?(Qe=(r=Qe)||n.memoizedState!==null,Wn(e,t,n),Qe=r):Wn(e,t,n);break;default:Wn(e,t,n)}}function Hp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new vy),t.forEach(function(r){var o=Ly.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Yt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,a=t,l=a;e:for(;l!==null;){switch(l.tag){case 5:ze=l.stateNode,qt=!1;break e;case 3:ze=l.stateNode.containerInfo,qt=!0;break e;case 4:ze=l.stateNode.containerInfo,qt=!0;break e}l=l.return}if(ze===null)throw Error(x(160));M0(i,a,o),ze=null,qt=!1;var s=o.alternate;s!==null&&(s.return=null),o.return=null}catch(u){ke(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)I0(t,e),t=t.sibling}function I0(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Yt(t,e),fn(e),r&4){try{hi(3,e,e.return),Bl(3,e)}catch(b){ke(e,e.return,b)}try{hi(5,e,e.return)}catch(b){ke(e,e.return,b)}}break;case 1:Yt(t,e),fn(e),r&512&&n!==null&&fo(n,n.return);break;case 5:if(Yt(t,e),fn(e),r&512&&n!==null&&fo(n,n.return),e.flags&32){var o=e.stateNode;try{yi(o,"")}catch(b){ke(e,e.return,b)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,a=n!==null?n.memoizedProps:i,l=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&nm(o,i),Iu(l,a);var u=Iu(l,i);for(a=0;a<s.length;a+=2){var c=s[a],d=s[a+1];c==="style"?lm(o,d):c==="dangerouslySetInnerHTML"?im(o,d):c==="children"?yi(o,d):$c(o,c,d,u)}switch(l){case"input":Pu(o,i);break;case"textarea":rm(o,i);break;case"select":var m=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var g=i.value;g!=null?mo(o,!!i.multiple,g,!1):m!==!!i.multiple&&(i.defaultValue!=null?mo(o,!!i.multiple,i.defaultValue,!0):mo(o,!!i.multiple,i.multiple?[]:"",!1))}o[_i]=i}catch(b){ke(e,e.return,b)}}break;case 6:if(Yt(t,e),fn(e),r&4){if(e.stateNode===null)throw Error(x(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(b){ke(e,e.return,b)}}break;case 3:if(Yt(t,e),fn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Si(t.containerInfo)}catch(b){ke(e,e.return,b)}break;case 4:Yt(t,e),fn(e);break;case 13:Yt(t,e),fn(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(Xc=Te())),r&4&&Hp(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Qe=(u=Qe)||c,Yt(t,e),Qe=u):Yt(t,e),fn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&(e.mode&1)!==0)for(D=e,c=e.child;c!==null;){for(d=D=c;D!==null;){switch(m=D,g=m.child,m.tag){case 0:case 11:case 14:case 15:hi(4,m,m.return);break;case 1:fo(m,m.return);var y=m.stateNode;if(typeof y.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(b){ke(r,n,b)}}break;case 5:fo(m,m.return);break;case 22:if(m.memoizedState!==null){Wp(d);continue}}g!==null?(g.return=m,D=g):Wp(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{o=d.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=d.stateNode,s=d.memoizedProps.style,a=s!=null&&s.hasOwnProperty("display")?s.display:null,l.style.display=am("display",a))}catch(b){ke(e,e.return,b)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(b){ke(e,e.return,b)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Yt(t,e),fn(e),r&4&&Hp(e);break;case 21:break;default:Yt(t,e),fn(e)}}function fn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(R0(n)){var r=n;break e}n=n.return}throw Error(x(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(yi(o,""),r.flags&=-33);var i=zp(e);cc(e,i,o);break;case 3:case 4:var a=r.stateNode.containerInfo,l=zp(e);uc(e,l,a);break;default:throw Error(x(161))}}catch(s){ke(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function wy(e,t,n){D=e,D0(e,t,n)}function D0(e,t,n){for(var r=(e.mode&1)!==0;D!==null;){var o=D,i=o.child;if(o.tag===22&&r){var a=o.memoizedState!==null||Xa;if(!a){var l=o.alternate,s=l!==null&&l.memoizedState!==null||Qe;l=Xa;var u=Qe;if(Xa=a,(Qe=s)&&!u)for(D=o;D!==null;)a=D,s=a.child,a.tag===22&&a.memoizedState!==null?Up(o):s!==null?(s.return=a,D=s):Up(o);for(;i!==null;)D=i,D0(i,t,n),i=i.sibling;D=o,Xa=l,Qe=u}Vp(e,t,n)}else(o.subtreeFlags&8772)!==0&&i!==null?(i.return=o,D=i):Vp(e,t,n)}}function Vp(e){for(;D!==null;){var t=D;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Qe||Bl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Qe)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Xt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Tp(t,i,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Tp(t,a,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&Si(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(x(163))}Qe||t.flags&512&&sc(t)}catch(m){ke(t,t.return,m)}}if(t===e){D=null;break}if(n=t.sibling,n!==null){n.return=t.return,D=n;break}D=t.return}}function Wp(e){for(;D!==null;){var t=D;if(t===e){D=null;break}var n=t.sibling;if(n!==null){n.return=t.return,D=n;break}D=t.return}}function Up(e){for(;D!==null;){var t=D;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Bl(4,t)}catch(s){ke(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(s){ke(t,o,s)}}var i=t.return;try{sc(t)}catch(s){ke(t,i,s)}break;case 5:var a=t.return;try{sc(t)}catch(s){ke(t,a,s)}}}catch(s){ke(t,t.return,s)}if(t===e){D=null;break}var l=t.sibling;if(l!==null){l.return=t.return,D=l;break}D=t.return}}var Sy=Math.ceil,Tl=In.ReactCurrentDispatcher,Qc=In.ReactCurrentOwner,zt=In.ReactCurrentBatchConfig,J=0,Ke=null,Le=null,He=0,wt=0,po=sr(0),De=0,Ii=null,Lr=0,zl=0,Yc=0,gi=null,mt=null,Xc=0,Eo=1/0,kn=null,_l=!1,dc=null,nr=null,qa=!1,Xn=null,Pl=0,$i=0,fc=null,il=-1,al=0;function tt(){return(J&6)!==0?Te():il!==-1?il:il=Te()}function rr(e){return(e.mode&1)===0?1:(J&2)!==0&&He!==0?He&-He:ay.transition!==null?(al===0&&(al=ym()),al):(e=ae,e!==0||(e=window.event,e=e===void 0?16:Em(e.type)),e)}function en(e,t,n,r){if(50<$i)throw $i=0,fc=null,Error(x(185));Di(e,n,r),((J&2)===0||e!==Ke)&&(e===Ke&&((J&2)===0&&(zl|=n),De===4&&Qn(e,He)),bt(e,r),n===1&&J===0&&(t.mode&1)===0&&(Eo=Te()+500,Kl&&ur()))}function bt(e,t){var n=e.callbackNode;sb(e,t);var r=fl(e,e===Ke?He:0);if(r===0)n!==null&&Jf(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Jf(n),t===1)e.tag===0?iy(jp.bind(null,e)):Um(jp.bind(null,e)),ty(function(){(J&6)===0&&ur()}),n=null;else{switch(vm(r)){case 1:n=wc;break;case 4:n=$m;break;case 16:n=dl;break;case 536870912:n=bm;break;default:n=dl}n=V0(n,F0.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function F0(e,t){if(il=-1,al=0,(J&6)!==0)throw Error(x(327));var n=e.callbackNode;if(yo()&&e.callbackNode!==n)return null;var r=fl(e,e===Ke?He:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=Ll(e,r);else{t=r;var o=J;J|=2;var i=O0();(Ke!==e||He!==t)&&(kn=null,Eo=Te()+500,kr(e,t));do try{Ey();break}catch(l){K0(e,l)}while(!0);Dc(),Tl.current=i,J=o,Le!==null?t=0:(Ke=null,He=0,t=De)}if(t!==0){if(t===2&&(o=Au(e),o!==0&&(r=o,t=pc(e,o))),t===1)throw n=Ii,kr(e,0),Qn(e,r),bt(e,Te()),n;if(t===6)Qn(e,r);else{if(o=e.current.alternate,(r&30)===0&&!Cy(o)&&(t=Ll(e,r),t===2&&(i=Au(e),i!==0&&(r=i,t=pc(e,i))),t===1))throw n=Ii,kr(e,0),Qn(e,r),bt(e,Te()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(x(345));case 2:xr(e,mt,kn);break;case 3:if(Qn(e,r),(r&130023424)===r&&(t=Xc+500-Te(),10<t)){if(fl(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){tt(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Gu(xr.bind(null,e,mt,kn),t);break}xr(e,mt,kn);break;case 4:if(Qn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-Jt(r);i=1<<a,a=t[a],a>o&&(o=a),r&=~i}if(r=o,r=Te()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sy(r/1960))-r,10<r){e.timeoutHandle=Gu(xr.bind(null,e,mt,kn),r);break}xr(e,mt,kn);break;case 5:xr(e,mt,kn);break;default:throw Error(x(329))}}}return bt(e,Te()),e.callbackNode===n?F0.bind(null,e):null}function pc(e,t){var n=gi;return e.current.memoizedState.isDehydrated&&(kr(e,t).flags|=256),e=Ll(e,t),e!==2&&(t=mt,mt=n,t!==null&&mc(t)),e}function mc(e){mt===null?mt=e:mt.push.apply(mt,e)}function Cy(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!tn(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Qn(e,t){for(t&=~Yc,t&=~zl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Jt(t),r=1<<n;e[n]=-1,t&=~r}}function jp(e){if((J&6)!==0)throw Error(x(327));yo();var t=fl(e,0);if((t&1)===0)return bt(e,Te()),null;var n=Ll(e,t);if(e.tag!==0&&n===2){var r=Au(e);r!==0&&(t=r,n=pc(e,r))}if(n===1)throw n=Ii,kr(e,0),Qn(e,t),bt(e,Te()),n;if(n===6)throw Error(x(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xr(e,mt,kn),bt(e,Te()),null}function qc(e,t){var n=J;J|=1;try{return e(t)}finally{J=n,J===0&&(Eo=Te()+500,Kl&&ur())}}function Nr(e){Xn!==null&&Xn.tag===0&&(J&6)===0&&yo();var t=J;J|=1;var n=zt.transition,r=ae;try{if(zt.transition=null,ae=1,e)return e()}finally{ae=r,zt.transition=n,J=t,(J&6)===0&&ur()}}function Zc(){wt=po.current,me(po)}function kr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,ey(n)),Le!==null)for(n=Le.return;n!==null;){var r=n;switch(Rc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&$l();break;case 3:Co(),me(gt),me(Ye),zc();break;case 5:Bc(r);break;case 4:Co();break;case 13:me(xe);break;case 19:me(xe);break;case 10:Fc(r.type._context);break;case 22:case 23:Zc()}n=n.return}if(Ke=e,Le=e=or(e.current,null),He=wt=t,De=0,Ii=null,Yc=zl=Lr=0,mt=gi=null,Sr!==null){for(t=0;t<Sr.length;t++)if(n=Sr[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var a=i.next;i.next=o,r.next=a}n.pending=r}Sr=null}return e}function K0(e,t){do{var n=Le;try{if(Dc(),nl.current=El,kl){for(var r=we.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}kl=!1}if(Pr=0,Fe=Ie=we=null,mi=!1,Ni=0,Qc.current=null,n===null||n.return===null){De=1,Ii=t,Le=null;break}e:{var i=e,a=n.return,l=n,s=t;if(t=He,l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var u=s,c=l,d=c.tag;if((c.mode&1)===0&&(d===0||d===11||d===15)){var m=c.alternate;m?(c.updateQueue=m.updateQueue,c.memoizedState=m.memoizedState,c.lanes=m.lanes):(c.updateQueue=null,c.memoizedState=null)}var g=Mp(a);if(g!==null){g.flags&=-257,Ip(g,a,l,i,t),g.mode&1&&Rp(i,u,t),t=g,s=u;var y=t.updateQueue;if(y===null){var b=new Set;b.add(s),t.updateQueue=b}else y.add(s);break e}else{if((t&1)===0){Rp(i,u,t),Jc();break e}s=Error(x(426))}}else if(be&&l.mode&1){var R=Mp(a);if(R!==null){(R.flags&65536)===0&&(R.flags|=256),Ip(R,a,l,i,t),Mc(ko(s,l));break e}}i=s=ko(s,l),De!==4&&(De=2),gi===null?gi=[i]:gi.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var p=v0(i,s,t);Ep(i,p);break e;case 1:l=s;var f=i.type,h=i.stateNode;if((i.flags&128)===0&&(typeof f.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(nr===null||!nr.has(h)))){i.flags|=65536,t&=-t,i.lanes|=t;var $=x0(i,l,t);Ep(i,$);break e}}i=i.return}while(i!==null)}B0(n)}catch(C){t=C,Le===n&&n!==null&&(Le=n=n.return);continue}break}while(!0)}function O0(){var e=Tl.current;return Tl.current=El,e===null?El:e}function Jc(){(De===0||De===3||De===2)&&(De=4),Ke===null||(Lr&268435455)===0&&(zl&268435455)===0||Qn(Ke,He)}function Ll(e,t){var n=J;J|=2;var r=O0();(Ke!==e||He!==t)&&(kn=null,kr(e,t));do try{ky();break}catch(o){K0(e,o)}while(!0);if(Dc(),J=n,Tl.current=r,Le!==null)throw Error(x(261));return Ke=null,He=0,De}function ky(){for(;Le!==null;)A0(Le)}function Ey(){for(;Le!==null&&!J$();)A0(Le)}function A0(e){var t=H0(e.alternate,e,wt);e.memoizedProps=e.pendingProps,t===null?B0(e):Le=t,Qc.current=null}function B0(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=by(n,t,wt),n!==null){Le=n;return}}else{if(n=yy(n,t),n!==null){n.flags&=32767,Le=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{De=6,Le=null;return}}if(t=t.sibling,t!==null){Le=t;return}Le=t=e}while(t!==null);De===0&&(De=5)}function xr(e,t,n){var r=ae,o=zt.transition;try{zt.transition=null,ae=1,Ty(e,t,n,r)}finally{zt.transition=o,ae=r}return null}function Ty(e,t,n,r){do yo();while(Xn!==null);if((J&6)!==0)throw Error(x(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(x(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(ub(e,i),e===Ke&&(Le=Ke=null,He=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||qa||(qa=!0,V0(dl,function(){return yo(),null})),i=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||i){i=zt.transition,zt.transition=null;var a=ae;ae=1;var l=J;J|=4,Qc.current=null,xy(e,n),I0(n,e),Yb(Uu),pl=!!Wu,Uu=Wu=null,e.current=n,wy(n,e,o),eb(),J=l,ae=a,zt.transition=i}else e.current=n;if(qa&&(qa=!1,Xn=e,Pl=o),i=e.pendingLanes,i===0&&(nr=null),rb(n.stateNode,r),bt(e,Te()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(_l)throw _l=!1,e=dc,dc=null,e;return(Pl&1)!==0&&e.tag!==0&&yo(),i=e.pendingLanes,(i&1)!==0?e===fc?$i++:($i=0,fc=e):$i=0,ur(),null}function yo(){if(Xn!==null){var e=vm(Pl),t=zt.transition,n=ae;try{if(zt.transition=null,ae=16>e?16:e,Xn===null)var r=!1;else{if(e=Xn,Xn=null,Pl=0,(J&6)!==0)throw Error(x(331));var o=J;for(J|=4,D=e.current;D!==null;){var i=D,a=i.child;if((D.flags&16)!==0){var l=i.deletions;if(l!==null){for(var s=0;s<l.length;s++){var u=l[s];for(D=u;D!==null;){var c=D;switch(c.tag){case 0:case 11:case 15:hi(8,c,i)}var d=c.child;if(d!==null)d.return=c,D=d;else for(;D!==null;){c=D;var m=c.sibling,g=c.return;if(N0(c),c===u){D=null;break}if(m!==null){m.return=g,D=m;break}D=g}}}var y=i.alternate;if(y!==null){var b=y.child;if(b!==null){y.child=null;do{var R=b.sibling;b.sibling=null,b=R}while(b!==null)}}D=i}}if((i.subtreeFlags&2064)!==0&&a!==null)a.return=i,D=a;else e:for(;D!==null;){if(i=D,(i.flags&2048)!==0)switch(i.tag){case 0:case 11:case 15:hi(9,i,i.return)}var p=i.sibling;if(p!==null){p.return=i.return,D=p;break e}D=i.return}}var f=e.current;for(D=f;D!==null;){a=D;var h=a.child;if((a.subtreeFlags&2064)!==0&&h!==null)h.return=a,D=h;else e:for(a=f;D!==null;){if(l=D,(l.flags&2048)!==0)try{switch(l.tag){case 0:case 11:case 15:Bl(9,l)}}catch(C){ke(l,l.return,C)}if(l===a){D=null;break e}var $=l.sibling;if($!==null){$.return=l.return,D=$;break e}D=l.return}}if(J=o,ur(),hn&&typeof hn.onPostCommitFiberRoot=="function")try{hn.onPostCommitFiberRoot(Rl,e)}catch{}r=!0}return r}finally{ae=n,zt.transition=t}}return!1}function Gp(e,t,n){t=ko(n,t),t=v0(e,t,1),e=tr(e,t,1),t=tt(),e!==null&&(Di(e,1,t),bt(e,t))}function ke(e,t,n){if(e.tag===3)Gp(e,e,n);else for(;t!==null;){if(t.tag===3){Gp(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(nr===null||!nr.has(r))){e=ko(n,e),e=x0(t,e,1),t=tr(t,e,1),e=tt(),t!==null&&(Di(t,1,e),bt(t,e));break}}t=t.return}}function _y(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=tt(),e.pingedLanes|=e.suspendedLanes&n,Ke===e&&(He&n)===n&&(De===4||De===3&&(He&130023424)===He&&500>Te()-Xc?kr(e,0):Yc|=n),bt(e,t)}function z0(e,t){t===0&&((e.mode&1)===0?t=1:(t=Ka,Ka<<=1,(Ka&130023424)===0&&(Ka=4194304)));var n=tt();e=Rn(e,t),e!==null&&(Di(e,t,n),bt(e,n))}function Py(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),z0(e,n)}function Ly(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(x(314))}r!==null&&r.delete(t),z0(e,n)}var H0;H0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||gt.current)ht=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return ht=!1,$y(e,t,n);ht=(e.flags&131072)!==0}else ht=!1,be&&(t.flags&1048576)!==0&&jm(t,vl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ol(e,t),e=t.pendingProps;var o=xo(t,Ye.current);bo(t,n),o=Vc(null,t,r,e,o,n);var i=Wc();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,$t(r)?(i=!0,bl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Oc(t),o.updater=Al,t.stateNode=o,o._reactInternals=t,ec(t,r,e,n),t=rc(null,t,r,!0,i,n)):(t.tag=0,be&&i&&Nc(t),et(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ol(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Ry(r),e=Xt(r,e),o){case 0:t=nc(null,t,r,e,n);break e;case 1:t=Kp(null,t,r,e,n);break e;case 11:t=Dp(null,t,r,e,n);break e;case 14:t=Fp(null,t,r,Xt(r.type,e),n);break e}throw Error(x(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),nc(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),Kp(e,t,r,o,n);case 3:e:{if(k0(t),e===null)throw Error(x(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Zm(e,t),Sl(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=ko(Error(x(423)),t),t=Op(e,t,r,n,o);break e}else if(r!==o){o=ko(Error(x(424)),t),t=Op(e,t,r,n,o);break e}else for(St=er(t.stateNode.containerInfo.firstChild),Ct=t,be=!0,Zt=null,n=Xm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(wo(),r===o){t=Mn(e,t,n);break e}et(e,t,r,n)}t=t.child}return t;case 5:return Jm(t),e===null&&qu(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,ju(r,o)?a=null:i!==null&&ju(r,i)&&(t.flags|=32),C0(e,t),et(e,t,a,n),t.child;case 6:return e===null&&qu(t),null;case 13:return E0(e,t,n);case 4:return Ac(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=So(t,null,r,n):et(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),Dp(e,t,r,o,n);case 7:return et(e,t,t.pendingProps,n),t.child;case 8:return et(e,t,t.pendingProps.children,n),t.child;case 12:return et(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,de(xl,r._currentValue),r._currentValue=a,i!==null)if(tn(i.value,a)){if(i.children===o.children&&!gt.current){t=Mn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=Pn(-1,n&-n),s.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Zu(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(x(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Zu(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}et(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,bo(t,n),o=Ht(o),r=r(o),t.flags|=1,et(e,t,r,n),t.child;case 14:return r=t.type,o=Xt(r,t.pendingProps),o=Xt(r.type,o),Fp(e,t,r,o,n);case 15:return w0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),ol(e,t),t.tag=1,$t(r)?(e=!0,bl(t)):e=!1,bo(t,n),y0(t,r,o),ec(t,r,o,n),rc(null,t,r,!0,e,n);case 19:return T0(e,t,n);case 22:return S0(e,t,n)}throw Error(x(156,t.tag))};function V0(e,t){return gm(e,t)}function Ny(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bt(e,t,n,r){return new Ny(e,t,n,r)}function ed(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ry(e){if(typeof e=="function")return ed(e)?1:0;if(e!=null){if(e=e.$$typeof,e===yc)return 11;if(e===vc)return 14}return 2}function or(e,t){var n=e.alternate;return n===null?(n=Bt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ll(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")ed(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case no:return Er(n.children,o,i,t);case bc:a=8,o|=8;break;case Cu:return e=Bt(12,n,t,o|2),e.elementType=Cu,e.lanes=i,e;case ku:return e=Bt(13,n,t,o),e.elementType=ku,e.lanes=i,e;case Eu:return e=Bt(19,n,t,o),e.elementType=Eu,e.lanes=i,e;case Jp:return Hl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case qp:a=10;break e;case Zp:a=9;break e;case yc:a=11;break e;case vc:a=14;break e;case Un:a=16,r=null;break e}throw Error(x(130,e==null?e:typeof e,""))}return t=Bt(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Er(e,t,n,r){return e=Bt(7,e,r,t),e.lanes=n,e}function Hl(e,t,n,r){return e=Bt(22,e,r,t),e.elementType=Jp,e.lanes=n,e.stateNode={isHidden:!1},e}function xu(e,t,n){return e=Bt(6,e,null,t),e.lanes=n,e}function wu(e,t,n){return t=Bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function My(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=iu(0),this.expirationTimes=iu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=iu(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function td(e,t,n,r,o,i,a,l,s){return e=new My(e,t,n,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Bt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Oc(i),e}function Iy(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:to,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function W0(e){if(!e)return ar;e=e._reactInternals;e:{if(Mr(e)!==e||e.tag!==1)throw Error(x(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if($t(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(x(171))}if(e.tag===1){var n=e.type;if($t(n))return Wm(e,n,t)}return t}function U0(e,t,n,r,o,i,a,l,s){return e=td(n,r,!0,e,o,i,a,l,s),e.context=W0(null),n=e.current,r=tt(),o=rr(n),i=Pn(r,o),i.callback=t??null,tr(n,i,o),e.current.lanes=o,Di(e,o,r),bt(e,r),e}function Vl(e,t,n,r){var o=t.current,i=tt(),a=rr(o);return n=W0(n),t.context===null?t.context=n:t.pendingContext=n,t=Pn(i,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=tr(o,t,a),e!==null&&(en(e,o,a,i),tl(e,o,a)),a}function Nl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Qp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function nd(e,t){Qp(e,t),(e=e.alternate)&&Qp(e,t)}function Dy(){return null}var j0=typeof reportError=="function"?reportError:function(e){console.error(e)};function rd(e){this._internalRoot=e}Wl.prototype.render=rd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(x(409));Vl(e,t,null,null)};Wl.prototype.unmount=rd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Nr(function(){Vl(null,e,null,null)}),t[Nn]=null}};function Wl(e){this._internalRoot=e}Wl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Sm();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Gn.length&&t!==0&&t<Gn[n].priority;n++);Gn.splice(n,0,e),n===0&&km(e)}};function od(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ul(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Yp(){}function Fy(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=Nl(a);i.call(u)}}var a=U0(t,r,e,0,null,!1,!1,"",Yp);return e._reactRootContainer=a,e[Nn]=a.current,Ei(e.nodeType===8?e.parentNode:e),Nr(),a}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var l=r;r=function(){var u=Nl(s);l.call(u)}}var s=td(e,0,!1,null,null,!1,!1,"",Yp);return e._reactRootContainer=s,e[Nn]=s.current,Ei(e.nodeType===8?e.parentNode:e),Nr(function(){Vl(t,s,n,r)}),s}function jl(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if(typeof o=="function"){var l=o;o=function(){var s=Nl(a);l.call(s)}}Vl(t,a,e,o)}else a=Fy(n,t,e,o,r);return Nl(a)}xm=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=li(t.pendingLanes);n!==0&&(Sc(t,n|1),bt(t,Te()),(J&6)===0&&(Eo=Te()+500,ur()))}break;case 13:Nr(function(){var r=Rn(e,1);if(r!==null){var o=tt();en(r,e,1,o)}}),nd(e,1)}};Cc=function(e){if(e.tag===13){var t=Rn(e,134217728);if(t!==null){var n=tt();en(t,e,134217728,n)}nd(e,134217728)}};wm=function(e){if(e.tag===13){var t=rr(e),n=Rn(e,t);if(n!==null){var r=tt();en(n,e,t,r)}nd(e,t)}};Sm=function(){return ae};Cm=function(e,t){var n=ae;try{return ae=e,t()}finally{ae=n}};Fu=function(e,t,n){switch(t){case"input":if(Pu(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Fl(r);if(!o)throw Error(x(90));tm(r),Pu(r,o)}}}break;case"textarea":rm(e,n);break;case"select":t=n.value,t!=null&&mo(e,!!n.multiple,t,!1)}};cm=qc;dm=Nr;var Ky={usingClientEntryPoint:!1,Events:[Ki,ao,Fl,sm,um,qc]},ri={findFiberByHostInstance:wr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Oy={bundleType:ri.bundleType,version:ri.version,rendererPackageName:ri.rendererPackageName,rendererConfig:ri.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:In.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=mm(e),e===null?null:e.stateNode},findFiberByHostInstance:ri.findFiberByHostInstance||Dy,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(oi=__REACT_DEVTOOLS_GLOBAL_HOOK__,!oi.isDisabled&&oi.supportsFiber))try{Rl=oi.inject(Oy),hn=oi}catch{}var oi;Tt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ky;Tt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!od(t))throw Error(x(200));return Iy(e,t,null,n)};Tt.createRoot=function(e,t){if(!od(e))throw Error(x(299));var n=!1,r="",o=j0;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=td(e,1,!1,null,null,n,!1,r,o),e[Nn]=t.current,Ei(e.nodeType===8?e.parentNode:e),new rd(t)};Tt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(x(188)):(e=Object.keys(e).join(","),Error(x(268,e)));return e=mm(t),e=e===null?null:e.stateNode,e};Tt.flushSync=function(e){return Nr(e)};Tt.hydrate=function(e,t,n){if(!Ul(t))throw Error(x(200));return jl(null,e,t,!0,n)};Tt.hydrateRoot=function(e,t,n){if(!od(e))throw Error(x(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",a=j0;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=U0(t,null,e,1,n??null,o,!1,i,a),e[Nn]=t.current,Ei(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Wl(t)};Tt.render=function(e,t,n){if(!Ul(t))throw Error(x(200));return jl(null,e,t,!1,n)};Tt.unmountComponentAtNode=function(e){if(!Ul(e))throw Error(x(40));return e._reactRootContainer?(Nr(function(){jl(null,null,e,!1,function(){e._reactRootContainer=null,e[Nn]=null})}),!0):!1};Tt.unstable_batchedUpdates=qc;Tt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ul(n))throw Error(x(200));if(e==null||e._reactInternals===void 0)throw Error(x(38));return jl(e,t,n,!1,r)};Tt.version="18.3.1-next-f1338f8080-20240426"});var Ir=Gt((_x,Y0)=>{"use strict";function Q0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Q0)}catch(e){console.error(e)}}Q0(),Y0.exports=G0()});var q0=Gt(id=>{"use strict";var X0=Ir();id.createRoot=X0.createRoot,id.hydrateRoot=X0.hydrateRoot;var Px});var eh=Gt(Ql=>{"use strict";var By=K(),zy=Symbol.for("react.element"),Hy=Symbol.for("react.fragment"),Vy=Object.prototype.hasOwnProperty,Wy=By.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Uy={key:!0,ref:!0,__self:!0,__source:!0};function J0(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)Vy.call(t,r)&&!Uy.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:zy,type:e,key:i,ref:a,props:o,_owner:Wy.current}}Ql.Fragment=Hy;Ql.jsx=J0;Ql.jsxs=J0});var he=Gt((Mx,th)=>{"use strict";th.exports=eh()});var rg=Gt(ng=>{"use strict";var Ho=K();function jv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Gv=typeof Object.is=="function"?Object.is:jv,Qv=Ho.useState,Yv=Ho.useEffect,Xv=Ho.useLayoutEffect,qv=Ho.useDebugValue;function Zv(e,t){var n=t(),r=Qv({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return Xv(function(){o.value=n,o.getSnapshot=t,Nd(o)&&i({inst:o})},[e,n,t]),Yv(function(){return Nd(o)&&i({inst:o}),e(function(){Nd(o)&&i({inst:o})})},[e]),qv(n),n}function Nd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Gv(e,n)}catch{return!0}}function Jv(e,t){return t()}var e1=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Jv:Zv;ng.useSyncExternalStore=Ho.useSyncExternalStore!==void 0?Ho.useSyncExternalStore:e1});var ig=Gt((Z3,og)=>{"use strict";og.exports=rg()});var Ca=S(K(),1),h$=S(q0(),1);var ve=S(K(),1);var _t=S(K(),1);var Gl=S(K(),1),Z0="(prefers-reduced-motion: reduce)",Ay=()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia(Z0).matches:!1;function Dr(){let[e,t]=(0,Gl.useState)(Ay);return(0,Gl.useEffect)(()=>{if(typeof window>"u"||typeof window.matchMedia!="function")return;let n=window.matchMedia(Z0);t(n.matches);let r=o=>t(o.matches);return n.addEventListener("change",r),()=>n.removeEventListener("change",r)},[]),e}var Dn=S(he(),1),rt={thumbWidth:"var(--semantic-layout-units-padding-xtight)",thumbRadius:"var(--semantic-layout-units-cornerradius-full)",thumbMin:28,gutter:"var(--semantic-layout-units-padding-xxxtight)",grabZone:16,thumbRest:"var(--pw-scrollbar-thumb-rest)",thumbHover:"var(--pw-scrollbar-thumb-hover)",thumbBlur:"blur(8px) saturate(180%)",thumbEdge:"inset 0 0 0 0.5px color-mix(in srgb, var(--semantic-color-fill-static-neutral-faint) 35%, transparent)",fadeIn:"opacity var(--motion-duration-3) var(--motion-easing-decelerate), background var(--motion-duration-3) var(--motion-easing-standard)",fadeOut:"opacity var(--motion-duration-5) var(--motion-easing-standard), background var(--motion-duration-3) var(--motion-easing-standard)",idleHideMs:500};if(typeof document<"u"&&!document.getElementById("pds-scrollable-base")){let e=document.createElement("style");e.id="pds-scrollable-base",e.textContent=':root,[data-theme="light"]{--pw-scrollbar-thumb-rest:var(--primitive-color-warm-neutral-500-16);--pw-scrollbar-thumb-hover:var(--primitive-color-warm-neutral-500-24)}[data-theme="midnight"],[data-theme="dark"]{--pw-scrollbar-thumb-rest:var(--primitive-color-warm-neutral-100-16);--pw-scrollbar-thumb-hover:var(--primitive-color-warm-neutral-100-24)}.pds-scrollable__view{scrollbar-width:none;-ms-overflow-style:none}.pds-scrollable__view:-webkit-scrollbar{width:0;height:0;display:none}@media (hover: none){.pds-scrollable__grab{pointer-events:none!important}}',document.head.appendChild(e)}function nh({children:e,className:t="",style:n={},viewClassName:r="",viewStyle:o={}}){let i=Dr(),a=(0,_t.useRef)(null),l=(0,_t.useRef)(null),s=(0,_t.useRef)(null),u=(0,_t.useRef)(!1),[c,d]=(0,_t.useState)({h:0,top:0,show:!1}),[m,g]=(0,_t.useState)(!1),[y,b]=(0,_t.useState)(!1),R=(0,_t.useCallback)(()=>{let M=a.current;if(!M)return;let{scrollHeight:F,clientHeight:j,scrollTop:O}=M;if(F<=j+1){d(V=>V.show?{...V,show:!1}:V);return}let I=Math.max(rt.thumbMin,j/F*j),B=O/(F-j)*(j-I);d({h:I,top:B,show:!0})},[]);(0,_t.useEffect)(()=>{R();let M=a.current;if(!M||typeof ResizeObserver>"u")return;let F=new ResizeObserver(R);return F.observe(M),Array.from(M.children).forEach(j=>F.observe(j)),()=>F.disconnect()},[e,R]);let p=()=>{clearTimeout(s.current),s.current=setTimeout(()=>{!l.current&&!u.current&&g(!1)},rt.idleHideMs)},f=()=>{g(!0),p()},h=()=>{R(),f()},$=M=>{M.currentTarget.getBoundingClientRect().right-M.clientX<=rt.grabZone?(u.current=!0,g(!0),clearTimeout(s.current)):u.current&&(u.current=!1,p())},C=()=>{u.current=!1,l.current||p()},E=M=>{M.preventDefault();let F=a.current;if(!F)return;l.current={startY:M.clientY,startTop:F.scrollTop},b(!0),g(!0),clearTimeout(s.current);let j=I=>{let{scrollHeight:B,clientHeight:V}=F,se=Math.max(rt.thumbMin,V/B*V),Me=(B-V)/(V-se);F.scrollTop=l.current.startTop+(I.clientY-l.current.startY)*Me},O=()=>{l.current=null,b(!1),document.removeEventListener("mousemove",j),document.removeEventListener("mouseup",O),f()};document.addEventListener("mousemove",j),document.addEventListener("mouseup",O)},P=c.top,N=c.h;return(0,Dn.jsxs)("div",{className:`pds-scrollable ${t}`,style:{position:"relative",minHeight:0,...n},onMouseMove:$,onMouseLeave:C,children:[(0,Dn.jsx)("div",{ref:a,className:`pds-scrollable__view ${r}`,onScroll:h,style:{height:"100%",overflowY:"auto",overflowX:"hidden",...o},children:e}),c.show&&(0,Dn.jsxs)(Dn.Fragment,{children:[(0,Dn.jsx)("div",{"aria-hidden":"true",style:{position:"absolute",top:P,right:rt.gutter,width:rt.thumbWidth,height:N,borderRadius:rt.thumbRadius,background:y?rt.thumbHover:rt.thumbRest,backdropFilter:rt.thumbBlur,WebkitBackdropFilter:rt.thumbBlur,boxShadow:rt.thumbEdge,opacity:m?1:0,transition:i?"none":m?rt.fadeIn:rt.fadeOut,pointerEvents:"none",zIndex:5}}),(0,Dn.jsx)("div",{"aria-hidden":"true",className:"pds-scrollable__grab",onMouseDown:E,onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),style:{position:"absolute",top:P,right:0,width:rt.grabZone,height:N,pointerEvents:m?"auto":"none",zIndex:6,background:"transparent"}})]})]})}var As=S(Ir(),1);var ye=S(K(),1),l$=S(Ir(),1);var ud=S(K(),1);var Kx=S(K(),1),oh=S(he(),1);var ad={wght:400,GRAD:0,opsz:24},rh={L:{frame:18,wrapper:26},M:{frame:16,wrapper:24},S:{frame:14,wrapper:20}};function Yl({name:e,size:t="M",fill:n=0,color:r,label:o,className:i="",style:a,...l}){let s=typeof t=="number"?t:(rh[t]||rh.M).frame;return(0,oh.jsx)("span",{className:`material-symbols-rounded ${i}`,role:o?"img":void 0,"aria-label":o||void 0,"aria-hidden":o?void 0:!0,style:{fontSize:s,lineHeight:1,display:"block",flexShrink:0,color:r,fontVariationSettings:`'FILL' ${n}, 'wght' ${ad.wght}, 'GRAD' ${ad.GRAD}, 'opsz' ${ad.opsz}`,...a},...l,children:e})}var Xl="pw-focus-ring",ah="pw-focus-ring pw-focus-ring--inset",lh="pw-focus-ring pw-focus-ring--replace",sh="pw-focus-ring pw-focus-ring--layer",ld=`
|
|
8
|
+
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function xu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function rc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var hy=typeof WeakMap=="function"?WeakMap:Map;function x0(e,t,n){n=Pn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ll||(Ll=!0,pc=r),rc(e,t)},n}function w0(e,t,n){n=Pn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){rc(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){rc(e,t),typeof r!="function"&&(nr===null?nr=new Set([this]):nr.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function Mp(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new hy;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Py.bind(null,e,t,n),t.then(e,e))}function Ip(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Dp(e,t,n,r,o){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Pn(-1,1),t.tag=2,tr(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var gy=In.ReactCurrentOwner,ht=!1;function et(e,t,n,r){t.child=e===null?qm(t,null,n,r):Co(t,e.child,n,r)}function Fp(e,t,n,r,o){n=n.render;var i=t.ref;return yo(t,o),r=Uc(e,t,n,r,i,o),n=jc(),e!==null&&!ht?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Mn(e,t,o)):(be&&n&&Mc(t),t.flags|=1,et(e,t,r,o),t.child)}function Kp(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!nd(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,S0(e,t,i,r,o)):(e=ul(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,(e.lanes&o)===0){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:_i,n(a,r)&&e.ref===t.ref)return Mn(e,t,o)}return t.flags|=1,e=or(i,r),e.ref=t.ref,e.return=t,t.child=e}function S0(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(_i(i,r)&&e.ref===t.ref)if(ht=!1,t.pendingProps=r=i,(e.lanes&o)!==0)(e.flags&131072)!==0&&(ht=!0);else return t.lanes=e.lanes,Mn(e,t,o)}return oc(e,t,n,r,o)}function C0(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},de(mo,wt),wt|=n;else{if((n&1073741824)===0)return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,de(mo,wt),wt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,de(mo,wt),wt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,de(mo,wt),wt|=r;return et(e,t,o,n),t.child}function k0(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function oc(e,t,n,r,o){var i=$t(n)?Tr:Ye.current;return i=wo(t,i),yo(t,o),n=Uc(e,t,n,r,i,o),r=jc(),e!==null&&!ht?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Mn(e,t,o)):(be&&r&&Mc(t),t.flags|=1,et(e,t,n,o),t.child)}function Op(e,t,n,r,o){if($t(n)){var i=!0;vl(t)}else i=!1;if(yo(t,o),t.stateNode===null)al(e,t),v0(t,n,r),nc(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ht(u):(u=$t(n)?Tr:Ye.current,u=wo(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||s!==u)&&Rp(t,a,r,u),jn=!1;var p=t.memoizedState;a.state=p,kl(t,r,a,o),s=t.memoizedState,l!==r||p!==s||gt.current||jn?(typeof c=="function"&&(tc(t,n,c,r),s=t.memoizedState),(l=jn||Np(t,n,l,r,p,s,u))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=u,r=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Jm(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Xt(t.type,l),a.props=u,d=t.pendingProps,p=a.context,s=n.contextType,typeof s=="object"&&s!==null?s=Ht(s):(s=$t(n)?Tr:Ye.current,s=wo(t,s));var g=n.getDerivedStateFromProps;(c=typeof g=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==d||p!==s)&&Rp(t,a,r,s),jn=!1,p=t.memoizedState,a.state=p,kl(t,r,a,o);var y=t.memoizedState;l!==d||p!==y||gt.current||jn?(typeof g=="function"&&(tc(t,n,g,r),y=t.memoizedState),(u=jn||Np(t,n,u,r,p,y,s)||!1)?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,y,s),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,y,s)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),a.props=r,a.state=y,a.context=s,r=u):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return ic(e,t,n,r,i,o)}function ic(e,t,n,r,o,i){k0(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&Sp(t,n,!1),Mn(e,t,i);r=t.stateNode,gy.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Co(t,e.child,null,i),t.child=Co(t,null,l,i)):et(e,t,l,i),t.memoizedState=r.state,o&&Sp(t,n,!0),t.child}function E0(e){var t=e.stateNode;t.pendingContext?wp(e,t.pendingContext,t.pendingContext!==t.context):t.context&&wp(e,t.context,!1),Bc(e,t.containerInfo)}function Ap(e,t,n,r,o){return So(),Dc(o),t.flags|=256,et(e,t,n,r),t.child}var ac={dehydrated:null,treeContext:null,retryLane:0};function lc(e){return{baseLanes:e,cachePool:null,transitions:null}}function T0(e,t,n){var r=t.pendingProps,o=xe.current,i=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),de(xe,o&1),e===null)return Ju(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(a=r.children,e=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},(r&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=a):i=Wl(a,r,0,null),e=Er(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=lc(n),t.memoizedState=ac,e):Yc(t,a));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return $y(e,t,a,r,l,o,n);if(i){i=r.fallback,a=t.mode,o=e.child,l=o.sibling;var s={mode:"hidden",children:r.children};return(a&1)===0&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=or(o,s),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?i=or(l,i):(i=Er(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?lc(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=ac,r}return i=e.child,e=i.sibling,r=or(i,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Yc(e,t){return t=Wl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function qa(e,t,n,r){return r!==null&&Dc(r),Co(t,e.child,null,n),e=Yc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function $y(e,t,n,r,o,i,a){if(n)return t.flags&256?(t.flags&=-257,r=xu(Error(x(422))),qa(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Wl({mode:"visible",children:r.children},o,0,null),i=Er(i,o,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,(t.mode&1)!==0&&Co(t,e.child,null,a),t.child.memoizedState=lc(a),t.memoizedState=ac,i);if((t.mode&1)===0)return qa(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(x(419)),r=xu(i,r,void 0),qa(e,t,a,r)}if(l=(a&e.childLanes)!==0,ht||l){if(r=Ke,r!==null){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=(o&(r.suspendedLanes|a))!==0?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Rn(e,o),en(r,e,o,-1))}return td(),r=xu(Error(x(421))),qa(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Ly.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,St=er(o.nextSibling),Ct=t,be=!0,Zt=null,e!==null&&(Ot[At++]=Tn,Ot[At++]=_n,Ot[At++]=_r,Tn=e.id,_n=e.overflow,_r=t),t=Yc(t,r.children),t.flags|=4096,t)}function zp(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ec(e.return,t,n)}function wu(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function _0(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(et(e,t,r.children,n),r=xe.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&zp(e,n,t);else if(e.tag===19)zp(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(de(xe,r),(t.mode&1)===0)t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&El(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),wu(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&El(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}wu(t,!0,n,null,i);break;case"together":wu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function al(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Mn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Lr|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(x(153));if(t.child!==null){for(e=t.child,n=or(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=or(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function by(e,t,n){switch(t.tag){case 3:E0(t),So();break;case 5:e0(t);break;case 1:$t(t.type)&&vl(t);break;case 4:Bc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;de(Sl,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(de(xe,xe.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?T0(e,t,n):(de(xe,xe.current&1),e=Mn(e,t,n),e!==null?e.sibling:null);de(xe,xe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return _0(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),de(xe,xe.current),r)break;return null;case 22:case 23:return t.lanes=0,C0(e,t,n)}return Mn(e,t,n)}var P0,sc,L0,N0;P0=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};sc=function(){};L0=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Cr(gn.current);var i=null;switch(n){case"input":o=Lu(e,o),r=Lu(e,r),i=[];break;case"select":o=Se({},o,{value:void 0}),r=Se({},r,{value:void 0}),i=[];break;case"textarea":o=Mu(e,o),r=Mu(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=bl)}Du(n,r);var a;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var l=o[u];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(xi.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var s=r[u];if(l=o?.[u],r.hasOwnProperty(u)&&s!==l&&(s!=null||l!=null))if(u==="style")if(l){for(a in l)!l.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in s)s.hasOwnProperty(a)&&l[a]!==s[a]&&(n||(n={}),n[a]=s[a])}else n||(i||(i=[]),i.push(u,n)),n=s;else u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(i=i||[]).push(u,s)):u==="children"?typeof s!="string"&&typeof s!="number"||(i=i||[]).push(u,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(xi.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&pe("scroll",e),i||l===s||(i=[])):(i=i||[]).push(u,s))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};N0=function(e,t,n,r){n!==r&&(t.flags|=4)};function ii(e,t){if(!be)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ge(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function yy(e,t,n){var r=t.pendingProps;switch(Ic(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ge(t),null;case 1:return $t(t.type)&&yl(),Ge(t),null;case 3:return r=t.stateNode,ko(),me(gt),me(Ye),Vc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ya(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Zt!==null&&(gc(Zt),Zt=null))),sc(e,t),Ge(t),null;case 5:Hc(t);var o=Cr(Mi.current);if(n=t.type,e!==null&&t.stateNode!=null)L0(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(x(166));return Ge(t),null}if(e=Cr(gn.current),Ya(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[mn]=t,r[Ni]=i,e=(t.mode&1)!==0,n){case"dialog":pe("cancel",r),pe("close",r);break;case"iframe":case"object":case"embed":pe("load",r);break;case"video":case"audio":for(o=0;o<di.length;o++)pe(di[o],r);break;case"source":pe("error",r);break;case"img":case"image":case"link":pe("error",r),pe("load",r);break;case"details":pe("toggle",r);break;case"input":Qf(r,i),pe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},pe("invalid",r);break;case"textarea":Xf(r,i),pe("invalid",r)}Du(n,i),o=null;for(var a in i)if(i.hasOwnProperty(a)){var l=i[a];a==="children"?typeof l=="string"?r.textContent!==l&&(i.suppressHydrationWarning!==!0&&Qa(r.textContent,l,e),o=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&Qa(r.textContent,l,e),o=["children",""+l]):xi.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&pe("scroll",r)}switch(n){case"input":Fa(r),Yf(r,i,!0);break;case"textarea":Fa(r),qf(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=bl)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=im(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[mn]=t,e[Ni]=r,P0(e,t,!1,!1),t.stateNode=e;e:{switch(a=Fu(n,r),n){case"dialog":pe("cancel",e),pe("close",e),o=r;break;case"iframe":case"object":case"embed":pe("load",e),o=r;break;case"video":case"audio":for(o=0;o<di.length;o++)pe(di[o],e);o=r;break;case"source":pe("error",e),o=r;break;case"img":case"image":case"link":pe("error",e),pe("load",e),o=r;break;case"details":pe("toggle",e),o=r;break;case"input":Qf(e,r),o=Lu(e,r),pe("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Se({},r,{value:void 0}),pe("invalid",e);break;case"textarea":Xf(e,r),o=Mu(e,r),pe("invalid",e);break;default:o=r}Du(n,o),l=o;for(i in l)if(l.hasOwnProperty(i)){var s=l[i];i==="style"?sm(e,s):i==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&am(e,s)):i==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&wi(e,s):typeof s=="number"&&wi(e,""+s):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(xi.hasOwnProperty(i)?s!=null&&i==="onScroll"&&pe("scroll",e):s!=null&&yc(e,i,s,a))}switch(n){case"input":Fa(e),Yf(e,r,!1);break;case"textarea":Fa(e),qf(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ir(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?ho(e,!!r.multiple,i,!1):r.defaultValue!=null&&ho(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=bl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ge(t),null;case 6:if(e&&t.stateNode!=null)N0(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(x(166));if(n=Cr(Mi.current),Cr(gn.current),Ya(t)){if(r=t.stateNode,n=t.memoizedProps,r[mn]=t,(i=r.nodeValue!==n)&&(e=Ct,e!==null))switch(e.tag){case 3:Qa(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Qa(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[mn]=t,t.stateNode=r}return Ge(t),null;case 13:if(me(xe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(be&&St!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Ym(),So(),t.flags|=98560,i=!1;else if(i=Ya(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(x(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(x(317));i[mn]=t}else So(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ge(t),i=!1}else Zt!==null&&(gc(Zt),Zt=null),i=!0;if(!i)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(xe.current&1)!==0?De===0&&(De=3):td())),t.updateQueue!==null&&(t.flags|=4),Ge(t),null);case 4:return ko(),sc(e,t),e===null&&Pi(t.stateNode.containerInfo),Ge(t),null;case 10:return Oc(t.type._context),Ge(t),null;case 17:return $t(t.type)&&yl(),Ge(t),null;case 19:if(me(xe),i=t.memoizedState,i===null)return Ge(t),null;if(r=(t.flags&128)!==0,a=i.rendering,a===null)if(r)ii(i,!1);else{if(De!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(a=El(e),a!==null){for(t.flags|=128,ii(i,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return de(xe,xe.current&1|2),t.child}e=e.sibling}i.tail!==null&&Te()>To&&(t.flags|=128,r=!0,ii(i,!1),t.lanes=4194304)}else{if(!r)if(e=El(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ii(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!be)return Ge(t),null}else 2*Te()-i.renderingStartTime>To&&n!==1073741824&&(t.flags|=128,r=!0,ii(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Te(),t.sibling=null,n=xe.current,de(xe,r?n&1|2:n&1),t):(Ge(t),null);case 22:case 23:return ed(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(wt&1073741824)!==0&&(Ge(t),t.subtreeFlags&6&&(t.flags|=8192)):Ge(t),null;case 24:return null;case 25:return null}throw Error(x(156,t.tag))}function vy(e,t){switch(Ic(t),t.tag){case 1:return $t(t.type)&&yl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ko(),me(gt),me(Ye),Vc(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Hc(t),null;case 13:if(me(xe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(x(340));So()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return me(xe),null;case 4:return ko(),null;case 10:return Oc(t.type._context),null;case 22:case 23:return ed(),null;case 24:return null;default:return null}}var Za=!1,Qe=!1,xy=typeof WeakSet=="function"?WeakSet:Set,I=null;function po(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ke(e,t,r)}else n.current=null}function uc(e,t,n){try{n()}catch(r){ke(e,t,r)}}var Bp=!1;function wy(e,t){if(ju=hl,e=Fm(),Rc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,l=-1,s=-1,u=0,c=0,d=e,p=null;t:for(;;){for(var g;d!==n||o!==0&&d.nodeType!==3||(l=a+o),d!==i||r!==0&&d.nodeType!==3||(s=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(g=d.firstChild)!==null;)p=d,d=g;for(;;){if(d===e)break t;if(p===n&&++u===o&&(l=a),p===i&&++c===r&&(s=a),(g=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=g}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Gu={focusedElem:e,selectionRange:n},hl=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;try{var y=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var b=y.memoizedProps,D=y.memoizedState,m=t.stateNode,f=m.getSnapshotBeforeUpdate(t.elementType===t.type?b:Xt(t.type,b),D);m.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(x(163))}}catch($){ke(t,t.return,$)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return y=Bp,Bp=!1,y}function bi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&uc(t,n,i)}o=o.next}while(o!==r)}}function Hl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function cc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function R0(e){var t=e.alternate;t!==null&&(e.alternate=null,R0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[mn],delete t[Ni],delete t[Xu],delete t[oy],delete t[iy])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function M0(e){return e.tag===5||e.tag===3||e.tag===4}function Hp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||M0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function dc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=bl));else if(r!==4&&(e=e.child,e!==null))for(dc(e,t,n),e=e.sibling;e!==null;)dc(e,t,n),e=e.sibling}function fc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(fc(e,t,n),e=e.sibling;e!==null;)fc(e,t,n),e=e.sibling}var Be=null,qt=!1;function Wn(e,t,n){for(n=n.child;n!==null;)I0(e,t,n),n=n.sibling}function I0(e,t,n){if(hn&&typeof hn.onCommitFiberUnmount=="function")try{hn.onCommitFiberUnmount(Il,n)}catch{}switch(n.tag){case 5:Qe||po(n,t);case 6:var r=Be,o=qt;Be=null,Wn(e,t,n),Be=r,qt=o,Be!==null&&(qt?(e=Be,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Be.removeChild(n.stateNode));break;case 18:Be!==null&&(qt?(e=Be,n=n.stateNode,e.nodeType===8?hu(e.parentNode,n):e.nodeType===1&&hu(e,n),Ei(e)):hu(Be,n.stateNode));break;case 4:r=Be,o=qt,Be=n.stateNode.containerInfo,qt=!0,Wn(e,t,n),Be=r,qt=o;break;case 0:case 11:case 14:case 15:if(!Qe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&uc(n,t,a),o=o.next}while(o!==r)}Wn(e,t,n);break;case 1:if(!Qe&&(po(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ke(n,t,l)}Wn(e,t,n);break;case 21:Wn(e,t,n);break;case 22:n.mode&1?(Qe=(r=Qe)||n.memoizedState!==null,Wn(e,t,n),Qe=r):Wn(e,t,n);break;default:Wn(e,t,n)}}function Vp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new xy),t.forEach(function(r){var o=Ny.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Yt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,a=t,l=a;e:for(;l!==null;){switch(l.tag){case 5:Be=l.stateNode,qt=!1;break e;case 3:Be=l.stateNode.containerInfo,qt=!0;break e;case 4:Be=l.stateNode.containerInfo,qt=!0;break e}l=l.return}if(Be===null)throw Error(x(160));I0(i,a,o),Be=null,qt=!1;var s=o.alternate;s!==null&&(s.return=null),o.return=null}catch(u){ke(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)D0(t,e),t=t.sibling}function D0(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Yt(t,e),fn(e),r&4){try{bi(3,e,e.return),Hl(3,e)}catch(b){ke(e,e.return,b)}try{bi(5,e,e.return)}catch(b){ke(e,e.return,b)}}break;case 1:Yt(t,e),fn(e),r&512&&n!==null&&po(n,n.return);break;case 5:if(Yt(t,e),fn(e),r&512&&n!==null&&po(n,n.return),e.flags&32){var o=e.stateNode;try{wi(o,"")}catch(b){ke(e,e.return,b)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,a=n!==null?n.memoizedProps:i,l=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&rm(o,i),Fu(l,a);var u=Fu(l,i);for(a=0;a<s.length;a+=2){var c=s[a],d=s[a+1];c==="style"?sm(o,d):c==="dangerouslySetInnerHTML"?am(o,d):c==="children"?wi(o,d):yc(o,c,d,u)}switch(l){case"input":Nu(o,i);break;case"textarea":om(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var g=i.value;g!=null?ho(o,!!i.multiple,g,!1):p!==!!i.multiple&&(i.defaultValue!=null?ho(o,!!i.multiple,i.defaultValue,!0):ho(o,!!i.multiple,i.multiple?[]:"",!1))}o[Ni]=i}catch(b){ke(e,e.return,b)}}break;case 6:if(Yt(t,e),fn(e),r&4){if(e.stateNode===null)throw Error(x(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(b){ke(e,e.return,b)}}break;case 3:if(Yt(t,e),fn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ei(t.containerInfo)}catch(b){ke(e,e.return,b)}break;case 4:Yt(t,e),fn(e);break;case 13:Yt(t,e),fn(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(Zc=Te())),r&4&&Vp(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Qe=(u=Qe)||c,Yt(t,e),Qe=u):Yt(t,e),fn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&(e.mode&1)!==0)for(I=e,c=e.child;c!==null;){for(d=I=c;I!==null;){switch(p=I,g=p.child,p.tag){case 0:case 11:case 14:case 15:bi(4,p,p.return);break;case 1:po(p,p.return);var y=p.stateNode;if(typeof y.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(b){ke(r,n,b)}}break;case 5:po(p,p.return);break;case 22:if(p.memoizedState!==null){Up(d);continue}}g!==null?(g.return=p,I=g):Up(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{o=d.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=d.stateNode,s=d.memoizedProps.style,a=s!=null&&s.hasOwnProperty("display")?s.display:null,l.style.display=lm("display",a))}catch(b){ke(e,e.return,b)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(b){ke(e,e.return,b)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Yt(t,e),fn(e),r&4&&Vp(e);break;case 21:break;default:Yt(t,e),fn(e)}}function fn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(M0(n)){var r=n;break e}n=n.return}throw Error(x(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(wi(o,""),r.flags&=-33);var i=Hp(e);fc(e,i,o);break;case 3:case 4:var a=r.stateNode.containerInfo,l=Hp(e);dc(e,l,a);break;default:throw Error(x(161))}}catch(s){ke(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Sy(e,t,n){I=e,F0(e,t,n)}function F0(e,t,n){for(var r=(e.mode&1)!==0;I!==null;){var o=I,i=o.child;if(o.tag===22&&r){var a=o.memoizedState!==null||Za;if(!a){var l=o.alternate,s=l!==null&&l.memoizedState!==null||Qe;l=Za;var u=Qe;if(Za=a,(Qe=s)&&!u)for(I=o;I!==null;)a=I,s=a.child,a.tag===22&&a.memoizedState!==null?jp(o):s!==null?(s.return=a,I=s):jp(o);for(;i!==null;)I=i,F0(i,t,n),i=i.sibling;I=o,Za=l,Qe=u}Wp(e,t,n)}else(o.subtreeFlags&8772)!==0&&i!==null?(i.return=o,I=i):Wp(e,t,n)}}function Wp(e){for(;I!==null;){var t=I;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Qe||Hl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Qe)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Xt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&_p(t,i,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}_p(t,a,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&Ei(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(x(163))}Qe||t.flags&512&&cc(t)}catch(p){ke(t,t.return,p)}}if(t===e){I=null;break}if(n=t.sibling,n!==null){n.return=t.return,I=n;break}I=t.return}}function Up(e){for(;I!==null;){var t=I;if(t===e){I=null;break}var n=t.sibling;if(n!==null){n.return=t.return,I=n;break}I=t.return}}function jp(e){for(;I!==null;){var t=I;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Hl(4,t)}catch(s){ke(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(s){ke(t,o,s)}}var i=t.return;try{cc(t)}catch(s){ke(t,i,s)}break;case 5:var a=t.return;try{cc(t)}catch(s){ke(t,a,s)}}}catch(s){ke(t,t.return,s)}if(t===e){I=null;break}var l=t.sibling;if(l!==null){l.return=t.return,I=l;break}I=t.return}}var Cy=Math.ceil,Pl=In.ReactCurrentDispatcher,Xc=In.ReactCurrentOwner,Bt=In.ReactCurrentBatchConfig,J=0,Ke=null,Le=null,He=0,wt=0,mo=sr(0),De=0,Ki=null,Lr=0,Vl=0,qc=0,yi=null,mt=null,Zc=0,To=1/0,kn=null,Ll=!1,pc=null,nr=null,Ja=!1,Xn=null,Nl=0,vi=0,mc=null,ll=-1,sl=0;function tt(){return(J&6)!==0?Te():ll!==-1?ll:ll=Te()}function rr(e){return(e.mode&1)===0?1:(J&2)!==0&&He!==0?He&-He:ly.transition!==null?(sl===0&&(sl=vm()),sl):(e=ae,e!==0||(e=window.event,e=e===void 0?16:Tm(e.type)),e)}function en(e,t,n,r){if(50<vi)throw vi=0,mc=null,Error(x(185));Oi(e,n,r),((J&2)===0||e!==Ke)&&(e===Ke&&((J&2)===0&&(Vl|=n),De===4&&Qn(e,He)),bt(e,r),n===1&&J===0&&(t.mode&1)===0&&(To=Te()+500,Al&&ur()))}function bt(e,t){var n=e.callbackNode;ub(e,t);var r=ml(e,e===Ke?He:0);if(r===0)n!==null&&ep(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&ep(n),t===1)e.tag===0?ay(Gp.bind(null,e)):jm(Gp.bind(null,e)),ny(function(){(J&6)===0&&ur()}),n=null;else{switch(xm(r)){case 1:n=Cc;break;case 4:n=bm;break;case 16:n=pl;break;case 536870912:n=ym;break;default:n=pl}n=W0(n,K0.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function K0(e,t){if(ll=-1,sl=0,(J&6)!==0)throw Error(x(327));var n=e.callbackNode;if(vo()&&e.callbackNode!==n)return null;var r=ml(e,e===Ke?He:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=Rl(e,r);else{t=r;var o=J;J|=2;var i=A0();(Ke!==e||He!==t)&&(kn=null,To=Te()+500,kr(e,t));do try{Ty();break}catch(l){O0(e,l)}while(!0);Kc(),Pl.current=i,J=o,Le!==null?t=0:(Ke=null,He=0,t=De)}if(t!==0){if(t===2&&(o=Bu(e),o!==0&&(r=o,t=hc(e,o))),t===1)throw n=Ki,kr(e,0),Qn(e,r),bt(e,Te()),n;if(t===6)Qn(e,r);else{if(o=e.current.alternate,(r&30)===0&&!ky(o)&&(t=Rl(e,r),t===2&&(i=Bu(e),i!==0&&(r=i,t=hc(e,i))),t===1))throw n=Ki,kr(e,0),Qn(e,r),bt(e,Te()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(x(345));case 2:xr(e,mt,kn);break;case 3:if(Qn(e,r),(r&130023424)===r&&(t=Zc+500-Te(),10<t)){if(ml(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){tt(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Yu(xr.bind(null,e,mt,kn),t);break}xr(e,mt,kn);break;case 4:if(Qn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-Jt(r);i=1<<a,a=t[a],a>o&&(o=a),r&=~i}if(r=o,r=Te()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cy(r/1960))-r,10<r){e.timeoutHandle=Yu(xr.bind(null,e,mt,kn),r);break}xr(e,mt,kn);break;case 5:xr(e,mt,kn);break;default:throw Error(x(329))}}}return bt(e,Te()),e.callbackNode===n?K0.bind(null,e):null}function hc(e,t){var n=yi;return e.current.memoizedState.isDehydrated&&(kr(e,t).flags|=256),e=Rl(e,t),e!==2&&(t=mt,mt=n,t!==null&&gc(t)),e}function gc(e){mt===null?mt=e:mt.push.apply(mt,e)}function ky(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!tn(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Qn(e,t){for(t&=~qc,t&=~Vl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Jt(t),r=1<<n;e[n]=-1,t&=~r}}function Gp(e){if((J&6)!==0)throw Error(x(327));vo();var t=ml(e,0);if((t&1)===0)return bt(e,Te()),null;var n=Rl(e,t);if(e.tag!==0&&n===2){var r=Bu(e);r!==0&&(t=r,n=hc(e,r))}if(n===1)throw n=Ki,kr(e,0),Qn(e,t),bt(e,Te()),n;if(n===6)throw Error(x(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xr(e,mt,kn),bt(e,Te()),null}function Jc(e,t){var n=J;J|=1;try{return e(t)}finally{J=n,J===0&&(To=Te()+500,Al&&ur())}}function Nr(e){Xn!==null&&Xn.tag===0&&(J&6)===0&&vo();var t=J;J|=1;var n=Bt.transition,r=ae;try{if(Bt.transition=null,ae=1,e)return e()}finally{ae=r,Bt.transition=n,J=t,(J&6)===0&&ur()}}function ed(){wt=mo.current,me(mo)}function kr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,ty(n)),Le!==null)for(n=Le.return;n!==null;){var r=n;switch(Ic(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&yl();break;case 3:ko(),me(gt),me(Ye),Vc();break;case 5:Hc(r);break;case 4:ko();break;case 13:me(xe);break;case 19:me(xe);break;case 10:Oc(r.type._context);break;case 22:case 23:ed()}n=n.return}if(Ke=e,Le=e=or(e.current,null),He=wt=t,De=0,Ki=null,qc=Vl=Lr=0,mt=yi=null,Sr!==null){for(t=0;t<Sr.length;t++)if(n=Sr[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var a=i.next;i.next=o,r.next=a}n.pending=r}Sr=null}return e}function O0(e,t){do{var n=Le;try{if(Kc(),ol.current=_l,Tl){for(var r=we.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Tl=!1}if(Pr=0,Fe=Ie=we=null,$i=!1,Ii=0,Xc.current=null,n===null||n.return===null){De=1,Ki=t,Le=null;break}e:{var i=e,a=n.return,l=n,s=t;if(t=He,l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var u=s,c=l,d=c.tag;if((c.mode&1)===0&&(d===0||d===11||d===15)){var p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.lanes):(c.updateQueue=null,c.memoizedState=null)}var g=Ip(a);if(g!==null){g.flags&=-257,Dp(g,a,l,i,t),g.mode&1&&Mp(i,u,t),t=g,s=u;var y=t.updateQueue;if(y===null){var b=new Set;b.add(s),t.updateQueue=b}else y.add(s);break e}else{if((t&1)===0){Mp(i,u,t),td();break e}s=Error(x(426))}}else if(be&&l.mode&1){var D=Ip(a);if(D!==null){(D.flags&65536)===0&&(D.flags|=256),Dp(D,a,l,i,t),Dc(Eo(s,l));break e}}i=s=Eo(s,l),De!==4&&(De=2),yi===null?yi=[i]:yi.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=x0(i,s,t);Tp(i,m);break e;case 1:l=s;var f=i.type,h=i.stateNode;if((i.flags&128)===0&&(typeof f.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(nr===null||!nr.has(h)))){i.flags|=65536,t&=-t,i.lanes|=t;var $=w0(i,l,t);Tp(i,$);break e}}i=i.return}while(i!==null)}B0(n)}catch(C){t=C,Le===n&&n!==null&&(Le=n=n.return);continue}break}while(!0)}function A0(){var e=Pl.current;return Pl.current=_l,e===null?_l:e}function td(){(De===0||De===3||De===2)&&(De=4),Ke===null||(Lr&268435455)===0&&(Vl&268435455)===0||Qn(Ke,He)}function Rl(e,t){var n=J;J|=2;var r=A0();(Ke!==e||He!==t)&&(kn=null,kr(e,t));do try{Ey();break}catch(o){O0(e,o)}while(!0);if(Kc(),J=n,Pl.current=r,Le!==null)throw Error(x(261));return Ke=null,He=0,De}function Ey(){for(;Le!==null;)z0(Le)}function Ty(){for(;Le!==null&&!eb();)z0(Le)}function z0(e){var t=V0(e.alternate,e,wt);e.memoizedProps=e.pendingProps,t===null?B0(e):Le=t,Xc.current=null}function B0(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=yy(n,t,wt),n!==null){Le=n;return}}else{if(n=vy(n,t),n!==null){n.flags&=32767,Le=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{De=6,Le=null;return}}if(t=t.sibling,t!==null){Le=t;return}Le=t=e}while(t!==null);De===0&&(De=5)}function xr(e,t,n){var r=ae,o=Bt.transition;try{Bt.transition=null,ae=1,_y(e,t,n,r)}finally{Bt.transition=o,ae=r}return null}function _y(e,t,n,r){do vo();while(Xn!==null);if((J&6)!==0)throw Error(x(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(x(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(cb(e,i),e===Ke&&(Le=Ke=null,He=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Ja||(Ja=!0,W0(pl,function(){return vo(),null})),i=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||i){i=Bt.transition,Bt.transition=null;var a=ae;ae=1;var l=J;J|=4,Xc.current=null,wy(e,n),D0(n,e),Xb(Gu),hl=!!ju,Gu=ju=null,e.current=n,Sy(n,e,o),tb(),J=l,ae=a,Bt.transition=i}else e.current=n;if(Ja&&(Ja=!1,Xn=e,Nl=o),i=e.pendingLanes,i===0&&(nr=null),ob(n.stateNode,r),bt(e,Te()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Ll)throw Ll=!1,e=pc,pc=null,e;return(Nl&1)!==0&&e.tag!==0&&vo(),i=e.pendingLanes,(i&1)!==0?e===mc?vi++:(vi=0,mc=e):vi=0,ur(),null}function vo(){if(Xn!==null){var e=xm(Nl),t=Bt.transition,n=ae;try{if(Bt.transition=null,ae=16>e?16:e,Xn===null)var r=!1;else{if(e=Xn,Xn=null,Nl=0,(J&6)!==0)throw Error(x(331));var o=J;for(J|=4,I=e.current;I!==null;){var i=I,a=i.child;if((I.flags&16)!==0){var l=i.deletions;if(l!==null){for(var s=0;s<l.length;s++){var u=l[s];for(I=u;I!==null;){var c=I;switch(c.tag){case 0:case 11:case 15:bi(8,c,i)}var d=c.child;if(d!==null)d.return=c,I=d;else for(;I!==null;){c=I;var p=c.sibling,g=c.return;if(R0(c),c===u){I=null;break}if(p!==null){p.return=g,I=p;break}I=g}}}var y=i.alternate;if(y!==null){var b=y.child;if(b!==null){y.child=null;do{var D=b.sibling;b.sibling=null,b=D}while(b!==null)}}I=i}}if((i.subtreeFlags&2064)!==0&&a!==null)a.return=i,I=a;else e:for(;I!==null;){if(i=I,(i.flags&2048)!==0)switch(i.tag){case 0:case 11:case 15:bi(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,I=m;break e}I=i.return}}var f=e.current;for(I=f;I!==null;){a=I;var h=a.child;if((a.subtreeFlags&2064)!==0&&h!==null)h.return=a,I=h;else e:for(a=f;I!==null;){if(l=I,(l.flags&2048)!==0)try{switch(l.tag){case 0:case 11:case 15:Hl(9,l)}}catch(C){ke(l,l.return,C)}if(l===a){I=null;break e}var $=l.sibling;if($!==null){$.return=l.return,I=$;break e}I=l.return}}if(J=o,ur(),hn&&typeof hn.onPostCommitFiberRoot=="function")try{hn.onPostCommitFiberRoot(Il,e)}catch{}r=!0}return r}finally{ae=n,Bt.transition=t}}return!1}function Qp(e,t,n){t=Eo(n,t),t=x0(e,t,1),e=tr(e,t,1),t=tt(),e!==null&&(Oi(e,1,t),bt(e,t))}function ke(e,t,n){if(e.tag===3)Qp(e,e,n);else for(;t!==null;){if(t.tag===3){Qp(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(nr===null||!nr.has(r))){e=Eo(n,e),e=w0(t,e,1),t=tr(t,e,1),e=tt(),t!==null&&(Oi(t,1,e),bt(t,e));break}}t=t.return}}function Py(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=tt(),e.pingedLanes|=e.suspendedLanes&n,Ke===e&&(He&n)===n&&(De===4||De===3&&(He&130023424)===He&&500>Te()-Zc?kr(e,0):qc|=n),bt(e,t)}function H0(e,t){t===0&&((e.mode&1)===0?t=1:(t=Aa,Aa<<=1,(Aa&130023424)===0&&(Aa=4194304)));var n=tt();e=Rn(e,t),e!==null&&(Oi(e,t,n),bt(e,n))}function Ly(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),H0(e,n)}function Ny(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(x(314))}r!==null&&r.delete(t),H0(e,n)}var V0;V0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||gt.current)ht=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return ht=!1,by(e,t,n);ht=(e.flags&131072)!==0}else ht=!1,be&&(t.flags&1048576)!==0&&Gm(t,wl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;al(e,t),e=t.pendingProps;var o=wo(t,Ye.current);yo(t,n),o=Uc(null,t,r,e,o,n);var i=jc();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,$t(r)?(i=!0,vl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,zc(t),o.updater=Bl,t.stateNode=o,o._reactInternals=t,nc(t,r,e,n),t=ic(null,t,r,!0,i,n)):(t.tag=0,be&&i&&Mc(t),et(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(al(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=My(r),e=Xt(r,e),o){case 0:t=oc(null,t,r,e,n);break e;case 1:t=Op(null,t,r,e,n);break e;case 11:t=Fp(null,t,r,e,n);break e;case 14:t=Kp(null,t,r,Xt(r.type,e),n);break e}throw Error(x(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),oc(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),Op(e,t,r,o,n);case 3:e:{if(E0(t),e===null)throw Error(x(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Jm(e,t),kl(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Eo(Error(x(423)),t),t=Ap(e,t,r,n,o);break e}else if(r!==o){o=Eo(Error(x(424)),t),t=Ap(e,t,r,n,o);break e}else for(St=er(t.stateNode.containerInfo.firstChild),Ct=t,be=!0,Zt=null,n=qm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(So(),r===o){t=Mn(e,t,n);break e}et(e,t,r,n)}t=t.child}return t;case 5:return e0(t),e===null&&Ju(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Qu(r,o)?a=null:i!==null&&Qu(r,i)&&(t.flags|=32),k0(e,t),et(e,t,a,n),t.child;case 6:return e===null&&Ju(t),null;case 13:return T0(e,t,n);case 4:return Bc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Co(t,null,r,n):et(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),Fp(e,t,r,o,n);case 7:return et(e,t,t.pendingProps,n),t.child;case 8:return et(e,t,t.pendingProps.children,n),t.child;case 12:return et(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,de(Sl,r._currentValue),r._currentValue=a,i!==null)if(tn(i.value,a)){if(i.children===o.children&&!gt.current){t=Mn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=Pn(-1,n&-n),s.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),ec(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(x(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),ec(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}et(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,yo(t,n),o=Ht(o),r=r(o),t.flags|=1,et(e,t,r,n),t.child;case 14:return r=t.type,o=Xt(r,t.pendingProps),o=Xt(r.type,o),Kp(e,t,r,o,n);case 15:return S0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),al(e,t),t.tag=1,$t(r)?(e=!0,vl(t)):e=!1,yo(t,n),v0(t,r,o),nc(t,r,o,n),ic(null,t,r,!0,e,n);case 19:return _0(e,t,n);case 22:return C0(e,t,n)}throw Error(x(156,t.tag))};function W0(e,t){return $m(e,t)}function Ry(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function zt(e,t,n,r){return new Ry(e,t,n,r)}function nd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function My(e){if(typeof e=="function")return nd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===xc)return 11;if(e===wc)return 14}return 2}function or(e,t){var n=e.alternate;return n===null?(n=zt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ul(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")nd(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ro:return Er(n.children,o,i,t);case vc:a=8,o|=8;break;case Eu:return e=zt(12,n,t,o|2),e.elementType=Eu,e.lanes=i,e;case Tu:return e=zt(13,n,t,o),e.elementType=Tu,e.lanes=i,e;case _u:return e=zt(19,n,t,o),e.elementType=_u,e.lanes=i,e;case em:return Wl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Zp:a=10;break e;case Jp:a=9;break e;case xc:a=11;break e;case wc:a=14;break e;case Un:a=16,r=null;break e}throw Error(x(130,e==null?e:typeof e,""))}return t=zt(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Er(e,t,n,r){return e=zt(7,e,r,t),e.lanes=n,e}function Wl(e,t,n,r){return e=zt(22,e,r,t),e.elementType=em,e.lanes=n,e.stateNode={isHidden:!1},e}function Su(e,t,n){return e=zt(6,e,null,t),e.lanes=n,e}function Cu(e,t,n){return t=zt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Iy(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=lu(0),this.expirationTimes=lu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=lu(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function rd(e,t,n,r,o,i,a,l,s){return e=new Iy(e,t,n,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=zt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},zc(i),e}function Dy(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:no,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function U0(e){if(!e)return ar;e=e._reactInternals;e:{if(Mr(e)!==e||e.tag!==1)throw Error(x(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if($t(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(x(171))}if(e.tag===1){var n=e.type;if($t(n))return Um(e,n,t)}return t}function j0(e,t,n,r,o,i,a,l,s){return e=rd(n,r,!0,e,o,i,a,l,s),e.context=U0(null),n=e.current,r=tt(),o=rr(n),i=Pn(r,o),i.callback=t??null,tr(n,i,o),e.current.lanes=o,Oi(e,o,r),bt(e,r),e}function Ul(e,t,n,r){var o=t.current,i=tt(),a=rr(o);return n=U0(n),t.context===null?t.context=n:t.pendingContext=n,t=Pn(i,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=tr(o,t,a),e!==null&&(en(e,o,a,i),rl(e,o,a)),a}function Ml(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Yp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function od(e,t){Yp(e,t),(e=e.alternate)&&Yp(e,t)}function Fy(){return null}var G0=typeof reportError=="function"?reportError:function(e){console.error(e)};function id(e){this._internalRoot=e}jl.prototype.render=id.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(x(409));Ul(e,t,null,null)};jl.prototype.unmount=id.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Nr(function(){Ul(null,e,null,null)}),t[Nn]=null}};function jl(e){this._internalRoot=e}jl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Cm();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Gn.length&&t!==0&&t<Gn[n].priority;n++);Gn.splice(n,0,e),n===0&&Em(e)}};function ad(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Gl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Xp(){}function Ky(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=Ml(a);i.call(u)}}var a=j0(t,r,e,0,null,!1,!1,"",Xp);return e._reactRootContainer=a,e[Nn]=a.current,Pi(e.nodeType===8?e.parentNode:e),Nr(),a}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var l=r;r=function(){var u=Ml(s);l.call(u)}}var s=rd(e,0,!1,null,null,!1,!1,"",Xp);return e._reactRootContainer=s,e[Nn]=s.current,Pi(e.nodeType===8?e.parentNode:e),Nr(function(){Ul(t,s,n,r)}),s}function Ql(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if(typeof o=="function"){var l=o;o=function(){var s=Ml(a);l.call(s)}}Ul(t,a,e,o)}else a=Ky(n,t,e,o,r);return Ml(a)}wm=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ci(t.pendingLanes);n!==0&&(kc(t,n|1),bt(t,Te()),(J&6)===0&&(To=Te()+500,ur()))}break;case 13:Nr(function(){var r=Rn(e,1);if(r!==null){var o=tt();en(r,e,1,o)}}),od(e,1)}};Ec=function(e){if(e.tag===13){var t=Rn(e,134217728);if(t!==null){var n=tt();en(t,e,134217728,n)}od(e,134217728)}};Sm=function(e){if(e.tag===13){var t=rr(e),n=Rn(e,t);if(n!==null){var r=tt();en(n,e,t,r)}od(e,t)}};Cm=function(){return ae};km=function(e,t){var n=ae;try{return ae=e,t()}finally{ae=n}};Ou=function(e,t,n){switch(t){case"input":if(Nu(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Ol(r);if(!o)throw Error(x(90));nm(r),Nu(r,o)}}}break;case"textarea":om(e,n);break;case"select":t=n.value,t!=null&&ho(e,!!n.multiple,t,!1)}};dm=Jc;fm=Nr;var Oy={usingClientEntryPoint:!1,Events:[zi,lo,Ol,um,cm,Jc]},ai={findFiberByHostInstance:wr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Ay={bundleType:ai.bundleType,version:ai.version,rendererPackageName:ai.rendererPackageName,rendererConfig:ai.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:In.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=hm(e),e===null?null:e.stateNode},findFiberByHostInstance:ai.findFiberByHostInstance||Fy,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(li=__REACT_DEVTOOLS_GLOBAL_HOOK__,!li.isDisabled&&li.supportsFiber))try{Il=li.inject(Ay),hn=li}catch{}var li;Tt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Oy;Tt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ad(t))throw Error(x(200));return Dy(e,t,null,n)};Tt.createRoot=function(e,t){if(!ad(e))throw Error(x(299));var n=!1,r="",o=G0;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=rd(e,1,!1,null,null,n,!1,r,o),e[Nn]=t.current,Pi(e.nodeType===8?e.parentNode:e),new id(t)};Tt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(x(188)):(e=Object.keys(e).join(","),Error(x(268,e)));return e=hm(t),e=e===null?null:e.stateNode,e};Tt.flushSync=function(e){return Nr(e)};Tt.hydrate=function(e,t,n){if(!Gl(t))throw Error(x(200));return Ql(null,e,t,!0,n)};Tt.hydrateRoot=function(e,t,n){if(!ad(e))throw Error(x(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",a=G0;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=j0(t,null,e,1,n??null,o,!1,i,a),e[Nn]=t.current,Pi(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new jl(t)};Tt.render=function(e,t,n){if(!Gl(t))throw Error(x(200));return Ql(null,e,t,!1,n)};Tt.unmountComponentAtNode=function(e){if(!Gl(e))throw Error(x(40));return e._reactRootContainer?(Nr(function(){Ql(null,null,e,!1,function(){e._reactRootContainer=null,e[Nn]=null})}),!0):!1};Tt.unstable_batchedUpdates=Jc;Tt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Gl(n))throw Error(x(200));if(e==null||e._reactInternals===void 0)throw Error(x(38));return Ql(e,t,n,!1,r)};Tt.version="18.3.1-next-f1338f8080-20240426"});var Ir=Gt((Lx,X0)=>{"use strict";function Y0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Y0)}catch(e){console.error(e)}}Y0(),X0.exports=Q0()});var Z0=Gt(ld=>{"use strict";var q0=Ir();ld.createRoot=q0.createRoot,ld.hydrateRoot=q0.hydrateRoot;var Nx});var th=Gt(Xl=>{"use strict";var By=K(),Hy=Symbol.for("react.element"),Vy=Symbol.for("react.fragment"),Wy=Object.prototype.hasOwnProperty,Uy=By.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,jy={key:!0,ref:!0,__self:!0,__source:!0};function eh(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)Wy.call(t,r)&&!jy.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Hy,type:e,key:i,ref:a,props:o,_owner:Uy.current}}Xl.Fragment=Vy;Xl.jsx=eh;Xl.jsxs=eh});var he=Gt((Dx,nh)=>{"use strict";nh.exports=th()});var og=Gt(rg=>{"use strict";var Uo=K();function Qv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Yv=typeof Object.is=="function"?Object.is:Qv,Xv=Uo.useState,qv=Uo.useEffect,Zv=Uo.useLayoutEffect,Jv=Uo.useDebugValue;function e1(e,t){var n=t(),r=Xv({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return Zv(function(){o.value=n,o.getSnapshot=t,Rd(o)&&i({inst:o})},[e,n,t]),qv(function(){return Rd(o)&&i({inst:o}),e(function(){Rd(o)&&i({inst:o})})},[e]),Jv(n),n}function Rd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Yv(e,n)}catch{return!0}}function t1(e,t){return t()}var n1=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?t1:e1;rg.useSyncExternalStore=Uo.useSyncExternalStore!==void 0?Uo.useSyncExternalStore:n1});var ag=Gt((ew,ig)=>{"use strict";ig.exports=og()});var Ea=S(K(),1),g$=S(Z0(),1);var ve=S(K(),1);var _t=S(K(),1);var Yl=S(K(),1),J0="(prefers-reduced-motion: reduce)",zy=()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia(J0).matches:!1;function Dr(){let[e,t]=(0,Yl.useState)(zy);return(0,Yl.useEffect)(()=>{if(typeof window>"u"||typeof window.matchMedia!="function")return;let n=window.matchMedia(J0);t(n.matches);let r=o=>t(o.matches);return n.addEventListener("change",r),()=>n.removeEventListener("change",r)},[]),e}var Dn=S(he(),1),rt={thumbWidth:"var(--semantic-layout-units-padding-xtight)",thumbRadius:"var(--semantic-layout-units-cornerradius-full)",thumbMin:28,gutter:"var(--semantic-layout-units-padding-xxxtight)",grabZone:16,thumbRest:"var(--pw-scrollbar-thumb-rest)",thumbHover:"var(--pw-scrollbar-thumb-hover)",thumbBlur:"blur(8px) saturate(180%)",thumbEdge:"inset 0 0 0 0.5px color-mix(in srgb, var(--semantic-color-fill-static-neutral-faint) 35%, transparent)",fadeIn:"opacity var(--motion-duration-3) var(--motion-easing-decelerate), background var(--motion-duration-3) var(--motion-easing-standard)",fadeOut:"opacity var(--motion-duration-5) var(--motion-easing-standard), background var(--motion-duration-3) var(--motion-easing-standard)",idleHideMs:500};if(typeof document<"u"&&!document.getElementById("pds-scrollable-base")){let e=document.createElement("style");e.id="pds-scrollable-base",e.textContent=':root,[data-theme="light"]{--pw-scrollbar-thumb-rest:var(--primitive-color-warm-neutral-500-16);--pw-scrollbar-thumb-hover:var(--primitive-color-warm-neutral-500-24)}[data-theme="midnight"],[data-theme="dark"]{--pw-scrollbar-thumb-rest:var(--primitive-color-warm-neutral-100-16);--pw-scrollbar-thumb-hover:var(--primitive-color-warm-neutral-100-24)}.pds-scrollable__view{scrollbar-width:none;-ms-overflow-style:none}.pds-scrollable__view:-webkit-scrollbar{width:0;height:0;display:none}@media (hover: none){.pds-scrollable__grab{pointer-events:none!important}}',document.head.appendChild(e)}function rh({children:e,className:t="",style:n={},viewClassName:r="",viewStyle:o={}}){let i=Dr(),a=(0,_t.useRef)(null),l=(0,_t.useRef)(null),s=(0,_t.useRef)(null),u=(0,_t.useRef)(!1),[c,d]=(0,_t.useState)({h:0,top:0,show:!1}),[p,g]=(0,_t.useState)(!1),[y,b]=(0,_t.useState)(!1),D=(0,_t.useCallback)(()=>{let R=a.current;if(!R)return;let{scrollHeight:F,clientHeight:j,scrollTop:O}=R;if(F<=j+1){d(V=>V.show?{...V,show:!1}:V);return}let M=Math.max(rt.thumbMin,j/F*j),z=O/(F-j)*(j-M);d({h:M,top:z,show:!0})},[]);(0,_t.useEffect)(()=>{D();let R=a.current;if(!R||typeof ResizeObserver>"u")return;let F=new ResizeObserver(D);return F.observe(R),Array.from(R.children).forEach(j=>F.observe(j)),()=>F.disconnect()},[e,D]);let m=()=>{clearTimeout(s.current),s.current=setTimeout(()=>{!l.current&&!u.current&&g(!1)},rt.idleHideMs)},f=()=>{g(!0),m()},h=()=>{D(),f()},$=R=>{R.currentTarget.getBoundingClientRect().right-R.clientX<=rt.grabZone?(u.current=!0,g(!0),clearTimeout(s.current)):u.current&&(u.current=!1,m())},C=()=>{u.current=!1,l.current||m()},E=R=>{R.preventDefault();let F=a.current;if(!F)return;l.current={startY:R.clientY,startTop:F.scrollTop},b(!0),g(!0),clearTimeout(s.current);let j=M=>{let{scrollHeight:z,clientHeight:V}=F,se=Math.max(rt.thumbMin,V/z*V),Me=(z-V)/(V-se);F.scrollTop=l.current.startTop+(M.clientY-l.current.startY)*Me},O=()=>{l.current=null,b(!1),document.removeEventListener("mousemove",j),document.removeEventListener("mouseup",O),f()};document.addEventListener("mousemove",j),document.addEventListener("mouseup",O)},P=c.top,N=c.h;return(0,Dn.jsxs)("div",{className:`pds-scrollable ${t}`,style:{position:"relative",minHeight:0,...n},onMouseMove:$,onMouseLeave:C,children:[(0,Dn.jsx)("div",{ref:a,className:`pds-scrollable__view ${r}`,onScroll:h,style:{height:"100%",overflowY:"auto",overflowX:"hidden",...o},children:e}),c.show&&(0,Dn.jsxs)(Dn.Fragment,{children:[(0,Dn.jsx)("div",{"aria-hidden":"true",style:{position:"absolute",top:P,right:rt.gutter,width:rt.thumbWidth,height:N,borderRadius:rt.thumbRadius,background:y?rt.thumbHover:rt.thumbRest,backdropFilter:rt.thumbBlur,WebkitBackdropFilter:rt.thumbBlur,boxShadow:rt.thumbEdge,opacity:p?1:0,transition:i?"none":p?rt.fadeIn:rt.fadeOut,pointerEvents:"none",zIndex:5}}),(0,Dn.jsx)("div",{"aria-hidden":"true",className:"pds-scrollable__grab",onMouseDown:E,onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),style:{position:"absolute",top:P,right:0,width:rt.grabZone,height:N,pointerEvents:p?"auto":"none",zIndex:6,background:"transparent"}})]})]})}var Bs=S(Ir(),1);var ye=S(K(),1),s$=S(Ir(),1);var cd=S(K(),1);var Ax=S(K(),1),ih=S(he(),1);var sd={wght:400,GRAD:0,opsz:24},oh={L:{frame:18,wrapper:26},M:{frame:16,wrapper:24},S:{frame:14,wrapper:20}};function ql({name:e,size:t="M",fill:n=0,color:r,label:o,className:i="",style:a,...l}){let s=typeof t=="number"?t:(oh[t]||oh.M).frame;return(0,ih.jsx)("span",{className:`material-symbols-rounded ${i}`,role:o?"img":void 0,"aria-label":o||void 0,"aria-hidden":o?void 0:!0,style:{fontSize:s,lineHeight:1,display:"block",flexShrink:0,color:r,fontVariationSettings:`'FILL' ${n}, 'wght' ${sd.wght}, 'GRAD' ${sd.GRAD}, 'opsz' ${sd.opsz}`,...a},...l,children:e})}var Zl="pw-focus-ring",lh="pw-focus-ring pw-focus-ring--inset",sh="pw-focus-ring pw-focus-ring--replace",uh="pw-focus-ring pw-focus-ring--layer",ud=`
|
|
9
9
|
.pw-focus-ring:focus{outline:none}
|
|
10
10
|
.pw-focus-ring:focus-visible{outline:var(--contextual-layout-units-focusring-width) solid var(--semantic-color-stroke-focusring-base);outline-offset:0}
|
|
11
11
|
.pw-focus-ring--inset:focus-visible{outline-offset:calc(-1 * var(--contextual-layout-units-focusring-width))}
|
|
12
12
|
.pw-focus-ring--replace:focus-visible{border-color:transparent !important;box-shadow:var(--pw-ring-keep-shadow, none) !important}
|
|
13
13
|
.pw-focus-ring--layer:focus-visible{outline:none}
|
|
14
14
|
.pw-focus-ring--layer:focus-visible [data-pw-ring-target]{outline:var(--contextual-layout-units-focusring-width) solid var(--semantic-color-stroke-focusring-base);outline-offset:0}
|
|
15
|
-
`,ih=!1;function ql(){if(ih||typeof document>"u")return;ih=!0;let e=document.createElement("style");e.setAttribute("data-pathway","focus-ring"),e.textContent=ld,document.head.appendChild(e)}var Jl=S(he(),1);ql();var Ai=e=>`var(--semantic-color-${e})`,jy=e=>`var(--semantic-layout-units-${e})`,Zl=e=>`var(--motion-${e})`,uh={Small:{box:36,layer:24,glyph:14},Base:{box:44,layer:28,glyph:16},Large:{box:48,layer:32,glyph:18}},sd={rest:Ai("foreground-action-secondary-rest"),hover:Ai("foreground-action-secondary-hover"),pressed:Ai("foreground-action-secondary-pressed"),layerHover:Ai("fill-action-primary-subtle-hover"),layerPress:Ai("fill-action-primary-subtle-pressed")};function es({name:e,size:t="Small",label:n,fill:r=0,color:o,states:i,onClick:a,disabled:l,className:s="",style:u,...c}){let d=Dr(),[m,g]=(0,ud.useState)(!1),[y,b]=(0,ud.useState)(!1),R=uh[t]||uh.Small,p={...sd,...i},f=l?sd.rest:y?p.pressed:m?p.hover:o||sd.rest;return(0,Jl.jsx)("button",{type:"button","aria-label":n,title:n,disabled:l,onClick:a,onMouseEnter:()=>g(!0),onMouseLeave:()=>{g(!1),b(!1)},onMouseDown:()=>b(!0),onMouseUp:()=>b(!1),onBlur:()=>b(!1),className:`pw-action-icon ${sh} ${s}`,"data-size":t,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:R.box,height:R.box,flexShrink:0,boxSizing:"border-box",background:"transparent",border:"none",padding:0,cursor:l?"default":"pointer",opacity:l?.5:1,color:f,...u},...c,children:(0,Jl.jsx)("span",{"data-pw-ring-target":"",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:R.layer,height:R.layer,borderRadius:jy("cornerradius-base"),background:y?p.layerPress:m?p.layerHover:"transparent",transition:d?"none":`background ${Zl("duration-2")} ${Zl("easing-standard")}`},children:(0,Jl.jsx)(Yl,{name:e,size:R.glyph,fill:r,style:{transition:d?"none":`color ${Zl("duration-2")} ${Zl("easing-standard")}`}})})})}var zn=S(K(),1);function Bi(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}var ch=S(K(),1),fe=typeof document<"u"?ch.default.useLayoutEffect:()=>{};var Oe=S(K(),1),ts={prefix:String(Math.round(Math.random()*1e10)),current:0},dh=Oe.default.createContext(ts),Gy=Oe.default.createContext(!1);var Qy=!!(typeof window<"u"&&window.document&&window.document.createElement),cd=new WeakMap;function Yy(e=!1){let t=(0,Oe.useContext)(dh),n=(0,Oe.useRef)(null);if(n.current===null&&!e){let r=Oe.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if(r){let o=cd.get(r);o==null?cd.set(r,{id:t.current,state:r.memoizedState}):r.memoizedState!==o.state&&(t.current=o.id,cd.delete(r))}n.current=++t.current}return n.current}function Xy(e){let t=(0,Oe.useContext)(dh),n=Yy(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function qy(e){let t=Oe.default.useId(),[n]=(0,Oe.useState)(Po()),r=n?"react-aria":`react-aria${ts.prefix}`;return e||`${r}-${t}`}var fh=typeof Oe.default.useId=="function"?qy:Xy;function Zy(){return!1}function Jy(){return!0}function ev(e){return()=>{}}function Po(){return typeof Oe.default.useSyncExternalStore=="function"?Oe.default.useSyncExternalStore(ev,Zy,Jy):(0,Oe.useContext)(Gy)}var cr=S(K(),1),tv=!!(typeof window<"u"&&window.document&&window.document.createElement),No=new Map,Lo;typeof FinalizationRegistry<"u"&&(Lo=new FinalizationRegistry(e=>{No.delete(e)}));var dd=new WeakMap;function Pt(e){let[t,n]=(0,cr.useState)(e),r=(0,cr.useRef)(null),o=fh(t),i=(0,cr.useRef)(null),a=dd.get(i);if(Lo&&a!==o&&(a!=null&&Lo.unregister(i),Lo.register(i,o,i),dd.set(i,o)),tv){let l=No.get(o);l&&!l.includes(r)?l.push(r):No.set(o,[r])}return fe(()=>{let l=o;return()=>{Lo&&(Lo.unregister(i),dd.delete(i)),No.delete(l)}},[o]),(0,cr.useEffect)(()=>{let l=r.current;return l&&n(l),()=>{l&&(r.current=null)}}),o}function ph(e,t){if(e===t)return e;let n=No.get(e);if(n)return n.forEach(o=>o.current=t),t;let r=No.get(t);return r?(r.forEach(o=>o.current=e),e):t}function Ro(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1,r=e.map(o=>{let i=mh(o,t);return n||=typeof i=="function",i});if(n)return()=>{r.forEach((o,i)=>{typeof o=="function"?o():mh(e[i],null)})}}}function mh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function hh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=hh(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function nv(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=hh(e))&&(r&&(r+=" "),r+=t);return r}var gh=nv;function Ne(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let o in r){let i=t[o],a=r[o];typeof i=="function"&&typeof a=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=Bi(i,a):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[o]=gh(i,a):o==="id"&&i&&a?t.id=ph(i,a):o==="ref"&&i&&a?t.ref=Ro(i,a):t[o]=a!==void 0?a:i}}return t}var Ae=S(K(),1);var Fr=S(K(),1);function zi(e){let t=(0,Fr.useRef)(null),n=(0,Fr.useRef)(void 0),r=(0,Fr.useCallback)(o=>{if(typeof e=="function"){let i=e,a=i(o);return()=>{typeof a=="function"?a():i(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return(0,Fr.useMemo)(()=>({get current(){return t.current},set current(o){t.current=o,n.current&&(n.current(),n.current=void 0),o!=null&&(n.current=r(o))}}),[r])}var fd=Symbol("default");function Mo({values:e,children:t}){for(let[n,r]of e)t=Ae.default.createElement(n.Provider,{value:r},t);return t}function Fn(e){let{className:t,style:n,children:r,defaultClassName:o,defaultChildren:i,defaultStyle:a,values:l,render:s}=e;return(0,Ae.useMemo)(()=>{let u,c,d;return typeof t=="function"?u=t({...l,defaultClassName:o}):u=t,typeof n=="function"?c=n({...l,defaultStyle:a||{}}):c=n,typeof r=="function"?d=r({...l,defaultChildren:i}):r==null?d=i:d=r,{className:u??o,style:c||a?{...a,...c}:void 0,children:d??i,"data-rac":"",render:s?m=>s(m,l):void 0}},[t,n,r,o,i,a,l,s])}function pd(e,t){let n=(0,Ae.useContext)(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=t||fd;if(!n.slots[r]){let o=new Intl.ListFormat().format(Object.keys(n.slots).map(a=>`"${a}"`)),i=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${i} Valid slot names are ${o}.`)}return n.slots[r]}return n}function Io(e,t,n){let r=pd(n,e.slot)||{},{ref:o,...i}=r,a=zi((0,Ae.useMemo)(()=>Ro(t,o),[t,o])),l=Ne(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&(typeof i.style=="function"||typeof e.style=="function"?l.style=s=>{let u=typeof i.style=="function"?i.style(s):i.style,c={...s.defaultStyle,...u},d=typeof e.style=="function"?e.style({...s,defaultStyle:c}):e.style;return{...c,...d}}:l.style={...i.style,...e.style}),[l,a]}function ns(e=!0){let[t,n]=(0,Ae.useState)(e),r=(0,Ae.useRef)(!1),o=(0,Ae.useCallback)(i=>{r.current=!0,n(!!i)},[]);return fe(()=>{r.current||n(!1)},[]),[o,t]}function rv(e,t,n){let{render:r,...o}=t,i=(0,Ae.useRef)(null),a=(0,Ae.useMemo)(()=>Ro(n,i),[n,i]);fe(()=>{},[e,r]);let l={...o,ref:a};return r?r(l,void 0):Ae.default.createElement(e,l)}var $h={},Kn=new Proxy({},{get(e,t){if(typeof t!="string")return;let n=$h[t];return n||(n=(0,Ae.forwardRef)(rv.bind(null,t)),$h[t]=n),n}});var bh="react-aria-clear-focus",yh="react-aria-focus";var ee=e=>ov(e)?e.document:iv(e)?e:e?.ownerDocument??(typeof document<"u"?document:void 0),We=e=>ee(e)?.defaultView??(typeof window<"u"?window:void 0);function vh(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function ov(e){return typeof e=="object"&&e!=null&&"window"in e&&e.window===e}function iv(e){return vh(e)&&e.nodeType===9}function xh(e){return vh(e)&&e.nodeType===11&&"host"in e}function nn(e,t,n,r){if(n==null||e==null)return()=>{};let o=Array.isArray(e)?e:[e];for(let i of o)i.addEventListener(t,n,r);return()=>{for(let i of o)i.removeEventListener(t,n,r)}}var av=!1;function Kr(){return av}function _e(e,t){if(!Kr())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!=null;){if(n===e)return!0;typeof n.assignedElements!="function"&&n.assignedSlot?.parentNode?n=n.assignedSlot.parentNode:xh(n)?n=n.host:n=n.parentNode}return!1}var te=(e=document)=>{if(!Kr())return e.activeElement;let t=e.activeElement;for(;t&&"shadowRoot"in t&&t.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t};function Z(e){if(Kr()&&e.target instanceof Element&&e.target.shadowRoot){if("composedPath"in e)return e.composedPath()[0]??null;if("composedPath"in e.nativeEvent)return e.nativeEvent.composedPath()[0]??null}return e.target}function md(e){if(!e)return!1;let t=e.getRootNode(),n=We(e);if(!(t instanceof n.Document||t instanceof n.ShadowRoot))return!1;let r=t.activeElement;return r!=null&&e.contains(r)}function wh(e){let t=sv(ee(e));t!==e&&(t&&lv(t,e),e&&hd(e,t))}function lv(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function hd(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function sv(e){let t=te(e),n=t?.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}function dr(e){e.focus({preventScroll:!0})}var uv=typeof Element<"u"&&"checkVisibility"in Element.prototype;function cv(e){let t=We(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,o=n!=="none"&&r!=="hidden"&&r!=="collapse";if(o){let{getComputedStyle:i}=We(e),{display:a,visibility:l}=i(e);o=a!=="none"&&l!=="hidden"&&l!=="collapse"}return o}function dv(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function rs(e,t){return uv?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&cv(e)&&dv(e,t)&&(!e.parentElement||rs(e.parentElement,e))}var gd=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],fv=gd.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";gd.push('[tabindex]:not([tabindex="-1"]):not([disabled])');var pv=gd.join(':not([hidden]):not([tabindex="-1"]),');function os(e,t){return e.matches(fv)&&!Sh(e)&&(t?.skipVisibilityCheck||rs(e))}function is(e){return e.matches(pv)&&rs(e)&&!Sh(e)}function Sh(e){let t=e;for(;t!=null;){if(t instanceof We(t).HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}var as=S(K(),1);function $d(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Ch(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function ls(e){let t=(0,as.useRef)({isFocused:!1,observer:null});return fe(()=>{let n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),(0,as.useCallback)(n=>{let r=Z(n);if(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r,i=a=>{if(t.current.isFocused=!1,o.disabled){let l=$d(a);e?.(l)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){t.current.observer?.disconnect();let a=o===te()?null:te();o.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[e])}var bd=!1;function ss(e){if(typeof window>"u"||window.navigator==null)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function yd(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function $n(e){let t=null;return()=>(t==null&&(t=e()),t)}var Lt=$n(function(){return yd(/^Mac/i)}),mv=$n(function(){return yd(/^iPhone/i)}),vd=$n(function(){return yd(/^iPad/i)||Lt()&&navigator.maxTouchPoints>1}),us=$n(function(){return mv()||vd()}),kh=$n(function(){return Lt()||us()}),Or=$n(function(){return ss(/AppleWebKit/i)&&(us()||!cs())}),H2=$n(function(){return Or()&&!cs()&&!hv()}),cs=$n(function(){return ss(/Chrome|CriOS|CrMo/i)}),Do=$n(function(){return ss(/Android/i)}),hv=$n(function(){return ss(/(Firefox|FxiOS)/i)});function Eh(e){return e.pointerType===""&&e.isTrusted?!0:Do()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var Fo=S(K(),1),gv=(0,Fo.createContext)({isNative:!0,open:bv,useHref:e=>e});function Th(){return(0,Fo.useContext)(gv)}function Ar(e,t,n=!0){let{metaKey:r,ctrlKey:o,altKey:i,shiftKey:a}=t,l=Or()&&Lt()&&!vd()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:r,ctrlKey:o,altKey:i,shiftKey:a}):new MouseEvent("click",{metaKey:r,ctrlKey:o,altKey:i,shiftKey:a,detail:1,bubbles:!0,cancelable:!0});Ar.isOpening=n,dr(e),e.dispatchEvent(l),Ar.isOpening=!1}Ar.isOpening=!1;function $v(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function bv(e,t){$v(e,n=>Ar(n,t))}var Sd=S(K(),1),zr=null,Vi="keyboard",xd=new Set,Hi=new Map,Br=!1,ds=!1,yv={Tab:!0,Escape:!0};function ps(e,t){for(let n of xd)n(e,t)}function vv(e){return!(e.metaKey||!Lt()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function fs(e){Br=!0,!Ar.isOpening&&vv(e)&&(zr="keyboard",Vi="keyboard",ps("keyboard",e))}function Ko(e){zr="pointer",Vi="pointerType"in e?e.pointerType:"mouse",(e.type==="mousedown"||e.type==="pointerdown")&&(Br=!0,ps("pointer",e))}function _h(e){!Ar.isOpening&&Eh(e)&&(Br=!0,zr="virtual",Vi="virtual")}function Ph(e){if(bd)return;let t=Z(e),n=We(t),r=ee(t);if(t===n){ds=!0;return}t===r||!e.isTrusted||(!Br&&!ds&&(zr="virtual",Vi="virtual",ps("virtual",e)),Br=!1,ds=!1)}function Lh(){bd||(Br=!1,ds=!0)}function Nh(e){let t=te(ee(Z(e)));queueMicrotask(()=>{te(ee(Z(e)))!==t&&wv("keyboard")})}function wd(e){if(typeof window>"u"||typeof document>"u")return;let t=We(e),n=ee(e);if(Hi.get(t))return;let r=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){Br=!0,r.apply(this,arguments)}}),n.addEventListener("keydown",fs,!0),n.addEventListener("keyup",fs,!0),n.addEventListener("click",_h,!0),n.addEventListener("invalid",Nh,!0),t.addEventListener("focus",Ph,!0),t.addEventListener("blur",Lh,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",Ko,!0),n.addEventListener("pointermove",Ko,!0),n.addEventListener("pointerup",Ko,!0)),t.addEventListener("beforeunload",()=>{Rh(e)},{once:!0}),Hi.set(t,{focus:r})}var Rh=(e,t)=>{let n=We(e),r=ee(e);t&&r.removeEventListener("DOMContentLoaded",t),Hi.has(n)&&(Reflect.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:Hi.get(n).focus}),r.removeEventListener("keydown",fs,!0),r.removeEventListener("keyup",fs,!0),r.removeEventListener("click",_h,!0),r.removeEventListener("invalid",Nh,!0),n.removeEventListener("focus",Ph,!0),n.removeEventListener("blur",Lh,!1),typeof PointerEvent<"u"&&(r.removeEventListener("pointerdown",Ko,!0),r.removeEventListener("pointermove",Ko,!0),r.removeEventListener("pointerup",Ko,!0)),Hi.delete(n))};function xv(e){let t=ee(e),n;return t.readyState!=="loading"?wd(e):(n=()=>{wd(e)},t.addEventListener("DOMContentLoaded",n)),()=>Rh(e,n)}typeof document<"u"&&xv();function ms(){return zr!=="pointer"}function Hr(){return zr}function wv(e){zr=e,Vi=e==="pointer"?"mouse":e,ps(e,null)}var Sv=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Cv(e,t,n){let r=n?Z(n):void 0,o=ee(r),i=We(r),a=typeof i<"u"?i.HTMLInputElement:HTMLInputElement,l=typeof i<"u"?i.HTMLTextAreaElement:HTMLTextAreaElement,s=typeof i<"u"?i.HTMLElement:HTMLElement,u=typeof i<"u"?i.KeyboardEvent:KeyboardEvent,c=te(o);return e=e||c instanceof a&&!Sv.has(c.type)||c instanceof l||c instanceof s&&c.isContentEditable,!(e&&t==="keyboard"&&n instanceof u&&!yv[n.key])}function Mh(e,t,n){wd(),(0,Sd.useEffect)(()=>{if(n?.enabled===!1)return;let r=(o,i)=>{Cv(!!n?.isTextInput,o,i)&&e(ms())};return xd.add(r),()=>{xd.delete(r)}},t)}function Ih(e,t){let n=We(t),r=ee(t);if(r==null||n==null)return;let o,i=`meta[name="${CSS.escape(e)}"], meta[property="${CSS.escape(e)}"]`,a=r.querySelector(i);return a&&a instanceof n.HTMLMetaElement&&(e==="csp-nonce"&&a.nonce&&(o??=a.nonce||void 0),a.content&&(o??=a.content||void 0)),e==="csp-nonce"&&(o??=n.__webpack_nonce__||globalThis.__webpack_nonce__||void 0),o}var Wi=100,Cd=600,G={isOpen:!1,screenWidth:0,screenHeight:0,screenAngle:0,screenTimeout:0,startTimeStamp:0,endTimeStamp:0,resizeTimeStamp:0,resizeTimeout:0},kv=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Ui(){let e=Number(window.visualViewport?.width??window.innerWidth),t=Number(window.visualViewport?.height??window.innerHeight),n=Number(window.visualViewport?.scale??1);return{width:e*n,height:t*n,angle:window.screen.orientation?.angle??0}}function Ev(e){G.resizeTimeStamp<=e.timeStamp+50&&(G.resizeTimeStamp=e.timeStamp+150,window.clearTimeout(G.resizeTimeout),G.resizeTimeout=window.setTimeout(Fh,150))}function Fh(){let e=Ih("viewport");if(Do()&&e?.includes("overlays-content"))return;let t=performance.now(),n=Ui(),r=t-G.startTimeStamp,o=G.screenHeight-n.height,i=G.screenAngle-n.angle;Math.abs(i)%180&&G.screenWidth-n.height<Wi&&(G.screenWidth=n.width,G.screenHeight=n.height,G.screenAngle=n.angle,o=0),r>Cd&&(window.clearTimeout(G.screenTimeout),G.screenTimeout=window.setTimeout(()=>{let a=document.hasFocus()?te():null,l=Kh(a),s=Ui();Math.abs(G.screenAngle-s.angle)%180||G.isOpen&&l||(G.screenWidth=s.width,G.screenHeight=s.height,G.screenAngle=s.angle,G.isOpen=!1)},Cd)),r<=Cd&&o>=Wi&&(G.endTimeStamp=t),G.isOpen=o>=Wi}function Tv(){let e=Ui(),t=G.screenAngle-e.angle;if(Math.abs(t)%180&&!G.isOpen){let n=G.screenWidth,r=G.screenHeight;G.screenWidth=r,G.screenHeight=n}G.isOpen||(G.screenAngle=e.angle)}function _v(e){let t=Z(e),n=Kh(t),r=performance.now(),o=Ui(),i=G.screenHeight-o.height;i<Wi&&n&&(G.screenWidth=o.width,G.screenHeight=o.height,G.screenAngle=o.angle,G.startTimeStamp=r),n&&window.clearTimeout(G.screenTimeout),i>=Wi&&n&&(G.endTimeStamp=r)}function Dh(){let e=Ui();nn(window.visualViewport,"resize",Or()?Fh:Ev),nn(window.screen.orientation,"change",Tv),nn(window,"focus",_v,{capture:!0,passive:!0}),G.screenWidth=e.width,G.screenHeight=e.height,G.screenAngle=e.angle}typeof document<"u"&&(document.readyState!=="loading"?Dh():nn(document,"DOMContentLoaded",Dh));function Kh(e){if(!(e instanceof Element)||!os(e))return!1;let t=e instanceof HTMLTextAreaElement,n=e instanceof HTMLElement&&e.isContentEditable,r=e instanceof HTMLInputElement&&!kv.has(e.type);return t||n||r}function ji(e){return Lt()?e.metaKey:e.ctrlKey}var Oo=S(K(),1),Pv=Oo.default.useInsertionEffect??fe;function hs(e){let t=(0,Oo.useRef)(null);return Pv(()=>{t.current=e},[e]),(0,Oo.useCallback)((...n)=>{let r=t.current;return r?.(...n)},[])}var Oh=S(K(),1);function Gi(e,t,n,r){let o=hs(n),i=n==null;(0,Oh.useEffect)(()=>{if(!(i||e.current==null))return nn(e.current,t,o,r)},[e,t,r,i])}function Ah(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;return n=Pt(n),o&&r?o=[...new Set([n,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!r&&!o&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}var Lv=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Nv=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Bh(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return Lv.has(n.script)}let t=e.split("-")[0];return Nv.has(t)}var gs=S(K(),1),Hh=Symbol.for("react-aria.i18n.locale");function Vh(){let e=typeof window<"u"&&window[Hh]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Bh(e)?"rtl":"ltr"}}var kd=Vh(),Qi=new Set;function zh(){kd=Vh();for(let e of Qi)e(kd)}function Wh(){let e=Po(),[t,n]=(0,gs.useState)(kd);return(0,gs.useEffect)(()=>(Qi.size===0&&window.addEventListener("languagechange",zh),Qi.add(n),()=>{Qi.delete(n),Qi.size===0&&window.removeEventListener("languagechange",zh)}),[]),e?{locale:typeof window<"u"&&window[Hh]||"en-US",direction:"ltr"}:t}var $s=S(K(),1),Rv=$s.default.createContext(null);function Vr(){let e=Wh();return(0,$s.useContext)(Rv)||e}var ot=S(K(),1),Mv=typeof document<"u"||parseInt(ot.default.version,10)>=19?ot.default.useInsertionEffect??ot.default.useLayoutEffect:()=>{};function Ao(e,t,n){let[r,o]=(0,ot.useState)(e||t),i=(0,ot.useRef)(r),a=(0,ot.useRef)(e!==void 0),l=e!==void 0;(0,ot.useEffect)(()=>{let d=a.current;a.current=l},[l]);let s=l?e:r;Mv(()=>{i.current=s});let[,u]=(0,ot.useReducer)(()=>({}),{}),c=(0,ot.useCallback)((d,...m)=>{let g=typeof d=="function"?d(i.current):d;Object.is(i.current,g)||(i.current=g,o(g),u(),n?.(g,...m))},[n]);return[s,c]}var Yi=S(K(),1);var Xi=(0,Yi.createContext)(null),Uh=(0,Yi.createContext)(null);var Wt=class{constructor(t){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=t}get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new this.constructor(this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t.render=this.render,t.colSpan=this.colSpan,t.colIndex=this.colIndex,t}filter(t,n,r){let o=this.clone();return n.addDescendants(o,t),o}},qi=class extends Wt{filter(t,n,r){let[o,i]=jh(t,n,this.firstChildKey,r),a=this.clone();return a.firstChildKey=o,a.lastChildKey=i,a}},Ed=class extends Wt{static{this.type="header"}},Wr=class extends Wt{static{this.type="loader"}},Zi=class extends qi{static{this.type="item"}filter(t,n,r){if(r(this.textValue,this)){let o=this.clone();return n.addDescendants(o,t),o}return null}},Ji=class extends qi{static{this.type="section"}filter(t,n,r){let o=super.filter(t,n,r);if(o&&o.lastChildKey!==null){let i=t.getItem(o.lastChildKey);if(i&&i.type!=="header")return o}return null}},ea=class{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0}getChildren(t){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(t),o=r?.firstChildKey!=null?n.get(r.firstChildKey):null;for(;o;)yield o,o=o.nextKey!=null?n.get(o.nextKey):void 0}}}getKeyBefore(t){let n=this.keyMap.get(t);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);return n?.key??null}return n.parentKey}getKeyAfter(t){let n=this.keyMap.get(t);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;t?.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);return t?.key??null}getItem(t){return this.keyMap.get(t)??null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,n=new t;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n.itemCount=this.itemCount,n}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");t.type==="item"&&this.keyMap.get(t.key)==null&&this.itemCount++,this.keyMap.set(t.key,t)}addDescendants(t,n){this.addNode(t);let r=n.getChildren(t.key);for(let o of r)this.addDescendants(o,n)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let n=this.keyMap.get(t);n!=null&&n.type==="item"&&this.itemCount--,this.keyMap.delete(t)}commit(t,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=n,this.frozen=!r}filter(t){let n=new this.constructor,[r,o]=jh(this,n,this.firstKey,t);return n?.commit(r,o),n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}};function jh(e,t,n,r){if(n==null)return[null,null];let o=null,i=null,a=e.getItem(n);for(;a!=null;){let l=a.filter(e,t,r);l!=null&&(l.nextKey=null,i&&(l.prevKey=i.key,i.nextKey=l.key),o==null&&(o=l),t.addNode(l),i=l),a=a.nextKey!=null?e.getItem(a.nextKey):null}if(i&&i.type==="separator"){let l=i.prevKey;t.removeNode(i.key),l!=null?(i=t.getItem(l),i.nextKey=null):i=null}return[o?.key??null,i?.key??null]}var bs=class{constructor(t){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=t}*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){return this.parentNode?.isConnected||!1}invalidateChildIndices(t){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||t.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=t,this.ownerDocument.markDirty(this))}updateChildIndices(){let t=this._minInvalidChildIndex;for(;t;)t.index=t.previousSibling?t.previousSibling.index+1:0,t=t.nextSibling;this._minInvalidChildIndex=null}appendChild(t){t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(t,n){if(n==null)return this.appendChild(t);t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=n,t.previousSibling=n.previousSibling,t.index=n.index-1,this.firstChild===n?this.firstChild=t:n.previousSibling&&(n.previousSibling.nextSibling=t),n.previousSibling=t,t.parentNode=n.parentNode,this.invalidateChildIndices(t),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(t){t.parentNode===this&&(this._minInvalidChildIndex===t&&(this._minInvalidChildIndex=null),t.nextSibling&&(this.invalidateChildIndices(t.nextSibling),t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.markDirty(t),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let t=this.previousSibling;for(;t&&t.isHidden;)t=t.previousSibling;return t}get nextVisibleSibling(){let t=this.nextSibling;for(;t&&t.isHidden;)t=t.nextSibling;return t}get firstVisibleChild(){let t=this.firstChild;for(;t&&t.isHidden;)t=t.nextSibling;return t}get lastVisibleChild(){let t=this.lastChild;for(;t&&t.isHidden;)t=t.previousSibling;return t}},ta=class e extends bs{constructor(t,n){super(n),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof e?this.parentNode.level+(this.parentNode.node?.type==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){let t=this.nextVisibleSibling,n=this.getMutableNode();if(n!=null&&(n.index=this.index,n.level=this.level,n.parentKey=this.parentNode instanceof e?this.parentNode.node?.key??null:null,n.prevKey=this.previousVisibleSibling?.node?.key??null,n.nextKey=t?.node?.key??null,n.hasChildNodes=!!this.firstChild,n.firstChildKey=this.firstVisibleChild?.node?.key??null,n.lastChildKey=this.lastVisibleChild?.node?.key??null,(n.colSpan!=null||n.colIndex!=null)&&t)){let r=(n.colIndex??n.index)+(n.colSpan??1);if(t.node!=null&&r!==t.node.colIndex){let o=t.getMutableNode();o.colIndex=r}}}setProps(t,n,r,o,i){let a,{value:l,textValue:s,id:u,...c}=t;if(this.node==null?(a=new r(u??`react-aria-${++this.ownerDocument.nodeId}`),this.node=a):a=this.getMutableNode(),c.ref=n,a.props=c,a.rendered=o,a.render=i,a.value=l,t["aria-label"]&&(a["aria-label"]=t["aria-label"]),a.textValue=s||(typeof c.children=="string"?c.children:"")||t["aria-label"]||"",u!=null&&u!==a.key)throw new Error("Cannot change the id of an item");c.colSpan!=null&&(a.colSpan=c.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(n){let r=n==="none";if(t.isHidden!==r){(t.parentNode?.firstVisibleChild===t||t.parentNode?.lastVisibleChild===t)&&t.ownerDocument.markDirty(t.parentNode);let o=t.previousVisibleSibling,i=t.nextVisibleSibling;o&&t.ownerDocument.markDirty(o),i&&t.ownerDocument.markDirty(i),t.isHidden=r,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}},ys=class extends bs{constructor(t){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.keyOwners=new Map,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=t,this.nextCollection=t}get isConnected(){return!0}createElement(t){return new ta(t,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(t){this.dirtyNodes.add(t)}addNode(t){if(t.isHidden||t.node==null)return;let n=this.getMutableCollection();if(!n.getItem(t.node.key))for(let r of t)this.addNode(r);n.addNode(t.node)}removeNode(t){for(let n of t)this.removeNode(n);t.node&&this.getMutableCollection().removeNode(t.node.key)}getCollection(){return this.inSubscription?this.collection:(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let t of this.dirtyNodes)t instanceof ta&&(!t.isConnected||t.isHidden)?this.removeNode(t):t.updateChildIndices();for(let t of this.dirtyNodes)t instanceof ta?(t.isConnected&&!t.isHidden&&(t.updateNode(),this.addNode(t)),t.node&&this.dirtyNodes.delete(t),t.isMutated=!1):this.dirtyNodes.delete(t);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(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0,this.isSSR||(this.collection=this.collection.clone());for(let t of this.subscriptions)t();this.inSubscription=!1}}subscribe(t){return this.subscriptions.add(t),this.queuedRender&&t(),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0,this.keyOwners.clear())}};var Bo=S(K(),1);function na(e){let{children:t,items:n,idScope:r,addIdAndValue:o,dependencies:i=[]}=e,a=(0,Bo.useMemo)(()=>{},[t]),l=(0,Bo.useMemo)(()=>new WeakMap,[...i,a]);return(0,Bo.useMemo)(()=>{if(n&&typeof t=="function"){let s=[];for(let u of n){let c=Iv(u)?u:null,d=c?l.get(c):null;if(!d){d=t(u);let m=d.props.id??u?.key??u?.id;r!=null&&d.props.id==null&&m!=null&&(m=r+":"+m);let g=m??s.length;d=(0,Bo.cloneElement)(d,o?{key:g,id:m,value:u}:{key:g}),c&&l.set(c,d)}s.push(d)}return s}else if(typeof t!="function")return t},[t,n,l,r,o])}function Iv(e){switch(typeof e){case"object":return e!=null;case"function":case"symbol":return!0;default:return!1}}var fr=new Map,vs=new Set;function Qh(e){return"propertyName"in e}function Dv(e){let t=Z(e);if(!Qh(e)||!t)return;let n=fr.get(t);n||(n=new Set,fr.set(t,n),t.addEventListener("transitioncancel",Td,{once:!0})),n.add(e.propertyName)}function Td(e){let t=Z(e);if(!Qh(e)||!t)return;let n=fr.get(t);if(n&&(n.delete(e.propertyName),n.size===0&&(t.removeEventListener("transitioncancel",Td),fr.delete(t)),fr.size===0))for(let r of vs)r(!0),vs.delete(r)}function Gh(){nn(document,"transitionrun",Dv),nn(document,"transitionend",Td)}function Fv(){for(let[e]of fr)"isConnected"in e&&!e.isConnected&&fr.delete(e)}typeof document<"u"&&(document.readyState!=="loading"?Gh():nn(document,"DOMContentLoaded",Gh));function Yh(e){let t=window.requestAnimationFrame(()=>{if(Fv(),fr.size===0)return e(!1);vs.add(e)});return()=>{window.cancelAnimationFrame(t),vs.delete(e)}}function ra(e){if(!e.isConnected)return;let t=ee(e);if(Hr()==="virtual"){let n=te(t);Yh(()=>{let r=te(t);(r===n||r===t.body)&&e.isConnected&&dr(e)})}else dr(e)}var _d=S(K(),1);function Xh(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e,i=(0,_d.useCallback)(s=>{if(Z(s)===s.currentTarget)return r&&r(s),o&&o(!1),!0},[r,o]),a=ls(i),l=(0,_d.useCallback)(s=>{let u=Z(s),c=ee(u),d=c?te(c):te();u===s.currentTarget&&u===d&&(n&&n(s),o&&o(!0),a(s))},[o,n,a]);return{focusProps:{onFocus:!t&&(n||o||r)?l:void 0,onBlur:!t&&(r||o)?i:void 0}}}function oa(e){if(e)return t=>{let n=!0,r={...t,preventDefault(){t.preventDefault()},isDefaultPrevented(){return t.isDefaultPrevented()},stopPropagation(){n=!0},continuePropagation(){n=!1,typeof t.continuePropagation=="function"&&t.continuePropagation()},isPropagationStopped(){return n}};e(r),n&&!(typeof t.isPropagationStopped=="function"&&t.isPropagationStopped())&&t.stopPropagation()}}var Kv=new Set(["shift","alt","control","meta","mod"]),Ov=["Alt","Control","Meta","Shift"];function Av(e){let t=new Set;return e.alt&&t.add("Alt"),e.shift&&t.add("Shift"),e.ctrl&&t.add("Control"),e.meta&&t.add("Meta"),e.mod&&t.add(Lt()?"Meta":"Control"),t}function Bv(e){let t=new Set;return e.altKey&&t.add("Alt"),e.ctrlKey&&t.add("Control"),e.metaKey&&t.add("Meta"),e.shiftKey&&t.add("Shift"),t}function qh(e){return Ov.filter(t=>e.has(t))}function zv(e){let t=e.split("+").reduce((n,r)=>{let o=r.toLowerCase();return Kv.has(o)?o==="shift"?n.shift=!0:o==="alt"?n.alt=!0:o==="control"?n.ctrl=!0:o==="meta"?n.meta=!0:o==="mod"&&(n.mod=!0):n.key=r,n},{shift:!1,alt:!1,ctrl:!1,meta:!1,mod:!1,key:""});if(t.key==="")throw new Error(`Invalid keyboard shortcut: "${e}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);return t}function Zh(e){return e.toLowerCase()}var Hv={space:" ",esc:"escape",del:"delete",ins:"insert",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",pageup:"pageup",pagedown:"pagedown"};function Vv(e){let t=Zh(e),n=Hv[t];return n??t}function Wv(e){let t=qh(Av(e)),n=Vv(e.key);return t.length>0?`${t.join("+")}+${n}`:n}function Uv(e){let t=qh(Bv(e)),n=Zh(e.key);return(t.length>0?`${t.join("+")}+`:"")+n}function Jh(e){let t=new Map;for(let[n,r]of Object.entries(e)){let o=zv(n);t.set(Wv(o),r)}return n=>{let r=Uv(n),o=t.get(r),i=o?.(n);i===void 0&&o!==void 0?i={shouldContinuePropagation:!1,shouldPreventDefault:!0}:typeof i=="boolean"&&(i={shouldContinuePropagation:!i,shouldPreventDefault:i}),i?.shouldPreventDefault&&n.preventDefault(),(!o||i?.shouldContinuePropagation)&&n.continuePropagation()}}function Pd(e){let{shortcuts:t,allowRepeats:n=!1,allowComposing:r=!1}=e,o,i;if(t){let a=Jh(t),l=oa(u=>{if(!_e(u.currentTarget,Z(u))){u.continuePropagation();return}if(u.nativeEvent?.repeat&&!n||u.nativeEvent?.isComposing&&!r){u.continuePropagation();return}a(u)}),s=oa(u=>{if(!_e(u.currentTarget,Z(u))){u.continuePropagation();return}if(u.nativeEvent?.repeat&&!n||u.nativeEvent?.isComposing&&!r){u.continuePropagation();return}u.continuePropagation()});o=e.onKeyDown?Bi(e.onKeyDown,l):l,i=e.onKeyUp?Bi(e.onKeyUp,s):s}else o=oa(e.onKeyDown),i=oa(e.onKeyUp);return{keyboardProps:e.isDisabled?{}:{onKeyDown:o,onKeyUp:i}}}var zo=S(K(),1),Ld=zo.default.createContext(null);var bn=S(K(),1);typeof HTMLTemplateElement<"u"&&(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)}}));var eg=(0,bn.createContext)(!1);function tg(e){if((0,bn.useContext)(eg))return bn.default.createElement(bn.default.Fragment,null,e.children);let n=bn.default.createElement(eg.Provider,{value:!0},e.children);return bn.default.createElement("template",null,n)}var lg=S(Ir(),1),H=S(K(),1),sg=S(ig(),1),ug=(0,H.createContext)(!1),ia=(0,H.createContext)(null);function aa(e){if((0,H.useContext)(ia))return e.content;let{collection:n,document:r}=o1(e.createCollection);return H.default.createElement(H.default.Fragment,null,H.default.createElement(tg,null,H.default.createElement(ia.Provider,{value:r},e.content)),H.default.createElement(t1,{render:e.children,collection:n}))}function t1({collection:e,render:t}){return t(e)}function n1(e,t,n){let r=Po(),o=(0,H.useRef)(r);o.current=r;let i=(0,H.useCallback)(()=>o.current?n():t(),[t,n]);return(0,sg.useSyncExternalStore)(e,i)}var r1=typeof H.default.useSyncExternalStore=="function"?H.default.useSyncExternalStore:n1;function o1(e){let[t]=(0,H.useState)(()=>new ys(e?.()||new ea)),n=(0,H.useCallback)(a=>t.subscribe(a),[t]),r=(0,H.useCallback)(()=>{let a=t.getCollection();return t.isSSR&&t.resetAfterSSR(),a},[t]),o=(0,H.useCallback)(()=>(t.isSSR=!0,t.getCollection()),[t]);return{collection:r1(n,r,o),document:t}}var Rd=(0,H.createContext)(null);function i1(e){return class extends Wt{static{this.type=e}}}function a1(e,t,n,r,o,i){typeof e=="string"&&(e=i1(e));let a=(0,H.useCallback)(s=>{s?.setProps(t,n,e,r,i)},[t,n,r,i,e]),l=(0,H.useContext)(Rd);if(l){let s=l.ownerDocument.nodesByProps.get(t);return s||(s=l.ownerDocument.createElement(e.type),s.setProps(t,n,e,r,i),l.appendChild(s),l.ownerDocument.updateCollection(),l.ownerDocument.nodesByProps.set(t,s)),o?H.default.createElement(Rd.Provider,{value:s},o):null}return H.default.createElement(e.type,{ref:a},o)}function la(e,t){let n=({node:o})=>t(o.props,o.props.ref,o),r=(0,H.forwardRef)((o,i)=>{let a=(0,H.useContext)(Ld);if(!(0,H.useContext)(ug)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(o,i)}return a1(e,o,i,"children"in o?o.children:null,null,s=>H.default.createElement(Ld.Provider,{value:a},H.default.createElement(n,{node:s})))});return r.displayName=t.name,r}function l1(e){return na({...e,addIdAndValue:!0})}var ag=(0,H.createContext)(null);function sa(e){let t=(0,H.useContext)(ag),n=(t?.dependencies||[]).concat(e.dependencies),r=e.idScope??t?.idScope,o=l1({...e,idScope:r,dependencies:n});return(0,H.useContext)(ia)&&(o=H.default.createElement(s1,null,o)),t=(0,H.useMemo)(()=>({dependencies:n,idScope:r}),[r,...n]),H.default.createElement(ag.Provider,{value:t},o)}function s1({children:e}){let t=(0,H.useContext)(ia),n=(0,H.useMemo)(()=>H.default.createElement(ia.Provider,{value:null},H.default.createElement(ug.Provider,{value:!0},e)),[e]);return Po()?H.default.createElement(Rd.Provider,{value:t},n):(0,lg.createPortal)(n,t)}var it=S(K(),1);var xs=(0,it.createContext)(null);var u1={CollectionRoot({collection:e,renderDropIndicator:t}){return dg(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return dg(e,t,n)}};function dg(e,t,n){return na({items:t?e.getChildren(t.key):e,dependencies:[n],children(r){if(r.type==="content")return it.default.createElement(it.default.Fragment,null);let o=r.render(r);return!n||r.type!=="item"?o:it.default.createElement(it.default.Fragment,null,n({type:"item",key:r.key,dropPosition:"before"}),o,c1(e,r,n))}})}function c1(e,t,n){let r=t.key,o=e.getKeyAfter(r),i=o!=null?e.getItem(o):null;for(;i!=null&&i.type!=="item";)o=e.getKeyAfter(i.key),i=o!=null?e.getItem(o):null;let a=t.nextKey!=null?e.getItem(t.nextKey):null;for(;a!=null&&a.type!=="item";)a=a.nextKey!=null?e.getItem(a.nextKey):null;let l=[];if(a==null){let s=t;for(;s?.type==="item"&&(!i||s.parentKey!==i.parentKey&&i.level<s.level);){let u=n({type:"item",key:s.key,dropPosition:"after"});(0,it.isValidElement)(u)&&l.push((0,it.cloneElement)(u,{key:`${s.key}-after`})),s=s.parentKey!=null?e.getItem(s.parentKey):null}}return l}var Ur=(0,it.createContext)(u1);function fg(e){return(0,it.useMemo)(()=>e!=null?new Set([e]):null,[e])}var d1=new Set(["id"]),f1=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),p1=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),m1=new Set(["dir","lang","hidden","inert","translate","suppressHydrationWarning"]),pg=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),h1=/^(data-.*)$/;function Nt(e,t={}){let{labelable:n,isLink:r,global:o,events:i=o,propNames:a}=t,l={};for(let s in e)Object.prototype.hasOwnProperty.call(e,s)&&(d1.has(s)||n&&f1.has(s)||r&&p1.has(s)||o&&m1.has(s)||i&&(pg.has(s)||s.endsWith("Capture")&&pg.has(s.slice(0,-7)))||a?.has(s)||h1.test(s))&&(l[s]=e[s]);return l}var pr=S(K(),1);function mg(){let e=(0,pr.useRef)(new Map),t=(0,pr.useCallback)((o,i,a,l)=>{let s=l?.once?(...u)=>{e.current.delete(a),a(...u)}:a;e.current.set(a,{type:i,eventTarget:o,fn:s,options:l}),o.addEventListener(i,s,l)},[]),n=(0,pr.useCallback)((o,i,a,l)=>{let s=e.current.get(a)?.fn||a;o.removeEventListener(i,s,l),e.current.delete(a)},[]),r=(0,pr.useCallback)(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return(0,pr.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}var ua=S(K(),1);function ws(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=(0,ua.useRef)({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:l}=mg(),s=(0,ua.useCallback)(d=>{_e(d.currentTarget,Z(d))&&i.current.isFocusWithin&&!_e(d.currentTarget,d.relatedTarget)&&(i.current.isFocusWithin=!1,l(),n&&n(d),o&&o(!1))},[n,o,i,l]),u=ls(s),c=(0,ua.useCallback)(d=>{if(!_e(d.currentTarget,Z(d)))return;let m=Z(d),g=ee(m),y=te(g);if(!i.current.isFocusWithin&&y===m){r&&r(d),o&&o(!0),i.current.isFocusWithin=!0,u(d);let b=d.currentTarget;a(g,"focus",R=>{let p=Z(R);if(i.current.isFocusWithin&&!_e(b,p)){let f=new g.defaultView.FocusEvent("blur",{relatedTarget:p});Ch(f,b);let h=$d(f);s(h)}},{capture:!0})}},[r,o,u,a,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:s}}}var mr=S(K(),1);function Md(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=(0,mr.useRef)({isFocused:!1,isFocusVisible:t||ms()}),[i,a]=(0,mr.useState)(!1),[l,s]=(0,mr.useState)(()=>o.current.isFocused&&o.current.isFocusVisible),u=(0,mr.useCallback)(()=>s(o.current.isFocused&&o.current.isFocusVisible),[]),c=(0,mr.useCallback)(g=>{o.current.isFocused=g,o.current.isFocusVisible=ms(),a(g),u()},[u]);Mh(g=>{o.current.isFocusVisible=g,u()},[n,i],{enabled:i,isTextInput:n});let{focusProps:d}=Xh({isDisabled:r,onFocusChange:c}),{focusWithinProps:m}=ws({isDisabled:!r,onFocusWithinChange:c});return{isFocused:i,isFocusVisible:l,focusProps:r?m:d}}function hg(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:i="label"}=e;t=Pt(t);let a=Pt(),l={};n&&(r=r?`${a} ${r}`:a,l={id:a,htmlFor:i==="label"?t:void 0});let s=Ah({id:t,"aria-label":o,"aria-labelledby":r});return{labelProps:l,fieldProps:s}}function hr(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=document.scrollingElement||document.documentElement,o=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return e===r&&n.overflow!=="hidden"&&(o=!0),o&&t&&(o=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),o}function gg(e,t){let n=e;for(hr(n,t)&&(n=n.parentElement);n&&!hr(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function Ss(e,t){let n=[],r=document.scrollingElement||document.documentElement;for(;e&&(hr(e,t)&&n.push(e),e!==r);)e=e.parentElement;return n}function ca(e,t,n={}){if(e===t)return;let r=t.getBoundingClientRect();g1(e,t,r,n)}function g1(e,t,n,r={}){let{block:o="nearest",inline:i="nearest"}=r,a=e.scrollTop,l=e.scrollLeft,s=e.getBoundingClientRect(),u=window.getComputedStyle(t),c=window.getComputedStyle(e),d=document.scrollingElement||document.documentElement,m=e===d,g=e===d?0:s.top,y=e===d?e.clientHeight:s.bottom,b=e===d?0:s.left,R=e===d?e.clientWidth:s.right,p=parseFloat(u.scrollMarginTop)||0,f=parseFloat(u.scrollMarginBottom)||0,h=parseFloat(u.scrollMarginLeft)||0,$=parseFloat(u.scrollMarginRight)||0,C=parseFloat(c.scrollPaddingTop)||0,E=parseFloat(c.scrollPaddingBottom)||0,P=parseFloat(c.scrollPaddingLeft)||0,N=parseFloat(c.scrollPaddingRight)||0,M=parseFloat(c.borderTopWidth)||0,F=parseFloat(c.borderBottomWidth)||0,j=parseFloat(c.borderLeftWidth)||0,O=parseFloat(c.borderRightWidth)||0,I=n.top-p,B=n.bottom+f,V=n.left-h,se=n.right+$,Me=e===d?0:j+O,ft=e===d?0:M+F,Hn=e===d?0:e.offsetWidth-e.clientWidth-Me,un=e===d?0:e.offsetHeight-e.clientHeight-ft,Ze=g+(m?0:M)+C,pt=y-(m?0:F)-E-un,cn=b+(m?0:j)+P,Dt=R-(m?0:O)-N;us()&&Or()||c.direction==="ltr"?Dt-=Hn:c.direction==="rtl"&&(cn+=Hn);let jt=I<Ze||B>pt,Ft=V<cn||se>Dt;if(jt&&o==="start")a+=I-Ze;else if(jt&&o==="center")a+=(I+B)/2-(Ze+pt)/2;else if(jt&&o==="end")a+=B-pt;else if(jt&&o==="nearest"){let xt=I-Ze,Cn=B-pt;a+=Math.abs(xt)<=Math.abs(Cn)?xt:Cn}if(Ft&&i==="start")l+=V-cn;else if(Ft&&i==="center")l+=(V+se)/2-(cn+Dt)/2;else if(Ft&&i==="end")l+=se-Dt;else if(Ft&&i==="nearest"){let xt=V-cn,Cn=se-Dt;l+=Math.abs(xt)<=Math.abs(Cn)?xt:Cn}e.scrollTo({left:l,top:a})}function Id(e,t={}){let{containingElement:n}=t;if(e&&e.isConnected){let r=document.scrollingElement||document.documentElement;if(window.getComputedStyle(r).overflow==="hidden"){let{left:i,top:a}=e.getBoundingClientRect(),l=Ss(e,!0);for(let c of l)ca(c,e);let{left:s,top:u}=e.getBoundingClientRect();if(Math.abs(i-s)>1||Math.abs(a-u)>1){l=n?Ss(n,!0):[];for(let c of l)ca(c,n,{block:"center",inline:"center"});for(let c of Ss(e,!0))ca(c,e)}}else{let{left:i,top:a}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});let{left:l,top:s}=e.getBoundingClientRect();(Math.abs(i-l)>1||Math.abs(a-s)>1)&&(n?.scrollIntoView?.({block:"center",inline:"center"}),e.scrollIntoView?.({block:"nearest"}))}}}var at=S(K(),1),Cs=(0,at.createContext)({}),Dd=(0,at.createContext)(null),$1=(0,at.forwardRef)(function(t,n){let{render:r}=(0,at.useContext)(Dd);return at.default.createElement(at.default.Fragment,null,r(t,n))});function Fd(e,t){let n=e?.renderDropIndicator,r=e?.isVirtualDragging?.(),o=(0,at.useCallback)(i=>{if(r||t?.isDropTarget(i))return n?n(i):at.default.createElement($1,{target:i})},[t?.target,r,n]);return e?.useDropIndicator?o:void 0}function $g(e,t,n){let r=e.focusedKey,o=null;if(t?.isVirtualDragging?.()&&n?.target?.type==="item"&&(o=n.target.key,n.target.dropPosition==="after")){let i=n.collection.getKeyAfter(o),a=null;if(i!=null){let l=n.collection.getItem(o)?.level??0;for(;i!=null;){let s=n.collection.getItem(i);if(!s)break;if(s.type!=="item"){i=n.collection.getKeyAfter(i);continue}if((s.level??0)<=l)break;a=i,i=n.collection.getKeyAfter(i)}}o=i??a??o}return(0,at.useMemo)(()=>new Set([r,o].filter(i=>i!=null)),[r,o])}var Kd=S(K(),1),ks=(0,Kd.createContext)({});var b1=S(Ir(),1),On=S(K(),1);var y1=(0,On.createContext)(null);function Es(e){let t=(0,On.useRef)({});return On.default.createElement(y1.Provider,{value:t},e.children)}var Od=S(K(),1),Ts=(0,Od.createContext)({}),bg=class extends Wt{static{this.type="separator"}filter(t,n){let r=n.getItem(this.prevKey);if(r&&r.type!=="separator"){let o=this.clone();return n.addDescendants(o,t),o}return null}};var yg=new WeakMap;var Ad=class{constructor(t,n,r,o){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=a=>{if(a.nodeType===Node.ELEMENT_NODE){let l=a.shadowRoot;if(l){let s=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(s),NodeFilter.FILTER_ACCEPT}else{if(typeof this.filter=="function")return this.filter(a);if(this.filter?.acceptNode)return this.filter.acceptNode(a);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=n,this.filter=o??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(t.createTreeWalker(n,r,this._acceptNode));let i=n.shadowRoot;if(i){let a=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(a)}}get currentNode(){return this._currentNode}set currentNode(t){if(!_e(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");let n=[],r=t,o=t;for(this._currentNode=t;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let a=r,l=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});n.push(l),l.currentNode=o,this._currentSetFor.add(l),r=o=a.host}else r=r.parentNode;let i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(i),i.currentNode=o,this._currentSetFor.add(i),this._walkerStack=n}get doc(){return this._doc}firstChild(){let t=this.currentNode,n=this.nextNode();return _e(t,n)?(n&&(this.currentNode=n),n):(this.currentNode=t,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){let t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){let r;if(typeof this.filter=="function"?r=this.filter(t):this.filter?.acceptNode&&(r=this.filter.acceptNode(t)),r===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let o=this.nextNode();return o&&(this.currentNode=o),o}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let n=this.nextNode();return n&&(this.currentNode=n),n}else return null}previousNode(){let t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let r=this.previousNode();return r&&(this.currentNode=r),r}else return null;return null}let n=t.previousNode();if(n){if(n.shadowRoot){let o;if(typeof this.filter=="function"?o=this.filter(n):this.filter?.acceptNode&&(o=this.filter.acceptNode(n)),o===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let i=this.lastChild();return i&&(this.currentNode=i),i}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.previousNode();return r&&(this.currentNode=r),r}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}};function vg(e,t,n,r){return Kr()?new Ad(e,t,n,r):e.createTreeWalker(t,n,r)}var Ee=S(K(),1),xg=Ee.default.createContext(null),Bd="react-aria-focus-scope-restore",ge=null;function pa(e){let{children:t,contain:n,restoreFocus:r,autoFocus:o}=e,i=(0,Ee.useRef)(null),a=(0,Ee.useRef)(null),l=(0,Ee.useRef)([]),{parentNode:s}=(0,Ee.useContext)(xg)||{},u=(0,Ee.useMemo)(()=>new fa({scopeRef:l}),[l]);fe(()=>{let m=s||Re.root;if(Re.getTreeNode(m.scopeRef)&&ge&&!_s(ge,m.scopeRef)){let g=Re.getTreeNode(ge);g&&(m=g)}m.addChild(u),Re.addNode(u)},[u,s]),fe(()=>{let m=Re.getTreeNode(l);m&&(m.contain=!!n)},[n]),fe(()=>{let m=i.current?.nextSibling,g=[],y=b=>b.stopPropagation();for(;m&&m!==a.current;)g.push(m),m.addEventListener(Bd,y),m=m.nextSibling;return l.current=g,()=>{for(let b of g)b.removeEventListener(Bd,y)}},[t]),k1(l,r,n),S1(l,n),E1(l,r,n),C1(l,o),(0,Ee.useEffect)(()=>{let m=te(ee(l.current?l.current[0]:void 0)),g=null;if(Ut(m,l.current)){for(let y of Re.traverse())y.scopeRef&&Ut(m,y.scopeRef.current)&&(g=y);g===Re.getTreeNode(l)&&(ge=g.scopeRef)}},[l]),fe(()=>()=>{let m=Re.getTreeNode(l)?.parent?.scopeRef??null;(l===ge||_s(l,ge))&&(!m||Re.getTreeNode(m))&&(ge=m),Re.removeTreeNode(l)},[l]);let c=(0,Ee.useMemo)(()=>v1(l),[]),d=(0,Ee.useMemo)(()=>({focusManager:c,parentNode:u}),[u,c]);return Ee.default.createElement(xg.Provider,{value:d},Ee.default.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,Ee.default.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function v1(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t,l=r||te(ee(n[0]??void 0)),s=n[0].previousElementSibling,u=jr(n),c=yn(u,{tabbable:o,accept:a},n);c.currentNode=Ut(l,n)?l:s;let d=c.nextNode();return!d&&i&&(c.currentNode=s,d=c.nextNode()),d&&rn(d,!0),d},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t,l=r||te(ee(n[0]??void 0)),s=n[n.length-1].nextElementSibling,u=jr(n),c=yn(u,{tabbable:o,accept:a},n);c.currentNode=Ut(l,n)?l:s;let d=c.previousNode();return!d&&i&&(c.currentNode=s,d=c.previousNode()),d&&rn(d,!0),d},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=jr(n),a=yn(i,{tabbable:r,accept:o},n);a.currentNode=n[0].previousElementSibling;let l=a.nextNode();return l&&rn(l,!0),l},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=jr(n),a=yn(i,{tabbable:r,accept:o},n);a.currentNode=n[n.length-1].nextElementSibling;let l=a.previousNode();return l&&rn(l,!0),l}}}function jr(e){return e[0].parentElement}function da(e){let t=Re.getTreeNode(ge);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function x1(e){if(!e.form)return Array.from(ee(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter(r=>!r.form);let t=e.form.elements.namedItem(e.name),n=We(e);return t instanceof n.RadioNodeList?Array.from(t).filter(r=>r instanceof n.HTMLInputElement):t instanceof n.HTMLInputElement?[t]:[]}function w1(e){if(e.checked)return!0;let t=x1(e);return t.length>0&&!t.some(n=>n.checked)}function S1(e,t){let n=(0,Ee.useRef)(void 0),r=(0,Ee.useRef)(void 0);fe(()=>{let o=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}let i=ee(o?o[0]:void 0),a=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!da(e)||u.isComposing)return;let c=te(i),d=e.current;if(!d||!Ut(c,d))return;let m=jr(d),g=yn(m,{tabbable:!0},d);if(!c)return;g.currentNode=c;let y=u.shiftKey?g.previousNode():g.nextNode();y||(g.currentNode=u.shiftKey?d[d.length-1].nextElementSibling:d[0].previousElementSibling,y=u.shiftKey?g.previousNode():g.nextNode()),u.preventDefault(),y&&(rn(y,!0),y instanceof We(y).HTMLInputElement&&y.select())},l=u=>{(!ge||_s(ge,e))&&Ut(Z(u),e.current)?(ge=e,n.current=Z(u)):da(e)&&!Gr(Z(u),e)?n.current?rn(n.current):ge&&ge.current&&zd(ge.current):da(e)&&(n.current=Z(u))},s=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let c=Hr(),d=(c==="virtual"||c===null)&&Do()&&cs(),m=te(i);if(!d&&m&&da(e)&&!Gr(m,e)){ge=e;let g=Z(u);g&&g.isConnected?(n.current=g,rn(n.current)):ge.current&&zd(ge.current)}})};return i.addEventListener("keydown",a,!1),i.addEventListener("focusin",l,!1),o?.forEach(u=>u.addEventListener("focusin",l,!1)),o?.forEach(u=>u.addEventListener("focusout",s,!1)),()=>{i.removeEventListener("keydown",a,!1),i.removeEventListener("focusin",l,!1),o?.forEach(u=>u.removeEventListener("focusin",l,!1)),o?.forEach(u=>u.removeEventListener("focusout",s,!1))}},[e,t]),fe(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Cg(e){return Gr(e)}function Ut(e,t){return!e||!t?!1:t.some(n=>_e(n,e))}function Gr(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Re.traverse(Re.getTreeNode(t)))if(n&&Ut(e,n.current))return!0;return!1}function _s(e,t){let n=Re.getTreeNode(t)?.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function rn(e,t=!1){if(e!=null&&!t)try{ra(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function kg(e,t=!0){let n=e[0].previousElementSibling,r=jr(e),o=yn(r,{tabbable:t},e);o.currentNode=n;let i=o.nextNode();return t&&!i&&(r=jr(e),o=yn(r,{tabbable:!1},e),o.currentNode=n,i=o.nextNode()),i}function zd(e,t=!0){rn(kg(e,t))}function C1(e,t){let n=Ee.default.useRef(t);(0,Ee.useEffect)(()=>{if(n.current){ge=e;let r=ee(e.current?e.current[0]:void 0);!Ut(te(r),ge.current)&&e.current&&zd(e.current)}n.current=!1},[e])}function k1(e,t,n){fe(()=>{if(t||n)return;let r=e.current,o=ee(r?r[0]:void 0),i=a=>{let l=Z(a);Ut(l,e.current)?ge=e:Cg(l)||(ge=null)};return o.addEventListener("focusin",i,!1),r?.forEach(a=>a.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),r?.forEach(a=>a.removeEventListener("focusin",i,!1))}},[e,t,n])}function wg(e){let t=Re.getTreeNode(ge);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function E1(e,t,n){let r=(0,Ee.useRef)(typeof document<"u"?te(ee(e.current?e.current[0]:void 0)):null);fe(()=>{let o=e.current,i=ee(o?o[0]:void 0);if(!t||n)return;let a=()=>{(!ge||_s(ge,e))&&Ut(te(i),e.current)&&(ge=e)};return i.addEventListener("focusin",a,!1),o?.forEach(l=>l.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),o?.forEach(l=>l.removeEventListener("focusin",a,!1))}},[e,n]),fe(()=>{let o=ee(e.current?e.current[0]:void 0);if(!t)return;let i=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!da(e)||a.isComposing)return;let l=o.activeElement;if(!Gr(l,e)||!wg(e))return;let s=Re.getTreeNode(e);if(!s)return;let u=s.nodeToRestore,c=yn(o.body,{tabbable:!0});c.currentNode=l;let d=a.shiftKey?c.previousNode():c.nextNode();if((!u||!u.isConnected||u===o.body)&&(u=void 0,s.nodeToRestore=void 0),(!d||!Gr(d,e))&&u){c.currentNode=u;do d=a.shiftKey?c.previousNode():c.nextNode();while(Gr(d,e));a.preventDefault(),a.stopPropagation(),d?rn(d,!0):Cg(u)?rn(u,!0):l.blur()}};return n||o.addEventListener("keydown",i,!0),()=>{n||o.removeEventListener("keydown",i,!0)}},[e,t,n]),fe(()=>{let o=ee(e.current?e.current[0]:void 0);if(!t)return;let i=Re.getTreeNode(e);if(i)return i.nodeToRestore=r.current??void 0,()=>{let a=Re.getTreeNode(e);if(!a)return;let l=a.nodeToRestore,s=te(o);if(t&&l&&(s&&Gr(s,e)||s===o.body&&wg(e))){let u=Re.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let c=u.getTreeNode(e);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){Sg(c.nodeToRestore);return}c=c.parent}for(c=u.getTreeNode(e);c;){if(c.scopeRef&&c.scopeRef.current&&Re.getTreeNode(c.scopeRef)){let d=kg(c.scopeRef.current,!0);if(d){Sg(d);return}}c=c.parent}}})}}},[e,t])}function Sg(e){e.dispatchEvent(new CustomEvent(Bd,{bubbles:!0,cancelable:!0}))&&rn(e)}function yn(e,t,n){let r=t?.tabbable?is:os,o=e?.nodeType===Node.ELEMENT_NODE?e:null,i=ee(o),a=vg(i,e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(l){return _e(t?.from,l)||t?.tabbable&&l.tagName==="INPUT"&&l.getAttribute("type")==="radio"&&(!w1(l)||a.currentNode.tagName==="INPUT"&&a.currentNode.type==="radio"&&a.currentNode.name===l.name)?NodeFilter.FILTER_REJECT:r(l)&&(!n||Ut(l,n))&&(!t?.accept||t.accept(l))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(a.currentNode=t.from),a}var Hd=class e{constructor(){this.fastMap=new Map,this.root=new fa({scopeRef:null}),this.fastMap.set(null,this.root)}get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let o=this.fastMap.get(n??null);if(!o)return;let i=new fa({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Ut(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let o=n.children;r&&(r.removeChild(n),o.size>0&&o.forEach(i=>r&&r.addChild(i))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){let t=new e;for(let n of this.traverse())t.addTreeNode(n.scopeRef,n.parent?.scopeRef??null,n.nodeToRestore);return t}},fa=class{constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}},Re=new Hd;function Vd(e){return kh()?e.altKey:e.ctrlKey}function vn(e,t){let n=`[data-key="${CSS.escape(String(t))}"]`,r=e.current?.dataset.collection;return r&&(n=`[data-collection="${CSS.escape(r)}"]${n}`),e.current?.querySelector(n)}var T1=new WeakMap;function Eg(e){let t=Pt();return T1.set(e,t),t}var Ps=S(K(),1),Tg=1e3;function _g(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,o=(0,Ps.useRef)({search:"",timeout:void 0}),i=l=>{if(o.current.search.length>0&&l.key===" "){if(l.preventDefault(),(!("continuePropagation"in l)||"continuePropagation"in l&&!l.isPropagationStopped())&&l.stopPropagation(),o.current.search+=" ",t.getKeyForSearch!=null){let s=t.getKeyForSearch(o.current.search,n.focusedKey);s==null&&(s=t.getKeyForSearch(o.current.search)),s!=null&&(n.setFocusedKey(s),r&&r(s))}clearTimeout(o.current.timeout),o.current.timeout=setTimeout(()=>{o.current.search=""},Tg)}},a=l=>{let s=_1(l.key);if(!(!s||l.ctrlKey||l.metaKey||l.altKey||!_e(l.currentTarget,Z(l))||o.current.search.length===0&&s===" ")){if(o.current.search+=s,t.getKeyForSearch!=null){let u=t.getKeyForSearch(o.current.search,n.focusedKey);if(u==null&&(u=t.getKeyForSearch(o.current.search)),u!=null)n.setFocusedKey(u),r&&r(u),l.preventDefault(),"continuePropagation"in l||l.stopPropagation();else{o.current.search="",clearTimeout(o.current.timeout),o.current.timeout=void 0;return}}clearTimeout(o.current.timeout),o.current.timeout=setTimeout(()=>{o.current.search=""},Tg)}};return(0,Ps.useEffect)(()=>{let l=o.current.timeout;return()=>{clearTimeout(l)}},[o]),{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:void 0,onKeyDown:t.getKeyForSearch?a:void 0}}}function _1(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}var Wd=S(K(),1);function Ud(e,t){let n=(0,Wd.useRef)(!0),r=(0,Wd.useRef)(null);fe(()=>(n.current=!0,()=>{n.current=!1}),[]),fe(()=>{n.current?n.current=!1:(!r.current||t.some((o,i)=>!Object.is(o,r[i])))&&e(),r.current=t},t)}var Pg=S(Ir(),1),on=S(K(),1);function Lg(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:a=!1,disallowSelectAll:l=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:u=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:d,allowsTabNavigation:m=!1,scrollRef:g=r,linkBehavior:y="action",UNSTABLE_focusOnEntry:b}=e,{direction:R}=Vr(),p=Th(),f=(v,k,Ce)=>{if(k!=null){if(t.isLink(k)&&y==="selection"&&u&&!Vd(v)){(0,Pg.flushSync)(()=>{t.setFocusedKey(k,Ce)});let oe=vn(r,k),$f=t.getItemProps(k);if(oe){p.open(oe,v,$f.href,$f.routerOptions);return}return!1}if(t.setFocusedKey(k,Ce),t.isLink(k)&&y==="override")return!1;if(v.shiftKey&&t.selectionMode==="multiple"){t.extendSelection(k);return}else if(u&&!Vd(v)){t.replaceSelection(k);return}}return!1},h=v=>{if(n.getKeyBelow){let k=t.focusedKey!=null?n.getKeyBelow?.(t.focusedKey):n.getFirstKey?.();if(k==null&&i&&(k=n.getFirstKey?.(t.focusedKey)),k!=null){f(v,k);return}}return!1},$=v=>{if(n.getKeyAbove){let k=t.focusedKey!=null?n.getKeyAbove?.(t.focusedKey):n.getLastKey?.();if(k==null&&i&&(k=n.getLastKey?.(t.focusedKey)),k!=null){f(v,k);return}}return!1},C=v=>{if(n.getFirstKey){if(t.focusedKey===null&&v.shiftKey)return!1;let k=n.getFirstKey(t.focusedKey,ji(v));if(t.setFocusedKey(k),k!=null){if(ji(v)&&v.shiftKey&&t.selectionMode==="multiple"){t.extendSelection(k);return}else if(u){t.replaceSelection(k);return}}}return!1},E=v=>{if(n.getKeyLeftOf){let k=t.focusedKey!=null?n.getKeyLeftOf?.(t.focusedKey):n.getFirstKey?.();if(k==null&&i&&(k=R==="rtl"?n.getFirstKey?.(t.focusedKey):n.getLastKey?.(t.focusedKey)),k!=null){f(v,k,R==="rtl"?"first":"last");return}}return!1},P=v=>{if(n.getKeyRightOf){let k=t.focusedKey!=null?n.getKeyRightOf?.(t.focusedKey):n.getFirstKey?.();if(k==null&&i&&(k=R==="rtl"?n.getLastKey?.(t.focusedKey):n.getFirstKey?.(t.focusedKey)),k!=null){f(v,k,R==="rtl"?"last":"first");return}}return!1},N=v=>{if(n.getLastKey){if(t.focusedKey===null&&v.shiftKey)return!1;let k=n.getLastKey(t.focusedKey,ji(v));if(t.setFocusedKey(k),k!=null){if(ji(v)&&v.shiftKey&&t.selectionMode==="multiple"){t.extendSelection(k);return}else if(u){t.replaceSelection(k);return}}}return!1},M=v=>{if(n.getKeyPageBelow&&t.focusedKey!=null){let k=n.getKeyPageBelow(t.focusedKey);if(k!=null)return f(v,k)}return!1},F=v=>{if(n.getKeyPageAbove&&t.focusedKey!=null){let k=n.getKeyPageAbove(t.focusedKey);if(k!=null)return f(v,k)}return!1},j=()=>{if(t.selectionMode==="multiple"&&l!==!0){t.selectAll();return}return!1},O=()=>{if(s==="clearSelection"&&!a&&t.selectedKeys.size!==0){t.clearSelection();return}return!1},I=()=>{if(!m&&r.current){let v=yn(r.current,{tabbable:!0}),k,Ce;do Ce=v.lastChild(),Ce&&(k=Ce);while(Ce);let oe=te();k&&(!md(k)||oe&&!is(oe))&&dr(k)}return{shouldContinuePropagation:!0,shouldPreventDefault:!1}},B=()=>(!m&&r.current&&r.current.focus(),{shouldContinuePropagation:!0,shouldPreventDefault:!1}),V=(v,k)=>({[Lt()?v+"+Shift+Alt":v+"+Shift+Control"]:k,[v+"+Shift"]:k,[Lt()?v+"+Alt":v+"+Control"]:k,[v]:k}),{keyboardProps:se}=Pd({shortcuts:{...V("ArrowDown",h),...V("ArrowUp",$),...V("ArrowLeft",E),...V("ArrowRight",P),...V("PageDown",M),...V("PageUp",F)},allowRepeats:!0}),{keyboardProps:Me}=Pd({shortcuts:{...V("Home",C),...V("End",N),"Mod+A":j,Escape:O,Tab:I,"Tab+Shift":B}}),ft=(0,on.useRef)({top:0,left:0});Gi(g,"scroll",()=>{ft.current={top:g.current?.scrollTop??0,left:g.current?.scrollLeft??0}});let Hn=v=>{if(t.isFocused){_e(v.currentTarget,Z(v))||t.setFocused(!1);return}if(!_e(v.currentTarget,Z(v)))return;let k=Hr();t.setFocused(!0);let Ce=oe=>{oe!=null&&(t.setFocusedKey(oe),u&&!t.isSelected(oe)&&t.replaceSelection(oe))};if(b&&(k==="keyboard"||k==="virtual"))Ce(b==="first"?n.getFirstKey?.():n.getLastKey?.());else if(t.focusedKey==null){let oe=v.relatedTarget;oe&&v.currentTarget.compareDocumentPosition(oe)&Node.DOCUMENT_POSITION_FOLLOWING?Ce(t.lastSelectedKey??n.getLastKey?.()):Ce(t.firstSelectedKey??n.getFirstKey?.())}else g.current&&(g.current.scrollTop=ft.current.top,g.current.scrollLeft=ft.current.left);if(t.focusedKey!=null&&g.current){let oe=vn(r,t.focusedKey);oe instanceof HTMLElement&&(!md(oe)&&!d&&dr(oe),(k==="keyboard"||b&&k==="virtual")&&Id(oe,{containingElement:r.current}))}},un=v=>{_e(v.currentTarget,v.relatedTarget)||t.setFocused(!1)},Ze=(0,on.useRef)(!1);Gi(r,yh,d?v=>{let{detail:k}=v;v.stopPropagation(),t.setFocused(!0),k?.focusStrategy==="first"&&(Ze.current=!0)}:void 0);let pt=n.getFirstKey?.()??null;Ud(()=>{if(Ze.current)if(pt==null){let v=te();wh(r.current),hd(v,null),t.collection.size>0&&(Ze.current=!1)}else t.setFocusedKey(pt),Ze.current=!1},[pt,t.collection.size]),Ud(()=>{t.collection.size>0&&(Ze.current=!1)},[t.focusedKey]),Gi(r,bh,d?v=>{v.stopPropagation(),t.setFocused(!1),v.detail?.clearFocusKey&&t.setFocusedKey(null)}:void 0);let cn=(0,on.useRef)(o),Dt=(0,on.useRef)(!1);(0,on.useEffect)(()=>{if(cn.current){let v=null;o==="first"&&(v=n.getFirstKey?.()??null),o==="last"&&(v=n.getLastKey?.()??null);let k=t.selectedKeys;if(k.size){for(let Ce of k)if(t.canSelectItem(Ce)){v=Ce;break}}t.setFocused(!0),t.setFocusedKey(v),v!=null&&u&&!k.size&&t.canSelectItem(v)&&t.replaceSelection(v),v==null&&!d&&r.current&&ra(r.current),t.collection.size>0&&(cn.current=!1,Dt.current=!0)}});let jt=(0,on.useRef)(t.focusedKey),Ft=(0,on.useRef)(null);(0,on.useEffect)(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==jt.current||Dt.current)&&g.current&&r.current){let v=Hr(),k=vn(r,t.focusedKey);if(!(k instanceof HTMLElement))return;(v==="keyboard"||Dt.current)&&(Ft.current&&cancelAnimationFrame(Ft.current),Ft.current=requestAnimationFrame(()=>{g.current&&(ca(g.current,k),v!=="virtual"&&Id(k,{containingElement:r.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&jt.current!=null&&r.current&&ra(r.current),jt.current=t.focusedKey,Dt.current=!1}),(0,on.useEffect)(()=>()=>{Ft.current&&cancelAnimationFrame(Ft.current)},[]),Gi(r,"react-aria-focus-scope-restore",v=>{v.preventDefault(),t.setFocused(!0)});let xt={...Ne(Me,se),onFocus:Hn,onBlur:un,onMouseDown(v){g.current===Z(v)&&v.preventDefault()}},{typeSelectProps:Cn}=_g({keyboardDelegate:n,selectionManager:t});c||(xt=Ne(Cn,xt));let jo;d||(jo=t.focusedKey==null?0:-1);let Y=Eg(t.collection);return{collectionProps:Ne(xt,{tabIndex:jo,"data-collection":Y})}}var ma=class{constructor(t){this.ref=t}getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?vn(this.ref,t):null;if(!r)return null;let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();return{x:i.left-o.left-n.clientLeft+n.scrollLeft,y:i.top-o.top-n.clientTop+n.scrollTop,width:i.width,height:i.height}}getContentSize(){let t=this.ref.current;return{width:t?.scrollWidth??0,height:t?.scrollHeight??0}}getVisibleRect(){let t=this.ref.current;return{x:t?.scrollLeft??0,y:t?.scrollTop??0,width:t?.clientWidth??0,height:t?.clientHeight??0}}};var Qr=class{constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new ma(n.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new ma(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}isDisabled(t){return this.disabledBehavior==="all"&&(t.props?.isDisabled||this.disabledKeys.has(t.key))&&t.props?.disabledBehavior!=="selection"}findNextNonDisabled(t,n,r=!1){let o=t;for(;o!=null;){let i=this.collection.getItem(o);if(i?.type==="item"&&(r||!this.isDisabled(i)))return o;o=n(o)}return null}getNextKey(t,n){let r=t;return r=this.collection.getKeyAfter(r),this.findNextNonDisabled(r,o=>this.collection.getKeyAfter(o),n?.includeDisabled)}getPreviousKey(t,n){let r=t;return r=this.collection.getKeyBefore(r),this.findNextNonDisabled(r,o=>this.collection.getKeyBefore(o),n?.includeDisabled)}findKey(t,n,r){let o=t,i=this.layoutDelegate.getItemRect(o);if(!i||o==null)return null;let a=i;do{if(o=n(o),o==null)break;i=this.layoutDelegate.getItemRect(o)}while(i&&r(a,i)&&o!=null);return o}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}isReversed(t){let n=this.getNextKey(t),r=vn(this.ref,t);if(n!=null){let i=vn(this.ref,n);return!r||!i?!1:r.getBoundingClientRect().top>i.getBoundingClientRect().top}let o=this.getPreviousKey(t);if(o!=null){let i=vn(this.ref,o);return!r||!i?!1:i.getBoundingClientRect().top>r.getBoundingClientRect().top}return!1}getKeyBelow(t,n){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getNextKey(r,n),this.isSameRow):this.orientation==="vertical"?this.isReversed(t)?this.getPreviousKey(t,n):this.getNextKey(t,n):this.getNextKey(t,n)}getKeyAbove(t,n){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getPreviousKey(r,n),this.isSameRow):this.orientation==="vertical"?this.isReversed(t)?this.getNextKey(t,n):this.getPreviousKey(t,n):this.getPreviousKey(t,n)}getNextColumn(t,n,r){return n?this.getPreviousKey(t,r):this.getNextKey(t,r)}getKeyRightOf(t,n){let r=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,o=>this.layoutDelegate[r](o),n?.includeDisabled)):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl",n):this.findKey(t,o=>this.getNextColumn(o,this.direction==="rtl",n),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl",n):null}getKeyLeftOf(t,n){let r=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,o=>this.layoutDelegate[r](o),n?.includeDisabled)):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr",n):this.findKey(t,o=>this.getNextColumn(o,this.direction==="ltr",n),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr",n):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;let o=this.isReversed(t);if(n&&!hr(n))return this.getFirstKey();let i=t;if(this.orientation==="horizontal"){let a=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>a&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let a=this.layoutDelegate.getVisibleRect(),l=o?r.y-a.height:Math.max(0,r.y+r.height-a.height);for(;r&&r.y>l&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??(o?this.getLastKey():this.getFirstKey())}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;let o=this.isReversed(t);if(n&&!hr(n))return this.getLastKey();let i=t;if(this.orientation==="horizontal"){let a=Math.min(this.layoutDelegate.getContentSize().width,r.x-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<a&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let a=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<a&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??(o?this.getFirstKey():this.getLastKey())}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,o=n||this.getFirstKey();for(;o!=null;){let i=r.getItem(o);if(!i)return null;let a=i.textValue.slice(0,t.length);if(i.textValue&&this.collator.compare(a,t)===0)return o;o=this.getNextKey(o)}return null}};var jd=new Map;function ha(e){let{locale:t}=Vr(),n=t+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(jd.has(n))return jd.get(n);let r=new Intl.Collator(t,e);return jd.set(n,r),r}var Ng=S(K(),1);function Ls(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:o,keyboardDelegate:i,layoutDelegate:a,orientation:l}=e,s=ha({usage:"search",sensitivity:"base"}),u=t.disabledBehavior,c=(0,Ng.useMemo)(()=>i||new Qr({collection:n,disabledKeys:r,disabledBehavior:u,ref:o,collator:s,layoutDelegate:a,orientation:l}),[i,a,n,r,o,s,u,l]),{collectionProps:d}=Lg({...e,ref:o,selectionManager:t,keyboardDelegate:c});return{listProps:d}}function Gd(e,t,n){let r=Nt(e,{labelable:!0}),o=e.selectionBehavior||"toggle",i=e.orientation||"vertical",a=e.linkBehavior||(o==="replace"?"action":"override");o==="toggle"&&a==="action"&&(a="override");let{listProps:l}=Ls({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:a}),{focusWithinProps:s}=ws({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),u=Pt(e.id);yg.set(t,{id:u,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:a,UNSTABLE_itemBehavior:e.UNSTABLE_itemBehavior});let{labelProps:c,fieldProps:d}=hg({...e,id:u,labelElementType:"span"});return{labelProps:c,listBoxProps:Ne(r,s,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox","aria-orientation":i,...Ne(d,l)})}}function Mg(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function Ig(e){return P1(e,0)}function P1(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function Ns(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...Rg(e,t),t],o=[...Rg(e,n),n],i=r.slice(0,o.length).findIndex((a,l)=>a!==o[l]);return i!==-1?(t=r[i],n=o[i],t.index-n.index):r.findIndex(a=>a===n)>=0?1:(o.findIndex(a=>a===t)>=0,-1)}function Rg(e,t){let n=[],r=t;for(;r?.parentKey!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}function Qd(e){let{heading:t,"aria-label":n}=e,r=Pt();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation",onMouseDown:o=>{o.preventDefault()}}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}var Dg=S(K(),1);function ga(e){let t=Dg.version.split(".");return parseInt(t[0],10)>=19?e:e?"true":void 0}var $a=class{constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let n=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let l of a.childNodes)n(l)};for(let a of t)n(a);let r=null,o=0,i=0;for(let[a,l]of this.keyMap)r?(r.nextKey=a,l.prevKey=r.key):(this.firstKey=a,l.prevKey=void 0),l.type==="item"&&(l.index=o++),(l.type==="section"||l.type==="item")&&i++,r=l,r.nextKey=void 0;this._size=i,this.lastKey=r?.key??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey??null:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)??null}at(t){let n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){return this.keyMap.get(t)?.childNodes||[]}};var Rt=class e extends Set{constructor(t,n,r){super(t),t instanceof e?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}};var lt=S(K(),1);function L1(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function Yr(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:o="toggle",disabledBehavior:i="all"}=e,a=(0,lt.useRef)(!1),[,l]=(0,lt.useState)(!1),s=(0,lt.useRef)(null),u=(0,lt.useRef)(null),[,c]=(0,lt.useState)(null),d=(0,lt.useMemo)(()=>Fg(e.selectedKeys),[e.selectedKeys]),m=(0,lt.useMemo)(()=>Fg(e.defaultSelectedKeys,new Rt),[e.defaultSelectedKeys]),[g,y]=Ao(d,m,e.onSelectionChange),b=(0,lt.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[R,p]=(0,lt.useState)(o);o==="replace"&&R==="toggle"&&typeof g=="object"&&g.size===0&&p("replace");let f=(0,lt.useRef)(o);return(0,lt.useEffect)(()=>{o!==f.current&&(p(o),f.current=o)},[o]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:R,setSelectionBehavior:p,get isFocused(){return a.current},setFocused(h){a.current=h,l(h)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(h,$="first"){s.current=h,u.current=$,c(h)},selectedKeys:g,setSelectedKeys(h){(r||!L1(h,g))&&y(h)},disabledKeys:b,disabledBehavior:i}}function Fg(e,t){return e?e==="all"?"all":new Rt(e):t}var An=class e{constructor(t,n,r){this.collection=t,this.state=n,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(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let n=this.getKey(t);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&Ns(this.collection,r,t)<0)&&(t=r)}return t?.key??null}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&Ns(this.collection,r,t)>0)&&(t=r)}return t?.key??null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new Rt([n],n,n);else{let o=this.state.selectedKeys,i=o.anchorKey??n;r=new Rt(o,i,n);for(let a of this.getKeyRange(i,o.currentKey??n))r.delete(a);for(let a of this.getKeyRange(n,i))this.canSelectItem(a)&&r.add(a)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),o=this.collection.getItem(n);return r&&o?Ns(this.collection,r,o)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){if(this.layoutDelegate?.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let r=[],o=t;for(;o!=null;){let i=this.collection.getItem(o);if(i&&(i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&r.push(o),o===n)return r;o=this.collection.getKeyAfter(o)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new Rt(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let r=this.canSelectItem(n)?new Rt([n],n,n):new Rt;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new Rt;for(let r of t){let o=this.getKey(r);if(o!=null&&(n.add(o),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=this.fullCollection??this.collection,n=[],r=o=>{for(;o!=null;){if(this.canSelectItemIn(o,t)){let i=t.getItem(o);i?.type==="item"&&n.push(o),i?.hasChildNodes&&(this.allowsCellSelection||i.type!=="item")&&r(Ig(Mg(i,t))?.key??null)}o=t.getKeyAfter(o)}};return r(t.getFirstKey()),n}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Rt)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){return this.canSelectItemIn(t,this.collection)}canSelectItemIn(t,n){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=n.getItem(t);return!(!r||r?.props?.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){let n=this.collection.getItem(t);return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!n?.props?.isDisabled)&&n?.props?.disabledBehavior!=="selection"}isLink(t){return!!this.collection.getItem(t)?.props?.href}getItemProps(t){return this.collection.getItem(t)?.props}withCollection(t){return new e(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0,fullCollection:this.fullCollection??this.collection})}};var gr=S(K(),1),Rs=class{build(t,n){return this.context=n,Kg(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(gr.default.isValidElement(n)&&n.type===gr.default.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let o=0;for(let i of r)yield*this.getFullNode({value:i,index:o},{renderer:n}),o++}else{let o=[];gr.default.Children.forEach(n,a=>{a&&o.push(a)});let i=0;for(let a of o){let l=this.getFullNode({element:a,index:i},{});for(let s of l)i++,yield s}}}getKey(t,n,r,o){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${o}${n.key}`;let i=n.value;if(i!=null){let a=i.key??i.id;if(a==null)throw new Error("No key found for item");return a}return o?`${o}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,o){if(gr.default.isValidElement(t.element)&&t.element.type===gr.default.Fragment){let s=[];gr.default.Children.forEach(t.element.props.children,c=>{s.push(c)});let u=t.index??0;for(let c of s)yield*this.getFullNode({element:c,index:u++},n,r,o);return}let i=t.element;if(!i&&t.value&&n&&n.renderer){let s=this.cache.get(t.value);if(s&&(!s.shouldInvalidate||!s.shouldInvalidate(this.context))){s.index=t.index,s.parentKey=o?o.key:null,yield s;return}i=n.renderer(t.value)}if(gr.default.isValidElement(i)){let s=i.type;if(typeof s!="function"&&typeof s.getCollectionNode!="function"){let m=i.type;throw new Error(`Unknown element <${m}> in collection.`)}let u=s.getCollectionNode(i.props,this.context),c=t.index??0,d=u.next();for(;!d.done&&d.value;){let m=d.value;t.index=c;let g=m.key??null;g==null&&(g=m.element?null:this.getKey(i,t,n,r));let b=[...this.getFullNode({...m,key:g,index:c,wrapper:N1(t.wrapper,m.wrapper)},this.getChildState(n,m),r?`${r}${i.key}`:i.key,o)];for(let R of b){if(R.value=m.value??t.value??null,R.value&&this.cache.set(R.value,R),t.type&&R.type!==t.type)throw new Error(`Unsupported type <${Yd(R.type)}> in <${Yd(o?.type??"unknown parent type")}>. Only <${Yd(t.type)}> is supported.`);c++,yield R}d=u.next(b)}return}if(t.key==null||t.type==null)return;let a=this,l={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:t.value??null,level:(o?.level??0)+(o?.type==="item"?1:0),index:t.index,rendered:t.rendered,textValue:t.textValue??"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:Kg(function*(){if(!t.hasChildNodes||!t.childNodes)return;let s=0;for(let u of t.childNodes()){u.key!=null&&(u.key=`${l.key}${u.key}`);let c=a.getFullNode({...u,index:s},a.getChildState(n,u),l.key,l);for(let d of c)s++,yield d}})};yield l}constructor(){this.cache=new WeakMap}};function Kg(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function N1(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Yd(e){return e[0].toUpperCase()+e.slice(1)}var Xd=S(K(),1);function Ms(e,t,n){let r=(0,Xd.useMemo)(()=>new Rs,[]),{children:o,items:i,collection:a}=e;return(0,Xd.useMemo)(()=>{if(a)return a;let s=r.build({children:o,items:i},n);return t(s)},[r,o,i,a,n,t])}var an=S(K(),1);function qd(e){let{filter:t,layoutDelegate:n}=e,r=Yr(e),o=(0,an.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=(0,an.useCallback)(u=>t?new $a(t(u)):new $a(u),[t]),a=(0,an.useMemo)(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),l=Ms(e,i,a),s=(0,an.useMemo)(()=>new An(l,r,{layoutDelegate:n}),[l,r,n]);return Og(l,s),{collection:l,disabledKeys:o,selectionManager:s}}function Zd(e,t){let n=(0,an.useMemo)(()=>t?e.collection.filter(t):e.collection,[e.collection,t]),r=e.selectionManager.withCollection(n);return Og(n,r),{collection:n,selectionManager:r,disabledKeys:e.disabledKeys}}function Og(e,t){let n=(0,an.useRef)(null);(0,an.useEffect)(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&n.current){let r=n.current.getKeyAfter(t.focusedKey),o=null;for(;r!=null;){let i=e.getItem(r);if(i&&i.type==="item"&&!t.isDisabled(r)){o=r;break}r=n.current.getKeyAfter(r)}if(o==null)for(r=n.current.getKeyBefore(t.focusedKey);r!=null;){let i=e.getItem(r);if(i&&i.type==="item"&&!t.isDisabled(r)){o=r;break}r=n.current.getKeyBefore(r)}t.setFocusedKey(o)}n.current=e},[e,t])}var Ag=S(K(),1);function ba(e,t){let{collection:n,onLoadMore:r,scrollOffset:o=1,direction:i="end"}=e,a=(0,Ag.useRef)(null),l=hs(s=>{for(let u of s)u.isIntersecting&&r&&r()});fe(()=>{if(t.current){let s=100*o,u=i==="start"?`${s}% 0px 0px 0px`:`0px ${s}% ${s}% ${s}%`;a.current=new IntersectionObserver(l,{root:gg(t?.current),rootMargin:u}),a.current.observe(t.current)}return()=>{a.current&&a.current.disconnect()}},[n,t,o,i])}var A=S(K(),1);var Jd=(0,A.createContext)(null),ya=(0,A.createContext)(null),ef=(0,A.forwardRef)(function(t,n){[t,n]=Io(t,n,Jd);let r=(0,A.useContext)(ya);return r?A.default.createElement(Bg,{state:r,props:t,listBoxRef:n}):A.default.createElement(aa,{content:A.default.createElement(sa,t)},o=>A.default.createElement(R1,{props:t,listBoxRef:n,collection:o}))});function R1({props:e,listBoxRef:t,collection:n}){e={...e,collection:n,children:null,items:null};let{layoutDelegate:r}=(0,A.useContext)(Ur),o=qd({...e,layoutDelegate:r});return A.default.createElement(Bg,{state:o,props:e,listBoxRef:t})}function Bg({state:e,props:t,listBoxRef:n}){[t,n]=Io(t,n,Xi);let{dragAndDropHooks:r,layout:o="stack",orientation:i="vertical",filter:a}=t,l=Zd(e,a),{collection:s,selectionManager:u}=l,c=!!r?.useDraggableCollectionState,d=!!r?.useDroppableCollectionState,{direction:m}=Vr(),{disabledBehavior:g,disabledKeys:y}=u,b=ha({usage:"search",sensitivity:"base"}),{isVirtualized:R,layoutDelegate:p,dropTargetDelegate:f,CollectionRoot:h}=(0,A.useContext)(Ur),$=(0,A.useMemo)(()=>t.keyboardDelegate||new Qr({collection:s,collator:b,ref:n,disabledKeys:y,disabledBehavior:g,layout:o,orientation:i,direction:m,layoutDelegate:p}),[s,b,n,g,y,i,m,t.keyboardDelegate,o,p]),{listBoxProps:C}=Gd({...t,shouldSelectOnPressUp:c||t.shouldSelectOnPressUp,keyboardDelegate:$,isVirtualized:R},l,n),E=(0,A.useRef)(c),P=(0,A.useRef)(d);(0,A.useEffect)(()=>{},[c,d]);let N,M,F,j=!1,O=null,I=(0,A.useRef)(null);if(c&&r){N=r.useDraggableCollectionState({collection:s,selectionManager:u,preview:r.renderDragPreview?I:void 0}),r.useDraggableCollection({},N,n);let pt=r.DragPreview;O=r.renderDragPreview?A.default.createElement(pt,{ref:I},r.renderDragPreview):null}if(d&&r){M=r.useDroppableCollectionState({collection:s,selectionManager:u});let pt=r.dropTargetDelegate||f||new r.ListDropTargetDelegate(s,n,{orientation:i,layout:o,direction:m});F=r.useDroppableCollection({keyboardDelegate:$,dropTargetDelegate:pt},M,n),j=M.isDropTarget({type:"root"})}let{focusProps:B,isFocused:V,isFocusVisible:se}=Md(),Me=l.collection.size===0,ft={isDropTarget:j,isEmpty:Me,isFocused:V,isFocusVisible:se,layout:t.layout||"stack",orientation:i,state:l},Hn=Fn({...t,children:void 0,defaultClassName:"react-aria-ListBox",values:ft}),un=null;Me&&t.renderEmptyState&&(un=A.default.createElement("div",{role:"option",style:{display:"contents"}},t.renderEmptyState(ft)));let Ze=Nt(t,{global:!0});return A.default.createElement(pa,null,A.default.createElement(Kn.div,{...Ne(Ze,Hn,C,B,F?.collectionProps),ref:n,slot:t.slot||void 0,onScroll:t.onScroll,"data-drop-target":j||void 0,"data-empty":Me||void 0,"data-focused":V||void 0,"data-focus-visible":se||void 0,"data-layout":t.layout||"stack","data-orientation":i},A.default.createElement(Mo,{values:[[Jd,t],[ya,l],[Cs,{dragAndDropHooks:r,dragState:N,dropState:M}],[Ts,{elementType:"div"}],[Dd,{render:I1}],[xs,{name:"ListBoxSection",render:M1}]]},A.default.createElement(Es,null,A.default.createElement(h,{collection:s,scrollRef:n,persistedKeys:$g(u,r,M),renderDropIndicator:Fd(r,M)}))),un,O))}function M1(e,t,n,r="react-aria-ListBoxSection"){let o=(0,A.useContext)(ya),{dragAndDropHooks:i,dropState:a}=(0,A.useContext)(Cs),{CollectionBranch:l}=(0,A.useContext)(Ur),[s,u]=ns(),{headingProps:c,groupProps:d}=Qd({heading:u,"aria-label":e["aria-label"]??void 0}),m=Fn({...e,id:void 0,children:void 0,defaultClassName:r,values:void 0}),g=Nt(e,{global:!0});return delete g.id,A.default.createElement(Kn.section,{...Ne(g,m,d),ref:t},A.default.createElement(ks.Provider,{value:{...c,ref:s}},A.default.createElement(l,{collection:o.collection,parent:n,renderDropIndicator:Fd(i,a)})))}function I1(e,t){t=zi(t);let{dragAndDropHooks:n,dropState:r}=(0,A.useContext)(Cs),{dropIndicatorProps:o,isHidden:i,isDropTarget:a}=n.useDropIndicator(e,r,t);return i?null:A.default.createElement(F1,{...e,dropIndicatorProps:o,isDropTarget:a,ref:t})}function D1(e,t){let{dropIndicatorProps:n,isDropTarget:r,...o}=e,i=Fn({...o,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}});return A.default.createElement(A.default.Fragment,null,A.default.createElement(Kn.div,{...n,...i,role:"option",ref:t,"data-drop-target":r||void 0}))}var F1=(0,A.forwardRef)(D1),K1=la(Wr,function(t,n,r){let o=(0,A.useContext)(ya),{isLoading:i,onLoadMore:a,scrollOffset:l,...s}=t,u=(0,A.useRef)(null),c=(0,A.useMemo)(()=>({onLoadMore:a,collection:o?.collection,sentinelRef:u,scrollOffset:l}),[a,l,o?.collection]);ba(c,u);let d=Fn({...s,id:void 0,children:r.rendered,defaultClassName:"react-aria-ListBoxLoadingIndicator",values:void 0}),m={tabIndex:-1};return A.default.createElement(A.default.Fragment,null,A.default.createElement("div",{style:{position:"relative",width:0,height:0},inert:ga(!0)},A.default.createElement("div",{"data-testid":"loadMoreSentinel",ref:u,style:{position:"absolute",height:1,width:1}})),i&&d.children&&A.default.createElement(A.default.Fragment,null,A.default.createElement(Kn.div,{...Ne(Nt(t,{global:!0}),m),...d,role:"option",ref:n},d.children)))});var Vo=S(K(),1);function zg(e){let[t,n]=Ao(e.isOpen,e.defaultOpen||!1,e.onOpenChange),[r,o]=(0,Vo.useState)(null),i=(0,Vo.useCallback)(()=>{n(!0)},[n]),a=(0,Vo.useCallback)(()=>{n(!1)},[n]),l=(0,Vo.useCallback)(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:i,close:a,toggle:l,point:r,setPoint:o}}var Hg=new WeakMap;function tf(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:o,onKeyUp:i,...a}=e;!e["aria-label"]&&e["aria-labelledby"];let l=Nt(e,{labelable:!0}),{listProps:s}=Ls({...a,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return Hg.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:Ne(l,{onKeyDown:o,onKeyUp:i},{role:"menu",...s,onKeyDown:u=>{(u.key!=="Escape"||e.shouldUseVirtualFocus)&&s.onKeyDown?.(u)}})}}function nf(e){let{heading:t,"aria-label":n}=e,r=Pt();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}var rf=S(K(),1);function of(e){let t=zg(e),[n,r]=(0,rf.useState)(null),[o,i]=(0,rf.useState)([]),a=()=>{i([]),t.close()};return{focusStrategy:n,...t,open(u=null){r(u),t.open()},toggle(u=null){r(u),t.toggle()},close(){a()},expandedKeysStack:o,openSubmenu:(u,c)=>{i(d=>c>d.length?d:[...d.slice(0,c),u])},closeSubmenu:(u,c)=>{i(d=>d[c]===u?d.slice(0,c):d)}}}var U=S(K(),1);var Is=class{constructor(t,{expandedKeys:n}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t,n=n||new Set;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&(a.type==="section"||n.has(a.key)))for(let l of a.childNodes)r(l)};for(let a of t)r(a);let o=null,i=0;for(let[a,l]of this.keyMap)o?(o.nextKey=a,l.prevKey=o.key):(this.firstKey=a,l.prevKey=void 0),l.type==="item"&&(l.index=i++),o=l,o.nextKey=void 0;this.lastKey=o?.key??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey??null:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)??null}at(t){let n=[...this.getKeys()];return this.getItem(n[t])}};var Wo=S(K(),1);function af(e){let{onExpandedChange:t}=e,[n,r]=Ao(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),o=Yr(e),i=(0,Wo.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=Ms(e,(0,Wo.useCallback)(s=>new Is(s,{expandedKeys:n}),[n]),null);return(0,Wo.useEffect)(()=>{o.focusedKey!=null&&!a.getItem(o.focusedKey)&&o.setFocusedKey(null)},[a,o.focusedKey]),{collection:a,expandedKeys:n,disabledKeys:i,toggleKey:s=>{r(O1(n,s))},setExpandedKeys:r,selectionManager:new An(a,o)}}function O1(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}var cf=(0,U.createContext)(null),Fs=(0,U.createContext)(null),Ds=(0,U.createContext)(null),lf=(0,U.createContext)(null);var A1=(0,U.createContext)(null),Vg=class extends Wt{static{this.type="submenutrigger"}filter(t,n,r){let o=t.getItem(this.firstChildKey);if(o&&r(o.textValue,this)){let i=this.clone();return n.addDescendants(i,t),i}return null}};var df=(0,U.forwardRef)(function(t,n){return[t,n]=Io(t,n,cf),U.default.createElement(aa,{content:U.default.createElement(sa,t)},r=>U.default.createElement(B1,{props:t,collection:r,menuRef:n}))});function B1({props:e,collection:t,menuRef:n}){[e,n]=Io(e,n,Xi);let{filter:r,...o}=e,i=(0,U.useMemo)(()=>r?t.filter(r):t,[t,r]),a=af({...e,collection:i,children:void 0}),l=(0,U.useContext)(Ds),{isVirtualized:s,CollectionRoot:u}=(0,U.useContext)(Ur),{menuProps:c}=tf({...e,isVirtualized:s,onClose:e.onClose||l?.close},a,n),d=Fn({...e,children:void 0,defaultClassName:"react-aria-Menu",values:{isEmpty:a.collection.size===0}}),m=null;a.collection.size===0&&e.renderEmptyState&&(m=U.default.createElement("div",{role:"menuitem",style:{display:"contents"}},e.renderEmptyState()));let g=Nt(e,{global:!0});return U.default.createElement(pa,null,U.default.createElement(Kn.div,{...Ne(g,d,c),ref:n,slot:e.slot||void 0,"data-empty":a.collection.size===0||void 0,onScroll:e.onScroll},U.default.createElement(Mo,{values:[[Fs,a],[Ts,{elementType:"div"}],[xs,{name:"MenuSection",render:z1}],[A1,{parentMenuRef:n,shouldUseVirtualFocus:o?.shouldUseVirtualFocus}],[uf,{shouldCloseOnSelect:e.shouldCloseOnSelect}],[Xi,null],[Uh,null],[lf,a.selectionManager],[Ds,l??of({})]]},U.default.createElement(Es,null,U.default.createElement(u,{collection:a.collection,persistedKeys:fg(a.selectionManager.focusedKey),scrollRef:n}))),m))}var sf=class extends An{constructor(t,n){super(t.collection,n),this.parent=t}get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(t,n){return this.parent.setFocusedKey(t,n)}setFocused(t){this.parent.setFocused(t)}get childFocusStrategy(){return this.parent.childFocusStrategy}};function z1(e,t,n,r="react-aria-MenuSection"){let o=(0,U.useContext)(Fs),{CollectionBranch:i}=(0,U.useContext)(Ur),[a,l]=ns(),{headingProps:s,groupProps:u}=nf({heading:l,"aria-label":n.props["aria-label"]??void 0}),c=Fn({...e,id:void 0,children:void 0,defaultClassName:r,className:n.props?.className,style:n.props?.style,values:void 0}),d=(0,U.useContext)(lf),m=Yr(e),g=e.selectionMode!=null?new sf(d,m):d,y=pd(uf)?.shouldCloseOnSelect,b=Nt(e,{global:!0});return delete b.id,U.default.createElement(Kn.section,{...Ne(b,c,u),ref:t},U.default.createElement(Mo,{values:[[ks,{...s,ref:a}],[lf,g],[uf,{shouldCloseOnSelect:e.shouldCloseOnSelect??y}]]},U.default.createElement(i,{collection:o.collection,parent:n})))}var uf=(0,U.createContext)(null);var H1=la(Wr,function(t,n,r){let o=(0,U.useContext)(Fs),{isLoading:i,onLoadMore:a,scrollOffset:l,...s}=t,u=(0,U.useRef)(null),c=(0,U.useMemo)(()=>({onLoadMore:a,collection:o?.collection,sentinelRef:u,scrollOffset:l}),[a,l,o?.collection]);ba(c,u);let d=Fn({...s,id:void 0,children:r.rendered,defaultClassName:"react-aria-MenuLoadingIndicator",values:void 0}),m={tabIndex:-1};return U.default.createElement(U.default.Fragment,null,U.default.createElement("div",{style:{position:"relative",width:0,height:0},inert:ga(!0)},U.default.createElement("div",{"data-testid":"loadMoreSentinel",ref:u,style:{position:"absolute",height:1,width:1}})),i&&d.children&&U.default.createElement(U.default.Fragment,null,U.default.createElement(Kn.div,{...Ne(Nt(t,{global:!0}),m),...d,role:"menuitem",ref:n},d.children)))});var ff=S(K(),1);var Wg=S(he(),1);var Ks=S(K(),1);var jg=S(he(),1),le=e=>`var(--semantic-color-${e})`,ln=e=>`var(--semantic-layout-units-${e})`,Ug=e=>`var(--contextual-layout-units-${e})`,Be=e=>`var(--semantic-type-${e})`,xn=e=>`var(--motion-${e})`;var ie={ring:le("stroke-action-secondary-rest"),ringHover:le("stroke-action-secondary-hover"),ringPressed:le("stroke-action-secondary-pressed"),ringOn:le("stroke-action-primary-strong-rest"),ringOnHover:le("stroke-action-primary-strong-hover"),ringOnPressed:le("stroke-action-primary-strong-pressed"),ringError:le("stroke-action-status-negative-rest"),ringErrorHover:le("stroke-action-status-negative-hover"),ringErrorPressed:le("stroke-action-status-negative-pressed"),ringDisabled:le("stroke-action-disabled"),dot:le("fill-action-primary-strong-rest"),dotHover:le("fill-action-primary-strong-hover"),dotPressed:le("fill-action-primary-strong-pressed"),dotError:le("fill-action-status-negative-strong-rest"),dotErrorHover:le("fill-action-status-negative-strong-hover"),dotErrorPressed:le("fill-action-status-negative-strong-pressed"),dotDisabled:le("fill-action-disabled"),layerHover:le("fill-action-selection-hover"),layerPressed:le("fill-action-selection-selected"),focusFill:le("fill-surface-elevated"),focusRing:le("stroke-focusring-base"),label:le("foreground-static-neutral-base"),labelDisabled:le("foreground-action-disabled"),groupLabel:le("foreground-action-secondary-rest"),groupLabelError:le("foreground-action-status-negative-on-subtle-hover"),required:le("foreground-static-negative-on-subtle"),help:le("foreground-action-secondary-rest"),helpError:le("foreground-static-negative-on-subtle"),helpErrorIcon:le("fill-action-status-negative-strong-rest")},ne={target:ln("accessibility-touch-target-aa-width"),targetH:ln("accessibility-touch-target-aa-height"),ringWidth:Ug("selection-controls-borderwidth"),radius:ln("cornerradius-full"),controlGap:ln("gap-xxtight"),requiredGap:ln("gap-xxxtight"),rowGap:ln("gap-base"),labelEnd:ln("padding-base"),labelBlock:{Base:ln("padding-tight"),Large:ln("padding-xtight")},helpGap:ln("gap-tight"),helpIconTop:ln("borderwidth-base"),ring:{Base:20,Large:24},dot:{Base:10,Large:12},labelMax:480,helpMax:360,helpIcon:16},Mt={Base:{fontSize:Be("font-size-s"),lineHeight:Be("line-height-s-single"),letterSpacing:Be("letter-spacing-spacious")},Large:{fontSize:Be("font-size-r"),lineHeight:Be("line-height-r-single"),letterSpacing:Be("letter-spacing-wide")},group:{fontSize:Be("font-size-s"),lineHeight:Be("line-height-s-single"),letterSpacing:Be("letter-spacing-spacious"),fontWeight:Be("weight-medium")},help:{fontSize:Be("font-size-xs"),lineHeight:Be("line-height-xs-single"),letterSpacing:Be("letter-spacing-extraspacious")}},x4=`
|
|
15
|
+
`,ah=!1;function Jl(){if(ah||typeof document>"u")return;ah=!0;let e=document.createElement("style");e.setAttribute("data-pathway","focus-ring"),e.textContent=ud,document.head.appendChild(e)}var ts=S(he(),1);Jl();var Fr=e=>`var(--semantic-color-${e})`,Gy=e=>`var(--semantic-layout-units-${e})`,Lo=e=>`var(--motion-${e})`,Qy=e=>`var(--contextual-layout-units-${e})`,No=e=>`var(--semantic-layout-units-accessibility-touch-target-${e})`,ch={Small:{box:36,boxW:No("desktop-only-width"),boxH:No("desktop-only-height"),layer:24,glyph:14},Medium:{box:44,boxW:No("aa-width"),boxH:No("aa-height"),layer:28,glyph:16},Large:{box:48,boxW:No("aaa-width"),boxH:No("aaa-height"),layer:32,glyph:20}},es={rest:Fr("foreground-action-secondary-rest"),hover:Fr("foreground-action-secondary-hover"),pressed:Fr("foreground-action-secondary-pressed"),layerHover:Fr("fill-action-primary-subtle-hover"),layerPress:Fr("fill-action-primary-subtle-pressed"),disabled:Fr("foreground-action-disabled"),focusOutline:`${Qy("focusring-width")} solid ${Fr("stroke-focusring-base")}`};function ns({name:e,size:t="Small",label:n,fill:r=0,color:o,states:i,forceState:a,disabled:l=!1,onClick:s,className:u="",style:c,...d}){let p=Dr(),[g,y]=(0,cd.useState)(!1),[b,D]=(0,cd.useState)(!1),m=!l&&(g||a==="hover"),f=!l&&(b||a==="pressed"),h=ch[t]||ch.Small,$={...es,...i},C=l?es.disabled:f?$.pressed:m?$.hover:o||es.rest;return(0,ts.jsx)("button",{type:"button","aria-label":n,title:n,"aria-disabled":l||void 0,onClick:l?void 0:s,onMouseEnter:()=>y(!0),onMouseLeave:()=>{y(!1),D(!1)},onMouseDown:()=>D(!0),onMouseUp:()=>D(!1),onBlur:()=>D(!1),className:`pw-action-icon ${uh} ${u}`,"data-size":t,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:h.boxW,height:h.boxH,flexShrink:0,boxSizing:"border-box",background:"transparent",border:"none",padding:0,outline:"none",cursor:l?"not-allowed":"pointer",color:C,...c},...d,children:(0,ts.jsx)("span",{"data-pw-ring-target":"",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:h.layer,height:h.layer,borderRadius:Gy("cornerradius-base"),background:f?$.layerPress:m?$.layerHover:"transparent",outline:!l&&a==="focused"?es.focusOutline:void 0,outlineOffset:!l&&a==="focused"?0:void 0,transition:p?"none":`background ${Lo("duration-2")} ${Lo("easing-standard")}, outline ${Lo("duration-2")} ${Lo("easing-standard")}`},children:(0,ts.jsx)(ql,{name:e,size:h.glyph,fill:r,style:{transition:p?"none":`color ${Lo("duration-2")} ${Lo("easing-standard")}`}})})})}var Bn=S(K(),1);function Hi(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}var dh=S(K(),1),fe=typeof document<"u"?dh.default.useLayoutEffect:()=>{};var Oe=S(K(),1),rs={prefix:String(Math.round(Math.random()*1e10)),current:0},fh=Oe.default.createContext(rs),Yy=Oe.default.createContext(!1);var Xy=!!(typeof window<"u"&&window.document&&window.document.createElement),dd=new WeakMap;function qy(e=!1){let t=(0,Oe.useContext)(fh),n=(0,Oe.useRef)(null);if(n.current===null&&!e){let r=Oe.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if(r){let o=dd.get(r);o==null?dd.set(r,{id:t.current,state:r.memoizedState}):r.memoizedState!==o.state&&(t.current=o.id,dd.delete(r))}n.current=++t.current}return n.current}function Zy(e){let t=(0,Oe.useContext)(fh),n=qy(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function Jy(e){let t=Oe.default.useId(),[n]=(0,Oe.useState)(Ro()),r=n?"react-aria":`react-aria${rs.prefix}`;return e||`${r}-${t}`}var ph=typeof Oe.default.useId=="function"?Jy:Zy;function ev(){return!1}function tv(){return!0}function nv(e){return()=>{}}function Ro(){return typeof Oe.default.useSyncExternalStore=="function"?Oe.default.useSyncExternalStore(nv,ev,tv):(0,Oe.useContext)(Yy)}var cr=S(K(),1),rv=!!(typeof window<"u"&&window.document&&window.document.createElement),Io=new Map,Mo;typeof FinalizationRegistry<"u"&&(Mo=new FinalizationRegistry(e=>{Io.delete(e)}));var fd=new WeakMap;function Pt(e){let[t,n]=(0,cr.useState)(e),r=(0,cr.useRef)(null),o=ph(t),i=(0,cr.useRef)(null),a=fd.get(i);if(Mo&&a!==o&&(a!=null&&Mo.unregister(i),Mo.register(i,o,i),fd.set(i,o)),rv){let l=Io.get(o);l&&!l.includes(r)?l.push(r):Io.set(o,[r])}return fe(()=>{let l=o;return()=>{Mo&&(Mo.unregister(i),fd.delete(i)),Io.delete(l)}},[o]),(0,cr.useEffect)(()=>{let l=r.current;return l&&n(l),()=>{l&&(r.current=null)}}),o}function mh(e,t){if(e===t)return e;let n=Io.get(e);if(n)return n.forEach(o=>o.current=t),t;let r=Io.get(t);return r?(r.forEach(o=>o.current=e),e):t}function Do(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1,r=e.map(o=>{let i=hh(o,t);return n||=typeof i=="function",i});if(n)return()=>{r.forEach((o,i)=>{typeof o=="function"?o():hh(e[i],null)})}}}function hh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function gh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=gh(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ov(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=gh(e))&&(r&&(r+=" "),r+=t);return r}var $h=ov;function Ne(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let o in r){let i=t[o],a=r[o];typeof i=="function"&&typeof a=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=Hi(i,a):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[o]=$h(i,a):o==="id"&&i&&a?t.id=mh(i,a):o==="ref"&&i&&a?t.ref=Do(i,a):t[o]=a!==void 0?a:i}}return t}var Ae=S(K(),1);var Kr=S(K(),1);function Vi(e){let t=(0,Kr.useRef)(null),n=(0,Kr.useRef)(void 0),r=(0,Kr.useCallback)(o=>{if(typeof e=="function"){let i=e,a=i(o);return()=>{typeof a=="function"?a():i(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return(0,Kr.useMemo)(()=>({get current(){return t.current},set current(o){t.current=o,n.current&&(n.current(),n.current=void 0),o!=null&&(n.current=r(o))}}),[r])}var pd=Symbol("default");function Fo({values:e,children:t}){for(let[n,r]of e)t=Ae.default.createElement(n.Provider,{value:r},t);return t}function Fn(e){let{className:t,style:n,children:r,defaultClassName:o,defaultChildren:i,defaultStyle:a,values:l,render:s}=e;return(0,Ae.useMemo)(()=>{let u,c,d;return typeof t=="function"?u=t({...l,defaultClassName:o}):u=t,typeof n=="function"?c=n({...l,defaultStyle:a||{}}):c=n,typeof r=="function"?d=r({...l,defaultChildren:i}):r==null?d=i:d=r,{className:u??o,style:c||a?{...a,...c}:void 0,children:d??i,"data-rac":"",render:s?p=>s(p,l):void 0}},[t,n,r,o,i,a,l,s])}function md(e,t){let n=(0,Ae.useContext)(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=t||pd;if(!n.slots[r]){let o=new Intl.ListFormat().format(Object.keys(n.slots).map(a=>`"${a}"`)),i=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${i} Valid slot names are ${o}.`)}return n.slots[r]}return n}function Ko(e,t,n){let r=md(n,e.slot)||{},{ref:o,...i}=r,a=Vi((0,Ae.useMemo)(()=>Do(t,o),[t,o])),l=Ne(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&(typeof i.style=="function"||typeof e.style=="function"?l.style=s=>{let u=typeof i.style=="function"?i.style(s):i.style,c={...s.defaultStyle,...u},d=typeof e.style=="function"?e.style({...s,defaultStyle:c}):e.style;return{...c,...d}}:l.style={...i.style,...e.style}),[l,a]}function os(e=!0){let[t,n]=(0,Ae.useState)(e),r=(0,Ae.useRef)(!1),o=(0,Ae.useCallback)(i=>{r.current=!0,n(!!i)},[]);return fe(()=>{r.current||n(!1)},[]),[o,t]}function iv(e,t,n){let{render:r,...o}=t,i=(0,Ae.useRef)(null),a=(0,Ae.useMemo)(()=>Do(n,i),[n,i]);fe(()=>{},[e,r]);let l={...o,ref:a};return r?r(l,void 0):Ae.default.createElement(e,l)}var bh={},Kn=new Proxy({},{get(e,t){if(typeof t!="string")return;let n=bh[t];return n||(n=(0,Ae.forwardRef)(iv.bind(null,t)),bh[t]=n),n}});var yh="react-aria-clear-focus",vh="react-aria-focus";var ee=e=>av(e)?e.document:lv(e)?e:e?.ownerDocument??(typeof document<"u"?document:void 0),We=e=>ee(e)?.defaultView??(typeof window<"u"?window:void 0);function xh(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function av(e){return typeof e=="object"&&e!=null&&"window"in e&&e.window===e}function lv(e){return xh(e)&&e.nodeType===9}function wh(e){return xh(e)&&e.nodeType===11&&"host"in e}function nn(e,t,n,r){if(n==null||e==null)return()=>{};let o=Array.isArray(e)?e:[e];for(let i of o)i.addEventListener(t,n,r);return()=>{for(let i of o)i.removeEventListener(t,n,r)}}var sv=!1;function Or(){return sv}function _e(e,t){if(!Or())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!=null;){if(n===e)return!0;typeof n.assignedElements!="function"&&n.assignedSlot?.parentNode?n=n.assignedSlot.parentNode:wh(n)?n=n.host:n=n.parentNode}return!1}var te=(e=document)=>{if(!Or())return e.activeElement;let t=e.activeElement;for(;t&&"shadowRoot"in t&&t.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t};function Z(e){if(Or()&&e.target instanceof Element&&e.target.shadowRoot){if("composedPath"in e)return e.composedPath()[0]??null;if("composedPath"in e.nativeEvent)return e.nativeEvent.composedPath()[0]??null}return e.target}function hd(e){if(!e)return!1;let t=e.getRootNode(),n=We(e);if(!(t instanceof n.Document||t instanceof n.ShadowRoot))return!1;let r=t.activeElement;return r!=null&&e.contains(r)}function Sh(e){let t=cv(ee(e));t!==e&&(t&&uv(t,e),e&&gd(e,t))}function uv(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function gd(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function cv(e){let t=te(e),n=t?.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}function dr(e){e.focus({preventScroll:!0})}var dv=typeof Element<"u"&&"checkVisibility"in Element.prototype;function fv(e){let t=We(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,o=n!=="none"&&r!=="hidden"&&r!=="collapse";if(o){let{getComputedStyle:i}=We(e),{display:a,visibility:l}=i(e);o=a!=="none"&&l!=="hidden"&&l!=="collapse"}return o}function pv(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function is(e,t){return dv?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&fv(e)&&pv(e,t)&&(!e.parentElement||is(e.parentElement,e))}var $d=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],mv=$d.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";$d.push('[tabindex]:not([tabindex="-1"]):not([disabled])');var hv=$d.join(':not([hidden]):not([tabindex="-1"]),');function as(e,t){return e.matches(mv)&&!Ch(e)&&(t?.skipVisibilityCheck||is(e))}function ls(e){return e.matches(hv)&&is(e)&&!Ch(e)}function Ch(e){let t=e;for(;t!=null;){if(t instanceof We(t).HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}var ss=S(K(),1);function bd(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function kh(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function us(e){let t=(0,ss.useRef)({isFocused:!1,observer:null});return fe(()=>{let n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),(0,ss.useCallback)(n=>{let r=Z(n);if(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r,i=a=>{if(t.current.isFocused=!1,o.disabled){let l=bd(a);e?.(l)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){t.current.observer?.disconnect();let a=o===te()?null:te();o.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[e])}var yd=!1;function cs(e){if(typeof window>"u"||window.navigator==null)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function vd(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function $n(e){let t=null;return()=>(t==null&&(t=e()),t)}var Lt=$n(function(){return vd(/^Mac/i)}),gv=$n(function(){return vd(/^iPhone/i)}),xd=$n(function(){return vd(/^iPad/i)||Lt()&&navigator.maxTouchPoints>1}),ds=$n(function(){return gv()||xd()}),Eh=$n(function(){return Lt()||ds()}),Ar=$n(function(){return cs(/AppleWebKit/i)&&(ds()||!fs())}),W2=$n(function(){return Ar()&&!fs()&&!$v()}),fs=$n(function(){return cs(/Chrome|CriOS|CrMo/i)}),Oo=$n(function(){return cs(/Android/i)}),$v=$n(function(){return cs(/(Firefox|FxiOS)/i)});function Th(e){return e.pointerType===""&&e.isTrusted?!0:Oo()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var Ao=S(K(),1),bv=(0,Ao.createContext)({isNative:!0,open:vv,useHref:e=>e});function _h(){return(0,Ao.useContext)(bv)}function zr(e,t,n=!0){let{metaKey:r,ctrlKey:o,altKey:i,shiftKey:a}=t,l=Ar()&&Lt()&&!xd()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:r,ctrlKey:o,altKey:i,shiftKey:a}):new MouseEvent("click",{metaKey:r,ctrlKey:o,altKey:i,shiftKey:a,detail:1,bubbles:!0,cancelable:!0});zr.isOpening=n,dr(e),e.dispatchEvent(l),zr.isOpening=!1}zr.isOpening=!1;function yv(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function vv(e,t){yv(e,n=>zr(n,t))}var Cd=S(K(),1),Hr=null,Ui="keyboard",wd=new Set,Wi=new Map,Br=!1,ps=!1,xv={Tab:!0,Escape:!0};function hs(e,t){for(let n of wd)n(e,t)}function wv(e){return!(e.metaKey||!Lt()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ms(e){Br=!0,!zr.isOpening&&wv(e)&&(Hr="keyboard",Ui="keyboard",hs("keyboard",e))}function zo(e){Hr="pointer",Ui="pointerType"in e?e.pointerType:"mouse",(e.type==="mousedown"||e.type==="pointerdown")&&(Br=!0,hs("pointer",e))}function Ph(e){!zr.isOpening&&Th(e)&&(Br=!0,Hr="virtual",Ui="virtual")}function Lh(e){if(yd)return;let t=Z(e),n=We(t),r=ee(t);if(t===n){ps=!0;return}t===r||!e.isTrusted||(!Br&&!ps&&(Hr="virtual",Ui="virtual",hs("virtual",e)),Br=!1,ps=!1)}function Nh(){yd||(Br=!1,ps=!0)}function Rh(e){let t=te(ee(Z(e)));queueMicrotask(()=>{te(ee(Z(e)))!==t&&Cv("keyboard")})}function Sd(e){if(typeof window>"u"||typeof document>"u")return;let t=We(e),n=ee(e);if(Wi.get(t))return;let r=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){Br=!0,r.apply(this,arguments)}}),n.addEventListener("keydown",ms,!0),n.addEventListener("keyup",ms,!0),n.addEventListener("click",Ph,!0),n.addEventListener("invalid",Rh,!0),t.addEventListener("focus",Lh,!0),t.addEventListener("blur",Nh,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",zo,!0),n.addEventListener("pointermove",zo,!0),n.addEventListener("pointerup",zo,!0)),t.addEventListener("beforeunload",()=>{Mh(e)},{once:!0}),Wi.set(t,{focus:r})}var Mh=(e,t)=>{let n=We(e),r=ee(e);t&&r.removeEventListener("DOMContentLoaded",t),Wi.has(n)&&(Reflect.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:Wi.get(n).focus}),r.removeEventListener("keydown",ms,!0),r.removeEventListener("keyup",ms,!0),r.removeEventListener("click",Ph,!0),r.removeEventListener("invalid",Rh,!0),n.removeEventListener("focus",Lh,!0),n.removeEventListener("blur",Nh,!1),typeof PointerEvent<"u"&&(r.removeEventListener("pointerdown",zo,!0),r.removeEventListener("pointermove",zo,!0),r.removeEventListener("pointerup",zo,!0)),Wi.delete(n))};function Sv(e){let t=ee(e),n;return t.readyState!=="loading"?Sd(e):(n=()=>{Sd(e)},t.addEventListener("DOMContentLoaded",n)),()=>Mh(e,n)}typeof document<"u"&&Sv();function gs(){return Hr!=="pointer"}function Vr(){return Hr}function Cv(e){Hr=e,Ui=e==="pointer"?"mouse":e,hs(e,null)}var kv=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Ev(e,t,n){let r=n?Z(n):void 0,o=ee(r),i=We(r),a=typeof i<"u"?i.HTMLInputElement:HTMLInputElement,l=typeof i<"u"?i.HTMLTextAreaElement:HTMLTextAreaElement,s=typeof i<"u"?i.HTMLElement:HTMLElement,u=typeof i<"u"?i.KeyboardEvent:KeyboardEvent,c=te(o);return e=e||c instanceof a&&!kv.has(c.type)||c instanceof l||c instanceof s&&c.isContentEditable,!(e&&t==="keyboard"&&n instanceof u&&!xv[n.key])}function Ih(e,t,n){Sd(),(0,Cd.useEffect)(()=>{if(n?.enabled===!1)return;let r=(o,i)=>{Ev(!!n?.isTextInput,o,i)&&e(gs())};return wd.add(r),()=>{wd.delete(r)}},t)}function Dh(e,t){let n=We(t),r=ee(t);if(r==null||n==null)return;let o,i=`meta[name="${CSS.escape(e)}"], meta[property="${CSS.escape(e)}"]`,a=r.querySelector(i);return a&&a instanceof n.HTMLMetaElement&&(e==="csp-nonce"&&a.nonce&&(o??=a.nonce||void 0),a.content&&(o??=a.content||void 0)),e==="csp-nonce"&&(o??=n.__webpack_nonce__||globalThis.__webpack_nonce__||void 0),o}var ji=100,kd=600,G={isOpen:!1,screenWidth:0,screenHeight:0,screenAngle:0,screenTimeout:0,startTimeStamp:0,endTimeStamp:0,resizeTimeStamp:0,resizeTimeout:0},Tv=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Gi(){let e=Number(window.visualViewport?.width??window.innerWidth),t=Number(window.visualViewport?.height??window.innerHeight),n=Number(window.visualViewport?.scale??1);return{width:e*n,height:t*n,angle:window.screen.orientation?.angle??0}}function _v(e){G.resizeTimeStamp<=e.timeStamp+50&&(G.resizeTimeStamp=e.timeStamp+150,window.clearTimeout(G.resizeTimeout),G.resizeTimeout=window.setTimeout(Kh,150))}function Kh(){let e=Dh("viewport");if(Oo()&&e?.includes("overlays-content"))return;let t=performance.now(),n=Gi(),r=t-G.startTimeStamp,o=G.screenHeight-n.height,i=G.screenAngle-n.angle;Math.abs(i)%180&&G.screenWidth-n.height<ji&&(G.screenWidth=n.width,G.screenHeight=n.height,G.screenAngle=n.angle,o=0),r>kd&&(window.clearTimeout(G.screenTimeout),G.screenTimeout=window.setTimeout(()=>{let a=document.hasFocus()?te():null,l=Oh(a),s=Gi();Math.abs(G.screenAngle-s.angle)%180||G.isOpen&&l||(G.screenWidth=s.width,G.screenHeight=s.height,G.screenAngle=s.angle,G.isOpen=!1)},kd)),r<=kd&&o>=ji&&(G.endTimeStamp=t),G.isOpen=o>=ji}function Pv(){let e=Gi(),t=G.screenAngle-e.angle;if(Math.abs(t)%180&&!G.isOpen){let n=G.screenWidth,r=G.screenHeight;G.screenWidth=r,G.screenHeight=n}G.isOpen||(G.screenAngle=e.angle)}function Lv(e){let t=Z(e),n=Oh(t),r=performance.now(),o=Gi(),i=G.screenHeight-o.height;i<ji&&n&&(G.screenWidth=o.width,G.screenHeight=o.height,G.screenAngle=o.angle,G.startTimeStamp=r),n&&window.clearTimeout(G.screenTimeout),i>=ji&&n&&(G.endTimeStamp=r)}function Fh(){let e=Gi();nn(window.visualViewport,"resize",Ar()?Kh:_v),nn(window.screen.orientation,"change",Pv),nn(window,"focus",Lv,{capture:!0,passive:!0}),G.screenWidth=e.width,G.screenHeight=e.height,G.screenAngle=e.angle}typeof document<"u"&&(document.readyState!=="loading"?Fh():nn(document,"DOMContentLoaded",Fh));function Oh(e){if(!(e instanceof Element)||!as(e))return!1;let t=e instanceof HTMLTextAreaElement,n=e instanceof HTMLElement&&e.isContentEditable,r=e instanceof HTMLInputElement&&!Tv.has(e.type);return t||n||r}function Qi(e){return Lt()?e.metaKey:e.ctrlKey}var Bo=S(K(),1),Nv=Bo.default.useInsertionEffect??fe;function $s(e){let t=(0,Bo.useRef)(null);return Nv(()=>{t.current=e},[e]),(0,Bo.useCallback)((...n)=>{let r=t.current;return r?.(...n)},[])}var Ah=S(K(),1);function Yi(e,t,n,r){let o=$s(n),i=n==null;(0,Ah.useEffect)(()=>{if(!(i||e.current==null))return nn(e.current,t,o,r)},[e,t,r,i])}function zh(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;return n=Pt(n),o&&r?o=[...new Set([n,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!r&&!o&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}var Rv=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Mv=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Bh(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return Rv.has(n.script)}let t=e.split("-")[0];return Mv.has(t)}var bs=S(K(),1),Vh=Symbol.for("react-aria.i18n.locale");function Wh(){let e=typeof window<"u"&&window[Vh]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Bh(e)?"rtl":"ltr"}}var Ed=Wh(),Xi=new Set;function Hh(){Ed=Wh();for(let e of Xi)e(Ed)}function Uh(){let e=Ro(),[t,n]=(0,bs.useState)(Ed);return(0,bs.useEffect)(()=>(Xi.size===0&&window.addEventListener("languagechange",Hh),Xi.add(n),()=>{Xi.delete(n),Xi.size===0&&window.removeEventListener("languagechange",Hh)}),[]),e?{locale:typeof window<"u"&&window[Vh]||"en-US",direction:"ltr"}:t}var ys=S(K(),1),Iv=ys.default.createContext(null);function Wr(){let e=Uh();return(0,ys.useContext)(Iv)||e}var ot=S(K(),1),Dv=typeof document<"u"||parseInt(ot.default.version,10)>=19?ot.default.useInsertionEffect??ot.default.useLayoutEffect:()=>{};function Ho(e,t,n){let[r,o]=(0,ot.useState)(e||t),i=(0,ot.useRef)(r),a=(0,ot.useRef)(e!==void 0),l=e!==void 0;(0,ot.useEffect)(()=>{let d=a.current;a.current=l},[l]);let s=l?e:r;Dv(()=>{i.current=s});let[,u]=(0,ot.useReducer)(()=>({}),{}),c=(0,ot.useCallback)((d,...p)=>{let g=typeof d=="function"?d(i.current):d;Object.is(i.current,g)||(i.current=g,o(g),u(),n?.(g,...p))},[n]);return[s,c]}var qi=S(K(),1);var Zi=(0,qi.createContext)(null),jh=(0,qi.createContext)(null);var Wt=class{constructor(t){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=t}get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new this.constructor(this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t.render=this.render,t.colSpan=this.colSpan,t.colIndex=this.colIndex,t}filter(t,n,r){let o=this.clone();return n.addDescendants(o,t),o}},Ji=class extends Wt{filter(t,n,r){let[o,i]=Gh(t,n,this.firstChildKey,r),a=this.clone();return a.firstChildKey=o,a.lastChildKey=i,a}},Td=class extends Wt{static{this.type="header"}},Ur=class extends Wt{static{this.type="loader"}},ea=class extends Ji{static{this.type="item"}filter(t,n,r){if(r(this.textValue,this)){let o=this.clone();return n.addDescendants(o,t),o}return null}},ta=class extends Ji{static{this.type="section"}filter(t,n,r){let o=super.filter(t,n,r);if(o&&o.lastChildKey!==null){let i=t.getItem(o.lastChildKey);if(i&&i.type!=="header")return o}return null}},na=class{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0}getChildren(t){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(t),o=r?.firstChildKey!=null?n.get(r.firstChildKey):null;for(;o;)yield o,o=o.nextKey!=null?n.get(o.nextKey):void 0}}}getKeyBefore(t){let n=this.keyMap.get(t);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);return n?.key??null}return n.parentKey}getKeyAfter(t){let n=this.keyMap.get(t);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;t?.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);return t?.key??null}getItem(t){return this.keyMap.get(t)??null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,n=new t;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n.itemCount=this.itemCount,n}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");t.type==="item"&&this.keyMap.get(t.key)==null&&this.itemCount++,this.keyMap.set(t.key,t)}addDescendants(t,n){this.addNode(t);let r=n.getChildren(t.key);for(let o of r)this.addDescendants(o,n)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let n=this.keyMap.get(t);n!=null&&n.type==="item"&&this.itemCount--,this.keyMap.delete(t)}commit(t,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=n,this.frozen=!r}filter(t){let n=new this.constructor,[r,o]=Gh(this,n,this.firstKey,t);return n?.commit(r,o),n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}};function Gh(e,t,n,r){if(n==null)return[null,null];let o=null,i=null,a=e.getItem(n);for(;a!=null;){let l=a.filter(e,t,r);l!=null&&(l.nextKey=null,i&&(l.prevKey=i.key,i.nextKey=l.key),o==null&&(o=l),t.addNode(l),i=l),a=a.nextKey!=null?e.getItem(a.nextKey):null}if(i&&i.type==="separator"){let l=i.prevKey;t.removeNode(i.key),l!=null?(i=t.getItem(l),i.nextKey=null):i=null}return[o?.key??null,i?.key??null]}var vs=class{constructor(t){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=t}*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){return this.parentNode?.isConnected||!1}invalidateChildIndices(t){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||t.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=t,this.ownerDocument.markDirty(this))}updateChildIndices(){let t=this._minInvalidChildIndex;for(;t;)t.index=t.previousSibling?t.previousSibling.index+1:0,t=t.nextSibling;this._minInvalidChildIndex=null}appendChild(t){t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(t,n){if(n==null)return this.appendChild(t);t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=n,t.previousSibling=n.previousSibling,t.index=n.index-1,this.firstChild===n?this.firstChild=t:n.previousSibling&&(n.previousSibling.nextSibling=t),n.previousSibling=t,t.parentNode=n.parentNode,this.invalidateChildIndices(t),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(t){t.parentNode===this&&(this._minInvalidChildIndex===t&&(this._minInvalidChildIndex=null),t.nextSibling&&(this.invalidateChildIndices(t.nextSibling),t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.markDirty(t),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let t=this.previousSibling;for(;t&&t.isHidden;)t=t.previousSibling;return t}get nextVisibleSibling(){let t=this.nextSibling;for(;t&&t.isHidden;)t=t.nextSibling;return t}get firstVisibleChild(){let t=this.firstChild;for(;t&&t.isHidden;)t=t.nextSibling;return t}get lastVisibleChild(){let t=this.lastChild;for(;t&&t.isHidden;)t=t.previousSibling;return t}},ra=class e extends vs{constructor(t,n){super(n),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof e?this.parentNode.level+(this.parentNode.node?.type==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){let t=this.nextVisibleSibling,n=this.getMutableNode();if(n!=null&&(n.index=this.index,n.level=this.level,n.parentKey=this.parentNode instanceof e?this.parentNode.node?.key??null:null,n.prevKey=this.previousVisibleSibling?.node?.key??null,n.nextKey=t?.node?.key??null,n.hasChildNodes=!!this.firstChild,n.firstChildKey=this.firstVisibleChild?.node?.key??null,n.lastChildKey=this.lastVisibleChild?.node?.key??null,(n.colSpan!=null||n.colIndex!=null)&&t)){let r=(n.colIndex??n.index)+(n.colSpan??1);if(t.node!=null&&r!==t.node.colIndex){let o=t.getMutableNode();o.colIndex=r}}}setProps(t,n,r,o,i){let a,{value:l,textValue:s,id:u,...c}=t;if(this.node==null?(a=new r(u??`react-aria-${++this.ownerDocument.nodeId}`),this.node=a):a=this.getMutableNode(),c.ref=n,a.props=c,a.rendered=o,a.render=i,a.value=l,t["aria-label"]&&(a["aria-label"]=t["aria-label"]),a.textValue=s||(typeof c.children=="string"?c.children:"")||t["aria-label"]||"",u!=null&&u!==a.key)throw new Error("Cannot change the id of an item");c.colSpan!=null&&(a.colSpan=c.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(n){let r=n==="none";if(t.isHidden!==r){(t.parentNode?.firstVisibleChild===t||t.parentNode?.lastVisibleChild===t)&&t.ownerDocument.markDirty(t.parentNode);let o=t.previousVisibleSibling,i=t.nextVisibleSibling;o&&t.ownerDocument.markDirty(o),i&&t.ownerDocument.markDirty(i),t.isHidden=r,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}},xs=class extends vs{constructor(t){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.keyOwners=new Map,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=t,this.nextCollection=t}get isConnected(){return!0}createElement(t){return new ra(t,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(t){this.dirtyNodes.add(t)}addNode(t){if(t.isHidden||t.node==null)return;let n=this.getMutableCollection();if(!n.getItem(t.node.key))for(let r of t)this.addNode(r);n.addNode(t.node)}removeNode(t){for(let n of t)this.removeNode(n);t.node&&this.getMutableCollection().removeNode(t.node.key)}getCollection(){return this.inSubscription?this.collection:(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let t of this.dirtyNodes)t instanceof ra&&(!t.isConnected||t.isHidden)?this.removeNode(t):t.updateChildIndices();for(let t of this.dirtyNodes)t instanceof ra?(t.isConnected&&!t.isHidden&&(t.updateNode(),this.addNode(t)),t.node&&this.dirtyNodes.delete(t),t.isMutated=!1):this.dirtyNodes.delete(t);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(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0,this.isSSR||(this.collection=this.collection.clone());for(let t of this.subscriptions)t();this.inSubscription=!1}}subscribe(t){return this.subscriptions.add(t),this.queuedRender&&t(),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0,this.keyOwners.clear())}};var Vo=S(K(),1);function oa(e){let{children:t,items:n,idScope:r,addIdAndValue:o,dependencies:i=[]}=e,a=(0,Vo.useMemo)(()=>{},[t]),l=(0,Vo.useMemo)(()=>new WeakMap,[...i,a]);return(0,Vo.useMemo)(()=>{if(n&&typeof t=="function"){let s=[];for(let u of n){let c=Fv(u)?u:null,d=c?l.get(c):null;if(!d){d=t(u);let p=d.props.id??u?.key??u?.id;r!=null&&d.props.id==null&&p!=null&&(p=r+":"+p);let g=p??s.length;d=(0,Vo.cloneElement)(d,o?{key:g,id:p,value:u}:{key:g}),c&&l.set(c,d)}s.push(d)}return s}else if(typeof t!="function")return t},[t,n,l,r,o])}function Fv(e){switch(typeof e){case"object":return e!=null;case"function":case"symbol":return!0;default:return!1}}var fr=new Map,ws=new Set;function Yh(e){return"propertyName"in e}function Kv(e){let t=Z(e);if(!Yh(e)||!t)return;let n=fr.get(t);n||(n=new Set,fr.set(t,n),t.addEventListener("transitioncancel",_d,{once:!0})),n.add(e.propertyName)}function _d(e){let t=Z(e);if(!Yh(e)||!t)return;let n=fr.get(t);if(n&&(n.delete(e.propertyName),n.size===0&&(t.removeEventListener("transitioncancel",_d),fr.delete(t)),fr.size===0))for(let r of ws)r(!0),ws.delete(r)}function Qh(){nn(document,"transitionrun",Kv),nn(document,"transitionend",_d)}function Ov(){for(let[e]of fr)"isConnected"in e&&!e.isConnected&&fr.delete(e)}typeof document<"u"&&(document.readyState!=="loading"?Qh():nn(document,"DOMContentLoaded",Qh));function Xh(e){let t=window.requestAnimationFrame(()=>{if(Ov(),fr.size===0)return e(!1);ws.add(e)});return()=>{window.cancelAnimationFrame(t),ws.delete(e)}}function ia(e){if(!e.isConnected)return;let t=ee(e);if(Vr()==="virtual"){let n=te(t);Xh(()=>{let r=te(t);(r===n||r===t.body)&&e.isConnected&&dr(e)})}else dr(e)}var Pd=S(K(),1);function qh(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e,i=(0,Pd.useCallback)(s=>{if(Z(s)===s.currentTarget)return r&&r(s),o&&o(!1),!0},[r,o]),a=us(i),l=(0,Pd.useCallback)(s=>{let u=Z(s),c=ee(u),d=c?te(c):te();u===s.currentTarget&&u===d&&(n&&n(s),o&&o(!0),a(s))},[o,n,a]);return{focusProps:{onFocus:!t&&(n||o||r)?l:void 0,onBlur:!t&&(r||o)?i:void 0}}}function aa(e){if(e)return t=>{let n=!0,r={...t,preventDefault(){t.preventDefault()},isDefaultPrevented(){return t.isDefaultPrevented()},stopPropagation(){n=!0},continuePropagation(){n=!1,typeof t.continuePropagation=="function"&&t.continuePropagation()},isPropagationStopped(){return n}};e(r),n&&!(typeof t.isPropagationStopped=="function"&&t.isPropagationStopped())&&t.stopPropagation()}}var Av=new Set(["shift","alt","control","meta","mod"]),zv=["Alt","Control","Meta","Shift"];function Bv(e){let t=new Set;return e.alt&&t.add("Alt"),e.shift&&t.add("Shift"),e.ctrl&&t.add("Control"),e.meta&&t.add("Meta"),e.mod&&t.add(Lt()?"Meta":"Control"),t}function Hv(e){let t=new Set;return e.altKey&&t.add("Alt"),e.ctrlKey&&t.add("Control"),e.metaKey&&t.add("Meta"),e.shiftKey&&t.add("Shift"),t}function Zh(e){return zv.filter(t=>e.has(t))}function Vv(e){let t=e.split("+").reduce((n,r)=>{let o=r.toLowerCase();return Av.has(o)?o==="shift"?n.shift=!0:o==="alt"?n.alt=!0:o==="control"?n.ctrl=!0:o==="meta"?n.meta=!0:o==="mod"&&(n.mod=!0):n.key=r,n},{shift:!1,alt:!1,ctrl:!1,meta:!1,mod:!1,key:""});if(t.key==="")throw new Error(`Invalid keyboard shortcut: "${e}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);return t}function Jh(e){return e.toLowerCase()}var Wv={space:" ",esc:"escape",del:"delete",ins:"insert",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",pageup:"pageup",pagedown:"pagedown"};function Uv(e){let t=Jh(e),n=Wv[t];return n??t}function jv(e){let t=Zh(Bv(e)),n=Uv(e.key);return t.length>0?`${t.join("+")}+${n}`:n}function Gv(e){let t=Zh(Hv(e)),n=Jh(e.key);return(t.length>0?`${t.join("+")}+`:"")+n}function eg(e){let t=new Map;for(let[n,r]of Object.entries(e)){let o=Vv(n);t.set(jv(o),r)}return n=>{let r=Gv(n),o=t.get(r),i=o?.(n);i===void 0&&o!==void 0?i={shouldContinuePropagation:!1,shouldPreventDefault:!0}:typeof i=="boolean"&&(i={shouldContinuePropagation:!i,shouldPreventDefault:i}),i?.shouldPreventDefault&&n.preventDefault(),(!o||i?.shouldContinuePropagation)&&n.continuePropagation()}}function Ld(e){let{shortcuts:t,allowRepeats:n=!1,allowComposing:r=!1}=e,o,i;if(t){let a=eg(t),l=aa(u=>{if(!_e(u.currentTarget,Z(u))){u.continuePropagation();return}if(u.nativeEvent?.repeat&&!n||u.nativeEvent?.isComposing&&!r){u.continuePropagation();return}a(u)}),s=aa(u=>{if(!_e(u.currentTarget,Z(u))){u.continuePropagation();return}if(u.nativeEvent?.repeat&&!n||u.nativeEvent?.isComposing&&!r){u.continuePropagation();return}u.continuePropagation()});o=e.onKeyDown?Hi(e.onKeyDown,l):l,i=e.onKeyUp?Hi(e.onKeyUp,s):s}else o=aa(e.onKeyDown),i=aa(e.onKeyUp);return{keyboardProps:e.isDisabled?{}:{onKeyDown:o,onKeyUp:i}}}var Wo=S(K(),1),Nd=Wo.default.createContext(null);var bn=S(K(),1);typeof HTMLTemplateElement<"u"&&(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)}}));var tg=(0,bn.createContext)(!1);function ng(e){if((0,bn.useContext)(tg))return bn.default.createElement(bn.default.Fragment,null,e.children);let n=bn.default.createElement(tg.Provider,{value:!0},e.children);return bn.default.createElement("template",null,n)}var sg=S(Ir(),1),H=S(K(),1),ug=S(ag(),1),cg=(0,H.createContext)(!1),la=(0,H.createContext)(null);function sa(e){if((0,H.useContext)(la))return e.content;let{collection:n,document:r}=a1(e.createCollection);return H.default.createElement(H.default.Fragment,null,H.default.createElement(ng,null,H.default.createElement(la.Provider,{value:r},e.content)),H.default.createElement(r1,{render:e.children,collection:n}))}function r1({collection:e,render:t}){return t(e)}function o1(e,t,n){let r=Ro(),o=(0,H.useRef)(r);o.current=r;let i=(0,H.useCallback)(()=>o.current?n():t(),[t,n]);return(0,ug.useSyncExternalStore)(e,i)}var i1=typeof H.default.useSyncExternalStore=="function"?H.default.useSyncExternalStore:o1;function a1(e){let[t]=(0,H.useState)(()=>new xs(e?.()||new na)),n=(0,H.useCallback)(a=>t.subscribe(a),[t]),r=(0,H.useCallback)(()=>{let a=t.getCollection();return t.isSSR&&t.resetAfterSSR(),a},[t]),o=(0,H.useCallback)(()=>(t.isSSR=!0,t.getCollection()),[t]);return{collection:i1(n,r,o),document:t}}var Md=(0,H.createContext)(null);function l1(e){return class extends Wt{static{this.type=e}}}function s1(e,t,n,r,o,i){typeof e=="string"&&(e=l1(e));let a=(0,H.useCallback)(s=>{s?.setProps(t,n,e,r,i)},[t,n,r,i,e]),l=(0,H.useContext)(Md);if(l){let s=l.ownerDocument.nodesByProps.get(t);return s||(s=l.ownerDocument.createElement(e.type),s.setProps(t,n,e,r,i),l.appendChild(s),l.ownerDocument.updateCollection(),l.ownerDocument.nodesByProps.set(t,s)),o?H.default.createElement(Md.Provider,{value:s},o):null}return H.default.createElement(e.type,{ref:a},o)}function ua(e,t){let n=({node:o})=>t(o.props,o.props.ref,o),r=(0,H.forwardRef)((o,i)=>{let a=(0,H.useContext)(Nd);if(!(0,H.useContext)(cg)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(o,i)}return s1(e,o,i,"children"in o?o.children:null,null,s=>H.default.createElement(Nd.Provider,{value:a},H.default.createElement(n,{node:s})))});return r.displayName=t.name,r}function u1(e){return oa({...e,addIdAndValue:!0})}var lg=(0,H.createContext)(null);function ca(e){let t=(0,H.useContext)(lg),n=(t?.dependencies||[]).concat(e.dependencies),r=e.idScope??t?.idScope,o=u1({...e,idScope:r,dependencies:n});return(0,H.useContext)(la)&&(o=H.default.createElement(c1,null,o)),t=(0,H.useMemo)(()=>({dependencies:n,idScope:r}),[r,...n]),H.default.createElement(lg.Provider,{value:t},o)}function c1({children:e}){let t=(0,H.useContext)(la),n=(0,H.useMemo)(()=>H.default.createElement(la.Provider,{value:null},H.default.createElement(cg.Provider,{value:!0},e)),[e]);return Ro()?H.default.createElement(Md.Provider,{value:t},n):(0,sg.createPortal)(n,t)}var it=S(K(),1);var Ss=(0,it.createContext)(null);var d1={CollectionRoot({collection:e,renderDropIndicator:t}){return fg(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return fg(e,t,n)}};function fg(e,t,n){return oa({items:t?e.getChildren(t.key):e,dependencies:[n],children(r){if(r.type==="content")return it.default.createElement(it.default.Fragment,null);let o=r.render(r);return!n||r.type!=="item"?o:it.default.createElement(it.default.Fragment,null,n({type:"item",key:r.key,dropPosition:"before"}),o,f1(e,r,n))}})}function f1(e,t,n){let r=t.key,o=e.getKeyAfter(r),i=o!=null?e.getItem(o):null;for(;i!=null&&i.type!=="item";)o=e.getKeyAfter(i.key),i=o!=null?e.getItem(o):null;let a=t.nextKey!=null?e.getItem(t.nextKey):null;for(;a!=null&&a.type!=="item";)a=a.nextKey!=null?e.getItem(a.nextKey):null;let l=[];if(a==null){let s=t;for(;s?.type==="item"&&(!i||s.parentKey!==i.parentKey&&i.level<s.level);){let u=n({type:"item",key:s.key,dropPosition:"after"});(0,it.isValidElement)(u)&&l.push((0,it.cloneElement)(u,{key:`${s.key}-after`})),s=s.parentKey!=null?e.getItem(s.parentKey):null}}return l}var jr=(0,it.createContext)(d1);function pg(e){return(0,it.useMemo)(()=>e!=null?new Set([e]):null,[e])}var p1=new Set(["id"]),m1=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),h1=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),g1=new Set(["dir","lang","hidden","inert","translate","suppressHydrationWarning"]),mg=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),$1=/^(data-.*)$/;function Nt(e,t={}){let{labelable:n,isLink:r,global:o,events:i=o,propNames:a}=t,l={};for(let s in e)Object.prototype.hasOwnProperty.call(e,s)&&(p1.has(s)||n&&m1.has(s)||r&&h1.has(s)||o&&g1.has(s)||i&&(mg.has(s)||s.endsWith("Capture")&&mg.has(s.slice(0,-7)))||a?.has(s)||$1.test(s))&&(l[s]=e[s]);return l}var pr=S(K(),1);function hg(){let e=(0,pr.useRef)(new Map),t=(0,pr.useCallback)((o,i,a,l)=>{let s=l?.once?(...u)=>{e.current.delete(a),a(...u)}:a;e.current.set(a,{type:i,eventTarget:o,fn:s,options:l}),o.addEventListener(i,s,l)},[]),n=(0,pr.useCallback)((o,i,a,l)=>{let s=e.current.get(a)?.fn||a;o.removeEventListener(i,s,l),e.current.delete(a)},[]),r=(0,pr.useCallback)(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return(0,pr.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}var da=S(K(),1);function Cs(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=(0,da.useRef)({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:l}=hg(),s=(0,da.useCallback)(d=>{_e(d.currentTarget,Z(d))&&i.current.isFocusWithin&&!_e(d.currentTarget,d.relatedTarget)&&(i.current.isFocusWithin=!1,l(),n&&n(d),o&&o(!1))},[n,o,i,l]),u=us(s),c=(0,da.useCallback)(d=>{if(!_e(d.currentTarget,Z(d)))return;let p=Z(d),g=ee(p),y=te(g);if(!i.current.isFocusWithin&&y===p){r&&r(d),o&&o(!0),i.current.isFocusWithin=!0,u(d);let b=d.currentTarget;a(g,"focus",D=>{let m=Z(D);if(i.current.isFocusWithin&&!_e(b,m)){let f=new g.defaultView.FocusEvent("blur",{relatedTarget:m});kh(f,b);let h=bd(f);s(h)}},{capture:!0})}},[r,o,u,a,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:s}}}var mr=S(K(),1);function Id(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=(0,mr.useRef)({isFocused:!1,isFocusVisible:t||gs()}),[i,a]=(0,mr.useState)(!1),[l,s]=(0,mr.useState)(()=>o.current.isFocused&&o.current.isFocusVisible),u=(0,mr.useCallback)(()=>s(o.current.isFocused&&o.current.isFocusVisible),[]),c=(0,mr.useCallback)(g=>{o.current.isFocused=g,o.current.isFocusVisible=gs(),a(g),u()},[u]);Ih(g=>{o.current.isFocusVisible=g,u()},[n,i],{enabled:i,isTextInput:n});let{focusProps:d}=qh({isDisabled:r,onFocusChange:c}),{focusWithinProps:p}=Cs({isDisabled:!r,onFocusWithinChange:c});return{isFocused:i,isFocusVisible:l,focusProps:r?p:d}}function gg(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:i="label"}=e;t=Pt(t);let a=Pt(),l={};n&&(r=r?`${a} ${r}`:a,l={id:a,htmlFor:i==="label"?t:void 0});let s=zh({id:t,"aria-label":o,"aria-labelledby":r});return{labelProps:l,fieldProps:s}}function hr(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=document.scrollingElement||document.documentElement,o=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return e===r&&n.overflow!=="hidden"&&(o=!0),o&&t&&(o=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),o}function $g(e,t){let n=e;for(hr(n,t)&&(n=n.parentElement);n&&!hr(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function ks(e,t){let n=[],r=document.scrollingElement||document.documentElement;for(;e&&(hr(e,t)&&n.push(e),e!==r);)e=e.parentElement;return n}function fa(e,t,n={}){if(e===t)return;let r=t.getBoundingClientRect();b1(e,t,r,n)}function b1(e,t,n,r={}){let{block:o="nearest",inline:i="nearest"}=r,a=e.scrollTop,l=e.scrollLeft,s=e.getBoundingClientRect(),u=window.getComputedStyle(t),c=window.getComputedStyle(e),d=document.scrollingElement||document.documentElement,p=e===d,g=e===d?0:s.top,y=e===d?e.clientHeight:s.bottom,b=e===d?0:s.left,D=e===d?e.clientWidth:s.right,m=parseFloat(u.scrollMarginTop)||0,f=parseFloat(u.scrollMarginBottom)||0,h=parseFloat(u.scrollMarginLeft)||0,$=parseFloat(u.scrollMarginRight)||0,C=parseFloat(c.scrollPaddingTop)||0,E=parseFloat(c.scrollPaddingBottom)||0,P=parseFloat(c.scrollPaddingLeft)||0,N=parseFloat(c.scrollPaddingRight)||0,R=parseFloat(c.borderTopWidth)||0,F=parseFloat(c.borderBottomWidth)||0,j=parseFloat(c.borderLeftWidth)||0,O=parseFloat(c.borderRightWidth)||0,M=n.top-m,z=n.bottom+f,V=n.left-h,se=n.right+$,Me=e===d?0:j+O,ft=e===d?0:R+F,Hn=e===d?0:e.offsetWidth-e.clientWidth-Me,un=e===d?0:e.offsetHeight-e.clientHeight-ft,Ze=g+(p?0:R)+C,pt=y-(p?0:F)-E-un,cn=b+(p?0:j)+P,Dt=D-(p?0:O)-N;ds()&&Ar()||c.direction==="ltr"?Dt-=Hn:c.direction==="rtl"&&(cn+=Hn);let jt=M<Ze||z>pt,Ft=V<cn||se>Dt;if(jt&&o==="start")a+=M-Ze;else if(jt&&o==="center")a+=(M+z)/2-(Ze+pt)/2;else if(jt&&o==="end")a+=z-pt;else if(jt&&o==="nearest"){let xt=M-Ze,Cn=z-pt;a+=Math.abs(xt)<=Math.abs(Cn)?xt:Cn}if(Ft&&i==="start")l+=V-cn;else if(Ft&&i==="center")l+=(V+se)/2-(cn+Dt)/2;else if(Ft&&i==="end")l+=se-Dt;else if(Ft&&i==="nearest"){let xt=V-cn,Cn=se-Dt;l+=Math.abs(xt)<=Math.abs(Cn)?xt:Cn}e.scrollTo({left:l,top:a})}function Dd(e,t={}){let{containingElement:n}=t;if(e&&e.isConnected){let r=document.scrollingElement||document.documentElement;if(window.getComputedStyle(r).overflow==="hidden"){let{left:i,top:a}=e.getBoundingClientRect(),l=ks(e,!0);for(let c of l)fa(c,e);let{left:s,top:u}=e.getBoundingClientRect();if(Math.abs(i-s)>1||Math.abs(a-u)>1){l=n?ks(n,!0):[];for(let c of l)fa(c,n,{block:"center",inline:"center"});for(let c of ks(e,!0))fa(c,e)}}else{let{left:i,top:a}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});let{left:l,top:s}=e.getBoundingClientRect();(Math.abs(i-l)>1||Math.abs(a-s)>1)&&(n?.scrollIntoView?.({block:"center",inline:"center"}),e.scrollIntoView?.({block:"nearest"}))}}}var at=S(K(),1),Es=(0,at.createContext)({}),Fd=(0,at.createContext)(null),y1=(0,at.forwardRef)(function(t,n){let{render:r}=(0,at.useContext)(Fd);return at.default.createElement(at.default.Fragment,null,r(t,n))});function Kd(e,t){let n=e?.renderDropIndicator,r=e?.isVirtualDragging?.(),o=(0,at.useCallback)(i=>{if(r||t?.isDropTarget(i))return n?n(i):at.default.createElement(y1,{target:i})},[t?.target,r,n]);return e?.useDropIndicator?o:void 0}function bg(e,t,n){let r=e.focusedKey,o=null;if(t?.isVirtualDragging?.()&&n?.target?.type==="item"&&(o=n.target.key,n.target.dropPosition==="after")){let i=n.collection.getKeyAfter(o),a=null;if(i!=null){let l=n.collection.getItem(o)?.level??0;for(;i!=null;){let s=n.collection.getItem(i);if(!s)break;if(s.type!=="item"){i=n.collection.getKeyAfter(i);continue}if((s.level??0)<=l)break;a=i,i=n.collection.getKeyAfter(i)}}o=i??a??o}return(0,at.useMemo)(()=>new Set([r,o].filter(i=>i!=null)),[r,o])}var Od=S(K(),1),Ts=(0,Od.createContext)({});var v1=S(Ir(),1),On=S(K(),1);var x1=(0,On.createContext)(null);function _s(e){let t=(0,On.useRef)({});return On.default.createElement(x1.Provider,{value:t},e.children)}var Ad=S(K(),1),Ps=(0,Ad.createContext)({}),yg=class extends Wt{static{this.type="separator"}filter(t,n){let r=n.getItem(this.prevKey);if(r&&r.type!=="separator"){let o=this.clone();return n.addDescendants(o,t),o}return null}};var vg=new WeakMap;var zd=class{constructor(t,n,r,o){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=a=>{if(a.nodeType===Node.ELEMENT_NODE){let l=a.shadowRoot;if(l){let s=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(s),NodeFilter.FILTER_ACCEPT}else{if(typeof this.filter=="function")return this.filter(a);if(this.filter?.acceptNode)return this.filter.acceptNode(a);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=n,this.filter=o??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(t.createTreeWalker(n,r,this._acceptNode));let i=n.shadowRoot;if(i){let a=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(a)}}get currentNode(){return this._currentNode}set currentNode(t){if(!_e(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");let n=[],r=t,o=t;for(this._currentNode=t;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let a=r,l=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});n.push(l),l.currentNode=o,this._currentSetFor.add(l),r=o=a.host}else r=r.parentNode;let i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(i),i.currentNode=o,this._currentSetFor.add(i),this._walkerStack=n}get doc(){return this._doc}firstChild(){let t=this.currentNode,n=this.nextNode();return _e(t,n)?(n&&(this.currentNode=n),n):(this.currentNode=t,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){let t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){let r;if(typeof this.filter=="function"?r=this.filter(t):this.filter?.acceptNode&&(r=this.filter.acceptNode(t)),r===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let o=this.nextNode();return o&&(this.currentNode=o),o}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let n=this.nextNode();return n&&(this.currentNode=n),n}else return null}previousNode(){let t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let r=this.previousNode();return r&&(this.currentNode=r),r}else return null;return null}let n=t.previousNode();if(n){if(n.shadowRoot){let o;if(typeof this.filter=="function"?o=this.filter(n):this.filter?.acceptNode&&(o=this.filter.acceptNode(n)),o===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let i=this.lastChild();return i&&(this.currentNode=i),i}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.previousNode();return r&&(this.currentNode=r),r}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}};function xg(e,t,n,r){return Or()?new zd(e,t,n,r):e.createTreeWalker(t,n,r)}var Ee=S(K(),1),wg=Ee.default.createContext(null),Bd="react-aria-focus-scope-restore",ge=null;function ha(e){let{children:t,contain:n,restoreFocus:r,autoFocus:o}=e,i=(0,Ee.useRef)(null),a=(0,Ee.useRef)(null),l=(0,Ee.useRef)([]),{parentNode:s}=(0,Ee.useContext)(wg)||{},u=(0,Ee.useMemo)(()=>new ma({scopeRef:l}),[l]);fe(()=>{let p=s||Re.root;if(Re.getTreeNode(p.scopeRef)&&ge&&!Ls(ge,p.scopeRef)){let g=Re.getTreeNode(ge);g&&(p=g)}p.addChild(u),Re.addNode(u)},[u,s]),fe(()=>{let p=Re.getTreeNode(l);p&&(p.contain=!!n)},[n]),fe(()=>{let p=i.current?.nextSibling,g=[],y=b=>b.stopPropagation();for(;p&&p!==a.current;)g.push(p),p.addEventListener(Bd,y),p=p.nextSibling;return l.current=g,()=>{for(let b of g)b.removeEventListener(Bd,y)}},[t]),T1(l,r,n),k1(l,n),_1(l,r,n),E1(l,o),(0,Ee.useEffect)(()=>{let p=te(ee(l.current?l.current[0]:void 0)),g=null;if(Ut(p,l.current)){for(let y of Re.traverse())y.scopeRef&&Ut(p,y.scopeRef.current)&&(g=y);g===Re.getTreeNode(l)&&(ge=g.scopeRef)}},[l]),fe(()=>()=>{let p=Re.getTreeNode(l)?.parent?.scopeRef??null;(l===ge||Ls(l,ge))&&(!p||Re.getTreeNode(p))&&(ge=p),Re.removeTreeNode(l)},[l]);let c=(0,Ee.useMemo)(()=>w1(l),[]),d=(0,Ee.useMemo)(()=>({focusManager:c,parentNode:u}),[u,c]);return Ee.default.createElement(wg.Provider,{value:d},Ee.default.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,Ee.default.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function w1(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t,l=r||te(ee(n[0]??void 0)),s=n[0].previousElementSibling,u=Gr(n),c=yn(u,{tabbable:o,accept:a},n);c.currentNode=Ut(l,n)?l:s;let d=c.nextNode();return!d&&i&&(c.currentNode=s,d=c.nextNode()),d&&rn(d,!0),d},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t,l=r||te(ee(n[0]??void 0)),s=n[n.length-1].nextElementSibling,u=Gr(n),c=yn(u,{tabbable:o,accept:a},n);c.currentNode=Ut(l,n)?l:s;let d=c.previousNode();return!d&&i&&(c.currentNode=s,d=c.previousNode()),d&&rn(d,!0),d},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Gr(n),a=yn(i,{tabbable:r,accept:o},n);a.currentNode=n[0].previousElementSibling;let l=a.nextNode();return l&&rn(l,!0),l},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Gr(n),a=yn(i,{tabbable:r,accept:o},n);a.currentNode=n[n.length-1].nextElementSibling;let l=a.previousNode();return l&&rn(l,!0),l}}}function Gr(e){return e[0].parentElement}function pa(e){let t=Re.getTreeNode(ge);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function S1(e){if(!e.form)return Array.from(ee(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter(r=>!r.form);let t=e.form.elements.namedItem(e.name),n=We(e);return t instanceof n.RadioNodeList?Array.from(t).filter(r=>r instanceof n.HTMLInputElement):t instanceof n.HTMLInputElement?[t]:[]}function C1(e){if(e.checked)return!0;let t=S1(e);return t.length>0&&!t.some(n=>n.checked)}function k1(e,t){let n=(0,Ee.useRef)(void 0),r=(0,Ee.useRef)(void 0);fe(()=>{let o=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}let i=ee(o?o[0]:void 0),a=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!pa(e)||u.isComposing)return;let c=te(i),d=e.current;if(!d||!Ut(c,d))return;let p=Gr(d),g=yn(p,{tabbable:!0},d);if(!c)return;g.currentNode=c;let y=u.shiftKey?g.previousNode():g.nextNode();y||(g.currentNode=u.shiftKey?d[d.length-1].nextElementSibling:d[0].previousElementSibling,y=u.shiftKey?g.previousNode():g.nextNode()),u.preventDefault(),y&&(rn(y,!0),y instanceof We(y).HTMLInputElement&&y.select())},l=u=>{(!ge||Ls(ge,e))&&Ut(Z(u),e.current)?(ge=e,n.current=Z(u)):pa(e)&&!Qr(Z(u),e)?n.current?rn(n.current):ge&&ge.current&&Hd(ge.current):pa(e)&&(n.current=Z(u))},s=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let c=Vr(),d=(c==="virtual"||c===null)&&Oo()&&fs(),p=te(i);if(!d&&p&&pa(e)&&!Qr(p,e)){ge=e;let g=Z(u);g&&g.isConnected?(n.current=g,rn(n.current)):ge.current&&Hd(ge.current)}})};return i.addEventListener("keydown",a,!1),i.addEventListener("focusin",l,!1),o?.forEach(u=>u.addEventListener("focusin",l,!1)),o?.forEach(u=>u.addEventListener("focusout",s,!1)),()=>{i.removeEventListener("keydown",a,!1),i.removeEventListener("focusin",l,!1),o?.forEach(u=>u.removeEventListener("focusin",l,!1)),o?.forEach(u=>u.removeEventListener("focusout",s,!1))}},[e,t]),fe(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function kg(e){return Qr(e)}function Ut(e,t){return!e||!t?!1:t.some(n=>_e(n,e))}function Qr(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Re.traverse(Re.getTreeNode(t)))if(n&&Ut(e,n.current))return!0;return!1}function Ls(e,t){let n=Re.getTreeNode(t)?.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function rn(e,t=!1){if(e!=null&&!t)try{ia(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function Eg(e,t=!0){let n=e[0].previousElementSibling,r=Gr(e),o=yn(r,{tabbable:t},e);o.currentNode=n;let i=o.nextNode();return t&&!i&&(r=Gr(e),o=yn(r,{tabbable:!1},e),o.currentNode=n,i=o.nextNode()),i}function Hd(e,t=!0){rn(Eg(e,t))}function E1(e,t){let n=Ee.default.useRef(t);(0,Ee.useEffect)(()=>{if(n.current){ge=e;let r=ee(e.current?e.current[0]:void 0);!Ut(te(r),ge.current)&&e.current&&Hd(e.current)}n.current=!1},[e])}function T1(e,t,n){fe(()=>{if(t||n)return;let r=e.current,o=ee(r?r[0]:void 0),i=a=>{let l=Z(a);Ut(l,e.current)?ge=e:kg(l)||(ge=null)};return o.addEventListener("focusin",i,!1),r?.forEach(a=>a.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),r?.forEach(a=>a.removeEventListener("focusin",i,!1))}},[e,t,n])}function Sg(e){let t=Re.getTreeNode(ge);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function _1(e,t,n){let r=(0,Ee.useRef)(typeof document<"u"?te(ee(e.current?e.current[0]:void 0)):null);fe(()=>{let o=e.current,i=ee(o?o[0]:void 0);if(!t||n)return;let a=()=>{(!ge||Ls(ge,e))&&Ut(te(i),e.current)&&(ge=e)};return i.addEventListener("focusin",a,!1),o?.forEach(l=>l.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),o?.forEach(l=>l.removeEventListener("focusin",a,!1))}},[e,n]),fe(()=>{let o=ee(e.current?e.current[0]:void 0);if(!t)return;let i=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!pa(e)||a.isComposing)return;let l=o.activeElement;if(!Qr(l,e)||!Sg(e))return;let s=Re.getTreeNode(e);if(!s)return;let u=s.nodeToRestore,c=yn(o.body,{tabbable:!0});c.currentNode=l;let d=a.shiftKey?c.previousNode():c.nextNode();if((!u||!u.isConnected||u===o.body)&&(u=void 0,s.nodeToRestore=void 0),(!d||!Qr(d,e))&&u){c.currentNode=u;do d=a.shiftKey?c.previousNode():c.nextNode();while(Qr(d,e));a.preventDefault(),a.stopPropagation(),d?rn(d,!0):kg(u)?rn(u,!0):l.blur()}};return n||o.addEventListener("keydown",i,!0),()=>{n||o.removeEventListener("keydown",i,!0)}},[e,t,n]),fe(()=>{let o=ee(e.current?e.current[0]:void 0);if(!t)return;let i=Re.getTreeNode(e);if(i)return i.nodeToRestore=r.current??void 0,()=>{let a=Re.getTreeNode(e);if(!a)return;let l=a.nodeToRestore,s=te(o);if(t&&l&&(s&&Qr(s,e)||s===o.body&&Sg(e))){let u=Re.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let c=u.getTreeNode(e);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){Cg(c.nodeToRestore);return}c=c.parent}for(c=u.getTreeNode(e);c;){if(c.scopeRef&&c.scopeRef.current&&Re.getTreeNode(c.scopeRef)){let d=Eg(c.scopeRef.current,!0);if(d){Cg(d);return}}c=c.parent}}})}}},[e,t])}function Cg(e){e.dispatchEvent(new CustomEvent(Bd,{bubbles:!0,cancelable:!0}))&&rn(e)}function yn(e,t,n){let r=t?.tabbable?ls:as,o=e?.nodeType===Node.ELEMENT_NODE?e:null,i=ee(o),a=xg(i,e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(l){return _e(t?.from,l)||t?.tabbable&&l.tagName==="INPUT"&&l.getAttribute("type")==="radio"&&(!C1(l)||a.currentNode.tagName==="INPUT"&&a.currentNode.type==="radio"&&a.currentNode.name===l.name)?NodeFilter.FILTER_REJECT:r(l)&&(!n||Ut(l,n))&&(!t?.accept||t.accept(l))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(a.currentNode=t.from),a}var Vd=class e{constructor(){this.fastMap=new Map,this.root=new ma({scopeRef:null}),this.fastMap.set(null,this.root)}get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let o=this.fastMap.get(n??null);if(!o)return;let i=new ma({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Ut(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let o=n.children;r&&(r.removeChild(n),o.size>0&&o.forEach(i=>r&&r.addChild(i))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){let t=new e;for(let n of this.traverse())t.addTreeNode(n.scopeRef,n.parent?.scopeRef??null,n.nodeToRestore);return t}},ma=class{constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}},Re=new Vd;function Wd(e){return Eh()?e.altKey:e.ctrlKey}function vn(e,t){let n=`[data-key="${CSS.escape(String(t))}"]`,r=e.current?.dataset.collection;return r&&(n=`[data-collection="${CSS.escape(r)}"]${n}`),e.current?.querySelector(n)}var P1=new WeakMap;function Tg(e){let t=Pt();return P1.set(e,t),t}var Ns=S(K(),1),_g=1e3;function Pg(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,o=(0,Ns.useRef)({search:"",timeout:void 0}),i=l=>{if(o.current.search.length>0&&l.key===" "){if(l.preventDefault(),(!("continuePropagation"in l)||"continuePropagation"in l&&!l.isPropagationStopped())&&l.stopPropagation(),o.current.search+=" ",t.getKeyForSearch!=null){let s=t.getKeyForSearch(o.current.search,n.focusedKey);s==null&&(s=t.getKeyForSearch(o.current.search)),s!=null&&(n.setFocusedKey(s),r&&r(s))}clearTimeout(o.current.timeout),o.current.timeout=setTimeout(()=>{o.current.search=""},_g)}},a=l=>{let s=L1(l.key);if(!(!s||l.ctrlKey||l.metaKey||l.altKey||!_e(l.currentTarget,Z(l))||o.current.search.length===0&&s===" ")){if(o.current.search+=s,t.getKeyForSearch!=null){let u=t.getKeyForSearch(o.current.search,n.focusedKey);if(u==null&&(u=t.getKeyForSearch(o.current.search)),u!=null)n.setFocusedKey(u),r&&r(u),l.preventDefault(),"continuePropagation"in l||l.stopPropagation();else{o.current.search="",clearTimeout(o.current.timeout),o.current.timeout=void 0;return}}clearTimeout(o.current.timeout),o.current.timeout=setTimeout(()=>{o.current.search=""},_g)}};return(0,Ns.useEffect)(()=>{let l=o.current.timeout;return()=>{clearTimeout(l)}},[o]),{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:void 0,onKeyDown:t.getKeyForSearch?a:void 0}}}function L1(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}var Ud=S(K(),1);function jd(e,t){let n=(0,Ud.useRef)(!0),r=(0,Ud.useRef)(null);fe(()=>(n.current=!0,()=>{n.current=!1}),[]),fe(()=>{n.current?n.current=!1:(!r.current||t.some((o,i)=>!Object.is(o,r[i])))&&e(),r.current=t},t)}var Lg=S(Ir(),1),on=S(K(),1);function Ng(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:a=!1,disallowSelectAll:l=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:u=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:d,allowsTabNavigation:p=!1,scrollRef:g=r,linkBehavior:y="action",UNSTABLE_focusOnEntry:b}=e,{direction:D}=Wr(),m=_h(),f=(v,k,Ce)=>{if(k!=null){if(t.isLink(k)&&y==="selection"&&u&&!Wd(v)){(0,Lg.flushSync)(()=>{t.setFocusedKey(k,Ce)});let oe=vn(r,k),bf=t.getItemProps(k);if(oe){m.open(oe,v,bf.href,bf.routerOptions);return}return!1}if(t.setFocusedKey(k,Ce),t.isLink(k)&&y==="override")return!1;if(v.shiftKey&&t.selectionMode==="multiple"){t.extendSelection(k);return}else if(u&&!Wd(v)){t.replaceSelection(k);return}}return!1},h=v=>{if(n.getKeyBelow){let k=t.focusedKey!=null?n.getKeyBelow?.(t.focusedKey):n.getFirstKey?.();if(k==null&&i&&(k=n.getFirstKey?.(t.focusedKey)),k!=null){f(v,k);return}}return!1},$=v=>{if(n.getKeyAbove){let k=t.focusedKey!=null?n.getKeyAbove?.(t.focusedKey):n.getLastKey?.();if(k==null&&i&&(k=n.getLastKey?.(t.focusedKey)),k!=null){f(v,k);return}}return!1},C=v=>{if(n.getFirstKey){if(t.focusedKey===null&&v.shiftKey)return!1;let k=n.getFirstKey(t.focusedKey,Qi(v));if(t.setFocusedKey(k),k!=null){if(Qi(v)&&v.shiftKey&&t.selectionMode==="multiple"){t.extendSelection(k);return}else if(u){t.replaceSelection(k);return}}}return!1},E=v=>{if(n.getKeyLeftOf){let k=t.focusedKey!=null?n.getKeyLeftOf?.(t.focusedKey):n.getFirstKey?.();if(k==null&&i&&(k=D==="rtl"?n.getFirstKey?.(t.focusedKey):n.getLastKey?.(t.focusedKey)),k!=null){f(v,k,D==="rtl"?"first":"last");return}}return!1},P=v=>{if(n.getKeyRightOf){let k=t.focusedKey!=null?n.getKeyRightOf?.(t.focusedKey):n.getFirstKey?.();if(k==null&&i&&(k=D==="rtl"?n.getLastKey?.(t.focusedKey):n.getFirstKey?.(t.focusedKey)),k!=null){f(v,k,D==="rtl"?"last":"first");return}}return!1},N=v=>{if(n.getLastKey){if(t.focusedKey===null&&v.shiftKey)return!1;let k=n.getLastKey(t.focusedKey,Qi(v));if(t.setFocusedKey(k),k!=null){if(Qi(v)&&v.shiftKey&&t.selectionMode==="multiple"){t.extendSelection(k);return}else if(u){t.replaceSelection(k);return}}}return!1},R=v=>{if(n.getKeyPageBelow&&t.focusedKey!=null){let k=n.getKeyPageBelow(t.focusedKey);if(k!=null)return f(v,k)}return!1},F=v=>{if(n.getKeyPageAbove&&t.focusedKey!=null){let k=n.getKeyPageAbove(t.focusedKey);if(k!=null)return f(v,k)}return!1},j=()=>{if(t.selectionMode==="multiple"&&l!==!0){t.selectAll();return}return!1},O=()=>{if(s==="clearSelection"&&!a&&t.selectedKeys.size!==0){t.clearSelection();return}return!1},M=()=>{if(!p&&r.current){let v=yn(r.current,{tabbable:!0}),k,Ce;do Ce=v.lastChild(),Ce&&(k=Ce);while(Ce);let oe=te();k&&(!hd(k)||oe&&!ls(oe))&&dr(k)}return{shouldContinuePropagation:!0,shouldPreventDefault:!1}},z=()=>(!p&&r.current&&r.current.focus(),{shouldContinuePropagation:!0,shouldPreventDefault:!1}),V=(v,k)=>({[Lt()?v+"+Shift+Alt":v+"+Shift+Control"]:k,[v+"+Shift"]:k,[Lt()?v+"+Alt":v+"+Control"]:k,[v]:k}),{keyboardProps:se}=Ld({shortcuts:{...V("ArrowDown",h),...V("ArrowUp",$),...V("ArrowLeft",E),...V("ArrowRight",P),...V("PageDown",R),...V("PageUp",F)},allowRepeats:!0}),{keyboardProps:Me}=Ld({shortcuts:{...V("Home",C),...V("End",N),"Mod+A":j,Escape:O,Tab:M,"Tab+Shift":z}}),ft=(0,on.useRef)({top:0,left:0});Yi(g,"scroll",()=>{ft.current={top:g.current?.scrollTop??0,left:g.current?.scrollLeft??0}});let Hn=v=>{if(t.isFocused){_e(v.currentTarget,Z(v))||t.setFocused(!1);return}if(!_e(v.currentTarget,Z(v)))return;let k=Vr();t.setFocused(!0);let Ce=oe=>{oe!=null&&(t.setFocusedKey(oe),u&&!t.isSelected(oe)&&t.replaceSelection(oe))};if(b&&(k==="keyboard"||k==="virtual"))Ce(b==="first"?n.getFirstKey?.():n.getLastKey?.());else if(t.focusedKey==null){let oe=v.relatedTarget;oe&&v.currentTarget.compareDocumentPosition(oe)&Node.DOCUMENT_POSITION_FOLLOWING?Ce(t.lastSelectedKey??n.getLastKey?.()):Ce(t.firstSelectedKey??n.getFirstKey?.())}else g.current&&(g.current.scrollTop=ft.current.top,g.current.scrollLeft=ft.current.left);if(t.focusedKey!=null&&g.current){let oe=vn(r,t.focusedKey);oe instanceof HTMLElement&&(!hd(oe)&&!d&&dr(oe),(k==="keyboard"||b&&k==="virtual")&&Dd(oe,{containingElement:r.current}))}},un=v=>{_e(v.currentTarget,v.relatedTarget)||t.setFocused(!1)},Ze=(0,on.useRef)(!1);Yi(r,vh,d?v=>{let{detail:k}=v;v.stopPropagation(),t.setFocused(!0),k?.focusStrategy==="first"&&(Ze.current=!0)}:void 0);let pt=n.getFirstKey?.()??null;jd(()=>{if(Ze.current)if(pt==null){let v=te();Sh(r.current),gd(v,null),t.collection.size>0&&(Ze.current=!1)}else t.setFocusedKey(pt),Ze.current=!1},[pt,t.collection.size]),jd(()=>{t.collection.size>0&&(Ze.current=!1)},[t.focusedKey]),Yi(r,yh,d?v=>{v.stopPropagation(),t.setFocused(!1),v.detail?.clearFocusKey&&t.setFocusedKey(null)}:void 0);let cn=(0,on.useRef)(o),Dt=(0,on.useRef)(!1);(0,on.useEffect)(()=>{if(cn.current){let v=null;o==="first"&&(v=n.getFirstKey?.()??null),o==="last"&&(v=n.getLastKey?.()??null);let k=t.selectedKeys;if(k.size){for(let Ce of k)if(t.canSelectItem(Ce)){v=Ce;break}}t.setFocused(!0),t.setFocusedKey(v),v!=null&&u&&!k.size&&t.canSelectItem(v)&&t.replaceSelection(v),v==null&&!d&&r.current&&ia(r.current),t.collection.size>0&&(cn.current=!1,Dt.current=!0)}});let jt=(0,on.useRef)(t.focusedKey),Ft=(0,on.useRef)(null);(0,on.useEffect)(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==jt.current||Dt.current)&&g.current&&r.current){let v=Vr(),k=vn(r,t.focusedKey);if(!(k instanceof HTMLElement))return;(v==="keyboard"||Dt.current)&&(Ft.current&&cancelAnimationFrame(Ft.current),Ft.current=requestAnimationFrame(()=>{g.current&&(fa(g.current,k),v!=="virtual"&&Dd(k,{containingElement:r.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&jt.current!=null&&r.current&&ia(r.current),jt.current=t.focusedKey,Dt.current=!1}),(0,on.useEffect)(()=>()=>{Ft.current&&cancelAnimationFrame(Ft.current)},[]),Yi(r,"react-aria-focus-scope-restore",v=>{v.preventDefault(),t.setFocused(!0)});let xt={...Ne(Me,se),onFocus:Hn,onBlur:un,onMouseDown(v){g.current===Z(v)&&v.preventDefault()}},{typeSelectProps:Cn}=Pg({keyboardDelegate:n,selectionManager:t});c||(xt=Ne(Cn,xt));let Yo;d||(Yo=t.focusedKey==null?0:-1);let Y=Tg(t.collection);return{collectionProps:Ne(xt,{tabIndex:Yo,"data-collection":Y})}}var ga=class{constructor(t){this.ref=t}getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?vn(this.ref,t):null;if(!r)return null;let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();return{x:i.left-o.left-n.clientLeft+n.scrollLeft,y:i.top-o.top-n.clientTop+n.scrollTop,width:i.width,height:i.height}}getContentSize(){let t=this.ref.current;return{width:t?.scrollWidth??0,height:t?.scrollHeight??0}}getVisibleRect(){let t=this.ref.current;return{x:t?.scrollLeft??0,y:t?.scrollTop??0,width:t?.clientWidth??0,height:t?.clientHeight??0}}};var Yr=class{constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new ga(n.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new ga(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}isDisabled(t){return this.disabledBehavior==="all"&&(t.props?.isDisabled||this.disabledKeys.has(t.key))&&t.props?.disabledBehavior!=="selection"}findNextNonDisabled(t,n,r=!1){let o=t;for(;o!=null;){let i=this.collection.getItem(o);if(i?.type==="item"&&(r||!this.isDisabled(i)))return o;o=n(o)}return null}getNextKey(t,n){let r=t;return r=this.collection.getKeyAfter(r),this.findNextNonDisabled(r,o=>this.collection.getKeyAfter(o),n?.includeDisabled)}getPreviousKey(t,n){let r=t;return r=this.collection.getKeyBefore(r),this.findNextNonDisabled(r,o=>this.collection.getKeyBefore(o),n?.includeDisabled)}findKey(t,n,r){let o=t,i=this.layoutDelegate.getItemRect(o);if(!i||o==null)return null;let a=i;do{if(o=n(o),o==null)break;i=this.layoutDelegate.getItemRect(o)}while(i&&r(a,i)&&o!=null);return o}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}isReversed(t){let n=this.getNextKey(t),r=vn(this.ref,t);if(n!=null){let i=vn(this.ref,n);return!r||!i?!1:r.getBoundingClientRect().top>i.getBoundingClientRect().top}let o=this.getPreviousKey(t);if(o!=null){let i=vn(this.ref,o);return!r||!i?!1:i.getBoundingClientRect().top>r.getBoundingClientRect().top}return!1}getKeyBelow(t,n){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getNextKey(r,n),this.isSameRow):this.orientation==="vertical"?this.isReversed(t)?this.getPreviousKey(t,n):this.getNextKey(t,n):this.getNextKey(t,n)}getKeyAbove(t,n){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getPreviousKey(r,n),this.isSameRow):this.orientation==="vertical"?this.isReversed(t)?this.getNextKey(t,n):this.getPreviousKey(t,n):this.getPreviousKey(t,n)}getNextColumn(t,n,r){return n?this.getPreviousKey(t,r):this.getNextKey(t,r)}getKeyRightOf(t,n){let r=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,o=>this.layoutDelegate[r](o),n?.includeDisabled)):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl",n):this.findKey(t,o=>this.getNextColumn(o,this.direction==="rtl",n),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl",n):null}getKeyLeftOf(t,n){let r=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,o=>this.layoutDelegate[r](o),n?.includeDisabled)):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr",n):this.findKey(t,o=>this.getNextColumn(o,this.direction==="ltr",n),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr",n):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;let o=this.isReversed(t);if(n&&!hr(n))return this.getFirstKey();let i=t;if(this.orientation==="horizontal"){let a=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>a&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let a=this.layoutDelegate.getVisibleRect(),l=o?r.y-a.height:Math.max(0,r.y+r.height-a.height);for(;r&&r.y>l&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??(o?this.getLastKey():this.getFirstKey())}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;let o=this.isReversed(t);if(n&&!hr(n))return this.getLastKey();let i=t;if(this.orientation==="horizontal"){let a=Math.min(this.layoutDelegate.getContentSize().width,r.x-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<a&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let a=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<a&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??(o?this.getFirstKey():this.getLastKey())}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,o=n||this.getFirstKey();for(;o!=null;){let i=r.getItem(o);if(!i)return null;let a=i.textValue.slice(0,t.length);if(i.textValue&&this.collator.compare(a,t)===0)return o;o=this.getNextKey(o)}return null}};var Gd=new Map;function $a(e){let{locale:t}=Wr(),n=t+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(Gd.has(n))return Gd.get(n);let r=new Intl.Collator(t,e);return Gd.set(n,r),r}var Rg=S(K(),1);function Rs(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:o,keyboardDelegate:i,layoutDelegate:a,orientation:l}=e,s=$a({usage:"search",sensitivity:"base"}),u=t.disabledBehavior,c=(0,Rg.useMemo)(()=>i||new Yr({collection:n,disabledKeys:r,disabledBehavior:u,ref:o,collator:s,layoutDelegate:a,orientation:l}),[i,a,n,r,o,s,u,l]),{collectionProps:d}=Ng({...e,ref:o,selectionManager:t,keyboardDelegate:c});return{listProps:d}}function Qd(e,t,n){let r=Nt(e,{labelable:!0}),o=e.selectionBehavior||"toggle",i=e.orientation||"vertical",a=e.linkBehavior||(o==="replace"?"action":"override");o==="toggle"&&a==="action"&&(a="override");let{listProps:l}=Rs({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:a}),{focusWithinProps:s}=Cs({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),u=Pt(e.id);vg.set(t,{id:u,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:a,UNSTABLE_itemBehavior:e.UNSTABLE_itemBehavior});let{labelProps:c,fieldProps:d}=gg({...e,id:u,labelElementType:"span"});return{labelProps:c,listBoxProps:Ne(r,s,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox","aria-orientation":i,...Ne(d,l)})}}function Ig(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function Dg(e){return N1(e,0)}function N1(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function Ms(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...Mg(e,t),t],o=[...Mg(e,n),n],i=r.slice(0,o.length).findIndex((a,l)=>a!==o[l]);return i!==-1?(t=r[i],n=o[i],t.index-n.index):r.findIndex(a=>a===n)>=0?1:(o.findIndex(a=>a===t)>=0,-1)}function Mg(e,t){let n=[],r=t;for(;r?.parentKey!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}function Yd(e){let{heading:t,"aria-label":n}=e,r=Pt();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation",onMouseDown:o=>{o.preventDefault()}}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}var Fg=S(K(),1);function ba(e){let t=Fg.version.split(".");return parseInt(t[0],10)>=19?e:e?"true":void 0}var ya=class{constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let n=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let l of a.childNodes)n(l)};for(let a of t)n(a);let r=null,o=0,i=0;for(let[a,l]of this.keyMap)r?(r.nextKey=a,l.prevKey=r.key):(this.firstKey=a,l.prevKey=void 0),l.type==="item"&&(l.index=o++),(l.type==="section"||l.type==="item")&&i++,r=l,r.nextKey=void 0;this._size=i,this.lastKey=r?.key??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey??null:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)??null}at(t){let n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){return this.keyMap.get(t)?.childNodes||[]}};var Rt=class e extends Set{constructor(t,n,r){super(t),t instanceof e?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}};var lt=S(K(),1);function R1(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function Xr(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:o="toggle",disabledBehavior:i="all"}=e,a=(0,lt.useRef)(!1),[,l]=(0,lt.useState)(!1),s=(0,lt.useRef)(null),u=(0,lt.useRef)(null),[,c]=(0,lt.useState)(null),d=(0,lt.useMemo)(()=>Kg(e.selectedKeys),[e.selectedKeys]),p=(0,lt.useMemo)(()=>Kg(e.defaultSelectedKeys,new Rt),[e.defaultSelectedKeys]),[g,y]=Ho(d,p,e.onSelectionChange),b=(0,lt.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[D,m]=(0,lt.useState)(o);o==="replace"&&D==="toggle"&&typeof g=="object"&&g.size===0&&m("replace");let f=(0,lt.useRef)(o);return(0,lt.useEffect)(()=>{o!==f.current&&(m(o),f.current=o)},[o]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:D,setSelectionBehavior:m,get isFocused(){return a.current},setFocused(h){a.current=h,l(h)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(h,$="first"){s.current=h,u.current=$,c(h)},selectedKeys:g,setSelectedKeys(h){(r||!R1(h,g))&&y(h)},disabledKeys:b,disabledBehavior:i}}function Kg(e,t){return e?e==="all"?"all":new Rt(e):t}var An=class e{constructor(t,n,r){this.collection=t,this.state=n,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(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let n=this.getKey(t);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&Ms(this.collection,r,t)<0)&&(t=r)}return t?.key??null}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&Ms(this.collection,r,t)>0)&&(t=r)}return t?.key??null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new Rt([n],n,n);else{let o=this.state.selectedKeys,i=o.anchorKey??n;r=new Rt(o,i,n);for(let a of this.getKeyRange(i,o.currentKey??n))r.delete(a);for(let a of this.getKeyRange(n,i))this.canSelectItem(a)&&r.add(a)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),o=this.collection.getItem(n);return r&&o?Ms(this.collection,r,o)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){if(this.layoutDelegate?.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let r=[],o=t;for(;o!=null;){let i=this.collection.getItem(o);if(i&&(i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&r.push(o),o===n)return r;o=this.collection.getKeyAfter(o)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new Rt(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let r=this.canSelectItem(n)?new Rt([n],n,n):new Rt;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new Rt;for(let r of t){let o=this.getKey(r);if(o!=null&&(n.add(o),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=this.fullCollection??this.collection,n=[],r=o=>{for(;o!=null;){if(this.canSelectItemIn(o,t)){let i=t.getItem(o);i?.type==="item"&&n.push(o),i?.hasChildNodes&&(this.allowsCellSelection||i.type!=="item")&&r(Dg(Ig(i,t))?.key??null)}o=t.getKeyAfter(o)}};return r(t.getFirstKey()),n}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Rt)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){return this.canSelectItemIn(t,this.collection)}canSelectItemIn(t,n){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=n.getItem(t);return!(!r||r?.props?.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){let n=this.collection.getItem(t);return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!n?.props?.isDisabled)&&n?.props?.disabledBehavior!=="selection"}isLink(t){return!!this.collection.getItem(t)?.props?.href}getItemProps(t){return this.collection.getItem(t)?.props}withCollection(t){return new e(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0,fullCollection:this.fullCollection??this.collection})}};var gr=S(K(),1),Is=class{build(t,n){return this.context=n,Og(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(gr.default.isValidElement(n)&&n.type===gr.default.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let o=0;for(let i of r)yield*this.getFullNode({value:i,index:o},{renderer:n}),o++}else{let o=[];gr.default.Children.forEach(n,a=>{a&&o.push(a)});let i=0;for(let a of o){let l=this.getFullNode({element:a,index:i},{});for(let s of l)i++,yield s}}}getKey(t,n,r,o){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${o}${n.key}`;let i=n.value;if(i!=null){let a=i.key??i.id;if(a==null)throw new Error("No key found for item");return a}return o?`${o}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,o){if(gr.default.isValidElement(t.element)&&t.element.type===gr.default.Fragment){let s=[];gr.default.Children.forEach(t.element.props.children,c=>{s.push(c)});let u=t.index??0;for(let c of s)yield*this.getFullNode({element:c,index:u++},n,r,o);return}let i=t.element;if(!i&&t.value&&n&&n.renderer){let s=this.cache.get(t.value);if(s&&(!s.shouldInvalidate||!s.shouldInvalidate(this.context))){s.index=t.index,s.parentKey=o?o.key:null,yield s;return}i=n.renderer(t.value)}if(gr.default.isValidElement(i)){let s=i.type;if(typeof s!="function"&&typeof s.getCollectionNode!="function"){let p=i.type;throw new Error(`Unknown element <${p}> in collection.`)}let u=s.getCollectionNode(i.props,this.context),c=t.index??0,d=u.next();for(;!d.done&&d.value;){let p=d.value;t.index=c;let g=p.key??null;g==null&&(g=p.element?null:this.getKey(i,t,n,r));let b=[...this.getFullNode({...p,key:g,index:c,wrapper:M1(t.wrapper,p.wrapper)},this.getChildState(n,p),r?`${r}${i.key}`:i.key,o)];for(let D of b){if(D.value=p.value??t.value??null,D.value&&this.cache.set(D.value,D),t.type&&D.type!==t.type)throw new Error(`Unsupported type <${Xd(D.type)}> in <${Xd(o?.type??"unknown parent type")}>. Only <${Xd(t.type)}> is supported.`);c++,yield D}d=u.next(b)}return}if(t.key==null||t.type==null)return;let a=this,l={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:t.value??null,level:(o?.level??0)+(o?.type==="item"?1:0),index:t.index,rendered:t.rendered,textValue:t.textValue??"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:Og(function*(){if(!t.hasChildNodes||!t.childNodes)return;let s=0;for(let u of t.childNodes()){u.key!=null&&(u.key=`${l.key}${u.key}`);let c=a.getFullNode({...u,index:s},a.getChildState(n,u),l.key,l);for(let d of c)s++,yield d}})};yield l}constructor(){this.cache=new WeakMap}};function Og(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function M1(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Xd(e){return e[0].toUpperCase()+e.slice(1)}var qd=S(K(),1);function Ds(e,t,n){let r=(0,qd.useMemo)(()=>new Is,[]),{children:o,items:i,collection:a}=e;return(0,qd.useMemo)(()=>{if(a)return a;let s=r.build({children:o,items:i},n);return t(s)},[r,o,i,a,n,t])}var an=S(K(),1);function Zd(e){let{filter:t,layoutDelegate:n}=e,r=Xr(e),o=(0,an.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=(0,an.useCallback)(u=>t?new ya(t(u)):new ya(u),[t]),a=(0,an.useMemo)(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),l=Ds(e,i,a),s=(0,an.useMemo)(()=>new An(l,r,{layoutDelegate:n}),[l,r,n]);return Ag(l,s),{collection:l,disabledKeys:o,selectionManager:s}}function Jd(e,t){let n=(0,an.useMemo)(()=>t?e.collection.filter(t):e.collection,[e.collection,t]),r=e.selectionManager.withCollection(n);return Ag(n,r),{collection:n,selectionManager:r,disabledKeys:e.disabledKeys}}function Ag(e,t){let n=(0,an.useRef)(null);(0,an.useEffect)(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&n.current){let r=n.current.getKeyAfter(t.focusedKey),o=null;for(;r!=null;){let i=e.getItem(r);if(i&&i.type==="item"&&!t.isDisabled(r)){o=r;break}r=n.current.getKeyAfter(r)}if(o==null)for(r=n.current.getKeyBefore(t.focusedKey);r!=null;){let i=e.getItem(r);if(i&&i.type==="item"&&!t.isDisabled(r)){o=r;break}r=n.current.getKeyBefore(r)}t.setFocusedKey(o)}n.current=e},[e,t])}var zg=S(K(),1);function va(e,t){let{collection:n,onLoadMore:r,scrollOffset:o=1,direction:i="end"}=e,a=(0,zg.useRef)(null),l=$s(s=>{for(let u of s)u.isIntersecting&&r&&r()});fe(()=>{if(t.current){let s=100*o,u=i==="start"?`${s}% 0px 0px 0px`:`0px ${s}% ${s}% ${s}%`;a.current=new IntersectionObserver(l,{root:$g(t?.current),rootMargin:u}),a.current.observe(t.current)}return()=>{a.current&&a.current.disconnect()}},[n,t,o,i])}var A=S(K(),1);var ef=(0,A.createContext)(null),xa=(0,A.createContext)(null),tf=(0,A.forwardRef)(function(t,n){[t,n]=Ko(t,n,ef);let r=(0,A.useContext)(xa);return r?A.default.createElement(Bg,{state:r,props:t,listBoxRef:n}):A.default.createElement(sa,{content:A.default.createElement(ca,t)},o=>A.default.createElement(I1,{props:t,listBoxRef:n,collection:o}))});function I1({props:e,listBoxRef:t,collection:n}){e={...e,collection:n,children:null,items:null};let{layoutDelegate:r}=(0,A.useContext)(jr),o=Zd({...e,layoutDelegate:r});return A.default.createElement(Bg,{state:o,props:e,listBoxRef:t})}function Bg({state:e,props:t,listBoxRef:n}){[t,n]=Ko(t,n,Zi);let{dragAndDropHooks:r,layout:o="stack",orientation:i="vertical",filter:a}=t,l=Jd(e,a),{collection:s,selectionManager:u}=l,c=!!r?.useDraggableCollectionState,d=!!r?.useDroppableCollectionState,{direction:p}=Wr(),{disabledBehavior:g,disabledKeys:y}=u,b=$a({usage:"search",sensitivity:"base"}),{isVirtualized:D,layoutDelegate:m,dropTargetDelegate:f,CollectionRoot:h}=(0,A.useContext)(jr),$=(0,A.useMemo)(()=>t.keyboardDelegate||new Yr({collection:s,collator:b,ref:n,disabledKeys:y,disabledBehavior:g,layout:o,orientation:i,direction:p,layoutDelegate:m}),[s,b,n,g,y,i,p,t.keyboardDelegate,o,m]),{listBoxProps:C}=Qd({...t,shouldSelectOnPressUp:c||t.shouldSelectOnPressUp,keyboardDelegate:$,isVirtualized:D},l,n),E=(0,A.useRef)(c),P=(0,A.useRef)(d);(0,A.useEffect)(()=>{},[c,d]);let N,R,F,j=!1,O=null,M=(0,A.useRef)(null);if(c&&r){N=r.useDraggableCollectionState({collection:s,selectionManager:u,preview:r.renderDragPreview?M:void 0}),r.useDraggableCollection({},N,n);let pt=r.DragPreview;O=r.renderDragPreview?A.default.createElement(pt,{ref:M},r.renderDragPreview):null}if(d&&r){R=r.useDroppableCollectionState({collection:s,selectionManager:u});let pt=r.dropTargetDelegate||f||new r.ListDropTargetDelegate(s,n,{orientation:i,layout:o,direction:p});F=r.useDroppableCollection({keyboardDelegate:$,dropTargetDelegate:pt},R,n),j=R.isDropTarget({type:"root"})}let{focusProps:z,isFocused:V,isFocusVisible:se}=Id(),Me=l.collection.size===0,ft={isDropTarget:j,isEmpty:Me,isFocused:V,isFocusVisible:se,layout:t.layout||"stack",orientation:i,state:l},Hn=Fn({...t,children:void 0,defaultClassName:"react-aria-ListBox",values:ft}),un=null;Me&&t.renderEmptyState&&(un=A.default.createElement("div",{role:"option",style:{display:"contents"}},t.renderEmptyState(ft)));let Ze=Nt(t,{global:!0});return A.default.createElement(ha,null,A.default.createElement(Kn.div,{...Ne(Ze,Hn,C,z,F?.collectionProps),ref:n,slot:t.slot||void 0,onScroll:t.onScroll,"data-drop-target":j||void 0,"data-empty":Me||void 0,"data-focused":V||void 0,"data-focus-visible":se||void 0,"data-layout":t.layout||"stack","data-orientation":i},A.default.createElement(Fo,{values:[[ef,t],[xa,l],[Es,{dragAndDropHooks:r,dragState:N,dropState:R}],[Ps,{elementType:"div"}],[Fd,{render:F1}],[Ss,{name:"ListBoxSection",render:D1}]]},A.default.createElement(_s,null,A.default.createElement(h,{collection:s,scrollRef:n,persistedKeys:bg(u,r,R),renderDropIndicator:Kd(r,R)}))),un,O))}function D1(e,t,n,r="react-aria-ListBoxSection"){let o=(0,A.useContext)(xa),{dragAndDropHooks:i,dropState:a}=(0,A.useContext)(Es),{CollectionBranch:l}=(0,A.useContext)(jr),[s,u]=os(),{headingProps:c,groupProps:d}=Yd({heading:u,"aria-label":e["aria-label"]??void 0}),p=Fn({...e,id:void 0,children:void 0,defaultClassName:r,values:void 0}),g=Nt(e,{global:!0});return delete g.id,A.default.createElement(Kn.section,{...Ne(g,p,d),ref:t},A.default.createElement(Ts.Provider,{value:{...c,ref:s}},A.default.createElement(l,{collection:o.collection,parent:n,renderDropIndicator:Kd(i,a)})))}function F1(e,t){t=Vi(t);let{dragAndDropHooks:n,dropState:r}=(0,A.useContext)(Es),{dropIndicatorProps:o,isHidden:i,isDropTarget:a}=n.useDropIndicator(e,r,t);return i?null:A.default.createElement(O1,{...e,dropIndicatorProps:o,isDropTarget:a,ref:t})}function K1(e,t){let{dropIndicatorProps:n,isDropTarget:r,...o}=e,i=Fn({...o,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}});return A.default.createElement(A.default.Fragment,null,A.default.createElement(Kn.div,{...n,...i,role:"option",ref:t,"data-drop-target":r||void 0}))}var O1=(0,A.forwardRef)(K1),A1=ua(Ur,function(t,n,r){let o=(0,A.useContext)(xa),{isLoading:i,onLoadMore:a,scrollOffset:l,...s}=t,u=(0,A.useRef)(null),c=(0,A.useMemo)(()=>({onLoadMore:a,collection:o?.collection,sentinelRef:u,scrollOffset:l}),[a,l,o?.collection]);va(c,u);let d=Fn({...s,id:void 0,children:r.rendered,defaultClassName:"react-aria-ListBoxLoadingIndicator",values:void 0}),p={tabIndex:-1};return A.default.createElement(A.default.Fragment,null,A.default.createElement("div",{style:{position:"relative",width:0,height:0},inert:ba(!0)},A.default.createElement("div",{"data-testid":"loadMoreSentinel",ref:u,style:{position:"absolute",height:1,width:1}})),i&&d.children&&A.default.createElement(A.default.Fragment,null,A.default.createElement(Kn.div,{...Ne(Nt(t,{global:!0}),p),...d,role:"option",ref:n},d.children)))});var jo=S(K(),1);function Hg(e){let[t,n]=Ho(e.isOpen,e.defaultOpen||!1,e.onOpenChange),[r,o]=(0,jo.useState)(null),i=(0,jo.useCallback)(()=>{n(!0)},[n]),a=(0,jo.useCallback)(()=>{n(!1)},[n]),l=(0,jo.useCallback)(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:i,close:a,toggle:l,point:r,setPoint:o}}var Vg=new WeakMap;function nf(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:o,onKeyUp:i,...a}=e;!e["aria-label"]&&e["aria-labelledby"];let l=Nt(e,{labelable:!0}),{listProps:s}=Rs({...a,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return Vg.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:Ne(l,{onKeyDown:o,onKeyUp:i},{role:"menu",...s,onKeyDown:u=>{(u.key!=="Escape"||e.shouldUseVirtualFocus)&&s.onKeyDown?.(u)}})}}function rf(e){let{heading:t,"aria-label":n}=e,r=Pt();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}var of=S(K(),1);function af(e){let t=Hg(e),[n,r]=(0,of.useState)(null),[o,i]=(0,of.useState)([]),a=()=>{i([]),t.close()};return{focusStrategy:n,...t,open(u=null){r(u),t.open()},toggle(u=null){r(u),t.toggle()},close(){a()},expandedKeysStack:o,openSubmenu:(u,c)=>{i(d=>c>d.length?d:[...d.slice(0,c),u])},closeSubmenu:(u,c)=>{i(d=>d[c]===u?d.slice(0,c):d)}}}var U=S(K(),1);var Fs=class{constructor(t,{expandedKeys:n}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t,n=n||new Set;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&(a.type==="section"||n.has(a.key)))for(let l of a.childNodes)r(l)};for(let a of t)r(a);let o=null,i=0;for(let[a,l]of this.keyMap)o?(o.nextKey=a,l.prevKey=o.key):(this.firstKey=a,l.prevKey=void 0),l.type==="item"&&(l.index=i++),o=l,o.nextKey=void 0;this.lastKey=o?.key??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey??null:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)??null}at(t){let n=[...this.getKeys()];return this.getItem(n[t])}};var Go=S(K(),1);function lf(e){let{onExpandedChange:t}=e,[n,r]=Ho(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),o=Xr(e),i=(0,Go.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=Ds(e,(0,Go.useCallback)(s=>new Fs(s,{expandedKeys:n}),[n]),null);return(0,Go.useEffect)(()=>{o.focusedKey!=null&&!a.getItem(o.focusedKey)&&o.setFocusedKey(null)},[a,o.focusedKey]),{collection:a,expandedKeys:n,disabledKeys:i,toggleKey:s=>{r(z1(n,s))},setExpandedKeys:r,selectionManager:new An(a,o)}}function z1(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}var df=(0,U.createContext)(null),Os=(0,U.createContext)(null),Ks=(0,U.createContext)(null),sf=(0,U.createContext)(null);var B1=(0,U.createContext)(null),Wg=class extends Wt{static{this.type="submenutrigger"}filter(t,n,r){let o=t.getItem(this.firstChildKey);if(o&&r(o.textValue,this)){let i=this.clone();return n.addDescendants(i,t),i}return null}};var ff=(0,U.forwardRef)(function(t,n){return[t,n]=Ko(t,n,df),U.default.createElement(sa,{content:U.default.createElement(ca,t)},r=>U.default.createElement(H1,{props:t,collection:r,menuRef:n}))});function H1({props:e,collection:t,menuRef:n}){[e,n]=Ko(e,n,Zi);let{filter:r,...o}=e,i=(0,U.useMemo)(()=>r?t.filter(r):t,[t,r]),a=lf({...e,collection:i,children:void 0}),l=(0,U.useContext)(Ks),{isVirtualized:s,CollectionRoot:u}=(0,U.useContext)(jr),{menuProps:c}=nf({...e,isVirtualized:s,onClose:e.onClose||l?.close},a,n),d=Fn({...e,children:void 0,defaultClassName:"react-aria-Menu",values:{isEmpty:a.collection.size===0}}),p=null;a.collection.size===0&&e.renderEmptyState&&(p=U.default.createElement("div",{role:"menuitem",style:{display:"contents"}},e.renderEmptyState()));let g=Nt(e,{global:!0});return U.default.createElement(ha,null,U.default.createElement(Kn.div,{...Ne(g,d,c),ref:n,slot:e.slot||void 0,"data-empty":a.collection.size===0||void 0,onScroll:e.onScroll},U.default.createElement(Fo,{values:[[Os,a],[Ps,{elementType:"div"}],[Ss,{name:"MenuSection",render:V1}],[B1,{parentMenuRef:n,shouldUseVirtualFocus:o?.shouldUseVirtualFocus}],[cf,{shouldCloseOnSelect:e.shouldCloseOnSelect}],[Zi,null],[jh,null],[sf,a.selectionManager],[Ks,l??af({})]]},U.default.createElement(_s,null,U.default.createElement(u,{collection:a.collection,persistedKeys:pg(a.selectionManager.focusedKey),scrollRef:n}))),p))}var uf=class extends An{constructor(t,n){super(t.collection,n),this.parent=t}get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(t,n){return this.parent.setFocusedKey(t,n)}setFocused(t){this.parent.setFocused(t)}get childFocusStrategy(){return this.parent.childFocusStrategy}};function V1(e,t,n,r="react-aria-MenuSection"){let o=(0,U.useContext)(Os),{CollectionBranch:i}=(0,U.useContext)(jr),[a,l]=os(),{headingProps:s,groupProps:u}=rf({heading:l,"aria-label":n.props["aria-label"]??void 0}),c=Fn({...e,id:void 0,children:void 0,defaultClassName:r,className:n.props?.className,style:n.props?.style,values:void 0}),d=(0,U.useContext)(sf),p=Xr(e),g=e.selectionMode!=null?new uf(d,p):d,y=md(cf)?.shouldCloseOnSelect,b=Nt(e,{global:!0});return delete b.id,U.default.createElement(Kn.section,{...Ne(b,c,u),ref:t},U.default.createElement(Fo,{values:[[Ts,{...s,ref:a}],[sf,g],[cf,{shouldCloseOnSelect:e.shouldCloseOnSelect??y}]]},U.default.createElement(i,{collection:o.collection,parent:n})))}var cf=(0,U.createContext)(null);var W1=ua(Ur,function(t,n,r){let o=(0,U.useContext)(Os),{isLoading:i,onLoadMore:a,scrollOffset:l,...s}=t,u=(0,U.useRef)(null),c=(0,U.useMemo)(()=>({onLoadMore:a,collection:o?.collection,sentinelRef:u,scrollOffset:l}),[a,l,o?.collection]);va(c,u);let d=Fn({...s,id:void 0,children:r.rendered,defaultClassName:"react-aria-MenuLoadingIndicator",values:void 0}),p={tabIndex:-1};return U.default.createElement(U.default.Fragment,null,U.default.createElement("div",{style:{position:"relative",width:0,height:0},inert:ba(!0)},U.default.createElement("div",{"data-testid":"loadMoreSentinel",ref:u,style:{position:"absolute",height:1,width:1}})),i&&d.children&&U.default.createElement(U.default.Fragment,null,U.default.createElement(Kn.div,{...Ne(Nt(t,{global:!0}),p),...d,role:"menuitem",ref:n},d.children)))});var pf=S(K(),1);var Ug=S(he(),1);var As=S(K(),1);var Gg=S(he(),1),le=e=>`var(--semantic-color-${e})`,ln=e=>`var(--semantic-layout-units-${e})`,jg=e=>`var(--contextual-layout-units-${e})`,ze=e=>`var(--semantic-type-${e})`,xn=e=>`var(--motion-${e})`;var ie={ring:le("stroke-action-secondary-rest"),ringHover:le("stroke-action-secondary-hover"),ringPressed:le("stroke-action-secondary-pressed"),ringOn:le("stroke-action-primary-strong-rest"),ringOnHover:le("stroke-action-primary-strong-hover"),ringOnPressed:le("stroke-action-primary-strong-pressed"),ringError:le("stroke-action-status-negative-rest"),ringErrorHover:le("stroke-action-status-negative-hover"),ringErrorPressed:le("stroke-action-status-negative-pressed"),ringDisabled:le("stroke-action-disabled"),dot:le("fill-action-primary-strong-rest"),dotHover:le("fill-action-primary-strong-hover"),dotPressed:le("fill-action-primary-strong-pressed"),dotError:le("fill-action-status-negative-strong-rest"),dotErrorHover:le("fill-action-status-negative-strong-hover"),dotErrorPressed:le("fill-action-status-negative-strong-pressed"),dotDisabled:le("fill-action-disabled"),layerHover:le("fill-action-selection-hover"),layerPressed:le("fill-action-selection-selected"),focusFill:le("fill-surface-elevated"),focusRing:le("stroke-focusring-base"),label:le("foreground-static-neutral-base"),labelDisabled:le("foreground-action-disabled"),groupLabel:le("foreground-action-secondary-rest"),groupLabelError:le("foreground-action-status-negative-on-subtle-hover"),required:le("foreground-static-negative-on-subtle"),help:le("foreground-action-secondary-rest"),helpError:le("foreground-static-negative-on-subtle"),helpErrorIcon:le("fill-action-status-negative-strong-rest")},ne={target:ln("accessibility-touch-target-aa-width"),targetH:ln("accessibility-touch-target-aa-height"),ringWidth:jg("selection-controls-borderwidth"),radius:ln("cornerradius-full"),controlGap:ln("gap-xxtight"),requiredGap:ln("gap-xxxtight"),rowGap:ln("gap-base"),labelEnd:ln("padding-base"),labelBlock:{Base:ln("padding-tight"),Large:ln("padding-xtight")},helpGap:ln("gap-tight"),helpIconTop:ln("borderwidth-base"),ring:{Base:20,Large:24},dot:{Base:10,Large:12},labelMax:480,helpMax:360,helpIcon:16},Mt={Base:{fontSize:ze("font-size-s"),lineHeight:ze("line-height-s-single"),letterSpacing:ze("letter-spacing-spacious")},Large:{fontSize:ze("font-size-r"),lineHeight:ze("line-height-r-single"),letterSpacing:ze("letter-spacing-wide")},group:{fontSize:ze("font-size-s"),lineHeight:ze("line-height-s-single"),letterSpacing:ze("letter-spacing-spacious"),fontWeight:ze("weight-medium")},help:{fontSize:ze("font-size-xs"),lineHeight:ze("line-height-xs-single"),letterSpacing:ze("letter-spacing-extraspacious")}},S4=`
|
|
16
16
|
.pw-radio-group{display:flex;flex-direction:column;align-items:flex-start;gap:${ne.controlGap};min-width:0;
|
|
17
|
-
font-family:${
|
|
17
|
+
font-family:${ze("family-brand")},sans-serif}
|
|
18
18
|
.pw-radio-group__label{display:inline-flex;gap:${ne.requiredGap};color:${ie.groupLabel};
|
|
19
19
|
font-size:${Mt.group.fontSize};line-height:${Mt.group.lineHeight};letter-spacing:${Mt.group.letterSpacing};font-weight:${Mt.group.fontWeight}}
|
|
20
20
|
.pw-radio-group__required{color:${ie.required}}
|
|
@@ -23,15 +23,15 @@ Error generating stack: `+i.message+`
|
|
|
23
23
|
.pw-radio-group__options{display:flex;flex-direction:column;max-width:100%}
|
|
24
24
|
.pw-radio-group[data-orientation=horizontal] .pw-radio-group__options{flex-direction:row;flex-wrap:wrap;column-gap:${ne.rowGap}}
|
|
25
25
|
.pw-radio-group__help{display:flex;align-items:center;gap:${ne.helpGap};max-width:${ne.helpMax}px;color:${ie.help};
|
|
26
|
-
font-size:${Mt.help.fontSize};line-height:${Mt.help.lineHeight};letter-spacing:${Mt.help.letterSpacing};font-weight:${
|
|
27
|
-
.pw-radio-group__help[data-error]{color:${ie.helpError};font-weight:${
|
|
26
|
+
font-size:${Mt.help.fontSize};line-height:${Mt.help.lineHeight};letter-spacing:${Mt.help.letterSpacing};font-weight:${ze("weight-regular")}}
|
|
27
|
+
.pw-radio-group__help[data-error]{color:${ie.helpError};font-weight:${ze("weight-semibold")}}
|
|
28
28
|
.pw-radio-group__help-icon{flex:none;display:inline-flex;padding-top:${ne.helpIconTop};color:${ie.helpErrorIcon}}
|
|
29
29
|
.pw-radio-group__help-icon .material-symbols-rounded{font-family:"Material Symbols Rounded";font-size:${ne.helpIcon}px;line-height:1;
|
|
30
30
|
font-variation-settings:'FILL' 1,'wght' 400,'GRAD' 0,'opsz' 24}
|
|
31
31
|
|
|
32
32
|
.pw-radio{display:flex;align-items:flex-start;gap:${ne.controlGap};box-sizing:border-box;width:fit-content;max-width:100%;
|
|
33
33
|
min-width:${ne.target};min-height:${ne.targetH};cursor:pointer;outline:none;-webkit-tap-highlight-color:transparent;
|
|
34
|
-
font-family:${
|
|
34
|
+
font-family:${ze("family-brand")},sans-serif}
|
|
35
35
|
.pw-radio[data-disabled]{cursor:not-allowed}
|
|
36
36
|
.pw-radio__control{flex:none;display:inline-grid;place-items:center;width:${ne.target};height:${ne.targetH};border-radius:${ne.radius};
|
|
37
37
|
transition:background-color ${xn("duration-2")} ${xn("easing-standard")}}
|
|
@@ -44,7 +44,7 @@ Error generating stack: `+i.message+`
|
|
|
44
44
|
.pw-radio[data-size=Large] .pw-radio__dot{width:${ne.dot.Large}px;height:${ne.dot.Large}px}
|
|
45
45
|
.pw-radio__label{box-sizing:border-box;min-width:0;max-width:${ne.labelMax}px;overflow-wrap:anywhere;color:${ie.label};
|
|
46
46
|
padding:${ne.labelBlock.Base} ${ne.labelEnd} ${ne.labelBlock.Base} 0;
|
|
47
|
-
font-size:${Mt.Base.fontSize};line-height:${Mt.Base.lineHeight};letter-spacing:${Mt.Base.letterSpacing};font-weight:${
|
|
47
|
+
font-size:${Mt.Base.fontSize};line-height:${Mt.Base.lineHeight};letter-spacing:${Mt.Base.letterSpacing};font-weight:${ze("weight-regular")}}
|
|
48
48
|
.pw-radio[data-size=Large] .pw-radio__label{padding-block:${ne.labelBlock.Large};
|
|
49
49
|
font-size:${Mt.Large.fontSize};line-height:${Mt.Large.lineHeight};letter-spacing:${Mt.Large.letterSpacing}}
|
|
50
50
|
|
|
@@ -72,17 +72,17 @@ Error generating stack: `+i.message+`
|
|
|
72
72
|
.pw-radio[data-disabled] .pw-radio__label{color:${ie.labelDisabled}}
|
|
73
73
|
|
|
74
74
|
.pw-radio:is([data-focus-visible],[data-force=Focused]) .pw-radio__mark{background:${ie.focusFill};border-color:transparent;
|
|
75
|
-
outline:${
|
|
75
|
+
outline:${jg("focusring-width")} solid ${ie.focusRing};outline-offset:0}
|
|
76
76
|
|
|
77
77
|
.pw-radio-mark{display:inline-grid;place-items:center;width:${ne.target};height:${ne.targetH};flex:none}
|
|
78
78
|
|
|
79
79
|
@media (prefers-reduced-motion: reduce){.pw-radio__control,.pw-radio__mark,.pw-radio__dot{transition:none}}
|
|
80
|
-
`;var w4=(0,Ks.createContext)({size:"Base"});var C4=S(K(),1),Gg=S(he(),1);var yt=e=>`var(--semantic-color-${e})`,E4={neutral:{light:yt("foreground-static-neutral-faint"),subtle:yt("foreground-static-neutral-base"),base:yt("foreground-static-neutral-base"),contrast:yt("foreground-static-neutral-strong"),bold:yt("foreground-static-neutral-bold")},brand:yt("foreground-action-primary-on-subtle-rest"),info:yt("foreground-static-info-on-subtle"),warning:yt("foreground-static-attention-on-subtle"),danger:yt("foreground-static-negative-on-subtle"),negative:yt("foreground-static-negative-on-subtle"),positive:yt("foreground-static-positive-on-subtle"),"accent-amethyst":yt("foreground-static-info-on-subtle"),"accent-jade":yt("foreground-static-accent-jade-on-subtle"),"accent-seabreeze":yt("foreground-static-accent-seabreeze-on-subtle")};var Q1=S(K(),1);var Yg=S(he(),1),Y1=e=>`var(--semantic-color-${e})`,vt=e=>`var(--semantic-layout-units-${e})`,Qg=e=>`var(--contextual-layout-units-${e})`;var L4={radius:vt("cornerradius-large"),radiusX:vt("cornerradius-full"),border:vt("borderwidth-base"),padTop:vt("padding-xxxxtight"),padBottom:vt("padding-xxxxtight"),padLeft:vt("padding-xxxtight"),padRight:vt("padding-xxtight"),gap:vt("gap-xxxtight")},$r={pill:vt("padding-xxxtight"),text:vt("padding-xxxtight"),fieldGap:vt("gap-xxtight"),rowGap:vt("gap-xtight"),touchW:vt("accessibility-touch-target-aa-width"),touchH:vt("accessibility-touch-target-aa-height"),ring:Y1("stroke-focusring-base"),ringWidth:Qg("focusring-width"),ringOffset:Qg("focusring-offset"),fieldMax:80,badgeMax:240,duration:"var(--motion-duration-2)",easing:"var(--motion-easing-standard)"};var N4={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,minWidth:$r.touchW,minHeight:$r.touchH,boxSizing:"border-box",padding:0,margin:0,border:0,background:"transparent",font:"inherit",color:"inherit",textDecoration:"none",outline:"none"};var R4=`background ${$r.duration} ${$r.easing}, color ${$r.duration} ${$r.easing}, box-shadow ${$r.duration} ${$r.easing}`;var Xg=S(K(),1),qg=S(he(),1),br=e=>`var(--semantic-color-${e})`,sn=e=>`var(--semantic-layout-units-${e})`,Xe=e=>`var(--semantic-type-${e})`;var D4={XXXS:{px:16,fontSize:Xe("font-size-xxxs"),lineHeight:Xe("line-height-xxxs-single"),radius:sn("cornerradius-small"),icon:10,badge:6},XXS:{px:20,fontSize:Xe("font-size-xxxs"),lineHeight:Xe("line-height-xxxs-single"),radius:sn("cornerradius-small"),icon:12,badge:7},XS:{px:24,fontSize:Xe("font-size-xxs"),lineHeight:Xe("line-height-xxs-single"),radius:sn("cornerradius-small"),icon:14,badge:8},S:{px:32,fontSize:Xe("font-size-s"),lineHeight:Xe("line-height-s-single"),radius:sn("cornerradius-small"),icon:20,badge:10},M:{px:40,fontSize:Xe("font-size-r"),lineHeight:Xe("line-height-r-single"),radius:sn("cornerradius-base"),icon:24,badge:12},L:{px:56,fontSize:Xe("font-size-l"),lineHeight:Xe("line-height-l-single"),radius:sn("cornerradius-large"),icon:34,badge:16},XL:{px:96,fontSize:Xe("font-size-xxl"),lineHeight:Xe("line-height-xxl-single"),radius:sn("cornerradius-xlarge"),icon:58,badge:28}},F4={fill:br("fill-static-brand-subtle"),foreground:br("foreground-static-brand-on-subtle"),imageFill:br("fill-static-neutral-faint"),stroke:br("stroke-static-neutral-base"),strokeWidth:sn("borderwidth-thin"),circle:sn("cornerradius-full"),badgeRing:br("stroke-static-neutral-mono"),badgeRingW:sn("borderwidth-base"),badge:{Positive:br("fill-static-positive-strong"),Attention:br("fill-static-attention-strong")},groupRing:br("fill-surface-elevated"),groupRingW:sn("borderwidth-thick"),family:Xe("family-brand"),weight:Xe("weight-semibold")};var e$=S(K(),1),pf=S(he(),1),_=e=>`var(--semantic-color-${e})`;var It=e=>`var(--contextual-layout-units-${e})`,va=e=>`var(--semantic-type-${e})`,Zg={Fill:{Primary:{base:_("fill-action-primary-strong-rest"),hover:_("fill-action-primary-strong-hover"),pressed:_("fill-action-primary-strong-pressed"),disabled:_("fill-action-disabled")},Secondary:{base:_("fill-action-secondary-rest"),hover:_("fill-action-secondary-hover"),pressed:_("fill-action-secondary-pressed"),disabled:_("fill-action-disabled")},Tertiary:{base:_("fill-action-primary-subtle-rest"),hover:_("fill-action-primary-subtle-hover"),pressed:_("fill-action-primary-subtle-pressed"),disabled:_("fill-action-disabled")},Negative:{base:_("fill-action-status-negative-strong-rest"),hover:_("fill-action-status-negative-strong-hover"),pressed:_("fill-action-status-negative-strong-pressed"),disabled:_("fill-action-disabled")}},Outlined:{Primary:{base:"transparent",hover:_("fill-action-primary-subtle-hover"),pressed:_("fill-action-primary-subtle-pressed"),disabled:"transparent"},Secondary:{base:"transparent",hover:_("fill-action-secondary-hover"),pressed:_("fill-action-secondary-pressed"),disabled:"transparent"},Tertiary:{base:"transparent",hover:_("fill-action-primary-subtle-hover"),pressed:_("fill-action-primary-subtle-pressed"),disabled:"transparent"},Negative:{base:"transparent",hover:_("fill-action-status-negative-subtle-hover"),pressed:_("fill-action-status-negative-subtle-pressed"),disabled:"transparent"}}};Zg.Naked=Zg.Outlined;var Jg={Fill:{Primary:{base:_("foreground-action-primary-on-strong"),hover:_("foreground-action-primary-on-strong"),pressed:_("foreground-action-primary-on-strong"),disabled:_("foreground-action-disabled")},Secondary:{base:_("foreground-action-secondary-rest"),hover:_("foreground-action-secondary-hover"),pressed:_("foreground-action-secondary-pressed"),disabled:_("foreground-action-disabled")},Tertiary:{base:_("foreground-action-primary-on-subtle-rest"),hover:_("foreground-action-primary-on-subtle-hover"),pressed:_("foreground-action-primary-on-subtle-pressed"),disabled:_("foreground-action-disabled")},Negative:{base:_("foreground-action-status-negative-on-strong"),hover:_("foreground-action-status-negative-on-strong"),pressed:_("foreground-action-status-negative-on-strong"),disabled:_("foreground-action-disabled")}},Outlined:{Primary:{base:_("foreground-action-primary-on-subtle-rest"),hover:_("foreground-action-primary-on-subtle-hover"),pressed:_("foreground-action-primary-on-subtle-pressed"),disabled:_("foreground-action-disabled")},Secondary:{base:_("foreground-action-secondary-rest"),hover:_("foreground-action-secondary-hover"),pressed:_("foreground-action-secondary-pressed"),disabled:_("foreground-action-disabled")},Tertiary:{base:_("foreground-action-primary-on-subtle-rest"),hover:_("foreground-action-primary-on-subtle-hover"),pressed:_("foreground-action-primary-on-subtle-pressed"),disabled:_("foreground-action-disabled")},Negative:{base:_("foreground-action-status-negative-on-subtle-rest"),hover:_("foreground-action-status-negative-on-subtle-hover"),pressed:_("foreground-action-status-negative-on-subtle-pressed"),disabled:_("foreground-action-disabled")}}};Jg.Naked=Jg.Outlined;var A4={Primary:{base:_("stroke-action-primary-strong-rest"),hover:_("stroke-action-primary-strong-hover"),pressed:_("stroke-action-primary-strong-pressed"),disabled:_("stroke-action-disabled")},Secondary:{base:_("stroke-action-secondary-rest"),hover:_("stroke-action-secondary-hover"),pressed:_("stroke-action-secondary-pressed"),disabled:_("stroke-action-disabled")},Tertiary:{base:_("stroke-action-primary-strong-rest"),hover:_("stroke-action-primary-strong-hover"),pressed:_("stroke-action-primary-strong-pressed"),disabled:_("stroke-action-disabled")},Negative:{base:_("stroke-action-status-negative-rest"),hover:_("stroke-action-status-negative-hover"),pressed:_("stroke-action-status-negative-pressed"),disabled:_("stroke-action-disabled")}},B4={radius:It("button-cornerradius"),border:It("button-borderwidth-rest"),borderEmphasis:It("button-borderwidth-selected"),gap:It("button-gap-horizontal"),touch:{pad:6,min:48},focusOutline:`${It("focusring-width")} solid ${_("stroke-focusring-base")}`,focusOffset:"0"},Os=(e,t,n)=>({fontFamily:va("family-brand"),fontSize:va(`font-size-${e}`),fontWeight:va("weight-medium"),lineHeight:va(`line-height-${t}`),letterSpacing:va(`letter-spacing-${n}`)}),z4={L:{padH:It("button-padding-large-horizontal"),padV:It("button-padding-large-vertical"),iconWrap:26,iconInner:18,...Os("m","m-single","wide")},M:{padH:It("button-padding-medium-horizontal"),padV:It("button-padding-medium-vertical"),iconWrap:24,iconInner:16,...Os("r","r-single","wide")},S:{padH:It("button-padding-small-horizontal"),padV:It("button-padding-small-vertical"),iconWrap:20,iconInner:14,...Os("s","s-single","spacious")},XS:{padH:It("button-padding-xsmall-horizontal"),padV:It("button-padding-xsmall-vertical"),iconWrap:16,iconInner:12,...Os("xs","xs-single","extraspacious")}};var Bn=S(he(),1),q=e=>`var(--semantic-color-${e})`,Q=e=>`var(--semantic-layout-units-${e})`,X1=e=>`var(--contextual-layout-units-${e})`,ut=e=>`var(--semantic-type-${e})`,qe=e=>`var(--motion-${e})`;var z={panel:q("fill-surface-elevated"),panelBorder:q("stroke-static-neutral-faint"),slotDivider:q("stroke-static-neutral-base"),separator:q("stroke-static-neutral-base"),fillHover:q("fill-static-neutral-subtle"),fillPressed:q("fill-static-neutral-base"),fillSelected:q("fill-action-selection-selected"),fillDangerHover:q("fill-action-status-negative-subtle-hover"),fillDangerPressed:q("fill-action-status-negative-subtle-pressed"),stripe:q("fill-action-primary-strong-pressed"),label:q("foreground-static-neutral-strong"),labelHover:q("foreground-static-neutral-bold"),labelDanger:q("foreground-action-status-negative-on-subtle-rest"),labelDangerHover:q("foreground-action-status-negative-on-subtle-hover"),labelDangerPressed:q("foreground-action-status-negative-on-subtle-pressed"),disabled:q("foreground-action-disabled"),secondary:q("foreground-static-neutral-subtle"),reason:q("foreground-static-neutral-base"),check:q("foreground-action-primary-on-subtle-rest"),countFill:q("fill-static-neutral-base"),countText:q("foreground-static-neutral-bold"),countFillDisabled:q("fill-action-disabled"),swatchEdge:q("stroke-static-neutral-base"),dot:{positive:q("fill-static-positive-strong"),attention:q("fill-static-attention-strong"),negative:q("fill-static-negative-strong"),neutral:q("fill-static-neutral-strong")},statusTitle:q("foreground-static-neutral-bold"),statusBody:q("foreground-static-neutral-base"),focusRing:q("stroke-focusring-base"),trigger:q("foreground-action-secondary-rest"),triggerHover:q("foreground-action-secondary-hover"),buttonFill:q("fill-surface-elevated"),buttonFillHover:q("fill-action-selection-hover"),buttonBorder:q("stroke-action-secondary-rest"),avatarFill:q("fill-action-primary-subtle-rest"),avatarText:q("foreground-action-primary-on-subtle-rest")},T={panelRadius:Q("cornerradius-large"),panelBorder:Q("borderwidth-xthin"),shadow:"var(--elevation-lift)",listPadV:Q("padding-xtight"),listPadH:Q("padding-xxtight"),itemGap:Q("gap-xxxtight"),slotPad:Q("padding-xtight"),footerPad:Q("padding-tight"),footerGap:Q("gap-tight"),itemMinH:Q("accessibility-touch-target-aa-height"),itemPad:Q("padding-tight"),itemContentGap:Q("gap-medium"),leadGroupGap:Q("gap-tight"),textGap:Q("gap-xxxtight"),inlineGap:Q("gap-tight"),badgeGap:Q("gap-xxtight"),reasonGap:Q("gap-xxtight"),trailGap:Q("gap-xxtight"),itemRadius:Q("cornerradius-base"),fullRadius:Q("cornerradius-full"),swatchRadius:Q("cornerradius-small"),headerPadTop:{First:Q("padding-xxtight"),"After Separator":Q("padding-xtight"),Default:Q("padding-base")},headerPadL:Q("padding-tight"),headerPadR:Q("padding-xtight"),headerPadB:Q("padding-xxtight"),separatorMargin:Q("padding-xtight"),stripeW:Q("borderwidth-xthick"),stripeInset:Q("padding-xtight"),countPadH:Q("padding-xtight"),statusPadV:Q("padding-base"),statusPadH:Q("padding-tight"),statusGap:Q("gap-xxtight"),offset:8,width:280,minWidth:220,maxWidth:360,maxHeight:440,searchHeight:360,leadBox:20,glyph:18,dot:8,swatch:16,spinner:16,countMin:24,focusWidth:X1("focusring-width"),triggerTarget:Q("accessibility-touch-target-aa-width"),triggerTargetH:Q("accessibility-touch-target-aa-height"),triggerGlyph:20,avatarBox:28,buttonPadV:Q("padding-xtight"),buttonPadH:Q("padding-tight"),buttonBorder:Q("borderwidth-base")},$e={label:{fontSize:ut("font-size-s"),lineHeight:ut("line-height-s-single"),fontWeight:ut("weight-medium")},support:{fontSize:ut("font-size-xs"),lineHeight:ut("line-height-xs-single"),fontWeight:ut("weight-regular")},header:{fontSize:ut("font-size-xs"),lineHeight:ut("line-height-xs-single"),fontWeight:ut("weight-semibold"),letterSpacing:ut("letter-spacing-wide")}},st=".pw-menu-item",t$=e=>`${st}:not([data-disabled]):is(${e})`,n$="[data-hovered],[data-focused],[data-open],[data-force=Hover],[data-force=Focus]",r$="[data-pressed],[data-force=Pressed]",q1=`
|
|
80
|
+
`;var C4=(0,As.createContext)({size:"Base"});var E4=S(K(),1),Qg=S(he(),1);var yt=e=>`var(--semantic-color-${e})`,_4={neutral:{light:yt("foreground-static-neutral-faint"),subtle:yt("foreground-static-neutral-base"),base:yt("foreground-static-neutral-base"),contrast:yt("foreground-static-neutral-strong"),bold:yt("foreground-static-neutral-bold")},brand:yt("foreground-action-primary-on-subtle-rest"),info:yt("foreground-static-info-on-subtle"),warning:yt("foreground-static-attention-on-subtle"),danger:yt("foreground-static-negative-on-subtle"),negative:yt("foreground-static-negative-on-subtle"),positive:yt("foreground-static-positive-on-subtle"),"accent-amethyst":yt("foreground-static-info-on-subtle"),"accent-jade":yt("foreground-static-accent-jade-on-subtle"),"accent-seabreeze":yt("foreground-static-accent-seabreeze-on-subtle")};var X1=S(K(),1);var Xg=S(he(),1),q1=e=>`var(--semantic-color-${e})`,vt=e=>`var(--semantic-layout-units-${e})`,Yg=e=>`var(--contextual-layout-units-${e})`;var R4={radius:vt("cornerradius-large"),radiusX:vt("cornerradius-full"),border:vt("borderwidth-base"),padTop:vt("padding-xxxxtight"),padBottom:vt("padding-xxxxtight"),padLeft:vt("padding-xxxtight"),padRight:vt("padding-xxtight"),gap:vt("gap-xxxtight")},$r={pill:vt("padding-xxxtight"),text:vt("padding-xxxtight"),fieldGap:vt("gap-xxtight"),rowGap:vt("gap-xtight"),touchW:vt("accessibility-touch-target-aa-width"),touchH:vt("accessibility-touch-target-aa-height"),ring:q1("stroke-focusring-base"),ringWidth:Yg("focusring-width"),ringOffset:Yg("focusring-offset"),fieldMax:80,badgeMax:240,duration:"var(--motion-duration-2)",easing:"var(--motion-easing-standard)"};var M4={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,minWidth:$r.touchW,minHeight:$r.touchH,boxSizing:"border-box",padding:0,margin:0,border:0,background:"transparent",font:"inherit",color:"inherit",textDecoration:"none",outline:"none"};var I4=`background ${$r.duration} ${$r.easing}, color ${$r.duration} ${$r.easing}, box-shadow ${$r.duration} ${$r.easing}`;var qg=S(K(),1),Zg=S(he(),1),br=e=>`var(--semantic-color-${e})`,sn=e=>`var(--semantic-layout-units-${e})`,Xe=e=>`var(--semantic-type-${e})`;var K4={XXXS:{px:16,fontSize:Xe("font-size-xxxs"),lineHeight:Xe("line-height-xxxs-single"),radius:sn("cornerradius-small"),icon:10,badge:6},XXS:{px:20,fontSize:Xe("font-size-xxxs"),lineHeight:Xe("line-height-xxxs-single"),radius:sn("cornerradius-small"),icon:12,badge:7},XS:{px:24,fontSize:Xe("font-size-xxs"),lineHeight:Xe("line-height-xxs-single"),radius:sn("cornerradius-small"),icon:14,badge:8},S:{px:32,fontSize:Xe("font-size-s"),lineHeight:Xe("line-height-s-single"),radius:sn("cornerradius-small"),icon:20,badge:10},M:{px:40,fontSize:Xe("font-size-r"),lineHeight:Xe("line-height-r-single"),radius:sn("cornerradius-base"),icon:24,badge:12},L:{px:56,fontSize:Xe("font-size-l"),lineHeight:Xe("line-height-l-single"),radius:sn("cornerradius-large"),icon:34,badge:16},XL:{px:96,fontSize:Xe("font-size-xxl"),lineHeight:Xe("line-height-xxl-single"),radius:sn("cornerradius-xlarge"),icon:58,badge:28}},O4={fill:br("fill-static-brand-subtle"),foreground:br("foreground-static-brand-on-subtle"),imageFill:br("fill-static-neutral-faint"),stroke:br("stroke-static-neutral-base"),strokeWidth:sn("borderwidth-thin"),circle:sn("cornerradius-full"),badgeRing:br("stroke-static-neutral-mono"),badgeRingW:sn("borderwidth-base"),badge:{Positive:br("fill-static-positive-strong"),Attention:br("fill-static-attention-strong")},groupRing:br("fill-surface-elevated"),groupRingW:sn("borderwidth-thick"),family:Xe("family-brand"),weight:Xe("weight-semibold")};var t$=S(K(),1),mf=S(he(),1),_=e=>`var(--semantic-color-${e})`;var It=e=>`var(--contextual-layout-units-${e})`,wa=e=>`var(--semantic-type-${e})`,Jg={Fill:{Primary:{base:_("fill-action-primary-strong-rest"),hover:_("fill-action-primary-strong-hover"),pressed:_("fill-action-primary-strong-pressed"),disabled:_("fill-action-disabled")},Secondary:{base:_("fill-action-secondary-rest"),hover:_("fill-action-secondary-hover"),pressed:_("fill-action-secondary-pressed"),disabled:_("fill-action-disabled")},Tertiary:{base:_("fill-action-primary-subtle-rest"),hover:_("fill-action-primary-subtle-hover"),pressed:_("fill-action-primary-subtle-pressed"),disabled:_("fill-action-disabled")},Negative:{base:_("fill-action-status-negative-strong-rest"),hover:_("fill-action-status-negative-strong-hover"),pressed:_("fill-action-status-negative-strong-pressed"),disabled:_("fill-action-disabled")}},Outlined:{Primary:{base:"transparent",hover:_("fill-action-primary-subtle-hover"),pressed:_("fill-action-primary-subtle-pressed"),disabled:"transparent"},Secondary:{base:"transparent",hover:_("fill-action-secondary-hover"),pressed:_("fill-action-secondary-pressed"),disabled:"transparent"},Tertiary:{base:"transparent",hover:_("fill-action-primary-subtle-hover"),pressed:_("fill-action-primary-subtle-pressed"),disabled:"transparent"},Negative:{base:"transparent",hover:_("fill-action-status-negative-subtle-hover"),pressed:_("fill-action-status-negative-subtle-pressed"),disabled:"transparent"}}};Jg.Naked=Jg.Outlined;var e$={Fill:{Primary:{base:_("foreground-action-primary-on-strong"),hover:_("foreground-action-primary-on-strong"),pressed:_("foreground-action-primary-on-strong"),disabled:_("foreground-action-disabled")},Secondary:{base:_("foreground-action-secondary-rest"),hover:_("foreground-action-secondary-hover"),pressed:_("foreground-action-secondary-pressed"),disabled:_("foreground-action-disabled")},Tertiary:{base:_("foreground-action-primary-on-subtle-rest"),hover:_("foreground-action-primary-on-subtle-hover"),pressed:_("foreground-action-primary-on-subtle-pressed"),disabled:_("foreground-action-disabled")},Negative:{base:_("foreground-action-status-negative-on-strong"),hover:_("foreground-action-status-negative-on-strong"),pressed:_("foreground-action-status-negative-on-strong"),disabled:_("foreground-action-disabled")}},Outlined:{Primary:{base:_("foreground-action-primary-on-subtle-rest"),hover:_("foreground-action-primary-on-subtle-hover"),pressed:_("foreground-action-primary-on-subtle-pressed"),disabled:_("foreground-action-disabled")},Secondary:{base:_("foreground-action-secondary-rest"),hover:_("foreground-action-secondary-hover"),pressed:_("foreground-action-secondary-pressed"),disabled:_("foreground-action-disabled")},Tertiary:{base:_("foreground-action-primary-on-subtle-rest"),hover:_("foreground-action-primary-on-subtle-hover"),pressed:_("foreground-action-primary-on-subtle-pressed"),disabled:_("foreground-action-disabled")},Negative:{base:_("foreground-action-status-negative-on-subtle-rest"),hover:_("foreground-action-status-negative-on-subtle-hover"),pressed:_("foreground-action-status-negative-on-subtle-pressed"),disabled:_("foreground-action-disabled")}}};e$.Naked=e$.Outlined;var B4={Primary:{base:_("stroke-action-primary-strong-rest"),hover:_("stroke-action-primary-strong-hover"),pressed:_("stroke-action-primary-strong-pressed"),disabled:_("stroke-action-disabled")},Secondary:{base:_("stroke-action-secondary-rest"),hover:_("stroke-action-secondary-hover"),pressed:_("stroke-action-secondary-pressed"),disabled:_("stroke-action-disabled")},Tertiary:{base:_("stroke-action-primary-strong-rest"),hover:_("stroke-action-primary-strong-hover"),pressed:_("stroke-action-primary-strong-pressed"),disabled:_("stroke-action-disabled")},Negative:{base:_("stroke-action-status-negative-rest"),hover:_("stroke-action-status-negative-hover"),pressed:_("stroke-action-status-negative-pressed"),disabled:_("stroke-action-disabled")}},H4={radius:It("button-cornerradius"),border:It("button-borderwidth-rest"),borderEmphasis:It("button-borderwidth-selected"),gap:It("button-gap-horizontal"),touch:{pad:6,min:48},focusOutline:`${It("focusring-width")} solid ${_("stroke-focusring-base")}`,focusOffset:"0"},zs=(e,t,n)=>({fontFamily:wa("family-brand"),fontSize:wa(`font-size-${e}`),fontWeight:wa("weight-medium"),lineHeight:wa(`line-height-${t}`),letterSpacing:wa(`letter-spacing-${n}`)}),V4={L:{padH:It("button-padding-large-horizontal"),padV:It("button-padding-large-vertical"),iconWrap:26,iconInner:18,...zs("m","m-single","wide")},M:{padH:It("button-padding-medium-horizontal"),padV:It("button-padding-medium-vertical"),iconWrap:24,iconInner:16,...zs("r","r-single","wide")},S:{padH:It("button-padding-small-horizontal"),padV:It("button-padding-small-vertical"),iconWrap:20,iconInner:14,...zs("s","s-single","spacious")},XS:{padH:It("button-padding-xsmall-horizontal"),padV:It("button-padding-xsmall-vertical"),iconWrap:16,iconInner:12,...zs("xs","xs-single","extraspacious")}};var zn=S(he(),1),q=e=>`var(--semantic-color-${e})`,Q=e=>`var(--semantic-layout-units-${e})`,Z1=e=>`var(--contextual-layout-units-${e})`,ut=e=>`var(--semantic-type-${e})`,qe=e=>`var(--motion-${e})`;var B={panel:q("fill-surface-elevated"),panelBorder:q("stroke-static-neutral-faint"),slotDivider:q("stroke-static-neutral-base"),separator:q("stroke-static-neutral-base"),fillHover:q("fill-static-neutral-subtle"),fillPressed:q("fill-static-neutral-base"),fillSelected:q("fill-action-selection-selected"),fillDangerHover:q("fill-action-status-negative-subtle-hover"),fillDangerPressed:q("fill-action-status-negative-subtle-pressed"),stripe:q("fill-action-primary-strong-pressed"),label:q("foreground-static-neutral-strong"),labelHover:q("foreground-static-neutral-bold"),labelDanger:q("foreground-action-status-negative-on-subtle-rest"),labelDangerHover:q("foreground-action-status-negative-on-subtle-hover"),labelDangerPressed:q("foreground-action-status-negative-on-subtle-pressed"),disabled:q("foreground-action-disabled"),secondary:q("foreground-static-neutral-subtle"),reason:q("foreground-static-neutral-base"),check:q("foreground-action-primary-on-subtle-rest"),countFill:q("fill-static-neutral-base"),countText:q("foreground-static-neutral-bold"),countFillDisabled:q("fill-action-disabled"),swatchEdge:q("stroke-static-neutral-base"),dot:{positive:q("fill-static-positive-strong"),attention:q("fill-static-attention-strong"),negative:q("fill-static-negative-strong"),neutral:q("fill-static-neutral-strong")},statusTitle:q("foreground-static-neutral-bold"),statusBody:q("foreground-static-neutral-base"),focusRing:q("stroke-focusring-base"),trigger:q("foreground-action-secondary-rest"),triggerHover:q("foreground-action-secondary-hover"),buttonFill:q("fill-surface-elevated"),buttonFillHover:q("fill-action-selection-hover"),buttonBorder:q("stroke-action-secondary-rest"),avatarFill:q("fill-action-primary-subtle-rest"),avatarText:q("foreground-action-primary-on-subtle-rest")},T={panelRadius:Q("cornerradius-large"),panelBorder:Q("borderwidth-xthin"),shadow:"var(--elevation-lift)",listPadV:Q("padding-xtight"),listPadH:Q("padding-xxtight"),itemGap:Q("gap-xxxtight"),slotPad:Q("padding-xtight"),footerPad:Q("padding-tight"),footerGap:Q("gap-tight"),itemMinH:Q("accessibility-touch-target-aa-height"),itemPad:Q("padding-tight"),itemContentGap:Q("gap-medium"),leadGroupGap:Q("gap-tight"),textGap:Q("gap-xxxtight"),inlineGap:Q("gap-tight"),badgeGap:Q("gap-xxtight"),reasonGap:Q("gap-xxtight"),trailGap:Q("gap-xxtight"),itemRadius:Q("cornerradius-base"),fullRadius:Q("cornerradius-full"),swatchRadius:Q("cornerradius-small"),headerPadTop:{First:Q("padding-xxtight"),"After Separator":Q("padding-xtight"),Default:Q("padding-base")},headerPadL:Q("padding-tight"),headerPadR:Q("padding-xtight"),headerPadB:Q("padding-xxtight"),separatorMargin:Q("padding-xtight"),stripeW:Q("borderwidth-xthick"),stripeInset:Q("padding-xtight"),countPadH:Q("padding-xtight"),statusPadV:Q("padding-base"),statusPadH:Q("padding-tight"),statusGap:Q("gap-xxtight"),offset:8,width:280,minWidth:220,maxWidth:360,maxHeight:440,searchHeight:360,leadBox:20,glyph:18,dot:8,swatch:16,spinner:16,countMin:24,focusWidth:Z1("focusring-width"),triggerTarget:Q("accessibility-touch-target-aa-width"),triggerTargetH:Q("accessibility-touch-target-aa-height"),triggerGlyph:20,avatarBox:28,buttonPadV:Q("padding-xtight"),buttonPadH:Q("padding-tight"),buttonBorder:Q("borderwidth-base")},$e={label:{fontSize:ut("font-size-s"),lineHeight:ut("line-height-s-single"),fontWeight:ut("weight-medium")},support:{fontSize:ut("font-size-xs"),lineHeight:ut("line-height-xs-single"),fontWeight:ut("weight-regular")},header:{fontSize:ut("font-size-xs"),lineHeight:ut("line-height-xs-single"),fontWeight:ut("weight-semibold"),letterSpacing:ut("letter-spacing-wide")}},st=".pw-menu-item",n$=e=>`${st}:not([data-disabled]):is(${e})`,r$="[data-hovered],[data-focused],[data-open],[data-force=Hover],[data-force=Focus]",o$="[data-pressed],[data-force=Pressed]",J1=`
|
|
81
81
|
.pw-menu-panel{--trigger-width:0px;--visual-viewport-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;outline:none;
|
|
82
82
|
width:clamp(${T.minWidth}px,max(${T.width}px,var(--trigger-width,0px)),${T.maxWidth}px);
|
|
83
83
|
max-width:min(${T.maxWidth}px,calc(100vw - 2 * ${Q("padding-tight")}));
|
|
84
84
|
max-height:min(${T.maxHeight}px,var(--visual-viewport-height,100vh));
|
|
85
|
-
background:${
|
|
85
|
+
background:${B.panel};border:${T.panelBorder} solid ${B.panelBorder};border-radius:${T.panelRadius};box-shadow:${T.shadow};
|
|
86
86
|
font-family:${ut("family-brand")},sans-serif}
|
|
87
87
|
.pw-menu-panel[data-searchable]{height:${T.searchHeight}px}
|
|
88
88
|
.pw-menu-panel[data-entering]{animation:pw-menu-in ${qe("duration-4")} ${qe("easing-decelerate")} both}
|
|
@@ -93,43 +93,43 @@ Error generating stack: `+i.message+`
|
|
|
93
93
|
@keyframes pw-menu-out{from{opacity:1}to{opacity:0}}
|
|
94
94
|
|
|
95
95
|
.pw-menu{display:flex;flex-direction:column;min-height:0;flex:1 1 auto;font-family:${ut("family-brand")},sans-serif}
|
|
96
|
-
.pw-menu--static{box-sizing:border-box;width:${T.width}px;max-width:100%;background:${
|
|
97
|
-
border:${T.panelBorder} solid ${
|
|
96
|
+
.pw-menu--static{box-sizing:border-box;width:${T.width}px;max-width:100%;background:${B.panel};
|
|
97
|
+
border:${T.panelBorder} solid ${B.panelBorder};border-radius:${T.panelRadius};box-shadow:${T.shadow};overflow:hidden}
|
|
98
98
|
.pw-menu--bare{width:100%}
|
|
99
|
-
.pw-menu__header{flex:none;padding:${T.slotPad};border-bottom:${T.panelBorder} solid ${
|
|
99
|
+
.pw-menu__header{flex:none;padding:${T.slotPad};border-bottom:${T.panelBorder} solid ${B.slotDivider}}
|
|
100
100
|
.pw-menu__footer{flex:none;display:flex;justify-content:flex-end;gap:${T.footerGap};
|
|
101
|
-
padding:${T.slotPad} ${T.footerPad} ${T.footerPad};border-top:${T.panelBorder} solid ${
|
|
101
|
+
padding:${T.slotPad} ${T.footerPad} ${T.footerPad};border-top:${T.panelBorder} solid ${B.slotDivider}}
|
|
102
102
|
.pw-menu__scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}
|
|
103
103
|
.pw-menu__list{display:flex;flex-direction:column;gap:${T.itemGap};padding:${T.listPadV} ${T.listPadH};outline:none}
|
|
104
104
|
.pw-menu--bare .pw-menu__list{padding:0}
|
|
105
|
-
.pw-menu__list[data-empty]:focus-visible{outline:${T.focusWidth} solid ${
|
|
105
|
+
.pw-menu__list[data-empty]:focus-visible{outline:${T.focusWidth} solid ${B.focusRing};outline-offset:calc(-1 * ${T.focusWidth});border-radius:${T.panelRadius}}
|
|
106
106
|
|
|
107
107
|
${st}{position:relative;display:flex;align-items:flex-start;gap:${T.itemContentGap};box-sizing:border-box;
|
|
108
108
|
min-height:${T.itemMinH};padding:${T.itemPad};border-radius:${T.itemRadius};
|
|
109
|
-
color:${
|
|
109
|
+
color:${B.label};font-size:${$e.label.fontSize};line-height:${$e.label.lineHeight};font-weight:${$e.label.fontWeight};letter-spacing:normal;
|
|
110
110
|
cursor:pointer;outline:none;text-decoration:none;-webkit-tap-highlight-color:transparent;
|
|
111
111
|
transition:background-color ${qe("duration-2")} ${qe("easing-standard")},color ${qe("duration-2")} ${qe("easing-standard")}}
|
|
112
|
-
${
|
|
113
|
-
${
|
|
114
|
-
${st}:not([data-disabled]):is([data-selected],[data-current]){background:${
|
|
115
|
-
${st}:is([data-focus-visible],[data-force=Focus]){outline:${T.focusWidth} solid ${
|
|
112
|
+
${n$(r$)}{background:${B.fillHover};color:${B.labelHover}}
|
|
113
|
+
${n$(o$)}{background:${B.fillPressed};color:${B.label}}
|
|
114
|
+
${st}:not([data-disabled]):is([data-selected],[data-current]){background:${B.fillSelected};color:${B.label}}
|
|
115
|
+
${st}:is([data-focus-visible],[data-force=Focus]){outline:${T.focusWidth} solid ${B.focusRing};outline-offset:calc(-1 * ${T.focusWidth})}
|
|
116
116
|
${st}[role=option][data-focused][data-hovered]:not([data-focus-visible]){outline:none}
|
|
117
|
-
${st}[data-tone=Destructive]{color:${
|
|
118
|
-
${st}[data-tone=Destructive]:not([data-disabled]):is(${
|
|
119
|
-
${st}[data-tone=Destructive]:not([data-disabled]):is(${
|
|
120
|
-
${st}[data-disabled]{color:${
|
|
117
|
+
${st}[data-tone=Destructive]{color:${B.labelDanger}}
|
|
118
|
+
${st}[data-tone=Destructive]:not([data-disabled]):is(${r$}){background:${B.fillDangerHover};color:${B.labelDangerHover}}
|
|
119
|
+
${st}[data-tone=Destructive]:not([data-disabled]):is(${o$}){background:${B.fillDangerPressed};color:${B.labelDangerPressed}}
|
|
120
|
+
${st}[data-disabled]{color:${B.disabled};background:transparent;cursor:default}
|
|
121
121
|
|
|
122
122
|
.pw-menu-item__lead-group{flex:none;display:inline-flex;align-items:center;gap:${T.leadGroupGap};min-height:${$e.label.lineHeight}}
|
|
123
123
|
.pw-menu-item__lead{flex:none;width:${T.leadBox}px;height:${T.leadBox}px;display:inline-flex;align-items:center;justify-content:center}
|
|
124
124
|
.pw-menu-item__lead .material-symbols-rounded,.pw-menu-item__trail .material-symbols-rounded{font-size:${T.glyph}px}
|
|
125
|
-
.pw-menu-item__check{color:${
|
|
126
|
-
${st}[data-disabled] .pw-menu-item__check{color:${
|
|
125
|
+
.pw-menu-item__check{color:${B.check}}
|
|
126
|
+
${st}[data-disabled] .pw-menu-item__check{color:${B.disabled}}
|
|
127
127
|
.pw-menu-item__lead--hidden{visibility:hidden}
|
|
128
128
|
.pw-menu-item__control{overflow:hidden}
|
|
129
129
|
.pw-menu-item__control > *{flex:none;pointer-events:none}
|
|
130
130
|
.pw-menu-item__lead--avatar{width:auto;height:auto}
|
|
131
131
|
.pw-menu-item__dot{width:${T.dot}px;height:${T.dot}px;border-radius:${T.fullRadius}}
|
|
132
|
-
.pw-menu-item__swatch{box-sizing:border-box;width:${T.swatch}px;height:${T.swatch}px;border-radius:${T.swatchRadius};border:${T.panelBorder} solid ${
|
|
132
|
+
.pw-menu-item__swatch{box-sizing:border-box;width:${T.swatch}px;height:${T.swatch}px;border-radius:${T.swatchRadius};border:${T.panelBorder} solid ${B.swatchEdge}}
|
|
133
133
|
|
|
134
134
|
.pw-menu-item__text{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:${T.textGap}}
|
|
135
135
|
.pw-menu-item__text[data-inline]{flex-direction:row;align-items:baseline;gap:${T.inlineGap}}
|
|
@@ -137,58 +137,58 @@ ${st}[data-disabled] .pw-menu-item__check{color:${z.disabled}}
|
|
|
137
137
|
.pw-menu-item__label{display:block;flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
138
138
|
.pw-menu-item__label-row > :not(.pw-menu-item__label){flex:none}
|
|
139
139
|
.pw-menu-item__desc{font-size:${$e.support.fontSize};line-height:${$e.support.lineHeight};font-weight:${$e.support.fontWeight};
|
|
140
|
-
color:${
|
|
140
|
+
color:${B.secondary};overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
|
|
141
141
|
.pw-menu-item__text[data-inline] .pw-menu-item__desc{flex:0 1 auto;display:block;white-space:nowrap;text-overflow:ellipsis}
|
|
142
|
-
.pw-menu-item__reason{display:flex;align-items:center;gap:${T.reasonGap};color:${
|
|
142
|
+
.pw-menu-item__reason{display:flex;align-items:center;gap:${T.reasonGap};color:${B.reason};
|
|
143
143
|
font-size:${$e.support.fontSize};line-height:${$e.support.lineHeight};font-weight:${$e.support.fontWeight}}
|
|
144
144
|
.pw-menu-item__reason .material-symbols-rounded{font-size:${T.spinner}px}
|
|
145
|
-
${st}[data-disabled] .pw-menu-item__desc{color:${
|
|
145
|
+
${st}[data-disabled] .pw-menu-item__desc{color:${B.disabled}}
|
|
146
146
|
|
|
147
147
|
.pw-menu-item__trail{flex:none;display:inline-flex;align-items:center;gap:${T.trailGap};margin-left:auto;min-height:${$e.label.lineHeight};
|
|
148
|
-
color:${
|
|
148
|
+
color:${B.secondary};font-size:${$e.support.fontSize};line-height:${$e.support.lineHeight};font-weight:${$e.support.fontWeight};font-variant-numeric:tabular-nums}
|
|
149
149
|
.pw-menu-item__kbd{font-family:inherit;font-size:inherit}
|
|
150
150
|
.pw-menu-item__count{box-sizing:border-box;min-width:${T.countMin}px;text-align:center;padding:0 ${T.countPadH};border-radius:${T.fullRadius};
|
|
151
|
-
background:${
|
|
152
|
-
${st}[data-selected] .pw-menu-item__count{background:${
|
|
153
|
-
${st}[data-disabled] .pw-menu-item__trail{color:${
|
|
154
|
-
${st}[data-disabled] .pw-menu-item__count{background:${
|
|
151
|
+
background:${B.countFill};color:${B.countText}}
|
|
152
|
+
${st}[data-selected] .pw-menu-item__count{background:${B.panel}}
|
|
153
|
+
${st}[data-disabled] .pw-menu-item__trail{color:${B.disabled}}
|
|
154
|
+
${st}[data-disabled] .pw-menu-item__count{background:${B.countFillDisabled};color:${B.disabled}}
|
|
155
155
|
|
|
156
156
|
.pw-menu-item__stripe{position:absolute;left:0;top:${T.stripeInset};bottom:${T.stripeInset};width:${T.stripeW};
|
|
157
157
|
border-radius:0 ${T.itemRadius} ${T.itemRadius} 0;background:transparent}
|
|
158
|
-
${st}:is([data-selected],[data-current]) .pw-menu-item__stripe{background:${
|
|
158
|
+
${st}:is([data-selected],[data-current]) .pw-menu-item__stripe{background:${B.stripe}}
|
|
159
159
|
|
|
160
160
|
.pw-menu-section{display:flex;flex-direction:column;gap:${T.itemGap}}
|
|
161
|
-
.pw-menu-section__header{padding:${T.headerPadTop.Default} ${T.headerPadR} ${T.headerPadB} ${T.headerPadL};color:${
|
|
161
|
+
.pw-menu-section__header{padding:${T.headerPadTop.Default} ${T.headerPadR} ${T.headerPadB} ${T.headerPadL};color:${B.secondary};
|
|
162
162
|
font-size:${$e.header.fontSize};line-height:${$e.header.lineHeight};font-weight:${$e.header.fontWeight};letter-spacing:${$e.header.letterSpacing}}
|
|
163
163
|
.pw-menu__list > .pw-menu-section:first-child > .pw-menu-section__header,.pw-menu-section__header[data-position=First]{padding-top:${T.headerPadTop.First}}
|
|
164
164
|
.pw-menu-separator + .pw-menu-section > .pw-menu-section__header,.pw-menu-section__header[data-position="After Separator"]{padding-top:${T.headerPadTop["After Separator"]}}
|
|
165
|
-
.pw-menu-separator{height:0;border:0;border-top:${T.panelBorder} solid ${
|
|
165
|
+
.pw-menu-separator{height:0;border:0;border-top:${T.panelBorder} solid ${B.separator};margin:${T.separatorMargin}}
|
|
166
166
|
|
|
167
167
|
.pw-menu-status{display:flex;flex-direction:column;align-items:flex-start;gap:${T.statusGap};padding:${T.statusPadV} ${T.statusPadH};
|
|
168
|
-
color:${
|
|
168
|
+
color:${B.statusBody};font-size:${$e.label.fontSize};line-height:${$e.label.lineHeight};font-weight:${ut("weight-regular")}}
|
|
169
169
|
.pw-menu-status__row{display:flex;align-items:center;gap:${T.leadGroupGap}}
|
|
170
|
-
.pw-menu-status__title{color:${
|
|
170
|
+
.pw-menu-status__title{color:${B.statusTitle};font-weight:${$e.label.fontWeight}}
|
|
171
171
|
.pw-menu-status__body{font-size:${$e.support.fontSize};line-height:${$e.support.lineHeight}}
|
|
172
172
|
|
|
173
173
|
.pw-menu-trigger{position:relative;display:inline-flex}
|
|
174
174
|
.pw-menu-trigger__icon,.pw-menu-trigger__button,.pw-menu-trigger__avatar{font-family:inherit;cursor:pointer;outline:none;-webkit-tap-highlight-color:transparent;
|
|
175
175
|
transition:color ${qe("duration-2")} ${qe("easing-standard")},background-color ${qe("duration-2")} ${qe("easing-standard")}}
|
|
176
|
-
.pw-menu-trigger__icon{display:inline-flex;align-items:center;justify-content:center;flex:none;padding:0;border:0;background:transparent;color:${
|
|
177
|
-
.pw-menu-trigger__icon:is(:hover,[aria-expanded=true]){color:${
|
|
176
|
+
.pw-menu-trigger__icon{display:inline-flex;align-items:center;justify-content:center;flex:none;padding:0;border:0;background:transparent;color:${B.trigger}}
|
|
177
|
+
.pw-menu-trigger__icon:is(:hover,[aria-expanded=true]){color:${B.triggerHover}}
|
|
178
178
|
.pw-menu-trigger__button{display:inline-flex;align-items:center;gap:${T.badgeGap};white-space:nowrap;box-sizing:border-box;min-height:${T.triggerTargetH};padding:${T.buttonPadV} ${T.buttonPadH};
|
|
179
|
-
background:${
|
|
179
|
+
background:${B.buttonFill};border:${T.buttonBorder} solid ${B.buttonBorder};border-radius:${T.itemRadius};color:${B.trigger};
|
|
180
180
|
font-size:${$e.label.fontSize};line-height:${$e.label.lineHeight}}
|
|
181
|
-
.pw-menu-trigger__button:hover{background:${
|
|
181
|
+
.pw-menu-trigger__button:hover{background:${B.buttonFillHover}}
|
|
182
182
|
.pw-menu-trigger__avatar{display:inline-flex;align-items:center;justify-content:center;flex:none;width:${T.avatarBox}px;height:${T.avatarBox}px;
|
|
183
|
-
border:0;border-radius:${T.itemRadius};background:${
|
|
184
|
-
.pw-menu-trigger :is(.pw-menu-trigger__icon,.pw-menu-trigger__button,.pw-menu-trigger__avatar):focus-visible{outline:${T.focusWidth} solid ${
|
|
183
|
+
border:0;border-radius:${T.itemRadius};background:${B.avatarFill};color:${B.avatarText};font-size:${ut("font-size-xxs")};font-weight:${ut("weight-semibold")}}
|
|
184
|
+
.pw-menu-trigger :is(.pw-menu-trigger__icon,.pw-menu-trigger__button,.pw-menu-trigger__avatar):focus-visible{outline:${T.focusWidth} solid ${B.focusRing}}
|
|
185
185
|
|
|
186
186
|
@media (prefers-reduced-motion: reduce){
|
|
187
187
|
.pw-menu-panel[data-entering],.pw-menu-panel[data-placement=top][data-entering]{animation:pw-menu-fade ${qe("duration-2")} ${qe("easing-standard")} both}
|
|
188
188
|
.pw-menu-panel[data-exiting]{animation:pw-menu-out ${qe("duration-2")} ${qe("easing-standard")} both}
|
|
189
189
|
@keyframes pw-menu-fade{from{opacity:0}to{opacity:1}}
|
|
190
190
|
}
|
|
191
|
-
`,mf=!1;function Z1(){(0,zn.useEffect)(()=>{if(mf||typeof document>"u"||document.getElementById("pw-popover-menu-css")){mf=!0;return}let e=document.createElement("style");e.id="pw-popover-menu-css",e.textContent=q1,document.head.appendChild(e),mf=!0},[])}var J1=(0,zn.createContext)("actions"),o$=(0,zn.createContext)(null);function i$({mode:e="actions",label:t,header:n,footer:r,emptyState:o,maxHeight:i,framed:a=!1,bare:l=!1,className:s="",children:u,...c}){Z1();let d=e==="options"?ef:df,m={...c,escapeKeyBehavior:c.escapeKeyBehavior??"none"};return(0,Bn.jsx)(J1.Provider,{value:e,children:(0,Bn.jsxs)("div",{className:`pw-menu${a?" pw-menu--static":""}${l?" pw-menu--bare":""}${s?` ${s}`:""}`,children:[n&&(0,Bn.jsx)("div",{className:"pw-menu__header",children:n}),(0,Bn.jsx)("div",{className:"pw-menu__scroll",style:i?{maxHeight:i}:void 0,children:(0,Bn.jsx)(d,{"aria-label":t,className:"pw-menu__list",renderEmptyState:o?()=>o:void 0,...m,children:u})}),r&&(0,Bn.jsx)("div",{className:"pw-menu__footer",children:r})]})})}var Pe=S(he(),1),xa=e=>`var(--semantic-color-${e})`,ct=e=>`var(--semantic-layout-units-${e})`,wa=e=>`var(--semantic-type-${e})`,wn=e=>`var(--motion-${e})`,Uo={surface:xa("fill-surface-elevated"),overlay:xa("scrim-subtle"),handle:xa("fill-static-neutral-strong"),title:xa("foreground-static-neutral-strong"),footerBorder:xa("stroke-static-neutral-faint"),shadow:"var(--elevation-sheet)"},ue={radius:ct("cornerradius-xlarge"),sheetGap:ct("gap-tight"),maxWidth:640,topClearance:56,handleZone:20,pillWidth:32,pillHeight:4,pillRadius:ct("cornerradius-full"),headerMinH:ct("accessibility-touch-target-aa-height"),headerPadTop:ct("padding-xtight"),headerPadX:ct("padding-xxxxtight"),headerPadBottom:ct("padding-xxxtight"),headerGap:ct("gap-xxtight"),titleInset:ct("padding-base"),bodyPad:ct("padding-xtight"),bodyGap:ct("gap-xxtight"),footerBorder:ct("borderwidth-base"),footerPadTop:ct("padding-tight"),footerPad:ct("padding-base"),footerGap:ct("gap-tight"),dismissDistance:80,flickSpeed:.5},ex={title:{fontFamily:wa("family-brand"),fontSize:wa("font-size-s"),fontWeight:wa("weight-semibold"),lineHeight:wa("line-height-s-tight"),letterSpacing:wa("letter-spacing-wide")}},Xr={enter:`pw-bottom-sheet-up ${wn("duration-5")} ${wn("easing-emphasized")} both`,exit:`pw-bottom-sheet-down ${wn("duration-4")} ${wn("easing-accelerate")} both`,fadeIn:`pw-bottom-sheet-fade-in ${wn("duration-4")} ${wn("easing-standard")} both`,fadeOut:`pw-bottom-sheet-fade-out ${wn("duration-4")} ${wn("easing-standard")} both`,settle:`transform ${wn("duration-4")} ${wn("easing-decelerate")}`},tx="@keyframes pw-bottom-sheet-up{from{transform:translateY(100%)}to{transform:none}}@keyframes pw-bottom-sheet-down{from{transform:none}to{transform:translateY(100%)}}@keyframes pw-bottom-sheet-fade-in{from{opacity:0}to{opacity:1}}@keyframes pw-bottom-sheet-fade-out{from{opacity:1}to{opacity:0}}.pw-bottom-sheet__body{scrollbar-width:thin}";function nx(){(0,ye.useLayoutEffect)(()=>{if(typeof document>"u"||document.getElementById("pw-bottom-sheet-css"))return;let e=document.createElement("style");e.id="pw-bottom-sheet-css",e.textContent=tx,document.head.appendChild(e)},[])}var a$='button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',rx=':is([role="menuitem"], [role="menuitemradio"], [role="menuitemcheckbox"]):not([aria-disabled="true"])';function ox(){return(0,Pe.jsx)("div",{"aria-hidden":"true","data-part":"handle",style:{height:ue.handleZone,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:(0,Pe.jsx)("div",{style:{width:ue.pillWidth,height:ue.pillHeight,borderRadius:ue.pillRadius,background:Uo.handle}})})}function ix({title:e,titleId:t,titleRef:n,showBack:r=!1,onBack:o,onClose:i,backLabel:a="Back",closeLabel:l="Close"}){return(0,Pe.jsxs)("div",{"data-part":"header",style:{display:"flex",alignItems:"center",gap:ue.headerGap,minHeight:ue.headerMinH,boxSizing:"border-box",padding:`${ue.headerPadTop} ${ue.headerPadX} ${ue.headerPadBottom}`},children:[r&&(0,Pe.jsx)(es,{name:"arrow_back",size:"Base",label:a,onClick:o}),(0,Pe.jsx)("div",{style:{flex:1,minWidth:0,paddingLeft:ue.titleInset},children:(0,Pe.jsx)("h2",{id:t,ref:n,tabIndex:-1,style:{margin:0,outline:"none",color:Uo.title,...ex.title,overflowWrap:"anywhere",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:e})}),(0,Pe.jsx)(es,{name:"close",size:"Base",label:l,onClick:i})]})}function ax({children:e}){return(0,Pe.jsx)("div",{"data-part":"footer",style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:ue.footerGap,flexShrink:0,borderTop:`${ue.footerBorder} solid ${Uo.footerBorder}`,padding:`${ue.footerPadTop} ${ue.footerPad} calc(${ue.footerPad} + env(safe-area-inset-bottom, 0px))`},children:e})}function lx({onClick:e,animation:t,opacity:n}){return(0,Pe.jsx)("div",{"data-part":"overlay","aria-hidden":"true",onClick:e,style:{position:"absolute",inset:0,background:Uo.overlay,animation:t,opacity:n}})}function s$({open:e,onOpenChange:t,title:n,children:r,menu:o=!1,menuProps:i,showHandle:a=!0,footer:l,showBack:s=!1,onBack:u,initialFocus:c="auto",returnFocusRef:d,closeLabel:m="Close",backLabel:g="Back",container:y,contained:b=!1,className:R="",style:p}){nx();let f=Dr(),h=`pwbs${(0,ye.useId)().replace(/[^a-zA-Z0-9]/g,"")}`,[$,C]=(0,ye.useState)(!!e),[E,P]=(0,ye.useState)(!1),[N,M]=(0,ye.useState)(0),[F,j]=(0,ye.useState)(!1),O=(0,ye.useRef)(null),I=(0,ye.useRef)(null),B=(0,ye.useRef)(null),V=(0,ye.useRef)(null),se=(0,ye.useRef)(null),Me=(0,ye.useRef)(null),ft=()=>t?.(!1);(0,ye.useEffect)(()=>{e?(typeof document<"u"&&(se.current=document.activeElement),P(!1),M(0),C(!0)):$&&P(!0)},[e]);let Hn=Y=>{Y.target!==O.current||!E||(C(!1),P(!1),M(0),un.current=!0)},un=(0,ye.useRef)(!1);(0,ye.useEffect)(()=>{if(!$||!V.current||b)return;let Y=V.current,v=document.body.style.overflow;document.body.style.overflow="hidden";let Ce=[...Y.parentNode?.children||[]].filter(oe=>oe!==Y&&!oe.inert&&oe.tagName!=="SCRIPT"&&oe.tagName!=="STYLE");return Ce.forEach(oe=>{oe.inert=!0}),()=>{document.body.style.overflow=v,Ce.forEach(oe=>{oe.inert=!1})}},[$]),(0,ye.useEffect)(()=>{if($||!un.current)return;un.current=!1;let Y=d?.current||se.current;Y&&Y.isConnected&&typeof Y.focus=="function"&&Y.focus()},[$]),(0,ye.useEffect)(()=>{if(!$||E||!O.current||b)return;let Y=I.current?[...I.current.querySelectorAll(rx)]:[],v=B.current;c==="first"?v=Y[0]||O.current.querySelector(a$)||v:c==="auto"&&o&&Y.length&&(v=Y.find(k=>k.getAttribute("aria-checked")==="true")||Y[0]),v?.focus({preventScroll:!0})},[$,E]);let Ze=(0,ye.useRef)(!0);(0,ye.useEffect)(()=>{if(Ze.current){Ze.current=!1;return}$&&!b&&B.current?.focus({preventScroll:!0})},[s]);let pt=Y=>{if(Y.key==="Escape"){Y.stopPropagation(),Y.nativeEvent?.stopImmediatePropagation?.(),ft();return}if(Y.key==="Tab"&&O.current){let v=[...O.current.querySelectorAll(a$)].filter(oe=>oe.offsetParent!==null||oe===document.activeElement);if(!v.length){Y.preventDefault();return}let k=v[0],Ce=v[v.length-1];Y.shiftKey&&(document.activeElement===k||document.activeElement===B.current)?(Y.preventDefault(),Ce.focus()):!Y.shiftKey&&document.activeElement===Ce&&(Y.preventDefault(),k.focus());return}},cn=Y=>{Y.button!==void 0&&Y.button!==0||I.current?.contains(Y.target)&&I.current.scrollTop>0||(Me.current={y:Y.clientY,t:performance.now(),id:Y.pointerId,active:!1})},Dt=Y=>{let v=Me.current;if(!v||v.id!==Y.pointerId)return;let k=Y.clientY-v.y;if(!v.active){if(k<-4){Me.current=null;return}if(k<8)return;v.active=!0,j(!0),O.current?.setPointerCapture?.(Y.pointerId)}M(Math.max(0,k))},jt=Y=>{let v=Me.current;if(Me.current=null,!v||!v.active)return;j(!1);let k=Math.max(0,Y.clientY-v.y),Ce=k/Math.max(1,performance.now()-v.t);k>ue.dismissDistance||Ce>ue.flickSpeed?ft():M(0)};if(!$||typeof document>"u")return null;let Ft=f?E?Xr.fadeOut:Xr.fadeIn:E?Xr.exit:Xr.enter,xt=N>0&&!E,Cn=xt&&O.current?Math.max(0,1-N/O.current.offsetHeight):void 0,jo=(0,Pe.jsxs)("div",{ref:V,className:`pw-bottom-sheet ${R}`,"data-open":!E||void 0,style:{position:b?"absolute":"fixed",inset:0,zIndex:b?1:1e3,display:"flex",flexDirection:"column",justifyContent:"flex-end",alignItems:"center",...p},children:[(0,Pe.jsx)(lx,{onClick:ft,animation:E?Xr.fadeOut:Xr.fadeIn,opacity:Cn}),(0,Pe.jsxs)("div",{ref:O,role:"dialog","aria-modal":"true","aria-labelledby":h,onKeyDown:pt,onAnimationEnd:Hn,onPointerDown:cn,onPointerMove:Dt,onPointerUp:jt,onPointerCancel:jt,style:{position:"relative",width:"100%",maxWidth:ue.maxWidth,boxSizing:"border-box",maxHeight:b?`calc(100% - ${ue.topClearance}px)`:`calc(100dvh - ${ue.topClearance}px)`,display:"flex",flexDirection:"column",gap:ue.sheetGap,background:Uo.surface,boxShadow:Uo.shadow,borderRadius:`${ue.radius} ${ue.radius} 0 0`,animation:xt?"none":Ft,transform:xt?`translateY(${N}px)`:void 0,transition:F||f?"none":Xr.settle,touchAction:"pan-y"},children:[(0,Pe.jsxs)("div",{"data-part":"top",style:{display:"flex",flexDirection:"column",flexShrink:0},children:[a&&(0,Pe.jsx)(ox,{}),(0,Pe.jsx)(ix,{title:n,titleId:h,titleRef:B,showBack:s,onBack:u,onClose:ft,closeLabel:m,backLabel:g})]}),(0,Pe.jsx)("div",{ref:I,className:"pw-bottom-sheet__body","data-part":"body",style:{display:"flex",flexDirection:"column",gap:ue.bodyGap,minHeight:0,flex:"0 1 auto",overflowY:"auto",overflowX:"hidden",overscrollBehavior:"contain",padding:l?`0 ${ue.bodyPad} ${ue.bodyPad}`:`0 ${ue.bodyPad} calc(${ue.bodyPad} + env(safe-area-inset-bottom, 0px))`},children:(0,Pe.jsx)(o$.Provider,{value:ft,children:o?(0,Pe.jsx)(i$,{bare:!0,label:n,...i,children:r}):r})}),l&&(0,Pe.jsx)(ax,{children:l})]})]});return b?jo:(0,l$.createPortal)(jo,y||document.body)}var w=S(he(),1),hf=e=>e?{inert:"","aria-hidden":!0}:{};ql();var re=e=>`var(--semantic-color-${e})`,gf=e=>`var(${e})`,dt=e=>`var(--semantic-layout-units-${e})`,qr=e=>`var(--contextual-layout-units-${e})`,u$=e=>typeof e=="number"?-e:`calc(-1 * ${e})`,W={fill:{navBase:"transparent",navHover:re("fill-action-selection-hover"),navActive:re("fill-action-selection-selected"),navTrail:re("fill-action-selection-trail"),infoSubtle:re("stroke-static-neutral-faint")},surface:{navLight:re("fill-surface-elevated"),navElevated:re("fill-surface-elevated")},text:{navBase:re("foreground-action-secondary-rest"),navHover:re("foreground-action-secondary-hover"),navActive:re("foreground-action-secondary-pressed"),navDisabled:re("foreground-action-disabled"),secondary:re("foreground-static-neutral-subtle"),secondarySubtle:re("foreground-static-neutral-subtle"),strong:re("foreground-static-neutral-strong")},icon:{navBase:re("foreground-action-secondary-rest"),navHover:re("foreground-action-secondary-hover"),navActive:re("foreground-action-secondary-pressed"),navDisabled:re("foreground-action-disabled"),actionSecondary:re("foreground-action-secondary-rest")},indicator:re("fill-action-selection-indicator"),radius:qr("navitem-cornerradius")},L={navPadH:qr("sidenav-padding-horizontal-expanded"),navColPadH:qr("sidenav-padding-horizontal-collapsed"),navPadTop:qr("sidenav-padding-vertical"),navW:qr("sidenav-width-expanded"),navWcol:qr("sidenav-width-collapsed"),menuGap:qr("sidenav-gap-vertical"),menuPadT:dt("padding-tight"),menuPadB:dt("padding-xxwide"),itemH:dt("accessibility-touch-target-aa-height"),iconWrap:24,iconInner:16,rowPadH:dt("padding-tight"),railIconInset:dt("padding-xxtight"),textPad:dt("padding-xtight"),childIndent:24,stripeW:4,stripeOuterPadV:dt("padding-xxxtight"),stripeInnerPadV:dt("padding-xxtight"),stripeRadius:dt("cornerradius-base"),itemPadH:dt("padding-xxtight"),chevPad:"var(--semantic-layout-units-padding-xxxxtight, 2px)",chevBox:20,chevFrame:16,chevGlyph:12,childRowPadL:dt("padding-tight"),childMainPadL:dt("padding-relaxed"),colPadL:dt("padding-medium"),colPadR:dt("padding-tight"),collapseGap:dt("padding-xxtight")};function f$({visible:e,inset:t}){return(0,w.jsx)("div",{style:{width:L.stripeW,alignSelf:"stretch",display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",padding:t?`${t} 0`:`calc(${L.stripeOuterPadV} + ${L.stripeInnerPadV}) 0`,boxSizing:"border-box",flexShrink:0},children:(0,w.jsx)("div",{style:{flex:"1 0 0",width:L.stripeW,minHeight:1,borderRadius:`0 ${L.stripeRadius} ${L.stripeRadius} 0`,backgroundColor:e?W.indicator:"transparent",transition:"background-color var(--motion-duration-3) var(--motion-easing-standard)"}})})}function c$({item:e,isActive:t,isTrail:n,isExpanded:r,isSidebarCollapsed:o,isChild:i,onClick:a,onToggle:l,popoverOpen:s,anchorRect:u,onPopoverEnter:c,onPopoverLeave:d,activeId:m,chevronUp:g,chevronDown:y,collapseIcon:b,expandIcon:R}){let[p,f]=(0,ve.useState)(!1),h=!!(e.children&&e.children.length),$=(0,ve.useRef)(null),C=h&&r&&!o,E=n&&(!r||o),N=E||t&&!(o&&h),M=!!e.disabled,F=M?W.fill.navBase:t||E?W.fill.navActive:C?W.fill.navTrail:p?W.fill.navHover:W.fill.navBase,j=M?W.text.navDisabled:t||E||C?W.text.navActive:p?W.text.navHover:W.text.navBase,O=M?W.icon.navDisabled:t||E||C?W.icon.navActive:p?W.icon.navHover:W.icon.navBase,I=()=>{M||(h&&!o?l(e.id):a(e.id))};return(0,w.jsxs)("div",{ref:$,style:{position:"relative"},children:[(0,w.jsxs)("div",{className:Xl,role:"button",tabIndex:M?-1:0,"aria-current":t?"page":void 0,"aria-disabled":M?!0:void 0,"aria-expanded":h&&!o?r:void 0,onClick:I,onKeyDown:B=>!M&&(B.key==="Enter"||B.key===" ")&&I(),onMouseEnter:()=>{if(!M&&(f(!0),o&&c)){let B=$.current?$.current.getBoundingClientRect():null;c(e.id,B)}},onMouseLeave:()=>{M||(f(!1),o&&d&&d())},style:{display:"flex",alignItems:"center",minHeight:L.itemH,width:o?L.itemH:"100%",marginLeft:o?"auto":void 0,marginRight:o?"auto":void 0,paddingRight:o?L.railIconInset:void 0,boxSizing:"border-box",borderRadius:W.radius,backgroundColor:F,cursor:M?"not-allowed":"pointer",overflow:"hidden",transition:"background-color var(--motion-duration-3) var(--motion-easing-standard)",userSelect:"none"},children:[(0,w.jsx)(f$,{visible:N}),!i&&e.icon&&(0,w.jsx)("div",{style:{width:L.iconWrap,height:L.iconWrap,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,marginLeft:o?"auto":L.itemPadH,marginRight:o?"auto":void 0,color:O},children:typeof e.icon=="function"?e.icon({size:L.iconInner,color:O}):typeof e.icon=="string"?(0,w.jsx)("span",{className:"material-symbols-rounded","aria-hidden":"true",style:{fontSize:L.iconInner,lineHeight:1,color:O,display:"block",fontVariationSettings:"'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24"},children:e.icon}):ve.default.cloneElement(e.icon,{style:{color:O}})}),(0,w.jsx)("div",{style:{flex:o?"0 0 0px":1,minWidth:0,paddingLeft:o?0:i?`calc(${L.childRowPadL} + ${L.childMainPadL} + ${L.textPad})`:L.textPad,paddingRight:o?0:i?L.childRowPadL:L.itemPadH,maxWidth:o?0:200,opacity:o?0:1,overflow:"hidden",pointerEvents:o?"none":"auto",transition:"max-width var(--motion-duration-6) var(--motion-easing-emphasized), opacity var(--motion-duration-3) var(--motion-easing-standard)"},children:(0,w.jsx)("p",{style:{fontFamily:"'Red Hat Text',sans-serif",fontWeight:500,fontSize:"var(--semantic-type-font-size-s)",lineHeight:"var(--semantic-type-line-height-s-single)",letterSpacing:"var(--semantic-type-letter-spacing-spacious)",color:j,margin:0,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",transition:"color var(--motion-duration-3) var(--motion-easing-standard)"},children:e.label})}),!i&&h&&!o&&(0,w.jsx)("div",{style:{width:L.chevBox,height:L.iconWrap,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,opacity:o?0:1,overflow:"hidden",transition:"max-width var(--motion-duration-6) var(--motion-easing-emphasized), opacity var(--motion-duration-3) var(--motion-easing-standard)"},children:(0,w.jsx)("div",{style:{transform:r?"rotate(180deg)":"rotate(0deg)",transition:"transform var(--motion-duration-5) var(--motion-easing-accordion)"},children:y?y({size:L.chevGlyph,color:O}):(0,w.jsx)(gx,{size:L.chevGlyph,color:O})})})]}),o&&s&&u&&(0,w.jsx)("div",{style:{position:"fixed",left:u.right,top:u.top,width:8,height:u.height,zIndex:999},onMouseEnter:()=>{let B=$.current?$.current.getBoundingClientRect():u;c&&c(e.id,B)}}),o&&h&&s&&u&&(0,w.jsx)(cx,{item:e,onClick:a,anchorRect:u,activeId:m,onMouseEnter:()=>{let B=$.current?$.current.getBoundingClientRect():u;c&&c(e.id,B)},onMouseLeave:d}),o&&!h&&s&&u&&(0,w.jsx)(sx,{label:e.label,anchorRect:u,onMouseEnter:()=>{let B=$.current?$.current.getBoundingClientRect():u;c&&c(e.id,B)},onMouseLeave:d})]})}function sx({label:e,anchorRect:t,onMouseEnter:n,onMouseLeave:r}){return t?As.default.createPortal((0,w.jsx)("div",{onMouseEnter:n,onMouseLeave:r,style:{position:"fixed",left:t.right+8,top:t.top+t.height/2,zIndex:1e3,backgroundColor:W.surface.navLight,border:`0.5px solid ${re("stroke-static-neutral-faint")}`,borderRadius:"var(--semantic-layout-units-cornerradius-base)",boxShadow:gf("--elevation-widget"),padding:"var(--semantic-layout-units-padding-xxtight) var(--semantic-layout-units-padding-xtight)",whiteSpace:"nowrap",pointerEvents:"auto",animation:"popoverInCentered var(--motion-duration-3) var(--motion-easing-spring) forwards"},children:(0,w.jsx)("span",{style:{fontFamily:"'Red Hat Text',sans-serif",fontWeight:400,fontSize:"var(--semantic-type-font-size-s)",lineHeight:"var(--semantic-type-line-height-s-single)",letterSpacing:"var(--semantic-type-letter-spacing-spacious)",color:W.text.strong},children:e})}),document.body):null}function ux({label:e}){return(0,w.jsx)("div",{style:{display:"flex",alignItems:"center",width:"100%",boxSizing:"border-box",paddingLeft:"var(--semantic-layout-units-padding-tight)",paddingRight:"var(--semantic-layout-units-padding-xtight)",paddingTop:"var(--semantic-layout-units-padding-xxtight)",paddingBottom:"var(--semantic-layout-units-padding-xxtight)"},children:(0,w.jsx)("span",{style:{fontFamily:"'Red Hat Text',sans-serif",fontWeight:600,fontSize:"var(--semantic-type-font-size-xs)",lineHeight:"var(--semantic-type-line-height-xs-single)",letterSpacing:"var(--semantic-type-letter-spacing-extraspacious)",color:W.text.secondary,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e})})}function cx({item:e,onClick:t,anchorRect:n,onMouseEnter:r,onMouseLeave:o,activeId:i}){return n?As.default.createPortal((0,w.jsxs)("div",{onMouseEnter:r,onMouseLeave:o,style:{position:"fixed",left:n.right+8,top:n.top,zIndex:1e3,backgroundColor:W.surface.navElevated,border:`0.5px solid ${re("stroke-static-neutral-faint")}`,borderRadius:"var(--primitive-unit-unit-10)",boxShadow:gf("--elevation-lift"),padding:"var(--semantic-layout-units-padding-xtight) var(--semantic-layout-units-padding-xxtight)",display:"flex",flexDirection:"column",gap:"var(--semantic-layout-units-gap-xxxtight)",boxSizing:"border-box",minWidth:220,maxWidth:360,pointerEvents:"auto",animation:"popoverIn var(--motion-duration-3) var(--motion-easing-spring) forwards"},children:[(0,w.jsx)(ux,{label:e.label}),e.children.map(a=>(0,w.jsx)(Sa,{item:a,onClick:t,activeId:i},a.id))]}),document.body):null}function Sa({item:e,onClick:t,activeId:n}){let[r,o]=(0,ve.useState)(!1),i=e.id===n,a=i?W.fill.navActive:r?W.fill.navHover:"transparent",l=W.text.strong;return(0,w.jsxs)("div",{onClick:()=>t(e.id),className:ah,role:"menuitem",tabIndex:0,"aria-current":i?"page":void 0,onKeyDown:s=>(s.key==="Enter"||s.key===" ")&&(s.preventDefault(),t(e.id)),onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),onFocus:()=>o(!0),onBlur:()=>o(!1),style:{position:"relative",display:"flex",alignItems:"center",minHeight:L.itemH,boxSizing:"border-box",padding:"var(--semantic-layout-units-padding-tight)",borderRadius:"var(--semantic-layout-units-cornerradius-base)",overflow:"hidden",backgroundColor:a,cursor:"pointer",transition:"background-color var(--motion-duration-3) var(--motion-easing-standard)"},children:[(0,w.jsx)("div",{style:{position:"absolute",left:0,top:"var(--semantic-layout-units-padding-xtight)",bottom:"var(--semantic-layout-units-padding-xtight)",width:L.stripeW,borderRadius:`0 ${L.stripeRadius} ${L.stripeRadius} 0`,backgroundColor:i?W.indicator:"transparent",transition:"background-color var(--motion-duration-3) var(--motion-easing-standard)"}}),(0,w.jsx)("span",{style:{fontFamily:"'Red Hat Text',sans-serif",fontWeight:500,fontSize:"var(--semantic-type-font-size-s)",lineHeight:"var(--semantic-type-line-height-s-single)",letterSpacing:"var(--semantic-type-letter-spacing-spacious)",color:l,flex:1},children:e.label})]})}var d$=(e,t)=>!!e&&(typeof t.composedPath=="function"?t.composedPath().includes(e):e.contains(t.target)),Sn={restStroke:re("stroke-action-primary-subtle-rest"),hoverFill:re("fill-action-primary-subtle-hover"),hoverStroke:re("stroke-action-primary-strong-hover"),hoverFg:re("foreground-action-primary-on-subtle-hover"),openFill:re("fill-action-primary-subtle-pressed"),openStroke:re("stroke-action-primary-strong-pressed"),openFg:re("foreground-action-primary-on-subtle-pressed"),restFg:re("foreground-static-neutral-bold"),separator:re("stroke-static-neutral-base")};function dx({label:e,icon:t="apps",home:n,apps:r=[],activeId:o,onSelect:i,collapsed:a=!1,presentation:l="popover",sheetTitle:s}){let u=[n,...r].filter(Boolean).find(I=>I.id===o),c=u&&u.label||e||n&&n.label,[d,m]=(0,ve.useState)(!1),[g,y]=(0,ve.useState)(!1),[b,R]=(0,ve.useState)(!1),[p,f]=(0,ve.useState)(null),h=(0,ve.useRef)(null),$=(0,ve.useRef)(null),C=(0,ve.useRef)(null),E=(0,ve.useRef)(!1),P=()=>{if(b){R(!1);return}f(h.current?h.current.getBoundingClientRect():null),R(!0)};(0,ve.useEffect)(()=>{if(!b||l==="sheet"||!E.current)return;E.current=!1;let I=setTimeout(()=>{let B=C.current?[...C.current.querySelectorAll('[role="menuitem"]')]:[];(B.find(V=>V.getAttribute("aria-current"))||B[0])?.focus()},0);return()=>clearTimeout(I)},[b,l]);let N=I=>{let B=[...I.currentTarget.querySelectorAll('[role="menuitem"]')],V=B.indexOf(document.activeElement),se=null;I.key==="ArrowDown"?se=(V+1)%B.length:I.key==="ArrowUp"?se=(V-1+B.length)%B.length:I.key==="Home"?se=0:I.key==="End"&&(se=B.length-1),!(se===null||!B.length)&&(I.preventDefault(),B[se].focus())},M=I=>{R(!1),i&&i(I),$.current&&$.current.focus()};(0,ve.useEffect)(()=>{if(!b||l==="sheet")return;let I=V=>{d$(h.current,V)||d$(C.current,V)||R(!1)},B=V=>{V.key==="Escape"&&(R(!1),$.current&&$.current.focus())};return document.addEventListener("mousedown",I),document.addEventListener("keydown",B),()=>{document.removeEventListener("mousedown",I),document.removeEventListener("keydown",B)}},[b,l]);let F=b||g,j=F?Sn.openFg:d?Sn.hoverFg:Sn.restFg,O=n||{id:"__home",label:e};return(0,w.jsxs)("div",{ref:h,style:{boxSizing:"border-box",width:"100%",minHeight:L.itemH,flexShrink:0,padding:a?`${L.textPad} 0`:`${L.textPad} ${L.chevPad}`},children:[(0,w.jsxs)("button",{ref:$,className:lh,type:"button",onClick:P,onKeyDown:I=>{(I.key==="Enter"||I.key===" "||I.key==="ArrowDown")&&(E.current=!0),I.key==="ArrowDown"&&!b&&(I.preventDefault(),P())},"aria-haspopup":"menu","aria-expanded":b,"aria-label":a?`Switch application: ${c}`:void 0,onMouseEnter:()=>m(!0),onMouseLeave:()=>{m(!1),y(!1)},onMouseDown:()=>y(!0),onMouseUp:()=>y(!1),onBlur:()=>y(!1),style:{display:"flex",alignItems:"center",width:"100%",height:L.itemH,boxSizing:"border-box",margin:0,cursor:"pointer",fontFamily:"inherit",justifyContent:a?"center":"flex-start",gap:a?0:"var(--semantic-layout-units-gap-xxxtight)",paddingLeft:L.itemPadH,paddingRight:L.itemPadH,borderRadius:"var(--semantic-layout-units-cornerradius-base)",background:F?Sn.openFill:d?Sn.hoverFill:"transparent",border:"none","--pw-ring-keep-shadow":"var(--elevation-lift)",boxShadow:`inset 0 0 0 ${F?"var(--contextual-layout-units-button-borderwidth-selected, 1px)":"var(--contextual-layout-units-button-borderwidth-rest, 0.75px)"} ${F?Sn.openStroke:d?Sn.hoverStroke:Sn.restStroke}, var(--elevation-lift)`,transition:"background-color var(--motion-duration-3) var(--motion-easing-standard), box-shadow var(--motion-duration-3) var(--motion-easing-standard)"},children:[(0,w.jsx)("span",{style:{width:36,height:36,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:(0,w.jsx)("span",{className:"material-symbols-rounded","aria-hidden":"true",style:{fontSize:L.iconInner,lineHeight:1,display:"block",color:j,fontVariationSettings:"'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24",transition:"color var(--motion-duration-3) var(--motion-easing-standard)"},children:t})}),!a&&(0,w.jsx)("span",{style:{flex:1,minWidth:0,textAlign:"left",fontWeight:500,fontSize:"var(--semantic-type-font-size-s)",lineHeight:"var(--semantic-type-line-height-s-single)",letterSpacing:"var(--semantic-type-letter-spacing-spacious)",color:j,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",transition:"color var(--motion-duration-3) var(--motion-easing-standard)"},children:c})]}),l==="sheet"&&(0,w.jsxs)(s$,{open:b,title:s||c,menu:!0,returnFocusRef:$,onOpenChange:I=>{I||R(!1)},children:[(0,w.jsx)(Sa,{item:O,onClick:M,activeId:o}),r.length>0&&(0,w.jsx)("div",{role:"separator",style:{padding:"var(--semantic-layout-units-padding-xtight)"},children:(0,w.jsx)("div",{style:{borderTop:`0.5px solid ${Sn.separator}`}})}),r.map(I=>(0,w.jsx)(Sa,{item:I,onClick:M,activeId:o},I.id))]}),b&&l!=="sheet"&&p&&As.default.createPortal((0,w.jsxs)("div",{ref:C,role:"menu","aria-label":c,onKeyDown:N,style:{position:"fixed",left:`calc(${p.right}px + var(--semantic-layout-units-gap-xxxtight))`,top:p.top,zIndex:1e3,boxSizing:"border-box",minWidth:220,maxWidth:360,maxHeight:`calc(100vh - ${Math.round(p.top)}px - var(--semantic-layout-units-padding-base))`,overflowY:"auto",background:W.surface.navElevated,border:`var(--semantic-layout-units-borderwidth-xthin, 0.5px) solid ${re("stroke-static-neutral-faint")}`,borderRadius:"var(--semantic-layout-units-cornerradius-large)",boxShadow:gf("--elevation-lift"),padding:"var(--semantic-layout-units-padding-xtight) var(--semantic-layout-units-padding-xxtight)",display:"flex",flexDirection:"column",gap:"var(--semantic-layout-units-gap-xxxtight)",animation:"popoverIn var(--motion-duration-3) var(--motion-easing-spring) forwards"},children:[(0,w.jsx)(Sa,{item:O,onClick:M,activeId:o}),r.length>0&&(0,w.jsx)("div",{role:"separator",style:{padding:"var(--semantic-layout-units-padding-xtight)"},children:(0,w.jsx)("div",{style:{borderTop:`0.5px solid ${Sn.separator}`}})}),r.map(I=>(0,w.jsx)(Sa,{item:I,onClick:M,activeId:o},I.id))]}),document.body)]})}function fx({isSidebarCollapsed:e,onToggle:t,collapseIcon:n,expandIcon:r,headerStart:o=null,hideToggle:i=!1}){let[a,l]=(0,ve.useState)(!1),s=W.icon.actionSecondary,u=!e&&o;return(0,w.jsxs)("div",{style:{width:"100%",flexShrink:0},children:[(0,w.jsxs)("div",{style:{display:"flex",alignItems:"center",height:L.itemH,width:"100%",justifyContent:u?"space-between":e?"center":"flex-end",gap:"var(--semantic-layout-units-gap-xxtight)"},children:[u&&(0,w.jsx)("div",{style:{display:"flex",alignItems:"center",minWidth:0,flex:1},children:o}),!i&&(0,w.jsx)("div",{onClick:t,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),"aria-label":e?"Expand navigation":"Collapse navigation",className:Xl,role:"button",tabIndex:0,onKeyDown:c=>(c.key==="Enter"||c.key===" ")&&t(),style:{display:"flex",alignItems:"center",height:L.itemH,flexShrink:0,cursor:"pointer"},children:(0,w.jsx)("div",{style:{width:L.itemH,height:L.itemH,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:(0,w.jsx)("div",{style:{width:28,height:28,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"var(--primitive-unit-unit-10)",backgroundColor:a?W.fill.navHover:"transparent",transition:"background-color var(--motion-duration-3) var(--motion-easing-standard)"},children:e?r?r({size:12,color:s}):(0,w.jsx)(bx,{color:s}):n?n({size:12,color:s}):(0,w.jsx)($x,{color:s})})})})]}),(0,w.jsx)("div",{style:{padding:"var(--semantic-layout-units-padding-xxxtight) 0"},children:(0,w.jsx)("div",{style:{height:1,backgroundColor:W.fill.infoSubtle}})})]})}function p$({label:e}){return(0,w.jsx)("div",{style:{display:"flex",alignItems:"center",height:40,width:"100%",boxSizing:"border-box",paddingLeft:"var(--semantic-layout-units-padding-xxtight)",paddingRight:"var(--semantic-layout-units-padding-xxtight)",paddingTop:"var(--semantic-layout-units-padding-tight)",paddingBottom:"var(--semantic-layout-units-padding-tight)",flexShrink:0},children:(0,w.jsx)("span",{style:{fontFamily:"'Red Hat Text',sans-serif",fontWeight:600,fontSize:"var(--semantic-type-font-size-xxs)",lineHeight:"var(--semantic-type-line-height-xxs-single)",letterSpacing:"var(--semantic-type-letter-spacing-extraspacious)",textTransform:"uppercase",color:W.text.secondarySubtle,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e})})}function px({color:e}){return(0,w.jsx)("svg",{width:L.iconInner,height:L.iconInner,viewBox:"0 0 16 16","aria-hidden":"true",style:{display:"block",flexShrink:0},children:(0,w.jsx)("circle",{cx:"8",cy:"8",r:"6.6667",fill:e})})}function mx({item:e,isActive:t,onClick:n}){let[r,o]=(0,ve.useState)(!1),i=t?W.fill.navActive:r?W.fill.navHover:"transparent",a=t?W.text.navActive:r?W.text.navHover:W.text.navBase,l=t?W.icon.navActive:r?W.icon.navHover:W.icon.navBase;return(0,w.jsxs)("div",{onClick:()=>n&&n(e.id),onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),className:Xl,role:"button",tabIndex:0,onKeyDown:s=>(s.key==="Enter"||s.key===" ")&&n&&n(e.id),style:{display:"flex",alignItems:"center",height:48,minHeight:L.itemH,width:"100%",borderRadius:W.radius,backgroundColor:i,cursor:"pointer",overflow:"hidden",transition:"background-color var(--motion-duration-3) var(--motion-easing-standard)",userSelect:"none"},children:[(0,w.jsx)(f$,{visible:t,inset:L.stripeInnerPadV}),(0,w.jsx)("div",{style:{width:L.iconWrap,height:L.iconWrap,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,marginLeft:L.rowPadH},children:(0,w.jsx)(px,{color:l})}),(0,w.jsx)("div",{style:{flex:1,minWidth:0,paddingLeft:L.textPad,paddingRight:`calc(${L.textPad} + ${L.rowPadH})`},children:(0,w.jsx)("p",{style:{fontFamily:"'Red Hat Text',sans-serif",fontWeight:400,fontSize:"var(--semantic-type-font-size-xs)",lineHeight:"var(--semantic-type-line-height-xs-single)",letterSpacing:"var(--semantic-type-letter-spacing-extraspacious)",color:a,margin:0,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",transition:"color var(--motion-duration-3) var(--motion-easing-standard)"},children:e.label})})]})}function hx({label:e,items:t,activeId:n,onNavigate:r}){return(0,w.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"var(--semantic-layout-units-gap-xtight)",width:"100%",flexShrink:0},children:[(0,w.jsx)(p$,{label:e}),(0,w.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:t.map(o=>(0,w.jsx)(mx,{item:o,isActive:o.id===n,onClick:r},o.id))})]})}function m$({items:e,sections:t,listSection:n,activeId:r,onNavigate:o,collapsed:i=!1,onCollapseChange:a,hideCollapseButton:l=!1,defaultExpanded:s={},className:u="",headerEnd:c=null,children:d=null,footer:m=null,appSwitcher:g=null,headerStart:y=null}){let[b,R]=(0,ve.useState)(s),[p,f]=(0,ve.useState)(null),[h,$]=(0,ve.useState)(null),C=(0,ve.useRef)(null),E=t?t.flatMap(O=>O.items):e||[],P=(()=>{let O=E.find(I=>I.children&&I.children.some(B=>B.id===r));return O?O.id:null})(),N=O=>R(I=>{if(!I[O])return{[O]:!0};let V={...I};return delete V[O],V}),M=(O,I)=>{clearTimeout(C.current),f(O),I&&$(I)},F=()=>{C.current=setTimeout(()=>{f(null),$(null)},300)},j=O=>{let I=!!(O.children&&O.children.length),B=O.id===r,V=O.id===P,se=!!b[O.id];return(0,w.jsxs)("div",{children:[(0,w.jsx)(c$,{item:O,isActive:B,isTrail:V,isExpanded:se,isSidebarCollapsed:i,isChild:!1,onClick:o,onToggle:N,popoverOpen:p===O.id,anchorRect:p===O.id?h:null,onPopoverEnter:M,onPopoverLeave:F,activeId:r}),I&&!i&&(0,w.jsx)("div",{...hf(!se),style:{display:"grid",gridTemplateRows:se?"1fr":"0fr",marginTop:se?L.menuGap:0,transition:"grid-template-rows var(--motion-duration-5) var(--motion-easing-accordion), margin-top var(--motion-duration-5) var(--motion-easing-accordion)"},children:(0,w.jsx)("div",{style:{overflow:"hidden",display:"flex",flexDirection:"column",gap:L.menuGap,opacity:se?1:0,transition:se?"opacity var(--motion-duration-4) var(--motion-easing-standard) 70ms":"opacity var(--motion-duration-3) var(--motion-easing-standard)"},children:O.children.map(Me=>(0,w.jsx)(c$,{item:Me,isActive:Me.id===r,isTrail:!1,isExpanded:!1,isSidebarCollapsed:!1,isChild:!0,onClick:o,onToggle:()=>{}},Me.id))})})]},O.id)};return(0,w.jsxs)("nav",{className:u,style:{width:i?L.navWcol:L.navW,height:"100%",backgroundColor:W.surface.navLight,display:"flex",flexDirection:"column",paddingTop:L.navPadTop,paddingBottom:0,paddingLeft:i?L.navColPadH:L.navPadH,paddingRight:i?L.navColPadH:L.navPadH,boxSizing:"border-box",flexShrink:0,transition:"width var(--motion-duration-6) var(--motion-easing-emphasized)",borderRight:`1px solid ${W.fill.infoSubtle}`,overflow:"hidden"},children:[(!l||c||y)&&(0,w.jsxs)("div",{style:{flexShrink:0},children:[(!l||y)&&(0,w.jsx)(fx,{isSidebarCollapsed:i,headerStart:y,hideToggle:l,onToggle:()=>a&&a(!i)}),c&&(0,w.jsx)("div",{...hf(i),style:{opacity:i?0:1,maxHeight:i?0:200,overflow:"hidden",pointerEvents:i?"none":"auto",padding:i?0:`0 ${L.navPadH}`,transition:"opacity var(--motion-duration-4) var(--motion-easing-standard), max-height var(--motion-duration-5) var(--motion-easing-spring)"},children:c})]}),(0,w.jsxs)(nh,{style:{flex:1,minHeight:0,marginRight:u$(i?L.navColPadH:L.navPadH),marginLeft:u$("var(--contextual-layout-units-focusring-width)")},viewStyle:{display:"flex",flexDirection:"column",gap:L.menuGap,paddingTop:L.menuPadT,paddingRight:i?L.navColPadH:L.navPadH,paddingLeft:"var(--contextual-layout-units-focusring-width)"},children:[g&&(0,w.jsx)(dx,{...g,collapsed:i}),t&&t.map(({section:O,items:I},B)=>(0,w.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:L.menuGap,flexShrink:0},children:[(0,w.jsx)("div",{style:{opacity:i?0:1,maxHeight:i?0:40,overflow:"hidden",transition:"opacity var(--motion-duration-4) var(--motion-easing-standard), max-height var(--motion-duration-5) var(--motion-easing-spring)",flexShrink:0},children:(0,w.jsx)(p$,{label:O})}),B>0&&(0,w.jsx)("div",{style:{opacity:i?1:0,maxHeight:i?5:0,overflow:"hidden",transition:"opacity var(--motion-duration-4) var(--motion-easing-standard), max-height var(--motion-duration-5) var(--motion-easing-spring)",padding:"2px 0",flexShrink:0},children:(0,w.jsx)("div",{style:{height:1,backgroundColor:W.fill.infoSubtle}})}),I.map(j)]},O)),!t&&(e||[]).map(j),n&&(0,w.jsx)("div",{...hf(i),style:{opacity:i?0:1,maxHeight:i?0:400,overflow:"hidden",transition:"opacity var(--motion-duration-4) var(--motion-easing-standard), max-height var(--motion-duration-5) var(--motion-easing-spring)"},children:(0,w.jsx)(hx,{label:n.label,items:n.items,activeId:r,onNavigate:o})}),d&&(0,w.jsx)("div",{style:{flexShrink:0},children:d}),(0,w.jsx)("div",{style:{flex:1,minHeight:L.menuPadB}})]}),m&&(0,w.jsx)("div",{style:{flexShrink:0,borderTop:`0.5px solid ${W.fill.infoSubtle}`,padding:i?`8px ${L.navColPadH}`:`8px ${L.navPadH}`,transition:"padding var(--motion-duration-6) var(--motion-easing-emphasized)"},children:m})]})}function gx({size:e=12,color:t}){return(0,w.jsx)("svg",{width:e,height:e,viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",children:(0,w.jsx)("path",{d:"M6 7.475C5.93333 7.475 5.87083 7.46458 5.8125 7.44375C5.75417 7.42292 5.7 7.3875 5.65 7.3375L3.35 5.0375C3.25833 4.94583 3.2125 4.82917 3.2125 4.6875C3.2125 4.54583 3.25833 4.42917 3.35 4.3375C3.44167 4.24583 3.55833 4.2 3.7 4.2C3.84167 4.2 3.95833 4.24583 4.05 4.3375L6 6.2875L7.95 4.3375C8.04167 4.24583 8.15833 4.2 8.3 4.2C8.44167 4.2 8.55833 4.24583 8.65 4.3375C8.74167 4.42917 8.7875 4.54583 8.7875 4.6875C8.7875 4.82917 8.74167 4.94583 8.65 5.0375L6.35 7.3375C6.3 7.3875 6.24583 7.42292 6.1875 7.44375C6.12917 7.46458 6.06667 7.475 6 7.475Z",fill:t})})}function $x({size:e=12,color:t=W.icon.actionSecondary}){return(0,w.jsx)("svg",{width:e,height:e,viewBox:"0 0 12 12",fill:"none",children:(0,w.jsx)("path",{d:"M5.66667 7.86667V4.13333C5.66667 3.97778 5.6 3.87222 5.46667 3.81667C5.33333 3.76111 5.21111 3.78889 5.1 3.9L3.46667 5.53333C3.33333 5.66667 3.26667 5.82222 3.26667 6C3.26667 6.17778 3.33333 6.33333 3.46667 6.46667L5.1 8.1C5.21111 8.21111 5.33333 8.23889 5.46667 8.18333C5.6 8.12778 5.66667 8.02222 5.66667 7.86667ZM1.33333 12C0.966667 12 0.652778 11.8694 0.391667 11.6083C0.130556 11.3472 0 11.0333 0 10.6667V1.33333C0 0.966667 0.130556 0.652778 0.391667 0.391667C0.652778 0.130556 0.966667 0 1.33333 0H10.6667C11.0333 0 11.3472 0.130556 11.6083 0.391667C11.8694 0.652778 12 0.966667 12 1.33333V10.6667C12 11.0333 11.8694 11.3472 11.6083 11.6083C11.3472 11.8694 11.0333 12 10.6667 12H1.33333ZM8.66667 10.6667H10.6667V1.33333H8.66667V10.6667ZM7.33333 10.6667V1.33333H1.33333V10.6667H7.33333Z",fill:t})})}function bx({size:e=12,color:t=W.icon.actionSecondary}){return(0,w.jsx)("svg",{width:e,height:e,viewBox:"0 0 12 12",fill:"none",children:(0,w.jsx)("path",{d:"M6.33333 4.13333V7.86667C6.33333 8.02222 6.4 8.12778 6.53333 8.18333C6.66667 8.23889 6.78889 8.21111 6.9 8.1L8.53333 6.46667C8.66667 6.33333 8.73333 6.17778 8.73333 6C8.73333 5.82222 8.66667 5.66667 8.53333 5.53333L6.9 3.9C6.78889 3.78889 6.66667 3.76111 6.53333 3.81667C6.4 3.87222 6.33333 3.97778 6.33333 4.13333ZM1.33333 12C0.966667 12 0.652778 11.8694 0.391667 11.6083C0.130556 11.3472 0 11.0333 0 10.6667V1.33333C0 0.966667 0.130556 0.652778 0.391667 0.391667C0.652778 0.130556 0.966667 0 1.33333 0H10.6667C11.0333 0 11.3472 0.130556 11.6083 0.391667C11.8694 0.652778 12 0.966667 12 1.33333V10.6667C12 11.0333 11.8694 11.3472 11.6083 11.6083C11.3472 11.8694 11.0333 12 10.6667 12H1.33333ZM3.33333 10.6667V1.33333H1.33333V10.6667H3.33333ZM4.66667 10.6667H10.6667V1.33333H4.66667V10.6667Z",fill:t})})}var yx={collapsed:"collapsed","hide-collapse-button":"hideCollapseButton"},vx=`
|
|
191
|
+
`,hf=!1;function ex(){(0,Bn.useEffect)(()=>{if(hf||typeof document>"u"||document.getElementById("pw-popover-menu-css")){hf=!0;return}let e=document.createElement("style");e.id="pw-popover-menu-css",e.textContent=J1,document.head.appendChild(e),hf=!0},[])}var tx=(0,Bn.createContext)("actions"),i$=(0,Bn.createContext)(null);function a$({mode:e="actions",label:t,header:n,footer:r,emptyState:o,maxHeight:i,framed:a=!1,bare:l=!1,className:s="",children:u,...c}){ex();let d=e==="options"?tf:ff,p={...c,escapeKeyBehavior:c.escapeKeyBehavior??"none"};return(0,zn.jsx)(tx.Provider,{value:e,children:(0,zn.jsxs)("div",{className:`pw-menu${a?" pw-menu--static":""}${l?" pw-menu--bare":""}${s?` ${s}`:""}`,children:[n&&(0,zn.jsx)("div",{className:"pw-menu__header",children:n}),(0,zn.jsx)("div",{className:"pw-menu__scroll",style:i?{maxHeight:i}:void 0,children:(0,zn.jsx)(d,{"aria-label":t,className:"pw-menu__list",renderEmptyState:o?()=>o:void 0,...p,children:u})}),r&&(0,zn.jsx)("div",{className:"pw-menu__footer",children:r})]})})}var Pe=S(he(),1),Sa=e=>`var(--semantic-color-${e})`,ct=e=>`var(--semantic-layout-units-${e})`,Ca=e=>`var(--semantic-type-${e})`,wn=e=>`var(--motion-${e})`,Qo={surface:Sa("fill-surface-elevated"),overlay:Sa("scrim-subtle"),handle:Sa("fill-static-neutral-strong"),title:Sa("foreground-static-neutral-strong"),footerBorder:Sa("stroke-static-neutral-faint"),shadow:"var(--elevation-sheet)"},ue={radius:ct("cornerradius-xlarge"),sheetGap:ct("gap-tight"),maxWidth:640,topClearance:56,handleZone:20,pillWidth:32,pillHeight:4,pillRadius:ct("cornerradius-full"),headerMinH:ct("accessibility-touch-target-aa-height"),headerPadTop:ct("padding-xtight"),headerPadX:ct("padding-xxxxtight"),headerPadBottom:ct("padding-xxxtight"),headerGap:ct("gap-xxtight"),titleInset:ct("padding-base"),bodyPad:ct("padding-xtight"),bodyGap:ct("gap-xxtight"),footerBorder:ct("borderwidth-base"),footerPadTop:ct("padding-tight"),footerPad:ct("padding-base"),footerGap:ct("gap-tight"),dismissDistance:80,flickSpeed:.5},nx={title:{fontFamily:Ca("family-brand"),fontSize:Ca("font-size-s"),fontWeight:Ca("weight-semibold"),lineHeight:Ca("line-height-s-tight"),letterSpacing:Ca("letter-spacing-wide")}},qr={enter:`pw-bottom-sheet-up ${wn("duration-5")} ${wn("easing-emphasized")} both`,exit:`pw-bottom-sheet-down ${wn("duration-4")} ${wn("easing-accelerate")} both`,fadeIn:`pw-bottom-sheet-fade-in ${wn("duration-4")} ${wn("easing-standard")} both`,fadeOut:`pw-bottom-sheet-fade-out ${wn("duration-4")} ${wn("easing-standard")} both`,settle:`transform ${wn("duration-4")} ${wn("easing-decelerate")}`},rx="@keyframes pw-bottom-sheet-up{from{transform:translateY(100%)}to{transform:none}}@keyframes pw-bottom-sheet-down{from{transform:none}to{transform:translateY(100%)}}@keyframes pw-bottom-sheet-fade-in{from{opacity:0}to{opacity:1}}@keyframes pw-bottom-sheet-fade-out{from{opacity:1}to{opacity:0}}.pw-bottom-sheet__body{scrollbar-width:thin}";function ox(){(0,ye.useLayoutEffect)(()=>{if(typeof document>"u"||document.getElementById("pw-bottom-sheet-css"))return;let e=document.createElement("style");e.id="pw-bottom-sheet-css",e.textContent=rx,document.head.appendChild(e)},[])}var l$='button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',ix=':is([role="menuitem"], [role="menuitemradio"], [role="menuitemcheckbox"]):not([aria-disabled="true"])';function ax(){return(0,Pe.jsx)("div",{"aria-hidden":"true","data-part":"handle",style:{height:ue.handleZone,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:(0,Pe.jsx)("div",{style:{width:ue.pillWidth,height:ue.pillHeight,borderRadius:ue.pillRadius,background:Qo.handle}})})}function lx({title:e,titleId:t,titleRef:n,showBack:r=!1,onBack:o,onClose:i,backLabel:a="Back",closeLabel:l="Close"}){return(0,Pe.jsxs)("div",{"data-part":"header",style:{display:"flex",alignItems:"center",gap:ue.headerGap,minHeight:ue.headerMinH,boxSizing:"border-box",padding:`${ue.headerPadTop} ${ue.headerPadX} ${ue.headerPadBottom}`},children:[r&&(0,Pe.jsx)(ns,{name:"arrow_back",size:"Medium",label:a,onClick:o}),(0,Pe.jsx)("div",{style:{flex:1,minWidth:0,paddingLeft:ue.titleInset},children:(0,Pe.jsx)("h2",{id:t,ref:n,tabIndex:-1,style:{margin:0,outline:"none",color:Qo.title,...nx.title,overflowWrap:"anywhere",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:e})}),(0,Pe.jsx)(ns,{name:"close",size:"Medium",label:l,onClick:i})]})}function sx({children:e}){return(0,Pe.jsx)("div",{"data-part":"footer",style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:ue.footerGap,flexShrink:0,borderTop:`${ue.footerBorder} solid ${Qo.footerBorder}`,padding:`${ue.footerPadTop} ${ue.footerPad} calc(${ue.footerPad} + env(safe-area-inset-bottom, 0px))`},children:e})}function ux({onClick:e,animation:t,opacity:n}){return(0,Pe.jsx)("div",{"data-part":"overlay","aria-hidden":"true",onClick:e,style:{position:"absolute",inset:0,background:Qo.overlay,animation:t,opacity:n}})}function u$({open:e,onOpenChange:t,title:n,children:r,menu:o=!1,menuProps:i,showHandle:a=!0,footer:l,showBack:s=!1,onBack:u,initialFocus:c="auto",returnFocusRef:d,closeLabel:p="Close",backLabel:g="Back",container:y,contained:b=!1,className:D="",style:m}){ox();let f=Dr(),h=`pwbs${(0,ye.useId)().replace(/[^a-zA-Z0-9]/g,"")}`,[$,C]=(0,ye.useState)(!!e),[E,P]=(0,ye.useState)(!1),[N,R]=(0,ye.useState)(0),[F,j]=(0,ye.useState)(!1),O=(0,ye.useRef)(null),M=(0,ye.useRef)(null),z=(0,ye.useRef)(null),V=(0,ye.useRef)(null),se=(0,ye.useRef)(null),Me=(0,ye.useRef)(null),ft=()=>t?.(!1);(0,ye.useEffect)(()=>{e?(typeof document<"u"&&(se.current=document.activeElement),P(!1),R(0),C(!0)):$&&P(!0)},[e]);let Hn=Y=>{Y.target!==O.current||!E||(C(!1),P(!1),R(0),un.current=!0)},un=(0,ye.useRef)(!1);(0,ye.useEffect)(()=>{if(!$||!V.current||b)return;let Y=V.current,v=document.body.style.overflow;document.body.style.overflow="hidden";let Ce=[...Y.parentNode?.children||[]].filter(oe=>oe!==Y&&!oe.inert&&oe.tagName!=="SCRIPT"&&oe.tagName!=="STYLE");return Ce.forEach(oe=>{oe.inert=!0}),()=>{document.body.style.overflow=v,Ce.forEach(oe=>{oe.inert=!1})}},[$]),(0,ye.useEffect)(()=>{if($||!un.current)return;un.current=!1;let Y=d?.current||se.current;Y&&Y.isConnected&&typeof Y.focus=="function"&&Y.focus()},[$]),(0,ye.useEffect)(()=>{if(!$||E||!O.current||b)return;let Y=M.current?[...M.current.querySelectorAll(ix)]:[],v=z.current;c==="first"?v=Y[0]||O.current.querySelector(l$)||v:c==="auto"&&o&&Y.length&&(v=Y.find(k=>k.getAttribute("aria-checked")==="true")||Y[0]),v?.focus({preventScroll:!0})},[$,E]);let Ze=(0,ye.useRef)(!0);(0,ye.useEffect)(()=>{if(Ze.current){Ze.current=!1;return}$&&!b&&z.current?.focus({preventScroll:!0})},[s]);let pt=Y=>{if(Y.key==="Escape"){Y.stopPropagation(),Y.nativeEvent?.stopImmediatePropagation?.(),ft();return}if(Y.key==="Tab"&&O.current){let v=[...O.current.querySelectorAll(l$)].filter(oe=>oe.offsetParent!==null||oe===document.activeElement);if(!v.length){Y.preventDefault();return}let k=v[0],Ce=v[v.length-1];Y.shiftKey&&(document.activeElement===k||document.activeElement===z.current)?(Y.preventDefault(),Ce.focus()):!Y.shiftKey&&document.activeElement===Ce&&(Y.preventDefault(),k.focus());return}},cn=Y=>{Y.button!==void 0&&Y.button!==0||M.current?.contains(Y.target)&&M.current.scrollTop>0||(Me.current={y:Y.clientY,t:performance.now(),id:Y.pointerId,active:!1})},Dt=Y=>{let v=Me.current;if(!v||v.id!==Y.pointerId)return;let k=Y.clientY-v.y;if(!v.active){if(k<-4){Me.current=null;return}if(k<8)return;v.active=!0,j(!0),O.current?.setPointerCapture?.(Y.pointerId)}R(Math.max(0,k))},jt=Y=>{let v=Me.current;if(Me.current=null,!v||!v.active)return;j(!1);let k=Math.max(0,Y.clientY-v.y),Ce=k/Math.max(1,performance.now()-v.t);k>ue.dismissDistance||Ce>ue.flickSpeed?ft():R(0)};if(!$||typeof document>"u")return null;let Ft=f?E?qr.fadeOut:qr.fadeIn:E?qr.exit:qr.enter,xt=N>0&&!E,Cn=xt&&O.current?Math.max(0,1-N/O.current.offsetHeight):void 0,Yo=(0,Pe.jsxs)("div",{ref:V,className:`pw-bottom-sheet ${D}`,"data-open":!E||void 0,style:{position:b?"absolute":"fixed",inset:0,zIndex:b?1:1e3,display:"flex",flexDirection:"column",justifyContent:"flex-end",alignItems:"center",...m},children:[(0,Pe.jsx)(ux,{onClick:ft,animation:E?qr.fadeOut:qr.fadeIn,opacity:Cn}),(0,Pe.jsxs)("div",{ref:O,role:"dialog","aria-modal":"true","aria-labelledby":h,onKeyDown:pt,onAnimationEnd:Hn,onPointerDown:cn,onPointerMove:Dt,onPointerUp:jt,onPointerCancel:jt,style:{position:"relative",width:"100%",maxWidth:ue.maxWidth,boxSizing:"border-box",maxHeight:b?`calc(100% - ${ue.topClearance}px)`:`calc(100dvh - ${ue.topClearance}px)`,display:"flex",flexDirection:"column",gap:ue.sheetGap,background:Qo.surface,boxShadow:Qo.shadow,borderRadius:`${ue.radius} ${ue.radius} 0 0`,animation:xt?"none":Ft,transform:xt?`translateY(${N}px)`:void 0,transition:F||f?"none":qr.settle,touchAction:"pan-y"},children:[(0,Pe.jsxs)("div",{"data-part":"top",style:{display:"flex",flexDirection:"column",flexShrink:0},children:[a&&(0,Pe.jsx)(ax,{}),(0,Pe.jsx)(lx,{title:n,titleId:h,titleRef:z,showBack:s,onBack:u,onClose:ft,closeLabel:p,backLabel:g})]}),(0,Pe.jsx)("div",{ref:M,className:"pw-bottom-sheet__body","data-part":"body",style:{display:"flex",flexDirection:"column",gap:ue.bodyGap,minHeight:0,flex:"0 1 auto",overflowY:"auto",overflowX:"hidden",overscrollBehavior:"contain",padding:l?`0 ${ue.bodyPad} ${ue.bodyPad}`:`0 ${ue.bodyPad} calc(${ue.bodyPad} + env(safe-area-inset-bottom, 0px))`},children:(0,Pe.jsx)(i$.Provider,{value:ft,children:o?(0,Pe.jsx)(a$,{bare:!0,label:n,...i,children:r}):r})}),l&&(0,Pe.jsx)(sx,{children:l})]})]});return b?Yo:(0,s$.createPortal)(Yo,y||document.body)}var w=S(he(),1),gf=e=>e?{inert:"","aria-hidden":!0}:{};Jl();var re=e=>`var(--semantic-color-${e})`,$f=e=>`var(${e})`,dt=e=>`var(--semantic-layout-units-${e})`,Zr=e=>`var(--contextual-layout-units-${e})`,c$=e=>typeof e=="number"?-e:`calc(-1 * ${e})`,W={fill:{navBase:"transparent",navHover:re("fill-action-selection-hover"),navActive:re("fill-action-selection-selected"),navTrail:re("fill-action-selection-trail"),infoSubtle:re("stroke-static-neutral-faint")},surface:{navLight:re("fill-surface-elevated"),navElevated:re("fill-surface-elevated")},text:{navBase:re("foreground-action-secondary-rest"),navHover:re("foreground-action-secondary-hover"),navActive:re("foreground-action-secondary-pressed"),navDisabled:re("foreground-action-disabled"),secondary:re("foreground-static-neutral-subtle"),secondarySubtle:re("foreground-static-neutral-subtle"),strong:re("foreground-static-neutral-strong")},icon:{navBase:re("foreground-action-secondary-rest"),navHover:re("foreground-action-secondary-hover"),navActive:re("foreground-action-secondary-pressed"),navDisabled:re("foreground-action-disabled"),actionSecondary:re("foreground-action-secondary-rest")},indicator:re("fill-action-selection-indicator"),radius:Zr("navitem-cornerradius")},L={navPadH:Zr("sidenav-padding-horizontal-expanded"),navColPadH:Zr("sidenav-padding-horizontal-collapsed"),navPadTop:Zr("sidenav-padding-vertical"),navW:Zr("sidenav-width-expanded"),navWcol:Zr("sidenav-width-collapsed"),menuGap:Zr("sidenav-gap-vertical"),menuPadT:dt("padding-tight"),menuPadB:dt("padding-xxwide"),itemH:dt("accessibility-touch-target-aa-height"),iconWrap:24,iconInner:16,rowPadH:dt("padding-tight"),railIconInset:dt("padding-xxtight"),textPad:dt("padding-xtight"),childIndent:24,stripeW:4,stripeOuterPadV:dt("padding-xxxtight"),stripeInnerPadV:dt("padding-xxtight"),stripeRadius:dt("cornerradius-base"),itemPadH:dt("padding-xxtight"),chevPad:"var(--semantic-layout-units-padding-xxxxtight, 2px)",chevBox:20,chevFrame:16,chevGlyph:12,childRowPadL:dt("padding-tight"),childMainPadL:dt("padding-relaxed"),colPadL:dt("padding-medium"),colPadR:dt("padding-tight"),collapseGap:dt("padding-xxtight")};function p$({visible:e,inset:t}){return(0,w.jsx)("div",{style:{width:L.stripeW,alignSelf:"stretch",display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",padding:t?`${t} 0`:`calc(${L.stripeOuterPadV} + ${L.stripeInnerPadV}) 0`,boxSizing:"border-box",flexShrink:0},children:(0,w.jsx)("div",{style:{flex:"1 0 0",width:L.stripeW,minHeight:1,borderRadius:`0 ${L.stripeRadius} ${L.stripeRadius} 0`,backgroundColor:e?W.indicator:"transparent",transition:"background-color var(--motion-duration-3) var(--motion-easing-standard)"}})})}function d$({item:e,isActive:t,isTrail:n,isExpanded:r,isSidebarCollapsed:o,isChild:i,onClick:a,onToggle:l,popoverOpen:s,anchorRect:u,onPopoverEnter:c,onPopoverLeave:d,activeId:p,chevronUp:g,chevronDown:y,collapseIcon:b,expandIcon:D}){let[m,f]=(0,ve.useState)(!1),h=!!(e.children&&e.children.length),$=(0,ve.useRef)(null),C=h&&r&&!o,E=n&&(!r||o),N=E||t&&!(o&&h),R=!!e.disabled,F=R?W.fill.navBase:t||E?W.fill.navActive:C?W.fill.navTrail:m?W.fill.navHover:W.fill.navBase,j=R?W.text.navDisabled:t||E||C?W.text.navActive:m?W.text.navHover:W.text.navBase,O=R?W.icon.navDisabled:t||E||C?W.icon.navActive:m?W.icon.navHover:W.icon.navBase,M=()=>{R||(h&&!o?l(e.id):a(e.id))};return(0,w.jsxs)("div",{ref:$,style:{position:"relative"},children:[(0,w.jsxs)("div",{className:Zl,role:"button",tabIndex:R?-1:0,"aria-current":t?"page":void 0,"aria-disabled":R?!0:void 0,"aria-expanded":h&&!o?r:void 0,onClick:M,onKeyDown:z=>!R&&(z.key==="Enter"||z.key===" ")&&M(),onMouseEnter:()=>{if(!R&&(f(!0),o&&c)){let z=$.current?$.current.getBoundingClientRect():null;c(e.id,z)}},onMouseLeave:()=>{R||(f(!1),o&&d&&d())},style:{display:"flex",alignItems:"center",minHeight:L.itemH,width:o?L.itemH:"100%",marginLeft:o?"auto":void 0,marginRight:o?"auto":void 0,paddingRight:o?L.railIconInset:void 0,boxSizing:"border-box",borderRadius:W.radius,backgroundColor:F,cursor:R?"not-allowed":"pointer",overflow:"hidden",transition:"background-color var(--motion-duration-3) var(--motion-easing-standard)",userSelect:"none"},children:[(0,w.jsx)(p$,{visible:N}),!i&&e.icon&&(0,w.jsx)("div",{style:{width:L.iconWrap,height:L.iconWrap,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,marginLeft:o?"auto":L.itemPadH,marginRight:o?"auto":void 0,color:O},children:typeof e.icon=="function"?e.icon({size:L.iconInner,color:O}):typeof e.icon=="string"?(0,w.jsx)("span",{className:"material-symbols-rounded","aria-hidden":"true",style:{fontSize:L.iconInner,lineHeight:1,color:O,display:"block",fontVariationSettings:"'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24"},children:e.icon}):ve.default.cloneElement(e.icon,{style:{color:O}})}),(0,w.jsx)("div",{style:{flex:o?"0 0 0px":1,minWidth:0,paddingLeft:o?0:i?`calc(${L.childRowPadL} + ${L.childMainPadL} + ${L.textPad})`:L.textPad,paddingRight:o?0:i?L.childRowPadL:L.itemPadH,maxWidth:o?0:200,opacity:o?0:1,overflow:"hidden",pointerEvents:o?"none":"auto",transition:"max-width var(--motion-duration-6) var(--motion-easing-emphasized), opacity var(--motion-duration-3) var(--motion-easing-standard)"},children:(0,w.jsx)("p",{style:{fontFamily:"'Red Hat Text',sans-serif",fontWeight:500,fontSize:"var(--semantic-type-font-size-s)",lineHeight:"var(--semantic-type-line-height-s-single)",letterSpacing:"var(--semantic-type-letter-spacing-spacious)",color:j,margin:0,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",transition:"color var(--motion-duration-3) var(--motion-easing-standard)"},children:e.label})}),!i&&h&&!o&&(0,w.jsx)("div",{style:{width:L.chevBox,height:L.iconWrap,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,opacity:o?0:1,overflow:"hidden",transition:"max-width var(--motion-duration-6) var(--motion-easing-emphasized), opacity var(--motion-duration-3) var(--motion-easing-standard)"},children:(0,w.jsx)("div",{style:{transform:r?"rotate(180deg)":"rotate(0deg)",transition:"transform var(--motion-duration-5) var(--motion-easing-accordion)"},children:y?y({size:L.chevGlyph,color:O}):(0,w.jsx)(bx,{size:L.chevGlyph,color:O})})})]}),o&&s&&u&&(0,w.jsx)("div",{style:{position:"fixed",left:u.right,top:u.top,width:8,height:u.height,zIndex:999},onMouseEnter:()=>{let z=$.current?$.current.getBoundingClientRect():u;c&&c(e.id,z)}}),o&&h&&s&&u&&(0,w.jsx)(fx,{item:e,onClick:a,anchorRect:u,activeId:p,onMouseEnter:()=>{let z=$.current?$.current.getBoundingClientRect():u;c&&c(e.id,z)},onMouseLeave:d}),o&&!h&&s&&u&&(0,w.jsx)(cx,{label:e.label,anchorRect:u,onMouseEnter:()=>{let z=$.current?$.current.getBoundingClientRect():u;c&&c(e.id,z)},onMouseLeave:d})]})}function cx({label:e,anchorRect:t,onMouseEnter:n,onMouseLeave:r}){return t?Bs.default.createPortal((0,w.jsx)("div",{onMouseEnter:n,onMouseLeave:r,style:{position:"fixed",left:t.right+8,top:t.top+t.height/2,zIndex:1e3,backgroundColor:W.surface.navLight,border:`0.5px solid ${re("stroke-static-neutral-faint")}`,borderRadius:"var(--semantic-layout-units-cornerradius-base)",boxShadow:$f("--elevation-widget"),padding:"var(--semantic-layout-units-padding-xxtight) var(--semantic-layout-units-padding-xtight)",whiteSpace:"nowrap",pointerEvents:"auto",animation:"popoverInCentered var(--motion-duration-3) var(--motion-easing-spring) forwards"},children:(0,w.jsx)("span",{style:{fontFamily:"'Red Hat Text',sans-serif",fontWeight:400,fontSize:"var(--semantic-type-font-size-s)",lineHeight:"var(--semantic-type-line-height-s-single)",letterSpacing:"var(--semantic-type-letter-spacing-spacious)",color:W.text.strong},children:e})}),document.body):null}function dx({label:e}){return(0,w.jsx)("div",{style:{display:"flex",alignItems:"center",width:"100%",boxSizing:"border-box",paddingLeft:"var(--semantic-layout-units-padding-tight)",paddingRight:"var(--semantic-layout-units-padding-xtight)",paddingTop:"var(--semantic-layout-units-padding-xxtight)",paddingBottom:"var(--semantic-layout-units-padding-xxtight)"},children:(0,w.jsx)("span",{style:{fontFamily:"'Red Hat Text',sans-serif",fontWeight:600,fontSize:"var(--semantic-type-font-size-xs)",lineHeight:"var(--semantic-type-line-height-xs-single)",letterSpacing:"var(--semantic-type-letter-spacing-extraspacious)",color:W.text.secondary,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e})})}function fx({item:e,onClick:t,anchorRect:n,onMouseEnter:r,onMouseLeave:o,activeId:i}){return n?Bs.default.createPortal((0,w.jsxs)("div",{onMouseEnter:r,onMouseLeave:o,style:{position:"fixed",left:n.right+8,top:n.top,zIndex:1e3,backgroundColor:W.surface.navElevated,border:`0.5px solid ${re("stroke-static-neutral-faint")}`,borderRadius:"var(--primitive-unit-unit-10)",boxShadow:$f("--elevation-lift"),padding:"var(--semantic-layout-units-padding-xtight) var(--semantic-layout-units-padding-xxtight)",display:"flex",flexDirection:"column",gap:"var(--semantic-layout-units-gap-xxxtight)",boxSizing:"border-box",minWidth:220,maxWidth:360,pointerEvents:"auto",animation:"popoverIn var(--motion-duration-3) var(--motion-easing-spring) forwards"},children:[(0,w.jsx)(dx,{label:e.label}),e.children.map(a=>(0,w.jsx)(ka,{item:a,onClick:t,activeId:i},a.id))]}),document.body):null}function ka({item:e,onClick:t,activeId:n}){let[r,o]=(0,ve.useState)(!1),i=e.id===n,a=i?W.fill.navActive:r?W.fill.navHover:"transparent",l=W.text.strong;return(0,w.jsxs)("div",{onClick:()=>t(e.id),className:lh,role:"menuitem",tabIndex:0,"aria-current":i?"page":void 0,onKeyDown:s=>(s.key==="Enter"||s.key===" ")&&(s.preventDefault(),t(e.id)),onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),onFocus:()=>o(!0),onBlur:()=>o(!1),style:{position:"relative",display:"flex",alignItems:"center",minHeight:L.itemH,boxSizing:"border-box",padding:"var(--semantic-layout-units-padding-tight)",borderRadius:"var(--semantic-layout-units-cornerradius-base)",overflow:"hidden",backgroundColor:a,cursor:"pointer",transition:"background-color var(--motion-duration-3) var(--motion-easing-standard)"},children:[(0,w.jsx)("div",{style:{position:"absolute",left:0,top:"var(--semantic-layout-units-padding-xtight)",bottom:"var(--semantic-layout-units-padding-xtight)",width:L.stripeW,borderRadius:`0 ${L.stripeRadius} ${L.stripeRadius} 0`,backgroundColor:i?W.indicator:"transparent",transition:"background-color var(--motion-duration-3) var(--motion-easing-standard)"}}),(0,w.jsx)("span",{style:{fontFamily:"'Red Hat Text',sans-serif",fontWeight:500,fontSize:"var(--semantic-type-font-size-s)",lineHeight:"var(--semantic-type-line-height-s-single)",letterSpacing:"var(--semantic-type-letter-spacing-spacious)",color:l,flex:1},children:e.label})]})}var f$=(e,t)=>!!e&&(typeof t.composedPath=="function"?t.composedPath().includes(e):e.contains(t.target)),Sn={restStroke:re("stroke-action-primary-subtle-rest"),hoverFill:re("fill-action-primary-subtle-hover"),hoverStroke:re("stroke-action-primary-strong-hover"),hoverFg:re("foreground-action-primary-on-subtle-hover"),openFill:re("fill-action-primary-subtle-pressed"),openStroke:re("stroke-action-primary-strong-pressed"),openFg:re("foreground-action-primary-on-subtle-pressed"),restFg:re("foreground-static-neutral-bold"),separator:re("stroke-static-neutral-base")};function px({label:e,icon:t="apps",home:n,apps:r=[],activeId:o,onSelect:i,collapsed:a=!1,presentation:l="popover",sheetTitle:s}){let u=[n,...r].filter(Boolean).find(M=>M.id===o),c=u&&u.label||e||n&&n.label,[d,p]=(0,ve.useState)(!1),[g,y]=(0,ve.useState)(!1),[b,D]=(0,ve.useState)(!1),[m,f]=(0,ve.useState)(null),h=(0,ve.useRef)(null),$=(0,ve.useRef)(null),C=(0,ve.useRef)(null),E=(0,ve.useRef)(!1),P=()=>{if(b){D(!1);return}f(h.current?h.current.getBoundingClientRect():null),D(!0)};(0,ve.useEffect)(()=>{if(!b||l==="sheet"||!E.current)return;E.current=!1;let M=setTimeout(()=>{let z=C.current?[...C.current.querySelectorAll('[role="menuitem"]')]:[];(z.find(V=>V.getAttribute("aria-current"))||z[0])?.focus()},0);return()=>clearTimeout(M)},[b,l]);let N=M=>{let z=[...M.currentTarget.querySelectorAll('[role="menuitem"]')],V=z.indexOf(document.activeElement),se=null;M.key==="ArrowDown"?se=(V+1)%z.length:M.key==="ArrowUp"?se=(V-1+z.length)%z.length:M.key==="Home"?se=0:M.key==="End"&&(se=z.length-1),!(se===null||!z.length)&&(M.preventDefault(),z[se].focus())},R=M=>{D(!1),i&&i(M),$.current&&$.current.focus()};(0,ve.useEffect)(()=>{if(!b||l==="sheet")return;let M=V=>{f$(h.current,V)||f$(C.current,V)||D(!1)},z=V=>{V.key==="Escape"&&(D(!1),$.current&&$.current.focus())};return document.addEventListener("mousedown",M),document.addEventListener("keydown",z),()=>{document.removeEventListener("mousedown",M),document.removeEventListener("keydown",z)}},[b,l]);let F=b||g,j=F?Sn.openFg:d?Sn.hoverFg:Sn.restFg,O=n||{id:"__home",label:e};return(0,w.jsxs)("div",{ref:h,style:{boxSizing:"border-box",width:"100%",minHeight:L.itemH,flexShrink:0,padding:a?`${L.textPad} 0`:`${L.textPad} ${L.chevPad}`},children:[(0,w.jsxs)("button",{ref:$,className:sh,type:"button",onClick:P,onKeyDown:M=>{(M.key==="Enter"||M.key===" "||M.key==="ArrowDown")&&(E.current=!0),M.key==="ArrowDown"&&!b&&(M.preventDefault(),P())},"aria-haspopup":"menu","aria-expanded":b,"aria-label":a?`Switch application: ${c}`:void 0,onMouseEnter:()=>p(!0),onMouseLeave:()=>{p(!1),y(!1)},onMouseDown:()=>y(!0),onMouseUp:()=>y(!1),onBlur:()=>y(!1),style:{display:"flex",alignItems:"center",width:"100%",height:L.itemH,boxSizing:"border-box",margin:0,cursor:"pointer",fontFamily:"inherit",justifyContent:a?"center":"flex-start",gap:a?0:"var(--semantic-layout-units-gap-xxxtight)",paddingLeft:L.itemPadH,paddingRight:L.itemPadH,borderRadius:"var(--semantic-layout-units-cornerradius-base)",background:F?Sn.openFill:d?Sn.hoverFill:"transparent",border:"none","--pw-ring-keep-shadow":"var(--elevation-lift)",boxShadow:`inset 0 0 0 ${F?"var(--contextual-layout-units-button-borderwidth-selected, 1px)":"var(--contextual-layout-units-button-borderwidth-rest, 0.75px)"} ${F?Sn.openStroke:d?Sn.hoverStroke:Sn.restStroke}, var(--elevation-lift)`,transition:"background-color var(--motion-duration-3) var(--motion-easing-standard), box-shadow var(--motion-duration-3) var(--motion-easing-standard)"},children:[(0,w.jsx)("span",{style:{width:36,height:36,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:(0,w.jsx)("span",{className:"material-symbols-rounded","aria-hidden":"true",style:{fontSize:L.iconInner,lineHeight:1,display:"block",color:j,fontVariationSettings:"'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24",transition:"color var(--motion-duration-3) var(--motion-easing-standard)"},children:t})}),!a&&(0,w.jsx)("span",{style:{flex:1,minWidth:0,textAlign:"left",fontWeight:500,fontSize:"var(--semantic-type-font-size-s)",lineHeight:"var(--semantic-type-line-height-s-single)",letterSpacing:"var(--semantic-type-letter-spacing-spacious)",color:j,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",transition:"color var(--motion-duration-3) var(--motion-easing-standard)"},children:c})]}),l==="sheet"&&(0,w.jsxs)(u$,{open:b,title:s||c,menu:!0,returnFocusRef:$,onOpenChange:M=>{M||D(!1)},children:[(0,w.jsx)(ka,{item:O,onClick:R,activeId:o}),r.length>0&&(0,w.jsx)("div",{role:"separator",style:{padding:"var(--semantic-layout-units-padding-xtight)"},children:(0,w.jsx)("div",{style:{borderTop:`0.5px solid ${Sn.separator}`}})}),r.map(M=>(0,w.jsx)(ka,{item:M,onClick:R,activeId:o},M.id))]}),b&&l!=="sheet"&&m&&Bs.default.createPortal((0,w.jsxs)("div",{ref:C,role:"menu","aria-label":c,onKeyDown:N,style:{position:"fixed",left:`calc(${m.right}px + var(--semantic-layout-units-gap-xxxtight))`,top:m.top,zIndex:1e3,boxSizing:"border-box",minWidth:220,maxWidth:360,maxHeight:`calc(100vh - ${Math.round(m.top)}px - var(--semantic-layout-units-padding-base))`,overflowY:"auto",background:W.surface.navElevated,border:`var(--semantic-layout-units-borderwidth-xthin, 0.5px) solid ${re("stroke-static-neutral-faint")}`,borderRadius:"var(--semantic-layout-units-cornerradius-large)",boxShadow:$f("--elevation-lift"),padding:"var(--semantic-layout-units-padding-xtight) var(--semantic-layout-units-padding-xxtight)",display:"flex",flexDirection:"column",gap:"var(--semantic-layout-units-gap-xxxtight)",animation:"popoverIn var(--motion-duration-3) var(--motion-easing-spring) forwards"},children:[(0,w.jsx)(ka,{item:O,onClick:R,activeId:o}),r.length>0&&(0,w.jsx)("div",{role:"separator",style:{padding:"var(--semantic-layout-units-padding-xtight)"},children:(0,w.jsx)("div",{style:{borderTop:`0.5px solid ${Sn.separator}`}})}),r.map(M=>(0,w.jsx)(ka,{item:M,onClick:R,activeId:o},M.id))]}),document.body)]})}function mx({isSidebarCollapsed:e,onToggle:t,collapseIcon:n,expandIcon:r,headerStart:o=null,hideToggle:i=!1}){let[a,l]=(0,ve.useState)(!1),s=W.icon.actionSecondary,u=!e&&o;return(0,w.jsxs)("div",{style:{width:"100%",flexShrink:0},children:[(0,w.jsxs)("div",{style:{display:"flex",alignItems:"center",height:L.itemH,width:"100%",justifyContent:u?"space-between":e?"center":"flex-end",gap:"var(--semantic-layout-units-gap-xxtight)"},children:[u&&(0,w.jsx)("div",{style:{display:"flex",alignItems:"center",minWidth:0,flex:1},children:o}),!i&&(0,w.jsx)("div",{onClick:t,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),"aria-label":e?"Expand navigation":"Collapse navigation",className:Zl,role:"button",tabIndex:0,onKeyDown:c=>(c.key==="Enter"||c.key===" ")&&t(),style:{display:"flex",alignItems:"center",height:L.itemH,flexShrink:0,cursor:"pointer"},children:(0,w.jsx)("div",{style:{width:L.itemH,height:L.itemH,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:(0,w.jsx)("div",{style:{width:28,height:28,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"var(--primitive-unit-unit-10)",backgroundColor:a?W.fill.navHover:"transparent",transition:"background-color var(--motion-duration-3) var(--motion-easing-standard)"},children:e?r?r({size:12,color:s}):(0,w.jsx)(vx,{color:s}):n?n({size:12,color:s}):(0,w.jsx)(yx,{color:s})})})})]}),(0,w.jsx)("div",{style:{padding:"var(--semantic-layout-units-padding-xxxtight) 0"},children:(0,w.jsx)("div",{style:{height:1,backgroundColor:W.fill.infoSubtle}})})]})}function m$({label:e}){return(0,w.jsx)("div",{style:{display:"flex",alignItems:"center",height:40,width:"100%",boxSizing:"border-box",paddingLeft:"var(--semantic-layout-units-padding-xxtight)",paddingRight:"var(--semantic-layout-units-padding-xxtight)",paddingTop:"var(--semantic-layout-units-padding-tight)",paddingBottom:"var(--semantic-layout-units-padding-tight)",flexShrink:0},children:(0,w.jsx)("span",{style:{fontFamily:"'Red Hat Text',sans-serif",fontWeight:600,fontSize:"var(--semantic-type-font-size-xxs)",lineHeight:"var(--semantic-type-line-height-xxs-single)",letterSpacing:"var(--semantic-type-letter-spacing-extraspacious)",textTransform:"uppercase",color:W.text.secondarySubtle,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e})})}function hx({color:e}){return(0,w.jsx)("svg",{width:L.iconInner,height:L.iconInner,viewBox:"0 0 16 16","aria-hidden":"true",style:{display:"block",flexShrink:0},children:(0,w.jsx)("circle",{cx:"8",cy:"8",r:"6.6667",fill:e})})}function gx({item:e,isActive:t,onClick:n}){let[r,o]=(0,ve.useState)(!1),i=t?W.fill.navActive:r?W.fill.navHover:"transparent",a=t?W.text.navActive:r?W.text.navHover:W.text.navBase,l=t?W.icon.navActive:r?W.icon.navHover:W.icon.navBase;return(0,w.jsxs)("div",{onClick:()=>n&&n(e.id),onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),className:Zl,role:"button",tabIndex:0,onKeyDown:s=>(s.key==="Enter"||s.key===" ")&&n&&n(e.id),style:{display:"flex",alignItems:"center",height:48,minHeight:L.itemH,width:"100%",borderRadius:W.radius,backgroundColor:i,cursor:"pointer",overflow:"hidden",transition:"background-color var(--motion-duration-3) var(--motion-easing-standard)",userSelect:"none"},children:[(0,w.jsx)(p$,{visible:t,inset:L.stripeInnerPadV}),(0,w.jsx)("div",{style:{width:L.iconWrap,height:L.iconWrap,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,marginLeft:L.rowPadH},children:(0,w.jsx)(hx,{color:l})}),(0,w.jsx)("div",{style:{flex:1,minWidth:0,paddingLeft:L.textPad,paddingRight:`calc(${L.textPad} + ${L.rowPadH})`},children:(0,w.jsx)("p",{style:{fontFamily:"'Red Hat Text',sans-serif",fontWeight:400,fontSize:"var(--semantic-type-font-size-xs)",lineHeight:"var(--semantic-type-line-height-xs-single)",letterSpacing:"var(--semantic-type-letter-spacing-extraspacious)",color:a,margin:0,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",transition:"color var(--motion-duration-3) var(--motion-easing-standard)"},children:e.label})})]})}function $x({label:e,items:t,activeId:n,onNavigate:r}){return(0,w.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"var(--semantic-layout-units-gap-xtight)",width:"100%",flexShrink:0},children:[(0,w.jsx)(m$,{label:e}),(0,w.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:t.map(o=>(0,w.jsx)(gx,{item:o,isActive:o.id===n,onClick:r},o.id))})]})}function h$({items:e,sections:t,listSection:n,activeId:r,onNavigate:o,collapsed:i=!1,onCollapseChange:a,hideCollapseButton:l=!1,defaultExpanded:s={},className:u="",headerEnd:c=null,children:d=null,footer:p=null,appSwitcher:g=null,headerStart:y=null}){let[b,D]=(0,ve.useState)(s),[m,f]=(0,ve.useState)(null),[h,$]=(0,ve.useState)(null),C=(0,ve.useRef)(null),E=t?t.flatMap(O=>O.items):e||[],P=(()=>{let O=E.find(M=>M.children&&M.children.some(z=>z.id===r));return O?O.id:null})(),N=O=>D(M=>{if(!M[O])return{[O]:!0};let V={...M};return delete V[O],V}),R=(O,M)=>{clearTimeout(C.current),f(O),M&&$(M)},F=()=>{C.current=setTimeout(()=>{f(null),$(null)},300)},j=O=>{let M=!!(O.children&&O.children.length),z=O.id===r,V=O.id===P,se=!!b[O.id];return(0,w.jsxs)("div",{children:[(0,w.jsx)(d$,{item:O,isActive:z,isTrail:V,isExpanded:se,isSidebarCollapsed:i,isChild:!1,onClick:o,onToggle:N,popoverOpen:m===O.id,anchorRect:m===O.id?h:null,onPopoverEnter:R,onPopoverLeave:F,activeId:r}),M&&!i&&(0,w.jsx)("div",{...gf(!se),style:{display:"grid",gridTemplateRows:se?"1fr":"0fr",marginTop:se?L.menuGap:0,transition:"grid-template-rows var(--motion-duration-5) var(--motion-easing-accordion), margin-top var(--motion-duration-5) var(--motion-easing-accordion)"},children:(0,w.jsx)("div",{style:{overflow:"hidden",display:"flex",flexDirection:"column",gap:L.menuGap,opacity:se?1:0,transition:se?"opacity var(--motion-duration-4) var(--motion-easing-standard) 70ms":"opacity var(--motion-duration-3) var(--motion-easing-standard)"},children:O.children.map(Me=>(0,w.jsx)(d$,{item:Me,isActive:Me.id===r,isTrail:!1,isExpanded:!1,isSidebarCollapsed:!1,isChild:!0,onClick:o,onToggle:()=>{}},Me.id))})})]},O.id)};return(0,w.jsxs)("nav",{className:u,style:{width:i?L.navWcol:L.navW,height:"100%",backgroundColor:W.surface.navLight,display:"flex",flexDirection:"column",paddingTop:L.navPadTop,paddingBottom:0,paddingLeft:i?L.navColPadH:L.navPadH,paddingRight:i?L.navColPadH:L.navPadH,boxSizing:"border-box",flexShrink:0,transition:"width var(--motion-duration-6) var(--motion-easing-emphasized)",borderRight:`1px solid ${W.fill.infoSubtle}`,overflow:"hidden"},children:[(!l||c||y)&&(0,w.jsxs)("div",{style:{flexShrink:0},children:[(!l||y)&&(0,w.jsx)(mx,{isSidebarCollapsed:i,headerStart:y,hideToggle:l,onToggle:()=>a&&a(!i)}),c&&(0,w.jsx)("div",{...gf(i),style:{opacity:i?0:1,maxHeight:i?0:200,overflow:"hidden",pointerEvents:i?"none":"auto",padding:i?0:`0 ${L.navPadH}`,transition:"opacity var(--motion-duration-4) var(--motion-easing-standard), max-height var(--motion-duration-5) var(--motion-easing-spring)"},children:c})]}),(0,w.jsxs)(rh,{style:{flex:1,minHeight:0,marginRight:c$(i?L.navColPadH:L.navPadH),marginLeft:c$("var(--contextual-layout-units-focusring-width)")},viewStyle:{display:"flex",flexDirection:"column",gap:L.menuGap,paddingTop:L.menuPadT,paddingRight:i?L.navColPadH:L.navPadH,paddingLeft:"var(--contextual-layout-units-focusring-width)"},children:[g&&(0,w.jsx)(px,{...g,collapsed:i}),t&&t.map(({section:O,items:M},z)=>(0,w.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:L.menuGap,flexShrink:0},children:[(0,w.jsx)("div",{style:{opacity:i?0:1,maxHeight:i?0:40,overflow:"hidden",transition:"opacity var(--motion-duration-4) var(--motion-easing-standard), max-height var(--motion-duration-5) var(--motion-easing-spring)",flexShrink:0},children:(0,w.jsx)(m$,{label:O})}),z>0&&(0,w.jsx)("div",{style:{opacity:i?1:0,maxHeight:i?5:0,overflow:"hidden",transition:"opacity var(--motion-duration-4) var(--motion-easing-standard), max-height var(--motion-duration-5) var(--motion-easing-spring)",padding:"2px 0",flexShrink:0},children:(0,w.jsx)("div",{style:{height:1,backgroundColor:W.fill.infoSubtle}})}),M.map(j)]},O)),!t&&(e||[]).map(j),n&&(0,w.jsx)("div",{...gf(i),style:{opacity:i?0:1,maxHeight:i?0:400,overflow:"hidden",transition:"opacity var(--motion-duration-4) var(--motion-easing-standard), max-height var(--motion-duration-5) var(--motion-easing-spring)"},children:(0,w.jsx)($x,{label:n.label,items:n.items,activeId:r,onNavigate:o})}),d&&(0,w.jsx)("div",{style:{flexShrink:0},children:d}),(0,w.jsx)("div",{style:{flex:1,minHeight:L.menuPadB}})]}),p&&(0,w.jsx)("div",{style:{flexShrink:0,borderTop:`0.5px solid ${W.fill.infoSubtle}`,padding:i?`8px ${L.navColPadH}`:`8px ${L.navPadH}`,transition:"padding var(--motion-duration-6) var(--motion-easing-emphasized)"},children:p})]})}function bx({size:e=12,color:t}){return(0,w.jsx)("svg",{width:e,height:e,viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",children:(0,w.jsx)("path",{d:"M6 7.475C5.93333 7.475 5.87083 7.46458 5.8125 7.44375C5.75417 7.42292 5.7 7.3875 5.65 7.3375L3.35 5.0375C3.25833 4.94583 3.2125 4.82917 3.2125 4.6875C3.2125 4.54583 3.25833 4.42917 3.35 4.3375C3.44167 4.24583 3.55833 4.2 3.7 4.2C3.84167 4.2 3.95833 4.24583 4.05 4.3375L6 6.2875L7.95 4.3375C8.04167 4.24583 8.15833 4.2 8.3 4.2C8.44167 4.2 8.55833 4.24583 8.65 4.3375C8.74167 4.42917 8.7875 4.54583 8.7875 4.6875C8.7875 4.82917 8.74167 4.94583 8.65 5.0375L6.35 7.3375C6.3 7.3875 6.24583 7.42292 6.1875 7.44375C6.12917 7.46458 6.06667 7.475 6 7.475Z",fill:t})})}function yx({size:e=12,color:t=W.icon.actionSecondary}){return(0,w.jsx)("svg",{width:e,height:e,viewBox:"0 0 12 12",fill:"none",children:(0,w.jsx)("path",{d:"M5.66667 7.86667V4.13333C5.66667 3.97778 5.6 3.87222 5.46667 3.81667C5.33333 3.76111 5.21111 3.78889 5.1 3.9L3.46667 5.53333C3.33333 5.66667 3.26667 5.82222 3.26667 6C3.26667 6.17778 3.33333 6.33333 3.46667 6.46667L5.1 8.1C5.21111 8.21111 5.33333 8.23889 5.46667 8.18333C5.6 8.12778 5.66667 8.02222 5.66667 7.86667ZM1.33333 12C0.966667 12 0.652778 11.8694 0.391667 11.6083C0.130556 11.3472 0 11.0333 0 10.6667V1.33333C0 0.966667 0.130556 0.652778 0.391667 0.391667C0.652778 0.130556 0.966667 0 1.33333 0H10.6667C11.0333 0 11.3472 0.130556 11.6083 0.391667C11.8694 0.652778 12 0.966667 12 1.33333V10.6667C12 11.0333 11.8694 11.3472 11.6083 11.6083C11.3472 11.8694 11.0333 12 10.6667 12H1.33333ZM8.66667 10.6667H10.6667V1.33333H8.66667V10.6667ZM7.33333 10.6667V1.33333H1.33333V10.6667H7.33333Z",fill:t})})}function vx({size:e=12,color:t=W.icon.actionSecondary}){return(0,w.jsx)("svg",{width:e,height:e,viewBox:"0 0 12 12",fill:"none",children:(0,w.jsx)("path",{d:"M6.33333 4.13333V7.86667C6.33333 8.02222 6.4 8.12778 6.53333 8.18333C6.66667 8.23889 6.78889 8.21111 6.9 8.1L8.53333 6.46667C8.66667 6.33333 8.73333 6.17778 8.73333 6C8.73333 5.82222 8.66667 5.66667 8.53333 5.53333L6.9 3.9C6.78889 3.78889 6.66667 3.76111 6.53333 3.81667C6.4 3.87222 6.33333 3.97778 6.33333 4.13333ZM1.33333 12C0.966667 12 0.652778 11.8694 0.391667 11.6083C0.130556 11.3472 0 11.0333 0 10.6667V1.33333C0 0.966667 0.130556 0.652778 0.391667 0.391667C0.652778 0.130556 0.966667 0 1.33333 0H10.6667C11.0333 0 11.3472 0.130556 11.6083 0.391667C11.8694 0.652778 12 0.966667 12 1.33333V10.6667C12 11.0333 11.8694 11.3472 11.6083 11.6083C11.3472 11.8694 11.0333 12 10.6667 12H1.33333ZM3.33333 10.6667V1.33333H1.33333V10.6667H3.33333ZM4.66667 10.6667H10.6667V1.33333H4.66667V10.6667Z",fill:t})})}var xx={collapsed:"collapsed","hide-collapse-button":"hideCollapseButton"},wx=`
|
|
192
192
|
:host { display: block; height: 100%; }
|
|
193
193
|
:host([hidden]) { display: none; }
|
|
194
194
|
|
|
@@ -266,7 +266,7 @@ ${st}:is([data-selected],[data-current]) .pw-menu-item__stripe{background:${z.st
|
|
|
266
266
|
font-size: var(--semantic-type-font-size-s);
|
|
267
267
|
line-height: var(--semantic-type-line-height-s-single);
|
|
268
268
|
color: var(--semantic-color-foreground-action-secondary-rest);
|
|
269
|
-
}`,
|
|
269
|
+
}`,Sx=(e,t)=>{if(e!=null)try{return JSON.parse(e)}catch(n){console.error(`<pathway-sidenav>: the "${t}" attribute is not valid JSON.`,n);return}},Hs=class extends HTMLElement{static get observedAttributes(){return["active-id","collapsed","hide-collapse-button","items","sections","list-section","default-expanded"]}constructor(){super(),this._props={},this._reactRoot=null}set items(t){this._props.items=t,this._render()}get items(){return this._props.items}set sections(t){this._props.sections=t,this._render()}get sections(){return this._props.sections}set listSection(t){this._props.listSection=t,this._render()}get listSection(){return this._props.listSection}set defaultExpanded(t){this._props.defaultExpanded=t,this._render()}get defaultExpanded(){return this._props.defaultExpanded}set activeId(t){this._props.activeId=t,this._render()}get activeId(){return"activeId"in this._props?this._props.activeId:this.getAttribute("active-id")??void 0}set collapsed(t){this._props.collapsed=!!t,this._render()}get collapsed(){if("collapsed"in this._props)return!!this._props.collapsed;let t=this.getAttribute("collapsed");return t!==null&&t!=="false"&&t!=="0"}connectedCallback(){if(!this.shadowRoot){let t=this.attachShadow({mode:"open"}),n=document.createElement("style");n.textContent=wx+ud,t.appendChild(n),this._mount=document.createElement("div"),this._mount.className="pathway-sidenav-root",this._mount.style.height="100%",t.appendChild(this._mount),this._reactRoot=(0,g$.createRoot)(this._mount)}this._slotObserver||(this._slotObserver=new MutationObserver(()=>this._render()),this._slotObserver.observe(this,{childList:!0,attributeFilter:["slot"]})),this._render()}disconnectedCallback(){this._slotObserver&&(this._slotObserver.disconnect(),this._slotObserver=null);let t=this._reactRoot;this._reactRoot=null,t&&Promise.resolve().then(()=>t.unmount())}attributeChangedCallback(){this._render()}_readAttributes(){let t={};this.hasAttribute("active-id")&&(t.activeId=this.getAttribute("active-id"));for(let[n,r]of Object.entries(xx))if(this.hasAttribute(n)){let o=this.getAttribute(n);t[r]=o!=="false"&&o!=="0"}for(let n of["items","sections","list-section","default-expanded"]){if(!this.hasAttribute(n))continue;let r=n.replace(/-([a-z])/g,(i,a)=>a.toUpperCase()),o=Sx(this.getAttribute(n),n);o!==void 0&&(t[r]=o)}return t}_emit(t,n){this.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0}))}_readSlots(){let t=r=>r===null?[...this.childNodes].some(o=>o.nodeType===1&&!o.getAttribute("slot")||o.nodeType===3&&o.textContent.trim()):!!this.querySelector(`[slot="${r}"]`),n={};return t("header")&&(n.headerEnd=Ea.default.createElement("slot",{name:"header"})),t("footer")&&(n.footer=Ea.default.createElement("slot",{name:"footer"})),t(null)&&(n.children=Ea.default.createElement("slot",null)),n}_render(){if(!this._reactRoot)return;let t={...this._readAttributes(),...this._props,...this._readSlots()};this._reactRoot.render(Ea.default.createElement(h$,{...t,onNavigate:n=>{this._emit("pathway-navigate",{id:n}),typeof this.onnavigate=="function"&&this.onnavigate({id:n})},onCollapseChange:n=>{n?this.setAttribute("collapsed",""):this.removeAttribute("collapsed"),this._emit("pathway-collapse-change",{collapsed:!!n})}}))}};customElements.get("pathway-sidenav")||customElements.define("pathway-sidenav",Hs);var E6=Hs;export{Hs as PathwaySideNav,E6 as default};
|
|
270
270
|
/*! Bundled license information:
|
|
271
271
|
|
|
272
272
|
react/cjs/react.production.min.js:
|