@helloimjolopez-pathway/pathway-components 0.11.1 → 0.13.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 +65 -6
- package/components/top-nav/top-nav.jsx +3 -3
- package/dist/pathway-accounting-sidenav.js +114 -69
- package/dist/pathway-components.js +151 -129
- package/dist/pathway-sidenav.js +74 -29
- 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 Lf=Object.defineProperty;var P$=Object.getOwnPropertyDescriptor;var L$=Object.getOwnPropertyNames;var N$=Object.getPrototypeOf,R$=Object.prototype.hasOwnProperty;var Gt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var M$=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of L$(t))!R$.call(e,o)&&o!==n&&Lf(e,o,{get:()=>t[o],enumerable:!(r=P$(t,o))||r.enumerable});return e};var S=(e,t,n)=>(n=e!=null?_$(N$(e)):{},M$(t||!e||!e.__esModule?Lf(n,"default",{value:e,enumerable:!0}):n,e));var Bf=Gt(q=>{"use strict";var ti=Symbol.for("react.element"),I$=Symbol.for("react.portal"),D$=Symbol.for("react.fragment"),F$=Symbol.for("react.strict_mode"),K$=Symbol.for("react.profiler"),O$=Symbol.for("react.provider"),A$=Symbol.for("react.context"),H$=Symbol.for("react.forward_ref"),z$=Symbol.for("react.suspense"),B$=Symbol.for("react.memo"),W$=Symbol.for("react.lazy"),Nf=Symbol.iterator;function V$(e){return e===null||typeof e!="object"?null:(e=Nf&&e[Nf]||e["@@iterator"],typeof e=="function"?e:null)}var If={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Df=Object.assign,Ff={};function ro(e,t,n){this.props=e,this.context=t,this.refs=Ff,this.updater=n||If}ro.prototype.isReactComponent={};ro.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")};ro.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Kf(){}Kf.prototype=ro.prototype;function Zs(e,t,n){this.props=e,this.context=t,this.refs=Ff,this.updater=n||If}var Js=Zs.prototype=new Kf;Js.constructor=Zs;Df(Js,ro.prototype);Js.isPureReactComponent=!0;var Rf=Array.isArray,Of=Object.prototype.hasOwnProperty,eu={current:null},Af={key:!0,ref:!0,__self:!0,__source:!0};function Hf(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)Of.call(t,r)&&!Af.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:ti,type:e,key:i,ref:a,props:o,_owner:eu.current}}function U$(e,t){return{$$typeof:ti,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function tu(e){return typeof e=="object"&&e!==null&&e.$$typeof===ti}function j$(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Mf=/\/+/g;function qs(e,t){return typeof e=="object"&&e!==null&&e.key!=null?j$(""+e.key):t.toString(36)}function Da(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 ti:case I$:a=!0}}if(a)return a=e,o=o(a),e=r===""?"."+qs(a,0):r,Rf(o)?(n="",e!=null&&(n=e.replace(Mf,"$&/")+"/"),Da(o,t,n,"",function(u){return u})):o!=null&&(tu(o)&&(o=U$(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(Mf,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=r===""?".":r+":",Rf(e))for(var l=0;l<e.length;l++){i=e[l];var s=r+qs(i,l);a+=Da(i,t,n,s,o)}else if(s=V$(e),typeof s=="function")for(e=s.call(e),l=0;!(i=e.next()).done;)i=i.value,s=r+qs(i,l++),a+=Da(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 Ia(e,t,n){if(e==null)return e;var r=[],o=0;return Da(e,r,"","",function(i){return t.call(n,i,o++)}),r}function G$(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},Fa={transition:null},Y$={ReactCurrentDispatcher:Je,ReactCurrentBatchConfig:Fa,ReactCurrentOwner:eu};function zf(){throw Error("act(...) is not supported in production builds of React.")}q.Children={map:Ia,forEach:function(e,t,n){Ia(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ia(e,function(){t++}),t},toArray:function(e){return Ia(e,function(t){return t})||[]},only:function(e){if(!tu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};q.Component=ro;q.Fragment=D$;q.Profiler=K$;q.PureComponent=Zs;q.StrictMode=F$;q.Suspense=z$;q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y$;q.act=zf;q.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=Df({},e.props),o=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=eu.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)Of.call(t,s)&&!Af.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:ti,type:e.type,key:o,ref:i,props:r,_owner:a}};q.createContext=function(e){return e={$$typeof:A$,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:O$,_context:e},e.Consumer=e};q.createElement=Hf;q.createFactory=function(e){var t=Hf.bind(null,e);return t.type=e,t};q.createRef=function(){return{current:null}};q.forwardRef=function(e){return{$$typeof:H$,render:e}};q.isValidElement=tu;q.lazy=function(e){return{$$typeof:W$,_payload:{_status:-1,_result:e},_init:G$}};q.memo=function(e,t){return{$$typeof:B$,type:e,compare:t===void 0?null:t}};q.startTransition=function(e){var t=Fa.transition;Fa.transition={};try{e()}finally{Fa.transition=t}};q.unstable_act=zf;q.useCallback=function(e,t){return Je.current.useCallback(e,t)};q.useContext=function(e){return Je.current.useContext(e)};q.useDebugValue=function(){};q.useDeferredValue=function(e){return Je.current.useDeferredValue(e)};q.useEffect=function(e,t){return Je.current.useEffect(e,t)};q.useId=function(){return Je.current.useId()};q.useImperativeHandle=function(e,t,n){return Je.current.useImperativeHandle(e,t,n)};q.useInsertionEffect=function(e,t){return Je.current.useInsertionEffect(e,t)};q.useLayoutEffect=function(e,t){return Je.current.useLayoutEffect(e,t)};q.useMemo=function(e,t){return Je.current.useMemo(e,t)};q.useReducer=function(e,t,n){return Je.current.useReducer(e,t,n)};q.useRef=function(e){return Je.current.useRef(e)};q.useState=function(e){return Je.current.useState(e)};q.useSyncExternalStore=function(e,t,n){return Je.current.useSyncExternalStore(e,t,n)};q.useTransition=function(){return Je.current.useTransition()};q.version="18.3.1"});var K=Gt((Ox,Wf)=>{"use strict";Wf.exports=Bf()});var Jf=Gt(de=>{"use strict";function iu(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(0<Ka(o,t))e[r]=t,e[n]=o,n=r;else break e}}function Yt(e){return e.length===0?null:e[0]}function Aa(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>Ka(l,n))s<o&&0>Ka(u,l)?(e[r]=u,e[s]=n,r=s):(e[r]=l,e[a]=n,r=a);else if(s<o&&0>Ka(u,n))e[r]=u,e[s]=n,r=s;else break e}}return t}function Ka(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(Vf=performance,de.unstable_now=function(){return Vf.now()}):(nu=Date,Uf=nu.now(),de.unstable_now=function(){return nu.now()-Uf});var Vf,nu,Uf,pn=[],jn=[],Q$=1,Kt=null,je=3,Ha=!1,kr=!1,ri=!1,Yf=typeof setTimeout=="function"?setTimeout:null,Qf=typeof clearTimeout=="function"?clearTimeout:null,jf=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function au(e){for(var t=Yt(jn);t!==null;){if(t.callback===null)Aa(jn);else if(t.startTime<=e)Aa(jn),t.sortIndex=t.expirationTime,iu(pn,t);else break;t=Yt(jn)}}function lu(e){if(ri=!1,au(e),!kr)if(Yt(pn)!==null)kr=!0,uu(su);else{var t=Yt(jn);t!==null&&cu(lu,t.startTime-e)}}function su(e,t){kr=!1,ri&&(ri=!1,Qf(oi),oi=-1),Ha=!0;var n=je;try{for(au(t),Kt=Yt(pn);Kt!==null&&(!(Kt.expirationTime>t)||e&&!Zf());){var r=Kt.callback;if(typeof r=="function"){Kt.callback=null,je=Kt.priorityLevel;var o=r(Kt.expirationTime<=t);t=de.unstable_now(),typeof o=="function"?Kt.callback=o:Kt===Yt(pn)&&Aa(pn),au(t)}else Aa(pn);Kt=Yt(pn)}if(Kt!==null)var i=!0;else{var a=Yt(jn);a!==null&&cu(lu,a.startTime-t),i=!1}return i}finally{Kt=null,je=n,Ha=!1}}var za=!1,Oa=null,oi=-1,Xf=5,qf=-1;function Zf(){return!(de.unstable_now()-qf<Xf)}function ru(){if(Oa!==null){var e=de.unstable_now();qf=e;var t=!0;try{t=Oa(!0,e)}finally{t?ni():(za=!1,Oa=null)}}else za=!1}var ni;typeof jf=="function"?ni=function(){jf(ru)}:typeof MessageChannel<"u"?(ou=new MessageChannel,Gf=ou.port2,ou.port1.onmessage=ru,ni=function(){Gf.postMessage(null)}):ni=function(){Yf(ru,0)};var ou,Gf;function uu(e){Oa=e,za||(za=!0,ni())}function cu(e,t){oi=Yf(function(){e(de.unstable_now())},t)}de.unstable_IdlePriority=5;de.unstable_ImmediatePriority=1;de.unstable_LowPriority=4;de.unstable_NormalPriority=3;de.unstable_Profiling=null;de.unstable_UserBlockingPriority=2;de.unstable_cancelCallback=function(e){e.callback=null};de.unstable_continueExecution=function(){kr||Ha||(kr=!0,uu(su))};de.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"):Xf=0<e?Math.floor(1e3/e):5};de.unstable_getCurrentPriorityLevel=function(){return je};de.unstable_getFirstCallbackNode=function(){return Yt(pn)};de.unstable_next=function(e){switch(je){case 1:case 2:case 3:var t=3;break;default:t=je}var n=je;je=t;try{return e()}finally{je=n}};de.unstable_pauseExecution=function(){};de.unstable_requestPaint=function(){};de.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=je;je=e;try{return t()}finally{je=n}};de.unstable_scheduleCallback=function(e,t,n){var r=de.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:Q$++,callback:t,priorityLevel:e,startTime:n,expirationTime:o,sortIndex:-1},n>r?(e.sortIndex=n,iu(jn,e),Yt(pn)===null&&e===Yt(jn)&&(ri?(Qf(oi),oi=-1):ri=!0,cu(lu,n-r))):(e.sortIndex=o,iu(pn,e),kr||Ha||(kr=!0,uu(su))),e};de.unstable_shouldYield=Zf;de.unstable_wrapCallback=function(e){var t=je;return function(){var n=je;je=t;try{return e.apply(this,arguments)}finally{je=n}}}});var tp=Gt((Hx,ep)=>{"use strict";ep.exports=Jf()});var i0=Gt(Tt=>{"use strict";var X$=K(),kt=tp();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 sm=new Set,Ei={};function Or(e,t){ko(e,t),ko(e+"Capture",t)}function ko(e,t){for(Ei[e]=t,e=0;e<t.length;e++)sm.add(t[e])}var Mn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Mu=Object.prototype.hasOwnProperty,q$=/^[: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]*$/,np={},rp={};function Z$(e){return Mu.call(rp,e)?!0:Mu.call(np,e)?!1:q$.test(e)?rp[e]=!0:(np[e]=!0,!1)}function J$(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 eb(e,t,n,r){if(t===null||typeof t>"u"||J$(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 kc=/[\-:]([a-z])/g;function Ec(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(kc,Ec);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(kc,Ec);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(kc,Ec);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 Tc(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")&&(eb(t,n,o,r)&&(n=null),r||o===null?Z$(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 Kn=X$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ba=Symbol.for("react.element"),ao=Symbol.for("react.portal"),lo=Symbol.for("react.fragment"),_c=Symbol.for("react.strict_mode"),Iu=Symbol.for("react.profiler"),um=Symbol.for("react.provider"),cm=Symbol.for("react.context"),Pc=Symbol.for("react.forward_ref"),Du=Symbol.for("react.suspense"),Fu=Symbol.for("react.suspense_list"),Lc=Symbol.for("react.memo"),Yn=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var dm=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var op=Symbol.iterator;function ii(e){return e===null||typeof e!="object"?null:(e=op&&e[op]||e["@@iterator"],typeof e=="function"?e:null)}var Ce=Object.assign,du;function pi(e){if(du===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);du=t&&t[1]||""}return`
|
|
2
|
+
`+du+e}var fu=!1;function pu(e,t){if(!e||fu)return"";fu=!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{fu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?pi(e):""}function tb(e){switch(e.tag){case 5:return pi(e.type);case 16:return pi("Lazy");case 13:return pi("Suspense");case 19:return pi("SuspenseList");case 0:case 2:case 15:return e=pu(e.type,!1),e;case 11:return e=pu(e.type.render,!1),e;case 1:return e=pu(e.type,!0),e;default:return""}}function Ku(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 lo:return"Fragment";case ao:return"Portal";case Iu:return"Profiler";case _c:return"StrictMode";case Du:return"Suspense";case Fu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case cm:return(e.displayName||"Context")+".Consumer";case um:return(e._context.displayName||"Context")+".Provider";case Pc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Lc:return t=e.displayName||null,t!==null?t:Ku(e.type)||"Memo";case Yn:t=e._payload,e=e._init;try{return Ku(e(t))}catch{}}return null}function nb(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 Ku(t);case 8:return t===_c?"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 sr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function fm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function rb(e){var t=fm(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 Wa(e){e._valueTracker||(e._valueTracker=rb(e))}function pm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=fm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function $l(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 Ou(e,t){var n=t.checked;return Ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ip(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=sr(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 mm(e,t){t=t.checked,t!=null&&Tc(e,"checked",t,!1)}function Au(e,t){mm(e,t);var n=sr(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")?Hu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Hu(e,t.type,sr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ap(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 Hu(e,t,n){(t!=="number"||$l(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var mi=Array.isArray;function yo(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=""+sr(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 zu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(x(91));return Ce({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function lp(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(mi(n)){if(1<n.length)throw Error(x(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:sr(n)}}function hm(e,t){var n=sr(t.value),r=sr(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 sp(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function gm(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 Bu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?gm(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Va,$m=(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(Va=Va||document.createElement("div"),Va.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Va.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ti(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var $i={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},ob=["Webkit","ms","Moz","O"];Object.keys($i).forEach(function(e){ob.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),$i[t]=$i[e]})});function bm(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||$i.hasOwnProperty(e)&&$i[e]?(""+t).trim():t+"px"}function ym(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=bm(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var ib=Ce({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 Wu(e,t){if(t){if(ib[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 Vu(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 Uu=null;function Nc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ju=null,vo=null,xo=null;function up(e){if(e=Ui(e)){if(typeof ju!="function")throw Error(x(280));var t=e.stateNode;t&&(t=Ul(t),ju(e.stateNode,e.type,t))}}function vm(e){vo?xo?xo.push(e):xo=[e]:vo=e}function xm(){if(vo){var e=vo,t=xo;if(xo=vo=null,up(e),t)for(e=0;e<t.length;e++)up(t[e])}}function wm(e,t){return e(t)}function Sm(){}var mu=!1;function Cm(e,t,n){if(mu)return e(t,n);mu=!0;try{return wm(e,t,n)}finally{mu=!1,(vo!==null||xo!==null)&&(Sm(),xm())}}function _i(e,t){var n=e.stateNode;if(n===null)return null;var r=Ul(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 Gu=!1;if(Mn)try{oo={},Object.defineProperty(oo,"passive",{get:function(){Gu=!0}}),window.addEventListener("test",oo,oo),window.removeEventListener("test",oo,oo)}catch{Gu=!1}var oo;function ab(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 bi=!1,bl=null,yl=!1,Yu=null,lb={onError:function(e){bi=!0,bl=e}};function sb(e,t,n,r,o,i,a,l,s){bi=!1,bl=null,ab.apply(lb,arguments)}function ub(e,t,n,r,o,i,a,l,s){if(sb.apply(this,arguments),bi){if(bi){var u=bl;bi=!1,bl=null}else throw Error(x(198));yl||(yl=!0,Yu=u)}}function Ar(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 km(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 cp(e){if(Ar(e)!==e)throw Error(x(188))}function cb(e){var t=e.alternate;if(!t){if(t=Ar(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 cp(o),e;if(i===r)return cp(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 Em(e){return e=cb(e),e!==null?Tm(e):null}function Tm(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Tm(e);if(t!==null)return t;e=e.sibling}return null}var _m=kt.unstable_scheduleCallback,dp=kt.unstable_cancelCallback,db=kt.unstable_shouldYield,fb=kt.unstable_requestPaint,_e=kt.unstable_now,pb=kt.unstable_getCurrentPriorityLevel,Rc=kt.unstable_ImmediatePriority,Pm=kt.unstable_UserBlockingPriority,vl=kt.unstable_NormalPriority,mb=kt.unstable_LowPriority,Lm=kt.unstable_IdlePriority,zl=null,$n=null;function hb(e){if($n&&typeof $n.onCommitFiberRoot=="function")try{$n.onCommitFiberRoot(zl,e,void 0,(e.current.flags&128)===128)}catch{}}var Jt=Math.clz32?Math.clz32:bb,gb=Math.log,$b=Math.LN2;function bb(e){return e>>>=0,e===0?32:31-(gb(e)/$b|0)|0}var Ua=64,ja=4194304;function hi(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 xl(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=hi(l):(i&=a,i!==0&&(r=hi(i)))}else a=n&~o,a!==0?r=hi(a):i!==0&&(r=hi(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 yb(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 vb(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]=yb(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}function Qu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Nm(){var e=Ua;return Ua<<=1,(Ua&4194240)===0&&(Ua=64),e}function hu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Wi(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 xb(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 Mc(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 Rm(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Mm,Ic,Im,Dm,Fm,Xu=!1,Ga=[],er=null,tr=null,nr=null,Pi=new Map,Li=new Map,Xn=[],wb="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 fp(e,t){switch(e){case"focusin":case"focusout":er=null;break;case"dragenter":case"dragleave":tr=null;break;case"mouseover":case"mouseout":nr=null;break;case"pointerover":case"pointerout":Pi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Li.delete(t.pointerId)}}function ai(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=Ui(t),t!==null&&Ic(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Sb(e,t,n,r,o){switch(t){case"focusin":return er=ai(er,e,t,n,r,o),!0;case"dragenter":return tr=ai(tr,e,t,n,r,o),!0;case"mouseover":return nr=ai(nr,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Pi.set(i,ai(Pi.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Li.set(i,ai(Li.get(i)||null,e,t,n,r,o)),!0}return!1}function Km(e){var t=_r(e.target);if(t!==null){var n=Ar(t);if(n!==null){if(t=n.tag,t===13){if(t=km(n),t!==null){e.blockedOn=t,Fm(e.priority,function(){Im(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 ll(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=qu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Uu=r,n.target.dispatchEvent(r),Uu=null}else return t=Ui(n),t!==null&&Ic(t),e.blockedOn=n,!1;t.shift()}return!0}function pp(e,t,n){ll(e)&&n.delete(t)}function Cb(){Xu=!1,er!==null&&ll(er)&&(er=null),tr!==null&&ll(tr)&&(tr=null),nr!==null&&ll(nr)&&(nr=null),Pi.forEach(pp),Li.forEach(pp)}function li(e,t){e.blockedOn===t&&(e.blockedOn=null,Xu||(Xu=!0,kt.unstable_scheduleCallback(kt.unstable_NormalPriority,Cb)))}function Ni(e){function t(o){return li(o,e)}if(0<Ga.length){li(Ga[0],e);for(var n=1;n<Ga.length;n++){var r=Ga[n];r.blockedOn===e&&(r.blockedOn=null)}}for(er!==null&&li(er,e),tr!==null&&li(tr,e),nr!==null&&li(nr,e),Pi.forEach(t),Li.forEach(t),n=0;n<Xn.length;n++)r=Xn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Xn.length&&(n=Xn[0],n.blockedOn===null);)Km(n),n.blockedOn===null&&Xn.shift()}var wo=Kn.ReactCurrentBatchConfig,wl=!0;function kb(e,t,n,r){var o=ae,i=wo.transition;wo.transition=null;try{ae=1,Dc(e,t,n,r)}finally{ae=o,wo.transition=i}}function Eb(e,t,n,r){var o=ae,i=wo.transition;wo.transition=null;try{ae=4,Dc(e,t,n,r)}finally{ae=o,wo.transition=i}}function Dc(e,t,n,r){if(wl){var o=qu(e,t,n,r);if(o===null)wu(e,t,r,Sl,n),fp(e,r);else if(Sb(o,e,t,n,r))r.stopPropagation();else if(fp(e,r),t&4&&-1<wb.indexOf(e)){for(;o!==null;){var i=Ui(o);if(i!==null&&Mm(i),i=qu(e,t,n,r),i===null&&wu(e,t,r,Sl,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else wu(e,t,r,null,n)}}var Sl=null;function qu(e,t,n,r){if(Sl=null,e=Nc(r),e=_r(e),e!==null)if(t=Ar(e),t===null)e=null;else if(n=t.tag,n===13){if(e=km(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 Sl=e,null}function Om(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(pb()){case Rc:return 1;case Pm:return 4;case vl:case mb:return 16;case Lm:return 536870912;default:return 16}default:return 16}}var Zn=null,Fc=null,sl=null;function Am(){if(sl)return sl;var e,t=Fc,n=t.length,r,o="value"in Zn?Zn.value:Zn.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 sl=o.slice(e,1<r?1-r:void 0)}function ul(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 Ya(){return!0}function mp(){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)?Ya:mp,this.isPropagationStopped=mp,this}return Ce(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=Ya)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ya)},persist:function(){},isPersistent:Ya}),t}var Ro={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Kc=Et(Ro),Vi=Ce({},Ro,{view:0,detail:0}),Tb=Et(Vi),gu,$u,si,Bl=Ce({},Vi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Oc,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!==si&&(si&&e.type==="mousemove"?(gu=e.screenX-si.screenX,$u=e.screenY-si.screenY):$u=gu=0,si=e),gu)},movementY:function(e){return"movementY"in e?e.movementY:$u}}),hp=Et(Bl),_b=Ce({},Bl,{dataTransfer:0}),Pb=Et(_b),Lb=Ce({},Vi,{relatedTarget:0}),bu=Et(Lb),Nb=Ce({},Ro,{animationName:0,elapsedTime:0,pseudoElement:0}),Rb=Et(Nb),Mb=Ce({},Ro,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ib=Et(Mb),Db=Ce({},Ro,{data:0}),gp=Et(Db),Fb={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"},Ob={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ab(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ob[e])?!!t[e]:!1}function Oc(){return Ab}var Hb=Ce({},Vi,{key:function(e){if(e.key){var t=Fb[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ul(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:Oc,charCode:function(e){return e.type==="keypress"?ul(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ul(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),zb=Et(Hb),Bb=Ce({},Bl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$p=Et(Bb),Wb=Ce({},Vi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Oc}),Vb=Et(Wb),Ub=Ce({},Ro,{propertyName:0,elapsedTime:0,pseudoElement:0}),jb=Et(Ub),Gb=Ce({},Bl,{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}),Yb=Et(Gb),Qb=[9,13,27,32],Ac=Mn&&"CompositionEvent"in window,yi=null;Mn&&"documentMode"in document&&(yi=document.documentMode);var Xb=Mn&&"TextEvent"in window&&!yi,Hm=Mn&&(!Ac||yi&&8<yi&&11>=yi),bp=" ",yp=!1;function zm(e,t){switch(e){case"keyup":return Qb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var so=!1;function qb(e,t){switch(e){case"compositionend":return Bm(t);case"keypress":return t.which!==32?null:(yp=!0,bp);case"textInput":return e=t.data,e===bp&&yp?null:e;default:return null}}function Zb(e,t){if(so)return e==="compositionend"||!Ac&&zm(e,t)?(e=Am(),sl=Fc=Zn=null,so=!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 Hm&&t.locale!=="ko"?null:t.data;default:return null}}var Jb={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 vp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Jb[e.type]:t==="textarea"}function Wm(e,t,n,r){vm(r),t=Cl(t,"onChange"),0<t.length&&(n=new Kc("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var vi=null,Ri=null;function ey(e){eh(e,0)}function Wl(e){var t=fo(e);if(pm(t))return e}function ty(e,t){if(e==="change")return t}var Vm=!1;Mn&&(Mn?(Xa="oninput"in document,Xa||(yu=document.createElement("div"),yu.setAttribute("oninput","return;"),Xa=typeof yu.oninput=="function"),Qa=Xa):Qa=!1,Vm=Qa&&(!document.documentMode||9<document.documentMode));var Qa,Xa,yu;function xp(){vi&&(vi.detachEvent("onpropertychange",Um),Ri=vi=null)}function Um(e){if(e.propertyName==="value"&&Wl(Ri)){var t=[];Wm(t,Ri,e,Nc(e)),Cm(ey,t)}}function ny(e,t,n){e==="focusin"?(xp(),vi=t,Ri=n,vi.attachEvent("onpropertychange",Um)):e==="focusout"&&xp()}function ry(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Wl(Ri)}function oy(e,t){if(e==="click")return Wl(t)}function iy(e,t){if(e==="input"||e==="change")return Wl(t)}function ay(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tn=typeof Object.is=="function"?Object.is:ay;function Mi(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(!Mu.call(t,o)||!tn(e[o],t[o]))return!1}return!0}function wp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Sp(e,t){var n=wp(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=wp(n)}}function jm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gm(){for(var e=window,t=$l();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=$l(e.document)}return t}function Hc(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 ly(e){var t=Gm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&jm(n.ownerDocument.documentElement,n)){if(r!==null&&Hc(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=Sp(n,i);var a=Sp(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 sy=Mn&&"documentMode"in document&&11>=document.documentMode,uo=null,Zu=null,xi=null,Ju=!1;function Cp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ju||uo==null||uo!==$l(r)||(r=uo,"selectionStart"in r&&Hc(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}),xi&&Mi(xi,r)||(xi=r,r=Cl(Zu,"onSelect"),0<r.length&&(t=new Kc("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=uo)))}function qa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var co={animationend:qa("Animation","AnimationEnd"),animationiteration:qa("Animation","AnimationIteration"),animationstart:qa("Animation","AnimationStart"),transitionend:qa("Transition","TransitionEnd")},vu={},Ym={};Mn&&(Ym=document.createElement("div").style,"AnimationEvent"in window||(delete co.animationend.animation,delete co.animationiteration.animation,delete co.animationstart.animation),"TransitionEvent"in window||delete co.transitionend.transition);function Vl(e){if(vu[e])return vu[e];if(!co[e])return e;var t=co[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ym)return vu[e]=t[n];return e}var Qm=Vl("animationend"),Xm=Vl("animationiteration"),qm=Vl("animationstart"),Zm=Vl("transitionend"),Jm=new Map,kp="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 cr(e,t){Jm.set(e,t),Or(t,[e])}for(Za=0;Za<kp.length;Za++)Ja=kp[Za],Ep=Ja.toLowerCase(),Tp=Ja[0].toUpperCase()+Ja.slice(1),cr(Ep,"on"+Tp);var Ja,Ep,Tp,Za;cr(Qm,"onAnimationEnd");cr(Xm,"onAnimationIteration");cr(qm,"onAnimationStart");cr("dblclick","onDoubleClick");cr("focusin","onFocus");cr("focusout","onBlur");cr(Zm,"onTransitionEnd");ko("onMouseEnter",["mouseout","mouseover"]);ko("onMouseLeave",["mouseout","mouseover"]);ko("onPointerEnter",["pointerout","pointerover"]);ko("onPointerLeave",["pointerout","pointerover"]);Or("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Or("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Or("onBeforeInput",["compositionend","keypress","textInput","paste"]);Or("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Or("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Or("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gi="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(" "),uy=new Set("cancel close invalid load scroll toggle".split(" ").concat(gi));function _p(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,ub(r,t,void 0,e),e.currentTarget=null}function eh(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(yl)throw e=Yu,yl=!1,Yu=null,e}function me(e,t){var n=t[oc];n===void 0&&(n=t[oc]=new Set);var r=e+"__bubble";n.has(r)||(th(t,e,2,!1),n.add(r))}function xu(e,t,n){var r=0;t&&(r|=4),th(n,e,r,t)}var el="_reactListening"+Math.random().toString(36).slice(2);function Ii(e){if(!e[el]){e[el]=!0,sm.forEach(function(n){n!=="selectionchange"&&(uy.has(n)||xu(n,!1,e),xu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[el]||(t[el]=!0,xu("selectionchange",!1,t))}}function th(e,t,n,r){switch(Om(t)){case 1:var o=kb;break;case 4:o=Eb;break;default:o=Dc}n=o.bind(null,t,n,e),o=void 0,!Gu||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 wu(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=_r(l),a===null)return;if(s=a.tag,s===5||s===6){r=i=a;continue e}l=l.parentNode}}r=r.return}Cm(function(){var u=i,c=Nc(n),d=[];e:{var p=Jm.get(e);if(p!==void 0){var g=Kc,y=e;switch(e){case"keypress":if(ul(n)===0)break e;case"keydown":case"keyup":g=zb;break;case"focusin":y="focus",g=bu;break;case"focusout":y="blur",g=bu;break;case"beforeblur":case"afterblur":g=bu;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=hp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=Pb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=Vb;break;case Qm:case Xm:case qm:g=Rb;break;case Zm:g=jb;break;case"scroll":g=Tb;break;case"wheel":g=Yb;break;case"copy":case"cut":case"paste":g=Ib;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=$p}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&&($=_i(f,m),$!=null&&b.push(Di(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!==Uu&&(y=n.relatedTarget||n.fromElement)&&(_r(y)||y[In]))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?_r(y):null,y!==null&&(D=Ar(y),y!==D||y.tag!==5&&y.tag!==6)&&(y=null)):(g=null,y=u),g!==y)){if(b=hp,$="onMouseLeave",m="onMouseEnter",f="mouse",(e==="pointerout"||e==="pointerover")&&(b=$p,$="onPointerLeave",m="onPointerEnter",f="pointer"),D=g==null?p:fo(g),h=y==null?p:fo(y),p=new b($,f+"leave",g,n,c),p.target=D,p.relatedTarget=h,$=null,_r(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=io(h))f++;for(h=0,$=m;$;$=io($))h++;for(;0<f-h;)b=io(b),f--;for(;0<h-f;)m=io(m),h--;for(;f--;){if(b===m||m!==null&&b===m.alternate)break t;b=io(b),m=io(m)}b=null}else b=null;g!==null&&Pp(d,p,g,b,!1),y!==null&&D!==null&&Pp(d,D,y,b,!0)}}e:{if(p=u?fo(u):window,g=p.nodeName&&p.nodeName.toLowerCase(),g==="select"||g==="input"&&p.type==="file")var C=ty;else if(vp(p))if(Vm)C=iy;else{C=ry;var E=ny}else(g=p.nodeName)&&g.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(C=oy);if(C&&(C=C(e,u))){Wm(d,C,n,c);break e}E&&E(e,p,u),e==="focusout"&&(E=p._wrapperState)&&E.controlled&&p.type==="number"&&Hu(p,"number",p.value)}switch(E=u?fo(u):window,e){case"focusin":(vp(E)||E.contentEditable==="true")&&(uo=E,Zu=u,xi=null);break;case"focusout":xi=Zu=uo=null;break;case"mousedown":Ju=!0;break;case"contextmenu":case"mouseup":case"dragend":Ju=!1,Cp(d,n,c);break;case"selectionchange":if(sy)break;case"keydown":case"keyup":Cp(d,n,c)}var P;if(Ac)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 so?zm(e,n)&&(N="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&(Hm&&n.locale!=="ko"&&(so||N!=="onCompositionStart"?N==="onCompositionEnd"&&so&&(P=Am()):(Zn=c,Fc="value"in Zn?Zn.value:Zn.textContent,so=!0)),E=Cl(u,N),0<E.length&&(N=new gp(N,e,null,n,c),d.push({event:N,listeners:E}),P?N.data=P:(P=Bm(n),P!==null&&(N.data=P)))),(P=Xb?qb(e,n):Zb(e,n))&&(u=Cl(u,"onBeforeInput"),0<u.length&&(c=new gp("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=P))}eh(d,t)})}function Di(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Cl(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=_i(e,n),i!=null&&r.unshift(Di(e,i,o)),i=_i(e,t),i!=null&&r.push(Di(e,i,o))),e=e.return}return r}function io(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Pp(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=_i(n,i),s!=null&&a.unshift(Di(n,s,l))):o||(s=_i(n,i),s!=null&&a.push(Di(n,s,l)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var cy=/\r\n?/g,dy=/\u0000|\uFFFD/g;function Lp(e){return(typeof e=="string"?e:""+e).replace(cy,`
|
|
6
|
+
`).replace(dy,"")}function tl(e,t,n){if(t=Lp(t),Lp(e)!==t&&n)throw Error(x(425))}function kl(){}var ec=null,tc=null;function nc(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 rc=typeof setTimeout=="function"?setTimeout:void 0,fy=typeof clearTimeout=="function"?clearTimeout:void 0,Np=typeof Promise=="function"?Promise:void 0,py=typeof queueMicrotask=="function"?queueMicrotask:typeof Np<"u"?function(e){return Np.resolve(null).then(e).catch(my)}:rc;function my(e){setTimeout(function(){throw e})}function Su(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),Ni(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Ni(t)}function rr(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 Rp(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 Mo=Math.random().toString(36).slice(2),gn="__reactFiber$"+Mo,Fi="__reactProps$"+Mo,In="__reactContainer$"+Mo,oc="__reactEvents$"+Mo,hy="__reactListeners$"+Mo,gy="__reactHandles$"+Mo;function _r(e){var t=e[gn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[In]||n[gn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Rp(e);e!==null;){if(n=e[gn])return n;e=Rp(e)}return t}e=n,n=e.parentNode}return null}function Ui(e){return e=e[gn]||e[In],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function fo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(x(33))}function Ul(e){return e[Fi]||null}var ic=[],po=-1;function dr(e){return{current:e}}function he(e){0>po||(e.current=ic[po],ic[po]=null,po--)}function fe(e,t){po++,ic[po]=e.current,e.current=t}var ur={},Xe=dr(ur),gt=dr(!1),Mr=ur;function Eo(e,t){var n=e.type.contextTypes;if(!n)return ur;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 El(){he(gt),he(Xe)}function Mp(e,t,n){if(Xe.current!==ur)throw Error(x(168));fe(Xe,t),fe(gt,n)}function nh(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,nb(e)||"Unknown",o));return Ce({},n,r)}function Tl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ur,Mr=Xe.current,fe(Xe,e),fe(gt,gt.current),!0}function Ip(e,t,n){var r=e.stateNode;if(!r)throw Error(x(169));n?(e=nh(e,t,Mr),r.__reactInternalMemoizedMergedChildContext=e,he(gt),he(Xe),fe(Xe,e)):he(gt),fe(gt,n)}var Pn=null,jl=!1,Cu=!1;function rh(e){Pn===null?Pn=[e]:Pn.push(e)}function $y(e){jl=!0,rh(e)}function fr(){if(!Cu&&Pn!==null){Cu=!0;var e=0,t=ae;try{var n=Pn;for(ae=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Pn=null,jl=!1}catch(o){throw Pn!==null&&(Pn=Pn.slice(e+1)),_m(Rc,fr),o}finally{ae=t,Cu=!1}}return null}var mo=[],ho=0,_l=null,Pl=0,Ot=[],At=0,Ir=null,Ln=1,Nn="";function Er(e,t){mo[ho++]=Pl,mo[ho++]=_l,_l=e,Pl=t}function oh(e,t,n){Ot[At++]=Ln,Ot[At++]=Nn,Ot[At++]=Ir,Ir=e;var r=Ln;e=Nn;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,Ln=1<<32-Jt(t)+o|n<<o|r,Nn=i+e}else Ln=1<<i|n<<o|r,Nn=e}function zc(e){e.return!==null&&(Er(e,1),oh(e,1,0))}function Bc(e){for(;e===_l;)_l=mo[--ho],mo[ho]=null,Pl=mo[--ho],mo[ho]=null;for(;e===Ir;)Ir=Ot[--At],Ot[At]=null,Nn=Ot[--At],Ot[At]=null,Ln=Ot[--At],Ot[At]=null}var Ct=null,St=null,be=!1,Zt=null;function ih(e,t){var n=Ht(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 Dp(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=rr(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=Ir!==null?{id:Ln,overflow:Nn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ht(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ct=e,St=null,!0):!1;default:return!1}}function ac(e){return(e.mode&1)!==0&&(e.flags&128)===0}function lc(e){if(be){var t=St;if(t){var n=t;if(!Dp(e,t)){if(ac(e))throw Error(x(418));t=rr(n.nextSibling);var r=Ct;t&&Dp(e,t)?ih(r,n):(e.flags=e.flags&-4097|2,be=!1,Ct=e)}}else{if(ac(e))throw Error(x(418));e.flags=e.flags&-4097|2,be=!1,Ct=e}}}function Fp(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ct=e}function nl(e){if(e!==Ct)return!1;if(!be)return Fp(e),be=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!nc(e.type,e.memoizedProps)),t&&(t=St)){if(ac(e))throw ah(),Error(x(418));for(;t;)ih(e,t),t=rr(t.nextSibling)}if(Fp(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=rr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}St=null}}else St=Ct?rr(e.stateNode.nextSibling):null;return!0}function ah(){for(var e=St;e;)e=rr(e.nextSibling)}function To(){St=Ct=null,be=!1}function Wc(e){Zt===null?Zt=[e]:Zt.push(e)}var by=Kn.ReactCurrentBatchConfig;function ui(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 rl(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 lh(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=lr(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=Nu(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===lo?c(m,f,h.props.children,$,h.key):f!==null&&(f.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Yn&&Kp(C)===f.type)?($=o(f,h.props),$.ref=ui(m,f,h),$.return=m,$):($=gl(h.type,h.key,h.props,null,m.mode,$),$.ref=ui(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=Ru(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=Rr(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=Nu(""+f,m.mode,h),f.return=m,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case Ba:return h=gl(f.type,f.key,f.props,null,m.mode,h),h.ref=ui(m,null,f),h.return=m,h;case ao:return f=Ru(f,m.mode,h),f.return=m,f;case Yn:var $=f._init;return d(m,$(f._payload),h)}if(mi(f)||ii(f))return f=Rr(f,m.mode,h,null),f.return=m,f;rl(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 Ba:return h.key===C?s(m,f,h,$):null;case ao:return h.key===C?u(m,f,h,$):null;case Yn:return C=h._init,p(m,f,C(h._payload),$)}if(mi(h)||ii(h))return C!==null?null:c(m,f,h,$,null);rl(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 Ba:return m=m.get($.key===null?h:$.key)||null,s(f,m,$,C);case ao:return m=m.get($.key===null?h:$.key)||null,u(f,m,$,C);case Yn:var E=$._init;return g(m,f,h,E($._payload),C)}if(mi($)||ii($))return m=m.get(h)||null,c(f,m,$,C,null);rl(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&&Er(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&&Er(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(Y){return t(m,Y)}),be&&Er(m,N),C}function b(m,f,h,$){var C=ii(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 Y=p(m,P,F.value,$);if(Y===null){P===null&&(P=R);break}e&&P&&Y.alternate===null&&t(m,P),f=i(Y,f,N),E===null?C=Y:E.sibling=Y,E=Y,P=R}if(F.done)return n(m,P),be&&Er(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&&Er(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&&Er(m,N),C}function D(m,f,h,$){if(typeof h=="object"&&h!==null&&h.type===lo&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case Ba:e:{for(var C=h.key,E=f;E!==null;){if(E.key===C){if(C=h.type,C===lo){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===Yn&&Kp(C)===E.type){n(m,E.sibling),f=o(E,h.props),f.ref=ui(m,E,h),f.return=m,m=f;break e}n(m,E);break}else t(m,E);E=E.sibling}h.type===lo?(f=Rr(h.props.children,m.mode,$,h.key),f.return=m,m=f):($=gl(h.type,h.key,h.props,null,m.mode,$),$.ref=ui(m,f,h),$.return=m,m=$)}return a(m);case ao: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=Ru(h,m.mode,$),f.return=m,m=f}return a(m);case Yn:return E=h._init,D(m,f,E(h._payload),$)}if(mi(h))return y(m,f,h,$);if(ii(h))return b(m,f,h,$);rl(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=Nu(h,m.mode,$),f.return=m,m=f),a(m)):n(m,f)}return D}var _o=lh(!0),sh=lh(!1),Ll=dr(null),Nl=null,go=null,Vc=null;function Uc(){Vc=go=Nl=null}function jc(e){var t=Ll.current;he(Ll),e._currentValue=t}function sc(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 So(e,t){Nl=e,Vc=go=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(ht=!0),e.firstContext=null)}function Bt(e){var t=e._currentValue;if(Vc!==e)if(e={context:e,memoizedValue:t,next:null},go===null){if(Nl===null)throw Error(x(308));go=e,Nl.dependencies={lanes:0,firstContext:e}}else go=go.next=e;return t}var Pr=null;function Gc(e){Pr===null?Pr=[e]:Pr.push(e)}function uh(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Gc(t)):(n.next=o.next,o.next=n),t.interleaved=n,Dn(e,r)}function Dn(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 Qn=!1;function Yc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ch(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 Rn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function or(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,Dn(e,n)}return o=r.interleaved,o===null?(t.next=t,Gc(r)):(t.next=o.next,o.next=t),r.interleaved=t,Dn(e,n)}function cl(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,Mc(e,n)}}function Op(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 Rl(e,t,n,r){var o=e.updateQueue;Qn=!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=Ce({},d,p);break e;case 2:Qn=!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);Fr|=a,e.lanes=a,e.memoizedState=d}}function Ap(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 ji={},bn=dr(ji),Ki=dr(ji),Oi=dr(ji);function Lr(e){if(e===ji)throw Error(x(174));return e}function Qc(e,t){switch(fe(Oi,t),fe(Ki,e),fe(bn,ji),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Bu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Bu(t,e)}he(bn),fe(bn,t)}function Po(){he(bn),he(Ki),he(Oi)}function dh(e){Lr(Oi.current);var t=Lr(bn.current),n=Bu(t,e.type);t!==n&&(fe(Ki,e),fe(bn,n))}function Xc(e){Ki.current===e&&(he(bn),he(Ki))}var we=dr(0);function Ml(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 ku=[];function qc(){for(var e=0;e<ku.length;e++)ku[e]._workInProgressVersionPrimary=null;ku.length=0}var dl=Kn.ReactCurrentDispatcher,Eu=Kn.ReactCurrentBatchConfig,Dr=0,Se=null,De=null,Ke=null,Il=!1,wi=!1,Ai=0,yy=0;function Ge(){throw Error(x(321))}function Zc(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 Jc(e,t,n,r,o,i){if(Dr=i,Se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,dl.current=e===null||e.memoizedState===null?Sy:Cy,e=n(r,o),wi){i=0;do{if(wi=!1,Ai=0,25<=i)throw Error(x(301));i+=1,Ke=De=null,t.updateQueue=null,dl.current=ky,e=n(r,o)}while(wi)}if(dl.current=Dl,t=De!==null&&De.next!==null,Dr=0,Ke=De=Se=null,Il=!1,t)throw Error(x(300));return e}function ed(){var e=Ai!==0;return Ai=0,e}function hn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?Se.memoizedState=Ke=e:Ke=Ke.next=e,Ke}function Wt(){if(De===null){var e=Se.alternate;e=e!==null?e.memoizedState:null}else e=De.next;var t=Ke===null?Se.memoizedState:Ke.next;if(t!==null)Ke=t,De=e;else{if(e===null)throw Error(x(310));De=e,e={memoizedState:De.memoizedState,baseState:De.baseState,baseQueue:De.baseQueue,queue:De.queue,next:null},Ke===null?Se.memoizedState=Ke=e:Ke=Ke.next=e}return Ke}function Hi(e,t){return typeof t=="function"?t(e):t}function Tu(e){var t=Wt(),n=t.queue;if(n===null)throw Error(x(311));n.lastRenderedReducer=e;var r=De,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((Dr&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,Se.lanes|=c,Fr|=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,Se.lanes|=i,Fr|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function _u(e){var t=Wt(),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 fh(){}function ph(e,t){var n=Se,r=Wt(),o=t(),i=!tn(r.memoizedState,o);if(i&&(r.memoizedState=o,ht=!0),r=r.queue,td(gh.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Ke!==null&&Ke.memoizedState.tag&1){if(n.flags|=2048,zi(9,hh.bind(null,n,r,o,t),void 0,null),Oe===null)throw Error(x(349));(Dr&30)!==0||mh(n,t,o)}return o}function mh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Se.updateQueue,t===null?(t={lastEffect:null,stores:null},Se.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function hh(e,t,n,r){t.value=n,t.getSnapshot=r,$h(t)&&bh(e)}function gh(e,t,n){return n(function(){$h(t)&&bh(e)})}function $h(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!tn(e,n)}catch{return!0}}function bh(e){var t=Dn(e,1);t!==null&&en(t,e,1,-1)}function Hp(e){var t=hn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Hi,lastRenderedState:e},t.queue=e,e=e.dispatch=wy.bind(null,Se,e),[t.memoizedState,e]}function zi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Se.updateQueue,t===null?(t={lastEffect:null,stores:null},Se.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 yh(){return Wt().memoizedState}function fl(e,t,n,r){var o=hn();Se.flags|=e,o.memoizedState=zi(1|t,n,void 0,r===void 0?null:r)}function Gl(e,t,n,r){var o=Wt();r=r===void 0?null:r;var i=void 0;if(De!==null){var a=De.memoizedState;if(i=a.destroy,r!==null&&Zc(r,a.deps)){o.memoizedState=zi(t,n,i,r);return}}Se.flags|=e,o.memoizedState=zi(1|t,n,i,r)}function zp(e,t){return fl(8390656,8,e,t)}function td(e,t){return Gl(2048,8,e,t)}function vh(e,t){return Gl(4,2,e,t)}function xh(e,t){return Gl(4,4,e,t)}function wh(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 Sh(e,t,n){return n=n!=null?n.concat([e]):null,Gl(4,4,wh.bind(null,t,e),n)}function nd(){}function Ch(e,t){var n=Wt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Zc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function kh(e,t){var n=Wt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Zc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Eh(e,t,n){return(Dr&21)===0?(e.baseState&&(e.baseState=!1,ht=!0),e.memoizedState=n):(tn(n,t)||(n=Nm(),Se.lanes|=n,Fr|=n,e.baseState=!0),t)}function vy(e,t){var n=ae;ae=n!==0&&4>n?n:4,e(!0);var r=Eu.transition;Eu.transition={};try{e(!1),t()}finally{ae=n,Eu.transition=r}}function Th(){return Wt().memoizedState}function xy(e,t,n){var r=ar(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},_h(e))Ph(t,n);else if(n=uh(e,t,n,r),n!==null){var o=tt();en(n,e,r,o),Lh(n,t,r)}}function wy(e,t,n){var r=ar(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(_h(e))Ph(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,Gc(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=uh(e,t,o,r),n!==null&&(o=tt(),en(n,e,r,o),Lh(n,t,r))}}function _h(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function Ph(e,t){wi=Il=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Lh(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Mc(e,n)}}var Dl={readContext:Bt,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useInsertionEffect:Ge,useLayoutEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useMutableSource:Ge,useSyncExternalStore:Ge,useId:Ge,unstable_isNewReconciler:!1},Sy={readContext:Bt,useCallback:function(e,t){return hn().memoizedState=[e,t===void 0?null:t],e},useContext:Bt,useEffect:zp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,fl(4194308,4,wh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return fl(4194308,4,e,t)},useInsertionEffect:function(e,t){return fl(4,2,e,t)},useMemo:function(e,t){var n=hn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=hn();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=xy.bind(null,Se,e),[r.memoizedState,e]},useRef:function(e){var t=hn();return e={current:e},t.memoizedState=e},useState:Hp,useDebugValue:nd,useDeferredValue:function(e){return hn().memoizedState=e},useTransition:function(){var e=Hp(!1),t=e[0];return e=vy.bind(null,e[1]),hn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Se,o=hn();if(be){if(n===void 0)throw Error(x(407));n=n()}else{if(n=t(),Oe===null)throw Error(x(349));(Dr&30)!==0||mh(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,zp(gh.bind(null,r,i,e),[e]),r.flags|=2048,zi(9,hh.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=hn(),t=Oe.identifierPrefix;if(be){var n=Nn,r=Ln;n=(r&~(1<<32-Jt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ai++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=yy++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Cy={readContext:Bt,useCallback:Ch,useContext:Bt,useEffect:td,useImperativeHandle:Sh,useInsertionEffect:vh,useLayoutEffect:xh,useMemo:kh,useReducer:Tu,useRef:yh,useState:function(){return Tu(Hi)},useDebugValue:nd,useDeferredValue:function(e){var t=Wt();return Eh(t,De.memoizedState,e)},useTransition:function(){var e=Tu(Hi)[0],t=Wt().memoizedState;return[e,t]},useMutableSource:fh,useSyncExternalStore:ph,useId:Th,unstable_isNewReconciler:!1},ky={readContext:Bt,useCallback:Ch,useContext:Bt,useEffect:td,useImperativeHandle:Sh,useInsertionEffect:vh,useLayoutEffect:xh,useMemo:kh,useReducer:_u,useRef:yh,useState:function(){return _u(Hi)},useDebugValue:nd,useDeferredValue:function(e){var t=Wt();return De===null?t.memoizedState=e:Eh(t,De.memoizedState,e)},useTransition:function(){var e=_u(Hi)[0],t=Wt().memoizedState;return[e,t]},useMutableSource:fh,useSyncExternalStore:ph,useId:Th,unstable_isNewReconciler:!1};function Xt(e,t){if(e&&e.defaultProps){t=Ce({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function uc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ce({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Yl={isMounted:function(e){return(e=e._reactInternals)?Ar(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tt(),o=ar(e),i=Rn(r,o);i.payload=t,n!=null&&(i.callback=n),t=or(e,i,o),t!==null&&(en(t,e,o,r),cl(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tt(),o=ar(e),i=Rn(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=or(e,i,o),t!==null&&(en(t,e,o,r),cl(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tt(),r=ar(e),o=Rn(n,r);o.tag=2,t!=null&&(o.callback=t),t=or(e,o,r),t!==null&&(en(t,e,r,n),cl(t,e,r))}};function Bp(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?!Mi(n,r)||!Mi(o,i):!0}function Nh(e,t,n){var r=!1,o=ur,i=t.contextType;return typeof i=="object"&&i!==null?i=Bt(i):(o=$t(t)?Mr:Xe.current,r=t.contextTypes,i=(r=r!=null)?Eo(e,o):ur),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Yl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Wp(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&&Yl.enqueueReplaceState(t,t.state,null)}function cc(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Yc(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Bt(i):(i=$t(t)?Mr:Xe.current,o.context=Eo(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(uc(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&&Yl.enqueueReplaceState(o,o.state,null),Rl(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Lo(e,t){try{var n="",r=t;do n+=tb(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 Pu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function dc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Ey=typeof WeakMap=="function"?WeakMap:Map;function Rh(e,t,n){n=Rn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Kl||(Kl=!0,xc=r),dc(e,t)},n}function Mh(e,t,n){n=Rn(-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(){dc(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){dc(e,t),typeof r!="function"&&(ir===null?ir=new Set([this]):ir.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function Vp(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ey;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=Hy.bind(null,e,t,n),t.then(e,e))}function Up(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 jp(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=Rn(-1,1),t.tag=2,or(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var Ty=Kn.ReactCurrentOwner,ht=!1;function et(e,t,n,r){t.child=e===null?sh(t,null,n,r):_o(t,e.child,n,r)}function Gp(e,t,n,r,o){n=n.render;var i=t.ref;return So(t,o),r=Jc(e,t,n,r,i,o),n=ed(),e!==null&&!ht?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Fn(e,t,o)):(be&&n&&zc(t),t.flags|=1,et(e,t,r,o),t.child)}function Yp(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!cd(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Ih(e,t,i,r,o)):(e=gl(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:Mi,n(a,r)&&e.ref===t.ref)return Fn(e,t,o)}return t.flags|=1,e=lr(i,r),e.ref=t.ref,e.return=t,t.child=e}function Ih(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Mi(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,Fn(e,t,o)}return fc(e,t,n,r,o)}function Dh(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},fe(bo,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,fe(bo,wt),wt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,fe(bo,wt),wt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,fe(bo,wt),wt|=r;return et(e,t,o,n),t.child}function Fh(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function fc(e,t,n,r,o){var i=$t(n)?Mr:Xe.current;return i=Eo(t,i),So(t,o),n=Jc(e,t,n,r,i,o),r=ed(),e!==null&&!ht?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Fn(e,t,o)):(be&&r&&zc(t),t.flags|=1,et(e,t,n,o),t.child)}function Qp(e,t,n,r,o){if($t(n)){var i=!0;Tl(t)}else i=!1;if(So(t,o),t.stateNode===null)pl(e,t),Nh(t,n,r),cc(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=Bt(u):(u=$t(n)?Mr:Xe.current,u=Eo(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)&&Wp(t,a,r,u),Qn=!1;var p=t.memoizedState;a.state=p,Rl(t,r,a,o),s=t.memoizedState,l!==r||p!==s||gt.current||Qn?(typeof c=="function"&&(uc(t,n,c,r),s=t.memoizedState),(l=Qn||Bp(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,ch(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=Bt(s):(s=$t(n)?Mr:Xe.current,s=Eo(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)&&Wp(t,a,r,s),Qn=!1,p=t.memoizedState,a.state=p,Rl(t,r,a,o);var y=t.memoizedState;l!==d||p!==y||gt.current||Qn?(typeof g=="function"&&(uc(t,n,g,r),y=t.memoizedState),(u=Qn||Bp(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 pc(e,t,n,r,i,o)}function pc(e,t,n,r,o,i){Fh(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&Ip(t,n,!1),Fn(e,t,i);r=t.stateNode,Ty.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=_o(t,e.child,null,i),t.child=_o(t,null,l,i)):et(e,t,l,i),t.memoizedState=r.state,o&&Ip(t,n,!0),t.child}function Kh(e){var t=e.stateNode;t.pendingContext?Mp(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Mp(e,t.context,!1),Qc(e,t.containerInfo)}function Xp(e,t,n,r,o){return To(),Wc(o),t.flags|=256,et(e,t,n,r),t.child}var mc={dehydrated:null,treeContext:null,retryLane:0};function hc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Oh(e,t,n){var r=t.pendingProps,o=we.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),fe(we,o&1),e===null)return lc(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=ql(a,r,0,null),e=Rr(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=hc(n),t.memoizedState=mc,e):rd(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=lr(o,s),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?i=lr(l,i):(i=Rr(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?hc(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=mc,r}return i=e.child,e=i.sibling,r=lr(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 rd(e,t){return t=ql({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ol(e,t,n,r){return r!==null&&Wc(r),_o(t,e.child,null,n),e=rd(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=Pu(Error(x(422))),ol(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=ql({mode:"visible",children:r.children},o,0,null),i=Rr(i,o,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,(t.mode&1)!==0&&_o(t,e.child,null,a),t.child.memoizedState=hc(a),t.memoizedState=mc,i);if((t.mode&1)===0)return ol(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=Pu(i,r,void 0),ol(e,t,a,r)}if(l=(a&e.childLanes)!==0,ht||l){if(r=Oe,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,Dn(e,o),en(r,e,o,-1))}return ud(),r=Pu(Error(x(421))),ol(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=zy.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,St=rr(o.nextSibling),Ct=t,be=!0,Zt=null,e!==null&&(Ot[At++]=Ln,Ot[At++]=Nn,Ot[At++]=Ir,Ln=e.id,Nn=e.overflow,Ir=t),t=rd(t,r.children),t.flags|=4096,t)}function qp(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),sc(e.return,t,n)}function Lu(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 Ah(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(et(e,t,r.children,n),r=we.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&&qp(e,n,t);else if(e.tag===19)qp(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(fe(we,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&&Ml(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Lu(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&&Ml(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Lu(t,!0,n,null,i);break;case"together":Lu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function pl(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Fn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Fr|=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=lr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=lr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Py(e,t,n){switch(t.tag){case 3:Kh(t),To();break;case 5:dh(t);break;case 1:$t(t.type)&&Tl(t);break;case 4:Qc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;fe(Ll,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(fe(we,we.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?Oh(e,t,n):(fe(we,we.current&1),e=Fn(e,t,n),e!==null?e.sibling:null);fe(we,we.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return Ah(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),fe(we,we.current),r)break;return null;case 22:case 23:return t.lanes=0,Dh(e,t,n)}return Fn(e,t,n)}var Hh,gc,zh,Bh;Hh=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}};gc=function(){};zh=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Lr(bn.current);var i=null;switch(n){case"input":o=Ou(e,o),r=Ou(e,r),i=[];break;case"select":o=Ce({},o,{value:void 0}),r=Ce({},r,{value:void 0}),i=[];break;case"textarea":o=zu(e,o),r=zu(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=kl)}Wu(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"&&(Ei.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"&&(Ei.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&me("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)}};Bh=function(e,t,n,r){n!==r&&(t.flags|=4)};function ci(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 Ye(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 Ly(e,t,n){var r=t.pendingProps;switch(Bc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ye(t),null;case 1:return $t(t.type)&&El(),Ye(t),null;case 3:return r=t.stateNode,Po(),he(gt),he(Xe),qc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(nl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Zt!==null&&(Cc(Zt),Zt=null))),gc(e,t),Ye(t),null;case 5:Xc(t);var o=Lr(Oi.current);if(n=t.type,e!==null&&t.stateNode!=null)zh(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 Ye(t),null}if(e=Lr(bn.current),nl(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[gn]=t,r[Fi]=i,e=(t.mode&1)!==0,n){case"dialog":me("cancel",r),me("close",r);break;case"iframe":case"object":case"embed":me("load",r);break;case"video":case"audio":for(o=0;o<gi.length;o++)me(gi[o],r);break;case"source":me("error",r);break;case"img":case"image":case"link":me("error",r),me("load",r);break;case"details":me("toggle",r);break;case"input":ip(r,i),me("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},me("invalid",r);break;case"textarea":lp(r,i),me("invalid",r)}Wu(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&&tl(r.textContent,l,e),o=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&tl(r.textContent,l,e),o=["children",""+l]):Ei.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&me("scroll",r)}switch(n){case"input":Wa(r),ap(r,i,!0);break;case"textarea":Wa(r),sp(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=kl)}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=gm(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[gn]=t,e[Fi]=r,Hh(e,t,!1,!1),t.stateNode=e;e:{switch(a=Vu(n,r),n){case"dialog":me("cancel",e),me("close",e),o=r;break;case"iframe":case"object":case"embed":me("load",e),o=r;break;case"video":case"audio":for(o=0;o<gi.length;o++)me(gi[o],e);o=r;break;case"source":me("error",e),o=r;break;case"img":case"image":case"link":me("error",e),me("load",e),o=r;break;case"details":me("toggle",e),o=r;break;case"input":ip(e,r),o=Ou(e,r),me("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Ce({},r,{value:void 0}),me("invalid",e);break;case"textarea":lp(e,r),o=zu(e,r),me("invalid",e);break;default:o=r}Wu(n,o),l=o;for(i in l)if(l.hasOwnProperty(i)){var s=l[i];i==="style"?ym(e,s):i==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&$m(e,s)):i==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&Ti(e,s):typeof s=="number"&&Ti(e,""+s):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Ei.hasOwnProperty(i)?s!=null&&i==="onScroll"&&me("scroll",e):s!=null&&Tc(e,i,s,a))}switch(n){case"input":Wa(e),ap(e,r,!1);break;case"textarea":Wa(e),sp(e);break;case"option":r.value!=null&&e.setAttribute("value",""+sr(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?yo(e,!!r.multiple,i,!1):r.defaultValue!=null&&yo(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=kl)}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 Ye(t),null;case 6:if(e&&t.stateNode!=null)Bh(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(x(166));if(n=Lr(Oi.current),Lr(bn.current),nl(t)){if(r=t.stateNode,n=t.memoizedProps,r[gn]=t,(i=r.nodeValue!==n)&&(e=Ct,e!==null))switch(e.tag){case 3:tl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&tl(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[gn]=t,t.stateNode=r}return Ye(t),null;case 13:if(he(we),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(be&&St!==null&&(t.mode&1)!==0&&(t.flags&128)===0)ah(),To(),t.flags|=98560,i=!1;else if(i=nl(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[gn]=t}else To(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ye(t),i=!1}else Zt!==null&&(Cc(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||(we.current&1)!==0?Fe===0&&(Fe=3):ud())),t.updateQueue!==null&&(t.flags|=4),Ye(t),null);case 4:return Po(),gc(e,t),e===null&&Ii(t.stateNode.containerInfo),Ye(t),null;case 10:return jc(t.type._context),Ye(t),null;case 17:return $t(t.type)&&El(),Ye(t),null;case 19:if(he(we),i=t.memoizedState,i===null)return Ye(t),null;if(r=(t.flags&128)!==0,a=i.rendering,a===null)if(r)ci(i,!1);else{if(Fe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(a=Ml(e),a!==null){for(t.flags|=128,ci(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 fe(we,we.current&1|2),t.child}e=e.sibling}i.tail!==null&&_e()>No&&(t.flags|=128,r=!0,ci(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ml(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ci(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!be)return Ye(t),null}else 2*_e()-i.renderingStartTime>No&&n!==1073741824&&(t.flags|=128,r=!0,ci(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=_e(),t.sibling=null,n=we.current,fe(we,r?n&1|2:n&1),t):(Ye(t),null);case 22:case 23:return sd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(wt&1073741824)!==0&&(Ye(t),t.subtreeFlags&6&&(t.flags|=8192)):Ye(t),null;case 24:return null;case 25:return null}throw Error(x(156,t.tag))}function Ny(e,t){switch(Bc(t),t.tag){case 1:return $t(t.type)&&El(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Po(),he(gt),he(Xe),qc(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Xc(t),null;case 13:if(he(we),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(x(340));To()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return he(we),null;case 4:return Po(),null;case 10:return jc(t.type._context),null;case 22:case 23:return sd(),null;case 24:return null;default:return null}}var il=!1,Qe=!1,Ry=typeof WeakSet=="function"?WeakSet:Set,I=null;function $o(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ee(e,t,r)}else n.current=null}function $c(e,t,n){try{n()}catch(r){Ee(e,t,r)}}var Zp=!1;function My(e,t){if(ec=wl,e=Gm(),Hc(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(tc={focusedElem:e,selectionRange:n},wl=!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($){Ee(t,t.return,$)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return y=Zp,Zp=!1,y}function Si(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&&$c(t,n,i)}o=o.next}while(o!==r)}}function Ql(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 bc(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 Wh(e){var t=e.alternate;t!==null&&(e.alternate=null,Wh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[gn],delete t[Fi],delete t[oc],delete t[hy],delete t[gy])),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 Vh(e){return e.tag===5||e.tag===3||e.tag===4}function Jp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Vh(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 yc(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=kl));else if(r!==4&&(e=e.child,e!==null))for(yc(e,t,n),e=e.sibling;e!==null;)yc(e,t,n),e=e.sibling}function vc(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(vc(e,t,n),e=e.sibling;e!==null;)vc(e,t,n),e=e.sibling}var Be=null,qt=!1;function Gn(e,t,n){for(n=n.child;n!==null;)Uh(e,t,n),n=n.sibling}function Uh(e,t,n){if($n&&typeof $n.onCommitFiberUnmount=="function")try{$n.onCommitFiberUnmount(zl,n)}catch{}switch(n.tag){case 5:Qe||$o(n,t);case 6:var r=Be,o=qt;Be=null,Gn(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?Su(e.parentNode,n):e.nodeType===1&&Su(e,n),Ni(e)):Su(Be,n.stateNode));break;case 4:r=Be,o=qt,Be=n.stateNode.containerInfo,qt=!0,Gn(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)&&$c(n,t,a),o=o.next}while(o!==r)}Gn(e,t,n);break;case 1:if(!Qe&&($o(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ee(n,t,l)}Gn(e,t,n);break;case 21:Gn(e,t,n);break;case 22:n.mode&1?(Qe=(r=Qe)||n.memoizedState!==null,Gn(e,t,n),Qe=r):Gn(e,t,n);break;default:Gn(e,t,n)}}function em(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Ry),t.forEach(function(r){var o=By.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Qt(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));Uh(i,a,o),Be=null,qt=!1;var s=o.alternate;s!==null&&(s.return=null),o.return=null}catch(u){Ee(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)jh(t,e),t=t.sibling}function jh(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Qt(t,e),mn(e),r&4){try{Si(3,e,e.return),Ql(3,e)}catch(b){Ee(e,e.return,b)}try{Si(5,e,e.return)}catch(b){Ee(e,e.return,b)}}break;case 1:Qt(t,e),mn(e),r&512&&n!==null&&$o(n,n.return);break;case 5:if(Qt(t,e),mn(e),r&512&&n!==null&&$o(n,n.return),e.flags&32){var o=e.stateNode;try{Ti(o,"")}catch(b){Ee(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&&mm(o,i),Vu(l,a);var u=Vu(l,i);for(a=0;a<s.length;a+=2){var c=s[a],d=s[a+1];c==="style"?ym(o,d):c==="dangerouslySetInnerHTML"?$m(o,d):c==="children"?Ti(o,d):Tc(o,c,d,u)}switch(l){case"input":Au(o,i);break;case"textarea":hm(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var g=i.value;g!=null?yo(o,!!i.multiple,g,!1):p!==!!i.multiple&&(i.defaultValue!=null?yo(o,!!i.multiple,i.defaultValue,!0):yo(o,!!i.multiple,i.multiple?[]:"",!1))}o[Fi]=i}catch(b){Ee(e,e.return,b)}}break;case 6:if(Qt(t,e),mn(e),r&4){if(e.stateNode===null)throw Error(x(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(b){Ee(e,e.return,b)}}break;case 3:if(Qt(t,e),mn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ni(t.containerInfo)}catch(b){Ee(e,e.return,b)}break;case 4:Qt(t,e),mn(e);break;case 13:Qt(t,e),mn(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(ad=_e())),r&4&&em(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Qe=(u=Qe)||c,Qt(t,e),Qe=u):Qt(t,e),mn(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:Si(4,p,p.return);break;case 1:$o(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){Ee(r,n,b)}}break;case 5:$o(p,p.return);break;case 22:if(p.memoizedState!==null){nm(d);continue}}g!==null?(g.return=p,I=g):nm(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=bm("display",a))}catch(b){Ee(e,e.return,b)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(b){Ee(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:Qt(t,e),mn(e),r&4&&em(e);break;case 21:break;default:Qt(t,e),mn(e)}}function mn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Vh(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&&(Ti(o,""),r.flags&=-33);var i=Jp(e);vc(e,i,o);break;case 3:case 4:var a=r.stateNode.containerInfo,l=Jp(e);yc(e,l,a);break;default:throw Error(x(161))}}catch(s){Ee(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Iy(e,t,n){I=e,Gh(e,t,n)}function Gh(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||il;if(!a){var l=o.alternate,s=l!==null&&l.memoizedState!==null||Qe;l=il;var u=Qe;if(il=a,(Qe=s)&&!u)for(I=o;I!==null;)a=I,s=a.child,a.tag===22&&a.memoizedState!==null?rm(o):s!==null?(s.return=a,I=s):rm(o);for(;i!==null;)I=i,Gh(i,t,n),i=i.sibling;I=o,il=l,Qe=u}tm(e,t,n)}else(o.subtreeFlags&8772)!==0&&i!==null?(i.return=o,I=i):tm(e,t,n)}}function tm(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||Ql(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&&Ap(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}Ap(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&&Ni(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(x(163))}Qe||t.flags&512&&bc(t)}catch(p){Ee(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 nm(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 rm(e){for(;I!==null;){var t=I;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ql(4,t)}catch(s){Ee(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(s){Ee(t,o,s)}}var i=t.return;try{bc(t)}catch(s){Ee(t,i,s)}break;case 5:var a=t.return;try{bc(t)}catch(s){Ee(t,a,s)}}}catch(s){Ee(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 Dy=Math.ceil,Fl=Kn.ReactCurrentDispatcher,od=Kn.ReactCurrentOwner,zt=Kn.ReactCurrentBatchConfig,J=0,Oe=null,Ne=null,We=0,wt=0,bo=dr(0),Fe=0,Bi=null,Fr=0,Xl=0,id=0,Ci=null,mt=null,ad=0,No=1/0,_n=null,Kl=!1,xc=null,ir=null,al=!1,Jn=null,Ol=0,ki=0,wc=null,ml=-1,hl=0;function tt(){return(J&6)!==0?_e():ml!==-1?ml:ml=_e()}function ar(e){return(e.mode&1)===0?1:(J&2)!==0&&We!==0?We&-We:by.transition!==null?(hl===0&&(hl=Nm()),hl):(e=ae,e!==0||(e=window.event,e=e===void 0?16:Om(e.type)),e)}function en(e,t,n,r){if(50<ki)throw ki=0,wc=null,Error(x(185));Wi(e,n,r),((J&2)===0||e!==Oe)&&(e===Oe&&((J&2)===0&&(Xl|=n),Fe===4&&qn(e,We)),bt(e,r),n===1&&J===0&&(t.mode&1)===0&&(No=_e()+500,jl&&fr()))}function bt(e,t){var n=e.callbackNode;vb(e,t);var r=xl(e,e===Oe?We:0);if(r===0)n!==null&&dp(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&dp(n),t===1)e.tag===0?$y(om.bind(null,e)):rh(om.bind(null,e)),py(function(){(J&6)===0&&fr()}),n=null;else{switch(Rm(r)){case 1:n=Rc;break;case 4:n=Pm;break;case 16:n=vl;break;case 536870912:n=Lm;break;default:n=vl}n=t0(n,Yh.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Yh(e,t){if(ml=-1,hl=0,(J&6)!==0)throw Error(x(327));var n=e.callbackNode;if(Co()&&e.callbackNode!==n)return null;var r=xl(e,e===Oe?We:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=Al(e,r);else{t=r;var o=J;J|=2;var i=Xh();(Oe!==e||We!==t)&&(_n=null,No=_e()+500,Nr(e,t));do try{Oy();break}catch(l){Qh(e,l)}while(!0);Uc(),Fl.current=i,J=o,Ne!==null?t=0:(Oe=null,We=0,t=Fe)}if(t!==0){if(t===2&&(o=Qu(e),o!==0&&(r=o,t=Sc(e,o))),t===1)throw n=Bi,Nr(e,0),qn(e,r),bt(e,_e()),n;if(t===6)qn(e,r);else{if(o=e.current.alternate,(r&30)===0&&!Fy(o)&&(t=Al(e,r),t===2&&(i=Qu(e),i!==0&&(r=i,t=Sc(e,i))),t===1))throw n=Bi,Nr(e,0),qn(e,r),bt(e,_e()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(x(345));case 2:Tr(e,mt,_n);break;case 3:if(qn(e,r),(r&130023424)===r&&(t=ad+500-_e(),10<t)){if(xl(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){tt(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=rc(Tr.bind(null,e,mt,_n),t);break}Tr(e,mt,_n);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=_e()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Dy(r/1960))-r,10<r){e.timeoutHandle=rc(Tr.bind(null,e,mt,_n),r);break}Tr(e,mt,_n);break;case 5:Tr(e,mt,_n);break;default:throw Error(x(329))}}}return bt(e,_e()),e.callbackNode===n?Yh.bind(null,e):null}function Sc(e,t){var n=Ci;return e.current.memoizedState.isDehydrated&&(Nr(e,t).flags|=256),e=Al(e,t),e!==2&&(t=mt,mt=n,t!==null&&Cc(t)),e}function Cc(e){mt===null?mt=e:mt.push.apply(mt,e)}function Fy(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&=~id,t&=~Xl,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 om(e){if((J&6)!==0)throw Error(x(327));Co();var t=xl(e,0);if((t&1)===0)return bt(e,_e()),null;var n=Al(e,t);if(e.tag!==0&&n===2){var r=Qu(e);r!==0&&(t=r,n=Sc(e,r))}if(n===1)throw n=Bi,Nr(e,0),qn(e,t),bt(e,_e()),n;if(n===6)throw Error(x(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Tr(e,mt,_n),bt(e,_e()),null}function ld(e,t){var n=J;J|=1;try{return e(t)}finally{J=n,J===0&&(No=_e()+500,jl&&fr())}}function Kr(e){Jn!==null&&Jn.tag===0&&(J&6)===0&&Co();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&&fr()}}function sd(){wt=bo.current,he(bo)}function Nr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,fy(n)),Ne!==null)for(n=Ne.return;n!==null;){var r=n;switch(Bc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&El();break;case 3:Po(),he(gt),he(Xe),qc();break;case 5:Xc(r);break;case 4:Po();break;case 13:he(we);break;case 19:he(we);break;case 10:jc(r.type._context);break;case 22:case 23:sd()}n=n.return}if(Oe=e,Ne=e=lr(e.current,null),We=wt=t,Fe=0,Bi=null,id=Xl=Fr=0,mt=Ci=null,Pr!==null){for(t=0;t<Pr.length;t++)if(n=Pr[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}Pr=null}return e}function Qh(e,t){do{var n=Ne;try{if(Uc(),dl.current=Dl,Il){for(var r=Se.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Il=!1}if(Dr=0,Ke=De=Se=null,wi=!1,Ai=0,od.current=null,n===null||n.return===null){Fe=1,Bi=t,Ne=null;break}e:{var i=e,a=n.return,l=n,s=t;if(t=We,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=Up(a);if(g!==null){g.flags&=-257,jp(g,a,l,i,t),g.mode&1&&Vp(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){Vp(i,u,t),ud();break e}s=Error(x(426))}}else if(be&&l.mode&1){var D=Up(a);if(D!==null){(D.flags&65536)===0&&(D.flags|=256),jp(D,a,l,i,t),Wc(Lo(s,l));break e}}i=s=Lo(s,l),Fe!==4&&(Fe=2),Ci===null?Ci=[i]:Ci.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=Rh(i,s,t);Op(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"&&(ir===null||!ir.has(h)))){i.flags|=65536,t&=-t,i.lanes|=t;var $=Mh(i,l,t);Op(i,$);break e}}i=i.return}while(i!==null)}Zh(n)}catch(C){t=C,Ne===n&&n!==null&&(Ne=n=n.return);continue}break}while(!0)}function Xh(){var e=Fl.current;return Fl.current=Dl,e===null?Dl:e}function ud(){(Fe===0||Fe===3||Fe===2)&&(Fe=4),Oe===null||(Fr&268435455)===0&&(Xl&268435455)===0||qn(Oe,We)}function Al(e,t){var n=J;J|=2;var r=Xh();(Oe!==e||We!==t)&&(_n=null,Nr(e,t));do try{Ky();break}catch(o){Qh(e,o)}while(!0);if(Uc(),J=n,Fl.current=r,Ne!==null)throw Error(x(261));return Oe=null,We=0,Fe}function Ky(){for(;Ne!==null;)qh(Ne)}function Oy(){for(;Ne!==null&&!db();)qh(Ne)}function qh(e){var t=e0(e.alternate,e,wt);e.memoizedProps=e.pendingProps,t===null?Zh(e):Ne=t,od.current=null}function Zh(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=Ly(n,t,wt),n!==null){Ne=n;return}}else{if(n=Ny(n,t),n!==null){n.flags&=32767,Ne=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Fe=6,Ne=null;return}}if(t=t.sibling,t!==null){Ne=t;return}Ne=t=e}while(t!==null);Fe===0&&(Fe=5)}function Tr(e,t,n){var r=ae,o=zt.transition;try{zt.transition=null,ae=1,Ay(e,t,n,r)}finally{zt.transition=o,ae=r}return null}function Ay(e,t,n,r){do Co();while(Jn!==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(xb(e,i),e===Oe&&(Ne=Oe=null,We=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||al||(al=!0,t0(vl,function(){return Co(),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,od.current=null,My(e,n),jh(n,e),ly(tc),wl=!!ec,tc=ec=null,e.current=n,Iy(n,e,o),fb(),J=l,ae=a,zt.transition=i}else e.current=n;if(al&&(al=!1,Jn=e,Ol=o),i=e.pendingLanes,i===0&&(ir=null),hb(n.stateNode,r),bt(e,_e()),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(Kl)throw Kl=!1,e=xc,xc=null,e;return(Ol&1)!==0&&e.tag!==0&&Co(),i=e.pendingLanes,(i&1)!==0?e===wc?ki++:(ki=0,wc=e):ki=0,fr(),null}function Co(){if(Jn!==null){var e=Rm(Ol),t=zt.transition,n=ae;try{if(zt.transition=null,ae=16>e?16:e,Jn===null)var r=!1;else{if(e=Jn,Jn=null,Ol=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:Si(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(Wh(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:Si(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:Ql(9,l)}}catch(C){Ee(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,fr(),$n&&typeof $n.onPostCommitFiberRoot=="function")try{$n.onPostCommitFiberRoot(zl,e)}catch{}r=!0}return r}finally{ae=n,zt.transition=t}}return!1}function im(e,t,n){t=Lo(n,t),t=Rh(e,t,1),e=or(e,t,1),t=tt(),e!==null&&(Wi(e,1,t),bt(e,t))}function Ee(e,t,n){if(e.tag===3)im(e,e,n);else for(;t!==null;){if(t.tag===3){im(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ir===null||!ir.has(r))){e=Lo(n,e),e=Mh(t,e,1),t=or(t,e,1),e=tt(),t!==null&&(Wi(t,1,e),bt(t,e));break}}t=t.return}}function Hy(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=tt(),e.pingedLanes|=e.suspendedLanes&n,Oe===e&&(We&n)===n&&(Fe===4||Fe===3&&(We&130023424)===We&&500>_e()-ad?Nr(e,0):id|=n),bt(e,t)}function Jh(e,t){t===0&&((e.mode&1)===0?t=1:(t=ja,ja<<=1,(ja&130023424)===0&&(ja=4194304)));var n=tt();e=Dn(e,t),e!==null&&(Wi(e,t,n),bt(e,n))}function zy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Jh(e,n)}function By(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),Jh(e,n)}var e0;e0=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,Py(e,t,n);ht=(e.flags&131072)!==0}else ht=!1,be&&(t.flags&1048576)!==0&&oh(t,Pl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;pl(e,t),e=t.pendingProps;var o=Eo(t,Xe.current);So(t,n),o=Jc(null,t,r,e,o,n);var i=ed();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,Tl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Yc(t),o.updater=Yl,t.stateNode=o,o._reactInternals=t,cc(t,r,e,n),t=pc(null,t,r,!0,i,n)):(t.tag=0,be&&i&&zc(t),et(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(pl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Vy(r),e=Xt(r,e),o){case 0:t=fc(null,t,r,e,n);break e;case 1:t=Qp(null,t,r,e,n);break e;case 11:t=Gp(null,t,r,e,n);break e;case 14:t=Yp(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),fc(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),Qp(e,t,r,o,n);case 3:e:{if(Kh(t),e===null)throw Error(x(387));r=t.pendingProps,i=t.memoizedState,o=i.element,ch(e,t),Rl(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=Lo(Error(x(423)),t),t=Xp(e,t,r,n,o);break e}else if(r!==o){o=Lo(Error(x(424)),t),t=Xp(e,t,r,n,o);break e}else for(St=rr(t.stateNode.containerInfo.firstChild),Ct=t,be=!0,Zt=null,n=sh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(To(),r===o){t=Fn(e,t,n);break e}et(e,t,r,n)}t=t.child}return t;case 5:return dh(t),e===null&&lc(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,nc(r,o)?a=null:i!==null&&nc(r,i)&&(t.flags|=32),Fh(e,t),et(e,t,a,n),t.child;case 6:return e===null&&lc(t),null;case 13:return Oh(e,t,n);case 4:return Qc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=_o(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),Gp(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,fe(Ll,r._currentValue),r._currentValue=a,i!==null)if(tn(i.value,a)){if(i.children===o.children&&!gt.current){t=Fn(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=Rn(-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),sc(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),sc(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,So(t,n),o=Bt(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),Yp(e,t,r,o,n);case 15:return Ih(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),pl(e,t),t.tag=1,$t(r)?(e=!0,Tl(t)):e=!1,So(t,n),Nh(t,r,o),cc(t,r,o,n),pc(null,t,r,!0,e,n);case 19:return Ah(e,t,n);case 22:return Dh(e,t,n)}throw Error(x(156,t.tag))};function t0(e,t){return _m(e,t)}function Wy(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 Ht(e,t,n,r){return new Wy(e,t,n,r)}function cd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Vy(e){if(typeof e=="function")return cd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Pc)return 11;if(e===Lc)return 14}return 2}function lr(e,t){var n=e.alternate;return n===null?(n=Ht(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 gl(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")cd(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case lo:return Rr(n.children,o,i,t);case _c:a=8,o|=8;break;case Iu:return e=Ht(12,n,t,o|2),e.elementType=Iu,e.lanes=i,e;case Du:return e=Ht(13,n,t,o),e.elementType=Du,e.lanes=i,e;case Fu:return e=Ht(19,n,t,o),e.elementType=Fu,e.lanes=i,e;case dm:return ql(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case um:a=10;break e;case cm:a=9;break e;case Pc:a=11;break e;case Lc:a=14;break e;case Yn:a=16,r=null;break e}throw Error(x(130,e==null?e:typeof e,""))}return t=Ht(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Rr(e,t,n,r){return e=Ht(7,e,r,t),e.lanes=n,e}function ql(e,t,n,r){return e=Ht(22,e,r,t),e.elementType=dm,e.lanes=n,e.stateNode={isHidden:!1},e}function Nu(e,t,n){return e=Ht(6,e,null,t),e.lanes=n,e}function Ru(e,t,n){return t=Ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Uy(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=hu(0),this.expirationTimes=hu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hu(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function dd(e,t,n,r,o,i,a,l,s){return e=new Uy(e,t,n,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ht(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Yc(i),e}function jy(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ao,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function n0(e){if(!e)return ur;e=e._reactInternals;e:{if(Ar(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 nh(e,n,t)}return t}function r0(e,t,n,r,o,i,a,l,s){return e=dd(n,r,!0,e,o,i,a,l,s),e.context=n0(null),n=e.current,r=tt(),o=ar(n),i=Rn(r,o),i.callback=t??null,or(n,i,o),e.current.lanes=o,Wi(e,o,r),bt(e,r),e}function Zl(e,t,n,r){var o=t.current,i=tt(),a=ar(o);return n=n0(n),t.context===null?t.context=n:t.pendingContext=n,t=Rn(i,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=or(o,t,a),e!==null&&(en(e,o,a,i),cl(e,o,a)),a}function Hl(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 am(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function fd(e,t){am(e,t),(e=e.alternate)&&am(e,t)}function Gy(){return null}var o0=typeof reportError=="function"?reportError:function(e){console.error(e)};function pd(e){this._internalRoot=e}Jl.prototype.render=pd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(x(409));Zl(e,t,null,null)};Jl.prototype.unmount=pd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Kr(function(){Zl(null,e,null,null)}),t[In]=null}};function Jl(e){this._internalRoot=e}Jl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Dm();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Xn.length&&t!==0&&t<Xn[n].priority;n++);Xn.splice(n,0,e),n===0&&Km(e)}};function md(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function es(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function lm(){}function Yy(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=Hl(a);i.call(u)}}var a=r0(t,r,e,0,null,!1,!1,"",lm);return e._reactRootContainer=a,e[In]=a.current,Ii(e.nodeType===8?e.parentNode:e),Kr(),a}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var l=r;r=function(){var u=Hl(s);l.call(u)}}var s=dd(e,0,!1,null,null,!1,!1,"",lm);return e._reactRootContainer=s,e[In]=s.current,Ii(e.nodeType===8?e.parentNode:e),Kr(function(){Zl(t,s,n,r)}),s}function ts(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=Hl(a);l.call(s)}}Zl(t,a,e,o)}else a=Yy(n,t,e,o,r);return Hl(a)}Mm=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=hi(t.pendingLanes);n!==0&&(Mc(t,n|1),bt(t,_e()),(J&6)===0&&(No=_e()+500,fr()))}break;case 13:Kr(function(){var r=Dn(e,1);if(r!==null){var o=tt();en(r,e,1,o)}}),fd(e,1)}};Ic=function(e){if(e.tag===13){var t=Dn(e,134217728);if(t!==null){var n=tt();en(t,e,134217728,n)}fd(e,134217728)}};Im=function(e){if(e.tag===13){var t=ar(e),n=Dn(e,t);if(n!==null){var r=tt();en(n,e,t,r)}fd(e,t)}};Dm=function(){return ae};Fm=function(e,t){var n=ae;try{return ae=e,t()}finally{ae=n}};ju=function(e,t,n){switch(t){case"input":if(Au(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=Ul(r);if(!o)throw Error(x(90));pm(r),Au(r,o)}}}break;case"textarea":hm(e,n);break;case"select":t=n.value,t!=null&&yo(e,!!n.multiple,t,!1)}};wm=ld;Sm=Kr;var Qy={usingClientEntryPoint:!1,Events:[Ui,fo,Ul,vm,xm,ld]},di={findFiberByHostInstance:_r,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Xy={bundleType:di.bundleType,version:di.version,rendererPackageName:di.rendererPackageName,rendererConfig:di.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Kn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Em(e),e===null?null:e.stateNode},findFiberByHostInstance:di.findFiberByHostInstance||Gy,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(fi=__REACT_DEVTOOLS_GLOBAL_HOOK__,!fi.isDisabled&&fi.supportsFiber))try{zl=fi.inject(Xy),$n=fi}catch{}var fi;Tt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Qy;Tt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!md(t))throw Error(x(200));return jy(e,t,null,n)};Tt.createRoot=function(e,t){if(!md(e))throw Error(x(299));var n=!1,r="",o=o0;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=dd(e,1,!1,null,null,n,!1,r,o),e[In]=t.current,Ii(e.nodeType===8?e.parentNode:e),new pd(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=Em(t),e=e===null?null:e.stateNode,e};Tt.flushSync=function(e){return Kr(e)};Tt.hydrate=function(e,t,n){if(!es(t))throw Error(x(200));return ts(null,e,t,!0,n)};Tt.hydrateRoot=function(e,t,n){if(!md(e))throw Error(x(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",a=o0;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=r0(t,null,e,1,n??null,o,!1,i,a),e[In]=t.current,Ii(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(!es(t))throw Error(x(200));return ts(null,e,t,!1,n)};Tt.unmountComponentAtNode=function(e){if(!es(e))throw Error(x(40));return e._reactRootContainer?(Kr(function(){ts(null,null,e,!1,function(){e._reactRootContainer=null,e[In]=null})}),!0):!1};Tt.unstable_batchedUpdates=ld;Tt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!es(n))throw Error(x(200));if(e==null||e._reactInternals===void 0)throw Error(x(38));return ts(e,t,n,!1,r)};Tt.version="18.3.1-next-f1338f8080-20240426"});var pr=Gt((Bx,l0)=>{"use strict";function a0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a0)}catch(e){console.error(e)}}a0(),l0.exports=i0()});var u0=Gt(hd=>{"use strict";var s0=pr();hd.createRoot=s0.createRoot,hd.hydrateRoot=s0.hydrateRoot;var Wx});var f0=Gt(rs=>{"use strict";var Zy=K(),Jy=Symbol.for("react.element"),ev=Symbol.for("react.fragment"),tv=Object.prototype.hasOwnProperty,nv=Zy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,rv={key:!0,ref:!0,__self:!0,__source:!0};function d0(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)tv.call(t,r)&&!rv.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:Jy,type:e,key:i,ref:a,props:o,_owner:nv.current}}rs.Fragment=ev;rs.jsx=d0;rs.jsxs=d0});var ce=Gt((Gx,p0)=>{"use strict";p0.exports=f0()});var hg=Gt(mg=>{"use strict";var Qo=K();function i1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var a1=typeof Object.is=="function"?Object.is:i1,l1=Qo.useState,s1=Qo.useEffect,u1=Qo.useLayoutEffect,c1=Qo.useDebugValue;function d1(e,t){var n=t(),r=l1({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return u1(function(){o.value=n,o.getSnapshot=t,Hd(o)&&i({inst:o})},[e,n,t]),s1(function(){return Hd(o)&&i({inst:o}),e(function(){Hd(o)&&i({inst:o})})},[e]),c1(n),n}function Hd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!a1(e,n)}catch{return!0}}function f1(e,t){return t()}var p1=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f1:d1;mg.useSyncExternalStore=Qo.useSyncExternalStore!==void 0?Qo.useSyncExternalStore:p1});var $g=Gt((fw,gg)=>{"use strict";gg.exports=hg()});var Ma=S(K(),1),T$=S(u0(),1);var xe=S(K(),1);var _t=S(K(),1);var ns=S(K(),1),c0="(prefers-reduced-motion: reduce)",qy=()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia(c0).matches:!1;function mr(){let[e,t]=(0,ns.useState)(qy);return(0,ns.useEffect)(()=>{if(typeof window>"u"||typeof window.matchMedia!="function")return;let n=window.matchMedia(c0);t(n.matches);let r=o=>t(o.matches);return n.addEventListener("change",r),()=>n.removeEventListener("change",r)},[]),e}var On=S(ce(),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 m0({children:e,className:t="",style:n={},viewClassName:r="",viewStyle:o={}}){let i=mr(),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:Y,scrollTop:O}=R;if(F<=Y+1){d(W=>W.show?{...W,show:!1}:W);return}let M=Math.max(rt.thumbMin,Y/F*Y),H=O/(F-Y)*(Y-M);d({h:M,top:H,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(Y=>F.observe(Y)),()=>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 Y=M=>{let{scrollHeight:H,clientHeight:W}=F,se=Math.max(rt.thumbMin,W/H*W),Ie=(H-W)/(W-se);F.scrollTop=l.current.startTop+(M.clientY-l.current.startY)*Ie},O=()=>{l.current=null,b(!1),document.removeEventListener("mousemove",Y),document.removeEventListener("mouseup",O),f()};document.addEventListener("mousemove",Y),document.addEventListener("mouseup",O)},P=c.top,N=c.h;return(0,On.jsxs)("div",{className:`pds-scrollable ${t}`,style:{position:"relative",minHeight:0,...n},onMouseMove:$,onMouseLeave:C,children:[(0,On.jsx)("div",{ref:a,className:`pds-scrollable__view ${r}`,onScroll:h,style:{height:"100%",overflowY:"auto",overflowX:"hidden",...o},children:e}),c.show&&(0,On.jsxs)(On.Fragment,{children:[(0,On.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,On.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 Qs=S(pr(),1);var ve=S(K(),1),y$=S(pr(),1);var bd=S(K(),1);var qx=S(K(),1),g0=S(ce(),1);var gd={wght:400,GRAD:0,opsz:24},h0={L:{frame:18,wrapper:26},M:{frame:16,wrapper:24},S:{frame:14,wrapper:20}};function os({name:e,size:t="M",fill:n=0,color:r,label:o,className:i="",style:a,...l}){let s=typeof t=="number"?t:(h0[t]||h0.M).frame;return(0,g0.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' ${gd.wght}, 'GRAD' ${gd.GRAD}, 'opsz' ${gd.opsz}`,...a},...l,children:e})}var is="pw-focus-ring",b0="pw-focus-ring pw-focus-ring--inset",y0="pw-focus-ring pw-focus-ring--replace",v0="pw-focus-ring pw-focus-ring--layer",$d=`
|
|
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
|
+
`,$0=!1;function as(){if($0||typeof document>"u")return;$0=!0;let e=document.createElement("style");e.setAttribute("data-pathway","focus-ring"),e.textContent=$d,document.head.appendChild(e)}var ss=S(ce(),1);as();var Hr=e=>`var(--semantic-color-${e})`,ov=e=>`var(--semantic-layout-units-${e})`,Io=e=>`var(--motion-${e})`,iv=e=>`var(--contextual-layout-units-${e})`,Do=e=>`var(--semantic-layout-units-accessibility-touch-target-${e})`,x0={Small:{box:36,boxW:Do("desktop-only-width"),boxH:Do("desktop-only-height"),layer:24,glyph:14},Medium:{box:44,boxW:Do("aa-width"),boxH:Do("aa-height"),layer:28,glyph:16},Large:{box:48,boxW:Do("aaa-width"),boxH:Do("aaa-height"),layer:32,glyph:20}},ls={rest:Hr("foreground-action-secondary-rest"),hover:Hr("foreground-action-secondary-hover"),pressed:Hr("foreground-action-secondary-pressed"),layerHover:Hr("fill-action-primary-subtle-hover"),layerPress:Hr("fill-action-primary-subtle-pressed"),disabled:Hr("foreground-action-disabled"),focusOutline:`${iv("focusring-width")} solid ${Hr("stroke-focusring-base")}`};function us({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=mr(),[g,y]=(0,bd.useState)(!1),[b,D]=(0,bd.useState)(!1),m=!l&&(g||a==="hover"),f=!l&&(b||a==="pressed"),h=x0[t]||x0.Small,$={...ls,...i},C=l?ls.disabled:f?$.pressed:m?$.hover:o||ls.rest;return(0,ss.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 ${v0} ${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,ss.jsx)("span",{"data-pw-ring-target":"",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:h.layer,height:h.layer,borderRadius:ov("cornerradius-base"),background:f?$.layerPress:m?$.layerHover:"transparent",outline:!l&&a==="focused"?ls.focusOutline:void 0,outlineOffset:!l&&a==="focused"?0:void 0,transition:p?"none":`background ${Io("duration-2")} ${Io("easing-standard")}, outline ${Io("duration-2")} ${Io("easing-standard")}`},children:(0,ss.jsx)(os,{name:e,size:h.glyph,fill:r,style:{transition:p?"none":`color ${Io("duration-2")} ${Io("easing-standard")}`}})})})}var Vn=S(K(),1);function Gi(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}var w0=S(K(),1),pe=typeof document<"u"?w0.default.useLayoutEffect:()=>{};var Ae=S(K(),1),cs={prefix:String(Math.round(Math.random()*1e10)),current:0},S0=Ae.default.createContext(cs),av=Ae.default.createContext(!1);var lv=!!(typeof window<"u"&&window.document&&window.document.createElement),yd=new WeakMap;function sv(e=!1){let t=(0,Ae.useContext)(S0),n=(0,Ae.useRef)(null);if(n.current===null&&!e){let r=Ae.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if(r){let o=yd.get(r);o==null?yd.set(r,{id:t.current,state:r.memoizedState}):r.memoizedState!==o.state&&(t.current=o.id,yd.delete(r))}n.current=++t.current}return n.current}function uv(e){let t=(0,Ae.useContext)(S0),n=sv(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function cv(e){let t=Ae.default.useId(),[n]=(0,Ae.useState)(Fo()),r=n?"react-aria":`react-aria${cs.prefix}`;return e||`${r}-${t}`}var C0=typeof Ae.default.useId=="function"?cv:uv;function dv(){return!1}function fv(){return!0}function pv(e){return()=>{}}function Fo(){return typeof Ae.default.useSyncExternalStore=="function"?Ae.default.useSyncExternalStore(pv,dv,fv):(0,Ae.useContext)(av)}var hr=S(K(),1),mv=!!(typeof window<"u"&&window.document&&window.document.createElement),Oo=new Map,Ko;typeof FinalizationRegistry<"u"&&(Ko=new FinalizationRegistry(e=>{Oo.delete(e)}));var vd=new WeakMap;function Pt(e){let[t,n]=(0,hr.useState)(e),r=(0,hr.useRef)(null),o=C0(t),i=(0,hr.useRef)(null),a=vd.get(i);if(Ko&&a!==o&&(a!=null&&Ko.unregister(i),Ko.register(i,o,i),vd.set(i,o)),mv){let l=Oo.get(o);l&&!l.includes(r)?l.push(r):Oo.set(o,[r])}return pe(()=>{let l=o;return()=>{Ko&&(Ko.unregister(i),vd.delete(i)),Oo.delete(l)}},[o]),(0,hr.useEffect)(()=>{let l=r.current;return l&&n(l),()=>{l&&(r.current=null)}}),o}function k0(e,t){if(e===t)return e;let n=Oo.get(e);if(n)return n.forEach(o=>o.current=t),t;let r=Oo.get(t);return r?(r.forEach(o=>o.current=e),e):t}function Ao(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1,r=e.map(o=>{let i=E0(o,t);return n||=typeof i=="function",i});if(n)return()=>{r.forEach((o,i)=>{typeof o=="function"?o():E0(e[i],null)})}}}function E0(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function T0(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=T0(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function hv(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=T0(e))&&(r&&(r+=" "),r+=t);return r}var _0=hv;function Re(...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]=Gi(i,a):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[o]=_0(i,a):o==="id"&&i&&a?t.id=k0(i,a):o==="ref"&&i&&a?t.ref=Ao(i,a):t[o]=a!==void 0?a:i}}return t}var He=S(K(),1);var zr=S(K(),1);function Yi(e){let t=(0,zr.useRef)(null),n=(0,zr.useRef)(void 0),r=(0,zr.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,zr.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 xd=Symbol("default");function Ho({values:e,children:t}){for(let[n,r]of e)t=He.default.createElement(n.Provider,{value:r},t);return t}function An(e){let{className:t,style:n,children:r,defaultClassName:o,defaultChildren:i,defaultStyle:a,values:l,render:s}=e;return(0,He.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 wd(e,t){let n=(0,He.useContext)(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=t||xd;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 zo(e,t,n){let r=wd(n,e.slot)||{},{ref:o,...i}=r,a=Yi((0,He.useMemo)(()=>Ao(t,o),[t,o])),l=Re(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 ds(e=!0){let[t,n]=(0,He.useState)(e),r=(0,He.useRef)(!1),o=(0,He.useCallback)(i=>{r.current=!0,n(!!i)},[]);return pe(()=>{r.current||n(!1)},[]),[o,t]}function gv(e,t,n){let{render:r,...o}=t,i=(0,He.useRef)(null),a=(0,He.useMemo)(()=>Ao(n,i),[n,i]);pe(()=>{},[e,r]);let l={...o,ref:a};return r?r(l,void 0):He.default.createElement(e,l)}var P0={},Hn=new Proxy({},{get(e,t){if(typeof t!="string")return;let n=P0[t];return n||(n=(0,He.forwardRef)(gv.bind(null,t)),P0[t]=n),n}});var L0="react-aria-clear-focus",N0="react-aria-focus";var ee=e=>$v(e)?e.document:bv(e)?e:e?.ownerDocument??(typeof document<"u"?document:void 0),Ue=e=>ee(e)?.defaultView??(typeof window<"u"?window:void 0);function R0(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function $v(e){return typeof e=="object"&&e!=null&&"window"in e&&e.window===e}function bv(e){return R0(e)&&e.nodeType===9}function M0(e){return R0(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 yv=!1;function Br(){return yv}function Pe(e,t){if(!Br())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:M0(n)?n=n.host:n=n.parentNode}return!1}var te=(e=document)=>{if(!Br())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(Br()&&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 Sd(e){if(!e)return!1;let t=e.getRootNode(),n=Ue(e);if(!(t instanceof n.Document||t instanceof n.ShadowRoot))return!1;let r=t.activeElement;return r!=null&&e.contains(r)}function I0(e){let t=xv(ee(e));t!==e&&(t&&vv(t,e),e&&Cd(e,t))}function vv(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function Cd(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function xv(e){let t=te(e),n=t?.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}function gr(e){e.focus({preventScroll:!0})}var wv=typeof Element<"u"&&"checkVisibility"in Element.prototype;function Sv(e){let t=Ue(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}=Ue(e),{display:a,visibility:l}=i(e);o=a!=="none"&&l!=="hidden"&&l!=="collapse"}return o}function Cv(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 fs(e,t){return wv?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&Sv(e)&&Cv(e,t)&&(!e.parentElement||fs(e.parentElement,e))}var kd=["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"],kv=kd.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";kd.push('[tabindex]:not([tabindex="-1"]):not([disabled])');var Ev=kd.join(':not([hidden]):not([tabindex="-1"]),');function ps(e,t){return e.matches(kv)&&!D0(e)&&(t?.skipVisibilityCheck||fs(e))}function ms(e){return e.matches(Ev)&&fs(e)&&!D0(e)}function D0(e){let t=e;for(;t!=null;){if(t instanceof Ue(t).HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}var hs=S(K(),1);function Ed(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function F0(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function gs(e){let t=(0,hs.useRef)({isFocused:!1,observer:null});return pe(()=>{let n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),(0,hs.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=Ed(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 Td=!1;function $s(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 _d(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function yn(e){let t=null;return()=>(t==null&&(t=e()),t)}var Lt=yn(function(){return _d(/^Mac/i)}),Tv=yn(function(){return _d(/^iPhone/i)}),Pd=yn(function(){return _d(/^iPad/i)||Lt()&&navigator.maxTouchPoints>1}),bs=yn(function(){return Tv()||Pd()}),K0=yn(function(){return Lt()||bs()}),Wr=yn(function(){return $s(/AppleWebKit/i)&&(bs()||!ys())}),n3=yn(function(){return Wr()&&!ys()&&!_v()}),ys=yn(function(){return $s(/Chrome|CriOS|CrMo/i)}),Bo=yn(function(){return $s(/Android/i)}),_v=yn(function(){return $s(/(Firefox|FxiOS)/i)});function O0(e){return e.pointerType===""&&e.isTrusted?!0:Bo()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var Wo=S(K(),1),Pv=(0,Wo.createContext)({isNative:!0,open:Nv,useHref:e=>e});function A0(){return(0,Wo.useContext)(Pv)}function Vr(e,t,n=!0){let{metaKey:r,ctrlKey:o,altKey:i,shiftKey:a}=t,l=Wr()&&Lt()&&!Pd()?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});Vr.isOpening=n,gr(e),e.dispatchEvent(l),Vr.isOpening=!1}Vr.isOpening=!1;function Lv(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 Nv(e,t){Lv(e,n=>Vr(n,t))}var Rd=S(K(),1),jr=null,Xi="keyboard",Ld=new Set,Qi=new Map,Ur=!1,vs=!1,Rv={Tab:!0,Escape:!0};function ws(e,t){for(let n of Ld)n(e,t)}function Mv(e){return!(e.metaKey||!Lt()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function xs(e){Ur=!0,!Vr.isOpening&&Mv(e)&&(jr="keyboard",Xi="keyboard",ws("keyboard",e))}function Vo(e){jr="pointer",Xi="pointerType"in e?e.pointerType:"mouse",(e.type==="mousedown"||e.type==="pointerdown")&&(Ur=!0,ws("pointer",e))}function H0(e){!Vr.isOpening&&O0(e)&&(Ur=!0,jr="virtual",Xi="virtual")}function z0(e){if(Td)return;let t=Z(e),n=Ue(t),r=ee(t);if(t===n){vs=!0;return}t===r||!e.isTrusted||(!Ur&&!vs&&(jr="virtual",Xi="virtual",ws("virtual",e)),Ur=!1,vs=!1)}function B0(){Td||(Ur=!1,vs=!0)}function W0(e){let t=te(ee(Z(e)));queueMicrotask(()=>{te(ee(Z(e)))!==t&&Dv("keyboard")})}function Nd(e){if(typeof window>"u"||typeof document>"u")return;let t=Ue(e),n=ee(e);if(Qi.get(t))return;let r=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){Ur=!0,r.apply(this,arguments)}}),n.addEventListener("keydown",xs,!0),n.addEventListener("keyup",xs,!0),n.addEventListener("click",H0,!0),n.addEventListener("invalid",W0,!0),t.addEventListener("focus",z0,!0),t.addEventListener("blur",B0,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",Vo,!0),n.addEventListener("pointermove",Vo,!0),n.addEventListener("pointerup",Vo,!0)),t.addEventListener("beforeunload",()=>{V0(e)},{once:!0}),Qi.set(t,{focus:r})}var V0=(e,t)=>{let n=Ue(e),r=ee(e);t&&r.removeEventListener("DOMContentLoaded",t),Qi.has(n)&&(Reflect.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:Qi.get(n).focus}),r.removeEventListener("keydown",xs,!0),r.removeEventListener("keyup",xs,!0),r.removeEventListener("click",H0,!0),r.removeEventListener("invalid",W0,!0),n.removeEventListener("focus",z0,!0),n.removeEventListener("blur",B0,!1),typeof PointerEvent<"u"&&(r.removeEventListener("pointerdown",Vo,!0),r.removeEventListener("pointermove",Vo,!0),r.removeEventListener("pointerup",Vo,!0)),Qi.delete(n))};function Iv(e){let t=ee(e),n;return t.readyState!=="loading"?Nd(e):(n=()=>{Nd(e)},t.addEventListener("DOMContentLoaded",n)),()=>V0(e,n)}typeof document<"u"&&Iv();function Ss(){return jr!=="pointer"}function Gr(){return jr}function Dv(e){jr=e,Xi=e==="pointer"?"mouse":e,ws(e,null)}var Fv=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Kv(e,t,n){let r=n?Z(n):void 0,o=ee(r),i=Ue(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&&!Fv.has(c.type)||c instanceof l||c instanceof s&&c.isContentEditable,!(e&&t==="keyboard"&&n instanceof u&&!Rv[n.key])}function U0(e,t,n){Nd(),(0,Rd.useEffect)(()=>{if(n?.enabled===!1)return;let r=(o,i)=>{Kv(!!n?.isTextInput,o,i)&&e(Ss())};return Ld.add(r),()=>{Ld.delete(r)}},t)}function j0(e,t){let n=Ue(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 qi=100,Md=600,Q={isOpen:!1,screenWidth:0,screenHeight:0,screenAngle:0,screenTimeout:0,startTimeStamp:0,endTimeStamp:0,resizeTimeStamp:0,resizeTimeout:0},Ov=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Zi(){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 Av(e){Q.resizeTimeStamp<=e.timeStamp+50&&(Q.resizeTimeStamp=e.timeStamp+150,window.clearTimeout(Q.resizeTimeout),Q.resizeTimeout=window.setTimeout(Y0,150))}function Y0(){let e=j0("viewport");if(Bo()&&e?.includes("overlays-content"))return;let t=performance.now(),n=Zi(),r=t-Q.startTimeStamp,o=Q.screenHeight-n.height,i=Q.screenAngle-n.angle;Math.abs(i)%180&&Q.screenWidth-n.height<qi&&(Q.screenWidth=n.width,Q.screenHeight=n.height,Q.screenAngle=n.angle,o=0),r>Md&&(window.clearTimeout(Q.screenTimeout),Q.screenTimeout=window.setTimeout(()=>{let a=document.hasFocus()?te():null,l=Q0(a),s=Zi();Math.abs(Q.screenAngle-s.angle)%180||Q.isOpen&&l||(Q.screenWidth=s.width,Q.screenHeight=s.height,Q.screenAngle=s.angle,Q.isOpen=!1)},Md)),r<=Md&&o>=qi&&(Q.endTimeStamp=t),Q.isOpen=o>=qi}function Hv(){let e=Zi(),t=Q.screenAngle-e.angle;if(Math.abs(t)%180&&!Q.isOpen){let n=Q.screenWidth,r=Q.screenHeight;Q.screenWidth=r,Q.screenHeight=n}Q.isOpen||(Q.screenAngle=e.angle)}function zv(e){let t=Z(e),n=Q0(t),r=performance.now(),o=Zi(),i=Q.screenHeight-o.height;i<qi&&n&&(Q.screenWidth=o.width,Q.screenHeight=o.height,Q.screenAngle=o.angle,Q.startTimeStamp=r),n&&window.clearTimeout(Q.screenTimeout),i>=qi&&n&&(Q.endTimeStamp=r)}function G0(){let e=Zi();nn(window.visualViewport,"resize",Wr()?Y0:Av),nn(window.screen.orientation,"change",Hv),nn(window,"focus",zv,{capture:!0,passive:!0}),Q.screenWidth=e.width,Q.screenHeight=e.height,Q.screenAngle=e.angle}typeof document<"u"&&(document.readyState!=="loading"?G0():nn(document,"DOMContentLoaded",G0));function Q0(e){if(!(e instanceof Element)||!ps(e))return!1;let t=e instanceof HTMLTextAreaElement,n=e instanceof HTMLElement&&e.isContentEditable,r=e instanceof HTMLInputElement&&!Ov.has(e.type);return t||n||r}function Ji(e){return Lt()?e.metaKey:e.ctrlKey}var Uo=S(K(),1),Bv=Uo.default.useInsertionEffect??pe;function Cs(e){let t=(0,Uo.useRef)(null);return Bv(()=>{t.current=e},[e]),(0,Uo.useCallback)((...n)=>{let r=t.current;return r?.(...n)},[])}var X0=S(K(),1);function ea(e,t,n,r){let o=Cs(n),i=n==null;(0,X0.useEffect)(()=>{if(!(i||e.current==null))return nn(e.current,t,o,r)},[e,t,r,i])}function q0(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 Wv=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Vv=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Z0(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 Wv.has(n.script)}let t=e.split("-")[0];return Vv.has(t)}var ks=S(K(),1),eg=Symbol.for("react-aria.i18n.locale");function tg(){let e=typeof window<"u"&&window[eg]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Z0(e)?"rtl":"ltr"}}var Id=tg(),ta=new Set;function J0(){Id=tg();for(let e of ta)e(Id)}function ng(){let e=Fo(),[t,n]=(0,ks.useState)(Id);return(0,ks.useEffect)(()=>(ta.size===0&&window.addEventListener("languagechange",J0),ta.add(n),()=>{ta.delete(n),ta.size===0&&window.removeEventListener("languagechange",J0)}),[]),e?{locale:typeof window<"u"&&window[eg]||"en-US",direction:"ltr"}:t}var Es=S(K(),1),Uv=Es.default.createContext(null);function Yr(){let e=ng();return(0,Es.useContext)(Uv)||e}var ot=S(K(),1),jv=typeof document<"u"||parseInt(ot.default.version,10)>=19?ot.default.useInsertionEffect??ot.default.useLayoutEffect:()=>{};function jo(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;jv(()=>{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 na=S(K(),1);var ra=(0,na.createContext)(null),rg=(0,na.createContext)(null);var Vt=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}},oa=class extends Vt{filter(t,n,r){let[o,i]=og(t,n,this.firstChildKey,r),a=this.clone();return a.firstChildKey=o,a.lastChildKey=i,a}},Dd=class extends Vt{static{this.type="header"}},Qr=class extends Vt{static{this.type="loader"}},ia=class extends oa{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}},aa=class extends oa{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}},la=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]=og(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 og(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 Ts=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}},sa=class e extends Ts{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(){}},_s=class extends Ts{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 sa(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 sa&&(!t.isConnected||t.isHidden)?this.removeNode(t):t.updateChildIndices();for(let t of this.dirtyNodes)t instanceof sa?(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 Go=S(K(),1);function ua(e){let{children:t,items:n,idScope:r,addIdAndValue:o,dependencies:i=[]}=e,a=(0,Go.useMemo)(()=>{},[t]),l=(0,Go.useMemo)(()=>new WeakMap,[...i,a]);return(0,Go.useMemo)(()=>{if(n&&typeof t=="function"){let s=[];for(let u of n){let c=Gv(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,Go.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 Gv(e){switch(typeof e){case"object":return e!=null;case"function":case"symbol":return!0;default:return!1}}var $r=new Map,Ps=new Set;function ag(e){return"propertyName"in e}function Yv(e){let t=Z(e);if(!ag(e)||!t)return;let n=$r.get(t);n||(n=new Set,$r.set(t,n),t.addEventListener("transitioncancel",Fd,{once:!0})),n.add(e.propertyName)}function Fd(e){let t=Z(e);if(!ag(e)||!t)return;let n=$r.get(t);if(n&&(n.delete(e.propertyName),n.size===0&&(t.removeEventListener("transitioncancel",Fd),$r.delete(t)),$r.size===0))for(let r of Ps)r(!0),Ps.delete(r)}function ig(){nn(document,"transitionrun",Yv),nn(document,"transitionend",Fd)}function Qv(){for(let[e]of $r)"isConnected"in e&&!e.isConnected&&$r.delete(e)}typeof document<"u"&&(document.readyState!=="loading"?ig():nn(document,"DOMContentLoaded",ig));function lg(e){let t=window.requestAnimationFrame(()=>{if(Qv(),$r.size===0)return e(!1);Ps.add(e)});return()=>{window.cancelAnimationFrame(t),Ps.delete(e)}}function ca(e){if(!e.isConnected)return;let t=ee(e);if(Gr()==="virtual"){let n=te(t);lg(()=>{let r=te(t);(r===n||r===t.body)&&e.isConnected&&gr(e)})}else gr(e)}var Kd=S(K(),1);function sg(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e,i=(0,Kd.useCallback)(s=>{if(Z(s)===s.currentTarget)return r&&r(s),o&&o(!1),!0},[r,o]),a=gs(i),l=(0,Kd.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 da(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 Xv=new Set(["shift","alt","control","meta","mod"]),qv=["Alt","Control","Meta","Shift"];function Zv(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 Jv(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 ug(e){return qv.filter(t=>e.has(t))}function e1(e){let t=e.split("+").reduce((n,r)=>{let o=r.toLowerCase();return Xv.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 cg(e){return e.toLowerCase()}var t1={space:" ",esc:"escape",del:"delete",ins:"insert",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",pageup:"pageup",pagedown:"pagedown"};function n1(e){let t=cg(e),n=t1[t];return n??t}function r1(e){let t=ug(Zv(e)),n=n1(e.key);return t.length>0?`${t.join("+")}+${n}`:n}function o1(e){let t=ug(Jv(e)),n=cg(e.key);return(t.length>0?`${t.join("+")}+`:"")+n}function dg(e){let t=new Map;for(let[n,r]of Object.entries(e)){let o=e1(n);t.set(r1(o),r)}return n=>{let r=o1(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 Od(e){let{shortcuts:t,allowRepeats:n=!1,allowComposing:r=!1}=e,o,i;if(t){let a=dg(t),l=da(u=>{if(!Pe(u.currentTarget,Z(u))){u.continuePropagation();return}if(u.nativeEvent?.repeat&&!n||u.nativeEvent?.isComposing&&!r){u.continuePropagation();return}a(u)}),s=da(u=>{if(!Pe(u.currentTarget,Z(u))){u.continuePropagation();return}if(u.nativeEvent?.repeat&&!n||u.nativeEvent?.isComposing&&!r){u.continuePropagation();return}u.continuePropagation()});o=e.onKeyDown?Gi(e.onKeyDown,l):l,i=e.onKeyUp?Gi(e.onKeyUp,s):s}else o=da(e.onKeyDown),i=da(e.onKeyUp);return{keyboardProps:e.isDisabled?{}:{onKeyDown:o,onKeyUp:i}}}var Yo=S(K(),1),Ad=Yo.default.createContext(null);var vn=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 fg=(0,vn.createContext)(!1);function pg(e){if((0,vn.useContext)(fg))return vn.default.createElement(vn.default.Fragment,null,e.children);let n=vn.default.createElement(fg.Provider,{value:!0},e.children);return vn.default.createElement("template",null,n)}var yg=S(pr(),1),B=S(K(),1),vg=S($g(),1),xg=(0,B.createContext)(!1),fa=(0,B.createContext)(null);function pa(e){if((0,B.useContext)(fa))return e.content;let{collection:n,document:r}=$1(e.createCollection);return B.default.createElement(B.default.Fragment,null,B.default.createElement(pg,null,B.default.createElement(fa.Provider,{value:r},e.content)),B.default.createElement(m1,{render:e.children,collection:n}))}function m1({collection:e,render:t}){return t(e)}function h1(e,t,n){let r=Fo(),o=(0,B.useRef)(r);o.current=r;let i=(0,B.useCallback)(()=>o.current?n():t(),[t,n]);return(0,vg.useSyncExternalStore)(e,i)}var g1=typeof B.default.useSyncExternalStore=="function"?B.default.useSyncExternalStore:h1;function $1(e){let[t]=(0,B.useState)(()=>new _s(e?.()||new la)),n=(0,B.useCallback)(a=>t.subscribe(a),[t]),r=(0,B.useCallback)(()=>{let a=t.getCollection();return t.isSSR&&t.resetAfterSSR(),a},[t]),o=(0,B.useCallback)(()=>(t.isSSR=!0,t.getCollection()),[t]);return{collection:g1(n,r,o),document:t}}var zd=(0,B.createContext)(null);function b1(e){return class extends Vt{static{this.type=e}}}function y1(e,t,n,r,o,i){typeof e=="string"&&(e=b1(e));let a=(0,B.useCallback)(s=>{s?.setProps(t,n,e,r,i)},[t,n,r,i,e]),l=(0,B.useContext)(zd);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?B.default.createElement(zd.Provider,{value:s},o):null}return B.default.createElement(e.type,{ref:a},o)}function ma(e,t){let n=({node:o})=>t(o.props,o.props.ref,o),r=(0,B.forwardRef)((o,i)=>{let a=(0,B.useContext)(Ad);if(!(0,B.useContext)(xg)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(o,i)}return y1(e,o,i,"children"in o?o.children:null,null,s=>B.default.createElement(Ad.Provider,{value:a},B.default.createElement(n,{node:s})))});return r.displayName=t.name,r}function v1(e){return ua({...e,addIdAndValue:!0})}var bg=(0,B.createContext)(null);function ha(e){let t=(0,B.useContext)(bg),n=(t?.dependencies||[]).concat(e.dependencies),r=e.idScope??t?.idScope,o=v1({...e,idScope:r,dependencies:n});return(0,B.useContext)(fa)&&(o=B.default.createElement(x1,null,o)),t=(0,B.useMemo)(()=>({dependencies:n,idScope:r}),[r,...n]),B.default.createElement(bg.Provider,{value:t},o)}function x1({children:e}){let t=(0,B.useContext)(fa),n=(0,B.useMemo)(()=>B.default.createElement(fa.Provider,{value:null},B.default.createElement(xg.Provider,{value:!0},e)),[e]);return Fo()?B.default.createElement(zd.Provider,{value:t},n):(0,yg.createPortal)(n,t)}var it=S(K(),1);var Ls=(0,it.createContext)(null);var w1={CollectionRoot({collection:e,renderDropIndicator:t}){return Sg(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return Sg(e,t,n)}};function Sg(e,t,n){return ua({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,S1(e,r,n))}})}function S1(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 Xr=(0,it.createContext)(w1);function Cg(e){return(0,it.useMemo)(()=>e!=null?new Set([e]):null,[e])}var C1=new Set(["id"]),k1=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),E1=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),T1=new Set(["dir","lang","hidden","inert","translate","suppressHydrationWarning"]),kg=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)&&(C1.has(s)||n&&k1.has(s)||r&&E1.has(s)||o&&T1.has(s)||i&&(kg.has(s)||s.endsWith("Capture")&&kg.has(s.slice(0,-7)))||a?.has(s)||_1.test(s))&&(l[s]=e[s]);return l}var br=S(K(),1);function Eg(){let e=(0,br.useRef)(new Map),t=(0,br.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,br.useCallback)((o,i,a,l)=>{let s=e.current.get(a)?.fn||a;o.removeEventListener(i,s,l),e.current.delete(a)},[]),r=(0,br.useCallback)(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return(0,br.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}var ga=S(K(),1);function Ns(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=(0,ga.useRef)({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:l}=Eg(),s=(0,ga.useCallback)(d=>{Pe(d.currentTarget,Z(d))&&i.current.isFocusWithin&&!Pe(d.currentTarget,d.relatedTarget)&&(i.current.isFocusWithin=!1,l(),n&&n(d),o&&o(!1))},[n,o,i,l]),u=gs(s),c=(0,ga.useCallback)(d=>{if(!Pe(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&&!Pe(b,m)){let f=new g.defaultView.FocusEvent("blur",{relatedTarget:m});F0(f,b);let h=Ed(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 yr=S(K(),1);function Bd(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=(0,yr.useRef)({isFocused:!1,isFocusVisible:t||Ss()}),[i,a]=(0,yr.useState)(!1),[l,s]=(0,yr.useState)(()=>o.current.isFocused&&o.current.isFocusVisible),u=(0,yr.useCallback)(()=>s(o.current.isFocused&&o.current.isFocusVisible),[]),c=(0,yr.useCallback)(g=>{o.current.isFocused=g,o.current.isFocusVisible=Ss(),a(g),u()},[u]);U0(g=>{o.current.isFocusVisible=g,u()},[n,i],{enabled:i,isTextInput:n});let{focusProps:d}=sg({isDisabled:r,onFocusChange:c}),{focusWithinProps:p}=Ns({isDisabled:!r,onFocusWithinChange:c});return{isFocused:i,isFocusVisible:l,focusProps:r?p:d}}function Tg(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=q0({id:t,"aria-label":o,"aria-labelledby":r});return{labelProps:l,fieldProps:s}}function vr(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(vr(n,t)&&(n=n.parentElement);n&&!vr(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function Rs(e,t){let n=[],r=document.scrollingElement||document.documentElement;for(;e&&(vr(e,t)&&n.push(e),e!==r);)e=e.parentElement;return n}function $a(e,t,n={}){if(e===t)return;let r=t.getBoundingClientRect();P1(e,t,r,n)}function P1(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,Y=parseFloat(c.borderLeftWidth)||0,O=parseFloat(c.borderRightWidth)||0,M=n.top-m,H=n.bottom+f,W=n.left-h,se=n.right+$,Ie=e===d?0:Y+O,ft=e===d?0:R+F,Un=e===d?0:e.offsetWidth-e.clientWidth-Ie,dn=e===d?0:e.offsetHeight-e.clientHeight-ft,Ze=g+(p?0:R)+C,pt=y-(p?0:F)-E-dn,fn=b+(p?0:Y)+P,Dt=D-(p?0:O)-N;bs()&&Wr()||c.direction==="ltr"?Dt-=Un:c.direction==="rtl"&&(fn+=Un);let jt=M<Ze||H>pt,Ft=W<fn||se>Dt;if(jt&&o==="start")a+=M-Ze;else if(jt&&o==="center")a+=(M+H)/2-(Ze+pt)/2;else if(jt&&o==="end")a+=H-pt;else if(jt&&o==="nearest"){let xt=M-Ze,Tn=H-pt;a+=Math.abs(xt)<=Math.abs(Tn)?xt:Tn}if(Ft&&i==="start")l+=W-fn;else if(Ft&&i==="center")l+=(W+se)/2-(fn+Dt)/2;else if(Ft&&i==="end")l+=se-Dt;else if(Ft&&i==="nearest"){let xt=W-fn,Tn=se-Dt;l+=Math.abs(xt)<=Math.abs(Tn)?xt:Tn}e.scrollTo({left:l,top:a})}function Wd(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=Rs(e,!0);for(let c of l)$a(c,e);let{left:s,top:u}=e.getBoundingClientRect();if(Math.abs(i-s)>1||Math.abs(a-u)>1){l=n?Rs(n,!0):[];for(let c of l)$a(c,n,{block:"center",inline:"center"});for(let c of Rs(e,!0))$a(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),Ms=(0,at.createContext)({}),Vd=(0,at.createContext)(null),L1=(0,at.forwardRef)(function(t,n){let{render:r}=(0,at.useContext)(Vd);return at.default.createElement(at.default.Fragment,null,r(t,n))});function Ud(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(L1,{target:i})},[t?.target,r,n]);return e?.useDropIndicator?o:void 0}function Pg(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 jd=S(K(),1),Is=(0,jd.createContext)({});var N1=S(pr(),1),zn=S(K(),1);var R1=(0,zn.createContext)(null);function Ds(e){let t=(0,zn.useRef)({});return zn.default.createElement(R1.Provider,{value:t},e.children)}var Gd=S(K(),1),Fs=(0,Gd.createContext)({}),Lg=class extends Vt{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 Ng=new WeakMap;var Yd=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(!Pe(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 Pe(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 Rg(e,t,n,r){return Br()?new Yd(e,t,n,r):e.createTreeWalker(t,n,r)}var Te=S(K(),1),Mg=Te.default.createContext(null),Qd="react-aria-focus-scope-restore",ge=null;function va(e){let{children:t,contain:n,restoreFocus:r,autoFocus:o}=e,i=(0,Te.useRef)(null),a=(0,Te.useRef)(null),l=(0,Te.useRef)([]),{parentNode:s}=(0,Te.useContext)(Mg)||{},u=(0,Te.useMemo)(()=>new ya({scopeRef:l}),[l]);pe(()=>{let p=s||Me.root;if(Me.getTreeNode(p.scopeRef)&&ge&&!Ks(ge,p.scopeRef)){let g=Me.getTreeNode(ge);g&&(p=g)}p.addChild(u),Me.addNode(u)},[u,s]),pe(()=>{let p=Me.getTreeNode(l);p&&(p.contain=!!n)},[n]),pe(()=>{let p=i.current?.nextSibling,g=[],y=b=>b.stopPropagation();for(;p&&p!==a.current;)g.push(p),p.addEventListener(Qd,y),p=p.nextSibling;return l.current=g,()=>{for(let b of g)b.removeEventListener(Qd,y)}},[t]),O1(l,r,n),F1(l,n),A1(l,r,n),K1(l,o),(0,Te.useEffect)(()=>{let p=te(ee(l.current?l.current[0]:void 0)),g=null;if(Ut(p,l.current)){for(let y of Me.traverse())y.scopeRef&&Ut(p,y.scopeRef.current)&&(g=y);g===Me.getTreeNode(l)&&(ge=g.scopeRef)}},[l]),pe(()=>()=>{let p=Me.getTreeNode(l)?.parent?.scopeRef??null;(l===ge||Ks(l,ge))&&(!p||Me.getTreeNode(p))&&(ge=p),Me.removeTreeNode(l)},[l]);let c=(0,Te.useMemo)(()=>M1(l),[]),d=(0,Te.useMemo)(()=>({focusManager:c,parentNode:u}),[u,c]);return Te.default.createElement(Mg.Provider,{value:d},Te.default.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,Te.default.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function M1(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=qr(n),c=xn(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=qr(n),c=xn(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=qr(n),a=xn(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=qr(n),a=xn(i,{tabbable:r,accept:o},n);a.currentNode=n[n.length-1].nextElementSibling;let l=a.previousNode();return l&&rn(l,!0),l}}}function qr(e){return e[0].parentElement}function ba(e){let t=Me.getTreeNode(ge);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function I1(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=Ue(e);return t instanceof n.RadioNodeList?Array.from(t).filter(r=>r instanceof n.HTMLInputElement):t instanceof n.HTMLInputElement?[t]:[]}function D1(e){if(e.checked)return!0;let t=I1(e);return t.length>0&&!t.some(n=>n.checked)}function F1(e,t){let n=(0,Te.useRef)(void 0),r=(0,Te.useRef)(void 0);pe(()=>{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||!ba(e)||u.isComposing)return;let c=te(i),d=e.current;if(!d||!Ut(c,d))return;let p=qr(d),g=xn(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 Ue(y).HTMLInputElement&&y.select())},l=u=>{(!ge||Ks(ge,e))&&Ut(Z(u),e.current)?(ge=e,n.current=Z(u)):ba(e)&&!Zr(Z(u),e)?n.current?rn(n.current):ge&&ge.current&&Xd(ge.current):ba(e)&&(n.current=Z(u))},s=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let c=Gr(),d=(c==="virtual"||c===null)&&Bo()&&ys(),p=te(i);if(!d&&p&&ba(e)&&!Zr(p,e)){ge=e;let g=Z(u);g&&g.isConnected?(n.current=g,rn(n.current)):ge.current&&Xd(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]),pe(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Fg(e){return Zr(e)}function Ut(e,t){return!e||!t?!1:t.some(n=>Pe(n,e))}function Zr(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Me.traverse(Me.getTreeNode(t)))if(n&&Ut(e,n.current))return!0;return!1}function Ks(e,t){let n=Me.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{ca(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function Kg(e,t=!0){let n=e[0].previousElementSibling,r=qr(e),o=xn(r,{tabbable:t},e);o.currentNode=n;let i=o.nextNode();return t&&!i&&(r=qr(e),o=xn(r,{tabbable:!1},e),o.currentNode=n,i=o.nextNode()),i}function Xd(e,t=!0){rn(Kg(e,t))}function K1(e,t){let n=Te.default.useRef(t);(0,Te.useEffect)(()=>{if(n.current){ge=e;let r=ee(e.current?e.current[0]:void 0);!Ut(te(r),ge.current)&&e.current&&Xd(e.current)}n.current=!1},[e])}function O1(e,t,n){pe(()=>{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:Fg(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 Ig(e){let t=Me.getTreeNode(ge);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function A1(e,t,n){let r=(0,Te.useRef)(typeof document<"u"?te(ee(e.current?e.current[0]:void 0)):null);pe(()=>{let o=e.current,i=ee(o?o[0]:void 0);if(!t||n)return;let a=()=>{(!ge||Ks(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]),pe(()=>{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||!ba(e)||a.isComposing)return;let l=o.activeElement;if(!Zr(l,e)||!Ig(e))return;let s=Me.getTreeNode(e);if(!s)return;let u=s.nodeToRestore,c=xn(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||!Zr(d,e))&&u){c.currentNode=u;do d=a.shiftKey?c.previousNode():c.nextNode();while(Zr(d,e));a.preventDefault(),a.stopPropagation(),d?rn(d,!0):Fg(u)?rn(u,!0):l.blur()}};return n||o.addEventListener("keydown",i,!0),()=>{n||o.removeEventListener("keydown",i,!0)}},[e,t,n]),pe(()=>{let o=ee(e.current?e.current[0]:void 0);if(!t)return;let i=Me.getTreeNode(e);if(i)return i.nodeToRestore=r.current??void 0,()=>{let a=Me.getTreeNode(e);if(!a)return;let l=a.nodeToRestore,s=te(o);if(t&&l&&(s&&Zr(s,e)||s===o.body&&Ig(e))){let u=Me.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let c=u.getTreeNode(e);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){Dg(c.nodeToRestore);return}c=c.parent}for(c=u.getTreeNode(e);c;){if(c.scopeRef&&c.scopeRef.current&&Me.getTreeNode(c.scopeRef)){let d=Kg(c.scopeRef.current,!0);if(d){Dg(d);return}}c=c.parent}}})}}},[e,t])}function Dg(e){e.dispatchEvent(new CustomEvent(Qd,{bubbles:!0,cancelable:!0}))&&rn(e)}function xn(e,t,n){let r=t?.tabbable?ms:ps,o=e?.nodeType===Node.ELEMENT_NODE?e:null,i=ee(o),a=Rg(i,e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(l){return Pe(t?.from,l)||t?.tabbable&&l.tagName==="INPUT"&&l.getAttribute("type")==="radio"&&(!D1(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 qd=class e{constructor(){this.fastMap=new Map,this.root=new ya({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 ya({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}},ya=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}},Me=new qd;function Zd(e){return K0()?e.altKey:e.ctrlKey}function wn(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 H1=new WeakMap;function Og(e){let t=Pt();return H1.set(e,t),t}var Os=S(K(),1),Ag=1e3;function Hg(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,o=(0,Os.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=""},Ag)}},a=l=>{let s=z1(l.key);if(!(!s||l.ctrlKey||l.metaKey||l.altKey||!Pe(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=""},Ag)}};return(0,Os.useEffect)(()=>{let l=o.current.timeout;return()=>{clearTimeout(l)}},[o]),{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:void 0,onKeyDown:t.getKeyForSearch?a:void 0}}}function z1(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}var Jd=S(K(),1);function ef(e,t){let n=(0,Jd.useRef)(!0),r=(0,Jd.useRef)(null);pe(()=>(n.current=!0,()=>{n.current=!1}),[]),pe(()=>{n.current?n.current=!1:(!r.current||t.some((o,i)=>!Object.is(o,r[i])))&&e(),r.current=t},t)}var zg=S(pr(),1),on=S(K(),1);function Bg(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}=Yr(),m=A0(),f=(v,k,ke)=>{if(k!=null){if(t.isLink(k)&&y==="selection"&&u&&!Zd(v)){(0,zg.flushSync)(()=>{t.setFocusedKey(k,ke)});let oe=wn(r,k),Pf=t.getItemProps(k);if(oe){m.open(oe,v,Pf.href,Pf.routerOptions);return}return!1}if(t.setFocusedKey(k,ke),t.isLink(k)&&y==="override")return!1;if(v.shiftKey&&t.selectionMode==="multiple"){t.extendSelection(k);return}else if(u&&!Zd(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=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,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},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},Y=()=>{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=xn(r.current,{tabbable:!0}),k,ke;do ke=v.lastChild(),ke&&(k=ke);while(ke);let oe=te();k&&(!Sd(k)||oe&&!ms(oe))&&gr(k)}return{shouldContinuePropagation:!0,shouldPreventDefault:!1}},H=()=>(!p&&r.current&&r.current.focus(),{shouldContinuePropagation:!0,shouldPreventDefault:!1}),W=(v,k)=>({[Lt()?v+"+Shift+Alt":v+"+Shift+Control"]:k,[v+"+Shift"]:k,[Lt()?v+"+Alt":v+"+Control"]:k,[v]:k}),{keyboardProps:se}=Od({shortcuts:{...W("ArrowDown",h),...W("ArrowUp",$),...W("ArrowLeft",E),...W("ArrowRight",P),...W("PageDown",R),...W("PageUp",F)},allowRepeats:!0}),{keyboardProps:Ie}=Od({shortcuts:{...W("Home",C),...W("End",N),"Mod+A":Y,Escape:O,Tab:M,"Tab+Shift":H}}),ft=(0,on.useRef)({top:0,left:0});ea(g,"scroll",()=>{ft.current={top:g.current?.scrollTop??0,left:g.current?.scrollLeft??0}});let Un=v=>{if(t.isFocused){Pe(v.currentTarget,Z(v))||t.setFocused(!1);return}if(!Pe(v.currentTarget,Z(v)))return;let k=Gr();t.setFocused(!0);let ke=oe=>{oe!=null&&(t.setFocusedKey(oe),u&&!t.isSelected(oe)&&t.replaceSelection(oe))};if(b&&(k==="keyboard"||k==="virtual"))ke(b==="first"?n.getFirstKey?.():n.getLastKey?.());else if(t.focusedKey==null){let oe=v.relatedTarget;oe&&v.currentTarget.compareDocumentPosition(oe)&Node.DOCUMENT_POSITION_FOLLOWING?ke(t.lastSelectedKey??n.getLastKey?.()):ke(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=wn(r,t.focusedKey);oe instanceof HTMLElement&&(!Sd(oe)&&!d&&gr(oe),(k==="keyboard"||b&&k==="virtual")&&Wd(oe,{containingElement:r.current}))}},dn=v=>{Pe(v.currentTarget,v.relatedTarget)||t.setFocused(!1)},Ze=(0,on.useRef)(!1);ea(r,N0,d?v=>{let{detail:k}=v;v.stopPropagation(),t.setFocused(!0),k?.focusStrategy==="first"&&(Ze.current=!0)}:void 0);let pt=n.getFirstKey?.()??null;ef(()=>{if(Ze.current)if(pt==null){let v=te();I0(r.current),Cd(v,null),t.collection.size>0&&(Ze.current=!1)}else t.setFocusedKey(pt),Ze.current=!1},[pt,t.collection.size]),ef(()=>{t.collection.size>0&&(Ze.current=!1)},[t.focusedKey]),ea(r,L0,d?v=>{v.stopPropagation(),t.setFocused(!1),v.detail?.clearFocusKey&&t.setFocusedKey(null)}:void 0);let fn=(0,on.useRef)(o),Dt=(0,on.useRef)(!1);(0,on.useEffect)(()=>{if(fn.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 ke of k)if(t.canSelectItem(ke)){v=ke;break}}t.setFocused(!0),t.setFocusedKey(v),v!=null&&u&&!k.size&&t.canSelectItem(v)&&t.replaceSelection(v),v==null&&!d&&r.current&&ca(r.current),t.collection.size>0&&(fn.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=Gr(),k=wn(r,t.focusedKey);if(!(k instanceof HTMLElement))return;(v==="keyboard"||Dt.current)&&(Ft.current&&cancelAnimationFrame(Ft.current),Ft.current=requestAnimationFrame(()=>{g.current&&($a(g.current,k),v!=="virtual"&&Wd(k,{containingElement:r.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&jt.current!=null&&r.current&&ca(r.current),jt.current=t.focusedKey,Dt.current=!1}),(0,on.useEffect)(()=>()=>{Ft.current&&cancelAnimationFrame(Ft.current)},[]),ea(r,"react-aria-focus-scope-restore",v=>{v.preventDefault(),t.setFocused(!0)});let xt={...Re(Ie,se),onFocus:Un,onBlur:dn,onMouseDown(v){g.current===Z(v)&&v.preventDefault()}},{typeSelectProps:Tn}=Hg({keyboardDelegate:n,selectionManager:t});c||(xt=Re(Tn,xt));let ei;d||(ei=t.focusedKey==null?0:-1);let X=Og(t.collection);return{collectionProps:Re(xt,{tabIndex:ei,"data-collection":X})}}var xa=class{constructor(t){this.ref=t}getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?wn(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 Jr=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 xa(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 xa(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=wn(this.ref,t);if(n!=null){let i=wn(this.ref,n);return!r||!i?!1:r.getBoundingClientRect().top>i.getBoundingClientRect().top}let o=this.getPreviousKey(t);if(o!=null){let i=wn(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&&!vr(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&&!vr(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 tf=new Map;function wa(e){let{locale:t}=Yr(),n=t+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(tf.has(n))return tf.get(n);let r=new Intl.Collator(t,e);return tf.set(n,r),r}var Wg=S(K(),1);function As(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:o,keyboardDelegate:i,layoutDelegate:a,orientation:l}=e,s=wa({usage:"search",sensitivity:"base"}),u=t.disabledBehavior,c=(0,Wg.useMemo)(()=>i||new Jr({collection:n,disabledKeys:r,disabledBehavior:u,ref:o,collator:s,layoutDelegate:a,orientation:l}),[i,a,n,r,o,s,u,l]),{collectionProps:d}=Bg({...e,ref:o,selectionManager:t,keyboardDelegate:c});return{listProps:d}}function nf(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}=As({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:a}),{focusWithinProps:s}=Ns({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),u=Pt(e.id);Ng.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}=Tg({...e,id:u,labelElementType:"span"});return{labelProps:c,listBoxProps:Re(r,s,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox","aria-orientation":i,...Re(d,l)})}}function Ug(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function jg(e){return B1(e,0)}function B1(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function Hs(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...Vg(e,t),t],o=[...Vg(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 Vg(e,t){let n=[],r=t;for(;r?.parentKey!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}function rf(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 Gg=S(K(),1);function Sa(e){let t=Gg.version.split(".");return parseInt(t[0],10)>=19?e:e?"true":void 0}var Ca=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 W1(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function eo(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)(()=>Yg(e.selectedKeys),[e.selectedKeys]),p=(0,lt.useMemo)(()=>Yg(e.defaultSelectedKeys,new Rt),[e.defaultSelectedKeys]),[g,y]=jo(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||!W1(h,g))&&y(h)},disabledKeys:b,disabledBehavior:i}}function Yg(e,t){return e?e==="all"?"all":new Rt(e):t}var Bn=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&&Hs(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&&Hs(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?Hs(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(jg(Ug(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 xr=S(K(),1),zs=class{build(t,n){return this.context=n,Qg(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(xr.default.isValidElement(n)&&n.type===xr.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=[];xr.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(xr.default.isValidElement(t.element)&&t.element.type===xr.default.Fragment){let s=[];xr.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(xr.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:V1(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 <${of(D.type)}> in <${of(o?.type??"unknown parent type")}>. Only <${of(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:Qg(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 Qg(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 V1(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function of(e){return e[0].toUpperCase()+e.slice(1)}var af=S(K(),1);function Bs(e,t,n){let r=(0,af.useMemo)(()=>new zs,[]),{children:o,items:i,collection:a}=e;return(0,af.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 lf(e){let{filter:t,layoutDelegate:n}=e,r=eo(e),o=(0,an.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=(0,an.useCallback)(u=>t?new Ca(t(u)):new Ca(u),[t]),a=(0,an.useMemo)(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),l=Bs(e,i,a),s=(0,an.useMemo)(()=>new Bn(l,r,{layoutDelegate:n}),[l,r,n]);return Xg(l,s),{collection:l,disabledKeys:o,selectionManager:s}}function sf(e,t){let n=(0,an.useMemo)(()=>t?e.collection.filter(t):e.collection,[e.collection,t]),r=e.selectionManager.withCollection(n);return Xg(n,r),{collection:n,selectionManager:r,disabledKeys:e.disabledKeys}}function Xg(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 qg=S(K(),1);function ka(e,t){let{collection:n,onLoadMore:r,scrollOffset:o=1,direction:i="end"}=e,a=(0,qg.useRef)(null),l=Cs(s=>{for(let u of s)u.isIntersecting&&r&&r()});pe(()=>{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 uf=(0,A.createContext)(null),Ea=(0,A.createContext)(null),cf=(0,A.forwardRef)(function(t,n){[t,n]=zo(t,n,uf);let r=(0,A.useContext)(Ea);return r?A.default.createElement(Zg,{state:r,props:t,listBoxRef:n}):A.default.createElement(pa,{content:A.default.createElement(ha,t)},o=>A.default.createElement(U1,{props:t,listBoxRef:n,collection:o}))});function U1({props:e,listBoxRef:t,collection:n}){e={...e,collection:n,children:null,items:null};let{layoutDelegate:r}=(0,A.useContext)(Xr),o=lf({...e,layoutDelegate:r});return A.default.createElement(Zg,{state:o,props:e,listBoxRef:t})}function Zg({state:e,props:t,listBoxRef:n}){[t,n]=zo(t,n,ra);let{dragAndDropHooks:r,layout:o="stack",orientation:i="vertical",filter:a}=t,l=sf(e,a),{collection:s,selectionManager:u}=l,c=!!r?.useDraggableCollectionState,d=!!r?.useDroppableCollectionState,{direction:p}=Yr(),{disabledBehavior:g,disabledKeys:y}=u,b=wa({usage:"search",sensitivity:"base"}),{isVirtualized:D,layoutDelegate:m,dropTargetDelegate:f,CollectionRoot:h}=(0,A.useContext)(Xr),$=(0,A.useMemo)(()=>t.keyboardDelegate||new Jr({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}=nf({...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,Y=!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),Y=R.isDropTarget({type:"root"})}let{focusProps:H,isFocused:W,isFocusVisible:se}=Bd(),Ie=l.collection.size===0,ft={isDropTarget:Y,isEmpty:Ie,isFocused:W,isFocusVisible:se,layout:t.layout||"stack",orientation:i,state:l},Un=An({...t,children:void 0,defaultClassName:"react-aria-ListBox",values:ft}),dn=null;Ie&&t.renderEmptyState&&(dn=A.default.createElement("div",{role:"option",style:{display:"contents"}},t.renderEmptyState(ft)));let Ze=Nt(t,{global:!0});return A.default.createElement(va,null,A.default.createElement(Hn.div,{...Re(Ze,Un,C,H,F?.collectionProps),ref:n,slot:t.slot||void 0,onScroll:t.onScroll,"data-drop-target":Y||void 0,"data-empty":Ie||void 0,"data-focused":W||void 0,"data-focus-visible":se||void 0,"data-layout":t.layout||"stack","data-orientation":i},A.default.createElement(Ho,{values:[[uf,t],[Ea,l],[Ms,{dragAndDropHooks:r,dragState:N,dropState:R}],[Fs,{elementType:"div"}],[Vd,{render:G1}],[Ls,{name:"ListBoxSection",render:j1}]]},A.default.createElement(Ds,null,A.default.createElement(h,{collection:s,scrollRef:n,persistedKeys:Pg(u,r,R),renderDropIndicator:Ud(r,R)}))),dn,O))}function j1(e,t,n,r="react-aria-ListBoxSection"){let o=(0,A.useContext)(Ea),{dragAndDropHooks:i,dropState:a}=(0,A.useContext)(Ms),{CollectionBranch:l}=(0,A.useContext)(Xr),[s,u]=ds(),{headingProps:c,groupProps:d}=rf({heading:u,"aria-label":e["aria-label"]??void 0}),p=An({...e,id:void 0,children:void 0,defaultClassName:r,values:void 0}),g=Nt(e,{global:!0});return delete g.id,A.default.createElement(Hn.section,{...Re(g,p,d),ref:t},A.default.createElement(Is.Provider,{value:{...c,ref:s}},A.default.createElement(l,{collection:o.collection,parent:n,renderDropIndicator:Ud(i,a)})))}function G1(e,t){t=Yi(t);let{dragAndDropHooks:n,dropState:r}=(0,A.useContext)(Ms),{dropIndicatorProps:o,isHidden:i,isDropTarget:a}=n.useDropIndicator(e,r,t);return i?null:A.default.createElement(Q1,{...e,dropIndicatorProps:o,isDropTarget:a,ref:t})}function Y1(e,t){let{dropIndicatorProps:n,isDropTarget:r,...o}=e,i=An({...o,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}});return A.default.createElement(A.default.Fragment,null,A.default.createElement(Hn.div,{...n,...i,role:"option",ref:t,"data-drop-target":r||void 0}))}var Q1=(0,A.forwardRef)(Y1),X1=ma(Qr,function(t,n,r){let o=(0,A.useContext)(Ea),{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]);ka(c,u);let d=An({...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:Sa(!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(Hn.div,{...Re(Nt(t,{global:!0}),p),...d,role:"option",ref:n},d.children)))});var Xo=S(K(),1);function Jg(e){let[t,n]=jo(e.isOpen,e.defaultOpen||!1,e.onOpenChange),[r,o]=(0,Xo.useState)(null),i=(0,Xo.useCallback)(()=>{n(!0)},[n]),a=(0,Xo.useCallback)(()=>{n(!1)},[n]),l=(0,Xo.useCallback)(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:i,close:a,toggle:l,point:r,setPoint:o}}var e$=new WeakMap;function df(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}=As({...a,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return e$.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:Re(l,{onKeyDown:o,onKeyUp:i},{role:"menu",...s,onKeyDown:u=>{(u.key!=="Escape"||e.shouldUseVirtualFocus)&&s.onKeyDown?.(u)}})}}function ff(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 pf=S(K(),1);function mf(e){let t=Jg(e),[n,r]=(0,pf.useState)(null),[o,i]=(0,pf.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 Ws=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 qo=S(K(),1);function hf(e){let{onExpandedChange:t}=e,[n,r]=jo(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),o=eo(e),i=(0,qo.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=Bs(e,(0,qo.useCallback)(s=>new Ws(s,{expandedKeys:n}),[n]),null);return(0,qo.useEffect)(()=>{o.focusedKey!=null&&!a.getItem(o.focusedKey)&&o.setFocusedKey(null)},[a,o.focusedKey]),{collection:a,expandedKeys:n,disabledKeys:i,toggleKey:s=>{r(q1(n,s))},setExpandedKeys:r,selectionManager:new Bn(a,o)}}function q1(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}var yf=(0,U.createContext)(null),Us=(0,U.createContext)(null),Vs=(0,U.createContext)(null),gf=(0,U.createContext)(null);var Z1=(0,U.createContext)(null),t$=class extends Vt{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 vf=(0,U.forwardRef)(function(t,n){return[t,n]=zo(t,n,yf),U.default.createElement(pa,{content:U.default.createElement(ha,t)},r=>U.default.createElement(J1,{props:t,collection:r,menuRef:n}))});function J1({props:e,collection:t,menuRef:n}){[e,n]=zo(e,n,ra);let{filter:r,...o}=e,i=(0,U.useMemo)(()=>r?t.filter(r):t,[t,r]),a=hf({...e,collection:i,children:void 0}),l=(0,U.useContext)(Vs),{isVirtualized:s,CollectionRoot:u}=(0,U.useContext)(Xr),{menuProps:c}=df({...e,isVirtualized:s,onClose:e.onClose||l?.close},a,n),d=An({...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(va,null,U.default.createElement(Hn.div,{...Re(g,d,c),ref:n,slot:e.slot||void 0,"data-empty":a.collection.size===0||void 0,onScroll:e.onScroll},U.default.createElement(Ho,{values:[[Us,a],[Fs,{elementType:"div"}],[Ls,{name:"MenuSection",render:ex}],[Z1,{parentMenuRef:n,shouldUseVirtualFocus:o?.shouldUseVirtualFocus}],[bf,{shouldCloseOnSelect:e.shouldCloseOnSelect}],[ra,null],[rg,null],[gf,a.selectionManager],[Vs,l??mf({})]]},U.default.createElement(Ds,null,U.default.createElement(u,{collection:a.collection,persistedKeys:Cg(a.selectionManager.focusedKey),scrollRef:n}))),p))}var $f=class extends Bn{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 ex(e,t,n,r="react-aria-MenuSection"){let o=(0,U.useContext)(Us),{CollectionBranch:i}=(0,U.useContext)(Xr),[a,l]=ds(),{headingProps:s,groupProps:u}=ff({heading:l,"aria-label":n.props["aria-label"]??void 0}),c=An({...e,id:void 0,children:void 0,defaultClassName:r,className:n.props?.className,style:n.props?.style,values:void 0}),d=(0,U.useContext)(gf),p=eo(e),g=e.selectionMode!=null?new $f(d,p):d,y=wd(bf)?.shouldCloseOnSelect,b=Nt(e,{global:!0});return delete b.id,U.default.createElement(Hn.section,{...Re(b,c,u),ref:t},U.default.createElement(Ho,{values:[[Is,{...s,ref:a}],[gf,g],[bf,{shouldCloseOnSelect:e.shouldCloseOnSelect??y}]]},U.default.createElement(i,{collection:o.collection,parent:n})))}var bf=(0,U.createContext)(null);var tx=ma(Qr,function(t,n,r){let o=(0,U.useContext)(Us),{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]);ka(c,u);let d=An({...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:Sa(!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(Hn.div,{...Re(Nt(t,{global:!0}),p),...d,role:"menuitem",ref:n},d.children)))});var xf=S(K(),1);var n$=S(ce(),1);var js=S(K(),1);var o$=S(ce(),1),le=e=>`var(--semantic-color-${e})`,ln=e=>`var(--semantic-layout-units-${e})`,r$=e=>`var(--contextual-layout-units-${e})`,ze=e=>`var(--semantic-type-${e})`,Sn=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:r$("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")}},D4=`
|
|
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,28 +23,28 @@ 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
|
-
transition:background-color ${
|
|
37
|
+
transition:background-color ${Sn("duration-2")} ${Sn("easing-standard")}}
|
|
38
38
|
.pw-radio__mark{box-sizing:border-box;display:inline-grid;place-items:center;width:${ne.ring.Base}px;height:${ne.ring.Base}px;
|
|
39
39
|
border-radius:${ne.radius};border:${ne.ringWidth} solid ${ie.ring};background:transparent;
|
|
40
|
-
transition:border-color ${
|
|
40
|
+
transition:border-color ${Sn("duration-2")} ${Sn("easing-standard")},background-color ${Sn("duration-2")} ${Sn("easing-standard")}}
|
|
41
41
|
.pw-radio__dot{width:${ne.dot.Base}px;height:${ne.dot.Base}px;border-radius:${ne.radius};background:${ie.dot};transform:scale(0);
|
|
42
|
-
transition:transform ${
|
|
42
|
+
transition:transform ${Sn("duration-3")} ${Sn("easing-burst")},background-color ${Sn("duration-2")} ${Sn("easing-standard")}}
|
|
43
43
|
.pw-radio[data-size=Large] .pw-radio__mark{width:${ne.ring.Large}px;height:${ne.ring.Large}px}
|
|
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,22 +72,48 @@ 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:${r$("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 F4=(0,js.createContext)({size:"Base"});var O4=S(K(),1),i$=S(ce(),1);var yt=e=>`var(--semantic-color-${e})`,H4={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 lx=S(K(),1);var l$=S(ce(),1),sx=e=>`var(--semantic-color-${e})`,vt=e=>`var(--semantic-layout-units-${e})`,a$=e=>`var(--contextual-layout-units-${e})`;var V4={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")},wr={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:sx("stroke-focusring-base"),ringWidth:a$("focusring-width"),ringOffset:a$("focusring-offset"),fieldMax:80,badgeMax:240,duration:"var(--motion-duration-2)",easing:"var(--motion-easing-standard)"};var U4={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,minWidth:wr.touchW,minHeight:wr.touchH,boxSizing:"border-box",padding:0,margin:0,border:0,background:"transparent",font:"inherit",color:"inherit",textDecoration:"none",outline:"none"};var j4=`background ${wr.duration} ${wr.easing}, color ${wr.duration} ${wr.easing}, box-shadow ${wr.duration} ${wr.easing}`;var s$=S(K(),1),u$=S(ce(),1),Sr=e=>`var(--semantic-color-${e})`,sn=e=>`var(--semantic-layout-units-${e})`,qe=e=>`var(--semantic-type-${e})`;var Q4={XXXS:{px:16,fontSize:qe("font-size-xxxs"),lineHeight:qe("line-height-xxxs-single"),radius:sn("cornerradius-small"),icon:10,badge:6},XXS:{px:20,fontSize:qe("font-size-xxxs"),lineHeight:qe("line-height-xxxs-single"),radius:sn("cornerradius-small"),icon:12,badge:7},XS:{px:24,fontSize:qe("font-size-xxs"),lineHeight:qe("line-height-xxs-single"),radius:sn("cornerradius-small"),icon:14,badge:8},S:{px:32,fontSize:qe("font-size-s"),lineHeight:qe("line-height-s-single"),radius:sn("cornerradius-small"),icon:20,badge:10},M:{px:40,fontSize:qe("font-size-r"),lineHeight:qe("line-height-r-single"),radius:sn("cornerradius-base"),icon:24,badge:12},L:{px:56,fontSize:qe("font-size-l"),lineHeight:qe("line-height-l-single"),radius:sn("cornerradius-large"),icon:34,badge:16},XL:{px:96,fontSize:qe("font-size-xxl"),lineHeight:qe("line-height-xxl-single"),radius:sn("cornerradius-xlarge"),icon:58,badge:28}},X4={fill:Sr("fill-static-brand-subtle"),foreground:Sr("foreground-static-brand-on-subtle"),imageFill:Sr("fill-static-neutral-faint"),stroke:Sr("stroke-static-neutral-base"),strokeWidth:sn("borderwidth-thin"),circle:sn("cornerradius-full"),badgeRing:Sr("stroke-static-neutral-mono"),badgeRingW:sn("borderwidth-base"),badge:{Positive:Sr("fill-static-positive-strong"),Attention:Sr("fill-static-attention-strong")},groupRing:Sr("fill-surface-elevated"),groupRingW:sn("borderwidth-thick"),family:qe("family-brand"),weight:qe("weight-semibold")};var f$=S(K(),1),wf=S(ce(),1),_=e=>`var(--semantic-color-${e})`;var It=e=>`var(--contextual-layout-units-${e})`,Ta=e=>`var(--semantic-type-${e})`,c$={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"}}};c$.Naked=c$.Outlined;var d$={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")}}};d$.Naked=d$.Outlined;var J4={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")}},e6={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"},Gs=(e,t,n)=>({fontFamily:Ta("family-brand"),fontSize:Ta(`font-size-${e}`),fontWeight:Ta("weight-medium"),lineHeight:Ta(`line-height-${t}`),letterSpacing:Ta(`letter-spacing-${n}`)}),t6={L:{padH:It("button-padding-large-horizontal"),padV:It("button-padding-large-vertical"),iconWrap:26,iconInner:18,...Gs("m","m-single","wide")},M:{padH:It("button-padding-medium-horizontal"),padV:It("button-padding-medium-vertical"),iconWrap:24,iconInner:16,...Gs("r","r-single","wide")},S:{padH:It("button-padding-small-horizontal"),padV:It("button-padding-small-vertical"),iconWrap:20,iconInner:14,...Gs("s","s-single","spacious")},XS:{padH:It("button-padding-xsmall-horizontal"),padV:It("button-padding-xsmall-vertical"),iconWrap:16,iconInner:12,...Gs("xs","xs-single","extraspacious")}};var un=S(K(),1),ux=S(pr(),1);var Cf=S(ce(),1),Sf=e=>`var(--semantic-color-${e})`,Cr=e=>`var(--semantic-layout-units-${e})`,_a=e=>`var(--semantic-type-${e})`,Ys=e=>`var(--motion-${e})`,Zo={fill:Sf("fill-surface-elevated"),stroke:Sf("stroke-static-neutral-base"),fg:Sf("foreground-static-neutral-base"),shadow:"var(--elevation-widget)"},Cn={padY:Cr("padding-xxtight"),padX:Cr("padding-xtight"),radius:Cr("cornerradius-small"),stroke:Cr("borderwidth-base"),offset:"--semantic-layout-units-gap-xxtight",edge:"--semantic-layout-units-padding-xtight",maxW:240,arrowW:12,arrowH:6,arrowInset:8,bridgeMs:120,tapMs:2600},Pa={fontFamily:_a("family-brand"),fontSize:_a("font-size-s"),fontWeight:_a("weight-regular"),lineHeight:_a("line-height-s-single"),letterSpacing:_a("letter-spacing-wide")};var o6=`
|
|
81
|
+
.pw-tooltip{position:fixed;left:0;top:0;z-index:1000;box-sizing:border-box;width:max-content;
|
|
82
|
+
max-width:min(${Cn.maxW}px, calc(100vw - 2 * var(${Cn.edge})));
|
|
83
|
+
padding:${Cn.padY} ${Cn.padX};border-radius:${Cn.radius};background:${Zo.fill};color:${Zo.fg};
|
|
84
|
+
box-shadow:inset 0 0 0 ${Cn.stroke} ${Zo.stroke},${Zo.shadow};
|
|
85
|
+
font-family:${Pa.fontFamily},sans-serif;font-size:${Pa.fontSize};font-weight:${Pa.fontWeight};
|
|
86
|
+
line-height:${Pa.lineHeight};letter-spacing:${Pa.letterSpacing};
|
|
87
|
+
overflow-wrap:anywhere;text-align:start;pointer-events:auto;user-select:none}
|
|
88
|
+
.pw-tooltip[data-state=open]{animation:pw-tooltip-in ${Ys("duration-2")} ${Ys("easing-decelerate")}}
|
|
89
|
+
.pw-tooltip[data-state=closed]{animation:pw-tooltip-out ${Ys("duration-1")} ${Ys("easing-accelerate")} forwards}
|
|
90
|
+
.pw-tooltip[data-side=top]{--pw-tooltip-dx:0;--pw-tooltip-dy:${Cr("gap-xxtight")}}
|
|
91
|
+
.pw-tooltip[data-side=bottom]{--pw-tooltip-dx:0;--pw-tooltip-dy:calc(-1 * ${Cr("gap-xxtight")})}
|
|
92
|
+
.pw-tooltip[data-side=left]{--pw-tooltip-dx:${Cr("gap-xxtight")};--pw-tooltip-dy:0}
|
|
93
|
+
.pw-tooltip[data-side=right]{--pw-tooltip-dx:calc(-1 * ${Cr("gap-xxtight")});--pw-tooltip-dy:0}
|
|
94
|
+
.pw-tooltip[data-reduced][data-state=open]{animation-name:pw-tooltip-fade}
|
|
95
|
+
@keyframes pw-tooltip-in{from{opacity:0;transform:translate(var(--pw-tooltip-dx),var(--pw-tooltip-dy))}to{opacity:1;transform:none}}
|
|
96
|
+
@keyframes pw-tooltip-fade{from{opacity:0}to{opacity:1}}
|
|
97
|
+
@keyframes pw-tooltip-out{from{opacity:1}to{opacity:0}}
|
|
98
|
+
.pw-tooltip__arrow{position:absolute;display:block;width:${Cn.arrowW}px;height:calc(${Cn.arrowH}px + ${Cn.stroke});overflow:hidden;transform-origin:0 0;pointer-events:none}
|
|
99
|
+
.pw-tooltip__arrow::before{content:"";position:absolute;left:50%;top:0;width:8px;height:8px;box-sizing:border-box;
|
|
100
|
+
transform:translate(-50%,-50%) rotate(45deg);background:${Zo.fill};box-shadow:inset 0 0 0 ${Cn.stroke} ${Zo.stroke}}
|
|
101
|
+
.pw-tooltip__sr{display:none}
|
|
102
|
+
.pw-tooltip__trigger{display:inline-flex}
|
|
103
|
+
`;var i6=(0,un.createContext)(null),a6=(0,un.createContext)({arrow:!0});var Wn=S(ce(),1),G=e=>`var(--semantic-color-${e})`,j=e=>`var(--semantic-layout-units-${e})`,cx=e=>`var(--contextual-layout-units-${e})`,ut=e=>`var(--semantic-type-${e})`,ye=e=>`var(--motion-${e})`;var z={panel:G("fill-surface-elevated"),panelBorder:G("stroke-static-neutral-faint"),slotDivider:G("stroke-static-neutral-base"),separator:G("stroke-static-neutral-base"),fillHover:G("fill-static-neutral-subtle"),fillPressed:G("fill-static-neutral-base"),fillSelected:G("fill-action-selection-selected"),fillDangerHover:G("fill-action-status-negative-subtle-hover"),fillDangerPressed:G("fill-action-status-negative-subtle-pressed"),stripe:G("fill-action-primary-strong-pressed"),label:G("foreground-static-neutral-strong"),labelHover:G("foreground-static-neutral-bold"),labelDanger:G("foreground-action-status-negative-on-subtle-rest"),labelDangerHover:G("foreground-action-status-negative-on-subtle-hover"),labelDangerPressed:G("foreground-action-status-negative-on-subtle-pressed"),disabled:G("foreground-action-disabled"),secondary:G("foreground-static-neutral-subtle"),reason:G("foreground-static-neutral-base"),check:G("foreground-action-primary-on-subtle-rest"),countFill:G("fill-static-neutral-base"),countText:G("foreground-static-neutral-bold"),countFillDisabled:G("fill-action-disabled"),swatchEdge:G("stroke-static-neutral-base"),dot:{positive:G("fill-static-positive-strong"),attention:G("fill-static-attention-strong"),negative:G("fill-static-negative-strong"),neutral:G("fill-static-neutral-strong")},statusTitle:G("foreground-static-neutral-bold"),statusBody:G("foreground-static-neutral-base"),focusRing:G("stroke-focusring-base"),trigger:G("foreground-action-secondary-rest"),triggerHover:G("foreground-action-secondary-hover"),buttonFill:G("fill-surface-elevated"),buttonFillHover:G("fill-action-selection-hover"),buttonBorder:G("stroke-action-secondary-rest"),avatarFill:G("fill-action-primary-subtle-rest"),avatarText:G("foreground-action-primary-on-subtle-rest")},T={panelRadius:j("cornerradius-large"),panelBorder:j("borderwidth-xthin"),shadow:"var(--elevation-lift)",listPadV:j("padding-xtight"),listPadH:j("padding-xxtight"),itemGap:j("gap-xxxtight"),slotPad:j("padding-xtight"),footerPad:j("padding-tight"),footerGap:j("gap-tight"),itemMinH:j("accessibility-touch-target-aa-height"),itemPad:j("padding-tight"),itemContentGap:j("gap-medium"),leadGroupGap:j("gap-tight"),textGap:j("gap-xxxtight"),inlineGap:j("gap-tight"),badgeGap:j("gap-xxtight"),reasonGap:j("gap-xxtight"),trailGap:j("gap-xxtight"),itemRadius:j("cornerradius-base"),fullRadius:j("cornerradius-full"),swatchRadius:j("cornerradius-small"),headerPadTop:{First:j("padding-xxtight"),"After Separator":j("padding-xtight"),Default:j("padding-base")},headerPadL:j("padding-tight"),headerPadR:j("padding-xtight"),headerPadB:j("padding-xxtight"),separatorMargin:j("padding-xtight"),stripeW:j("borderwidth-xthick"),stripeInset:j("padding-xtight"),countPadH:j("padding-xtight"),statusPadV:j("padding-base"),statusPadH:j("padding-tight"),statusGap:j("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:cx("focusring-width"),triggerTarget:j("accessibility-touch-target-aa-width"),triggerTargetH:j("accessibility-touch-target-aa-height"),triggerGlyph:20,avatarBox:28,buttonPadV:j("padding-xtight"),buttonPadH:j("padding-tight"),buttonBorder:j("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")}},kf={surface:G("fill-surface-elevated"),overlay:G("scrim-subtle"),handle:G("fill-static-neutral-strong")},cn={radius:j("cornerradius-xlarge"),pillRadius:j("cornerradius-full"),maxWidth:640,topClearance:56,handleZone:20,pillWidth:32,pillHeight:4},st=".pw-menu-item",p$=e=>`${st}:not([data-disabled]):is(${e})`,m$="[data-hovered],[data-focused],[data-open],[data-force=Hover],[data-force=Focus]",h$="[data-pressed],[data-force=Pressed]",dx=`
|
|
81
104
|
.pw-menu-panel{--trigger-width:0px;--visual-viewport-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;outline:none;
|
|
82
105
|
width:clamp(${T.minWidth}px,max(${T.width}px,var(--trigger-width,0px)),${T.maxWidth}px);
|
|
83
|
-
max-width:min(${T.maxWidth}px,calc(100vw - 2 * ${
|
|
106
|
+
max-width:min(${T.maxWidth}px,calc(100vw - 2 * ${j("padding-tight")}));
|
|
84
107
|
max-height:min(${T.maxHeight}px,var(--visual-viewport-height,100vh));
|
|
85
108
|
background:${z.panel};border:${T.panelBorder} solid ${z.panelBorder};border-radius:${T.panelRadius};box-shadow:${T.shadow};
|
|
86
109
|
font-family:${ut("family-brand")},sans-serif}
|
|
87
110
|
.pw-menu-panel[data-searchable]{height:${T.searchHeight}px}
|
|
88
|
-
|
|
111
|
+
/* React Aria stacks the panel at 100000 inline; a truncated label's Tooltip
|
|
112
|
+
(portalled to the body at 1000) has to sit above it. */
|
|
113
|
+
body:has(.pw-menu-panel) .pw-tooltip{z-index:100001}
|
|
114
|
+
.pw-menu-panel[data-entering]{animation:pw-menu-in ${ye("duration-4")} ${ye("easing-decelerate")} both}
|
|
89
115
|
.pw-menu-panel[data-placement=top][data-entering]{animation-name:pw-menu-in-up}
|
|
90
|
-
.pw-menu-panel[data-exiting]{animation:pw-menu-out ${
|
|
116
|
+
.pw-menu-panel[data-exiting]{animation:pw-menu-out ${ye("duration-2")} ${ye("easing-standard")} both}
|
|
91
117
|
@keyframes pw-menu-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
|
|
92
118
|
@keyframes pw-menu-in-up{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
|
|
93
119
|
@keyframes pw-menu-out{from{opacity:1}to{opacity:0}}
|
|
@@ -108,15 +134,15 @@ ${st}{position:relative;display:flex;align-items:flex-start;gap:${T.itemContentG
|
|
|
108
134
|
min-height:${T.itemMinH};padding:${T.itemPad};border-radius:${T.itemRadius};
|
|
109
135
|
color:${z.label};font-size:${$e.label.fontSize};line-height:${$e.label.lineHeight};font-weight:${$e.label.fontWeight};letter-spacing:normal;
|
|
110
136
|
cursor:pointer;outline:none;text-decoration:none;-webkit-tap-highlight-color:transparent;
|
|
111
|
-
transition:background-color ${
|
|
112
|
-
${
|
|
113
|
-
${
|
|
137
|
+
transition:background-color ${ye("duration-2")} ${ye("easing-standard")},color ${ye("duration-2")} ${ye("easing-standard")}}
|
|
138
|
+
${p$(m$)}{background:${z.fillHover};color:${z.labelHover}}
|
|
139
|
+
${p$(h$)}{background:${z.fillPressed};color:${z.label}}
|
|
114
140
|
${st}:not([data-disabled]):is([data-selected],[data-current]){background:${z.fillSelected};color:${z.label}}
|
|
115
141
|
${st}:is([data-focus-visible],[data-force=Focus]){outline:${T.focusWidth} solid ${z.focusRing};outline-offset:calc(-1 * ${T.focusWidth})}
|
|
116
142
|
${st}[role=option][data-focused][data-hovered]:not([data-focus-visible]){outline:none}
|
|
117
143
|
${st}[data-tone=Destructive]{color:${z.labelDanger}}
|
|
118
|
-
${st}[data-tone=Destructive]:not([data-disabled]):is(${
|
|
119
|
-
${st}[data-tone=Destructive]:not([data-disabled]):is(${
|
|
144
|
+
${st}[data-tone=Destructive]:not([data-disabled]):is(${m$}){background:${z.fillDangerHover};color:${z.labelDangerHover}}
|
|
145
|
+
${st}[data-tone=Destructive]:not([data-disabled]):is(${h$}){background:${z.fillDangerPressed};color:${z.labelDangerPressed}}
|
|
120
146
|
${st}[data-disabled]{color:${z.disabled};background:transparent;cursor:default}
|
|
121
147
|
|
|
122
148
|
.pw-menu-item__lead-group{flex:none;display:inline-flex;align-items:center;gap:${T.leadGroupGap};min-height:${$e.label.lineHeight}}
|
|
@@ -172,7 +198,7 @@ ${st}:is([data-selected],[data-current]) .pw-menu-item__stripe{background:${z.st
|
|
|
172
198
|
|
|
173
199
|
.pw-menu-trigger{position:relative;display:inline-flex}
|
|
174
200
|
.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
|
-
transition:color ${
|
|
201
|
+
transition:color ${ye("duration-2")} ${ye("easing-standard")},background-color ${ye("duration-2")} ${ye("easing-standard")}}
|
|
176
202
|
.pw-menu-trigger__icon{display:inline-flex;align-items:center;justify-content:center;flex:none;padding:0;border:0;background:transparent;color:${z.trigger}}
|
|
177
203
|
.pw-menu-trigger__icon:is(:hover,[aria-expanded=true]){color:${z.triggerHover}}
|
|
178
204
|
.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};
|
|
@@ -183,12 +209,31 @@ ${st}:is([data-selected],[data-current]) .pw-menu-item__stripe{background:${z.st
|
|
|
183
209
|
border:0;border-radius:${T.itemRadius};background:${z.avatarFill};color:${z.avatarText};font-size:${ut("font-size-xxs")};font-weight:${ut("weight-semibold")}}
|
|
184
210
|
.pw-menu-trigger :is(.pw-menu-trigger__icon,.pw-menu-trigger__button,.pw-menu-trigger__avatar):focus-visible{outline:${T.focusWidth} solid ${z.focusRing}}
|
|
185
211
|
|
|
212
|
+
/* smallScreen="sheet" (G4, pending the overlay family decision): below 768 the
|
|
213
|
+
panel opens as a bottom sheet from the BottomSheet tokens, the way the
|
|
214
|
+
approved demo draws it. The scrim is a spread shadow, so a press outside
|
|
215
|
+
still reaches the page and closes the menu. */
|
|
216
|
+
@media (max-width: 767px){
|
|
217
|
+
.pw-menu-panel[data-small-screen=sheet]{position:fixed !important;top:auto !important;bottom:0 !important;left:0 !important;right:0 !important;
|
|
218
|
+
width:auto;max-width:${cn.maxWidth}px;margin:0 auto;max-height:calc(var(--visual-viewport-height,100vh) - ${cn.topClearance}px);
|
|
219
|
+
padding-top:${cn.handleZone}px;padding-bottom:env(safe-area-inset-bottom,0);
|
|
220
|
+
background:${kf.surface};border-bottom:0;border-radius:${cn.radius} ${cn.radius} 0 0;box-shadow:0 0 0 100vmax ${kf.overlay}}
|
|
221
|
+
.pw-menu-panel[data-small-screen=sheet]::before{content:"";position:absolute;top:${(cn.handleZone-cn.pillHeight)/2}px;left:50%;
|
|
222
|
+
width:${cn.pillWidth}px;height:${cn.pillHeight}px;margin-left:-${cn.pillWidth/2}px;border-radius:${cn.pillRadius};background:${kf.handle}}
|
|
223
|
+
.pw-menu-panel[data-small-screen=sheet][data-entering],.pw-menu-panel[data-small-screen=sheet][data-placement=top][data-entering]{animation:pw-menu-sheet-in ${ye("duration-5")} ${ye("easing-emphasized")} both}
|
|
224
|
+
.pw-menu-panel[data-small-screen=sheet][data-exiting]{animation:pw-menu-sheet-out ${ye("duration-4")} ${ye("easing-accelerate")} both}
|
|
225
|
+
@keyframes pw-menu-sheet-in{from{transform:translateY(100%)}to{transform:none}}
|
|
226
|
+
@keyframes pw-menu-sheet-out{from{transform:none}to{transform:translateY(100%)}}
|
|
227
|
+
}
|
|
228
|
+
|
|
186
229
|
@media (prefers-reduced-motion: reduce){
|
|
187
|
-
.pw-menu-panel[data-entering],.pw-menu-panel[data-placement=top][data-entering]{animation:pw-menu-fade ${
|
|
188
|
-
.pw-menu-panel[data-exiting]{animation:pw-menu-out ${
|
|
230
|
+
.pw-menu-panel[data-small-screen=sheet][data-entering],.pw-menu-panel[data-small-screen=sheet][data-placement=top][data-entering]{animation:pw-menu-fade ${ye("duration-2")} ${ye("easing-standard")} both}
|
|
231
|
+
.pw-menu-panel[data-small-screen=sheet][data-exiting]{animation:pw-menu-out ${ye("duration-2")} ${ye("easing-standard")} both}
|
|
232
|
+
.pw-menu-panel[data-entering],.pw-menu-panel[data-placement=top][data-entering]{animation:pw-menu-fade ${ye("duration-2")} ${ye("easing-standard")} both}
|
|
233
|
+
.pw-menu-panel[data-exiting]{animation:pw-menu-out ${ye("duration-2")} ${ye("easing-standard")} both}
|
|
189
234
|
@keyframes pw-menu-fade{from{opacity:0}to{opacity:1}}
|
|
190
235
|
}
|
|
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=`
|
|
236
|
+
`,Ef=!1;function fx(){(0,Vn.useEffect)(()=>{if(Ef||typeof document>"u"||document.getElementById("pw-popover-menu-css")){Ef=!0;return}let e=document.createElement("style");e.id="pw-popover-menu-css",e.textContent=dx,document.head.appendChild(e),Ef=!0},[])}var px=(0,Vn.createContext)("actions"),g$=(0,Vn.createContext)(null);function $$({mode:e="actions",label:t,header:n,footer:r,emptyState:o,maxHeight:i,framed:a=!1,bare:l=!1,className:s="",children:u,...c}){fx();let d=e==="options"?cf:vf,p={...c,escapeKeyBehavior:c.escapeKeyBehavior??"none"};return(0,Wn.jsx)(px.Provider,{value:e,children:(0,Wn.jsxs)("div",{className:`pw-menu${a?" pw-menu--static":""}${l?" pw-menu--bare":""}${s?` ${s}`:""}`,children:[n&&(0,Wn.jsx)("div",{className:"pw-menu__header",children:n}),(0,Wn.jsx)("div",{className:"pw-menu__scroll",style:i?{maxHeight:i}:void 0,children:(0,Wn.jsx)(d,{"aria-label":t,className:"pw-menu__list",renderEmptyState:o?()=>o:void 0,...p,children:u})}),r&&(0,Wn.jsx)("div",{className:"pw-menu__footer",children:r})]})})}var Le=S(ce(),1),La=e=>`var(--semantic-color-${e})`,ct=e=>`var(--semantic-layout-units-${e})`,Na=e=>`var(--semantic-type-${e})`,kn=e=>`var(--motion-${e})`,Jo={surface:La("fill-surface-elevated"),overlay:La("scrim-subtle"),handle:La("fill-static-neutral-strong"),title:La("foreground-static-neutral-strong"),footerBorder:La("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},mx={title:{fontFamily:Na("family-brand"),fontSize:Na("font-size-s"),fontWeight:Na("weight-semibold"),lineHeight:Na("line-height-s-tight"),letterSpacing:Na("letter-spacing-wide")}},to={enter:`pw-bottom-sheet-up ${kn("duration-5")} ${kn("easing-emphasized")} both`,exit:`pw-bottom-sheet-down ${kn("duration-4")} ${kn("easing-accelerate")} both`,fadeIn:`pw-bottom-sheet-fade-in ${kn("duration-4")} ${kn("easing-standard")} both`,fadeOut:`pw-bottom-sheet-fade-out ${kn("duration-4")} ${kn("easing-standard")} both`,settle:`transform ${kn("duration-4")} ${kn("easing-decelerate")}`},hx="@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 gx(){(0,ve.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=hx,document.head.appendChild(e)},[])}var b$='button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',$x=':is([role="menuitem"], [role="menuitemradio"], [role="menuitemcheckbox"]):not([aria-disabled="true"])';function bx(){return(0,Le.jsx)("div",{"aria-hidden":"true","data-part":"handle",style:{height:ue.handleZone,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:(0,Le.jsx)("div",{style:{width:ue.pillWidth,height:ue.pillHeight,borderRadius:ue.pillRadius,background:Jo.handle}})})}function yx({title:e,titleId:t,titleRef:n,showBack:r=!1,onBack:o,onClose:i,backLabel:a="Back",closeLabel:l="Close"}){return(0,Le.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,Le.jsx)(us,{name:"arrow_back",size:"Medium",label:a,onClick:o}),(0,Le.jsx)("div",{style:{flex:1,minWidth:0,paddingLeft:ue.titleInset},children:(0,Le.jsx)("h2",{id:t,ref:n,tabIndex:-1,style:{margin:0,outline:"none",color:Jo.title,...mx.title,overflowWrap:"anywhere",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:e})}),(0,Le.jsx)(us,{name:"close",size:"Medium",label:l,onClick:i})]})}function vx({children:e}){return(0,Le.jsx)("div",{"data-part":"footer",style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:ue.footerGap,flexShrink:0,borderTop:`${ue.footerBorder} solid ${Jo.footerBorder}`,padding:`${ue.footerPadTop} ${ue.footerPad} calc(${ue.footerPad} + env(safe-area-inset-bottom, 0px))`},children:e})}function xx({onClick:e,animation:t,opacity:n}){return(0,Le.jsx)("div",{"data-part":"overlay","aria-hidden":"true",onClick:e,style:{position:"absolute",inset:0,background:Jo.overlay,animation:t,opacity:n}})}function v$({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}){gx();let f=mr(),h=`pwbs${(0,ve.useId)().replace(/[^a-zA-Z0-9]/g,"")}`,[$,C]=(0,ve.useState)(!!e),[E,P]=(0,ve.useState)(!1),[N,R]=(0,ve.useState)(0),[F,Y]=(0,ve.useState)(!1),O=(0,ve.useRef)(null),M=(0,ve.useRef)(null),H=(0,ve.useRef)(null),W=(0,ve.useRef)(null),se=(0,ve.useRef)(null),Ie=(0,ve.useRef)(null),ft=()=>t?.(!1);(0,ve.useEffect)(()=>{e?(typeof document<"u"&&(se.current=document.activeElement),P(!1),R(0),C(!0)):$&&P(!0)},[e]);let Un=X=>{X.target!==O.current||!E||(C(!1),P(!1),R(0),dn.current=!0)},dn=(0,ve.useRef)(!1);(0,ve.useEffect)(()=>{if(!$||!W.current||b)return;let X=W.current,v=document.body.style.overflow;document.body.style.overflow="hidden";let ke=[...X.parentNode?.children||[]].filter(oe=>oe!==X&&!oe.inert&&oe.tagName!=="SCRIPT"&&oe.tagName!=="STYLE");return ke.forEach(oe=>{oe.inert=!0}),()=>{document.body.style.overflow=v,ke.forEach(oe=>{oe.inert=!1})}},[$]),(0,ve.useEffect)(()=>{if($||!dn.current)return;dn.current=!1;let X=d?.current||se.current;X&&X.isConnected&&typeof X.focus=="function"&&X.focus()},[$]),(0,ve.useEffect)(()=>{if(!$||E||!O.current||b)return;let X=M.current?[...M.current.querySelectorAll($x)]:[],v=H.current;c==="first"?v=X[0]||O.current.querySelector(b$)||v:c==="auto"&&o&&X.length&&(v=X.find(k=>k.getAttribute("aria-checked")==="true")||X[0]),v?.focus({preventScroll:!0})},[$,E]);let Ze=(0,ve.useRef)(!0);(0,ve.useEffect)(()=>{if(Ze.current){Ze.current=!1;return}$&&!b&&H.current?.focus({preventScroll:!0})},[s]);let pt=X=>{if(X.key==="Escape"){X.stopPropagation(),X.nativeEvent?.stopImmediatePropagation?.(),ft();return}if(X.key==="Tab"&&O.current){let v=[...O.current.querySelectorAll(b$)].filter(oe=>oe.offsetParent!==null||oe===document.activeElement);if(!v.length){X.preventDefault();return}let k=v[0],ke=v[v.length-1];X.shiftKey&&(document.activeElement===k||document.activeElement===H.current)?(X.preventDefault(),ke.focus()):!X.shiftKey&&document.activeElement===ke&&(X.preventDefault(),k.focus());return}},fn=X=>{X.button!==void 0&&X.button!==0||M.current?.contains(X.target)&&M.current.scrollTop>0||(Ie.current={y:X.clientY,t:performance.now(),id:X.pointerId,active:!1})},Dt=X=>{let v=Ie.current;if(!v||v.id!==X.pointerId)return;let k=X.clientY-v.y;if(!v.active){if(k<-4){Ie.current=null;return}if(k<8)return;v.active=!0,Y(!0),O.current?.setPointerCapture?.(X.pointerId)}R(Math.max(0,k))},jt=X=>{let v=Ie.current;if(Ie.current=null,!v||!v.active)return;Y(!1);let k=Math.max(0,X.clientY-v.y),ke=k/Math.max(1,performance.now()-v.t);k>ue.dismissDistance||ke>ue.flickSpeed?ft():R(0)};if(!$||typeof document>"u")return null;let Ft=f?E?to.fadeOut:to.fadeIn:E?to.exit:to.enter,xt=N>0&&!E,Tn=xt&&O.current?Math.max(0,1-N/O.current.offsetHeight):void 0,ei=(0,Le.jsxs)("div",{ref:W,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,Le.jsx)(xx,{onClick:ft,animation:E?to.fadeOut:to.fadeIn,opacity:Tn}),(0,Le.jsxs)("div",{ref:O,role:"dialog","aria-modal":"true","aria-labelledby":h,onKeyDown:pt,onAnimationEnd:Un,onPointerDown:fn,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:Jo.surface,boxShadow:Jo.shadow,borderRadius:`${ue.radius} ${ue.radius} 0 0`,animation:xt?"none":Ft,transform:xt?`translateY(${N}px)`:void 0,transition:F||f?"none":to.settle,touchAction:"pan-y"},children:[(0,Le.jsxs)("div",{"data-part":"top",style:{display:"flex",flexDirection:"column",flexShrink:0},children:[a&&(0,Le.jsx)(bx,{}),(0,Le.jsx)(yx,{title:n,titleId:h,titleRef:H,showBack:s,onBack:u,onClose:ft,closeLabel:p,backLabel:g})]}),(0,Le.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,Le.jsx)(g$.Provider,{value:ft,children:o?(0,Le.jsx)($$,{bare:!0,label:n,...i,children:r}):r})}),l&&(0,Le.jsx)(vx,{children:l})]})]});return b?ei:(0,y$.createPortal)(ei,y||document.body)}var w=S(ce(),1),Tf=e=>e?{inert:"","aria-hidden":!0}:{};as();var re=e=>`var(--semantic-color-${e})`,_f=e=>`var(${e})`,dt=e=>`var(--semantic-layout-units-${e})`,no=e=>`var(--contextual-layout-units-${e})`,x$=e=>typeof e=="number"?-e:`calc(-1 * ${e})`,V={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:no("navitem-cornerradius")},L={navPadH:no("sidenav-padding-horizontal-expanded"),navColPadH:no("sidenav-padding-horizontal-collapsed"),navPadTop:no("sidenav-padding-vertical"),navW:no("sidenav-width-expanded"),navWcol:no("sidenav-width-collapsed"),menuGap:no("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 C$({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?V.indicator:"transparent",transition:"background-color var(--motion-duration-3) var(--motion-easing-standard)"}})})}function w$({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,xe.useState)(!1),h=!!(e.children&&e.children.length),$=(0,xe.useRef)(null),C=h&&r&&!o,E=n&&(!r||o),N=E||t&&!(o&&h),R=!!e.disabled,F=R?V.fill.navBase:t||E?V.fill.navActive:C?V.fill.navTrail:m?V.fill.navHover:V.fill.navBase,Y=R?V.text.navDisabled:t||E||C?V.text.navActive:m?V.text.navHover:V.text.navBase,O=R?V.icon.navDisabled:t||E||C?V.icon.navActive:m?V.icon.navHover:V.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:is,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:H=>!R&&(H.key==="Enter"||H.key===" ")&&M(),onMouseEnter:()=>{if(!R&&(f(!0),o&&c)){let H=$.current?$.current.getBoundingClientRect():null;c(e.id,H)}},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:V.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)(C$,{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}):xe.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:Y,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)(Lx,{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 H=$.current?$.current.getBoundingClientRect():u;c&&c(e.id,H)}}),o&&h&&s&&u&&(0,w.jsx)(Cx,{item:e,onClick:a,anchorRect:u,activeId:p,onMouseEnter:()=>{let H=$.current?$.current.getBoundingClientRect():u;c&&c(e.id,H)},onMouseLeave:d}),o&&!h&&s&&u&&(0,w.jsx)(wx,{label:e.label,anchorRect:u,onMouseEnter:()=>{let H=$.current?$.current.getBoundingClientRect():u;c&&c(e.id,H)},onMouseLeave:d})]})}function wx({label:e,anchorRect:t,onMouseEnter:n,onMouseLeave:r}){return t?Qs.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:V.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:V.text.strong},children:e})}),document.body):null}function Sx({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:V.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?Qs.default.createPortal((0,w.jsxs)("div",{onMouseEnter:r,onMouseLeave:o,style:{position:"fixed",left:n.right+8,top:n.top,zIndex:1e3,backgroundColor:V.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)(Sx,{label:e.label}),e.children.map(a=>(0,w.jsx)(Ra,{item:a,onClick:t,activeId:i},a.id))]}),document.body):null}function Ra({item:e,onClick:t,activeId:n}){let[r,o]=(0,xe.useState)(!1),i=e.id===n,a=i?V.fill.navActive:r?V.fill.navHover:"transparent",l=V.text.strong;return(0,w.jsxs)("div",{onClick:()=>t(e.id),className:b0,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?V.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 S$=(e,t)=>!!e&&(typeof t.composedPath=="function"?t.composedPath().includes(e):e.contains(t.target)),En={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 kx({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,xe.useState)(!1),[g,y]=(0,xe.useState)(!1),[b,D]=(0,xe.useState)(!1),[m,f]=(0,xe.useState)(null),h=(0,xe.useRef)(null),$=(0,xe.useRef)(null),C=(0,xe.useRef)(null),E=(0,xe.useRef)(!1),P=()=>{if(b){D(!1);return}f(h.current?h.current.getBoundingClientRect():null),D(!0)};(0,xe.useEffect)(()=>{if(!b||l==="sheet"||!E.current)return;E.current=!1;let M=setTimeout(()=>{let H=C.current?[...C.current.querySelectorAll('[role="menuitem"]')]:[];(H.find(W=>W.getAttribute("aria-current"))||H[0])?.focus()},0);return()=>clearTimeout(M)},[b,l]);let N=M=>{let H=[...M.currentTarget.querySelectorAll('[role="menuitem"]')],W=H.indexOf(document.activeElement),se=null;M.key==="ArrowDown"?se=(W+1)%H.length:M.key==="ArrowUp"?se=(W-1+H.length)%H.length:M.key==="Home"?se=0:M.key==="End"&&(se=H.length-1),!(se===null||!H.length)&&(M.preventDefault(),H[se].focus())},R=M=>{D(!1),i&&i(M),$.current&&$.current.focus()};(0,xe.useEffect)(()=>{if(!b||l==="sheet")return;let M=W=>{S$(h.current,W)||S$(C.current,W)||D(!1)},H=W=>{W.key==="Escape"&&(D(!1),$.current&&$.current.focus())};return document.addEventListener("mousedown",M),document.addEventListener("keydown",H),()=>{document.removeEventListener("mousedown",M),document.removeEventListener("keydown",H)}},[b,l]);let F=b||g,Y=F?En.openFg:d?En.hoverFg:En.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:y0,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?En.openFill:d?En.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?En.openStroke:d?En.hoverStroke:En.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:Y,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:Y,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",transition:"color var(--motion-duration-3) var(--motion-easing-standard)"},children:c})]}),l==="sheet"&&(0,w.jsxs)(v$,{open:b,title:s||c,menu:!0,returnFocusRef:$,onOpenChange:M=>{M||D(!1)},children:[(0,w.jsx)(Ra,{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 ${En.separator}`}})}),r.map(M=>(0,w.jsx)(Ra,{item:M,onClick:R,activeId:o},M.id))]}),b&&l!=="sheet"&&m&&Qs.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:V.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)(Ra,{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 ${En.separator}`}})}),r.map(M=>(0,w.jsx)(Ra,{item:M,onClick:R,activeId:o},M.id))]}),document.body)]})}function Ex({isSidebarCollapsed:e,onToggle:t,collapseIcon:n,expandIcon:r,headerStart:o=null,hideToggle:i=!1}){let[a,l]=(0,xe.useState)(!1),s=V.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:is,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?V.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)(Rx,{color:s}):n?n({size:12,color:s}):(0,w.jsx)(Nx,{color:s})})})})]}),(0,w.jsx)("div",{style:{padding:"var(--semantic-layout-units-padding-xxxtight) 0"},children:(0,w.jsx)("div",{style:{height:1,backgroundColor:V.fill.infoSubtle}})})]})}function k$({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:V.text.secondarySubtle,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e})})}function Tx({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 _x({item:e,isActive:t,onClick:n}){let[r,o]=(0,xe.useState)(!1),i=t?V.fill.navActive:r?V.fill.navHover:"transparent",a=t?V.text.navActive:r?V.text.navHover:V.text.navBase,l=t?V.icon.navActive:r?V.icon.navHover:V.icon.navBase;return(0,w.jsxs)("div",{onClick:()=>n&&n(e.id),onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),className:is,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:V.radius,backgroundColor:i,cursor:"pointer",overflow:"hidden",transition:"background-color var(--motion-duration-3) var(--motion-easing-standard)",userSelect:"none"},children:[(0,w.jsx)(C$,{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)(Tx,{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 Px({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)(k$,{label:e}),(0,w.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:t.map(o=>(0,w.jsx)(_x,{item:o,isActive:o.id===n,onClick:r},o.id))})]})}function E$({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,xe.useState)(s),[m,f]=(0,xe.useState)(null),[h,$]=(0,xe.useState)(null),C=(0,xe.useRef)(null),E=t?t.flatMap(O=>O.items):e||[],P=(()=>{let O=E.find(M=>M.children&&M.children.some(H=>H.id===r));return O?O.id:null})(),N=O=>D(M=>{if(!M[O])return{[O]:!0};let W={...M};return delete W[O],W}),R=(O,M)=>{clearTimeout(C.current),f(O),M&&$(M)},F=()=>{C.current=setTimeout(()=>{f(null),$(null)},300)},Y=O=>{let M=!!(O.children&&O.children.length),H=O.id===r,W=O.id===P,se=!!b[O.id];return(0,w.jsxs)("div",{children:[(0,w.jsx)(w$,{item:O,isActive:H,isTrail:W,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",{...Tf(!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(Ie=>(0,w.jsx)(w$,{item:Ie,isActive:Ie.id===r,isTrail:!1,isExpanded:!1,isSidebarCollapsed:!1,isChild:!0,onClick:o,onToggle:()=>{}},Ie.id))})})]},O.id)};return(0,w.jsxs)("nav",{className:u,style:{width:i?L.navWcol:L.navW,height:"100%",backgroundColor:V.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 ${V.fill.infoSubtle}`,overflow:"hidden"},children:[(!l||c||y)&&(0,w.jsxs)("div",{style:{flexShrink:0},children:[(!l||y)&&(0,w.jsx)(Ex,{isSidebarCollapsed:i,headerStart:y,hideToggle:l,onToggle:()=>a&&a(!i)}),c&&(0,w.jsx)("div",{...Tf(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)(m0,{style:{flex:1,minHeight:0,marginRight:x$(i?L.navColPadH:L.navPadH),marginLeft:x$("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)(kx,{...g,collapsed:i}),t&&t.map(({section:O,items:M},H)=>(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)(k$,{label:O})}),H>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:V.fill.infoSubtle}})}),M.map(Y)]},O)),!t&&(e||[]).map(Y),n&&(0,w.jsx)("div",{...Tf(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)(Px,{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 ${V.fill.infoSubtle}`,padding:i?`8px ${L.navColPadH}`:`8px ${L.navPadH}`,transition:"padding var(--motion-duration-6) var(--motion-easing-emphasized)"},children:p})]})}function Lx({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 Nx({size:e=12,color:t=V.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 Rx({size:e=12,color:t=V.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 Mx={collapsed:"collapsed","hide-collapse-button":"hideCollapseButton"},Ix=`
|
|
192
237
|
:host { display: block; height: 100%; }
|
|
193
238
|
:host([hidden]) { display: none; }
|
|
194
239
|
|
|
@@ -266,7 +311,7 @@ ${st}:is([data-selected],[data-current]) .pw-menu-item__stripe{background:${z.st
|
|
|
266
311
|
font-size: var(--semantic-type-font-size-s);
|
|
267
312
|
line-height: var(--semantic-type-line-height-s-single);
|
|
268
313
|
color: var(--semantic-color-foreground-action-secondary-rest);
|
|
269
|
-
}`,
|
|
314
|
+
}`,Dx=(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}},Xs=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=Ix+$d,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,T$.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(Mx))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=Dx(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=Ma.default.createElement("slot",{name:"header"})),t("footer")&&(n.footer=Ma.default.createElement("slot",{name:"footer"})),t(null)&&(n.children=Ma.default.createElement("slot",null)),n}_render(){if(!this._reactRoot)return;let t={...this._readAttributes(),...this._props,...this._readSlots()};this._reactRoot.render(Ma.default.createElement(E$,{...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",Xs);var U6=Xs;export{Xs as PathwaySideNav,U6 as default};
|
|
270
315
|
/*! Bundled license information:
|
|
271
316
|
|
|
272
317
|
react/cjs/react.production.min.js:
|