@helloimjolopez-pathway/pathway-components 0.12.0 → 0.14.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/popover-menu/popover-menu.jsx +73 -8
- package/components/select/select.jsx +449 -0
- package/dist/pathway-accounting-sidenav.js +113 -69
- package/dist/pathway-components.js +219 -178
- package/dist/pathway-sidenav.js +101 -57
- package/package.json +2 -1
package/dist/pathway-sidenav.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
var $$=Object.create;var yf=Object.defineProperty;var b$=Object.getOwnPropertyDescriptor;var y$=Object.getOwnPropertyNames;var v$=Object.getPrototypeOf,x$=Object.prototype.hasOwnProperty;var Gt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var w$=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of y$(t))!x$.call(e,o)&&o!==n&&yf(e,o,{get:()=>t[o],enumerable:!(r=b$(t,o))||r.enumerable});return e};var S=(e,t,n)=>(n=e!=null?$$(v$(e)):{},w$(t||!e||!e.__esModule?yf(n,"default",{value:e,enumerable:!0}):n,e));var Nf=Gt(X=>{"use strict";var Xo=Symbol.for("react.element"),S$=Symbol.for("react.portal"),C$=Symbol.for("react.fragment"),k$=Symbol.for("react.strict_mode"),E$=Symbol.for("react.profiler"),T$=Symbol.for("react.provider"),_$=Symbol.for("react.context"),P$=Symbol.for("react.forward_ref"),L$=Symbol.for("react.suspense"),N$=Symbol.for("react.memo"),R$=Symbol.for("react.lazy"),vf=Symbol.iterator;function M$(e){return e===null||typeof e!="object"?null:(e=vf&&e[vf]||e["@@iterator"],typeof e=="function"?e:null)}var Sf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Cf=Object.assign,kf={};function Jr(e,t,n){this.props=e,this.context=t,this.refs=kf,this.updater=n||Sf}Jr.prototype.isReactComponent={};Jr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Jr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ef(){}Ef.prototype=Jr.prototype;function Ws(e,t,n){this.props=e,this.context=t,this.refs=kf,this.updater=n||Sf}var Us=Ws.prototype=new Ef;Us.constructor=Ws;Cf(Us,Jr.prototype);Us.isPureReactComponent=!0;var xf=Array.isArray,Tf=Object.prototype.hasOwnProperty,js={current:null},_f={key:!0,ref:!0,__self:!0,__source:!0};function Pf(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)Tf.call(t,r)&&!_f.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:Xo,type:e,key:i,ref:a,props:o,_owner:js.current}}function I$(e,t){return{$$typeof:Xo,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Gs(e){return typeof e=="object"&&e!==null&&e.$$typeof===Xo}function D$(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var wf=/\/+/g;function Vs(e,t){return typeof e=="object"&&e!==null&&e.key!=null?D$(""+e.key):t.toString(36)}function _a(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Xo:case S$:a=!0}}if(a)return a=e,o=o(a),e=r===""?"."+Vs(a,0):r,xf(o)?(n="",e!=null&&(n=e.replace(wf,"$&/")+"/"),_a(o,t,n,"",function(u){return u})):o!=null&&(Gs(o)&&(o=I$(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(wf,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=r===""?".":r+":",xf(e))for(var l=0;l<e.length;l++){i=e[l];var s=r+Vs(i,l);a+=_a(i,t,n,s,o)}else if(s=M$(e),typeof s=="function")for(e=s.call(e),l=0;!(i=e.next()).done;)i=i.value,s=r+Vs(i,l++),a+=_a(i,t,n,s,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Ta(e,t,n){if(e==null)return e;var r=[],o=0;return _a(e,r,"","",function(i){return t.call(n,i,o++)}),r}function F$(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Je={current:null},Pa={transition:null},K$={ReactCurrentDispatcher:Je,ReactCurrentBatchConfig:Pa,ReactCurrentOwner:js};function Lf(){throw Error("act(...) is not supported in production builds of React.")}X.Children={map:Ta,forEach:function(e,t,n){Ta(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ta(e,function(){t++}),t},toArray:function(e){return Ta(e,function(t){return t})||[]},only:function(e){if(!Gs(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};X.Component=Jr;X.Fragment=C$;X.Profiler=E$;X.PureComponent=Ws;X.StrictMode=k$;X.Suspense=L$;X.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=K$;X.act=Lf;X.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Cf({},e.props),o=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=js.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)Tf.call(t,s)&&!_f.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&l!==void 0?l[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){l=Array(s);for(var u=0;u<s;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Xo,type:e.type,key:o,ref:i,props:r,_owner:a}};X.createContext=function(e){return e={$$typeof:_$,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:T$,_context:e},e.Consumer=e};X.createElement=Pf;X.createFactory=function(e){var t=Pf.bind(null,e);return t.type=e,t};X.createRef=function(){return{current:null}};X.forwardRef=function(e){return{$$typeof:P$,render:e}};X.isValidElement=Gs;X.lazy=function(e){return{$$typeof:R$,_payload:{_status:-1,_result:e},_init:F$}};X.memo=function(e,t){return{$$typeof:N$,type:e,compare:t===void 0?null:t}};X.startTransition=function(e){var t=Pa.transition;Pa.transition={};try{e()}finally{Pa.transition=t}};X.unstable_act=Lf;X.useCallback=function(e,t){return Je.current.useCallback(e,t)};X.useContext=function(e){return Je.current.useContext(e)};X.useDebugValue=function(){};X.useDeferredValue=function(e){return Je.current.useDeferredValue(e)};X.useEffect=function(e,t){return Je.current.useEffect(e,t)};X.useId=function(){return Je.current.useId()};X.useImperativeHandle=function(e,t,n){return Je.current.useImperativeHandle(e,t,n)};X.useInsertionEffect=function(e,t){return Je.current.useInsertionEffect(e,t)};X.useLayoutEffect=function(e,t){return Je.current.useLayoutEffect(e,t)};X.useMemo=function(e,t){return Je.current.useMemo(e,t)};X.useReducer=function(e,t,n){return Je.current.useReducer(e,t,n)};X.useRef=function(e){return Je.current.useRef(e)};X.useState=function(e){return Je.current.useState(e)};X.useSyncExternalStore=function(e,t,n){return Je.current.useSyncExternalStore(e,t,n)};X.useTransition=function(){return Je.current.useTransition()};X.version="18.3.1"});var K=Gt((Ex,Rf)=>{"use strict";Rf.exports=Nf()});var Hf=Gt(ce=>{"use strict";function qs(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(0<La(o,t))e[r]=t,e[n]=o,n=r;else break e}}function Qt(e){return e.length===0?null:e[0]}function Ra(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,i=o>>>1;r<i;){var a=2*(r+1)-1,l=e[a],s=a+1,u=e[s];if(0>La(l,n))s<o&&0>La(u,l)?(e[r]=u,e[s]=n,r=s):(e[r]=l,e[a]=n,r=a);else if(s<o&&0>La(u,n))e[r]=u,e[s]=n,r=s;else break e}}return t}function La(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(Mf=performance,ce.unstable_now=function(){return Mf.now()}):(Qs=Date,If=Qs.now(),ce.unstable_now=function(){return Qs.now()-If});var Mf,Qs,If,dn=[],Vn=[],O$=1,Kt=null,Ue=3,Ma=!1,yr=!1,Zo=!1,Kf=typeof setTimeout=="function"?setTimeout:null,Of=typeof clearTimeout=="function"?clearTimeout:null,Df=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Zs(e){for(var t=Qt(Vn);t!==null;){if(t.callback===null)Ra(Vn);else if(t.startTime<=e)Ra(Vn),t.sortIndex=t.expirationTime,qs(dn,t);else break;t=Qt(Vn)}}function Js(e){if(Zo=!1,Zs(e),!yr)if(Qt(dn)!==null)yr=!0,tu(eu);else{var t=Qt(Vn);t!==null&&nu(Js,t.startTime-e)}}function eu(e,t){yr=!1,Zo&&(Zo=!1,Of(Jo),Jo=-1),Ma=!0;var n=Ue;try{for(Zs(t),Kt=Qt(dn);Kt!==null&&(!(Kt.expirationTime>t)||e&&!Bf());){var r=Kt.callback;if(typeof r=="function"){Kt.callback=null,Ue=Kt.priorityLevel;var o=r(Kt.expirationTime<=t);t=ce.unstable_now(),typeof o=="function"?Kt.callback=o:Kt===Qt(dn)&&Ra(dn),Zs(t)}else Ra(dn);Kt=Qt(dn)}if(Kt!==null)var i=!0;else{var a=Qt(Vn);a!==null&&nu(Js,a.startTime-t),i=!1}return i}finally{Kt=null,Ue=n,Ma=!1}}var Ia=!1,Na=null,Jo=-1,Af=5,zf=-1;function Bf(){return!(ce.unstable_now()-zf<Af)}function Ys(){if(Na!==null){var e=ce.unstable_now();zf=e;var t=!0;try{t=Na(!0,e)}finally{t?qo():(Ia=!1,Na=null)}}else Ia=!1}var qo;typeof Df=="function"?qo=function(){Df(Ys)}:typeof MessageChannel<"u"?(Xs=new MessageChannel,Ff=Xs.port2,Xs.port1.onmessage=Ys,qo=function(){Ff.postMessage(null)}):qo=function(){Kf(Ys,0)};var Xs,Ff;function tu(e){Na=e,Ia||(Ia=!0,qo())}function nu(e,t){Jo=Kf(function(){e(ce.unstable_now())},t)}ce.unstable_IdlePriority=5;ce.unstable_ImmediatePriority=1;ce.unstable_LowPriority=4;ce.unstable_NormalPriority=3;ce.unstable_Profiling=null;ce.unstable_UserBlockingPriority=2;ce.unstable_cancelCallback=function(e){e.callback=null};ce.unstable_continueExecution=function(){yr||Ma||(yr=!0,tu(eu))};ce.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Af=0<e?Math.floor(1e3/e):5};ce.unstable_getCurrentPriorityLevel=function(){return Ue};ce.unstable_getFirstCallbackNode=function(){return Qt(dn)};ce.unstable_next=function(e){switch(Ue){case 1:case 2:case 3:var t=3;break;default:t=Ue}var n=Ue;Ue=t;try{return e()}finally{Ue=n}};ce.unstable_pauseExecution=function(){};ce.unstable_requestPaint=function(){};ce.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=Ue;Ue=e;try{return t()}finally{Ue=n}};ce.unstable_scheduleCallback=function(e,t,n){var r=ce.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?r+n:r):n=r,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=n+o,e={id:O$++,callback:t,priorityLevel:e,startTime:n,expirationTime:o,sortIndex:-1},n>r?(e.sortIndex=n,qs(Vn,e),Qt(dn)===null&&e===Qt(Vn)&&(Zo?(Of(Jo),Jo=-1):Zo=!0,nu(Js,n-r))):(e.sortIndex=o,qs(dn,e),yr||Ma||(yr=!0,tu(eu))),e};ce.unstable_shouldYield=Bf;ce.unstable_wrapCallback=function(e){var t=Ue;return function(){var n=Ue;Ue=t;try{return e.apply(this,arguments)}finally{Ue=n}}}});var Wf=Gt((_x,Vf)=>{"use strict";Vf.exports=Hf()});var Q0=Gt(Tt=>{"use strict";var A$=K(),kt=Wf();function x(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var qp=new Set,xi={};function Rr(e,t){xo(e,t),xo(e+"Capture",t)}function xo(e,t){for(xi[e]=t,e=0;e<t.length;e++)qp.add(t[e])}var Ln=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ku=Object.prototype.hasOwnProperty,z$=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Uf={},jf={};function B$(e){return ku.call(jf,e)?!0:ku.call(Uf,e)?!1:z$.test(e)?jf[e]=!0:(Uf[e]=!0,!1)}function H$(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function V$(e,t,n,r){if(t===null||typeof t>"u"||H$(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function nt(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Ve={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ve[e]=new nt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ve[t]=new nt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ve[e]=new nt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ve[e]=new nt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ve[e]=new nt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ve[e]=new nt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ve[e]=new nt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ve[e]=new nt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ve[e]=new nt(e,5,!1,e.toLowerCase(),null,!1,!1)});var $c=/[\-:]([a-z])/g;function bc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace($c,bc);Ve[t]=new nt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace($c,bc);Ve[t]=new nt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace($c,bc);Ve[t]=new nt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ve[e]=new nt(e,1,!1,e.toLowerCase(),null,!1,!1)});Ve.xlinkHref=new nt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ve[e]=new nt(e,1,!1,e.toLowerCase(),null,!0,!0)});function yc(e,t,n,r){var o=Ve.hasOwnProperty(t)?Ve[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(V$(t,n,o,r)&&(n=null),r||o===null?B$(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var In=A$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Da=Symbol.for("react.element"),no=Symbol.for("react.portal"),ro=Symbol.for("react.fragment"),vc=Symbol.for("react.strict_mode"),Eu=Symbol.for("react.profiler"),Zp=Symbol.for("react.provider"),Jp=Symbol.for("react.context"),xc=Symbol.for("react.forward_ref"),Tu=Symbol.for("react.suspense"),_u=Symbol.for("react.suspense_list"),wc=Symbol.for("react.memo"),Un=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var em=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var Gf=Symbol.iterator;function ei(e){return e===null||typeof e!="object"?null:(e=Gf&&e[Gf]||e["@@iterator"],typeof e=="function"?e:null)}var Se=Object.assign,ru;function si(e){if(ru===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ru=t&&t[1]||""}return`
|
|
2
|
-
`+
|
|
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 In=!(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 On=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{ou=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?si(e):""}function W$(e){switch(e.tag){case 5:return si(e.type);case 16:return si("Lazy");case 13:return si("Suspense");case 19:return si("SuspenseList");case 0:case 2:case 15:return e=iu(e.type,!1),e;case 11:return e=iu(e.type.render,!1),e;case 1:return e=iu(e.type,!0),e;default:return""}}function Pu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ro:return"Fragment";case no:return"Portal";case Eu:return"Profiler";case vc:return"StrictMode";case Tu:return"Suspense";case _u:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Jp:return(e.displayName||"Context")+".Consumer";case Zp:return(e._context.displayName||"Context")+".Provider";case xc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case wc:return t=e.displayName||null,t!==null?t:Pu(e.type)||"Memo";case Un:t=e._payload,e=e._init;try{return Pu(e(t))}catch{}}return null}function U$(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Pu(t);case 8:return t===vc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ir(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function tm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function j$(e){var t=tm(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Fa(e){e._valueTracker||(e._valueTracker=j$(e))}function nm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=tm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function cl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Lu(e,t){var n=t.checked;return Se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Qf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ir(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function rm(e,t){t=t.checked,t!=null&&yc(e,"checked",t,!1)}function Nu(e,t){rm(e,t);var n=ir(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ru(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ru(e,t.type,ir(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Yf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ru(e,t,n){(t!=="number"||cl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ui=Array.isArray;function ho(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ir(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Mu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(x(91));return Se({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Xf(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(x(92));if(ui(n)){if(1<n.length)throw Error(x(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ir(n)}}function om(e,t){var n=ir(t.value),r=ir(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function qf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function im(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Iu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?im(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ka,am=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ka=Ka||document.createElement("div"),Ka.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ka.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function wi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var fi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},G$=["Webkit","ms","Moz","O"];Object.keys(fi).forEach(function(e){G$.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fi[t]=fi[e]})});function lm(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||fi.hasOwnProperty(e)&&fi[e]?(""+t).trim():t+"px"}function sm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=lm(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Q$=Se({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Du(e,t){if(t){if(Q$[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(x(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(x(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(x(61))}if(t.style!=null&&typeof t.style!="object")throw Error(x(62))}}function Fu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ku=null;function Sc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ou=null,go=null,$o=null;function Zf(e){if(e=zi(e)){if(typeof Ou!="function")throw Error(x(280));var t=e.stateNode;t&&(t=Ol(t),Ou(e.stateNode,e.type,t))}}function um(e){go?$o?$o.push(e):$o=[e]:go=e}function cm(){if(go){var e=go,t=$o;if($o=go=null,Zf(e),t)for(e=0;e<t.length;e++)Zf(t[e])}}function dm(e,t){return e(t)}function fm(){}var au=!1;function pm(e,t,n){if(au)return e(t,n);au=!0;try{return dm(e,t,n)}finally{au=!1,(go!==null||$o!==null)&&(fm(),cm())}}function Si(e,t){var n=e.stateNode;if(n===null)return null;var r=Ol(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(x(231,t,typeof n));return n}var Au=!1;if(Ln)try{eo={},Object.defineProperty(eo,"passive",{get:function(){Au=!0}}),window.addEventListener("test",eo,eo),window.removeEventListener("test",eo,eo)}catch{Au=!1}var eo;function Y$(e,t,n,r,o,i,a,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var pi=!1,dl=null,fl=!1,zu=null,X$={onError:function(e){pi=!0,dl=e}};function q$(e,t,n,r,o,i,a,l,s){pi=!1,dl=null,Y$.apply(X$,arguments)}function Z$(e,t,n,r,o,i,a,l,s){if(q$.apply(this,arguments),pi){if(pi){var u=dl;pi=!1,dl=null}else throw Error(x(198));fl||(fl=!0,zu=u)}}function Mr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function mm(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Jf(e){if(Mr(e)!==e)throw Error(x(188))}function J$(e){var t=e.alternate;if(!t){if(t=Mr(e),t===null)throw Error(x(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Jf(o),e;if(i===r)return Jf(o),t;i=i.sibling}throw Error(x(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a)throw Error(x(189))}}if(n.alternate!==r)throw Error(x(190))}if(n.tag!==3)throw Error(x(188));return n.stateNode.current===n?e:t}function hm(e){return e=J$(e),e!==null?gm(e):null}function gm(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=gm(e);if(t!==null)return t;e=e.sibling}return null}var $m=kt.unstable_scheduleCallback,ep=kt.unstable_cancelCallback,eb=kt.unstable_shouldYield,tb=kt.unstable_requestPaint,Te=kt.unstable_now,nb=kt.unstable_getCurrentPriorityLevel,Cc=kt.unstable_ImmediatePriority,bm=kt.unstable_UserBlockingPriority,pl=kt.unstable_NormalPriority,rb=kt.unstable_LowPriority,ym=kt.unstable_IdlePriority,Il=null,hn=null;function ob(e){if(hn&&typeof hn.onCommitFiberRoot=="function")try{hn.onCommitFiberRoot(Il,e,void 0,(e.current.flags&128)===128)}catch{}}var Jt=Math.clz32?Math.clz32:lb,ib=Math.log,ab=Math.LN2;function lb(e){return e>>>=0,e===0?32:31-(ib(e)/ab|0)|0}var Oa=64,Aa=4194304;function ci(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ml(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~o;l!==0?r=ci(l):(i&=a,i!==0&&(r=ci(i)))}else a=n&~o,a!==0?r=ci(a):i!==0&&(r=ci(i));if(r===0)return 0;if(t!==0&&t!==r&&(t&o)===0&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Jt(t),o=1<<n,r|=e[n],t&=~o;return r}function sb(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ub(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-Jt(i),l=1<<a,s=o[a];s===-1?((l&n)===0||(l&r)!==0)&&(o[a]=sb(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}function Bu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function vm(){var e=Oa;return Oa<<=1,(Oa&4194240)===0&&(Oa=64),e}function lu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Oi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Jt(t),e[t]=n}function cb(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Jt(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function kc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Jt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var ae=0;function xm(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var wm,Ec,Sm,Cm,km,Hu=!1,za=[],qn=null,Zn=null,Jn=null,Ci=new Map,ki=new Map,Gn=[],db="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function tp(e,t){switch(e){case"focusin":case"focusout":qn=null;break;case"dragenter":case"dragleave":Zn=null;break;case"mouseover":case"mouseout":Jn=null;break;case"pointerover":case"pointerout":Ci.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ki.delete(t.pointerId)}}function ti(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=zi(t),t!==null&&Ec(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function fb(e,t,n,r,o){switch(t){case"focusin":return qn=ti(qn,e,t,n,r,o),!0;case"dragenter":return Zn=ti(Zn,e,t,n,r,o),!0;case"mouseover":return Jn=ti(Jn,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Ci.set(i,ti(Ci.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,ki.set(i,ti(ki.get(i)||null,e,t,n,r,o)),!0}return!1}function Em(e){var t=wr(e.target);if(t!==null){var n=Mr(t);if(n!==null){if(t=n.tag,t===13){if(t=mm(n),t!==null){e.blockedOn=t,km(e.priority,function(){Sm(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function el(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Vu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ku=r,n.target.dispatchEvent(r),Ku=null}else return t=zi(n),t!==null&&Ec(t),e.blockedOn=n,!1;t.shift()}return!0}function np(e,t,n){el(e)&&n.delete(t)}function pb(){Hu=!1,qn!==null&&el(qn)&&(qn=null),Zn!==null&&el(Zn)&&(Zn=null),Jn!==null&&el(Jn)&&(Jn=null),Ci.forEach(np),ki.forEach(np)}function ni(e,t){e.blockedOn===t&&(e.blockedOn=null,Hu||(Hu=!0,kt.unstable_scheduleCallback(kt.unstable_NormalPriority,pb)))}function Ei(e){function t(o){return ni(o,e)}if(0<za.length){ni(za[0],e);for(var n=1;n<za.length;n++){var r=za[n];r.blockedOn===e&&(r.blockedOn=null)}}for(qn!==null&&ni(qn,e),Zn!==null&&ni(Zn,e),Jn!==null&&ni(Jn,e),Ci.forEach(t),ki.forEach(t),n=0;n<Gn.length;n++)r=Gn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Gn.length&&(n=Gn[0],n.blockedOn===null);)Em(n),n.blockedOn===null&&Gn.shift()}var bo=In.ReactCurrentBatchConfig,hl=!0;function mb(e,t,n,r){var o=ae,i=bo.transition;bo.transition=null;try{ae=1,Tc(e,t,n,r)}finally{ae=o,bo.transition=i}}function hb(e,t,n,r){var o=ae,i=bo.transition;bo.transition=null;try{ae=4,Tc(e,t,n,r)}finally{ae=o,bo.transition=i}}function Tc(e,t,n,r){if(hl){var o=Vu(e,t,n,r);if(o===null)mu(e,t,r,gl,n),tp(e,r);else if(fb(o,e,t,n,r))r.stopPropagation();else if(tp(e,r),t&4&&-1<db.indexOf(e)){for(;o!==null;){var i=zi(o);if(i!==null&&wm(i),i=Vu(e,t,n,r),i===null&&mu(e,t,r,gl,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else mu(e,t,r,null,n)}}var gl=null;function Vu(e,t,n,r){if(gl=null,e=Sc(r),e=wr(e),e!==null)if(t=Mr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=mm(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return gl=e,null}function Tm(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(nb()){case Cc:return 1;case bm:return 4;case pl:case rb:return 16;case ym:return 536870912;default:return 16}default:return 16}}var Yn=null,_c=null,tl=null;function _m(){if(tl)return tl;var e,t=_c,n=t.length,r,o="value"in Yn?Yn.value:Yn.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===o[i-r];r++);return tl=o.slice(e,1<r?1-r:void 0)}function nl(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ba(){return!0}function rp(){return!1}function Et(e){function t(n,r,o,i,a){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Ba:rp,this.isPropagationStopped=rp,this}return Se(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ba)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ba)},persist:function(){},isPersistent:Ba}),t}var _o={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pc=Et(_o),Ai=Se({},_o,{view:0,detail:0}),gb=Et(Ai),su,uu,ri,Dl=Se({},Ai,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Lc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ri&&(ri&&e.type==="mousemove"?(su=e.screenX-ri.screenX,uu=e.screenY-ri.screenY):uu=su=0,ri=e),su)},movementY:function(e){return"movementY"in e?e.movementY:uu}}),op=Et(Dl),$b=Se({},Dl,{dataTransfer:0}),bb=Et($b),yb=Se({},Ai,{relatedTarget:0}),cu=Et(yb),vb=Se({},_o,{animationName:0,elapsedTime:0,pseudoElement:0}),xb=Et(vb),wb=Se({},_o,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Sb=Et(wb),Cb=Se({},_o,{data:0}),ip=Et(Cb),kb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Eb={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Tb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _b(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Tb[e])?!!t[e]:!1}function Lc(){return _b}var Pb=Se({},Ai,{key:function(e){if(e.key){var t=kb[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=nl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Eb[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Lc,charCode:function(e){return e.type==="keypress"?nl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?nl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Lb=Et(Pb),Nb=Se({},Dl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ap=Et(Nb),Rb=Se({},Ai,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Lc}),Mb=Et(Rb),Ib=Se({},_o,{propertyName:0,elapsedTime:0,pseudoElement:0}),Db=Et(Ib),Fb=Se({},Dl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Kb=Et(Fb),Ob=[9,13,27,32],Nc=Ln&&"CompositionEvent"in window,mi=null;Ln&&"documentMode"in document&&(mi=document.documentMode);var Ab=Ln&&"TextEvent"in window&&!mi,Pm=Ln&&(!Nc||mi&&8<mi&&11>=mi),lp=" ",sp=!1;function Lm(e,t){switch(e){case"keyup":return Ob.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Nm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var oo=!1;function zb(e,t){switch(e){case"compositionend":return Nm(t);case"keypress":return t.which!==32?null:(sp=!0,lp);case"textInput":return e=t.data,e===lp&&sp?null:e;default:return null}}function Bb(e,t){if(oo)return e==="compositionend"||!Nc&&Lm(e,t)?(e=_m(),tl=_c=Yn=null,oo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Pm&&t.locale!=="ko"?null:t.data;default:return null}}var Hb={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function up(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Hb[e.type]:t==="textarea"}function Rm(e,t,n,r){um(r),t=$l(t,"onChange"),0<t.length&&(n=new Pc("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var hi=null,Ti=null;function Vb(e){Vm(e,0)}function Fl(e){var t=lo(e);if(nm(t))return e}function Wb(e,t){if(e==="change")return t}var Mm=!1;Ln&&(Ln?(Va="oninput"in document,Va||(du=document.createElement("div"),du.setAttribute("oninput","return;"),Va=typeof du.oninput=="function"),Ha=Va):Ha=!1,Mm=Ha&&(!document.documentMode||9<document.documentMode));var Ha,Va,du;function cp(){hi&&(hi.detachEvent("onpropertychange",Im),Ti=hi=null)}function Im(e){if(e.propertyName==="value"&&Fl(Ti)){var t=[];Rm(t,Ti,e,Sc(e)),pm(Vb,t)}}function Ub(e,t,n){e==="focusin"?(cp(),hi=t,Ti=n,hi.attachEvent("onpropertychange",Im)):e==="focusout"&&cp()}function jb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Fl(Ti)}function Gb(e,t){if(e==="click")return Fl(t)}function Qb(e,t){if(e==="input"||e==="change")return Fl(t)}function Yb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tn=typeof Object.is=="function"?Object.is:Yb;function _i(e,t){if(tn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!ku.call(t,o)||!tn(e[o],t[o]))return!1}return!0}function dp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fp(e,t){var n=dp(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=dp(n)}}function Dm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Dm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Fm(){for(var e=window,t=cl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=cl(e.document)}return t}function Rc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Xb(e){var t=Fm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Dm(n.ownerDocument.documentElement,n)){if(r!==null&&Rc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=fp(n,i);var a=fp(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var qb=Ln&&"documentMode"in document&&11>=document.documentMode,io=null,Wu=null,gi=null,Uu=!1;function pp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Uu||io==null||io!==cl(r)||(r=io,"selectionStart"in r&&Rc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),gi&&_i(gi,r)||(gi=r,r=$l(Wu,"onSelect"),0<r.length&&(t=new Pc("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=io)))}function Wa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ao={animationend:Wa("Animation","AnimationEnd"),animationiteration:Wa("Animation","AnimationIteration"),animationstart:Wa("Animation","AnimationStart"),transitionend:Wa("Transition","TransitionEnd")},fu={},Km={};Ln&&(Km=document.createElement("div").style,"AnimationEvent"in window||(delete ao.animationend.animation,delete ao.animationiteration.animation,delete ao.animationstart.animation),"TransitionEvent"in window||delete ao.transitionend.transition);function Kl(e){if(fu[e])return fu[e];if(!ao[e])return e;var t=ao[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Km)return fu[e]=t[n];return e}var Om=Kl("animationend"),Am=Kl("animationiteration"),zm=Kl("animationstart"),Bm=Kl("transitionend"),Hm=new Map,mp="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function lr(e,t){Hm.set(e,t),Rr(t,[e])}for(Ua=0;Ua<mp.length;Ua++)ja=mp[Ua],hp=ja.toLowerCase(),gp=ja[0].toUpperCase()+ja.slice(1),lr(hp,"on"+gp);var ja,hp,gp,Ua;lr(Om,"onAnimationEnd");lr(Am,"onAnimationIteration");lr(zm,"onAnimationStart");lr("dblclick","onDoubleClick");lr("focusin","onFocus");lr("focusout","onBlur");lr(Bm,"onTransitionEnd");xo("onMouseEnter",["mouseout","mouseover"]);xo("onMouseLeave",["mouseout","mouseover"]);xo("onPointerEnter",["pointerout","pointerover"]);xo("onPointerLeave",["pointerout","pointerover"]);Rr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Rr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Rr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Rr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Rr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Rr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var di="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Zb=new Set("cancel close invalid load scroll toggle".split(" ").concat(di));function $p(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Z$(r,t,void 0,e),e.currentTarget=null}function Vm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==i&&o.isPropagationStopped())break e;$p(o,l,u),i=s}else for(a=0;a<r.length;a++){if(l=r[a],s=l.instance,u=l.currentTarget,l=l.listener,s!==i&&o.isPropagationStopped())break e;$p(o,l,u),i=s}}}if(fl)throw e=zu,fl=!1,zu=null,e}function pe(e,t){var n=t[Xu];n===void 0&&(n=t[Xu]=new Set);var r=e+"__bubble";n.has(r)||(Wm(t,e,2,!1),n.add(r))}function pu(e,t,n){var r=0;t&&(r|=4),Wm(n,e,r,t)}var Ga="_reactListening"+Math.random().toString(36).slice(2);function Pi(e){if(!e[Ga]){e[Ga]=!0,qp.forEach(function(n){n!=="selectionchange"&&(Zb.has(n)||pu(n,!1,e),pu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ga]||(t[Ga]=!0,pu("selectionchange",!1,t))}}function Wm(e,t,n,r){switch(Tm(t)){case 1:var o=mb;break;case 4:o=hb;break;default:o=Tc}n=o.bind(null,t,n,e),o=void 0,!Au||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function mu(e,t,n,r,o){var i=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var l=r.stateNode.containerInfo;if(l===o||l.nodeType===8&&l.parentNode===o)break;if(a===4)for(a=r.return;a!==null;){var s=a.tag;if((s===3||s===4)&&(s=a.stateNode.containerInfo,s===o||s.nodeType===8&&s.parentNode===o))return;a=a.return}for(;l!==null;){if(a=wr(l),a===null)return;if(s=a.tag,s===5||s===6){r=i=a;continue e}l=l.parentNode}}r=r.return}pm(function(){var u=i,c=Sc(n),d=[];e:{var p=Hm.get(e);if(p!==void 0){var g=Pc,y=e;switch(e){case"keypress":if(nl(n)===0)break e;case"keydown":case"keyup":g=Lb;break;case"focusin":y="focus",g=cu;break;case"focusout":y="blur",g=cu;break;case"beforeblur":case"afterblur":g=cu;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=op;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=bb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=Mb;break;case Om:case Am:case zm:g=xb;break;case Bm:g=Db;break;case"scroll":g=gb;break;case"wheel":g=Kb;break;case"copy":case"cut":case"paste":g=Sb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=ap}var b=(t&4)!==0,D=!b&&e==="scroll",m=b?p!==null?p+"Capture":null:p;b=[];for(var f=u,h;f!==null;){h=f;var $=h.stateNode;if(h.tag===5&&$!==null&&(h=$,m!==null&&($=Si(f,m),$!=null&&b.push(Li(f,$,h)))),D)break;f=f.return}0<b.length&&(p=new g(p,y,null,n,c),d.push({event:p,listeners:b}))}}if((t&7)===0){e:{if(p=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",p&&n!==Ku&&(y=n.relatedTarget||n.fromElement)&&(wr(y)||y[Nn]))break e;if((g||p)&&(p=c.window===c?c:(p=c.ownerDocument)?p.defaultView||p.parentWindow:window,g?(y=n.relatedTarget||n.toElement,g=u,y=y?wr(y):null,y!==null&&(D=Mr(y),y!==D||y.tag!==5&&y.tag!==6)&&(y=null)):(g=null,y=u),g!==y)){if(b=op,$="onMouseLeave",m="onMouseEnter",f="mouse",(e==="pointerout"||e==="pointerover")&&(b=ap,$="onPointerLeave",m="onPointerEnter",f="pointer"),D=g==null?p:lo(g),h=y==null?p:lo(y),p=new b($,f+"leave",g,n,c),p.target=D,p.relatedTarget=h,$=null,wr(c)===u&&(b=new b(m,f+"enter",y,n,c),b.target=h,b.relatedTarget=D,$=b),D=$,g&&y)t:{for(b=g,m=y,f=0,h=b;h;h=to(h))f++;for(h=0,$=m;$;$=to($))h++;for(;0<f-h;)b=to(b),f--;for(;0<h-f;)m=to(m),h--;for(;f--;){if(b===m||m!==null&&b===m.alternate)break t;b=to(b),m=to(m)}b=null}else b=null;g!==null&&bp(d,p,g,b,!1),y!==null&&D!==null&&bp(d,D,y,b,!0)}}e:{if(p=u?lo(u):window,g=p.nodeName&&p.nodeName.toLowerCase(),g==="select"||g==="input"&&p.type==="file")var C=Wb;else if(up(p))if(Mm)C=Qb;else{C=jb;var E=Ub}else(g=p.nodeName)&&g.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(C=Gb);if(C&&(C=C(e,u))){Rm(d,C,n,c);break e}E&&E(e,p,u),e==="focusout"&&(E=p._wrapperState)&&E.controlled&&p.type==="number"&&Ru(p,"number",p.value)}switch(E=u?lo(u):window,e){case"focusin":(up(E)||E.contentEditable==="true")&&(io=E,Wu=u,gi=null);break;case"focusout":gi=Wu=io=null;break;case"mousedown":Uu=!0;break;case"contextmenu":case"mouseup":case"dragend":Uu=!1,pp(d,n,c);break;case"selectionchange":if(qb)break;case"keydown":case"keyup":pp(d,n,c)}var P;if(Nc)e:{switch(e){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else oo?Lm(e,n)&&(N="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&(Pm&&n.locale!=="ko"&&(oo||N!=="onCompositionStart"?N==="onCompositionEnd"&&oo&&(P=_m()):(Yn=c,_c="value"in Yn?Yn.value:Yn.textContent,oo=!0)),E=$l(u,N),0<E.length&&(N=new ip(N,e,null,n,c),d.push({event:N,listeners:E}),P?N.data=P:(P=Nm(n),P!==null&&(N.data=P)))),(P=Ab?zb(e,n):Bb(e,n))&&(u=$l(u,"onBeforeInput"),0<u.length&&(c=new ip("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=P))}Vm(d,t)})}function Li(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $l(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Si(e,n),i!=null&&r.unshift(Li(e,i,o)),i=Si(e,t),i!=null&&r.push(Li(e,i,o))),e=e.return}return r}function to(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function bp(e,t,n,r,o){for(var i=t._reactName,a=[];n!==null&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(s!==null&&s===r)break;l.tag===5&&u!==null&&(l=u,o?(s=Si(n,i),s!=null&&a.unshift(Li(n,s,l))):o||(s=Si(n,i),s!=null&&a.push(Li(n,s,l)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var Jb=/\r\n?/g,ey=/\u0000|\uFFFD/g;function yp(e){return(typeof e=="string"?e:""+e).replace(Jb,`
|
|
6
|
-
`).replace(ey,"")}function Qa(e,t,n){if(t=yp(t),yp(e)!==t&&n)throw Error(x(425))}function bl(){}var ju=null,Gu=null;function Qu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Yu=typeof setTimeout=="function"?setTimeout:void 0,ty=typeof clearTimeout=="function"?clearTimeout:void 0,vp=typeof Promise=="function"?Promise:void 0,ny=typeof queueMicrotask=="function"?queueMicrotask:typeof vp<"u"?function(e){return vp.resolve(null).then(e).catch(ry)}:Yu;function ry(e){setTimeout(function(){throw e})}function hu(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Ei(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Ei(t)}function er(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function xp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Po=Math.random().toString(36).slice(2),mn="__reactFiber$"+Po,Ni="__reactProps$"+Po,Nn="__reactContainer$"+Po,Xu="__reactEvents$"+Po,oy="__reactListeners$"+Po,iy="__reactHandles$"+Po;function wr(e){var t=e[mn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Nn]||n[mn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=xp(e);e!==null;){if(n=e[mn])return n;e=xp(e)}return t}e=n,n=e.parentNode}return null}function zi(e){return e=e[mn]||e[Nn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function lo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(x(33))}function Ol(e){return e[Ni]||null}var qu=[],so=-1;function sr(e){return{current:e}}function me(e){0>so||(e.current=qu[so],qu[so]=null,so--)}function de(e,t){so++,qu[so]=e.current,e.current=t}var ar={},Ye=sr(ar),gt=sr(!1),Tr=ar;function wo(e,t){var n=e.type.contextTypes;if(!n)return ar;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function $t(e){return e=e.childContextTypes,e!=null}function yl(){me(gt),me(Ye)}function wp(e,t,n){if(Ye.current!==ar)throw Error(x(168));de(Ye,t),de(gt,n)}function Um(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(x(108,U$(e)||"Unknown",o));return Se({},n,r)}function vl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ar,Tr=Ye.current,de(Ye,e),de(gt,gt.current),!0}function Sp(e,t,n){var r=e.stateNode;if(!r)throw Error(x(169));n?(e=Um(e,t,Tr),r.__reactInternalMemoizedMergedChildContext=e,me(gt),me(Ye),de(Ye,e)):me(gt),de(gt,n)}var En=null,Al=!1,gu=!1;function jm(e){En===null?En=[e]:En.push(e)}function ay(e){Al=!0,jm(e)}function ur(){if(!gu&&En!==null){gu=!0;var e=0,t=ae;try{var n=En;for(ae=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}En=null,Al=!1}catch(o){throw En!==null&&(En=En.slice(e+1)),$m(Cc,ur),o}finally{ae=t,gu=!1}}return null}var uo=[],co=0,xl=null,wl=0,Ot=[],At=0,_r=null,Tn=1,_n="";function vr(e,t){uo[co++]=wl,uo[co++]=xl,xl=e,wl=t}function Gm(e,t,n){Ot[At++]=Tn,Ot[At++]=_n,Ot[At++]=_r,_r=e;var r=Tn;e=_n;var o=32-Jt(r)-1;r&=~(1<<o),n+=1;var i=32-Jt(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Tn=1<<32-Jt(t)+o|n<<o|r,_n=i+e}else Tn=1<<i|n<<o|r,_n=e}function Mc(e){e.return!==null&&(vr(e,1),Gm(e,1,0))}function Ic(e){for(;e===xl;)xl=uo[--co],uo[co]=null,wl=uo[--co],uo[co]=null;for(;e===_r;)_r=Ot[--At],Ot[At]=null,_n=Ot[--At],Ot[At]=null,Tn=Ot[--At],Ot[At]=null}var Ct=null,St=null,be=!1,Zt=null;function Qm(e,t){var n=zt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Cp(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ct=e,St=er(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ct=e,St=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=_r!==null?{id:Tn,overflow:_n}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=zt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ct=e,St=null,!0):!1;default:return!1}}function Zu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ju(e){if(be){var t=St;if(t){var n=t;if(!Cp(e,t)){if(Zu(e))throw Error(x(418));t=er(n.nextSibling);var r=Ct;t&&Cp(e,t)?Qm(r,n):(e.flags=e.flags&-4097|2,be=!1,Ct=e)}}else{if(Zu(e))throw Error(x(418));e.flags=e.flags&-4097|2,be=!1,Ct=e}}}function kp(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ct=e}function Ya(e){if(e!==Ct)return!1;if(!be)return kp(e),be=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Qu(e.type,e.memoizedProps)),t&&(t=St)){if(Zu(e))throw Ym(),Error(x(418));for(;t;)Qm(e,t),t=er(t.nextSibling)}if(kp(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(x(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){St=er(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}St=null}}else St=Ct?er(e.stateNode.nextSibling):null;return!0}function Ym(){for(var e=St;e;)e=er(e.nextSibling)}function So(){St=Ct=null,be=!1}function Dc(e){Zt===null?Zt=[e]:Zt.push(e)}var ly=In.ReactCurrentBatchConfig;function oi(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(x(309));var r=n.stateNode}if(!r)throw Error(x(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var l=o.refs;a===null?delete l[i]:l[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(x(284));if(!n._owner)throw Error(x(290,e))}return e}function Xa(e,t){throw e=Object.prototype.toString.call(t),Error(x(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ep(e){var t=e._init;return t(e._payload)}function Xm(e){function t(m,f){if(e){var h=m.deletions;h===null?(m.deletions=[f],m.flags|=16):h.push(f)}}function n(m,f){if(!e)return null;for(;f!==null;)t(m,f),f=f.sibling;return null}function r(m,f){for(m=new Map;f!==null;)f.key!==null?m.set(f.key,f):m.set(f.index,f),f=f.sibling;return m}function o(m,f){return m=or(m,f),m.index=0,m.sibling=null,m}function i(m,f,h){return m.index=h,e?(h=m.alternate,h!==null?(h=h.index,h<f?(m.flags|=2,f):h):(m.flags|=2,f)):(m.flags|=1048576,f)}function a(m){return e&&m.alternate===null&&(m.flags|=2),m}function l(m,f,h,$){return f===null||f.tag!==6?(f=Su(h,m.mode,$),f.return=m,f):(f=o(f,h),f.return=m,f)}function s(m,f,h,$){var C=h.type;return C===ro?c(m,f,h.props.children,$,h.key):f!==null&&(f.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Un&&Ep(C)===f.type)?($=o(f,h.props),$.ref=oi(m,f,h),$.return=m,$):($=ul(h.type,h.key,h.props,null,m.mode,$),$.ref=oi(m,f,h),$.return=m,$)}function u(m,f,h,$){return f===null||f.tag!==4||f.stateNode.containerInfo!==h.containerInfo||f.stateNode.implementation!==h.implementation?(f=Cu(h,m.mode,$),f.return=m,f):(f=o(f,h.children||[]),f.return=m,f)}function c(m,f,h,$,C){return f===null||f.tag!==7?(f=Er(h,m.mode,$,C),f.return=m,f):(f=o(f,h),f.return=m,f)}function d(m,f,h){if(typeof f=="string"&&f!==""||typeof f=="number")return f=Su(""+f,m.mode,h),f.return=m,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case Da:return h=ul(f.type,f.key,f.props,null,m.mode,h),h.ref=oi(m,null,f),h.return=m,h;case no:return f=Cu(f,m.mode,h),f.return=m,f;case Un:var $=f._init;return d(m,$(f._payload),h)}if(ui(f)||ei(f))return f=Er(f,m.mode,h,null),f.return=m,f;Xa(m,f)}return null}function p(m,f,h,$){var C=f!==null?f.key:null;if(typeof h=="string"&&h!==""||typeof h=="number")return C!==null?null:l(m,f,""+h,$);if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Da:return h.key===C?s(m,f,h,$):null;case no:return h.key===C?u(m,f,h,$):null;case Un:return C=h._init,p(m,f,C(h._payload),$)}if(ui(h)||ei(h))return C!==null?null:c(m,f,h,$,null);Xa(m,h)}return null}function g(m,f,h,$,C){if(typeof $=="string"&&$!==""||typeof $=="number")return m=m.get(h)||null,l(f,m,""+$,C);if(typeof $=="object"&&$!==null){switch($.$$typeof){case Da:return m=m.get($.key===null?h:$.key)||null,s(f,m,$,C);case no:return m=m.get($.key===null?h:$.key)||null,u(f,m,$,C);case Un:var E=$._init;return g(m,f,h,E($._payload),C)}if(ui($)||ei($))return m=m.get(h)||null,c(f,m,$,C,null);Xa(f,$)}return null}function y(m,f,h,$){for(var C=null,E=null,P=f,N=f=0,R=null;P!==null&&N<h.length;N++){P.index>N?(R=P,P=null):R=P.sibling;var F=p(m,P,h[N],$);if(F===null){P===null&&(P=R);break}e&&P&&F.alternate===null&&t(m,P),f=i(F,f,N),E===null?C=F:E.sibling=F,E=F,P=R}if(N===h.length)return n(m,P),be&&vr(m,N),C;if(P===null){for(;N<h.length;N++)P=d(m,h[N],$),P!==null&&(f=i(P,f,N),E===null?C=P:E.sibling=P,E=P);return be&&vr(m,N),C}for(P=r(m,P);N<h.length;N++)R=g(P,m,N,h[N],$),R!==null&&(e&&R.alternate!==null&&P.delete(R.key===null?N:R.key),f=i(R,f,N),E===null?C=R:E.sibling=R,E=R);return e&&P.forEach(function(j){return t(m,j)}),be&&vr(m,N),C}function b(m,f,h,$){var C=ei(h);if(typeof C!="function")throw Error(x(150));if(h=C.call(h),h==null)throw Error(x(151));for(var E=C=null,P=f,N=f=0,R=null,F=h.next();P!==null&&!F.done;N++,F=h.next()){P.index>N?(R=P,P=null):R=P.sibling;var j=p(m,P,F.value,$);if(j===null){P===null&&(P=R);break}e&&P&&j.alternate===null&&t(m,P),f=i(j,f,N),E===null?C=j:E.sibling=j,E=j,P=R}if(F.done)return n(m,P),be&&vr(m,N),C;if(P===null){for(;!F.done;N++,F=h.next())F=d(m,F.value,$),F!==null&&(f=i(F,f,N),E===null?C=F:E.sibling=F,E=F);return be&&vr(m,N),C}for(P=r(m,P);!F.done;N++,F=h.next())F=g(P,m,N,F.value,$),F!==null&&(e&&F.alternate!==null&&P.delete(F.key===null?N:F.key),f=i(F,f,N),E===null?C=F:E.sibling=F,E=F);return e&&P.forEach(function(O){return t(m,O)}),be&&vr(m,N),C}function D(m,f,h,$){if(typeof h=="object"&&h!==null&&h.type===ro&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case Da:e:{for(var C=h.key,E=f;E!==null;){if(E.key===C){if(C=h.type,C===ro){if(E.tag===7){n(m,E.sibling),f=o(E,h.props.children),f.return=m,m=f;break e}}else if(E.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Un&&Ep(C)===E.type){n(m,E.sibling),f=o(E,h.props),f.ref=oi(m,E,h),f.return=m,m=f;break e}n(m,E);break}else t(m,E);E=E.sibling}h.type===ro?(f=Er(h.props.children,m.mode,$,h.key),f.return=m,m=f):($=ul(h.type,h.key,h.props,null,m.mode,$),$.ref=oi(m,f,h),$.return=m,m=$)}return a(m);case no:e:{for(E=h.key;f!==null;){if(f.key===E)if(f.tag===4&&f.stateNode.containerInfo===h.containerInfo&&f.stateNode.implementation===h.implementation){n(m,f.sibling),f=o(f,h.children||[]),f.return=m,m=f;break e}else{n(m,f);break}else t(m,f);f=f.sibling}f=Cu(h,m.mode,$),f.return=m,m=f}return a(m);case Un:return E=h._init,D(m,f,E(h._payload),$)}if(ui(h))return y(m,f,h,$);if(ei(h))return b(m,f,h,$);Xa(m,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,f!==null&&f.tag===6?(n(m,f.sibling),f=o(f,h),f.return=m,m=f):(n(m,f),f=Su(h,m.mode,$),f.return=m,m=f),a(m)):n(m,f)}return D}var Co=Xm(!0),qm=Xm(!1),Sl=sr(null),Cl=null,fo=null,Fc=null;function Kc(){Fc=fo=Cl=null}function Oc(e){var t=Sl.current;me(Sl),e._currentValue=t}function ec(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function yo(e,t){Cl=e,Fc=fo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(ht=!0),e.firstContext=null)}function Ht(e){var t=e._currentValue;if(Fc!==e)if(e={context:e,memoizedValue:t,next:null},fo===null){if(Cl===null)throw Error(x(308));fo=e,Cl.dependencies={lanes:0,firstContext:e}}else fo=fo.next=e;return t}var Sr=null;function Ac(e){Sr===null?Sr=[e]:Sr.push(e)}function Zm(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Ac(t)):(n.next=o.next,o.next=n),t.interleaved=n,Rn(e,r)}function Rn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var jn=!1;function zc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Jm(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Pn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function tr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(J&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Rn(e,n)}return o=r.interleaved,o===null?(t.next=t,Ac(r)):(t.next=o.next,o.next=t),r.interleaved=t,Rn(e,n)}function rl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,kc(e,n)}}function Tp(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function kl(e,t,n,r){var o=e.updateQueue;jn=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var s=l,u=s.next;s.next=null,a===null?i=u:a.next=u,a=s;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==a&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(i!==null){var d=o.baseState;a=0,c=u=s=null,l=i;do{var p=l.lane,g=l.eventTime;if((r&p)===p){c!==null&&(c=c.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=e,b=l;switch(p=t,g=n,b.tag){case 1:if(y=b.payload,typeof y=="function"){d=y.call(g,d,p);break e}d=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=b.payload,p=typeof y=="function"?y.call(g,d,p):y,p==null)break e;d=Se({},d,p);break e;case 2:jn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[l]:p.push(l))}else g={eventTime:g,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=g,s=d):c=c.next=g,a|=p;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;p=l,l=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(c===null&&(s=d),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Lr|=a,e.lanes=a,e.memoizedState=d}}function _p(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(x(191,o));o.call(r)}}}var Bi={},gn=sr(Bi),Ri=sr(Bi),Mi=sr(Bi);function Cr(e){if(e===Bi)throw Error(x(174));return e}function Bc(e,t){switch(de(Mi,t),de(Ri,e),de(gn,Bi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Iu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Iu(t,e)}me(gn),de(gn,t)}function ko(){me(gn),me(Ri),me(Mi)}function e0(e){Cr(Mi.current);var t=Cr(gn.current),n=Iu(t,e.type);t!==n&&(de(Ri,e),de(gn,n))}function Hc(e){Ri.current===e&&(me(gn),me(Ri))}var xe=sr(0);function El(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var $u=[];function Vc(){for(var e=0;e<$u.length;e++)$u[e]._workInProgressVersionPrimary=null;$u.length=0}var ol=In.ReactCurrentDispatcher,bu=In.ReactCurrentBatchConfig,Pr=0,we=null,Ie=null,Fe=null,Tl=!1,$i=!1,Ii=0,sy=0;function je(){throw Error(x(321))}function Wc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!tn(e[n],t[n]))return!1;return!0}function Uc(e,t,n,r,o,i){if(Pr=i,we=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ol.current=e===null||e.memoizedState===null?fy:py,e=n(r,o),$i){i=0;do{if($i=!1,Ii=0,25<=i)throw Error(x(301));i+=1,Fe=Ie=null,t.updateQueue=null,ol.current=my,e=n(r,o)}while($i)}if(ol.current=_l,t=Ie!==null&&Ie.next!==null,Pr=0,Fe=Ie=we=null,Tl=!1,t)throw Error(x(300));return e}function jc(){var e=Ii!==0;return Ii=0,e}function pn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Fe===null?we.memoizedState=Fe=e:Fe=Fe.next=e,Fe}function Vt(){if(Ie===null){var e=we.alternate;e=e!==null?e.memoizedState:null}else e=Ie.next;var t=Fe===null?we.memoizedState:Fe.next;if(t!==null)Fe=t,Ie=e;else{if(e===null)throw Error(x(310));Ie=e,e={memoizedState:Ie.memoizedState,baseState:Ie.baseState,baseQueue:Ie.baseQueue,queue:Ie.queue,next:null},Fe===null?we.memoizedState=Fe=e:Fe=Fe.next=e}return Fe}function Di(e,t){return typeof t=="function"?t(e):t}function yu(e){var t=Vt(),n=t.queue;if(n===null)throw Error(x(311));n.lastRenderedReducer=e;var r=Ie,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var l=a=null,s=null,u=i;do{var c=u.lane;if((Pr&c)===c)s!==null&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};s===null?(l=s=d,a=r):s=s.next=d,we.lanes|=c,Lr|=c}u=u.next}while(u!==null&&u!==i);s===null?a=r:s.next=l,tn(r,t.memoizedState)||(ht=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,we.lanes|=i,Lr|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function vu(e){var t=Vt(),n=t.queue;if(n===null)throw Error(x(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var a=o=o.next;do i=e(i,a.action),a=a.next;while(a!==o);tn(i,t.memoizedState)||(ht=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function t0(){}function n0(e,t){var n=we,r=Vt(),o=t(),i=!tn(r.memoizedState,o);if(i&&(r.memoizedState=o,ht=!0),r=r.queue,Gc(i0.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Fe!==null&&Fe.memoizedState.tag&1){if(n.flags|=2048,Fi(9,o0.bind(null,n,r,o,t),void 0,null),Ke===null)throw Error(x(349));(Pr&30)!==0||r0(n,t,o)}return o}function r0(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=we.updateQueue,t===null?(t={lastEffect:null,stores:null},we.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function o0(e,t,n,r){t.value=n,t.getSnapshot=r,a0(t)&&l0(e)}function i0(e,t,n){return n(function(){a0(t)&&l0(e)})}function a0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!tn(e,n)}catch{return!0}}function l0(e){var t=Rn(e,1);t!==null&&en(t,e,1,-1)}function Pp(e){var t=pn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Di,lastRenderedState:e},t.queue=e,e=e.dispatch=dy.bind(null,we,e),[t.memoizedState,e]}function Fi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=we.updateQueue,t===null?(t={lastEffect:null,stores:null},we.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function s0(){return Vt().memoizedState}function il(e,t,n,r){var o=pn();we.flags|=e,o.memoizedState=Fi(1|t,n,void 0,r===void 0?null:r)}function zl(e,t,n,r){var o=Vt();r=r===void 0?null:r;var i=void 0;if(Ie!==null){var a=Ie.memoizedState;if(i=a.destroy,r!==null&&Wc(r,a.deps)){o.memoizedState=Fi(t,n,i,r);return}}we.flags|=e,o.memoizedState=Fi(1|t,n,i,r)}function Lp(e,t){return il(8390656,8,e,t)}function Gc(e,t){return zl(2048,8,e,t)}function u0(e,t){return zl(4,2,e,t)}function c0(e,t){return zl(4,4,e,t)}function d0(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function f0(e,t,n){return n=n!=null?n.concat([e]):null,zl(4,4,d0.bind(null,t,e),n)}function Qc(){}function p0(e,t){var n=Vt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Wc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function m0(e,t){var n=Vt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Wc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function h0(e,t,n){return(Pr&21)===0?(e.baseState&&(e.baseState=!1,ht=!0),e.memoizedState=n):(tn(n,t)||(n=vm(),we.lanes|=n,Lr|=n,e.baseState=!0),t)}function uy(e,t){var n=ae;ae=n!==0&&4>n?n:4,e(!0);var r=bu.transition;bu.transition={};try{e(!1),t()}finally{ae=n,bu.transition=r}}function g0(){return Vt().memoizedState}function cy(e,t,n){var r=rr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},$0(e))b0(t,n);else if(n=Zm(e,t,n,r),n!==null){var o=tt();en(n,e,r,o),y0(n,t,r)}}function dy(e,t,n){var r=rr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if($0(e))b0(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,tn(l,a)){var s=t.interleaved;s===null?(o.next=o,Ac(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=Zm(e,t,o,r),n!==null&&(o=tt(),en(n,e,r,o),y0(n,t,r))}}function $0(e){var t=e.alternate;return e===we||t!==null&&t===we}function b0(e,t){$i=Tl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function y0(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,kc(e,n)}}var _l={readContext:Ht,useCallback:je,useContext:je,useEffect:je,useImperativeHandle:je,useInsertionEffect:je,useLayoutEffect:je,useMemo:je,useReducer:je,useRef:je,useState:je,useDebugValue:je,useDeferredValue:je,useTransition:je,useMutableSource:je,useSyncExternalStore:je,useId:je,unstable_isNewReconciler:!1},fy={readContext:Ht,useCallback:function(e,t){return pn().memoizedState=[e,t===void 0?null:t],e},useContext:Ht,useEffect:Lp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,il(4194308,4,d0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return il(4194308,4,e,t)},useInsertionEffect:function(e,t){return il(4,2,e,t)},useMemo:function(e,t){var n=pn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=pn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=cy.bind(null,we,e),[r.memoizedState,e]},useRef:function(e){var t=pn();return e={current:e},t.memoizedState=e},useState:Pp,useDebugValue:Qc,useDeferredValue:function(e){return pn().memoizedState=e},useTransition:function(){var e=Pp(!1),t=e[0];return e=uy.bind(null,e[1]),pn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=we,o=pn();if(be){if(n===void 0)throw Error(x(407));n=n()}else{if(n=t(),Ke===null)throw Error(x(349));(Pr&30)!==0||r0(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Lp(i0.bind(null,r,i,e),[e]),r.flags|=2048,Fi(9,o0.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=pn(),t=Ke.identifierPrefix;if(be){var n=_n,r=Tn;n=(r&~(1<<32-Jt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ii++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=sy++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},py={readContext:Ht,useCallback:p0,useContext:Ht,useEffect:Gc,useImperativeHandle:f0,useInsertionEffect:u0,useLayoutEffect:c0,useMemo:m0,useReducer:yu,useRef:s0,useState:function(){return yu(Di)},useDebugValue:Qc,useDeferredValue:function(e){var t=Vt();return h0(t,Ie.memoizedState,e)},useTransition:function(){var e=yu(Di)[0],t=Vt().memoizedState;return[e,t]},useMutableSource:t0,useSyncExternalStore:n0,useId:g0,unstable_isNewReconciler:!1},my={readContext:Ht,useCallback:p0,useContext:Ht,useEffect:Gc,useImperativeHandle:f0,useInsertionEffect:u0,useLayoutEffect:c0,useMemo:m0,useReducer:vu,useRef:s0,useState:function(){return vu(Di)},useDebugValue:Qc,useDeferredValue:function(e){var t=Vt();return Ie===null?t.memoizedState=e:h0(t,Ie.memoizedState,e)},useTransition:function(){var e=vu(Di)[0],t=Vt().memoizedState;return[e,t]},useMutableSource:t0,useSyncExternalStore:n0,useId:g0,unstable_isNewReconciler:!1};function Xt(e,t){if(e&&e.defaultProps){t=Se({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function tc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Se({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Bl={isMounted:function(e){return(e=e._reactInternals)?Mr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tt(),o=rr(e),i=Pn(r,o);i.payload=t,n!=null&&(i.callback=n),t=tr(e,i,o),t!==null&&(en(t,e,o,r),rl(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tt(),o=rr(e),i=Pn(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=tr(e,i,o),t!==null&&(en(t,e,o,r),rl(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tt(),r=rr(e),o=Pn(n,r);o.tag=2,t!=null&&(o.callback=t),t=tr(e,o,r),t!==null&&(en(t,e,r,n),rl(t,e,r))}};function Np(e,t,n,r,o,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,a):t.prototype&&t.prototype.isPureReactComponent?!_i(n,r)||!_i(o,i):!0}function v0(e,t,n){var r=!1,o=ar,i=t.contextType;return typeof i=="object"&&i!==null?i=Ht(i):(o=$t(t)?Tr:Ye.current,r=t.contextTypes,i=(r=r!=null)?wo(e,o):ar),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Bl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Rp(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Bl.enqueueReplaceState(t,t.state,null)}function nc(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},zc(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Ht(i):(i=$t(t)?Tr:Ye.current,o.context=wo(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(tc(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Bl.enqueueReplaceState(o,o.state,null),kl(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Eo(e,t){try{var n="",r=t;do n+=W$(r),r=r.return;while(r);var o=n}catch(i){o=`
|
|
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(In)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=On.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=In&&"CompositionEvent"in window,yi=null;In&&"documentMode"in document&&(yi=document.documentMode);var Xb=In&&"TextEvent"in window&&!yi,Hm=In&&(!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;In&&(In?(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=In&&"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={};In&&(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[Dn]))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,Dn="__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[Dn]||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[Dn],!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 Ln=null,jl=!1,Cu=!1;function rh(e){Ln===null?Ln=[e]:Ln.push(e)}function $y(e){jl=!0,rh(e)}function fr(){if(!Cu&&Ln!==null){Cu=!0;var e=0,t=ae;try{var n=Ln;for(ae=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ln=null,jl=!1}catch(o){throw Ln!==null&&(Ln=Ln.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,Nn=1,Rn="";function Er(e,t){mo[ho++]=Pl,mo[ho++]=_l,_l=e,Pl=t}function oh(e,t,n){Ot[At++]=Nn,Ot[At++]=Rn,Ot[At++]=Ir,Ir=e;var r=Nn;e=Rn;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,Nn=1<<32-Jt(t)+o|n<<o|r,Rn=i+e}else Nn=1<<i|n<<o|r,Rn=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,Rn=Ot[--At],Ot[At]=null,Nn=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:Nn,overflow:Rn}: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=On.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,Fn(e,r)}function Fn(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 Mn(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,Fn(e,n)}return o=r.interleaved,o===null?(t.next=t,Gc(r)):(t.next=o.next,o.next=t),r.interleaved=t,Fn(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=On.ReactCurrentDispatcher,Eu=On.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=Fn(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=Rn,r=Nn;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=Mn(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=Mn(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=Mn(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 xu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function rc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var hy=typeof WeakMap=="function"?WeakMap:Map;function x0(e,t,n){n=Pn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ll||(Ll=!0,pc=r),rc(e,t)},n}function w0(e,t,n){n=Pn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){rc(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){rc(e,t),typeof r!="function"&&(nr===null?nr=new Set([this]):nr.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function Mp(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new hy;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Py.bind(null,e,t,n),t.then(e,e))}function Ip(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Dp(e,t,n,r,o){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Pn(-1,1),t.tag=2,tr(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var gy=In.ReactCurrentOwner,ht=!1;function et(e,t,n,r){t.child=e===null?qm(t,null,n,r):Co(t,e.child,n,r)}function Fp(e,t,n,r,o){n=n.render;var i=t.ref;return yo(t,o),r=Uc(e,t,n,r,i,o),n=jc(),e!==null&&!ht?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Mn(e,t,o)):(be&&n&&Mc(t),t.flags|=1,et(e,t,r,o),t.child)}function Kp(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!nd(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,S0(e,t,i,r,o)):(e=ul(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,(e.lanes&o)===0){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:_i,n(a,r)&&e.ref===t.ref)return Mn(e,t,o)}return t.flags|=1,e=or(i,r),e.ref=t.ref,e.return=t,t.child=e}function S0(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(_i(i,r)&&e.ref===t.ref)if(ht=!1,t.pendingProps=r=i,(e.lanes&o)!==0)(e.flags&131072)!==0&&(ht=!0);else return t.lanes=e.lanes,Mn(e,t,o)}return oc(e,t,n,r,o)}function C0(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},de(mo,wt),wt|=n;else{if((n&1073741824)===0)return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,de(mo,wt),wt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,de(mo,wt),wt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,de(mo,wt),wt|=r;return et(e,t,o,n),t.child}function k0(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function oc(e,t,n,r,o){var i=$t(n)?Tr:Ye.current;return i=wo(t,i),yo(t,o),n=Uc(e,t,n,r,i,o),r=jc(),e!==null&&!ht?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Mn(e,t,o)):(be&&r&&Mc(t),t.flags|=1,et(e,t,n,o),t.child)}function Op(e,t,n,r,o){if($t(n)){var i=!0;vl(t)}else i=!1;if(yo(t,o),t.stateNode===null)al(e,t),v0(t,n,r),nc(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ht(u):(u=$t(n)?Tr:Ye.current,u=wo(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||s!==u)&&Rp(t,a,r,u),jn=!1;var p=t.memoizedState;a.state=p,kl(t,r,a,o),s=t.memoizedState,l!==r||p!==s||gt.current||jn?(typeof c=="function"&&(tc(t,n,c,r),s=t.memoizedState),(l=jn||Np(t,n,l,r,p,s,u))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=u,r=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Jm(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Xt(t.type,l),a.props=u,d=t.pendingProps,p=a.context,s=n.contextType,typeof s=="object"&&s!==null?s=Ht(s):(s=$t(n)?Tr:Ye.current,s=wo(t,s));var g=n.getDerivedStateFromProps;(c=typeof g=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==d||p!==s)&&Rp(t,a,r,s),jn=!1,p=t.memoizedState,a.state=p,kl(t,r,a,o);var y=t.memoizedState;l!==d||p!==y||gt.current||jn?(typeof g=="function"&&(tc(t,n,g,r),y=t.memoizedState),(u=jn||Np(t,n,u,r,p,y,s)||!1)?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,y,s),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,y,s)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),a.props=r,a.state=y,a.context=s,r=u):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return ic(e,t,n,r,i,o)}function ic(e,t,n,r,o,i){k0(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&Sp(t,n,!1),Mn(e,t,i);r=t.stateNode,gy.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Co(t,e.child,null,i),t.child=Co(t,null,l,i)):et(e,t,l,i),t.memoizedState=r.state,o&&Sp(t,n,!0),t.child}function E0(e){var t=e.stateNode;t.pendingContext?wp(e,t.pendingContext,t.pendingContext!==t.context):t.context&&wp(e,t.context,!1),Bc(e,t.containerInfo)}function Ap(e,t,n,r,o){return So(),Dc(o),t.flags|=256,et(e,t,n,r),t.child}var ac={dehydrated:null,treeContext:null,retryLane:0};function lc(e){return{baseLanes:e,cachePool:null,transitions:null}}function T0(e,t,n){var r=t.pendingProps,o=xe.current,i=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),de(xe,o&1),e===null)return Ju(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(a=r.children,e=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},(r&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=a):i=Wl(a,r,0,null),e=Er(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=lc(n),t.memoizedState=ac,e):Yc(t,a));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return $y(e,t,a,r,l,o,n);if(i){i=r.fallback,a=t.mode,o=e.child,l=o.sibling;var s={mode:"hidden",children:r.children};return(a&1)===0&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=or(o,s),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?i=or(l,i):(i=Er(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?lc(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=ac,r}return i=e.child,e=i.sibling,r=or(i,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Yc(e,t){return t=Wl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function qa(e,t,n,r){return r!==null&&Dc(r),Co(t,e.child,null,n),e=Yc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function $y(e,t,n,r,o,i,a){if(n)return t.flags&256?(t.flags&=-257,r=xu(Error(x(422))),qa(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Wl({mode:"visible",children:r.children},o,0,null),i=Er(i,o,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,(t.mode&1)!==0&&Co(t,e.child,null,a),t.child.memoizedState=lc(a),t.memoizedState=ac,i);if((t.mode&1)===0)return qa(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(x(419)),r=xu(i,r,void 0),qa(e,t,a,r)}if(l=(a&e.childLanes)!==0,ht||l){if(r=Ke,r!==null){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=(o&(r.suspendedLanes|a))!==0?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Rn(e,o),en(r,e,o,-1))}return td(),r=xu(Error(x(421))),qa(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Ly.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,St=er(o.nextSibling),Ct=t,be=!0,Zt=null,e!==null&&(Ot[At++]=Tn,Ot[At++]=_n,Ot[At++]=_r,Tn=e.id,_n=e.overflow,_r=t),t=Yc(t,r.children),t.flags|=4096,t)}function zp(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ec(e.return,t,n)}function wu(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function _0(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(et(e,t,r.children,n),r=xe.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&zp(e,n,t);else if(e.tag===19)zp(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(de(xe,r),(t.mode&1)===0)t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&El(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),wu(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&El(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}wu(t,!0,n,null,i);break;case"together":wu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function al(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Mn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Lr|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(x(153));if(t.child!==null){for(e=t.child,n=or(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=or(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function by(e,t,n){switch(t.tag){case 3:E0(t),So();break;case 5:e0(t);break;case 1:$t(t.type)&&vl(t);break;case 4:Bc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;de(Sl,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(de(xe,xe.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?T0(e,t,n):(de(xe,xe.current&1),e=Mn(e,t,n),e!==null?e.sibling:null);de(xe,xe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return _0(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),de(xe,xe.current),r)break;return null;case 22:case 23:return t.lanes=0,C0(e,t,n)}return Mn(e,t,n)}var P0,sc,L0,N0;P0=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};sc=function(){};L0=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Cr(gn.current);var i=null;switch(n){case"input":o=Lu(e,o),r=Lu(e,r),i=[];break;case"select":o=Se({},o,{value:void 0}),r=Se({},r,{value:void 0}),i=[];break;case"textarea":o=Mu(e,o),r=Mu(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=bl)}Du(n,r);var a;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var l=o[u];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(xi.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var s=r[u];if(l=o?.[u],r.hasOwnProperty(u)&&s!==l&&(s!=null||l!=null))if(u==="style")if(l){for(a in l)!l.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in s)s.hasOwnProperty(a)&&l[a]!==s[a]&&(n||(n={}),n[a]=s[a])}else n||(i||(i=[]),i.push(u,n)),n=s;else u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(i=i||[]).push(u,s)):u==="children"?typeof s!="string"&&typeof s!="number"||(i=i||[]).push(u,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(xi.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&pe("scroll",e),i||l===s||(i=[])):(i=i||[]).push(u,s))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};N0=function(e,t,n,r){n!==r&&(t.flags|=4)};function ii(e,t){if(!be)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ge(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function yy(e,t,n){var r=t.pendingProps;switch(Ic(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ge(t),null;case 1:return $t(t.type)&&yl(),Ge(t),null;case 3:return r=t.stateNode,ko(),me(gt),me(Ye),Vc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ya(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Zt!==null&&(gc(Zt),Zt=null))),sc(e,t),Ge(t),null;case 5:Hc(t);var o=Cr(Mi.current);if(n=t.type,e!==null&&t.stateNode!=null)L0(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(x(166));return Ge(t),null}if(e=Cr(gn.current),Ya(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[mn]=t,r[Ni]=i,e=(t.mode&1)!==0,n){case"dialog":pe("cancel",r),pe("close",r);break;case"iframe":case"object":case"embed":pe("load",r);break;case"video":case"audio":for(o=0;o<di.length;o++)pe(di[o],r);break;case"source":pe("error",r);break;case"img":case"image":case"link":pe("error",r),pe("load",r);break;case"details":pe("toggle",r);break;case"input":Qf(r,i),pe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},pe("invalid",r);break;case"textarea":Xf(r,i),pe("invalid",r)}Du(n,i),o=null;for(var a in i)if(i.hasOwnProperty(a)){var l=i[a];a==="children"?typeof l=="string"?r.textContent!==l&&(i.suppressHydrationWarning!==!0&&Qa(r.textContent,l,e),o=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&Qa(r.textContent,l,e),o=["children",""+l]):xi.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&pe("scroll",r)}switch(n){case"input":Fa(r),Yf(r,i,!0);break;case"textarea":Fa(r),qf(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=bl)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=im(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[mn]=t,e[Ni]=r,P0(e,t,!1,!1),t.stateNode=e;e:{switch(a=Fu(n,r),n){case"dialog":pe("cancel",e),pe("close",e),o=r;break;case"iframe":case"object":case"embed":pe("load",e),o=r;break;case"video":case"audio":for(o=0;o<di.length;o++)pe(di[o],e);o=r;break;case"source":pe("error",e),o=r;break;case"img":case"image":case"link":pe("error",e),pe("load",e),o=r;break;case"details":pe("toggle",e),o=r;break;case"input":Qf(e,r),o=Lu(e,r),pe("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Se({},r,{value:void 0}),pe("invalid",e);break;case"textarea":Xf(e,r),o=Mu(e,r),pe("invalid",e);break;default:o=r}Du(n,o),l=o;for(i in l)if(l.hasOwnProperty(i)){var s=l[i];i==="style"?sm(e,s):i==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&am(e,s)):i==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&wi(e,s):typeof s=="number"&&wi(e,""+s):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(xi.hasOwnProperty(i)?s!=null&&i==="onScroll"&&pe("scroll",e):s!=null&&yc(e,i,s,a))}switch(n){case"input":Fa(e),Yf(e,r,!1);break;case"textarea":Fa(e),qf(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ir(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?ho(e,!!r.multiple,i,!1):r.defaultValue!=null&&ho(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=bl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ge(t),null;case 6:if(e&&t.stateNode!=null)N0(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(x(166));if(n=Cr(Mi.current),Cr(gn.current),Ya(t)){if(r=t.stateNode,n=t.memoizedProps,r[mn]=t,(i=r.nodeValue!==n)&&(e=Ct,e!==null))switch(e.tag){case 3:Qa(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Qa(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[mn]=t,t.stateNode=r}return Ge(t),null;case 13:if(me(xe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(be&&St!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Ym(),So(),t.flags|=98560,i=!1;else if(i=Ya(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(x(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(x(317));i[mn]=t}else So(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ge(t),i=!1}else Zt!==null&&(gc(Zt),Zt=null),i=!0;if(!i)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(xe.current&1)!==0?De===0&&(De=3):td())),t.updateQueue!==null&&(t.flags|=4),Ge(t),null);case 4:return ko(),sc(e,t),e===null&&Pi(t.stateNode.containerInfo),Ge(t),null;case 10:return Oc(t.type._context),Ge(t),null;case 17:return $t(t.type)&&yl(),Ge(t),null;case 19:if(me(xe),i=t.memoizedState,i===null)return Ge(t),null;if(r=(t.flags&128)!==0,a=i.rendering,a===null)if(r)ii(i,!1);else{if(De!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(a=El(e),a!==null){for(t.flags|=128,ii(i,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return de(xe,xe.current&1|2),t.child}e=e.sibling}i.tail!==null&&Te()>To&&(t.flags|=128,r=!0,ii(i,!1),t.lanes=4194304)}else{if(!r)if(e=El(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ii(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!be)return Ge(t),null}else 2*Te()-i.renderingStartTime>To&&n!==1073741824&&(t.flags|=128,r=!0,ii(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Te(),t.sibling=null,n=xe.current,de(xe,r?n&1|2:n&1),t):(Ge(t),null);case 22:case 23:return ed(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(wt&1073741824)!==0&&(Ge(t),t.subtreeFlags&6&&(t.flags|=8192)):Ge(t),null;case 24:return null;case 25:return null}throw Error(x(156,t.tag))}function vy(e,t){switch(Ic(t),t.tag){case 1:return $t(t.type)&&yl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ko(),me(gt),me(Ye),Vc(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Hc(t),null;case 13:if(me(xe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(x(340));So()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return me(xe),null;case 4:return ko(),null;case 10:return Oc(t.type._context),null;case 22:case 23:return ed(),null;case 24:return null;default:return null}}var Za=!1,Qe=!1,xy=typeof WeakSet=="function"?WeakSet:Set,I=null;function po(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ke(e,t,r)}else n.current=null}function uc(e,t,n){try{n()}catch(r){ke(e,t,r)}}var Bp=!1;function wy(e,t){if(ju=hl,e=Fm(),Rc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,l=-1,s=-1,u=0,c=0,d=e,p=null;t:for(;;){for(var g;d!==n||o!==0&&d.nodeType!==3||(l=a+o),d!==i||r!==0&&d.nodeType!==3||(s=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(g=d.firstChild)!==null;)p=d,d=g;for(;;){if(d===e)break t;if(p===n&&++u===o&&(l=a),p===i&&++c===r&&(s=a),(g=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=g}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Gu={focusedElem:e,selectionRange:n},hl=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;try{var y=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var b=y.memoizedProps,D=y.memoizedState,m=t.stateNode,f=m.getSnapshotBeforeUpdate(t.elementType===t.type?b:Xt(t.type,b),D);m.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(x(163))}}catch($){ke(t,t.return,$)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return y=Bp,Bp=!1,y}function bi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&uc(t,n,i)}o=o.next}while(o!==r)}}function Hl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function cc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function R0(e){var t=e.alternate;t!==null&&(e.alternate=null,R0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[mn],delete t[Ni],delete t[Xu],delete t[oy],delete t[iy])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function M0(e){return e.tag===5||e.tag===3||e.tag===4}function Hp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||M0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function dc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=bl));else if(r!==4&&(e=e.child,e!==null))for(dc(e,t,n),e=e.sibling;e!==null;)dc(e,t,n),e=e.sibling}function fc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(fc(e,t,n),e=e.sibling;e!==null;)fc(e,t,n),e=e.sibling}var Be=null,qt=!1;function Wn(e,t,n){for(n=n.child;n!==null;)I0(e,t,n),n=n.sibling}function I0(e,t,n){if(hn&&typeof hn.onCommitFiberUnmount=="function")try{hn.onCommitFiberUnmount(Il,n)}catch{}switch(n.tag){case 5:Qe||po(n,t);case 6:var r=Be,o=qt;Be=null,Wn(e,t,n),Be=r,qt=o,Be!==null&&(qt?(e=Be,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Be.removeChild(n.stateNode));break;case 18:Be!==null&&(qt?(e=Be,n=n.stateNode,e.nodeType===8?hu(e.parentNode,n):e.nodeType===1&&hu(e,n),Ei(e)):hu(Be,n.stateNode));break;case 4:r=Be,o=qt,Be=n.stateNode.containerInfo,qt=!0,Wn(e,t,n),Be=r,qt=o;break;case 0:case 11:case 14:case 15:if(!Qe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&uc(n,t,a),o=o.next}while(o!==r)}Wn(e,t,n);break;case 1:if(!Qe&&(po(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ke(n,t,l)}Wn(e,t,n);break;case 21:Wn(e,t,n);break;case 22:n.mode&1?(Qe=(r=Qe)||n.memoizedState!==null,Wn(e,t,n),Qe=r):Wn(e,t,n);break;default:Wn(e,t,n)}}function Vp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new xy),t.forEach(function(r){var o=Ny.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Yt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,a=t,l=a;e:for(;l!==null;){switch(l.tag){case 5:Be=l.stateNode,qt=!1;break e;case 3:Be=l.stateNode.containerInfo,qt=!0;break e;case 4:Be=l.stateNode.containerInfo,qt=!0;break e}l=l.return}if(Be===null)throw Error(x(160));I0(i,a,o),Be=null,qt=!1;var s=o.alternate;s!==null&&(s.return=null),o.return=null}catch(u){ke(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)D0(t,e),t=t.sibling}function D0(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Yt(t,e),fn(e),r&4){try{bi(3,e,e.return),Hl(3,e)}catch(b){ke(e,e.return,b)}try{bi(5,e,e.return)}catch(b){ke(e,e.return,b)}}break;case 1:Yt(t,e),fn(e),r&512&&n!==null&&po(n,n.return);break;case 5:if(Yt(t,e),fn(e),r&512&&n!==null&&po(n,n.return),e.flags&32){var o=e.stateNode;try{wi(o,"")}catch(b){ke(e,e.return,b)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,a=n!==null?n.memoizedProps:i,l=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&rm(o,i),Fu(l,a);var u=Fu(l,i);for(a=0;a<s.length;a+=2){var c=s[a],d=s[a+1];c==="style"?sm(o,d):c==="dangerouslySetInnerHTML"?am(o,d):c==="children"?wi(o,d):yc(o,c,d,u)}switch(l){case"input":Nu(o,i);break;case"textarea":om(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var g=i.value;g!=null?ho(o,!!i.multiple,g,!1):p!==!!i.multiple&&(i.defaultValue!=null?ho(o,!!i.multiple,i.defaultValue,!0):ho(o,!!i.multiple,i.multiple?[]:"",!1))}o[Ni]=i}catch(b){ke(e,e.return,b)}}break;case 6:if(Yt(t,e),fn(e),r&4){if(e.stateNode===null)throw Error(x(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(b){ke(e,e.return,b)}}break;case 3:if(Yt(t,e),fn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ei(t.containerInfo)}catch(b){ke(e,e.return,b)}break;case 4:Yt(t,e),fn(e);break;case 13:Yt(t,e),fn(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(Zc=Te())),r&4&&Vp(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Qe=(u=Qe)||c,Yt(t,e),Qe=u):Yt(t,e),fn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&(e.mode&1)!==0)for(I=e,c=e.child;c!==null;){for(d=I=c;I!==null;){switch(p=I,g=p.child,p.tag){case 0:case 11:case 14:case 15:bi(4,p,p.return);break;case 1:po(p,p.return);var y=p.stateNode;if(typeof y.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(b){ke(r,n,b)}}break;case 5:po(p,p.return);break;case 22:if(p.memoizedState!==null){Up(d);continue}}g!==null?(g.return=p,I=g):Up(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{o=d.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=d.stateNode,s=d.memoizedProps.style,a=s!=null&&s.hasOwnProperty("display")?s.display:null,l.style.display=lm("display",a))}catch(b){ke(e,e.return,b)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(b){ke(e,e.return,b)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Yt(t,e),fn(e),r&4&&Vp(e);break;case 21:break;default:Yt(t,e),fn(e)}}function fn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(M0(n)){var r=n;break e}n=n.return}throw Error(x(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(wi(o,""),r.flags&=-33);var i=Hp(e);fc(e,i,o);break;case 3:case 4:var a=r.stateNode.containerInfo,l=Hp(e);dc(e,l,a);break;default:throw Error(x(161))}}catch(s){ke(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Sy(e,t,n){I=e,F0(e,t,n)}function F0(e,t,n){for(var r=(e.mode&1)!==0;I!==null;){var o=I,i=o.child;if(o.tag===22&&r){var a=o.memoizedState!==null||Za;if(!a){var l=o.alternate,s=l!==null&&l.memoizedState!==null||Qe;l=Za;var u=Qe;if(Za=a,(Qe=s)&&!u)for(I=o;I!==null;)a=I,s=a.child,a.tag===22&&a.memoizedState!==null?jp(o):s!==null?(s.return=a,I=s):jp(o);for(;i!==null;)I=i,F0(i,t,n),i=i.sibling;I=o,Za=l,Qe=u}Wp(e,t,n)}else(o.subtreeFlags&8772)!==0&&i!==null?(i.return=o,I=i):Wp(e,t,n)}}function Wp(e){for(;I!==null;){var t=I;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Qe||Hl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Qe)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Xt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&_p(t,i,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}_p(t,a,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&Ei(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(x(163))}Qe||t.flags&512&&cc(t)}catch(p){ke(t,t.return,p)}}if(t===e){I=null;break}if(n=t.sibling,n!==null){n.return=t.return,I=n;break}I=t.return}}function Up(e){for(;I!==null;){var t=I;if(t===e){I=null;break}var n=t.sibling;if(n!==null){n.return=t.return,I=n;break}I=t.return}}function jp(e){for(;I!==null;){var t=I;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Hl(4,t)}catch(s){ke(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(s){ke(t,o,s)}}var i=t.return;try{cc(t)}catch(s){ke(t,i,s)}break;case 5:var a=t.return;try{cc(t)}catch(s){ke(t,a,s)}}}catch(s){ke(t,t.return,s)}if(t===e){I=null;break}var l=t.sibling;if(l!==null){l.return=t.return,I=l;break}I=t.return}}var Cy=Math.ceil,Pl=In.ReactCurrentDispatcher,Xc=In.ReactCurrentOwner,Bt=In.ReactCurrentBatchConfig,J=0,Ke=null,Le=null,He=0,wt=0,mo=sr(0),De=0,Ki=null,Lr=0,Vl=0,qc=0,yi=null,mt=null,Zc=0,To=1/0,kn=null,Ll=!1,pc=null,nr=null,Ja=!1,Xn=null,Nl=0,vi=0,mc=null,ll=-1,sl=0;function tt(){return(J&6)!==0?Te():ll!==-1?ll:ll=Te()}function rr(e){return(e.mode&1)===0?1:(J&2)!==0&&He!==0?He&-He:ly.transition!==null?(sl===0&&(sl=vm()),sl):(e=ae,e!==0||(e=window.event,e=e===void 0?16:Tm(e.type)),e)}function en(e,t,n,r){if(50<vi)throw vi=0,mc=null,Error(x(185));Oi(e,n,r),((J&2)===0||e!==Ke)&&(e===Ke&&((J&2)===0&&(Vl|=n),De===4&&Qn(e,He)),bt(e,r),n===1&&J===0&&(t.mode&1)===0&&(To=Te()+500,Al&&ur()))}function bt(e,t){var n=e.callbackNode;ub(e,t);var r=ml(e,e===Ke?He:0);if(r===0)n!==null&&ep(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&ep(n),t===1)e.tag===0?ay(Gp.bind(null,e)):jm(Gp.bind(null,e)),ny(function(){(J&6)===0&&ur()}),n=null;else{switch(xm(r)){case 1:n=Cc;break;case 4:n=bm;break;case 16:n=pl;break;case 536870912:n=ym;break;default:n=pl}n=W0(n,K0.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function K0(e,t){if(ll=-1,sl=0,(J&6)!==0)throw Error(x(327));var n=e.callbackNode;if(vo()&&e.callbackNode!==n)return null;var r=ml(e,e===Ke?He:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=Rl(e,r);else{t=r;var o=J;J|=2;var i=A0();(Ke!==e||He!==t)&&(kn=null,To=Te()+500,kr(e,t));do try{Ty();break}catch(l){O0(e,l)}while(!0);Kc(),Pl.current=i,J=o,Le!==null?t=0:(Ke=null,He=0,t=De)}if(t!==0){if(t===2&&(o=Bu(e),o!==0&&(r=o,t=hc(e,o))),t===1)throw n=Ki,kr(e,0),Qn(e,r),bt(e,Te()),n;if(t===6)Qn(e,r);else{if(o=e.current.alternate,(r&30)===0&&!ky(o)&&(t=Rl(e,r),t===2&&(i=Bu(e),i!==0&&(r=i,t=hc(e,i))),t===1))throw n=Ki,kr(e,0),Qn(e,r),bt(e,Te()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(x(345));case 2:xr(e,mt,kn);break;case 3:if(Qn(e,r),(r&130023424)===r&&(t=Zc+500-Te(),10<t)){if(ml(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){tt(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Yu(xr.bind(null,e,mt,kn),t);break}xr(e,mt,kn);break;case 4:if(Qn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-Jt(r);i=1<<a,a=t[a],a>o&&(o=a),r&=~i}if(r=o,r=Te()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cy(r/1960))-r,10<r){e.timeoutHandle=Yu(xr.bind(null,e,mt,kn),r);break}xr(e,mt,kn);break;case 5:xr(e,mt,kn);break;default:throw Error(x(329))}}}return bt(e,Te()),e.callbackNode===n?K0.bind(null,e):null}function hc(e,t){var n=yi;return e.current.memoizedState.isDehydrated&&(kr(e,t).flags|=256),e=Rl(e,t),e!==2&&(t=mt,mt=n,t!==null&&gc(t)),e}function gc(e){mt===null?mt=e:mt.push.apply(mt,e)}function ky(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!tn(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Qn(e,t){for(t&=~qc,t&=~Vl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Jt(t),r=1<<n;e[n]=-1,t&=~r}}function Gp(e){if((J&6)!==0)throw Error(x(327));vo();var t=ml(e,0);if((t&1)===0)return bt(e,Te()),null;var n=Rl(e,t);if(e.tag!==0&&n===2){var r=Bu(e);r!==0&&(t=r,n=hc(e,r))}if(n===1)throw n=Ki,kr(e,0),Qn(e,t),bt(e,Te()),n;if(n===6)throw Error(x(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xr(e,mt,kn),bt(e,Te()),null}function Jc(e,t){var n=J;J|=1;try{return e(t)}finally{J=n,J===0&&(To=Te()+500,Al&&ur())}}function Nr(e){Xn!==null&&Xn.tag===0&&(J&6)===0&&vo();var t=J;J|=1;var n=Bt.transition,r=ae;try{if(Bt.transition=null,ae=1,e)return e()}finally{ae=r,Bt.transition=n,J=t,(J&6)===0&&ur()}}function ed(){wt=mo.current,me(mo)}function kr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,ty(n)),Le!==null)for(n=Le.return;n!==null;){var r=n;switch(Ic(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&yl();break;case 3:ko(),me(gt),me(Ye),Vc();break;case 5:Hc(r);break;case 4:ko();break;case 13:me(xe);break;case 19:me(xe);break;case 10:Oc(r.type._context);break;case 22:case 23:ed()}n=n.return}if(Ke=e,Le=e=or(e.current,null),He=wt=t,De=0,Ki=null,qc=Vl=Lr=0,mt=yi=null,Sr!==null){for(t=0;t<Sr.length;t++)if(n=Sr[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var a=i.next;i.next=o,r.next=a}n.pending=r}Sr=null}return e}function O0(e,t){do{var n=Le;try{if(Kc(),ol.current=_l,Tl){for(var r=we.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Tl=!1}if(Pr=0,Fe=Ie=we=null,$i=!1,Ii=0,Xc.current=null,n===null||n.return===null){De=1,Ki=t,Le=null;break}e:{var i=e,a=n.return,l=n,s=t;if(t=He,l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var u=s,c=l,d=c.tag;if((c.mode&1)===0&&(d===0||d===11||d===15)){var p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.lanes):(c.updateQueue=null,c.memoizedState=null)}var g=Ip(a);if(g!==null){g.flags&=-257,Dp(g,a,l,i,t),g.mode&1&&Mp(i,u,t),t=g,s=u;var y=t.updateQueue;if(y===null){var b=new Set;b.add(s),t.updateQueue=b}else y.add(s);break e}else{if((t&1)===0){Mp(i,u,t),td();break e}s=Error(x(426))}}else if(be&&l.mode&1){var D=Ip(a);if(D!==null){(D.flags&65536)===0&&(D.flags|=256),Dp(D,a,l,i,t),Dc(Eo(s,l));break e}}i=s=Eo(s,l),De!==4&&(De=2),yi===null?yi=[i]:yi.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=x0(i,s,t);Tp(i,m);break e;case 1:l=s;var f=i.type,h=i.stateNode;if((i.flags&128)===0&&(typeof f.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(nr===null||!nr.has(h)))){i.flags|=65536,t&=-t,i.lanes|=t;var $=w0(i,l,t);Tp(i,$);break e}}i=i.return}while(i!==null)}B0(n)}catch(C){t=C,Le===n&&n!==null&&(Le=n=n.return);continue}break}while(!0)}function A0(){var e=Pl.current;return Pl.current=_l,e===null?_l:e}function td(){(De===0||De===3||De===2)&&(De=4),Ke===null||(Lr&268435455)===0&&(Vl&268435455)===0||Qn(Ke,He)}function Rl(e,t){var n=J;J|=2;var r=A0();(Ke!==e||He!==t)&&(kn=null,kr(e,t));do try{Ey();break}catch(o){O0(e,o)}while(!0);if(Kc(),J=n,Pl.current=r,Le!==null)throw Error(x(261));return Ke=null,He=0,De}function Ey(){for(;Le!==null;)z0(Le)}function Ty(){for(;Le!==null&&!eb();)z0(Le)}function z0(e){var t=V0(e.alternate,e,wt);e.memoizedProps=e.pendingProps,t===null?B0(e):Le=t,Xc.current=null}function B0(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=yy(n,t,wt),n!==null){Le=n;return}}else{if(n=vy(n,t),n!==null){n.flags&=32767,Le=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{De=6,Le=null;return}}if(t=t.sibling,t!==null){Le=t;return}Le=t=e}while(t!==null);De===0&&(De=5)}function xr(e,t,n){var r=ae,o=Bt.transition;try{Bt.transition=null,ae=1,_y(e,t,n,r)}finally{Bt.transition=o,ae=r}return null}function _y(e,t,n,r){do vo();while(Xn!==null);if((J&6)!==0)throw Error(x(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(x(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(cb(e,i),e===Ke&&(Le=Ke=null,He=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Ja||(Ja=!0,W0(pl,function(){return vo(),null})),i=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||i){i=Bt.transition,Bt.transition=null;var a=ae;ae=1;var l=J;J|=4,Xc.current=null,wy(e,n),D0(n,e),Xb(Gu),hl=!!ju,Gu=ju=null,e.current=n,Sy(n,e,o),tb(),J=l,ae=a,Bt.transition=i}else e.current=n;if(Ja&&(Ja=!1,Xn=e,Nl=o),i=e.pendingLanes,i===0&&(nr=null),ob(n.stateNode,r),bt(e,Te()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Ll)throw Ll=!1,e=pc,pc=null,e;return(Nl&1)!==0&&e.tag!==0&&vo(),i=e.pendingLanes,(i&1)!==0?e===mc?vi++:(vi=0,mc=e):vi=0,ur(),null}function vo(){if(Xn!==null){var e=xm(Nl),t=Bt.transition,n=ae;try{if(Bt.transition=null,ae=16>e?16:e,Xn===null)var r=!1;else{if(e=Xn,Xn=null,Nl=0,(J&6)!==0)throw Error(x(331));var o=J;for(J|=4,I=e.current;I!==null;){var i=I,a=i.child;if((I.flags&16)!==0){var l=i.deletions;if(l!==null){for(var s=0;s<l.length;s++){var u=l[s];for(I=u;I!==null;){var c=I;switch(c.tag){case 0:case 11:case 15:bi(8,c,i)}var d=c.child;if(d!==null)d.return=c,I=d;else for(;I!==null;){c=I;var p=c.sibling,g=c.return;if(R0(c),c===u){I=null;break}if(p!==null){p.return=g,I=p;break}I=g}}}var y=i.alternate;if(y!==null){var b=y.child;if(b!==null){y.child=null;do{var D=b.sibling;b.sibling=null,b=D}while(b!==null)}}I=i}}if((i.subtreeFlags&2064)!==0&&a!==null)a.return=i,I=a;else e:for(;I!==null;){if(i=I,(i.flags&2048)!==0)switch(i.tag){case 0:case 11:case 15:bi(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,I=m;break e}I=i.return}}var f=e.current;for(I=f;I!==null;){a=I;var h=a.child;if((a.subtreeFlags&2064)!==0&&h!==null)h.return=a,I=h;else e:for(a=f;I!==null;){if(l=I,(l.flags&2048)!==0)try{switch(l.tag){case 0:case 11:case 15:Hl(9,l)}}catch(C){ke(l,l.return,C)}if(l===a){I=null;break e}var $=l.sibling;if($!==null){$.return=l.return,I=$;break e}I=l.return}}if(J=o,ur(),hn&&typeof hn.onPostCommitFiberRoot=="function")try{hn.onPostCommitFiberRoot(Il,e)}catch{}r=!0}return r}finally{ae=n,Bt.transition=t}}return!1}function Qp(e,t,n){t=Eo(n,t),t=x0(e,t,1),e=tr(e,t,1),t=tt(),e!==null&&(Oi(e,1,t),bt(e,t))}function ke(e,t,n){if(e.tag===3)Qp(e,e,n);else for(;t!==null;){if(t.tag===3){Qp(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(nr===null||!nr.has(r))){e=Eo(n,e),e=w0(t,e,1),t=tr(t,e,1),e=tt(),t!==null&&(Oi(t,1,e),bt(t,e));break}}t=t.return}}function Py(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=tt(),e.pingedLanes|=e.suspendedLanes&n,Ke===e&&(He&n)===n&&(De===4||De===3&&(He&130023424)===He&&500>Te()-Zc?kr(e,0):qc|=n),bt(e,t)}function H0(e,t){t===0&&((e.mode&1)===0?t=1:(t=Aa,Aa<<=1,(Aa&130023424)===0&&(Aa=4194304)));var n=tt();e=Rn(e,t),e!==null&&(Oi(e,t,n),bt(e,n))}function Ly(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),H0(e,n)}function Ny(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(x(314))}r!==null&&r.delete(t),H0(e,n)}var V0;V0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||gt.current)ht=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return ht=!1,by(e,t,n);ht=(e.flags&131072)!==0}else ht=!1,be&&(t.flags&1048576)!==0&&Gm(t,wl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;al(e,t),e=t.pendingProps;var o=wo(t,Ye.current);yo(t,n),o=Uc(null,t,r,e,o,n);var i=jc();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,$t(r)?(i=!0,vl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,zc(t),o.updater=Bl,t.stateNode=o,o._reactInternals=t,nc(t,r,e,n),t=ic(null,t,r,!0,i,n)):(t.tag=0,be&&i&&Mc(t),et(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(al(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=My(r),e=Xt(r,e),o){case 0:t=oc(null,t,r,e,n);break e;case 1:t=Op(null,t,r,e,n);break e;case 11:t=Fp(null,t,r,e,n);break e;case 14:t=Kp(null,t,r,Xt(r.type,e),n);break e}throw Error(x(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),oc(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),Op(e,t,r,o,n);case 3:e:{if(E0(t),e===null)throw Error(x(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Jm(e,t),kl(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Eo(Error(x(423)),t),t=Ap(e,t,r,n,o);break e}else if(r!==o){o=Eo(Error(x(424)),t),t=Ap(e,t,r,n,o);break e}else for(St=er(t.stateNode.containerInfo.firstChild),Ct=t,be=!0,Zt=null,n=qm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(So(),r===o){t=Mn(e,t,n);break e}et(e,t,r,n)}t=t.child}return t;case 5:return e0(t),e===null&&Ju(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Qu(r,o)?a=null:i!==null&&Qu(r,i)&&(t.flags|=32),k0(e,t),et(e,t,a,n),t.child;case 6:return e===null&&Ju(t),null;case 13:return T0(e,t,n);case 4:return Bc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Co(t,null,r,n):et(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),Fp(e,t,r,o,n);case 7:return et(e,t,t.pendingProps,n),t.child;case 8:return et(e,t,t.pendingProps.children,n),t.child;case 12:return et(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,de(Sl,r._currentValue),r._currentValue=a,i!==null)if(tn(i.value,a)){if(i.children===o.children&&!gt.current){t=Mn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=Pn(-1,n&-n),s.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),ec(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(x(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),ec(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}et(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,yo(t,n),o=Ht(o),r=r(o),t.flags|=1,et(e,t,r,n),t.child;case 14:return r=t.type,o=Xt(r,t.pendingProps),o=Xt(r.type,o),Kp(e,t,r,o,n);case 15:return S0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),al(e,t),t.tag=1,$t(r)?(e=!0,vl(t)):e=!1,yo(t,n),v0(t,r,o),nc(t,r,o,n),ic(null,t,r,!0,e,n);case 19:return _0(e,t,n);case 22:return C0(e,t,n)}throw Error(x(156,t.tag))};function W0(e,t){return $m(e,t)}function Ry(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function zt(e,t,n,r){return new Ry(e,t,n,r)}function nd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function My(e){if(typeof e=="function")return nd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===xc)return 11;if(e===wc)return 14}return 2}function or(e,t){var n=e.alternate;return n===null?(n=zt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ul(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")nd(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ro:return Er(n.children,o,i,t);case vc:a=8,o|=8;break;case Eu:return e=zt(12,n,t,o|2),e.elementType=Eu,e.lanes=i,e;case Tu:return e=zt(13,n,t,o),e.elementType=Tu,e.lanes=i,e;case _u:return e=zt(19,n,t,o),e.elementType=_u,e.lanes=i,e;case em:return Wl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Zp:a=10;break e;case Jp:a=9;break e;case xc:a=11;break e;case wc:a=14;break e;case Un:a=16,r=null;break e}throw Error(x(130,e==null?e:typeof e,""))}return t=zt(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Er(e,t,n,r){return e=zt(7,e,r,t),e.lanes=n,e}function Wl(e,t,n,r){return e=zt(22,e,r,t),e.elementType=em,e.lanes=n,e.stateNode={isHidden:!1},e}function Su(e,t,n){return e=zt(6,e,null,t),e.lanes=n,e}function Cu(e,t,n){return t=zt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Iy(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=lu(0),this.expirationTimes=lu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=lu(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function rd(e,t,n,r,o,i,a,l,s){return e=new Iy(e,t,n,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=zt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},zc(i),e}function Dy(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:no,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function U0(e){if(!e)return ar;e=e._reactInternals;e:{if(Mr(e)!==e||e.tag!==1)throw Error(x(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if($t(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(x(171))}if(e.tag===1){var n=e.type;if($t(n))return Um(e,n,t)}return t}function j0(e,t,n,r,o,i,a,l,s){return e=rd(n,r,!0,e,o,i,a,l,s),e.context=U0(null),n=e.current,r=tt(),o=rr(n),i=Pn(r,o),i.callback=t??null,tr(n,i,o),e.current.lanes=o,Oi(e,o,r),bt(e,r),e}function Ul(e,t,n,r){var o=t.current,i=tt(),a=rr(o);return n=U0(n),t.context===null?t.context=n:t.pendingContext=n,t=Pn(i,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=tr(o,t,a),e!==null&&(en(e,o,a,i),rl(e,o,a)),a}function Ml(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Yp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function od(e,t){Yp(e,t),(e=e.alternate)&&Yp(e,t)}function Fy(){return null}var G0=typeof reportError=="function"?reportError:function(e){console.error(e)};function id(e){this._internalRoot=e}jl.prototype.render=id.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(x(409));Ul(e,t,null,null)};jl.prototype.unmount=id.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Nr(function(){Ul(null,e,null,null)}),t[Nn]=null}};function jl(e){this._internalRoot=e}jl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Cm();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Gn.length&&t!==0&&t<Gn[n].priority;n++);Gn.splice(n,0,e),n===0&&Em(e)}};function ad(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Gl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Xp(){}function Ky(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=Ml(a);i.call(u)}}var a=j0(t,r,e,0,null,!1,!1,"",Xp);return e._reactRootContainer=a,e[Nn]=a.current,Pi(e.nodeType===8?e.parentNode:e),Nr(),a}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var l=r;r=function(){var u=Ml(s);l.call(u)}}var s=rd(e,0,!1,null,null,!1,!1,"",Xp);return e._reactRootContainer=s,e[Nn]=s.current,Pi(e.nodeType===8?e.parentNode:e),Nr(function(){Ul(t,s,n,r)}),s}function Ql(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if(typeof o=="function"){var l=o;o=function(){var s=Ml(a);l.call(s)}}Ul(t,a,e,o)}else a=Ky(n,t,e,o,r);return Ml(a)}wm=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ci(t.pendingLanes);n!==0&&(kc(t,n|1),bt(t,Te()),(J&6)===0&&(To=Te()+500,ur()))}break;case 13:Nr(function(){var r=Rn(e,1);if(r!==null){var o=tt();en(r,e,1,o)}}),od(e,1)}};Ec=function(e){if(e.tag===13){var t=Rn(e,134217728);if(t!==null){var n=tt();en(t,e,134217728,n)}od(e,134217728)}};Sm=function(e){if(e.tag===13){var t=rr(e),n=Rn(e,t);if(n!==null){var r=tt();en(n,e,t,r)}od(e,t)}};Cm=function(){return ae};km=function(e,t){var n=ae;try{return ae=e,t()}finally{ae=n}};Ou=function(e,t,n){switch(t){case"input":if(Nu(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Ol(r);if(!o)throw Error(x(90));nm(r),Nu(r,o)}}}break;case"textarea":om(e,n);break;case"select":t=n.value,t!=null&&ho(e,!!n.multiple,t,!1)}};dm=Jc;fm=Nr;var Oy={usingClientEntryPoint:!1,Events:[zi,lo,Ol,um,cm,Jc]},ai={findFiberByHostInstance:wr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Ay={bundleType:ai.bundleType,version:ai.version,rendererPackageName:ai.rendererPackageName,rendererConfig:ai.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:In.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=hm(e),e===null?null:e.stateNode},findFiberByHostInstance:ai.findFiberByHostInstance||Fy,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(li=__REACT_DEVTOOLS_GLOBAL_HOOK__,!li.isDisabled&&li.supportsFiber))try{Il=li.inject(Ay),hn=li}catch{}var li;Tt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Oy;Tt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ad(t))throw Error(x(200));return Dy(e,t,null,n)};Tt.createRoot=function(e,t){if(!ad(e))throw Error(x(299));var n=!1,r="",o=G0;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=rd(e,1,!1,null,null,n,!1,r,o),e[Nn]=t.current,Pi(e.nodeType===8?e.parentNode:e),new id(t)};Tt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(x(188)):(e=Object.keys(e).join(","),Error(x(268,e)));return e=hm(t),e=e===null?null:e.stateNode,e};Tt.flushSync=function(e){return Nr(e)};Tt.hydrate=function(e,t,n){if(!Gl(t))throw Error(x(200));return Ql(null,e,t,!0,n)};Tt.hydrateRoot=function(e,t,n){if(!ad(e))throw Error(x(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",a=G0;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=j0(t,null,e,1,n??null,o,!1,i,a),e[Nn]=t.current,Pi(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new jl(t)};Tt.render=function(e,t,n){if(!Gl(t))throw Error(x(200));return Ql(null,e,t,!1,n)};Tt.unmountComponentAtNode=function(e){if(!Gl(e))throw Error(x(40));return e._reactRootContainer?(Nr(function(){Ql(null,null,e,!1,function(){e._reactRootContainer=null,e[Nn]=null})}),!0):!1};Tt.unstable_batchedUpdates=Jc;Tt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Gl(n))throw Error(x(200));if(e==null||e._reactInternals===void 0)throw Error(x(38));return Ql(e,t,n,!1,r)};Tt.version="18.3.1-next-f1338f8080-20240426"});var Ir=Gt((Lx,X0)=>{"use strict";function Y0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Y0)}catch(e){console.error(e)}}Y0(),X0.exports=Q0()});var Z0=Gt(ld=>{"use strict";var q0=Ir();ld.createRoot=q0.createRoot,ld.hydrateRoot=q0.hydrateRoot;var Nx});var th=Gt(Xl=>{"use strict";var By=K(),Hy=Symbol.for("react.element"),Vy=Symbol.for("react.fragment"),Wy=Object.prototype.hasOwnProperty,Uy=By.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,jy={key:!0,ref:!0,__self:!0,__source:!0};function eh(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)Wy.call(t,r)&&!jy.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Hy,type:e,key:i,ref:a,props:o,_owner:Uy.current}}Xl.Fragment=Vy;Xl.jsx=eh;Xl.jsxs=eh});var he=Gt((Dx,nh)=>{"use strict";nh.exports=th()});var og=Gt(rg=>{"use strict";var Uo=K();function Qv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Yv=typeof Object.is=="function"?Object.is:Qv,Xv=Uo.useState,qv=Uo.useEffect,Zv=Uo.useLayoutEffect,Jv=Uo.useDebugValue;function e1(e,t){var n=t(),r=Xv({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return Zv(function(){o.value=n,o.getSnapshot=t,Rd(o)&&i({inst:o})},[e,n,t]),qv(function(){return Rd(o)&&i({inst:o}),e(function(){Rd(o)&&i({inst:o})})},[e]),Jv(n),n}function Rd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Yv(e,n)}catch{return!0}}function t1(e,t){return t()}var n1=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?t1:e1;rg.useSyncExternalStore=Uo.useSyncExternalStore!==void 0?Uo.useSyncExternalStore:n1});var ag=Gt((ew,ig)=>{"use strict";ig.exports=og()});var Ea=S(K(),1),g$=S(Z0(),1);var ve=S(K(),1);var _t=S(K(),1);var Yl=S(K(),1),J0="(prefers-reduced-motion: reduce)",zy=()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia(J0).matches:!1;function Dr(){let[e,t]=(0,Yl.useState)(zy);return(0,Yl.useEffect)(()=>{if(typeof window>"u"||typeof window.matchMedia!="function")return;let n=window.matchMedia(J0);t(n.matches);let r=o=>t(o.matches);return n.addEventListener("change",r),()=>n.removeEventListener("change",r)},[]),e}var Dn=S(he(),1),rt={thumbWidth:"var(--semantic-layout-units-padding-xtight)",thumbRadius:"var(--semantic-layout-units-cornerradius-full)",thumbMin:28,gutter:"var(--semantic-layout-units-padding-xxxtight)",grabZone:16,thumbRest:"var(--pw-scrollbar-thumb-rest)",thumbHover:"var(--pw-scrollbar-thumb-hover)",thumbBlur:"blur(8px) saturate(180%)",thumbEdge:"inset 0 0 0 0.5px color-mix(in srgb, var(--semantic-color-fill-static-neutral-faint) 35%, transparent)",fadeIn:"opacity var(--motion-duration-3) var(--motion-easing-decelerate), background var(--motion-duration-3) var(--motion-easing-standard)",fadeOut:"opacity var(--motion-duration-5) var(--motion-easing-standard), background var(--motion-duration-3) var(--motion-easing-standard)",idleHideMs:500};if(typeof document<"u"&&!document.getElementById("pds-scrollable-base")){let e=document.createElement("style");e.id="pds-scrollable-base",e.textContent=':root,[data-theme="light"]{--pw-scrollbar-thumb-rest:var(--primitive-color-warm-neutral-500-16);--pw-scrollbar-thumb-hover:var(--primitive-color-warm-neutral-500-24)}[data-theme="midnight"],[data-theme="dark"]{--pw-scrollbar-thumb-rest:var(--primitive-color-warm-neutral-100-16);--pw-scrollbar-thumb-hover:var(--primitive-color-warm-neutral-100-24)}.pds-scrollable__view{scrollbar-width:none;-ms-overflow-style:none}.pds-scrollable__view:-webkit-scrollbar{width:0;height:0;display:none}@media (hover: none){.pds-scrollable__grab{pointer-events:none!important}}',document.head.appendChild(e)}function rh({children:e,className:t="",style:n={},viewClassName:r="",viewStyle:o={}}){let i=Dr(),a=(0,_t.useRef)(null),l=(0,_t.useRef)(null),s=(0,_t.useRef)(null),u=(0,_t.useRef)(!1),[c,d]=(0,_t.useState)({h:0,top:0,show:!1}),[p,g]=(0,_t.useState)(!1),[y,b]=(0,_t.useState)(!1),D=(0,_t.useCallback)(()=>{let R=a.current;if(!R)return;let{scrollHeight:F,clientHeight:j,scrollTop:O}=R;if(F<=j+1){d(V=>V.show?{...V,show:!1}:V);return}let M=Math.max(rt.thumbMin,j/F*j),z=O/(F-j)*(j-M);d({h:M,top:z,show:!0})},[]);(0,_t.useEffect)(()=>{D();let R=a.current;if(!R||typeof ResizeObserver>"u")return;let F=new ResizeObserver(D);return F.observe(R),Array.from(R.children).forEach(j=>F.observe(j)),()=>F.disconnect()},[e,D]);let m=()=>{clearTimeout(s.current),s.current=setTimeout(()=>{!l.current&&!u.current&&g(!1)},rt.idleHideMs)},f=()=>{g(!0),m()},h=()=>{D(),f()},$=R=>{R.currentTarget.getBoundingClientRect().right-R.clientX<=rt.grabZone?(u.current=!0,g(!0),clearTimeout(s.current)):u.current&&(u.current=!1,m())},C=()=>{u.current=!1,l.current||m()},E=R=>{R.preventDefault();let F=a.current;if(!F)return;l.current={startY:R.clientY,startTop:F.scrollTop},b(!0),g(!0),clearTimeout(s.current);let j=M=>{let{scrollHeight:z,clientHeight:V}=F,se=Math.max(rt.thumbMin,V/z*V),Me=(z-V)/(V-se);F.scrollTop=l.current.startTop+(M.clientY-l.current.startY)*Me},O=()=>{l.current=null,b(!1),document.removeEventListener("mousemove",j),document.removeEventListener("mouseup",O),f()};document.addEventListener("mousemove",j),document.addEventListener("mouseup",O)},P=c.top,N=c.h;return(0,Dn.jsxs)("div",{className:`pds-scrollable ${t}`,style:{position:"relative",minHeight:0,...n},onMouseMove:$,onMouseLeave:C,children:[(0,Dn.jsx)("div",{ref:a,className:`pds-scrollable__view ${r}`,onScroll:h,style:{height:"100%",overflowY:"auto",overflowX:"hidden",...o},children:e}),c.show&&(0,Dn.jsxs)(Dn.Fragment,{children:[(0,Dn.jsx)("div",{"aria-hidden":"true",style:{position:"absolute",top:P,right:rt.gutter,width:rt.thumbWidth,height:N,borderRadius:rt.thumbRadius,background:y?rt.thumbHover:rt.thumbRest,backdropFilter:rt.thumbBlur,WebkitBackdropFilter:rt.thumbBlur,boxShadow:rt.thumbEdge,opacity:p?1:0,transition:i?"none":p?rt.fadeIn:rt.fadeOut,pointerEvents:"none",zIndex:5}}),(0,Dn.jsx)("div",{"aria-hidden":"true",className:"pds-scrollable__grab",onMouseDown:E,onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),style:{position:"absolute",top:P,right:0,width:rt.grabZone,height:N,pointerEvents:p?"auto":"none",zIndex:6,background:"transparent"}})]})]})}var Bs=S(Ir(),1);var ye=S(K(),1),s$=S(Ir(),1);var cd=S(K(),1);var Ax=S(K(),1),ih=S(he(),1);var sd={wght:400,GRAD:0,opsz:24},oh={L:{frame:18,wrapper:26},M:{frame:16,wrapper:24},S:{frame:14,wrapper:20}};function ql({name:e,size:t="M",fill:n=0,color:r,label:o,className:i="",style:a,...l}){let s=typeof t=="number"?t:(oh[t]||oh.M).frame;return(0,ih.jsx)("span",{className:`material-symbols-rounded ${i}`,role:o?"img":void 0,"aria-label":o||void 0,"aria-hidden":o?void 0:!0,style:{fontSize:s,lineHeight:1,display:"block",flexShrink:0,color:r,fontVariationSettings:`'FILL' ${n}, 'wght' ${sd.wght}, 'GRAD' ${sd.GRAD}, 'opsz' ${sd.opsz}`,...a},...l,children:e})}var Zl="pw-focus-ring",lh="pw-focus-ring pw-focus-ring--inset",sh="pw-focus-ring pw-focus-ring--replace",uh="pw-focus-ring pw-focus-ring--layer",ud=`
|
|
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=Mn(-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=Mn(-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=Mn(-1,1),t.tag=2,or(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var Ty=On.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,Kn(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 Kn(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,Kn(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,Kn(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),Kn(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,Fn(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++]=Nn,Ot[At++]=Rn,Ot[At++]=Ir,Nn=e.id,Rn=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 Kn(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=Kn(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 Kn(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=On.ReactCurrentDispatcher,od=On.ReactCurrentOwner,zt=On.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,Pn=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)&&(Pn=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,Pn);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,Pn),t);break}Tr(e,mt,Pn);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,Pn),r);break}Tr(e,mt,Pn);break;case 5:Tr(e,mt,Pn);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,Pn),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)&&(Pn=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=Fn(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=Kn(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=Kn(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=Mn(-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=Mn(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=Mn(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[Dn]=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[Dn]=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[Dn]=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=Fn(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=Fn(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=Fn(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:On.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[Dn]=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[Dn]=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[Dn]=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 An=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,An.jsxs)("div",{className:`pds-scrollable ${t}`,style:{position:"relative",minHeight:0,...n},onMouseMove:$,onMouseLeave:C,children:[(0,An.jsx)("div",{ref:a,className:`pds-scrollable__view ${r}`,onScroll:h,style:{height:"100%",overflowY:"auto",overflowX:"hidden",...o},children:e}),c.show&&(0,An.jsxs)(An.Fragment,{children:[(0,An.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,An.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
|
-
`,ah=!1;function Jl(){if(ah||typeof document>"u")return;ah=!0;let e=document.createElement("style");e.setAttribute("data-pathway","focus-ring"),e.textContent=ud,document.head.appendChild(e)}var ts=S(he(),1);Jl();var Fr=e=>`var(--semantic-color-${e})`,Gy=e=>`var(--semantic-layout-units-${e})`,Lo=e=>`var(--motion-${e})`,Qy=e=>`var(--contextual-layout-units-${e})`,No=e=>`var(--semantic-layout-units-accessibility-touch-target-${e})`,ch={Small:{box:36,boxW:No("desktop-only-width"),boxH:No("desktop-only-height"),layer:24,glyph:14},Medium:{box:44,boxW:No("aa-width"),boxH:No("aa-height"),layer:28,glyph:16},Large:{box:48,boxW:No("aaa-width"),boxH:No("aaa-height"),layer:32,glyph:20}},es={rest:Fr("foreground-action-secondary-rest"),hover:Fr("foreground-action-secondary-hover"),pressed:Fr("foreground-action-secondary-pressed"),layerHover:Fr("fill-action-primary-subtle-hover"),layerPress:Fr("fill-action-primary-subtle-pressed"),disabled:Fr("foreground-action-disabled"),focusOutline:`${Qy("focusring-width")} solid ${Fr("stroke-focusring-base")}`};function ns({name:e,size:t="Small",label:n,fill:r=0,color:o,states:i,forceState:a,disabled:l=!1,onClick:s,className:u="",style:c,...d}){let p=Dr(),[g,y]=(0,cd.useState)(!1),[b,D]=(0,cd.useState)(!1),m=!l&&(g||a==="hover"),f=!l&&(b||a==="pressed"),h=ch[t]||ch.Small,$={...es,...i},C=l?es.disabled:f?$.pressed:m?$.hover:o||es.rest;return(0,ts.jsx)("button",{type:"button","aria-label":n,title:n,"aria-disabled":l||void 0,onClick:l?void 0:s,onMouseEnter:()=>y(!0),onMouseLeave:()=>{y(!1),D(!1)},onMouseDown:()=>D(!0),onMouseUp:()=>D(!1),onBlur:()=>D(!1),className:`pw-action-icon ${uh} ${u}`,"data-size":t,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:h.boxW,height:h.boxH,flexShrink:0,boxSizing:"border-box",background:"transparent",border:"none",padding:0,outline:"none",cursor:l?"not-allowed":"pointer",color:C,...c},...d,children:(0,ts.jsx)("span",{"data-pw-ring-target":"",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:h.layer,height:h.layer,borderRadius:Gy("cornerradius-base"),background:f?$.layerPress:m?$.layerHover:"transparent",outline:!l&&a==="focused"?es.focusOutline:void 0,outlineOffset:!l&&a==="focused"?0:void 0,transition:p?"none":`background ${Lo("duration-2")} ${Lo("easing-standard")}, outline ${Lo("duration-2")} ${Lo("easing-standard")}`},children:(0,ts.jsx)(ql,{name:e,size:h.glyph,fill:r,style:{transition:p?"none":`color ${Lo("duration-2")} ${Lo("easing-standard")}`}})})})}var Bn=S(K(),1);function Hi(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}var dh=S(K(),1),fe=typeof document<"u"?dh.default.useLayoutEffect:()=>{};var Oe=S(K(),1),rs={prefix:String(Math.round(Math.random()*1e10)),current:0},fh=Oe.default.createContext(rs),Yy=Oe.default.createContext(!1);var Xy=!!(typeof window<"u"&&window.document&&window.document.createElement),dd=new WeakMap;function qy(e=!1){let t=(0,Oe.useContext)(fh),n=(0,Oe.useRef)(null);if(n.current===null&&!e){let r=Oe.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if(r){let o=dd.get(r);o==null?dd.set(r,{id:t.current,state:r.memoizedState}):r.memoizedState!==o.state&&(t.current=o.id,dd.delete(r))}n.current=++t.current}return n.current}function Zy(e){let t=(0,Oe.useContext)(fh),n=qy(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function Jy(e){let t=Oe.default.useId(),[n]=(0,Oe.useState)(Ro()),r=n?"react-aria":`react-aria${rs.prefix}`;return e||`${r}-${t}`}var ph=typeof Oe.default.useId=="function"?Jy:Zy;function ev(){return!1}function tv(){return!0}function nv(e){return()=>{}}function Ro(){return typeof Oe.default.useSyncExternalStore=="function"?Oe.default.useSyncExternalStore(nv,ev,tv):(0,Oe.useContext)(Yy)}var cr=S(K(),1),rv=!!(typeof window<"u"&&window.document&&window.document.createElement),Io=new Map,Mo;typeof FinalizationRegistry<"u"&&(Mo=new FinalizationRegistry(e=>{Io.delete(e)}));var fd=new WeakMap;function Pt(e){let[t,n]=(0,cr.useState)(e),r=(0,cr.useRef)(null),o=ph(t),i=(0,cr.useRef)(null),a=fd.get(i);if(Mo&&a!==o&&(a!=null&&Mo.unregister(i),Mo.register(i,o,i),fd.set(i,o)),rv){let l=Io.get(o);l&&!l.includes(r)?l.push(r):Io.set(o,[r])}return fe(()=>{let l=o;return()=>{Mo&&(Mo.unregister(i),fd.delete(i)),Io.delete(l)}},[o]),(0,cr.useEffect)(()=>{let l=r.current;return l&&n(l),()=>{l&&(r.current=null)}}),o}function mh(e,t){if(e===t)return e;let n=Io.get(e);if(n)return n.forEach(o=>o.current=t),t;let r=Io.get(t);return r?(r.forEach(o=>o.current=e),e):t}function Do(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1,r=e.map(o=>{let i=hh(o,t);return n||=typeof i=="function",i});if(n)return()=>{r.forEach((o,i)=>{typeof o=="function"?o():hh(e[i],null)})}}}function hh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function gh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=gh(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ov(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=gh(e))&&(r&&(r+=" "),r+=t);return r}var $h=ov;function Ne(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let o in r){let i=t[o],a=r[o];typeof i=="function"&&typeof a=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=Hi(i,a):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[o]=$h(i,a):o==="id"&&i&&a?t.id=mh(i,a):o==="ref"&&i&&a?t.ref=Do(i,a):t[o]=a!==void 0?a:i}}return t}var Ae=S(K(),1);var Kr=S(K(),1);function Vi(e){let t=(0,Kr.useRef)(null),n=(0,Kr.useRef)(void 0),r=(0,Kr.useCallback)(o=>{if(typeof e=="function"){let i=e,a=i(o);return()=>{typeof a=="function"?a():i(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return(0,Kr.useMemo)(()=>({get current(){return t.current},set current(o){t.current=o,n.current&&(n.current(),n.current=void 0),o!=null&&(n.current=r(o))}}),[r])}var pd=Symbol("default");function Fo({values:e,children:t}){for(let[n,r]of e)t=Ae.default.createElement(n.Provider,{value:r},t);return t}function Fn(e){let{className:t,style:n,children:r,defaultClassName:o,defaultChildren:i,defaultStyle:a,values:l,render:s}=e;return(0,Ae.useMemo)(()=>{let u,c,d;return typeof t=="function"?u=t({...l,defaultClassName:o}):u=t,typeof n=="function"?c=n({...l,defaultStyle:a||{}}):c=n,typeof r=="function"?d=r({...l,defaultChildren:i}):r==null?d=i:d=r,{className:u??o,style:c||a?{...a,...c}:void 0,children:d??i,"data-rac":"",render:s?p=>s(p,l):void 0}},[t,n,r,o,i,a,l,s])}function md(e,t){let n=(0,Ae.useContext)(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=t||pd;if(!n.slots[r]){let o=new Intl.ListFormat().format(Object.keys(n.slots).map(a=>`"${a}"`)),i=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${i} Valid slot names are ${o}.`)}return n.slots[r]}return n}function Ko(e,t,n){let r=md(n,e.slot)||{},{ref:o,...i}=r,a=Vi((0,Ae.useMemo)(()=>Do(t,o),[t,o])),l=Ne(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&(typeof i.style=="function"||typeof e.style=="function"?l.style=s=>{let u=typeof i.style=="function"?i.style(s):i.style,c={...s.defaultStyle,...u},d=typeof e.style=="function"?e.style({...s,defaultStyle:c}):e.style;return{...c,...d}}:l.style={...i.style,...e.style}),[l,a]}function os(e=!0){let[t,n]=(0,Ae.useState)(e),r=(0,Ae.useRef)(!1),o=(0,Ae.useCallback)(i=>{r.current=!0,n(!!i)},[]);return fe(()=>{r.current||n(!1)},[]),[o,t]}function iv(e,t,n){let{render:r,...o}=t,i=(0,Ae.useRef)(null),a=(0,Ae.useMemo)(()=>Do(n,i),[n,i]);fe(()=>{},[e,r]);let l={...o,ref:a};return r?r(l,void 0):Ae.default.createElement(e,l)}var bh={},Kn=new Proxy({},{get(e,t){if(typeof t!="string")return;let n=bh[t];return n||(n=(0,Ae.forwardRef)(iv.bind(null,t)),bh[t]=n),n}});var yh="react-aria-clear-focus",vh="react-aria-focus";var ee=e=>av(e)?e.document:lv(e)?e:e?.ownerDocument??(typeof document<"u"?document:void 0),We=e=>ee(e)?.defaultView??(typeof window<"u"?window:void 0);function xh(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function av(e){return typeof e=="object"&&e!=null&&"window"in e&&e.window===e}function lv(e){return xh(e)&&e.nodeType===9}function wh(e){return xh(e)&&e.nodeType===11&&"host"in e}function nn(e,t,n,r){if(n==null||e==null)return()=>{};let o=Array.isArray(e)?e:[e];for(let i of o)i.addEventListener(t,n,r);return()=>{for(let i of o)i.removeEventListener(t,n,r)}}var sv=!1;function Or(){return sv}function _e(e,t){if(!Or())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!=null;){if(n===e)return!0;typeof n.assignedElements!="function"&&n.assignedSlot?.parentNode?n=n.assignedSlot.parentNode:wh(n)?n=n.host:n=n.parentNode}return!1}var te=(e=document)=>{if(!Or())return e.activeElement;let t=e.activeElement;for(;t&&"shadowRoot"in t&&t.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t};function Z(e){if(Or()&&e.target instanceof Element&&e.target.shadowRoot){if("composedPath"in e)return e.composedPath()[0]??null;if("composedPath"in e.nativeEvent)return e.nativeEvent.composedPath()[0]??null}return e.target}function hd(e){if(!e)return!1;let t=e.getRootNode(),n=We(e);if(!(t instanceof n.Document||t instanceof n.ShadowRoot))return!1;let r=t.activeElement;return r!=null&&e.contains(r)}function Sh(e){let t=cv(ee(e));t!==e&&(t&&uv(t,e),e&&gd(e,t))}function uv(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function gd(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function cv(e){let t=te(e),n=t?.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}function dr(e){e.focus({preventScroll:!0})}var dv=typeof Element<"u"&&"checkVisibility"in Element.prototype;function fv(e){let t=We(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,o=n!=="none"&&r!=="hidden"&&r!=="collapse";if(o){let{getComputedStyle:i}=We(e),{display:a,visibility:l}=i(e);o=a!=="none"&&l!=="hidden"&&l!=="collapse"}return o}function pv(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function is(e,t){return dv?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&fv(e)&&pv(e,t)&&(!e.parentElement||is(e.parentElement,e))}var $d=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],mv=$d.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";$d.push('[tabindex]:not([tabindex="-1"]):not([disabled])');var hv=$d.join(':not([hidden]):not([tabindex="-1"]),');function as(e,t){return e.matches(mv)&&!Ch(e)&&(t?.skipVisibilityCheck||is(e))}function ls(e){return e.matches(hv)&&is(e)&&!Ch(e)}function Ch(e){let t=e;for(;t!=null;){if(t instanceof We(t).HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}var ss=S(K(),1);function bd(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function kh(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function us(e){let t=(0,ss.useRef)({isFocused:!1,observer:null});return fe(()=>{let n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),(0,ss.useCallback)(n=>{let r=Z(n);if(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r,i=a=>{if(t.current.isFocused=!1,o.disabled){let l=bd(a);e?.(l)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){t.current.observer?.disconnect();let a=o===te()?null:te();o.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[e])}var yd=!1;function cs(e){if(typeof window>"u"||window.navigator==null)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function vd(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function $n(e){let t=null;return()=>(t==null&&(t=e()),t)}var Lt=$n(function(){return vd(/^Mac/i)}),gv=$n(function(){return vd(/^iPhone/i)}),xd=$n(function(){return vd(/^iPad/i)||Lt()&&navigator.maxTouchPoints>1}),ds=$n(function(){return gv()||xd()}),Eh=$n(function(){return Lt()||ds()}),Ar=$n(function(){return cs(/AppleWebKit/i)&&(ds()||!fs())}),W2=$n(function(){return Ar()&&!fs()&&!$v()}),fs=$n(function(){return cs(/Chrome|CriOS|CrMo/i)}),Oo=$n(function(){return cs(/Android/i)}),$v=$n(function(){return cs(/(Firefox|FxiOS)/i)});function Th(e){return e.pointerType===""&&e.isTrusted?!0:Oo()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var Ao=S(K(),1),bv=(0,Ao.createContext)({isNative:!0,open:vv,useHref:e=>e});function _h(){return(0,Ao.useContext)(bv)}function zr(e,t,n=!0){let{metaKey:r,ctrlKey:o,altKey:i,shiftKey:a}=t,l=Ar()&&Lt()&&!xd()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:r,ctrlKey:o,altKey:i,shiftKey:a}):new MouseEvent("click",{metaKey:r,ctrlKey:o,altKey:i,shiftKey:a,detail:1,bubbles:!0,cancelable:!0});zr.isOpening=n,dr(e),e.dispatchEvent(l),zr.isOpening=!1}zr.isOpening=!1;function yv(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function vv(e,t){yv(e,n=>zr(n,t))}var Cd=S(K(),1),Hr=null,Ui="keyboard",wd=new Set,Wi=new Map,Br=!1,ps=!1,xv={Tab:!0,Escape:!0};function hs(e,t){for(let n of wd)n(e,t)}function wv(e){return!(e.metaKey||!Lt()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ms(e){Br=!0,!zr.isOpening&&wv(e)&&(Hr="keyboard",Ui="keyboard",hs("keyboard",e))}function zo(e){Hr="pointer",Ui="pointerType"in e?e.pointerType:"mouse",(e.type==="mousedown"||e.type==="pointerdown")&&(Br=!0,hs("pointer",e))}function Ph(e){!zr.isOpening&&Th(e)&&(Br=!0,Hr="virtual",Ui="virtual")}function Lh(e){if(yd)return;let t=Z(e),n=We(t),r=ee(t);if(t===n){ps=!0;return}t===r||!e.isTrusted||(!Br&&!ps&&(Hr="virtual",Ui="virtual",hs("virtual",e)),Br=!1,ps=!1)}function Nh(){yd||(Br=!1,ps=!0)}function Rh(e){let t=te(ee(Z(e)));queueMicrotask(()=>{te(ee(Z(e)))!==t&&Cv("keyboard")})}function Sd(e){if(typeof window>"u"||typeof document>"u")return;let t=We(e),n=ee(e);if(Wi.get(t))return;let r=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){Br=!0,r.apply(this,arguments)}}),n.addEventListener("keydown",ms,!0),n.addEventListener("keyup",ms,!0),n.addEventListener("click",Ph,!0),n.addEventListener("invalid",Rh,!0),t.addEventListener("focus",Lh,!0),t.addEventListener("blur",Nh,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",zo,!0),n.addEventListener("pointermove",zo,!0),n.addEventListener("pointerup",zo,!0)),t.addEventListener("beforeunload",()=>{Mh(e)},{once:!0}),Wi.set(t,{focus:r})}var Mh=(e,t)=>{let n=We(e),r=ee(e);t&&r.removeEventListener("DOMContentLoaded",t),Wi.has(n)&&(Reflect.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:Wi.get(n).focus}),r.removeEventListener("keydown",ms,!0),r.removeEventListener("keyup",ms,!0),r.removeEventListener("click",Ph,!0),r.removeEventListener("invalid",Rh,!0),n.removeEventListener("focus",Lh,!0),n.removeEventListener("blur",Nh,!1),typeof PointerEvent<"u"&&(r.removeEventListener("pointerdown",zo,!0),r.removeEventListener("pointermove",zo,!0),r.removeEventListener("pointerup",zo,!0)),Wi.delete(n))};function Sv(e){let t=ee(e),n;return t.readyState!=="loading"?Sd(e):(n=()=>{Sd(e)},t.addEventListener("DOMContentLoaded",n)),()=>Mh(e,n)}typeof document<"u"&&Sv();function gs(){return Hr!=="pointer"}function Vr(){return Hr}function Cv(e){Hr=e,Ui=e==="pointer"?"mouse":e,hs(e,null)}var kv=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Ev(e,t,n){let r=n?Z(n):void 0,o=ee(r),i=We(r),a=typeof i<"u"?i.HTMLInputElement:HTMLInputElement,l=typeof i<"u"?i.HTMLTextAreaElement:HTMLTextAreaElement,s=typeof i<"u"?i.HTMLElement:HTMLElement,u=typeof i<"u"?i.KeyboardEvent:KeyboardEvent,c=te(o);return e=e||c instanceof a&&!kv.has(c.type)||c instanceof l||c instanceof s&&c.isContentEditable,!(e&&t==="keyboard"&&n instanceof u&&!xv[n.key])}function Ih(e,t,n){Sd(),(0,Cd.useEffect)(()=>{if(n?.enabled===!1)return;let r=(o,i)=>{Ev(!!n?.isTextInput,o,i)&&e(gs())};return wd.add(r),()=>{wd.delete(r)}},t)}function Dh(e,t){let n=We(t),r=ee(t);if(r==null||n==null)return;let o,i=`meta[name="${CSS.escape(e)}"], meta[property="${CSS.escape(e)}"]`,a=r.querySelector(i);return a&&a instanceof n.HTMLMetaElement&&(e==="csp-nonce"&&a.nonce&&(o??=a.nonce||void 0),a.content&&(o??=a.content||void 0)),e==="csp-nonce"&&(o??=n.__webpack_nonce__||globalThis.__webpack_nonce__||void 0),o}var ji=100,kd=600,G={isOpen:!1,screenWidth:0,screenHeight:0,screenAngle:0,screenTimeout:0,startTimeStamp:0,endTimeStamp:0,resizeTimeStamp:0,resizeTimeout:0},Tv=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Gi(){let e=Number(window.visualViewport?.width??window.innerWidth),t=Number(window.visualViewport?.height??window.innerHeight),n=Number(window.visualViewport?.scale??1);return{width:e*n,height:t*n,angle:window.screen.orientation?.angle??0}}function _v(e){G.resizeTimeStamp<=e.timeStamp+50&&(G.resizeTimeStamp=e.timeStamp+150,window.clearTimeout(G.resizeTimeout),G.resizeTimeout=window.setTimeout(Kh,150))}function Kh(){let e=Dh("viewport");if(Oo()&&e?.includes("overlays-content"))return;let t=performance.now(),n=Gi(),r=t-G.startTimeStamp,o=G.screenHeight-n.height,i=G.screenAngle-n.angle;Math.abs(i)%180&&G.screenWidth-n.height<ji&&(G.screenWidth=n.width,G.screenHeight=n.height,G.screenAngle=n.angle,o=0),r>kd&&(window.clearTimeout(G.screenTimeout),G.screenTimeout=window.setTimeout(()=>{let a=document.hasFocus()?te():null,l=Oh(a),s=Gi();Math.abs(G.screenAngle-s.angle)%180||G.isOpen&&l||(G.screenWidth=s.width,G.screenHeight=s.height,G.screenAngle=s.angle,G.isOpen=!1)},kd)),r<=kd&&o>=ji&&(G.endTimeStamp=t),G.isOpen=o>=ji}function Pv(){let e=Gi(),t=G.screenAngle-e.angle;if(Math.abs(t)%180&&!G.isOpen){let n=G.screenWidth,r=G.screenHeight;G.screenWidth=r,G.screenHeight=n}G.isOpen||(G.screenAngle=e.angle)}function Lv(e){let t=Z(e),n=Oh(t),r=performance.now(),o=Gi(),i=G.screenHeight-o.height;i<ji&&n&&(G.screenWidth=o.width,G.screenHeight=o.height,G.screenAngle=o.angle,G.startTimeStamp=r),n&&window.clearTimeout(G.screenTimeout),i>=ji&&n&&(G.endTimeStamp=r)}function Fh(){let e=Gi();nn(window.visualViewport,"resize",Ar()?Kh:_v),nn(window.screen.orientation,"change",Pv),nn(window,"focus",Lv,{capture:!0,passive:!0}),G.screenWidth=e.width,G.screenHeight=e.height,G.screenAngle=e.angle}typeof document<"u"&&(document.readyState!=="loading"?Fh():nn(document,"DOMContentLoaded",Fh));function Oh(e){if(!(e instanceof Element)||!as(e))return!1;let t=e instanceof HTMLTextAreaElement,n=e instanceof HTMLElement&&e.isContentEditable,r=e instanceof HTMLInputElement&&!Tv.has(e.type);return t||n||r}function Qi(e){return Lt()?e.metaKey:e.ctrlKey}var Bo=S(K(),1),Nv=Bo.default.useInsertionEffect??fe;function $s(e){let t=(0,Bo.useRef)(null);return Nv(()=>{t.current=e},[e]),(0,Bo.useCallback)((...n)=>{let r=t.current;return r?.(...n)},[])}var Ah=S(K(),1);function Yi(e,t,n,r){let o=$s(n),i=n==null;(0,Ah.useEffect)(()=>{if(!(i||e.current==null))return nn(e.current,t,o,r)},[e,t,r,i])}function zh(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;return n=Pt(n),o&&r?o=[...new Set([n,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!r&&!o&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}var Rv=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Mv=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Bh(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return Rv.has(n.script)}let t=e.split("-")[0];return Mv.has(t)}var bs=S(K(),1),Vh=Symbol.for("react-aria.i18n.locale");function Wh(){let e=typeof window<"u"&&window[Vh]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Bh(e)?"rtl":"ltr"}}var Ed=Wh(),Xi=new Set;function Hh(){Ed=Wh();for(let e of Xi)e(Ed)}function Uh(){let e=Ro(),[t,n]=(0,bs.useState)(Ed);return(0,bs.useEffect)(()=>(Xi.size===0&&window.addEventListener("languagechange",Hh),Xi.add(n),()=>{Xi.delete(n),Xi.size===0&&window.removeEventListener("languagechange",Hh)}),[]),e?{locale:typeof window<"u"&&window[Vh]||"en-US",direction:"ltr"}:t}var ys=S(K(),1),Iv=ys.default.createContext(null);function Wr(){let e=Uh();return(0,ys.useContext)(Iv)||e}var ot=S(K(),1),Dv=typeof document<"u"||parseInt(ot.default.version,10)>=19?ot.default.useInsertionEffect??ot.default.useLayoutEffect:()=>{};function Ho(e,t,n){let[r,o]=(0,ot.useState)(e||t),i=(0,ot.useRef)(r),a=(0,ot.useRef)(e!==void 0),l=e!==void 0;(0,ot.useEffect)(()=>{let d=a.current;a.current=l},[l]);let s=l?e:r;Dv(()=>{i.current=s});let[,u]=(0,ot.useReducer)(()=>({}),{}),c=(0,ot.useCallback)((d,...p)=>{let g=typeof d=="function"?d(i.current):d;Object.is(i.current,g)||(i.current=g,o(g),u(),n?.(g,...p))},[n]);return[s,c]}var qi=S(K(),1);var Zi=(0,qi.createContext)(null),jh=(0,qi.createContext)(null);var Wt=class{constructor(t){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=t}get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new this.constructor(this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t.render=this.render,t.colSpan=this.colSpan,t.colIndex=this.colIndex,t}filter(t,n,r){let o=this.clone();return n.addDescendants(o,t),o}},Ji=class extends Wt{filter(t,n,r){let[o,i]=Gh(t,n,this.firstChildKey,r),a=this.clone();return a.firstChildKey=o,a.lastChildKey=i,a}},Td=class extends Wt{static{this.type="header"}},Ur=class extends Wt{static{this.type="loader"}},ea=class extends Ji{static{this.type="item"}filter(t,n,r){if(r(this.textValue,this)){let o=this.clone();return n.addDescendants(o,t),o}return null}},ta=class extends Ji{static{this.type="section"}filter(t,n,r){let o=super.filter(t,n,r);if(o&&o.lastChildKey!==null){let i=t.getItem(o.lastChildKey);if(i&&i.type!=="header")return o}return null}},na=class{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0}getChildren(t){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(t),o=r?.firstChildKey!=null?n.get(r.firstChildKey):null;for(;o;)yield o,o=o.nextKey!=null?n.get(o.nextKey):void 0}}}getKeyBefore(t){let n=this.keyMap.get(t);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);return n?.key??null}return n.parentKey}getKeyAfter(t){let n=this.keyMap.get(t);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;t?.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);return t?.key??null}getItem(t){return this.keyMap.get(t)??null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,n=new t;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n.itemCount=this.itemCount,n}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");t.type==="item"&&this.keyMap.get(t.key)==null&&this.itemCount++,this.keyMap.set(t.key,t)}addDescendants(t,n){this.addNode(t);let r=n.getChildren(t.key);for(let o of r)this.addDescendants(o,n)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let n=this.keyMap.get(t);n!=null&&n.type==="item"&&this.itemCount--,this.keyMap.delete(t)}commit(t,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=n,this.frozen=!r}filter(t){let n=new this.constructor,[r,o]=Gh(this,n,this.firstKey,t);return n?.commit(r,o),n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}};function Gh(e,t,n,r){if(n==null)return[null,null];let o=null,i=null,a=e.getItem(n);for(;a!=null;){let l=a.filter(e,t,r);l!=null&&(l.nextKey=null,i&&(l.prevKey=i.key,i.nextKey=l.key),o==null&&(o=l),t.addNode(l),i=l),a=a.nextKey!=null?e.getItem(a.nextKey):null}if(i&&i.type==="separator"){let l=i.prevKey;t.removeNode(i.key),l!=null?(i=t.getItem(l),i.nextKey=null):i=null}return[o?.key??null,i?.key??null]}var vs=class{constructor(t){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=t}*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){return this.parentNode?.isConnected||!1}invalidateChildIndices(t){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||t.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=t,this.ownerDocument.markDirty(this))}updateChildIndices(){let t=this._minInvalidChildIndex;for(;t;)t.index=t.previousSibling?t.previousSibling.index+1:0,t=t.nextSibling;this._minInvalidChildIndex=null}appendChild(t){t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(t,n){if(n==null)return this.appendChild(t);t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=n,t.previousSibling=n.previousSibling,t.index=n.index-1,this.firstChild===n?this.firstChild=t:n.previousSibling&&(n.previousSibling.nextSibling=t),n.previousSibling=t,t.parentNode=n.parentNode,this.invalidateChildIndices(t),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(t){t.parentNode===this&&(this._minInvalidChildIndex===t&&(this._minInvalidChildIndex=null),t.nextSibling&&(this.invalidateChildIndices(t.nextSibling),t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.markDirty(t),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let t=this.previousSibling;for(;t&&t.isHidden;)t=t.previousSibling;return t}get nextVisibleSibling(){let t=this.nextSibling;for(;t&&t.isHidden;)t=t.nextSibling;return t}get firstVisibleChild(){let t=this.firstChild;for(;t&&t.isHidden;)t=t.nextSibling;return t}get lastVisibleChild(){let t=this.lastChild;for(;t&&t.isHidden;)t=t.previousSibling;return t}},ra=class e extends vs{constructor(t,n){super(n),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof e?this.parentNode.level+(this.parentNode.node?.type==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){let t=this.nextVisibleSibling,n=this.getMutableNode();if(n!=null&&(n.index=this.index,n.level=this.level,n.parentKey=this.parentNode instanceof e?this.parentNode.node?.key??null:null,n.prevKey=this.previousVisibleSibling?.node?.key??null,n.nextKey=t?.node?.key??null,n.hasChildNodes=!!this.firstChild,n.firstChildKey=this.firstVisibleChild?.node?.key??null,n.lastChildKey=this.lastVisibleChild?.node?.key??null,(n.colSpan!=null||n.colIndex!=null)&&t)){let r=(n.colIndex??n.index)+(n.colSpan??1);if(t.node!=null&&r!==t.node.colIndex){let o=t.getMutableNode();o.colIndex=r}}}setProps(t,n,r,o,i){let a,{value:l,textValue:s,id:u,...c}=t;if(this.node==null?(a=new r(u??`react-aria-${++this.ownerDocument.nodeId}`),this.node=a):a=this.getMutableNode(),c.ref=n,a.props=c,a.rendered=o,a.render=i,a.value=l,t["aria-label"]&&(a["aria-label"]=t["aria-label"]),a.textValue=s||(typeof c.children=="string"?c.children:"")||t["aria-label"]||"",u!=null&&u!==a.key)throw new Error("Cannot change the id of an item");c.colSpan!=null&&(a.colSpan=c.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(n){let r=n==="none";if(t.isHidden!==r){(t.parentNode?.firstVisibleChild===t||t.parentNode?.lastVisibleChild===t)&&t.ownerDocument.markDirty(t.parentNode);let o=t.previousVisibleSibling,i=t.nextVisibleSibling;o&&t.ownerDocument.markDirty(o),i&&t.ownerDocument.markDirty(i),t.isHidden=r,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}},xs=class extends vs{constructor(t){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.keyOwners=new Map,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=t,this.nextCollection=t}get isConnected(){return!0}createElement(t){return new ra(t,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(t){this.dirtyNodes.add(t)}addNode(t){if(t.isHidden||t.node==null)return;let n=this.getMutableCollection();if(!n.getItem(t.node.key))for(let r of t)this.addNode(r);n.addNode(t.node)}removeNode(t){for(let n of t)this.removeNode(n);t.node&&this.getMutableCollection().removeNode(t.node.key)}getCollection(){return this.inSubscription?this.collection:(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let t of this.dirtyNodes)t instanceof ra&&(!t.isConnected||t.isHidden)?this.removeNode(t):t.updateChildIndices();for(let t of this.dirtyNodes)t instanceof ra?(t.isConnected&&!t.isHidden&&(t.updateNode(),this.addNode(t)),t.node&&this.dirtyNodes.delete(t),t.isMutated=!1):this.dirtyNodes.delete(t);this.nextCollection&&(this.nextCollection.commit(this.firstVisibleChild?.node?.key??null,this.lastVisibleChild?.node?.key??null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null))}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0,this.isSSR||(this.collection=this.collection.clone());for(let t of this.subscriptions)t();this.inSubscription=!1}}subscribe(t){return this.subscriptions.add(t),this.queuedRender&&t(),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0,this.keyOwners.clear())}};var Vo=S(K(),1);function oa(e){let{children:t,items:n,idScope:r,addIdAndValue:o,dependencies:i=[]}=e,a=(0,Vo.useMemo)(()=>{},[t]),l=(0,Vo.useMemo)(()=>new WeakMap,[...i,a]);return(0,Vo.useMemo)(()=>{if(n&&typeof t=="function"){let s=[];for(let u of n){let c=Fv(u)?u:null,d=c?l.get(c):null;if(!d){d=t(u);let p=d.props.id??u?.key??u?.id;r!=null&&d.props.id==null&&p!=null&&(p=r+":"+p);let g=p??s.length;d=(0,Vo.cloneElement)(d,o?{key:g,id:p,value:u}:{key:g}),c&&l.set(c,d)}s.push(d)}return s}else if(typeof t!="function")return t},[t,n,l,r,o])}function Fv(e){switch(typeof e){case"object":return e!=null;case"function":case"symbol":return!0;default:return!1}}var fr=new Map,ws=new Set;function Yh(e){return"propertyName"in e}function Kv(e){let t=Z(e);if(!Yh(e)||!t)return;let n=fr.get(t);n||(n=new Set,fr.set(t,n),t.addEventListener("transitioncancel",_d,{once:!0})),n.add(e.propertyName)}function _d(e){let t=Z(e);if(!Yh(e)||!t)return;let n=fr.get(t);if(n&&(n.delete(e.propertyName),n.size===0&&(t.removeEventListener("transitioncancel",_d),fr.delete(t)),fr.size===0))for(let r of ws)r(!0),ws.delete(r)}function Qh(){nn(document,"transitionrun",Kv),nn(document,"transitionend",_d)}function Ov(){for(let[e]of fr)"isConnected"in e&&!e.isConnected&&fr.delete(e)}typeof document<"u"&&(document.readyState!=="loading"?Qh():nn(document,"DOMContentLoaded",Qh));function Xh(e){let t=window.requestAnimationFrame(()=>{if(Ov(),fr.size===0)return e(!1);ws.add(e)});return()=>{window.cancelAnimationFrame(t),ws.delete(e)}}function ia(e){if(!e.isConnected)return;let t=ee(e);if(Vr()==="virtual"){let n=te(t);Xh(()=>{let r=te(t);(r===n||r===t.body)&&e.isConnected&&dr(e)})}else dr(e)}var Pd=S(K(),1);function qh(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e,i=(0,Pd.useCallback)(s=>{if(Z(s)===s.currentTarget)return r&&r(s),o&&o(!1),!0},[r,o]),a=us(i),l=(0,Pd.useCallback)(s=>{let u=Z(s),c=ee(u),d=c?te(c):te();u===s.currentTarget&&u===d&&(n&&n(s),o&&o(!0),a(s))},[o,n,a]);return{focusProps:{onFocus:!t&&(n||o||r)?l:void 0,onBlur:!t&&(r||o)?i:void 0}}}function aa(e){if(e)return t=>{let n=!0,r={...t,preventDefault(){t.preventDefault()},isDefaultPrevented(){return t.isDefaultPrevented()},stopPropagation(){n=!0},continuePropagation(){n=!1,typeof t.continuePropagation=="function"&&t.continuePropagation()},isPropagationStopped(){return n}};e(r),n&&!(typeof t.isPropagationStopped=="function"&&t.isPropagationStopped())&&t.stopPropagation()}}var Av=new Set(["shift","alt","control","meta","mod"]),zv=["Alt","Control","Meta","Shift"];function Bv(e){let t=new Set;return e.alt&&t.add("Alt"),e.shift&&t.add("Shift"),e.ctrl&&t.add("Control"),e.meta&&t.add("Meta"),e.mod&&t.add(Lt()?"Meta":"Control"),t}function Hv(e){let t=new Set;return e.altKey&&t.add("Alt"),e.ctrlKey&&t.add("Control"),e.metaKey&&t.add("Meta"),e.shiftKey&&t.add("Shift"),t}function Zh(e){return zv.filter(t=>e.has(t))}function Vv(e){let t=e.split("+").reduce((n,r)=>{let o=r.toLowerCase();return Av.has(o)?o==="shift"?n.shift=!0:o==="alt"?n.alt=!0:o==="control"?n.ctrl=!0:o==="meta"?n.meta=!0:o==="mod"&&(n.mod=!0):n.key=r,n},{shift:!1,alt:!1,ctrl:!1,meta:!1,mod:!1,key:""});if(t.key==="")throw new Error(`Invalid keyboard shortcut: "${e}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);return t}function Jh(e){return e.toLowerCase()}var Wv={space:" ",esc:"escape",del:"delete",ins:"insert",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",pageup:"pageup",pagedown:"pagedown"};function Uv(e){let t=Jh(e),n=Wv[t];return n??t}function jv(e){let t=Zh(Bv(e)),n=Uv(e.key);return t.length>0?`${t.join("+")}+${n}`:n}function Gv(e){let t=Zh(Hv(e)),n=Jh(e.key);return(t.length>0?`${t.join("+")}+`:"")+n}function eg(e){let t=new Map;for(let[n,r]of Object.entries(e)){let o=Vv(n);t.set(jv(o),r)}return n=>{let r=Gv(n),o=t.get(r),i=o?.(n);i===void 0&&o!==void 0?i={shouldContinuePropagation:!1,shouldPreventDefault:!0}:typeof i=="boolean"&&(i={shouldContinuePropagation:!i,shouldPreventDefault:i}),i?.shouldPreventDefault&&n.preventDefault(),(!o||i?.shouldContinuePropagation)&&n.continuePropagation()}}function Ld(e){let{shortcuts:t,allowRepeats:n=!1,allowComposing:r=!1}=e,o,i;if(t){let a=eg(t),l=aa(u=>{if(!_e(u.currentTarget,Z(u))){u.continuePropagation();return}if(u.nativeEvent?.repeat&&!n||u.nativeEvent?.isComposing&&!r){u.continuePropagation();return}a(u)}),s=aa(u=>{if(!_e(u.currentTarget,Z(u))){u.continuePropagation();return}if(u.nativeEvent?.repeat&&!n||u.nativeEvent?.isComposing&&!r){u.continuePropagation();return}u.continuePropagation()});o=e.onKeyDown?Hi(e.onKeyDown,l):l,i=e.onKeyUp?Hi(e.onKeyUp,s):s}else o=aa(e.onKeyDown),i=aa(e.onKeyUp);return{keyboardProps:e.isDisabled?{}:{onKeyDown:o,onKeyUp:i}}}var Wo=S(K(),1),Nd=Wo.default.createContext(null);var bn=S(K(),1);typeof HTMLTemplateElement<"u"&&(Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.content.firstChild}}),Object.defineProperty(HTMLTemplateElement.prototype,"appendChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.appendChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.removeChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:!0,enumerable:!0,value:function(e,t){return this.content.insertBefore(e,t)}}));var tg=(0,bn.createContext)(!1);function ng(e){if((0,bn.useContext)(tg))return bn.default.createElement(bn.default.Fragment,null,e.children);let n=bn.default.createElement(tg.Provider,{value:!0},e.children);return bn.default.createElement("template",null,n)}var sg=S(Ir(),1),H=S(K(),1),ug=S(ag(),1),cg=(0,H.createContext)(!1),la=(0,H.createContext)(null);function sa(e){if((0,H.useContext)(la))return e.content;let{collection:n,document:r}=a1(e.createCollection);return H.default.createElement(H.default.Fragment,null,H.default.createElement(ng,null,H.default.createElement(la.Provider,{value:r},e.content)),H.default.createElement(r1,{render:e.children,collection:n}))}function r1({collection:e,render:t}){return t(e)}function o1(e,t,n){let r=Ro(),o=(0,H.useRef)(r);o.current=r;let i=(0,H.useCallback)(()=>o.current?n():t(),[t,n]);return(0,ug.useSyncExternalStore)(e,i)}var i1=typeof H.default.useSyncExternalStore=="function"?H.default.useSyncExternalStore:o1;function a1(e){let[t]=(0,H.useState)(()=>new xs(e?.()||new na)),n=(0,H.useCallback)(a=>t.subscribe(a),[t]),r=(0,H.useCallback)(()=>{let a=t.getCollection();return t.isSSR&&t.resetAfterSSR(),a},[t]),o=(0,H.useCallback)(()=>(t.isSSR=!0,t.getCollection()),[t]);return{collection:i1(n,r,o),document:t}}var Md=(0,H.createContext)(null);function l1(e){return class extends Wt{static{this.type=e}}}function s1(e,t,n,r,o,i){typeof e=="string"&&(e=l1(e));let a=(0,H.useCallback)(s=>{s?.setProps(t,n,e,r,i)},[t,n,r,i,e]),l=(0,H.useContext)(Md);if(l){let s=l.ownerDocument.nodesByProps.get(t);return s||(s=l.ownerDocument.createElement(e.type),s.setProps(t,n,e,r,i),l.appendChild(s),l.ownerDocument.updateCollection(),l.ownerDocument.nodesByProps.set(t,s)),o?H.default.createElement(Md.Provider,{value:s},o):null}return H.default.createElement(e.type,{ref:a},o)}function ua(e,t){let n=({node:o})=>t(o.props,o.props.ref,o),r=(0,H.forwardRef)((o,i)=>{let a=(0,H.useContext)(Nd);if(!(0,H.useContext)(cg)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(o,i)}return s1(e,o,i,"children"in o?o.children:null,null,s=>H.default.createElement(Nd.Provider,{value:a},H.default.createElement(n,{node:s})))});return r.displayName=t.name,r}function u1(e){return oa({...e,addIdAndValue:!0})}var lg=(0,H.createContext)(null);function ca(e){let t=(0,H.useContext)(lg),n=(t?.dependencies||[]).concat(e.dependencies),r=e.idScope??t?.idScope,o=u1({...e,idScope:r,dependencies:n});return(0,H.useContext)(la)&&(o=H.default.createElement(c1,null,o)),t=(0,H.useMemo)(()=>({dependencies:n,idScope:r}),[r,...n]),H.default.createElement(lg.Provider,{value:t},o)}function c1({children:e}){let t=(0,H.useContext)(la),n=(0,H.useMemo)(()=>H.default.createElement(la.Provider,{value:null},H.default.createElement(cg.Provider,{value:!0},e)),[e]);return Ro()?H.default.createElement(Md.Provider,{value:t},n):(0,sg.createPortal)(n,t)}var it=S(K(),1);var Ss=(0,it.createContext)(null);var d1={CollectionRoot({collection:e,renderDropIndicator:t}){return fg(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return fg(e,t,n)}};function fg(e,t,n){return oa({items:t?e.getChildren(t.key):e,dependencies:[n],children(r){if(r.type==="content")return it.default.createElement(it.default.Fragment,null);let o=r.render(r);return!n||r.type!=="item"?o:it.default.createElement(it.default.Fragment,null,n({type:"item",key:r.key,dropPosition:"before"}),o,f1(e,r,n))}})}function f1(e,t,n){let r=t.key,o=e.getKeyAfter(r),i=o!=null?e.getItem(o):null;for(;i!=null&&i.type!=="item";)o=e.getKeyAfter(i.key),i=o!=null?e.getItem(o):null;let a=t.nextKey!=null?e.getItem(t.nextKey):null;for(;a!=null&&a.type!=="item";)a=a.nextKey!=null?e.getItem(a.nextKey):null;let l=[];if(a==null){let s=t;for(;s?.type==="item"&&(!i||s.parentKey!==i.parentKey&&i.level<s.level);){let u=n({type:"item",key:s.key,dropPosition:"after"});(0,it.isValidElement)(u)&&l.push((0,it.cloneElement)(u,{key:`${s.key}-after`})),s=s.parentKey!=null?e.getItem(s.parentKey):null}}return l}var jr=(0,it.createContext)(d1);function pg(e){return(0,it.useMemo)(()=>e!=null?new Set([e]):null,[e])}var p1=new Set(["id"]),m1=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),h1=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),g1=new Set(["dir","lang","hidden","inert","translate","suppressHydrationWarning"]),mg=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),$1=/^(data-.*)$/;function Nt(e,t={}){let{labelable:n,isLink:r,global:o,events:i=o,propNames:a}=t,l={};for(let s in e)Object.prototype.hasOwnProperty.call(e,s)&&(p1.has(s)||n&&m1.has(s)||r&&h1.has(s)||o&&g1.has(s)||i&&(mg.has(s)||s.endsWith("Capture")&&mg.has(s.slice(0,-7)))||a?.has(s)||$1.test(s))&&(l[s]=e[s]);return l}var pr=S(K(),1);function hg(){let e=(0,pr.useRef)(new Map),t=(0,pr.useCallback)((o,i,a,l)=>{let s=l?.once?(...u)=>{e.current.delete(a),a(...u)}:a;e.current.set(a,{type:i,eventTarget:o,fn:s,options:l}),o.addEventListener(i,s,l)},[]),n=(0,pr.useCallback)((o,i,a,l)=>{let s=e.current.get(a)?.fn||a;o.removeEventListener(i,s,l),e.current.delete(a)},[]),r=(0,pr.useCallback)(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return(0,pr.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}var da=S(K(),1);function Cs(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=(0,da.useRef)({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:l}=hg(),s=(0,da.useCallback)(d=>{_e(d.currentTarget,Z(d))&&i.current.isFocusWithin&&!_e(d.currentTarget,d.relatedTarget)&&(i.current.isFocusWithin=!1,l(),n&&n(d),o&&o(!1))},[n,o,i,l]),u=us(s),c=(0,da.useCallback)(d=>{if(!_e(d.currentTarget,Z(d)))return;let p=Z(d),g=ee(p),y=te(g);if(!i.current.isFocusWithin&&y===p){r&&r(d),o&&o(!0),i.current.isFocusWithin=!0,u(d);let b=d.currentTarget;a(g,"focus",D=>{let m=Z(D);if(i.current.isFocusWithin&&!_e(b,m)){let f=new g.defaultView.FocusEvent("blur",{relatedTarget:m});kh(f,b);let h=bd(f);s(h)}},{capture:!0})}},[r,o,u,a,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:s}}}var mr=S(K(),1);function Id(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=(0,mr.useRef)({isFocused:!1,isFocusVisible:t||gs()}),[i,a]=(0,mr.useState)(!1),[l,s]=(0,mr.useState)(()=>o.current.isFocused&&o.current.isFocusVisible),u=(0,mr.useCallback)(()=>s(o.current.isFocused&&o.current.isFocusVisible),[]),c=(0,mr.useCallback)(g=>{o.current.isFocused=g,o.current.isFocusVisible=gs(),a(g),u()},[u]);Ih(g=>{o.current.isFocusVisible=g,u()},[n,i],{enabled:i,isTextInput:n});let{focusProps:d}=qh({isDisabled:r,onFocusChange:c}),{focusWithinProps:p}=Cs({isDisabled:!r,onFocusWithinChange:c});return{isFocused:i,isFocusVisible:l,focusProps:r?p:d}}function gg(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:i="label"}=e;t=Pt(t);let a=Pt(),l={};n&&(r=r?`${a} ${r}`:a,l={id:a,htmlFor:i==="label"?t:void 0});let s=zh({id:t,"aria-label":o,"aria-labelledby":r});return{labelProps:l,fieldProps:s}}function hr(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=document.scrollingElement||document.documentElement,o=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return e===r&&n.overflow!=="hidden"&&(o=!0),o&&t&&(o=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),o}function $g(e,t){let n=e;for(hr(n,t)&&(n=n.parentElement);n&&!hr(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function ks(e,t){let n=[],r=document.scrollingElement||document.documentElement;for(;e&&(hr(e,t)&&n.push(e),e!==r);)e=e.parentElement;return n}function fa(e,t,n={}){if(e===t)return;let r=t.getBoundingClientRect();b1(e,t,r,n)}function b1(e,t,n,r={}){let{block:o="nearest",inline:i="nearest"}=r,a=e.scrollTop,l=e.scrollLeft,s=e.getBoundingClientRect(),u=window.getComputedStyle(t),c=window.getComputedStyle(e),d=document.scrollingElement||document.documentElement,p=e===d,g=e===d?0:s.top,y=e===d?e.clientHeight:s.bottom,b=e===d?0:s.left,D=e===d?e.clientWidth:s.right,m=parseFloat(u.scrollMarginTop)||0,f=parseFloat(u.scrollMarginBottom)||0,h=parseFloat(u.scrollMarginLeft)||0,$=parseFloat(u.scrollMarginRight)||0,C=parseFloat(c.scrollPaddingTop)||0,E=parseFloat(c.scrollPaddingBottom)||0,P=parseFloat(c.scrollPaddingLeft)||0,N=parseFloat(c.scrollPaddingRight)||0,R=parseFloat(c.borderTopWidth)||0,F=parseFloat(c.borderBottomWidth)||0,j=parseFloat(c.borderLeftWidth)||0,O=parseFloat(c.borderRightWidth)||0,M=n.top-m,z=n.bottom+f,V=n.left-h,se=n.right+$,Me=e===d?0:j+O,ft=e===d?0:R+F,Hn=e===d?0:e.offsetWidth-e.clientWidth-Me,un=e===d?0:e.offsetHeight-e.clientHeight-ft,Ze=g+(p?0:R)+C,pt=y-(p?0:F)-E-un,cn=b+(p?0:j)+P,Dt=D-(p?0:O)-N;ds()&&Ar()||c.direction==="ltr"?Dt-=Hn:c.direction==="rtl"&&(cn+=Hn);let jt=M<Ze||z>pt,Ft=V<cn||se>Dt;if(jt&&o==="start")a+=M-Ze;else if(jt&&o==="center")a+=(M+z)/2-(Ze+pt)/2;else if(jt&&o==="end")a+=z-pt;else if(jt&&o==="nearest"){let xt=M-Ze,Cn=z-pt;a+=Math.abs(xt)<=Math.abs(Cn)?xt:Cn}if(Ft&&i==="start")l+=V-cn;else if(Ft&&i==="center")l+=(V+se)/2-(cn+Dt)/2;else if(Ft&&i==="end")l+=se-Dt;else if(Ft&&i==="nearest"){let xt=V-cn,Cn=se-Dt;l+=Math.abs(xt)<=Math.abs(Cn)?xt:Cn}e.scrollTo({left:l,top:a})}function Dd(e,t={}){let{containingElement:n}=t;if(e&&e.isConnected){let r=document.scrollingElement||document.documentElement;if(window.getComputedStyle(r).overflow==="hidden"){let{left:i,top:a}=e.getBoundingClientRect(),l=ks(e,!0);for(let c of l)fa(c,e);let{left:s,top:u}=e.getBoundingClientRect();if(Math.abs(i-s)>1||Math.abs(a-u)>1){l=n?ks(n,!0):[];for(let c of l)fa(c,n,{block:"center",inline:"center"});for(let c of ks(e,!0))fa(c,e)}}else{let{left:i,top:a}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});let{left:l,top:s}=e.getBoundingClientRect();(Math.abs(i-l)>1||Math.abs(a-s)>1)&&(n?.scrollIntoView?.({block:"center",inline:"center"}),e.scrollIntoView?.({block:"nearest"}))}}}var at=S(K(),1),Es=(0,at.createContext)({}),Fd=(0,at.createContext)(null),y1=(0,at.forwardRef)(function(t,n){let{render:r}=(0,at.useContext)(Fd);return at.default.createElement(at.default.Fragment,null,r(t,n))});function Kd(e,t){let n=e?.renderDropIndicator,r=e?.isVirtualDragging?.(),o=(0,at.useCallback)(i=>{if(r||t?.isDropTarget(i))return n?n(i):at.default.createElement(y1,{target:i})},[t?.target,r,n]);return e?.useDropIndicator?o:void 0}function bg(e,t,n){let r=e.focusedKey,o=null;if(t?.isVirtualDragging?.()&&n?.target?.type==="item"&&(o=n.target.key,n.target.dropPosition==="after")){let i=n.collection.getKeyAfter(o),a=null;if(i!=null){let l=n.collection.getItem(o)?.level??0;for(;i!=null;){let s=n.collection.getItem(i);if(!s)break;if(s.type!=="item"){i=n.collection.getKeyAfter(i);continue}if((s.level??0)<=l)break;a=i,i=n.collection.getKeyAfter(i)}}o=i??a??o}return(0,at.useMemo)(()=>new Set([r,o].filter(i=>i!=null)),[r,o])}var Od=S(K(),1),Ts=(0,Od.createContext)({});var v1=S(Ir(),1),On=S(K(),1);var x1=(0,On.createContext)(null);function _s(e){let t=(0,On.useRef)({});return On.default.createElement(x1.Provider,{value:t},e.children)}var Ad=S(K(),1),Ps=(0,Ad.createContext)({}),yg=class extends Wt{static{this.type="separator"}filter(t,n){let r=n.getItem(this.prevKey);if(r&&r.type!=="separator"){let o=this.clone();return n.addDescendants(o,t),o}return null}};var vg=new WeakMap;var zd=class{constructor(t,n,r,o){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=a=>{if(a.nodeType===Node.ELEMENT_NODE){let l=a.shadowRoot;if(l){let s=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(s),NodeFilter.FILTER_ACCEPT}else{if(typeof this.filter=="function")return this.filter(a);if(this.filter?.acceptNode)return this.filter.acceptNode(a);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=n,this.filter=o??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(t.createTreeWalker(n,r,this._acceptNode));let i=n.shadowRoot;if(i){let a=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(a)}}get currentNode(){return this._currentNode}set currentNode(t){if(!_e(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");let n=[],r=t,o=t;for(this._currentNode=t;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let a=r,l=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});n.push(l),l.currentNode=o,this._currentSetFor.add(l),r=o=a.host}else r=r.parentNode;let i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(i),i.currentNode=o,this._currentSetFor.add(i),this._walkerStack=n}get doc(){return this._doc}firstChild(){let t=this.currentNode,n=this.nextNode();return _e(t,n)?(n&&(this.currentNode=n),n):(this.currentNode=t,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){let t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){let r;if(typeof this.filter=="function"?r=this.filter(t):this.filter?.acceptNode&&(r=this.filter.acceptNode(t)),r===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let o=this.nextNode();return o&&(this.currentNode=o),o}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let n=this.nextNode();return n&&(this.currentNode=n),n}else return null}previousNode(){let t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let r=this.previousNode();return r&&(this.currentNode=r),r}else return null;return null}let n=t.previousNode();if(n){if(n.shadowRoot){let o;if(typeof this.filter=="function"?o=this.filter(n):this.filter?.acceptNode&&(o=this.filter.acceptNode(n)),o===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let i=this.lastChild();return i&&(this.currentNode=i),i}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.previousNode();return r&&(this.currentNode=r),r}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}};function xg(e,t,n,r){return Or()?new zd(e,t,n,r):e.createTreeWalker(t,n,r)}var Ee=S(K(),1),wg=Ee.default.createContext(null),Bd="react-aria-focus-scope-restore",ge=null;function ha(e){let{children:t,contain:n,restoreFocus:r,autoFocus:o}=e,i=(0,Ee.useRef)(null),a=(0,Ee.useRef)(null),l=(0,Ee.useRef)([]),{parentNode:s}=(0,Ee.useContext)(wg)||{},u=(0,Ee.useMemo)(()=>new ma({scopeRef:l}),[l]);fe(()=>{let p=s||Re.root;if(Re.getTreeNode(p.scopeRef)&&ge&&!Ls(ge,p.scopeRef)){let g=Re.getTreeNode(ge);g&&(p=g)}p.addChild(u),Re.addNode(u)},[u,s]),fe(()=>{let p=Re.getTreeNode(l);p&&(p.contain=!!n)},[n]),fe(()=>{let p=i.current?.nextSibling,g=[],y=b=>b.stopPropagation();for(;p&&p!==a.current;)g.push(p),p.addEventListener(Bd,y),p=p.nextSibling;return l.current=g,()=>{for(let b of g)b.removeEventListener(Bd,y)}},[t]),T1(l,r,n),k1(l,n),_1(l,r,n),E1(l,o),(0,Ee.useEffect)(()=>{let p=te(ee(l.current?l.current[0]:void 0)),g=null;if(Ut(p,l.current)){for(let y of Re.traverse())y.scopeRef&&Ut(p,y.scopeRef.current)&&(g=y);g===Re.getTreeNode(l)&&(ge=g.scopeRef)}},[l]),fe(()=>()=>{let p=Re.getTreeNode(l)?.parent?.scopeRef??null;(l===ge||Ls(l,ge))&&(!p||Re.getTreeNode(p))&&(ge=p),Re.removeTreeNode(l)},[l]);let c=(0,Ee.useMemo)(()=>w1(l),[]),d=(0,Ee.useMemo)(()=>({focusManager:c,parentNode:u}),[u,c]);return Ee.default.createElement(wg.Provider,{value:d},Ee.default.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,Ee.default.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function w1(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t,l=r||te(ee(n[0]??void 0)),s=n[0].previousElementSibling,u=Gr(n),c=yn(u,{tabbable:o,accept:a},n);c.currentNode=Ut(l,n)?l:s;let d=c.nextNode();return!d&&i&&(c.currentNode=s,d=c.nextNode()),d&&rn(d,!0),d},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t,l=r||te(ee(n[0]??void 0)),s=n[n.length-1].nextElementSibling,u=Gr(n),c=yn(u,{tabbable:o,accept:a},n);c.currentNode=Ut(l,n)?l:s;let d=c.previousNode();return!d&&i&&(c.currentNode=s,d=c.previousNode()),d&&rn(d,!0),d},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Gr(n),a=yn(i,{tabbable:r,accept:o},n);a.currentNode=n[0].previousElementSibling;let l=a.nextNode();return l&&rn(l,!0),l},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Gr(n),a=yn(i,{tabbable:r,accept:o},n);a.currentNode=n[n.length-1].nextElementSibling;let l=a.previousNode();return l&&rn(l,!0),l}}}function Gr(e){return e[0].parentElement}function pa(e){let t=Re.getTreeNode(ge);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function S1(e){if(!e.form)return Array.from(ee(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter(r=>!r.form);let t=e.form.elements.namedItem(e.name),n=We(e);return t instanceof n.RadioNodeList?Array.from(t).filter(r=>r instanceof n.HTMLInputElement):t instanceof n.HTMLInputElement?[t]:[]}function C1(e){if(e.checked)return!0;let t=S1(e);return t.length>0&&!t.some(n=>n.checked)}function k1(e,t){let n=(0,Ee.useRef)(void 0),r=(0,Ee.useRef)(void 0);fe(()=>{let o=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}let i=ee(o?o[0]:void 0),a=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!pa(e)||u.isComposing)return;let c=te(i),d=e.current;if(!d||!Ut(c,d))return;let p=Gr(d),g=yn(p,{tabbable:!0},d);if(!c)return;g.currentNode=c;let y=u.shiftKey?g.previousNode():g.nextNode();y||(g.currentNode=u.shiftKey?d[d.length-1].nextElementSibling:d[0].previousElementSibling,y=u.shiftKey?g.previousNode():g.nextNode()),u.preventDefault(),y&&(rn(y,!0),y instanceof We(y).HTMLInputElement&&y.select())},l=u=>{(!ge||Ls(ge,e))&&Ut(Z(u),e.current)?(ge=e,n.current=Z(u)):pa(e)&&!Qr(Z(u),e)?n.current?rn(n.current):ge&&ge.current&&Hd(ge.current):pa(e)&&(n.current=Z(u))},s=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let c=Vr(),d=(c==="virtual"||c===null)&&Oo()&&fs(),p=te(i);if(!d&&p&&pa(e)&&!Qr(p,e)){ge=e;let g=Z(u);g&&g.isConnected?(n.current=g,rn(n.current)):ge.current&&Hd(ge.current)}})};return i.addEventListener("keydown",a,!1),i.addEventListener("focusin",l,!1),o?.forEach(u=>u.addEventListener("focusin",l,!1)),o?.forEach(u=>u.addEventListener("focusout",s,!1)),()=>{i.removeEventListener("keydown",a,!1),i.removeEventListener("focusin",l,!1),o?.forEach(u=>u.removeEventListener("focusin",l,!1)),o?.forEach(u=>u.removeEventListener("focusout",s,!1))}},[e,t]),fe(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function kg(e){return Qr(e)}function Ut(e,t){return!e||!t?!1:t.some(n=>_e(n,e))}function Qr(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Re.traverse(Re.getTreeNode(t)))if(n&&Ut(e,n.current))return!0;return!1}function Ls(e,t){let n=Re.getTreeNode(t)?.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function rn(e,t=!1){if(e!=null&&!t)try{ia(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function Eg(e,t=!0){let n=e[0].previousElementSibling,r=Gr(e),o=yn(r,{tabbable:t},e);o.currentNode=n;let i=o.nextNode();return t&&!i&&(r=Gr(e),o=yn(r,{tabbable:!1},e),o.currentNode=n,i=o.nextNode()),i}function Hd(e,t=!0){rn(Eg(e,t))}function E1(e,t){let n=Ee.default.useRef(t);(0,Ee.useEffect)(()=>{if(n.current){ge=e;let r=ee(e.current?e.current[0]:void 0);!Ut(te(r),ge.current)&&e.current&&Hd(e.current)}n.current=!1},[e])}function T1(e,t,n){fe(()=>{if(t||n)return;let r=e.current,o=ee(r?r[0]:void 0),i=a=>{let l=Z(a);Ut(l,e.current)?ge=e:kg(l)||(ge=null)};return o.addEventListener("focusin",i,!1),r?.forEach(a=>a.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),r?.forEach(a=>a.removeEventListener("focusin",i,!1))}},[e,t,n])}function Sg(e){let t=Re.getTreeNode(ge);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function _1(e,t,n){let r=(0,Ee.useRef)(typeof document<"u"?te(ee(e.current?e.current[0]:void 0)):null);fe(()=>{let o=e.current,i=ee(o?o[0]:void 0);if(!t||n)return;let a=()=>{(!ge||Ls(ge,e))&&Ut(te(i),e.current)&&(ge=e)};return i.addEventListener("focusin",a,!1),o?.forEach(l=>l.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),o?.forEach(l=>l.removeEventListener("focusin",a,!1))}},[e,n]),fe(()=>{let o=ee(e.current?e.current[0]:void 0);if(!t)return;let i=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!pa(e)||a.isComposing)return;let l=o.activeElement;if(!Qr(l,e)||!Sg(e))return;let s=Re.getTreeNode(e);if(!s)return;let u=s.nodeToRestore,c=yn(o.body,{tabbable:!0});c.currentNode=l;let d=a.shiftKey?c.previousNode():c.nextNode();if((!u||!u.isConnected||u===o.body)&&(u=void 0,s.nodeToRestore=void 0),(!d||!Qr(d,e))&&u){c.currentNode=u;do d=a.shiftKey?c.previousNode():c.nextNode();while(Qr(d,e));a.preventDefault(),a.stopPropagation(),d?rn(d,!0):kg(u)?rn(u,!0):l.blur()}};return n||o.addEventListener("keydown",i,!0),()=>{n||o.removeEventListener("keydown",i,!0)}},[e,t,n]),fe(()=>{let o=ee(e.current?e.current[0]:void 0);if(!t)return;let i=Re.getTreeNode(e);if(i)return i.nodeToRestore=r.current??void 0,()=>{let a=Re.getTreeNode(e);if(!a)return;let l=a.nodeToRestore,s=te(o);if(t&&l&&(s&&Qr(s,e)||s===o.body&&Sg(e))){let u=Re.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let c=u.getTreeNode(e);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){Cg(c.nodeToRestore);return}c=c.parent}for(c=u.getTreeNode(e);c;){if(c.scopeRef&&c.scopeRef.current&&Re.getTreeNode(c.scopeRef)){let d=Eg(c.scopeRef.current,!0);if(d){Cg(d);return}}c=c.parent}}})}}},[e,t])}function Cg(e){e.dispatchEvent(new CustomEvent(Bd,{bubbles:!0,cancelable:!0}))&&rn(e)}function yn(e,t,n){let r=t?.tabbable?ls:as,o=e?.nodeType===Node.ELEMENT_NODE?e:null,i=ee(o),a=xg(i,e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(l){return _e(t?.from,l)||t?.tabbable&&l.tagName==="INPUT"&&l.getAttribute("type")==="radio"&&(!C1(l)||a.currentNode.tagName==="INPUT"&&a.currentNode.type==="radio"&&a.currentNode.name===l.name)?NodeFilter.FILTER_REJECT:r(l)&&(!n||Ut(l,n))&&(!t?.accept||t.accept(l))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(a.currentNode=t.from),a}var Vd=class e{constructor(){this.fastMap=new Map,this.root=new ma({scopeRef:null}),this.fastMap.set(null,this.root)}get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let o=this.fastMap.get(n??null);if(!o)return;let i=new ma({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Ut(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let o=n.children;r&&(r.removeChild(n),o.size>0&&o.forEach(i=>r&&r.addChild(i))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){let t=new e;for(let n of this.traverse())t.addTreeNode(n.scopeRef,n.parent?.scopeRef??null,n.nodeToRestore);return t}},ma=class{constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}},Re=new Vd;function Wd(e){return Eh()?e.altKey:e.ctrlKey}function vn(e,t){let n=`[data-key="${CSS.escape(String(t))}"]`,r=e.current?.dataset.collection;return r&&(n=`[data-collection="${CSS.escape(r)}"]${n}`),e.current?.querySelector(n)}var P1=new WeakMap;function Tg(e){let t=Pt();return P1.set(e,t),t}var Ns=S(K(),1),_g=1e3;function Pg(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,o=(0,Ns.useRef)({search:"",timeout:void 0}),i=l=>{if(o.current.search.length>0&&l.key===" "){if(l.preventDefault(),(!("continuePropagation"in l)||"continuePropagation"in l&&!l.isPropagationStopped())&&l.stopPropagation(),o.current.search+=" ",t.getKeyForSearch!=null){let s=t.getKeyForSearch(o.current.search,n.focusedKey);s==null&&(s=t.getKeyForSearch(o.current.search)),s!=null&&(n.setFocusedKey(s),r&&r(s))}clearTimeout(o.current.timeout),o.current.timeout=setTimeout(()=>{o.current.search=""},_g)}},a=l=>{let s=L1(l.key);if(!(!s||l.ctrlKey||l.metaKey||l.altKey||!_e(l.currentTarget,Z(l))||o.current.search.length===0&&s===" ")){if(o.current.search+=s,t.getKeyForSearch!=null){let u=t.getKeyForSearch(o.current.search,n.focusedKey);if(u==null&&(u=t.getKeyForSearch(o.current.search)),u!=null)n.setFocusedKey(u),r&&r(u),l.preventDefault(),"continuePropagation"in l||l.stopPropagation();else{o.current.search="",clearTimeout(o.current.timeout),o.current.timeout=void 0;return}}clearTimeout(o.current.timeout),o.current.timeout=setTimeout(()=>{o.current.search=""},_g)}};return(0,Ns.useEffect)(()=>{let l=o.current.timeout;return()=>{clearTimeout(l)}},[o]),{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:void 0,onKeyDown:t.getKeyForSearch?a:void 0}}}function L1(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}var Ud=S(K(),1);function jd(e,t){let n=(0,Ud.useRef)(!0),r=(0,Ud.useRef)(null);fe(()=>(n.current=!0,()=>{n.current=!1}),[]),fe(()=>{n.current?n.current=!1:(!r.current||t.some((o,i)=>!Object.is(o,r[i])))&&e(),r.current=t},t)}var Lg=S(Ir(),1),on=S(K(),1);function Ng(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:a=!1,disallowSelectAll:l=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:u=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:d,allowsTabNavigation:p=!1,scrollRef:g=r,linkBehavior:y="action",UNSTABLE_focusOnEntry:b}=e,{direction:D}=Wr(),m=_h(),f=(v,k,Ce)=>{if(k!=null){if(t.isLink(k)&&y==="selection"&&u&&!Wd(v)){(0,Lg.flushSync)(()=>{t.setFocusedKey(k,Ce)});let oe=vn(r,k),bf=t.getItemProps(k);if(oe){m.open(oe,v,bf.href,bf.routerOptions);return}return!1}if(t.setFocusedKey(k,Ce),t.isLink(k)&&y==="override")return!1;if(v.shiftKey&&t.selectionMode==="multiple"){t.extendSelection(k);return}else if(u&&!Wd(v)){t.replaceSelection(k);return}}return!1},h=v=>{if(n.getKeyBelow){let k=t.focusedKey!=null?n.getKeyBelow?.(t.focusedKey):n.getFirstKey?.();if(k==null&&i&&(k=n.getFirstKey?.(t.focusedKey)),k!=null){f(v,k);return}}return!1},$=v=>{if(n.getKeyAbove){let k=t.focusedKey!=null?n.getKeyAbove?.(t.focusedKey):n.getLastKey?.();if(k==null&&i&&(k=n.getLastKey?.(t.focusedKey)),k!=null){f(v,k);return}}return!1},C=v=>{if(n.getFirstKey){if(t.focusedKey===null&&v.shiftKey)return!1;let k=n.getFirstKey(t.focusedKey,Qi(v));if(t.setFocusedKey(k),k!=null){if(Qi(v)&&v.shiftKey&&t.selectionMode==="multiple"){t.extendSelection(k);return}else if(u){t.replaceSelection(k);return}}}return!1},E=v=>{if(n.getKeyLeftOf){let k=t.focusedKey!=null?n.getKeyLeftOf?.(t.focusedKey):n.getFirstKey?.();if(k==null&&i&&(k=D==="rtl"?n.getFirstKey?.(t.focusedKey):n.getLastKey?.(t.focusedKey)),k!=null){f(v,k,D==="rtl"?"first":"last");return}}return!1},P=v=>{if(n.getKeyRightOf){let k=t.focusedKey!=null?n.getKeyRightOf?.(t.focusedKey):n.getFirstKey?.();if(k==null&&i&&(k=D==="rtl"?n.getLastKey?.(t.focusedKey):n.getFirstKey?.(t.focusedKey)),k!=null){f(v,k,D==="rtl"?"last":"first");return}}return!1},N=v=>{if(n.getLastKey){if(t.focusedKey===null&&v.shiftKey)return!1;let k=n.getLastKey(t.focusedKey,Qi(v));if(t.setFocusedKey(k),k!=null){if(Qi(v)&&v.shiftKey&&t.selectionMode==="multiple"){t.extendSelection(k);return}else if(u){t.replaceSelection(k);return}}}return!1},R=v=>{if(n.getKeyPageBelow&&t.focusedKey!=null){let k=n.getKeyPageBelow(t.focusedKey);if(k!=null)return f(v,k)}return!1},F=v=>{if(n.getKeyPageAbove&&t.focusedKey!=null){let k=n.getKeyPageAbove(t.focusedKey);if(k!=null)return f(v,k)}return!1},j=()=>{if(t.selectionMode==="multiple"&&l!==!0){t.selectAll();return}return!1},O=()=>{if(s==="clearSelection"&&!a&&t.selectedKeys.size!==0){t.clearSelection();return}return!1},M=()=>{if(!p&&r.current){let v=yn(r.current,{tabbable:!0}),k,Ce;do Ce=v.lastChild(),Ce&&(k=Ce);while(Ce);let oe=te();k&&(!hd(k)||oe&&!ls(oe))&&dr(k)}return{shouldContinuePropagation:!0,shouldPreventDefault:!1}},z=()=>(!p&&r.current&&r.current.focus(),{shouldContinuePropagation:!0,shouldPreventDefault:!1}),V=(v,k)=>({[Lt()?v+"+Shift+Alt":v+"+Shift+Control"]:k,[v+"+Shift"]:k,[Lt()?v+"+Alt":v+"+Control"]:k,[v]:k}),{keyboardProps:se}=Ld({shortcuts:{...V("ArrowDown",h),...V("ArrowUp",$),...V("ArrowLeft",E),...V("ArrowRight",P),...V("PageDown",R),...V("PageUp",F)},allowRepeats:!0}),{keyboardProps:Me}=Ld({shortcuts:{...V("Home",C),...V("End",N),"Mod+A":j,Escape:O,Tab:M,"Tab+Shift":z}}),ft=(0,on.useRef)({top:0,left:0});Yi(g,"scroll",()=>{ft.current={top:g.current?.scrollTop??0,left:g.current?.scrollLeft??0}});let Hn=v=>{if(t.isFocused){_e(v.currentTarget,Z(v))||t.setFocused(!1);return}if(!_e(v.currentTarget,Z(v)))return;let k=Vr();t.setFocused(!0);let Ce=oe=>{oe!=null&&(t.setFocusedKey(oe),u&&!t.isSelected(oe)&&t.replaceSelection(oe))};if(b&&(k==="keyboard"||k==="virtual"))Ce(b==="first"?n.getFirstKey?.():n.getLastKey?.());else if(t.focusedKey==null){let oe=v.relatedTarget;oe&&v.currentTarget.compareDocumentPosition(oe)&Node.DOCUMENT_POSITION_FOLLOWING?Ce(t.lastSelectedKey??n.getLastKey?.()):Ce(t.firstSelectedKey??n.getFirstKey?.())}else g.current&&(g.current.scrollTop=ft.current.top,g.current.scrollLeft=ft.current.left);if(t.focusedKey!=null&&g.current){let oe=vn(r,t.focusedKey);oe instanceof HTMLElement&&(!hd(oe)&&!d&&dr(oe),(k==="keyboard"||b&&k==="virtual")&&Dd(oe,{containingElement:r.current}))}},un=v=>{_e(v.currentTarget,v.relatedTarget)||t.setFocused(!1)},Ze=(0,on.useRef)(!1);Yi(r,vh,d?v=>{let{detail:k}=v;v.stopPropagation(),t.setFocused(!0),k?.focusStrategy==="first"&&(Ze.current=!0)}:void 0);let pt=n.getFirstKey?.()??null;jd(()=>{if(Ze.current)if(pt==null){let v=te();Sh(r.current),gd(v,null),t.collection.size>0&&(Ze.current=!1)}else t.setFocusedKey(pt),Ze.current=!1},[pt,t.collection.size]),jd(()=>{t.collection.size>0&&(Ze.current=!1)},[t.focusedKey]),Yi(r,yh,d?v=>{v.stopPropagation(),t.setFocused(!1),v.detail?.clearFocusKey&&t.setFocusedKey(null)}:void 0);let cn=(0,on.useRef)(o),Dt=(0,on.useRef)(!1);(0,on.useEffect)(()=>{if(cn.current){let v=null;o==="first"&&(v=n.getFirstKey?.()??null),o==="last"&&(v=n.getLastKey?.()??null);let k=t.selectedKeys;if(k.size){for(let Ce of k)if(t.canSelectItem(Ce)){v=Ce;break}}t.setFocused(!0),t.setFocusedKey(v),v!=null&&u&&!k.size&&t.canSelectItem(v)&&t.replaceSelection(v),v==null&&!d&&r.current&&ia(r.current),t.collection.size>0&&(cn.current=!1,Dt.current=!0)}});let jt=(0,on.useRef)(t.focusedKey),Ft=(0,on.useRef)(null);(0,on.useEffect)(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==jt.current||Dt.current)&&g.current&&r.current){let v=Vr(),k=vn(r,t.focusedKey);if(!(k instanceof HTMLElement))return;(v==="keyboard"||Dt.current)&&(Ft.current&&cancelAnimationFrame(Ft.current),Ft.current=requestAnimationFrame(()=>{g.current&&(fa(g.current,k),v!=="virtual"&&Dd(k,{containingElement:r.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&jt.current!=null&&r.current&&ia(r.current),jt.current=t.focusedKey,Dt.current=!1}),(0,on.useEffect)(()=>()=>{Ft.current&&cancelAnimationFrame(Ft.current)},[]),Yi(r,"react-aria-focus-scope-restore",v=>{v.preventDefault(),t.setFocused(!0)});let xt={...Ne(Me,se),onFocus:Hn,onBlur:un,onMouseDown(v){g.current===Z(v)&&v.preventDefault()}},{typeSelectProps:Cn}=Pg({keyboardDelegate:n,selectionManager:t});c||(xt=Ne(Cn,xt));let Yo;d||(Yo=t.focusedKey==null?0:-1);let Y=Tg(t.collection);return{collectionProps:Ne(xt,{tabIndex:Yo,"data-collection":Y})}}var ga=class{constructor(t){this.ref=t}getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?vn(this.ref,t):null;if(!r)return null;let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();return{x:i.left-o.left-n.clientLeft+n.scrollLeft,y:i.top-o.top-n.clientTop+n.scrollTop,width:i.width,height:i.height}}getContentSize(){let t=this.ref.current;return{width:t?.scrollWidth??0,height:t?.scrollHeight??0}}getVisibleRect(){let t=this.ref.current;return{x:t?.scrollLeft??0,y:t?.scrollTop??0,width:t?.clientWidth??0,height:t?.clientHeight??0}}};var Yr=class{constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new ga(n.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new ga(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}isDisabled(t){return this.disabledBehavior==="all"&&(t.props?.isDisabled||this.disabledKeys.has(t.key))&&t.props?.disabledBehavior!=="selection"}findNextNonDisabled(t,n,r=!1){let o=t;for(;o!=null;){let i=this.collection.getItem(o);if(i?.type==="item"&&(r||!this.isDisabled(i)))return o;o=n(o)}return null}getNextKey(t,n){let r=t;return r=this.collection.getKeyAfter(r),this.findNextNonDisabled(r,o=>this.collection.getKeyAfter(o),n?.includeDisabled)}getPreviousKey(t,n){let r=t;return r=this.collection.getKeyBefore(r),this.findNextNonDisabled(r,o=>this.collection.getKeyBefore(o),n?.includeDisabled)}findKey(t,n,r){let o=t,i=this.layoutDelegate.getItemRect(o);if(!i||o==null)return null;let a=i;do{if(o=n(o),o==null)break;i=this.layoutDelegate.getItemRect(o)}while(i&&r(a,i)&&o!=null);return o}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}isReversed(t){let n=this.getNextKey(t),r=vn(this.ref,t);if(n!=null){let i=vn(this.ref,n);return!r||!i?!1:r.getBoundingClientRect().top>i.getBoundingClientRect().top}let o=this.getPreviousKey(t);if(o!=null){let i=vn(this.ref,o);return!r||!i?!1:i.getBoundingClientRect().top>r.getBoundingClientRect().top}return!1}getKeyBelow(t,n){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getNextKey(r,n),this.isSameRow):this.orientation==="vertical"?this.isReversed(t)?this.getPreviousKey(t,n):this.getNextKey(t,n):this.getNextKey(t,n)}getKeyAbove(t,n){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getPreviousKey(r,n),this.isSameRow):this.orientation==="vertical"?this.isReversed(t)?this.getNextKey(t,n):this.getPreviousKey(t,n):this.getPreviousKey(t,n)}getNextColumn(t,n,r){return n?this.getPreviousKey(t,r):this.getNextKey(t,r)}getKeyRightOf(t,n){let r=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,o=>this.layoutDelegate[r](o),n?.includeDisabled)):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl",n):this.findKey(t,o=>this.getNextColumn(o,this.direction==="rtl",n),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl",n):null}getKeyLeftOf(t,n){let r=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,o=>this.layoutDelegate[r](o),n?.includeDisabled)):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr",n):this.findKey(t,o=>this.getNextColumn(o,this.direction==="ltr",n),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr",n):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;let o=this.isReversed(t);if(n&&!hr(n))return this.getFirstKey();let i=t;if(this.orientation==="horizontal"){let a=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>a&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let a=this.layoutDelegate.getVisibleRect(),l=o?r.y-a.height:Math.max(0,r.y+r.height-a.height);for(;r&&r.y>l&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??(o?this.getLastKey():this.getFirstKey())}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;let o=this.isReversed(t);if(n&&!hr(n))return this.getLastKey();let i=t;if(this.orientation==="horizontal"){let a=Math.min(this.layoutDelegate.getContentSize().width,r.x-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<a&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let a=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<a&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??(o?this.getFirstKey():this.getLastKey())}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,o=n||this.getFirstKey();for(;o!=null;){let i=r.getItem(o);if(!i)return null;let a=i.textValue.slice(0,t.length);if(i.textValue&&this.collator.compare(a,t)===0)return o;o=this.getNextKey(o)}return null}};var Gd=new Map;function $a(e){let{locale:t}=Wr(),n=t+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(Gd.has(n))return Gd.get(n);let r=new Intl.Collator(t,e);return Gd.set(n,r),r}var Rg=S(K(),1);function Rs(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:o,keyboardDelegate:i,layoutDelegate:a,orientation:l}=e,s=$a({usage:"search",sensitivity:"base"}),u=t.disabledBehavior,c=(0,Rg.useMemo)(()=>i||new Yr({collection:n,disabledKeys:r,disabledBehavior:u,ref:o,collator:s,layoutDelegate:a,orientation:l}),[i,a,n,r,o,s,u,l]),{collectionProps:d}=Ng({...e,ref:o,selectionManager:t,keyboardDelegate:c});return{listProps:d}}function Qd(e,t,n){let r=Nt(e,{labelable:!0}),o=e.selectionBehavior||"toggle",i=e.orientation||"vertical",a=e.linkBehavior||(o==="replace"?"action":"override");o==="toggle"&&a==="action"&&(a="override");let{listProps:l}=Rs({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:a}),{focusWithinProps:s}=Cs({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),u=Pt(e.id);vg.set(t,{id:u,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:a,UNSTABLE_itemBehavior:e.UNSTABLE_itemBehavior});let{labelProps:c,fieldProps:d}=gg({...e,id:u,labelElementType:"span"});return{labelProps:c,listBoxProps:Ne(r,s,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox","aria-orientation":i,...Ne(d,l)})}}function Ig(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function Dg(e){return N1(e,0)}function N1(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function Ms(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...Mg(e,t),t],o=[...Mg(e,n),n],i=r.slice(0,o.length).findIndex((a,l)=>a!==o[l]);return i!==-1?(t=r[i],n=o[i],t.index-n.index):r.findIndex(a=>a===n)>=0?1:(o.findIndex(a=>a===t)>=0,-1)}function Mg(e,t){let n=[],r=t;for(;r?.parentKey!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}function Yd(e){let{heading:t,"aria-label":n}=e,r=Pt();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation",onMouseDown:o=>{o.preventDefault()}}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}var Fg=S(K(),1);function ba(e){let t=Fg.version.split(".");return parseInt(t[0],10)>=19?e:e?"true":void 0}var ya=class{constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let n=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let l of a.childNodes)n(l)};for(let a of t)n(a);let r=null,o=0,i=0;for(let[a,l]of this.keyMap)r?(r.nextKey=a,l.prevKey=r.key):(this.firstKey=a,l.prevKey=void 0),l.type==="item"&&(l.index=o++),(l.type==="section"||l.type==="item")&&i++,r=l,r.nextKey=void 0;this._size=i,this.lastKey=r?.key??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey??null:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)??null}at(t){let n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){return this.keyMap.get(t)?.childNodes||[]}};var Rt=class e extends Set{constructor(t,n,r){super(t),t instanceof e?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}};var lt=S(K(),1);function R1(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function Xr(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:o="toggle",disabledBehavior:i="all"}=e,a=(0,lt.useRef)(!1),[,l]=(0,lt.useState)(!1),s=(0,lt.useRef)(null),u=(0,lt.useRef)(null),[,c]=(0,lt.useState)(null),d=(0,lt.useMemo)(()=>Kg(e.selectedKeys),[e.selectedKeys]),p=(0,lt.useMemo)(()=>Kg(e.defaultSelectedKeys,new Rt),[e.defaultSelectedKeys]),[g,y]=Ho(d,p,e.onSelectionChange),b=(0,lt.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[D,m]=(0,lt.useState)(o);o==="replace"&&D==="toggle"&&typeof g=="object"&&g.size===0&&m("replace");let f=(0,lt.useRef)(o);return(0,lt.useEffect)(()=>{o!==f.current&&(m(o),f.current=o)},[o]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:D,setSelectionBehavior:m,get isFocused(){return a.current},setFocused(h){a.current=h,l(h)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(h,$="first"){s.current=h,u.current=$,c(h)},selectedKeys:g,setSelectedKeys(h){(r||!R1(h,g))&&y(h)},disabledKeys:b,disabledBehavior:i}}function Kg(e,t){return e?e==="all"?"all":new Rt(e):t}var An=class e{constructor(t,n,r){this.collection=t,this.state=n,this.allowsCellSelection=r?.allowsCellSelection??!1,this._isSelectAll=null,this.layoutDelegate=r?.layoutDelegate||null,this.fullCollection=r?.fullCollection||null}get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let n=this.getKey(t);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&Ms(this.collection,r,t)<0)&&(t=r)}return t?.key??null}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&Ms(this.collection,r,t)>0)&&(t=r)}return t?.key??null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new Rt([n],n,n);else{let o=this.state.selectedKeys,i=o.anchorKey??n;r=new Rt(o,i,n);for(let a of this.getKeyRange(i,o.currentKey??n))r.delete(a);for(let a of this.getKeyRange(n,i))this.canSelectItem(a)&&r.add(a)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),o=this.collection.getItem(n);return r&&o?Ms(this.collection,r,o)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){if(this.layoutDelegate?.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let r=[],o=t;for(;o!=null;){let i=this.collection.getItem(o);if(i&&(i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&r.push(o),o===n)return r;o=this.collection.getKeyAfter(o)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new Rt(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let r=this.canSelectItem(n)?new Rt([n],n,n):new Rt;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new Rt;for(let r of t){let o=this.getKey(r);if(o!=null&&(n.add(o),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=this.fullCollection??this.collection,n=[],r=o=>{for(;o!=null;){if(this.canSelectItemIn(o,t)){let i=t.getItem(o);i?.type==="item"&&n.push(o),i?.hasChildNodes&&(this.allowsCellSelection||i.type!=="item")&&r(Dg(Ig(i,t))?.key??null)}o=t.getKeyAfter(o)}};return r(t.getFirstKey()),n}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Rt)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){return this.canSelectItemIn(t,this.collection)}canSelectItemIn(t,n){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=n.getItem(t);return!(!r||r?.props?.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){let n=this.collection.getItem(t);return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!n?.props?.isDisabled)&&n?.props?.disabledBehavior!=="selection"}isLink(t){return!!this.collection.getItem(t)?.props?.href}getItemProps(t){return this.collection.getItem(t)?.props}withCollection(t){return new e(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0,fullCollection:this.fullCollection??this.collection})}};var gr=S(K(),1),Is=class{build(t,n){return this.context=n,Og(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(gr.default.isValidElement(n)&&n.type===gr.default.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let o=0;for(let i of r)yield*this.getFullNode({value:i,index:o},{renderer:n}),o++}else{let o=[];gr.default.Children.forEach(n,a=>{a&&o.push(a)});let i=0;for(let a of o){let l=this.getFullNode({element:a,index:i},{});for(let s of l)i++,yield s}}}getKey(t,n,r,o){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${o}${n.key}`;let i=n.value;if(i!=null){let a=i.key??i.id;if(a==null)throw new Error("No key found for item");return a}return o?`${o}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,o){if(gr.default.isValidElement(t.element)&&t.element.type===gr.default.Fragment){let s=[];gr.default.Children.forEach(t.element.props.children,c=>{s.push(c)});let u=t.index??0;for(let c of s)yield*this.getFullNode({element:c,index:u++},n,r,o);return}let i=t.element;if(!i&&t.value&&n&&n.renderer){let s=this.cache.get(t.value);if(s&&(!s.shouldInvalidate||!s.shouldInvalidate(this.context))){s.index=t.index,s.parentKey=o?o.key:null,yield s;return}i=n.renderer(t.value)}if(gr.default.isValidElement(i)){let s=i.type;if(typeof s!="function"&&typeof s.getCollectionNode!="function"){let p=i.type;throw new Error(`Unknown element <${p}> in collection.`)}let u=s.getCollectionNode(i.props,this.context),c=t.index??0,d=u.next();for(;!d.done&&d.value;){let p=d.value;t.index=c;let g=p.key??null;g==null&&(g=p.element?null:this.getKey(i,t,n,r));let b=[...this.getFullNode({...p,key:g,index:c,wrapper:M1(t.wrapper,p.wrapper)},this.getChildState(n,p),r?`${r}${i.key}`:i.key,o)];for(let D of b){if(D.value=p.value??t.value??null,D.value&&this.cache.set(D.value,D),t.type&&D.type!==t.type)throw new Error(`Unsupported type <${Xd(D.type)}> in <${Xd(o?.type??"unknown parent type")}>. Only <${Xd(t.type)}> is supported.`);c++,yield D}d=u.next(b)}return}if(t.key==null||t.type==null)return;let a=this,l={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:t.value??null,level:(o?.level??0)+(o?.type==="item"?1:0),index:t.index,rendered:t.rendered,textValue:t.textValue??"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:Og(function*(){if(!t.hasChildNodes||!t.childNodes)return;let s=0;for(let u of t.childNodes()){u.key!=null&&(u.key=`${l.key}${u.key}`);let c=a.getFullNode({...u,index:s},a.getChildState(n,u),l.key,l);for(let d of c)s++,yield d}})};yield l}constructor(){this.cache=new WeakMap}};function Og(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function M1(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Xd(e){return e[0].toUpperCase()+e.slice(1)}var qd=S(K(),1);function Ds(e,t,n){let r=(0,qd.useMemo)(()=>new Is,[]),{children:o,items:i,collection:a}=e;return(0,qd.useMemo)(()=>{if(a)return a;let s=r.build({children:o,items:i},n);return t(s)},[r,o,i,a,n,t])}var an=S(K(),1);function Zd(e){let{filter:t,layoutDelegate:n}=e,r=Xr(e),o=(0,an.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=(0,an.useCallback)(u=>t?new ya(t(u)):new ya(u),[t]),a=(0,an.useMemo)(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),l=Ds(e,i,a),s=(0,an.useMemo)(()=>new An(l,r,{layoutDelegate:n}),[l,r,n]);return Ag(l,s),{collection:l,disabledKeys:o,selectionManager:s}}function Jd(e,t){let n=(0,an.useMemo)(()=>t?e.collection.filter(t):e.collection,[e.collection,t]),r=e.selectionManager.withCollection(n);return Ag(n,r),{collection:n,selectionManager:r,disabledKeys:e.disabledKeys}}function Ag(e,t){let n=(0,an.useRef)(null);(0,an.useEffect)(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&n.current){let r=n.current.getKeyAfter(t.focusedKey),o=null;for(;r!=null;){let i=e.getItem(r);if(i&&i.type==="item"&&!t.isDisabled(r)){o=r;break}r=n.current.getKeyAfter(r)}if(o==null)for(r=n.current.getKeyBefore(t.focusedKey);r!=null;){let i=e.getItem(r);if(i&&i.type==="item"&&!t.isDisabled(r)){o=r;break}r=n.current.getKeyBefore(r)}t.setFocusedKey(o)}n.current=e},[e,t])}var zg=S(K(),1);function va(e,t){let{collection:n,onLoadMore:r,scrollOffset:o=1,direction:i="end"}=e,a=(0,zg.useRef)(null),l=$s(s=>{for(let u of s)u.isIntersecting&&r&&r()});fe(()=>{if(t.current){let s=100*o,u=i==="start"?`${s}% 0px 0px 0px`:`0px ${s}% ${s}% ${s}%`;a.current=new IntersectionObserver(l,{root:$g(t?.current),rootMargin:u}),a.current.observe(t.current)}return()=>{a.current&&a.current.disconnect()}},[n,t,o,i])}var A=S(K(),1);var ef=(0,A.createContext)(null),xa=(0,A.createContext)(null),tf=(0,A.forwardRef)(function(t,n){[t,n]=Ko(t,n,ef);let r=(0,A.useContext)(xa);return r?A.default.createElement(Bg,{state:r,props:t,listBoxRef:n}):A.default.createElement(sa,{content:A.default.createElement(ca,t)},o=>A.default.createElement(I1,{props:t,listBoxRef:n,collection:o}))});function I1({props:e,listBoxRef:t,collection:n}){e={...e,collection:n,children:null,items:null};let{layoutDelegate:r}=(0,A.useContext)(jr),o=Zd({...e,layoutDelegate:r});return A.default.createElement(Bg,{state:o,props:e,listBoxRef:t})}function Bg({state:e,props:t,listBoxRef:n}){[t,n]=Ko(t,n,Zi);let{dragAndDropHooks:r,layout:o="stack",orientation:i="vertical",filter:a}=t,l=Jd(e,a),{collection:s,selectionManager:u}=l,c=!!r?.useDraggableCollectionState,d=!!r?.useDroppableCollectionState,{direction:p}=Wr(),{disabledBehavior:g,disabledKeys:y}=u,b=$a({usage:"search",sensitivity:"base"}),{isVirtualized:D,layoutDelegate:m,dropTargetDelegate:f,CollectionRoot:h}=(0,A.useContext)(jr),$=(0,A.useMemo)(()=>t.keyboardDelegate||new Yr({collection:s,collator:b,ref:n,disabledKeys:y,disabledBehavior:g,layout:o,orientation:i,direction:p,layoutDelegate:m}),[s,b,n,g,y,i,p,t.keyboardDelegate,o,m]),{listBoxProps:C}=Qd({...t,shouldSelectOnPressUp:c||t.shouldSelectOnPressUp,keyboardDelegate:$,isVirtualized:D},l,n),E=(0,A.useRef)(c),P=(0,A.useRef)(d);(0,A.useEffect)(()=>{},[c,d]);let N,R,F,j=!1,O=null,M=(0,A.useRef)(null);if(c&&r){N=r.useDraggableCollectionState({collection:s,selectionManager:u,preview:r.renderDragPreview?M:void 0}),r.useDraggableCollection({},N,n);let pt=r.DragPreview;O=r.renderDragPreview?A.default.createElement(pt,{ref:M},r.renderDragPreview):null}if(d&&r){R=r.useDroppableCollectionState({collection:s,selectionManager:u});let pt=r.dropTargetDelegate||f||new r.ListDropTargetDelegate(s,n,{orientation:i,layout:o,direction:p});F=r.useDroppableCollection({keyboardDelegate:$,dropTargetDelegate:pt},R,n),j=R.isDropTarget({type:"root"})}let{focusProps:z,isFocused:V,isFocusVisible:se}=Id(),Me=l.collection.size===0,ft={isDropTarget:j,isEmpty:Me,isFocused:V,isFocusVisible:se,layout:t.layout||"stack",orientation:i,state:l},Hn=Fn({...t,children:void 0,defaultClassName:"react-aria-ListBox",values:ft}),un=null;Me&&t.renderEmptyState&&(un=A.default.createElement("div",{role:"option",style:{display:"contents"}},t.renderEmptyState(ft)));let Ze=Nt(t,{global:!0});return A.default.createElement(ha,null,A.default.createElement(Kn.div,{...Ne(Ze,Hn,C,z,F?.collectionProps),ref:n,slot:t.slot||void 0,onScroll:t.onScroll,"data-drop-target":j||void 0,"data-empty":Me||void 0,"data-focused":V||void 0,"data-focus-visible":se||void 0,"data-layout":t.layout||"stack","data-orientation":i},A.default.createElement(Fo,{values:[[ef,t],[xa,l],[Es,{dragAndDropHooks:r,dragState:N,dropState:R}],[Ps,{elementType:"div"}],[Fd,{render:F1}],[Ss,{name:"ListBoxSection",render:D1}]]},A.default.createElement(_s,null,A.default.createElement(h,{collection:s,scrollRef:n,persistedKeys:bg(u,r,R),renderDropIndicator:Kd(r,R)}))),un,O))}function D1(e,t,n,r="react-aria-ListBoxSection"){let o=(0,A.useContext)(xa),{dragAndDropHooks:i,dropState:a}=(0,A.useContext)(Es),{CollectionBranch:l}=(0,A.useContext)(jr),[s,u]=os(),{headingProps:c,groupProps:d}=Yd({heading:u,"aria-label":e["aria-label"]??void 0}),p=Fn({...e,id:void 0,children:void 0,defaultClassName:r,values:void 0}),g=Nt(e,{global:!0});return delete g.id,A.default.createElement(Kn.section,{...Ne(g,p,d),ref:t},A.default.createElement(Ts.Provider,{value:{...c,ref:s}},A.default.createElement(l,{collection:o.collection,parent:n,renderDropIndicator:Kd(i,a)})))}function F1(e,t){t=Vi(t);let{dragAndDropHooks:n,dropState:r}=(0,A.useContext)(Es),{dropIndicatorProps:o,isHidden:i,isDropTarget:a}=n.useDropIndicator(e,r,t);return i?null:A.default.createElement(O1,{...e,dropIndicatorProps:o,isDropTarget:a,ref:t})}function K1(e,t){let{dropIndicatorProps:n,isDropTarget:r,...o}=e,i=Fn({...o,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}});return A.default.createElement(A.default.Fragment,null,A.default.createElement(Kn.div,{...n,...i,role:"option",ref:t,"data-drop-target":r||void 0}))}var O1=(0,A.forwardRef)(K1),A1=ua(Ur,function(t,n,r){let o=(0,A.useContext)(xa),{isLoading:i,onLoadMore:a,scrollOffset:l,...s}=t,u=(0,A.useRef)(null),c=(0,A.useMemo)(()=>({onLoadMore:a,collection:o?.collection,sentinelRef:u,scrollOffset:l}),[a,l,o?.collection]);va(c,u);let d=Fn({...s,id:void 0,children:r.rendered,defaultClassName:"react-aria-ListBoxLoadingIndicator",values:void 0}),p={tabIndex:-1};return A.default.createElement(A.default.Fragment,null,A.default.createElement("div",{style:{position:"relative",width:0,height:0},inert:ba(!0)},A.default.createElement("div",{"data-testid":"loadMoreSentinel",ref:u,style:{position:"absolute",height:1,width:1}})),i&&d.children&&A.default.createElement(A.default.Fragment,null,A.default.createElement(Kn.div,{...Ne(Nt(t,{global:!0}),p),...d,role:"option",ref:n},d.children)))});var jo=S(K(),1);function Hg(e){let[t,n]=Ho(e.isOpen,e.defaultOpen||!1,e.onOpenChange),[r,o]=(0,jo.useState)(null),i=(0,jo.useCallback)(()=>{n(!0)},[n]),a=(0,jo.useCallback)(()=>{n(!1)},[n]),l=(0,jo.useCallback)(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:i,close:a,toggle:l,point:r,setPoint:o}}var Vg=new WeakMap;function nf(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:o,onKeyUp:i,...a}=e;!e["aria-label"]&&e["aria-labelledby"];let l=Nt(e,{labelable:!0}),{listProps:s}=Rs({...a,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return Vg.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:Ne(l,{onKeyDown:o,onKeyUp:i},{role:"menu",...s,onKeyDown:u=>{(u.key!=="Escape"||e.shouldUseVirtualFocus)&&s.onKeyDown?.(u)}})}}function rf(e){let{heading:t,"aria-label":n}=e,r=Pt();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}var of=S(K(),1);function af(e){let t=Hg(e),[n,r]=(0,of.useState)(null),[o,i]=(0,of.useState)([]),a=()=>{i([]),t.close()};return{focusStrategy:n,...t,open(u=null){r(u),t.open()},toggle(u=null){r(u),t.toggle()},close(){a()},expandedKeysStack:o,openSubmenu:(u,c)=>{i(d=>c>d.length?d:[...d.slice(0,c),u])},closeSubmenu:(u,c)=>{i(d=>d[c]===u?d.slice(0,c):d)}}}var U=S(K(),1);var Fs=class{constructor(t,{expandedKeys:n}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t,n=n||new Set;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&(a.type==="section"||n.has(a.key)))for(let l of a.childNodes)r(l)};for(let a of t)r(a);let o=null,i=0;for(let[a,l]of this.keyMap)o?(o.nextKey=a,l.prevKey=o.key):(this.firstKey=a,l.prevKey=void 0),l.type==="item"&&(l.index=i++),o=l,o.nextKey=void 0;this.lastKey=o?.key??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey??null:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)??null}at(t){let n=[...this.getKeys()];return this.getItem(n[t])}};var Go=S(K(),1);function lf(e){let{onExpandedChange:t}=e,[n,r]=Ho(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),o=Xr(e),i=(0,Go.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=Ds(e,(0,Go.useCallback)(s=>new Fs(s,{expandedKeys:n}),[n]),null);return(0,Go.useEffect)(()=>{o.focusedKey!=null&&!a.getItem(o.focusedKey)&&o.setFocusedKey(null)},[a,o.focusedKey]),{collection:a,expandedKeys:n,disabledKeys:i,toggleKey:s=>{r(z1(n,s))},setExpandedKeys:r,selectionManager:new An(a,o)}}function z1(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}var df=(0,U.createContext)(null),Os=(0,U.createContext)(null),Ks=(0,U.createContext)(null),sf=(0,U.createContext)(null);var B1=(0,U.createContext)(null),Wg=class extends Wt{static{this.type="submenutrigger"}filter(t,n,r){let o=t.getItem(this.firstChildKey);if(o&&r(o.textValue,this)){let i=this.clone();return n.addDescendants(i,t),i}return null}};var ff=(0,U.forwardRef)(function(t,n){return[t,n]=Ko(t,n,df),U.default.createElement(sa,{content:U.default.createElement(ca,t)},r=>U.default.createElement(H1,{props:t,collection:r,menuRef:n}))});function H1({props:e,collection:t,menuRef:n}){[e,n]=Ko(e,n,Zi);let{filter:r,...o}=e,i=(0,U.useMemo)(()=>r?t.filter(r):t,[t,r]),a=lf({...e,collection:i,children:void 0}),l=(0,U.useContext)(Ks),{isVirtualized:s,CollectionRoot:u}=(0,U.useContext)(jr),{menuProps:c}=nf({...e,isVirtualized:s,onClose:e.onClose||l?.close},a,n),d=Fn({...e,children:void 0,defaultClassName:"react-aria-Menu",values:{isEmpty:a.collection.size===0}}),p=null;a.collection.size===0&&e.renderEmptyState&&(p=U.default.createElement("div",{role:"menuitem",style:{display:"contents"}},e.renderEmptyState()));let g=Nt(e,{global:!0});return U.default.createElement(ha,null,U.default.createElement(Kn.div,{...Ne(g,d,c),ref:n,slot:e.slot||void 0,"data-empty":a.collection.size===0||void 0,onScroll:e.onScroll},U.default.createElement(Fo,{values:[[Os,a],[Ps,{elementType:"div"}],[Ss,{name:"MenuSection",render:V1}],[B1,{parentMenuRef:n,shouldUseVirtualFocus:o?.shouldUseVirtualFocus}],[cf,{shouldCloseOnSelect:e.shouldCloseOnSelect}],[Zi,null],[jh,null],[sf,a.selectionManager],[Ks,l??af({})]]},U.default.createElement(_s,null,U.default.createElement(u,{collection:a.collection,persistedKeys:pg(a.selectionManager.focusedKey),scrollRef:n}))),p))}var uf=class extends An{constructor(t,n){super(t.collection,n),this.parent=t}get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(t,n){return this.parent.setFocusedKey(t,n)}setFocused(t){this.parent.setFocused(t)}get childFocusStrategy(){return this.parent.childFocusStrategy}};function V1(e,t,n,r="react-aria-MenuSection"){let o=(0,U.useContext)(Os),{CollectionBranch:i}=(0,U.useContext)(jr),[a,l]=os(),{headingProps:s,groupProps:u}=rf({heading:l,"aria-label":n.props["aria-label"]??void 0}),c=Fn({...e,id:void 0,children:void 0,defaultClassName:r,className:n.props?.className,style:n.props?.style,values:void 0}),d=(0,U.useContext)(sf),p=Xr(e),g=e.selectionMode!=null?new uf(d,p):d,y=md(cf)?.shouldCloseOnSelect,b=Nt(e,{global:!0});return delete b.id,U.default.createElement(Kn.section,{...Ne(b,c,u),ref:t},U.default.createElement(Fo,{values:[[Ts,{...s,ref:a}],[sf,g],[cf,{shouldCloseOnSelect:e.shouldCloseOnSelect??y}]]},U.default.createElement(i,{collection:o.collection,parent:n})))}var cf=(0,U.createContext)(null);var W1=ua(Ur,function(t,n,r){let o=(0,U.useContext)(Os),{isLoading:i,onLoadMore:a,scrollOffset:l,...s}=t,u=(0,U.useRef)(null),c=(0,U.useMemo)(()=>({onLoadMore:a,collection:o?.collection,sentinelRef:u,scrollOffset:l}),[a,l,o?.collection]);va(c,u);let d=Fn({...s,id:void 0,children:r.rendered,defaultClassName:"react-aria-MenuLoadingIndicator",values:void 0}),p={tabIndex:-1};return U.default.createElement(U.default.Fragment,null,U.default.createElement("div",{style:{position:"relative",width:0,height:0},inert:ba(!0)},U.default.createElement("div",{"data-testid":"loadMoreSentinel",ref:u,style:{position:"absolute",height:1,width:1}})),i&&d.children&&U.default.createElement(U.default.Fragment,null,U.default.createElement(Kn.div,{...Ne(Nt(t,{global:!0}),p),...d,role:"menuitem",ref:n},d.children)))});var pf=S(K(),1);var Ug=S(he(),1);var As=S(K(),1);var Gg=S(he(),1),le=e=>`var(--semantic-color-${e})`,ln=e=>`var(--semantic-layout-units-${e})`,jg=e=>`var(--contextual-layout-units-${e})`,ze=e=>`var(--semantic-type-${e})`,xn=e=>`var(--motion-${e})`;var ie={ring:le("stroke-action-secondary-rest"),ringHover:le("stroke-action-secondary-hover"),ringPressed:le("stroke-action-secondary-pressed"),ringOn:le("stroke-action-primary-strong-rest"),ringOnHover:le("stroke-action-primary-strong-hover"),ringOnPressed:le("stroke-action-primary-strong-pressed"),ringError:le("stroke-action-status-negative-rest"),ringErrorHover:le("stroke-action-status-negative-hover"),ringErrorPressed:le("stroke-action-status-negative-pressed"),ringDisabled:le("stroke-action-disabled"),dot:le("fill-action-primary-strong-rest"),dotHover:le("fill-action-primary-strong-hover"),dotPressed:le("fill-action-primary-strong-pressed"),dotError:le("fill-action-status-negative-strong-rest"),dotErrorHover:le("fill-action-status-negative-strong-hover"),dotErrorPressed:le("fill-action-status-negative-strong-pressed"),dotDisabled:le("fill-action-disabled"),layerHover:le("fill-action-selection-hover"),layerPressed:le("fill-action-selection-selected"),focusFill:le("fill-surface-elevated"),focusRing:le("stroke-focusring-base"),label:le("foreground-static-neutral-base"),labelDisabled:le("foreground-action-disabled"),groupLabel:le("foreground-action-secondary-rest"),groupLabelError:le("foreground-action-status-negative-on-subtle-hover"),required:le("foreground-static-negative-on-subtle"),help:le("foreground-action-secondary-rest"),helpError:le("foreground-static-negative-on-subtle"),helpErrorIcon:le("fill-action-status-negative-strong-rest")},ne={target:ln("accessibility-touch-target-aa-width"),targetH:ln("accessibility-touch-target-aa-height"),ringWidth:jg("selection-controls-borderwidth"),radius:ln("cornerradius-full"),controlGap:ln("gap-xxtight"),requiredGap:ln("gap-xxxtight"),rowGap:ln("gap-base"),labelEnd:ln("padding-base"),labelBlock:{Base:ln("padding-tight"),Large:ln("padding-xtight")},helpGap:ln("gap-tight"),helpIconTop:ln("borderwidth-base"),ring:{Base:20,Large:24},dot:{Base:10,Large:12},labelMax:480,helpMax:360,helpIcon:16},Mt={Base:{fontSize:ze("font-size-s"),lineHeight:ze("line-height-s-single"),letterSpacing:ze("letter-spacing-spacious")},Large:{fontSize:ze("font-size-r"),lineHeight:ze("line-height-r-single"),letterSpacing:ze("letter-spacing-wide")},group:{fontSize:ze("font-size-s"),lineHeight:ze("line-height-s-single"),letterSpacing:ze("letter-spacing-spacious"),fontWeight:ze("weight-medium")},help:{fontSize:ze("font-size-xs"),lineHeight:ze("line-height-xs-single"),letterSpacing:ze("letter-spacing-extraspacious")}},S4=`
|
|
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 kn=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 Hn(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={},zn=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,_n=H-pt;a+=Math.abs(xt)<=Math.abs(_n)?xt:_n}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,_n=se-Dt;l+=Math.abs(xt)<=Math.abs(_n)?xt:_n}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),Bn=S(K(),1);var R1=(0,Bn.createContext)(null);function Ds(e){let t=(0,Bn.useRef)({});return Bn.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:_n}=Hg({keyboardDelegate:n,selectionManager:t});c||(xt=Re(_n,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 Wn=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 Wn(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=Hn({...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(zn.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=Hn({...e,id:void 0,children:void 0,defaultClassName:r,values:void 0}),g=Nt(e,{global:!0});return delete g.id,A.default.createElement(zn.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=Hn({...o,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}});return A.default.createElement(A.default.Fragment,null,A.default.createElement(zn.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=Hn({...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(zn.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 Wn(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=Hn({...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(zn.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 Wn{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=Hn({...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(zn.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=Hn({...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(zn.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
17
|
font-family:${ze("family-brand")},sans-serif}
|
|
18
18
|
.pw-radio-group__label{display:inline-flex;gap:${ne.requiredGap};color:${ie.groupLabel};
|
|
@@ -34,12 +34,12 @@ Error generating stack: `+i.message+`
|
|
|
34
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};
|
|
@@ -72,64 +72,90 @@ 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 C4=(0,As.createContext)({size:"Base"});var E4=S(K(),1),Qg=S(he(),1);var yt=e=>`var(--semantic-color-${e})`,_4={neutral:{light:yt("foreground-static-neutral-faint"),subtle:yt("foreground-static-neutral-base"),base:yt("foreground-static-neutral-base"),contrast:yt("foreground-static-neutral-strong"),bold:yt("foreground-static-neutral-bold")},brand:yt("foreground-action-primary-on-subtle-rest"),info:yt("foreground-static-info-on-subtle"),warning:yt("foreground-static-attention-on-subtle"),danger:yt("foreground-static-negative-on-subtle"),negative:yt("foreground-static-negative-on-subtle"),positive:yt("foreground-static-positive-on-subtle"),"accent-amethyst":yt("foreground-static-info-on-subtle"),"accent-jade":yt("foreground-static-accent-jade-on-subtle"),"accent-seabreeze":yt("foreground-static-accent-seabreeze-on-subtle")};var X1=S(K(),1);var Xg=S(he(),1),q1=e=>`var(--semantic-color-${e})`,vt=e=>`var(--semantic-layout-units-${e})`,Yg=e=>`var(--contextual-layout-units-${e})`;var R4={radius:vt("cornerradius-large"),radiusX:vt("cornerradius-full"),border:vt("borderwidth-base"),padTop:vt("padding-xxxxtight"),padBottom:vt("padding-xxxxtight"),padLeft:vt("padding-xxxtight"),padRight:vt("padding-xxtight"),gap:vt("gap-xxxtight")},$r={pill:vt("padding-xxxtight"),text:vt("padding-xxxtight"),fieldGap:vt("gap-xxtight"),rowGap:vt("gap-xtight"),touchW:vt("accessibility-touch-target-aa-width"),touchH:vt("accessibility-touch-target-aa-height"),ring:q1("stroke-focusring-base"),ringWidth:Yg("focusring-width"),ringOffset:Yg("focusring-offset"),fieldMax:80,badgeMax:240,duration:"var(--motion-duration-2)",easing:"var(--motion-easing-standard)"};var M4={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,minWidth:$r.touchW,minHeight:$r.touchH,boxSizing:"border-box",padding:0,margin:0,border:0,background:"transparent",font:"inherit",color:"inherit",textDecoration:"none",outline:"none"};var I4=`background ${$r.duration} ${$r.easing}, color ${$r.duration} ${$r.easing}, box-shadow ${$r.duration} ${$r.easing}`;var qg=S(K(),1),Zg=S(he(),1),br=e=>`var(--semantic-color-${e})`,sn=e=>`var(--semantic-layout-units-${e})`,Xe=e=>`var(--semantic-type-${e})`;var K4={XXXS:{px:16,fontSize:Xe("font-size-xxxs"),lineHeight:Xe("line-height-xxxs-single"),radius:sn("cornerradius-small"),icon:10,badge:6},XXS:{px:20,fontSize:Xe("font-size-xxxs"),lineHeight:Xe("line-height-xxxs-single"),radius:sn("cornerradius-small"),icon:12,badge:7},XS:{px:24,fontSize:Xe("font-size-xxs"),lineHeight:Xe("line-height-xxs-single"),radius:sn("cornerradius-small"),icon:14,badge:8},S:{px:32,fontSize:Xe("font-size-s"),lineHeight:Xe("line-height-s-single"),radius:sn("cornerradius-small"),icon:20,badge:10},M:{px:40,fontSize:Xe("font-size-r"),lineHeight:Xe("line-height-r-single"),radius:sn("cornerradius-base"),icon:24,badge:12},L:{px:56,fontSize:Xe("font-size-l"),lineHeight:Xe("line-height-l-single"),radius:sn("cornerradius-large"),icon:34,badge:16},XL:{px:96,fontSize:Xe("font-size-xxl"),lineHeight:Xe("line-height-xxl-single"),radius:sn("cornerradius-xlarge"),icon:58,badge:28}},O4={fill:br("fill-static-brand-subtle"),foreground:br("foreground-static-brand-on-subtle"),imageFill:br("fill-static-neutral-faint"),stroke:br("stroke-static-neutral-base"),strokeWidth:sn("borderwidth-thin"),circle:sn("cornerradius-full"),badgeRing:br("stroke-static-neutral-mono"),badgeRingW:sn("borderwidth-base"),badge:{Positive:br("fill-static-positive-strong"),Attention:br("fill-static-attention-strong")},groupRing:br("fill-surface-elevated"),groupRingW:sn("borderwidth-thick"),family:Xe("family-brand"),weight:Xe("weight-semibold")};var t$=S(K(),1),mf=S(he(),1),_=e=>`var(--semantic-color-${e})`;var It=e=>`var(--contextual-layout-units-${e})`,wa=e=>`var(--semantic-type-${e})`,Jg={Fill:{Primary:{base:_("fill-action-primary-strong-rest"),hover:_("fill-action-primary-strong-hover"),pressed:_("fill-action-primary-strong-pressed"),disabled:_("fill-action-disabled")},Secondary:{base:_("fill-action-secondary-rest"),hover:_("fill-action-secondary-hover"),pressed:_("fill-action-secondary-pressed"),disabled:_("fill-action-disabled")},Tertiary:{base:_("fill-action-primary-subtle-rest"),hover:_("fill-action-primary-subtle-hover"),pressed:_("fill-action-primary-subtle-pressed"),disabled:_("fill-action-disabled")},Negative:{base:_("fill-action-status-negative-strong-rest"),hover:_("fill-action-status-negative-strong-hover"),pressed:_("fill-action-status-negative-strong-pressed"),disabled:_("fill-action-disabled")}},Outlined:{Primary:{base:"transparent",hover:_("fill-action-primary-subtle-hover"),pressed:_("fill-action-primary-subtle-pressed"),disabled:"transparent"},Secondary:{base:"transparent",hover:_("fill-action-secondary-hover"),pressed:_("fill-action-secondary-pressed"),disabled:"transparent"},Tertiary:{base:"transparent",hover:_("fill-action-primary-subtle-hover"),pressed:_("fill-action-primary-subtle-pressed"),disabled:"transparent"},Negative:{base:"transparent",hover:_("fill-action-status-negative-subtle-hover"),pressed:_("fill-action-status-negative-subtle-pressed"),disabled:"transparent"}}};Jg.Naked=Jg.Outlined;var e$={Fill:{Primary:{base:_("foreground-action-primary-on-strong"),hover:_("foreground-action-primary-on-strong"),pressed:_("foreground-action-primary-on-strong"),disabled:_("foreground-action-disabled")},Secondary:{base:_("foreground-action-secondary-rest"),hover:_("foreground-action-secondary-hover"),pressed:_("foreground-action-secondary-pressed"),disabled:_("foreground-action-disabled")},Tertiary:{base:_("foreground-action-primary-on-subtle-rest"),hover:_("foreground-action-primary-on-subtle-hover"),pressed:_("foreground-action-primary-on-subtle-pressed"),disabled:_("foreground-action-disabled")},Negative:{base:_("foreground-action-status-negative-on-strong"),hover:_("foreground-action-status-negative-on-strong"),pressed:_("foreground-action-status-negative-on-strong"),disabled:_("foreground-action-disabled")}},Outlined:{Primary:{base:_("foreground-action-primary-on-subtle-rest"),hover:_("foreground-action-primary-on-subtle-hover"),pressed:_("foreground-action-primary-on-subtle-pressed"),disabled:_("foreground-action-disabled")},Secondary:{base:_("foreground-action-secondary-rest"),hover:_("foreground-action-secondary-hover"),pressed:_("foreground-action-secondary-pressed"),disabled:_("foreground-action-disabled")},Tertiary:{base:_("foreground-action-primary-on-subtle-rest"),hover:_("foreground-action-primary-on-subtle-hover"),pressed:_("foreground-action-primary-on-subtle-pressed"),disabled:_("foreground-action-disabled")},Negative:{base:_("foreground-action-status-negative-on-subtle-rest"),hover:_("foreground-action-status-negative-on-subtle-hover"),pressed:_("foreground-action-status-negative-on-subtle-pressed"),disabled:_("foreground-action-disabled")}}};e$.Naked=e$.Outlined;var B4={Primary:{base:_("stroke-action-primary-strong-rest"),hover:_("stroke-action-primary-strong-hover"),pressed:_("stroke-action-primary-strong-pressed"),disabled:_("stroke-action-disabled")},Secondary:{base:_("stroke-action-secondary-rest"),hover:_("stroke-action-secondary-hover"),pressed:_("stroke-action-secondary-pressed"),disabled:_("stroke-action-disabled")},Tertiary:{base:_("stroke-action-primary-strong-rest"),hover:_("stroke-action-primary-strong-hover"),pressed:_("stroke-action-primary-strong-pressed"),disabled:_("stroke-action-disabled")},Negative:{base:_("stroke-action-status-negative-rest"),hover:_("stroke-action-status-negative-hover"),pressed:_("stroke-action-status-negative-pressed"),disabled:_("stroke-action-disabled")}},H4={radius:It("button-cornerradius"),border:It("button-borderwidth-rest"),borderEmphasis:It("button-borderwidth-selected"),gap:It("button-gap-horizontal"),touch:{pad:6,min:48},focusOutline:`${It("focusring-width")} solid ${_("stroke-focusring-base")}`,focusOffset:"0"},zs=(e,t,n)=>({fontFamily:wa("family-brand"),fontSize:wa(`font-size-${e}`),fontWeight:wa("weight-medium"),lineHeight:wa(`line-height-${t}`),letterSpacing:wa(`letter-spacing-${n}`)}),V4={L:{padH:It("button-padding-large-horizontal"),padV:It("button-padding-large-vertical"),iconWrap:26,iconInner:18,...zs("m","m-single","wide")},M:{padH:It("button-padding-medium-horizontal"),padV:It("button-padding-medium-vertical"),iconWrap:24,iconInner:16,...zs("r","r-single","wide")},S:{padH:It("button-padding-small-horizontal"),padV:It("button-padding-small-vertical"),iconWrap:20,iconInner:14,...zs("s","s-single","spacious")},XS:{padH:It("button-padding-xsmall-horizontal"),padV:It("button-padding-xsmall-vertical"),iconWrap:16,iconInner:12,...zs("xs","xs-single","extraspacious")}};var zn=S(he(),1),q=e=>`var(--semantic-color-${e})`,Q=e=>`var(--semantic-layout-units-${e})`,Z1=e=>`var(--contextual-layout-units-${e})`,ut=e=>`var(--semantic-type-${e})`,qe=e=>`var(--motion-${e})`;var B={panel:q("fill-surface-elevated"),panelBorder:q("stroke-static-neutral-faint"),slotDivider:q("stroke-static-neutral-base"),separator:q("stroke-static-neutral-base"),fillHover:q("fill-static-neutral-subtle"),fillPressed:q("fill-static-neutral-base"),fillSelected:q("fill-action-selection-selected"),fillDangerHover:q("fill-action-status-negative-subtle-hover"),fillDangerPressed:q("fill-action-status-negative-subtle-pressed"),stripe:q("fill-action-primary-strong-pressed"),label:q("foreground-static-neutral-strong"),labelHover:q("foreground-static-neutral-bold"),labelDanger:q("foreground-action-status-negative-on-subtle-rest"),labelDangerHover:q("foreground-action-status-negative-on-subtle-hover"),labelDangerPressed:q("foreground-action-status-negative-on-subtle-pressed"),disabled:q("foreground-action-disabled"),secondary:q("foreground-static-neutral-subtle"),reason:q("foreground-static-neutral-base"),check:q("foreground-action-primary-on-subtle-rest"),countFill:q("fill-static-neutral-base"),countText:q("foreground-static-neutral-bold"),countFillDisabled:q("fill-action-disabled"),swatchEdge:q("stroke-static-neutral-base"),dot:{positive:q("fill-static-positive-strong"),attention:q("fill-static-attention-strong"),negative:q("fill-static-negative-strong"),neutral:q("fill-static-neutral-strong")},statusTitle:q("foreground-static-neutral-bold"),statusBody:q("foreground-static-neutral-base"),focusRing:q("stroke-focusring-base"),trigger:q("foreground-action-secondary-rest"),triggerHover:q("foreground-action-secondary-hover"),buttonFill:q("fill-surface-elevated"),buttonFillHover:q("fill-action-selection-hover"),buttonBorder:q("stroke-action-secondary-rest"),avatarFill:q("fill-action-primary-subtle-rest"),avatarText:q("foreground-action-primary-on-subtle-rest")},T={panelRadius:Q("cornerradius-large"),panelBorder:Q("borderwidth-xthin"),shadow:"var(--elevation-lift)",listPadV:Q("padding-xtight"),listPadH:Q("padding-xxtight"),itemGap:Q("gap-xxxtight"),slotPad:Q("padding-xtight"),footerPad:Q("padding-tight"),footerGap:Q("gap-tight"),itemMinH:Q("accessibility-touch-target-aa-height"),itemPad:Q("padding-tight"),itemContentGap:Q("gap-medium"),leadGroupGap:Q("gap-tight"),textGap:Q("gap-xxxtight"),inlineGap:Q("gap-tight"),badgeGap:Q("gap-xxtight"),reasonGap:Q("gap-xxtight"),trailGap:Q("gap-xxtight"),itemRadius:Q("cornerradius-base"),fullRadius:Q("cornerradius-full"),swatchRadius:Q("cornerradius-small"),headerPadTop:{First:Q("padding-xxtight"),"After Separator":Q("padding-xtight"),Default:Q("padding-base")},headerPadL:Q("padding-tight"),headerPadR:Q("padding-xtight"),headerPadB:Q("padding-xxtight"),separatorMargin:Q("padding-xtight"),stripeW:Q("borderwidth-xthick"),stripeInset:Q("padding-xtight"),countPadH:Q("padding-xtight"),statusPadV:Q("padding-base"),statusPadH:Q("padding-tight"),statusGap:Q("gap-xxtight"),offset:8,width:280,minWidth:220,maxWidth:360,maxHeight:440,searchHeight:360,leadBox:20,glyph:18,dot:8,swatch:16,spinner:16,countMin:24,focusWidth:Z1("focusring-width"),triggerTarget:Q("accessibility-touch-target-aa-width"),triggerTargetH:Q("accessibility-touch-target-aa-height"),triggerGlyph:20,avatarBox:28,buttonPadV:Q("padding-xtight"),buttonPadH:Q("padding-tight"),buttonBorder:Q("borderwidth-base")},$e={label:{fontSize:ut("font-size-s"),lineHeight:ut("line-height-s-single"),fontWeight:ut("weight-medium")},support:{fontSize:ut("font-size-xs"),lineHeight:ut("line-height-xs-single"),fontWeight:ut("weight-regular")},header:{fontSize:ut("font-size-xs"),lineHeight:ut("line-height-xs-single"),fontWeight:ut("weight-semibold"),letterSpacing:ut("letter-spacing-wide")}},st=".pw-menu-item",n$=e=>`${st}:not([data-disabled]):is(${e})`,r$="[data-hovered],[data-focused],[data-open],[data-force=Hover],[data-force=Focus]",o$="[data-pressed],[data-force=Pressed]",J1=`
|
|
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 Vn=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
|
-
background:${
|
|
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}}
|
|
94
120
|
|
|
95
121
|
.pw-menu{display:flex;flex-direction:column;min-height:0;flex:1 1 auto;font-family:${ut("family-brand")},sans-serif}
|
|
96
|
-
.pw-menu--static{box-sizing:border-box;width:${T.width}px;max-width:100%;background:${
|
|
97
|
-
border:${T.panelBorder} solid ${
|
|
122
|
+
.pw-menu--static{box-sizing:border-box;width:${T.width}px;max-width:100%;background:${z.panel};
|
|
123
|
+
border:${T.panelBorder} solid ${z.panelBorder};border-radius:${T.panelRadius};box-shadow:${T.shadow};overflow:hidden}
|
|
98
124
|
.pw-menu--bare{width:100%}
|
|
99
|
-
.pw-menu__header{flex:none;padding:${T.slotPad};border-bottom:${T.panelBorder} solid ${
|
|
125
|
+
.pw-menu__header{flex:none;padding:${T.slotPad};border-bottom:${T.panelBorder} solid ${z.slotDivider}}
|
|
100
126
|
.pw-menu__footer{flex:none;display:flex;justify-content:flex-end;gap:${T.footerGap};
|
|
101
|
-
padding:${T.slotPad} ${T.footerPad} ${T.footerPad};border-top:${T.panelBorder} solid ${
|
|
127
|
+
padding:${T.slotPad} ${T.footerPad} ${T.footerPad};border-top:${T.panelBorder} solid ${z.slotDivider}}
|
|
102
128
|
.pw-menu__scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}
|
|
103
129
|
.pw-menu__list{display:flex;flex-direction:column;gap:${T.itemGap};padding:${T.listPadV} ${T.listPadH};outline:none}
|
|
104
130
|
.pw-menu--bare .pw-menu__list{padding:0}
|
|
105
|
-
.pw-menu__list[data-empty]:focus-visible{outline:${T.focusWidth} solid ${
|
|
131
|
+
.pw-menu__list[data-empty]:focus-visible{outline:${T.focusWidth} solid ${z.focusRing};outline-offset:calc(-1 * ${T.focusWidth});border-radius:${T.panelRadius}}
|
|
106
132
|
|
|
107
133
|
${st}{position:relative;display:flex;align-items:flex-start;gap:${T.itemContentGap};box-sizing:border-box;
|
|
108
134
|
min-height:${T.itemMinH};padding:${T.itemPad};border-radius:${T.itemRadius};
|
|
109
|
-
color:${
|
|
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
|
-
${
|
|
114
|
-
${st}:not([data-disabled]):is([data-selected],[data-current]){background:${
|
|
115
|
-
${st}:is([data-focus-visible],[data-force=Focus]){outline:${T.focusWidth} solid ${
|
|
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}}
|
|
140
|
+
${st}:not([data-disabled]):is([data-selected],[data-current]){background:${z.fillSelected};color:${z.label}}
|
|
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
|
-
${st}[data-tone=Destructive]{color:${
|
|
118
|
-
${st}[data-tone=Destructive]:not([data-disabled]):is(${
|
|
119
|
-
${st}[data-tone=Destructive]:not([data-disabled]):is(${
|
|
120
|
-
${st}[data-disabled]{color:${
|
|
143
|
+
${st}[data-tone=Destructive]{color:${z.labelDanger}}
|
|
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}}
|
|
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}}
|
|
123
149
|
.pw-menu-item__lead{flex:none;width:${T.leadBox}px;height:${T.leadBox}px;display:inline-flex;align-items:center;justify-content:center}
|
|
124
150
|
.pw-menu-item__lead .material-symbols-rounded,.pw-menu-item__trail .material-symbols-rounded{font-size:${T.glyph}px}
|
|
125
|
-
.pw-menu-item__check{color:${
|
|
126
|
-
${st}[data-disabled] .pw-menu-item__check{color:${
|
|
151
|
+
.pw-menu-item__check{color:${z.check}}
|
|
152
|
+
${st}[data-disabled] .pw-menu-item__check{color:${z.disabled}}
|
|
127
153
|
.pw-menu-item__lead--hidden{visibility:hidden}
|
|
128
154
|
.pw-menu-item__control{overflow:hidden}
|
|
129
155
|
.pw-menu-item__control > *{flex:none;pointer-events:none}
|
|
130
156
|
.pw-menu-item__lead--avatar{width:auto;height:auto}
|
|
131
157
|
.pw-menu-item__dot{width:${T.dot}px;height:${T.dot}px;border-radius:${T.fullRadius}}
|
|
132
|
-
.pw-menu-item__swatch{box-sizing:border-box;width:${T.swatch}px;height:${T.swatch}px;border-radius:${T.swatchRadius};border:${T.panelBorder} solid ${
|
|
158
|
+
.pw-menu-item__swatch{box-sizing:border-box;width:${T.swatch}px;height:${T.swatch}px;border-radius:${T.swatchRadius};border:${T.panelBorder} solid ${z.swatchEdge}}
|
|
133
159
|
|
|
134
160
|
.pw-menu-item__text{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:${T.textGap}}
|
|
135
161
|
.pw-menu-item__text[data-inline]{flex-direction:row;align-items:baseline;gap:${T.inlineGap}}
|
|
@@ -137,58 +163,76 @@ ${st}[data-disabled] .pw-menu-item__check{color:${B.disabled}}
|
|
|
137
163
|
.pw-menu-item__label{display:block;flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
138
164
|
.pw-menu-item__label-row > :not(.pw-menu-item__label){flex:none}
|
|
139
165
|
.pw-menu-item__desc{font-size:${$e.support.fontSize};line-height:${$e.support.lineHeight};font-weight:${$e.support.fontWeight};
|
|
140
|
-
color:${
|
|
166
|
+
color:${z.secondary};overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
|
|
141
167
|
.pw-menu-item__text[data-inline] .pw-menu-item__desc{flex:0 1 auto;display:block;white-space:nowrap;text-overflow:ellipsis}
|
|
142
|
-
.pw-menu-item__reason{display:flex;align-items:center;gap:${T.reasonGap};color:${
|
|
168
|
+
.pw-menu-item__reason{display:flex;align-items:center;gap:${T.reasonGap};color:${z.reason};
|
|
143
169
|
font-size:${$e.support.fontSize};line-height:${$e.support.lineHeight};font-weight:${$e.support.fontWeight}}
|
|
144
170
|
.pw-menu-item__reason .material-symbols-rounded{font-size:${T.spinner}px}
|
|
145
|
-
${st}[data-disabled] .pw-menu-item__desc{color:${
|
|
171
|
+
${st}[data-disabled] .pw-menu-item__desc{color:${z.disabled}}
|
|
146
172
|
|
|
147
173
|
.pw-menu-item__trail{flex:none;display:inline-flex;align-items:center;gap:${T.trailGap};margin-left:auto;min-height:${$e.label.lineHeight};
|
|
148
|
-
color:${
|
|
174
|
+
color:${z.secondary};font-size:${$e.support.fontSize};line-height:${$e.support.lineHeight};font-weight:${$e.support.fontWeight};font-variant-numeric:tabular-nums}
|
|
149
175
|
.pw-menu-item__kbd{font-family:inherit;font-size:inherit}
|
|
150
176
|
.pw-menu-item__count{box-sizing:border-box;min-width:${T.countMin}px;text-align:center;padding:0 ${T.countPadH};border-radius:${T.fullRadius};
|
|
151
|
-
background:${
|
|
152
|
-
${st}[data-selected] .pw-menu-item__count{background:${
|
|
153
|
-
${st}[data-disabled] .pw-menu-item__trail{color:${
|
|
154
|
-
${st}[data-disabled] .pw-menu-item__count{background:${
|
|
177
|
+
background:${z.countFill};color:${z.countText}}
|
|
178
|
+
${st}[data-selected] .pw-menu-item__count{background:${z.panel}}
|
|
179
|
+
${st}[data-disabled] .pw-menu-item__trail{color:${z.disabled}}
|
|
180
|
+
${st}[data-disabled] .pw-menu-item__count{background:${z.countFillDisabled};color:${z.disabled}}
|
|
155
181
|
|
|
156
182
|
.pw-menu-item__stripe{position:absolute;left:0;top:${T.stripeInset};bottom:${T.stripeInset};width:${T.stripeW};
|
|
157
183
|
border-radius:0 ${T.itemRadius} ${T.itemRadius} 0;background:transparent}
|
|
158
|
-
${st}:is([data-selected],[data-current]) .pw-menu-item__stripe{background:${
|
|
184
|
+
${st}:is([data-selected],[data-current]) .pw-menu-item__stripe{background:${z.stripe}}
|
|
159
185
|
|
|
160
186
|
.pw-menu-section{display:flex;flex-direction:column;gap:${T.itemGap}}
|
|
161
|
-
.pw-menu-section__header{padding:${T.headerPadTop.Default} ${T.headerPadR} ${T.headerPadB} ${T.headerPadL};color:${
|
|
187
|
+
.pw-menu-section__header{padding:${T.headerPadTop.Default} ${T.headerPadR} ${T.headerPadB} ${T.headerPadL};color:${z.secondary};
|
|
162
188
|
font-size:${$e.header.fontSize};line-height:${$e.header.lineHeight};font-weight:${$e.header.fontWeight};letter-spacing:${$e.header.letterSpacing}}
|
|
163
189
|
.pw-menu__list > .pw-menu-section:first-child > .pw-menu-section__header,.pw-menu-section__header[data-position=First]{padding-top:${T.headerPadTop.First}}
|
|
164
190
|
.pw-menu-separator + .pw-menu-section > .pw-menu-section__header,.pw-menu-section__header[data-position="After Separator"]{padding-top:${T.headerPadTop["After Separator"]}}
|
|
165
|
-
.pw-menu-separator{height:0;border:0;border-top:${T.panelBorder} solid ${
|
|
191
|
+
.pw-menu-separator{height:0;border:0;border-top:${T.panelBorder} solid ${z.separator};margin:${T.separatorMargin}}
|
|
166
192
|
|
|
167
193
|
.pw-menu-status{display:flex;flex-direction:column;align-items:flex-start;gap:${T.statusGap};padding:${T.statusPadV} ${T.statusPadH};
|
|
168
|
-
color:${
|
|
194
|
+
color:${z.statusBody};font-size:${$e.label.fontSize};line-height:${$e.label.lineHeight};font-weight:${ut("weight-regular")}}
|
|
169
195
|
.pw-menu-status__row{display:flex;align-items:center;gap:${T.leadGroupGap}}
|
|
170
|
-
.pw-menu-status__title{color:${
|
|
196
|
+
.pw-menu-status__title{color:${z.statusTitle};font-weight:${$e.label.fontWeight}}
|
|
171
197
|
.pw-menu-status__body{font-size:${$e.support.fontSize};line-height:${$e.support.lineHeight}}
|
|
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 ${
|
|
176
|
-
.pw-menu-trigger__icon{display:inline-flex;align-items:center;justify-content:center;flex:none;padding:0;border:0;background:transparent;color:${
|
|
177
|
-
.pw-menu-trigger__icon:is(:hover,[aria-expanded=true]){color:${
|
|
201
|
+
transition:color ${ye("duration-2")} ${ye("easing-standard")},background-color ${ye("duration-2")} ${ye("easing-standard")}}
|
|
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}}
|
|
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};
|
|
179
|
-
background:${
|
|
205
|
+
background:${z.buttonFill};border:${T.buttonBorder} solid ${z.buttonBorder};border-radius:${T.itemRadius};color:${z.trigger};
|
|
180
206
|
font-size:${$e.label.fontSize};line-height:${$e.label.lineHeight}}
|
|
181
|
-
.pw-menu-trigger__button:hover{background:${
|
|
207
|
+
.pw-menu-trigger__button:hover{background:${z.buttonFillHover}}
|
|
182
208
|
.pw-menu-trigger__avatar{display:inline-flex;align-items:center;justify-content:center;flex:none;width:${T.avatarBox}px;height:${T.avatarBox}px;
|
|
183
|
-
border:0;border-radius:${T.itemRadius};background:${
|
|
184
|
-
.pw-menu-trigger :is(.pw-menu-trigger__icon,.pw-menu-trigger__button,.pw-menu-trigger__avatar):focus-visible{outline:${T.focusWidth} solid ${
|
|
209
|
+
border:0;border-radius:${T.itemRadius};background:${z.avatarFill};color:${z.avatarText};font-size:${ut("font-size-xxs")};font-weight:${ut("weight-semibold")}}
|
|
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}}
|
|
211
|
+
|
|
212
|
+
/* Below 768 the panel opens as a bottom sheet from the BottomSheet tokens, the
|
|
213
|
+
way the approved demo draws it (smallScreen="float" keeps it floating). The scrim is a spread shadow, so a press outside
|
|
214
|
+
still reaches the page and closes the menu. */
|
|
215
|
+
@media (max-width: 767px){
|
|
216
|
+
.pw-menu-panel[data-small-screen=sheet]{position:fixed !important;top:auto !important;bottom:0 !important;left:0 !important;right:0 !important;
|
|
217
|
+
width:auto;max-width:${cn.maxWidth}px;margin:0 auto;max-height:calc(var(--visual-viewport-height,100vh) - ${cn.topClearance}px) !important;
|
|
218
|
+
padding-top:${cn.handleZone}px;padding-bottom:env(safe-area-inset-bottom,0);
|
|
219
|
+
background:${kf.surface};border-bottom:0;border-radius:${cn.radius} ${cn.radius} 0 0;box-shadow:0 0 0 100vmax ${kf.overlay}}
|
|
220
|
+
.pw-menu-panel[data-small-screen=sheet]::before{content:"";position:absolute;top:${(cn.handleZone-cn.pillHeight)/2}px;left:50%;
|
|
221
|
+
width:${cn.pillWidth}px;height:${cn.pillHeight}px;margin-left:-${cn.pillWidth/2}px;border-radius:${cn.pillRadius};background:${kf.handle}}
|
|
222
|
+
.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}
|
|
223
|
+
.pw-menu-panel[data-small-screen=sheet][data-exiting]{animation:pw-menu-sheet-out ${ye("duration-4")} ${ye("easing-accelerate")} both}
|
|
224
|
+
@keyframes pw-menu-sheet-in{from{transform:translateY(100%)}to{transform:none}}
|
|
225
|
+
@keyframes pw-menu-sheet-out{from{transform:none}to{transform:translateY(100%)}}
|
|
226
|
+
}
|
|
185
227
|
|
|
186
228
|
@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 ${
|
|
229
|
+
.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}
|
|
230
|
+
.pw-menu-panel[data-small-screen=sheet][data-exiting]{animation:pw-menu-out ${ye("duration-2")} ${ye("easing-standard")} both}
|
|
231
|
+
.pw-menu-panel[data-entering],.pw-menu-panel[data-placement=top][data-entering]{animation:pw-menu-fade ${ye("duration-2")} ${ye("easing-standard")} both}
|
|
232
|
+
.pw-menu-panel[data-exiting]{animation:pw-menu-out ${ye("duration-2")} ${ye("easing-standard")} both}
|
|
189
233
|
@keyframes pw-menu-fade{from{opacity:0}to{opacity:1}}
|
|
190
234
|
}
|
|
191
|
-
`,hf=!1;function ex(){(0,Bn.useEffect)(()=>{if(hf||typeof document>"u"||document.getElementById("pw-popover-menu-css")){hf=!0;return}let e=document.createElement("style");e.id="pw-popover-menu-css",e.textContent=J1,document.head.appendChild(e),hf=!0},[])}var tx=(0,Bn.createContext)("actions"),i$=(0,Bn.createContext)(null);function a$({mode:e="actions",label:t,header:n,footer:r,emptyState:o,maxHeight:i,framed:a=!1,bare:l=!1,className:s="",children:u,...c}){ex();let d=e==="options"?tf:ff,p={...c,escapeKeyBehavior:c.escapeKeyBehavior??"none"};return(0,zn.jsx)(tx.Provider,{value:e,children:(0,zn.jsxs)("div",{className:`pw-menu${a?" pw-menu--static":""}${l?" pw-menu--bare":""}${s?` ${s}`:""}`,children:[n&&(0,zn.jsx)("div",{className:"pw-menu__header",children:n}),(0,zn.jsx)("div",{className:"pw-menu__scroll",style:i?{maxHeight:i}:void 0,children:(0,zn.jsx)(d,{"aria-label":t,className:"pw-menu__list",renderEmptyState:o?()=>o:void 0,...p,children:u})}),r&&(0,zn.jsx)("div",{className:"pw-menu__footer",children:r})]})})}var Pe=S(he(),1),Sa=e=>`var(--semantic-color-${e})`,ct=e=>`var(--semantic-layout-units-${e})`,Ca=e=>`var(--semantic-type-${e})`,wn=e=>`var(--motion-${e})`,Qo={surface:Sa("fill-surface-elevated"),overlay:Sa("scrim-subtle"),handle:Sa("fill-static-neutral-strong"),title:Sa("foreground-static-neutral-strong"),footerBorder:Sa("stroke-static-neutral-faint"),shadow:"var(--elevation-sheet)"},ue={radius:ct("cornerradius-xlarge"),sheetGap:ct("gap-tight"),maxWidth:640,topClearance:56,handleZone:20,pillWidth:32,pillHeight:4,pillRadius:ct("cornerradius-full"),headerMinH:ct("accessibility-touch-target-aa-height"),headerPadTop:ct("padding-xtight"),headerPadX:ct("padding-xxxxtight"),headerPadBottom:ct("padding-xxxtight"),headerGap:ct("gap-xxtight"),titleInset:ct("padding-base"),bodyPad:ct("padding-xtight"),bodyGap:ct("gap-xxtight"),footerBorder:ct("borderwidth-base"),footerPadTop:ct("padding-tight"),footerPad:ct("padding-base"),footerGap:ct("gap-tight"),dismissDistance:80,flickSpeed:.5},nx={title:{fontFamily:Ca("family-brand"),fontSize:Ca("font-size-s"),fontWeight:Ca("weight-semibold"),lineHeight:Ca("line-height-s-tight"),letterSpacing:Ca("letter-spacing-wide")}},qr={enter:`pw-bottom-sheet-up ${wn("duration-5")} ${wn("easing-emphasized")} both`,exit:`pw-bottom-sheet-down ${wn("duration-4")} ${wn("easing-accelerate")} both`,fadeIn:`pw-bottom-sheet-fade-in ${wn("duration-4")} ${wn("easing-standard")} both`,fadeOut:`pw-bottom-sheet-fade-out ${wn("duration-4")} ${wn("easing-standard")} both`,settle:`transform ${wn("duration-4")} ${wn("easing-decelerate")}`},rx="@keyframes pw-bottom-sheet-up{from{transform:translateY(100%)}to{transform:none}}@keyframes pw-bottom-sheet-down{from{transform:none}to{transform:translateY(100%)}}@keyframes pw-bottom-sheet-fade-in{from{opacity:0}to{opacity:1}}@keyframes pw-bottom-sheet-fade-out{from{opacity:1}to{opacity:0}}.pw-bottom-sheet__body{scrollbar-width:thin}";function ox(){(0,ye.useLayoutEffect)(()=>{if(typeof document>"u"||document.getElementById("pw-bottom-sheet-css"))return;let e=document.createElement("style");e.id="pw-bottom-sheet-css",e.textContent=rx,document.head.appendChild(e)},[])}var l$='button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',ix=':is([role="menuitem"], [role="menuitemradio"], [role="menuitemcheckbox"]):not([aria-disabled="true"])';function ax(){return(0,Pe.jsx)("div",{"aria-hidden":"true","data-part":"handle",style:{height:ue.handleZone,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:(0,Pe.jsx)("div",{style:{width:ue.pillWidth,height:ue.pillHeight,borderRadius:ue.pillRadius,background:Qo.handle}})})}function lx({title:e,titleId:t,titleRef:n,showBack:r=!1,onBack:o,onClose:i,backLabel:a="Back",closeLabel:l="Close"}){return(0,Pe.jsxs)("div",{"data-part":"header",style:{display:"flex",alignItems:"center",gap:ue.headerGap,minHeight:ue.headerMinH,boxSizing:"border-box",padding:`${ue.headerPadTop} ${ue.headerPadX} ${ue.headerPadBottom}`},children:[r&&(0,Pe.jsx)(ns,{name:"arrow_back",size:"Medium",label:a,onClick:o}),(0,Pe.jsx)("div",{style:{flex:1,minWidth:0,paddingLeft:ue.titleInset},children:(0,Pe.jsx)("h2",{id:t,ref:n,tabIndex:-1,style:{margin:0,outline:"none",color:Qo.title,...nx.title,overflowWrap:"anywhere",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:e})}),(0,Pe.jsx)(ns,{name:"close",size:"Medium",label:l,onClick:i})]})}function sx({children:e}){return(0,Pe.jsx)("div",{"data-part":"footer",style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:ue.footerGap,flexShrink:0,borderTop:`${ue.footerBorder} solid ${Qo.footerBorder}`,padding:`${ue.footerPadTop} ${ue.footerPad} calc(${ue.footerPad} + env(safe-area-inset-bottom, 0px))`},children:e})}function ux({onClick:e,animation:t,opacity:n}){return(0,Pe.jsx)("div",{"data-part":"overlay","aria-hidden":"true",onClick:e,style:{position:"absolute",inset:0,background:Qo.overlay,animation:t,opacity:n}})}function u$({open:e,onOpenChange:t,title:n,children:r,menu:o=!1,menuProps:i,showHandle:a=!0,footer:l,showBack:s=!1,onBack:u,initialFocus:c="auto",returnFocusRef:d,closeLabel:p="Close",backLabel:g="Back",container:y,contained:b=!1,className:D="",style:m}){ox();let f=Dr(),h=`pwbs${(0,ye.useId)().replace(/[^a-zA-Z0-9]/g,"")}`,[$,C]=(0,ye.useState)(!!e),[E,P]=(0,ye.useState)(!1),[N,R]=(0,ye.useState)(0),[F,j]=(0,ye.useState)(!1),O=(0,ye.useRef)(null),M=(0,ye.useRef)(null),z=(0,ye.useRef)(null),V=(0,ye.useRef)(null),se=(0,ye.useRef)(null),Me=(0,ye.useRef)(null),ft=()=>t?.(!1);(0,ye.useEffect)(()=>{e?(typeof document<"u"&&(se.current=document.activeElement),P(!1),R(0),C(!0)):$&&P(!0)},[e]);let Hn=Y=>{Y.target!==O.current||!E||(C(!1),P(!1),R(0),un.current=!0)},un=(0,ye.useRef)(!1);(0,ye.useEffect)(()=>{if(!$||!V.current||b)return;let Y=V.current,v=document.body.style.overflow;document.body.style.overflow="hidden";let Ce=[...Y.parentNode?.children||[]].filter(oe=>oe!==Y&&!oe.inert&&oe.tagName!=="SCRIPT"&&oe.tagName!=="STYLE");return Ce.forEach(oe=>{oe.inert=!0}),()=>{document.body.style.overflow=v,Ce.forEach(oe=>{oe.inert=!1})}},[$]),(0,ye.useEffect)(()=>{if($||!un.current)return;un.current=!1;let Y=d?.current||se.current;Y&&Y.isConnected&&typeof Y.focus=="function"&&Y.focus()},[$]),(0,ye.useEffect)(()=>{if(!$||E||!O.current||b)return;let Y=M.current?[...M.current.querySelectorAll(ix)]:[],v=z.current;c==="first"?v=Y[0]||O.current.querySelector(l$)||v:c==="auto"&&o&&Y.length&&(v=Y.find(k=>k.getAttribute("aria-checked")==="true")||Y[0]),v?.focus({preventScroll:!0})},[$,E]);let Ze=(0,ye.useRef)(!0);(0,ye.useEffect)(()=>{if(Ze.current){Ze.current=!1;return}$&&!b&&z.current?.focus({preventScroll:!0})},[s]);let pt=Y=>{if(Y.key==="Escape"){Y.stopPropagation(),Y.nativeEvent?.stopImmediatePropagation?.(),ft();return}if(Y.key==="Tab"&&O.current){let v=[...O.current.querySelectorAll(l$)].filter(oe=>oe.offsetParent!==null||oe===document.activeElement);if(!v.length){Y.preventDefault();return}let k=v[0],Ce=v[v.length-1];Y.shiftKey&&(document.activeElement===k||document.activeElement===z.current)?(Y.preventDefault(),Ce.focus()):!Y.shiftKey&&document.activeElement===Ce&&(Y.preventDefault(),k.focus());return}},cn=Y=>{Y.button!==void 0&&Y.button!==0||M.current?.contains(Y.target)&&M.current.scrollTop>0||(Me.current={y:Y.clientY,t:performance.now(),id:Y.pointerId,active:!1})},Dt=Y=>{let v=Me.current;if(!v||v.id!==Y.pointerId)return;let k=Y.clientY-v.y;if(!v.active){if(k<-4){Me.current=null;return}if(k<8)return;v.active=!0,j(!0),O.current?.setPointerCapture?.(Y.pointerId)}R(Math.max(0,k))},jt=Y=>{let v=Me.current;if(Me.current=null,!v||!v.active)return;j(!1);let k=Math.max(0,Y.clientY-v.y),Ce=k/Math.max(1,performance.now()-v.t);k>ue.dismissDistance||Ce>ue.flickSpeed?ft():R(0)};if(!$||typeof document>"u")return null;let Ft=f?E?qr.fadeOut:qr.fadeIn:E?qr.exit:qr.enter,xt=N>0&&!E,Cn=xt&&O.current?Math.max(0,1-N/O.current.offsetHeight):void 0,Yo=(0,Pe.jsxs)("div",{ref:V,className:`pw-bottom-sheet ${D}`,"data-open":!E||void 0,style:{position:b?"absolute":"fixed",inset:0,zIndex:b?1:1e3,display:"flex",flexDirection:"column",justifyContent:"flex-end",alignItems:"center",...m},children:[(0,Pe.jsx)(ux,{onClick:ft,animation:E?qr.fadeOut:qr.fadeIn,opacity:Cn}),(0,Pe.jsxs)("div",{ref:O,role:"dialog","aria-modal":"true","aria-labelledby":h,onKeyDown:pt,onAnimationEnd:Hn,onPointerDown:cn,onPointerMove:Dt,onPointerUp:jt,onPointerCancel:jt,style:{position:"relative",width:"100%",maxWidth:ue.maxWidth,boxSizing:"border-box",maxHeight:b?`calc(100% - ${ue.topClearance}px)`:`calc(100dvh - ${ue.topClearance}px)`,display:"flex",flexDirection:"column",gap:ue.sheetGap,background:Qo.surface,boxShadow:Qo.shadow,borderRadius:`${ue.radius} ${ue.radius} 0 0`,animation:xt?"none":Ft,transform:xt?`translateY(${N}px)`:void 0,transition:F||f?"none":qr.settle,touchAction:"pan-y"},children:[(0,Pe.jsxs)("div",{"data-part":"top",style:{display:"flex",flexDirection:"column",flexShrink:0},children:[a&&(0,Pe.jsx)(ax,{}),(0,Pe.jsx)(lx,{title:n,titleId:h,titleRef:z,showBack:s,onBack:u,onClose:ft,closeLabel:p,backLabel:g})]}),(0,Pe.jsx)("div",{ref:M,className:"pw-bottom-sheet__body","data-part":"body",style:{display:"flex",flexDirection:"column",gap:ue.bodyGap,minHeight:0,flex:"0 1 auto",overflowY:"auto",overflowX:"hidden",overscrollBehavior:"contain",padding:l?`0 ${ue.bodyPad} ${ue.bodyPad}`:`0 ${ue.bodyPad} calc(${ue.bodyPad} + env(safe-area-inset-bottom, 0px))`},children:(0,Pe.jsx)(i$.Provider,{value:ft,children:o?(0,Pe.jsx)(a$,{bare:!0,label:n,...i,children:r}):r})}),l&&(0,Pe.jsx)(sx,{children:l})]})]});return b?Yo:(0,s$.createPortal)(Yo,y||document.body)}var w=S(he(),1),gf=e=>e?{inert:"","aria-hidden":!0}:{};Jl();var re=e=>`var(--semantic-color-${e})`,$f=e=>`var(${e})`,dt=e=>`var(--semantic-layout-units-${e})`,Zr=e=>`var(--contextual-layout-units-${e})`,c$=e=>typeof e=="number"?-e:`calc(-1 * ${e})`,W={fill:{navBase:"transparent",navHover:re("fill-action-selection-hover"),navActive:re("fill-action-selection-selected"),navTrail:re("fill-action-selection-trail"),infoSubtle:re("stroke-static-neutral-faint")},surface:{navLight:re("fill-surface-elevated"),navElevated:re("fill-surface-elevated")},text:{navBase:re("foreground-action-secondary-rest"),navHover:re("foreground-action-secondary-hover"),navActive:re("foreground-action-secondary-pressed"),navDisabled:re("foreground-action-disabled"),secondary:re("foreground-static-neutral-subtle"),secondarySubtle:re("foreground-static-neutral-subtle"),strong:re("foreground-static-neutral-strong")},icon:{navBase:re("foreground-action-secondary-rest"),navHover:re("foreground-action-secondary-hover"),navActive:re("foreground-action-secondary-pressed"),navDisabled:re("foreground-action-disabled"),actionSecondary:re("foreground-action-secondary-rest")},indicator:re("fill-action-selection-indicator"),radius:Zr("navitem-cornerradius")},L={navPadH:Zr("sidenav-padding-horizontal-expanded"),navColPadH:Zr("sidenav-padding-horizontal-collapsed"),navPadTop:Zr("sidenav-padding-vertical"),navW:Zr("sidenav-width-expanded"),navWcol:Zr("sidenav-width-collapsed"),menuGap:Zr("sidenav-gap-vertical"),menuPadT:dt("padding-tight"),menuPadB:dt("padding-xxwide"),itemH:dt("accessibility-touch-target-aa-height"),iconWrap:24,iconInner:16,rowPadH:dt("padding-tight"),railIconInset:dt("padding-xxtight"),textPad:dt("padding-xtight"),childIndent:24,stripeW:4,stripeOuterPadV:dt("padding-xxxtight"),stripeInnerPadV:dt("padding-xxtight"),stripeRadius:dt("cornerradius-base"),itemPadH:dt("padding-xxtight"),chevPad:"var(--semantic-layout-units-padding-xxxxtight, 2px)",chevBox:20,chevFrame:16,chevGlyph:12,childRowPadL:dt("padding-tight"),childMainPadL:dt("padding-relaxed"),colPadL:dt("padding-medium"),colPadR:dt("padding-tight"),collapseGap:dt("padding-xxtight")};function p$({visible:e,inset:t}){return(0,w.jsx)("div",{style:{width:L.stripeW,alignSelf:"stretch",display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",padding:t?`${t} 0`:`calc(${L.stripeOuterPadV} + ${L.stripeInnerPadV}) 0`,boxSizing:"border-box",flexShrink:0},children:(0,w.jsx)("div",{style:{flex:"1 0 0",width:L.stripeW,minHeight:1,borderRadius:`0 ${L.stripeRadius} ${L.stripeRadius} 0`,backgroundColor:e?W.indicator:"transparent",transition:"background-color var(--motion-duration-3) var(--motion-easing-standard)"}})})}function d$({item:e,isActive:t,isTrail:n,isExpanded:r,isSidebarCollapsed:o,isChild:i,onClick:a,onToggle:l,popoverOpen:s,anchorRect:u,onPopoverEnter:c,onPopoverLeave:d,activeId:p,chevronUp:g,chevronDown:y,collapseIcon:b,expandIcon:D}){let[m,f]=(0,ve.useState)(!1),h=!!(e.children&&e.children.length),$=(0,ve.useRef)(null),C=h&&r&&!o,E=n&&(!r||o),N=E||t&&!(o&&h),R=!!e.disabled,F=R?W.fill.navBase:t||E?W.fill.navActive:C?W.fill.navTrail:m?W.fill.navHover:W.fill.navBase,j=R?W.text.navDisabled:t||E||C?W.text.navActive:m?W.text.navHover:W.text.navBase,O=R?W.icon.navDisabled:t||E||C?W.icon.navActive:m?W.icon.navHover:W.icon.navBase,M=()=>{R||(h&&!o?l(e.id):a(e.id))};return(0,w.jsxs)("div",{ref:$,style:{position:"relative"},children:[(0,w.jsxs)("div",{className:Zl,role:"button",tabIndex:R?-1:0,"aria-current":t?"page":void 0,"aria-disabled":R?!0:void 0,"aria-expanded":h&&!o?r:void 0,onClick:M,onKeyDown:z=>!R&&(z.key==="Enter"||z.key===" ")&&M(),onMouseEnter:()=>{if(!R&&(f(!0),o&&c)){let z=$.current?$.current.getBoundingClientRect():null;c(e.id,z)}},onMouseLeave:()=>{R||(f(!1),o&&d&&d())},style:{display:"flex",alignItems:"center",minHeight:L.itemH,width:o?L.itemH:"100%",marginLeft:o?"auto":void 0,marginRight:o?"auto":void 0,paddingRight:o?L.railIconInset:void 0,boxSizing:"border-box",borderRadius:W.radius,backgroundColor:F,cursor:R?"not-allowed":"pointer",overflow:"hidden",transition:"background-color var(--motion-duration-3) var(--motion-easing-standard)",userSelect:"none"},children:[(0,w.jsx)(p$,{visible:N}),!i&&e.icon&&(0,w.jsx)("div",{style:{width:L.iconWrap,height:L.iconWrap,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,marginLeft:o?"auto":L.itemPadH,marginRight:o?"auto":void 0,color:O},children:typeof e.icon=="function"?e.icon({size:L.iconInner,color:O}):typeof e.icon=="string"?(0,w.jsx)("span",{className:"material-symbols-rounded","aria-hidden":"true",style:{fontSize:L.iconInner,lineHeight:1,color:O,display:"block",fontVariationSettings:"'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24"},children:e.icon}):ve.default.cloneElement(e.icon,{style:{color:O}})}),(0,w.jsx)("div",{style:{flex:o?"0 0 0px":1,minWidth:0,paddingLeft:o?0:i?`calc(${L.childRowPadL} + ${L.childMainPadL} + ${L.textPad})`:L.textPad,paddingRight:o?0:i?L.childRowPadL:L.itemPadH,maxWidth:o?0:200,opacity:o?0:1,overflow:"hidden",pointerEvents:o?"none":"auto",transition:"max-width var(--motion-duration-6) var(--motion-easing-emphasized), opacity var(--motion-duration-3) var(--motion-easing-standard)"},children:(0,w.jsx)("p",{style:{fontFamily:"'Red Hat Text',sans-serif",fontWeight:500,fontSize:"var(--semantic-type-font-size-s)",lineHeight:"var(--semantic-type-line-height-s-single)",letterSpacing:"var(--semantic-type-letter-spacing-spacious)",color:j,margin:0,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",transition:"color var(--motion-duration-3) var(--motion-easing-standard)"},children:e.label})}),!i&&h&&!o&&(0,w.jsx)("div",{style:{width:L.chevBox,height:L.iconWrap,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,opacity:o?0:1,overflow:"hidden",transition:"max-width var(--motion-duration-6) var(--motion-easing-emphasized), opacity var(--motion-duration-3) var(--motion-easing-standard)"},children:(0,w.jsx)("div",{style:{transform:r?"rotate(180deg)":"rotate(0deg)",transition:"transform var(--motion-duration-5) var(--motion-easing-accordion)"},children:y?y({size:L.chevGlyph,color:O}):(0,w.jsx)(bx,{size:L.chevGlyph,color:O})})})]}),o&&s&&u&&(0,w.jsx)("div",{style:{position:"fixed",left:u.right,top:u.top,width:8,height:u.height,zIndex:999},onMouseEnter:()=>{let z=$.current?$.current.getBoundingClientRect():u;c&&c(e.id,z)}}),o&&h&&s&&u&&(0,w.jsx)(fx,{item:e,onClick:a,anchorRect:u,activeId:p,onMouseEnter:()=>{let z=$.current?$.current.getBoundingClientRect():u;c&&c(e.id,z)},onMouseLeave:d}),o&&!h&&s&&u&&(0,w.jsx)(cx,{label:e.label,anchorRect:u,onMouseEnter:()=>{let z=$.current?$.current.getBoundingClientRect():u;c&&c(e.id,z)},onMouseLeave:d})]})}function cx({label:e,anchorRect:t,onMouseEnter:n,onMouseLeave:r}){return t?Bs.default.createPortal((0,w.jsx)("div",{onMouseEnter:n,onMouseLeave:r,style:{position:"fixed",left:t.right+8,top:t.top+t.height/2,zIndex:1e3,backgroundColor:W.surface.navLight,border:`0.5px solid ${re("stroke-static-neutral-faint")}`,borderRadius:"var(--semantic-layout-units-cornerradius-base)",boxShadow:$f("--elevation-widget"),padding:"var(--semantic-layout-units-padding-xxtight) var(--semantic-layout-units-padding-xtight)",whiteSpace:"nowrap",pointerEvents:"auto",animation:"popoverInCentered var(--motion-duration-3) var(--motion-easing-spring) forwards"},children:(0,w.jsx)("span",{style:{fontFamily:"'Red Hat Text',sans-serif",fontWeight:400,fontSize:"var(--semantic-type-font-size-s)",lineHeight:"var(--semantic-type-line-height-s-single)",letterSpacing:"var(--semantic-type-letter-spacing-spacious)",color:W.text.strong},children:e})}),document.body):null}function dx({label:e}){return(0,w.jsx)("div",{style:{display:"flex",alignItems:"center",width:"100%",boxSizing:"border-box",paddingLeft:"var(--semantic-layout-units-padding-tight)",paddingRight:"var(--semantic-layout-units-padding-xtight)",paddingTop:"var(--semantic-layout-units-padding-xxtight)",paddingBottom:"var(--semantic-layout-units-padding-xxtight)"},children:(0,w.jsx)("span",{style:{fontFamily:"'Red Hat Text',sans-serif",fontWeight:600,fontSize:"var(--semantic-type-font-size-xs)",lineHeight:"var(--semantic-type-line-height-xs-single)",letterSpacing:"var(--semantic-type-letter-spacing-extraspacious)",color:W.text.secondary,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e})})}function fx({item:e,onClick:t,anchorRect:n,onMouseEnter:r,onMouseLeave:o,activeId:i}){return n?Bs.default.createPortal((0,w.jsxs)("div",{onMouseEnter:r,onMouseLeave:o,style:{position:"fixed",left:n.right+8,top:n.top,zIndex:1e3,backgroundColor:W.surface.navElevated,border:`0.5px solid ${re("stroke-static-neutral-faint")}`,borderRadius:"var(--primitive-unit-unit-10)",boxShadow:$f("--elevation-lift"),padding:"var(--semantic-layout-units-padding-xtight) var(--semantic-layout-units-padding-xxtight)",display:"flex",flexDirection:"column",gap:"var(--semantic-layout-units-gap-xxxtight)",boxSizing:"border-box",minWidth:220,maxWidth:360,pointerEvents:"auto",animation:"popoverIn var(--motion-duration-3) var(--motion-easing-spring) forwards"},children:[(0,w.jsx)(dx,{label:e.label}),e.children.map(a=>(0,w.jsx)(ka,{item:a,onClick:t,activeId:i},a.id))]}),document.body):null}function ka({item:e,onClick:t,activeId:n}){let[r,o]=(0,ve.useState)(!1),i=e.id===n,a=i?W.fill.navActive:r?W.fill.navHover:"transparent",l=W.text.strong;return(0,w.jsxs)("div",{onClick:()=>t(e.id),className:lh,role:"menuitem",tabIndex:0,"aria-current":i?"page":void 0,onKeyDown:s=>(s.key==="Enter"||s.key===" ")&&(s.preventDefault(),t(e.id)),onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),onFocus:()=>o(!0),onBlur:()=>o(!1),style:{position:"relative",display:"flex",alignItems:"center",minHeight:L.itemH,boxSizing:"border-box",padding:"var(--semantic-layout-units-padding-tight)",borderRadius:"var(--semantic-layout-units-cornerradius-base)",overflow:"hidden",backgroundColor:a,cursor:"pointer",transition:"background-color var(--motion-duration-3) var(--motion-easing-standard)"},children:[(0,w.jsx)("div",{style:{position:"absolute",left:0,top:"var(--semantic-layout-units-padding-xtight)",bottom:"var(--semantic-layout-units-padding-xtight)",width:L.stripeW,borderRadius:`0 ${L.stripeRadius} ${L.stripeRadius} 0`,backgroundColor:i?W.indicator:"transparent",transition:"background-color var(--motion-duration-3) var(--motion-easing-standard)"}}),(0,w.jsx)("span",{style:{fontFamily:"'Red Hat Text',sans-serif",fontWeight:500,fontSize:"var(--semantic-type-font-size-s)",lineHeight:"var(--semantic-type-line-height-s-single)",letterSpacing:"var(--semantic-type-letter-spacing-spacious)",color:l,flex:1},children:e.label})]})}var f$=(e,t)=>!!e&&(typeof t.composedPath=="function"?t.composedPath().includes(e):e.contains(t.target)),Sn={restStroke:re("stroke-action-primary-subtle-rest"),hoverFill:re("fill-action-primary-subtle-hover"),hoverStroke:re("stroke-action-primary-strong-hover"),hoverFg:re("foreground-action-primary-on-subtle-hover"),openFill:re("fill-action-primary-subtle-pressed"),openStroke:re("stroke-action-primary-strong-pressed"),openFg:re("foreground-action-primary-on-subtle-pressed"),restFg:re("foreground-static-neutral-bold"),separator:re("stroke-static-neutral-base")};function px({label:e,icon:t="apps",home:n,apps:r=[],activeId:o,onSelect:i,collapsed:a=!1,presentation:l="popover",sheetTitle:s}){let u=[n,...r].filter(Boolean).find(M=>M.id===o),c=u&&u.label||e||n&&n.label,[d,p]=(0,ve.useState)(!1),[g,y]=(0,ve.useState)(!1),[b,D]=(0,ve.useState)(!1),[m,f]=(0,ve.useState)(null),h=(0,ve.useRef)(null),$=(0,ve.useRef)(null),C=(0,ve.useRef)(null),E=(0,ve.useRef)(!1),P=()=>{if(b){D(!1);return}f(h.current?h.current.getBoundingClientRect():null),D(!0)};(0,ve.useEffect)(()=>{if(!b||l==="sheet"||!E.current)return;E.current=!1;let M=setTimeout(()=>{let z=C.current?[...C.current.querySelectorAll('[role="menuitem"]')]:[];(z.find(V=>V.getAttribute("aria-current"))||z[0])?.focus()},0);return()=>clearTimeout(M)},[b,l]);let N=M=>{let z=[...M.currentTarget.querySelectorAll('[role="menuitem"]')],V=z.indexOf(document.activeElement),se=null;M.key==="ArrowDown"?se=(V+1)%z.length:M.key==="ArrowUp"?se=(V-1+z.length)%z.length:M.key==="Home"?se=0:M.key==="End"&&(se=z.length-1),!(se===null||!z.length)&&(M.preventDefault(),z[se].focus())},R=M=>{D(!1),i&&i(M),$.current&&$.current.focus()};(0,ve.useEffect)(()=>{if(!b||l==="sheet")return;let M=V=>{f$(h.current,V)||f$(C.current,V)||D(!1)},z=V=>{V.key==="Escape"&&(D(!1),$.current&&$.current.focus())};return document.addEventListener("mousedown",M),document.addEventListener("keydown",z),()=>{document.removeEventListener("mousedown",M),document.removeEventListener("keydown",z)}},[b,l]);let F=b||g,j=F?Sn.openFg:d?Sn.hoverFg:Sn.restFg,O=n||{id:"__home",label:e};return(0,w.jsxs)("div",{ref:h,style:{boxSizing:"border-box",width:"100%",minHeight:L.itemH,flexShrink:0,padding:a?`${L.textPad} 0`:`${L.textPad} ${L.chevPad}`},children:[(0,w.jsxs)("button",{ref:$,className:sh,type:"button",onClick:P,onKeyDown:M=>{(M.key==="Enter"||M.key===" "||M.key==="ArrowDown")&&(E.current=!0),M.key==="ArrowDown"&&!b&&(M.preventDefault(),P())},"aria-haspopup":"menu","aria-expanded":b,"aria-label":a?`Switch application: ${c}`:void 0,onMouseEnter:()=>p(!0),onMouseLeave:()=>{p(!1),y(!1)},onMouseDown:()=>y(!0),onMouseUp:()=>y(!1),onBlur:()=>y(!1),style:{display:"flex",alignItems:"center",width:"100%",height:L.itemH,boxSizing:"border-box",margin:0,cursor:"pointer",fontFamily:"inherit",justifyContent:a?"center":"flex-start",gap:a?0:"var(--semantic-layout-units-gap-xxxtight)",paddingLeft:L.itemPadH,paddingRight:L.itemPadH,borderRadius:"var(--semantic-layout-units-cornerradius-base)",background:F?Sn.openFill:d?Sn.hoverFill:"transparent",border:"none","--pw-ring-keep-shadow":"var(--elevation-lift)",boxShadow:`inset 0 0 0 ${F?"var(--contextual-layout-units-button-borderwidth-selected, 1px)":"var(--contextual-layout-units-button-borderwidth-rest, 0.75px)"} ${F?Sn.openStroke:d?Sn.hoverStroke:Sn.restStroke}, var(--elevation-lift)`,transition:"background-color var(--motion-duration-3) var(--motion-easing-standard), box-shadow var(--motion-duration-3) var(--motion-easing-standard)"},children:[(0,w.jsx)("span",{style:{width:36,height:36,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:(0,w.jsx)("span",{className:"material-symbols-rounded","aria-hidden":"true",style:{fontSize:L.iconInner,lineHeight:1,display:"block",color:j,fontVariationSettings:"'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24",transition:"color var(--motion-duration-3) var(--motion-easing-standard)"},children:t})}),!a&&(0,w.jsx)("span",{style:{flex:1,minWidth:0,textAlign:"left",fontWeight:500,fontSize:"var(--semantic-type-font-size-s)",lineHeight:"var(--semantic-type-line-height-s-single)",letterSpacing:"var(--semantic-type-letter-spacing-spacious)",color:j,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",transition:"color var(--motion-duration-3) var(--motion-easing-standard)"},children:c})]}),l==="sheet"&&(0,w.jsxs)(u$,{open:b,title:s||c,menu:!0,returnFocusRef:$,onOpenChange:M=>{M||D(!1)},children:[(0,w.jsx)(ka,{item:O,onClick:R,activeId:o}),r.length>0&&(0,w.jsx)("div",{role:"separator",style:{padding:"var(--semantic-layout-units-padding-xtight)"},children:(0,w.jsx)("div",{style:{borderTop:`0.5px solid ${Sn.separator}`}})}),r.map(M=>(0,w.jsx)(ka,{item:M,onClick:R,activeId:o},M.id))]}),b&&l!=="sheet"&&m&&Bs.default.createPortal((0,w.jsxs)("div",{ref:C,role:"menu","aria-label":c,onKeyDown:N,style:{position:"fixed",left:`calc(${m.right}px + var(--semantic-layout-units-gap-xxxtight))`,top:m.top,zIndex:1e3,boxSizing:"border-box",minWidth:220,maxWidth:360,maxHeight:`calc(100vh - ${Math.round(m.top)}px - var(--semantic-layout-units-padding-base))`,overflowY:"auto",background:W.surface.navElevated,border:`var(--semantic-layout-units-borderwidth-xthin, 0.5px) solid ${re("stroke-static-neutral-faint")}`,borderRadius:"var(--semantic-layout-units-cornerradius-large)",boxShadow:$f("--elevation-lift"),padding:"var(--semantic-layout-units-padding-xtight) var(--semantic-layout-units-padding-xxtight)",display:"flex",flexDirection:"column",gap:"var(--semantic-layout-units-gap-xxxtight)",animation:"popoverIn var(--motion-duration-3) var(--motion-easing-spring) forwards"},children:[(0,w.jsx)(ka,{item:O,onClick:R,activeId:o}),r.length>0&&(0,w.jsx)("div",{role:"separator",style:{padding:"var(--semantic-layout-units-padding-xtight)"},children:(0,w.jsx)("div",{style:{borderTop:`0.5px solid ${Sn.separator}`}})}),r.map(M=>(0,w.jsx)(ka,{item:M,onClick:R,activeId:o},M.id))]}),document.body)]})}function mx({isSidebarCollapsed:e,onToggle:t,collapseIcon:n,expandIcon:r,headerStart:o=null,hideToggle:i=!1}){let[a,l]=(0,ve.useState)(!1),s=W.icon.actionSecondary,u=!e&&o;return(0,w.jsxs)("div",{style:{width:"100%",flexShrink:0},children:[(0,w.jsxs)("div",{style:{display:"flex",alignItems:"center",height:L.itemH,width:"100%",justifyContent:u?"space-between":e?"center":"flex-end",gap:"var(--semantic-layout-units-gap-xxtight)"},children:[u&&(0,w.jsx)("div",{style:{display:"flex",alignItems:"center",minWidth:0,flex:1},children:o}),!i&&(0,w.jsx)("div",{onClick:t,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),"aria-label":e?"Expand navigation":"Collapse navigation",className:Zl,role:"button",tabIndex:0,onKeyDown:c=>(c.key==="Enter"||c.key===" ")&&t(),style:{display:"flex",alignItems:"center",height:L.itemH,flexShrink:0,cursor:"pointer"},children:(0,w.jsx)("div",{style:{width:L.itemH,height:L.itemH,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:(0,w.jsx)("div",{style:{width:28,height:28,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"var(--primitive-unit-unit-10)",backgroundColor:a?W.fill.navHover:"transparent",transition:"background-color var(--motion-duration-3) var(--motion-easing-standard)"},children:e?r?r({size:12,color:s}):(0,w.jsx)(vx,{color:s}):n?n({size:12,color:s}):(0,w.jsx)(yx,{color:s})})})})]}),(0,w.jsx)("div",{style:{padding:"var(--semantic-layout-units-padding-xxxtight) 0"},children:(0,w.jsx)("div",{style:{height:1,backgroundColor:W.fill.infoSubtle}})})]})}function m$({label:e}){return(0,w.jsx)("div",{style:{display:"flex",alignItems:"center",height:40,width:"100%",boxSizing:"border-box",paddingLeft:"var(--semantic-layout-units-padding-xxtight)",paddingRight:"var(--semantic-layout-units-padding-xxtight)",paddingTop:"var(--semantic-layout-units-padding-tight)",paddingBottom:"var(--semantic-layout-units-padding-tight)",flexShrink:0},children:(0,w.jsx)("span",{style:{fontFamily:"'Red Hat Text',sans-serif",fontWeight:600,fontSize:"var(--semantic-type-font-size-xxs)",lineHeight:"var(--semantic-type-line-height-xxs-single)",letterSpacing:"var(--semantic-type-letter-spacing-extraspacious)",textTransform:"uppercase",color:W.text.secondarySubtle,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e})})}function hx({color:e}){return(0,w.jsx)("svg",{width:L.iconInner,height:L.iconInner,viewBox:"0 0 16 16","aria-hidden":"true",style:{display:"block",flexShrink:0},children:(0,w.jsx)("circle",{cx:"8",cy:"8",r:"6.6667",fill:e})})}function gx({item:e,isActive:t,onClick:n}){let[r,o]=(0,ve.useState)(!1),i=t?W.fill.navActive:r?W.fill.navHover:"transparent",a=t?W.text.navActive:r?W.text.navHover:W.text.navBase,l=t?W.icon.navActive:r?W.icon.navHover:W.icon.navBase;return(0,w.jsxs)("div",{onClick:()=>n&&n(e.id),onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),className:Zl,role:"button",tabIndex:0,onKeyDown:s=>(s.key==="Enter"||s.key===" ")&&n&&n(e.id),style:{display:"flex",alignItems:"center",height:48,minHeight:L.itemH,width:"100%",borderRadius:W.radius,backgroundColor:i,cursor:"pointer",overflow:"hidden",transition:"background-color var(--motion-duration-3) var(--motion-easing-standard)",userSelect:"none"},children:[(0,w.jsx)(p$,{visible:t,inset:L.stripeInnerPadV}),(0,w.jsx)("div",{style:{width:L.iconWrap,height:L.iconWrap,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,marginLeft:L.rowPadH},children:(0,w.jsx)(hx,{color:l})}),(0,w.jsx)("div",{style:{flex:1,minWidth:0,paddingLeft:L.textPad,paddingRight:`calc(${L.textPad} + ${L.rowPadH})`},children:(0,w.jsx)("p",{style:{fontFamily:"'Red Hat Text',sans-serif",fontWeight:400,fontSize:"var(--semantic-type-font-size-xs)",lineHeight:"var(--semantic-type-line-height-xs-single)",letterSpacing:"var(--semantic-type-letter-spacing-extraspacious)",color:a,margin:0,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",transition:"color var(--motion-duration-3) var(--motion-easing-standard)"},children:e.label})})]})}function $x({label:e,items:t,activeId:n,onNavigate:r}){return(0,w.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"var(--semantic-layout-units-gap-xtight)",width:"100%",flexShrink:0},children:[(0,w.jsx)(m$,{label:e}),(0,w.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:t.map(o=>(0,w.jsx)(gx,{item:o,isActive:o.id===n,onClick:r},o.id))})]})}function h$({items:e,sections:t,listSection:n,activeId:r,onNavigate:o,collapsed:i=!1,onCollapseChange:a,hideCollapseButton:l=!1,defaultExpanded:s={},className:u="",headerEnd:c=null,children:d=null,footer:p=null,appSwitcher:g=null,headerStart:y=null}){let[b,D]=(0,ve.useState)(s),[m,f]=(0,ve.useState)(null),[h,$]=(0,ve.useState)(null),C=(0,ve.useRef)(null),E=t?t.flatMap(O=>O.items):e||[],P=(()=>{let O=E.find(M=>M.children&&M.children.some(z=>z.id===r));return O?O.id:null})(),N=O=>D(M=>{if(!M[O])return{[O]:!0};let V={...M};return delete V[O],V}),R=(O,M)=>{clearTimeout(C.current),f(O),M&&$(M)},F=()=>{C.current=setTimeout(()=>{f(null),$(null)},300)},j=O=>{let M=!!(O.children&&O.children.length),z=O.id===r,V=O.id===P,se=!!b[O.id];return(0,w.jsxs)("div",{children:[(0,w.jsx)(d$,{item:O,isActive:z,isTrail:V,isExpanded:se,isSidebarCollapsed:i,isChild:!1,onClick:o,onToggle:N,popoverOpen:m===O.id,anchorRect:m===O.id?h:null,onPopoverEnter:R,onPopoverLeave:F,activeId:r}),M&&!i&&(0,w.jsx)("div",{...gf(!se),style:{display:"grid",gridTemplateRows:se?"1fr":"0fr",marginTop:se?L.menuGap:0,transition:"grid-template-rows var(--motion-duration-5) var(--motion-easing-accordion), margin-top var(--motion-duration-5) var(--motion-easing-accordion)"},children:(0,w.jsx)("div",{style:{overflow:"hidden",display:"flex",flexDirection:"column",gap:L.menuGap,opacity:se?1:0,transition:se?"opacity var(--motion-duration-4) var(--motion-easing-standard) 70ms":"opacity var(--motion-duration-3) var(--motion-easing-standard)"},children:O.children.map(Me=>(0,w.jsx)(d$,{item:Me,isActive:Me.id===r,isTrail:!1,isExpanded:!1,isSidebarCollapsed:!1,isChild:!0,onClick:o,onToggle:()=>{}},Me.id))})})]},O.id)};return(0,w.jsxs)("nav",{className:u,style:{width:i?L.navWcol:L.navW,height:"100%",backgroundColor:W.surface.navLight,display:"flex",flexDirection:"column",paddingTop:L.navPadTop,paddingBottom:0,paddingLeft:i?L.navColPadH:L.navPadH,paddingRight:i?L.navColPadH:L.navPadH,boxSizing:"border-box",flexShrink:0,transition:"width var(--motion-duration-6) var(--motion-easing-emphasized)",borderRight:`1px solid ${W.fill.infoSubtle}`,overflow:"hidden"},children:[(!l||c||y)&&(0,w.jsxs)("div",{style:{flexShrink:0},children:[(!l||y)&&(0,w.jsx)(mx,{isSidebarCollapsed:i,headerStart:y,hideToggle:l,onToggle:()=>a&&a(!i)}),c&&(0,w.jsx)("div",{...gf(i),style:{opacity:i?0:1,maxHeight:i?0:200,overflow:"hidden",pointerEvents:i?"none":"auto",padding:i?0:`0 ${L.navPadH}`,transition:"opacity var(--motion-duration-4) var(--motion-easing-standard), max-height var(--motion-duration-5) var(--motion-easing-spring)"},children:c})]}),(0,w.jsxs)(rh,{style:{flex:1,minHeight:0,marginRight:c$(i?L.navColPadH:L.navPadH),marginLeft:c$("var(--contextual-layout-units-focusring-width)")},viewStyle:{display:"flex",flexDirection:"column",gap:L.menuGap,paddingTop:L.menuPadT,paddingRight:i?L.navColPadH:L.navPadH,paddingLeft:"var(--contextual-layout-units-focusring-width)"},children:[g&&(0,w.jsx)(px,{...g,collapsed:i}),t&&t.map(({section:O,items:M},z)=>(0,w.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:L.menuGap,flexShrink:0},children:[(0,w.jsx)("div",{style:{opacity:i?0:1,maxHeight:i?0:40,overflow:"hidden",transition:"opacity var(--motion-duration-4) var(--motion-easing-standard), max-height var(--motion-duration-5) var(--motion-easing-spring)",flexShrink:0},children:(0,w.jsx)(m$,{label:O})}),z>0&&(0,w.jsx)("div",{style:{opacity:i?1:0,maxHeight:i?5:0,overflow:"hidden",transition:"opacity var(--motion-duration-4) var(--motion-easing-standard), max-height var(--motion-duration-5) var(--motion-easing-spring)",padding:"2px 0",flexShrink:0},children:(0,w.jsx)("div",{style:{height:1,backgroundColor:W.fill.infoSubtle}})}),M.map(j)]},O)),!t&&(e||[]).map(j),n&&(0,w.jsx)("div",{...gf(i),style:{opacity:i?0:1,maxHeight:i?0:400,overflow:"hidden",transition:"opacity var(--motion-duration-4) var(--motion-easing-standard), max-height var(--motion-duration-5) var(--motion-easing-spring)"},children:(0,w.jsx)($x,{label:n.label,items:n.items,activeId:r,onNavigate:o})}),d&&(0,w.jsx)("div",{style:{flexShrink:0},children:d}),(0,w.jsx)("div",{style:{flex:1,minHeight:L.menuPadB}})]}),p&&(0,w.jsx)("div",{style:{flexShrink:0,borderTop:`0.5px solid ${W.fill.infoSubtle}`,padding:i?`8px ${L.navColPadH}`:`8px ${L.navPadH}`,transition:"padding var(--motion-duration-6) var(--motion-easing-emphasized)"},children:p})]})}function bx({size:e=12,color:t}){return(0,w.jsx)("svg",{width:e,height:e,viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",children:(0,w.jsx)("path",{d:"M6 7.475C5.93333 7.475 5.87083 7.46458 5.8125 7.44375C5.75417 7.42292 5.7 7.3875 5.65 7.3375L3.35 5.0375C3.25833 4.94583 3.2125 4.82917 3.2125 4.6875C3.2125 4.54583 3.25833 4.42917 3.35 4.3375C3.44167 4.24583 3.55833 4.2 3.7 4.2C3.84167 4.2 3.95833 4.24583 4.05 4.3375L6 6.2875L7.95 4.3375C8.04167 4.24583 8.15833 4.2 8.3 4.2C8.44167 4.2 8.55833 4.24583 8.65 4.3375C8.74167 4.42917 8.7875 4.54583 8.7875 4.6875C8.7875 4.82917 8.74167 4.94583 8.65 5.0375L6.35 7.3375C6.3 7.3875 6.24583 7.42292 6.1875 7.44375C6.12917 7.46458 6.06667 7.475 6 7.475Z",fill:t})})}function yx({size:e=12,color:t=W.icon.actionSecondary}){return(0,w.jsx)("svg",{width:e,height:e,viewBox:"0 0 12 12",fill:"none",children:(0,w.jsx)("path",{d:"M5.66667 7.86667V4.13333C5.66667 3.97778 5.6 3.87222 5.46667 3.81667C5.33333 3.76111 5.21111 3.78889 5.1 3.9L3.46667 5.53333C3.33333 5.66667 3.26667 5.82222 3.26667 6C3.26667 6.17778 3.33333 6.33333 3.46667 6.46667L5.1 8.1C5.21111 8.21111 5.33333 8.23889 5.46667 8.18333C5.6 8.12778 5.66667 8.02222 5.66667 7.86667ZM1.33333 12C0.966667 12 0.652778 11.8694 0.391667 11.6083C0.130556 11.3472 0 11.0333 0 10.6667V1.33333C0 0.966667 0.130556 0.652778 0.391667 0.391667C0.652778 0.130556 0.966667 0 1.33333 0H10.6667C11.0333 0 11.3472 0.130556 11.6083 0.391667C11.8694 0.652778 12 0.966667 12 1.33333V10.6667C12 11.0333 11.8694 11.3472 11.6083 11.6083C11.3472 11.8694 11.0333 12 10.6667 12H1.33333ZM8.66667 10.6667H10.6667V1.33333H8.66667V10.6667ZM7.33333 10.6667V1.33333H1.33333V10.6667H7.33333Z",fill:t})})}function vx({size:e=12,color:t=W.icon.actionSecondary}){return(0,w.jsx)("svg",{width:e,height:e,viewBox:"0 0 12 12",fill:"none",children:(0,w.jsx)("path",{d:"M6.33333 4.13333V7.86667C6.33333 8.02222 6.4 8.12778 6.53333 8.18333C6.66667 8.23889 6.78889 8.21111 6.9 8.1L8.53333 6.46667C8.66667 6.33333 8.73333 6.17778 8.73333 6C8.73333 5.82222 8.66667 5.66667 8.53333 5.53333L6.9 3.9C6.78889 3.78889 6.66667 3.76111 6.53333 3.81667C6.4 3.87222 6.33333 3.97778 6.33333 4.13333ZM1.33333 12C0.966667 12 0.652778 11.8694 0.391667 11.6083C0.130556 11.3472 0 11.0333 0 10.6667V1.33333C0 0.966667 0.130556 0.652778 0.391667 0.391667C0.652778 0.130556 0.966667 0 1.33333 0H10.6667C11.0333 0 11.3472 0.130556 11.6083 0.391667C11.8694 0.652778 12 0.966667 12 1.33333V10.6667C12 11.0333 11.8694 11.3472 11.6083 11.6083C11.3472 11.8694 11.0333 12 10.6667 12H1.33333ZM3.33333 10.6667V1.33333H1.33333V10.6667H3.33333ZM4.66667 10.6667H10.6667V1.33333H4.66667V10.6667Z",fill:t})})}var xx={collapsed:"collapsed","hide-collapse-button":"hideCollapseButton"},wx=`
|
|
235
|
+
`,Ef=!1;function fx(){(0,kn.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,kn.createContext)("actions"),M6=(0,kn.createContext)("sheet"),g$=(0,kn.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,Vn.jsx)(px.Provider,{value:e,children:(0,Vn.jsxs)("div",{className:`pw-menu${a?" pw-menu--static":""}${l?" pw-menu--bare":""}${s?` ${s}`:""}`,children:[n&&(0,Vn.jsx)("div",{className:"pw-menu__header",children:n}),(0,Vn.jsx)("div",{className:"pw-menu__scroll",style:i?{maxHeight:i}:void 0,children:(0,Vn.jsx)(d,{"aria-label":t,className:"pw-menu__list",renderEmptyState:o?()=>o:void 0,...p,children:u})}),r&&(0,Vn.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})`,En=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 ${En("duration-5")} ${En("easing-emphasized")} both`,exit:`pw-bottom-sheet-down ${En("duration-4")} ${En("easing-accelerate")} both`,fadeIn:`pw-bottom-sheet-fade-in ${En("duration-4")} ${En("easing-standard")} both`,fadeOut:`pw-bottom-sheet-fade-out ${En("duration-4")} ${En("easing-standard")} both`,settle:`transform ${En("duration-4")} ${En("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,_n=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:_n}),(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)),Tn={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?Tn.openFg:d?Tn.hoverFg:Tn.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?Tn.openFill:d?Tn.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?Tn.openStroke:d?Tn.hoverStroke:Tn.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 ${Tn.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 ${Tn.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
236
|
:host { display: block; height: 100%; }
|
|
193
237
|
:host([hidden]) { display: none; }
|
|
194
238
|
|
|
@@ -266,7 +310,7 @@ ${st}:is([data-selected],[data-current]) .pw-menu-item__stripe{background:${B.st
|
|
|
266
310
|
font-size: var(--semantic-type-font-size-s);
|
|
267
311
|
line-height: var(--semantic-type-line-height-s-single);
|
|
268
312
|
color: var(--semantic-color-foreground-action-secondary-rest);
|
|
269
|
-
}`,
|
|
313
|
+
}`,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 j6=Xs;export{Xs as PathwaySideNav,j6 as default};
|
|
270
314
|
/*! Bundled license information:
|
|
271
315
|
|
|
272
316
|
react/cjs/react.production.min.js:
|