@cyco77/pptb-usersettings-utiliy 0.1.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.
@@ -0,0 +1,28 @@
1
+ (function(){"use strict";var yd=document.createElement("style");yd.textContent=`*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;line-height:1.6;min-height:100vh}#root{height:100vh}
2
+ /*$vite$:1*/`,document.head.appendChild(yd);function wd(e,r){for(var n=0;n<r.length;n++){const i=r[n];if(typeof i!="string"&&!Array.isArray(i)){for(const l in i)if(l!=="default"&&!(l in e)){const a=Object.getOwnPropertyDescriptor(i,l);a&&Object.defineProperty(e,l,a.get?a:{enumerable:!0,get:()=>i[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function kd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Hl={exports:{}},zn={},Wl={exports:{}},Be={};var xd;function A0(){if(xd)return Be;xd=1;var e=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),v=Symbol.iterator;function b(F){return F===null||typeof F!="object"?null:(F=v&&F[v]||F["@@iterator"],typeof F=="function"?F:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,w={};function _(F,M,ne){this.props=F,this.context=M,this.refs=w,this.updater=ne||y}_.prototype.isReactComponent={},_.prototype.setState=function(F,M){if(typeof F!="object"&&typeof F!="function"&&F!=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,F,M,"setState")},_.prototype.forceUpdate=function(F){this.updater.enqueueForceUpdate(this,F,"forceUpdate")};function z(){}z.prototype=_.prototype;function N(F,M,ne){this.props=F,this.context=M,this.refs=w,this.updater=ne||y}var B=N.prototype=new z;B.constructor=N,k(B,_.prototype),B.isPureReactComponent=!0;var C=Array.isArray,E=Object.prototype.hasOwnProperty,O={current:null},I={key:!0,ref:!0,__self:!0,__source:!0};function q(F,M,ne){var ae,be={},_e=null,Oe=null;if(M!=null)for(ae in M.ref!==void 0&&(Oe=M.ref),M.key!==void 0&&(_e=""+M.key),M)E.call(M,ae)&&!I.hasOwnProperty(ae)&&(be[ae]=M[ae]);var Pe=arguments.length-2;if(Pe===1)be.children=ne;else if(1<Pe){for(var qe=Array(Pe),qt=0;qt<Pe;qt++)qe[qt]=arguments[qt+2];be.children=qe}if(F&&F.defaultProps)for(ae in Pe=F.defaultProps,Pe)be[ae]===void 0&&(be[ae]=Pe[ae]);return{$$typeof:e,type:F,key:_e,ref:Oe,props:be,_owner:O.current}}function j(F,M){return{$$typeof:e,type:F.type,key:M,ref:F.ref,props:F.props,_owner:F._owner}}function U(F){return typeof F=="object"&&F!==null&&F.$$typeof===e}function le(F){var M={"=":"=0",":":"=2"};return"$"+F.replace(/[=:]/g,function(ne){return M[ne]})}var te=/\/+/g;function V(F,M){return typeof F=="object"&&F!==null&&F.key!=null?le(""+F.key):M.toString(36)}function ee(F,M,ne,ae,be){var _e=typeof F;(_e==="undefined"||_e==="boolean")&&(F=null);var Oe=!1;if(F===null)Oe=!0;else switch(_e){case"string":case"number":Oe=!0;break;case"object":switch(F.$$typeof){case e:case r:Oe=!0}}if(Oe)return Oe=F,be=be(Oe),F=ae===""?"."+V(Oe,0):ae,C(be)?(ne="",F!=null&&(ne=F.replace(te,"$&/")+"/"),ee(be,M,ne,"",function(qt){return qt})):be!=null&&(U(be)&&(be=j(be,ne+(!be.key||Oe&&Oe.key===be.key?"":(""+be.key).replace(te,"$&/")+"/")+F)),M.push(be)),1;if(Oe=0,ae=ae===""?".":ae+":",C(F))for(var Pe=0;Pe<F.length;Pe++){_e=F[Pe];var qe=ae+V(_e,Pe);Oe+=ee(_e,M,ne,qe,be)}else if(qe=b(F),typeof qe=="function")for(F=qe.call(F),Pe=0;!(_e=F.next()).done;)_e=_e.value,qe=ae+V(_e,Pe++),Oe+=ee(_e,M,ne,qe,be);else if(_e==="object")throw M=String(F),Error("Objects are not valid as a React child (found: "+(M==="[object Object]"?"object with keys {"+Object.keys(F).join(", ")+"}":M)+"). If you meant to render a collection of children, use an array instead.");return Oe}function oe(F,M,ne){if(F==null)return F;var ae=[],be=0;return ee(F,ae,"","",function(_e){return M.call(ne,_e,be++)}),ae}function H(F){if(F._status===-1){var M=F._result;M=M(),M.then(function(ne){(F._status===0||F._status===-1)&&(F._status=1,F._result=ne)},function(ne){(F._status===0||F._status===-1)&&(F._status=2,F._result=ne)}),F._status===-1&&(F._status=0,F._result=M)}if(F._status===1)return F._result.default;throw F._result}var K={current:null},L={transition:null},Q={ReactCurrentDispatcher:K,ReactCurrentBatchConfig:L,ReactCurrentOwner:O};function $(){throw Error("act(...) is not supported in production builds of React.")}return Be.Children={map:oe,forEach:function(F,M,ne){oe(F,function(){M.apply(this,arguments)},ne)},count:function(F){var M=0;return oe(F,function(){M++}),M},toArray:function(F){return oe(F,function(M){return M})||[]},only:function(F){if(!U(F))throw Error("React.Children.only expected to receive a single React element child.");return F}},Be.Component=_,Be.Fragment=n,Be.Profiler=l,Be.PureComponent=N,Be.StrictMode=i,Be.Suspense=f,Be.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Q,Be.act=$,Be.cloneElement=function(F,M,ne){if(F==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+F+".");var ae=k({},F.props),be=F.key,_e=F.ref,Oe=F._owner;if(M!=null){if(M.ref!==void 0&&(_e=M.ref,Oe=O.current),M.key!==void 0&&(be=""+M.key),F.type&&F.type.defaultProps)var Pe=F.type.defaultProps;for(qe in M)E.call(M,qe)&&!I.hasOwnProperty(qe)&&(ae[qe]=M[qe]===void 0&&Pe!==void 0?Pe[qe]:M[qe])}var qe=arguments.length-2;if(qe===1)ae.children=ne;else if(1<qe){Pe=Array(qe);for(var qt=0;qt<qe;qt++)Pe[qt]=arguments[qt+2];ae.children=Pe}return{$$typeof:e,type:F.type,key:be,ref:_e,props:ae,_owner:Oe}},Be.createContext=function(F){return F={$$typeof:u,_currentValue:F,_currentValue2:F,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},F.Provider={$$typeof:a,_context:F},F.Consumer=F},Be.createElement=q,Be.createFactory=function(F){var M=q.bind(null,F);return M.type=F,M},Be.createRef=function(){return{current:null}},Be.forwardRef=function(F){return{$$typeof:d,render:F}},Be.isValidElement=U,Be.lazy=function(F){return{$$typeof:h,_payload:{_status:-1,_result:F},_init:H}},Be.memo=function(F,M){return{$$typeof:m,type:F,compare:M===void 0?null:M}},Be.startTransition=function(F){var M=L.transition;L.transition={};try{F()}finally{L.transition=M}},Be.unstable_act=$,Be.useCallback=function(F,M){return K.current.useCallback(F,M)},Be.useContext=function(F){return K.current.useContext(F)},Be.useDebugValue=function(){},Be.useDeferredValue=function(F){return K.current.useDeferredValue(F)},Be.useEffect=function(F,M){return K.current.useEffect(F,M)},Be.useId=function(){return K.current.useId()},Be.useImperativeHandle=function(F,M,ne){return K.current.useImperativeHandle(F,M,ne)},Be.useInsertionEffect=function(F,M){return K.current.useInsertionEffect(F,M)},Be.useLayoutEffect=function(F,M){return K.current.useLayoutEffect(F,M)},Be.useMemo=function(F,M){return K.current.useMemo(F,M)},Be.useReducer=function(F,M,ne){return K.current.useReducer(F,M,ne)},Be.useRef=function(F){return K.current.useRef(F)},Be.useState=function(F){return K.current.useState(F)},Be.useSyncExternalStore=function(F,M,ne){return K.current.useSyncExternalStore(F,M,ne)},Be.useTransition=function(){return K.current.useTransition()},Be.version="18.3.1",Be}var Sd;function Vl(){return Sd||(Sd=1,Wl.exports=A0()),Wl.exports}var _d;function M0(){if(_d)return zn;_d=1;var e=Vl(),r=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,l=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function u(d,f,m){var h,v={},b=null,y=null;m!==void 0&&(b=""+m),f.key!==void 0&&(b=""+f.key),f.ref!==void 0&&(y=f.ref);for(h in f)i.call(f,h)&&!a.hasOwnProperty(h)&&(v[h]=f[h]);if(d&&d.defaultProps)for(h in f=d.defaultProps,f)v[h]===void 0&&(v[h]=f[h]);return{$$typeof:r,type:d,key:b,ref:y,props:v,_owner:l.current}}return zn.Fragment=n,zn.jsx=u,zn.jsxs=u,zn}var Bd;function L0(){return Bd||(Bd=1,Hl.exports=M0()),Hl.exports}var X=L0();const q0=wd({__proto__:null,default:kd(X)},[X]);var S=Vl();const Cd=kd(S),Ai=wd({__proto__:null,default:Cd},[S]);var Mi={},$l={exports:{}},Bt={},Ul={exports:{}},Gl={};var zd;function H0(){return zd||(zd=1,(function(e){function r(L,Q){var $=L.length;L.push(Q);e:for(;0<$;){var F=$-1>>>1,M=L[F];if(0<l(M,Q))L[F]=Q,L[$]=M,$=F;else break e}}function n(L){return L.length===0?null:L[0]}function i(L){if(L.length===0)return null;var Q=L[0],$=L.pop();if($!==Q){L[0]=$;e:for(var F=0,M=L.length,ne=M>>>1;F<ne;){var ae=2*(F+1)-1,be=L[ae],_e=ae+1,Oe=L[_e];if(0>l(be,$))_e<M&&0>l(Oe,be)?(L[F]=Oe,L[_e]=$,F=_e):(L[F]=be,L[ae]=$,F=ae);else if(_e<M&&0>l(Oe,$))L[F]=Oe,L[_e]=$,F=_e;else break e}}return Q}function l(L,Q){var $=L.sortIndex-Q.sortIndex;return $!==0?$:L.id-Q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var u=Date,d=u.now();e.unstable_now=function(){return u.now()-d}}var f=[],m=[],h=1,v=null,b=3,y=!1,k=!1,w=!1,_=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function B(L){for(var Q=n(m);Q!==null;){if(Q.callback===null)i(m);else if(Q.startTime<=L)i(m),Q.sortIndex=Q.expirationTime,r(f,Q);else break;Q=n(m)}}function C(L){if(w=!1,B(L),!k)if(n(f)!==null)k=!0,H(E);else{var Q=n(m);Q!==null&&K(C,Q.startTime-L)}}function E(L,Q){k=!1,w&&(w=!1,z(q),q=-1),y=!0;var $=b;try{for(B(Q),v=n(f);v!==null&&(!(v.expirationTime>Q)||L&&!le());){var F=v.callback;if(typeof F=="function"){v.callback=null,b=v.priorityLevel;var M=F(v.expirationTime<=Q);Q=e.unstable_now(),typeof M=="function"?v.callback=M:v===n(f)&&i(f),B(Q)}else i(f);v=n(f)}if(v!==null)var ne=!0;else{var ae=n(m);ae!==null&&K(C,ae.startTime-Q),ne=!1}return ne}finally{v=null,b=$,y=!1}}var O=!1,I=null,q=-1,j=5,U=-1;function le(){return!(e.unstable_now()-U<j)}function te(){if(I!==null){var L=e.unstable_now();U=L;var Q=!0;try{Q=I(!0,L)}finally{Q?V():(O=!1,I=null)}}else O=!1}var V;if(typeof N=="function")V=function(){N(te)};else if(typeof MessageChannel<"u"){var ee=new MessageChannel,oe=ee.port2;ee.port1.onmessage=te,V=function(){oe.postMessage(null)}}else V=function(){_(te,0)};function H(L){I=L,O||(O=!0,V())}function K(L,Q){q=_(function(){L(e.unstable_now())},Q)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_continueExecution=function(){k||y||(k=!0,H(E))},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_getFirstCallbackNode=function(){return n(f)},e.unstable_next=function(L){switch(b){case 1:case 2:case 3:var Q=3;break;default:Q=b}var $=b;b=Q;try{return L()}finally{b=$}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(L,Q){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var $=b;b=L;try{return Q()}finally{b=$}},e.unstable_scheduleCallback=function(L,Q,$){var F=e.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?F+$:F):$=F,L){case 1:var M=-1;break;case 2:M=250;break;case 5:M=1073741823;break;case 4:M=1e4;break;default:M=5e3}return M=$+M,L={id:h++,callback:Q,priorityLevel:L,startTime:$,expirationTime:M,sortIndex:-1},$>F?(L.sortIndex=$,r(m,L),n(f)===null&&L===n(m)&&(w?(z(q),q=-1):w=!0,K(C,$-F))):(L.sortIndex=M,r(f,L),k||y||(k=!0,H(E))),L},e.unstable_shouldYield=le,e.unstable_wrapCallback=function(L){var Q=b;return function(){var $=b;b=Q;try{return L.apply(this,arguments)}finally{b=$}}}})(Gl)),Gl}var Nd;function W0(){return Nd||(Nd=1,Ul.exports=H0()),Ul.exports}var Td;function V0(){if(Td)return Bt;Td=1;var e=Vl(),r=W0();function n(t){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+t,s=1;s<arguments.length;s++)o+="&args[]="+encodeURIComponent(arguments[s]);return"Minified React error #"+t+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,l={};function a(t,o){u(t,o),u(t+"Capture",o)}function u(t,o){for(l[t]=o,t=0;t<o.length;t++)i.add(o[t])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,m=/^[: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]*$/,h={},v={};function b(t){return f.call(v,t)?!0:f.call(h,t)?!1:m.test(t)?v[t]=!0:(h[t]=!0,!1)}function y(t,o,s,c){if(s!==null&&s.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return c?!1:s!==null?!s.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function k(t,o,s,c){if(o===null||typeof o>"u"||y(t,o,s,c))return!0;if(c)return!1;if(s!==null)switch(s.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function w(t,o,s,c,p,g,x){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=c,this.attributeNamespace=p,this.mustUseProperty=s,this.propertyName=t,this.type=o,this.sanitizeURL=g,this.removeEmptyString=x}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){_[t]=new w(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var o=t[0];_[o]=new w(o,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){_[t]=new w(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){_[t]=new w(t,2,!1,t,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(t){_[t]=new w(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){_[t]=new w(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){_[t]=new w(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){_[t]=new w(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){_[t]=new w(t,5,!1,t.toLowerCase(),null,!1,!1)});var z=/[\-:]([a-z])/g;function N(t){return t[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(t){var o=t.replace(z,N);_[o]=new w(o,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var o=t.replace(z,N);_[o]=new w(o,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var o=t.replace(z,N);_[o]=new w(o,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){_[t]=new w(t,1,!1,t.toLowerCase(),null,!1,!1)}),_.xlinkHref=new w("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){_[t]=new w(t,1,!1,t.toLowerCase(),null,!0,!0)});function B(t,o,s,c){var p=_.hasOwnProperty(o)?_[o]:null;(p!==null?p.type!==0:c||!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(k(o,s,p,c)&&(s=null),c||p===null?b(o)&&(s===null?t.removeAttribute(o):t.setAttribute(o,""+s)):p.mustUseProperty?t[p.propertyName]=s===null?p.type===3?!1:"":s:(o=p.attributeName,c=p.attributeNamespace,s===null?t.removeAttribute(o):(p=p.type,s=p===3||p===4&&s===!0?"":""+s,c?t.setAttributeNS(c,o,s):t.setAttribute(o,s))))}var C=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=Symbol.for("react.element"),O=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),U=Symbol.for("react.provider"),le=Symbol.for("react.context"),te=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),oe=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),K=Symbol.for("react.offscreen"),L=Symbol.iterator;function Q(t){return t===null||typeof t!="object"?null:(t=L&&t[L]||t["@@iterator"],typeof t=="function"?t:null)}var $=Object.assign,F;function M(t){if(F===void 0)try{throw Error()}catch(s){var o=s.stack.trim().match(/\n( *(at )?)/);F=o&&o[1]||""}return`
3
+ `+F+t}var ne=!1;function ae(t,o){if(!t||ne)return"";ne=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(o)if(o=function(){throw Error()},Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(W){var c=W}Reflect.construct(t,[],o)}else{try{o.call()}catch(W){c=W}t.call(o.prototype)}else{try{throw Error()}catch(W){c=W}t()}}catch(W){if(W&&c&&typeof W.stack=="string"){for(var p=W.stack.split(`
4
+ `),g=c.stack.split(`
5
+ `),x=p.length-1,T=g.length-1;1<=x&&0<=T&&p[x]!==g[T];)T--;for(;1<=x&&0<=T;x--,T--)if(p[x]!==g[T]){if(x!==1||T!==1)do if(x--,T--,0>T||p[x]!==g[T]){var P=`
6
+ `+p[x].replace(" at new "," at ");return t.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",t.displayName)),P}while(1<=x&&0<=T);break}}}finally{ne=!1,Error.prepareStackTrace=s}return(t=t?t.displayName||t.name:"")?M(t):""}function be(t){switch(t.tag){case 5:return M(t.type);case 16:return M("Lazy");case 13:return M("Suspense");case 19:return M("SuspenseList");case 0:case 2:case 15:return t=ae(t.type,!1),t;case 11:return t=ae(t.type.render,!1),t;case 1:return t=ae(t.type,!0),t;default:return""}}function _e(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case I:return"Fragment";case O:return"Portal";case j:return"Profiler";case q:return"StrictMode";case V:return"Suspense";case ee:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case le:return(t.displayName||"Context")+".Consumer";case U:return(t._context.displayName||"Context")+".Provider";case te:var o=t.render;return t=t.displayName,t||(t=o.displayName||o.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case oe:return o=t.displayName||null,o!==null?o:_e(t.type)||"Memo";case H:o=t._payload,t=t._init;try{return _e(t(o))}catch{}}return null}function Oe(t){var o=t.type;switch(t.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=o.render,t=t.displayName||t.name||"",o.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return _e(o);case 8:return o===q?"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 o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function Pe(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function qe(t){var o=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function qt(t){var o=qe(t)?"checked":"value",s=Object.getOwnPropertyDescriptor(t.constructor.prototype,o),c=""+t[o];if(!t.hasOwnProperty(o)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var p=s.get,g=s.set;return Object.defineProperty(t,o,{configurable:!0,get:function(){return p.call(this)},set:function(x){c=""+x,g.call(this,x)}}),Object.defineProperty(t,o,{enumerable:s.enumerable}),{getValue:function(){return c},setValue:function(x){c=""+x},stopTracking:function(){t._valueTracker=null,delete t[o]}}}}function Rs(t){t._valueTracker||(t._valueTracker=qt(t))}function Wg(t){if(!t)return!1;var o=t._valueTracker;if(!o)return!0;var s=o.getValue(),c="";return t&&(c=qe(t)?t.checked?"true":"false":t.value),t=c,t!==s?(o.setValue(t),!0):!1}function Fs(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Cc(t,o){var s=o.checked;return $({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??t._wrapperState.initialChecked})}function Vg(t,o){var s=o.defaultValue==null?"":o.defaultValue,c=o.checked!=null?o.checked:o.defaultChecked;s=Pe(o.value!=null?o.value:s),t._wrapperState={initialChecked:c,initialValue:s,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function $g(t,o){o=o.checked,o!=null&&B(t,"checked",o,!1)}function zc(t,o){$g(t,o);var s=Pe(o.value),c=o.type;if(s!=null)c==="number"?(s===0&&t.value===""||t.value!=s)&&(t.value=""+s):t.value!==""+s&&(t.value=""+s);else if(c==="submit"||c==="reset"){t.removeAttribute("value");return}o.hasOwnProperty("value")?Nc(t,o.type,s):o.hasOwnProperty("defaultValue")&&Nc(t,o.type,Pe(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(t.defaultChecked=!!o.defaultChecked)}function Ug(t,o,s){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var c=o.type;if(!(c!=="submit"&&c!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+t._wrapperState.initialValue,s||o===t.value||(t.value=o),t.defaultValue=o}s=t.name,s!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,s!==""&&(t.name=s)}function Nc(t,o,s){(o!=="number"||Fs(t.ownerDocument)!==t)&&(s==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+s&&(t.defaultValue=""+s))}var Zn=Array.isArray;function tn(t,o,s,c){if(t=t.options,o){o={};for(var p=0;p<s.length;p++)o["$"+s[p]]=!0;for(s=0;s<t.length;s++)p=o.hasOwnProperty("$"+t[s].value),t[s].selected!==p&&(t[s].selected=p),p&&c&&(t[s].defaultSelected=!0)}else{for(s=""+Pe(s),o=null,p=0;p<t.length;p++){if(t[p].value===s){t[p].selected=!0,c&&(t[p].defaultSelected=!0);return}o!==null||t[p].disabled||(o=t[p])}o!==null&&(o.selected=!0)}}function Tc(t,o){if(o.dangerouslySetInnerHTML!=null)throw Error(n(91));return $({},o,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Gg(t,o){var s=o.value;if(s==null){if(s=o.children,o=o.defaultValue,s!=null){if(o!=null)throw Error(n(92));if(Zn(s)){if(1<s.length)throw Error(n(93));s=s[0]}o=s}o==null&&(o=""),s=o}t._wrapperState={initialValue:Pe(s)}}function Kg(t,o){var s=Pe(o.value),c=Pe(o.defaultValue);s!=null&&(s=""+s,s!==t.value&&(t.value=s),o.defaultValue==null&&t.defaultValue!==s&&(t.defaultValue=s)),c!=null&&(t.defaultValue=""+c)}function Xg(t){var o=t.textContent;o===t._wrapperState.initialValue&&o!==""&&o!==null&&(t.value=o)}function Qg(t){switch(t){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 Ec(t,o){return t==null||t==="http://www.w3.org/1999/xhtml"?Qg(o):t==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var Is,Yg=(function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,s,c,p){MSApp.execUnsafeLocalFunction(function(){return t(o,s,c,p)})}:t})(function(t,o){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=o;else{for(Is=Is||document.createElement("div"),Is.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=Is.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;o.firstChild;)t.appendChild(o.firstChild)}});function ei(t,o){if(o){var s=t.firstChild;if(s&&s===t.lastChild&&s.nodeType===3){s.nodeValue=o;return}}t.textContent=o}var ti={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},t3=["Webkit","ms","Moz","O"];Object.keys(ti).forEach(function(t){t3.forEach(function(o){o=o+t.charAt(0).toUpperCase()+t.substring(1),ti[o]=ti[t]})});function Jg(t,o,s){return o==null||typeof o=="boolean"||o===""?"":s||typeof o!="number"||o===0||ti.hasOwnProperty(t)&&ti[t]?(""+o).trim():o+"px"}function Zg(t,o){t=t.style;for(var s in o)if(o.hasOwnProperty(s)){var c=s.indexOf("--")===0,p=Jg(s,o[s],c);s==="float"&&(s="cssFloat"),c?t.setProperty(s,p):t[s]=p}}var r3=$({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 Pc(t,o){if(o){if(r3[t]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(n(137,t));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(n(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(n(61))}if(o.style!=null&&typeof o.style!="object")throw Error(n(62))}}function Rc(t,o){if(t.indexOf("-")===-1)return typeof o.is=="string";switch(t){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 Fc=null;function Ic(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var jc=null,rn=null,on=null;function eh(t){if(t=Si(t)){if(typeof jc!="function")throw Error(n(280));var o=t.stateNode;o&&(o=ol(o),jc(t.stateNode,t.type,o))}}function th(t){rn?on?on.push(t):on=[t]:rn=t}function rh(){if(rn){var t=rn,o=on;if(on=rn=null,eh(t),o)for(t=0;t<o.length;t++)eh(o[t])}}function oh(t,o){return t(o)}function nh(){}var Dc=!1;function ih(t,o,s){if(Dc)return t(o,s);Dc=!0;try{return oh(t,o,s)}finally{Dc=!1,(rn!==null||on!==null)&&(nh(),rh())}}function ri(t,o){var s=t.stateNode;if(s===null)return null;var c=ol(s);if(c===null)return null;s=c[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(t=t.type,c=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!c;break e;default:t=!1}if(t)return null;if(s&&typeof s!="function")throw Error(n(231,o,typeof s));return s}var Oc=!1;if(d)try{var oi={};Object.defineProperty(oi,"passive",{get:function(){Oc=!0}}),window.addEventListener("test",oi,oi),window.removeEventListener("test",oi,oi)}catch{Oc=!1}function o3(t,o,s,c,p,g,x,T,P){var W=Array.prototype.slice.call(arguments,3);try{o.apply(s,W)}catch(Z){this.onError(Z)}}var ni=!1,js=null,Ds=!1,Ac=null,n3={onError:function(t){ni=!0,js=t}};function i3(t,o,s,c,p,g,x,T,P){ni=!1,js=null,o3.apply(n3,arguments)}function s3(t,o,s,c,p,g,x,T,P){if(i3.apply(this,arguments),ni){if(ni){var W=js;ni=!1,js=null}else throw Error(n(198));Ds||(Ds=!0,Ac=W)}}function Bo(t){var o=t,s=t;if(t.alternate)for(;o.return;)o=o.return;else{t=o;do o=t,(o.flags&4098)!==0&&(s=o.return),t=o.return;while(t)}return o.tag===3?s:null}function sh(t){if(t.tag===13){var o=t.memoizedState;if(o===null&&(t=t.alternate,t!==null&&(o=t.memoizedState)),o!==null)return o.dehydrated}return null}function lh(t){if(Bo(t)!==t)throw Error(n(188))}function l3(t){var o=t.alternate;if(!o){if(o=Bo(t),o===null)throw Error(n(188));return o!==t?null:t}for(var s=t,c=o;;){var p=s.return;if(p===null)break;var g=p.alternate;if(g===null){if(c=p.return,c!==null){s=c;continue}break}if(p.child===g.child){for(g=p.child;g;){if(g===s)return lh(p),t;if(g===c)return lh(p),o;g=g.sibling}throw Error(n(188))}if(s.return!==c.return)s=p,c=g;else{for(var x=!1,T=p.child;T;){if(T===s){x=!0,s=p,c=g;break}if(T===c){x=!0,c=p,s=g;break}T=T.sibling}if(!x){for(T=g.child;T;){if(T===s){x=!0,s=g,c=p;break}if(T===c){x=!0,c=g,s=p;break}T=T.sibling}if(!x)throw Error(n(189))}}if(s.alternate!==c)throw Error(n(190))}if(s.tag!==3)throw Error(n(188));return s.stateNode.current===s?t:o}function ah(t){return t=l3(t),t!==null?ch(t):null}function ch(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var o=ch(t);if(o!==null)return o;t=t.sibling}return null}var uh=r.unstable_scheduleCallback,dh=r.unstable_cancelCallback,a3=r.unstable_shouldYield,c3=r.unstable_requestPaint,tt=r.unstable_now,u3=r.unstable_getCurrentPriorityLevel,Mc=r.unstable_ImmediatePriority,fh=r.unstable_UserBlockingPriority,Os=r.unstable_NormalPriority,d3=r.unstable_LowPriority,ph=r.unstable_IdlePriority,As=null,Sr=null;function f3(t){if(Sr&&typeof Sr.onCommitFiberRoot=="function")try{Sr.onCommitFiberRoot(As,t,void 0,(t.current.flags&128)===128)}catch{}}var ur=Math.clz32?Math.clz32:g3,p3=Math.log,m3=Math.LN2;function g3(t){return t>>>=0,t===0?32:31-(p3(t)/m3|0)|0}var Ms=64,Ls=4194304;function ii(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function qs(t,o){var s=t.pendingLanes;if(s===0)return 0;var c=0,p=t.suspendedLanes,g=t.pingedLanes,x=s&268435455;if(x!==0){var T=x&~p;T!==0?c=ii(T):(g&=x,g!==0&&(c=ii(g)))}else x=s&~p,x!==0?c=ii(x):g!==0&&(c=ii(g));if(c===0)return 0;if(o!==0&&o!==c&&(o&p)===0&&(p=c&-c,g=o&-o,p>=g||p===16&&(g&4194240)!==0))return o;if((c&4)!==0&&(c|=s&16),o=t.entangledLanes,o!==0)for(t=t.entanglements,o&=c;0<o;)s=31-ur(o),p=1<<s,c|=t[s],o&=~p;return c}function h3(t,o){switch(t){case 1:case 2:case 4:return o+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 o+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 v3(t,o){for(var s=t.suspendedLanes,c=t.pingedLanes,p=t.expirationTimes,g=t.pendingLanes;0<g;){var x=31-ur(g),T=1<<x,P=p[x];P===-1?((T&s)===0||(T&c)!==0)&&(p[x]=h3(T,o)):P<=o&&(t.expiredLanes|=T),g&=~T}}function Lc(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function mh(){var t=Ms;return Ms<<=1,(Ms&4194240)===0&&(Ms=64),t}function qc(t){for(var o=[],s=0;31>s;s++)o.push(t);return o}function si(t,o,s){t.pendingLanes|=o,o!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,o=31-ur(o),t[o]=s}function b3(t,o){var s=t.pendingLanes&~o;t.pendingLanes=o,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=o,t.mutableReadLanes&=o,t.entangledLanes&=o,o=t.entanglements;var c=t.eventTimes;for(t=t.expirationTimes;0<s;){var p=31-ur(s),g=1<<p;o[p]=0,c[p]=-1,t[p]=-1,s&=~g}}function Hc(t,o){var s=t.entangledLanes|=o;for(t=t.entanglements;s;){var c=31-ur(s),p=1<<c;p&o|t[c]&o&&(t[c]|=o),s&=~p}}var Re=0;function gh(t){return t&=-t,1<t?4<t?(t&268435455)!==0?16:536870912:4:1}var hh,Wc,vh,bh,yh,Vc=!1,Hs=[],Zr=null,eo=null,to=null,li=new Map,ai=new Map,ro=[],y3="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 wh(t,o){switch(t){case"focusin":case"focusout":Zr=null;break;case"dragenter":case"dragleave":eo=null;break;case"mouseover":case"mouseout":to=null;break;case"pointerover":case"pointerout":li.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":ai.delete(o.pointerId)}}function ci(t,o,s,c,p,g){return t===null||t.nativeEvent!==g?(t={blockedOn:o,domEventName:s,eventSystemFlags:c,nativeEvent:g,targetContainers:[p]},o!==null&&(o=Si(o),o!==null&&Wc(o)),t):(t.eventSystemFlags|=c,o=t.targetContainers,p!==null&&o.indexOf(p)===-1&&o.push(p),t)}function w3(t,o,s,c,p){switch(o){case"focusin":return Zr=ci(Zr,t,o,s,c,p),!0;case"dragenter":return eo=ci(eo,t,o,s,c,p),!0;case"mouseover":return to=ci(to,t,o,s,c,p),!0;case"pointerover":var g=p.pointerId;return li.set(g,ci(li.get(g)||null,t,o,s,c,p)),!0;case"gotpointercapture":return g=p.pointerId,ai.set(g,ci(ai.get(g)||null,t,o,s,c,p)),!0}return!1}function kh(t){var o=Co(t.target);if(o!==null){var s=Bo(o);if(s!==null){if(o=s.tag,o===13){if(o=sh(s),o!==null){t.blockedOn=o,yh(t.priority,function(){vh(s)});return}}else if(o===3&&s.stateNode.current.memoizedState.isDehydrated){t.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Ws(t){if(t.blockedOn!==null)return!1;for(var o=t.targetContainers;0<o.length;){var s=Uc(t.domEventName,t.eventSystemFlags,o[0],t.nativeEvent);if(s===null){s=t.nativeEvent;var c=new s.constructor(s.type,s);Fc=c,s.target.dispatchEvent(c),Fc=null}else return o=Si(s),o!==null&&Wc(o),t.blockedOn=s,!1;o.shift()}return!0}function xh(t,o,s){Ws(t)&&s.delete(o)}function k3(){Vc=!1,Zr!==null&&Ws(Zr)&&(Zr=null),eo!==null&&Ws(eo)&&(eo=null),to!==null&&Ws(to)&&(to=null),li.forEach(xh),ai.forEach(xh)}function ui(t,o){t.blockedOn===o&&(t.blockedOn=null,Vc||(Vc=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,k3)))}function di(t){function o(p){return ui(p,t)}if(0<Hs.length){ui(Hs[0],t);for(var s=1;s<Hs.length;s++){var c=Hs[s];c.blockedOn===t&&(c.blockedOn=null)}}for(Zr!==null&&ui(Zr,t),eo!==null&&ui(eo,t),to!==null&&ui(to,t),li.forEach(o),ai.forEach(o),s=0;s<ro.length;s++)c=ro[s],c.blockedOn===t&&(c.blockedOn=null);for(;0<ro.length&&(s=ro[0],s.blockedOn===null);)kh(s),s.blockedOn===null&&ro.shift()}var nn=C.ReactCurrentBatchConfig,Vs=!0;function x3(t,o,s,c){var p=Re,g=nn.transition;nn.transition=null;try{Re=1,$c(t,o,s,c)}finally{Re=p,nn.transition=g}}function S3(t,o,s,c){var p=Re,g=nn.transition;nn.transition=null;try{Re=4,$c(t,o,s,c)}finally{Re=p,nn.transition=g}}function $c(t,o,s,c){if(Vs){var p=Uc(t,o,s,c);if(p===null)cu(t,o,c,$s,s),wh(t,c);else if(w3(p,t,o,s,c))c.stopPropagation();else if(wh(t,c),o&4&&-1<y3.indexOf(t)){for(;p!==null;){var g=Si(p);if(g!==null&&hh(g),g=Uc(t,o,s,c),g===null&&cu(t,o,c,$s,s),g===p)break;p=g}p!==null&&c.stopPropagation()}else cu(t,o,c,null,s)}}var $s=null;function Uc(t,o,s,c){if($s=null,t=Ic(c),t=Co(t),t!==null)if(o=Bo(t),o===null)t=null;else if(s=o.tag,s===13){if(t=sh(o),t!==null)return t;t=null}else if(s===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;t=null}else o!==t&&(t=null);return $s=t,null}function Sh(t){switch(t){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(u3()){case Mc:return 1;case fh:return 4;case Os:case d3:return 16;case ph:return 536870912;default:return 16}default:return 16}}var oo=null,Gc=null,Us=null;function _h(){if(Us)return Us;var t,o=Gc,s=o.length,c,p="value"in oo?oo.value:oo.textContent,g=p.length;for(t=0;t<s&&o[t]===p[t];t++);var x=s-t;for(c=1;c<=x&&o[s-c]===p[g-c];c++);return Us=p.slice(t,1<c?1-c:void 0)}function Gs(t){var o=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&o===13&&(t=13)):t=o,t===10&&(t=13),32<=t||t===13?t:0}function Ks(){return!0}function Bh(){return!1}function Ht(t){function o(s,c,p,g,x){this._reactName=s,this._targetInst=p,this.type=c,this.nativeEvent=g,this.target=x,this.currentTarget=null;for(var T in t)t.hasOwnProperty(T)&&(s=t[T],this[T]=s?s(g):g[T]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Ks:Bh,this.isPropagationStopped=Bh,this}return $(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Ks)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Ks)},persist:function(){},isPersistent:Ks}),o}var sn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Kc=Ht(sn),fi=$({},sn,{view:0,detail:0}),_3=Ht(fi),Xc,Qc,pi,Xs=$({},fi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Jc,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==pi&&(pi&&t.type==="mousemove"?(Xc=t.screenX-pi.screenX,Qc=t.screenY-pi.screenY):Qc=Xc=0,pi=t),Xc)},movementY:function(t){return"movementY"in t?t.movementY:Qc}}),Ch=Ht(Xs),B3=$({},Xs,{dataTransfer:0}),C3=Ht(B3),z3=$({},fi,{relatedTarget:0}),Yc=Ht(z3),N3=$({},sn,{animationName:0,elapsedTime:0,pseudoElement:0}),T3=Ht(N3),E3=$({},sn,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),P3=Ht(E3),R3=$({},sn,{data:0}),zh=Ht(R3),F3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},I3={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"},j3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function D3(t){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(t):(t=j3[t])?!!o[t]:!1}function Jc(){return D3}var O3=$({},fi,{key:function(t){if(t.key){var o=F3[t.key]||t.key;if(o!=="Unidentified")return o}return t.type==="keypress"?(t=Gs(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?I3[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Jc,charCode:function(t){return t.type==="keypress"?Gs(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Gs(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),A3=Ht(O3),M3=$({},Xs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Nh=Ht(M3),L3=$({},fi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Jc}),q3=Ht(L3),H3=$({},sn,{propertyName:0,elapsedTime:0,pseudoElement:0}),W3=Ht(H3),V3=$({},Xs,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),$3=Ht(V3),U3=[9,13,27,32],Zc=d&&"CompositionEvent"in window,mi=null;d&&"documentMode"in document&&(mi=document.documentMode);var G3=d&&"TextEvent"in window&&!mi,Th=d&&(!Zc||mi&&8<mi&&11>=mi),Eh=" ",Ph=!1;function Rh(t,o){switch(t){case"keyup":return U3.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fh(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ln=!1;function K3(t,o){switch(t){case"compositionend":return Fh(o);case"keypress":return o.which!==32?null:(Ph=!0,Eh);case"textInput":return t=o.data,t===Eh&&Ph?null:t;default:return null}}function X3(t,o){if(ln)return t==="compositionend"||!Zc&&Rh(t,o)?(t=_h(),Us=Gc=oo=null,ln=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return Th&&o.locale!=="ko"?null:o.data;default:return null}}var Q3={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 Ih(t){var o=t&&t.nodeName&&t.nodeName.toLowerCase();return o==="input"?!!Q3[t.type]:o==="textarea"}function jh(t,o,s,c){th(c),o=el(o,"onChange"),0<o.length&&(s=new Kc("onChange","change",null,s,c),t.push({event:s,listeners:o}))}var gi=null,hi=null;function Y3(t){Zh(t,0)}function Qs(t){var o=fn(t);if(Wg(o))return t}function J3(t,o){if(t==="change")return o}var Dh=!1;if(d){var eu;if(d){var tu="oninput"in document;if(!tu){var Oh=document.createElement("div");Oh.setAttribute("oninput","return;"),tu=typeof Oh.oninput=="function"}eu=tu}else eu=!1;Dh=eu&&(!document.documentMode||9<document.documentMode)}function Ah(){gi&&(gi.detachEvent("onpropertychange",Mh),hi=gi=null)}function Mh(t){if(t.propertyName==="value"&&Qs(hi)){var o=[];jh(o,hi,t,Ic(t)),ih(Y3,o)}}function Z3(t,o,s){t==="focusin"?(Ah(),gi=o,hi=s,gi.attachEvent("onpropertychange",Mh)):t==="focusout"&&Ah()}function e4(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Qs(hi)}function t4(t,o){if(t==="click")return Qs(o)}function r4(t,o){if(t==="input"||t==="change")return Qs(o)}function o4(t,o){return t===o&&(t!==0||1/t===1/o)||t!==t&&o!==o}var dr=typeof Object.is=="function"?Object.is:o4;function vi(t,o){if(dr(t,o))return!0;if(typeof t!="object"||t===null||typeof o!="object"||o===null)return!1;var s=Object.keys(t),c=Object.keys(o);if(s.length!==c.length)return!1;for(c=0;c<s.length;c++){var p=s[c];if(!f.call(o,p)||!dr(t[p],o[p]))return!1}return!0}function Lh(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function qh(t,o){var s=Lh(t);t=0;for(var c;s;){if(s.nodeType===3){if(c=t+s.textContent.length,t<=o&&c>=o)return{node:s,offset:o-t};t=c}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Lh(s)}}function Hh(t,o){return t&&o?t===o?!0:t&&t.nodeType===3?!1:o&&o.nodeType===3?Hh(t,o.parentNode):"contains"in t?t.contains(o):t.compareDocumentPosition?!!(t.compareDocumentPosition(o)&16):!1:!1}function Wh(){for(var t=window,o=Fs();o instanceof t.HTMLIFrameElement;){try{var s=typeof o.contentWindow.location.href=="string"}catch{s=!1}if(s)t=o.contentWindow;else break;o=Fs(t.document)}return o}function ru(t){var o=t&&t.nodeName&&t.nodeName.toLowerCase();return o&&(o==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||o==="textarea"||t.contentEditable==="true")}function n4(t){var o=Wh(),s=t.focusedElem,c=t.selectionRange;if(o!==s&&s&&s.ownerDocument&&Hh(s.ownerDocument.documentElement,s)){if(c!==null&&ru(s)){if(o=c.start,t=c.end,t===void 0&&(t=o),"selectionStart"in s)s.selectionStart=o,s.selectionEnd=Math.min(t,s.value.length);else if(t=(o=s.ownerDocument||document)&&o.defaultView||window,t.getSelection){t=t.getSelection();var p=s.textContent.length,g=Math.min(c.start,p);c=c.end===void 0?g:Math.min(c.end,p),!t.extend&&g>c&&(p=c,c=g,g=p),p=qh(s,g);var x=qh(s,c);p&&x&&(t.rangeCount!==1||t.anchorNode!==p.node||t.anchorOffset!==p.offset||t.focusNode!==x.node||t.focusOffset!==x.offset)&&(o=o.createRange(),o.setStart(p.node,p.offset),t.removeAllRanges(),g>c?(t.addRange(o),t.extend(x.node,x.offset)):(o.setEnd(x.node,x.offset),t.addRange(o)))}}for(o=[],t=s;t=t.parentNode;)t.nodeType===1&&o.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<o.length;s++)t=o[s],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var i4=d&&"documentMode"in document&&11>=document.documentMode,an=null,ou=null,bi=null,nu=!1;function Vh(t,o,s){var c=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;nu||an==null||an!==Fs(c)||(c=an,"selectionStart"in c&&ru(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),bi&&vi(bi,c)||(bi=c,c=el(ou,"onSelect"),0<c.length&&(o=new Kc("onSelect","select",null,o,s),t.push({event:o,listeners:c}),o.target=an)))}function Ys(t,o){var s={};return s[t.toLowerCase()]=o.toLowerCase(),s["Webkit"+t]="webkit"+o,s["Moz"+t]="moz"+o,s}var cn={animationend:Ys("Animation","AnimationEnd"),animationiteration:Ys("Animation","AnimationIteration"),animationstart:Ys("Animation","AnimationStart"),transitionend:Ys("Transition","TransitionEnd")},iu={},$h={};d&&($h=document.createElement("div").style,"AnimationEvent"in window||(delete cn.animationend.animation,delete cn.animationiteration.animation,delete cn.animationstart.animation),"TransitionEvent"in window||delete cn.transitionend.transition);function Js(t){if(iu[t])return iu[t];if(!cn[t])return t;var o=cn[t],s;for(s in o)if(o.hasOwnProperty(s)&&s in $h)return iu[t]=o[s];return t}var Uh=Js("animationend"),Gh=Js("animationiteration"),Kh=Js("animationstart"),Xh=Js("transitionend"),Qh=new Map,Yh="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 no(t,o){Qh.set(t,o),a(o,[t])}for(var su=0;su<Yh.length;su++){var lu=Yh[su],s4=lu.toLowerCase(),l4=lu[0].toUpperCase()+lu.slice(1);no(s4,"on"+l4)}no(Uh,"onAnimationEnd"),no(Gh,"onAnimationIteration"),no(Kh,"onAnimationStart"),no("dblclick","onDoubleClick"),no("focusin","onFocus"),no("focusout","onBlur"),no(Xh,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yi="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(" "),a4=new Set("cancel close invalid load scroll toggle".split(" ").concat(yi));function Jh(t,o,s){var c=t.type||"unknown-event";t.currentTarget=s,s3(c,o,void 0,t),t.currentTarget=null}function Zh(t,o){o=(o&4)!==0;for(var s=0;s<t.length;s++){var c=t[s],p=c.event;c=c.listeners;e:{var g=void 0;if(o)for(var x=c.length-1;0<=x;x--){var T=c[x],P=T.instance,W=T.currentTarget;if(T=T.listener,P!==g&&p.isPropagationStopped())break e;Jh(p,T,W),g=P}else for(x=0;x<c.length;x++){if(T=c[x],P=T.instance,W=T.currentTarget,T=T.listener,P!==g&&p.isPropagationStopped())break e;Jh(p,T,W),g=P}}}if(Ds)throw t=Ac,Ds=!1,Ac=null,t}function Me(t,o){var s=o[gu];s===void 0&&(s=o[gu]=new Set);var c=t+"__bubble";s.has(c)||(ev(o,t,2,!1),s.add(c))}function au(t,o,s){var c=0;o&&(c|=4),ev(s,t,c,o)}var Zs="_reactListening"+Math.random().toString(36).slice(2);function wi(t){if(!t[Zs]){t[Zs]=!0,i.forEach(function(s){s!=="selectionchange"&&(a4.has(s)||au(s,!1,t),au(s,!0,t))});var o=t.nodeType===9?t:t.ownerDocument;o===null||o[Zs]||(o[Zs]=!0,au("selectionchange",!1,o))}}function ev(t,o,s,c){switch(Sh(o)){case 1:var p=x3;break;case 4:p=S3;break;default:p=$c}s=p.bind(null,o,s,t),p=void 0,!Oc||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(p=!0),c?p!==void 0?t.addEventListener(o,s,{capture:!0,passive:p}):t.addEventListener(o,s,!0):p!==void 0?t.addEventListener(o,s,{passive:p}):t.addEventListener(o,s,!1)}function cu(t,o,s,c,p){var g=c;if((o&1)===0&&(o&2)===0&&c!==null)e:for(;;){if(c===null)return;var x=c.tag;if(x===3||x===4){var T=c.stateNode.containerInfo;if(T===p||T.nodeType===8&&T.parentNode===p)break;if(x===4)for(x=c.return;x!==null;){var P=x.tag;if((P===3||P===4)&&(P=x.stateNode.containerInfo,P===p||P.nodeType===8&&P.parentNode===p))return;x=x.return}for(;T!==null;){if(x=Co(T),x===null)return;if(P=x.tag,P===5||P===6){c=g=x;continue e}T=T.parentNode}}c=c.return}ih(function(){var W=g,Z=Ic(s),re=[];e:{var Y=Qh.get(t);if(Y!==void 0){var de=Kc,pe=t;switch(t){case"keypress":if(Gs(s)===0)break e;case"keydown":case"keyup":de=A3;break;case"focusin":pe="focus",de=Yc;break;case"focusout":pe="blur",de=Yc;break;case"beforeblur":case"afterblur":de=Yc;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":de=Ch;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":de=C3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":de=q3;break;case Uh:case Gh:case Kh:de=T3;break;case Xh:de=W3;break;case"scroll":de=_3;break;case"wheel":de=$3;break;case"copy":case"cut":case"paste":de=P3;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":de=Nh}var me=(o&4)!==0,rt=!me&&t==="scroll",D=me?Y!==null?Y+"Capture":null:Y;me=[];for(var R=W,A;R!==null;){A=R;var ie=A.stateNode;if(A.tag===5&&ie!==null&&(A=ie,D!==null&&(ie=ri(R,D),ie!=null&&me.push(ki(R,ie,A)))),rt)break;R=R.return}0<me.length&&(Y=new de(Y,pe,null,s,Z),re.push({event:Y,listeners:me}))}}if((o&7)===0){e:{if(Y=t==="mouseover"||t==="pointerover",de=t==="mouseout"||t==="pointerout",Y&&s!==Fc&&(pe=s.relatedTarget||s.fromElement)&&(Co(pe)||pe[Or]))break e;if((de||Y)&&(Y=Z.window===Z?Z:(Y=Z.ownerDocument)?Y.defaultView||Y.parentWindow:window,de?(pe=s.relatedTarget||s.toElement,de=W,pe=pe?Co(pe):null,pe!==null&&(rt=Bo(pe),pe!==rt||pe.tag!==5&&pe.tag!==6)&&(pe=null)):(de=null,pe=W),de!==pe)){if(me=Ch,ie="onMouseLeave",D="onMouseEnter",R="mouse",(t==="pointerout"||t==="pointerover")&&(me=Nh,ie="onPointerLeave",D="onPointerEnter",R="pointer"),rt=de==null?Y:fn(de),A=pe==null?Y:fn(pe),Y=new me(ie,R+"leave",de,s,Z),Y.target=rt,Y.relatedTarget=A,ie=null,Co(Z)===W&&(me=new me(D,R+"enter",pe,s,Z),me.target=A,me.relatedTarget=rt,ie=me),rt=ie,de&&pe)t:{for(me=de,D=pe,R=0,A=me;A;A=un(A))R++;for(A=0,ie=D;ie;ie=un(ie))A++;for(;0<R-A;)me=un(me),R--;for(;0<A-R;)D=un(D),A--;for(;R--;){if(me===D||D!==null&&me===D.alternate)break t;me=un(me),D=un(D)}me=null}else me=null;de!==null&&tv(re,Y,de,me,!1),pe!==null&&rt!==null&&tv(re,rt,pe,me,!0)}}e:{if(Y=W?fn(W):window,de=Y.nodeName&&Y.nodeName.toLowerCase(),de==="select"||de==="input"&&Y.type==="file")var he=J3;else if(Ih(Y))if(Dh)he=r4;else{he=e4;var ye=Z3}else(de=Y.nodeName)&&de.toLowerCase()==="input"&&(Y.type==="checkbox"||Y.type==="radio")&&(he=t4);if(he&&(he=he(t,W))){jh(re,he,s,Z);break e}ye&&ye(t,Y,W),t==="focusout"&&(ye=Y._wrapperState)&&ye.controlled&&Y.type==="number"&&Nc(Y,"number",Y.value)}switch(ye=W?fn(W):window,t){case"focusin":(Ih(ye)||ye.contentEditable==="true")&&(an=ye,ou=W,bi=null);break;case"focusout":bi=ou=an=null;break;case"mousedown":nu=!0;break;case"contextmenu":case"mouseup":case"dragend":nu=!1,Vh(re,s,Z);break;case"selectionchange":if(i4)break;case"keydown":case"keyup":Vh(re,s,Z)}var we;if(Zc)e:{switch(t){case"compositionstart":var ke="onCompositionStart";break e;case"compositionend":ke="onCompositionEnd";break e;case"compositionupdate":ke="onCompositionUpdate";break e}ke=void 0}else ln?Rh(t,s)&&(ke="onCompositionEnd"):t==="keydown"&&s.keyCode===229&&(ke="onCompositionStart");ke&&(Th&&s.locale!=="ko"&&(ln||ke!=="onCompositionStart"?ke==="onCompositionEnd"&&ln&&(we=_h()):(oo=Z,Gc="value"in oo?oo.value:oo.textContent,ln=!0)),ye=el(W,ke),0<ye.length&&(ke=new zh(ke,t,null,s,Z),re.push({event:ke,listeners:ye}),we?ke.data=we:(we=Fh(s),we!==null&&(ke.data=we)))),(we=G3?K3(t,s):X3(t,s))&&(W=el(W,"onBeforeInput"),0<W.length&&(Z=new zh("onBeforeInput","beforeinput",null,s,Z),re.push({event:Z,listeners:W}),Z.data=we))}Zh(re,o)})}function ki(t,o,s){return{instance:t,listener:o,currentTarget:s}}function el(t,o){for(var s=o+"Capture",c=[];t!==null;){var p=t,g=p.stateNode;p.tag===5&&g!==null&&(p=g,g=ri(t,s),g!=null&&c.unshift(ki(t,g,p)),g=ri(t,o),g!=null&&c.push(ki(t,g,p))),t=t.return}return c}function un(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function tv(t,o,s,c,p){for(var g=o._reactName,x=[];s!==null&&s!==c;){var T=s,P=T.alternate,W=T.stateNode;if(P!==null&&P===c)break;T.tag===5&&W!==null&&(T=W,p?(P=ri(s,g),P!=null&&x.unshift(ki(s,P,T))):p||(P=ri(s,g),P!=null&&x.push(ki(s,P,T)))),s=s.return}x.length!==0&&t.push({event:o,listeners:x})}var c4=/\r\n?/g,u4=/\u0000|\uFFFD/g;function rv(t){return(typeof t=="string"?t:""+t).replace(c4,`
7
+ `).replace(u4,"")}function tl(t,o,s){if(o=rv(o),rv(t)!==o&&s)throw Error(n(425))}function rl(){}var uu=null,du=null;function fu(t,o){return t==="textarea"||t==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var pu=typeof setTimeout=="function"?setTimeout:void 0,d4=typeof clearTimeout=="function"?clearTimeout:void 0,ov=typeof Promise=="function"?Promise:void 0,f4=typeof queueMicrotask=="function"?queueMicrotask:typeof ov<"u"?function(t){return ov.resolve(null).then(t).catch(p4)}:pu;function p4(t){setTimeout(function(){throw t})}function mu(t,o){var s=o,c=0;do{var p=s.nextSibling;if(t.removeChild(s),p&&p.nodeType===8)if(s=p.data,s==="/$"){if(c===0){t.removeChild(p),di(o);return}c--}else s!=="$"&&s!=="$?"&&s!=="$!"||c++;s=p}while(s);di(o)}function io(t){for(;t!=null;t=t.nextSibling){var o=t.nodeType;if(o===1||o===3)break;if(o===8){if(o=t.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return t}function nv(t){t=t.previousSibling;for(var o=0;t;){if(t.nodeType===8){var s=t.data;if(s==="$"||s==="$!"||s==="$?"){if(o===0)return t;o--}else s==="/$"&&o++}t=t.previousSibling}return null}var dn=Math.random().toString(36).slice(2),_r="__reactFiber$"+dn,xi="__reactProps$"+dn,Or="__reactContainer$"+dn,gu="__reactEvents$"+dn,m4="__reactListeners$"+dn,g4="__reactHandles$"+dn;function Co(t){var o=t[_r];if(o)return o;for(var s=t.parentNode;s;){if(o=s[Or]||s[_r]){if(s=o.alternate,o.child!==null||s!==null&&s.child!==null)for(t=nv(t);t!==null;){if(s=t[_r])return s;t=nv(t)}return o}t=s,s=t.parentNode}return null}function Si(t){return t=t[_r]||t[Or],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function fn(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(n(33))}function ol(t){return t[xi]||null}var hu=[],pn=-1;function so(t){return{current:t}}function Le(t){0>pn||(t.current=hu[pn],hu[pn]=null,pn--)}function Ae(t,o){pn++,hu[pn]=t.current,t.current=o}var lo={},bt=so(lo),Et=so(!1),zo=lo;function mn(t,o){var s=t.type.contextTypes;if(!s)return lo;var c=t.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===o)return c.__reactInternalMemoizedMaskedChildContext;var p={},g;for(g in s)p[g]=o[g];return c&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=o,t.__reactInternalMemoizedMaskedChildContext=p),p}function Pt(t){return t=t.childContextTypes,t!=null}function nl(){Le(Et),Le(bt)}function iv(t,o,s){if(bt.current!==lo)throw Error(n(168));Ae(bt,o),Ae(Et,s)}function sv(t,o,s){var c=t.stateNode;if(o=o.childContextTypes,typeof c.getChildContext!="function")return s;c=c.getChildContext();for(var p in c)if(!(p in o))throw Error(n(108,Oe(t)||"Unknown",p));return $({},s,c)}function il(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||lo,zo=bt.current,Ae(bt,t),Ae(Et,Et.current),!0}function lv(t,o,s){var c=t.stateNode;if(!c)throw Error(n(169));s?(t=sv(t,o,zo),c.__reactInternalMemoizedMergedChildContext=t,Le(Et),Le(bt),Ae(bt,t)):Le(Et),Ae(Et,s)}var Ar=null,sl=!1,vu=!1;function av(t){Ar===null?Ar=[t]:Ar.push(t)}function h4(t){sl=!0,av(t)}function ao(){if(!vu&&Ar!==null){vu=!0;var t=0,o=Re;try{var s=Ar;for(Re=1;t<s.length;t++){var c=s[t];do c=c(!0);while(c!==null)}Ar=null,sl=!1}catch(p){throw Ar!==null&&(Ar=Ar.slice(t+1)),uh(Mc,ao),p}finally{Re=o,vu=!1}}return null}var gn=[],hn=0,ll=null,al=0,Jt=[],Zt=0,No=null,Mr=1,Lr="";function To(t,o){gn[hn++]=al,gn[hn++]=ll,ll=t,al=o}function cv(t,o,s){Jt[Zt++]=Mr,Jt[Zt++]=Lr,Jt[Zt++]=No,No=t;var c=Mr;t=Lr;var p=32-ur(c)-1;c&=~(1<<p),s+=1;var g=32-ur(o)+p;if(30<g){var x=p-p%5;g=(c&(1<<x)-1).toString(32),c>>=x,p-=x,Mr=1<<32-ur(o)+p|s<<p|c,Lr=g+t}else Mr=1<<g|s<<p|c,Lr=t}function bu(t){t.return!==null&&(To(t,1),cv(t,1,0))}function yu(t){for(;t===ll;)ll=gn[--hn],gn[hn]=null,al=gn[--hn],gn[hn]=null;for(;t===No;)No=Jt[--Zt],Jt[Zt]=null,Lr=Jt[--Zt],Jt[Zt]=null,Mr=Jt[--Zt],Jt[Zt]=null}var Wt=null,Vt=null,He=!1,fr=null;function uv(t,o){var s=or(5,null,null,0);s.elementType="DELETED",s.stateNode=o,s.return=t,o=t.deletions,o===null?(t.deletions=[s],t.flags|=16):o.push(s)}function dv(t,o){switch(t.tag){case 5:var s=t.type;return o=o.nodeType!==1||s.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(t.stateNode=o,Wt=t,Vt=io(o.firstChild),!0):!1;case 6:return o=t.pendingProps===""||o.nodeType!==3?null:o,o!==null?(t.stateNode=o,Wt=t,Vt=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(s=No!==null?{id:Mr,overflow:Lr}:null,t.memoizedState={dehydrated:o,treeContext:s,retryLane:1073741824},s=or(18,null,null,0),s.stateNode=o,s.return=t,t.child=s,Wt=t,Vt=null,!0):!1;default:return!1}}function wu(t){return(t.mode&1)!==0&&(t.flags&128)===0}function ku(t){if(He){var o=Vt;if(o){var s=o;if(!dv(t,o)){if(wu(t))throw Error(n(418));o=io(s.nextSibling);var c=Wt;o&&dv(t,o)?uv(c,s):(t.flags=t.flags&-4097|2,He=!1,Wt=t)}}else{if(wu(t))throw Error(n(418));t.flags=t.flags&-4097|2,He=!1,Wt=t}}}function fv(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Wt=t}function cl(t){if(t!==Wt)return!1;if(!He)return fv(t),He=!0,!1;var o;if((o=t.tag!==3)&&!(o=t.tag!==5)&&(o=t.type,o=o!=="head"&&o!=="body"&&!fu(t.type,t.memoizedProps)),o&&(o=Vt)){if(wu(t))throw pv(),Error(n(418));for(;o;)uv(t,o),o=io(o.nextSibling)}if(fv(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(n(317));e:{for(t=t.nextSibling,o=0;t;){if(t.nodeType===8){var s=t.data;if(s==="/$"){if(o===0){Vt=io(t.nextSibling);break e}o--}else s!=="$"&&s!=="$!"&&s!=="$?"||o++}t=t.nextSibling}Vt=null}}else Vt=Wt?io(t.stateNode.nextSibling):null;return!0}function pv(){for(var t=Vt;t;)t=io(t.nextSibling)}function vn(){Vt=Wt=null,He=!1}function xu(t){fr===null?fr=[t]:fr.push(t)}var v4=C.ReactCurrentBatchConfig;function _i(t,o,s){if(t=s.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(s._owner){if(s=s._owner,s){if(s.tag!==1)throw Error(n(309));var c=s.stateNode}if(!c)throw Error(n(147,t));var p=c,g=""+t;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===g?o.ref:(o=function(x){var T=p.refs;x===null?delete T[g]:T[g]=x},o._stringRef=g,o)}if(typeof t!="string")throw Error(n(284));if(!s._owner)throw Error(n(290,t))}return t}function ul(t,o){throw t=Object.prototype.toString.call(o),Error(n(31,t==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":t))}function mv(t){var o=t._init;return o(t._payload)}function gv(t){function o(D,R){if(t){var A=D.deletions;A===null?(D.deletions=[R],D.flags|=16):A.push(R)}}function s(D,R){if(!t)return null;for(;R!==null;)o(D,R),R=R.sibling;return null}function c(D,R){for(D=new Map;R!==null;)R.key!==null?D.set(R.key,R):D.set(R.index,R),R=R.sibling;return D}function p(D,R){return D=vo(D,R),D.index=0,D.sibling=null,D}function g(D,R,A){return D.index=A,t?(A=D.alternate,A!==null?(A=A.index,A<R?(D.flags|=2,R):A):(D.flags|=2,R)):(D.flags|=1048576,R)}function x(D){return t&&D.alternate===null&&(D.flags|=2),D}function T(D,R,A,ie){return R===null||R.tag!==6?(R=pd(A,D.mode,ie),R.return=D,R):(R=p(R,A),R.return=D,R)}function P(D,R,A,ie){var he=A.type;return he===I?Z(D,R,A.props.children,ie,A.key):R!==null&&(R.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===H&&mv(he)===R.type)?(ie=p(R,A.props),ie.ref=_i(D,R,A),ie.return=D,ie):(ie=Il(A.type,A.key,A.props,null,D.mode,ie),ie.ref=_i(D,R,A),ie.return=D,ie)}function W(D,R,A,ie){return R===null||R.tag!==4||R.stateNode.containerInfo!==A.containerInfo||R.stateNode.implementation!==A.implementation?(R=md(A,D.mode,ie),R.return=D,R):(R=p(R,A.children||[]),R.return=D,R)}function Z(D,R,A,ie,he){return R===null||R.tag!==7?(R=Oo(A,D.mode,ie,he),R.return=D,R):(R=p(R,A),R.return=D,R)}function re(D,R,A){if(typeof R=="string"&&R!==""||typeof R=="number")return R=pd(""+R,D.mode,A),R.return=D,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case E:return A=Il(R.type,R.key,R.props,null,D.mode,A),A.ref=_i(D,null,R),A.return=D,A;case O:return R=md(R,D.mode,A),R.return=D,R;case H:var ie=R._init;return re(D,ie(R._payload),A)}if(Zn(R)||Q(R))return R=Oo(R,D.mode,A,null),R.return=D,R;ul(D,R)}return null}function Y(D,R,A,ie){var he=R!==null?R.key:null;if(typeof A=="string"&&A!==""||typeof A=="number")return he!==null?null:T(D,R,""+A,ie);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case E:return A.key===he?P(D,R,A,ie):null;case O:return A.key===he?W(D,R,A,ie):null;case H:return he=A._init,Y(D,R,he(A._payload),ie)}if(Zn(A)||Q(A))return he!==null?null:Z(D,R,A,ie,null);ul(D,A)}return null}function de(D,R,A,ie,he){if(typeof ie=="string"&&ie!==""||typeof ie=="number")return D=D.get(A)||null,T(R,D,""+ie,he);if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case E:return D=D.get(ie.key===null?A:ie.key)||null,P(R,D,ie,he);case O:return D=D.get(ie.key===null?A:ie.key)||null,W(R,D,ie,he);case H:var ye=ie._init;return de(D,R,A,ye(ie._payload),he)}if(Zn(ie)||Q(ie))return D=D.get(A)||null,Z(R,D,ie,he,null);ul(R,ie)}return null}function pe(D,R,A,ie){for(var he=null,ye=null,we=R,ke=R=0,ft=null;we!==null&&ke<A.length;ke++){we.index>ke?(ft=we,we=null):ft=we.sibling;var Ne=Y(D,we,A[ke],ie);if(Ne===null){we===null&&(we=ft);break}t&&we&&Ne.alternate===null&&o(D,we),R=g(Ne,R,ke),ye===null?he=Ne:ye.sibling=Ne,ye=Ne,we=ft}if(ke===A.length)return s(D,we),He&&To(D,ke),he;if(we===null){for(;ke<A.length;ke++)we=re(D,A[ke],ie),we!==null&&(R=g(we,R,ke),ye===null?he=we:ye.sibling=we,ye=we);return He&&To(D,ke),he}for(we=c(D,we);ke<A.length;ke++)ft=de(we,D,ke,A[ke],ie),ft!==null&&(t&&ft.alternate!==null&&we.delete(ft.key===null?ke:ft.key),R=g(ft,R,ke),ye===null?he=ft:ye.sibling=ft,ye=ft);return t&&we.forEach(function(bo){return o(D,bo)}),He&&To(D,ke),he}function me(D,R,A,ie){var he=Q(A);if(typeof he!="function")throw Error(n(150));if(A=he.call(A),A==null)throw Error(n(151));for(var ye=he=null,we=R,ke=R=0,ft=null,Ne=A.next();we!==null&&!Ne.done;ke++,Ne=A.next()){we.index>ke?(ft=we,we=null):ft=we.sibling;var bo=Y(D,we,Ne.value,ie);if(bo===null){we===null&&(we=ft);break}t&&we&&bo.alternate===null&&o(D,we),R=g(bo,R,ke),ye===null?he=bo:ye.sibling=bo,ye=bo,we=ft}if(Ne.done)return s(D,we),He&&To(D,ke),he;if(we===null){for(;!Ne.done;ke++,Ne=A.next())Ne=re(D,Ne.value,ie),Ne!==null&&(R=g(Ne,R,ke),ye===null?he=Ne:ye.sibling=Ne,ye=Ne);return He&&To(D,ke),he}for(we=c(D,we);!Ne.done;ke++,Ne=A.next())Ne=de(we,D,ke,Ne.value,ie),Ne!==null&&(t&&Ne.alternate!==null&&we.delete(Ne.key===null?ke:Ne.key),R=g(Ne,R,ke),ye===null?he=Ne:ye.sibling=Ne,ye=Ne);return t&&we.forEach(function(Q4){return o(D,Q4)}),He&&To(D,ke),he}function rt(D,R,A,ie){if(typeof A=="object"&&A!==null&&A.type===I&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case E:e:{for(var he=A.key,ye=R;ye!==null;){if(ye.key===he){if(he=A.type,he===I){if(ye.tag===7){s(D,ye.sibling),R=p(ye,A.props.children),R.return=D,D=R;break e}}else if(ye.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===H&&mv(he)===ye.type){s(D,ye.sibling),R=p(ye,A.props),R.ref=_i(D,ye,A),R.return=D,D=R;break e}s(D,ye);break}else o(D,ye);ye=ye.sibling}A.type===I?(R=Oo(A.props.children,D.mode,ie,A.key),R.return=D,D=R):(ie=Il(A.type,A.key,A.props,null,D.mode,ie),ie.ref=_i(D,R,A),ie.return=D,D=ie)}return x(D);case O:e:{for(ye=A.key;R!==null;){if(R.key===ye)if(R.tag===4&&R.stateNode.containerInfo===A.containerInfo&&R.stateNode.implementation===A.implementation){s(D,R.sibling),R=p(R,A.children||[]),R.return=D,D=R;break e}else{s(D,R);break}else o(D,R);R=R.sibling}R=md(A,D.mode,ie),R.return=D,D=R}return x(D);case H:return ye=A._init,rt(D,R,ye(A._payload),ie)}if(Zn(A))return pe(D,R,A,ie);if(Q(A))return me(D,R,A,ie);ul(D,A)}return typeof A=="string"&&A!==""||typeof A=="number"?(A=""+A,R!==null&&R.tag===6?(s(D,R.sibling),R=p(R,A),R.return=D,D=R):(s(D,R),R=pd(A,D.mode,ie),R.return=D,D=R),x(D)):s(D,R)}return rt}var bn=gv(!0),hv=gv(!1),dl=so(null),fl=null,yn=null,Su=null;function _u(){Su=yn=fl=null}function Bu(t){var o=dl.current;Le(dl),t._currentValue=o}function Cu(t,o,s){for(;t!==null;){var c=t.alternate;if((t.childLanes&o)!==o?(t.childLanes|=o,c!==null&&(c.childLanes|=o)):c!==null&&(c.childLanes&o)!==o&&(c.childLanes|=o),t===s)break;t=t.return}}function wn(t,o){fl=t,Su=yn=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&o)!==0&&(Rt=!0),t.firstContext=null)}function er(t){var o=t._currentValue;if(Su!==t)if(t={context:t,memoizedValue:o,next:null},yn===null){if(fl===null)throw Error(n(308));yn=t,fl.dependencies={lanes:0,firstContext:t}}else yn=yn.next=t;return o}var Eo=null;function zu(t){Eo===null?Eo=[t]:Eo.push(t)}function vv(t,o,s,c){var p=o.interleaved;return p===null?(s.next=s,zu(o)):(s.next=p.next,p.next=s),o.interleaved=s,qr(t,c)}function qr(t,o){t.lanes|=o;var s=t.alternate;for(s!==null&&(s.lanes|=o),s=t,t=t.return;t!==null;)t.childLanes|=o,s=t.alternate,s!==null&&(s.childLanes|=o),s=t,t=t.return;return s.tag===3?s.stateNode:null}var co=!1;function Nu(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function bv(t,o){t=t.updateQueue,o.updateQueue===t&&(o.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Hr(t,o){return{eventTime:t,lane:o,tag:0,payload:null,callback:null,next:null}}function uo(t,o,s){var c=t.updateQueue;if(c===null)return null;if(c=c.shared,(Ce&2)!==0){var p=c.pending;return p===null?o.next=o:(o.next=p.next,p.next=o),c.pending=o,qr(t,s)}return p=c.interleaved,p===null?(o.next=o,zu(c)):(o.next=p.next,p.next=o),c.interleaved=o,qr(t,s)}function pl(t,o,s){if(o=o.updateQueue,o!==null&&(o=o.shared,(s&4194240)!==0)){var c=o.lanes;c&=t.pendingLanes,s|=c,o.lanes=s,Hc(t,s)}}function yv(t,o){var s=t.updateQueue,c=t.alternate;if(c!==null&&(c=c.updateQueue,s===c)){var p=null,g=null;if(s=s.firstBaseUpdate,s!==null){do{var x={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};g===null?p=g=x:g=g.next=x,s=s.next}while(s!==null);g===null?p=g=o:g=g.next=o}else p=g=o;s={baseState:c.baseState,firstBaseUpdate:p,lastBaseUpdate:g,shared:c.shared,effects:c.effects},t.updateQueue=s;return}t=s.lastBaseUpdate,t===null?s.firstBaseUpdate=o:t.next=o,s.lastBaseUpdate=o}function ml(t,o,s,c){var p=t.updateQueue;co=!1;var g=p.firstBaseUpdate,x=p.lastBaseUpdate,T=p.shared.pending;if(T!==null){p.shared.pending=null;var P=T,W=P.next;P.next=null,x===null?g=W:x.next=W,x=P;var Z=t.alternate;Z!==null&&(Z=Z.updateQueue,T=Z.lastBaseUpdate,T!==x&&(T===null?Z.firstBaseUpdate=W:T.next=W,Z.lastBaseUpdate=P))}if(g!==null){var re=p.baseState;x=0,Z=W=P=null,T=g;do{var Y=T.lane,de=T.eventTime;if((c&Y)===Y){Z!==null&&(Z=Z.next={eventTime:de,lane:0,tag:T.tag,payload:T.payload,callback:T.callback,next:null});e:{var pe=t,me=T;switch(Y=o,de=s,me.tag){case 1:if(pe=me.payload,typeof pe=="function"){re=pe.call(de,re,Y);break e}re=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=me.payload,Y=typeof pe=="function"?pe.call(de,re,Y):pe,Y==null)break e;re=$({},re,Y);break e;case 2:co=!0}}T.callback!==null&&T.lane!==0&&(t.flags|=64,Y=p.effects,Y===null?p.effects=[T]:Y.push(T))}else de={eventTime:de,lane:Y,tag:T.tag,payload:T.payload,callback:T.callback,next:null},Z===null?(W=Z=de,P=re):Z=Z.next=de,x|=Y;if(T=T.next,T===null){if(T=p.shared.pending,T===null)break;Y=T,T=Y.next,Y.next=null,p.lastBaseUpdate=Y,p.shared.pending=null}}while(!0);if(Z===null&&(P=re),p.baseState=P,p.firstBaseUpdate=W,p.lastBaseUpdate=Z,o=p.shared.interleaved,o!==null){p=o;do x|=p.lane,p=p.next;while(p!==o)}else g===null&&(p.shared.lanes=0);Fo|=x,t.lanes=x,t.memoizedState=re}}function wv(t,o,s){if(t=o.effects,o.effects=null,t!==null)for(o=0;o<t.length;o++){var c=t[o],p=c.callback;if(p!==null){if(c.callback=null,c=s,typeof p!="function")throw Error(n(191,p));p.call(c)}}}var Bi={},Br=so(Bi),Ci=so(Bi),zi=so(Bi);function Po(t){if(t===Bi)throw Error(n(174));return t}function Tu(t,o){switch(Ae(zi,o),Ae(Ci,t),Ae(Br,Bi),t=o.nodeType,t){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:Ec(null,"");break;default:t=t===8?o.parentNode:o,o=t.namespaceURI||null,t=t.tagName,o=Ec(o,t)}Le(Br),Ae(Br,o)}function kn(){Le(Br),Le(Ci),Le(zi)}function kv(t){Po(zi.current);var o=Po(Br.current),s=Ec(o,t.type);o!==s&&(Ae(Ci,t),Ae(Br,s))}function Eu(t){Ci.current===t&&(Le(Br),Le(Ci))}var $e=so(0);function gl(t){for(var o=t;o!==null;){if(o.tag===13){var s=o.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||s.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break;for(;o.sibling===null;){if(o.return===null||o.return===t)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var Pu=[];function Ru(){for(var t=0;t<Pu.length;t++)Pu[t]._workInProgressVersionPrimary=null;Pu.length=0}var hl=C.ReactCurrentDispatcher,Fu=C.ReactCurrentBatchConfig,Ro=0,Ue=null,lt=null,ut=null,vl=!1,Ni=!1,Ti=0,b4=0;function yt(){throw Error(n(321))}function Iu(t,o){if(o===null)return!1;for(var s=0;s<o.length&&s<t.length;s++)if(!dr(t[s],o[s]))return!1;return!0}function ju(t,o,s,c,p,g){if(Ro=g,Ue=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,hl.current=t===null||t.memoizedState===null?x4:S4,t=s(c,p),Ni){g=0;do{if(Ni=!1,Ti=0,25<=g)throw Error(n(301));g+=1,ut=lt=null,o.updateQueue=null,hl.current=_4,t=s(c,p)}while(Ni)}if(hl.current=wl,o=lt!==null&&lt.next!==null,Ro=0,ut=lt=Ue=null,vl=!1,o)throw Error(n(300));return t}function Du(){var t=Ti!==0;return Ti=0,t}function Cr(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ut===null?Ue.memoizedState=ut=t:ut=ut.next=t,ut}function tr(){if(lt===null){var t=Ue.alternate;t=t!==null?t.memoizedState:null}else t=lt.next;var o=ut===null?Ue.memoizedState:ut.next;if(o!==null)ut=o,lt=t;else{if(t===null)throw Error(n(310));lt=t,t={memoizedState:lt.memoizedState,baseState:lt.baseState,baseQueue:lt.baseQueue,queue:lt.queue,next:null},ut===null?Ue.memoizedState=ut=t:ut=ut.next=t}return ut}function Ei(t,o){return typeof o=="function"?o(t):o}function Ou(t){var o=tr(),s=o.queue;if(s===null)throw Error(n(311));s.lastRenderedReducer=t;var c=lt,p=c.baseQueue,g=s.pending;if(g!==null){if(p!==null){var x=p.next;p.next=g.next,g.next=x}c.baseQueue=p=g,s.pending=null}if(p!==null){g=p.next,c=c.baseState;var T=x=null,P=null,W=g;do{var Z=W.lane;if((Ro&Z)===Z)P!==null&&(P=P.next={lane:0,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null}),c=W.hasEagerState?W.eagerState:t(c,W.action);else{var re={lane:Z,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null};P===null?(T=P=re,x=c):P=P.next=re,Ue.lanes|=Z,Fo|=Z}W=W.next}while(W!==null&&W!==g);P===null?x=c:P.next=T,dr(c,o.memoizedState)||(Rt=!0),o.memoizedState=c,o.baseState=x,o.baseQueue=P,s.lastRenderedState=c}if(t=s.interleaved,t!==null){p=t;do g=p.lane,Ue.lanes|=g,Fo|=g,p=p.next;while(p!==t)}else p===null&&(s.lanes=0);return[o.memoizedState,s.dispatch]}function Au(t){var o=tr(),s=o.queue;if(s===null)throw Error(n(311));s.lastRenderedReducer=t;var c=s.dispatch,p=s.pending,g=o.memoizedState;if(p!==null){s.pending=null;var x=p=p.next;do g=t(g,x.action),x=x.next;while(x!==p);dr(g,o.memoizedState)||(Rt=!0),o.memoizedState=g,o.baseQueue===null&&(o.baseState=g),s.lastRenderedState=g}return[g,c]}function xv(){}function Sv(t,o){var s=Ue,c=tr(),p=o(),g=!dr(c.memoizedState,p);if(g&&(c.memoizedState=p,Rt=!0),c=c.queue,Mu(Cv.bind(null,s,c,t),[t]),c.getSnapshot!==o||g||ut!==null&&ut.memoizedState.tag&1){if(s.flags|=2048,Pi(9,Bv.bind(null,s,c,p,o),void 0,null),dt===null)throw Error(n(349));(Ro&30)!==0||_v(s,o,p)}return p}function _v(t,o,s){t.flags|=16384,t={getSnapshot:o,value:s},o=Ue.updateQueue,o===null?(o={lastEffect:null,stores:null},Ue.updateQueue=o,o.stores=[t]):(s=o.stores,s===null?o.stores=[t]:s.push(t))}function Bv(t,o,s,c){o.value=s,o.getSnapshot=c,zv(o)&&Nv(t)}function Cv(t,o,s){return s(function(){zv(o)&&Nv(t)})}function zv(t){var o=t.getSnapshot;t=t.value;try{var s=o();return!dr(t,s)}catch{return!0}}function Nv(t){var o=qr(t,1);o!==null&&hr(o,t,1,-1)}function Tv(t){var o=Cr();return typeof t=="function"&&(t=t()),o.memoizedState=o.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ei,lastRenderedState:t},o.queue=t,t=t.dispatch=k4.bind(null,Ue,t),[o.memoizedState,t]}function Pi(t,o,s,c){return t={tag:t,create:o,destroy:s,deps:c,next:null},o=Ue.updateQueue,o===null?(o={lastEffect:null,stores:null},Ue.updateQueue=o,o.lastEffect=t.next=t):(s=o.lastEffect,s===null?o.lastEffect=t.next=t:(c=s.next,s.next=t,t.next=c,o.lastEffect=t)),t}function Ev(){return tr().memoizedState}function bl(t,o,s,c){var p=Cr();Ue.flags|=t,p.memoizedState=Pi(1|o,s,void 0,c===void 0?null:c)}function yl(t,o,s,c){var p=tr();c=c===void 0?null:c;var g=void 0;if(lt!==null){var x=lt.memoizedState;if(g=x.destroy,c!==null&&Iu(c,x.deps)){p.memoizedState=Pi(o,s,g,c);return}}Ue.flags|=t,p.memoizedState=Pi(1|o,s,g,c)}function Pv(t,o){return bl(8390656,8,t,o)}function Mu(t,o){return yl(2048,8,t,o)}function Rv(t,o){return yl(4,2,t,o)}function Fv(t,o){return yl(4,4,t,o)}function Iv(t,o){if(typeof o=="function")return t=t(),o(t),function(){o(null)};if(o!=null)return t=t(),o.current=t,function(){o.current=null}}function jv(t,o,s){return s=s!=null?s.concat([t]):null,yl(4,4,Iv.bind(null,o,t),s)}function Lu(){}function Dv(t,o){var s=tr();o=o===void 0?null:o;var c=s.memoizedState;return c!==null&&o!==null&&Iu(o,c[1])?c[0]:(s.memoizedState=[t,o],t)}function Ov(t,o){var s=tr();o=o===void 0?null:o;var c=s.memoizedState;return c!==null&&o!==null&&Iu(o,c[1])?c[0]:(t=t(),s.memoizedState=[t,o],t)}function Av(t,o,s){return(Ro&21)===0?(t.baseState&&(t.baseState=!1,Rt=!0),t.memoizedState=s):(dr(s,o)||(s=mh(),Ue.lanes|=s,Fo|=s,t.baseState=!0),o)}function y4(t,o){var s=Re;Re=s!==0&&4>s?s:4,t(!0);var c=Fu.transition;Fu.transition={};try{t(!1),o()}finally{Re=s,Fu.transition=c}}function Mv(){return tr().memoizedState}function w4(t,o,s){var c=go(t);if(s={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null},Lv(t))qv(o,s);else if(s=vv(t,o,s,c),s!==null){var p=_t();hr(s,t,c,p),Hv(s,o,c)}}function k4(t,o,s){var c=go(t),p={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null};if(Lv(t))qv(o,p);else{var g=t.alternate;if(t.lanes===0&&(g===null||g.lanes===0)&&(g=o.lastRenderedReducer,g!==null))try{var x=o.lastRenderedState,T=g(x,s);if(p.hasEagerState=!0,p.eagerState=T,dr(T,x)){var P=o.interleaved;P===null?(p.next=p,zu(o)):(p.next=P.next,P.next=p),o.interleaved=p;return}}catch{}finally{}s=vv(t,o,p,c),s!==null&&(p=_t(),hr(s,t,c,p),Hv(s,o,c))}}function Lv(t){var o=t.alternate;return t===Ue||o!==null&&o===Ue}function qv(t,o){Ni=vl=!0;var s=t.pending;s===null?o.next=o:(o.next=s.next,s.next=o),t.pending=o}function Hv(t,o,s){if((s&4194240)!==0){var c=o.lanes;c&=t.pendingLanes,s|=c,o.lanes=s,Hc(t,s)}}var wl={readContext:er,useCallback:yt,useContext:yt,useEffect:yt,useImperativeHandle:yt,useInsertionEffect:yt,useLayoutEffect:yt,useMemo:yt,useReducer:yt,useRef:yt,useState:yt,useDebugValue:yt,useDeferredValue:yt,useTransition:yt,useMutableSource:yt,useSyncExternalStore:yt,useId:yt,unstable_isNewReconciler:!1},x4={readContext:er,useCallback:function(t,o){return Cr().memoizedState=[t,o===void 0?null:o],t},useContext:er,useEffect:Pv,useImperativeHandle:function(t,o,s){return s=s!=null?s.concat([t]):null,bl(4194308,4,Iv.bind(null,o,t),s)},useLayoutEffect:function(t,o){return bl(4194308,4,t,o)},useInsertionEffect:function(t,o){return bl(4,2,t,o)},useMemo:function(t,o){var s=Cr();return o=o===void 0?null:o,t=t(),s.memoizedState=[t,o],t},useReducer:function(t,o,s){var c=Cr();return o=s!==void 0?s(o):o,c.memoizedState=c.baseState=o,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:o},c.queue=t,t=t.dispatch=w4.bind(null,Ue,t),[c.memoizedState,t]},useRef:function(t){var o=Cr();return t={current:t},o.memoizedState=t},useState:Tv,useDebugValue:Lu,useDeferredValue:function(t){return Cr().memoizedState=t},useTransition:function(){var t=Tv(!1),o=t[0];return t=y4.bind(null,t[1]),Cr().memoizedState=t,[o,t]},useMutableSource:function(){},useSyncExternalStore:function(t,o,s){var c=Ue,p=Cr();if(He){if(s===void 0)throw Error(n(407));s=s()}else{if(s=o(),dt===null)throw Error(n(349));(Ro&30)!==0||_v(c,o,s)}p.memoizedState=s;var g={value:s,getSnapshot:o};return p.queue=g,Pv(Cv.bind(null,c,g,t),[t]),c.flags|=2048,Pi(9,Bv.bind(null,c,g,s,o),void 0,null),s},useId:function(){var t=Cr(),o=dt.identifierPrefix;if(He){var s=Lr,c=Mr;s=(c&~(1<<32-ur(c)-1)).toString(32)+s,o=":"+o+"R"+s,s=Ti++,0<s&&(o+="H"+s.toString(32)),o+=":"}else s=b4++,o=":"+o+"r"+s.toString(32)+":";return t.memoizedState=o},unstable_isNewReconciler:!1},S4={readContext:er,useCallback:Dv,useContext:er,useEffect:Mu,useImperativeHandle:jv,useInsertionEffect:Rv,useLayoutEffect:Fv,useMemo:Ov,useReducer:Ou,useRef:Ev,useState:function(){return Ou(Ei)},useDebugValue:Lu,useDeferredValue:function(t){var o=tr();return Av(o,lt.memoizedState,t)},useTransition:function(){var t=Ou(Ei)[0],o=tr().memoizedState;return[t,o]},useMutableSource:xv,useSyncExternalStore:Sv,useId:Mv,unstable_isNewReconciler:!1},_4={readContext:er,useCallback:Dv,useContext:er,useEffect:Mu,useImperativeHandle:jv,useInsertionEffect:Rv,useLayoutEffect:Fv,useMemo:Ov,useReducer:Au,useRef:Ev,useState:function(){return Au(Ei)},useDebugValue:Lu,useDeferredValue:function(t){var o=tr();return lt===null?o.memoizedState=t:Av(o,lt.memoizedState,t)},useTransition:function(){var t=Au(Ei)[0],o=tr().memoizedState;return[t,o]},useMutableSource:xv,useSyncExternalStore:Sv,useId:Mv,unstable_isNewReconciler:!1};function pr(t,o){if(t&&t.defaultProps){o=$({},o),t=t.defaultProps;for(var s in t)o[s]===void 0&&(o[s]=t[s]);return o}return o}function qu(t,o,s,c){o=t.memoizedState,s=s(c,o),s=s==null?o:$({},o,s),t.memoizedState=s,t.lanes===0&&(t.updateQueue.baseState=s)}var kl={isMounted:function(t){return(t=t._reactInternals)?Bo(t)===t:!1},enqueueSetState:function(t,o,s){t=t._reactInternals;var c=_t(),p=go(t),g=Hr(c,p);g.payload=o,s!=null&&(g.callback=s),o=uo(t,g,p),o!==null&&(hr(o,t,p,c),pl(o,t,p))},enqueueReplaceState:function(t,o,s){t=t._reactInternals;var c=_t(),p=go(t),g=Hr(c,p);g.tag=1,g.payload=o,s!=null&&(g.callback=s),o=uo(t,g,p),o!==null&&(hr(o,t,p,c),pl(o,t,p))},enqueueForceUpdate:function(t,o){t=t._reactInternals;var s=_t(),c=go(t),p=Hr(s,c);p.tag=2,o!=null&&(p.callback=o),o=uo(t,p,c),o!==null&&(hr(o,t,c,s),pl(o,t,c))}};function Wv(t,o,s,c,p,g,x){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(c,g,x):o.prototype&&o.prototype.isPureReactComponent?!vi(s,c)||!vi(p,g):!0}function Vv(t,o,s){var c=!1,p=lo,g=o.contextType;return typeof g=="object"&&g!==null?g=er(g):(p=Pt(o)?zo:bt.current,c=o.contextTypes,g=(c=c!=null)?mn(t,p):lo),o=new o(s,g),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=kl,t.stateNode=o,o._reactInternals=t,c&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=p,t.__reactInternalMemoizedMaskedChildContext=g),o}function $v(t,o,s,c){t=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(s,c),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(s,c),o.state!==t&&kl.enqueueReplaceState(o,o.state,null)}function Hu(t,o,s,c){var p=t.stateNode;p.props=s,p.state=t.memoizedState,p.refs={},Nu(t);var g=o.contextType;typeof g=="object"&&g!==null?p.context=er(g):(g=Pt(o)?zo:bt.current,p.context=mn(t,g)),p.state=t.memoizedState,g=o.getDerivedStateFromProps,typeof g=="function"&&(qu(t,o,g,s),p.state=t.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(o=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),o!==p.state&&kl.enqueueReplaceState(p,p.state,null),ml(t,s,p,c),p.state=t.memoizedState),typeof p.componentDidMount=="function"&&(t.flags|=4194308)}function xn(t,o){try{var s="",c=o;do s+=be(c),c=c.return;while(c);var p=s}catch(g){p=`
8
+ Error generating stack: `+g.message+`
9
+ `+g.stack}return{value:t,source:o,stack:p,digest:null}}function Wu(t,o,s){return{value:t,source:null,stack:s??null,digest:o??null}}function Vu(t,o){try{console.error(o.value)}catch(s){setTimeout(function(){throw s})}}var B4=typeof WeakMap=="function"?WeakMap:Map;function Uv(t,o,s){s=Hr(-1,s),s.tag=3,s.payload={element:null};var c=o.value;return s.callback=function(){Nl||(Nl=!0,id=c),Vu(t,o)},s}function Gv(t,o,s){s=Hr(-1,s),s.tag=3;var c=t.type.getDerivedStateFromError;if(typeof c=="function"){var p=o.value;s.payload=function(){return c(p)},s.callback=function(){Vu(t,o)}}var g=t.stateNode;return g!==null&&typeof g.componentDidCatch=="function"&&(s.callback=function(){Vu(t,o),typeof c!="function"&&(po===null?po=new Set([this]):po.add(this));var x=o.stack;this.componentDidCatch(o.value,{componentStack:x!==null?x:""})}),s}function Kv(t,o,s){var c=t.pingCache;if(c===null){c=t.pingCache=new B4;var p=new Set;c.set(o,p)}else p=c.get(o),p===void 0&&(p=new Set,c.set(o,p));p.has(s)||(p.add(s),t=M4.bind(null,t,o,s),o.then(t,t))}function Xv(t){do{var o;if((o=t.tag===13)&&(o=t.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return t;t=t.return}while(t!==null);return null}function Qv(t,o,s,c,p){return(t.mode&1)===0?(t===o?t.flags|=65536:(t.flags|=128,s.flags|=131072,s.flags&=-52805,s.tag===1&&(s.alternate===null?s.tag=17:(o=Hr(-1,1),o.tag=2,uo(s,o,1))),s.lanes|=1),t):(t.flags|=65536,t.lanes=p,t)}var C4=C.ReactCurrentOwner,Rt=!1;function St(t,o,s,c){o.child=t===null?hv(o,null,s,c):bn(o,t.child,s,c)}function Yv(t,o,s,c,p){s=s.render;var g=o.ref;return wn(o,p),c=ju(t,o,s,c,g,p),s=Du(),t!==null&&!Rt?(o.updateQueue=t.updateQueue,o.flags&=-2053,t.lanes&=~p,Wr(t,o,p)):(He&&s&&bu(o),o.flags|=1,St(t,o,c,p),o.child)}function Jv(t,o,s,c,p){if(t===null){var g=s.type;return typeof g=="function"&&!fd(g)&&g.defaultProps===void 0&&s.compare===null&&s.defaultProps===void 0?(o.tag=15,o.type=g,Zv(t,o,g,c,p)):(t=Il(s.type,null,c,o,o.mode,p),t.ref=o.ref,t.return=o,o.child=t)}if(g=t.child,(t.lanes&p)===0){var x=g.memoizedProps;if(s=s.compare,s=s!==null?s:vi,s(x,c)&&t.ref===o.ref)return Wr(t,o,p)}return o.flags|=1,t=vo(g,c),t.ref=o.ref,t.return=o,o.child=t}function Zv(t,o,s,c,p){if(t!==null){var g=t.memoizedProps;if(vi(g,c)&&t.ref===o.ref)if(Rt=!1,o.pendingProps=c=g,(t.lanes&p)!==0)(t.flags&131072)!==0&&(Rt=!0);else return o.lanes=t.lanes,Wr(t,o,p)}return $u(t,o,s,c,p)}function e0(t,o,s){var c=o.pendingProps,p=c.children,g=t!==null?t.memoizedState:null;if(c.mode==="hidden")if((o.mode&1)===0)o.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ae(_n,$t),$t|=s;else{if((s&1073741824)===0)return t=g!==null?g.baseLanes|s:s,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:t,cachePool:null,transitions:null},o.updateQueue=null,Ae(_n,$t),$t|=t,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=g!==null?g.baseLanes:s,Ae(_n,$t),$t|=c}else g!==null?(c=g.baseLanes|s,o.memoizedState=null):c=s,Ae(_n,$t),$t|=c;return St(t,o,p,s),o.child}function t0(t,o){var s=o.ref;(t===null&&s!==null||t!==null&&t.ref!==s)&&(o.flags|=512,o.flags|=2097152)}function $u(t,o,s,c,p){var g=Pt(s)?zo:bt.current;return g=mn(o,g),wn(o,p),s=ju(t,o,s,c,g,p),c=Du(),t!==null&&!Rt?(o.updateQueue=t.updateQueue,o.flags&=-2053,t.lanes&=~p,Wr(t,o,p)):(He&&c&&bu(o),o.flags|=1,St(t,o,s,p),o.child)}function r0(t,o,s,c,p){if(Pt(s)){var g=!0;il(o)}else g=!1;if(wn(o,p),o.stateNode===null)Sl(t,o),Vv(o,s,c),Hu(o,s,c,p),c=!0;else if(t===null){var x=o.stateNode,T=o.memoizedProps;x.props=T;var P=x.context,W=s.contextType;typeof W=="object"&&W!==null?W=er(W):(W=Pt(s)?zo:bt.current,W=mn(o,W));var Z=s.getDerivedStateFromProps,re=typeof Z=="function"||typeof x.getSnapshotBeforeUpdate=="function";re||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(T!==c||P!==W)&&$v(o,x,c,W),co=!1;var Y=o.memoizedState;x.state=Y,ml(o,c,x,p),P=o.memoizedState,T!==c||Y!==P||Et.current||co?(typeof Z=="function"&&(qu(o,s,Z,c),P=o.memoizedState),(T=co||Wv(o,s,T,c,Y,P,W))?(re||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(o.flags|=4194308)):(typeof x.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=c,o.memoizedState=P),x.props=c,x.state=P,x.context=W,c=T):(typeof x.componentDidMount=="function"&&(o.flags|=4194308),c=!1)}else{x=o.stateNode,bv(t,o),T=o.memoizedProps,W=o.type===o.elementType?T:pr(o.type,T),x.props=W,re=o.pendingProps,Y=x.context,P=s.contextType,typeof P=="object"&&P!==null?P=er(P):(P=Pt(s)?zo:bt.current,P=mn(o,P));var de=s.getDerivedStateFromProps;(Z=typeof de=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(T!==re||Y!==P)&&$v(o,x,c,P),co=!1,Y=o.memoizedState,x.state=Y,ml(o,c,x,p);var pe=o.memoizedState;T!==re||Y!==pe||Et.current||co?(typeof de=="function"&&(qu(o,s,de,c),pe=o.memoizedState),(W=co||Wv(o,s,W,c,Y,pe,P)||!1)?(Z||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(c,pe,P),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(c,pe,P)),typeof x.componentDidUpdate=="function"&&(o.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof x.componentDidUpdate!="function"||T===t.memoizedProps&&Y===t.memoizedState||(o.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||T===t.memoizedProps&&Y===t.memoizedState||(o.flags|=1024),o.memoizedProps=c,o.memoizedState=pe),x.props=c,x.state=pe,x.context=P,c=W):(typeof x.componentDidUpdate!="function"||T===t.memoizedProps&&Y===t.memoizedState||(o.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||T===t.memoizedProps&&Y===t.memoizedState||(o.flags|=1024),c=!1)}return Uu(t,o,s,c,g,p)}function Uu(t,o,s,c,p,g){t0(t,o);var x=(o.flags&128)!==0;if(!c&&!x)return p&&lv(o,s,!1),Wr(t,o,g);c=o.stateNode,C4.current=o;var T=x&&typeof s.getDerivedStateFromError!="function"?null:c.render();return o.flags|=1,t!==null&&x?(o.child=bn(o,t.child,null,g),o.child=bn(o,null,T,g)):St(t,o,T,g),o.memoizedState=c.state,p&&lv(o,s,!0),o.child}function o0(t){var o=t.stateNode;o.pendingContext?iv(t,o.pendingContext,o.pendingContext!==o.context):o.context&&iv(t,o.context,!1),Tu(t,o.containerInfo)}function n0(t,o,s,c,p){return vn(),xu(p),o.flags|=256,St(t,o,s,c),o.child}var Gu={dehydrated:null,treeContext:null,retryLane:0};function Ku(t){return{baseLanes:t,cachePool:null,transitions:null}}function i0(t,o,s){var c=o.pendingProps,p=$e.current,g=!1,x=(o.flags&128)!==0,T;if((T=x)||(T=t!==null&&t.memoizedState===null?!1:(p&2)!==0),T?(g=!0,o.flags&=-129):(t===null||t.memoizedState!==null)&&(p|=1),Ae($e,p&1),t===null)return ku(o),t=o.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?((o.mode&1)===0?o.lanes=1:t.data==="$!"?o.lanes=8:o.lanes=1073741824,null):(x=c.children,t=c.fallback,g?(c=o.mode,g=o.child,x={mode:"hidden",children:x},(c&1)===0&&g!==null?(g.childLanes=0,g.pendingProps=x):g=jl(x,c,0,null),t=Oo(t,c,s,null),g.return=o,t.return=o,g.sibling=t,o.child=g,o.child.memoizedState=Ku(s),o.memoizedState=Gu,t):Xu(o,x));if(p=t.memoizedState,p!==null&&(T=p.dehydrated,T!==null))return z4(t,o,x,c,T,p,s);if(g){g=c.fallback,x=o.mode,p=t.child,T=p.sibling;var P={mode:"hidden",children:c.children};return(x&1)===0&&o.child!==p?(c=o.child,c.childLanes=0,c.pendingProps=P,o.deletions=null):(c=vo(p,P),c.subtreeFlags=p.subtreeFlags&14680064),T!==null?g=vo(T,g):(g=Oo(g,x,s,null),g.flags|=2),g.return=o,c.return=o,c.sibling=g,o.child=c,c=g,g=o.child,x=t.child.memoizedState,x=x===null?Ku(s):{baseLanes:x.baseLanes|s,cachePool:null,transitions:x.transitions},g.memoizedState=x,g.childLanes=t.childLanes&~s,o.memoizedState=Gu,c}return g=t.child,t=g.sibling,c=vo(g,{mode:"visible",children:c.children}),(o.mode&1)===0&&(c.lanes=s),c.return=o,c.sibling=null,t!==null&&(s=o.deletions,s===null?(o.deletions=[t],o.flags|=16):s.push(t)),o.child=c,o.memoizedState=null,c}function Xu(t,o){return o=jl({mode:"visible",children:o},t.mode,0,null),o.return=t,t.child=o}function xl(t,o,s,c){return c!==null&&xu(c),bn(o,t.child,null,s),t=Xu(o,o.pendingProps.children),t.flags|=2,o.memoizedState=null,t}function z4(t,o,s,c,p,g,x){if(s)return o.flags&256?(o.flags&=-257,c=Wu(Error(n(422))),xl(t,o,x,c)):o.memoizedState!==null?(o.child=t.child,o.flags|=128,null):(g=c.fallback,p=o.mode,c=jl({mode:"visible",children:c.children},p,0,null),g=Oo(g,p,x,null),g.flags|=2,c.return=o,g.return=o,c.sibling=g,o.child=c,(o.mode&1)!==0&&bn(o,t.child,null,x),o.child.memoizedState=Ku(x),o.memoizedState=Gu,g);if((o.mode&1)===0)return xl(t,o,x,null);if(p.data==="$!"){if(c=p.nextSibling&&p.nextSibling.dataset,c)var T=c.dgst;return c=T,g=Error(n(419)),c=Wu(g,c,void 0),xl(t,o,x,c)}if(T=(x&t.childLanes)!==0,Rt||T){if(c=dt,c!==null){switch(x&-x){case 4:p=2;break;case 16:p=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:p=32;break;case 536870912:p=268435456;break;default:p=0}p=(p&(c.suspendedLanes|x))!==0?0:p,p!==0&&p!==g.retryLane&&(g.retryLane=p,qr(t,p),hr(c,t,p,-1))}return dd(),c=Wu(Error(n(421))),xl(t,o,x,c)}return p.data==="$?"?(o.flags|=128,o.child=t.child,o=L4.bind(null,t),p._reactRetry=o,null):(t=g.treeContext,Vt=io(p.nextSibling),Wt=o,He=!0,fr=null,t!==null&&(Jt[Zt++]=Mr,Jt[Zt++]=Lr,Jt[Zt++]=No,Mr=t.id,Lr=t.overflow,No=o),o=Xu(o,c.children),o.flags|=4096,o)}function s0(t,o,s){t.lanes|=o;var c=t.alternate;c!==null&&(c.lanes|=o),Cu(t.return,o,s)}function Qu(t,o,s,c,p){var g=t.memoizedState;g===null?t.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:c,tail:s,tailMode:p}:(g.isBackwards=o,g.rendering=null,g.renderingStartTime=0,g.last=c,g.tail=s,g.tailMode=p)}function l0(t,o,s){var c=o.pendingProps,p=c.revealOrder,g=c.tail;if(St(t,o,c.children,s),c=$e.current,(c&2)!==0)c=c&1|2,o.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=o.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&s0(t,s,o);else if(t.tag===19)s0(t,s,o);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===o)break e;for(;t.sibling===null;){if(t.return===null||t.return===o)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}c&=1}if(Ae($e,c),(o.mode&1)===0)o.memoizedState=null;else switch(p){case"forwards":for(s=o.child,p=null;s!==null;)t=s.alternate,t!==null&&gl(t)===null&&(p=s),s=s.sibling;s=p,s===null?(p=o.child,o.child=null):(p=s.sibling,s.sibling=null),Qu(o,!1,p,s,g);break;case"backwards":for(s=null,p=o.child,o.child=null;p!==null;){if(t=p.alternate,t!==null&&gl(t)===null){o.child=p;break}t=p.sibling,p.sibling=s,s=p,p=t}Qu(o,!0,s,null,g);break;case"together":Qu(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function Sl(t,o){(o.mode&1)===0&&t!==null&&(t.alternate=null,o.alternate=null,o.flags|=2)}function Wr(t,o,s){if(t!==null&&(o.dependencies=t.dependencies),Fo|=o.lanes,(s&o.childLanes)===0)return null;if(t!==null&&o.child!==t.child)throw Error(n(153));if(o.child!==null){for(t=o.child,s=vo(t,t.pendingProps),o.child=s,s.return=o;t.sibling!==null;)t=t.sibling,s=s.sibling=vo(t,t.pendingProps),s.return=o;s.sibling=null}return o.child}function N4(t,o,s){switch(o.tag){case 3:o0(o),vn();break;case 5:kv(o);break;case 1:Pt(o.type)&&il(o);break;case 4:Tu(o,o.stateNode.containerInfo);break;case 10:var c=o.type._context,p=o.memoizedProps.value;Ae(dl,c._currentValue),c._currentValue=p;break;case 13:if(c=o.memoizedState,c!==null)return c.dehydrated!==null?(Ae($e,$e.current&1),o.flags|=128,null):(s&o.child.childLanes)!==0?i0(t,o,s):(Ae($e,$e.current&1),t=Wr(t,o,s),t!==null?t.sibling:null);Ae($e,$e.current&1);break;case 19:if(c=(s&o.childLanes)!==0,(t.flags&128)!==0){if(c)return l0(t,o,s);o.flags|=128}if(p=o.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),Ae($e,$e.current),c)break;return null;case 22:case 23:return o.lanes=0,e0(t,o,s)}return Wr(t,o,s)}var a0,Yu,c0,u0;a0=function(t,o){for(var s=o.child;s!==null;){if(s.tag===5||s.tag===6)t.appendChild(s.stateNode);else if(s.tag!==4&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return;s=s.return}s.sibling.return=s.return,s=s.sibling}},Yu=function(){},c0=function(t,o,s,c){var p=t.memoizedProps;if(p!==c){t=o.stateNode,Po(Br.current);var g=null;switch(s){case"input":p=Cc(t,p),c=Cc(t,c),g=[];break;case"select":p=$({},p,{value:void 0}),c=$({},c,{value:void 0}),g=[];break;case"textarea":p=Tc(t,p),c=Tc(t,c),g=[];break;default:typeof p.onClick!="function"&&typeof c.onClick=="function"&&(t.onclick=rl)}Pc(s,c);var x;s=null;for(W in p)if(!c.hasOwnProperty(W)&&p.hasOwnProperty(W)&&p[W]!=null)if(W==="style"){var T=p[W];for(x in T)T.hasOwnProperty(x)&&(s||(s={}),s[x]="")}else W!=="dangerouslySetInnerHTML"&&W!=="children"&&W!=="suppressContentEditableWarning"&&W!=="suppressHydrationWarning"&&W!=="autoFocus"&&(l.hasOwnProperty(W)?g||(g=[]):(g=g||[]).push(W,null));for(W in c){var P=c[W];if(T=p?.[W],c.hasOwnProperty(W)&&P!==T&&(P!=null||T!=null))if(W==="style")if(T){for(x in T)!T.hasOwnProperty(x)||P&&P.hasOwnProperty(x)||(s||(s={}),s[x]="");for(x in P)P.hasOwnProperty(x)&&T[x]!==P[x]&&(s||(s={}),s[x]=P[x])}else s||(g||(g=[]),g.push(W,s)),s=P;else W==="dangerouslySetInnerHTML"?(P=P?P.__html:void 0,T=T?T.__html:void 0,P!=null&&T!==P&&(g=g||[]).push(W,P)):W==="children"?typeof P!="string"&&typeof P!="number"||(g=g||[]).push(W,""+P):W!=="suppressContentEditableWarning"&&W!=="suppressHydrationWarning"&&(l.hasOwnProperty(W)?(P!=null&&W==="onScroll"&&Me("scroll",t),g||T===P||(g=[])):(g=g||[]).push(W,P))}s&&(g=g||[]).push("style",s);var W=g;(o.updateQueue=W)&&(o.flags|=4)}},u0=function(t,o,s,c){s!==c&&(o.flags|=4)};function Ri(t,o){if(!He)switch(t.tailMode){case"hidden":o=t.tail;for(var s=null;o!==null;)o.alternate!==null&&(s=o),o=o.sibling;s===null?t.tail=null:s.sibling=null;break;case"collapsed":s=t.tail;for(var c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?o||t.tail===null?t.tail=null:t.tail.sibling=null:c.sibling=null}}function wt(t){var o=t.alternate!==null&&t.alternate.child===t.child,s=0,c=0;if(o)for(var p=t.child;p!==null;)s|=p.lanes|p.childLanes,c|=p.subtreeFlags&14680064,c|=p.flags&14680064,p.return=t,p=p.sibling;else for(p=t.child;p!==null;)s|=p.lanes|p.childLanes,c|=p.subtreeFlags,c|=p.flags,p.return=t,p=p.sibling;return t.subtreeFlags|=c,t.childLanes=s,o}function T4(t,o,s){var c=o.pendingProps;switch(yu(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return wt(o),null;case 1:return Pt(o.type)&&nl(),wt(o),null;case 3:return c=o.stateNode,kn(),Le(Et),Le(bt),Ru(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(t===null||t.child===null)&&(cl(o)?o.flags|=4:t===null||t.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,fr!==null&&(ad(fr),fr=null))),Yu(t,o),wt(o),null;case 5:Eu(o);var p=Po(zi.current);if(s=o.type,t!==null&&o.stateNode!=null)c0(t,o,s,c,p),t.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!c){if(o.stateNode===null)throw Error(n(166));return wt(o),null}if(t=Po(Br.current),cl(o)){c=o.stateNode,s=o.type;var g=o.memoizedProps;switch(c[_r]=o,c[xi]=g,t=(o.mode&1)!==0,s){case"dialog":Me("cancel",c),Me("close",c);break;case"iframe":case"object":case"embed":Me("load",c);break;case"video":case"audio":for(p=0;p<yi.length;p++)Me(yi[p],c);break;case"source":Me("error",c);break;case"img":case"image":case"link":Me("error",c),Me("load",c);break;case"details":Me("toggle",c);break;case"input":Vg(c,g),Me("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!g.multiple},Me("invalid",c);break;case"textarea":Gg(c,g),Me("invalid",c)}Pc(s,g),p=null;for(var x in g)if(g.hasOwnProperty(x)){var T=g[x];x==="children"?typeof T=="string"?c.textContent!==T&&(g.suppressHydrationWarning!==!0&&tl(c.textContent,T,t),p=["children",T]):typeof T=="number"&&c.textContent!==""+T&&(g.suppressHydrationWarning!==!0&&tl(c.textContent,T,t),p=["children",""+T]):l.hasOwnProperty(x)&&T!=null&&x==="onScroll"&&Me("scroll",c)}switch(s){case"input":Rs(c),Ug(c,g,!0);break;case"textarea":Rs(c),Xg(c);break;case"select":case"option":break;default:typeof g.onClick=="function"&&(c.onclick=rl)}c=p,o.updateQueue=c,c!==null&&(o.flags|=4)}else{x=p.nodeType===9?p:p.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=Qg(s)),t==="http://www.w3.org/1999/xhtml"?s==="script"?(t=x.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof c.is=="string"?t=x.createElement(s,{is:c.is}):(t=x.createElement(s),s==="select"&&(x=t,c.multiple?x.multiple=!0:c.size&&(x.size=c.size))):t=x.createElementNS(t,s),t[_r]=o,t[xi]=c,a0(t,o,!1,!1),o.stateNode=t;e:{switch(x=Rc(s,c),s){case"dialog":Me("cancel",t),Me("close",t),p=c;break;case"iframe":case"object":case"embed":Me("load",t),p=c;break;case"video":case"audio":for(p=0;p<yi.length;p++)Me(yi[p],t);p=c;break;case"source":Me("error",t),p=c;break;case"img":case"image":case"link":Me("error",t),Me("load",t),p=c;break;case"details":Me("toggle",t),p=c;break;case"input":Vg(t,c),p=Cc(t,c),Me("invalid",t);break;case"option":p=c;break;case"select":t._wrapperState={wasMultiple:!!c.multiple},p=$({},c,{value:void 0}),Me("invalid",t);break;case"textarea":Gg(t,c),p=Tc(t,c),Me("invalid",t);break;default:p=c}Pc(s,p),T=p;for(g in T)if(T.hasOwnProperty(g)){var P=T[g];g==="style"?Zg(t,P):g==="dangerouslySetInnerHTML"?(P=P?P.__html:void 0,P!=null&&Yg(t,P)):g==="children"?typeof P=="string"?(s!=="textarea"||P!=="")&&ei(t,P):typeof P=="number"&&ei(t,""+P):g!=="suppressContentEditableWarning"&&g!=="suppressHydrationWarning"&&g!=="autoFocus"&&(l.hasOwnProperty(g)?P!=null&&g==="onScroll"&&Me("scroll",t):P!=null&&B(t,g,P,x))}switch(s){case"input":Rs(t),Ug(t,c,!1);break;case"textarea":Rs(t),Xg(t);break;case"option":c.value!=null&&t.setAttribute("value",""+Pe(c.value));break;case"select":t.multiple=!!c.multiple,g=c.value,g!=null?tn(t,!!c.multiple,g,!1):c.defaultValue!=null&&tn(t,!!c.multiple,c.defaultValue,!0);break;default:typeof p.onClick=="function"&&(t.onclick=rl)}switch(s){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}}c&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return wt(o),null;case 6:if(t&&o.stateNode!=null)u0(t,o,t.memoizedProps,c);else{if(typeof c!="string"&&o.stateNode===null)throw Error(n(166));if(s=Po(zi.current),Po(Br.current),cl(o)){if(c=o.stateNode,s=o.memoizedProps,c[_r]=o,(g=c.nodeValue!==s)&&(t=Wt,t!==null))switch(t.tag){case 3:tl(c.nodeValue,s,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&tl(c.nodeValue,s,(t.mode&1)!==0)}g&&(o.flags|=4)}else c=(s.nodeType===9?s:s.ownerDocument).createTextNode(c),c[_r]=o,o.stateNode=c}return wt(o),null;case 13:if(Le($e),c=o.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(He&&Vt!==null&&(o.mode&1)!==0&&(o.flags&128)===0)pv(),vn(),o.flags|=98560,g=!1;else if(g=cl(o),c!==null&&c.dehydrated!==null){if(t===null){if(!g)throw Error(n(318));if(g=o.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(n(317));g[_r]=o}else vn(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;wt(o),g=!1}else fr!==null&&(ad(fr),fr=null),g=!0;if(!g)return o.flags&65536?o:null}return(o.flags&128)!==0?(o.lanes=s,o):(c=c!==null,c!==(t!==null&&t.memoizedState!==null)&&c&&(o.child.flags|=8192,(o.mode&1)!==0&&(t===null||($e.current&1)!==0?at===0&&(at=3):dd())),o.updateQueue!==null&&(o.flags|=4),wt(o),null);case 4:return kn(),Yu(t,o),t===null&&wi(o.stateNode.containerInfo),wt(o),null;case 10:return Bu(o.type._context),wt(o),null;case 17:return Pt(o.type)&&nl(),wt(o),null;case 19:if(Le($e),g=o.memoizedState,g===null)return wt(o),null;if(c=(o.flags&128)!==0,x=g.rendering,x===null)if(c)Ri(g,!1);else{if(at!==0||t!==null&&(t.flags&128)!==0)for(t=o.child;t!==null;){if(x=gl(t),x!==null){for(o.flags|=128,Ri(g,!1),c=x.updateQueue,c!==null&&(o.updateQueue=c,o.flags|=4),o.subtreeFlags=0,c=s,s=o.child;s!==null;)g=s,t=c,g.flags&=14680066,x=g.alternate,x===null?(g.childLanes=0,g.lanes=t,g.child=null,g.subtreeFlags=0,g.memoizedProps=null,g.memoizedState=null,g.updateQueue=null,g.dependencies=null,g.stateNode=null):(g.childLanes=x.childLanes,g.lanes=x.lanes,g.child=x.child,g.subtreeFlags=0,g.deletions=null,g.memoizedProps=x.memoizedProps,g.memoizedState=x.memoizedState,g.updateQueue=x.updateQueue,g.type=x.type,t=x.dependencies,g.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),s=s.sibling;return Ae($e,$e.current&1|2),o.child}t=t.sibling}g.tail!==null&&tt()>Bn&&(o.flags|=128,c=!0,Ri(g,!1),o.lanes=4194304)}else{if(!c)if(t=gl(x),t!==null){if(o.flags|=128,c=!0,s=t.updateQueue,s!==null&&(o.updateQueue=s,o.flags|=4),Ri(g,!0),g.tail===null&&g.tailMode==="hidden"&&!x.alternate&&!He)return wt(o),null}else 2*tt()-g.renderingStartTime>Bn&&s!==1073741824&&(o.flags|=128,c=!0,Ri(g,!1),o.lanes=4194304);g.isBackwards?(x.sibling=o.child,o.child=x):(s=g.last,s!==null?s.sibling=x:o.child=x,g.last=x)}return g.tail!==null?(o=g.tail,g.rendering=o,g.tail=o.sibling,g.renderingStartTime=tt(),o.sibling=null,s=$e.current,Ae($e,c?s&1|2:s&1),o):(wt(o),null);case 22:case 23:return ud(),c=o.memoizedState!==null,t!==null&&t.memoizedState!==null!==c&&(o.flags|=8192),c&&(o.mode&1)!==0?($t&1073741824)!==0&&(wt(o),o.subtreeFlags&6&&(o.flags|=8192)):wt(o),null;case 24:return null;case 25:return null}throw Error(n(156,o.tag))}function E4(t,o){switch(yu(o),o.tag){case 1:return Pt(o.type)&&nl(),t=o.flags,t&65536?(o.flags=t&-65537|128,o):null;case 3:return kn(),Le(Et),Le(bt),Ru(),t=o.flags,(t&65536)!==0&&(t&128)===0?(o.flags=t&-65537|128,o):null;case 5:return Eu(o),null;case 13:if(Le($e),t=o.memoizedState,t!==null&&t.dehydrated!==null){if(o.alternate===null)throw Error(n(340));vn()}return t=o.flags,t&65536?(o.flags=t&-65537|128,o):null;case 19:return Le($e),null;case 4:return kn(),null;case 10:return Bu(o.type._context),null;case 22:case 23:return ud(),null;case 24:return null;default:return null}}var _l=!1,kt=!1,P4=typeof WeakSet=="function"?WeakSet:Set,fe=null;function Sn(t,o){var s=t.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(c){Qe(t,o,c)}else s.current=null}function Ju(t,o,s){try{s()}catch(c){Qe(t,o,c)}}var d0=!1;function R4(t,o){if(uu=Vs,t=Wh(),ru(t)){if("selectionStart"in t)var s={start:t.selectionStart,end:t.selectionEnd};else e:{s=(s=t.ownerDocument)&&s.defaultView||window;var c=s.getSelection&&s.getSelection();if(c&&c.rangeCount!==0){s=c.anchorNode;var p=c.anchorOffset,g=c.focusNode;c=c.focusOffset;try{s.nodeType,g.nodeType}catch{s=null;break e}var x=0,T=-1,P=-1,W=0,Z=0,re=t,Y=null;t:for(;;){for(var de;re!==s||p!==0&&re.nodeType!==3||(T=x+p),re!==g||c!==0&&re.nodeType!==3||(P=x+c),re.nodeType===3&&(x+=re.nodeValue.length),(de=re.firstChild)!==null;)Y=re,re=de;for(;;){if(re===t)break t;if(Y===s&&++W===p&&(T=x),Y===g&&++Z===c&&(P=x),(de=re.nextSibling)!==null)break;re=Y,Y=re.parentNode}re=de}s=T===-1||P===-1?null:{start:T,end:P}}else s=null}s=s||{start:0,end:0}}else s=null;for(du={focusedElem:t,selectionRange:s},Vs=!1,fe=o;fe!==null;)if(o=fe,t=o.child,(o.subtreeFlags&1028)!==0&&t!==null)t.return=o,fe=t;else for(;fe!==null;){o=fe;try{var pe=o.alternate;if((o.flags&1024)!==0)switch(o.tag){case 0:case 11:case 15:break;case 1:if(pe!==null){var me=pe.memoizedProps,rt=pe.memoizedState,D=o.stateNode,R=D.getSnapshotBeforeUpdate(o.elementType===o.type?me:pr(o.type,me),rt);D.__reactInternalSnapshotBeforeUpdate=R}break;case 3:var A=o.stateNode.containerInfo;A.nodeType===1?A.textContent="":A.nodeType===9&&A.documentElement&&A.removeChild(A.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(ie){Qe(o,o.return,ie)}if(t=o.sibling,t!==null){t.return=o.return,fe=t;break}fe=o.return}return pe=d0,d0=!1,pe}function Fi(t,o,s){var c=o.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var p=c=c.next;do{if((p.tag&t)===t){var g=p.destroy;p.destroy=void 0,g!==void 0&&Ju(o,s,g)}p=p.next}while(p!==c)}}function Bl(t,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var s=o=o.next;do{if((s.tag&t)===t){var c=s.create;s.destroy=c()}s=s.next}while(s!==o)}}function Zu(t){var o=t.ref;if(o!==null){var s=t.stateNode;switch(t.tag){case 5:t=s;break;default:t=s}typeof o=="function"?o(t):o.current=t}}function f0(t){var o=t.alternate;o!==null&&(t.alternate=null,f0(o)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(o=t.stateNode,o!==null&&(delete o[_r],delete o[xi],delete o[gu],delete o[m4],delete o[g4])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function p0(t){return t.tag===5||t.tag===3||t.tag===4}function m0(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||p0(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function ed(t,o,s){var c=t.tag;if(c===5||c===6)t=t.stateNode,o?s.nodeType===8?s.parentNode.insertBefore(t,o):s.insertBefore(t,o):(s.nodeType===8?(o=s.parentNode,o.insertBefore(t,s)):(o=s,o.appendChild(t)),s=s._reactRootContainer,s!=null||o.onclick!==null||(o.onclick=rl));else if(c!==4&&(t=t.child,t!==null))for(ed(t,o,s),t=t.sibling;t!==null;)ed(t,o,s),t=t.sibling}function td(t,o,s){var c=t.tag;if(c===5||c===6)t=t.stateNode,o?s.insertBefore(t,o):s.appendChild(t);else if(c!==4&&(t=t.child,t!==null))for(td(t,o,s),t=t.sibling;t!==null;)td(t,o,s),t=t.sibling}var pt=null,mr=!1;function fo(t,o,s){for(s=s.child;s!==null;)g0(t,o,s),s=s.sibling}function g0(t,o,s){if(Sr&&typeof Sr.onCommitFiberUnmount=="function")try{Sr.onCommitFiberUnmount(As,s)}catch{}switch(s.tag){case 5:kt||Sn(s,o);case 6:var c=pt,p=mr;pt=null,fo(t,o,s),pt=c,mr=p,pt!==null&&(mr?(t=pt,s=s.stateNode,t.nodeType===8?t.parentNode.removeChild(s):t.removeChild(s)):pt.removeChild(s.stateNode));break;case 18:pt!==null&&(mr?(t=pt,s=s.stateNode,t.nodeType===8?mu(t.parentNode,s):t.nodeType===1&&mu(t,s),di(t)):mu(pt,s.stateNode));break;case 4:c=pt,p=mr,pt=s.stateNode.containerInfo,mr=!0,fo(t,o,s),pt=c,mr=p;break;case 0:case 11:case 14:case 15:if(!kt&&(c=s.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){p=c=c.next;do{var g=p,x=g.destroy;g=g.tag,x!==void 0&&((g&2)!==0||(g&4)!==0)&&Ju(s,o,x),p=p.next}while(p!==c)}fo(t,o,s);break;case 1:if(!kt&&(Sn(s,o),c=s.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=s.memoizedProps,c.state=s.memoizedState,c.componentWillUnmount()}catch(T){Qe(s,o,T)}fo(t,o,s);break;case 21:fo(t,o,s);break;case 22:s.mode&1?(kt=(c=kt)||s.memoizedState!==null,fo(t,o,s),kt=c):fo(t,o,s);break;default:fo(t,o,s)}}function h0(t){var o=t.updateQueue;if(o!==null){t.updateQueue=null;var s=t.stateNode;s===null&&(s=t.stateNode=new P4),o.forEach(function(c){var p=q4.bind(null,t,c);s.has(c)||(s.add(c),c.then(p,p))})}}function gr(t,o){var s=o.deletions;if(s!==null)for(var c=0;c<s.length;c++){var p=s[c];try{var g=t,x=o,T=x;e:for(;T!==null;){switch(T.tag){case 5:pt=T.stateNode,mr=!1;break e;case 3:pt=T.stateNode.containerInfo,mr=!0;break e;case 4:pt=T.stateNode.containerInfo,mr=!0;break e}T=T.return}if(pt===null)throw Error(n(160));g0(g,x,p),pt=null,mr=!1;var P=p.alternate;P!==null&&(P.return=null),p.return=null}catch(W){Qe(p,o,W)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)v0(o,t),o=o.sibling}function v0(t,o){var s=t.alternate,c=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(gr(o,t),zr(t),c&4){try{Fi(3,t,t.return),Bl(3,t)}catch(me){Qe(t,t.return,me)}try{Fi(5,t,t.return)}catch(me){Qe(t,t.return,me)}}break;case 1:gr(o,t),zr(t),c&512&&s!==null&&Sn(s,s.return);break;case 5:if(gr(o,t),zr(t),c&512&&s!==null&&Sn(s,s.return),t.flags&32){var p=t.stateNode;try{ei(p,"")}catch(me){Qe(t,t.return,me)}}if(c&4&&(p=t.stateNode,p!=null)){var g=t.memoizedProps,x=s!==null?s.memoizedProps:g,T=t.type,P=t.updateQueue;if(t.updateQueue=null,P!==null)try{T==="input"&&g.type==="radio"&&g.name!=null&&$g(p,g),Rc(T,x);var W=Rc(T,g);for(x=0;x<P.length;x+=2){var Z=P[x],re=P[x+1];Z==="style"?Zg(p,re):Z==="dangerouslySetInnerHTML"?Yg(p,re):Z==="children"?ei(p,re):B(p,Z,re,W)}switch(T){case"input":zc(p,g);break;case"textarea":Kg(p,g);break;case"select":var Y=p._wrapperState.wasMultiple;p._wrapperState.wasMultiple=!!g.multiple;var de=g.value;de!=null?tn(p,!!g.multiple,de,!1):Y!==!!g.multiple&&(g.defaultValue!=null?tn(p,!!g.multiple,g.defaultValue,!0):tn(p,!!g.multiple,g.multiple?[]:"",!1))}p[xi]=g}catch(me){Qe(t,t.return,me)}}break;case 6:if(gr(o,t),zr(t),c&4){if(t.stateNode===null)throw Error(n(162));p=t.stateNode,g=t.memoizedProps;try{p.nodeValue=g}catch(me){Qe(t,t.return,me)}}break;case 3:if(gr(o,t),zr(t),c&4&&s!==null&&s.memoizedState.isDehydrated)try{di(o.containerInfo)}catch(me){Qe(t,t.return,me)}break;case 4:gr(o,t),zr(t);break;case 13:gr(o,t),zr(t),p=t.child,p.flags&8192&&(g=p.memoizedState!==null,p.stateNode.isHidden=g,!g||p.alternate!==null&&p.alternate.memoizedState!==null||(nd=tt())),c&4&&h0(t);break;case 22:if(Z=s!==null&&s.memoizedState!==null,t.mode&1?(kt=(W=kt)||Z,gr(o,t),kt=W):gr(o,t),zr(t),c&8192){if(W=t.memoizedState!==null,(t.stateNode.isHidden=W)&&!Z&&(t.mode&1)!==0)for(fe=t,Z=t.child;Z!==null;){for(re=fe=Z;fe!==null;){switch(Y=fe,de=Y.child,Y.tag){case 0:case 11:case 14:case 15:Fi(4,Y,Y.return);break;case 1:Sn(Y,Y.return);var pe=Y.stateNode;if(typeof pe.componentWillUnmount=="function"){c=Y,s=Y.return;try{o=c,pe.props=o.memoizedProps,pe.state=o.memoizedState,pe.componentWillUnmount()}catch(me){Qe(c,s,me)}}break;case 5:Sn(Y,Y.return);break;case 22:if(Y.memoizedState!==null){w0(re);continue}}de!==null?(de.return=Y,fe=de):w0(re)}Z=Z.sibling}e:for(Z=null,re=t;;){if(re.tag===5){if(Z===null){Z=re;try{p=re.stateNode,W?(g=p.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none"):(T=re.stateNode,P=re.memoizedProps.style,x=P!=null&&P.hasOwnProperty("display")?P.display:null,T.style.display=Jg("display",x))}catch(me){Qe(t,t.return,me)}}}else if(re.tag===6){if(Z===null)try{re.stateNode.nodeValue=W?"":re.memoizedProps}catch(me){Qe(t,t.return,me)}}else if((re.tag!==22&&re.tag!==23||re.memoizedState===null||re===t)&&re.child!==null){re.child.return=re,re=re.child;continue}if(re===t)break e;for(;re.sibling===null;){if(re.return===null||re.return===t)break e;Z===re&&(Z=null),re=re.return}Z===re&&(Z=null),re.sibling.return=re.return,re=re.sibling}}break;case 19:gr(o,t),zr(t),c&4&&h0(t);break;case 21:break;default:gr(o,t),zr(t)}}function zr(t){var o=t.flags;if(o&2){try{e:{for(var s=t.return;s!==null;){if(p0(s)){var c=s;break e}s=s.return}throw Error(n(160))}switch(c.tag){case 5:var p=c.stateNode;c.flags&32&&(ei(p,""),c.flags&=-33);var g=m0(t);td(t,g,p);break;case 3:case 4:var x=c.stateNode.containerInfo,T=m0(t);ed(t,T,x);break;default:throw Error(n(161))}}catch(P){Qe(t,t.return,P)}t.flags&=-3}o&4096&&(t.flags&=-4097)}function F4(t,o,s){fe=t,b0(t)}function b0(t,o,s){for(var c=(t.mode&1)!==0;fe!==null;){var p=fe,g=p.child;if(p.tag===22&&c){var x=p.memoizedState!==null||_l;if(!x){var T=p.alternate,P=T!==null&&T.memoizedState!==null||kt;T=_l;var W=kt;if(_l=x,(kt=P)&&!W)for(fe=p;fe!==null;)x=fe,P=x.child,x.tag===22&&x.memoizedState!==null?k0(p):P!==null?(P.return=x,fe=P):k0(p);for(;g!==null;)fe=g,b0(g),g=g.sibling;fe=p,_l=T,kt=W}y0(t)}else(p.subtreeFlags&8772)!==0&&g!==null?(g.return=p,fe=g):y0(t)}}function y0(t){for(;fe!==null;){var o=fe;if((o.flags&8772)!==0){var s=o.alternate;try{if((o.flags&8772)!==0)switch(o.tag){case 0:case 11:case 15:kt||Bl(5,o);break;case 1:var c=o.stateNode;if(o.flags&4&&!kt)if(s===null)c.componentDidMount();else{var p=o.elementType===o.type?s.memoizedProps:pr(o.type,s.memoizedProps);c.componentDidUpdate(p,s.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var g=o.updateQueue;g!==null&&wv(o,g,c);break;case 3:var x=o.updateQueue;if(x!==null){if(s=null,o.child!==null)switch(o.child.tag){case 5:s=o.child.stateNode;break;case 1:s=o.child.stateNode}wv(o,x,s)}break;case 5:var T=o.stateNode;if(s===null&&o.flags&4){s=T;var P=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":P.autoFocus&&s.focus();break;case"img":P.src&&(s.src=P.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var W=o.alternate;if(W!==null){var Z=W.memoizedState;if(Z!==null){var re=Z.dehydrated;re!==null&&di(re)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}kt||o.flags&512&&Zu(o)}catch(Y){Qe(o,o.return,Y)}}if(o===t){fe=null;break}if(s=o.sibling,s!==null){s.return=o.return,fe=s;break}fe=o.return}}function w0(t){for(;fe!==null;){var o=fe;if(o===t){fe=null;break}var s=o.sibling;if(s!==null){s.return=o.return,fe=s;break}fe=o.return}}function k0(t){for(;fe!==null;){var o=fe;try{switch(o.tag){case 0:case 11:case 15:var s=o.return;try{Bl(4,o)}catch(P){Qe(o,s,P)}break;case 1:var c=o.stateNode;if(typeof c.componentDidMount=="function"){var p=o.return;try{c.componentDidMount()}catch(P){Qe(o,p,P)}}var g=o.return;try{Zu(o)}catch(P){Qe(o,g,P)}break;case 5:var x=o.return;try{Zu(o)}catch(P){Qe(o,x,P)}}}catch(P){Qe(o,o.return,P)}if(o===t){fe=null;break}var T=o.sibling;if(T!==null){T.return=o.return,fe=T;break}fe=o.return}}var I4=Math.ceil,Cl=C.ReactCurrentDispatcher,rd=C.ReactCurrentOwner,rr=C.ReactCurrentBatchConfig,Ce=0,dt=null,it=null,mt=0,$t=0,_n=so(0),at=0,Ii=null,Fo=0,zl=0,od=0,ji=null,Ft=null,nd=0,Bn=1/0,Vr=null,Nl=!1,id=null,po=null,Tl=!1,mo=null,El=0,Di=0,sd=null,Pl=-1,Rl=0;function _t(){return(Ce&6)!==0?tt():Pl!==-1?Pl:Pl=tt()}function go(t){return(t.mode&1)===0?1:(Ce&2)!==0&&mt!==0?mt&-mt:v4.transition!==null?(Rl===0&&(Rl=mh()),Rl):(t=Re,t!==0||(t=window.event,t=t===void 0?16:Sh(t.type)),t)}function hr(t,o,s,c){if(50<Di)throw Di=0,sd=null,Error(n(185));si(t,s,c),((Ce&2)===0||t!==dt)&&(t===dt&&((Ce&2)===0&&(zl|=s),at===4&&ho(t,mt)),It(t,c),s===1&&Ce===0&&(o.mode&1)===0&&(Bn=tt()+500,sl&&ao()))}function It(t,o){var s=t.callbackNode;v3(t,o);var c=qs(t,t===dt?mt:0);if(c===0)s!==null&&dh(s),t.callbackNode=null,t.callbackPriority=0;else if(o=c&-c,t.callbackPriority!==o){if(s!=null&&dh(s),o===1)t.tag===0?h4(S0.bind(null,t)):av(S0.bind(null,t)),f4(function(){(Ce&6)===0&&ao()}),s=null;else{switch(gh(c)){case 1:s=Mc;break;case 4:s=fh;break;case 16:s=Os;break;case 536870912:s=ph;break;default:s=Os}s=P0(s,x0.bind(null,t))}t.callbackPriority=o,t.callbackNode=s}}function x0(t,o){if(Pl=-1,Rl=0,(Ce&6)!==0)throw Error(n(327));var s=t.callbackNode;if(Cn()&&t.callbackNode!==s)return null;var c=qs(t,t===dt?mt:0);if(c===0)return null;if((c&30)!==0||(c&t.expiredLanes)!==0||o)o=Fl(t,c);else{o=c;var p=Ce;Ce|=2;var g=B0();(dt!==t||mt!==o)&&(Vr=null,Bn=tt()+500,jo(t,o));do try{O4();break}catch(T){_0(t,T)}while(!0);_u(),Cl.current=g,Ce=p,it!==null?o=0:(dt=null,mt=0,o=at)}if(o!==0){if(o===2&&(p=Lc(t),p!==0&&(c=p,o=ld(t,p))),o===1)throw s=Ii,jo(t,0),ho(t,c),It(t,tt()),s;if(o===6)ho(t,c);else{if(p=t.current.alternate,(c&30)===0&&!j4(p)&&(o=Fl(t,c),o===2&&(g=Lc(t),g!==0&&(c=g,o=ld(t,g))),o===1))throw s=Ii,jo(t,0),ho(t,c),It(t,tt()),s;switch(t.finishedWork=p,t.finishedLanes=c,o){case 0:case 1:throw Error(n(345));case 2:Do(t,Ft,Vr);break;case 3:if(ho(t,c),(c&130023424)===c&&(o=nd+500-tt(),10<o)){if(qs(t,0)!==0)break;if(p=t.suspendedLanes,(p&c)!==c){_t(),t.pingedLanes|=t.suspendedLanes&p;break}t.timeoutHandle=pu(Do.bind(null,t,Ft,Vr),o);break}Do(t,Ft,Vr);break;case 4:if(ho(t,c),(c&4194240)===c)break;for(o=t.eventTimes,p=-1;0<c;){var x=31-ur(c);g=1<<x,x=o[x],x>p&&(p=x),c&=~g}if(c=p,c=tt()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*I4(c/1960))-c,10<c){t.timeoutHandle=pu(Do.bind(null,t,Ft,Vr),c);break}Do(t,Ft,Vr);break;case 5:Do(t,Ft,Vr);break;default:throw Error(n(329))}}}return It(t,tt()),t.callbackNode===s?x0.bind(null,t):null}function ld(t,o){var s=ji;return t.current.memoizedState.isDehydrated&&(jo(t,o).flags|=256),t=Fl(t,o),t!==2&&(o=Ft,Ft=s,o!==null&&ad(o)),t}function ad(t){Ft===null?Ft=t:Ft.push.apply(Ft,t)}function j4(t){for(var o=t;;){if(o.flags&16384){var s=o.updateQueue;if(s!==null&&(s=s.stores,s!==null))for(var c=0;c<s.length;c++){var p=s[c],g=p.getSnapshot;p=p.value;try{if(!dr(g(),p))return!1}catch{return!1}}}if(s=o.child,o.subtreeFlags&16384&&s!==null)s.return=o,o=s;else{if(o===t)break;for(;o.sibling===null;){if(o.return===null||o.return===t)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function ho(t,o){for(o&=~od,o&=~zl,t.suspendedLanes|=o,t.pingedLanes&=~o,t=t.expirationTimes;0<o;){var s=31-ur(o),c=1<<s;t[s]=-1,o&=~c}}function S0(t){if((Ce&6)!==0)throw Error(n(327));Cn();var o=qs(t,0);if((o&1)===0)return It(t,tt()),null;var s=Fl(t,o);if(t.tag!==0&&s===2){var c=Lc(t);c!==0&&(o=c,s=ld(t,c))}if(s===1)throw s=Ii,jo(t,0),ho(t,o),It(t,tt()),s;if(s===6)throw Error(n(345));return t.finishedWork=t.current.alternate,t.finishedLanes=o,Do(t,Ft,Vr),It(t,tt()),null}function cd(t,o){var s=Ce;Ce|=1;try{return t(o)}finally{Ce=s,Ce===0&&(Bn=tt()+500,sl&&ao())}}function Io(t){mo!==null&&mo.tag===0&&(Ce&6)===0&&Cn();var o=Ce;Ce|=1;var s=rr.transition,c=Re;try{if(rr.transition=null,Re=1,t)return t()}finally{Re=c,rr.transition=s,Ce=o,(Ce&6)===0&&ao()}}function ud(){$t=_n.current,Le(_n)}function jo(t,o){t.finishedWork=null,t.finishedLanes=0;var s=t.timeoutHandle;if(s!==-1&&(t.timeoutHandle=-1,d4(s)),it!==null)for(s=it.return;s!==null;){var c=s;switch(yu(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&nl();break;case 3:kn(),Le(Et),Le(bt),Ru();break;case 5:Eu(c);break;case 4:kn();break;case 13:Le($e);break;case 19:Le($e);break;case 10:Bu(c.type._context);break;case 22:case 23:ud()}s=s.return}if(dt=t,it=t=vo(t.current,null),mt=$t=o,at=0,Ii=null,od=zl=Fo=0,Ft=ji=null,Eo!==null){for(o=0;o<Eo.length;o++)if(s=Eo[o],c=s.interleaved,c!==null){s.interleaved=null;var p=c.next,g=s.pending;if(g!==null){var x=g.next;g.next=p,c.next=x}s.pending=c}Eo=null}return t}function _0(t,o){do{var s=it;try{if(_u(),hl.current=wl,vl){for(var c=Ue.memoizedState;c!==null;){var p=c.queue;p!==null&&(p.pending=null),c=c.next}vl=!1}if(Ro=0,ut=lt=Ue=null,Ni=!1,Ti=0,rd.current=null,s===null||s.return===null){at=1,Ii=o,it=null;break}e:{var g=t,x=s.return,T=s,P=o;if(o=mt,T.flags|=32768,P!==null&&typeof P=="object"&&typeof P.then=="function"){var W=P,Z=T,re=Z.tag;if((Z.mode&1)===0&&(re===0||re===11||re===15)){var Y=Z.alternate;Y?(Z.updateQueue=Y.updateQueue,Z.memoizedState=Y.memoizedState,Z.lanes=Y.lanes):(Z.updateQueue=null,Z.memoizedState=null)}var de=Xv(x);if(de!==null){de.flags&=-257,Qv(de,x,T,g,o),de.mode&1&&Kv(g,W,o),o=de,P=W;var pe=o.updateQueue;if(pe===null){var me=new Set;me.add(P),o.updateQueue=me}else pe.add(P);break e}else{if((o&1)===0){Kv(g,W,o),dd();break e}P=Error(n(426))}}else if(He&&T.mode&1){var rt=Xv(x);if(rt!==null){(rt.flags&65536)===0&&(rt.flags|=256),Qv(rt,x,T,g,o),xu(xn(P,T));break e}}g=P=xn(P,T),at!==4&&(at=2),ji===null?ji=[g]:ji.push(g),g=x;do{switch(g.tag){case 3:g.flags|=65536,o&=-o,g.lanes|=o;var D=Uv(g,P,o);yv(g,D);break e;case 1:T=P;var R=g.type,A=g.stateNode;if((g.flags&128)===0&&(typeof R.getDerivedStateFromError=="function"||A!==null&&typeof A.componentDidCatch=="function"&&(po===null||!po.has(A)))){g.flags|=65536,o&=-o,g.lanes|=o;var ie=Gv(g,T,o);yv(g,ie);break e}}g=g.return}while(g!==null)}z0(s)}catch(he){o=he,it===s&&s!==null&&(it=s=s.return);continue}break}while(!0)}function B0(){var t=Cl.current;return Cl.current=wl,t===null?wl:t}function dd(){(at===0||at===3||at===2)&&(at=4),dt===null||(Fo&268435455)===0&&(zl&268435455)===0||ho(dt,mt)}function Fl(t,o){var s=Ce;Ce|=2;var c=B0();(dt!==t||mt!==o)&&(Vr=null,jo(t,o));do try{D4();break}catch(p){_0(t,p)}while(!0);if(_u(),Ce=s,Cl.current=c,it!==null)throw Error(n(261));return dt=null,mt=0,at}function D4(){for(;it!==null;)C0(it)}function O4(){for(;it!==null&&!a3();)C0(it)}function C0(t){var o=E0(t.alternate,t,$t);t.memoizedProps=t.pendingProps,o===null?z0(t):it=o,rd.current=null}function z0(t){var o=t;do{var s=o.alternate;if(t=o.return,(o.flags&32768)===0){if(s=T4(s,o,$t),s!==null){it=s;return}}else{if(s=E4(s,o),s!==null){s.flags&=32767,it=s;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{at=6,it=null;return}}if(o=o.sibling,o!==null){it=o;return}it=o=t}while(o!==null);at===0&&(at=5)}function Do(t,o,s){var c=Re,p=rr.transition;try{rr.transition=null,Re=1,A4(t,o,s,c)}finally{rr.transition=p,Re=c}return null}function A4(t,o,s,c){do Cn();while(mo!==null);if((Ce&6)!==0)throw Error(n(327));s=t.finishedWork;var p=t.finishedLanes;if(s===null)return null;if(t.finishedWork=null,t.finishedLanes=0,s===t.current)throw Error(n(177));t.callbackNode=null,t.callbackPriority=0;var g=s.lanes|s.childLanes;if(b3(t,g),t===dt&&(it=dt=null,mt=0),(s.subtreeFlags&2064)===0&&(s.flags&2064)===0||Tl||(Tl=!0,P0(Os,function(){return Cn(),null})),g=(s.flags&15990)!==0,(s.subtreeFlags&15990)!==0||g){g=rr.transition,rr.transition=null;var x=Re;Re=1;var T=Ce;Ce|=4,rd.current=null,R4(t,s),v0(s,t),n4(du),Vs=!!uu,du=uu=null,t.current=s,F4(s),c3(),Ce=T,Re=x,rr.transition=g}else t.current=s;if(Tl&&(Tl=!1,mo=t,El=p),g=t.pendingLanes,g===0&&(po=null),f3(s.stateNode),It(t,tt()),o!==null)for(c=t.onRecoverableError,s=0;s<o.length;s++)p=o[s],c(p.value,{componentStack:p.stack,digest:p.digest});if(Nl)throw Nl=!1,t=id,id=null,t;return(El&1)!==0&&t.tag!==0&&Cn(),g=t.pendingLanes,(g&1)!==0?t===sd?Di++:(Di=0,sd=t):Di=0,ao(),null}function Cn(){if(mo!==null){var t=gh(El),o=rr.transition,s=Re;try{if(rr.transition=null,Re=16>t?16:t,mo===null)var c=!1;else{if(t=mo,mo=null,El=0,(Ce&6)!==0)throw Error(n(331));var p=Ce;for(Ce|=4,fe=t.current;fe!==null;){var g=fe,x=g.child;if((fe.flags&16)!==0){var T=g.deletions;if(T!==null){for(var P=0;P<T.length;P++){var W=T[P];for(fe=W;fe!==null;){var Z=fe;switch(Z.tag){case 0:case 11:case 15:Fi(8,Z,g)}var re=Z.child;if(re!==null)re.return=Z,fe=re;else for(;fe!==null;){Z=fe;var Y=Z.sibling,de=Z.return;if(f0(Z),Z===W){fe=null;break}if(Y!==null){Y.return=de,fe=Y;break}fe=de}}}var pe=g.alternate;if(pe!==null){var me=pe.child;if(me!==null){pe.child=null;do{var rt=me.sibling;me.sibling=null,me=rt}while(me!==null)}}fe=g}}if((g.subtreeFlags&2064)!==0&&x!==null)x.return=g,fe=x;else e:for(;fe!==null;){if(g=fe,(g.flags&2048)!==0)switch(g.tag){case 0:case 11:case 15:Fi(9,g,g.return)}var D=g.sibling;if(D!==null){D.return=g.return,fe=D;break e}fe=g.return}}var R=t.current;for(fe=R;fe!==null;){x=fe;var A=x.child;if((x.subtreeFlags&2064)!==0&&A!==null)A.return=x,fe=A;else e:for(x=R;fe!==null;){if(T=fe,(T.flags&2048)!==0)try{switch(T.tag){case 0:case 11:case 15:Bl(9,T)}}catch(he){Qe(T,T.return,he)}if(T===x){fe=null;break e}var ie=T.sibling;if(ie!==null){ie.return=T.return,fe=ie;break e}fe=T.return}}if(Ce=p,ao(),Sr&&typeof Sr.onPostCommitFiberRoot=="function")try{Sr.onPostCommitFiberRoot(As,t)}catch{}c=!0}return c}finally{Re=s,rr.transition=o}}return!1}function N0(t,o,s){o=xn(s,o),o=Uv(t,o,1),t=uo(t,o,1),o=_t(),t!==null&&(si(t,1,o),It(t,o))}function Qe(t,o,s){if(t.tag===3)N0(t,t,s);else for(;o!==null;){if(o.tag===3){N0(o,t,s);break}else if(o.tag===1){var c=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(po===null||!po.has(c))){t=xn(s,t),t=Gv(o,t,1),o=uo(o,t,1),t=_t(),o!==null&&(si(o,1,t),It(o,t));break}}o=o.return}}function M4(t,o,s){var c=t.pingCache;c!==null&&c.delete(o),o=_t(),t.pingedLanes|=t.suspendedLanes&s,dt===t&&(mt&s)===s&&(at===4||at===3&&(mt&130023424)===mt&&500>tt()-nd?jo(t,0):od|=s),It(t,o)}function T0(t,o){o===0&&((t.mode&1)===0?o=1:(o=Ls,Ls<<=1,(Ls&130023424)===0&&(Ls=4194304)));var s=_t();t=qr(t,o),t!==null&&(si(t,o,s),It(t,s))}function L4(t){var o=t.memoizedState,s=0;o!==null&&(s=o.retryLane),T0(t,s)}function q4(t,o){var s=0;switch(t.tag){case 13:var c=t.stateNode,p=t.memoizedState;p!==null&&(s=p.retryLane);break;case 19:c=t.stateNode;break;default:throw Error(n(314))}c!==null&&c.delete(o),T0(t,s)}var E0;E0=function(t,o,s){if(t!==null)if(t.memoizedProps!==o.pendingProps||Et.current)Rt=!0;else{if((t.lanes&s)===0&&(o.flags&128)===0)return Rt=!1,N4(t,o,s);Rt=(t.flags&131072)!==0}else Rt=!1,He&&(o.flags&1048576)!==0&&cv(o,al,o.index);switch(o.lanes=0,o.tag){case 2:var c=o.type;Sl(t,o),t=o.pendingProps;var p=mn(o,bt.current);wn(o,s),p=ju(null,o,c,t,p,s);var g=Du();return o.flags|=1,typeof p=="object"&&p!==null&&typeof p.render=="function"&&p.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,Pt(c)?(g=!0,il(o)):g=!1,o.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,Nu(o),p.updater=kl,o.stateNode=p,p._reactInternals=o,Hu(o,c,t,s),o=Uu(null,o,c,!0,g,s)):(o.tag=0,He&&g&&bu(o),St(null,o,p,s),o=o.child),o;case 16:c=o.elementType;e:{switch(Sl(t,o),t=o.pendingProps,p=c._init,c=p(c._payload),o.type=c,p=o.tag=W4(c),t=pr(c,t),p){case 0:o=$u(null,o,c,t,s);break e;case 1:o=r0(null,o,c,t,s);break e;case 11:o=Yv(null,o,c,t,s);break e;case 14:o=Jv(null,o,c,pr(c.type,t),s);break e}throw Error(n(306,c,""))}return o;case 0:return c=o.type,p=o.pendingProps,p=o.elementType===c?p:pr(c,p),$u(t,o,c,p,s);case 1:return c=o.type,p=o.pendingProps,p=o.elementType===c?p:pr(c,p),r0(t,o,c,p,s);case 3:e:{if(o0(o),t===null)throw Error(n(387));c=o.pendingProps,g=o.memoizedState,p=g.element,bv(t,o),ml(o,c,null,s);var x=o.memoizedState;if(c=x.element,g.isDehydrated)if(g={element:c,isDehydrated:!1,cache:x.cache,pendingSuspenseBoundaries:x.pendingSuspenseBoundaries,transitions:x.transitions},o.updateQueue.baseState=g,o.memoizedState=g,o.flags&256){p=xn(Error(n(423)),o),o=n0(t,o,c,s,p);break e}else if(c!==p){p=xn(Error(n(424)),o),o=n0(t,o,c,s,p);break e}else for(Vt=io(o.stateNode.containerInfo.firstChild),Wt=o,He=!0,fr=null,s=hv(o,null,c,s),o.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(vn(),c===p){o=Wr(t,o,s);break e}St(t,o,c,s)}o=o.child}return o;case 5:return kv(o),t===null&&ku(o),c=o.type,p=o.pendingProps,g=t!==null?t.memoizedProps:null,x=p.children,fu(c,p)?x=null:g!==null&&fu(c,g)&&(o.flags|=32),t0(t,o),St(t,o,x,s),o.child;case 6:return t===null&&ku(o),null;case 13:return i0(t,o,s);case 4:return Tu(o,o.stateNode.containerInfo),c=o.pendingProps,t===null?o.child=bn(o,null,c,s):St(t,o,c,s),o.child;case 11:return c=o.type,p=o.pendingProps,p=o.elementType===c?p:pr(c,p),Yv(t,o,c,p,s);case 7:return St(t,o,o.pendingProps,s),o.child;case 8:return St(t,o,o.pendingProps.children,s),o.child;case 12:return St(t,o,o.pendingProps.children,s),o.child;case 10:e:{if(c=o.type._context,p=o.pendingProps,g=o.memoizedProps,x=p.value,Ae(dl,c._currentValue),c._currentValue=x,g!==null)if(dr(g.value,x)){if(g.children===p.children&&!Et.current){o=Wr(t,o,s);break e}}else for(g=o.child,g!==null&&(g.return=o);g!==null;){var T=g.dependencies;if(T!==null){x=g.child;for(var P=T.firstContext;P!==null;){if(P.context===c){if(g.tag===1){P=Hr(-1,s&-s),P.tag=2;var W=g.updateQueue;if(W!==null){W=W.shared;var Z=W.pending;Z===null?P.next=P:(P.next=Z.next,Z.next=P),W.pending=P}}g.lanes|=s,P=g.alternate,P!==null&&(P.lanes|=s),Cu(g.return,s,o),T.lanes|=s;break}P=P.next}}else if(g.tag===10)x=g.type===o.type?null:g.child;else if(g.tag===18){if(x=g.return,x===null)throw Error(n(341));x.lanes|=s,T=x.alternate,T!==null&&(T.lanes|=s),Cu(x,s,o),x=g.sibling}else x=g.child;if(x!==null)x.return=g;else for(x=g;x!==null;){if(x===o){x=null;break}if(g=x.sibling,g!==null){g.return=x.return,x=g;break}x=x.return}g=x}St(t,o,p.children,s),o=o.child}return o;case 9:return p=o.type,c=o.pendingProps.children,wn(o,s),p=er(p),c=c(p),o.flags|=1,St(t,o,c,s),o.child;case 14:return c=o.type,p=pr(c,o.pendingProps),p=pr(c.type,p),Jv(t,o,c,p,s);case 15:return Zv(t,o,o.type,o.pendingProps,s);case 17:return c=o.type,p=o.pendingProps,p=o.elementType===c?p:pr(c,p),Sl(t,o),o.tag=1,Pt(c)?(t=!0,il(o)):t=!1,wn(o,s),Vv(o,c,p),Hu(o,c,p,s),Uu(null,o,c,!0,t,s);case 19:return l0(t,o,s);case 22:return e0(t,o,s)}throw Error(n(156,o.tag))};function P0(t,o){return uh(t,o)}function H4(t,o,s,c){this.tag=t,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function or(t,o,s,c){return new H4(t,o,s,c)}function fd(t){return t=t.prototype,!(!t||!t.isReactComponent)}function W4(t){if(typeof t=="function")return fd(t)?1:0;if(t!=null){if(t=t.$$typeof,t===te)return 11;if(t===oe)return 14}return 2}function vo(t,o){var s=t.alternate;return s===null?(s=or(t.tag,o,t.key,t.mode),s.elementType=t.elementType,s.type=t.type,s.stateNode=t.stateNode,s.alternate=t,t.alternate=s):(s.pendingProps=o,s.type=t.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=t.flags&14680064,s.childLanes=t.childLanes,s.lanes=t.lanes,s.child=t.child,s.memoizedProps=t.memoizedProps,s.memoizedState=t.memoizedState,s.updateQueue=t.updateQueue,o=t.dependencies,s.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},s.sibling=t.sibling,s.index=t.index,s.ref=t.ref,s}function Il(t,o,s,c,p,g){var x=2;if(c=t,typeof t=="function")fd(t)&&(x=1);else if(typeof t=="string")x=5;else e:switch(t){case I:return Oo(s.children,p,g,o);case q:x=8,p|=8;break;case j:return t=or(12,s,o,p|2),t.elementType=j,t.lanes=g,t;case V:return t=or(13,s,o,p),t.elementType=V,t.lanes=g,t;case ee:return t=or(19,s,o,p),t.elementType=ee,t.lanes=g,t;case K:return jl(s,p,g,o);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case U:x=10;break e;case le:x=9;break e;case te:x=11;break e;case oe:x=14;break e;case H:x=16,c=null;break e}throw Error(n(130,t==null?t:typeof t,""))}return o=or(x,s,o,p),o.elementType=t,o.type=c,o.lanes=g,o}function Oo(t,o,s,c){return t=or(7,t,c,o),t.lanes=s,t}function jl(t,o,s,c){return t=or(22,t,c,o),t.elementType=K,t.lanes=s,t.stateNode={isHidden:!1},t}function pd(t,o,s){return t=or(6,t,null,o),t.lanes=s,t}function md(t,o,s){return o=or(4,t.children!==null?t.children:[],t.key,o),o.lanes=s,o.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},o}function V4(t,o,s,c,p){this.tag=o,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=qc(0),this.expirationTimes=qc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qc(0),this.identifierPrefix=c,this.onRecoverableError=p,this.mutableSourceEagerHydrationData=null}function gd(t,o,s,c,p,g,x,T,P){return t=new V4(t,o,s,T,P),o===1?(o=1,g===!0&&(o|=8)):o=0,g=or(3,null,null,o),t.current=g,g.stateNode=t,g.memoizedState={element:c,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},Nu(g),t}function $4(t,o,s){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:O,key:c==null?null:""+c,children:t,containerInfo:o,implementation:s}}function R0(t){if(!t)return lo;t=t._reactInternals;e:{if(Bo(t)!==t||t.tag!==1)throw Error(n(170));var o=t;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(Pt(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(n(171))}if(t.tag===1){var s=t.type;if(Pt(s))return sv(t,s,o)}return o}function F0(t,o,s,c,p,g,x,T,P){return t=gd(s,c,!0,t,p,g,x,T,P),t.context=R0(null),s=t.current,c=_t(),p=go(s),g=Hr(c,p),g.callback=o??null,uo(s,g,p),t.current.lanes=p,si(t,p,c),It(t,c),t}function Dl(t,o,s,c){var p=o.current,g=_t(),x=go(p);return s=R0(s),o.context===null?o.context=s:o.pendingContext=s,o=Hr(g,x),o.payload={element:t},c=c===void 0?null:c,c!==null&&(o.callback=c),t=uo(p,o,x),t!==null&&(hr(t,p,x,g),pl(t,p,x)),x}function Ol(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function I0(t,o){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var s=t.retryLane;t.retryLane=s!==0&&s<o?s:o}}function hd(t,o){I0(t,o),(t=t.alternate)&&I0(t,o)}function U4(){return null}var j0=typeof reportError=="function"?reportError:function(t){console.error(t)};function vd(t){this._internalRoot=t}Al.prototype.render=vd.prototype.render=function(t){var o=this._internalRoot;if(o===null)throw Error(n(409));Dl(t,o,null,null)},Al.prototype.unmount=vd.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var o=t.containerInfo;Io(function(){Dl(null,t,null,null)}),o[Or]=null}};function Al(t){this._internalRoot=t}Al.prototype.unstable_scheduleHydration=function(t){if(t){var o=bh();t={blockedOn:null,target:t,priority:o};for(var s=0;s<ro.length&&o!==0&&o<ro[s].priority;s++);ro.splice(s,0,t),s===0&&kh(t)}};function bd(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Ml(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function D0(){}function G4(t,o,s,c,p){if(p){if(typeof c=="function"){var g=c;c=function(){var W=Ol(x);g.call(W)}}var x=F0(o,c,t,0,null,!1,!1,"",D0);return t._reactRootContainer=x,t[Or]=x.current,wi(t.nodeType===8?t.parentNode:t),Io(),x}for(;p=t.lastChild;)t.removeChild(p);if(typeof c=="function"){var T=c;c=function(){var W=Ol(P);T.call(W)}}var P=gd(t,0,!1,null,null,!1,!1,"",D0);return t._reactRootContainer=P,t[Or]=P.current,wi(t.nodeType===8?t.parentNode:t),Io(function(){Dl(o,P,s,c)}),P}function Ll(t,o,s,c,p){var g=s._reactRootContainer;if(g){var x=g;if(typeof p=="function"){var T=p;p=function(){var P=Ol(x);T.call(P)}}Dl(o,x,t,p)}else x=G4(s,o,t,p,c);return Ol(x)}hh=function(t){switch(t.tag){case 3:var o=t.stateNode;if(o.current.memoizedState.isDehydrated){var s=ii(o.pendingLanes);s!==0&&(Hc(o,s|1),It(o,tt()),(Ce&6)===0&&(Bn=tt()+500,ao()))}break;case 13:Io(function(){var c=qr(t,1);if(c!==null){var p=_t();hr(c,t,1,p)}}),hd(t,1)}},Wc=function(t){if(t.tag===13){var o=qr(t,134217728);if(o!==null){var s=_t();hr(o,t,134217728,s)}hd(t,134217728)}},vh=function(t){if(t.tag===13){var o=go(t),s=qr(t,o);if(s!==null){var c=_t();hr(s,t,o,c)}hd(t,o)}},bh=function(){return Re},yh=function(t,o){var s=Re;try{return Re=t,o()}finally{Re=s}},jc=function(t,o,s){switch(o){case"input":if(zc(t,s),o=s.name,s.type==="radio"&&o!=null){for(s=t;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<s.length;o++){var c=s[o];if(c!==t&&c.form===t.form){var p=ol(c);if(!p)throw Error(n(90));Wg(c),zc(c,p)}}}break;case"textarea":Kg(t,s);break;case"select":o=s.value,o!=null&&tn(t,!!s.multiple,o,!1)}},oh=cd,nh=Io;var K4={usingClientEntryPoint:!1,Events:[Si,fn,ol,th,rh,cd]},Oi={findFiberByHostInstance:Co,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},X4={bundleType:Oi.bundleType,version:Oi.version,rendererPackageName:Oi.rendererPackageName,rendererConfig:Oi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:C.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=ah(t),t===null?null:t.stateNode},findFiberByHostInstance:Oi.findFiberByHostInstance||U4,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ql=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ql.isDisabled&&ql.supportsFiber)try{As=ql.inject(X4),Sr=ql}catch{}}return Bt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=K4,Bt.createPortal=function(t,o){var s=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!bd(o))throw Error(n(200));return $4(t,o,null,s)},Bt.createRoot=function(t,o){if(!bd(t))throw Error(n(299));var s=!1,c="",p=j0;return o!=null&&(o.unstable_strictMode===!0&&(s=!0),o.identifierPrefix!==void 0&&(c=o.identifierPrefix),o.onRecoverableError!==void 0&&(p=o.onRecoverableError)),o=gd(t,1,!1,null,null,s,!1,c,p),t[Or]=o.current,wi(t.nodeType===8?t.parentNode:t),new vd(o)},Bt.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var o=t._reactInternals;if(o===void 0)throw typeof t.render=="function"?Error(n(188)):(t=Object.keys(t).join(","),Error(n(268,t)));return t=ah(o),t=t===null?null:t.stateNode,t},Bt.flushSync=function(t){return Io(t)},Bt.hydrate=function(t,o,s){if(!Ml(o))throw Error(n(200));return Ll(null,t,o,!0,s)},Bt.hydrateRoot=function(t,o,s){if(!bd(t))throw Error(n(405));var c=s!=null&&s.hydratedSources||null,p=!1,g="",x=j0;if(s!=null&&(s.unstable_strictMode===!0&&(p=!0),s.identifierPrefix!==void 0&&(g=s.identifierPrefix),s.onRecoverableError!==void 0&&(x=s.onRecoverableError)),o=F0(o,null,t,1,s??null,p,!1,g,x),t[Or]=o.current,wi(t),c)for(t=0;t<c.length;t++)s=c[t],p=s._getVersion,p=p(s._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[s,p]:o.mutableSourceEagerHydrationData.push(s,p);return new Al(o)},Bt.render=function(t,o,s){if(!Ml(o))throw Error(n(200));return Ll(null,t,o,!1,s)},Bt.unmountComponentAtNode=function(t){if(!Ml(t))throw Error(n(40));return t._reactRootContainer?(Io(function(){Ll(null,null,t,!1,function(){t._reactRootContainer=null,t[Or]=null})}),!0):!1},Bt.unstable_batchedUpdates=cd,Bt.unstable_renderSubtreeIntoContainer=function(t,o,s,c){if(!Ml(s))throw Error(n(200));if(t==null||t._reactInternals===void 0)throw Error(n(38));return Ll(t,o,s,!1,c)},Bt.version="18.3.1-next-f1338f8080-20240426",Bt}var Ed;function Pd(){if(Ed)return $l.exports;Ed=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}return e(),$l.exports=V0(),$l.exports}var Rd;function $0(){if(Rd)return Mi;Rd=1;var e=Pd();return Mi.createRoot=e.createRoot,Mi.hydrateRoot=e.hydrateRoot,Mi}var U0=$0();const Kl=typeof window>"u"?global:window,Xl="@griffel/";function G0(e,r){return Kl[Symbol.for(Xl+e)]||(Kl[Symbol.for(Xl+e)]=r),Kl[Symbol.for(Xl+e)]}const Ql=G0("DEFINITION_LOOKUP_TABLE",{}),Nn="data-make-styles-bucket",K0="data-priority",Yl="f",Jl=7,Zl="___",X0=Zl.length+Jl,Q0=0,Y0=1,J0={all:1,borderColor:1,borderStyle:1,borderWidth:1,borderBlock:1,borderBlockEnd:1,borderBlockStart:1,borderInline:1,borderInlineEnd:1,borderInlineStart:1},ea="DO_NOT_USE_DIRECTLY: @griffel/reset-value";function Tn(e){for(var r=0,n,i=0,l=e.length;l>=4;++i,l-=4)n=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,r=(n&65535)*1540483477+((n>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(l){case 3:r^=(e.charCodeAt(i+2)&255)<<16;case 2:r^=(e.charCodeAt(i+1)&255)<<8;case 1:r^=e.charCodeAt(i)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}function Z0(e){const r=e.length;if(r===Jl)return e;for(let n=r;n<Jl;n++)e+="0";return e}function Fd(e,r,n=[]){return Zl+Z0(Tn(e+r))}function Id(e,r){let n="",i="";for(const l in e){const a=e[l];if(a===0){i+=l+" ";continue}const u=Array.isArray(a),d=r==="rtl"?(u?a[1]:a)+" ":(u?a[0]:a)+" ";n+=d,i+=d}return[n.slice(0,-1),i.slice(0,-1)]}function Li(e,r){const n={};for(const i in e){const[l,a]=Id(e[i],r);if(a===""){n[i]="";continue}const u=Fd(a,r),d=u+(l===""?"":" "+l);Ql[u]=[e[i],r],n[i]=d}return n}const jd={};function ce(){let e=null,r="",n="";const i=new Array(arguments.length);for(let v=0;v<arguments.length;v++){const b=arguments[v];if(typeof b=="string"&&b!==""){const y=b.indexOf(Zl);if(y===-1)r+=b+" ";else{const k=b.substr(y,X0);y>0&&(r+=b.slice(0,y)),n+=k,i[v]=k}}}if(n==="")return r.slice(0,-1);const l=jd[n];if(l!==void 0)return r+l;const a=[];for(let v=0;v<arguments.length;v++){const b=i[v];if(b){const y=Ql[b];y&&(a.push(y[Q0]),e=y[Y0])}}const u=Object.assign.apply(Object,[{}].concat(a)),[d,f]=Id(u,e),m=Fd(f,e,i),h=m+" "+d;return jd[n]=h,Ql[m]=[u,e],r+h}function eb(e){return Array.isArray(e)?e:[e]}function tb(e,r,n,i){const l=[];if(i[Nn]=r,i[K0]=String(n),e)for(const u in i)e.setAttribute(u,i[u]);function a(u){return e?.sheet?e.sheet.insertRule(u,e.sheet.cssRules.length):l.push(u)}return{elementAttributes:i,insertRule:a,element:e,bucketName:r,cssRules(){return e?.sheet?Array.from(e.sheet.cssRules).map(u=>u.cssText):l}}}const Dd=["r","d","l","v","w","f","i","h","a","s","k","t","m","c"].reduce((e,r,n)=>(e[r]=n,e),{});function rb(e,r,n){return(e==="m"?e+r:e)+n}function ob(e,r,n,i,l={}){var a,u;const d=e==="m",f=(a=l.m)!==null&&a!==void 0?a:"0",m=(u=l.p)!==null&&u!==void 0?u:0,h=rb(e,f,m);if(!i.stylesheets[h]){const v=r&&r.createElement("style"),b=tb(v,e,m,Object.assign({},i.styleElementAttributes,d&&{media:f}));i.stylesheets[h]=b,r?.head&&v&&r.head.insertBefore(v,ib(r,n,e,i,l))}return i.stylesheets[h]}function nb(e,r,n){var i,l;const a=r+((i=n.m)!==null&&i!==void 0?i:""),u=e.getAttribute(Nn)+((l=e.media)!==null&&l!==void 0?l:"");return a===u}function ib(e,r,n,i,l={}){var a,u;const d=Dd[n],f=(a=l.m)!==null&&a!==void 0?a:"",m=(u=l.p)!==null&&u!==void 0?u:0;let h=w=>d-Dd[w.getAttribute(Nn)],v=e.head.querySelectorAll(`[${Nn}]`);if(n==="m"){const w=e.head.querySelectorAll(`[${Nn}="${n}"]`);w.length&&(v=w,h=_=>i.compareMediaQueries(f,_.media))}const b=w=>nb(w,n,l)?m-Number(w.getAttribute("data-priority")):h(w),y=v.length;let k=y-1;for(;k>=0;){const w=v.item(k);if(b(w)>0)return w.nextSibling;k--}return y>0?v.item(0):r?r.nextSibling:null}function Od(e,r){try{e.insertRule(r)}catch{}}let sb=0;const lb=(e,r)=>e<r?-1:e>r?1:0;function ab(e=typeof document>"u"?void 0:document,r={}){const{classNameHashSalt:n,unstable_filterCSSRule:i,insertionPoint:l,styleElementAttributes:a,compareMediaQueries:u=lb}=r,d={classNameHashSalt:n,insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(a),compareMediaQueries:u,id:`d${sb++}`,insertCSSRules(f){for(const m in f){const h=f[m];for(let v=0,b=h.length;v<b;v++){const[y,k]=eb(h[v]),w=ob(m,e,l||null,d,k);d.insertionCache[y]||(d.insertionCache[y]=m,i?i(y)&&Od(w,y):Od(w,y))}}}};return d}const ta=()=>{const e={};return function(n,i){e[n.id]===void 0&&(n.insertCSSRules(i),e[n.id]=!0)}};function Ad(e){return e.reduce(function(r,n){var i=n[0],l=n[1];return r[i]=l,r[l]=i,r},{})}function cb(e){return typeof e=="boolean"}function ub(e){return typeof e=="function"}function En(e){return typeof e=="number"}function db(e){return e===null||typeof e>"u"}function fb(e){return e&&typeof e=="object"}function pb(e){return typeof e=="string"}function qi(e,r){return e.indexOf(r)!==-1}function mb(e){return parseFloat(e)===0?e:e[0]==="-"?e.slice(1):"-"+e}function Hi(e,r,n,i){return r+mb(n)+i}function gb(e){var r=e.indexOf(".");if(r===-1)e=100-parseFloat(e)+"%";else{var n=e.length-r-2;e=100-parseFloat(e),e=e.toFixed(n)+"%"}return e}function Md(e){return e.replace(/ +/g," ").split(" ").map(function(r){return r.trim()}).filter(Boolean).reduce(function(r,n){var i=r.list,l=r.state,a=(n.match(/\(/g)||[]).length,u=(n.match(/\)/g)||[]).length;return l.parensDepth>0?i[i.length-1]=i[i.length-1]+" "+n:i.push(n),l.parensDepth+=a-u,{list:i,state:l}},{list:[],state:{parensDepth:0}}).list}function Ld(e){var r=Md(e);if(r.length<=3||r.length>4)return e;var n=r[0],i=r[1],l=r[2],a=r[3];return[n,a,l,i].join(" ")}function hb(e){return!cb(e)&&!db(e)}function vb(e){for(var r=[],n=0,i=0,l=!1;i<e.length;)!l&&e[i]===","?(r.push(e.substring(n,i).trim()),i++,n=i):e[i]==="("?(l=!0,i++):(e[i]===")"&&(l=!1),i++);return n!=i&&r.push(e.substring(n,i+1)),r}var J={padding:function(r){var n=r.value;return En(n)?n:Ld(n)},textShadow:function(r){var n=r.value,i=vb(n).map(function(l){return l.replace(/(^|\s)(-*)([.|\d]+)/,function(a,u,d,f){if(f==="0")return a;var m=d===""?"-":"";return""+u+m+f})});return i.join(",")},borderColor:function(r){var n=r.value;return Ld(n)},borderRadius:function(r){var n=r.value;if(En(n))return n;if(qi(n,"/")){var i=n.split("/"),l=i[0],a=i[1],u=J.borderRadius({value:l.trim()}),d=J.borderRadius({value:a.trim()});return u+" / "+d}var f=Md(n);switch(f.length){case 2:return f.reverse().join(" ");case 4:{var m=f[0],h=f[1],v=f[2],b=f[3];return[h,m,b,v].join(" ")}default:return n}},background:function(r){var n=r.value,i=r.valuesToConvert,l=r.isRtl,a=r.bgImgDirectionRegex,u=r.bgPosDirectionRegex;if(En(n))return n;var d=n.replace(/(url\(.*?\))|(rgba?\(.*?\))|(hsl\(.*?\))|(#[a-fA-F0-9]+)|((^| )(\D)+( |$))/g,"").trim();return n=n.replace(d,J.backgroundPosition({value:d,valuesToConvert:i,isRtl:l,bgPosDirectionRegex:u})),J.backgroundImage({value:n,valuesToConvert:i,bgImgDirectionRegex:a})},backgroundImage:function(r){var n=r.value,i=r.valuesToConvert,l=r.bgImgDirectionRegex;return!qi(n,"url(")&&!qi(n,"linear-gradient(")?n:n.replace(l,function(a,u,d){return a.replace(d,i[d])})},backgroundPosition:function(r){var n=r.value,i=r.valuesToConvert,l=r.isRtl,a=r.bgPosDirectionRegex;return n.replace(l?/^((-|\d|\.)+%)/:null,function(u,d){return gb(d)}).replace(a,function(u){return i[u]})},backgroundPositionX:function(r){var n=r.value,i=r.valuesToConvert,l=r.isRtl,a=r.bgPosDirectionRegex;return En(n)?n:J.backgroundPosition({value:n,valuesToConvert:i,isRtl:l,bgPosDirectionRegex:a})},transition:function(r){var n=r.value,i=r.propertiesToConvert;return n.split(/,\s*/g).map(function(l){var a=l.split(" ");return a[0]=i[a[0]]||a[0],a.join(" ")}).join(", ")},transitionProperty:function(r){var n=r.value,i=r.propertiesToConvert;return n.split(/,\s*/g).map(function(l){return i[l]||l}).join(", ")},transform:function(r){var n=r.value,i="[^\\u0020-\\u007e]",l="(?:(?:(?:\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",a="((?:-?"+("(?:[0-9]*\\.[0-9]+|[0-9]+)(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+i+"|"+l+")")+("(?:[_a-z0-9-]|"+i+"|"+l+")")+"*")+")?")+")|(?:inherit|auto))",u=new RegExp("(translateX\\s*\\(\\s*)"+a+"(\\s*\\))","gi"),d=new RegExp("(translate\\s*\\(\\s*)"+a+"((?:\\s*,\\s*"+a+"){0,1}\\s*\\))","gi"),f=new RegExp("(translate3d\\s*\\(\\s*)"+a+"((?:\\s*,\\s*"+a+"){0,2}\\s*\\))","gi"),m=new RegExp("(rotate[ZY]?\\s*\\(\\s*)"+a+"(\\s*\\))","gi");return n.replace(u,Hi).replace(d,Hi).replace(f,Hi).replace(m,Hi)}};J.objectPosition=J.backgroundPosition,J.margin=J.padding,J.borderWidth=J.padding,J.boxShadow=J.textShadow,J.webkitBoxShadow=J.boxShadow,J.mozBoxShadow=J.boxShadow,J.WebkitBoxShadow=J.boxShadow,J.MozBoxShadow=J.boxShadow,J.borderStyle=J.borderColor,J.webkitTransform=J.transform,J.mozTransform=J.transform,J.WebkitTransform=J.transform,J.MozTransform=J.transform,J.transformOrigin=J.backgroundPosition,J.webkitTransformOrigin=J.transformOrigin,J.mozTransformOrigin=J.transformOrigin,J.WebkitTransformOrigin=J.transformOrigin,J.MozTransformOrigin=J.transformOrigin,J.webkitTransition=J.transition,J.mozTransition=J.transition,J.WebkitTransition=J.transition,J.MozTransition=J.transition,J.webkitTransitionProperty=J.transitionProperty,J.mozTransitionProperty=J.transitionProperty,J.WebkitTransitionProperty=J.transitionProperty,J.MozTransitionProperty=J.transitionProperty,J["text-shadow"]=J.textShadow,J["border-color"]=J.borderColor,J["border-radius"]=J.borderRadius,J["background-image"]=J.backgroundImage,J["background-position"]=J.backgroundPosition,J["background-position-x"]=J.backgroundPositionX,J["object-position"]=J.objectPosition,J["border-width"]=J.padding,J["box-shadow"]=J.textShadow,J["-webkit-box-shadow"]=J.textShadow,J["-moz-box-shadow"]=J.textShadow,J["border-style"]=J.borderColor,J["-webkit-transform"]=J.transform,J["-moz-transform"]=J.transform,J["transform-origin"]=J.transformOrigin,J["-webkit-transform-origin"]=J.transformOrigin,J["-moz-transform-origin"]=J.transformOrigin,J["-webkit-transition"]=J.transition,J["-moz-transition"]=J.transition,J["transition-property"]=J.transitionProperty,J["-webkit-transition-property"]=J.transitionProperty,J["-moz-transition-property"]=J.transitionProperty;var qd=Ad([["paddingLeft","paddingRight"],["marginLeft","marginRight"],["left","right"],["borderLeft","borderRight"],["borderLeftColor","borderRightColor"],["borderLeftStyle","borderRightStyle"],["borderLeftWidth","borderRightWidth"],["borderTopLeftRadius","borderTopRightRadius"],["borderBottomLeftRadius","borderBottomRightRadius"],["padding-left","padding-right"],["margin-left","margin-right"],["border-left","border-right"],["border-left-color","border-right-color"],["border-left-style","border-right-style"],["border-left-width","border-right-width"],["border-top-left-radius","border-top-right-radius"],["border-bottom-left-radius","border-bottom-right-radius"]]),bb=["content"],Hd=Ad([["ltr","rtl"],["left","right"],["w-resize","e-resize"],["sw-resize","se-resize"],["nw-resize","ne-resize"]]),yb=new RegExp("(^|\\W|_)((ltr)|(rtl)|(left)|(right))(\\W|_|$)","g"),wb=new RegExp("(left)|(right)");function Wd(e){return Object.keys(e).reduce(function(r,n){var i=e[n];if(pb(i)&&(i=i.trim()),qi(bb,n))return r[n]=i,r;var l=ra(n,i),a=l.key,u=l.value;return r[a]=u,r},Array.isArray(e)?[]:{})}function ra(e,r){var n=/\/\*\s?@noflip\s?\*\//.test(r),i=n?e:kb(e),l=n?r:xb(i,r);return{key:i,value:l}}function kb(e){return qd[e]||e}function xb(e,r){if(!hb(r))return r;if(fb(r))return Wd(r);var n=En(r),i=ub(r),l=n||i?r:r.replace(/ !important.*?$/,""),a=!n&&l.length!==r.length,u=J[e],d;return u?d=u({value:l,valuesToConvert:Hd,propertiesToConvert:qd,isRtl:!0,bgImgDirectionRegex:yb,bgPosDirectionRegex:wb}):d=Hd[l]||l,a?d+" !important":d}const Sb=/[A-Z]/g,_b=/^ms-/,oa={};function Bb(e){return"-"+e.toLowerCase()}function Ao(e){if(Object.prototype.hasOwnProperty.call(oa,e))return oa[e];if(e.substr(0,2)==="--")return e;const r=e.replace(Sb,Bb);return oa[e]=_b.test(r)?"-"+r:r}function Vd(e){return e.charAt(0)==="&"?e.slice(1):e}var Pn="-moz-",nr="-webkit-",$d="comm",Wi="rule",na="decl",Cb="@media",zb="@import",Nb="@supports",Tb="@namespace",Eb="@keyframes",Ud="@layer",Gd=Math.abs,Vi=String.fromCharCode,Pb=Object.assign;function Rb(e,r){return gt(e,0)^45?(((r<<2^gt(e,0))<<2^gt(e,1))<<2^gt(e,2))<<2^gt(e,3):0}function Kd(e){return e.trim()}function Xd(e,r){return(e=r.exec(e))?e[0]:e}function Ct(e,r,n){return e.replace(r,n)}function Qd(e,r,n){return e.indexOf(r,n)}function gt(e,r){return e.charCodeAt(r)|0}function Mo(e,r,n){return e.slice(r,n)}function ir(e){return e.length}function Yd(e){return e.length}function yo(e,r){return r.push(e),e}function Fb(e,r){return e.map(r).join("")}var $i=1,Lo=1,Jd=0,jt=0,We=0,qo="";function Ui(e,r,n,i,l,a,u,d){return{value:e,root:r,parent:n,type:i,props:l,children:a,line:$i,column:Lo,length:u,return:"",siblings:d}}function ia(e,r){return Pb(Ui("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},r)}function Ib(){return We}function jb(){return We=jt>0?gt(qo,--jt):0,Lo--,We===10&&(Lo=1,$i--),We}function Ut(){return We=jt<Jd?gt(qo,jt++):0,Lo++,We===10&&(Lo=1,$i++),We}function $r(){return gt(qo,jt)}function Gi(){return jt}function Ki(e,r){return Mo(qo,e,r)}function Ho(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Zd(e){return $i=Lo=1,Jd=ir(qo=e),jt=0,[]}function ef(e){return qo="",e}function Xi(e){return Kd(Ki(jt-1,sa(e===91?e+2:e===40?e+1:e)))}function Db(e){return ef(Ab(Zd(e)))}function Ob(e){for(;(We=$r())&&We<33;)Ut();return Ho(e)>2||Ho(We)>3?"":" "}function Ab(e){for(;Ut();)switch(Ho(We)){case 0:yo(tf(jt-1),e);break;case 2:yo(Xi(We),e);break;default:yo(Vi(We),e)}return e}function Mb(e,r){for(;--r&&Ut()&&!(We<48||We>102||We>57&&We<65||We>70&&We<97););return Ki(e,Gi()+(r<6&&$r()==32&&Ut()==32))}function sa(e){for(;Ut();)switch(We){case e:return jt;case 34:case 39:e!==34&&e!==39&&sa(We);break;case 40:e===41&&sa(e);break;case 92:Ut();break}return jt}function Lb(e,r){for(;Ut()&&e+We!==57;)if(e+We===84&&$r()===47)break;return"/*"+Ki(r,jt-1)+"*"+Vi(e===47?e:Ut())}function tf(e){for(;!Ho($r());)Ut();return Ki(e,jt)}function rf(e){return ef(Qi("",null,null,null,[""],e=Zd(e),0,[0],e))}function Qi(e,r,n,i,l,a,u,d,f){for(var m=0,h=0,v=u,b=0,y=0,k=0,w=1,_=1,z=1,N=0,B="",C=l,E=a,O=i,I=B;_;)switch(k=N,N=Ut()){case 40:if(k!=108&&gt(I,v-1)==58){Qd(I+=Ct(Xi(N),"&","&\f"),"&\f",Gd(m?d[m-1]:0))!=-1&&(z=-1);break}case 34:case 39:case 91:I+=Xi(N);break;case 9:case 10:case 13:case 32:I+=Ob(k);break;case 92:I+=Mb(Gi()-1,7);continue;case 47:switch($r()){case 42:case 47:yo(qb(Lb(Ut(),Gi()),r,n,f),f),(Ho(k||1)==5||Ho($r()||1)==5)&&ir(I)&&Mo(I,-1,void 0)!==" "&&(I+=" ");break;default:I+="/"}break;case 123*w:d[m++]=ir(I)*z;case 125*w:case 59:case 0:switch(N){case 0:case 125:_=0;case 59+h:z==-1&&(I=Ct(I,/\f/g,"")),y>0&&(ir(I)-v||w===0&&k===47)&&yo(y>32?nf(I+";",i,n,v-1,f):nf(Ct(I," ","")+";",i,n,v-2,f),f);break;case 59:I+=";";default:if(yo(O=of(I,r,n,m,h,l,d,B,C=[],E=[],v,a),a),N===123)if(h===0)Qi(I,r,O,O,C,a,v,d,E);else{switch(b){case 99:if(gt(I,3)===110)break;case 108:if(gt(I,2)===97)break;default:h=0;case 100:case 109:case 115:}h?Qi(e,O,O,i&&yo(of(e,O,O,0,0,l,d,B,l,C=[],v,E),E),l,E,v,d,i?C:E):Qi(I,O,O,O,[""],E,0,d,E)}}m=h=y=0,w=z=1,B=I="",v=u;break;case 58:v=1+ir(I),y=k;default:if(w<1){if(N==123)--w;else if(N==125&&w++==0&&jb()==125)continue}switch(I+=Vi(N),N*w){case 38:z=h>0?1:(I+="\f",-1);break;case 44:d[m++]=(ir(I)-1)*z,z=1;break;case 64:$r()===45&&(I+=Xi(Ut())),b=$r(),h=v=ir(B=I+=tf(Gi())),N++;break;case 45:k===45&&ir(I)==2&&(w=0)}}return a}function of(e,r,n,i,l,a,u,d,f,m,h,v){for(var b=l-1,y=l===0?a:[""],k=Yd(y),w=0,_=0,z=0;w<i;++w)for(var N=0,B=Mo(e,b+1,b=Gd(_=u[w])),C=e;N<k;++N)(C=Kd(_>0?y[N]+" "+B:Ct(B,/&\f/g,y[N])))&&(f[z++]=C);return Ui(e,r,n,l===0?Wi:d,f,m,h,v)}function qb(e,r,n,i){return Ui(e,r,n,$d,Vi(Ib()),Mo(e,2,-2),0,i)}function nf(e,r,n,i,l){return Ui(e,r,n,na,Mo(e,0,i),Mo(e,i+1,-1),i,l)}function Wo(e,r){for(var n="",i=0;i<e.length;i++)n+=r(e[i],i,e,r)||"";return n}function sf(e,r,n,i){switch(e.type){case Ud:if(e.children.length)break;case zb:case Tb:case na:return e.return=e.return||e.value;case $d:return"";case Eb:return e.return=e.value+"{"+Wo(e.children,i)+"}";case Wi:if(!ir(e.value=e.props.join(",")))return""}return ir(n=Wo(e.children,i))?e.return=e.value+"{"+n+"}":""}function lf(e){var r=Yd(e);return function(n,i,l,a){for(var u="",d=0;d<r;d++)u+=e[d](n,i,l,a)||"";return u}}function af(e){return function(r){r.root||(r=r.return)&&e(r)}}const Hb=e=>{switch(e.type){case Wi:if(typeof e.props=="string")return;e.props=e.props.map(r=>r.indexOf(":global(")===-1?r:Db(r).reduce((n,i,l,a)=>{if(i==="")return n;if(i===":"&&a[l+1]==="global"){const u=a[l+2].slice(1,-1)+" ";return n.unshift(u),a[l+1]="",a[l+2]="",n}return n.push(i),n},[]).join(""))}};function cf(e,r,n){switch(Rb(e,r)){case 5103:return nr+"print-"+e+e;case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:return nr+e+e;case 4215:if(gt(e,9)===102||gt(e,r+1)===116)return nr+e+e;break;case 4789:return Pn+e+e;case 5349:case 4246:case 6968:return nr+e+Pn+e+e;case 6187:if(!Xd(e,/grab/))return Ct(Ct(Ct(e,/(zoom-|grab)/,nr+"$1"),/(image-set)/,nr+"$1"),e,"")+e;case 5495:case 3959:return Ct(e,/(image-set\([^]*)/,nr+"$1$`$1");case 4095:case 3583:case 4068:case 2532:return Ct(e,/(.+)-inline(.+)/,nr+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ir(e)-1-r>6)switch(gt(e,r+1)){case 102:if(gt(e,r+3)===108)return Ct(e,/(.+:)(.+)-([^]+)/,"$1"+nr+"$2-$3$1"+Pn+(gt(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~Qd(e,"stretch")?cf(Ct(e,"stretch","fill-available"),r)+e:e}break}return e}function uf(e,r,n,i){if(e.length>-1&&!e.return)switch(e.type){case na:e.return=cf(e.value,e.length);return;case Wi:if(e.length)return Fb(e.props,function(l){switch(Xd(l,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Wo([ia(e,{props:[Ct(l,/:(read-\w+)/,":"+Pn+"$1")]})],i);case"::placeholder":return Wo([ia(e,{props:[Ct(l,/:(plac\w+)/,":"+nr+"input-$1")]}),ia(e,{props:[Ct(l,/:(plac\w+)/,":"+Pn+"$1")]})],i)}return""})}}function Wb(e){switch(e.type){case"@container":case Cb:case Nb:case Ud:return!0}return!1}const Vb=e=>{Wb(e)&&Array.isArray(e.children)&&e.children.sort((r,n)=>r.props[0]>n.props[0]?1:-1)};function $b(e,r){const n=[];return Wo(rf(e),lf([Hb,Vb,uf,sf,af(i=>n.push(i))])),n}const Ub=/,( *[^ &])/g;function Gb(e){return"&"+Vd(e.replace(Ub,",&$1"))}function df(e,r,n){let i=r;return n.length>0&&(i=n.reduceRight((l,a)=>`${Gb(a)} { ${l} }`,r)),`${e}{${i}}`}function ff(e,r){const{className:n,selectors:i,property:l,rtlClassName:a,rtlProperty:u,rtlValue:d,value:f}=e,{container:m,layer:h,media:v,supports:b}=r,y=`.${n}`,k=Array.isArray(f)?`${f.map(_=>`${Ao(l)}: ${_}`).join(";")};`:`${Ao(l)}: ${f};`;let w=df(y,k,i);if(u&&a){const _=`.${a}`,z=Array.isArray(d)?`${d.map(N=>`${Ao(u)}: ${N}`).join(";")};`:`${Ao(u)}: ${d};`;w+=df(_,z,i)}return v&&(w=`@media ${v} { ${w} }`),h&&(w=`@layer ${h} { ${w} }`),b&&(w=`@supports ${b} { ${w} }`),m&&(w=`@container ${m} { ${w} }`),$b(w)}function Kb(e){let r="";for(const n in e){const i=e[n];if(typeof i=="string"||typeof i=="number"){r+=Ao(n)+":"+i+";";continue}if(Array.isArray(i))for(const l of i)r+=Ao(n)+":"+l+";"}return r}function pf(e){let r="";for(const n in e)r+=`${n}{${Kb(e[n])}}`;return r}function mf(e,r){const n=`@keyframes ${e} {${r}}`,i=[];return Wo(rf(n),lf([sf,uf,af(l=>i.push(l))])),i}const Xb={animation:[-1,["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimeline","animationTimingFunction"]],animationRange:[-1,["animationRangeEnd","animationRangeStart"]],background:[-2,["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"]],backgroundPosition:[-1,["backgroundPositionX","backgroundPositionY"]],border:[-2,["borderBottom","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderTop","borderTopColor","borderTopStyle","borderTopWidth"]],borderBottom:[-1,["borderBottomColor","borderBottomStyle","borderBottomWidth"]],borderImage:[-1,["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"]],borderLeft:[-1,["borderLeftColor","borderLeftStyle","borderLeftWidth"]],borderRadius:[-1,["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"]],borderRight:[-1,["borderRightColor","borderRightStyle","borderRightWidth"]],borderTop:[-1,["borderTopColor","borderTopStyle","borderTopWidth"]],caret:[-1,["caretColor","caretShape"]],columnRule:[-1,["columnRuleColor","columnRuleStyle","columnRuleWidth"]],columns:[-1,["columnCount","columnWidth"]],containIntrinsicSize:[-1,["containIntrinsicHeight","containIntrinsicWidth"]],container:[-1,["containerName","containerType"]],flex:[-1,["flexBasis","flexGrow","flexShrink"]],flexFlow:[-1,["flexDirection","flexWrap"]],font:[-1,["fontFamily","fontSize","fontStretch","fontStyle","fontVariant","fontWeight","lineHeight"]],gap:[-1,["columnGap","rowGap"]],grid:[-1,["columnGap","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumnGap","gridRowGap","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","rowGap"]],gridArea:[-1,["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"]],gridColumn:[-1,["gridColumnEnd","gridColumnStart"]],gridRow:[-1,["gridRowEnd","gridRowStart"]],gridTemplate:[-1,["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"]],inset:[-1,["bottom","left","right","top"]],insetBlock:[-1,["insetBlockEnd","insetBlockStart"]],insetInline:[-1,["insetInlineEnd","insetInlineStart"]],listStyle:[-1,["listStyleImage","listStylePosition","listStyleType"]],margin:[-1,["marginBottom","marginLeft","marginRight","marginTop"]],marginBlock:[-1,["marginBlockEnd","marginBlockStart"]],marginInline:[-1,["marginInlineEnd","marginInlineStart"]],mask:[-1,["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPosition","maskRepeat","maskSize"]],maskBorder:[-1,["maskBorderMode","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth"]],offset:[-1,["offsetAnchor","offsetDistance","offsetPath","offsetPosition","offsetRotate"]],outline:[-1,["outlineColor","outlineStyle","outlineWidth"]],overflow:[-1,["overflowX","overflowY"]],overscrollBehavior:[-1,["overscrollBehaviorX","overscrollBehaviorY"]],padding:[-1,["paddingBottom","paddingLeft","paddingRight","paddingTop"]],paddingBlock:[-1,["paddingBlockEnd","paddingBlockStart"]],paddingInline:[-1,["paddingInlineEnd","paddingInlineStart"]],placeContent:[-1,["alignContent","justifyContent"]],placeItems:[-1,["alignItems","justifyItems"]],placeSelf:[-1,["alignSelf","justifySelf"]],scrollMargin:[-1,["scrollMarginBottom","scrollMarginLeft","scrollMarginRight","scrollMarginTop"]],scrollMarginBlock:[-1,["scrollMarginBlockEnd","scrollMarginBlockStart"]],scrollMarginInline:[-1,["scrollMarginInlineEnd","scrollMarginInlineStart"]],scrollPadding:[-1,["scrollPaddingBottom","scrollPaddingLeft","scrollPaddingRight","scrollPaddingTop"]],scrollPaddingBlock:[-1,["scrollPaddingBlockEnd","scrollPaddingBlockStart"]],scrollPaddingInline:[-1,["scrollPaddingInlineEnd","scrollPaddingInlineStart"]],scrollTimeline:[-1,["scrollTimelineAxis","scrollTimelineName"]],textDecoration:[-1,["textDecorationColor","textDecorationLine","textDecorationStyle","textDecorationThickness"]],textEmphasis:[-1,["textEmphasisColor","textEmphasisStyle"]],transition:[-1,["transitionBehavior","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"]],viewTimeline:[-1,["viewTimelineAxis","viewTimelineName"]]};function gf(e,r){return e.length===0?r:`${e} and ${r}`}function Qb(e){return e.substr(0,6)==="@media"}function Yb(e){return e.substr(0,6)==="@layer"}const Jb=/^(:|\[|>|&)/;function Zb(e){return Jb.test(e)}function e1(e){return e.substr(0,9)==="@supports"}function t1(e){return e.substring(0,10)==="@container"}function r1(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}const hf={"us-w":"w","us-v":"i",nk:"l",si:"v",cu:"f",ve:"h",ti:"a"};function vf(e,r){if(r.media)return"m";if(r.layer||r.supports)return"t";if(r.container)return"c";if(e.length>0){const n=e[0].trim();if(n.charCodeAt(0)===58)return hf[n.slice(4,8)]||hf[n.slice(3,5)]||"d"}return"d"}function Yi(e,r){return e&&r+e}function bf(e){return Yi(e.container,"c")+Yi(e.media,"m")+Yi(e.layer,"l")+Yi(e.supports,"s")}function la(e,r,n){const i=e+bf(n)+r,l=Tn(i),a=l.charCodeAt(0);return a>=48&&a<=57?String.fromCharCode(a+17)+l.slice(1):l}function Ji({property:e,selector:r,salt:n,value:i},l){return Yl+Tn(n+r+bf(l)+e+i.trim())}function o1(e){return e===ea}function aa(e){return e.replace(/>\s+/g,">")}function Z4(e,r){}function yf(e){return Xb[e]}function wf(e){var r;return(r=e?.[0])!==null&&r!==void 0?r:0}function ca(e,r,n,i){e[r]=i?[n,i]:n}function kf(e,r){return r.length>0?[e,Object.fromEntries(r)]:e}function ua(e,r,n,i,l,a){var u;const d=[];a!==0&&d.push(["p",a]),r==="m"&&l&&d.push(["m",l]),(u=e[r])!==null&&u!==void 0||(e[r]=[]),n&&e[r].push(kf(n,d)),i&&e[r].push(kf(i,d))}function Nr(e,r="",n=[],i={container:"",layer:"",media:"",supports:""},l={},a={},u){for(const d in e){if(J0.hasOwnProperty(d)){e[d];continue}const f=e[d];if(f!=null){if(o1(f)){const m=aa(n.join("")),h=la(m,d,i);ca(l,h,0,void 0);continue}if(typeof f=="string"||typeof f=="number"){const m=aa(n.join("")),h=yf(d);if(h){const C=h[1],E=Object.fromEntries(C.map(O=>[O,ea]));Nr(E,r,n,i,l,a)}const v=la(m,d,i),b=Ji({value:f.toString(),salt:r,selector:m,property:d},i),y=u&&{key:d,value:u}||ra(d,f),k=y.key!==d||y.value!==f,w=k?Ji({value:y.value.toString(),property:y.key,salt:r,selector:m},i):void 0,_=k?{rtlClassName:w,rtlProperty:y.key,rtlValue:y.value}:void 0,z=vf(n,i),[N,B]=ff(Object.assign({className:b,selectors:n,property:d,value:f},_),i);ca(l,v,b,w),ua(a,z,N,B,i.media,wf(h))}else if(d==="animationName"){const m=Array.isArray(f)?f:[f],h=[],v=[];for(const b of m){const y=pf(b),k=pf(Wd(b)),w=Yl+Tn(y);let _;const z=mf(w,y);let N=[];y===k?_=w:(_=Yl+Tn(k),N=mf(_,k));for(let B=0;B<z.length;B++)ua(a,"k",z[B],N[B],i.media,0);h.push(w),v.push(_)}Nr({animationName:h.join(", ")},r,n,i,l,a,v.join(", "))}else if(Array.isArray(f)){if(f.length===0)continue;const m=aa(n.join("")),h=yf(d);if(h){const E=h[1],O=Object.fromEntries(E.map(I=>[I,ea]));Nr(O,r,n,i,l,a)}const v=la(m,d,i),b=Ji({value:f.map(E=>(E??"").toString()).join(";"),salt:r,selector:m,property:d},i),y=f.map(E=>ra(d,E));if(!!y.some(E=>E.key!==y[0].key))continue;const w=y[0].key!==d||y.some((E,O)=>E.value!==f[O]),_=w?Ji({value:y.map(E=>{var O;return((O=E?.value)!==null&&O!==void 0?O:"").toString()}).join(";"),salt:r,property:y[0].key,selector:m},i):void 0,z=w?{rtlClassName:_,rtlProperty:y[0].key,rtlValue:y.map(E=>E.value)}:void 0,N=vf(n,i),[B,C]=ff(Object.assign({className:b,selectors:n,property:d,value:f},z),i);ca(l,v,b,_),ua(a,N,B,C,i.media,wf(h))}else if(r1(f)){if(Zb(d))Nr(f,r,n.concat(Vd(d)),i,l,a);else if(Qb(d)){const m=gf(i.media,d.slice(6).trim());Nr(f,r,n,Object.assign({},i,{media:m}),l,a)}else if(Yb(d)){const m=(i.layer?`${i.layer}.`:"")+d.slice(6).trim();Nr(f,r,n,Object.assign({},i,{layer:m}),l,a)}else if(e1(d)){const m=gf(i.supports,d.slice(9).trim());Nr(f,r,n,Object.assign({},i,{supports:m}),l,a)}else if(t1(d)){const m=d.slice(10).trim();Nr(f,r,n,Object.assign({},i,{container:m}),l,a)}}}}return[l,a]}function n1(e,r=""){const n={},i={};for(const l in e){const a=e[l],[u,d]=Nr(a,r);n[l]=u,Object.keys(d).forEach(f=>{i[f]=(i[f]||[]).concat(d[f])})}return[n,i]}function i1(e,r=ta){const n=r();let i=null,l=null,a=null,u=null;function d(f){const{dir:m,renderer:h}=f;i===null&&([i,l]=n1(e,h.classNameHashSalt));const v=m==="ltr";return v?a===null&&(a=Li(i,m)):u===null&&(u=Li(i,m)),n(h,l),v?a:u}return d}function xf(e,r,n=ta){const i=n();let l=null,a=null;function u(d){const{dir:f,renderer:m}=d,h=f==="ltr";return h?l===null&&(l=Li(e,f)):a===null&&(a=Li(e,f)),i(m,r),h?l:a}return u}function s1(e,r,n,i=ta){const l=i();function a(u){const{dir:d,renderer:f}=u,m=d==="ltr"?e:r||e;return l(f,Array.isArray(n)?{r:n}:n),m}return a}function l1(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const Sf=Ai.useInsertionEffect?Ai.useInsertionEffect:void 0,da=()=>{const e={};return function(n,i){if(Sf&&l1()){Sf(()=>{n.insertCSSRules(i)},[n,i]);return}e[n.id]===void 0&&(n.insertCSSRules(i),e[n.id]=!0)}},a1=S.createContext(ab());function Rn(){return S.useContext(a1)}const _f=S.createContext("ltr"),c1=({children:e,dir:r})=>S.createElement(_f.Provider,{value:r},e);function fa(){return S.useContext(_f)}function Vo(e){const r=i1(e,da);return function(){const i=fa(),l=Rn();return r({dir:i,renderer:l})}}function ge(e,r){const n=xf(e,r,da);return function(){const l=fa(),a=Rn();return n({dir:l,renderer:a})}}function ct(e,r,n){const i=s1(e,r,n,da);return function(){const a=fa(),u=Rn();return i({dir:a,renderer:u})}}function u1(e,r){if(r){const n=Object.keys(r).reduce((i,l)=>`${i}--${l}: ${r[l]}; `,"");return`${e} { ${n} }`}return`${e} {}`}const Bf=Symbol.for("fui.slotRenderFunction"),Zi=Symbol.for("fui.slotElementType"),Cf=Symbol.for("fui.slotClassNameProp");function Ee(e,r){const{defaultProps:n,elementType:i}=r,l=zf(e),a={...n,...l,[Zi]:i,[Cf]:l?.className};return l&&typeof l.children=="function"&&(a[Bf]=l.children,a.children=n?.children),a}function Ie(e,r){if(!(e===null||e===void 0&&!r.renderByDefault))return Ee(e,r)}function zf(e){return typeof e=="string"||typeof e=="number"||d1(e)||S.isValidElement(e)?{children:e}:e}const d1=e=>typeof e=="object"&&e!==null&&Symbol.iterator in e;function Nf(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&!S.isValidElement(e)}function Tf(e){return!!e?.hasOwnProperty(Zi)}const De=(...e)=>{const r={};for(const n of e){const i=Array.isArray(n)?n:Object.keys(n);for(const l of i)r[l]=1}return r},f1=De(["onAuxClick","onAnimationEnd","onAnimationStart","onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),p1=De(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),m1=De(["itemID","itemProp","itemRef","itemScope","itemType"]),ot=De(p1,f1,m1),g1=De(ot,["form"]),Ef=De(ot,["height","loop","muted","preload","src","width"]),h1=De(Ef,["poster"]),v1=De(ot,["start"]),b1=De(ot,["value"]),y1=De(ot,["download","href","hrefLang","media","referrerPolicy","rel","target","type"]),w1=De(ot,["dateTime"]),es=De(ot,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),k1=De(es,["accept","alt","autoCorrect","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","minLength","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),x1=De(es,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),S1=De(es,["form","multiple","required"]),_1=De(ot,["selected","value"]),B1=De(ot,["cellPadding","cellSpacing"]),C1=ot,z1=De(ot,["colSpan","rowSpan","scope"]),N1=De(ot,["colSpan","headers","rowSpan","scope"]),T1=De(ot,["span"]),E1=De(ot,["span"]),P1=De(ot,["disabled","form"]),R1=De(ot,["acceptCharset","action","encType","encType","method","noValidate","target"]),F1=De(ot,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),I1=De(ot,["alt","crossOrigin","height","src","srcSet","useMap","width"]),j1=De(ot,["open","onCancel","onClose"]);function D1(e,r,n){const i=Array.isArray(r),l={},a=Object.keys(e);for(const u of a)(!i&&r[u]||i&&r.indexOf(u)>=0||u.indexOf("data-")===0||u.indexOf("aria-")===0)&&(!n||n?.indexOf(u)===-1)&&(l[u]=e[u]);return l}const O1={label:g1,audio:Ef,video:h1,ol:v1,li:b1,a:y1,button:es,input:k1,textarea:x1,select:S1,option:_1,table:B1,tr:C1,th:z1,td:N1,colGroup:T1,col:E1,fieldset:P1,form:R1,iframe:F1,img:I1,time:w1,dialog:j1};function Pf(e,r,n){const i=e&&O1[e]||ot;return i.as=1,D1(r,i,n)}const Fn=({primarySlotTagName:e,props:r,excludedPropNames:n})=>({root:{style:r.style,className:r.className},primary:Pf(e,r,[...n||[],"style","className"])}),xt=(e,r,n)=>{var i;return Pf((i=r.as)!==null&&i!==void 0?i:e,r,n)};function Rf(e,r){const n=S.useRef(void 0),i=S.useCallback((a,u)=>(n.current!==void 0&&r(n.current),n.current=e(a,u),n.current),[r,e]),l=S.useCallback(()=>{n.current!==void 0&&(r(n.current),n.current=void 0)},[r]);return S.useEffect(()=>l,[l]),[i,l]}const Ff=S.createContext(void 0),A1=Ff.Provider,If=S.createContext(void 0),M1="",L1=If.Provider;function q1(){var e;return(e=S.useContext(If))!==null&&e!==void 0?e:M1}const jf=S.createContext(void 0),H1={},W1=jf.Provider;function V1(){var e;return(e=S.useContext(jf))!==null&&e!==void 0?e:H1}const Df=S.createContext(void 0),$1={targetDocument:typeof document=="object"?document:void 0,dir:"ltr"},U1=Df.Provider;function nt(){var e;return(e=S.useContext(Df))!==null&&e!==void 0?e:$1}const Of=S.createContext(void 0),G1=Of.Provider;function Af(){var e;return(e=S.useContext(Of))!==null&&e!==void 0?e:{}}const pa=S.createContext(void 0),K1=()=>{},X1=pa.Provider,Ge=e=>{var r,n;return(n=(r=S.useContext(pa))===null||r===void 0?void 0:r[e])!==null&&n!==void 0?n:K1},Mf=S.createContext(void 0);Mf.Provider;function Q1(){return S.useContext(Mf)}const Y1=e=>(e(0),0),J1=e=>e;function Z1(){const{targetDocument:e}=nt(),r=e?.defaultView,n=r?r.requestAnimationFrame:Y1,i=r?r.cancelAnimationFrame:J1;return Rf(n,i)}function ey(e){return typeof e=="function"}const Tr=e=>{"use no memo";const[r,n]=S.useState(()=>e.defaultState===void 0?e.initialState:ty(e.defaultState)?e.defaultState():e.defaultState),i=S.useRef(e.state);S.useEffect(()=>{i.current=e.state},[e.state]);const l=S.useCallback(a=>{ey(a)&&a(i.current)},[]);return ry(e.state)?[e.state,l]:[r,n]};function ty(e){return typeof e=="function"}const ry=e=>{"use no memo";const[r]=S.useState(()=>e!==void 0);return r};function ts(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const Lf={current:0},oy=S.createContext(void 0);function qf(){var e;return(e=S.useContext(oy))!==null&&e!==void 0?e:Lf}function ny(){const e=qf()!==Lf,[r,n]=S.useState(e);return ts()&&e&&S.useLayoutEffect(()=>{n(!1)},[]),r}const Dt=ts()?S.useLayoutEffect:S.useEffect,xe=e=>{const r=S.useRef(()=>{throw new Error("Cannot call an event handler while rendering")});return Dt(()=>{r.current=e},[e]),S.useCallback((...n)=>{const i=r.current;return i(...n)},[r])};function iy(){const e=S.useRef(!0);return S.useEffect(()=>{e.current&&(e.current=!1)},[]),e.current}const Hf=S.createContext(void 0);Hf.Provider;function sy(){return S.useContext(Hf)||""}function Gt(e="fui-",r){"use no memo";const n=qf(),i=sy(),l=Ai.useId;if(l){const a=l(),u=S.useMemo(()=>a.replace(/:/g,""),[a]);return r||`${i}${e}${u}`}return S.useMemo(()=>r||`${i}${e}${++n.current}`,[i,e,r,n])}function Ye(...e){"use no memo";const r=S.useCallback(n=>{r.current=n;for(const i of e)typeof i=="function"?i(n):i&&(i.current=n)},[...e]);return r}const Wf=(e,r)=>!!e?.contains(r),Vf=e=>{const{targetDocument:r}=nt(),n=r?.defaultView,{refs:i,callback:l,element:a,disabled:u,disabledFocusOnIframe:d,contains:f=Wf}=e,m=S.useRef(void 0);ay({element:a,disabled:d||u,callback:l,refs:i,contains:f});const h=S.useRef(!1),v=xe(y=>{if(h.current){h.current=!1;return}const k=y.composedPath()[0];i.every(_=>!f(_.current||null,k))&&!u&&l(y)}),b=xe(y=>{h.current=i.some(k=>f(k.current||null,y.target))});S.useEffect(()=>{if(u)return;let y=ly(n);const k=w=>{if(w===y){y=void 0;return}v(w)};return a?.addEventListener("click",k,!0),a?.addEventListener("touchstart",k,!0),a?.addEventListener("contextmenu",k,!0),a?.addEventListener("mousedown",b,!0),m.current=n?.setTimeout(()=>{y=void 0},1),()=>{a?.removeEventListener("click",k,!0),a?.removeEventListener("touchstart",k,!0),a?.removeEventListener("contextmenu",k,!0),a?.removeEventListener("mousedown",b,!0),n?.clearTimeout(m.current),y=void 0}},[v,a,u,b,n])},ly=e=>{if(e){var r,n;if(typeof e.window=="object"&&e.window===e)return e.event;var i;return(i=(n=e.ownerDocument)===null||n===void 0||(r=n.defaultView)===null||r===void 0?void 0:r.event)!==null&&i!==void 0?i:void 0}},ma="fuiframefocus",ay=e=>{const{disabled:r,element:n,callback:i,contains:l=Wf,pollDuration:a=100,refs:u}=e,d=S.useRef(void 0),f=xe(m=>{u.every(v=>!l(v.current||null,m.target))&&!r&&i(m)});S.useEffect(()=>{if(!r)return n?.addEventListener(ma,f,!0),()=>{n?.removeEventListener(ma,f,!0)}},[n,r,f]),S.useEffect(()=>{var m;if(!r)return d.current=n==null||(m=n.defaultView)===null||m===void 0?void 0:m.setInterval(()=>{const h=n?.activeElement;if(h?.tagName==="IFRAME"||h?.tagName==="WEBVIEW"){const v=new CustomEvent(ma,{bubbles:!0});h.dispatchEvent(v)}},a),()=>{var h;n==null||(h=n.defaultView)===null||h===void 0||h.clearInterval(d.current)}},[n,r,a])},cy=e=>-1,uy=e=>{};function $f(){const{targetDocument:e}=nt(),r=e?.defaultView,n=r?r.setTimeout:cy,i=r?r.clearTimeout:uy;return Rf(n,i)}const dy=parseInt(S.version,10)>=19;function fy(e){if(e)return dy?e.props.ref:e.ref}function je(e,r){return(...n)=>{e?.(...n),r?.(...n)}}function Er(e,r){var n;const i=e;var l;return!!(!(i==null||(n=i.ownerDocument)===null||n===void 0)&&n.defaultView&&i instanceof i.ownerDocument.defaultView[(l=void 0)!==null&&l!==void 0?l:"HTMLElement"])}function py(e){if(!Er(e))return!1;const{tagName:r}=e;switch(r){case"BUTTON":case"A":case"INPUT":case"TEXTAREA":return!0}return e.isContentEditable}function Uf(e){return!!e.type.isFluentTriggerComponent}function my(e,r){return typeof e=="function"?e(r):e?Gf(e,r):e||null}function Gf(e,r){if(!S.isValidElement(e)||e.type===S.Fragment)throw new Error("A trigger element must be a single element for this component. Please ensure that you're not using React Fragments.");if(Uf(e)){const n=Gf(e.props.children,r);return S.cloneElement(e,void 0,n)}else return S.cloneElement(e,r)}function Kf(e){return S.isValidElement(e)?Uf(e)?Kf(e.props.children):e:null}function ga(e){return e.type.startsWith("touch")}function ha(e){return e.type.startsWith("mouse")||["click","contextmenu","dblclick"].indexOf(e.type)>-1}function Xf(e){return ha(e)?{clientX:e.clientX,clientY:e.clientY}:ga(e)?{clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}:{clientX:0,clientY:0}}function Qf(e){return e instanceof Set?e:new Set(e)}function Yf(e){const[r,n]=Tr({initialState:new Set,defaultState:S.useMemo(()=>e.defaultSelectedItems&&Qf(e.defaultSelectedItems),[e.defaultSelectedItems]),state:S.useMemo(()=>e.selectedItems&&Qf(e.selectedItems),[e.selectedItems])});return[r,(l,a)=>{var u;(u=e.onSelectionChange)===null||u===void 0||u.call(e,l,{selectedItems:a}),n(a)}]}function gy(e){const[r,n]=Yf(e);return[r,{deselectItem:l=>n(l,new Set),selectItem:(l,a)=>n(l,new Set([a])),toggleAllItems:()=>{},toggleItem:(l,a)=>n(l,new Set([a])),clearItems:l=>n(l,new Set),isSelected:l=>{var a;return(a=r.has(l))!==null&&a!==void 0?a:!1}}]}function hy(e){const[r,n]=Yf(e);return[r,{toggleItem:(l,a)=>{const u=new Set(r);r.has(a)?u.delete(a):u.add(a),n(l,u)},selectItem:(l,a)=>{const u=new Set(r);u.add(a),n(l,u)},deselectItem:(l,a)=>{const u=new Set(r);u.delete(a),n(l,u)},clearItems:l=>{n(l,new Set)},isSelected:l=>r.has(l),toggleAllItems:(l,a)=>{const u=a.every(f=>r.has(f)),d=new Set(r);u?d.clear():a.forEach(f=>d.add(f)),n(l,d)}}]}function vy(e){"use no memo";return e.selectionMode==="multiselect"?hy(e):gy(e)}function by(e){return e&&!!e._virtual}function yy(e){return by(e)&&e._virtual.parent||null}function wy(e,r={}){if(!e)return null;if(!r.skipVirtual){const i=yy(e);if(i)return i}const n=e.parentNode;return n&&n.nodeType===11?n.host:n}function Jf(e,r){e&&Object.assign(e,{_virtual:{parent:r}})}function ky(e,r){return{...r,[Zi]:e}}var va={exports:{}},Fe={};var Zf;function xy(){if(Zf)return Fe;Zf=1;var e=60103,r=60106,n=60107,i=60108,l=60114,a=60109,u=60110,d=60112,f=60113,m=60120,h=60115,v=60116,b=60121,y=60122,k=60117,w=60129,_=60131;if(typeof Symbol=="function"&&Symbol.for){var z=Symbol.for;e=z("react.element"),r=z("react.portal"),n=z("react.fragment"),i=z("react.strict_mode"),l=z("react.profiler"),a=z("react.provider"),u=z("react.context"),d=z("react.forward_ref"),f=z("react.suspense"),m=z("react.suspense_list"),h=z("react.memo"),v=z("react.lazy"),b=z("react.block"),y=z("react.server.block"),k=z("react.fundamental"),w=z("react.debug_trace_mode"),_=z("react.legacy_hidden")}function N(V){if(typeof V=="object"&&V!==null){var ee=V.$$typeof;switch(ee){case e:switch(V=V.type,V){case n:case l:case i:case f:case m:return V;default:switch(V=V&&V.$$typeof,V){case u:case d:case v:case h:case a:return V;default:return ee}}case r:return ee}}}var B=a,C=e,E=d,O=n,I=v,q=h,j=r,U=l,le=i,te=f;return Fe.ContextConsumer=u,Fe.ContextProvider=B,Fe.Element=C,Fe.ForwardRef=E,Fe.Fragment=O,Fe.Lazy=I,Fe.Memo=q,Fe.Portal=j,Fe.Profiler=U,Fe.StrictMode=le,Fe.Suspense=te,Fe.isAsyncMode=function(){return!1},Fe.isConcurrentMode=function(){return!1},Fe.isContextConsumer=function(V){return N(V)===u},Fe.isContextProvider=function(V){return N(V)===a},Fe.isElement=function(V){return typeof V=="object"&&V!==null&&V.$$typeof===e},Fe.isForwardRef=function(V){return N(V)===d},Fe.isFragment=function(V){return N(V)===n},Fe.isLazy=function(V){return N(V)===v},Fe.isMemo=function(V){return N(V)===h},Fe.isPortal=function(V){return N(V)===r},Fe.isProfiler=function(V){return N(V)===l},Fe.isStrictMode=function(V){return N(V)===i},Fe.isSuspense=function(V){return N(V)===f},Fe.isValidElementType=function(V){return typeof V=="string"||typeof V=="function"||V===n||V===l||V===w||V===i||V===f||V===m||V===_||typeof V=="object"&&V!==null&&(V.$$typeof===v||V.$$typeof===h||V.$$typeof===a||V.$$typeof===u||V.$$typeof===d||V.$$typeof===k||V.$$typeof===b||V[0]===y)},Fe.typeOf=N,Fe}var ep;function Sy(){return ep||(ep=1,va.exports=xy()),va.exports}Sy();function tp(e,r){return function(i,l,a,u,d){return Tf(l)?r(ky(i,l),null,a,u,d):Tf(i)?r(i,l,a,u,d):e(i,l,a,u,d)}}function rp(e){const{as:r,[Cf]:n,[Zi]:i,[Bf]:l,...a}=e,u=a,d=typeof i=="string"?r??i:i;return typeof d!="string"&&r&&(u.as=r),{elementType:d,props:u,renderFunction:l}}const wo=q0,_y=(e,r,n)=>{const{elementType:i,renderFunction:l,props:a}=rp(e),u={...a,...r};return l?wo.jsx(S.Fragment,{children:l(i,u)},n):wo.jsx(i,u,n)},By=(e,r,n)=>{const{elementType:i,renderFunction:l,props:a}=rp(e),u={...a,...r};return l?wo.jsx(S.Fragment,{children:l(i,{...u,children:wo.jsxs(S.Fragment,{children:u.children},void 0)})},n):wo.jsxs(i,u,n)},ue=tp(wo.jsx,_y),Je=tp(wo.jsxs,By),op=S.createContext(void 0),Cy={},zy=op.Provider,Ny=()=>{const e=S.useContext(op);return e??Cy},Ty=(e,r)=>ue(U1,{value:r.provider,children:ue(A1,{value:r.theme,children:ue(L1,{value:r.themeClassName,children:ue(X1,{value:r.customStyleHooks_unstable,children:ue(W1,{value:r.tooltip,children:ue(c1,{dir:r.textDirection,children:ue(zy,{value:r.iconDirection,children:ue(G1,{value:r.overrides_unstable,children:Je(e.root,{children:[ts()?null:ue("style",{dangerouslySetInnerHTML:{__html:e.serverStyleProps.cssRule},...e.serverStyleProps.attributes}),e.root.children]})})})})})})})})});var Ey=typeof WeakRef<"u",np=class{constructor(e){Ey&&typeof e=="object"?this._weakRef=new WeakRef(e):this._instance=e}deref(){var e,r;let n;return this._weakRef?(n=(e=this._weakRef)==null?void 0:e.deref(),n||delete this._weakRef):(n=this._instance,(r=n?.isDisposed)!=null&&r.call(n)&&delete this._instance),n}},Ot="keyborg:focusin",In="keyborg:focusout";function Py(e){const r=e.HTMLElement,n=r.prototype.focus;let i=!1;return r.prototype.focus=function(){i=!0},e.document.createElement("button").focus(),r.prototype.focus=n,i}var ba=!1;function Pr(e){const r=e.focus;r.__keyborgNativeFocus?r.__keyborgNativeFocus.call(e):e.focus()}function Ry(e){const r=e;ba||(ba=Py(r));const n=r.HTMLElement.prototype.focus;if(n.__keyborgNativeFocus)return;r.HTMLElement.prototype.focus=f;const i=new Set,l=h=>{const v=h.target;if(!v)return;const b=new CustomEvent(In,{cancelable:!0,bubbles:!0,composed:!0,detail:{originalEvent:h}});v.dispatchEvent(b)},a=h=>{const v=h.target;if(!v)return;let b=h.composedPath()[0];const y=new Set;for(;b;)b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?(y.add(b),b=b.host):b=b.parentNode;for(const k of i){const w=k.deref();(!w||!y.has(w))&&(i.delete(k),w&&(w.removeEventListener("focusin",a,!0),w.removeEventListener("focusout",l,!0)))}u(v,h.relatedTarget||void 0)},u=(h,v,b)=>{var y;const k=h.shadowRoot;if(k){for(const z of i)if(z.deref()===k)return;k.addEventListener("focusin",a,!0),k.addEventListener("focusout",l,!0),i.add(new np(k));return}const w={relatedTarget:v,originalEvent:b},_=new CustomEvent(Ot,{cancelable:!0,bubbles:!0,composed:!0,detail:w});_.details=w,(ba||d.lastFocusedProgrammatically)&&(w.isFocusedProgrammatically=h===((y=d.lastFocusedProgrammatically)==null?void 0:y.deref()),d.lastFocusedProgrammatically=void 0),h.dispatchEvent(_)},d=r.__keyborgData={focusInHandler:a,focusOutHandler:l,shadowTargets:i};r.document.addEventListener("focusin",r.__keyborgData.focusInHandler,!0),r.document.addEventListener("focusout",r.__keyborgData.focusOutHandler,!0);function f(){const h=r.__keyborgData;return h&&(h.lastFocusedProgrammatically=new np(this)),n.apply(this,arguments)}let m=r.document.activeElement;for(;m&&m.shadowRoot;)u(m),m=m.shadowRoot.activeElement;f.__keyborgNativeFocus=n}function Fy(e){const r=e,n=r.HTMLElement.prototype,i=n.focus.__keyborgNativeFocus,l=r.__keyborgData;if(l){r.document.removeEventListener("focusin",l.focusInHandler,!0),r.document.removeEventListener("focusout",l.focusOutHandler,!0);for(const a of l.shadowTargets){const u=a.deref();u&&(u.removeEventListener("focusin",l.focusInHandler,!0),u.removeEventListener("focusout",l.focusOutHandler,!0))}l.shadowTargets.clear(),delete r.__keyborgData}i&&(n.focus=i)}var Iy=500,ip=0,jy=class{constructor(e,r){this._isNavigatingWithKeyboard_DO_NOT_USE=!1,this._onFocusIn=i=>{if(this._isMouseOrTouchUsedTimer||this.isNavigatingWithKeyboard)return;const l=i.detail;l.relatedTarget&&(l.isFocusedProgrammatically||l.isFocusedProgrammatically===void 0||(this.isNavigatingWithKeyboard=!0))},this._onMouseDown=i=>{i.buttons===0||i.clientX===0&&i.clientY===0&&i.screenX===0&&i.screenY===0||this._onMouseOrTouch()},this._onMouseOrTouch=()=>{const i=this._win;i&&(this._isMouseOrTouchUsedTimer&&i.clearTimeout(this._isMouseOrTouchUsedTimer),this._isMouseOrTouchUsedTimer=i.setTimeout(()=>{delete this._isMouseOrTouchUsedTimer},1e3)),this.isNavigatingWithKeyboard=!1},this._onKeyDown=i=>{this.isNavigatingWithKeyboard?this._shouldDismissKeyboardNavigation(i)&&this._scheduleDismiss():this._shouldTriggerKeyboardNavigation(i)&&(this.isNavigatingWithKeyboard=!0)},this.id="c"+ ++ip,this._win=e;const n=e.document;if(r){const i=r.triggerKeys,l=r.dismissKeys;i?.length&&(this._triggerKeys=new Set(i)),l?.length&&(this._dismissKeys=new Set(l))}n.addEventListener(Ot,this._onFocusIn,!0),n.addEventListener("mousedown",this._onMouseDown,!0),e.addEventListener("keydown",this._onKeyDown,!0),n.addEventListener("touchstart",this._onMouseOrTouch,!0),n.addEventListener("touchend",this._onMouseOrTouch,!0),n.addEventListener("touchcancel",this._onMouseOrTouch,!0),Ry(e)}get isNavigatingWithKeyboard(){return this._isNavigatingWithKeyboard_DO_NOT_USE}set isNavigatingWithKeyboard(e){this._isNavigatingWithKeyboard_DO_NOT_USE!==e&&(this._isNavigatingWithKeyboard_DO_NOT_USE=e,this.update())}dispose(){const e=this._win;if(e){this._isMouseOrTouchUsedTimer&&(e.clearTimeout(this._isMouseOrTouchUsedTimer),this._isMouseOrTouchUsedTimer=void 0),this._dismissTimer&&(e.clearTimeout(this._dismissTimer),this._dismissTimer=void 0),Fy(e);const r=e.document;r.removeEventListener(Ot,this._onFocusIn,!0),r.removeEventListener("mousedown",this._onMouseDown,!0),e.removeEventListener("keydown",this._onKeyDown,!0),r.removeEventListener("touchstart",this._onMouseOrTouch,!0),r.removeEventListener("touchend",this._onMouseOrTouch,!0),r.removeEventListener("touchcancel",this._onMouseOrTouch,!0),delete this._win}}isDisposed(){return!!this._win}update(){var e,r;const n=(r=(e=this._win)==null?void 0:e.__keyborg)==null?void 0:r.refs;if(n)for(const i of Object.keys(n))ya.update(n[i],this.isNavigatingWithKeyboard)}_shouldTriggerKeyboardNavigation(e){var r;if(e.key==="Tab")return!0;const n=(r=this._win)==null?void 0:r.document.activeElement,i=!this._triggerKeys||this._triggerKeys.has(e.keyCode),l=n&&(n.tagName==="INPUT"||n.tagName==="TEXTAREA"||n.isContentEditable);return i&&!l}_shouldDismissKeyboardNavigation(e){var r;return(r=this._dismissKeys)==null?void 0:r.has(e.keyCode)}_scheduleDismiss(){const e=this._win;if(e){this._dismissTimer&&(e.clearTimeout(this._dismissTimer),this._dismissTimer=void 0);const r=e.document.activeElement;this._dismissTimer=e.setTimeout(()=>{this._dismissTimer=void 0;const n=e.document.activeElement;r&&n&&r===n&&(this.isNavigatingWithKeyboard=!1)},Iy)}}},ya=class O0{constructor(r,n){this._cb=[],this._id="k"+ ++ip,this._win=r;const i=r.__keyborg;i?(this._core=i.core,i.refs[this._id]=this):(this._core=new jy(r,n),r.__keyborg={core:this._core,refs:{[this._id]:this}})}static create(r,n){return new O0(r,n)}static dispose(r){r.dispose()}static update(r,n){r._cb.forEach(i=>i(n))}dispose(){var r;const n=(r=this._win)==null?void 0:r.__keyborg;n?.refs[this._id]&&(delete n.refs[this._id],Object.keys(n.refs).length===0&&(n.core.dispose(),delete this._win.__keyborg)),this._cb=[],delete this._core,delete this._win}isNavigatingWithKeyboard(){var r;return!!((r=this._core)!=null&&r.isNavigatingWithKeyboard)}subscribe(r){this._cb.push(r)}unsubscribe(r){const n=this._cb.indexOf(r);n>=0&&this._cb.splice(n,1)}setVal(r){this._core&&(this._core.isNavigatingWithKeyboard=r)}};function rs(e,r){return ya.create(e,r)}function os(e){ya.dispose(e)}const sr="data-tabster",Dy="data-tabster-dummy",sp=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","*[tabindex]","*[contenteditable]","details > summary","audio[controls]","video[controls]"].join(", "),$o={EscapeGroupper:1,Restorer:2,Deloser:3},Ur={Invisible:0,PartiallyVisible:1,Visible:2},lr={Both:0,Vertical:1,Horizontal:2,Grid:3,GridLinear:4},Ke={ArrowUp:1,ArrowDown:2,ArrowLeft:3,ArrowRight:4,PageUp:5,PageDown:6,Home:7,End:8},ns={Unlimited:0,Limited:1,LimitedTrapFocus:2},is={Enter:1,Escape:2},Oy={Outside:2};function Kt(e,r){var n;return(n=e.storageEntry(r))===null||n===void 0?void 0:n.tabster}function lp(e,r,n){var i,l;const a=n||e._noop?void 0:r.getAttribute(sr);let u=e.storageEntry(r),d;if(a)if(a!==((i=u?.attr)===null||i===void 0?void 0:i.string))try{const v=JSON.parse(a);if(typeof v!="object")throw new Error(`Value is not a JSON object, got '${a}'.`);d={string:a,object:v}}catch{}else return;else if(!u)return;u||(u=e.storageEntry(r,!0)),u.tabster||(u.tabster={});const f=u.tabster||{},m=((l=u.attr)===null||l===void 0?void 0:l.object)||{},h=d?.object||{};for(const v of Object.keys(m))if(!h[v]){if(v==="root"){const b=f[v];b&&e.root.onRoot(b,!0)}switch(v){case"deloser":case"root":case"groupper":case"modalizer":case"restorer":case"mover":const b=f[v];b&&(b.dispose(),delete f[v]);break;case"observed":delete f[v],e.observedElement&&e.observedElement.onObservedElementUpdate(r);break;case"focusable":case"outline":case"uncontrolled":case"sys":delete f[v];break}}for(const v of Object.keys(h)){const b=h.sys;switch(v){case"deloser":f.deloser?f.deloser.setProps(h.deloser):e.deloser&&(f.deloser=e.deloser.createDeloser(r,h.deloser));break;case"root":f.root?f.root.setProps(h.root):f.root=e.root.createRoot(r,h.root,b),e.root.onRoot(f.root);break;case"modalizer":f.modalizer?f.modalizer.setProps(h.modalizer):e.modalizer&&(f.modalizer=e.modalizer.createModalizer(r,h.modalizer,b));break;case"restorer":f.restorer?f.restorer.setProps(h.restorer):e.restorer&&h.restorer&&(f.restorer=e.restorer.createRestorer(r,h.restorer));break;case"focusable":f.focusable=h.focusable;break;case"groupper":f.groupper?f.groupper.setProps(h.groupper):e.groupper&&(f.groupper=e.groupper.createGroupper(r,h.groupper,b));break;case"mover":f.mover?f.mover.setProps(h.mover):e.mover&&(f.mover=e.mover.createMover(r,h.mover,b));break;case"observed":e.observedElement&&(f.observed=h.observed,e.observedElement.onObservedElementUpdate(r));break;case"uncontrolled":f.uncontrolled=h.uncontrolled;break;case"outline":e.outline&&(f.outline=h.outline);break;case"sys":f.sys=h.sys;break;default:console.error(`Unknown key '${v}' in data-tabster attribute value.`)}}d?u.attr=d:(Object.keys(f).length===0&&(delete u.tabster,delete u.attr),e.storageEntry(r,!1))}const Ay="tabster:focusin",My="tabster:focusout",Ly="tabster:movefocus",qy="tabster:mover:state",wa="tabster:mover:movefocus",ap="tabster:mover:memorized-element",ka="tabster:groupper:movefocus",Hy="tabster:root:focus",Wy="tabster:root:blur",Vy=typeof CustomEvent<"u"?CustomEvent:function(){};class Gr extends Vy{constructor(r,n){super(r,{bubbles:!0,cancelable:!0,composed:!0,detail:n}),this.details=n}}class $y extends Gr{constructor(r){super(Ay,r)}}class Uy extends Gr{constructor(r){super(My,r)}}class Kr extends Gr{constructor(r){super(Ly,r)}}class cp extends Gr{constructor(r){super(qy,r)}}class Gy extends Gr{constructor(r){super(wa,r)}}class up extends Gr{constructor(r){super(ka,r)}}class Ky extends Gr{constructor(r){super(Hy,r)}}class Xy extends Gr{constructor(r){super(Wy,r)}}const se={createMutationObserver:e=>new MutationObserver(e),createTreeWalker:(e,r,n,i)=>e.createTreeWalker(r,n,i),getParentNode:e=>e?e.parentNode:null,getParentElement:e=>e?e.parentElement:null,nodeContains:(e,r)=>!!(r&&e?.contains(r)),getActiveElement:e=>e.activeElement,querySelector:(e,r)=>e.querySelector(r),querySelectorAll:(e,r)=>Array.prototype.slice.call(e.querySelectorAll(r),0),getElementById:(e,r)=>e.getElementById(r),getFirstChild:e=>e?.firstChild||null,getLastChild:e=>e?.lastChild||null,getNextSibling:e=>e?.nextSibling||null,getPreviousSibling:e=>e?.previousSibling||null,getFirstElementChild:e=>e?.firstElementChild||null,getLastElementChild:e=>e?.lastElementChild||null,getNextElementSibling:e=>e?.nextElementSibling||null,getPreviousElementSibling:e=>e?.previousElementSibling||null,appendChild:(e,r)=>e.appendChild(r),insertBefore:(e,r,n)=>e.insertBefore(r,n),getSelection:e=>{var r;return((r=e.ownerDocument)===null||r===void 0?void 0:r.getSelection())||null},getElementsByName:(e,r)=>e.ownerDocument.getElementsByName(r)};function Qy(e){for(const r of Object.keys(e))se[r]=e[r]}let xa;const dp=typeof DOMRect<"u"?DOMRect:class{constructor(e,r,n,i){this.left=e||0,this.top=r||0,this.right=(e||0)+(n||0),this.bottom=(r||0)+(i||0)}};let Yy=0;try{document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT),xa=!1}catch{xa=!0}const Sa=100;function Rr(e){const r=e();let n=r.__tabsterInstanceContext;return n||(n={elementByUId:{},basics:{Promise:r.Promise||void 0,WeakRef:r.WeakRef||void 0},containerBoundingRectCache:{},lastContainerBoundingRectCacheId:0,fakeWeakRefs:[],fakeWeakRefsStarted:!1},r.__tabsterInstanceContext=n),n}function Jy(e){const r=e.__tabsterInstanceContext;r&&(r.elementByUId={},delete r.WeakRef,r.containerBoundingRectCache={},r.containerBoundingRectCacheTimer&&e.clearTimeout(r.containerBoundingRectCacheTimer),r.fakeWeakRefsTimer&&e.clearTimeout(r.fakeWeakRefsTimer),r.fakeWeakRefs=[],delete e.__tabsterInstanceContext)}function Zy(e){const r=e.__tabsterInstanceContext;return new(r?.basics.WeakMap||WeakMap)}function ew(e){return!!e.querySelector(sp)}class fp{constructor(r){this._target=r}deref(){return this._target}static cleanup(r,n){return r._target?n||!Ba(r._target.ownerDocument,r._target)?(delete r._target,!0):!1:!0}}class vr{constructor(r,n,i){const l=Rr(r);let a;l.WeakRef?a=new l.WeakRef(n):(a=new fp(n),l.fakeWeakRefs.push(a)),this._ref=a,this._data=i}get(){const r=this._ref;let n;return r&&(n=r.deref(),n||delete this._ref),n}getData(){return this._data}}function pp(e,r){const n=Rr(e);n.fakeWeakRefs=n.fakeWeakRefs.filter(i=>!fp.cleanup(i,r))}function mp(e){const r=Rr(e);r.fakeWeakRefsStarted||(r.fakeWeakRefsStarted=!0,r.WeakRef=sw(r)),r.fakeWeakRefsTimer||(r.fakeWeakRefsTimer=e().setTimeout(()=>{r.fakeWeakRefsTimer=void 0,pp(e),mp(e)},120*1e3))}function tw(e){const r=Rr(e);r.fakeWeakRefsStarted=!1,r.fakeWeakRefsTimer&&(e().clearTimeout(r.fakeWeakRefsTimer),r.fakeWeakRefsTimer=void 0,r.fakeWeakRefs=[])}function _a(e,r,n){if(r.nodeType!==Node.ELEMENT_NODE)return;const i=xa?n:{acceptNode:n};return se.createTreeWalker(e,r,NodeFilter.SHOW_ELEMENT,i,!1)}function gp(e,r){let n=r.__tabsterCacheId;const i=Rr(e),l=n?i.containerBoundingRectCache[n]:void 0;if(l)return l.rect;const a=r.ownerDocument&&r.ownerDocument.documentElement;if(!a)return new dp;let u=0,d=0,f=a.clientWidth,m=a.clientHeight;if(r!==a){const v=r.getBoundingClientRect();u=Math.max(u,v.left),d=Math.max(d,v.top),f=Math.min(f,v.right),m=Math.min(m,v.bottom)}const h=new dp(u<f?u:-1,d<m?d:-1,u<f?f-u:0,d<m?m-d:0);return n||(n="r-"+ ++i.lastContainerBoundingRectCacheId,r.__tabsterCacheId=n),i.containerBoundingRectCache[n]={rect:h,element:r},i.containerBoundingRectCacheTimer||(i.containerBoundingRectCacheTimer=window.setTimeout(()=>{i.containerBoundingRectCacheTimer=void 0;for(const v of Object.keys(i.containerBoundingRectCache))delete i.containerBoundingRectCache[v].element.__tabsterCacheId;i.containerBoundingRectCache={}},50)),h}function hp(e,r,n){const i=vp(r);if(!i)return!1;const l=gp(e,i),a=r.getBoundingClientRect(),u=a.height*(1-n),d=Math.max(0,l.top-a.top),f=Math.max(0,a.bottom-l.bottom),m=d+f;return m===0||m<=u}function rw(e,r,n){const i=vp(r);if(i){const l=gp(e,i),a=r.getBoundingClientRect();n?i.scrollTop+=a.top-l.top:i.scrollTop+=a.bottom-l.bottom}}function vp(e){const r=e.ownerDocument;if(r){for(let n=se.getParentElement(e);n;n=se.getParentElement(n))if(n.scrollWidth>n.clientWidth||n.scrollHeight>n.clientHeight)return n;return r.documentElement}return null}function ow(e){e.__shouldIgnoreFocus=!0}function bp(e){return!!e.__shouldIgnoreFocus}function nw(e){const r=new Uint32Array(4);if(e.crypto&&e.crypto.getRandomValues)e.crypto.getRandomValues(r);else if(e.msCrypto&&e.msCrypto.getRandomValues)e.msCrypto.getRandomValues(r);else for(let i=0;i<r.length;i++)r[i]=4294967295*Math.random();const n=[];for(let i=0;i<r.length;i++)n.push(r[i].toString(36));return n.push("|"),n.push((++Yy).toString(36)),n.push("|"),n.push(Date.now().toString(36)),n.join("")}function ss(e,r){const n=Rr(e);let i=r.__tabsterElementUID;return i||(i=r.__tabsterElementUID=nw(e())),!n.elementByUId[i]&&Ba(r.ownerDocument,r)&&(n.elementByUId[i]=new vr(e,r)),i}function yp(e,r){const n=Rr(e);for(const i of Object.keys(n.elementByUId)){const l=n.elementByUId[i],a=l&&l.get();a&&r&&!se.nodeContains(r,a)||delete n.elementByUId[i]}}function Ba(e,r){return se.nodeContains(e?.body,r)}function wp(e,r){const n=e.matches||e.matchesSelector||e.msMatchesSelector||e.webkitMatchesSelector;return n&&n.call(e,r)}function iw(e){const r=Rr(e);if(r.basics.Promise)return r.basics.Promise;throw new Error("No Promise defined.")}function sw(e){return e.basics.WeakRef}let lw=0;class Ca{constructor(r,n,i){const l=r.getWindow;this._tabster=r,this._element=new vr(l,n),this._props={...i},this.id="i"+ ++lw}getElement(){return this._element.get()}getProps(){return this._props}setProps(r){this._props={...r}}}class ls{constructor(r,n,i,l,a){var u;this._focusIn=h=>{if(this._fixedTarget){const b=this._fixedTarget.get();b&&Pr(b);return}const v=this.input;if(this.onFocusIn&&v){const b=h.relatedTarget;this.onFocusIn(this,this._isBackward(!0,v,b),b)}},this._focusOut=h=>{if(this._fixedTarget)return;this.useDefaultAction=!1;const v=this.input;if(this.onFocusOut&&v){const b=h.relatedTarget;this.onFocusOut(this,this._isBackward(!1,v,b),b)}};const d=r(),f=d.document.createElement("i");f.tabIndex=0,f.setAttribute("role","none"),f.setAttribute(Dy,""),f.setAttribute("aria-hidden","true");const m=f.style;m.position="fixed",m.width=m.height="1px",m.opacity="0.001",m.zIndex="-1",m.setProperty("content-visibility","hidden"),ow(f),this.input=f,this.isFirst=i.isFirst,this.isOutside=n,this._isPhantom=(u=i.isPhantom)!==null&&u!==void 0?u:!1,this._fixedTarget=a,f.addEventListener("focusin",this._focusIn),f.addEventListener("focusout",this._focusOut),f.__tabsterDummyContainer=l,this._isPhantom&&(this._disposeTimer=d.setTimeout(()=>{delete this._disposeTimer,this.dispose()},0),this._clearDisposeTimeout=()=>{this._disposeTimer&&(d.clearTimeout(this._disposeTimer),delete this._disposeTimer),delete this._clearDisposeTimeout})}dispose(){var r;this._clearDisposeTimeout&&this._clearDisposeTimeout();const n=this.input;n&&(delete this._fixedTarget,delete this.onFocusIn,delete this.onFocusOut,delete this.input,n.removeEventListener("focusin",this._focusIn),n.removeEventListener("focusout",this._focusOut),delete n.__tabsterDummyContainer,(r=se.getParentNode(n))===null||r===void 0||r.removeChild(n))}setTopLeft(r,n){var i;const l=(i=this.input)===null||i===void 0?void 0:i.style;l&&(l.top=`${r}px`,l.left=`${n}px`)}_isBackward(r,n,i){return r&&!i?!this.isFirst:!!(i&&n.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_FOLLOWING)}}const za={Root:1,Mover:3,Groupper:4};class jn{constructor(r,n,i,l,a,u){this._element=n,this._instance=new cw(r,n,this,i,l,a,u)}_setHandlers(r,n){this._onFocusIn=r,this._onFocusOut=n}moveOut(r){var n;(n=this._instance)===null||n===void 0||n.moveOut(r)}moveOutWithDefaultAction(r,n){var i;(i=this._instance)===null||i===void 0||i.moveOutWithDefaultAction(r,n)}getHandler(r){return r?this._onFocusIn:this._onFocusOut}setTabbable(r){var n;(n=this._instance)===null||n===void 0||n.setTabbable(this,r)}dispose(){this._instance&&(this._instance.dispose(this),delete this._instance),delete this._onFocusIn,delete this._onFocusOut}static moveWithPhantomDummy(r,n,i,l,a){const d=new ls(r.getWindow,!0,{isPhantom:!0,isFirst:!0}).input;if(d){let f,m;if(n.tagName==="BODY")f=n,m=i&&l||!i&&!l?se.getFirstElementChild(n):null;else{i&&(!l||l&&!r.focusable.isFocusable(n,!1,!0,!0))?(f=n,m=l?n.firstElementChild:null):(f=se.getParentElement(n),m=i&&l||!i&&!l?n:se.getNextElementSibling(n));let h,v;do h=i&&l||!i&&!l?se.getPreviousElementSibling(m):m,v=Dn(h),v===n?m=i&&l||!i&&!l?h:se.getNextElementSibling(h):v=null;while(v)}f?.dispatchEvent(new Kr({by:"root",owner:f,next:null,relatedEvent:a}))&&(se.insertBefore(f,d,m),Pr(d))}}static addPhantomDummyWithTarget(r,n,i,l){const u=new ls(r.getWindow,!0,{isPhantom:!0,isFirst:!0},void 0,new vr(r.getWindow,l)).input;if(u){let d,f;ew(n)&&!i?(d=n,f=se.getFirstElementChild(n)):(d=se.getParentElement(n),f=i?n:se.getNextElementSibling(n)),d&&se.insertBefore(d,u,f)}}}class aw{constructor(r){this._updateQueue=new Set,this._lastUpdateQueueTime=0,this._changedParents=new WeakSet,this._dummyElements=[],this._dummyCallbacks=new WeakMap,this._domChanged=n=>{var i;this._changedParents.has(n)||(this._changedParents.add(n),!this._updateDummyInputsTimer&&(this._updateDummyInputsTimer=(i=this._win)===null||i===void 0?void 0:i.call(this).setTimeout(()=>{delete this._updateDummyInputsTimer;for(const l of this._dummyElements){const a=l.get();if(a){const u=this._dummyCallbacks.get(a);if(u){const d=se.getParentNode(a);(!d||this._changedParents.has(d))&&u()}}}this._changedParents=new WeakSet},Sa)))},this._win=r}add(r,n){!this._dummyCallbacks.has(r)&&this._win&&(this._dummyElements.push(new vr(this._win,r)),this._dummyCallbacks.set(r,n),this.domChanged=this._domChanged)}remove(r){this._dummyElements=this._dummyElements.filter(n=>{const i=n.get();return i&&i!==r}),this._dummyCallbacks.delete(r),this._dummyElements.length===0&&delete this.domChanged}dispose(){var r;const n=(r=this._win)===null||r===void 0?void 0:r.call(this);this._updateTimer&&(n?.clearTimeout(this._updateTimer),delete this._updateTimer),this._updateDummyInputsTimer&&(n?.clearTimeout(this._updateDummyInputsTimer),delete this._updateDummyInputsTimer),this._changedParents=new WeakSet,this._dummyCallbacks=new WeakMap,this._dummyElements=[],this._updateQueue.clear(),delete this.domChanged,delete this._win}updatePositions(r){this._win&&(this._updateQueue.add(r),this._lastUpdateQueueTime=Date.now(),this._scheduledUpdatePositions())}_scheduledUpdatePositions(){var r;this._updateTimer||(this._updateTimer=(r=this._win)===null||r===void 0?void 0:r.call(this).setTimeout(()=>{if(delete this._updateTimer,this._lastUpdateQueueTime+Sa<=Date.now()){const n=new Map,i=[];for(const l of this._updateQueue)i.push(l(n));this._updateQueue.clear();for(const l of i)l();n.clear()}else this._scheduledUpdatePositions()},Sa))}}class cw{constructor(r,n,i,l,a,u,d){this._wrappers=[],this._isOutside=!1,this._transformElements=new Set,this._onFocusIn=(y,k,w)=>{this._onFocus(!0,y,k,w)},this._onFocusOut=(y,k,w)=>{this._onFocus(!1,y,k,w)},this.moveOut=y=>{var k;const w=this._firstDummy,_=this._lastDummy;if(w&&_){this._ensurePosition();const z=w.input,N=_.input,B=(k=this._element)===null||k===void 0?void 0:k.get();if(z&&N&&B){let C;y?(z.tabIndex=0,C=z):(N.tabIndex=0,C=N),C&&Pr(C)}}},this.moveOutWithDefaultAction=(y,k)=>{var w;const _=this._firstDummy,z=this._lastDummy;if(_&&z){this._ensurePosition();const N=_.input,B=z.input,C=(w=this._element)===null||w===void 0?void 0:w.get();if(N&&B&&C){let E;y?!_.isOutside&&this._tabster.focusable.isFocusable(C,!0,!0,!0)?E=C:(_.useDefaultAction=!0,N.tabIndex=0,E=N):(z.useDefaultAction=!0,B.tabIndex=0,E=B),E&&C.dispatchEvent(new Kr({by:"root",owner:C,next:null,relatedEvent:k}))&&Pr(E)}}},this.setTabbable=(y,k)=>{var w,_;for(const N of this._wrappers)if(N.manager===y){N.tabbable=k;break}const z=this._getCurrent();if(z){const N=z.tabbable?0:-1;let B=(w=this._firstDummy)===null||w===void 0?void 0:w.input;B&&(B.tabIndex=N),B=(_=this._lastDummy)===null||_===void 0?void 0:_.input,B&&(B.tabIndex=N)}},this._addDummyInputs=()=>{this._addTimer||(this._addTimer=this._getWindow().setTimeout(()=>{delete this._addTimer,this._ensurePosition(),this._addTransformOffsets()},0))},this._addTransformOffsets=()=>{this._tabster._dummyObserver.updatePositions(this._computeTransformOffsets)},this._computeTransformOffsets=y=>{var k,w;const _=((k=this._firstDummy)===null||k===void 0?void 0:k.input)||((w=this._lastDummy)===null||w===void 0?void 0:w.input),z=this._transformElements,N=new Set;let B=0,C=0;const E=this._getWindow();for(let O=_;O&&O.nodeType===Node.ELEMENT_NODE;O=se.getParentElement(O)){let I=y.get(O);if(I===void 0){const q=E.getComputedStyle(O).transform;q&&q!=="none"&&(I={scrollTop:O.scrollTop,scrollLeft:O.scrollLeft}),y.set(O,I||null)}I&&(N.add(O),z.has(O)||O.addEventListener("scroll",this._addTransformOffsets),B+=I.scrollTop,C+=I.scrollLeft)}for(const O of z)N.has(O)||O.removeEventListener("scroll",this._addTransformOffsets);return this._transformElements=N,()=>{var O,I;(O=this._firstDummy)===null||O===void 0||O.setTopLeft(B,C),(I=this._lastDummy)===null||I===void 0||I.setTopLeft(B,C)}};const f=n.get();if(!f)throw new Error("No element");this._tabster=r,this._getWindow=r.getWindow,this._callForDefaultAction=d;const m=f.__tabsterDummy;if((m||this)._wrappers.push({manager:i,priority:l,tabbable:!0}),m)return m;f.__tabsterDummy=this;const h=a?.dummyInputsPosition,v=f.tagName;this._isOutside=h?h===Oy.Outside:(u||v==="UL"||v==="OL"||v==="TABLE")&&!(v==="LI"||v==="TD"||v==="TH"),this._firstDummy=new ls(this._getWindow,this._isOutside,{isFirst:!0},n),this._lastDummy=new ls(this._getWindow,this._isOutside,{isFirst:!1},n);const b=this._firstDummy.input;b&&r._dummyObserver.add(b,this._addDummyInputs),this._firstDummy.onFocusIn=this._onFocusIn,this._firstDummy.onFocusOut=this._onFocusOut,this._lastDummy.onFocusIn=this._onFocusIn,this._lastDummy.onFocusOut=this._onFocusOut,this._element=n,this._addDummyInputs()}dispose(r,n){var i,l,a,u;if((this._wrappers=this._wrappers.filter(f=>f.manager!==r&&!n)).length===0){delete((i=this._element)===null||i===void 0?void 0:i.get()).__tabsterDummy;for(const h of this._transformElements)h.removeEventListener("scroll",this._addTransformOffsets);this._transformElements.clear();const f=this._getWindow();this._addTimer&&(f.clearTimeout(this._addTimer),delete this._addTimer);const m=(l=this._firstDummy)===null||l===void 0?void 0:l.input;m&&this._tabster._dummyObserver.remove(m),(a=this._firstDummy)===null||a===void 0||a.dispose(),(u=this._lastDummy)===null||u===void 0||u.dispose()}}_onFocus(r,n,i,l){var a;const u=this._getCurrent();u&&(!n.useDefaultAction||this._callForDefaultAction)&&((a=u.manager.getHandler(r))===null||a===void 0||a(n,i,l))}_getCurrent(){return this._wrappers.sort((r,n)=>r.tabbable!==n.tabbable?r.tabbable?-1:1:r.priority-n.priority),this._wrappers[0]}_ensurePosition(){var r,n,i;const l=(r=this._element)===null||r===void 0?void 0:r.get(),a=(n=this._firstDummy)===null||n===void 0?void 0:n.input,u=(i=this._lastDummy)===null||i===void 0?void 0:i.input;if(!(!l||!a||!u))if(this._isOutside){const d=se.getParentNode(l);if(d){const f=se.getNextSibling(l);f!==u&&se.insertBefore(d,u,f),se.getPreviousElementSibling(l)!==a&&se.insertBefore(d,a,l)}}else{se.getLastElementChild(l)!==u&&se.appendChild(l,u);const d=se.getFirstElementChild(l);d&&d!==a&&d.parentNode&&se.insertBefore(d.parentNode,a,d)}}}function kp(e){let r=null;for(let n=se.getLastElementChild(e);n;n=se.getLastElementChild(n))r=n;return r||void 0}function uw(e,r){let n=e,i=null;for(;n&&!i;)i=r?se.getPreviousElementSibling(n):se.getNextElementSibling(n),n=se.getParentElement(n);return i||void 0}function dw(e){var r,n;const i=e.ownerDocument,l=(r=i.defaultView)===null||r===void 0?void 0:r.getComputedStyle(e);return e.offsetParent===null&&i.body!==e&&l?.position!=="fixed"||l?.visibility==="hidden"||l?.position==="fixed"&&(l.display==="none"||((n=e.parentElement)===null||n===void 0?void 0:n.offsetParent)===null&&i.body!==e.parentElement)}function Na(e){return e.tagName==="INPUT"&&!!e.name&&e.type==="radio"}function fw(e){if(!Na(e))return;const r=e.name;let n=Array.from(se.getElementsByName(e,r)),i;return n=n.filter(l=>Na(l)?(l.checked&&(i=l),!0):!1),{name:r,buttons:new Set(n),checked:i}}function Dn(e){var r;return((r=e?.__tabsterDummyContainer)===null||r===void 0?void 0:r.get())||null}function xp(e,r){return JSON.stringify(e)}function pw(e,r){for(const n of Object.keys(r)){const i=r[n];i?e[n]=i:delete e[n]}}function mw(e,r,n){let i;{const l=e.getAttribute(sr);if(l)try{i=JSON.parse(l)}catch{}}i||(i={}),pw(i,r),Object.keys(i).length>0?e.setAttribute(sr,xp(i)):e.removeAttribute(sr)}class Sp extends jn{constructor(r,n,i,l){super(r,n,za.Root,l,void 0,!0),this._onDummyInputFocus=a=>{var u;if(a.useDefaultAction)this._setFocused(!1);else{this._tabster.keyboardNavigation.setNavigatingWithKeyboard(!0);const d=this._element.get();if(d){this._setFocused(!0);const f=this._tabster.focusedElement.getFirstOrLastTabbable(a.isFirst,{container:d,ignoreAccessibility:!0});if(f){Pr(f);return}}(u=a.input)===null||u===void 0||u.blur()}},this._setHandlers(this._onDummyInputFocus),this._tabster=r,this._setFocused=i}}class gw extends Ca{constructor(r,n,i,l,a){super(r,n,l),this._isFocused=!1,this._setFocused=m=>{var h;if(this._setFocusedTimer&&(this._tabster.getWindow().clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),this._isFocused===m)return;const v=this._element.get();v&&(m?(this._isFocused=!0,(h=this._dummyManager)===null||h===void 0||h.setTabbable(!1),v.dispatchEvent(new Ky({element:v}))):this._setFocusedTimer=this._tabster.getWindow().setTimeout(()=>{var b;delete this._setFocusedTimer,this._isFocused=!1,(b=this._dummyManager)===null||b===void 0||b.setTabbable(!0),v.dispatchEvent(new Xy({element:v}))},0))},this._onFocusIn=m=>{const h=this._tabster.getParent,v=this._element.get();let b=m.composedPath()[0];do{if(b===v){this._setFocused(!0);return}b=b&&h(b)}while(b)},this._onFocusOut=()=>{this._setFocused(!1)},this._onDispose=i;const u=r.getWindow;this.uid=ss(u,n),this._sys=a,(r.controlTab||r.rootDummyInputs)&&this.addDummyInputs();const f=u().document;f.addEventListener(Ot,this._onFocusIn),f.addEventListener(In,this._onFocusOut),this._add()}addDummyInputs(){this._dummyManager||(this._dummyManager=new Sp(this._tabster,this._element,this._setFocused,this._sys))}dispose(){var r;this._onDispose(this);const n=this._tabster.getWindow(),i=n.document;i.removeEventListener(Ot,this._onFocusIn),i.removeEventListener(In,this._onFocusOut),this._setFocusedTimer&&(n.clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),(r=this._dummyManager)===null||r===void 0||r.dispose(),this._remove()}moveOutWithDefaultAction(r,n){const i=this._dummyManager;if(i)i.moveOutWithDefaultAction(r,n);else{const l=this.getElement();l&&Sp.moveWithPhantomDummy(this._tabster,l,!0,r,n)}}_add(){}_remove(){}}class st{constructor(r,n){this._autoRootWaiting=!1,this._roots={},this._forceDummy=!1,this.rootById={},this._autoRootCreate=()=>{var i;const l=this._win().document,a=l.body;if(a){this._autoRootUnwait(l);const u=this._autoRoot;if(u)return mw(a,{root:u}),lp(this._tabster,a),(i=Kt(this._tabster,a))===null||i===void 0?void 0:i.root}else this._autoRootWaiting||(this._autoRootWaiting=!0,l.addEventListener("readystatechange",this._autoRootCreate))},this._onRootDispose=i=>{delete this._roots[i.id]},this._tabster=r,this._win=r.getWindow,this._autoRoot=n,r.queueInit(()=>{this._autoRoot&&this._autoRootCreate()})}_autoRootUnwait(r){r.removeEventListener("readystatechange",this._autoRootCreate),this._autoRootWaiting=!1}dispose(){const r=this._win();this._autoRootUnwait(r.document),delete this._autoRoot,Object.keys(this._roots).forEach(n=>{this._roots[n]&&(this._roots[n].dispose(),delete this._roots[n])}),this.rootById={}}createRoot(r,n,i){const l=new gw(this._tabster,r,this._onRootDispose,n,i);return this._roots[l.id]=l,this._forceDummy&&l.addDummyInputs(),l}addDummyInputs(){this._forceDummy=!0;const r=this._roots;for(const n of Object.keys(r))r[n].addDummyInputs()}static getRootByUId(r,n){const i=r().__tabsterInstance;return i&&i.root.rootById[n]}static getTabsterContext(r,n,i){i===void 0&&(i={});var l,a,u,d;if(!n.ownerDocument)return;const{checkRtl:f,referenceElement:m}=i,h=r.getParent;r.drainInitQueue();let v,b,y,k,w=!1,_,z,N,B,C=m||n;const E={};for(;C&&(!v||f);){const I=Kt(r,C);if(f&&N===void 0){const te=C.dir;te&&(N=te.toLowerCase()==="rtl")}if(!I){C=h(C);continue}const q=C.tagName;(I.uncontrolled||q==="IFRAME"||q==="WEBVIEW")&&r.focusable.isVisible(C)&&(B=C),!k&&(!((l=I.focusable)===null||l===void 0)&&l.excludeFromMover)&&!y&&(w=!0);const j=I.modalizer,U=I.groupper,le=I.mover;!b&&j&&(b=j),!y&&U&&(!b||j)&&(b?(!U.isActive()&&U.getProps().tabbability&&b.userId!==((a=r.modalizer)===null||a===void 0?void 0:a.activeId)&&(b=void 0,y=U),z=U):y=U),!k&&le&&(!b||j)&&(!U||C!==n)&&C.contains(n)&&(k=le,_=!!y&&y!==U),I.root&&(v=I.root),!((u=I.focusable)===null||u===void 0)&&u.ignoreKeydown&&Object.assign(E,I.focusable.ignoreKeydown),C=h(C)}if(!v){const I=r.root;I._autoRoot&&!((d=n.ownerDocument)===null||d===void 0)&&d.body&&(v=I._autoRootCreate())}return y&&!k&&(_=!0),v?{root:v,modalizer:b,groupper:y,mover:k,groupperBeforeMover:_,modalizerInGroupper:z,rtl:f?!!N:void 0,uncontrolled:B,excludedFromMover:w,ignoreKeydown:I=>!!E[I.key]}:void 0}static getRoot(r,n){var i;const l=r.getParent;for(let a=n;a;a=l(a)){const u=(i=Kt(r,a))===null||i===void 0?void 0:i.root;if(u)return u}}onRoot(r,n){n?delete this.rootById[r.uid]:this.rootById[r.uid]=r}}class _p{constructor(){this._callbacks=[]}dispose(){this._callbacks=[],delete this._val}subscribe(r){const n=this._callbacks;n.indexOf(r)<0&&n.push(r)}subscribeFirst(r){const n=this._callbacks,i=n.indexOf(r);i>=0&&n.splice(i,1),n.unshift(r)}unsubscribe(r){const n=this._callbacks.indexOf(r);n>=0&&this._callbacks.splice(n,1)}setVal(r,n){this._val!==r&&(this._val=r,this._callCallbacks(r,n))}getVal(){return this._val}trigger(r,n){this._callCallbacks(r,n)}_callCallbacks(r,n){this._callbacks.forEach(i=>i(r,n))}}class hw{constructor(r){this._tabster=r}dispose(){}getProps(r){const n=Kt(this._tabster,r);return n&&n.focusable||{}}isFocusable(r,n,i,l){return wp(r,sp)&&(n||r.tabIndex!==-1)?(i||this.isVisible(r))&&(l||this.isAccessible(r)):!1}isVisible(r){if(!r.ownerDocument||r.nodeType!==Node.ELEMENT_NODE||dw(r))return!1;const n=r.ownerDocument.body.getBoundingClientRect();return!(n.width===0&&n.height===0)}isAccessible(r){var n;for(let i=r;i;i=se.getParentElement(i)){const l=Kt(this._tabster,i);if(this._isHidden(i)||!((n=l?.focusable)===null||n===void 0?void 0:n.ignoreAriaDisabled)&&this._isDisabled(i))return!1}return!0}_isDisabled(r){return r.hasAttribute("disabled")}_isHidden(r){var n;const i=r.getAttribute("aria-hidden");return!!(i&&i.toLowerCase()==="true"&&!(!((n=this._tabster.modalizer)===null||n===void 0)&&n.isAugmented(r)))}findFirst(r,n){return this.findElement({...r},n)}findLast(r,n){return this.findElement({isBackward:!0,...r},n)}findNext(r,n){return this.findElement({...r},n)}findPrev(r,n){return this.findElement({...r,isBackward:!0},n)}findDefault(r,n){return this.findElement({...r,acceptCondition:i=>this.isFocusable(i,r.includeProgrammaticallyFocusable)&&!!this.getProps(i).isDefault},n)||null}findAll(r){return this._findElements(!0,r)||[]}findElement(r,n){const i=this._findElements(!1,r,n);return i&&i[0]}_findElements(r,n,i){var l,a,u;const{container:d,currentElement:f=null,includeProgrammaticallyFocusable:m,useActiveModalizer:h,ignoreAccessibility:v,modalizerId:b,isBackward:y,onElement:k}=n;i||(i={});const w=[];let{acceptCondition:_}=n;const z=!!_;if(!d)return null;_||(_=E=>this.isFocusable(E,m,!1,v));const N={container:d,modalizerUserId:b===void 0&&h?(l=this._tabster.modalizer)===null||l===void 0?void 0:l.activeId:b||((u=(a=st.getTabsterContext(this._tabster,d))===null||a===void 0?void 0:a.modalizer)===null||u===void 0?void 0:u.userId),from:f||d,isBackward:y,isFindAll:r,acceptCondition:_,hasCustomCondition:z,includeProgrammaticallyFocusable:m,ignoreAccessibility:v,cachedGrouppers:{},cachedRadioGroups:{}},B=_a(d.ownerDocument,d,E=>this._acceptElement(E,N));if(!B)return null;const C=E=>{var O,I;const q=(O=N.foundElement)!==null&&O!==void 0?O:N.foundBackward;return q&&w.push(q),r?q&&(N.found=!1,delete N.foundElement,delete N.foundBackward,delete N.fromCtx,N.from=q,k&&!k(q))?!1:!!(q||E):(q&&i&&(i.uncontrolled=(I=st.getTabsterContext(this._tabster,q))===null||I===void 0?void 0:I.uncontrolled),!!(E&&!q))};if(f||(i.outOfDOMOrder=!0),f&&se.nodeContains(d,f))B.currentNode=f;else if(y){const E=kp(d);if(!E)return null;if(this._acceptElement(E,N)===NodeFilter.FILTER_ACCEPT&&!C(!0))return N.skippedFocusable&&(i.outOfDOMOrder=!0),w;B.currentNode=E}do y?B.previousNode():B.nextNode();while(C());return N.skippedFocusable&&(i.outOfDOMOrder=!0),w.length?w:null}_acceptElement(r,n){var i,l,a;if(n.found)return NodeFilter.FILTER_ACCEPT;const u=n.foundBackward;if(u&&(r===u||!se.nodeContains(u,r)))return n.found=!0,n.foundElement=u,NodeFilter.FILTER_ACCEPT;const d=n.container;if(r===d)return NodeFilter.FILTER_SKIP;if(!se.nodeContains(d,r)||Dn(r)||se.nodeContains(n.rejectElementsFrom,r))return NodeFilter.FILTER_REJECT;const f=n.currentCtx=st.getTabsterContext(this._tabster,r);if(!f)return NodeFilter.FILTER_SKIP;if(bp(r))return this.isFocusable(r,void 0,!0,!0)&&(n.skippedFocusable=!0),NodeFilter.FILTER_SKIP;if(!n.hasCustomCondition&&(r.tagName==="IFRAME"||r.tagName==="WEBVIEW"))return this.isVisible(r)&&((i=f.modalizer)===null||i===void 0?void 0:i.userId)===((l=this._tabster.modalizer)===null||l===void 0?void 0:l.activeId)?(n.found=!0,n.rejectElementsFrom=n.foundElement=r,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT;if(!n.ignoreAccessibility&&!this.isAccessible(r))return this.isFocusable(r,!1,!0,!0)&&(n.skippedFocusable=!0),NodeFilter.FILTER_REJECT;let m,h=n.fromCtx;h||(h=n.fromCtx=st.getTabsterContext(this._tabster,n.from));const v=h?.mover;let b=f.groupper,y=f.mover;if(m=(a=this._tabster.modalizer)===null||a===void 0?void 0:a.acceptElement(r,n),m!==void 0&&(n.skippedFocusable=!0),m===void 0&&(b||y||v)){const k=b?.getElement(),w=v?.getElement();let _=y?.getElement();if(_&&se.nodeContains(w,_)&&se.nodeContains(d,w)&&(!k||!y||se.nodeContains(w,k))&&(y=v,_=w),k){if(k===d||!se.nodeContains(d,k))b=void 0;else if(!se.nodeContains(k,r))return NodeFilter.FILTER_REJECT}if(_){if(!se.nodeContains(d,_))y=void 0;else if(!se.nodeContains(_,r))return NodeFilter.FILTER_REJECT}b&&y&&(_&&k&&!se.nodeContains(k,_)?y=void 0:b=void 0),b&&(m=b.acceptElement(r,n)),y&&(m=y.acceptElement(r,n))}if(m===void 0&&(m=n.acceptCondition(r)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,m===NodeFilter.FILTER_SKIP&&this.isFocusable(r,!1,!0,!0)&&(n.skippedFocusable=!0)),m===NodeFilter.FILTER_ACCEPT&&!n.found){if(!n.isFindAll&&Na(r)&&!r.checked){const k=r.name;let w=n.cachedRadioGroups[k];if(w||(w=fw(r),w&&(n.cachedRadioGroups[k]=w)),w?.checked&&w.checked!==r)return NodeFilter.FILTER_SKIP}n.isBackward?(n.foundBackward=r,m=NodeFilter.FILTER_SKIP):(n.found=!0,n.foundElement=r)}return m}}const Ze={Tab:"Tab",Enter:"Enter",Escape:"Escape",PageUp:"PageUp",PageDown:"PageDown",End:"End",Home:"Home",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",ArrowDown:"ArrowDown"};function vw(e,r){var n;const i=e.getParent;let l=r;do{const a=(n=Kt(e,l))===null||n===void 0?void 0:n.uncontrolled;if(a&&e.uncontrolled.isUncontrolledCompletely(l,!!a.completely))return l;l=i(l)}while(l)}const Bp={[$o.Restorer]:0,[$o.Deloser]:1,[$o.EscapeGroupper]:2};class et extends _p{constructor(r,n){super(),this._init=()=>{const i=this._win(),l=i.document;l.addEventListener(Ot,this._onFocusIn,!0),l.addEventListener(In,this._onFocusOut,!0),i.addEventListener("keydown",this._onKeyDown,!0);const a=se.getActiveElement(l);a&&a!==l.body&&this._setFocusedElement(a),this.subscribe(this._onChanged)},this._onFocusIn=i=>{const l=i.composedPath()[0];l&&this._setFocusedElement(l,i.detail.relatedTarget,i.detail.isFocusedProgrammatically)},this._onFocusOut=i=>{var l;this._setFocusedElement(void 0,(l=i.detail)===null||l===void 0?void 0:l.originalEvent.relatedTarget)},this._validateFocusedElement=i=>{},this._onKeyDown=i=>{if(i.key!==Ze.Tab||i.ctrlKey)return;const l=this.getVal();if(!l||!l.ownerDocument||l.contentEditable==="true")return;const a=this._tabster,u=a.controlTab,d=st.getTabsterContext(a,l);if(!d||d.ignoreKeydown(i))return;const f=i.shiftKey,m=et.findNextTabbable(a,d,void 0,l,void 0,f,!0),h=d.root.getElement();if(!h)return;const v=m?.element,b=vw(a,l);if(v){const y=m.uncontrolled;if(d.uncontrolled||se.nodeContains(y,l)){if(!m.outOfDOMOrder&&y===d.uncontrolled||b&&!se.nodeContains(b,v))return;jn.addPhantomDummyWithTarget(a,l,f,v);return}if(y&&a.focusable.isVisible(y)||v.tagName==="IFRAME"&&a.focusable.isVisible(v)){h.dispatchEvent(new Kr({by:"root",owner:h,next:v,relatedEvent:i}))&&jn.moveWithPhantomDummy(a,y??v,!1,f,i);return}(u||m?.outOfDOMOrder)&&h.dispatchEvent(new Kr({by:"root",owner:h,next:v,relatedEvent:i}))&&(i.preventDefault(),i.stopImmediatePropagation(),Pr(v))}else!b&&h.dispatchEvent(new Kr({by:"root",owner:h,next:null,relatedEvent:i}))&&d.root.moveOutWithDefaultAction(f,i)},this._onChanged=(i,l)=>{var a,u;if(i)i.dispatchEvent(new $y(l));else{const d=(a=this._lastVal)===null||a===void 0?void 0:a.get();if(d){const f={...l},m=st.getTabsterContext(this._tabster,d),h=(u=m?.modalizer)===null||u===void 0?void 0:u.userId;h&&(f.modalizerId=h),d.dispatchEvent(new Uy(f))}}},this._tabster=r,this._win=n,r.queueInit(this._init)}dispose(){super.dispose();const r=this._win(),n=r.document;n.removeEventListener(Ot,this._onFocusIn,!0),n.removeEventListener(In,this._onFocusOut,!0),r.removeEventListener("keydown",this._onKeyDown,!0),this.unsubscribe(this._onChanged);const i=this._asyncFocus;i&&(r.clearTimeout(i.timeout),delete this._asyncFocus),delete et._lastResetElement,delete this._nextVal,delete this._lastVal}static forgetMemorized(r,n){var i,l;let a=et._lastResetElement,u=a&&a.get();u&&se.nodeContains(n,u)&&delete et._lastResetElement,u=(l=(i=r._nextVal)===null||i===void 0?void 0:i.element)===null||l===void 0?void 0:l.get(),u&&se.nodeContains(n,u)&&delete r._nextVal,a=r._lastVal,u=a&&a.get(),u&&se.nodeContains(n,u)&&delete r._lastVal}getFocusedElement(){return this.getVal()}getLastFocusedElement(){var r;let n=(r=this._lastVal)===null||r===void 0?void 0:r.get();return(!n||n&&!Ba(n.ownerDocument,n))&&(this._lastVal=n=void 0),n}focus(r,n,i,l){return this._tabster.focusable.isFocusable(r,n,!1,i)?(r.focus({preventScroll:l}),!0):!1}focusDefault(r){const n=this._tabster.focusable.findDefault({container:r});return n?(this._tabster.focusedElement.focus(n),!0):!1}getFirstOrLastTabbable(r,n){var i;const{container:l,ignoreAccessibility:a}=n;let u;if(l){const d=st.getTabsterContext(this._tabster,l);d&&(u=(i=et.findNextTabbable(this._tabster,d,l,void 0,void 0,!r,a))===null||i===void 0?void 0:i.element)}return u&&!se.nodeContains(l,u)&&(u=void 0),u||void 0}_focusFirstOrLast(r,n){const i=this.getFirstOrLastTabbable(r,n);return i?(this.focus(i,!1,!0),!0):!1}focusFirst(r){return this._focusFirstOrLast(!0,r)}focusLast(r){return this._focusFirstOrLast(!1,r)}resetFocus(r){if(!this._tabster.focusable.isVisible(r))return!1;if(this._tabster.focusable.isFocusable(r,!0,!0,!0))this.focus(r);else{const n=r.getAttribute("tabindex"),i=r.getAttribute("aria-hidden");r.tabIndex=-1,r.setAttribute("aria-hidden","true"),et._lastResetElement=new vr(this._win,r),this.focus(r,!0,!0),this._setOrRemoveAttribute(r,"tabindex",n),this._setOrRemoveAttribute(r,"aria-hidden",i)}return!0}requestAsyncFocus(r,n,i){const l=this._tabster.getWindow(),a=this._asyncFocus;if(a){if(Bp[r]>Bp[a.source])return;l.clearTimeout(a.timeout)}this._asyncFocus={source:r,callback:n,timeout:l.setTimeout(()=>{this._asyncFocus=void 0,n()},i)}}cancelAsyncFocus(r){const n=this._asyncFocus;n?.source===r&&(this._tabster.getWindow().clearTimeout(n.timeout),this._asyncFocus=void 0)}_setOrRemoveAttribute(r,n,i){i===null?r.removeAttribute(n):r.setAttribute(n,i)}_setFocusedElement(r,n,i){var l,a;if(this._tabster._noop)return;const u={relatedTarget:n};if(r){const f=(l=et._lastResetElement)===null||l===void 0?void 0:l.get();if(et._lastResetElement=void 0,f===r||bp(r))return;u.isFocusedProgrammatically=i;const m=st.getTabsterContext(this._tabster,r),h=(a=m?.modalizer)===null||a===void 0?void 0:a.userId;h&&(u.modalizerId=h)}const d=this._nextVal={element:r?new vr(this._win,r):void 0,detail:u};r&&r!==this._val&&this._validateFocusedElement(r),this._nextVal===d&&this.setVal(r,u),this._nextVal=void 0}setVal(r,n){super.setVal(r,n),r&&(this._lastVal=new vr(this._win,r))}static findNextTabbable(r,n,i,l,a,u,d){const f=i||n.root.getElement();if(!f)return null;let m=null;const h=et._isTabbingTimer,v=r.getWindow();h&&v.clearTimeout(h),et.isTabbing=!0,et._isTabbingTimer=v.setTimeout(()=>{delete et._isTabbingTimer,et.isTabbing=!1},0);const b=n.modalizer,y=n.groupper,k=n.mover,w=_=>{if(m=_.findNextTabbable(l,a,u,d),l&&!m?.element){const z=_!==b&&se.getParentElement(_.getElement());if(z){const N=st.getTabsterContext(r,l,{referenceElement:z});if(N){const B=_.getElement(),C=u?B:B&&kp(B)||B;C&&(m=et.findNextTabbable(r,N,i,C,z,u,d),m&&(m.outOfDOMOrder=!0))}}}};if(y&&k)w(n.groupperBeforeMover?y:k);else if(y)w(y);else if(k)w(k);else if(b)w(b);else{const _={container:f,currentElement:l,referenceElement:a,ignoreAccessibility:d,useActiveModalizer:!0},z={};m={element:r.focusable[u?"findPrev":"findNext"](_,z),outOfDOMOrder:z.outOfDOMOrder,uncontrolled:z.uncontrolled}}return m}}et.isTabbing=!1;class bw extends jn{constructor(r,n,i,l){super(i,r,za.Groupper,l,!0),this._setHandlers((a,u,d)=>{var f,m;const h=r.get(),v=a.input;if(h&&v){const b=st.getTabsterContext(i,v);if(b){let y;y=(f=n.findNextTabbable(d||void 0,void 0,u,!0))===null||f===void 0?void 0:f.element,y||(y=(m=et.findNextTabbable(i,b,void 0,a.isOutside?v:uw(h,!u),void 0,u,!0))===null||m===void 0?void 0:m.element),y&&Pr(y)}}})}}class yw extends Ca{constructor(r,n,i,l,a){super(r,n,l),this._shouldTabInside=!1,this.makeTabbable(!1),this._onDispose=i,r.controlTab||(this.dummyManager=new bw(this._element,this,r,a))}dispose(){var r;this._onDispose(this),this._element.get(),(r=this.dummyManager)===null||r===void 0||r.dispose(),delete this.dummyManager,delete this._first}findNextTabbable(r,n,i,l){const a=this.getElement();if(!a)return null;const u=Dn(r)===a;if(!this._shouldTabInside&&r&&se.nodeContains(a,r)&&!u)return{element:void 0,outOfDOMOrder:!0};const d=this.getFirst(!0);if(!r||!se.nodeContains(a,r)||u)return{element:d,outOfDOMOrder:!0};const f=this._tabster;let m=null,h=!1,v;if(this._shouldTabInside&&d){const b={container:a,currentElement:r,referenceElement:n,ignoreAccessibility:l,useActiveModalizer:!0},y={};m=f.focusable[i?"findPrev":"findNext"](b,y),h=!!y.outOfDOMOrder,!m&&this._props.tabbability===ns.LimitedTrapFocus&&(m=f.focusable[i?"findLast":"findFirst"]({container:a,ignoreAccessibility:l,useActiveModalizer:!0},y),h=!0),v=y.uncontrolled}return{element:m,uncontrolled:v,outOfDOMOrder:h}}makeTabbable(r){this._shouldTabInside=r||!this._props.tabbability}isActive(r){var n;const i=this.getElement()||null;let l=!0;for(let u=se.getParentElement(i);u;u=se.getParentElement(u)){const d=(n=Kt(this._tabster,u))===null||n===void 0?void 0:n.groupper;d&&(d._shouldTabInside||(l=!1))}let a=l?this._props.tabbability?this._shouldTabInside:!1:void 0;if(a&&r){const u=this._tabster.focusedElement.getFocusedElement();u&&(a=u!==this.getFirst(!0))}return a}getFirst(r){var n;const i=this.getElement();let l;if(i){if(r&&this._tabster.focusable.isFocusable(i))return i;l=(n=this._first)===null||n===void 0?void 0:n.get(),l||(l=this._tabster.focusable.findFirst({container:i,useActiveModalizer:!0})||void 0,l&&this.setFirst(l))}return l}setFirst(r){r?this._first=new vr(this._tabster.getWindow,r):delete this._first}acceptElement(r,n){const i=n.cachedGrouppers,l=se.getParentElement(this.getElement()),a=l&&st.getTabsterContext(this._tabster,l),u=a?.groupper,d=a?.groupperBeforeMover?u:void 0;let f;const m=b=>{let y=i[b.id],k;return y?k=y.isActive:(k=this.isActive(!0),y=i[b.id]={isActive:k}),k};if(d&&(f=d.getElement(),!m(d)&&f&&n.container!==f&&se.nodeContains(n.container,f)))return n.skippedFocusable=!0,NodeFilter.FILTER_REJECT;const h=m(this),v=this.getElement();if(v&&h!==!0){if(v===r&&u&&(f||(f=u.getElement()),f&&!m(u)&&se.nodeContains(n.container,f)&&f!==n.container)||v!==r&&se.nodeContains(v,r))return n.skippedFocusable=!0,NodeFilter.FILTER_REJECT;const b=i[this.id];let y;if("first"in b?y=b.first:y=b.first=this.getFirst(!0),y&&n.acceptCondition(y))return n.rejectElementsFrom=v,n.skippedFocusable=!0,y!==n.from?(n.found=!0,n.foundElement=y,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT}}}class ww{constructor(r,n){this._current={},this._grouppers={},this._init=()=>{const i=this._win();this._tabster.focusedElement.subscribeFirst(this._onFocus);const l=i.document,a=se.getActiveElement(l);a&&this._onFocus(a),l.addEventListener("mousedown",this._onMouseDown,!0),i.addEventListener("keydown",this._onKeyDown,!0),i.addEventListener(ka,this._onMoveFocus)},this._onGroupperDispose=i=>{delete this._grouppers[i.id]},this._onFocus=i=>{i&&this._updateCurrent(i)},this._onMouseDown=i=>{let l=i.target;for(;l&&!this._tabster.focusable.isFocusable(l);)l=this._tabster.getParent(l);l&&this._updateCurrent(l)},this._onKeyDown=i=>{if(i.key!==Ze.Enter&&i.key!==Ze.Escape||i.ctrlKey||i.altKey||i.shiftKey||i.metaKey)return;const l=this._tabster.focusedElement.getFocusedElement();l&&this.handleKeyPress(l,i)},this._onMoveFocus=i=>{var l;const a=i.composedPath()[0],u=(l=i.detail)===null||l===void 0?void 0:l.action;a&&u!==void 0&&!i.defaultPrevented&&(u===is.Enter?this._enterGroupper(a):this._escapeGroupper(a),i.stopImmediatePropagation())},this._tabster=r,this._win=n,r.queueInit(this._init)}dispose(){const r=this._win();this._tabster.focusedElement.cancelAsyncFocus($o.EscapeGroupper),this._current={},this._updateTimer&&(r.clearTimeout(this._updateTimer),delete this._updateTimer),this._tabster.focusedElement.unsubscribe(this._onFocus),r.document.removeEventListener("mousedown",this._onMouseDown,!0),r.removeEventListener("keydown",this._onKeyDown,!0),r.removeEventListener(ka,this._onMoveFocus),Object.keys(this._grouppers).forEach(n=>{this._grouppers[n]&&(this._grouppers[n].dispose(),delete this._grouppers[n])})}createGroupper(r,n,i){const l=this._tabster,a=new yw(l,r,this._onGroupperDispose,n,i);this._grouppers[a.id]=a;const u=l.focusedElement.getFocusedElement();return u&&se.nodeContains(r,u)&&!this._updateTimer&&(this._updateTimer=this._win().setTimeout(()=>{delete this._updateTimer,u===l.focusedElement.getFocusedElement()&&this._updateCurrent(u)},0)),a}forgetCurrentGrouppers(){this._current={}}_updateCurrent(r){var n;this._updateTimer&&(this._win().clearTimeout(this._updateTimer),delete this._updateTimer);const i=this._tabster,l={};for(let a=i.getParent(r);a;a=i.getParent(a)){const u=(n=Kt(i,a))===null||n===void 0?void 0:n.groupper;if(u){l[u.id]=!0,this._current[u.id]=u;const d=u.isActive()||r!==a&&(!u.getProps().delegated||u.getFirst(!1)!==r);u.makeTabbable(d)}}for(const a of Object.keys(this._current)){const u=this._current[a];u.id in l||(u.makeTabbable(!1),u.setFirst(void 0),delete this._current[a])}}_enterGroupper(r,n){const i=this._tabster,l=st.getTabsterContext(i,r),a=l?.groupper||l?.modalizerInGroupper,u=a?.getElement();if(a&&u&&(r===u||a.getProps().delegated&&r===a.getFirst(!1))){const d=i.focusable.findNext({container:u,currentElement:r,useActiveModalizer:!0});if(d&&(!n||n&&u.dispatchEvent(new Kr({by:"groupper",owner:u,next:d,relatedEvent:n}))))return n&&(n.preventDefault(),n.stopImmediatePropagation()),d.focus(),d}return null}_escapeGroupper(r,n,i){const l=this._tabster,a=st.getTabsterContext(l,r);let u=a?.groupper||a?.modalizerInGroupper;const d=u?.getElement();if(u&&d&&se.nodeContains(d,r)){let f;if(r!==d||i)f=u.getFirst(!0);else{const m=se.getParentElement(d),h=m?st.getTabsterContext(l,m):void 0;u=h?.groupper,f=u?.getFirst(!0)}if(f&&(!n||n&&d.dispatchEvent(new Kr({by:"groupper",owner:d,next:f,relatedEvent:n}))))return u&&u.makeTabbable(!1),f.focus(),f}return null}moveFocus(r,n){return n===is.Enter?this._enterGroupper(r):this._escapeGroupper(r)}handleKeyPress(r,n,i){const l=this._tabster,a=st.getTabsterContext(l,r);if(a&&(a?.groupper||a?.modalizerInGroupper)){if(l.focusedElement.cancelAsyncFocus($o.EscapeGroupper),a.ignoreKeydown(n))return;if(n.key===Ze.Enter)this._enterGroupper(r,n);else if(n.key===Ze.Escape){const u=l.focusedElement.getFocusedElement();l.focusedElement.requestAsyncFocus($o.EscapeGroupper,()=>{u!==l.focusedElement.getFocusedElement()&&(i&&!u||!i)||this._escapeGroupper(r,n,i)},0)}}}}class kw extends _p{constructor(r){super(),this._onChange=n=>{this.setVal(n,void 0)},this._keyborg=rs(r()),this._keyborg.subscribe(this._onChange)}dispose(){super.dispose(),this._keyborg&&(this._keyborg.unsubscribe(this._onChange),os(this._keyborg),delete this._keyborg)}setNavigatingWithKeyboard(r){var n;(n=this._keyborg)===null||n===void 0||n.setVal(r)}isNavigatingWithKeyboard(){var r;return!!(!((r=this._keyborg)===null||r===void 0)&&r.isNavigatingWithKeyboard())}}const xw=["input","textarea","*[contenteditable]"].join(", ");class Sw extends jn{constructor(r,n,i,l){super(n,r,za.Mover,l),this._onFocusDummyInput=a=>{var u,d;const f=this._element.get(),m=a.input;if(f&&m){const h=st.getTabsterContext(this._tabster,f);let v;h&&(v=(u=et.findNextTabbable(this._tabster,h,void 0,m,void 0,!a.isFirst,!0))===null||u===void 0?void 0:u.element);const b=(d=this._getMemorized())===null||d===void 0?void 0:d.get();b&&this._tabster.focusable.isFocusable(b)&&(v=b),v&&Pr(v)}},this._tabster=n,this._getMemorized=i,this._setHandlers(this._onFocusDummyInput)}}const Ta=1,Cp=2,zp=3;class _w extends Ca{constructor(r,n,i,l,a){var u;super(r,n,l),this._visible={},this._onIntersection=f=>{for(const m of f){const h=m.target,v=ss(this._win,h);let b,y=this._fullyVisible;if(m.intersectionRatio>=.25?(b=m.intersectionRatio>=.75?Ur.Visible:Ur.PartiallyVisible,b===Ur.Visible&&(y=v)):b=Ur.Invisible,this._visible[v]!==b){b===void 0?(delete this._visible[v],y===v&&delete this._fullyVisible):(this._visible[v]=b,this._fullyVisible=y);const k=this.getState(h);k&&h.dispatchEvent(new cp(k))}}},this._win=r.getWindow,this.visibilityTolerance=(u=l.visibilityTolerance)!==null&&u!==void 0?u:.8,(this._props.trackState||this._props.visibilityAware)&&(this._intersectionObserver=new IntersectionObserver(this._onIntersection,{threshold:[0,.25,.5,.75,1]}),this._observeState()),this._onDispose=i;const d=()=>l.memorizeCurrent?this._current:void 0;r.controlTab||(this.dummyManager=new Sw(this._element,r,d,a))}dispose(){var r;this._onDispose(this),this._intersectionObserver&&(this._intersectionObserver.disconnect(),delete this._intersectionObserver),delete this._current,delete this._fullyVisible,delete this._allElements,delete this._updateQueue,this._unobserve&&(this._unobserve(),delete this._unobserve);const n=this._win();this._setCurrentTimer&&(n.clearTimeout(this._setCurrentTimer),delete this._setCurrentTimer),this._updateTimer&&(n.clearTimeout(this._updateTimer),delete this._updateTimer),(r=this.dummyManager)===null||r===void 0||r.dispose(),delete this.dummyManager}setCurrent(r){r?this._current=new vr(this._win,r):this._current=void 0,(this._props.trackState||this._props.visibilityAware)&&!this._setCurrentTimer&&(this._setCurrentTimer=this._win().setTimeout(()=>{var n;delete this._setCurrentTimer;const i=[];this._current!==this._prevCurrent&&(i.push(this._current),i.push(this._prevCurrent),this._prevCurrent=this._current);for(const l of i){const a=l?.get();if(a&&((n=this._allElements)===null||n===void 0?void 0:n.get(a))===this){const u=this._props;if(a&&(u.visibilityAware!==void 0||u.trackState)){const d=this.getState(a);d&&a.dispatchEvent(new cp(d))}}}}))}getCurrent(){var r;return((r=this._current)===null||r===void 0?void 0:r.get())||null}findNextTabbable(r,n,i,l){const a=this.getElement(),u=a&&Dn(r)===a;if(!a)return null;let d=null,f=!1,m;if(this._props.tabbable||u||r&&!se.nodeContains(a,r)){const h={currentElement:r,referenceElement:n,container:a,ignoreAccessibility:l,useActiveModalizer:!0},v={};d=this._tabster.focusable[i?"findPrev":"findNext"](h,v),f=!!v.outOfDOMOrder,m=v.uncontrolled}return{element:d,uncontrolled:m,outOfDOMOrder:f}}acceptElement(r,n){var i,l;if(!et.isTabbing)return!((i=n.currentCtx)===null||i===void 0)&&i.excludedFromMover?NodeFilter.FILTER_REJECT:void 0;const{memorizeCurrent:a,visibilityAware:u,hasDefault:d=!0}=this._props,f=this.getElement();if(f&&(a||u||d)&&(!se.nodeContains(f,n.from)||Dn(n.from)===f)){let m;if(a){const h=(l=this._current)===null||l===void 0?void 0:l.get();h&&n.acceptCondition(h)&&(m=h)}if(!m&&d&&(m=this._tabster.focusable.findDefault({container:f,useActiveModalizer:!0})),!m&&u&&(m=this._tabster.focusable.findElement({container:f,useActiveModalizer:!0,isBackward:n.isBackward,acceptCondition:h=>{var v;const b=ss(this._win,h),y=this._visible[b];return f!==h&&!!(!((v=this._allElements)===null||v===void 0)&&v.get(h))&&n.acceptCondition(h)&&(y===Ur.Visible||y===Ur.PartiallyVisible&&(u===Ur.PartiallyVisible||!this._fullyVisible))}})),m)return n.found=!0,n.foundElement=m,n.rejectElementsFrom=f,n.skippedFocusable=!0,NodeFilter.FILTER_ACCEPT}}_observeState(){const r=this.getElement();if(this._unobserve||!r||typeof MutationObserver>"u")return;const n=this._win(),i=this._allElements=new WeakMap,l=this._tabster.focusable;let a=this._updateQueue=[];const u=se.createMutationObserver(y=>{for(const k of y){const w=k.target,_=k.removedNodes,z=k.addedNodes;if(k.type==="attributes")k.attributeName==="tabindex"&&a.push({element:w,type:Cp});else{for(let N=0;N<_.length;N++)a.push({element:_[N],type:zp});for(let N=0;N<z.length;N++)a.push({element:z[N],type:Ta})}}v()}),d=(y,k)=>{var w,_;const z=i.get(y);z&&k&&((w=this._intersectionObserver)===null||w===void 0||w.unobserve(y),i.delete(y)),!z&&!k&&(i.set(y,this),(_=this._intersectionObserver)===null||_===void 0||_.observe(y))},f=y=>{const k=l.isFocusable(y);i.get(y)?k||d(y,!0):k&&d(y)},m=y=>{const{mover:k}=b(y);if(k&&k!==this)if(k.getElement()===y&&l.isFocusable(y))d(y);else return;const w=_a(n.document,y,_=>{const{mover:z,groupper:N}=b(_);if(z&&z!==this)return NodeFilter.FILTER_REJECT;const B=N?.getFirst(!0);return N&&N.getElement()!==_&&B&&B!==_?NodeFilter.FILTER_REJECT:(l.isFocusable(_)&&d(_),NodeFilter.FILTER_SKIP)});if(w)for(w.currentNode=y;w.nextNode(););},h=y=>{i.get(y)&&d(y,!0);for(let w=se.getFirstElementChild(y);w;w=se.getNextElementSibling(w))h(w)},v=()=>{!this._updateTimer&&a.length&&(this._updateTimer=n.setTimeout(()=>{delete this._updateTimer;for(const{element:y,type:k}of a)switch(k){case Cp:f(y);break;case Ta:m(y);break;case zp:h(y);break}a=this._updateQueue=[]},0))},b=y=>{const k={};for(let w=y;w;w=se.getParentElement(w)){const _=Kt(this._tabster,w);if(_&&(_.groupper&&!k.groupper&&(k.groupper=_.groupper),_.mover)){k.mover=_.mover;break}}return k};a.push({element:r,type:Ta}),v(),u.observe(r,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["tabindex"]}),this._unobserve=()=>{u.disconnect()}}getState(r){const n=ss(this._win,r);if(n in this._visible){const i=this._visible[n]||Ur.Invisible;return{isCurrent:this._current?this._current.get()===r:void 0,visibility:i}}}}function Bw(e,r,n,i,l,a,u,d){const f=n<l?l-n:u<e?e-u:0,m=i<a?a-i:d<r?r-d:0;return f===0?m:m===0?f:Math.sqrt(f*f+m*m)}class Cw{constructor(r,n){this._init=()=>{const i=this._win();i.addEventListener("keydown",this._onKeyDown,!0),i.addEventListener(wa,this._onMoveFocus),i.addEventListener(ap,this._onMemorizedElement),this._tabster.focusedElement.subscribe(this._onFocus)},this._onMoverDispose=i=>{delete this._movers[i.id]},this._onFocus=i=>{var l;let a=i,u=i;for(let d=se.getParentElement(i);d;d=se.getParentElement(d)){const f=(l=Kt(this._tabster,d))===null||l===void 0?void 0:l.mover;f&&(f.setCurrent(u),a=void 0),!a&&this._tabster.focusable.isFocusable(d)&&(a=u=d)}},this._onKeyDown=async i=>{var l;if(this._ignoredInputTimer&&(this._win().clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),(l=this._ignoredInputResolve)===null||l===void 0||l.call(this,!1),i.ctrlKey||i.altKey||i.shiftKey||i.metaKey)return;const a=i.key;let u;if(a===Ze.ArrowDown?u=Ke.ArrowDown:a===Ze.ArrowRight?u=Ke.ArrowRight:a===Ze.ArrowUp?u=Ke.ArrowUp:a===Ze.ArrowLeft?u=Ke.ArrowLeft:a===Ze.PageDown?u=Ke.PageDown:a===Ze.PageUp?u=Ke.PageUp:a===Ze.Home?u=Ke.Home:a===Ze.End&&(u=Ke.End),!u)return;const d=this._tabster.focusedElement.getFocusedElement();!d||await this._isIgnoredInput(d,a)||this._moveFocus(d,u,i)},this._onMoveFocus=i=>{var l;const a=i.composedPath()[0],u=(l=i.detail)===null||l===void 0?void 0:l.key;a&&u!==void 0&&!i.defaultPrevented&&(this._moveFocus(a,u),i.stopImmediatePropagation())},this._onMemorizedElement=i=>{var l;const a=i.composedPath()[0];let u=(l=i.detail)===null||l===void 0?void 0:l.memorizedElement;if(a){const d=st.getTabsterContext(this._tabster,a),f=d?.mover;f&&(u&&!se.nodeContains(f.getElement(),u)&&(u=void 0),f.setCurrent(u),i.stopImmediatePropagation())}},this._tabster=r,this._win=n,this._movers={},r.queueInit(this._init)}dispose(){var r;const n=this._win();this._tabster.focusedElement.unsubscribe(this._onFocus),(r=this._ignoredInputResolve)===null||r===void 0||r.call(this,!1),this._ignoredInputTimer&&(n.clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),n.removeEventListener("keydown",this._onKeyDown,!0),n.removeEventListener(wa,this._onMoveFocus),n.removeEventListener(ap,this._onMemorizedElement),Object.keys(this._movers).forEach(i=>{this._movers[i]&&(this._movers[i].dispose(),delete this._movers[i])})}createMover(r,n,i){const l=new _w(this._tabster,r,this._onMoverDispose,n,i);return this._movers[l.id]=l,l}moveFocus(r,n){return this._moveFocus(r,n)}_moveFocus(r,n,i){var l,a;const u=this._tabster,d=st.getTabsterContext(u,r,{checkRtl:!0});if(!d||!d.mover||d.excludedFromMover||i&&d.ignoreKeydown(i))return null;const f=d.mover,m=f.getElement();if(d.groupperBeforeMover){const q=d.groupper;if(q&&!q.isActive(!0)){for(let j=se.getParentElement(q.getElement());j&&j!==m;j=se.getParentElement(j))if(!((a=(l=Kt(u,j))===null||l===void 0?void 0:l.groupper)===null||a===void 0)&&a.isActive(!0))return null}else return null}if(!m)return null;const h=u.focusable,v=f.getProps(),b=v.direction||lr.Both,y=b===lr.Both,k=y||b===lr.Vertical,w=y||b===lr.Horizontal,_=b===lr.GridLinear,z=_||b===lr.Grid,N=v.cyclic;let B,C,E,O=0,I=0;if(z&&(E=r.getBoundingClientRect(),O=Math.ceil(E.left),I=Math.floor(E.right)),d.rtl&&(n===Ke.ArrowRight?n=Ke.ArrowLeft:n===Ke.ArrowLeft&&(n=Ke.ArrowRight)),n===Ke.ArrowDown&&k||n===Ke.ArrowRight&&(w||z))if(B=h.findNext({currentElement:r,container:m,useActiveModalizer:!0}),B&&z){const q=Math.ceil(B.getBoundingClientRect().left);!_&&I>q&&(B=void 0)}else!B&&N&&(B=h.findFirst({container:m,useActiveModalizer:!0}));else if(n===Ke.ArrowUp&&k||n===Ke.ArrowLeft&&(w||z))if(B=h.findPrev({currentElement:r,container:m,useActiveModalizer:!0}),B&&z){const q=Math.floor(B.getBoundingClientRect().right);!_&&q>O&&(B=void 0)}else!B&&N&&(B=h.findLast({container:m,useActiveModalizer:!0}));else if(n===Ke.Home)z?h.findElement({container:m,currentElement:r,useActiveModalizer:!0,isBackward:!0,acceptCondition:q=>{var j;if(!h.isFocusable(q))return!1;const U=Math.ceil((j=q.getBoundingClientRect().left)!==null&&j!==void 0?j:0);return q!==r&&O<=U?!0:(B=q,!1)}}):B=h.findFirst({container:m,useActiveModalizer:!0});else if(n===Ke.End)z?h.findElement({container:m,currentElement:r,useActiveModalizer:!0,acceptCondition:q=>{var j;if(!h.isFocusable(q))return!1;const U=Math.ceil((j=q.getBoundingClientRect().left)!==null&&j!==void 0?j:0);return q!==r&&O>=U?!0:(B=q,!1)}}):B=h.findLast({container:m,useActiveModalizer:!0});else if(n===Ke.PageUp){if(h.findElement({currentElement:r,container:m,useActiveModalizer:!0,isBackward:!0,acceptCondition:q=>h.isFocusable(q)?hp(this._win,q,f.visibilityTolerance)?(B=q,!1):!0:!1}),z&&B){const q=Math.ceil(B.getBoundingClientRect().left);h.findElement({currentElement:B,container:m,useActiveModalizer:!0,acceptCondition:j=>{if(!h.isFocusable(j))return!1;const U=Math.ceil(j.getBoundingClientRect().left);return O<U||q>=U?!0:(B=j,!1)}})}C=!1}else if(n===Ke.PageDown){if(h.findElement({currentElement:r,container:m,useActiveModalizer:!0,acceptCondition:q=>h.isFocusable(q)?hp(this._win,q,f.visibilityTolerance)?(B=q,!1):!0:!1}),z&&B){const q=Math.ceil(B.getBoundingClientRect().left);h.findElement({currentElement:B,container:m,useActiveModalizer:!0,isBackward:!0,acceptCondition:j=>{if(!h.isFocusable(j))return!1;const U=Math.ceil(j.getBoundingClientRect().left);return O>U||q<=U?!0:(B=j,!1)}})}C=!0}else if(z){const q=n===Ke.ArrowUp,j=O,U=Math.ceil(E.top),le=I,te=Math.floor(E.bottom);let V,ee,oe=0;h.findAll({container:m,currentElement:r,isBackward:q,onElement:H=>{const K=H.getBoundingClientRect(),L=Math.ceil(K.left),Q=Math.ceil(K.top),$=Math.floor(K.right),F=Math.floor(K.bottom);if(q&&U<F||!q&&te>Q)return!0;const M=Math.ceil(Math.min(le,$))-Math.floor(Math.max(j,L)),ne=Math.ceil(Math.min(le-j,$-L));if(M>0&&ne>=M){const ae=M/ne;ae>oe&&(V=H,oe=ae)}else if(oe===0){const ae=Bw(j,U,le,te,L,Q,$,F);(ee===void 0||ae<ee)&&(ee=ae,V=H)}else if(oe>0)return!1;return!0}}),B=V}return B&&(!i||i&&m.dispatchEvent(new Kr({by:"mover",owner:m,next:B,relatedEvent:i})))?(C!==void 0&&rw(this._win,B,C),i&&(i.preventDefault(),i.stopImmediatePropagation()),Pr(B),B):null}async _isIgnoredInput(r,n){if(r.getAttribute("aria-expanded")==="true"&&r.hasAttribute("aria-activedescendant"))return!0;if(wp(r,xw)){let i=0,l=0,a=0,u;if(r.tagName==="INPUT"||r.tagName==="TEXTAREA"){const d=r.type;if(a=(r.value||"").length,d==="email"||d==="number"){if(a){const m=se.getSelection(r);if(m){const h=m.toString().length,v=n===Ze.ArrowLeft||n===Ze.ArrowUp;if(m.modify("extend",v?"backward":"forward","character"),h!==m.toString().length)return m.modify("extend",v?"forward":"backward","character"),!0;a=0}}}else{const m=r.selectionStart;if(m===null)return d==="hidden";i=m||0,l=r.selectionEnd||0}}else r.contentEditable==="true"&&(u=new(iw(this._win))(d=>{this._ignoredInputResolve=y=>{delete this._ignoredInputResolve,d(y)};const f=this._win();this._ignoredInputTimer&&f.clearTimeout(this._ignoredInputTimer);const{anchorNode:m,focusNode:h,anchorOffset:v,focusOffset:b}=se.getSelection(r)||{};this._ignoredInputTimer=f.setTimeout(()=>{var y,k,w;delete this._ignoredInputTimer;const{anchorNode:_,focusNode:z,anchorOffset:N,focusOffset:B}=se.getSelection(r)||{};if(_!==m||z!==h||N!==v||B!==b){(y=this._ignoredInputResolve)===null||y===void 0||y.call(this,!1);return}if(i=N||0,l=B||0,a=((k=r.textContent)===null||k===void 0?void 0:k.length)||0,_&&z&&se.nodeContains(r,_)&&se.nodeContains(r,z)&&_!==r){let C=!1;const E=O=>{if(O===_)C=!0;else if(O===z)return!0;const I=O.textContent;if(I&&!se.getFirstChild(O)){const j=I.length;C?z!==_&&(l+=j):(i+=j,l+=j)}let q=!1;for(let j=se.getFirstChild(O);j&&!q;j=j.nextSibling)q=E(j);return q};E(r)}(w=this._ignoredInputResolve)===null||w===void 0||w.call(this,!0)},0)}));if(u&&!await u||i!==l||i>0&&(n===Ze.ArrowLeft||n===Ze.ArrowUp||n===Ze.Home)||i<a&&(n===Ze.ArrowRight||n===Ze.ArrowDown||n===Ze.End))return!0}return!1}}function zw(e,r,n,i){if(typeof MutationObserver>"u")return()=>{};const l=r.getWindow;let a;const u=h=>{var v,b,y,k,w;const _=new Set;for(const z of h){const N=z.target,B=z.removedNodes,C=z.addedNodes;if(z.type==="attributes")z.attributeName===sr&&(_.has(N)||n(r,N));else{for(let E=0;E<B.length;E++){const O=B[E];_.add(O),d(O,!0),(b=(v=r._dummyObserver).domChanged)===null||b===void 0||b.call(v,N)}for(let E=0;E<C.length;E++)d(C[E]),(k=(y=r._dummyObserver).domChanged)===null||k===void 0||k.call(y,N)}}_.clear(),(w=r.modalizer)===null||w===void 0||w.hiddenUpdate()};function d(h,v){a||(a=Rr(l).elementByUId),f(h,v);const b=_a(e,h,y=>f(y,v));if(b)for(;b.nextNode(););}function f(h,v){var b;if(!h.getAttribute)return NodeFilter.FILTER_SKIP;const y=h.__tabsterElementUID;return y&&a&&(v?delete a[y]:(b=a[y])!==null&&b!==void 0||(a[y]=new vr(l,h))),(Kt(r,h)||h.hasAttribute(sr))&&n(r,h,v),NodeFilter.FILTER_SKIP}const m=se.createMutationObserver(u);return i&&d(l().document.body),m.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[sr]}),()=>{m.disconnect()}}class Nw{constructor(r){this._isUncontrolledCompletely=r}isUncontrolledCompletely(r,n){var i;const l=(i=this._isUncontrolledCompletely)===null||i===void 0?void 0:i.call(this,r,n);return l===void 0?n:l}}class Tw{constructor(r){this.keyboardNavigation=r.keyboardNavigation,this.focusedElement=r.focusedElement,this.focusable=r.focusable,this.root=r.root,this.uncontrolled=r.uncontrolled,this.core=r}}class Ew{constructor(r,n){var i,l;this._forgetMemorizedElements=[],this._wrappers=new Set,this._initQueue=[],this._version="8.5.6",this._noop=!1,this.getWindow=()=>{if(!this._win)throw new Error("Using disposed Tabster.");return this._win},this._storage=Zy(r),this._win=r;const a=this.getWindow;n?.DOMAPI&&Qy({...n.DOMAPI}),this.keyboardNavigation=new kw(a),this.focusedElement=new et(this,a),this.focusable=new hw(this),this.root=new st(this,n?.autoRoot),this.uncontrolled=new Nw(n?.checkUncontrolledCompletely||n?.checkUncontrolledTrappingFocus),this.controlTab=(i=n?.controlTab)!==null&&i!==void 0?i:!0,this.rootDummyInputs=!!n?.rootDummyInputs,this._dummyObserver=new aw(a),this.getParent=(l=n?.getParent)!==null&&l!==void 0?l:se.getParentNode,this.internal={stopObserver:()=>{this._unobserve&&(this._unobserve(),delete this._unobserve)},resumeObserver:u=>{if(!this._unobserve){const d=a().document;this._unobserve=zw(d,this,lp,u)}}},mp(a),this.queueInit(()=>{this.internal.resumeObserver(!0)})}_mergeProps(r){var n;r&&(this.getParent=(n=r.getParent)!==null&&n!==void 0?n:this.getParent)}createTabster(r,n){const i=new Tw(this);return r||this._wrappers.add(i),this._mergeProps(n),i}disposeTabster(r,n){n?this._wrappers.clear():this._wrappers.delete(r),this._wrappers.size===0&&this.dispose()}dispose(){var r,n,i,l,a,u,d,f;this.internal.stopObserver();const m=this._win;m?.clearTimeout(this._initTimer),delete this._initTimer,this._initQueue=[],this._forgetMemorizedElements=[],m&&this._forgetMemorizedTimer&&(m.clearTimeout(this._forgetMemorizedTimer),delete this._forgetMemorizedTimer),(r=this.outline)===null||r===void 0||r.dispose(),(n=this.crossOrigin)===null||n===void 0||n.dispose(),(i=this.deloser)===null||i===void 0||i.dispose(),(l=this.groupper)===null||l===void 0||l.dispose(),(a=this.mover)===null||a===void 0||a.dispose(),(u=this.modalizer)===null||u===void 0||u.dispose(),(d=this.observedElement)===null||d===void 0||d.dispose(),(f=this.restorer)===null||f===void 0||f.dispose(),this.keyboardNavigation.dispose(),this.focusable.dispose(),this.focusedElement.dispose(),this.root.dispose(),this._dummyObserver.dispose(),tw(this.getWindow),yp(this.getWindow),this._storage=new WeakMap,this._wrappers.clear(),m&&(Jy(m),delete m.__tabsterInstance,delete this._win)}storageEntry(r,n){const i=this._storage;let l=i.get(r);return l?n===!1&&Object.keys(l).length===0&&i.delete(r):n===!0&&(l={},i.set(r,l)),l}forceCleanup(){this._win&&(this._forgetMemorizedElements.push(this._win.document.body),!this._forgetMemorizedTimer&&(this._forgetMemorizedTimer=this._win.setTimeout(()=>{delete this._forgetMemorizedTimer;for(let r=this._forgetMemorizedElements.shift();r;r=this._forgetMemorizedElements.shift())yp(this.getWindow,r),et.forgetMemorized(this.focusedElement,r)},0),pp(this.getWindow,!0)))}queueInit(r){var n;this._win&&(this._initQueue.push(r),this._initTimer||(this._initTimer=(n=this._win)===null||n===void 0?void 0:n.setTimeout(()=>{delete this._initTimer,this.drainInitQueue()},0)))}drainInitQueue(){if(!this._win)return;const r=this._initQueue;this._initQueue=[],r.forEach(n=>n())}}function Pw(e,r){let n=jw(e);return n?n.createTabster(!1,r):(n=new Ew(e,r),e.__tabsterInstance=n,n.createTabster())}function Rw(e){const r=e.core;return r.groupper||(r.groupper=new ww(r,r.getWindow)),r.groupper}function Fw(e){const r=e.core;return r.mover||(r.mover=new Cw(r,r.getWindow)),r.mover}function Iw(e,r){e.core.disposeTabster(e,r)}function jw(e){return e.__tabsterInstance}const Dw=e=>e;function Ow(e){const r=e?.defaultView||void 0,n=r?.__tabsterShadowDOMAPI;if(r)return Pw(r,{autoRoot:{},controlTab:!1,getParent:wy,checkUncontrolledCompletely:i=>{var l;return((l=i.firstElementChild)===null||l===void 0?void 0:l.hasAttribute("data-is-focus-trap-zone-bumper"))===!0||void 0},DOMAPI:n})}function as(e=Dw){const{targetDocument:r}=nt(),n=S.useRef(null);return Dt(()=>{const i=Ow(r);if(i)return n.current=e(i),()=>{Iw(i),n.current=null}},[r,e]),n}const Ea=e=>{as();const r=xp(e);return S.useMemo(()=>({[sr]:r}),[r])},Pa=(e={})=>{const{circular:r,axis:n,memorizeCurrent:i=!0,tabbable:l,ignoreDefaultKeydown:a,unstable_hasDefault:u}=e;return as(Fw),Ea({mover:{cyclic:!!r,direction:Aw(n??"vertical"),memorizeCurrent:i,tabbable:l,hasDefault:u},...a&&{focusable:{ignoreKeydown:a}}})};function Aw(e){switch(e){case"horizontal":return lr.Horizontal;case"grid":return lr.Grid;case"grid-linear":return lr.GridLinear;case"both":return lr.Both;case"vertical":default:return lr.Vertical}}const Ra=e=>(as(Rw),Ea({groupper:{tabbability:Mw(e?.tabBehavior)},focusable:{ignoreKeydown:e?.ignoreDefaultKeydown}})),Mw=e=>{switch(e){case"unlimited":return ns.Unlimited;case"limited":return ns.Limited;case"limited-trap-focus":return ns.LimitedTrapFocus;default:return}},Fa=()=>{const e=as(),{targetDocument:r}=nt(),n=S.useCallback((d,f)=>{var m;return d&&((m=e.current)===null||m===void 0?void 0:m.focusable.findAll({container:d,acceptCondition:f}))||[]},[e]),i=S.useCallback(d=>{var f;return d&&((f=e.current)===null||f===void 0?void 0:f.focusable.findFirst({container:d}))},[e]),l=S.useCallback(d=>{var f;return d&&((f=e.current)===null||f===void 0?void 0:f.focusable.findLast({container:d}))},[e]),a=S.useCallback((d,f={})=>{if(!e.current||!r||!d)return null;const{container:m=r.body}=f;return e.current.focusable.findNext({currentElement:d,container:m})},[e,r]),u=S.useCallback((d,f={})=>{if(!e.current||!r||!d)return null;const{container:m=r.body}=f;return e.current.focusable.findPrev({currentElement:d,container:m})},[e,r]);return{findAllFocusable:n,findFirstFocusable:i,findLastFocusable:l,findNextFocusable:a,findPrevFocusable:u}},Np="data-fui-focus-visible",Tp="data-fui-focus-within";function Lw(e,r){if(Ep(e))return()=>{};const n={current:void 0},i=rs(r);function l(f){i.isNavigatingWithKeyboard()&&Er(f)&&(n.current=f,f.setAttribute(Np,""))}function a(){n.current&&(n.current.removeAttribute(Np),n.current=void 0)}i.subscribe(f=>{f?l(r.document.activeElement):a()});const u=f=>{a();const m=f.composedPath()[0];l(m)},d=f=>{(!f.relatedTarget||Er(f.relatedTarget)&&!e.contains(f.relatedTarget))&&a()};return e.addEventListener(Ot,u),e.addEventListener("focusout",d),e.focusVisible=!0,e.contains(r.document.activeElement)&&l(r.document.activeElement),()=>{a(),e.removeEventListener(Ot,u),e.removeEventListener("focusout",d),e.focusVisible=void 0,os(i)}}function Ep(e){return e?e.focusVisible?!0:Ep(e?.parentElement):!1}function Ia(e={}){const r=nt(),n=S.useRef(null);var i;const l=(i=e.targetDocument)!==null&&i!==void 0?i:r.targetDocument;return S.useEffect(()=>{if(l?.defaultView&&n.current)return Lw(n.current,l.defaultView)},[n,l]),n}function qw(e,r){const n=rs(r);n.subscribe(a=>{a||Pp(e)});const i=a=>{n.isNavigatingWithKeyboard()&&Rp(a.target)&&Hw(e)},l=a=>{(!a.relatedTarget||Rp(a.relatedTarget)&&!e.contains(a.relatedTarget))&&Pp(e)};return e.addEventListener(Ot,i),e.addEventListener("focusout",l),()=>{e.removeEventListener(Ot,i),e.removeEventListener("focusout",l),os(n)}}function Hw(e){e.setAttribute(Tp,"")}function Pp(e){e.removeAttribute(Tp)}function Rp(e){return e?!!(e&&typeof e=="object"&&"classList"in e&&"contains"in e):!1}function On(){const{targetDocument:e}=nt(),r=S.useRef(null);return S.useEffect(()=>{if(e?.defaultView&&r.current)return qw(r.current,e.defaultView)},[r,e]),r}function ja(){const{targetDocument:e}=nt(),r=S.useRef(null);return S.useEffect(()=>{const n=e?.defaultView;if(n){const i=rs(n);return r.current=i,()=>{os(i),r.current=null}}},[e]),r}function Fp(e){const r=ja(),n=xe(e);S.useEffect(()=>{const i=r.current;if(i){const l=a=>{n(a)};return i.subscribe(l),l(i.isNavigatingWithKeyboard()),()=>{i.unsubscribe(l)}}},[r,n])}const Ww=(...e)=>{"use no memo";const r=e.reduce((n,i)=>(i?.[sr]&&n.push(i[sr]),n),[]);return S.useMemo(()=>({[sr]:r.length>0?r.reduce(Vw):void 0}),r)},Vw=(e,r)=>JSON.stringify(Object.assign(Ip(e),Ip(r))),Ip=e=>{try{return JSON.parse(e)}catch{return{}}};function $w(){const e=ja();return S.useCallback(()=>{var r,n;return(n=(r=e.current)===null||r===void 0?void 0:r.isNavigatingWithKeyboard())!==null&&n!==void 0?n:!1},[e])}function Uw(){const e=ja();return S.useCallback(r=>{var n;(n=e.current)===null||n===void 0||n.setVal(r)},[e])}const G={4:"#0a0a0a",8:"#141414",10:"#1a1a1a",12:"#1f1f1f",14:"#242424",16:"#292929",18:"#2e2e2e",20:"#333333",22:"#383838",24:"#3d3d3d",26:"#424242",30:"#4d4d4d",32:"#525252",34:"#575757",36:"#5c5c5c",38:"#616161",40:"#666666",42:"#6b6b6b",44:"#707070",46:"#757575",60:"#999999",68:"#adadad",70:"#b3b3b3",74:"#bdbdbd",78:"#c7c7c7",82:"#d1d1d1",84:"#d6d6d6",86:"#dbdbdb",88:"#e0e0e0",90:"#e6e6e6",92:"#ebebeb",94:"#f0f0f0",96:"#f5f5f5",98:"#fafafa"},ht={5:"rgba(255, 255, 255, 0.05)",10:"rgba(255, 255, 255, 0.1)",20:"rgba(255, 255, 255, 0.2)",40:"rgba(255, 255, 255, 0.4)",50:"rgba(255, 255, 255, 0.5)",60:"rgba(255, 255, 255, 0.6)",70:"rgba(255, 255, 255, 0.7)",80:"rgba(255, 255, 255, 0.8)"},Xt={5:"rgba(0, 0, 0, 0.05)",10:"rgba(0, 0, 0, 0.1)",20:"rgba(0, 0, 0, 0.2)",30:"rgba(0, 0, 0, 0.3)",40:"rgba(0, 0, 0, 0.4)",50:"rgba(0, 0, 0, 0.5)"},Gw={50:"rgba(26, 26, 26, 0.5)"},Kw={70:"rgba(31, 31, 31, 0.7)"},jp={50:"rgba(36, 36, 36, 0.5)",80:"rgba(36, 36, 36, 0.8)"},Se="#ffffff",Da="#000000",Xw={shade50:"#130204",shade40:"#230308",shade30:"#420610",shade20:"#590815",shade10:"#690a19",primary:"#750b1c",tint10:"#861b2c",tint20:"#962f3f",tint30:"#ac4f5e",tint40:"#d69ca5",tint50:"#e9c7cd",tint60:"#f9f0f2"},Dp={shade50:"#200205",shade40:"#3b0509",shade30:"#6e0811",shade20:"#960b18",shade10:"#b10e1c",primary:"#c50f1f",tint10:"#cc2635",tint20:"#d33f4c",tint30:"#dc626d",tint40:"#eeacb2",tint50:"#f6d1d5",tint60:"#fdf3f4"},Qw={shade50:"#210809",shade40:"#3f1011",shade30:"#751d1f",shade20:"#9f282b",shade10:"#bc2f32",primary:"#d13438",tint10:"#d7494c",tint20:"#dc5e62",tint30:"#e37d80",tint40:"#f1bbbc",tint50:"#f8dadb",tint60:"#fdf6f6"},Yw={shade50:"#230900",shade40:"#411200",shade30:"#7a2101",shade20:"#a62d01",shade10:"#c43501",primary:"#da3b01",tint10:"#de501c",tint20:"#e36537",tint30:"#e9835e",tint40:"#f4bfab",tint50:"#f9dcd1",tint60:"#fdf6f3"},Jw={shade50:"#200d03",shade40:"#3d1805",shade30:"#712d09",shade20:"#9a3d0c",shade10:"#b6480e",primary:"#ca5010",tint10:"#d06228",tint20:"#d77440",tint30:"#df8e64",tint40:"#efc4ad",tint50:"#f7dfd2",tint60:"#fdf7f4"},Zw={shade50:"#271002",shade40:"#4a1e04",shade30:"#8a3707",shade20:"#bc4b09",shade10:"#de590b",primary:"#f7630c",tint10:"#f87528",tint20:"#f98845",tint30:"#faa06b",tint40:"#fdcfb4",tint50:"#fee5d7",tint60:"#fff9f5"},ek={shade50:"#291600",shade40:"#4d2a00",shade30:"#8f4e00",shade20:"#c26a00",shade10:"#e67e00",primary:"#ff8c00",tint10:"#ff9a1f",tint20:"#ffa83d",tint30:"#ffba66",tint40:"#ffddb3",tint50:"#ffedd6",tint60:"#fffaf5"},tk={shade50:"#251a00",shade40:"#463100",shade30:"#835b00",shade20:"#b27c00",shade10:"#d39300",primary:"#eaa300",tint10:"#edad1c",tint20:"#efb839",tint30:"#f2c661",tint40:"#f9e2ae",tint50:"#fcefd3",tint60:"#fefbf4"},rk={shade50:"#282400",shade40:"#4c4400",shade30:"#817400",shade20:"#c0ad00",shade10:"#e4cc00",primary:"#fde300",tint10:"#fde61e",tint20:"#fdea3d",tint30:"#feee66",tint40:"#fef7b2",tint50:"#fffad6",tint60:"#fffef5"},ok={shade50:"#1f1900",shade40:"#3a2f00",shade30:"#6c5700",shade20:"#937700",shade10:"#ae8c00",primary:"#c19c00",tint10:"#c8a718",tint20:"#d0b232",tint30:"#dac157",tint40:"#ecdfa5",tint50:"#f5eece",tint60:"#fdfbf2"},nk={shade50:"#181202",shade40:"#2e2103",shade30:"#553e06",shade20:"#745408",shade10:"#89640a",primary:"#986f0b",tint10:"#a47d1e",tint20:"#b18c34",tint30:"#c1a256",tint40:"#e0cea2",tint50:"#efe4cb",tint60:"#fbf8f2"},ik={shade50:"#170e07",shade40:"#2b1a0e",shade30:"#50301a",shade20:"#6c4123",shade10:"#804d29",primary:"#8e562e",tint10:"#9c663f",tint20:"#a97652",tint30:"#bb8f6f",tint40:"#ddc3b0",tint50:"#edded3",tint60:"#faf7f4"},sk={shade50:"#0c1501",shade40:"#162702",shade30:"#294903",shade20:"#376304",shade10:"#427505",primary:"#498205",tint10:"#599116",tint20:"#6ba02b",tint30:"#85b44c",tint40:"#bdd99b",tint50:"#dbebc7",tint60:"#f6faf0"},lk={shade50:"#002111",shade40:"#003d20",shade30:"#00723b",shade20:"#009b51",shade10:"#00b85f",primary:"#00cc6a",tint10:"#19d279",tint20:"#34d889",tint30:"#5ae0a0",tint40:"#a8f0cd",tint50:"#cff7e4",tint60:"#f3fdf8"},ak={shade50:"#031a02",shade40:"#063004",shade30:"#0b5a08",shade20:"#0e7a0b",shade10:"#11910d",primary:"#13a10e",tint10:"#27ac22",tint20:"#3db838",tint30:"#5ec75a",tint40:"#a7e3a5",tint50:"#cef0cd",tint60:"#f2fbf2"},Op={shade50:"#031403",shade40:"#052505",shade30:"#094509",shade20:"#0c5e0c",shade10:"#0e700e",primary:"#107c10",tint10:"#218c21",tint20:"#359b35",tint30:"#54b054",tint40:"#9fd89f",tint50:"#c9eac9",tint60:"#f1faf1"},ck={shade50:"#021102",shade40:"#032003",shade30:"#063b06",shade20:"#085108",shade10:"#0a5f0a",primary:"#0b6a0b",tint10:"#1a7c1a",tint20:"#2d8e2d",tint30:"#4da64d",tint40:"#9ad29a",tint50:"#c6e7c6",tint60:"#f0f9f0"},uk={shade50:"#001d1f",shade40:"#00373a",shade30:"#00666d",shade20:"#008b94",shade10:"#00a5af",primary:"#00b7c3",tint10:"#18bfca",tint20:"#32c8d1",tint30:"#58d3db",tint40:"#a6e9ed",tint50:"#cef3f5",tint60:"#f2fcfd"},dk={shade50:"#001516",shade40:"#012728",shade30:"#02494c",shade20:"#026467",shade10:"#037679",primary:"#038387",tint10:"#159195",tint20:"#2aa0a4",tint30:"#4cb4b7",tint40:"#9bd9db",tint50:"#c7ebec",tint60:"#f0fafa"},fk={shade50:"#000f12",shade40:"#001b22",shade30:"#00333f",shade20:"#004555",shade10:"#005265",primary:"#005b70",tint10:"#0f6c81",tint20:"#237d92",tint30:"#4496a9",tint40:"#94c8d4",tint50:"#c3e1e8",tint60:"#eff7f9"},pk={shade50:"#001322",shade40:"#002440",shade30:"#004377",shade20:"#005ba1",shade10:"#006cbf",primary:"#0078d4",tint10:"#1a86d9",tint20:"#3595de",tint30:"#5caae5",tint40:"#a9d3f2",tint50:"#d0e7f8",tint60:"#f3f9fd"},mk={shade50:"#000c16",shade40:"#00172a",shade30:"#002c4e",shade20:"#003b6a",shade10:"#00467e",primary:"#004e8c",tint10:"#125e9a",tint20:"#286fa8",tint30:"#4a89ba",tint40:"#9abfdc",tint50:"#c7dced",tint60:"#f0f6fa"},gk={shade50:"#0d1126",shade40:"#182047",shade30:"#2c3c85",shade20:"#3c51b4",shade10:"#4760d5",primary:"#4f6bed",tint10:"#637cef",tint20:"#778df1",tint30:"#93a4f4",tint40:"#c8d1fa",tint50:"#e1e6fc",tint60:"#f7f9fe"},hk={shade50:"#00061d",shade40:"#000c36",shade30:"#001665",shade20:"#001e89",shade10:"#0023a2",primary:"#0027b4",tint10:"#173bbd",tint20:"#3050c6",tint30:"#546fd2",tint40:"#a3b2e8",tint50:"#ccd5f3",tint60:"#f2f4fc"},vk={shade50:"#120f25",shade40:"#221d46",shade30:"#3f3682",shade20:"#5649b0",shade10:"#6656d1",primary:"#7160e8",tint10:"#8172eb",tint20:"#9184ee",tint30:"#a79cf1",tint40:"#d2ccf8",tint50:"#e7e4fb",tint60:"#f9f8fe"},bk={shade50:"#0f0717",shade40:"#1c0e2b",shade30:"#341a51",shade20:"#46236e",shade10:"#532982",primary:"#5c2e91",tint10:"#6b3f9e",tint20:"#7c52ab",tint30:"#9470bd",tint40:"#c6b1de",tint50:"#e0d3ed",tint60:"#f7f4fb"},yk={shade50:"#160418",shade40:"#29072e",shade30:"#4c0d55",shade20:"#671174",shade10:"#7a1589",primary:"#881798",tint10:"#952aa4",tint20:"#a33fb1",tint30:"#b55fc1",tint40:"#d9a7e0",tint50:"#eaceef",tint60:"#faf2fb"},wk={shade50:"#1f091d",shade40:"#3a1136",shade30:"#6d2064",shade20:"#932b88",shade10:"#af33a1",primary:"#c239b3",tint10:"#c94cbc",tint20:"#d161c4",tint30:"#da7ed0",tint40:"#edbbe7",tint50:"#f5daf2",tint60:"#fdf5fc"},kk={shade50:"#1c0b1f",shade40:"#35153a",shade30:"#63276d",shade20:"#863593",shade10:"#9f3faf",primary:"#b146c2",tint10:"#ba58c9",tint20:"#c36bd1",tint30:"#cf87da",tint40:"#e6bfed",tint50:"#f2dcf5",tint60:"#fcf6fd"},xk={shade50:"#24091b",shade40:"#441232",shade30:"#80215d",shade20:"#ad2d7e",shade10:"#cd3595",primary:"#e43ba6",tint10:"#e750b0",tint20:"#ea66ba",tint30:"#ef85c8",tint40:"#f7c0e3",tint50:"#fbddf0",tint60:"#fef6fb"},Sk={shade50:"#1f0013",shade40:"#390024",shade30:"#6b0043",shade20:"#91005a",shade10:"#ac006b",primary:"#bf0077",tint10:"#c71885",tint20:"#ce3293",tint30:"#d957a8",tint40:"#eca5d1",tint50:"#f5cee6",tint60:"#fcf2f9"},_k={shade50:"#13000c",shade40:"#240017",shade30:"#43002b",shade20:"#5a003b",shade10:"#6b0045",primary:"#77004d",tint10:"#87105d",tint20:"#98246f",tint30:"#ad4589",tint40:"#d696c0",tint50:"#e9c4dc",tint60:"#faf0f6"},Bk={shade50:"#141313",shade40:"#252323",shade30:"#444241",shade20:"#5d5958",shade10:"#6e6968",primary:"#7a7574",tint10:"#8a8584",tint20:"#9a9594",tint30:"#afabaa",tint40:"#d7d4d4",tint50:"#eae8e8",tint60:"#faf9f9"},Ck={shade50:"#0f0e0e",shade40:"#1c1b1a",shade30:"#343231",shade20:"#474443",shade10:"#54514f",primary:"#5d5a58",tint10:"#706d6b",tint20:"#84817e",tint30:"#9e9b99",tint40:"#cecccb",tint50:"#e5e4e3",tint60:"#f8f8f8"},zk={shade50:"#111314",shade40:"#1f2426",shade30:"#3b4447",shade20:"#505c60",shade10:"#5f6d71",primary:"#69797e",tint10:"#79898d",tint20:"#89989d",tint30:"#a0adb2",tint40:"#cdd6d8",tint50:"#e4e9ea",tint60:"#f8f9fa"},Nk={shade50:"#090a0b",shade40:"#111315",shade30:"#202427",shade20:"#2b3135",shade10:"#333a3f",primary:"#394146",tint10:"#4d565c",tint20:"#626c72",tint30:"#808a90",tint40:"#bcc3c7",tint50:"#dbdfe1",tint60:"#f6f7f8"},Te={red:Qw,green:Op,darkOrange:Yw,yellow:rk,berry:wk,lightGreen:ak,marigold:tk},Xr={darkRed:Xw,cranberry:Dp,pumpkin:Jw,peach:ek,gold:ok,brass:nk,brown:ik,forest:sk,seafoam:lk,darkGreen:ck,lightTeal:uk,teal:dk,steel:fk,blue:pk,royalBlue:mk,cornflower:gk,navy:hk,lavender:vk,purple:bk,grape:yk,lilac:kk,pink:xk,magenta:Sk,plum:_k,beige:Bk,mink:Ck,platinum:zk,anchor:Nk},ze={cranberry:Dp,green:Op,orange:Zw},Ap=["red","green","darkOrange","yellow","berry","lightGreen","marigold"],Mp=["darkRed","cranberry","pumpkin","peach","gold","brass","brown","forest","seafoam","darkGreen","lightTeal","teal","steel","blue","royalBlue","cornflower","navy","lavender","purple","grape","lilac","pink","magenta","plum","beige","mink","platinum","anchor"],zt={success:"green",warning:"orange",danger:"cranberry"},An=Ap.reduce((e,r)=>{const n=r.slice(0,1).toUpperCase()+r.slice(1),i={[`colorPalette${n}Background1`]:Te[r].tint60,[`colorPalette${n}Background2`]:Te[r].tint40,[`colorPalette${n}Background3`]:Te[r].primary,[`colorPalette${n}Foreground1`]:Te[r].shade10,[`colorPalette${n}Foreground2`]:Te[r].shade30,[`colorPalette${n}Foreground3`]:Te[r].primary,[`colorPalette${n}BorderActive`]:Te[r].primary,[`colorPalette${n}Border1`]:Te[r].tint40,[`colorPalette${n}Border2`]:Te[r].primary};return Object.assign(e,i)},{});An.colorPaletteYellowForeground1=Te.yellow.shade30,An.colorPaletteRedForegroundInverted=Te.red.tint20,An.colorPaletteGreenForegroundInverted=Te.green.tint20,An.colorPaletteYellowForegroundInverted=Te.yellow.tint40;const Tk=Mp.reduce((e,r)=>{const n=r.slice(0,1).toUpperCase()+r.slice(1),i={[`colorPalette${n}Background2`]:Xr[r].tint40,[`colorPalette${n}Foreground2`]:Xr[r].shade30,[`colorPalette${n}BorderActive`]:Xr[r].primary};return Object.assign(e,i)},{}),Ek={...An,...Tk},Uo=Object.entries(zt).reduce((e,[r,n])=>{const i=r.slice(0,1).toUpperCase()+r.slice(1),l={[`colorStatus${i}Background1`]:ze[n].tint60,[`colorStatus${i}Background2`]:ze[n].tint40,[`colorStatus${i}Background3`]:ze[n].primary,[`colorStatus${i}Foreground1`]:ze[n].shade10,[`colorStatus${i}Foreground2`]:ze[n].shade30,[`colorStatus${i}Foreground3`]:ze[n].primary,[`colorStatus${i}ForegroundInverted`]:ze[n].tint30,[`colorStatus${i}BorderActive`]:ze[n].primary,[`colorStatus${i}Border1`]:ze[n].tint40,[`colorStatus${i}Border2`]:ze[n].primary};return Object.assign(e,l)},{});Uo.colorStatusDangerBackground3Hover=ze[zt.danger].shade10,Uo.colorStatusDangerBackground3Pressed=ze[zt.danger].shade20,Uo.colorStatusWarningForeground1=ze[zt.warning].shade20,Uo.colorStatusWarningForeground3=ze[zt.warning].shade20,Uo.colorStatusWarningBorder2=ze[zt.warning].shade20;const Pk=e=>({colorNeutralForeground1:G[14],colorNeutralForeground1Hover:G[14],colorNeutralForeground1Pressed:G[14],colorNeutralForeground1Selected:G[14],colorNeutralForeground2:G[26],colorNeutralForeground2Hover:G[14],colorNeutralForeground2Pressed:G[14],colorNeutralForeground2Selected:G[14],colorNeutralForeground2BrandHover:e[80],colorNeutralForeground2BrandPressed:e[70],colorNeutralForeground2BrandSelected:e[80],colorNeutralForeground3:G[38],colorNeutralForeground3Hover:G[26],colorNeutralForeground3Pressed:G[26],colorNeutralForeground3Selected:G[26],colorNeutralForeground3BrandHover:e[80],colorNeutralForeground3BrandPressed:e[70],colorNeutralForeground3BrandSelected:e[80],colorNeutralForeground4:G[44],colorNeutralForegroundDisabled:G[74],colorNeutralForegroundInvertedDisabled:ht[40],colorBrandForegroundLink:e[70],colorBrandForegroundLinkHover:e[60],colorBrandForegroundLinkPressed:e[40],colorBrandForegroundLinkSelected:e[70],colorNeutralForeground2Link:G[26],colorNeutralForeground2LinkHover:G[14],colorNeutralForeground2LinkPressed:G[14],colorNeutralForeground2LinkSelected:G[14],colorCompoundBrandForeground1:e[80],colorCompoundBrandForeground1Hover:e[70],colorCompoundBrandForeground1Pressed:e[60],colorBrandForeground1:e[80],colorBrandForeground2:e[70],colorBrandForeground2Hover:e[60],colorBrandForeground2Pressed:e[30],colorNeutralForeground1Static:G[14],colorNeutralForegroundStaticInverted:Se,colorNeutralForegroundInverted:Se,colorNeutralForegroundInvertedHover:Se,colorNeutralForegroundInvertedPressed:Se,colorNeutralForegroundInvertedSelected:Se,colorNeutralForegroundInverted2:Se,colorNeutralForegroundOnBrand:Se,colorNeutralForegroundInvertedLink:Se,colorNeutralForegroundInvertedLinkHover:Se,colorNeutralForegroundInvertedLinkPressed:Se,colorNeutralForegroundInvertedLinkSelected:Se,colorBrandForegroundInverted:e[100],colorBrandForegroundInvertedHover:e[110],colorBrandForegroundInvertedPressed:e[100],colorBrandForegroundOnLight:e[80],colorBrandForegroundOnLightHover:e[70],colorBrandForegroundOnLightPressed:e[50],colorBrandForegroundOnLightSelected:e[60],colorNeutralBackground1:Se,colorNeutralBackground1Hover:G[96],colorNeutralBackground1Pressed:G[88],colorNeutralBackground1Selected:G[92],colorNeutralBackground2:G[98],colorNeutralBackground2Hover:G[94],colorNeutralBackground2Pressed:G[86],colorNeutralBackground2Selected:G[90],colorNeutralBackground3:G[96],colorNeutralBackground3Hover:G[92],colorNeutralBackground3Pressed:G[84],colorNeutralBackground3Selected:G[88],colorNeutralBackground4:G[94],colorNeutralBackground4Hover:G[98],colorNeutralBackground4Pressed:G[96],colorNeutralBackground4Selected:Se,colorNeutralBackground5:G[92],colorNeutralBackground5Hover:G[96],colorNeutralBackground5Pressed:G[94],colorNeutralBackground5Selected:G[98],colorNeutralBackground6:G[90],colorNeutralBackgroundInverted:G[16],colorNeutralBackgroundStatic:G[20],colorNeutralBackgroundAlpha:ht[50],colorNeutralBackgroundAlpha2:ht[80],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:G[96],colorSubtleBackgroundPressed:G[88],colorSubtleBackgroundSelected:G[92],colorSubtleBackgroundLightAlphaHover:ht[70],colorSubtleBackgroundLightAlphaPressed:ht[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:Xt[10],colorSubtleBackgroundInvertedPressed:Xt[30],colorSubtleBackgroundInvertedSelected:Xt[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:G[94],colorNeutralBackgroundInvertedDisabled:ht[10],colorNeutralStencil1:G[90],colorNeutralStencil2:G[98],colorNeutralStencil1Alpha:Xt[10],colorNeutralStencil2Alpha:Xt[5],colorBackgroundOverlay:Xt[40],colorScrollbarOverlay:Xt[50],colorBrandBackground:e[80],colorBrandBackgroundHover:e[70],colorBrandBackgroundPressed:e[40],colorBrandBackgroundSelected:e[60],colorCompoundBrandBackground:e[80],colorCompoundBrandBackgroundHover:e[70],colorCompoundBrandBackgroundPressed:e[60],colorBrandBackgroundStatic:e[80],colorBrandBackground2:e[160],colorBrandBackground2Hover:e[150],colorBrandBackground2Pressed:e[130],colorBrandBackground3Static:e[60],colorBrandBackground4Static:e[40],colorBrandBackgroundInverted:Se,colorBrandBackgroundInvertedHover:e[160],colorBrandBackgroundInvertedPressed:e[140],colorBrandBackgroundInvertedSelected:e[150],colorNeutralCardBackground:G[98],colorNeutralCardBackgroundHover:Se,colorNeutralCardBackgroundPressed:G[96],colorNeutralCardBackgroundSelected:G[92],colorNeutralCardBackgroundDisabled:G[94],colorNeutralStrokeAccessible:G[38],colorNeutralStrokeAccessibleHover:G[34],colorNeutralStrokeAccessiblePressed:G[30],colorNeutralStrokeAccessibleSelected:e[80],colorNeutralStroke1:G[82],colorNeutralStroke1Hover:G[78],colorNeutralStroke1Pressed:G[70],colorNeutralStroke1Selected:G[74],colorNeutralStroke2:G[88],colorNeutralStroke3:G[94],colorNeutralStrokeSubtle:G[88],colorNeutralStrokeOnBrand:Se,colorNeutralStrokeOnBrand2:Se,colorNeutralStrokeOnBrand2Hover:Se,colorNeutralStrokeOnBrand2Pressed:Se,colorNeutralStrokeOnBrand2Selected:Se,colorBrandStroke1:e[80],colorBrandStroke2:e[140],colorBrandStroke2Hover:e[120],colorBrandStroke2Pressed:e[80],colorBrandStroke2Contrast:e[140],colorCompoundBrandStroke:e[80],colorCompoundBrandStrokeHover:e[70],colorCompoundBrandStrokePressed:e[60],colorNeutralStrokeDisabled:G[88],colorNeutralStrokeInvertedDisabled:ht[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:Xt[5],colorNeutralStrokeAlpha2:ht[20],colorStrokeFocus1:Se,colorStrokeFocus2:Da,colorNeutralShadowAmbient:"rgba(0,0,0,0.12)",colorNeutralShadowKey:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.06)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.07)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.20)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.24)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}),Lp={borderRadiusNone:"0",borderRadiusSmall:"2px",borderRadiusMedium:"4px",borderRadiusLarge:"6px",borderRadiusXLarge:"8px",borderRadiusCircular:"10000px"},qp={curveAccelerateMax:"cubic-bezier(0.9,0.1,1,0.2)",curveAccelerateMid:"cubic-bezier(1,0,1,1)",curveAccelerateMin:"cubic-bezier(0.8,0,0.78,1)",curveDecelerateMax:"cubic-bezier(0.1,0.9,0.2,1)",curveDecelerateMid:"cubic-bezier(0,0,0,1)",curveDecelerateMin:"cubic-bezier(0.33,0,0.1,1)",curveEasyEaseMax:"cubic-bezier(0.8,0,0.2,1)",curveEasyEase:"cubic-bezier(0.33,0,0.67,1)",curveLinear:"cubic-bezier(0,0,1,1)"},Hp={durationUltraFast:"50ms",durationFaster:"100ms",durationFast:"150ms",durationNormal:"200ms",durationGentle:"250ms",durationSlow:"300ms",durationSlower:"400ms",durationUltraSlow:"500ms"},Wp={fontSizeBase100:"10px",fontSizeBase200:"12px",fontSizeBase300:"14px",fontSizeBase400:"16px",fontSizeBase500:"20px",fontSizeBase600:"24px",fontSizeHero700:"28px",fontSizeHero800:"32px",fontSizeHero900:"40px",fontSizeHero1000:"68px"},Vp={lineHeightBase100:"14px",lineHeightBase200:"16px",lineHeightBase300:"20px",lineHeightBase400:"22px",lineHeightBase500:"28px",lineHeightBase600:"32px",lineHeightHero700:"36px",lineHeightHero800:"40px",lineHeightHero900:"52px",lineHeightHero1000:"92px"},$p={fontWeightRegular:400,fontWeightMedium:500,fontWeightSemibold:600,fontWeightBold:700},Oa={fontFamilyBase:"'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif",fontFamilyMonospace:"Consolas, 'Courier New', Courier, monospace",fontFamilyNumeric:"Bahnschrift, 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif"},Xe={none:"0",xxs:"2px",xs:"4px",sNudge:"6px",s:"8px",mNudge:"10px",m:"12px",l:"16px",xl:"20px",xxl:"24px",xxxl:"32px"},Up={spacingHorizontalNone:Xe.none,spacingHorizontalXXS:Xe.xxs,spacingHorizontalXS:Xe.xs,spacingHorizontalSNudge:Xe.sNudge,spacingHorizontalS:Xe.s,spacingHorizontalMNudge:Xe.mNudge,spacingHorizontalM:Xe.m,spacingHorizontalL:Xe.l,spacingHorizontalXL:Xe.xl,spacingHorizontalXXL:Xe.xxl,spacingHorizontalXXXL:Xe.xxxl},Gp={spacingVerticalNone:Xe.none,spacingVerticalXXS:Xe.xxs,spacingVerticalXS:Xe.xs,spacingVerticalSNudge:Xe.sNudge,spacingVerticalS:Xe.s,spacingVerticalMNudge:Xe.mNudge,spacingVerticalM:Xe.m,spacingVerticalL:Xe.l,spacingVerticalXL:Xe.xl,spacingVerticalXXL:Xe.xxl,spacingVerticalXXXL:Xe.xxxl},Kp={strokeWidthThin:"1px",strokeWidthThick:"2px",strokeWidthThicker:"3px",strokeWidthThickest:"4px"},ve={colorNeutralForeground1:"var(--colorNeutralForeground1)",colorNeutralForeground2:"var(--colorNeutralForeground2)",colorNeutralForeground3:"var(--colorNeutralForeground3)",colorNeutralForeground4:"var(--colorNeutralForeground4)",colorBrandForeground1:"var(--colorBrandForeground1)",colorNeutralBackground1:"var(--colorNeutralBackground1)",colorNeutralStroke1:"var(--colorNeutralStroke1)",colorNeutralStroke2:"var(--colorNeutralStroke2)",borderRadiusMedium:"var(--borderRadiusMedium)",fontSizeBase200:"var(--fontSizeBase200)",fontSizeBase300:"var(--fontSizeBase300)",fontSizeBase500:"var(--fontSizeBase500)",fontWeightSemibold:"var(--fontWeightSemibold)",spacingHorizontalXS:"var(--spacingHorizontalXS)",spacingHorizontalS:"var(--spacingHorizontalS)",spacingHorizontalM:"var(--spacingHorizontalM)",spacingVerticalXXS:"var(--spacingVerticalXXS)",spacingVerticalXS:"var(--spacingVerticalXS)",spacingVerticalS:"var(--spacingVerticalS)",spacingVerticalM:"var(--spacingVerticalM)",spacingVerticalL:"var(--spacingVerticalL)",spacingVerticalXL:"var(--spacingVerticalXL)",spacingVerticalXXL:"var(--spacingVerticalXXL)"};function cs(e,r,n=""){return{[`shadow2${n}`]:`0 0 2px ${e}, 0 1px 2px ${r}`,[`shadow4${n}`]:`0 0 2px ${e}, 0 2px 4px ${r}`,[`shadow8${n}`]:`0 0 2px ${e}, 0 4px 8px ${r}`,[`shadow16${n}`]:`0 0 2px ${e}, 0 8px 16px ${r}`,[`shadow28${n}`]:`0 0 8px ${e}, 0 14px 28px ${r}`,[`shadow64${n}`]:`0 0 8px ${e}, 0 32px 64px ${r}`}}const Xp=e=>{const r=Pk(e);return{...Lp,...Wp,...Vp,...Oa,...$p,...Kp,...Up,...Gp,...Hp,...qp,...r,...Ek,...Uo,...cs(r.colorNeutralShadowAmbient,r.colorNeutralShadowKey),...cs(r.colorBrandShadowAmbient,r.colorBrandShadowKey,"Brand")}},Qp={10:"#2b2b40",20:"#2f2f4a",30:"#333357",40:"#383966",50:"#3d3e78",60:"#444791",70:"#4f52b2",80:"#5b5fc7",90:"#7579eb",100:"#7f85f5",110:"#9299f7",120:"#aab1fa",130:"#b6bcfa",140:"#c5cbfa",150:"#dce0fa",160:"#e8ebfa"},Yp={10:"#29274f",20:"#2f2a5e",30:"#352e70",40:"#3b3185",50:"#44359e",60:"#4d3aba",70:"#5a40db",80:"#654cf5",90:"#7769fa",100:"#887dff",110:"#9791ff",120:"#aba8ff",130:"#bab8ff",140:"#c8c7ff",150:"#dcdbff",160:"#e8e8ff"},Jp={...Oa,fontFamilyBase:'-apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif'},Rk={...Xp(Qp),...Jp};({...Xp(Yp)});const br=Ap.reduce((e,r)=>{const n=r.slice(0,1).toUpperCase()+r.slice(1),i={[`colorPalette${n}Background1`]:Te[r].shade40,[`colorPalette${n}Background2`]:Te[r].shade30,[`colorPalette${n}Background3`]:Te[r].primary,[`colorPalette${n}Foreground1`]:Te[r].tint30,[`colorPalette${n}Foreground2`]:Te[r].tint40,[`colorPalette${n}Foreground3`]:Te[r].tint20,[`colorPalette${n}BorderActive`]:Te[r].tint30,[`colorPalette${n}Border1`]:Te[r].primary,[`colorPalette${n}Border2`]:Te[r].tint20};return Object.assign(e,i)},{});br.colorPaletteRedForeground3=Te.red.tint30,br.colorPaletteRedBorder2=Te.red.tint30,br.colorPaletteGreenForeground3=Te.green.tint40,br.colorPaletteGreenBorder2=Te.green.tint40,br.colorPaletteDarkOrangeForeground3=Te.darkOrange.tint30,br.colorPaletteDarkOrangeBorder2=Te.darkOrange.tint30,br.colorPaletteRedForegroundInverted=Te.red.primary,br.colorPaletteGreenForegroundInverted=Te.green.primary,br.colorPaletteYellowForegroundInverted=Te.yellow.shade30;const Aa=Mp.reduce((e,r)=>{const n=r.slice(0,1).toUpperCase()+r.slice(1),i={[`colorPalette${n}Background2`]:Xr[r].shade30,[`colorPalette${n}Foreground2`]:Xr[r].tint40,[`colorPalette${n}BorderActive`]:Xr[r].tint30};return Object.assign(e,i)},{});Aa.colorPaletteDarkRedBackground2=Xr.darkRed.shade20,Aa.colorPalettePlumBackground2=Xr.plum.shade20;const Fk={...br,...Aa},Qr=Object.entries(zt).reduce((e,[r,n])=>{const i=r.slice(0,1).toUpperCase()+r.slice(1),l={[`colorStatus${i}Background1`]:ze[n].shade40,[`colorStatus${i}Background2`]:ze[n].shade30,[`colorStatus${i}Background3`]:ze[n].primary,[`colorStatus${i}Foreground1`]:ze[n].tint30,[`colorStatus${i}Foreground2`]:ze[n].tint40,[`colorStatus${i}Foreground3`]:ze[n].tint20,[`colorStatus${i}BorderActive`]:ze[n].tint30,[`colorStatus${i}ForegroundInverted`]:ze[n].shade10,[`colorStatus${i}Border1`]:ze[n].primary,[`colorStatus${i}Border2`]:ze[n].tint20};return Object.assign(e,l)},{});Qr.colorStatusDangerBackground3Hover=ze[zt.danger].shade10,Qr.colorStatusDangerBackground3Pressed=ze[zt.danger].shade20,Qr.colorStatusDangerForeground3=ze[zt.danger].tint40,Qr.colorStatusDangerBorder2=ze[zt.danger].tint30,Qr.colorStatusSuccessForeground3=ze[zt.success].tint40,Qr.colorStatusSuccessBorder2=ze[zt.success].tint40,Qr.colorStatusWarningForegroundInverted=ze[zt.warning].shade20;const Ik=e=>({colorNeutralForeground1:Se,colorNeutralForeground1Hover:Se,colorNeutralForeground1Pressed:Se,colorNeutralForeground1Selected:Se,colorNeutralForeground2:G[84],colorNeutralForeground2Hover:Se,colorNeutralForeground2Pressed:Se,colorNeutralForeground2Selected:Se,colorNeutralForeground2BrandHover:e[100],colorNeutralForeground2BrandPressed:e[90],colorNeutralForeground2BrandSelected:e[100],colorNeutralForeground3:G[68],colorNeutralForeground3Hover:G[84],colorNeutralForeground3Pressed:G[84],colorNeutralForeground3Selected:G[84],colorNeutralForeground3BrandHover:e[100],colorNeutralForeground3BrandPressed:e[90],colorNeutralForeground3BrandSelected:e[100],colorNeutralForeground4:G[60],colorNeutralForegroundDisabled:G[36],colorNeutralForegroundInvertedDisabled:ht[40],colorBrandForegroundLink:e[100],colorBrandForegroundLinkHover:e[110],colorBrandForegroundLinkPressed:e[90],colorBrandForegroundLinkSelected:e[100],colorNeutralForeground2Link:G[84],colorNeutralForeground2LinkHover:Se,colorNeutralForeground2LinkPressed:Se,colorNeutralForeground2LinkSelected:Se,colorCompoundBrandForeground1:e[100],colorCompoundBrandForeground1Hover:e[110],colorCompoundBrandForeground1Pressed:e[90],colorBrandForeground1:e[100],colorBrandForeground2:e[120],colorBrandForeground2Hover:e[130],colorBrandForeground2Pressed:e[160],colorNeutralForeground1Static:G[14],colorNeutralForegroundStaticInverted:Se,colorNeutralForegroundInverted:G[14],colorNeutralForegroundInvertedHover:G[14],colorNeutralForegroundInvertedPressed:G[14],colorNeutralForegroundInvertedSelected:G[14],colorNeutralForegroundInverted2:G[14],colorNeutralForegroundOnBrand:Se,colorNeutralForegroundInvertedLink:Se,colorNeutralForegroundInvertedLinkHover:Se,colorNeutralForegroundInvertedLinkPressed:Se,colorNeutralForegroundInvertedLinkSelected:Se,colorBrandForegroundInverted:e[80],colorBrandForegroundInvertedHover:e[70],colorBrandForegroundInvertedPressed:e[60],colorBrandForegroundOnLight:e[80],colorBrandForegroundOnLightHover:e[70],colorBrandForegroundOnLightPressed:e[50],colorBrandForegroundOnLightSelected:e[60],colorNeutralBackground1:G[16],colorNeutralBackground1Hover:G[24],colorNeutralBackground1Pressed:G[12],colorNeutralBackground1Selected:G[22],colorNeutralBackground2:G[14],colorNeutralBackground2Hover:G[22],colorNeutralBackground2Pressed:G[10],colorNeutralBackground2Selected:G[20],colorNeutralBackground3:G[12],colorNeutralBackground3Hover:G[20],colorNeutralBackground3Pressed:G[8],colorNeutralBackground3Selected:G[18],colorNeutralBackground4:G[8],colorNeutralBackground4Hover:G[16],colorNeutralBackground4Pressed:G[4],colorNeutralBackground4Selected:G[14],colorNeutralBackground5:G[4],colorNeutralBackground5Hover:G[12],colorNeutralBackground5Pressed:Da,colorNeutralBackground5Selected:G[10],colorNeutralBackground6:G[20],colorNeutralBackgroundInverted:Se,colorNeutralBackgroundStatic:G[24],colorNeutralBackgroundAlpha:Gw[50],colorNeutralBackgroundAlpha2:Kw[70],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:G[22],colorSubtleBackgroundPressed:G[18],colorSubtleBackgroundSelected:G[20],colorSubtleBackgroundLightAlphaHover:jp[80],colorSubtleBackgroundLightAlphaPressed:jp[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:Xt[10],colorSubtleBackgroundInvertedPressed:Xt[30],colorSubtleBackgroundInvertedSelected:Xt[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:G[8],colorNeutralBackgroundInvertedDisabled:ht[10],colorNeutralStencil1:G[34],colorNeutralStencil2:G[20],colorNeutralStencil1Alpha:ht[10],colorNeutralStencil2Alpha:ht[5],colorBackgroundOverlay:Xt[50],colorScrollbarOverlay:ht[60],colorBrandBackground:e[70],colorBrandBackgroundHover:e[80],colorBrandBackgroundPressed:e[40],colorBrandBackgroundSelected:e[60],colorCompoundBrandBackground:e[100],colorCompoundBrandBackgroundHover:e[110],colorCompoundBrandBackgroundPressed:e[90],colorBrandBackgroundStatic:e[80],colorBrandBackground2:e[20],colorBrandBackground2Hover:e[40],colorBrandBackground2Pressed:e[10],colorBrandBackground3Static:e[60],colorBrandBackground4Static:e[40],colorBrandBackgroundInverted:Se,colorBrandBackgroundInvertedHover:e[160],colorBrandBackgroundInvertedPressed:e[140],colorBrandBackgroundInvertedSelected:e[150],colorNeutralCardBackground:G[20],colorNeutralCardBackgroundHover:G[24],colorNeutralCardBackgroundPressed:G[18],colorNeutralCardBackgroundSelected:G[22],colorNeutralCardBackgroundDisabled:G[8],colorNeutralStrokeAccessible:G[68],colorNeutralStrokeAccessibleHover:G[74],colorNeutralStrokeAccessiblePressed:G[70],colorNeutralStrokeAccessibleSelected:e[100],colorNeutralStroke1:G[40],colorNeutralStroke1Hover:G[46],colorNeutralStroke1Pressed:G[42],colorNeutralStroke1Selected:G[44],colorNeutralStroke2:G[32],colorNeutralStroke3:G[24],colorNeutralStrokeSubtle:G[4],colorNeutralStrokeOnBrand:G[16],colorNeutralStrokeOnBrand2:Se,colorNeutralStrokeOnBrand2Hover:Se,colorNeutralStrokeOnBrand2Pressed:Se,colorNeutralStrokeOnBrand2Selected:Se,colorBrandStroke1:e[100],colorBrandStroke2:e[50],colorBrandStroke2Hover:e[50],colorBrandStroke2Pressed:e[30],colorBrandStroke2Contrast:e[50],colorCompoundBrandStroke:e[90],colorCompoundBrandStrokeHover:e[100],colorCompoundBrandStrokePressed:e[80],colorNeutralStrokeDisabled:G[26],colorNeutralStrokeInvertedDisabled:ht[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:ht[10],colorNeutralStrokeAlpha2:ht[20],colorStrokeFocus1:Da,colorStrokeFocus2:Se,colorNeutralShadowAmbient:"rgba(0,0,0,0.24)",colorNeutralShadowKey:"rgba(0,0,0,0.28)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.12)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.40)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.48)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}),Zp=e=>{const r=Ik(e);return{...Lp,...Wp,...Vp,...Oa,...$p,...Kp,...Up,...Gp,...Hp,...qp,...r,...Fk,...Qr,...cs(r.colorNeutralShadowAmbient,r.colorNeutralShadowKey),...cs(r.colorBrandShadowAmbient,r.colorBrandShadowKey,"Brand")}},em={...Zp(Qp),...Jp};({...Zp(Yp)});const tm={root:"fui-FluentProvider"},jk=xf({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",fsow6f:["f1o700av","fes3tcz"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}"]}),Dk=e=>{"use no memo";const r=Rn(),n=jk({dir:e.dir,renderer:r});return e.root.className=ce(tm.root,e.themeClassName,n.root,e.root.className),e},Ok=S.useInsertionEffect?S.useInsertionEffect:Dt,Ak=(e,r)=>{if(!e?.head)return;const n=e.createElement("style");return Object.keys(r).forEach(i=>{n.setAttribute(i,r[i])}),e.head.appendChild(n),n},Mk=(e,r)=>{const n=e.sheet;n&&(n.cssRules.length>0&&n.deleteRule(0),n.insertRule(r,0))},Lk=e=>{"use no memo";const{targetDocument:r,theme:n,rendererAttributes:i}=e,l=S.useRef(void 0),a=Gt(tm.root),u=i,d=S.useMemo(()=>u1(`.${a}`,n),[n,a]);return qk(r,a),Ok(()=>{const f=r?.getElementById(a);return f?l.current=f:(l.current=Ak(r,{...u,id:a}),l.current&&Mk(l.current,d)),()=>{var m;(m=l.current)===null||m===void 0||m.remove()}},[a,r,d,u]),{styleTagId:a,rule:d}};function qk(e,r){S.useState(()=>{if(!e)return;const n=e.getElementById(r);n&&e.head.append(n)})}const Hk={},Wk={},Vk=(e,r)=>{"use no memo";const n=nt(),i=$k(),l=Af(),a=S.useContext(pa)||Hk,{applyStylesToPortals:u=!0,customStyleHooks_unstable:d,dir:f=n.dir,targetDocument:m=n.targetDocument,theme:h,overrides_unstable:v={}}=e,b=Ma(i,h),y=Ma(l,v),k=Ma(a,d),w=Rn();var _;const{styleTagId:z,rule:N}=Lk({theme:b,targetDocument:m,rendererAttributes:(_=w.styleElementAttributes)!==null&&_!==void 0?_:Wk});return{applyStylesToPortals:u,customStyleHooks_unstable:k,dir:f,targetDocument:m,theme:b,overrides_unstable:y,themeClassName:z,components:{root:"div"},root:Ee(xt("div",{...e,dir:f,ref:Ye(r,Ia({targetDocument:m}))}),{elementType:"div"}),serverStyleProps:{cssRule:N,attributes:{...w.styleElementAttributes,id:z}}}};function Ma(e,r){return e&&r?{...e,...r}:e||r}function $k(){return S.useContext(Ff)}function Uk(e){const{applyStylesToPortals:r,customStyleHooks_unstable:n,dir:i,root:l,targetDocument:a,theme:u,themeClassName:d,overrides_unstable:f}=e,m=S.useMemo(()=>({dir:i,targetDocument:a}),[i,a]),[h]=S.useState(()=>({})),v=S.useMemo(()=>({textDirection:i}),[i]);return{customStyleHooks_unstable:n,overrides_unstable:f,provider:m,textDirection:i,iconDirection:v,tooltip:h,theme:u,themeClassName:r?l.className:d}}const rm=S.forwardRef((e,r)=>{const n=Vk(e,r);Dk(n);const i=Uk(n);return Ty(n,i)});rm.displayName="FluentProvider";var La={exports:{}},qa={};var om;function Gk(){return om||(om=1,(function(e){function r(H,K){var L=H.length;H.push(K);e:for(;0<L;){var Q=L-1>>>1,$=H[Q];if(0<l($,K))H[Q]=K,H[L]=$,L=Q;else break e}}function n(H){return H.length===0?null:H[0]}function i(H){if(H.length===0)return null;var K=H[0],L=H.pop();if(L!==K){H[0]=L;e:for(var Q=0,$=H.length,F=$>>>1;Q<F;){var M=2*(Q+1)-1,ne=H[M],ae=M+1,be=H[ae];if(0>l(ne,L))ae<$&&0>l(be,ne)?(H[Q]=be,H[ae]=L,Q=ae):(H[Q]=ne,H[M]=L,Q=M);else if(ae<$&&0>l(be,L))H[Q]=be,H[ae]=L,Q=ae;else break e}}return K}function l(H,K){var L=H.sortIndex-K.sortIndex;return L!==0?L:H.id-K.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var u=Date,d=u.now();e.unstable_now=function(){return u.now()-d}}var f=[],m=[],h=1,v=null,b=3,y=!1,k=!1,w=!1,_=!1,z=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;function C(H){for(var K=n(m);K!==null;){if(K.callback===null)i(m);else if(K.startTime<=H)i(m),K.sortIndex=K.expirationTime,r(f,K);else break;K=n(m)}}function E(H){if(w=!1,C(H),!k)if(n(f)!==null)k=!0,O||(O=!0,te());else{var K=n(m);K!==null&&oe(E,K.startTime-H)}}var O=!1,I=-1,q=5,j=-1;function U(){return _?!0:!(e.unstable_now()-j<q)}function le(){if(_=!1,O){var H=e.unstable_now();j=H;var K=!0;try{e:{k=!1,w&&(w=!1,N(I),I=-1),y=!0;var L=b;try{t:{for(C(H),v=n(f);v!==null&&!(v.expirationTime>H&&U());){var Q=v.callback;if(typeof Q=="function"){v.callback=null,b=v.priorityLevel;var $=Q(v.expirationTime<=H);if(H=e.unstable_now(),typeof $=="function"){v.callback=$,C(H),K=!0;break t}v===n(f)&&i(f),C(H)}else i(f);v=n(f)}if(v!==null)K=!0;else{var F=n(m);F!==null&&oe(E,F.startTime-H),K=!1}}break e}finally{v=null,b=L,y=!1}K=void 0}}finally{K?te():O=!1}}}var te;if(typeof B=="function")te=function(){B(le)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,ee=V.port2;V.port1.onmessage=le,te=function(){ee.postMessage(null)}}else te=function(){z(le,0)};function oe(H,K){I=z(function(){H(e.unstable_now())},K)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(H){H.callback=null},e.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<H?Math.floor(1e3/H):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(H){switch(b){case 1:case 2:case 3:var K=3;break;default:K=b}var L=b;b=K;try{return H()}finally{b=L}},e.unstable_requestPaint=function(){_=!0},e.unstable_runWithPriority=function(H,K){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var L=b;b=H;try{return K()}finally{b=L}},e.unstable_scheduleCallback=function(H,K,L){var Q=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?Q+L:Q):L=Q,H){case 1:var $=-1;break;case 2:$=250;break;case 5:$=1073741823;break;case 4:$=1e4;break;default:$=5e3}return $=L+$,H={id:h++,callback:K,priorityLevel:H,startTime:L,expirationTime:$,sortIndex:-1},L>Q?(H.sortIndex=L,r(m,H),n(f)===null&&H===n(m)&&(w?(N(I),I=-1):w=!0,oe(E,L-Q))):(H.sortIndex=$,r(f,H),k||y||(k=!0,O||(O=!0,te()))),H},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(H){var K=b;return function(){var L=b;b=K;try{return H.apply(this,arguments)}finally{b=L}}}})(qa)),qa}var nm;function Kk(){return nm||(nm=1,La.exports=Gk()),La.exports}var im=Kk();const Xk=e=>n=>{const i=S.useRef(n.value),l=S.useRef(0),a=S.useRef(null);return a.current||(a.current={value:i,version:l,listeners:[]}),Dt(()=>{i.current=n.value,l.current+=1,im.unstable_runWithPriority(im.unstable_NormalPriority,()=>{a.current.listeners.forEach(u=>{u([l.current,n.value])})})},[n.value]),S.createElement(e,{value:a.current},n.children)},Ha=e=>{const r=S.createContext({value:{current:e},version:{current:-1},listeners:[]});return r.Provider=Xk(r.Provider),delete r.Consumer,r},sm=(e,r)=>{const n=S.useContext(e),{value:{current:i},version:{current:l},listeners:a}=n,u=r(i),[d,f]=S.useState([i,u]),m=v=>{f(b=>{if(!v)return[i,u];if(v[0]<=l)return Object.is(b[1],u)?b:[i,u];try{if(Object.is(b[0],v[1]))return b;const y=r(v[1]);return Object.is(b[1],y)?b:[v[1],y]}catch{}return[b[0],b[1]]})};Object.is(d[1],u)||m(void 0);const h=xe(m);return Dt(()=>(a.push(h),()=>{const v=a.indexOf(h);a.splice(v,1)}),[h,a]),d[1]};function lm(e){const r=S.useContext(e);return r.version?r.version.current!==-1:!1}const Qk="Shift",Go="Enter",yr=" ",Yk="Tab",Wa="ArrowDown",Va="ArrowLeft",$a="ArrowRight",us="ArrowUp",am="End",cm="Home",Jk="PageDown",Zk="PageUp",Ua="Escape";function um(e,r){const{disabled:n,disabledFocusable:i=!1,["aria-disabled"]:l,onClick:a,onKeyDown:u,onKeyUp:d,...f}=r??{},m=typeof l=="string"?l==="true":l,h=n||i||m,v=xe(k=>{h?(k.preventDefault(),k.stopPropagation()):a?.(k)}),b=xe(k=>{if(u?.(k),k.isDefaultPrevented())return;const w=k.key;if(h&&(w===Go||w===yr)){k.preventDefault(),k.stopPropagation();return}if(w===yr){k.preventDefault();return}else w===Go&&(k.preventDefault(),k.currentTarget.click())}),y=xe(k=>{if(d?.(k),k.isDefaultPrevented())return;const w=k.key;if(h&&(w===Go||w===yr)){k.preventDefault(),k.stopPropagation();return}w===yr&&(k.preventDefault(),k.currentTarget.click())});if(e==="button"||e===void 0)return{...f,disabled:n&&!i,"aria-disabled":i?!0:m,onClick:i?void 0:v,onKeyUp:i?void 0:d,onKeyDown:i?void 0:u};{const k=!!f.href;let w=k?void 0:"button";!w&&h&&(w="link");const _={role:w,tabIndex:i||!k&&!n?0:void 0,...f,onClick:v,onKeyUp:y,onKeyDown:b,"aria-disabled":h};return e==="a"&&h&&(_.href=void 0),_}}const Nt=()=>{},ex={controller:{active:Nt,blur:Nt,find:Nt,first:Nt,focus:Nt,focusLastActive:Nt,scrollActiveIntoView:Nt,last:Nt,next:Nt,prev:Nt,showAttributes:Nt,hideAttributes:Nt,showFocusVisibleAttributes:Nt,hideFocusVisibleAttributes:Nt}},Ga=S.createContext(void 0),Ka=Ga.Provider,dm=()=>{var e;return(e=S.useContext(Ga))!==null&&e!==void 0?e:ex},tx=()=>!!S.useContext(Ga);function rx(e){const{matchOption:r}=e,{targetDocument:n}=nt(),i=S.useRef(null),l=S.useRef(null),a=S.useCallback(f=>Er(f)&&r(f)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,[r]),u=S.useCallback(f=>{f&&n?(l.current=f,i.current=n.createTreeWalker(f,NodeFilter.SHOW_ELEMENT,a)):(l.current=null,i.current=null)},[n,a]);return{optionWalker:S.useMemo(()=>({first:()=>!i.current||!l.current?null:(i.current.currentNode=l.current,i.current.firstChild()),last:()=>!i.current||!l.current?null:(i.current.currentNode=l.current,i.current.lastChild()),next:()=>i.current?i.current.nextNode():null,prev:()=>i.current?i.current.previousNode():null,find:(f,m)=>{if(!i.current||!l.current)return null;const h=m?n?.getElementById(m):null;i.current.currentNode=h??l.current;let v=i.current.currentNode;for(;v&&!f(v.id);)v=i.current.nextNode();return v},setCurrent:f=>{i.current&&(i.current.currentNode=f)}}),[n]),listboxCallbackRef:u}}const fm="data-activedescendant",Ko="data-activedescendant-focusvisible",pm=e=>{if(!e)return;const r=mm(e.parentElement);if(!r)return;const{offsetHeight:n}=e,i=gm(e,r),{scrollMarginTop:l,scrollMarginBottom:a}=ox(e),{offsetHeight:u,scrollTop:d}=r,f=i-l<d,m=i+n+a>d+u,h=2;f?r.scrollTo(0,i-l-h):m&&r.scrollTo(0,i+n+a-u+h)},mm=e=>e?e.scrollHeight>e.offsetHeight?e:mm(e.parentElement):null,gm=(e,r)=>!e||e===r?0:e.contains(r)?r.offsetTop*-1:e.offsetTop+gm(e.offsetParent,r),ox=e=>{var r;const n=(r=e.ownerDocument)===null||r===void 0?void 0:r.defaultView;if(!n)return{scrollMarginTop:0,scrollMarginBottom:0};const i=n.getComputedStyle(e);var l;const a=(l=ds(i.scrollMarginTop))!==null&&l!==void 0?l:ds(i.scrollMarginBlockStart);var u;const d=(u=ds(i.scrollMarginBottom))!==null&&u!==void 0?u:ds(i.scrollMarginBlockEnd);return{scrollMarginTop:a,scrollMarginBottom:d}},ds=e=>e?parseInt(e,10):0,nx=e=>new CustomEvent("activedescendantchange",{bubbles:!0,cancelable:!1,composed:!0,detail:e});function Xa(e){const{imperativeRef:r,matchOption:n}=e,i=S.useRef(!1),l=S.useRef(!0),a=S.useRef(null),u=S.useRef(null),d=S.useRef(null),f=S.useRef(!0),m=S.useCallback(()=>{var C;(C=d.current)===null||C===void 0||C.removeAttribute("aria-activedescendant")},[]),h=S.useCallback(C=>{if(C&&(a.current=C),f.current&&a.current){var E;(E=d.current)===null||E===void 0||E.setAttribute("aria-activedescendant",a.current)}},[]);Fp(C=>{i.current=C;const E=w();E&&(C&&l.current?E.setAttribute(Ko,""):E.removeAttribute(Ko))});const v=xe(n),b=S.useRef(null),{optionWalker:y,listboxCallbackRef:k}=rx({matchOption:v}),w=S.useCallback(()=>{var C;return(C=b.current)===null||C===void 0?void 0:C.querySelector(`#${a.current}`)},[b]),_=S.useCallback(C=>{l.current=C;const E=w();E&&(C&&i.current?E.setAttribute(Ko,""):E.removeAttribute(Ko))},[w]),z=S.useCallback(()=>{const C=w();C&&(C.removeAttribute(fm),C.removeAttribute(Ko)),m(),u.current=a.current,a.current=null;var E;return(E=C?.id)!==null&&E!==void 0?E:null},[w,m]),N=S.useCallback(C=>{if(!C)return;const E=z();pm(C),h(C.id),C.setAttribute(fm,""),i.current&&l.current&&C.setAttribute(Ko,"");const O=nx({id:C.id,previousId:E});C.dispatchEvent(O)},[z,h]),B=S.useMemo(()=>({first:({passive:C}={})=>{const E=y.first();return C||N(E),E?.id},last:({passive:C}={})=>{const E=y.last();return C||N(E),E?.id},next:({passive:C}={})=>{const E=w();if(!E)return;y.setCurrent(E);const O=y.next();return C||N(O),O?.id},prev:({passive:C}={})=>{const E=w();if(!E)return;y.setCurrent(E);const O=y.prev();return C||N(O),O?.id},blur:()=>{z()},active:()=>{var C;return(C=w())===null||C===void 0?void 0:C.id},focus:C=>{if(!b.current)return;const E=b.current.querySelector(`#${C}`);E&&N(E)},focusLastActive:()=>{if(!b.current||!u.current)return;const C=b.current.querySelector(`#${u.current}`);if(C)return N(C),!0},find(C,{passive:E,startFrom:O}={}){const I=y.find(C,O);return E||N(I),I?.id},scrollActiveIntoView:()=>{if(!b.current)return;const C=w();C&&pm(C)},showAttributes(){f.current=!0,h()},hideAttributes(){f.current=!1,m()},showFocusVisibleAttributes(){_(!0)},hideFocusVisibleAttributes(){_(!1)}}),[y,b,h,m,N,z,w,_]);return S.useImperativeHandle(r,()=>B),{listboxRef:Ye(b,k),activeParentRef:d,controller:B}}const ix=ge({root:{mc9l5x:"f1w7gpdv",Bg96gwp:"fez10in"},rtl:{Bz10aip:"f13rod7r"}},{d:[".f1w7gpdv{display:inline;}",".fez10in{line-height:0;}",".f13rod7r{transform:scaleX(-1);}"]}),sx=(e,r)=>{const{title:n,primaryFill:i="currentColor",...l}=e,a={...l,title:void 0,fill:i},u=ix(),d=Ny();return a.className=ce(u.root,r?.flipInRtl&&d?.textDirection==="rtl"&&u.rtl,a.className),n&&(a["aria-label"]=n),!a["aria-label"]&&!a["aria-labelledby"]?a["aria-hidden"]=!0:a.role="img",a},lx=ge({root:{B8gzw0y:"f1dd5bof"}},{m:[["@media (forced-colors: active){.f1dd5bof{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}]]}),vt=(e,r,n,i)=>{const l=r==="1em"?"20":r,a=S.forwardRef((u,d)=>{const f=lx(),m=sx(u,{flipInRtl:i?.flipInRtl}),h={...m,className:ce(m.className,f.root),ref:d,width:r,height:r,viewBox:`0 0 ${l} ${l}`,xmlns:"http://www.w3.org/2000/svg"};return typeof n=="string"?S.createElement("svg",{...h,dangerouslySetInnerHTML:{__html:n}}):S.createElement("svg",h,...n.map(v=>S.createElement("path",{d:v,fill:h.fill})))});return a.displayName=e,a},ax=vt("SearchRegular","1em",["M13.73 14.44a6.5 6.5 0 1 1 .7-.7l3.42 3.4a.5.5 0 0 1-.63.77l-.07-.06-3.42-3.41Zm-.71-.71A5.54 5.54 0 0 0 15 9.5a5.5 5.5 0 1 0-1.98 4.23Z"]),cx=vt("SaveRegular","1em",["M3 5c0-1.1.9-2 2-2h8.38a2 2 0 0 1 1.41.59l1.62 1.62A2 2 0 0 1 17 6.62V15a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm2-1a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1v-4.5c0-.83.67-1.5 1.5-1.5h7c.83 0 1.5.67 1.5 1.5V16a1 1 0 0 0 1-1V6.62a1 1 0 0 0-.3-.7L14.1 4.28a1 1 0 0 0-.71-.29H13v2.5c0 .83-.67 1.5-1.5 1.5h-4A1.5 1.5 0 0 1 6 6.5V4H5Zm2 0v2.5c0 .28.22.5.5.5h4a.5.5 0 0 0 .5-.5V4H7Zm7 12v-4.5a.5.5 0 0 0-.5-.5h-7a.5.5 0 0 0-.5.5V16h8Z"]),ux=vt("CircleFilled","1em",["M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z"]),dx=vt("ArrowDownRegular","1em",["M16.87 10.84a.5.5 0 1 0-.74-.68l-5.63 6.17V2.5a.5.5 0 0 0-1 0v13.83l-5.63-6.17a.5.5 0 0 0-.74.68l6.31 6.91a.75.75 0 0 0 1.11 0l6.32-6.91Z"]),fx=vt("ArrowUpRegular","1em",["M3.13 9.16a.5.5 0 1 0 .74.68L9.5 3.67V17.5a.5.5 0 1 0 1 0V3.67l5.63 6.17a.5.5 0 0 0 .74-.68l-6.32-6.92a.75.75 0 0 0-1.1 0L3.13 9.16Z"],{flipInRtl:!0}),px=vt("CheckmarkFilled","1em",["M7.03 13.9 3.56 10a.75.75 0 0 0-1.12 1l4 4.5c.29.32.79.34 1.09.03l10.5-10.5a.75.75 0 0 0-1.06-1.06l-9.94 9.94Z"]),hm=vt("ChevronDownRegular","1em",["M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z"]),Qa=vt("DismissRegular","1em",["m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"]),mx=vt("Warning12Filled","12",["M5.21 1.46a.9.9 0 0 1 1.58 0l4.09 7.17a.92.92 0 0 1-.79 1.37H1.91a.92.92 0 0 1-.79-1.37l4.1-7.17ZM5.5 4.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-1 0ZM6 6.75a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"]),gx=vt("Info16Regular","16",["M8.5 7.5a.5.5 0 1 0-1 0v3a.5.5 0 0 0 1 0v-3Zm.25-2a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1ZM2 8a6 6 0 1 1 12 0A6 6 0 0 1 2 8Z"]),vm=vt("Checkmark12Filled","12",["M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z"]),hx=vt("Checkmark16Filled","16",["M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 0 1 4.9 12L2.22 9.28a.75.75 0 1 1 1.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 0 1 1.06.04Z"]),vx=vt("CheckmarkCircle12Filled","12",["M1 6a5 5 0 1 1 10 0A5 5 0 0 1 1 6Zm7.35-.9a.5.5 0 1 0-.7-.7L5.5 6.54 4.35 5.4a.5.5 0 1 0-.7.7l1.5 1.5c.2.2.5.2.7 0l2.5-2.5Z"]),bx=vt("Square12Filled","12",["M2 4c0-1.1.9-2 2-2h4a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4Z"]),yx=vt("Square16Filled","16",["M2 4.5A2.5 2.5 0 0 1 4.5 2h7A2.5 2.5 0 0 1 14 4.5v7a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 11.5v-7Z"]),wx=vt("ErrorCircle12Filled","12",["M6 11A5 5 0 1 0 6 1a5 5 0 0 0 0 10Zm-.75-2.75a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0Zm.26-4.84a.5.5 0 0 1 .98 0l.01.09v2.59a.5.5 0 0 1-1 0V3.41Z"]),bm="data-popper-is-intersecting",ym="data-popper-escaped",wm="data-popper-reference-hidden",kx="data-popper-placement",Ya="fui-positioningend",xx=({options:e})=>e,km=S.createContext(void 0);km.Provider;const Sx=()=>{var e;return(e=S.useContext(km))!==null&&e!==void 0?e:xx},_x=["top","right","bottom","left"],ko=Math.min,Qt=Math.max,fs=Math.round,wr=e=>({x:e,y:e}),Bx={left:"right",right:"left",bottom:"top",top:"bottom"},Cx={start:"end",end:"start"};function Ja(e,r,n){return Qt(e,ko(r,n))}function Fr(e,r){return typeof e=="function"?e(r):e}function Ir(e){return e.split("-")[0]}function Xo(e){return e.split("-")[1]}function Za(e){return e==="x"?"y":"x"}function ec(e){return e==="y"?"height":"width"}const zx=new Set(["top","bottom"]);function kr(e){return zx.has(Ir(e))?"y":"x"}function tc(e){return Za(kr(e))}function Nx(e,r,n){n===void 0&&(n=!1);const i=Xo(e),l=tc(e),a=ec(l);let u=l==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return r.reference[a]>r.floating[a]&&(u=ps(u)),[u,ps(u)]}function Tx(e){const r=ps(e);return[rc(e),r,rc(r)]}function rc(e){return e.replace(/start|end/g,r=>Cx[r])}const xm=["left","right"],Sm=["right","left"],Ex=["top","bottom"],Px=["bottom","top"];function Rx(e,r,n){switch(e){case"top":case"bottom":return n?r?Sm:xm:r?xm:Sm;case"left":case"right":return r?Ex:Px;default:return[]}}function Fx(e,r,n,i){const l=Xo(e);let a=Rx(Ir(e),n==="start",i);return l&&(a=a.map(u=>u+"-"+l),r&&(a=a.concat(a.map(rc)))),a}function ps(e){return e.replace(/left|right|bottom|top/g,r=>Bx[r])}function Ix(e){return{top:0,right:0,bottom:0,left:0,...e}}function _m(e){return typeof e!="number"?Ix(e):{top:e,right:e,bottom:e,left:e}}function ms(e){const{x:r,y:n,width:i,height:l}=e;return{width:i,height:l,top:n,left:r,right:r+i,bottom:n+l,x:r,y:n}}function Bm(e,r,n){let{reference:i,floating:l}=e;const a=kr(r),u=tc(r),d=ec(u),f=Ir(r),m=a==="y",h=i.x+i.width/2-l.width/2,v=i.y+i.height/2-l.height/2,b=i[d]/2-l[d]/2;let y;switch(f){case"top":y={x:h,y:i.y-l.height};break;case"bottom":y={x:h,y:i.y+i.height};break;case"right":y={x:i.x+i.width,y:v};break;case"left":y={x:i.x-l.width,y:v};break;default:y={x:i.x,y:i.y}}switch(Xo(r)){case"start":y[u]-=b*(n&&m?-1:1);break;case"end":y[u]+=b*(n&&m?-1:1);break}return y}const jx=async(e,r,n)=>{const{placement:i="bottom",strategy:l="absolute",middleware:a=[],platform:u}=n,d=a.filter(Boolean),f=await(u.isRTL==null?void 0:u.isRTL(r));let m=await u.getElementRects({reference:e,floating:r,strategy:l}),{x:h,y:v}=Bm(m,i,f),b=i,y={},k=0;for(let w=0;w<d.length;w++){const{name:_,fn:z}=d[w],{x:N,y:B,data:C,reset:E}=await z({x:h,y:v,initialPlacement:i,placement:b,strategy:l,middlewareData:y,rects:m,platform:u,elements:{reference:e,floating:r}});h=N??h,v=B??v,y={...y,[_]:{...y[_],...C}},E&&k<=50&&(k++,typeof E=="object"&&(E.placement&&(b=E.placement),E.rects&&(m=E.rects===!0?await u.getElementRects({reference:e,floating:r,strategy:l}):E.rects),{x:h,y:v}=Bm(m,b,f)),w=-1)}return{x:h,y:v,placement:b,strategy:l,middlewareData:y}};async function Qo(e,r){var n;r===void 0&&(r={});const{x:i,y:l,platform:a,rects:u,elements:d,strategy:f}=e,{boundary:m="clippingAncestors",rootBoundary:h="viewport",elementContext:v="floating",altBoundary:b=!1,padding:y=0}=Fr(r,e),k=_m(y),_=d[b?v==="floating"?"reference":"floating":v],z=ms(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(_)))==null||n?_:_.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(d.floating)),boundary:m,rootBoundary:h,strategy:f})),N=v==="floating"?{x:i,y:l,width:u.floating.width,height:u.floating.height}:u.reference,B=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d.floating)),C=await(a.isElement==null?void 0:a.isElement(B))?await(a.getScale==null?void 0:a.getScale(B))||{x:1,y:1}:{x:1,y:1},E=ms(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:N,offsetParent:B,strategy:f}):N);return{top:(z.top-E.top+k.top)/C.y,bottom:(E.bottom-z.bottom+k.bottom)/C.y,left:(z.left-E.left+k.left)/C.x,right:(E.right-z.right+k.right)/C.x}}const Dx=e=>({name:"arrow",options:e,async fn(r){const{x:n,y:i,placement:l,rects:a,platform:u,elements:d,middlewareData:f}=r,{element:m,padding:h=0}=Fr(e,r)||{};if(m==null)return{};const v=_m(h),b={x:n,y:i},y=tc(l),k=ec(y),w=await u.getDimensions(m),_=y==="y",z=_?"top":"left",N=_?"bottom":"right",B=_?"clientHeight":"clientWidth",C=a.reference[k]+a.reference[y]-b[y]-a.floating[k],E=b[y]-a.reference[y],O=await(u.getOffsetParent==null?void 0:u.getOffsetParent(m));let I=O?O[B]:0;(!I||!await(u.isElement==null?void 0:u.isElement(O)))&&(I=d.floating[B]||a.floating[k]);const q=C/2-E/2,j=I/2-w[k]/2-1,U=ko(v[z],j),le=ko(v[N],j),te=U,V=I-w[k]-le,ee=I/2-w[k]/2+q,oe=Ja(te,ee,V),H=!f.arrow&&Xo(l)!=null&&ee!==oe&&a.reference[k]/2-(ee<te?U:le)-w[k]/2<0,K=H?ee<te?ee-te:ee-V:0;return{[y]:b[y]+K,data:{[y]:oe,centerOffset:ee-oe-K,...H&&{alignmentOffset:K}},reset:H}}}),Ox=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(r){var n,i;const{placement:l,middlewareData:a,rects:u,initialPlacement:d,platform:f,elements:m}=r,{mainAxis:h=!0,crossAxis:v=!0,fallbackPlacements:b,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:k="none",flipAlignment:w=!0,..._}=Fr(e,r);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const z=Ir(l),N=kr(d),B=Ir(d)===d,C=await(f.isRTL==null?void 0:f.isRTL(m.floating)),E=b||(B||!w?[ps(d)]:Tx(d)),O=k!=="none";!b&&O&&E.push(...Fx(d,w,k,C));const I=[d,...E],q=await Qo(r,_),j=[];let U=((i=a.flip)==null?void 0:i.overflows)||[];if(h&&j.push(q[z]),v){const ee=Nx(l,u,C);j.push(q[ee[0]],q[ee[1]])}if(U=[...U,{placement:l,overflows:j}],!j.every(ee=>ee<=0)){var le,te;const ee=(((le=a.flip)==null?void 0:le.index)||0)+1,oe=I[ee];if(oe&&(!(v==="alignment"?N!==kr(oe):!1)||U.every(L=>kr(L.placement)===N?L.overflows[0]>0:!0)))return{data:{index:ee,overflows:U},reset:{placement:oe}};let H=(te=U.filter(K=>K.overflows[0]<=0).sort((K,L)=>K.overflows[1]-L.overflows[1])[0])==null?void 0:te.placement;if(!H)switch(y){case"bestFit":{var V;const K=(V=U.filter(L=>{if(O){const Q=kr(L.placement);return Q===N||Q==="y"}return!0}).map(L=>[L.placement,L.overflows.filter(Q=>Q>0).reduce((Q,$)=>Q+$,0)]).sort((L,Q)=>L[1]-Q[1])[0])==null?void 0:V[0];K&&(H=K);break}case"initialPlacement":H=d;break}if(l!==H)return{reset:{placement:H}}}return{}}}};function Cm(e,r){return{top:e.top-r.height,right:e.right-r.width,bottom:e.bottom-r.height,left:e.left-r.width}}function zm(e){return _x.some(r=>e[r]>=0)}const Ax=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(r){const{rects:n}=r,{strategy:i="referenceHidden",...l}=Fr(e,r);switch(i){case"referenceHidden":{const a=await Qo(r,{...l,elementContext:"reference"}),u=Cm(a,n.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:zm(u)}}}case"escaped":{const a=await Qo(r,{...l,altBoundary:!0}),u=Cm(a,n.floating);return{data:{escapedOffsets:u,escaped:zm(u)}}}default:return{}}}}},Nm=new Set(["left","top"]);async function Mx(e,r){const{placement:n,platform:i,elements:l}=e,a=await(i.isRTL==null?void 0:i.isRTL(l.floating)),u=Ir(n),d=Xo(n),f=kr(n)==="y",m=Nm.has(u)?-1:1,h=a&&f?-1:1,v=Fr(r,e);let{mainAxis:b,crossAxis:y,alignmentAxis:k}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return d&&typeof k=="number"&&(y=d==="end"?k*-1:k),f?{x:y*h,y:b*m}:{x:b*m,y:y*h}}const Lx=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(r){var n,i;const{x:l,y:a,placement:u,middlewareData:d}=r,f=await Mx(r,e);return u===((n=d.offset)==null?void 0:n.placement)&&(i=d.arrow)!=null&&i.alignmentOffset?{}:{x:l+f.x,y:a+f.y,data:{...f,placement:u}}}}},qx=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(r){const{x:n,y:i,placement:l}=r,{mainAxis:a=!0,crossAxis:u=!1,limiter:d={fn:_=>{let{x:z,y:N}=_;return{x:z,y:N}}},...f}=Fr(e,r),m={x:n,y:i},h=await Qo(r,f),v=kr(Ir(l)),b=Za(v);let y=m[b],k=m[v];if(a){const _=b==="y"?"top":"left",z=b==="y"?"bottom":"right",N=y+h[_],B=y-h[z];y=Ja(N,y,B)}if(u){const _=v==="y"?"top":"left",z=v==="y"?"bottom":"right",N=k+h[_],B=k-h[z];k=Ja(N,k,B)}const w=d.fn({...r,[b]:y,[v]:k});return{...w,data:{x:w.x-n,y:w.y-i,enabled:{[b]:a,[v]:u}}}}}},Hx=function(e){return e===void 0&&(e={}),{options:e,fn(r){const{x:n,y:i,placement:l,rects:a,middlewareData:u}=r,{offset:d=0,mainAxis:f=!0,crossAxis:m=!0}=Fr(e,r),h={x:n,y:i},v=kr(l),b=Za(v);let y=h[b],k=h[v];const w=Fr(d,r),_=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(f){const B=b==="y"?"height":"width",C=a.reference[b]-a.floating[B]+_.mainAxis,E=a.reference[b]+a.reference[B]-_.mainAxis;y<C?y=C:y>E&&(y=E)}if(m){var z,N;const B=b==="y"?"width":"height",C=Nm.has(Ir(l)),E=a.reference[v]-a.floating[B]+(C&&((z=u.offset)==null?void 0:z[v])||0)+(C?0:_.crossAxis),O=a.reference[v]+a.reference[B]+(C?0:((N=u.offset)==null?void 0:N[v])||0)-(C?_.crossAxis:0);k<E?k=E:k>O&&(k=O)}return{[b]:y,[v]:k}}}},Wx=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(r){var n,i;const{placement:l,rects:a,platform:u,elements:d}=r,{apply:f=()=>{},...m}=Fr(e,r),h=await Qo(r,m),v=Ir(l),b=Xo(l),y=kr(l)==="y",{width:k,height:w}=a.floating;let _,z;v==="top"||v==="bottom"?(_=v,z=b===(await(u.isRTL==null?void 0:u.isRTL(d.floating))?"start":"end")?"left":"right"):(z=v,_=b==="end"?"top":"bottom");const N=w-h.top-h.bottom,B=k-h.left-h.right,C=ko(w-h[_],N),E=ko(k-h[z],B),O=!r.middlewareData.shift;let I=C,q=E;if((n=r.middlewareData.shift)!=null&&n.enabled.x&&(q=B),(i=r.middlewareData.shift)!=null&&i.enabled.y&&(I=N),O&&!b){const U=Qt(h.left,0),le=Qt(h.right,0),te=Qt(h.top,0),V=Qt(h.bottom,0);y?q=k-2*(U!==0||le!==0?U+le:Qt(h.left,h.right)):I=w-2*(te!==0||V!==0?te+V:Qt(h.top,h.bottom))}await f({...r,availableWidth:q,availableHeight:I});const j=await u.getDimensions(d.floating);return k!==j.width||w!==j.height?{reset:{rects:!0}}:{}}}};function gs(){return typeof window<"u"}function Yo(e){return Tm(e)?(e.nodeName||"").toLowerCase():"#document"}function At(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function jr(e){var r;return(r=(Tm(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function Tm(e){return gs()?e instanceof Node||e instanceof At(e).Node:!1}function ar(e){return gs()?e instanceof Element||e instanceof At(e).Element:!1}function xr(e){return gs()?e instanceof HTMLElement||e instanceof At(e).HTMLElement:!1}function Em(e){return!gs()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof At(e).ShadowRoot}const Vx=new Set(["inline","contents"]);function Mn(e){const{overflow:r,overflowX:n,overflowY:i,display:l}=cr(e);return/auto|scroll|overlay|hidden|clip/.test(r+i+n)&&!Vx.has(l)}const $x=new Set(["table","td","th"]);function Ux(e){return $x.has(Yo(e))}const Gx=[":popover-open",":modal"];function hs(e){return Gx.some(r=>{try{return e.matches(r)}catch{return!1}})}const Kx=["transform","translate","scale","rotate","perspective"],Xx=["transform","translate","scale","rotate","perspective","filter"],Qx=["paint","layout","strict","content"];function oc(e){const r=nc(),n=ar(e)?cr(e):e;return Kx.some(i=>n[i]?n[i]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!r&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!r&&(n.filter?n.filter!=="none":!1)||Xx.some(i=>(n.willChange||"").includes(i))||Qx.some(i=>(n.contain||"").includes(i))}function Yx(e){let r=Yr(e);for(;xr(r)&&!Jo(r);){if(oc(r))return r;if(hs(r))return null;r=Yr(r)}return null}function nc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Jx=new Set(["html","body","#document"]);function Jo(e){return Jx.has(Yo(e))}function cr(e){return At(e).getComputedStyle(e)}function vs(e){return ar(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Yr(e){if(Yo(e)==="html")return e;const r=e.assignedSlot||e.parentNode||Em(e)&&e.host||jr(e);return Em(r)?r.host:r}function Pm(e){const r=Yr(e);return Jo(r)?e.ownerDocument?e.ownerDocument.body:e.body:xr(r)&&Mn(r)?r:Pm(r)}function Rm(e,r,n){var i;r===void 0&&(r=[]);const l=Pm(e),a=l===((i=e.ownerDocument)==null?void 0:i.body),u=At(l);return a?(ic(u),r.concat(u,u.visualViewport||[],Mn(l)?l:[],[])):r.concat(l,Rm(l,[]))}function ic(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Fm(e){const r=cr(e);let n=parseFloat(r.width)||0,i=parseFloat(r.height)||0;const l=xr(e),a=l?e.offsetWidth:n,u=l?e.offsetHeight:i,d=fs(n)!==a||fs(i)!==u;return d&&(n=a,i=u),{width:n,height:i,$:d}}function Im(e){return ar(e)?e:e.contextElement}function Zo(e){const r=Im(e);if(!xr(r))return wr(1);const n=r.getBoundingClientRect(),{width:i,height:l,$:a}=Fm(r);let u=(a?fs(n.width):n.width)/i,d=(a?fs(n.height):n.height)/l;return(!u||!Number.isFinite(u))&&(u=1),(!d||!Number.isFinite(d))&&(d=1),{x:u,y:d}}const Zx=wr(0);function jm(e){const r=At(e);return!nc()||!r.visualViewport?Zx:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function eS(e,r,n){return r===void 0&&(r=!1),!n||r&&n!==At(e)?!1:r}function Ln(e,r,n,i){r===void 0&&(r=!1),n===void 0&&(n=!1);const l=e.getBoundingClientRect(),a=Im(e);let u=wr(1);r&&(i?ar(i)&&(u=Zo(i)):u=Zo(e));const d=eS(a,n,i)?jm(a):wr(0);let f=(l.left+d.x)/u.x,m=(l.top+d.y)/u.y,h=l.width/u.x,v=l.height/u.y;if(a){const b=At(a),y=i&&ar(i)?At(i):i;let k=b,w=ic(k);for(;w&&i&&y!==k;){const _=Zo(w),z=w.getBoundingClientRect(),N=cr(w),B=z.left+(w.clientLeft+parseFloat(N.paddingLeft))*_.x,C=z.top+(w.clientTop+parseFloat(N.paddingTop))*_.y;f*=_.x,m*=_.y,h*=_.x,v*=_.y,f+=B,m+=C,k=At(w),w=ic(k)}}return ms({width:h,height:v,x:f,y:m})}function bs(e,r){const n=vs(e).scrollLeft;return r?r.left+n:Ln(jr(e)).left+n}function Dm(e,r){const n=e.getBoundingClientRect(),i=n.left+r.scrollLeft-bs(e,n),l=n.top+r.scrollTop;return{x:i,y:l}}function tS(e){let{elements:r,rect:n,offsetParent:i,strategy:l}=e;const a=l==="fixed",u=jr(i),d=r?hs(r.floating):!1;if(i===u||d&&a)return n;let f={scrollLeft:0,scrollTop:0},m=wr(1);const h=wr(0),v=xr(i);if((v||!v&&!a)&&((Yo(i)!=="body"||Mn(u))&&(f=vs(i)),xr(i))){const y=Ln(i);m=Zo(i),h.x=y.x+i.clientLeft,h.y=y.y+i.clientTop}const b=u&&!v&&!a?Dm(u,f):wr(0);return{width:n.width*m.x,height:n.height*m.y,x:n.x*m.x-f.scrollLeft*m.x+h.x+b.x,y:n.y*m.y-f.scrollTop*m.y+h.y+b.y}}function rS(e){return Array.from(e.getClientRects())}function oS(e){const r=jr(e),n=vs(e),i=e.ownerDocument.body,l=Qt(r.scrollWidth,r.clientWidth,i.scrollWidth,i.clientWidth),a=Qt(r.scrollHeight,r.clientHeight,i.scrollHeight,i.clientHeight);let u=-n.scrollLeft+bs(e);const d=-n.scrollTop;return cr(i).direction==="rtl"&&(u+=Qt(r.clientWidth,i.clientWidth)-l),{width:l,height:a,x:u,y:d}}const Om=25;function nS(e,r){const n=At(e),i=jr(e),l=n.visualViewport;let a=i.clientWidth,u=i.clientHeight,d=0,f=0;if(l){a=l.width,u=l.height;const h=nc();(!h||h&&r==="fixed")&&(d=l.offsetLeft,f=l.offsetTop)}const m=bs(i);if(m<=0){const h=i.ownerDocument,v=h.body,b=getComputedStyle(v),y=h.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,k=Math.abs(i.clientWidth-v.clientWidth-y);k<=Om&&(a-=k)}else m<=Om&&(a+=m);return{width:a,height:u,x:d,y:f}}const iS=new Set(["absolute","fixed"]);function sS(e,r){const n=Ln(e,!0,r==="fixed"),i=n.top+e.clientTop,l=n.left+e.clientLeft,a=xr(e)?Zo(e):wr(1),u=e.clientWidth*a.x,d=e.clientHeight*a.y,f=l*a.x,m=i*a.y;return{width:u,height:d,x:f,y:m}}function Am(e,r,n){let i;if(r==="viewport")i=nS(e,n);else if(r==="document")i=oS(jr(e));else if(ar(r))i=sS(r,n);else{const l=jm(e);i={x:r.x-l.x,y:r.y-l.y,width:r.width,height:r.height}}return ms(i)}function Mm(e,r){const n=Yr(e);return n===r||!ar(n)||Jo(n)?!1:cr(n).position==="fixed"||Mm(n,r)}function lS(e,r){const n=r.get(e);if(n)return n;let i=Rm(e,[]).filter(d=>ar(d)&&Yo(d)!=="body"),l=null;const a=cr(e).position==="fixed";let u=a?Yr(e):e;for(;ar(u)&&!Jo(u);){const d=cr(u),f=oc(u);!f&&d.position==="fixed"&&(l=null),(a?!f&&!l:!f&&d.position==="static"&&!!l&&iS.has(l.position)||Mn(u)&&!f&&Mm(e,u))?i=i.filter(h=>h!==u):l=d,u=Yr(u)}return r.set(e,i),i}function aS(e){let{element:r,boundary:n,rootBoundary:i,strategy:l}=e;const u=[...n==="clippingAncestors"?hs(r)?[]:lS(r,this._c):[].concat(n),i],d=u[0],f=u.reduce((m,h)=>{const v=Am(r,h,l);return m.top=Qt(v.top,m.top),m.right=ko(v.right,m.right),m.bottom=ko(v.bottom,m.bottom),m.left=Qt(v.left,m.left),m},Am(r,d,l));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function cS(e){const{width:r,height:n}=Fm(e);return{width:r,height:n}}function uS(e,r,n){const i=xr(r),l=jr(r),a=n==="fixed",u=Ln(e,!0,a,r);let d={scrollLeft:0,scrollTop:0};const f=wr(0);function m(){f.x=bs(l)}if(i||!i&&!a)if((Yo(r)!=="body"||Mn(l))&&(d=vs(r)),i){const y=Ln(r,!0,a,r);f.x=y.x+r.clientLeft,f.y=y.y+r.clientTop}else l&&m();a&&!i&&l&&m();const h=l&&!i&&!a?Dm(l,d):wr(0),v=u.left+d.scrollLeft-f.x-h.x,b=u.top+d.scrollTop-f.y-h.y;return{x:v,y:b,width:u.width,height:u.height}}function sc(e){return cr(e).position==="static"}function Lm(e,r){if(!xr(e)||cr(e).position==="fixed")return null;if(r)return r(e);let n=e.offsetParent;return jr(e)===n&&(n=n.ownerDocument.body),n}function qm(e,r){const n=At(e);if(hs(e))return n;if(!xr(e)){let l=Yr(e);for(;l&&!Jo(l);){if(ar(l)&&!sc(l))return l;l=Yr(l)}return n}let i=Lm(e,r);for(;i&&Ux(i)&&sc(i);)i=Lm(i,r);return i&&Jo(i)&&sc(i)&&!oc(i)?n:i||Yx(e)||n}const dS=async function(e){const r=this.getOffsetParent||qm,n=this.getDimensions,i=await n(e.floating);return{reference:uS(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function fS(e){return cr(e).direction==="rtl"}const pS={convertOffsetParentRelativeRectToViewportRelativeRect:tS,getDocumentElement:jr,getClippingRect:aS,getOffsetParent:qm,getElementRects:dS,getClientRects:rS,getDimensions:cS,getScale:Zo,isElement:ar,isRTL:fS},mS=Qo,gS=Lx,hS=qx,vS=Ox,bS=Wx,Hm=Ax,yS=Dx,Wm=Hx,wS=(e,r,n)=>{const i=new Map,l={platform:pS,...n},a={...l.platform,_c:i};return jx(e,r,{...l,platform:a})};function Vm(e){const r=e.split("-");return{side:r[0],alignment:r[1]}}const kS=e=>e.nodeName==="HTML"?e:e.parentNode||e.host,xS=e=>{var r;if(e.nodeType!==1)return{};const n=(r=e.ownerDocument)===null||r===void 0?void 0:r.defaultView;return n?n.getComputedStyle(e,null):{}},ys=e=>{const r=e&&kS(e);if(!r)return document.body;switch(r.nodeName){case"HTML":case"BODY":return r.ownerDocument.body;case"#document":return r.body}const{overflow:n,overflowX:i,overflowY:l}=xS(r);return/(auto|scroll|overlay)/.test(n+l+i)?r:ys(r)},SS=e=>{var r;const n=ys(e);return n?n!==((r=n.ownerDocument)===null||r===void 0?void 0:r.body):!1};function lc(e,r){if(r==="window")return e?.ownerDocument.documentElement;if(r==="clippingParents")return"clippingAncestors";if(r==="scrollParent"){let n=ys(e);return n.nodeName==="BODY"&&(n=e?.ownerDocument.documentElement),n}return r}function _S(e,r){return typeof e=="number"||typeof e=="object"&&e!==null?ac(e,r):typeof e=="function"?n=>{const i=e(n);return ac(i,r)}:{mainAxis:r}}const ac=(e,r)=>{if(typeof e=="number")return{mainAxis:e+r};var n;return{...e,mainAxis:((n=e.mainAxis)!==null&&n!==void 0?n:0)+r}};function $m(e,r){if(typeof e=="number")return e;const{start:n,end:i,...l}=e,a=l,u=r?"end":"start",d=r?"start":"end";return e[u]&&(a.left=e[u]),e[d]&&(a.right=e[d]),a}const BS=e=>({above:"top",below:"bottom",before:e?"right":"left",after:e?"left":"right"}),CS=()=>({start:"start",end:"end",top:"start",bottom:"end",center:void 0}),zS=(e,r)=>{const n=e==="above"||e==="below",i=r==="top"||r==="bottom";return n&&i||!n&&!i},Um=(e,r,n)=>{const i=zS(r,e)?"center":e,l=r&&BS(n)[r],a=i&&CS()[i];return l&&a?`${l}-${a}`:l},NS=()=>({top:"above",bottom:"below",right:"after",left:"before"}),TS=e=>e==="above"||e==="below"?{start:"start",end:"end"}:{start:"top",end:"bottom"},ES=e=>{const{side:r,alignment:n}=Vm(e),i=NS()[r],l=n&&TS(i)[n];return{position:i,alignment:l}},PS={above:{position:"above",align:"center"},"above-start":{position:"above",align:"start"},"above-end":{position:"above",align:"end"},below:{position:"below",align:"center"},"below-start":{position:"below",align:"start"},"below-end":{position:"below",align:"end"},before:{position:"before",align:"center"},"before-top":{position:"before",align:"top"},"before-bottom":{position:"before",align:"bottom"},after:{position:"after",align:"center"},"after-top":{position:"after",align:"top"},"after-bottom":{position:"after",align:"bottom"}};function cc(e){return e==null?{}:typeof e=="string"?PS[e]:e}function uc(e,r,n){const i=S.useRef(!0),[l]=S.useState(()=>({value:e,callback:r,facade:{get current(){return l.value},set current(a){const u=l.value;u!==a&&(l.value=a,l.callback(a,u))}}}));return Dt(()=>{i.current=!1},[]),l.callback=r,l.facade}function RS(e){let r;return()=>(r||(r=new Promise(n=>{Promise.resolve().then(()=>{r=void 0,n(e())})})),r)}function FS(e){const{arrow:r,middlewareData:n}=e;if(!n.arrow||!r)return;const{x:i,y:l}=n.arrow;Object.assign(r.style,{left:i!=null?`${i}px`:"",top:l!=null?`${l}px`:""})}function IS(e){var r,n,i;const{container:l,placement:a,middlewareData:u,strategy:d,lowPPI:f,coordinates:m,useTransform:h=!0}=e;if(!l)return;l.setAttribute(kx,a),l.removeAttribute(bm),u.intersectionObserver.intersecting&&l.setAttribute(bm,""),l.removeAttribute(ym),!((r=u.hide)===null||r===void 0)&&r.escaped&&l.setAttribute(ym,""),l.removeAttribute(wm),!((n=u.hide)===null||n===void 0)&&n.referenceHidden&&l.setAttribute(wm,"");const v=((i=l.ownerDocument.defaultView)===null||i===void 0?void 0:i.devicePixelRatio)||1,b=Math.round(m.x*v)/v,y=Math.round(m.y*v)/v;if(Object.assign(l.style,{position:d}),h){Object.assign(l.style,{transform:f?`translate(${b}px, ${y}px)`:`translate3d(${b}px, ${y}px, 0)`});return}Object.assign(l.style,{left:`${b}px`,top:`${y}px`})}const jS=e=>{switch(e){case"always":case!0:return{applyMaxWidth:!0,applyMaxHeight:!0};case"width-always":case"width":return{applyMaxWidth:!0,applyMaxHeight:!1};case"height-always":case"height":return{applyMaxWidth:!1,applyMaxHeight:!0};default:return!1}};function Gm(e){const r=[];let n=e;for(;n;){const i=ys(n);if(e.ownerDocument.body===i){r.push(i);break}if(i.nodeName==="BODY"&&i!==e.ownerDocument.body)break;r.push(i),n=i}return r}function DS(e,r){return new e.ResizeObserver(r)}function OS(e){let r=!1;const{container:n,target:i,arrow:l,strategy:a,middleware:u,placement:d,useTransform:f=!0,disableUpdateOnResize:m=!1}=e,h=n.ownerDocument.defaultView;if(!i||!n||!h)return{updatePosition:()=>{},dispose:()=>{}};const v=m?null:DS(h,z=>{z.every(B=>B.contentRect.width>0&&B.contentRect.height>0)&&w()});let b=!0;const y=new Set;Object.assign(n.style,{position:"fixed",left:0,top:0,margin:0});const k=()=>{r||(b&&(Gm(n).forEach(z=>y.add(z)),Er(i)&&Gm(i).forEach(z=>y.add(z)),y.forEach(z=>{z.addEventListener("scroll",w,{passive:!0})}),v?.observe(n),Er(i)&&v?.observe(i),b=!1),Object.assign(n.style,{position:a}),wS(i,n,{placement:d,middleware:u,strategy:a}).then(({x:z,y:N,middlewareData:B,placement:C})=>{r||(FS({arrow:l,middlewareData:B}),IS({container:n,middlewareData:B,placement:C,coordinates:{x:z,y:N},lowPPI:(h?.devicePixelRatio||1)<=1,strategy:a,useTransform:f}),n.dispatchEvent(new CustomEvent(Ya)))}).catch(z=>{}))},w=RS(()=>k()),_=()=>{r=!0,h&&(h.removeEventListener("scroll",w),h.removeEventListener("resize",w)),y.forEach(z=>{z.removeEventListener("scroll",w)}),y.clear(),v?.disconnect()};return h&&(h.addEventListener("scroll",w,{passive:!0}),h.addEventListener("resize",w)),w(),{updatePosition:w,dispose:_}}function AS(){return{name:"coverTarget",fn:e=>{const{placement:r,rects:n,x:i,y:l}=e,a=Vm(r).side,u={x:i,y:l};switch(a){case"bottom":u.y-=n.reference.height;break;case"top":u.y+=n.reference.height;break;case"left":u.x+=n.reference.width;break;case"right":u.x-=n.reference.width;break}return u}}}function MS(e){const{hasScrollableElement:r,flipBoundary:n,container:i,fallbackPositions:l=[],isRtl:a}=e,u=l.reduce((d,f)=>{const{position:m,align:h}=cc(f),v=Um(h,m,a);return v&&d.push(v),d},[]);return vS({...r&&{boundary:"clippingAncestors"},...n&&{altBoundary:!0,boundary:lc(i,n)},fallbackStrategy:"bestFit",...u.length&&{fallbackPlacements:u}})}function LS(){return{name:"intersectionObserver",fn:async e=>{const r=e.rects.floating,n=await mS(e,{altBoundary:!0}),i=n.top<r.height&&n.top>0,l=n.bottom<r.height&&n.bottom>0;return{data:{intersecting:i||l}}}}}const qS=e=>({name:"resetMaxSize",fn({middlewareData:r,elements:n}){var i;if(!((i=r.resetMaxSize)===null||i===void 0)&&i.maxSizeAlreadyReset)return{};const{applyMaxWidth:l,applyMaxHeight:a}=e;return l&&(n.floating.style.removeProperty("box-sizing"),n.floating.style.removeProperty("max-width"),n.floating.style.removeProperty("width")),a&&(n.floating.style.removeProperty("box-sizing"),n.floating.style.removeProperty("max-height"),n.floating.style.removeProperty("height")),{data:{maxSizeAlreadyReset:!0},reset:{rects:!0}}}});function HS(e,r){const{container:n,overflowBoundary:i,overflowBoundaryPadding:l,isRtl:a}=r;return bS({...l&&{padding:$m(l,a)},...i&&{altBoundary:!0,boundary:lc(n,i)},apply({availableHeight:u,availableWidth:d,elements:f,rects:m}){const h=(y,k,w)=>{if(y&&(f.floating.style.setProperty("box-sizing","border-box"),f.floating.style.setProperty(`max-${k}`,`${w}px`),m.floating[k]>w)){f.floating.style.setProperty(k,`${w}px`);const _=k==="width"?"x":"y";f.floating.style.getPropertyValue(`overflow-${_}`)||f.floating.style.setProperty(`overflow-${_}`,"auto")}},{applyMaxWidth:v,applyMaxHeight:b}=e;h(v,"width",d),h(b,"height",u)}})}function WS(e){return!e||typeof e=="number"||typeof e=="object"?e:({rects:{floating:r,reference:n},placement:i})=>{const{position:l,alignment:a}=ES(i);return e({positionedRect:r,targetRect:n,position:l,alignment:a})}}function VS(e){const r=WS(e);return gS(r)}function $S(e){const{hasScrollableElement:r,shiftToCoverTarget:n,disableTether:i,overflowBoundary:l,container:a,overflowBoundaryPadding:u,isRtl:d}=e;return hS({...r&&{boundary:"clippingAncestors"},...n&&{crossAxis:!0,limiter:Wm({crossAxis:!0,mainAxis:!1})},...i&&{crossAxis:i==="all",limiter:Wm({crossAxis:i!=="all",mainAxis:!1})},...u&&{padding:$m(u,d)},...l&&{altBoundary:!0,boundary:lc(a,l)}})}const Km="--fui-match-target-size";function US(){return{name:"matchTargetSize",fn:async e=>{const{rects:{reference:r,floating:n},elements:{floating:i},middlewareData:{matchTargetSize:{matchTargetSizeAttempt:l=!1}={}}}=e;if(r.width===n.width||l)return{};const{width:a}=r;return i.style.setProperty(Km,`${a}px`),i.style.width||(i.style.width=`var(${Km})`),{data:{matchTargetSizeAttempt:!0},reset:{rects:!0}}}}}function GS(e,r){const{align:n,arrowPadding:i,autoSize:l,coverTarget:a,disableUpdateOnResize:u,flipBoundary:d,offset:f,overflowBoundary:m,pinned:h,position:v,unstable_disableTether:b,strategy:y,overflowBoundaryPadding:k,fallbackPositions:w,useTransform:_,matchTargetSize:z,shiftToCoverTarget:N}=r;return S.useCallback((B,C)=>e({container:B,arrow:C,options:{autoSize:l,disableUpdateOnResize:u,matchTargetSize:z,offset:f,strategy:y,coverTarget:a,flipBoundary:d,overflowBoundary:m,useTransform:_,overflowBoundaryPadding:k,pinned:h,arrowPadding:i,align:n,fallbackPositions:w,shiftToCoverTarget:N,position:v,unstable_disableTether:b}}),[l,u,z,f,y,a,d,m,_,k,h,i,n,w,N,v,b,e])}function KS(e){const{dir:r,targetDocument:n}=nt(),i=r==="rtl",l=GS(Sx(),e),{positionFixed:a}=e;return S.useCallback((u,d)=>{const f=SS(u),m=l(u,d),{autoSize:h,disableUpdateOnResize:v,matchTargetSize:b,offset:y,coverTarget:k,flipBoundary:w,overflowBoundary:_,useTransform:z,overflowBoundaryPadding:N,pinned:B,position:C,arrowPadding:E,strategy:O,align:I,fallbackPositions:q,shiftToCoverTarget:j,unstable_disableTether:U}=m,le=jS(h),te=[le&&qS(le),b&&US(),y&&VS(y),k&&AS(),!B&&MS({container:u,flipBoundary:w,hasScrollableElement:f,isRtl:i,fallbackPositions:q}),$S({container:u,hasScrollableElement:f,overflowBoundary:_,disableTether:U,overflowBoundaryPadding:N,isRtl:i,shiftToCoverTarget:j}),le&&HS(le,{container:u,overflowBoundary:_,overflowBoundaryPadding:N,isRtl:i}),LS(),d&&yS({element:d,padding:E}),Hm({strategy:"referenceHidden"}),Hm({strategy:"escaped"}),!1].filter(Boolean);return{placement:Um(I,C,i),middleware:te,strategy:O??a?"fixed":"absolute",disableUpdateOnResize:v,useTransform:z}},[l,i,n,a])}function Xm(e){"use no memo";const r=S.useRef(null),n=S.useRef(null),i=S.useRef(null),l=S.useRef(null),a=S.useRef(null),{enabled:u=!0}=e,d=KS(e),f=S.useCallback(()=>{r.current&&r.current.dispose(),r.current=null;var k;const w=(k=i.current)!==null&&k!==void 0?k:n.current;u&&ts()&&w&&l.current&&(r.current=OS({container:l.current,target:w,arrow:a.current,...d(l.current,a.current)}))},[u,d]),m=xe(k=>{i.current=k,f()});S.useImperativeHandle(e.positioningRef,()=>({updatePosition:()=>{var k;return(k=r.current)===null||k===void 0?void 0:k.updatePosition()},setTarget:k=>{e.target,m(k)}}),[e.target,m]),Dt(()=>{var k;m((k=e.target)!==null&&k!==void 0?k:null)},[e.target,m]),Dt(()=>{f()},[f]);const h=uc(null,k=>{n.current!==k&&(n.current=k,f())}),v=xe(()=>{var k;return(k=e.onPositioningEnd)===null||k===void 0?void 0:k.call(e)}),b=uc(null,k=>{if(l.current!==k){var w;(w=l.current)===null||w===void 0||w.removeEventListener(Ya,v),k?.addEventListener(Ya,v),l.current=k,f()}}),y=uc(null,k=>{a.current!==k&&(a.current=k,f())});return{targetRef:h,containerRef:b,arrowRef:y}}function XS(e){return Er(e)?{element:e}:typeof e=="object"?e===null?{element:null}:e:{}}const QS=ge({root:{qhf8xq:"f1euv43f",Bhzewxz:"f15twtuk",oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["f1e31b4d","f1vgc2s3"],Bj3rh1h:"f494woh"}},{d:[".f1euv43f{position:absolute;}",".f15twtuk{top:0;}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".f494woh{z-index:1000000;}"]}),Qm=Ai.useInsertionEffect,YS=e=>{"use no memo";const{className:r,dir:n,focusVisibleRef:i,targetNode:l}=e,a=S.useMemo(()=>{if(l===void 0||e.disabled)return null;const u=l.ownerDocument.createElement("div");return l.appendChild(u),u},[l,e.disabled]);return S.useMemo(()=>{a&&(a.className=r,a.setAttribute("dir",n),a.setAttribute("data-portal-node","true"),i.current=a)},[r,n,a,i]),S.useEffect(()=>()=>{a?.remove()},[a]),a},JS=()=>{let e;function r(i,l){return e||(l&&(e=i.ownerDocument.createElement("div"),i.appendChild(e)),e)}function n(){e&&(e.remove(),e=void 0)}return{get:r,dispose:n}},ZS=Qm?e=>{"use no memo";const{className:r,dir:n,focusVisibleRef:i,targetNode:l}=e,[a]=S.useState(JS),u=S.useMemo(()=>l===void 0||e.disabled?null:new Proxy({},{get(d,f){if(f==="nodeType")return 1;if(f==="remove"){const v=a.get(l,!1);return v&&v.childNodes.length===0&&a.dispose(),()=>{}}const m=a.get(l,!0),h=m?m[f]:void 0;return typeof h=="function"?h.bind(m):h},set(d,f,m){const h=f==="_virtual"||f==="focusVisible",v=h?a.get(l,!1):a.get(l,!0);return h&&!v?!0:v?(Object.assign(v,{[f]:m}),!0):!1}}),[a,l,e.disabled]);return Qm(()=>{if(!u)return;const d=r.split(" ").filter(Boolean);return u.classList.add(...d),u.setAttribute("dir",n),u.setAttribute("data-portal-node","true"),i.current=u,()=>{u.classList.remove(...d),u.removeAttribute("dir")}},[r,n,u,i]),S.useEffect(()=>()=>{u?.remove()},[u]),u}:YS,e_=e=>{"use no memo";const{targetDocument:r,dir:n}=nt(),i=Q1(),l=Ia(),a=QS(),u=q1(),d={dir:n,disabled:e.disabled,focusVisibleRef:l,className:ce(u,a.root,e.className),targetNode:i??r?.body};return ZS(d)},t_=e=>{const{element:r,className:n}=XS(e.mountNode),i=S.useRef(null),l=e_({disabled:!!r,className:n}),a=r??l,u={children:e.children,mountNode:a,virtualParentRootRef:i};return S.useEffect(()=>{if(!a)return;const d=i.current,f=a.contains(d);if(d&&!f)return Jf(a,d),()=>{Jf(a,void 0)}},[i,a]),u};var dc=Pd();const r_=e=>S.createElement("span",{hidden:!0,ref:e.virtualParentRootRef},e.mountNode&&dc.createPortal(S.createElement(S.Fragment,null,e.children,S.createElement("span",{hidden:!0})),e.mountNode)),ws=e=>{const r=t_(e);return r_(r)};ws.displayName="Portal";const o_=6,n_=4,i_=e=>-1,s_=e=>{};function l_(e){const{targetDocument:r}=nt(),n=r?.defaultView,i=n?n.setTimeout:i_,l=n?n.clearTimeout:s_,a=S.useRef(void 0),u=S.useCallback((f,m)=>(a.current!==void 0&&l(a.current),a.current=i(f,m??0),a.current),[l,i]),d=S.useCallback(()=>{a.current!==void 0&&(l(a.current),a.current=void 0)},[l]);return S.useEffect(()=>{const f=e.current;return()=>{(!f||!f.isConnected)&&d()}},[d,e]),[u,d]}const a_=e=>{"use no memo";var r,n,i,l,a,u,d;const f=V1(),m=ny(),{targetDocument:h}=nt(),[v,b]=Tr({state:e.visible,initialState:!1}),{appearance:y="normal",children:k,content:w,withArrow:_=!1,positioning:z="above",onVisibleChange:N,relationship:B,showDelay:C=250,hideDelay:E=250,mountNode:O}=e,I={withArrow:_,positioning:z,showDelay:C,hideDelay:E,relationship:B,visible:v,shouldRenderTooltip:v,appearance:y,mountNode:O,components:{content:"div"},content:Ee(w,{defaultProps:{role:"tooltip"},elementType:"div"})};I.content.id=Gt("tooltip-",I.content.id);const q={enabled:I.visible,arrowPadding:2*n_,position:"above",align:"center",offset:4,...cc(I.positioning)};I.withArrow&&(q.offset=_S(q.offset,o_));const{targetRef:j,containerRef:U,arrowRef:le}=Xm(q),[te,V]=l_(U),ee=S.useCallback((ne,ae)=>{V(),b(be=>(ae.visible!==be&&N?.(ne,ae),ae.visible))},[V,b,N]);I.content.ref=Ye(I.content.ref,U),I.arrowRef=le,Dt(()=>{if(v){var ne;const ae={hide:_e=>ee(void 0,{visible:!1,documentKeyboardEvent:_e})};(ne=f.visibleTooltip)===null||ne===void 0||ne.hide(),f.visibleTooltip=ae;const be=_e=>{_e.key===Ua&&!_e.defaultPrevented&&(ae.hide(_e),_e.preventDefault())};return h?.addEventListener("keydown",be,{capture:!0}),()=>{f.visibleTooltip===ae&&(f.visibleTooltip=void 0),h?.removeEventListener("keydown",be,{capture:!0})}}},[f,h,v,ee]);const oe=S.useRef(!1),H=S.useCallback(ne=>{if(ne.type==="focus"&&oe.current){oe.current=!1;return}const ae=f.visibleTooltip?0:I.showDelay;te(()=>{ee(ne,{visible:!0})},ae),ne.persist()},[te,ee,I.showDelay,f]),K=$w(),[L]=S.useState(()=>{const ne=be=>{var _e;!((_e=be.detail)===null||_e===void 0)&&_e.isFocusedProgrammatically&&!K()&&(oe.current=!0)};let ae=null;return be=>{ae?.removeEventListener(Ot,ne),be?.addEventListener(Ot,ne),ae=be}}),Q=S.useCallback(ne=>{let ae=I.hideDelay;ne.type==="blur"&&(ae=0,oe.current=h?.activeElement===ne.target),te(()=>{ee(ne,{visible:!1})},ae),ne.persist()},[te,ee,I.hideDelay,h]);I.content.onPointerEnter=je(I.content.onPointerEnter,V),I.content.onPointerLeave=je(I.content.onPointerLeave,Q),I.content.onFocus=je(I.content.onFocus,V),I.content.onBlur=je(I.content.onBlur,Q);const $=Kf(k),F={},M=($==null||(r=$.props)===null||r===void 0?void 0:r["aria-haspopup"])&&(($==null||(n=$.props)===null||n===void 0?void 0:n["aria-expanded"])===!0||($==null||(i=$.props)===null||i===void 0?void 0:i["aria-expanded"])==="true");return B==="label"?typeof I.content.children=="string"?F["aria-label"]=I.content.children:(F["aria-labelledby"]=I.content.id,I.shouldRenderTooltip=!0):B==="description"&&(F["aria-describedby"]=I.content.id,I.shouldRenderTooltip=!0),(m||M)&&(I.shouldRenderTooltip=!1),I.children=my(k,{...F,...$?.props,ref:Ye(fy($),L,q.target===void 0?j:void 0),onPointerEnter:xe(je($==null||(l=$.props)===null||l===void 0?void 0:l.onPointerEnter,H)),onPointerLeave:xe(je($==null||(a=$.props)===null||a===void 0?void 0:a.onPointerLeave,Q)),onFocus:xe(je($==null||(u=$.props)===null||u===void 0?void 0:u.onFocus,H)),onBlur:xe(je($==null||(d=$.props)===null||d===void 0?void 0:d.onBlur,Q))}),I},c_=e=>Je(S.Fragment,{children:[e.children,e.shouldRenderTooltip&&ue(ws,{mountNode:e.mountNode,children:Je(e.content,{children:[e.withArrow&&ue("div",{ref:e.arrowRef,className:e.arrowClassName}),e.content.children]})})]}),u_={content:"fui-Tooltip__content"},d_=ge({root:{mc9l5x:"fjseox",B7ck84d:"f1ewtqcl",B2u0y6b:"f132xexn",Bceei9c:"f158kwzp",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm",Btd35i7:"fokg9q4",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f9ggezi",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1bzqsji",De3pzq:"fxugw4r",sj55zd:"f19n0e5",Bhu2qc9:"fxeb0a7"},visible:{mc9l5x:"ftgm304"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},arrow:{B7ck84d:"f1ewtqcl",qhf8xq:"f1euv43f",Bj3rh1h:"f1bsuimh",rhnwrx:"f1s3jn22",Bdy53xb:"fv40uqz",De3pzq:"f1u2r49w",B2eet1l:"fqhgnl",Beyfa6y:"f17bz04i",Bz10aip:"f36o3x3",Bqenvij:"fzofk8q",a9b677:"f1wbx1ie",Ftih45:"f1wl9k8s",Br0sdwz:"f1aocrix",cmx5o7:"f1ljr5q2",susq4k:0,Biibvgv:0,Bicfajf:0,qehafq:0,Brs5u8j:"f155f1qt",Ccq8qp:"f9mhzq7",Baz25je:"fr6rhvx",Bcgcnre:0,Bqjgrrk:0,qa3bma:0,y0oebl:0,Biqmznv:0,Bm6vgfq:0,Bbv0w2i:0,uvfttm:0,eqrjj:0,Bk5zm6e:0,m598lv:0,B4f6apu:0,ydt019:0,Bq4z7u6:0,Bdkvgpv:0,B0qfbqy:0,kj8mxx:"f1kc0wz4",r59vdv:"fgq90dz",Bkw5xw4:"fq0y47f",hl6cv3:"f1pwrbz6",aea9ga:"f1hxxcvm",yayu3t:"fw8rgyo",Bhsv975:"f1wnzycx",rhl9o9:"f1730wal",B7gxrvb:"f1fy4ixr",B6q6orb:"fobkauc",B0lu1f8:"f16bqv1l"}},{d:[".fjseox{display:none;}",".f1ewtqcl{box-sizing:border-box;}",".f132xexn{max-width:240px;}",".f158kwzp{cursor:default;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fokg9q4{overflow-wrap:break-word;}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],[".f9ggezi{border:1px solid var(--colorTransparentStroke);}",{p:-2}],[".f1bzqsji{padding:4px 11px 6px 11px;}",{p:-1}],".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".fxeb0a7{filter:drop-shadow(0 0 2px var(--colorNeutralShadowAmbient)) drop-shadow(0 4px 8px var(--colorNeutralShadowKey));}",".ftgm304{display:block;}",".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".f1euv43f{position:absolute;}",".f1bsuimh{z-index:-1;}",".f1s3jn22{--fui-positioning-arrow-height:8.484px;}",".fv40uqz{--fui-positioning-arrow-offset:-4.242px;}",".f1u2r49w{background-color:inherit;}",".fqhgnl{background-clip:content-box;}",".f17bz04i{border-bottom-left-radius:var(--borderRadiusSmall);}",".f36o3x3{transform:rotate(var(--fui-positioning-arrow-angle));}",".fzofk8q{height:var(--fui-positioning-arrow-height);}",".f1wbx1ie{width:var(--fui-positioning-arrow-height);}",'.f1wl9k8s::before{content:"";}',".f1aocrix::before{display:block;}",".f1ljr5q2::before{background-color:inherit;}",[".f155f1qt::before{margin:-1px;}",{p:-1}],".f9mhzq7::before{width:100%;}",".fr6rhvx::before{height:100%;}",[".f1kc0wz4::before{border:1px solid var(--colorTransparentStroke);}",{p:-2}],".fgq90dz::before{border-bottom-left-radius:var(--borderRadiusSmall);}",".fq0y47f::before{clip-path:polygon(0% 0%, 100% 100%, 0% 100%);}",'[data-popper-placement^="top"] .f1pwrbz6{bottom:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="top"] .f1hxxcvm{--fui-positioning-arrow-angle:-45deg;}','[data-popper-placement^="right"] .fw8rgyo{left:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="right"] .f1wnzycx{--fui-positioning-arrow-angle:45deg;}','[data-popper-placement^="bottom"] .f1730wal{top:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="bottom"] .f1fy4ixr{--fui-positioning-arrow-angle:135deg;}','[data-popper-placement^="left"] .fobkauc{right:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="left"] .f16bqv1l{--fui-positioning-arrow-angle:225deg;}']}),f_=e=>{"use no memo";const r=d_();return e.content.className=ce(u_.content,r.root,e.appearance==="inverted"&&r.inverted,e.visible&&r.visible,e.content.className),e.arrowClassName=r.arrow,e},fc=e=>{const r=a_(e);return f_(r),Ge("useTooltipStyles_unstable")(r),c_(r)};fc.displayName="Tooltip",fc.isFluentTriggerComponent=!0;const p_=e=>{const{iconOnly:r,iconPosition:n}=e;return Je(e.root,{children:[n!=="after"&&e.icon&&ue(e.icon,{}),!r&&e.root.children,n==="after"&&e.icon&&ue(e.icon,{})]})},Ym=S.createContext(void 0),m_={};Ym.Provider;const g_=()=>{var e;return(e=S.useContext(Ym))!==null&&e!==void 0?e:m_},h_=(e,r)=>{const{size:n}=g_(),{appearance:i="secondary",as:l="button",disabled:a=!1,disabledFocusable:u=!1,icon:d,iconPosition:f="before",shape:m="rounded",size:h=n??"medium"}=e,v=Ie(d,{elementType:"span"});return{appearance:i,disabled:a,disabledFocusable:u,iconPosition:f,shape:m,size:h,iconOnly:!!(v?.children&&!e.children),components:{root:"button",icon:"span"},root:Ee(xt(l,um(e.as,e)),{elementType:"button",defaultProps:{ref:r,type:l==="button"?"button":void 0}}),icon:v}},Jm={root:"fui-Button",icon:"fui-Button__icon"},v_=ct("r1alrhcs",null,{r:[".r1alrhcs{align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;text-decoration-line:none;vertical-align:middle;margin:0;overflow:hidden;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);font-family:var(--fontFamilyBase);outline-style:none;padding:5px var(--spacingHorizontalM);min-width:96px;border-radius:var(--borderRadiusMedium);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase300);transition-duration:var(--durationFaster);transition-property:background,border,color;transition-timing-function:var(--curveEasyEase);}",".r1alrhcs:hover{background-color:var(--colorNeutralBackground1Hover);border-color:var(--colorNeutralStroke1Hover);color:var(--colorNeutralForeground1Hover);cursor:pointer;}",".r1alrhcs:hover:active{background-color:var(--colorNeutralBackground1Pressed);border-color:var(--colorNeutralStroke1Pressed);color:var(--colorNeutralForeground1Pressed);outline-style:none;}",".r1alrhcs[data-fui-focus-visible]{border-color:var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);border-width:1px;outline:var(--strokeWidthThick) solid var(--colorTransparentStroke);box-shadow:0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;z-index:1;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1alrhcs{transition-duration:0.01ms;}}","@media (forced-colors: active){.r1alrhcs:focus{border-color:ButtonText;}.r1alrhcs:hover{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}.r1alrhcs:hover:active{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}}","@supports (-moz-appearance:button){.r1alrhcs[data-fui-focus-visible]{box-shadow:0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),b_=ct("rywnvv2",null,[".rywnvv2{align-items:center;display:inline-flex;justify-content:center;font-size:20px;height:20px;width:20px;--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}"]),y_=ge({outline:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",iro3zm:"fwiml72"},primary:{De3pzq:"ffp7eso",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1phragk",Jwef8y:"f15wkkf3",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f1rq72xc",iro3zm:"fnp9lpt",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1d6v5y2",By8wz76:"f1nz3ub2",Bcq6wej:"fag2qd2",Jcjdmf:["fmvhcg7","f14bpyus"],sc4o1m:"f1o3dhpw",Bosien3:["f14bpyus","fmvhcg7"],B7iucu3:"fqc85l4",B8gzw0y:"f1h3a8gf",Bbkh6qg:"fkiggi6",F230oe:"f8gmj8i",Bdw8ktp:["f1ap8nzx","fjag8bx"],Bj1xduy:"f1igan7k",Bhh2cfd:["fjag8bx","f1ap8nzx"],Bahaeuw:"f1v3eptx",rxnm8d:"fpelvsg",Bso50sa:"f1r9enuy",B65bq0w:["fdvt4n0","f1grx941"],Buont6p:"f1l34yyb",B0o9ejx:["f1grx941","fdvt4n0"],Dcq74g:"fqfbdvs"},secondary:{},subtle:{De3pzq:"fhovq9v",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"f1t94bn6",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"fnwyq0v",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",Bbdnnc7:"fy5bs14",iro3zm:"fsv2rcd",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1omzyqd",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",x3br3k:"fj8yq94",Bahaeuw:"f1v3eptx",Buhizc3:"fivsta0",Dcq74g:"fqfbdvs",zyxd5v:"f1wfsnb3"},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f139oj5f",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1fg1p5m",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",Bbkh6qg:"fxoo9op",Bahaeuw:"f1v3eptx",rxnm8d:"f11slz88",Dcq74g:"fqfbdvs"},circular:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f44lkw9"},rounded:{},square:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f1fabniw"},small:{Bf4jedk:"fh7ncta",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fneth5b",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},smallWithIcon:{Byoj8tv:"f1brlhvm",z8tnut:"f1sl3k7w"},medium:{},large:{Bf4jedk:"f14es27b",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f4db1ww",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},largeWithIcon:{Byoj8tv:"fy7v416",z8tnut:"f1a1bwwz"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",[".f44lkw9{border-radius:var(--borderRadiusCircular);}",{p:-1}],[".f1fabniw{border-radius:var(--borderRadiusNone);}",{p:-1}],".fh7ncta{min-width:64px;}",[".fneth5b{padding:3px var(--spacingHorizontalS);}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1brlhvm{padding-bottom:1px;}",".f1sl3k7w{padding-top:1px;}",".f14es27b{min-width:96px;}",[".f4db1ww{padding:8px var(--spacingHorizontalL);}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fy7v416{padding-bottom:7px;}",".f1a1bwwz{padding-top:7px;}"],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}",".f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}",".fnp9lpt:hover:active{background-color:var(--colorBrandBackgroundPressed);}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}",".f1d6v5y2:hover:active{color:var(--colorNeutralForegroundOnBrand);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".ft1hn21:hover .fui-Icon-filled{display:inline;}",".fuxngvv:hover .fui-Icon-regular{display:none;}",".fy5bs14:hover .fui-Button__icon{color:var(--colorNeutralForeground2BrandHover);}",".fsv2rcd:hover:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1omzyqd:hover:active{color:var(--colorNeutralForeground2Pressed);}",".f1dfjoow:hover:active .fui-Icon-filled{display:inline;}",".f1j98vj9:hover:active .fui-Icon-regular{display:none;}",".fj8yq94:hover:active .fui-Button__icon{color:var(--colorNeutralForeground2BrandPressed);}",".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}",".f1fg1p5m:hover:active{color:var(--colorNeutralForeground2BrandPressed);}"],m:[["@media (forced-colors: active){.f1nz3ub2{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fag2qd2{border-top-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14bpyus{border-left-color:HighlightText;}.fmvhcg7{border-right-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1o3dhpw{border-bottom-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fqc85l4{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1h3a8gf{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkiggi6:hover{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f8gmj8i:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ap8nzx:hover{border-right-color:Highlight;}.fjag8bx:hover{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1igan7k:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1v3eptx:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fpelvsg:hover:active{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1r9enuy:hover:active{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1grx941:hover:active{border-left-color:Highlight;}.fdvt4n0:hover:active{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1l34yyb:hover:active{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fqfbdvs:hover:active{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fivsta0:hover .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1wfsnb3:hover:active .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fxoo9op:hover{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f11slz88:hover:active{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}]]}),w_=ge({base:{De3pzq:"f1bg9a2p",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bfinmwp:"f15x8b5r",Jwef8y:"f1falr9n",Bgoe8wy:"f12mpcsy",Bwzppfd:["f1gwvigk","f18rmfxp"],oetu4i:"f1jnshp0",gg5e9n:["f18rmfxp","f1gwvigk"],Bi91k9c:"fvgxktp",eoavqd:"fphbwmw",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",Bbdnnc7:"f1al02dq",iro3zm:"f1t6o4dc",b661bw:"f10ztigi",Bk6r4ia:["f1ft5sdu","f1gzf82w"],B9zn80p:"f12zbtn2",Bpld233:["f1gzf82w","f1ft5sdu"],B2d53fq:"fcvwxyo",c3iz72:"f8w4c43",em6i61:"f1ol4fw6",vm6p8p:"f1q1lw4e",x3br3k:"f1dwjv2g"},highContrast:{By8wz76:"f14ptb23",Bcq6wej:"f9dbb4x",Jcjdmf:["f3qs60o","f5u9ap2"],sc4o1m:"fwd1oij",Bosien3:["f5u9ap2","f3qs60o"],B7iucu3:"f1cyfu5x",Grqk0h:"f127ot8j",h3ptyc:"f19etb0b",Buw724y:["f4f984j","fw441p0"],Buk7464:"f3d22hf",Hwei09:["fw441p0","f4f984j"],Bbkh6qg:"fj8k9ua",F230oe:"fifrq0d",Bdw8ktp:["f196mwp7","fnekfq"],Bj1xduy:"f1l6uprw",Bhh2cfd:["fnekfq","f196mwp7"],Bahaeuw:"fa9u7a5",Buhizc3:"f1m71e0y",rxnm8d:"f1xxg0vq",Bso50sa:"f16oldlo",B65bq0w:["f17g64ui","fqbrke7"],Buont6p:"fjvf891",B0o9ejx:["fqbrke7","f17g64ui"],Dcq74g:"f1efp33f",zyxd5v:"f1gue8i"},outline:{De3pzq:"f1c21dwh",Jwef8y:"f9ql6rf",iro3zm:"f3h1zc4"},primary:{g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},secondary:{},subtle:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]}},{d:[".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f15x8b5r .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}"],h:[".f1falr9n:hover{background-color:var(--colorNeutralBackgroundDisabled);}",".f12mpcsy:hover{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1gwvigk:hover{border-right-color:var(--colorNeutralStrokeDisabled);}",".f18rmfxp:hover{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1jnshp0:hover{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".fphbwmw:hover{cursor:not-allowed;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f1al02dq:hover .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1t6o4dc:hover:active{background-color:var(--colorNeutralBackgroundDisabled);}",".f10ztigi:hover:active{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1ft5sdu:hover:active{border-right-color:var(--colorNeutralStrokeDisabled);}",".f1gzf82w:hover:active{border-left-color:var(--colorNeutralStrokeDisabled);}",".f12zbtn2:hover:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fcvwxyo:hover:active{color:var(--colorNeutralForegroundDisabled);}",".f8w4c43:hover:active{cursor:not-allowed;}",".f1ol4fw6:hover:active .fui-Icon-filled{display:none;}",".f1q1lw4e:hover:active .fui-Icon-regular{display:inline;}",".f1dwjv2g:hover:active .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".f3h1zc4:hover:active{background-color:var(--colorTransparentBackground);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}"],m:[["@media (forced-colors: active){.f14ptb23{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9dbb4x{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3qs60o{border-right-color:GrayText;}.f5u9ap2{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fwd1oij{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f127ot8j .fui-Button__icon{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f19etb0b:focus{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4f984j:focus{border-right-color:GrayText;}.fw441p0:focus{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3d22hf:focus{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fj8k9ua:hover{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fifrq0d:hover{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f196mwp7:hover{border-right-color:GrayText;}.fnekfq:hover{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1l6uprw:hover{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fa9u7a5:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1m71e0y:hover .fui-Button__icon{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1xxg0vq:hover:active{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16oldlo:hover:active{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f17g64ui:hover:active{border-right-color:GrayText;}.fqbrke7:hover:active{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fjvf891:hover:active{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1efp33f:hover:active{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1gue8i:hover:active .fui-Button__icon{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),k_=ge({circular:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"f1062rbf"},rounded:{},square:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"fj0ryk1"},primary:{B8q5s1w:"f17t0x8g",Bci5o5g:["f194v5ow","fk7jm04"],n8qw10:"f1qgg65p",Bdrgwmp:["fk7jm04","f194v5ow"],j6ew2k:["fhgccpy","fjo7pq6"],he4mth:"f32wu9k",Byr4aka:"fu5nqqq",lks7q5:["f13prjl2","f1nl83rv"],Bnan3qt:"f1czftr5",k1dn9:["f1nl83rv","f13prjl2"],Bqsb82s:["fixhny3","f18mfu3r"],jg1oma:"feygou5"},small:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"fazmxh"},medium:{},large:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"f1b6alqh"}},{d:[[".f1062rbf[data-fui-focus-visible]{border-radius:var(--borderRadiusCircular);}",{p:-1}],[".fj0ryk1[data-fui-focus-visible]{border-radius:var(--borderRadiusNone);}",{p:-1}],".f17t0x8g[data-fui-focus-visible]{border-top-color:var(--colorStrokeFocus2);}",".f194v5ow[data-fui-focus-visible]{border-right-color:var(--colorStrokeFocus2);}",".fk7jm04[data-fui-focus-visible]{border-left-color:var(--colorStrokeFocus2);}",".f1qgg65p[data-fui-focus-visible]{border-bottom-color:var(--colorStrokeFocus2);}",".fhgccpy[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".fjo7pq6[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".f32wu9k[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;}",".fu5nqqq[data-fui-focus-visible]:hover{border-top-color:var(--colorStrokeFocus2);}",".f13prjl2[data-fui-focus-visible]:hover{border-right-color:var(--colorStrokeFocus2);}",".f1nl83rv[data-fui-focus-visible]:hover{border-left-color:var(--colorStrokeFocus2);}",".f1czftr5[data-fui-focus-visible]:hover{border-bottom-color:var(--colorStrokeFocus2);}",[".fazmxh[data-fui-focus-visible]{border-radius:var(--borderRadiusSmall);}",{p:-1}],[".f1b6alqh[data-fui-focus-visible]{border-radius:var(--borderRadiusLarge);}",{p:-1}]],t:["@supports (-moz-appearance:button){.f18mfu3r[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}.fixhny3[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}}","@supports (-moz-appearance:button){.feygou5[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),x_=ge({small:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fu97m5z",Bf4jedk:"f17fgpbq",B2u0y6b:"f1jt17bm"},medium:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f18ktai2",Bf4jedk:"fwbmr0d",B2u0y6b:"f44c6la"},large:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1hbd1aw",Bf4jedk:"f12clzc2",B2u0y6b:"fjy1crr"}},{d:[[".fu97m5z{padding:1px;}",{p:-1}],".f17fgpbq{min-width:24px;}",".f1jt17bm{max-width:24px;}",[".f18ktai2{padding:5px;}",{p:-1}],".fwbmr0d{min-width:32px;}",".f44c6la{max-width:32px;}",[".f1hbd1aw{padding:7px;}",{p:-1}],".f12clzc2{min-width:40px;}",".fjy1crr{max-width:40px;}"]}),S_=ge({small:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3",Bqrlyyl:"fbaiahx"},medium:{},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",a9b677:"fq4mcun",Bqrlyyl:"f1exjqw5"},before:{t21cq0:["f1nizpg2","f1a695kz"]},after:{Frg6f3:["f1a695kz","f1nizpg2"]}},{d:[".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".fbaiahx{--fui-Button__icon--spacing:var(--spacingHorizontalXS);}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".f1exjqw5{--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}",".f1nizpg2{margin-right:var(--fui-Button__icon--spacing);}",".f1a695kz{margin-left:var(--fui-Button__icon--spacing);}"]}),__=e=>{"use no memo";const r=v_(),n=b_(),i=y_(),l=w_(),a=k_(),u=x_(),d=S_(),{appearance:f,disabled:m,disabledFocusable:h,icon:v,iconOnly:b,iconPosition:y,shape:k,size:w}=e;return e.root.className=ce(Jm.root,r,f&&i[f],i[w],v&&w==="small"&&i.smallWithIcon,v&&w==="large"&&i.largeWithIcon,i[k],(m||h)&&l.base,(m||h)&&l.highContrast,f&&(m||h)&&l[f],f==="primary"&&a.primary,a[w],a[k],b&&u[w],e.root.className),e.icon&&(e.icon.className=ce(Jm.icon,n,!!e.root.children&&d[y],d[w],e.icon.className)),e},Zm=S.forwardRef((e,r)=>{const n=h_(e,r);return __(n),Ge("useButtonStyles_unstable")(n),p_(n)});Zm.displayName="Button";const eg=S.createContext(void 0),B_=eg.Provider,C_=()=>S.useContext(eg),z_=e=>{var r,n,i,l;const{generatedControlId:a,orientation:u,required:d,size:f,validationState:m}=e,h=(r=e.label)===null||r===void 0?void 0:r.htmlFor,v=(n=e.label)===null||n===void 0?void 0:n.id,b=(i=e.validationMessage)===null||i===void 0?void 0:i.id,y=(l=e.hint)===null||l===void 0?void 0:l.id;return{field:S.useMemo(()=>({generatedControlId:a,hintId:y,labelFor:h,labelId:v,orientation:u,required:d,size:f,validationMessageId:b,validationState:m}),[a,y,h,v,u,d,f,b,m])}};function qn(e,r){return tg(C_(),e,r)}function tg(e,r,n){if(!e)return r;r={...r};const{generatedControlId:i,hintId:l,labelFor:a,labelId:u,required:d,validationMessageId:f,validationState:m}=e;if(i){var h,v;(v=(h=r).id)!==null&&v!==void 0||(h.id=i)}if(u&&(!n?.supportsLabelFor||a!==r.id)){var b,y,k;(k=(b=r)[y="aria-labelledby"])!==null&&k!==void 0||(b[y]=u)}if((f||l)&&(r["aria-describedby"]=[f,l,r?.["aria-describedby"]].filter(Boolean).join(" ")),m==="error"){var w,_,z;(z=(w=r)[_="aria-invalid"])!==null&&z!==void 0||(w[_]=!0)}if(d)if(n?.supportsRequired){var N,B;(B=(N=r).required)!==null&&B!==void 0||(N.required=!0)}else{var C,E,O;(O=(C=r)[E="aria-required"])!==null&&O!==void 0||(C[E]=!0)}if(n?.supportsSize){var I,q;(q=(I=r).size)!==null&&q!==void 0||(I.size=e.size)}return r}const N_=(e,r)=>{let{children:n}=e;return typeof n=="function"&&(n=n(tg(r.field)||{})),ue(B_,{value:r?.field,children:Je(e.root,{children:[e.label&&ue(e.label,{}),n,e.validationMessage&&Je(e.validationMessage,{children:[e.validationMessageIcon&&ue(e.validationMessageIcon,{}),e.validationMessage.children]}),e.hint&&ue(e.hint,{})]})})},T_=(e,r)=>{const{disabled:n=!1,required:i=!1,weight:l="regular",size:a="medium"}=e;return{disabled:n,required:Ie(i===!0?"*":i||void 0,{defaultProps:{"aria-hidden":"true"},elementType:"span"}),weight:l,size:a,components:{root:"label",required:"span"},root:Ee(xt("label",{ref:r,...e}),{elementType:"label"})}},E_=e=>Je(e.root,{children:[e.root.children,e.required&&ue(e.required,{})]}),rg={root:"fui-Label",required:"fui-Label__required"},P_=ge({root:{Bahqtrf:"fk6fouc",sj55zd:"f19n0e5"},disabled:{sj55zd:"f1s2aq7o",B7iucu3:"f1cyfu5x"},required:{sj55zd:"f1whyuy6",uwmqm3:["fruq291","f7x41pl"]},small:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},medium:{Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi"},large:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k",Bhrd7zp:"fl43uef"},semibold:{Bhrd7zp:"fl43uef"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1whyuy6{color:var(--colorPaletteRedForeground3);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}"],m:[["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),R_=e=>{"use no memo";const r=P_();return e.root.className=ce(rg.root,r.root,e.disabled&&r.disabled,r[e.size],e.weight==="semibold"&&r.semibold,e.root.className),e.required&&(e.required.className=ce(rg.required,r.required,e.disabled&&r.disabled,e.required.className)),e},Dr=S.forwardRef((e,r)=>{const n=T_(e,r);return R_(n),Ge("useLabelStyles_unstable")(n),E_(n)});Dr.displayName="Label";const F_={error:S.createElement(wx,null),warning:S.createElement(mx,null),success:S.createElement(vx,null),none:void 0},I_=(e,r)=>{const{children:n,orientation:i="vertical",required:l=!1,validationState:a=e.validationMessage?"error":"none",size:u="medium"}=e,d=Gt("field-"),f=d+"__control",m=Ee(xt("div",{...e,ref:r},["children"]),{elementType:"div"}),h=Ie(e.label,{defaultProps:{htmlFor:f,id:d+"__label",required:l,size:u},elementType:Dr}),v=Ie(e.validationMessage,{defaultProps:{id:d+"__validationMessage",role:a==="error"||a==="warning"?"alert":void 0},elementType:"div"}),b=Ie(e.hint,{defaultProps:{id:d+"__hint"},elementType:"div"}),y=F_[a],k=Ie(e.validationMessageIcon,{renderByDefault:!!y,defaultProps:{children:y},elementType:"span"});return{children:n,generatedControlId:f,orientation:i,required:l,size:u,validationState:a,components:{root:"div",label:Dr,validationMessage:"div",validationMessageIcon:"span",hint:"div"},root:m,label:h,validationMessageIcon:k,validationMessage:v,hint:b}},Hn={root:"fui-Field",label:"fui-Field__label",validationMessage:"fui-Field__validationMessage",validationMessageIcon:"fui-Field__validationMessageIcon",hint:"fui-Field__hint"},j_=ge({base:{mc9l5x:"f13qh94s"},horizontal:{Budl1dq:"f2wwaib",wkccdc:"f1645dqt"},horizontalNoLabel:{uwmqm3:["f15jqgz8","fggqkej"],Budl1dq:"f1c2z91y"}},{d:[".f13qh94s{display:grid;}",".f2wwaib{grid-template-columns:33% 1fr;}",".f1645dqt{grid-template-rows:auto auto auto 1fr;}",".f15jqgz8{padding-left:33%;}",".fggqkej{padding-right:33%;}",".f1c2z91y{grid-template-columns:1fr;}"]}),D_=ge({vertical:{z8tnut:"fclwglc",Byoj8tv:"fywfov9",jrapky:"fyacil5"},verticalLarge:{z8tnut:"f1sl3k7w",Byoj8tv:"f1brlhvm",jrapky:"f8l5zjj"},horizontal:{z8tnut:"fp2oml8",Byoj8tv:"f1tdddsa",t21cq0:["fkujibs","f199hnxi"],Ijaq50:"f16hsg94",nk6f5a:"f1nzqi2z"},horizontalSmall:{z8tnut:"f1ywm7hm",Byoj8tv:"f14wxoun"},horizontalLarge:{z8tnut:"f1hqyr95",Byoj8tv:"fm4hlj0"}},{d:[".fclwglc{padding-top:var(--spacingVerticalXXS);}",".fywfov9{padding-bottom:var(--spacingVerticalXXS);}",".fyacil5{margin-bottom:var(--spacingVerticalXXS);}",".f1sl3k7w{padding-top:1px;}",".f1brlhvm{padding-bottom:1px;}",".f8l5zjj{margin-bottom:var(--spacingVerticalXS);}",".fp2oml8{padding-top:var(--spacingVerticalSNudge);}",".f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}",".fkujibs{margin-right:var(--spacingHorizontalM);}",".f199hnxi{margin-left:var(--spacingHorizontalM);}",".f16hsg94{grid-row-start:1;}",".f1nzqi2z{grid-row-end:-1;}",".f1ywm7hm{padding-top:var(--spacingVerticalXS);}",".f14wxoun{padding-bottom:var(--spacingVerticalXS);}",".f1hqyr95{padding-top:9px;}",".fm4hlj0{padding-bottom:9px;}"]}),O_=ct("r5c4z9l",null,[".r5c4z9l{margin-top:var(--spacingVerticalXXS);color:var(--colorNeutralForeground3);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase200);}"]),A_=ge({error:{sj55zd:"f1hcrxcs"},withIcon:{uwmqm3:["frawy03","fg4c52"]}},{d:[".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".frawy03{padding-left:calc(12px + var(--spacingHorizontalXS));}",".fg4c52{padding-right:calc(12px + var(--spacingHorizontalXS));}"]}),M_=ct("ra7h1uk","r1rh6bd7",[".ra7h1uk{display:inline-block;font-size:12px;margin-left:calc(-12px - var(--spacingHorizontalXS));margin-right:var(--spacingHorizontalXS);line-height:0;vertical-align:-1px;}",".r1rh6bd7{display:inline-block;font-size:12px;margin-right:calc(-12px - var(--spacingHorizontalXS));margin-left:var(--spacingHorizontalXS);line-height:0;vertical-align:-1px;}"]),L_=ge({error:{sj55zd:"f1hcrxcs"},warning:{sj55zd:"f1k5f75o"},success:{sj55zd:"ffmvakt"}},{d:[".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}",".ffmvakt{color:var(--colorPaletteGreenForeground1);}"]}),q_=e=>{"use no memo";const{validationState:r,size:n}=e,i=e.orientation==="horizontal",l=j_();e.root.className=ce(Hn.root,l.base,i&&l.horizontal,i&&!e.label&&l.horizontalNoLabel,e.root.className);const a=D_();e.label&&(e.label.className=ce(Hn.label,i&&a.horizontal,i&&n==="small"&&a.horizontalSmall,i&&n==="large"&&a.horizontalLarge,!i&&a.vertical,!i&&n==="large"&&a.verticalLarge,e.label.className));const u=M_(),d=L_();e.validationMessageIcon&&(e.validationMessageIcon.className=ce(Hn.validationMessageIcon,u,r!=="none"&&d[r],e.validationMessageIcon.className));const f=O_(),m=A_();return e.validationMessage&&(e.validationMessage.className=ce(Hn.validationMessage,f,r==="error"&&m.error,!!e.validationMessageIcon&&m.withIcon,e.validationMessage.className)),e.hint&&(e.hint.className=ce(Hn.hint,f,e.hint.className)),e},xo=S.forwardRef((e,r)=>{const n=I_(e,r);q_(n),Ge("useFieldStyles_unstable")(n);const i=z_(n);return N_(n,i)});xo.displayName="Field";const H_=(e,r)=>{"use no memo";e=qn(e,{supportsLabelFor:!0,supportsRequired:!0});const{disabled:n=!1,required:i,shape:l="square",size:a="medium",labelPosition:u="after",onChange:d}=e,[f,m]=Tr({defaultState:e.defaultChecked,state:e.checked,initialState:!1}),h=Fn({props:e,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","size","onChange"]}),v=f==="mixed",b=Gt("checkbox-",h.primary.id);let y;v?l==="circular"?y=S.createElement(ux,null):y=a==="large"?S.createElement(yx,null):S.createElement(bx,null):f&&(y=a==="large"?S.createElement(hx,null):S.createElement(vm,null));const k={shape:l,checked:f,disabled:n,size:a,labelPosition:u,components:{root:"span",input:"input",indicator:"div",label:Dr},root:Ee(e.root,{defaultProps:{ref:On(),...h.root},elementType:"span"}),input:Ee(e.input,{defaultProps:{type:"checkbox",id:b,ref:r,checked:f===!0,...h.primary},elementType:"input"}),label:Ie(e.label,{defaultProps:{htmlFor:b,disabled:n,required:i,size:"medium"},elementType:Dr}),indicator:Ie(e.indicator,{renderByDefault:!0,defaultProps:{"aria-hidden":!0,children:y},elementType:"div"})};k.input.onChange=xe(_=>{const z=_.currentTarget.indeterminate?"mixed":_.currentTarget.checked;d?.(_,{checked:z}),m(z)});const w=Ye(k.input.ref);return k.input.ref=w,Dt(()=>{w.current&&(w.current.indeterminate=v)},[w,v]),k},W_=e=>Je(e.root,{children:[ue(e.input,{}),e.labelPosition==="before"&&e.label&&ue(e.label,{}),e.indicator&&ue(e.indicator,{}),e.labelPosition==="after"&&e.label&&ue(e.label,{})]}),ks={root:"fui-Checkbox",label:"fui-Checkbox__label",input:"fui-Checkbox__input",indicator:"fui-Checkbox__indicator"},V_=ct("r1nzur1d","r128arqq",{r:[".r1nzur1d{position:relative;display:inline-flex;cursor:pointer;max-width:fit-content;vertical-align:middle;color:var(--colorNeutralForeground3);}",".r1nzur1d:focus{outline-style:none;}",".r1nzur1d:focus-visible{outline-style:none;}",".r1nzur1d[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1nzur1d[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r128arqq{position:relative;display:inline-flex;cursor:pointer;max-width:fit-content;vertical-align:middle;color:var(--colorNeutralForeground3);}",".r128arqq:focus{outline-style:none;}",".r128arqq:focus-visible{outline-style:none;}",".r128arqq[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r128arqq[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r1nzur1d[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.r128arqq[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),$_=ge({unchecked:{Bi91k9c:"f3p8bqa",pv5h1i:"fium13f",lj723h:"f1r2dosr",Hnthvo:"f1729es6"},checked:{sj55zd:"f19n0e5",wkncrt:"f35ds98",zxk7z7:"f12mnkne",Hmsnfy:"fei9a8h",e6czan:"fix56y3",pv5h1i:"f1bcv2js",qbydtz:"f7dr4go",Hnthvo:"f1r5cpua"},mixed:{sj55zd:"f19n0e5",Hmsnfy:"f1l27tf0",zxk7z7:"fcilktj",pv5h1i:"f1lphd54",Bunfa6h:"f1obkvq7",Hnthvo:"f2gmbuh",B15ykmv:"f1oy4fa1"},disabled:{Bceei9c:"f158kwzp",sj55zd:"f1s2aq7o",Hmsnfy:"f1w7mfl5",zxk7z7:"fcoafq6",B7iucu3:"f1cyfu5x",Bptavk6:"f1lwde8o"}},{h:[".f3p8bqa:hover{color:var(--colorNeutralForeground2);}",".fium13f:hover{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeAccessibleHover);}",".fix56y3:hover{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackgroundHover);}",".f1bcv2js:hover{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackgroundHover);}",".f1lphd54:hover{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStrokeHover);}",".f1obkvq7:hover{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1Hover);}"],a:[".f1r2dosr:active{color:var(--colorNeutralForeground1);}",".f1729es6:active{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeAccessiblePressed);}",".f7dr4go:active{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackgroundPressed);}",".f1r5cpua:active{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackgroundPressed);}",".f2gmbuh:active{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStrokePressed);}",".f1oy4fa1:active{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1Pressed);}"],d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".f35ds98{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackground);}",".f12mnkne{--fui-Checkbox__indicator--color:var(--colorNeutralForegroundInverted);}",".fei9a8h{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackground);}",".f1l27tf0{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStroke);}",".fcilktj{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1);}",".f158kwzp{cursor:default;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1w7mfl5{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeDisabled);}",".fcoafq6{--fui-Checkbox__indicator--color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lwde8o{--fui-Checkbox__indicator--color:GrayText;}}",{m:"(forced-colors: active)"}]]}),U_=ct("ruo9svu",null,[".ruo9svu{box-sizing:border-box;cursor:inherit;height:100%;margin:0;opacity:0;position:absolute;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));}"]),G_=ge({before:{j35jbq:["f1e31b4d","f1vgc2s3"]},after:{oyh7mz:["f1vgc2s3","f1e31b4d"]},large:{a9b677:"f1mq5jt6"}},{d:[".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f1mq5jt6{width:calc(20px + 2 * var(--spacingHorizontalS));}"]}),K_=ct("rl7ci6d",null,[".rl7ci6d{align-self:flex-start;box-sizing:border-box;flex-shrink:0;display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--fui-Checkbox__indicator--color);background-color:var(--fui-Checkbox__indicator--backgroundColor);border-color:var(--fui-Checkbox__indicator--borderColor, var(--colorNeutralStrokeAccessible));border-style:solid;border-width:var(--strokeWidthThin);border-radius:var(--borderRadiusSmall);margin:var(--spacingVerticalS) var(--spacingHorizontalS);fill:currentColor;pointer-events:none;font-size:12px;height:16px;width:16px;}"]),X_=ge({large:{Be2twd7:"f4ybsrx",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},circular:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f44lkw9"}},{d:[".f4ybsrx{font-size:16px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",[".f44lkw9{border-radius:var(--borderRadiusCircular);}",{p:-1}]]}),Q_=ge({base:{qb2dma:"f7nlbp4",sj55zd:"f1ym3bx4",Bceei9c:"fpo1scq",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1f5q0n8"},before:{z189sj:["f7x41pl","fruq291"]},after:{uwmqm3:["fruq291","f7x41pl"]},medium:{B6of3ja:"fjzwpt6",jrapky:"fh6j2fo"},large:{B6of3ja:"f1xlvstr",jrapky:"f49ad5g"}},{d:[".f7nlbp4{align-self:center;}",".f1ym3bx4{color:inherit;}",".fpo1scq{cursor:inherit;}",[".f1f5q0n8{padding:var(--spacingVerticalS) var(--spacingHorizontalS);}",{p:-1}],".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".fjzwpt6{margin-top:calc((16px - var(--lineHeightBase300)) / 2);}",".fh6j2fo{margin-bottom:calc((16px - var(--lineHeightBase300)) / 2);}",".f1xlvstr{margin-top:calc((20px - var(--lineHeightBase300)) / 2);}",".f49ad5g{margin-bottom:calc((20px - var(--lineHeightBase300)) / 2);}"]}),Y_=e=>{"use no memo";const{checked:r,disabled:n,labelPosition:i,shape:l,size:a}=e,u=V_(),d=$_();e.root.className=ce(ks.root,u,n?d.disabled:r==="mixed"?d.mixed:r?d.checked:d.unchecked,e.root.className);const f=U_(),m=G_();e.input.className=ce(ks.input,f,a==="large"&&m.large,m[i],e.input.className);const h=K_(),v=X_();e.indicator&&(e.indicator.className=ce(ks.indicator,h,a==="large"&&v.large,l==="circular"&&v.circular,e.indicator.className));const b=Q_();return e.label&&(e.label.className=ce(ks.label,b.base,b[a],b[i],e.label.className)),e},pc=S.forwardRef((e,r)=>{const n=H_(e,r);return Y_(n),Ge("useCheckboxStyles_unstable")(n),W_(n)});pc.displayName="Checkbox";const mc=Ha({activeOption:void 0,appearance:"outline",focusVisible:!1,open:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){},setOpen(){},size:"medium"});mc.Provider;const J_={activeOption:void 0,focusVisible:!1,multiselect:!1,getOptionById(){},getOptionsMatchingValue(){return[]},registerOption(){return()=>{}},selectedOptions:[],onOptionClick(){},onActiveDescendantChange(){},selectOption(){},setActiveOption(){}},en=Ha(void 0),Mt=e=>sm(en,(r=J_)=>e(r)),Z_=en.Provider;function og(e){const{appearance:r,open:n,getOptionById:i,getOptionsMatchingValue:l,registerOption:a,selectedOptions:u,selectOption:d,setOpen:f,size:m,activeDescendantController:h,onOptionClick:v,onActiveDescendantChange:b}=e,y={activeOption:void 0,appearance:r,focusVisible:!1,open:n,registerOption:a,selectedOptions:u,selectOption:d,setActiveOption:()=>null,setOpen:f,size:m},k={activeOption:void 0,focusVisible:!1,getOptionById:i,getOptionsMatchingValue:l,registerOption:a,selectedOptions:u,selectOption:d,setActiveOption:()=>null,onOptionClick:v,onActiveDescendantChange:b},w=S.useMemo(()=>({controller:h}),[h]);return{combobox:y,activeDescendant:w,listbox:k}}function e2(e){const r=lm(en),{getOptionById:n,getOptionsMatchingValue:i,multiselect:l,registerOption:a,selectedOptions:u,selectOption:d,activeDescendantController:f}=e,m=Mt(w=>w.registerOption),h=Mt(w=>w.onOptionClick),v=Mt(w=>w.onActiveDescendantChange),y={activeOption:void 0,focusVisible:!1,getOptionById:n,getOptionsMatchingValue:i,multiselect:l,registerOption:r?m:a,selectedOptions:u,selectOption:d,setActiveOption:()=>{},onOptionClick:h,onActiveDescendantChange:v},k=S.useMemo(()=>({controller:f}),[f]);return{listbox:y,activeDescendant:k}}function Wn(e,r={}){const{open:n=!0,multiselect:i=!1}=r,l=e.key,{altKey:a,ctrlKey:u,key:d,metaKey:f}=e;return d.length===1&&l!==yr&&!a&&!u&&!f?"Type":n?l===us&&a||l===Go||!i&&l===yr?"CloseSelect":i&&l===yr?"Select":l===Ua?"Close":l===Wa?"Next":l===us?"Previous":l===cm?"First":l===am?"Last":l===Zk?"PageUp":l===Jk?"PageDown":l===Yk?"Tab":"None":l===Wa||l===us||l===Go||l===yr?"Open":"None"}const ng=()=>{const e=S.useRef(new Map),r=S.useMemo(()=>({getCount:()=>e.current.size,getOptionAtIndex:()=>{},getIndexOfId:()=>-1,getOptionById:m=>e.current.get(m),getOptionsMatchingText:m=>Array.from(e.current.values()).filter(({text:h})=>m(h)),getOptionsMatchingValue:m=>{const h=[];for(const v of e.current.values())m(v.value)&&h.push(v);return h}}),[]),n=S.useCallback(i=>(e.current.set(i.id,i),()=>e.current.delete(i.id)),[]);return{...r,options:Array.from(e.current.values()),registerOption:n}},ig=e=>{const{defaultSelectedOptions:r,multiselect:n,onOptionSelect:i}=e,[l,a]=Tr({state:e.selectedOptions,defaultState:r,initialState:[]}),u=S.useCallback((f,m)=>{if(m.disabled)return;let h=[m.value];if(n){const v=l.findIndex(b=>b===m.value);v>-1?h=[...l.slice(0,v),...l.slice(v+1)]:h=[...l,m.value]}a(h),i?.(f,{optionValue:m.value,optionText:m.text,selectedOptions:h})},[i,n,l,a]);return{clearSelection:f=>{a([]),i?.(f,{optionValue:void 0,optionText:void 0,selectedOptions:[]})},selectOption:u,selectedOptions:l}},Vn={root:"fui-Option",checkIcon:"fui-Option__checkIcon"},t2=ge({root:{Bt984gj:"f122n59",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",sj55zd:"f19n0e5",i8kkvl:"f1ufnopg",Bceei9c:"f1k6fduh",mc9l5x:"f22iagw",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fm5eomj",qhf8xq:"f10pi13n",Jwef8y:"f1knas48",Bi91k9c:"feu1g3u",zqbkvg:"fo79ri9",h82x05:["f1osiabc","f1e8le25"],cqj998:"f1yusjty",j3hlsh:["f1e8le25","f1osiabc"],ecr2s2:"fb40n2d",lj723h:"f1g4hkjv",Btxx2vb:"f1lnr2zp",sltcwy:["f1ogfk9z","f1g7j8ec"],dnwvvm:"fiuf46r",Blyvkvs:["f1g7j8ec","f1ogfk9z"]},active:{Bowz1zl:"f11vrvdw",oxogb1:"f17hxjb7",Ix2sn8:"f1dha69c",q7v32p:"f1lm7500",B7cbj04:0,Bewtojm:0,b50fsz:0,B1wzb3v:0,Bqwk70n:0,B37u8z8:0,avt0cx:0,f0sref:0,B9fkznv:0,Be3o27t:0,Bertapg:0,B53xpsf:0,Bsv72rj:0,B39dzdd:0,Btq9bd3:0,Bqfxd14:0,atup0s:"fo7xqb",Fffuxt:0,Bttcd12:0,Beitzug:0,Bqougee:0,B86i8pi:"f1kurthe",Bhijsxg:"fwq15dy",kktds4:"f1pb3wry",Bmau3bo:["ftjv2f4","f1flhb1f"],npektv:["f1flhb1f","ftjv2f4"]},disabled:{sj55zd:"f1s2aq7o",Jwef8y:"f9ql6rf",Bi91k9c:"fvgxktp",zqbkvg:"f185j3qj",h82x05:["f1dligi3","f1vydzie"],cqj998:"fjw1di3",j3hlsh:["f1vydzie","f1dligi3"],ecr2s2:"fgj9um3",lj723h:"f19wldhg",Btxx2vb:"f1ss0kt2",sltcwy:["f1t6oli3","fjy9ci8"],dnwvvm:"fresaxk",Blyvkvs:["fjy9ci8","f1t6oli3"],B7iucu3:"f1cyfu5x"},selected:{},checkIcon:{Bnnss6s:"fi64zpg",Be2twd7:"fod5ikn",Frg6f3:["f18b9hdq","fn6qj8t"],t21cq0:["f1xk557c","f1h9en5y"],Bcdw1i0:"fd7fpy0",Bo70h7d:"fvc9v3g"},selectedCheck:{Bcdw1i0:"f1022m68"},multiselectCheck:{Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f1l3cf7o",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fq9zq91",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Bt984gj:"f122n59",Brf1p80:"f4d9j23",Bkfmm31:"f1w9h62z",Be2twd7:"f1ugzwwg",Bqenvij:"fd461yt",a9b677:"fjw5fx7",Bcdw1i0:"f1022m68"},selectedMultiselectCheck:{De3pzq:"ftywsgz",sj55zd:"fqpbvvt",g2u3we:"f3xi7mh",h3c5rm:["ftovhe4","f1wczvin"],B9xav0g:"f68vbr6",zhjwy3:["f1wczvin","ftovhe4"]},checkDisabled:{sj55zd:"f1s2aq7o",B7iucu3:"f1cyfu5x"},multiselectCheckDisabled:{g2u3we:"f1r1t4y1",h3c5rm:["fmj8ijw","figx54m"],B9xav0g:"f360ss8",zhjwy3:["figx54m","fmj8ijw"]}},{d:[".f122n59{align-items:center;}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ufnopg{column-gap:var(--spacingHorizontalXS);}",".f1k6fduh{cursor:pointer;}",".f22iagw{display:flex;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",[".fm5eomj{padding:var(--spacingVerticalSNudge) var(--spacingHorizontalS);}",{p:-1}],".f10pi13n{position:relative;}",'.f11vrvdw[data-activedescendant-focusvisible]::after{content:"";}',".f17hxjb7[data-activedescendant-focusvisible]::after{position:absolute;}",".f1dha69c[data-activedescendant-focusvisible]::after{pointer-events:none;}",".f1lm7500[data-activedescendant-focusvisible]::after{z-index:1;}",[".fo7xqb[data-activedescendant-focusvisible]::after{border:2px solid var(--colorStrokeFocus2);}",{p:-2}],[".f1kurthe[data-activedescendant-focusvisible]::after{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fwq15dy[data-activedescendant-focusvisible]::after{top:-2px;}",".f1pb3wry[data-activedescendant-focusvisible]::after{bottom:-2px;}",".ftjv2f4[data-activedescendant-focusvisible]::after{left:-2px;}",".f1flhb1f[data-activedescendant-focusvisible]::after{right:-2px;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fi64zpg{flex-shrink:0;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".f18b9hdq{margin-left:calc(var(--spacingHorizontalXXS) * -1);}",".fn6qj8t{margin-right:calc(var(--spacingHorizontalXXS) * -1);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".fd7fpy0{visibility:hidden;}",".fvc9v3g svg{display:block;}",".f1022m68{visibility:visible;}",[".f1l3cf7o{border:var(--strokeWidthThin) solid var(--colorNeutralStrokeAccessible);}",{p:-2}],[".fq9zq91{border-radius:var(--borderRadiusSmall);}",{p:-1}],".f1ewtqcl{box-sizing:border-box;}",".f4d9j23{justify-content:center;}",".f1w9h62z{fill:currentColor;}",".f1ugzwwg{font-size:12px;}",".fd461yt{height:16px;}",".fjw5fx7{width:16px;}",".ftywsgz{background-color:var(--colorCompoundBrandBackground);}",".fqpbvvt{color:var(--colorNeutralForegroundInverted);}",".f3xi7mh{border-top-color:var(--colorCompoundBrandBackground);}",".ftovhe4{border-right-color:var(--colorCompoundBrandBackground);}",".f1wczvin{border-left-color:var(--colorCompoundBrandBackground);}",".f68vbr6{border-bottom-color:var(--colorCompoundBrandBackground);}",".f1r1t4y1{border-top-color:var(--colorNeutralForegroundDisabled);}",".fmj8ijw{border-right-color:var(--colorNeutralForegroundDisabled);}",".figx54m{border-left-color:var(--colorNeutralForegroundDisabled);}",".f360ss8{border-bottom-color:var(--colorNeutralForegroundDisabled);}"],h:[".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}",".fo79ri9:hover .fui-Option__checkIcon{border-top-color:var(--colorNeutralForeground1Hover);}",".f1osiabc:hover .fui-Option__checkIcon{border-right-color:var(--colorNeutralForeground1Hover);}",".f1e8le25:hover .fui-Option__checkIcon{border-left-color:var(--colorNeutralForeground1Hover);}",".f1yusjty:hover .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForeground1Hover);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f185j3qj:hover .fui-Option__checkIcon{border-top-color:var(--colorNeutralForegroundDisabled);}",".f1dligi3:hover .fui-Option__checkIcon{border-right-color:var(--colorNeutralForegroundDisabled);}",".f1vydzie:hover .fui-Option__checkIcon{border-left-color:var(--colorNeutralForegroundDisabled);}",".fjw1di3:hover .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForegroundDisabled);}"],a:[".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}",".f1g4hkjv:active{color:var(--colorNeutralForeground1Pressed);}",".f1lnr2zp:active .fui-Option__checkIcon{border-top-color:var(--colorNeutralForeground1Hover);}",".f1ogfk9z:active .fui-Option__checkIcon{border-right-color:var(--colorNeutralForeground1Hover);}",".f1g7j8ec:active .fui-Option__checkIcon{border-left-color:var(--colorNeutralForeground1Hover);}",".fiuf46r:active .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForeground1Hover);}",".fgj9um3:active{background-color:var(--colorTransparentBackground);}",".f19wldhg:active{color:var(--colorNeutralForegroundDisabled);}",".f1ss0kt2:active .fui-Option__checkIcon{border-top-color:var(--colorNeutralForegroundDisabled);}",".f1t6oli3:active .fui-Option__checkIcon{border-right-color:var(--colorNeutralForegroundDisabled);}",".fjy9ci8:active .fui-Option__checkIcon{border-left-color:var(--colorNeutralForegroundDisabled);}",".fresaxk:active .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1cyfu5x{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),r2=e=>{"use no memo";const{disabled:r,multiselect:n,selected:i}=e,l=t2();return e.root.className=ce(Vn.root,l.root,l.active,r&&l.disabled,i&&l.selected,e.root.className),e.checkIcon&&(e.checkIcon.className=ce(Vn.checkIcon,l.checkIcon,n&&l.multiselectCheck,i&&l.selectedCheck,i&&n&&l.selectedMultiselectCheck,r&&l.checkDisabled,r&&n&&l.multiselectCheckDisabled,e.checkIcon.className)),e},sg={activeOption:void 0,focusVisible:!1,setActiveOption:()=>null},o2=(e,r)=>{"use no memo";const{multiselect:n,disableAutoFocus:i=!1}=e,l=ng(),{listboxRef:a,activeParentRef:u,controller:d}=Xa({matchOption:ee=>ee.classList.contains(Vn.root)}),f=lm(en),m=Mt(ee=>ee.onActiveDescendantChange),h=Mt(ee=>ee.getOptionById),v=Mt(ee=>ee.getOptionsMatchingValue),b=f?h:l.getOptionById,y=f?v:l.getOptionsMatchingValue,k=S.useMemo(()=>{let ee=null;const oe=H=>{m?.(H)};return H=>{if(!H){ee?.removeEventListener("activedescendantchange",oe);return}ee=H,ee.addEventListener("activedescendantchange",oe)}},[m]),[w,_]=S.useState(!1);Fp(_);const z=dm(),N=tx(),B=N?z.controller:d,{clearSelection:C,selectedOptions:E,selectOption:O}=ig(e),I=ee=>{const oe=Wn(ee,{open:!0}),H=B.active(),K=H?b(H):null;switch(oe){case"First":case"Last":case"Next":case"Previous":case"PageDown":case"PageUp":case"CloseSelect":case"Select":ee.preventDefault();break}switch(oe){case"Next":K?B.next():B.first();break;case"Previous":K?B.prev():B.first();break;case"PageUp":case"First":B.first();break;case"PageDown":case"Last":B.last();break;case"Select":case"CloseSelect":K&&O(ee,K);break}},q=Mt(ee=>ee.selectedOptions),j=Mt(ee=>ee.selectOption),U=f?{selectedOptions:q,selectOption:j,...sg}:{selectedOptions:E,selectOption:O,...sg};S.useEffect(()=>{if(!N){if(B.hideFocusVisibleAttributes(),!i)if(!n&&U.selectedOptions.length>0){const ee=y(oe=>oe===U.selectedOptions[0]).pop();ee?.id&&B.focus(ee.id)}else B.first();return()=>{B.blur()}}},[]);const le=S.useCallback(()=>{N||(B.showFocusVisibleAttributes(),w&&B.scrollActiveIntoView())},[B,N,w]),te=S.useCallback(()=>{N||B.hideFocusVisibleAttributes()},[B,N]),V={components:{root:"div"},root:Ee(xt("div",{ref:Ye(r,u,a,k),role:n?"menu":"listbox",tabIndex:0,...e}),{elementType:"div"}),standalone:!f,multiselect:n,clearSelection:C,activeDescendantController:B,onActiveDescendantChange:m,...l,...U};return V.root.onKeyDown=xe(je(V.root.onKeyDown,I)),V.root.onFocus=xe(je(V.root.onFocus,le)),V.root.onBlur=xe(je(V.root.onBlur,te)),V},n2=(e,r)=>ue(Ka,{value:r.activeDescendant,children:ue(en.Provider,{value:r.listbox,children:ue(e.root,{})})}),i2={root:"fui-Listbox"},s2=ge({root:{De3pzq:"fxugw4r",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",Bf4jedk:"f3hsy1e",Bmxbyg5:"f5zp4f",Bw0xxkn:0,oeaueh:0,Bpd4iqm:0,Befb4lg:"f1iepc6i",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1t35pdg",Belr9w4:"fiut8dr"}},{d:[".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".f3hsy1e{min-width:160px;}",".f5zp4f{overflow-y:auto;}",[".f1iepc6i{outline:1px solid var(--colorTransparentStroke);}",{p:-1}],[".f1t35pdg{padding:var(--spacingHorizontalXS);}",{p:-1}],".fiut8dr{row-gap:var(--spacingHorizontalXXS);}"]}),l2=e=>{"use no memo";const r=s2();return e.root.className=ce(i2.root,r.root,e.root.className),e},xs=S.forwardRef((e,r)=>{const n=o2(e,r),i=e2(n);return l2(n),Ge("useListboxStyles_unstable")(n),n2(n,i)});xs.displayName="Listbox";function a2(e,r){if(e!==void 0)return e;let n="",i=!1;return S.Children.forEach(r,l=>{typeof l=="string"?n+=l:i=!0}),i&&console.warn("Provide a `text` prop to Option components when they contain non-string children."),n}const c2=(e,r)=>{const{children:n,disabled:i,text:l,value:a}=e,u=S.useRef(null),d=a2(l,n),f=a??d,m=Gt("fluent-option",e.id),h=S.useMemo(()=>({id:m,disabled:i,text:d,value:f}),[m,i,d,f]),{controller:v}=dm(),b=Mt(C=>C.multiselect),y=Mt(C=>C.registerOption),k=Mt(C=>{const E=C.selectedOptions;return f!==void 0&&E.find(O=>O===f)!==void 0}),w=Mt(C=>C.selectOption),_=Mt(C=>C.onOptionClick);let z=S.createElement(px,null);b&&(z=k?S.createElement(vm,null):"");const N=C=>{var E;if(i){C.preventDefault();return}v.focus(m),w(C,h),_(C),(E=e.onClick)===null||E===void 0||E.call(e,C)};S.useEffect(()=>{if(m&&u.current)return y(h,u.current)},[m,h,y]);const B=b?{role:"menuitemcheckbox","aria-checked":k}:{role:"option","aria-selected":k};return{components:{root:"div",checkIcon:"span"},root:Ee(xt("div",{ref:Ye(r,u),"aria-disabled":i?"true":void 0,id:m,...B,...e,onClick:N}),{elementType:"div"}),checkIcon:Ie(e.checkIcon,{renderByDefault:!0,defaultProps:{"aria-hidden":"true",children:z},elementType:"span"}),disabled:i,multiselect:b,selected:k,focusVisible:!1,active:!1}},u2=e=>Je(e.root,{children:[e.checkIcon&&ue(e.checkIcon,{}),e.root.children]}),Tt=S.forwardRef((e,r)=>{const n=c2(e,r);return r2(n),Ge("useOptionStyles_unstable")(n),u2(n)});Tt.displayName="Option";const lg=e=>{"use no memo";const{appearance:r="outline",disableAutoFocus:n,children:i,clearable:l=!1,editable:a=!1,inlinePopup:u=!1,mountNode:d=void 0,multiselect:f,onOpenChange:m,size:h="medium",activeDescendantController:v,freeform:b=!1,disabled:y=!1,onActiveOptionChange:k=null}=e,w=ng(),{getOptionsMatchingValue:_}=w,{getOptionById:z}=w,N=S.useCallback(()=>{const M=v.active();return M?z(M):void 0},[v,z]),B=N(),C=S.useCallback(M=>{let ne;if(typeof M=="function"){const ae=N();ne=M(ae)}ne?v.focus(ne.id):v.blur()},[v,N]),[E,O]=S.useState(!1),[I,q]=S.useState(!1),j=S.useRef(!1),U=iy(),[le,te]=Tr({state:e.value,initialState:void 0}),{selectedOptions:V,selectOption:ee,clearSelection:oe}=ig(e),H=S.useCallback((M,ne)=>{dc.unstable_batchedUpdates(()=>{te(void 0),ee(M,ne)})},[te,ee]),K=S.useMemo(()=>{if(le!==void 0)return le;if(U&&e.defaultValue!==void 0)return e.defaultValue;const M=_(ne=>V.includes(ne)).map(ne=>ne.text);return f?a?"":M.join(", "):M[0]},[le,a,_,f,V]),[L,Q]=Tr({state:e.open,defaultState:e.defaultOpen,initialState:!1}),$=S.useCallback((M,ne)=>{y||(m?.(M,{open:ne}),dc.unstable_batchedUpdates(()=>{!ne&&!b&&te(void 0),Q(ne)}))},[m,Q,te,b,y]);S.useEffect(()=>{if(L){if(!f&&V.length>0){const M=_(ne=>ne===V[0]).pop();M?.id&&v.focus(M.id)}}else v.blur()},[L,v]),S.useEffect(()=>{L&&!n&&!v.active()&&v.first()},[L,i,n,v,z]);const F=xe(M=>{const ne=M.detail.previousId?w.getOptionById(M.detail.previousId):null,ae=w.getOptionById(M.detail.id);k?.(M,{event:M,type:"change",previousOption:ne,nextOption:ae})});return{...w,freeform:b,disabled:y,selectOption:H,clearSelection:oe,selectedOptions:V,activeOption:B,appearance:r,clearable:l,focusVisible:E,ignoreNextBlur:j,inlinePopup:u,mountNode:d,open:L,hasFocus:I,setActiveOption:C,setFocusVisible:O,setHasFocus:q,setOpen:$,setValue:te,size:h,value:K,multiselect:f,onOptionClick:xe(M=>{f||$(M,!1)}),onActiveDescendantChange:F}};function ag(e){const{positioning:r}=e,i={position:"below",align:"start",offset:{crossAxis:0,mainAxis:2},fallbackPositions:["above","after","after-top","before","before-top"],matchTargetSize:"width",autoSize:!0,...cc(r)},{targetRef:l,containerRef:a}=Xm(i);return[a,l]}function cg(e,r,n){const{state:{multiselect:i},triggerRef:l,defaultProps:a}=n,u=Gt("fluent-listbox",Nf(e)?e.id:void 0),d=Ie(e,{renderByDefault:!0,elementType:xs,defaultProps:{id:u,multiselect:i,tabIndex:void 0,...a}}),f=qn({id:u},{supportsLabelFor:!0});d&&!d["aria-label"]&&!d["aria-labelledby"]&&f["aria-labelledby"]&&(d["aria-labelledby"]=f["aria-labelledby"]);const m=xe(je(b=>{b.preventDefault()},d?.onMouseDown)),h=xe(je(b=>{var y;b.preventDefault(),(y=l.current)===null||y===void 0||y.focus()},d?.onClick)),v=Ye(d?.ref,r);return d&&(d.ref=v,d.onMouseDown=m,d.onClick=h),d}function ug(e,r,n){const{state:{open:i,setOpen:l,setHasFocus:a},defaultProps:u,elementType:d,activeDescendantController:f}=n,m=Ee(e,{defaultProps:{type:"text","aria-expanded":i,role:"combobox",...typeof u=="object"&&u},elementType:d}),h=S.useRef(null);return m.ref=Ye(h,m.ref,r),m.onBlur=je(v=>{l(v,!1),a(!1)},m.onBlur),m.onFocus=je(v=>{v.target===v.currentTarget&&a(!0)},m.onFocus),m.onClick=je(v=>{l(v,!i)},m.onClick),m.onKeyDown=je(d2({activeDescendantController:f,...n.state}),m.onKeyDown),m}function d2(e){const{activeDescendantController:r,getOptionById:n,setOpen:i,selectOption:l,multiselect:a,open:u}=e,d=S.useCallback(()=>{const w=r.active();return w?n(w):void 0},[r,n]),f=()=>{r.first()},m=()=>{r.last()},h=w=>{w?r.next():r.first()},v=w=>{w?r.prev():r.first()},b=()=>{for(let w=0;w<10;w++)r.prev()},y=()=>{for(let w=0;w<10;w++)r.next()},k=Uw();return xe(w=>{const _=Wn(w,{open:u,multiselect:a}),z=d();switch(_){case"First":case"Last":case"Next":case"Previous":case"PageDown":case"PageUp":case"Open":case"Close":case"CloseSelect":case"Select":w.preventDefault();break}switch(k(!0),_){case"First":f();break;case"Last":m();break;case"Next":h(z);break;case"Previous":v(z);break;case"PageDown":y();break;case"PageUp":b();break;case"Open":i(w,!0);break;case"Close":w.stopPropagation(),i(w,!1);break;case"CloseSelect":!a&&!z?.disabled&&i(w,!1);case"Select":z&&l(w,z);break;case"Tab":!a&&z&&l(w,z);break}})}function f2(e,r,n){"use no memo";const{state:{open:i,value:l,selectOption:a,setValue:u,multiselect:d,selectedOptions:f,clearSelection:m,getOptionById:h,setOpen:v},freeform:b,defaultProps:y,activeDescendantController:k}=n,w=q=>{if(!i&&!b){const j=k.active(),U=j?h(j):null;l&&U&&l.trim().toLowerCase()===U?.text.toLowerCase()&&a(q,U),u(void 0)}},_=q=>{const j=q?.trim().toLowerCase();if(!j||j.length===0){k.blur();return}const U=te=>te.toLowerCase().indexOf(j)===0,le=k.find(te=>{const V=h(te);return!!V&&U(V.text)});if(!le){k.blur();return}return h(le)},z=q=>{const j=q.target.value;u(j);const U=_(j);!d&&f.length===1&&(j.length<1||!U)&&m(q)},N=ug(e,r,{state:n.state,defaultProps:y,elementType:"input",activeDescendantController:k});N.onChange=je(N.onChange,z),N.onBlur=je(N.onBlur,w);const[B,C]=S.useState(!1),E=S.useRef(!1),O=N.onKeyDown,I=xe(q=>{!i&&Wn(q)==="Type"&&v(q,!0),q.key===Va||q.key===$a?C(!0):C(!1);const j=Wn(q,{open:i,multiselect:d});if(j==="Type"?E.current=!0:(j==="Open"&&q.key!==" "||j==="Next"||j==="Previous"||j==="First"||j==="Last"||j==="PageUp"||j==="PageDown")&&(E.current=!1),(E.current||!i)&&q.key===" "){var U;e==null||(U=e.onKeyDown)===null||U===void 0||U.call(e,q);return}O?.(q)});return N.onKeyDown=I,B&&(N["aria-activedescendant"]=void 0),N}const p2=(e,r)=>{"use no memo";var n,i;e=qn(e,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const{listboxRef:l,activeParentRef:a,controller:u}=Xa({matchOption:M=>M.classList.contains(Vn.root)}),d=lg({...e,editable:!0,activeDescendantController:u}),{clearable:f,clearSelection:m,disabled:h,multiselect:v,open:b,selectedOptions:y,setOpen:k,value:w,hasFocus:_}=d,[z,N]=ag(e),{disableAutoFocus:B=!1,freeform:C,inlinePopup:E}=e,O=Gt("combobox-"),{primary:I,root:q}=Fn({props:e,primarySlotTagName:"input",excludedPropNames:["children","size"]}),j=S.useRef(null),U=cg(e.listbox,Ye(z,l),{state:d,triggerRef:j,defaultProps:{children:e.children,disableAutoFocus:B}});var le;const te=f2((le=e.input)!==null&&le!==void 0?le:{},Ye(j,a,r),{state:d,freeform:C,defaultProps:{type:"text",value:w??"","aria-controls":b?U?.id:void 0,...I},activeDescendantController:u}),V=Ee(e.root,{defaultProps:{"aria-owns":!E&&b?U?.id:void 0,...q},elementType:"div"});V.ref=Ye(V.ref,N);const ee=y.length>0&&!h&&f&&!v,oe={components:{root:"div",input:"input",expandIcon:"span",listbox:xs,clearIcon:"span"},root:V,input:te,listbox:b||_?U:void 0,clearIcon:Ie(e.clearIcon,{defaultProps:{"aria-hidden":"true",children:S.createElement(Qa,null)},elementType:"span",renderByDefault:!0}),expandIcon:Ie(e.expandIcon,{renderByDefault:!0,defaultProps:{"aria-disabled":h?"true":void 0,"aria-expanded":b,children:S.createElement(hm,null),role:"button"},elementType:"span"}),showClearIcon:ee,activeDescendantController:u,...d},{targetDocument:H}=nt();Vf({element:H,callback:M=>k(M,!1),refs:[j,z,N],disabled:!b});const{onMouseDown:K}=oe.expandIcon||{},L=xe(je(K,M=>{var ne;M.preventDefault(),oe.setOpen(M,!oe.open),(ne=j.current)===null||ne===void 0||ne.focus()}));if(oe.expandIcon){oe.expandIcon.onMouseDown=L;const M=oe.expandIcon["aria-label"]||oe.expandIcon["aria-labelledby"],ne="Open";if(!M)if(e["aria-labelledby"]){var Q;const ae=(Q=oe.expandIcon.id)!==null&&Q!==void 0?Q:`${O}-chevron`,be=`${ae} ${oe.input["aria-labelledby"]}`;oe.expandIcon["aria-label"]=ne,oe.expandIcon.id=ae,oe.expandIcon["aria-labelledby"]=be}else e["aria-label"]?oe.expandIcon["aria-label"]=`${ne} ${e["aria-label"]}`:oe.expandIcon["aria-label"]=ne}const $=xe(je((n=oe.clearIcon)===null||n===void 0?void 0:n.onMouseDown,M=>{M.preventDefault()})),F=xe(je((i=oe.clearIcon)===null||i===void 0?void 0:i.onClick,M=>{m(M)}));return oe.clearIcon&&(oe.clearIcon.onMouseDown=$,oe.clearIcon.onClick=F),v&&(oe.clearIcon=void 0),oe},m2=(e,r)=>ue(e.root,{children:ue(Ka,{value:r.activeDescendant,children:ue(Z_,{value:r.listbox,children:Je(mc.Provider,{value:r.combobox,children:[ue(e.input,{}),e.clearIcon&&ue(e.clearIcon,{}),e.expandIcon&&ue(e.expandIcon,{}),e.listbox&&(e.inlinePopup?ue(e.listbox,{}):ue(ws,{mountNode:e.mountNode,children:ue(e.listbox,{})}))]})})})}),$n={root:"fui-Combobox",input:"fui-Combobox__input",expandIcon:"fui-Combobox__expandIcon",clearIcon:"fui-Combobox__clearIcon",listbox:"fui-Combobox__listbox"},g2=ge({root:{Bt984gj:"f122n59",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",B7ck84d:"f1ewtqcl",i8kkvl:"f14mj54c",mc9l5x:"fwk3njj",Budl1dq:"fz17x9o",Brf1p80:"f1869bpl",Bf4jedk:"f1exfvgq",qhf8xq:"f10pi13n",ha4doy:"fmrv4ls",Bbr2w1p:"f14a1fxs",Bduesf4:"f3e99gv",Bpq79vn:"fhljsf7",li1rpt:"f1gw3sf2",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",Eqx8gd:["f1a7op3","f1cjjd47"],By385i5:"f1gboi2j",B1piin3:["f1cjjd47","f1a7op3"],Dlnsje:"f145g4dw",d9w3h3:["f1kp91vd","f1ibwz09"],B3778ie:["f1ibwz09","f1kp91vd"],B1q35kw:0,Bw17bha:0,Bcgy8vk:0,Bjuhk93:"f1mnjydx",Gjdm7m:"f13evtba",b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",wi16st:"fsrmcvb",ywj3b2:"f1t3k7v9",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",Bnupc0a:"fx04xgm",bing71:"f1c7in40",Bercvud:"f1ibeo51"},listbox:{E5pizo:"f1hg901r",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Bxyxcbc:"fmmk62d",B7ck84d:"f1ewtqcl"},listboxCollapsed:{mc9l5x:"fjseox"},inlineListbox:{Bj3rh1h:"f19g0ac"},small:{Bqenvij:"frvgh55",z189sj:["fdw0yi8","fk8j09s"]},medium:{Bqenvij:"f1d2rq10",z189sj:["f11gcy0p","f1ng84yb"]},large:{i8kkvl:"f1rjii52",Bqenvij:"fbhnoac",z189sj:["fw5db7e","f1uw59to"]},outline:{De3pzq:"fxugw4r",Bgfg5da:0,B9xav0g:"f1c1zstj",oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"fhz96rm"},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1l4zc64",gg5e9n:["f1m52nbi","f1ub3y4t"],B6oc9vd:"fvs00aa",ak43y8:["f1assf6x","f4ruux4"],wmxk5l:"f1z0osm6",B50zh58:["f4ruux4","f1assf6x"],Bvq3b66:"f1b473iu",Brahy3i:["f381qr8","ft4skwv"],zoxjo1:"f1qzcrsd",an54nd:["ft4skwv","f381qr8"]},underline:{De3pzq:"f1c21dwh",B9xav0g:0,oivjwe:0,Bn0qgzm:0,Bgfg5da:"f9ez7ne",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fokr779"},"filled-lighter":{De3pzq:"fxugw4r",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f88035w"},"filled-darker":{De3pzq:"f16xq7d1",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f88035w"},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},invalidUnderline:{hhx65j:"f1fgmyf4"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bcq6wej:"f9dbb4x",Jcjdmf:["f3qs60o","f5u9ap2"],sc4o1m:"fwd1oij",Bosien3:["f5u9ap2","f3qs60o"]}},{d:[".f122n59{align-items:center;}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f1ewtqcl{box-sizing:border-box;}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",".fwk3njj{display:inline-grid;}",".fz17x9o{grid-template-columns:1fr auto;}",".f1869bpl{justify-content:space-between;}",".f1exfvgq{min-width:250px;}",".f10pi13n{position:relative;}",".fmrv4ls{vertical-align:middle;}",".f1gw3sf2::after{box-sizing:border-box;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1a7op3::after{left:-1px;}",".f1cjjd47::after{right:-1px;}",".f1gboi2j::after{bottom:-1px;}",".f145g4dw::after{height:max(2px, var(--borderRadiusMedium));}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",[".f1mnjydx::after{border-bottom:var(--strokeWidthThick) solid var(--colorCompoundBrandStroke);}",{p:-1}],".f13evtba::after{clip-path:inset(calc(100% - 2px) 0 0 0);}",".f1yk9hq::after{transform:scaleX(0);}",".fhwpy7i::after{transition-property:transform;}",".f14ee0xe::after{transition-duration:var(--durationUltraFast);}",".f1xhbsuh::after{transition-delay:var(--curveAccelerateMid);}",".f1hg901r{box-shadow:var(--shadow16);}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fmmk62d{max-height:80vh;}",".fjseox{display:none;}",".f19g0ac{z-index:1;}",".frvgh55{height:24px;}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f1d2rq10{height:32px;}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".fbhnoac{height:40px;}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",[".fhz96rm{border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);}",{p:-2}],".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".f9ez7ne{border-bottom:var(--strokeWidthThin) solid var(--colorNeutralStrokeAccessible);}",{p:-1}],[".fokr779{border-radius:0;}",{p:-1}],[".f88035w{border:var(--strokeWidthThin) solid var(--colorTransparentStroke);}",{p:-2}],".f16xq7d1{background-color:var(--colorNeutralBackground3);}",[".f88035w{border:var(--strokeWidthThin) solid var(--colorTransparentStroke);}",{p:-2}],".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}"],w:[".f14a1fxs:focus-within{outline-width:2px;}",".f3e99gv:focus-within{outline-style:solid;}",".fhljsf7:focus-within{outline-color:transparent;}",".fjw5xc1:focus-within::after{transform:scaleX(1);}",".f1xdyd5c:focus-within::after{transition-property:transform;}",".fatpbeo:focus-within::after{transition-duration:var(--durationNormal);}",".fb7uyps:focus-within::after{transition-delay:var(--curveDecelerateMid);}",".f1ibeo51:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".f1b473iu:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}",".f381qr8:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}",".ft4skwv:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1qzcrsd:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.fsrmcvb::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1t3k7v9::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.fx04xgm:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1c7in40:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media (forced-colors: active){.f9dbb4x{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3qs60o{border-right-color:GrayText;}.f5u9ap2{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fwd1oij{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}"],a:[".fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}",".f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1z0osm6:active{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"]}),h2=ge({input:{qb2dma:"f1ub7u0d",De3pzq:"f1c21dwh",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f3bhgqh",sj55zd:"f19n0e5",Bahqtrf:"fk6fouc",Brovlpu:"ftqa4ok",yvdlaj:"fwyc1cq",B3o7kgh:"f13ta7ih"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["fxe2rs","f1gflqzi"]},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["fzy81xo","f58b53b"]},large:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["f1kdav7a","footqm6"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".f1ub7u0d{align-self:stretch;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".f3bhgqh{border:none;}",{p:-2}],".f19n0e5{color:var(--colorNeutralForeground1);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fwyc1cq::-webkit-input-placeholder{color:var(--colorNeutralForeground4);}",".fwyc1cq::-moz-placeholder{color:var(--colorNeutralForeground4);}",".f13ta7ih::-webkit-input-placeholder{opacity:1;}",".f13ta7ih::-moz-placeholder{opacity:1;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",[".fxe2rs{padding:0 0 0 calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",{p:-1}],[".f1gflqzi{padding:0 calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS)) 0 0;}",{p:-1}],".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",[".fzy81xo{padding:0 0 0 calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",{p:-1}],[".f58b53b{padding:0 calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS)) 0 0;}",{p:-1}],".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",[".f1kdav7a{padding:0 0 0 calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",{p:-1}],[".footqm6{padding:0 calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge)) 0 0;}",{p:-1}],".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"],f:[".ftqa4ok:focus{outline-style:none;}"]}),v2=ge({icon:{B7ck84d:"f1ewtqcl",sj55zd:"fxkbij4",Bceei9c:"f1k6fduh",mc9l5x:"ftgm304",Be2twd7:"f1pp30po",Bo70h7d:"fvc9v3g"},hidden:{mc9l5x:"fjseox"},visuallyHidden:{Bh84pgu:"f1ekcaio",Bqenvij:"f1mpe4l3",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1jlpb2r",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1c5fvqg",a9b677:"frkrog8",qhf8xq:"f1euv43f"},small:{Be2twd7:"f4ybsrx",Frg6f3:["f1h9en5y","f1xk557c"]},medium:{Be2twd7:"fe5j1ua",Frg6f3:["f1h9en5y","f1xk557c"]},large:{Be2twd7:"f1rt2boy",Frg6f3:["f1t5qyk5","f1ikr372"]},disabled:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr"}},{d:[".f1ewtqcl{box-sizing:border-box;}",".fxkbij4{color:var(--colorNeutralStrokeAccessible);}",".f1k6fduh{cursor:pointer;}",".ftgm304{display:block;}",".f1pp30po{font-size:var(--fontSizeBase500);}",".fvc9v3g svg{display:block;}",".fjseox{display:none;}",".f1ekcaio{clip:rect(0px, 0px, 0px, 0px);}",".f1mpe4l3{height:1px;}",[".f1jlpb2r{margin:-1px;}",{p:-1}],[".f1a3p1vp{overflow:hidden;}",{p:-1}],[".f1c5fvqg{padding:0px;}",{p:-1}],".frkrog8{width:1px;}",".f1euv43f{position:absolute;}",".f4ybsrx{font-size:16px;}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".fe5j1ua{font-size:20px;}",".f1rt2boy{font-size:24px;}",".f1t5qyk5{margin-left:var(--spacingHorizontalSNudge);}",".f1ikr372{margin-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}"]}),b2=e=>{"use no memo";const{appearance:r,open:n,size:i,showClearIcon:l}=e,a=`${e.input["aria-invalid"]}`=="true",u=e.input.disabled,d=g2(),f=v2(),m=h2();return e.root.className=ce($n.root,d.root,d[r],d[i],!u&&r==="outline"&&d.outlineInteractive,a&&r!=="underline"&&d.invalid,a&&r==="underline"&&d.invalidUnderline,u&&d.disabled,e.root.className),e.input.className=ce($n.input,m.input,m[i],u&&m.disabled,e.input.className),e.listbox&&(e.listbox.className=ce($n.listbox,d.listbox,e.inlinePopup&&d.inlineListbox,!n&&d.listboxCollapsed,e.listbox.className)),e.expandIcon&&(e.expandIcon.className=ce($n.expandIcon,f.icon,f[i],u&&f.disabled,l&&f.visuallyHidden,e.expandIcon.className)),e.clearIcon&&(e.clearIcon.className=ce($n.clearIcon,f.icon,f[i],u&&f.disabled,!l&&f.hidden,e.clearIcon.className)),e},Un=S.forwardRef((e,r)=>{const n=p2(e,r),i=og(n);return b2(n),Ge("useComboboxStyles_unstable")(n),m2(n,i)});Un.displayName="Combobox";function y2(e,r,n){"use no memo";const{state:{open:i,setOpen:l,getOptionById:a},defaultProps:u,activeDescendantController:d}=n,f=S.useRef(""),[m,h]=$f(),v=(w,_={startFromNext:!1})=>{const{startFromNext:z}=_,N=d.active(),B=d.find(C=>{const E=a(C);return!!E&&w(E.text)},{startFrom:z?d.next({passive:!0}):N});return B||d.find(C=>{const E=a(C);return!!E&&w(E.text)})},b=()=>{v(w=>w.toLocaleLowerCase().indexOf(f.current)===0,{startFromNext:f.current.length===1})||w2(f.current)&&v(w=>w.toLocaleLowerCase().indexOf(f.current[0])===0,{startFromNext:!0})||d.blur()},y=w=>{h(),Wn(w)==="Type"&&(f.current+=w.key.toLowerCase(),m(()=>{f.current=""},500),i&&b(),!i&&l(w,!0))},k=ug(e,r,{state:n.state,defaultProps:u,elementType:"button",activeDescendantController:d});return k.onKeyDown=je(y,k.onKeyDown),k}function w2(e){for(let r=1;r<e.length;r++)if(e[r]!==e[r-1])return!1;return!0}const k2=(e,r)=>{"use no memo";var n;e=qn(e,{supportsLabelFor:!0,supportsSize:!0});const{listboxRef:i,activeParentRef:l,controller:a}=Xa({matchOption:te=>te.classList.contains(Vn.root)}),u=lg({...e,activeDescendantController:a,freeform:!1}),{clearable:d,clearSelection:f,disabled:m,hasFocus:h,multiselect:v,open:b,selectedOptions:y,setOpen:k}=u,{primary:w,root:_}=Fn({props:e,primarySlotTagName:"button",excludedPropNames:["children"]}),[z,N]=ag(e),B=S.useRef(null),C=cg(e.listbox,Ye(z,i),{state:u,triggerRef:B,defaultProps:{children:e.children}}),{targetDocument:E}=nt();Vf({element:E,callback:te=>k(te,!1),refs:[B,z,N],disabled:!b});var O;const I=y2((O=e.button)!==null&&O!==void 0?O:{},Ye(B,l,r),{state:u,defaultProps:{type:"button",tabIndex:w.disabled?void 0:0,children:u.value||e.placeholder,"aria-controls":b?C?.id:void 0,...w},activeDescendantController:a}),q=Ee(e.root,{defaultProps:{"aria-owns":!e.inlinePopup&&b?C?.id:void 0,children:e.children,..._},elementType:"div"});q.ref=Ye(q.ref,N);const j=y.length>0&&!m&&d&&!v,U={components:{root:"div",button:"button",clearButton:"button",expandIcon:"span",listbox:xs},root:q,button:I,listbox:b||h?C:void 0,clearButton:Ie(e.clearButton,{defaultProps:{"aria-label":"Clear selection",children:S.createElement(Qa,null),tabIndex:j?0:void 0,type:"button"},elementType:"button",renderByDefault:!0}),expandIcon:Ie(e.expandIcon,{renderByDefault:!0,defaultProps:{children:S.createElement(hm,null)},elementType:"span"}),placeholderVisible:!u.value&&!!e.placeholder,showClearButton:j,activeDescendantController:a,...u},le=xe(je((n=U.clearButton)===null||n===void 0?void 0:n.onClick,te=>{var V;f(te),(V=B.current)===null||V===void 0||V.focus()}));return U.clearButton&&(U.clearButton.onClick=le),v&&(U.clearButton=void 0),U},x2=(e,r)=>ue(e.root,{children:ue(Ka,{value:r.activeDescendant,children:ue(en.Provider,{value:r.listbox,children:Je(mc.Provider,{value:r.combobox,children:[Je(e.button,{children:[e.button.children,e.expandIcon&&ue(e.expandIcon,{})]}),e.clearButton&&ue(e.clearButton,{}),e.listbox&&(e.inlinePopup?ue(e.listbox,{}):ue(ws,{mountNode:e.mountNode,children:ue(e.listbox,{})}))]})})})}),Gn={root:"fui-Dropdown",button:"fui-Dropdown__button",clearButton:"fui-Dropdown__clearButton",expandIcon:"fui-Dropdown__expandIcon",listbox:"fui-Dropdown__listbox"},S2=ge({root:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",B7ck84d:"f1ewtqcl",mc9l5x:"ftuwxu6",Bf4jedk:"f1exfvgq",qhf8xq:"f10pi13n",ha4doy:"fmrv4ls",Bbr2w1p:"f14a1fxs",Bduesf4:"f3e99gv",Bpq79vn:"fhljsf7",li1rpt:"f1gw3sf2",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",Eqx8gd:["f1a7op3","f1cjjd47"],By385i5:"f1gboi2j",B1piin3:["f1cjjd47","f1a7op3"],Dlnsje:"ffyw7fx",d9w3h3:["f1kp91vd","f1ibwz09"],B3778ie:["f1ibwz09","f1kp91vd"],B1q35kw:0,Bw17bha:0,Bcgy8vk:0,Bjuhk93:"f1mnjydx",Gjdm7m:"f13evtba",b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",wi16st:"fsrmcvb",ywj3b2:"f1t3k7v9",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",Bnupc0a:"fx04xgm",bing71:"f1c7in40",Bercvud:"f1ibeo51",Br277j9:"f18qfb8s",Btis473:"f1m082s7"},listbox:{B7ck84d:"f1ewtqcl",E5pizo:"f1hg901r",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Bxyxcbc:"fmmk62d"},listboxCollapsed:{mc9l5x:"fjseox"},inlineListbox:{Bj3rh1h:"f19g0ac"},button:{Bt984gj:"f122n59",De3pzq:"f1c21dwh",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f3bhgqh",B7ck84d:"f1ewtqcl",sj55zd:"f19n0e5",i8kkvl:"f14mj54c",Bceei9c:"f1k6fduh",mc9l5x:"f13qh94s",Bahqtrf:"fk6fouc",Budl1dq:"f12nh0o2",Brf1p80:"f1869bpl",fsow6f:["f1o700av","fes3tcz"],a9b677:"fly5x3f",Brovlpu:"ftqa4ok"},placeholder:{sj55zd:"fxc4j92"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["fye6m5k","f3cq2dl"]},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["f14ev680","f58uxzw"]},large:{i8kkvl:"f1rjii52",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["f139mn7i","f1v3q0m"]},outline:{De3pzq:"fxugw4r",Bgfg5da:0,B9xav0g:"f1c1zstj",oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"fhz96rm"},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1l4zc64",gg5e9n:["f1m52nbi","f1ub3y4t"],B6oc9vd:"fvs00aa",ak43y8:["f1assf6x","f4ruux4"],wmxk5l:"f1z0osm6",B50zh58:["f4ruux4","f1assf6x"],Bvq3b66:"f1b473iu",Brahy3i:["f381qr8","ft4skwv"],zoxjo1:"f1qzcrsd",an54nd:["ft4skwv","f381qr8"]},underline:{De3pzq:"f1c21dwh",B9xav0g:0,oivjwe:0,Bn0qgzm:0,Bgfg5da:"f9ez7ne",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fokr779"},"filled-lighter":{De3pzq:"fxugw4r",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"fs2rfia"},"filled-darker":{De3pzq:"f16xq7d1",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"fs2rfia"},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},invalidUnderline:{hhx65j:"f1fgmyf4"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bcq6wej:"f9dbb4x",Jcjdmf:["f3qs60o","f5u9ap2"],sc4o1m:"fwd1oij",Bosien3:["f5u9ap2","f3qs60o"]},disabledText:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr"},hidden:{mc9l5x:"fjseox"}},{d:[[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f1ewtqcl{box-sizing:border-box;}",".ftuwxu6{display:inline-flex;}",".f1exfvgq{min-width:250px;}",".f10pi13n{position:relative;}",".fmrv4ls{vertical-align:middle;}",".f1gw3sf2::after{box-sizing:border-box;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1a7op3::after{left:-1px;}",".f1cjjd47::after{right:-1px;}",".f1gboi2j::after{bottom:-1px;}",".ffyw7fx::after{height:max(var(--strokeWidthThick), var(--borderRadiusMedium));}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",[".f1mnjydx::after{border-bottom:var(--strokeWidthThick) solid var(--colorCompoundBrandStroke);}",{p:-1}],".f13evtba::after{clip-path:inset(calc(100% - 2px) 0 0 0);}",".f1yk9hq::after{transform:scaleX(0);}",".fhwpy7i::after{transition-property:transform;}",".f14ee0xe::after{transition-duration:var(--durationUltraFast);}",".f1xhbsuh::after{transition-delay:var(--curveAccelerateMid);}",".f1hg901r{box-shadow:var(--shadow16);}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fmmk62d{max-height:80vh;}",".fjseox{display:none;}",".f19g0ac{z-index:1;}",".f122n59{align-items:center;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".f3bhgqh{border:none;}",{p:-2}],".f19n0e5{color:var(--colorNeutralForeground1);}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",".f1k6fduh{cursor:pointer;}",".f13qh94s{display:grid;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f12nh0o2{grid-template-columns:[content] 1fr [icon] auto [end];}",".f1869bpl{justify-content:space-between;}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".fly5x3f{width:100%;}",".fxc4j92{color:var(--colorNeutralForeground4);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",[".fye6m5k{padding:3px var(--spacingHorizontalSNudge) 3px calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",{p:-1}],[".f3cq2dl{padding:3px calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS)) 3px var(--spacingHorizontalSNudge);}",{p:-1}],".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",[".f14ev680{padding:5px var(--spacingHorizontalMNudge) 5px calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",{p:-1}],[".f58uxzw{padding:5px calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS)) 5px var(--spacingHorizontalMNudge);}",{p:-1}],".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",[".f139mn7i{padding:7px var(--spacingHorizontalM) 7px calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",{p:-1}],[".f1v3q0m{padding:7px calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge)) 7px var(--spacingHorizontalM);}",{p:-1}],".fxugw4r{background-color:var(--colorNeutralBackground1);}",[".fhz96rm{border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);}",{p:-2}],".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",[".f9ez7ne{border-bottom:var(--strokeWidthThin) solid var(--colorNeutralStrokeAccessible);}",{p:-1}],[".fokr779{border-radius:0;}",{p:-1}],[".fs2rfia{border:var(--strokeWidthThin) solid transparent;}",{p:-2}],".f16xq7d1{background-color:var(--colorNeutralBackground3);}",[".fs2rfia{border:var(--strokeWidthThin) solid transparent;}",{p:-2}],".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"],w:[".f14a1fxs:focus-within{outline-width:2px;}",".f3e99gv:focus-within{outline-style:solid;}",".fhljsf7:focus-within{outline-color:transparent;}",".fjw5xc1:focus-within::after{transform:scaleX(1);}",".f1xdyd5c:focus-within::after{transition-property:transform;}",".fatpbeo:focus-within::after{transition-duration:var(--durationNormal);}",".fb7uyps:focus-within::after{transition-delay:var(--curveDecelerateMid);}",".f1ibeo51:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".f1b473iu:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}",".f381qr8:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}",".ft4skwv:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1qzcrsd:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.fsrmcvb::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1t3k7v9::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.fx04xgm:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1c7in40:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media (forced-colors: active){.f9dbb4x{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3qs60o{border-right-color:GrayText;}.f5u9ap2{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fwd1oij{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],t:["@supports selector(:has(*)){.f18qfb8s:has(.fui-Dropdown__clearButton:focus)::after{border-bottom-color:initial;}}","@supports selector(:has(*)){.f1m082s7:has(.fui-Dropdown__clearButton:focus)::after{transform:scaleX(0);}}"],f:[".ftqa4ok:focus{outline-style:none;}"],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}"],a:[".fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}",".f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1z0osm6:active{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"]}),_2=ge({icon:{B7ck84d:"f1ewtqcl",sj55zd:"fxkbij4",mc9l5x:"ftgm304",Be2twd7:"f1pp30po",Br312pm:"f12w6cgp",Bw0ie65:"f8bv1bt",Bo70h7d:"fvc9v3g"},small:{Be2twd7:"f4ybsrx",Frg6f3:["f1h9en5y","f1xk557c"]},medium:{Be2twd7:"fe5j1ua",Frg6f3:["f1h9en5y","f1xk557c"]},large:{Be2twd7:"f1rt2boy",Frg6f3:["f1t5qyk5","f1ikr372"]},disabled:{sj55zd:"f1s2aq7o"}},{d:[".f1ewtqcl{box-sizing:border-box;}",".fxkbij4{color:var(--colorNeutralStrokeAccessible);}",".ftgm304{display:block;}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f12w6cgp{grid-column-start:icon;}",".f8bv1bt{grid-column-end:end;}",".fvc9v3g svg{display:block;}",".f4ybsrx{font-size:16px;}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".fe5j1ua{font-size:20px;}",".f1rt2boy{font-size:24px;}",".f1t5qyk5{margin-left:var(--spacingHorizontalSNudge);}",".f1ikr372{margin-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"]}),B2=ct("rticfuj","r1vp6jef",{r:[".rticfuj{align-self:center;background-color:var(--colorTransparentBackground);border:none;cursor:pointer;height:fit-content;margin:0;margin-right:var(--spacingHorizontalMNudge);padding:0;position:relative;}",".rticfuj:focus{outline-style:none;}",".rticfuj:focus-visible{outline-style:none;}",".rticfuj[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.rticfuj[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r1vp6jef{align-self:center;background-color:var(--colorTransparentBackground);border:none;cursor:pointer;height:fit-content;margin:0;margin-left:var(--spacingHorizontalMNudge);padding:0;position:relative;}",".r1vp6jef:focus{outline-style:none;}",".r1vp6jef:focus-visible{outline-style:none;}",".r1vp6jef[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r1vp6jef[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.rticfuj[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.r1vp6jef[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),C2=e=>{"use no memo";const{appearance:r,open:n,placeholderVisible:i,showClearButton:l,size:a}=e,u=`${e.button["aria-invalid"]}`=="true",d=e.button.disabled,f=S2(),m=_2(),h=B2();return e.root.className=ce(Gn.root,f.root,f[r],!d&&r==="outline"&&f.outlineInteractive,u&&r!=="underline"&&f.invalid,u&&r==="underline"&&f.invalidUnderline,d&&f.disabled,e.root.className),e.button.className=ce(Gn.button,f.button,f[a],i&&f.placeholder,d&&f.disabledText,e.button.className),e.listbox&&(e.listbox.className=ce(Gn.listbox,f.listbox,e.inlinePopup&&f.inlineListbox,!n&&f.listboxCollapsed,e.listbox.className)),e.expandIcon&&(e.expandIcon.className=ce(Gn.expandIcon,m.icon,m[a],d&&m.disabled,l&&f.hidden,e.expandIcon.className)),e.clearButton&&(e.clearButton.className=ce(Gn.clearButton,h,m.icon,m[a],d&&m.disabled,!l&&f.hidden,e.clearButton.className)),e},gc=S.forwardRef((e,r)=>{const n=k2(e,r),i=og(n);return C2(n),Ge("useDropdownStyles_unstable")(n),x2(n,i)});gc.displayName="Dropdown";const dg=(e,r)=>{e=qn(e,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const n=Af();var i;const{size:l="medium",appearance:a=(i=n.inputDefaultAppearance)!==null&&i!==void 0?i:"outline",onChange:u}=e,[d,f]=Tr({state:e.value,defaultState:e.defaultValue,initialState:""}),m=Fn({props:e,primarySlotTagName:"input",excludedPropNames:["size","onChange","value","defaultValue"]}),h={size:l,appearance:a,components:{root:"span",input:"input",contentBefore:"span",contentAfter:"span"},input:Ee(e.input,{defaultProps:{type:"text",ref:r,...m.primary},elementType:"input"}),contentAfter:Ie(e.contentAfter,{elementType:"span"}),contentBefore:Ie(e.contentBefore,{elementType:"span"}),root:Ee(e.root,{defaultProps:m.root,elementType:"span"})};return h.input.value=d,h.input.onChange=xe(v=>{const b=v.target.value;u?.(v,{value:b}),f(b)}),h},z2=e=>Je(e.root,{children:[e.contentBefore&&ue(e.contentBefore,{}),ue(e.input,{}),e.contentAfter&&ue(e.contentAfter,{})]}),Ss={root:"fui-Input",input:"fui-Input__input",contentBefore:"fui-Input__contentBefore",contentAfter:"fui-Input__contentAfter"},N2=ct("r1oeeo9n","r9sxh5",{r:[".r1oeeo9n{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;vertical-align:middle;min-height:32px;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.r1oeeo9n::after{box-sizing:border-box;content:"";position:absolute;left:-1px;bottom:-1px;right:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".r1oeeo9n:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r1oeeo9n:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r1oeeo9n:focus-within{outline:2px solid transparent;}",".r9sxh5{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;vertical-align:middle;min-height:32px;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.r9sxh5::after{box-sizing:border-box;content:"";position:absolute;right:-1px;bottom:-1px;left:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".r9sxh5:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r9sxh5:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r9sxh5:focus-within{outline:2px solid transparent;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1oeeo9n::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1oeeo9n:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r9sxh5::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r9sxh5:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}"]}),T2=ge({small:{sshi5w:"f1pha7fy",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},medium:{},large:{sshi5w:"f1w5jphr",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",i8kkvl:0,Belr9w4:0,rmohyg:"f1eyhf9v"},outline:{},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1l4zc64",gg5e9n:["f1m52nbi","f1ub3y4t"],Drbcw7:"f8vnjqi",udz0bu:["fz1etlk","f1hc16gm"],Be8ivqh:"f1klwx88",ofdepl:["f1hc16gm","fz1etlk"]},underline:{De3pzq:"f1c21dwh",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fokr779",icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],wvpqe5:["f1deefiw","f1n71otn"],Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"]},underlineInteractive:{oetu4i:"f1l4zc64",Be8ivqh:"f1klwx88",d9w3h3:0,B3778ie:0,B4j8arr:0,Bl18szs:0,Blrzh8d:"f2ale1x"},filled:{g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},filledInteractive:{q7v0qe:"ftmjh5b",kmh5ft:["f17blpuu","fsrcdbj"],nagaa4:"f1tpwn32",B1yhkcb:["fsrcdbj","f17blpuu"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},"filled-darker":{De3pzq:"f16xq7d1"},"filled-lighter":{De3pzq:"fxugw4r"},"filled-darker-shadow":{De3pzq:"f16xq7d1",E5pizo:"fyed02w"},"filled-lighter-shadow":{De3pzq:"fxugw4r",E5pizo:"fyed02w"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bcq6wej:"f9dbb4x",Jcjdmf:["f3qs60o","f5u9ap2"],sc4o1m:"fwd1oij",Bosien3:["f5u9ap2","f3qs60o"],Bsft5z2:"fhr9occ",Bduesf4:"f99w1ws"},smallWithContentBefore:{uwmqm3:["fk8j09s","fdw0yi8"]},smallWithContentAfter:{z189sj:["fdw0yi8","fk8j09s"]},mediumWithContentBefore:{uwmqm3:["f1ng84yb","f11gcy0p"]},mediumWithContentAfter:{z189sj:["f11gcy0p","f1ng84yb"]},largeWithContentBefore:{uwmqm3:["f1uw59to","fw5db7e"]},largeWithContentAfter:{z189sj:["fw5db7e","f1uw59to"]}},{d:[".f1pha7fy{min-height:24px;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1w5jphr{min-height:40px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",[".f1eyhf9v{gap:var(--spacingHorizontalSNudge);}",{p:-1}],".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".fokr779{border-radius:0;}",{p:-1}],".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",[".f2ale1x::after{border-radius:0;}",{p:-1}],".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".fyed02w{box-shadow:var(--shadow2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fhr9occ::after{content:unset;}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}"],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}",".ftmjh5b:hover,.ftmjh5b:focus-within{border-top-color:var(--colorTransparentStrokeInteractive);}",".f17blpuu:hover,.f17blpuu:focus-within{border-right-color:var(--colorTransparentStrokeInteractive);}",".fsrcdbj:hover,.fsrcdbj:focus-within{border-left-color:var(--colorTransparentStrokeInteractive);}",".f1tpwn32:hover,.f1tpwn32:focus-within{border-bottom-color:var(--colorTransparentStrokeInteractive);}"],a:[".f8vnjqi:active,.f8vnjqi:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}",".fz1etlk:active,.fz1etlk:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1hc16gm:active,.f1hc16gm:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1klwx88:active,.f1klwx88:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"],m:[["@media (forced-colors: active){.f9dbb4x{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3qs60o{border-right-color:GrayText;}.f5u9ap2{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fwd1oij{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],w:[".f99w1ws:focus-within{outline-style:none;}"]}),E2=ct("r12stul0",null,[".r12stul0{align-self:stretch;box-sizing:border-box;flex-grow:1;min-width:0;border-style:none;padding:0 var(--spacingHorizontalM);color:var(--colorNeutralForeground1);background-color:transparent;outline-style:none;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;}",".r12stul0::-webkit-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".r12stul0::-moz-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".r12stul0::placeholder{color:var(--colorNeutralForeground4);opacity:1;}"]),P2=ge({small:{uwmqm3:["f1f5gg8d","f1vdfbxk"],z189sj:["f1vdfbxk","f1f5gg8d"]},medium:{},large:{uwmqm3:["fnphzt9","flt1dlf"],z189sj:["flt1dlf","fnphzt9"]},smallWithContentBefore:{uwmqm3:["fgiv446","ffczdla"]},smallWithContentAfter:{z189sj:["ffczdla","fgiv446"]},mediumWithContentBefore:{uwmqm3:["fgiv446","ffczdla"]},mediumWithContentAfter:{z189sj:["ffczdla","fgiv446"]},largeWithContentBefore:{uwmqm3:["fk8j09s","fdw0yi8"]},largeWithContentAfter:{z189sj:["fdw0yi8","fk8j09s"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".fnphzt9{padding-left:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".flt1dlf{padding-right:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"]}),R2=ct("r1572tok",null,[".r1572tok{box-sizing:border-box;color:var(--colorNeutralForeground3);display:flex;}",".r1572tok>svg{font-size:20px;}"]),F2=ge({disabled:{sj55zd:"f1s2aq7o"},small:{Duoase:"f3qv9w"},medium:{},large:{Duoase:"f16u2scb"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f3qv9w>svg{font-size:16px;}",".f16u2scb>svg{font-size:24px;}"]}),fg=e=>{"use no memo";const{size:r,appearance:n}=e,i=e.input.disabled,l=`${e.input["aria-invalid"]}`=="true",a=n.startsWith("filled"),u=T2(),d=P2(),f=F2();e.root.className=ce(Ss.root,N2(),u[r],e.contentBefore&&u[`${r}WithContentBefore`],e.contentAfter&&u[`${r}WithContentAfter`],u[n],!i&&n==="outline"&&u.outlineInteractive,!i&&n==="underline"&&u.underlineInteractive,!i&&a&&u.filledInteractive,a&&u.filled,!i&&l&&u.invalid,i&&u.disabled,e.root.className),e.input.className=ce(Ss.input,E2(),d[r],e.contentBefore&&d[`${r}WithContentBefore`],e.contentAfter&&d[`${r}WithContentAfter`],i&&d.disabled,e.input.className);const m=[R2(),i&&f.disabled,f[r]];return e.contentBefore&&(e.contentBefore.className=ce(Ss.contentBefore,...m,e.contentBefore.className)),e.contentAfter&&(e.contentAfter.className=ce(Ss.contentAfter,...m,e.contentAfter.className)),e},pg=S.forwardRef((e,r)=>{const n=dg(e,r);return fg(n),Ge("useInputStyles_unstable")(n),z2(n)});pg.displayName="Input";const mg=S.createContext(void 0),I2={};mg.Provider;const j2=()=>S.useContext(mg)||I2,D2=e=>Je(e.root,{children:[ue(e.input,{}),ue(e.indicator,{}),e.label&&ue(e.label,{})]}),O2=(e,r)=>{const n=j2(),{name:i=n.name,checked:l=n.value!==void 0?n.value===e.value:void 0,defaultChecked:a=n.defaultValue!==void 0?n.defaultValue===e.value:void 0,labelPosition:u=n.layout==="horizontal-stacked"?"below":"after",disabled:d=n.disabled,required:f=n.required,"aria-describedby":m=n["aria-describedby"],onChange:h}=e,v=Fn({props:e,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","onChange"]}),b=Ee(e.root,{defaultProps:{ref:On(),...v.root},elementType:"span"}),y=Ee(e.input,{defaultProps:{ref:r,type:"radio",id:Gt("radio-",v.primary.id),name:i,checked:l,defaultChecked:a,disabled:d,required:f,"aria-describedby":m,...v.primary},elementType:"input"});y.onChange=je(y.onChange,_=>h?.(_,{value:_.currentTarget.value}));const k=Ie(e.label,{defaultProps:{htmlFor:y.id,disabled:y.disabled},elementType:Dr}),w=Ee(e.indicator,{defaultProps:{"aria-hidden":!0},elementType:"div"});return{labelPosition:u,components:{root:"span",input:"input",label:Dr,indicator:"div"},root:b,input:y,label:k,indicator:w}},_s={root:"fui-Radio",indicator:"fui-Radio__indicator",input:"fui-Radio__input",label:"fui-Radio__label"},A2=ct("r1siqwd8","rmnplyc",{r:[".r1siqwd8{display:inline-flex;position:relative;}",".r1siqwd8:focus{outline-style:none;}",".r1siqwd8:focus-visible{outline-style:none;}",".r1siqwd8[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1siqwd8[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rmnplyc{display:inline-flex;position:relative;}",".rmnplyc:focus{outline-style:none;}",".rmnplyc:focus-visible{outline-style:none;}",".rmnplyc[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rmnplyc[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r1siqwd8[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.rmnplyc[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),M2=ge({vertical:{Beiy3e4:"f1vx9l62",Bt984gj:"f122n59"}},{d:[".f1vx9l62{flex-direction:column;}",".f122n59{align-items:center;}"]}),L2=ct("rg1upok","rzwdzb4",{r:[".rg1upok{position:absolute;left:0;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));height:100%;box-sizing:border-box;margin:0;opacity:0;}",".rg1upok:enabled{cursor:pointer;}",".rg1upok:enabled~.fui-Radio__label{cursor:pointer;}",".rg1upok:enabled:not(:checked)~.fui-Radio__label{color:var(--colorNeutralForeground3);}",".rg1upok:enabled:not(:checked)~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessible);}",".rg1upok:enabled:not(:checked):hover~.fui-Radio__label{color:var(--colorNeutralForeground2);}",".rg1upok:enabled:not(:checked):hover~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessibleHover);}",".rg1upok:enabled:not(:checked):hover:active~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".rg1upok:enabled:not(:checked):hover:active~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessiblePressed);}",".rg1upok:enabled:checked~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".rg1upok:enabled:checked~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStroke);color:var(--colorCompoundBrandForeground1);}",".rg1upok:enabled:checked:hover~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokeHover);color:var(--colorCompoundBrandForeground1Hover);}",".rg1upok:enabled:checked:hover:active~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokePressed);color:var(--colorCompoundBrandForeground1Pressed);}",".rg1upok:disabled~.fui-Radio__label{color:var(--colorNeutralForegroundDisabled);cursor:default;}",".rg1upok:disabled~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeDisabled);color:var(--colorNeutralForegroundDisabled);}",".rzwdzb4{position:absolute;right:0;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));height:100%;box-sizing:border-box;margin:0;opacity:0;}",".rzwdzb4:enabled{cursor:pointer;}",".rzwdzb4:enabled~.fui-Radio__label{cursor:pointer;}",".rzwdzb4:enabled:not(:checked)~.fui-Radio__label{color:var(--colorNeutralForeground3);}",".rzwdzb4:enabled:not(:checked)~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessible);}",".rzwdzb4:enabled:not(:checked):hover~.fui-Radio__label{color:var(--colorNeutralForeground2);}",".rzwdzb4:enabled:not(:checked):hover~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessibleHover);}",".rzwdzb4:enabled:not(:checked):hover:active~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".rzwdzb4:enabled:not(:checked):hover:active~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessiblePressed);}",".rzwdzb4:enabled:checked~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".rzwdzb4:enabled:checked~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStroke);color:var(--colorCompoundBrandForeground1);}",".rzwdzb4:enabled:checked:hover~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokeHover);color:var(--colorCompoundBrandForeground1Hover);}",".rzwdzb4:enabled:checked:hover:active~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokePressed);color:var(--colorCompoundBrandForeground1Pressed);}",".rzwdzb4:disabled~.fui-Radio__label{color:var(--colorNeutralForegroundDisabled);cursor:default;}",".rzwdzb4:disabled~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeDisabled);color:var(--colorNeutralForegroundDisabled);}"],s:["@media (forced-colors: active){.rg1upok:enabled:not(:checked)~.fui-Radio__indicator{border-color:ButtonBorder;}}","@media (forced-colors: active){.rg1upok:enabled:checked~.fui-Radio__indicator{border-color:Highlight;color:Highlight;}.rg1upok:enabled:checked~.fui-Radio__indicator::after{background-color:Highlight;}}","@media (forced-colors: active){.rg1upok:disabled~.fui-Radio__label{color:GrayText;}}","@media (forced-colors: active){.rg1upok:disabled~.fui-Radio__indicator{border-color:GrayText;color:GrayText;}.rg1upok:disabled~.fui-Radio__indicator::after{background-color:GrayText;}}","@media (forced-colors: active){.rzwdzb4:enabled:not(:checked)~.fui-Radio__indicator{border-color:ButtonBorder;}}","@media (forced-colors: active){.rzwdzb4:enabled:checked~.fui-Radio__indicator{border-color:Highlight;color:Highlight;}.rzwdzb4:enabled:checked~.fui-Radio__indicator::after{background-color:Highlight;}}","@media (forced-colors: active){.rzwdzb4:disabled~.fui-Radio__label{color:GrayText;}}","@media (forced-colors: active){.rzwdzb4:disabled~.fui-Radio__indicator{border-color:GrayText;color:GrayText;}.rzwdzb4:disabled~.fui-Radio__indicator::after{background-color:GrayText;}}"]}),q2=ge({below:{a9b677:"fly5x3f",Bqenvij:"f1je6zif"},defaultIndicator:{Blbys7f:"f9ma1gx"},customIndicator:{Bj53wkj:"f12zxao0"}},{d:[".fly5x3f{width:100%;}",".f1je6zif{height:calc(16px + 2 * var(--spacingVerticalS));}",'.f9ma1gx:checked~.fui-Radio__indicator::after{content:"";}',".f12zxao0:not(:checked)~.fui-Radio__indicator>*{opacity:0;}"]}),H2=ct("rwtekvw",null,[".rwtekvw{position:relative;width:16px;height:16px;font-size:12px;box-sizing:border-box;flex-shrink:0;display:flex;align-items:center;justify-content:center;overflow:hidden;border:var(--strokeWidthThin) solid;border-radius:var(--borderRadiusCircular);margin:var(--spacingVerticalS) var(--spacingHorizontalS);fill:currentColor;pointer-events:none;}",".rwtekvw::after{position:absolute;width:16px;height:16px;border-radius:var(--borderRadiusCircular);transform:scale(0.625);background-color:currentColor;}"]),W2=ge({base:{qb2dma:"f7nlbp4",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1f5q0n8"},after:{uwmqm3:["fruq291","f7x41pl"],B6of3ja:"fjzwpt6",jrapky:"fh6j2fo"},below:{z8tnut:"f1ywm7hm",fsow6f:"f17mccla"}},{d:[".f7nlbp4{align-self:center;}",[".f1f5q0n8{padding:var(--spacingVerticalS) var(--spacingHorizontalS);}",{p:-1}],".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fjzwpt6{margin-top:calc((16px - var(--lineHeightBase300)) / 2);}",".fh6j2fo{margin-bottom:calc((16px - var(--lineHeightBase300)) / 2);}",".f1ywm7hm{padding-top:var(--spacingVerticalXS);}",".f17mccla{text-align:center;}"]}),V2=e=>{"use no memo";const{labelPosition:r}=e,n=A2(),i=M2();e.root.className=ce(_s.root,n,r==="below"&&i.vertical,e.root.className);const l=L2(),a=q2();e.input.className=ce(_s.input,l,r==="below"&&a.below,e.indicator.children?a.customIndicator:a.defaultIndicator,e.input.className);const u=H2();e.indicator.className=ce(_s.indicator,u,e.indicator.className);const d=W2();return e.label&&(e.label.className=ce(_s.label,d.base,d[r],e.label.className)),e},hc=S.forwardRef((e,r)=>{const n=O2(e,r);return V2(n),Ge("useRadioStyles_unstable")(n),D2(n)});hc.displayName="Radio";const gg=S.createContext(void 0),$2={};gg.Provider;const U2=()=>{var e;return(e=S.useContext(gg))!==null&&e!==void 0?e:$2},G2=(e,r)=>{const{size:n}=U2(),{appearance:i="primary",labelPosition:l="after",size:a=n??"medium",delay:u=0}=e,d=Gt("spinner"),{role:f="progressbar",...m}=e,h=Ee(xt("div",{ref:r,role:f,...m},["size"]),{elementType:"div"}),[v,b]=S.useState(!1),[y,k]=$f();S.useEffect(()=>{if(!(u<=0))return y(()=>{b(!0)},u),()=>{k()}},[y,k,u]);const w=Ie(e.label,{defaultProps:{id:d},renderByDefault:!1,elementType:Dr}),_=Ie(e.spinner,{renderByDefault:!0,elementType:"span"});return w&&h&&!h["aria-labelledby"]&&(h["aria-labelledby"]=w.id),{appearance:i,delay:u,labelPosition:l,size:a,shouldRenderSpinner:!u||v,components:{root:"div",spinner:"span",spinnerTail:"span",label:Dr},root:h,spinner:_,spinnerTail:Ee(e.spinnerTail,{elementType:"span"}),label:w}},K2=e=>{const{labelPosition:r,shouldRenderSpinner:n}=e;return Je(e.root,{children:[e.label&&n&&(r==="above"||r==="before")&&ue(e.label,{}),e.spinner&&n&&ue(e.spinner,{children:e.spinnerTail&&ue(e.spinnerTail,{})}),e.label&&n&&(r==="below"||r==="after")&&ue(e.label,{})]})},Bs={root:"fui-Spinner",spinner:"fui-Spinner__spinner",spinnerTail:"fui-Spinner__spinnerTail",label:"fui-Spinner__label"},X2=ct("rpp59a7",null,[".rpp59a7{display:flex;align-items:center;justify-content:center;line-height:0;gap:8px;overflow:hidden;min-width:min-content;}"]),Q2=ge({vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f1vx9l62{flex-direction:column;}"]}),Y2=ct("rvgcg50","r15nd2jo",{r:[".rvgcg50{position:relative;flex-shrink:0;-webkit-mask-image:radial-gradient(closest-side, transparent calc(100% - var(--fui-Spinner--strokeWidth) - 1px), white calc(100% - var(--fui-Spinner--strokeWidth)) calc(100% - 1px), transparent 100%);mask-image:radial-gradient(closest-side, transparent calc(100% - var(--fui-Spinner--strokeWidth) - 1px), white calc(100% - var(--fui-Spinner--strokeWidth)) calc(100% - 1px), transparent 100%);background-color:var(--colorBrandStroke2Contrast);color:var(--colorBrandStroke1);animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:rb7n1on;}","@keyframes rb7n1on{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}",".r15nd2jo{position:relative;flex-shrink:0;-webkit-mask-image:radial-gradient(closest-side, transparent calc(100% - var(--fui-Spinner--strokeWidth) - 1px), white calc(100% - var(--fui-Spinner--strokeWidth)) calc(100% - 1px), transparent 100%);mask-image:radial-gradient(closest-side, transparent calc(100% - var(--fui-Spinner--strokeWidth) - 1px), white calc(100% - var(--fui-Spinner--strokeWidth)) calc(100% - 1px), transparent 100%);background-color:var(--colorBrandStroke2Contrast);color:var(--colorBrandStroke1);animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:r1gx3jof;}","@keyframes r1gx3jof{0%{transform:rotate(0deg);}100%{transform:rotate(-360deg);}}"],s:["@media screen and (forced-colors: active){.rvgcg50{background-color:HighlightText;color:Highlight;forced-color-adjust:none;}}","@media screen and (prefers-reduced-motion: reduce){.rvgcg50{animation-duration:1.8s;}}","@media screen and (forced-colors: active){.r15nd2jo{background-color:HighlightText;color:Highlight;forced-color-adjust:none;}}","@media screen and (prefers-reduced-motion: reduce){.r15nd2jo{animation-duration:1.8s;}}"]}),J2=ct("rxov3xa","r1o544mv",{r:[".rxov3xa{position:absolute;display:block;width:100%;height:100%;-webkit-mask-image:conic-gradient(transparent 105deg, white 105deg);mask-image:conic-gradient(transparent 105deg, white 105deg);animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:var(--curveEasyEase);animation-name:r15mim6k;}",'.rxov3xa::before,.rxov3xa::after{content:"";position:absolute;display:block;width:100%;height:100%;animation:inherit;background-image:conic-gradient(currentcolor 135deg, transparent 135deg);}',"@keyframes r15mim6k{0%{transform:rotate(-135deg);}50%{transform:rotate(0deg);}100%{transform:rotate(225deg);}}",".rxov3xa::before{animation-name:r18vhmn8;}","@keyframes r18vhmn8{0%{transform:rotate(0deg);}50%{transform:rotate(105deg);}100%{transform:rotate(0deg);}}",".rxov3xa::after{animation-name:rkgrvoi;}","@keyframes rkgrvoi{0%{transform:rotate(0deg);}50%{transform:rotate(225deg);}100%{transform:rotate(0deg);}}",".r1o544mv{position:absolute;display:block;width:100%;height:100%;-webkit-mask-image:conic-gradient(transparent 105deg, white 105deg);mask-image:conic-gradient(transparent 105deg, white 105deg);animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:var(--curveEasyEase);animation-name:r109gmi5;}",'.r1o544mv::before,.r1o544mv::after{content:"";position:absolute;display:block;width:100%;height:100%;animation:inherit;background-image:conic-gradient(currentcolor 135deg, transparent 135deg);}',"@keyframes r109gmi5{0%{transform:rotate(135deg);}50%{transform:rotate(0deg);}100%{transform:rotate(-225deg);}}",".r1o544mv::before{animation-name:r17whflh;}","@keyframes r17whflh{0%{transform:rotate(0deg);}50%{transform:rotate(-105deg);}100%{transform:rotate(0deg);}}",".r1o544mv::after{animation-name:re4odhl;}","@keyframes re4odhl{0%{transform:rotate(0deg);}50%{transform:rotate(-225deg);}100%{transform:rotate(0deg);}}"],s:["@media screen and (prefers-reduced-motion: reduce){.rxov3xa{animation-iteration-count:0;background-image:conic-gradient(transparent 120deg, currentcolor 360deg);}.rxov3xa::before,.rxov3xa::after{content:none;}}","@media screen and (prefers-reduced-motion: reduce){.r1o544mv{animation-iteration-count:0;background-image:conic-gradient(transparent 120deg, currentcolor 360deg);}.r1o544mv::before,.r1o544mv::after{content:none;}}"]}),Z2=ge({inverted:{De3pzq:"fr407j0",sj55zd:"f1f7voed"},rtlTail:{btxmck:"f179dep3",gb5jj2:"fbz9ihp",Bdya8wy:"f1pme1qz"},"extra-tiny":{Bqenvij:"fd461yt",a9b677:"fjw5fx7",qmp6fs:"f1v3ph3m"},tiny:{Bqenvij:"fjamq6b",a9b677:"f64fuq3",qmp6fs:"f1v3ph3m"},"extra-small":{Bqenvij:"frvgh55",a9b677:"fq4mcun",qmp6fs:"f1v3ph3m"},small:{Bqenvij:"fxldao9",a9b677:"f1w9dchk",qmp6fs:"f1v3ph3m"},medium:{Bqenvij:"f1d2rq10",a9b677:"f1szoe96",qmp6fs:"fb52u90"},large:{Bqenvij:"f8ljn23",a9b677:"fpdz1er",qmp6fs:"fb52u90"},"extra-large":{Bqenvij:"fbhnoac",a9b677:"feqmc2u",qmp6fs:"fb52u90"},huge:{Bqenvij:"f1ft4266",a9b677:"fksc0bp",qmp6fs:"fa3u9ii"}},{d:[".fr407j0{background-color:var(--colorNeutralStrokeAlpha2);}",".f1f7voed{color:var(--colorNeutralStrokeOnBrand2);}",".f179dep3{-webkit-mask-image:conic-gradient(white 255deg, transparent 255deg);mask-image:conic-gradient(white 255deg, transparent 255deg);}",".fbz9ihp::before,.fbz9ihp::after{background-image:conic-gradient(transparent 225deg, currentcolor 225deg);}",".fd461yt{height:16px;}",".fjw5fx7{width:16px;}",".f1v3ph3m{--fui-Spinner--strokeWidth:var(--strokeWidthThick);}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".fxldao9{height:28px;}",".f1w9dchk{width:28px;}",".f1d2rq10{height:32px;}",".f1szoe96{width:32px;}",".fb52u90{--fui-Spinner--strokeWidth:var(--strokeWidthThicker);}",".f8ljn23{height:36px;}",".fpdz1er{width:36px;}",".fbhnoac{height:40px;}",".feqmc2u{width:40px;}",".f1ft4266{height:44px;}",".fksc0bp{width:44px;}",".fa3u9ii{--fui-Spinner--strokeWidth:var(--strokeWidthThickest);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f1pme1qz{background-image:conic-gradient(currentcolor 0deg, transparent 240deg);}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),eB=ge({inverted:{sj55zd:"fonrgv7"},"extra-tiny":{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},tiny:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},"extra-small":{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},large:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},"extra-large":{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},huge:{Bahqtrf:"fk6fouc",Be2twd7:"f1pp30po",Bhrd7zp:"fl43uef",Bg96gwp:"f106mvju"}},{d:[".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f106mvju{line-height:var(--lineHeightBase500);}"]}),tB=e=>{"use no memo";const{labelPosition:r,size:n,appearance:i}=e,{dir:l}=nt(),a=X2(),u=Q2(),d=Y2(),f=Z2(),m=J2(),h=eB();return e.root.className=ce(Bs.root,a,(r==="above"||r==="below")&&u.vertical,e.root.className),e.spinner&&(e.spinner.className=ce(Bs.spinner,d,f[n],i==="inverted"&&f.inverted,e.spinner.className)),e.spinnerTail&&(e.spinnerTail.className=ce(Bs.spinnerTail,m,l==="rtl"&&f.rtlTail,e.spinnerTail.className)),e.label&&(e.label.className=ce(Bs.label,h[n],i==="inverted"&&h.inverted,e.label.className)),e},vc=S.forwardRef((e,r)=>{const n=G2(e,r);return tB(n),Ge("useSpinnerStyles_unstable")(n),K2(n)});vc.displayName="Spinner";const hg=(e,r)=>{const{wrap:n,truncate:i,block:l,italic:a,underline:u,strikethrough:d,size:f,font:m,weight:h,align:v}=e;return{align:v??"start",block:l??!1,font:m??"base",italic:a??!1,size:f??300,strikethrough:d??!1,truncate:i??!1,underline:u??!1,weight:h??"regular",wrap:n??!0,components:{root:"span"},root:Ee(xt("span",{ref:r,...e}),{elementType:"span"})}},vg=e=>ue(e.root,{}),rB={root:"fui-Text"},oB=ge({root:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",Bhrd7zp:"figsok6",fsow6f:"fpgzoln",mc9l5x:"f1w7gpdv",Huce71:"f6juhto",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1gl81tg",ygn44y:"f2jf649"},nowrap:{Huce71:"fz5stix",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp"},truncate:{ygn44y:"f1cmbuwj"},block:{mc9l5x:"ftgm304"},italic:{B80ckks:"f1j4dglz"},underline:{w71qe1:"f13mvf36"},strikethrough:{w71qe1:"fv5q2k7"},strikethroughUnderline:{w71qe1:"f1drk4o6"},base100:{Be2twd7:"f13mqy1h",Bg96gwp:"fcpl73t"},base200:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},base400:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k"},base500:{Be2twd7:"f1pp30po",Bg96gwp:"f106mvju"},base600:{Be2twd7:"f1x0m3f5",Bg96gwp:"fb86gi6"},hero700:{Be2twd7:"fojgt09",Bg96gwp:"fcen8rp"},hero800:{Be2twd7:"fccw675",Bg96gwp:"f1ebx5kk"},hero900:{Be2twd7:"f15afnhw",Bg96gwp:"fr3w3wp"},hero1000:{Be2twd7:"fpyltcb",Bg96gwp:"f1ivgwrt"},monospace:{Bahqtrf:"f1fedwem"},numeric:{Bahqtrf:"f1uq0ln5"},weightMedium:{Bhrd7zp:"fdj6btp"},weightSemibold:{Bhrd7zp:"fl43uef"},weightBold:{Bhrd7zp:"flh3ekv"},alignCenter:{fsow6f:"f17mccla"},alignEnd:{fsow6f:"f12ymhq5"},alignJustify:{fsow6f:"f1j59e10"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fpgzoln{text-align:start;}",".f1w7gpdv{display:inline;}",".f6juhto{white-space:normal;}",[".f1gl81tg{overflow:visible;}",{p:-1}],".f2jf649{text-overflow:clip;}",".fz5stix{white-space:nowrap;}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],".f1cmbuwj{text-overflow:ellipsis;}",".ftgm304{display:block;}",".f1j4dglz{font-style:italic;}",".f13mvf36{text-decoration-line:underline;}",".fv5q2k7{text-decoration-line:line-through;}",".f1drk4o6{text-decoration-line:line-through underline;}",".f13mqy1h{font-size:var(--fontSizeBase100);}",".fcpl73t{line-height:var(--lineHeightBase100);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f106mvju{line-height:var(--lineHeightBase500);}",".f1x0m3f5{font-size:var(--fontSizeBase600);}",".fb86gi6{line-height:var(--lineHeightBase600);}",".fojgt09{font-size:var(--fontSizeHero700);}",".fcen8rp{line-height:var(--lineHeightHero700);}",".fccw675{font-size:var(--fontSizeHero800);}",".f1ebx5kk{line-height:var(--lineHeightHero800);}",".f15afnhw{font-size:var(--fontSizeHero900);}",".fr3w3wp{line-height:var(--lineHeightHero900);}",".fpyltcb{font-size:var(--fontSizeHero1000);}",".f1ivgwrt{line-height:var(--lineHeightHero1000);}",".f1fedwem{font-family:var(--fontFamilyMonospace);}",".f1uq0ln5{font-family:var(--fontFamilyNumeric);}",".fdj6btp{font-weight:var(--fontWeightMedium);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".flh3ekv{font-weight:var(--fontWeightBold);}",".f17mccla{text-align:center;}",".f12ymhq5{text-align:end;}",".f1j59e10{text-align:justify;}"]}),bg=e=>{"use no memo";const r=oB();return e.root.className=ce(rB.root,r.root,e.wrap===!1&&r.nowrap,e.truncate&&r.truncate,e.block&&r.block,e.italic&&r.italic,e.underline&&r.underline,e.strikethrough&&r.strikethrough,e.underline&&e.strikethrough&&r.strikethroughUnderline,e.size===100&&r.base100,e.size===200&&r.base200,e.size===400&&r.base400,e.size===500&&r.base500,e.size===600&&r.base600,e.size===700&&r.hero700,e.size===800&&r.hero800,e.size===900&&r.hero900,e.size===1e3&&r.hero1000,e.font==="monospace"&&r.monospace,e.font==="numeric"&&r.numeric,e.weight==="medium"&&r.weightMedium,e.weight==="semibold"&&r.weightSemibold,e.weight==="bold"&&r.weightBold,e.align==="center"&&r.alignCenter,e.align==="end"&&r.alignEnd,e.align==="justify"&&r.alignJustify,e.root.className),e},yg=S.forwardRef((e,r)=>{const n=hg(e,r);return bg(n),Ge("useTextStyles_unstable")(n),vg(n)});yg.displayName="Text";function nB(e){const{useStyles:r,className:n,displayName:i}=e,l=S.forwardRef((a,u)=>{"use no memo";const d=r(),f=hg(a,u);return bg(f),f.root.className=ce(n,f.root.className,d.root,a.className),vg(f)});return l.displayName=i,l}const iB=nB({useStyles:ge({root:{Bahqtrf:"fk6fouc",Be2twd7:"f1x0m3f5",Bhrd7zp:"fl43uef",Bg96gwp:"fb86gi6"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f1x0m3f5{font-size:var(--fontSizeBase600);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fb86gi6{line-height:var(--lineHeightBase600);}"]}),className:{root:"fui-Title3"}.root,displayName:"Title3"}),Kn=()=>{},wg={allRowsSelected:!1,clearRows:Kn,deselectRow:Kn,isRowSelected:()=>!1,selectRow:Kn,selectedRows:new Set,someRowsSelected:!1,toggleAllRows:Kn,toggleRow:Kn,selectionMode:"multiselect"};function sB(e){"use no memo";return r=>lB(r,e)}function lB(e,r){const{items:n,getRowId:i}=e,{selectionMode:l,defaultSelectedItems:a,selectedItems:u,onSelectionChange:d}=r,[f,m]=vy({selectionMode:l,defaultSelectedItems:a,selectedItems:u,onSelectionChange:d}),h=S.useMemo(()=>{const B=new Set;for(let E=0;E<n.length;E++){var C;B.add((C=i?.(n[E]))!==null&&C!==void 0?C:E)}return B},[n,i]),v=S.useMemo(()=>{if(l==="single"){const C=Array.from(f)[0];return h.has(C)}if(f.size<h.size||h.size===0)return!1;let B=!0;return h.forEach(C=>{f.has(C)||(B=!1)}),B},[h,f,l]),b=S.useMemo(()=>{if(f.size<=0)return!1;let B=!1;return h.forEach(C=>{f.has(C)&&(B=!0)}),B},[h,f]),y=xe(B=>{m.toggleAllItems(B,n.map((C,E)=>{var O;return(O=i?.(C))!==null&&O!==void 0?O:E}))}),k=xe((B,C)=>m.toggleItem(B,C)),w=xe((B,C)=>m.deselectItem(B,C)),_=xe((B,C)=>m.selectItem(B,C)),z=B=>m.isSelected(B),N=xe(B=>m.clearItems(B));return{...e,selection:{selectionMode:l,someRowsSelected:b,allRowsSelected:v,selectedRows:f,toggleRow:k,toggleAllRows:y,clearRows:N,deselectRow:w,selectRow:_,isRowSelected:z}}}const bc=()=>{},kg={getSortDirection:()=>"ascending",setColumnSort:bc,sort:e=>[...e],sortColumn:void 0,sortDirection:"ascending",toggleColumnSort:bc};function aB(e){"use no memo";return r=>cB(r,e)}function cB(e,r){const{columns:n}=e,{sortState:i,defaultSortState:l,onSortChange:a=bc}=r,[u,d]=Tr({initialState:{sortDirection:"ascending",sortColumn:void 0},defaultState:l,state:i}),{sortColumn:f,sortDirection:m}=u,h=xe(a),v=S.useCallback((w,_)=>{d(z=>{const N={...z,sortColumn:_};return z.sortColumn===_?N.sortDirection=z.sortDirection==="ascending"?"descending":"ascending":N.sortDirection="ascending",h?.(w,N),N})},[h,d]),b=(w,_,z)=>{const N={sortColumn:_,sortDirection:z};h?.(w,N),d(N)},y=S.useCallback(w=>w.slice().sort((_,z)=>{const N=n.find(C=>C.columnId===f);if(!N?.compare)return 0;const B=m==="ascending"?1:-1;return N.compare(_.item,z.item)*B}),[n,f,m]);return{...e,sort:{sort:y,sortColumn:f,sortDirection:m,setColumnSort:b,toggleColumnSort:v,getSortDirection:w=>f===w?m:void 0}}}const uB=(e,r)=>{const n=xe(i=>{var l;(l=e.onClick)===null||l===void 0||l.call(e,i),i.stopPropagation()});return{components:{root:"div"},root:Ee(xt("div",{ref:r,...e,onClick:n}),{elementType:"div"})}},dB=e=>ue(e.root,{}),fB={root:"fui-TableResizeHandle"},pB=ge({root:{qhf8xq:"f1euv43f",j35jbq:["f1e31b4d","f1vgc2s3"],Bhzewxz:"f15twtuk",B5kzvoi:"f1yab3r1",a9b677:"fjw5fx7",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"fg06o1j",Bceei9c:"fc3en1c",abs64n:"fk73vx1",Bmy1vo4:"f13u1uyl",B3o57yi:"fezquic",Bj3rh1h:"f19g0ac",B3cna0y:"f1tkae59",Brovlpu:"ftqa4ok",B7zu5sd:"f15pjodv",Bsft5z2:"f1rcdj94",ap17g6:"f2gz7yw",a2br6o:"ff2ryt5",E3zdtr:"f1mdlcz9",Eqx8gd:["f10awi5f","f1nzedbg"],bn5sak:"frwkxtg",By385i5:"fo72kxq",Bjyk6c5:"fdlpgxj"}},{d:[".f1euv43f{position:absolute;}",".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f15twtuk{top:0;}",".f1yab3r1{bottom:0;}",".fjw5fx7{width:16px;}",[".fg06o1j{margin:0 -8px;}",{p:-1}],".fc3en1c{cursor:col-resize;}",".fk73vx1{opacity:0;}",".f13u1uyl{transition-property:opacity;}",".fezquic{transition-duration:.2s;}",".f19g0ac{z-index:1;}",'.f1rcdj94::after{content:" ";}',".f2gz7yw::after{display:block;}",".ff2ryt5::after{width:1px;}",".f1mdlcz9::after{position:absolute;}",".f10awi5f::after{left:50%;}",".f1nzedbg::after{right:50%;}",".frwkxtg::after{top:0;}",".fo72kxq::after{bottom:0;}",".fdlpgxj::after{background-color:var(--colorNeutralStroke1);}"],f:[".f1tkae59:focus{opacity:1;}",".ftqa4ok:focus{outline-style:none;}"],h:[".f15pjodv:hover{opacity:1;}"]}),mB=e=>{"use no memo";const r=pB();return e.root.className=ce(fB.root,r.root,e.root.className),e},xg=S.forwardRef((e,r)=>{const n=uB(e,r);return mB(n),Ge("useTableResizeHandleStyles_unstable")(n),dB(n)});xg.displayName="TableResizeHandle";function gB(){const[e,r]=S.useState(0),n=S.useRef(void 0),i=S.useRef(null),{targetDocument:l}=nt(),a=S.useCallback(()=>{var d;const f=(d=n.current)===null||d===void 0?void 0:d.getBoundingClientRect().width;r(f||0)},[]),u=S.useCallback(d=>{if(l&&(!d&&i.current&&n.current&&i.current.unobserve(n.current),n.current=void 0,d?.parentElement)){var f;n.current=d.parentElement,a(),(f=i.current)===null||f===void 0||f.observe(n.current)}},[l,a]);return S.useEffect(()=>{if(i.current=hB(l,a),!(!n.current||!i.current))return i.current.observe(n.current),()=>{var d;(d=i.current)===null||d===void 0||d.disconnect()}},[a,l]),{width:e,measureElementRef:u}}function hB(e,r){var n;return!(e==null||(n=e.defaultView)===null||n===void 0)&&n.ResizeObserver?new e.defaultView.ResizeObserver(r):null}function vB(e){const r=S.useRef(0),n=S.useRef(0),i=S.useRef(void 0),[l,a]=S.useState(!1),{targetDocument:u}=nt(),{getColumnWidth:d,setColumnWidth:f}=e,m=S.useCallback(k=>{const{clientX:w}=Xf(k),_=w-r.current;n.current+=_,i.current&&f(k,{columnId:i.current,width:n.current}),r.current=w},[f]),[h]=Z1(),v=S.useCallback(k=>{h(()=>m(k))},[h,m]),b=S.useCallback(k=>{ha(k)&&(u?.removeEventListener("mouseup",b),u?.removeEventListener("mousemove",v)),ga(k)&&(u?.removeEventListener("touchend",b),u?.removeEventListener("touchmove",v)),a(!1)},[v,u]);return{getOnMouseDown:S.useCallback(k=>w=>{if(n.current=d(k),r.current=Xf(w).clientX,i.current=k,ha(w)){if(w.target!==w.currentTarget||w.button!==0)return;u?.addEventListener("mouseup",b),u?.addEventListener("mousemove",v),a(!0)}ga(w)&&(u?.addEventListener("touchend",b),u?.addEventListener("touchmove",v),a(!0))},[d,v,b,u]),dragging:l}}const bB=150,yB=100;function yc(e,r=[],n={}){let i=!1;const l=new Map(r.map(u=>[u.columnId,u])),a=e.map(u=>{const d=l.get(u.columnId);if(d){var f;const{idealWidth:k=d.idealWidth,minWidth:w=d.minWidth,padding:_=d.padding}=(f=n[u.columnId])!==null&&f!==void 0?f:{};return k!==d.idealWidth||w!==d.minWidth||_!==d.padding?(i=!0,{...d,idealWidth:k,width:k,minWidth:w,padding:_}):d}var m;const{defaultWidth:h,idealWidth:v=bB,minWidth:b=yB,padding:y}=(m=n[u.columnId])!==null&&m!==void 0?m:{};return i=!0,{columnId:u.columnId,width:Math.max(h??v,b),minWidth:b,idealWidth:Math.max(h??v,b),padding:y??16}});if(a.length!==r.length||i){const u=a.find(d=>d.width>d.idealWidth);u&&(u.width=u.idealWidth),i=!0}return i?a:r}function Xn(e,r){return e.find(n=>n.columnId===r)}function wc(e,r){return e[r]}function wB(e){return e.reduce((r,n)=>r+n.width+n.padding,0)}function kB(e,r){const n=Xn(e,r);var i;return(i=n?.width)!==null&&i!==void 0?i:0}function Qn(e,r,n,i){const l=Xn(e,r);if(!l||l?.[n]===i)return e;const a={...l,[n]:i};return e.reduce((d,f)=>f.columnId===a.columnId?[...d,a]:[...d,f],[])}function Cs(e,r){let n=e;const i=wB(n);if(i<r){let l=r-i,a=0;for(;a<n.length&&l>0;){const u=wc(n,a);if(!u)break;const d=Math.min(u.idealWidth-u.width,l);if(n=Qn(n,u.columnId,"width",u.width+d),l-=d,a===n.length-1&&l!==0){const f=wc(n,a);f&&(n=Qn(n,f.columnId,"width",f.width+l))}a++}}else if(i>=r){let l=i-r,a=n.length-1;for(;a>=0&&l>0;){const u=wc(n,a);if(!u){a--;continue}if(u.width>u.minWidth){const d=Math.min(u.width-u.minWidth,l);l-=d,n=Qn(n,u.columnId,"width",u.width-d)}a--}}return n}const xB=e=>(r,n)=>{switch(n.type){case"CONTAINER_WIDTH_UPDATED":return{...r,containerWidth:n.containerWidth,columnWidthState:e?Cs(r.columnWidthState,n.containerWidth):r.columnWidthState};case"COLUMNS_UPDATED":const i=yc(n.columns,r.columnWidthState,r.columnSizingOptions);return{...r,columns:n.columns,columnWidthState:e?Cs(i,r.containerWidth):i};case"COLUMN_SIZING_OPTIONS_UPDATED":const l=yc(r.columns,r.columnWidthState,n.columnSizingOptions);return{...r,columnSizingOptions:n.columnSizingOptions,columnWidthState:e?Cs(l,r.containerWidth):l};case"SET_COLUMN_WIDTH":const{columnId:a,width:u}=n,{containerWidth:d}=r,f=Xn(r.columnWidthState,a);let m=[...r.columnWidthState];return f?(m=Qn(m,a,"width",u),m=Qn(m,a,"idealWidth",u),e&&(m=Cs(m,d)),{...r,columnWidthState:m}):r}};function SB(e,r,n={}){const{onColumnResize:i,columnSizingOptions:l,autoFitColumns:a=!0}=n,u=S.useMemo(()=>xB(a),[a]),[d,f]=S.useReducer(u,{columns:e,containerWidth:0,columnWidthState:yc(e,void 0,l),columnSizingOptions:l});Dt(()=>{f({type:"CONTAINER_WIDTH_UPDATED",containerWidth:r})},[r]),Dt(()=>{f({type:"COLUMNS_UPDATED",columns:e})},[e]),Dt(()=>{f({type:"COLUMN_SIZING_OPTIONS_UPDATED",columnSizingOptions:l})},[l]);const m=xe((h,v)=>{let{width:b}=v;const{columnId:y}=v,k=Xn(d.columnWidthState,y);k&&(b=Math.max(k.minWidth||0,b),i&&i(h,{columnId:y,width:b}),f({type:"SET_COLUMN_WIDTH",columnId:y,width:b}))});return{getColumnById:S.useCallback(h=>Xn(d.columnWidthState,h),[d.columnWidthState]),getColumns:S.useCallback(()=>d.columnWidthState,[d.columnWidthState]),getColumnWidth:S.useCallback(h=>kB(d.columnWidthState,h),[d.columnWidthState]),setColumnWidth:m}}const zs=20,_B=Qk,Sg=1/4;function BB(e){const[r,n]=S.useState(),i=S.useRef(void 0),{findPrevFocusable:l}=Fa(),a=S.useRef(e);S.useEffect(()=>{a.current=e},[e]);const[u]=S.useState(()=>new Map),d=xe(y=>{if(!r)return;const k=a.current.getColumnWidth(r),w=y.getModifierState(_B),_=()=>{y.preventDefault(),y.stopPropagation()};switch(y.key){case Va:_(),a.current.setColumnWidth(y.nativeEvent,{columnId:r,width:k-(w?zs*Sg:zs)});return;case $a:_(),a.current.setColumnWidth(y.nativeEvent,{columnId:r,width:k+(w?zs*Sg:zs)});return;case yr:case Go:case Ua:var z,N;_(),(N=u.get(r))===null||N===void 0||(z=N.current)===null||z===void 0||z.blur();break}}),f=S.useCallback(y=>{var k,w;n(y),(k=i.current)===null||k===void 0||k.call(i,y,!0);const _=(w=u.get(y))===null||w===void 0?void 0:w.current;_&&(_.setAttribute("tabindex","-1"),_.tabIndex=-1,_.focus())},[u]),m=S.useCallback(()=>{var y,k;if(!r)return;(y=i.current)===null||y===void 0||y.call(i,r,!1);const w=(k=u.get(r))===null||k===void 0?void 0:k.current;if(w){var _;(_=l(w))===null||_===void 0||_.focus(),w.removeAttribute("tabindex")}n(void 0)},[r,l,u]),h=(y,k)=>{i.current=k,r?y&&r!==y?(f(y),n(y)):m():f(y)},v=S.useCallback(y=>{const k=u.get(y)||S.createRef();return u.set(y,k),k},[u]),b=Ea({focusable:{ignoreKeydown:{ArrowLeft:!0,ArrowRight:!0}}});return{toggleInteractiveMode:h,columnId:r,getKeyboardResizingProps:S.useCallback((y,k)=>({onKeyDown:d,onBlur:m,ref:v(y),role:"separator","aria-label":"Resize column","aria-valuetext":`${k} pixels`,"aria-hidden":y!==r,tabIndex:y===r?0:void 0,...b}),[r,m,v,d,b])}}const _g={getColumnWidths:()=>[],getOnMouseDown:()=>()=>null,setColumnWidth:()=>null,getTableProps:()=>({}),getTableHeaderCellProps:()=>({style:{},columnId:""}),getTableCellProps:()=>({style:{},columnId:""}),enableKeyboardMode:()=>()=>null};function CB(e){"use no memo";return r=>zB(r,{autoFitColumns:!0,...e})}function Bg(e,r){const n=e.width;return{width:n,minWidth:n,maxWidth:n,...r?{pointerEvents:"none"}:{}}}function zB(e,r={}){const{columns:n}=e,{width:i,measureElementRef:l}=gB(),a=SB(n,i+(r?.containerWidthOffset||0),r),u=vB(a),{toggleInteractiveMode:d,getKeyboardResizingProps:f}=BB(a),{autoFitColumns:m}=r,h=S.useCallback((_,z)=>N=>{N.preventDefault(),N.nativeEvent.stopPropagation(),d(_,z)},[d]),{getColumnById:v,setColumnWidth:b,getColumns:y}=a,{getOnMouseDown:k,dragging:w}=u;return{...e,tableRef:l,columnSizing_unstable:{getOnMouseDown:k,setColumnWidth:(_,z)=>b(void 0,{columnId:_,width:z}),getColumnWidths:y,getTableProps:(_={})=>({..._,style:{minWidth:"fit-content",..._.style||{}}}),getTableHeaderCellProps:S.useCallback(_=>{var z;const N=v(_),C=((z=n[n.length-1])===null||z===void 0?void 0:z.columnId)===_&&m?null:S.createElement(xg,{onMouseDown:k(_),onTouchStart:k(_),...f(_,N?.width||0)});return N?{style:Bg(N,w),aside:C}:{}},[v,n,w,f,k,m]),getTableCellProps:S.useCallback(_=>{const z=v(_);return z?{style:Bg(z)}:{}},[v]),enableKeyboardMode:h}}}const NB=e=>e,TB={selection:wg,sort:kg,getRows:()=>[],getRowId:()=>"",items:[],columns:[],columnSizing_unstable:_g,tableRef:S.createRef()};function EB(e,r=[]){const{items:n,getRowId:i,columns:l}=e,a=S.useCallback((d=NB)=>n.map((f,m)=>{var h;return d({item:f,rowId:(h=i?.(f))!==null&&h!==void 0?h:m})}),[n,i]),u={getRowId:i,items:n,columns:l,getRows:a,selection:wg,sort:kg,columnSizing_unstable:_g,tableRef:S.createRef()};return r.reduce((d,f)=>f(d),u)}const PB=()=>0,RB=()=>null,FB=()=>null;function Ns(e){const{columnId:r,renderCell:n=RB,renderHeaderCell:i=FB,compare:l=PB}=e;return{columnId:r,renderCell:n,renderHeaderCell:i,compare:l}}function IB(){const e=Pa({axis:"horizontal"}),r=Pa({axis:"grid"}),n=Ra({tabBehavior:"limited-trap-focus"}),{findFirstFocusable:i}=Fa(),{targetDocument:l}=nt(),a=Ww(e,n);return{onTableKeyDown:S.useCallback(d=>{if(!l)return;let f=l.activeElement;if(!f||!d.currentTarget.contains(f))return;const m=f.getAttribute("role");if(d.key===$a&&m==="row"&&Er(f)){var h;(h=i(f))===null||h===void 0||h.focus()}if(m==="row")return;const v=(()=>{let b=Er(f)?f:null;for(;b;){const y=b.getAttribute("role");if(y==="cell"||y==="gridcell")return!0;b=b.parentElement}return!1})();if(d.key===Va&&v){f.dispatchEvent(new up({action:is.Escape}));return}(d.key===Wa||d.key===us)&&v&&(f.dispatchEvent(new up({action:is.Escape})),f=l.activeElement,f&&f.dispatchEvent(new Gy({key:Ke[d.key]})))},[l,i]),tableTabsterAttribute:r,tableRowTabsterAttribute:a}}const Cg=S.createContext(void 0),jB={size:"medium",noNativeElements:!1,sortable:!1},DB=Cg.Provider,Jr=()=>{var e;return(e=S.useContext(Cg))!==null&&e!==void 0?e:jB},zg=(e,r)=>{const{noNativeElements:n,size:i}=Jr();var l;const a=((l=e.as)!==null&&l!==void 0?l:n)?"div":"td";return{components:{root:a},root:Ee(xt(a,{ref:r,role:a==="div"?"cell":void 0,...e}),{elementType:a}),noNativeElements:n,size:i}},OB=e=>ue(e.root,{}),AB={root:"fui-TableCell"},MB=ge({root:{mc9l5x:"f15pt5es",ha4doy:"fmrv4ls"},medium:{Bqenvij:"f1ft4266"},small:{Bqenvij:"fbsu25e"},"extra-small":{Bqenvij:"frvgh55"}},{d:[".f15pt5es{display:table-cell;}",".fmrv4ls{vertical-align:middle;}",".f1ft4266{height:44px;}",".fbsu25e{height:34px;}",".frvgh55{height:24px;}"]}),LB=ge({root:{mc9l5x:"f22iagw",Bf4jedk:"f10tiqix",Bt984gj:"f122n59",xawz:0,Bh6795r:0,Bnnss6s:0,fkmc3a:"f1izfyrr"},medium:{sshi5w:"f5pgtk9"},small:{sshi5w:"fcep9tg"},"extra-small":{sshi5w:"f1pha7fy"}},{d:[".f22iagw{display:flex;}",".f10tiqix{min-width:0px;}",".f122n59{align-items:center;}",[".f1izfyrr{flex:1 1 0px;}",{p:-1}],".f5pgtk9{min-height:44px;}",".fcep9tg{min-height:34px;}",".f1pha7fy{min-height:24px;}"]}),qB=ge({root:{qhf8xq:"f10pi13n",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f3gpkru",Bfpq7zp:0,g9k6zt:0,Bn4voq9:0,giviqs:"f1dxfoyt",Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"f2krc9w"}},{d:[".f10pi13n{position:relative;}",[".f3gpkru{padding:0px var(--spacingHorizontalS);}",{p:-1}],[".f1dxfoyt[data-fui-focus-visible]{outline:2px solid var(--colorStrokeFocus2);}",{p:-1}],[".f2krc9w[data-fui-focus-visible]{border-radius:var(--borderRadiusMedium);}",{p:-1}]]}),HB=e=>{"use no memo";const r=qB(),n={table:MB(),flex:LB()};return e.root.className=ce(AB.root,r.root,e.noNativeElements?n.flex.root:n.table.root,e.noNativeElements?n.flex[e.size]:n.table[e.size],e.root.className),e},Ng=S.createContext(void 0),WB="",VB=Ng.Provider,kc=()=>S.useContext(Ng)===WB,$B=(e,r)=>{const{noNativeElements:n,size:i}=Jr();var l;const a=((l=e.as)!==null&&l!==void 0?l:n)?"div":"tr",u=Ia(),d=On(),f=kc();var m;return{components:{root:a},root:Ee(xt(a,{ref:Ye(r,u,d),role:a==="div"?"row":void 0,...e}),{elementType:a}),size:i,noNativeElements:n,appearance:(m=e.appearance)!==null&&m!==void 0?m:"none",isHeaderRow:f}},xc={root:"fui-TableSelectionCell",checkboxIndicator:"fui-TableSelectionCell__checkboxIndicator",radioIndicator:"fui-TableSelectionCell__radioIndicator"},UB=ge({root:{mc9l5x:"f15pt5es",a9b677:"fksc0bp"}},{d:[".f15pt5es{display:table-cell;}",".fksc0bp{width:44px;}"]}),GB=ge({root:{mc9l5x:"f22iagw",xawz:0,Bh6795r:0,Bnnss6s:0,fkmc3a:"f1izfyrr",Bf4jedk:"fvrlu0f",B2u0y6b:"f1c71y05",Brf1p80:"f4d9j23"}},{d:[".f22iagw{display:flex;}",[".f1izfyrr{flex:1 1 0px;}",{p:-1}],".fvrlu0f{min-width:44px;}",".f1c71y05{max-width:44px;}",".f4d9j23{justify-content:center;}"]}),KB=ge({root:{fsow6f:"f17mccla",Huce71:"fz5stix",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1mk8lai",Bfpq7zp:0,g9k6zt:0,Bn4voq9:0,giviqs:"f1dxfoyt",Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"f2krc9w"},radioIndicator:{mc9l5x:"f22iagw",Bh6795r:"fqerorx",Bt984gj:"f122n59",Brf1p80:"f4d9j23"},subtle:{abs64n:"fk73vx1",B8a84jv:"f1y7ij6c"},hidden:{abs64n:"fk73vx1"}},{d:[".f17mccla{text-align:center;}",".fz5stix{white-space:nowrap;}",[".f1mk8lai{padding:0;}",{p:-1}],[".f1dxfoyt[data-fui-focus-visible]{outline:2px solid var(--colorStrokeFocus2);}",{p:-1}],[".f2krc9w[data-fui-focus-visible]{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f22iagw{display:flex;}",".fqerorx{flex-grow:1;}",".f122n59{align-items:center;}",".f4d9j23{justify-content:center;}",".fk73vx1{opacity:0;}",".f1y7ij6c[data-fui-focus-within]:focus-within{opacity:1;}"]}),XB=e=>{"use no memo";const r=KB(),n={table:UB(),flex:GB()};return e.root.className=ce(xc.root,r.root,e.noNativeElements?n.flex.root:n.table.root,e.subtle&&e.checked===!1&&r.subtle,e.hidden&&r.hidden,e.root.className),e.checkboxIndicator&&(e.checkboxIndicator.className=ce(xc.checkboxIndicator,e.checkboxIndicator.className)),e.radioIndicator&&(e.radioIndicator.className=ce(xc.radioIndicator,r.radioIndicator,e.radioIndicator.className)),e},QB={root:"fui-TableRow"},YB=ge({root:{mc9l5x:"f1u0rzck"}},{d:[".f1u0rzck{display:table-row;}"]}),JB=ge({root:{mc9l5x:"f22iagw",Bt984gj:"f122n59"}},{d:[".f22iagw{display:flex;}",".f122n59{align-items:center;}"]}),ZB=ge({root:{sj55zd:"f19n0e5",B7ck84d:"f1ewtqcl",Bconypa:"f1jazu75",B6guboy:"f1xeqee6",Bfpq7zp:0,g9k6zt:0,Bn4voq9:0,giviqs:"f1dxfoyt",Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"f2krc9w"},rootInteractive:{B6guboy:"f1xeqee6",ecr2s2:"f1wfn5kd",lj723h:"f1g4hkjv",B43xm9u:"f15ngxrw",i921ia:"fjbbrdp",Jwef8y:"f1t94bn6",Bi91k9c:"feu1g3u",Bpt6rm4:"f1uorfem",ff6mpl:"fw60kww",Bahaeuw:"f1v3eptx",F230oe:"f8gmj8i",Bdw8ktp:["f1ap8nzx","fjag8bx"],Bj1xduy:"f1igan7k",Bhh2cfd:["fjag8bx","f1ap8nzx"]},medium:{B9xav0g:0,oivjwe:0,Bn0qgzm:0,Bgfg5da:"f1facbz3"},small:{B9xav0g:0,oivjwe:0,Bn0qgzm:0,Bgfg5da:"f1facbz3"},"extra-small":{Be2twd7:"fy9rknc"},brand:{De3pzq:"f16xkysk",g2u3we:"f1bh3yvw",h3c5rm:["fmi79ni","f11fozsx"],B9xav0g:"fnzw4c6",zhjwy3:["f11fozsx","fmi79ni"],ecr2s2:"f7tkmfy",lj723h:"f1r2dosr",wmvzou:0,sc4o1m:0,wymq9i:0,u9orzk:0,puiv5t:0,Bosien3:0,b2z72d:0,Beulxaw:0,B57pkaw:0,Jcjdmf:0,B8qgbzl:0,Bbmb0sr:0,B14q8qp:0,Bcq6wej:0,Byz1pjr:0,kr9cjb:0,Ff9ifp:"f1msmgpi",Bmclvqj:0,psczho:0,B0tx59b:0,sk7i8k:0,zlwzm7:"fbo0xvd",Bkp2nk:"fjuvmhu",gy0h4g:"f1kvufhq"},neutral:{wmvzou:0,sc4o1m:0,wymq9i:0,u9orzk:0,puiv5t:0,Bosien3:0,b2z72d:0,Beulxaw:0,B57pkaw:0,Jcjdmf:0,B8qgbzl:0,Bbmb0sr:0,B14q8qp:0,Bcq6wej:0,Byz1pjr:0,kr9cjb:0,Ff9ifp:"f1msmgpi",Bmclvqj:0,psczho:0,B0tx59b:0,sk7i8k:0,zlwzm7:"fbo0xvd",Bkp2nk:"fjuvmhu",gy0h4g:"f1kvufhq",De3pzq:"fq5gl1p",sj55zd:"f1cgsbmv",Jwef8y:"f1uqaxdt",ecr2s2:"fa9o754",g2u3we:"frmsihh",h3c5rm:["frttxa5","f11o2r7f"],B9xav0g:"fem5et0",zhjwy3:["f11o2r7f","frttxa5"]},none:{}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ewtqcl{box-sizing:border-box;}",".f1jazu75[data-fui-focus-within]:focus-within .fui-TableSelectionCell{opacity:1;}",".f1xeqee6[data-fui-focus-within]:focus-within .fui-TableCellActions{opacity:1;}",[".f1dxfoyt[data-fui-focus-visible]{outline:2px solid var(--colorStrokeFocus2);}",{p:-1}],[".f2krc9w[data-fui-focus-visible]{border-radius:var(--borderRadiusMedium);}",{p:-1}],[".f1facbz3{border-bottom:var(--strokeWidthThin) solid var(--colorNeutralStroke2);}",{p:-1}],[".f1facbz3{border-bottom:var(--strokeWidthThin) solid var(--colorNeutralStroke2);}",{p:-1}],".fy9rknc{font-size:var(--fontSizeBase200);}",".f16xkysk{background-color:var(--colorBrandBackground2);}",".f1bh3yvw{border-top-color:var(--colorTransparentStrokeInteractive);}",".fmi79ni{border-right-color:var(--colorTransparentStrokeInteractive);}",".f11fozsx{border-left-color:var(--colorTransparentStrokeInteractive);}",".fnzw4c6{border-bottom-color:var(--colorTransparentStrokeInteractive);}",".fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}",".f1cgsbmv{color:var(--colorNeutralForeground1Hover);}",".frmsihh{border-top-color:var(--colorNeutralStrokeOnBrand);}",".frttxa5{border-right-color:var(--colorNeutralStrokeOnBrand);}",".f11o2r7f{border-left-color:var(--colorNeutralStrokeOnBrand);}",".fem5et0{border-bottom-color:var(--colorNeutralStrokeOnBrand);}"],a:[".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1g4hkjv:active{color:var(--colorNeutralForeground1Pressed);}",".f15ngxrw:active .fui-TableCellActions{opacity:1;}",".fjbbrdp:active .fui-TableSelectionCell{opacity:1;}",".f7tkmfy:active{background-color:var(--colorBrandBackground2);}",".f1r2dosr:active{color:var(--colorNeutralForeground1);}",".fa9o754:active{background-color:var(--colorSubtleBackgroundSelected);}"],h:[".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}",".f1uorfem:hover .fui-TableCellActions{opacity:1;}",".fw60kww:hover .fui-TableSelectionCell{opacity:1;}",".f1uqaxdt:hover{background-color:var(--colorSubtleBackgroundSelected);}"],m:[["@media (forced-colors: active){.f1v3eptx:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f8gmj8i:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ap8nzx:hover{border-right-color:Highlight;}.fjag8bx:hover{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1igan7k:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1msmgpi{border:2px solid transparent;}}",{p:-2,m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbo0xvd{border-radius:var(--borderRadiusMedium);}}",{p:-1,m:"(forced-colors: active)"}],["@media (forced-colors: active){.fjuvmhu{box-sizing:border-box;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1kvufhq:focus-visible{outline-offset:-4px;}}",{m:"(forced-colors: active)"}]]}),eC=e=>{"use no memo";const r=ZB(),n={table:YB(),flex:JB()};return e.root.className=ce(QB.root,r.root,!e.isHeaderRow&&r.rootInteractive,r[e.size],e.noNativeElements?n.flex.root:n.table.root,r[e.appearance],e.root.className),e},tC=(e,r)=>{const{noNativeElements:n}=Jr();var i;const l=((i=e.as)!==null&&i!==void 0?i:n)?"div":"tbody";return{components:{root:l},root:Ee(xt(l,{ref:r,role:l==="div"?"rowgroup":void 0,...e}),{elementType:l}),noNativeElements:n}},rC=ge({root:{mc9l5x:"f1tp1avn"}},{d:[".f1tp1avn{display:table-row-group;}"]}),oC=ge({root:{mc9l5x:"ftgm304"}},{d:[".ftgm304{display:block;}"]}),nC="fui-TableBody",iC=e=>{"use no memo";const r={table:rC(),flex:oC()};return e.root.className=ce(nC,e.noNativeElements?r.flex.root:r.table.root,e.root.className),e},sC=(e,r)=>{var n;const i=((n=e.as)!==null&&n!==void 0?n:e.noNativeElements)?"div":"table";var l,a,u;return{components:{root:i},root:Ee(xt(i,{ref:r,role:i==="div"?"table":void 0,...e}),{elementType:i}),size:(l=e.size)!==null&&l!==void 0?l:"medium",noNativeElements:(a=e.noNativeElements)!==null&&a!==void 0?a:!1,sortable:(u=e.sortable)!==null&&u!==void 0?u:!1}},lC=(e,r)=>ue(DB,{value:r.table,children:ue(e.root,{})}),aC="fui-Table",cC=ge({root:{mc9l5x:"f1w4nmp0",ha4doy:"fmrv4ls",a9b677:"fly5x3f",B73mfa3:"f14m3nip"}},{d:[".f1w4nmp0{display:table;}",".fmrv4ls{vertical-align:middle;}",".fly5x3f{width:100%;}",".f14m3nip{table-layout:fixed;}"]}),uC=ge({root:{mc9l5x:"ftgm304"}},{d:[".ftgm304{display:block;}"]}),dC=ge({root:{po53p8:"fgkb47j",De3pzq:"fhovq9v"}},{d:[".fgkb47j{border-collapse:collapse;}",".fhovq9v{background-color:var(--colorSubtleBackground);}"]}),fC=e=>{"use no memo";const r=dC(),n={table:cC(),flex:uC()};return e.root.className=ce(aC,r.root,e.noNativeElements?n.flex.root:n.table.root,e.root.className),e};function pC(e){const{size:r,noNativeElements:n,sortable:i}=e;return{table:S.useMemo(()=>({noNativeElements:n,size:r,sortable:i}),[n,r,i])}}const mC=(e,r)=>{const{noNativeElements:n}=Jr();var i;const l=((i=e.as)!==null&&i!==void 0?i:n)?"div":"thead";return{components:{root:l},root:Ee(xt(l,{ref:r,role:l==="div"?"rowgroup":void 0,...e}),{elementType:l}),noNativeElements:n}},gC=e=>ue(VB,{value:"",children:ue(e.root,{})}),hC="fui-TableHeader",vC=ge({root:{mc9l5x:"ftgm304"}},{d:[".ftgm304{display:block;}"]}),bC=ge({root:{mc9l5x:"f1tp1avn"}},{d:[".f1tp1avn{display:table-row-group;}"]}),yC=e=>{"use no memo";const r={table:bC(),flex:vC()};return e.root.className=ce(hC,e.noNativeElements?r.flex.root:r.table.root,e.root.className),e},wC={ascending:S.createElement(fx,{fontSize:12}),descending:S.createElement(dx,{fontSize:12})},kC=(e,r)=>{const{noNativeElements:n,sortable:i}=Jr(),{sortable:l=i}=e;var a;const u=((a=e.as)!==null&&a!==void 0?a:n)?"div":"th",d=Ee(e.button,{elementType:"div",defaultProps:{as:"div"}}),f=um(d.as,d);var m;return{components:{root:u,button:"div",sortIcon:"span",aside:"span"},root:Ee(xt(u,{ref:Ye(r,On()),role:u==="div"?"columnheader":void 0,"aria-sort":l?(m=e.sortDirection)!==null&&m!==void 0?m:"none":void 0,...e}),{elementType:u}),aside:Ie(e.aside,{elementType:"span"}),sortIcon:Ie(e.sortIcon,{renderByDefault:!!e.sortDirection,defaultProps:{children:e.sortDirection?wC[e.sortDirection]:void 0},elementType:"span"}),button:l?f:d,sortable:l,noNativeElements:n}},xC=e=>Je(e.root,{children:[Je(e.button,{children:[e.root.children,e.sortIcon&&ue(e.sortIcon,{})]}),e.aside&&ue(e.aside,{})]}),Ts={root:"fui-TableHeaderCell",button:"fui-TableHeaderCell__button",sortIcon:"fui-TableHeaderCell__sortIcon",aside:"fui-TableHeaderCell__aside"},SC=ge({root:{mc9l5x:"f15pt5es",ha4doy:"fmrv4ls"}},{d:[".f15pt5es{display:table-cell;}",".fmrv4ls{vertical-align:middle;}"]}),_C=ge({root:{mc9l5x:"f22iagw",xawz:0,Bh6795r:0,Bnnss6s:0,fkmc3a:"f1izfyrr",Bf4jedk:"f10tiqix"}},{d:[".f22iagw{display:flex;}",[".f1izfyrr{flex:1 1 0px;}",{p:-1}],".f10tiqix{min-width:0px;}"]}),BC=ge({root:{Bhrd7zp:"figsok6",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f3gpkru",robkg1:0,Bmvh20x:0,B3nxjsc:0,Bmkhcsx:"f14ym4q2",B8osjzx:0,pehzd3:0,Blsv9te:0,u7xebq:0,Bsvwmf7:"f1euou18",qhf8xq:"f10pi13n"},rootInteractive:{Bi91k9c:"feu1g3u",Jwef8y:"f1t94bn6",lj723h:"f1g4hkjv",ecr2s2:"f1wfn5kd"},resetButton:{B3rzk8w:"fq6nmtn",B7ck84d:"f1e4lqlz",De3pzq:"f1u2r49w",sj55zd:"f1ym3bx4",Bahqtrf:"f1mo0ibp",Be2twd7:"fjoy568",Bg96gwp:"fytdu2e",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1gl81tg",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1mk8lai",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f3bhgqh",fsow6f:"fgusgyc"},button:{qhf8xq:"f10pi13n",a9b677:"fly5x3f",mc9l5x:"f22iagw",Bh6795r:0,Bqenvij:"f1l02sjl",Bt984gj:"f122n59",i8kkvl:0,Belr9w4:0,rmohyg:"fkln5zr",sshi5w:"f1nxs5xn",xawz:0,Bnnss6s:0,fkmc3a:"f1izfyrr",oeaueh:"f1s6fcnf"},sortable:{Bceei9c:"f1k6fduh"},sortIcon:{mc9l5x:"f22iagw",Bt984gj:"f122n59",z8tnut:"fclwglc"},resizeHandle:{}},{d:[".figsok6{font-weight:var(--fontWeightRegular);}",[".f3gpkru{padding:0px var(--spacingHorizontalS);}",{p:-1}],[".f14ym4q2[data-fui-focus-within]:focus-within{outline:2px solid var(--colorStrokeFocus2);}",{p:-1}],[".f1euou18[data-fui-focus-within]:focus-within{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f10pi13n{position:relative;}",".fq6nmtn{resize:horizontal;}",".f1e4lqlz{box-sizing:content-box;}",".f1u2r49w{background-color:inherit;}",".f1ym3bx4{color:inherit;}",".f1mo0ibp{font-family:inherit;}",".fjoy568{font-size:inherit;}",".fytdu2e{line-height:normal;}",[".f1gl81tg{overflow:visible;}",{p:-1}],[".f1mk8lai{padding:0;}",{p:-1}],[".f3bhgqh{border:none;}",{p:-2}],".fgusgyc{text-align:unset;}",".fly5x3f{width:100%;}",".f22iagw{display:flex;}",".fqerorx{flex-grow:1;}",".f1l02sjl{height:100%;}",".f122n59{align-items:center;}",[".fkln5zr{gap:var(--spacingHorizontalXS);}",{p:-1}],".f1nxs5xn{min-height:32px;}",[".f1izfyrr{flex:1 1 0px;}",{p:-1}],".f1s6fcnf{outline-style:none;}",".f1k6fduh{cursor:pointer;}",".fclwglc{padding-top:var(--spacingVerticalXXS);}"],h:[".feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}"],a:[".f1g4hkjv:active{color:var(--colorNeutralForeground1Pressed);}",".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}"]}),CC=e=>{"use no memo";const r=BC(),n={table:SC(),flex:_C()};return e.root.className=ce(Ts.root,r.root,e.sortable&&r.rootInteractive,e.noNativeElements?n.flex.root:n.table.root,e.root.className),e.button.className=ce(Ts.button,r.resetButton,r.button,e.sortable&&r.sortable,e.button.className),e.sortIcon&&(e.sortIcon.className=ce(Ts.sortIcon,r.sortIcon,e.sortIcon.className)),e.aside&&(e.aside.className=ce(Ts.aside,r.resizeHandle,e.aside.className)),e},Tg=S.createContext(void 0),zC="",Eg=()=>{var e;return(e=S.useContext(Tg))!==null&&e!==void 0?e:zC},NC=Tg.Provider,Pg=S.createContext(void 0),TC="",Rg=()=>{var e;return(e=S.useContext(Pg))!==null&&e!==void 0?e:TC},EC=Pg.Provider,PC=(e,r)=>{const n=zg(e,Ye(r,On())),{noNativeElements:i}=Jr(),{type:l="checkbox",checked:a=!1,subtle:u=!1,hidden:d=!1,invisible:f=!1}=e;return{...n,components:{...n.components,checkboxIndicator:pc,radioIndicator:hc},checkboxIndicator:Ie(e.checkboxIndicator,{renderByDefault:l==="checkbox",defaultProps:{checked:e.checked},elementType:pc}),radioIndicator:Ie(e.radioIndicator,{renderByDefault:l==="radio",defaultProps:{checked:!!a,input:{name:Gt("table-selection-radio")}},elementType:hc}),type:l,checked:a,noNativeElements:i,subtle:u,hidden:f||d}},RC=e=>Je(e.root,{children:[e.type==="checkbox"&&e.checkboxIndicator&&ue(e.checkboxIndicator,{}),e.type==="radio"&&e.radioIndicator&&ue(e.radioIndicator,{})]}),Fg=Ha(void 0),Ig={...TB,subtleSelection:!1,selectableRows:!1,selectionAppearance:"brand",focusMode:"none",compositeRowTabsterAttribute:{}},FC=Fg.Provider,Ve=e=>sm(Fg,(r=Ig)=>e(r)),IC=(e,r)=>{const{focusMode:n="cell"}=e,i=Eg(),l=Ve(f=>(f.focusMode==="cell"||f.focusMode==="composite")&&n!=="none"),a=Ve(f=>f.resizableColumns),u=Ve(f=>f.columnSizing_unstable.getTableCellProps),d=Ra({tabBehavior:"limited-trap-focus"});return zg({as:"div",role:"gridcell",...n==="group"&&d,tabIndex:l?0:void 0,...a?u(i):{},...e},r)},jC=e=>OB(e),DC={root:"fui-DataGridCell"},OC=e=>{"use no memo";return HB(e),e.root.className=ce(DC.root,e.root.className),e},jg=S.forwardRef((e,r)=>{const n=IC(e,r);return OC(n),Ge("useDataGridCellStyles_unstable")(n),jC(n)});jg.displayName="DataGridCell";const AC=(e,r)=>{const n=kc(),i=Rg(),l=Ve(m=>m.subtleSelection),a=Ve(m=>n&&m.selection.selectionMode==="multiselect"?m.selection.allRowsSelected?!0:m.selection.someRowsSelected?"mixed":!1:m.selection.isRowSelected(i)),u=Ve(m=>m.selection.toggleAllRows),d=Ve(m=>m.selection.selectionMode==="multiselect"?"checkbox":"radio"),f=xe(m=>{var h;n&&u(m),(h=e.onClick)===null||h===void 0||h.call(e,m)});return PC({as:"div",role:"gridcell",checked:a,type:d,invisible:n&&d==="radio","aria-selected":a==="mixed"?void 0:a,subtle:l,radioIndicator:n?null:void 0,...e,onClick:f},r)},MC=e=>RC(e),Sc={root:"fui-DataGridSelectionCell",checkboxIndicator:"fui-DataGridSelectionCell__checkboxIndicator",radioIndicator:"fui-DataGridSelectionCell__radioIndicator"},LC=e=>{"use no memo";return XB(e),e.root.className=ce(Sc.root,e.root.className),e.checkboxIndicator&&(e.checkboxIndicator.className=ce(Sc.checkboxIndicator,e.checkboxIndicator.className)),e.radioIndicator&&(e.radioIndicator.className=ce(Sc.radioIndicator,e.radioIndicator.className)),e},_c=S.forwardRef((e,r)=>{const n=AC(e,r);return LC(n),Ge("useDataGridSelectionCellStyles_unstable")(n),MC(n)});_c.displayName="DataGridSelectionCell";const qC=(e,r)=>{const n=Rg(),i=kc(),l=Ve(w=>w.columns),a=Ve(w=>w.selectableRows),u=Ve(w=>w.selection.isRowSelected(n)),d=Ve(w=>w.focusMode),f=Ve(w=>w.compositeRowTabsterAttribute),m=d==="row_unstable"||d==="composite",h=Ve(w=>!i&&a&&w.selection.isRowSelected(n)?w.selectionAppearance:"none"),v=Ve(w=>w.selection.toggleRow),b=xe(w=>{var _;a&&!i&&v(w,n),(_=e.onClick)===null||_===void 0||_.call(e,w)}),y=xe(w=>{var _;a&&!i&&w.key===yr&&!py(w.target)&&(w.preventDefault(),v(w,n)),(_=e.onKeyDown)===null||_===void 0||_.call(e,w)}),k=$B({appearance:h,"aria-selected":a?u:void 0,tabIndex:m&&!i?0:void 0,...d==="composite"&&!i&&f,...e,onClick:b,onKeyDown:y,children:null,as:"div"},r);return{...k,components:{...k.components,selectionCell:_c},selectionCell:Ie(e.selectionCell,{renderByDefault:a,elementType:_c}),renderCell:e.children,columnDefs:l,dataGridContextValue:HC()}};function HC(){const e=S.useRef(Ig);return Ve(r=>(e.current=r,null)),e.current}const WC=e=>Je(e.root,{children:[e.selectionCell&&ue(e.selectionCell,{}),e.columnDefs.map(r=>ue(NC,{value:r.columnId,children:e.renderCell(r,e.dataGridContextValue)},r.columnId))]}),Dg={root:"fui-DataGridRow",selectionCell:"fui-DataGridRow__selectionCell"},VC=ge({subtleSelection:{Bconypa:"f1jazu75",ff6mpl:"fw60kww"}},{d:[".f1jazu75[data-fui-focus-within]:focus-within .fui-TableSelectionCell{opacity:1;}"],h:[".fw60kww:hover .fui-TableSelectionCell{opacity:1;}"]}),$C=e=>{"use no memo";const r=Ve(i=>i.subtleSelection),n=VC();return eC(e),e.root.className=ce(Dg.root,e.root.className,r&&n.subtleSelection),e.selectionCell&&(e.selectionCell.className=ce(Dg.selectionCell,e.selectionCell.className)),e},Bc=S.forwardRef((e,r)=>{const n=qC(e,r);return $C(n),Ge("useDataGridRowStyles_unstable")(n),WC(n)});Bc.displayName="DataGridRow";const UC=(e,r)=>{const{sortable:n}=Jr(),i=Ve(d=>d.getRows),l=Ve(d=>d.sort.sort),a=n?l(i()):i();return{...tC({...e,children:null,as:"div"},r),rows:a,renderRow:e.children}},GC=e=>ue(e.root,{children:e.rows.map(r=>ue(EC,{value:r.rowId,children:e.renderRow(r)},r.rowId))}),KC={root:"fui-DataGridBody"},XC=e=>{"use no memo";return iC(e),e.root.className=ce(KC.root,e.root.className),e},Og=S.forwardRef((e,r)=>{const n=UC(e,r);return XC(n),Ge("useDataGridBodyStyles_unstable")(n),GC(n)});Og.displayName="DataGridBody";const QC=(e,r)=>{const{items:n,columns:i,focusMode:l="cell",selectionMode:a,onSortChange:u,onSelectionChange:d,defaultSortState:f,sortState:m,selectedItems:h,defaultSelectedItems:v,subtleSelection:b=!1,selectionAppearance:y="brand",getRowId:k,resizableColumns:w,columnSizingOptions:_,onColumnResize:z,containerWidthOffset:N,resizableColumnsOptions:B={}}=e,C=N??(a?-44:0),E=Pa({axis:"grid"}),{onTableKeyDown:O,tableTabsterAttribute:I,tableRowTabsterAttribute:q}=IB();var j;const U=EB({items:n,columns:i,getRowId:k},[aB({defaultSortState:f,sortState:m,onSortChange:u}),sB({defaultSelectedItems:v,selectedItems:h,onSelectionChange:d,selectionMode:a??"multiselect"}),CB({onColumnResize:z,columnSizingOptions:_,containerWidthOffset:C,autoFitColumns:(j=B.autoFitColumns)!==null&&j!==void 0?j:!0})]),le=S.useRef(null),{findFirstFocusable:te,findLastFocusable:V}=Fa(),ee=xe(H=>{var K;if((K=e.onKeyDown)===null||K===void 0||K.call(e,H),l==="composite"&&O(H),!(!le.current||!H.ctrlKey||H.defaultPrevented)){if(H.key===cm){const $=le.current.querySelector('[role="row"]');if($){var L;(L=te($))===null||L===void 0||L.focus()}}if(H.key===am){const $=le.current.querySelectorAll('[role="row"]');if($.length){var Q;const F=$.item($.length-1);(Q=V(F))===null||Q===void 0||Q.focus()}}}});return{...sC({role:"grid",as:"div",noNativeElements:!0,...l==="cell"&&E,...l==="composite"&&I,...e,onKeyDown:ee,...w?U.columnSizing_unstable.getTableProps(e):{}},Ye(r,U.tableRef,le)),focusMode:l,tableState:U,selectableRows:!!a,subtleSelection:b,selectionAppearance:y,resizableColumns:w,compositeRowTabsterAttribute:q}},YC=(e,r)=>S.createElement(FC,{value:r.dataGrid},lC(e,r)),JC={root:"fui-DataGrid"},ZC=e=>{"use no memo";return fC(e),e.root.className=ce(JC.root,e.root.className),e};function e5(e){const r=pC(e),{tableState:n,focusMode:i,selectableRows:l,subtleSelection:a,selectionAppearance:u,resizableColumns:d,compositeRowTabsterAttribute:f}=e;return{...r,dataGrid:{...n,focusMode:i,selectableRows:l,subtleSelection:a,selectionAppearance:u,resizableColumns:d,compositeRowTabsterAttribute:f}}}const Ag=S.forwardRef((e,r)=>{const n=QC(e,r);return ZC(n),Ge("useDataGridStyles_unstable")(n),YC(n,e5(n))});Ag.displayName="DataGrid";const t5=(e,r)=>mC({...e,as:"div"},r),r5=e=>gC(e),o5={root:"fui-DataGridHeader"},n5=e=>{"use no memo";return yC(e),e.root.className=ce(o5.root,e.root.className),e},Mg=S.forwardRef((e,r)=>{const n=t5(e,r);return n5(n),Ge("useDataGridHeaderStyles_unstable")(n),r5(n)});Mg.displayName="DataGridHeader";function i5(e){return e.compare.length>0}const s5=(e,r)=>{const n=Eg(),{sortable:i}=Jr(),l=Ve(b=>b.sort.toggleColumnSort),a=Ve(b=>{const y=!!b.columns.find(k=>k.columnId===n&&i5(k));return i?y:!1}),u=Ve(b=>a?b.sort.getSortDirection(n):void 0),d=Ve(b=>b.resizableColumns),f=Ve(b=>b.columnSizing_unstable.getTableHeaderCellProps),{focusMode:m=a?"none":"cell"}=e,h=Ra({tabBehavior:"limited-trap-focus"}),v=xe(b=>{var y;a&&l(b,n),(y=e.onClick)===null||y===void 0||y.call(e,b)});return kC({sortable:a,sortDirection:u,as:"div",tabIndex:m!=="none"?0:void 0,...m==="group"&&h,...d?f(n):{},...e,onClick:v},r)},l5=e=>xC(e),Es={root:"fui-DataGridHeaderCell",button:"fui-DataGridHeaderCell__button",sortIcon:"fui-DataGridHeaderCell__sortIcon",aside:"fui-DataGridHeaderCell__aside"},a5=e=>{"use no memo";return CC(e),e.root.className=ce(Es.root,e.root.className),e.button&&(e.button.className=ce(Es.button,e.button.className)),e.sortIcon&&(e.sortIcon.className=ce(Es.sortIcon,e.sortIcon.className)),e.aside&&(e.aside.className=ce(Es.aside,e.aside.className)),e},Lg=S.forwardRef((e,r)=>{const n=s5(e,r);return a5(n),Ge("useDataGridHeaderCellStyles_unstable")(n),l5(n)});Lg.displayName="DataGridHeaderCell";const c5=(e,r)=>{const{size:n="medium",disabled:i=!1,root:l,contentBefore:a,dismiss:u,contentAfter:d,value:f,defaultValue:m,...h}=e,v=S.useRef(null),b=S.useRef(null),[y,k]=Tr({state:f,defaultState:m,initialState:""}),[w,_]=S.useState(!1),z=S.useCallback(()=>{_(!0)},[_]),N=S.useCallback(I=>{var q;_(!!(!((q=v.current)===null||q===void 0)&&q.contains(I.relatedTarget)))},[_]),B=zf(l),C=xe(I=>{var q,j;if(Nf(u)){var U;(U=u.onClick)===null||U===void 0||U.call(u,I)}const le="";k(le),(q=e.onChange)===null||q===void 0||q.call(e,I,{value:le}),(j=b.current)===null||j===void 0||j.focus()}),E=dg({type:"search",disabled:i,size:n,value:y,root:Ee({...B,ref:Ye(B?.ref,v),onFocus:je(B?.onFocus,z),onBlur:je(B?.onBlur,N)},{elementType:"span"}),contentBefore:Ie(a,{renderByDefault:!0,defaultProps:{children:S.createElement(ax,null)},elementType:"span"}),contentAfter:Ie(d,{renderByDefault:!0,elementType:"span"}),...h,onChange:xe(I=>{var q;const j=I.target.value;(q=e.onChange)===null||q===void 0||q.call(e,I,{value:j}),k(j)})},Ye(b,r)),O={...E,components:{...E.components,dismiss:"span"},dismiss:Ie(u,{defaultProps:{children:S.createElement(Qa,null),role:"button","aria-label":"clear",tabIndex:-1},renderByDefault:!0,elementType:"span"}),disabled:i,focused:w,size:n};return O.dismiss&&(O.dismiss.onClick=C),O},u5=e=>Je(e.root,{children:[e.contentBefore&&ue(e.contentBefore,{}),ue(e.input,{}),e.contentAfter&&Je(e.contentAfter,{children:[e.contentAfter.children,e.dismiss&&ue(e.dismiss,{})]})]}),Yn={root:"fui-SearchBox",dismiss:"fui-SearchBox__dismiss",contentAfter:"fui-SearchBox__contentAfter",contentBefore:"fui-SearchBox__contentBefore",input:"fui-SearchBox__input"},d5=ge({small:{i8kkvl:"fjuset5",B2u0y6b:"f1xzfw5u",uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fdw0yi8","fk8j09s"]},medium:{i8kkvl:"fjuset5",B2u0y6b:"f1xzfw5u",uwmqm3:["f1f5gg8d","f1vdfbxk"],z189sj:["f1vdfbxk","f1f5gg8d"]},large:{i8kkvl:"fjuset5",B2u0y6b:"f1xzfw5u",uwmqm3:["f1ng84yb","f11gcy0p"],z189sj:["f11gcy0p","f1ng84yb"]},input:{uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fhxju0i","f1cnd47f"],Boqhc8c:"f18izjht",B8uat0v:"fcoa6sg"},unfocusedNoContentAfter:{z189sj:["fhxju0i","f1cnd47f"]}},{d:[".fjuset5{column-gap:0;}",".f1xzfw5u{max-width:468px;}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f18izjht::-webkit-search-decoration{display:none;}",".fcoa6sg::-webkit-search-cancel-button{display:none;}"]}),f5=ge({small:{z189sj:["fdw0yi8","fk8j09s"]},medium:{z189sj:["f1vdfbxk","f1f5gg8d"]},large:{z189sj:["f11gcy0p","f1ng84yb"]}},{d:[".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}"]}),p5=ge({contentAfter:{uwmqm3:["f1uw59to","fw5db7e"],i8kkvl:"f1ufnopg"},rest:{Bqenvij:"fniina8",a9b677:"f3tsq5r",uwmqm3:["f1cnd47f","fhxju0i"],B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp"}},{d:[".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f1ufnopg{column-gap:var(--spacingHorizontalXS);}",".fniina8{height:0;}",".f3tsq5r{width:0;}",".f1cnd47f{padding-left:0;}",".fhxju0i{padding-right:0;}",[".f1a3p1vp{overflow:hidden;}",{p:-1}]]}),m5=ct("r1pvzcuu",null,[".r1pvzcuu{box-sizing:border-box;color:var(--colorNeutralForeground3);display:flex;cursor:pointer;}",".r1pvzcuu>svg{font-size:20px;}"]),g5=ge({disabled:{sj55zd:"f1s2aq7o"},small:{Duoase:"f3qv9w"},medium:{},large:{Duoase:"f16u2scb"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f3qv9w>svg{font-size:16px;}",".f16u2scb>svg{font-size:24px;}"]}),h5=e=>{"use no memo";const{disabled:r,focused:n,size:i}=e,l=d5(),a=f5(),u=p5(),d=m5(),f=g5();return e.root.className=ce(Yn.root,l[i],!n&&l.unfocusedNoContentAfter,e.root.className),e.input.className=ce(Yn.input,l.input,!n&&a[i],e.input.className),e.dismiss&&(e.dismiss.className=ce(Yn.dismiss,d,r&&f.disabled,f[i],e.dismiss.className)),e.contentBefore&&(e.contentBefore.className=ce(Yn.contentBefore,e.contentBefore.className)),e.contentAfter?e.contentAfter.className=ce(Yn.contentAfter,u.contentAfter,!n&&u.rest,e.contentAfter.className):e.dismiss&&(e.dismiss.className=ce(e.dismiss.className,u.contentAfter)),fg(e),e},qg=S.forwardRef((e,r)=>{const n=c5(e,r);return h5(n),Ge("useSearchBoxStyles_unstable")(n),u5(n)});qg.displayName="SearchBox";function v5(){const[e,r]=S.useState(null),[n,i]=S.useState(!0),l=S.useCallback(async()=>{try{const a=await window.toolboxAPI.connections.getActiveConnection();r(a)}catch(a){console.error("Error refreshing connection:",a)}finally{i(!1)}},[]);return S.useEffect(()=>{l()},[l]),{connection:e,isLoading:n,refreshConnection:l}}function b5(e){S.useEffect(()=>{const r=(n,i)=>{e(i.event,i.data)};return window.toolboxAPI.events.on(r),()=>{}},[e])}function y5(){const[e,r]=S.useState([]),n=S.useCallback((l,a="info")=>{r(u=>[{timestamp:new Date,message:l,type:a},...u.slice(0,49)]),console.log(`[${a.toUpperCase()}] ${l}`)},[]),i=S.useCallback(()=>{r([])},[]);return{logs:e,addLog:n,clearLogs:i}}const w5=""+new URL("usersettings-utility_small-cwtNWFYQ.png",document.currentScript&&document.currentScript.tagName.toUpperCase()==="SCRIPT"&&document.currentScript.src||document.baseURI).href,k5=e=>{const r=[];return e.forEach(n=>{const i=n.systemuserid,l=n.fullname;typeof i=="string"&&typeof l=="string"&&r.push({systemuserId:i,fullname:l,internalemailaddress:n.internalemailaddress,businessunitid:n._businessunitid_value,businessunitname:n["_businessunitid_value@OData.Community.Display.V1.FormattedValue"]})}),r},x5=e=>e?{systemuserid:e.systemuserid,addressbooksyncinterval:e.addressbooksyncinterval,advancedfindstartupmode:e.advancedfindstartupmode,allowemailcredentials:e.allowemailcredentials,amdesignator:e.amdesignator,autocaptureuserstatus:e.autocaptureuserstatus,autocreatecontactonpromote:e.autocreatecontactonpromote,businessunitid:e.businessunitid,businessunitidname:void 0,calendartype:e.calendartype,createdby:e._createdby_value,createdbyname:e["_createdby_value@OData.Community.Display.V1.FormattedValue"],createdon:e.createdon,createdonbehalfby:e._createdonbehalfby_value,createdonbehalfbyname:e["_createdonbehalfby_value@OData.Community.Display.V1.FormattedValue"],currencydecimalprecision:e.currencydecimalprecision,currencyformatcode:e.currencyformatcode,currencysymbol:e.currencysymbol,d365autoinstallattemptstatus:e.d365autoinstallattemptstatus,datavalidationmodeforexporttoexcel:e.datavalidationmodeforexporttoexcel,dateformatcode:e.dateformatcode,dateformatstring:e.dateformatstring,dateseparator:e.dateseparator,decimalsymbol:e.decimalsymbol,defaultcalendarview:e.defaultcalendarview,defaultcountrycode:e.defaultcountrycode,defaultdashboardid:e.defaultdashboardid,defaultdashboardidname:void 0,defaultsearchexperience:e.defaultsearchexperience,emailpassword:e.emailpassword,emailusername:e.emailusername,entityformmode:e.entityformmode,fullnameconventioncode:e.fullnameconventioncode,getstartedpanecontentenabled:e.getstartedpanecontentenabled,helplanguageid:e.helplanguageid,homepagearea:e.homepagearea,homepagelayout:e.homepagelayout,homepagesubarea:e.homepagesubarea,ignoreunsolicitedemail:e.ignoreunsolicitedemail,incomingemailfilteringmethod:e.incomingemailfilteringmethod,isappsforcrmalertdismissed:e.isappsforcrmalertdismissed,isautodatacaptureenabled:e.isautodatacaptureenabled,isdefaultcountrycodecheckenabled:e.isdefaultcountrycodecheckenabled,isduplicatedetectionenabledwhengoingonline:e.isduplicatedetectionenabledwhengoingonline,isemailconversationviewenabled:e.isemailconversationviewenabled,isguidedhelpenabled:e.isguidedhelpenabled,isresourcebookingexchangesyncenabled:e.isresourcebookingexchangesyncenabled,issendasallowed:e.issendasallowed,lastalertsviewedtime:e.lastalertsviewedtime,lastmodifiedtimeforviewpersonalizationsettings:e.lastmodifiedtimeforviewpersonalizationsettings,localeid:e.localeid,longdateformatcode:e.longdateformatcode,modifiedby:e._modifiedby_value,modifiedbyname:e["_modifiedby_value@OData.Community.Display.V1.FormattedValue"],modifiedon:e.modifiedon,modifiedonbehalfby:e._modifiedonbehalfby_value,modifiedonbehalfbyname:e["_modifiedonbehalfby_value@OData.Community.Display.V1.FormattedValue"],negativecurrencyformatcode:e.negativecurrencyformatcode,negativeformatcode:e.negativeformatcode,nexttrackingnumber:e.nexttrackingnumber,numbergroupformat:e.numbergroupformat,numberseparator:e.numberseparator,offlinesyncinterval:e.offlinesyncinterval,outlooksyncinterval:e.outlooksyncinterval,paginglimit:e.paginglimit,personalizationsettings:e.personalizationsettings,pmdesignator:e.pmdesignator,preferredsolution:e.preferredsolution,preferredsolutionname:void 0,pricingdecimalprecision:e.pricingdecimalprecision,releasechannel:e.releasechannel,reportscripterrors:e.reportscripterrors,resourcebookingexchangesyncversion:e.resourcebookingexchangesyncversion,selectedglobalfilterid:e.selectedglobalfilterid,selectedglobalfilteridname:void 0,showweeknumber:e.showweeknumber,splitviewstate:e.splitviewstate,synccontactcompany:e.synccontactcompany,tablescopeddvsearchfeatureteachingbubbleviews:e.tablescopeddvsearchfeatureteachingbubbleviews,tablescopeddvsearchquickfindteachingbubbleviews:e.tablescopeddvsearchquickfindteachingbubbleviews,timeformatcode:e.timeformatcode,timeformatstring:e.timeformatstring,timeseparator:e.timeseparator,timezonecode:e.timezonecode,trackingtokenid:e.trackingtokenid,transactioncurrencyid:e.transactioncurrencyid,transactioncurrencyidname:void 0,trytogglesets:e.trytogglesets,trytogglestatus:e.trytogglestatus,uilanguageid:e.uilanguageid,usecrmformforappointment:e.usecrmformforappointment,usecrmformforcontact:e.usecrmformforcontact,usecrmformforemail:e.usecrmformforemail,usecrmformfortask:e.usecrmformfortask,useimagestrips:e.useimagestrips,userprofile:e.userprofile,versionnumber:e.versionnumber,visualizationpanelayout:e.visualizationpanelayout,workdaystarttime:e.workdaystarttime,workdaystoptime:e.workdaystoptime}:null,Hg=(e,r)=>{if(r){const n=e.querySelector("Titles");if(n){const i=n.querySelectorAll("Title");for(const l of i){const a=l.getAttribute("LCID");if(a&&parseInt(a)===r){const u=l.getAttribute("Title");if(u)return u}}}}return e.getAttribute("Title")||e.getAttribute("ResourceId")||e.getAttribute("Id")||""},S5=(e,r)=>{try{if(!e)return console.log("No sitemap XML provided"),{areas:[],subAreas:[]};console.log(`Parsing sitemap with LCID: ${r||"default"}`);const i=new DOMParser().parseFromString(e,"text/xml"),l=[];i.querySelectorAll("SiteMap > Area").forEach(f=>{const m=f.getAttribute("Id"),h=Hg(f,r);m&&l.push({id:m,title:h||m})});const u=[];return i.querySelectorAll("SiteMap > Area > Group > SubArea").forEach(f=>{const m=f.getAttribute("Id"),h=Hg(f,r);let v="",b=f.parentElement;for(;b&&b.tagName!=="Area";)b=b.parentElement;b&&(v=b.getAttribute("Id")||""),m&&v&&u.push({id:m,title:h||m,areaId:v})}),console.log(`Mapped ${l.length} areas and ${u.length} subareas from sitemap`,l,u),{areas:l,subAreas:u}}catch(n){return console.error("Error parsing sitemap XML:",n),{areas:[],subAreas:[]}}},_5=e=>{const r=[];return e.forEach(n=>{const i=n.businessunitid,l=n.name;typeof i=="string"&&typeof l=="string"&&r.push({businessunitid:i,name:l})}),r},B5=e=>{const r=[];return e.forEach(n=>{const i=n.timezonecode,l=n.userinterfacename;typeof i=="number"&&typeof l=="string"&&r.push({timezonecode:i,userinterfacename:l})}),r},C5=e=>{const r=new Map;console.log("Mapping languages, received data count:",e.length),e.forEach((i,l)=>{i.languagelocaleid&&i.localeid&&i.language?r.has(i.localeid)||r.set(i.localeid,{languagelocaleid:i.languagelocaleid,localeid:i.localeid,language:i.language,region:i.region||void 0}):console.log(`Skipping language item at index ${l} due to missing fields:`,{hasLanguagelocaleid:!!i.languagelocaleid,hasLocaleid:!!i.localeid,hasLanguage:!!i.language,hasRegion:!!i.region,item:i})});const n=Array.from(r.values());return console.log(`Successfully mapped ${n.length} unique languages (from ${e.length} records)`),n},z5=e=>{const r=new Map;console.log("Mapping formats, received data count:",e.length),e.forEach((i,l)=>{i.localeid&&i.language?r.has(i.localeid)||r.set(i.localeid,{localeid:i.localeid,language:i.language,region:i.region||void 0}):console.log(`Skipping format item at index ${l} due to missing fields:`,{hasLocaleid:!!i.localeid,hasLanguage:!!i.language,hasRegion:!!i.region,item:i})});const n=Array.from(r.values());return console.log(`Successfully mapped ${n.length} unique formats (from ${e.length} records)`),n},N5=async()=>{let r=`systemusers?$select=${["systemuserid","fullname","internalemailaddress","_businessunitid_value"].join(",")}&$filter=(isdisabled eq false and accessmode eq 0)`;const n=await So(r);return console.log(`Loaded ${n.length} systemusers from Dataverse`,n),k5(n)},T5=async()=>{let r=`businessunits?$select=${["businessunitid","name"].join(",")}&$orderby=name asc`;const n=await So(r);return console.log(`Loaded ${n.length} business units from Dataverse`,n),_5(n)},E5=async()=>{let r=`timezonedefinitions?$select=${["timezonecode","userinterfacename"].join(",")}&$orderby=userinterfacename asc`;const n=await So(r);return console.log(`Loaded ${n.length} timezones from Dataverse`,n),B5(n)},P5=async()=>{try{console.log("Retrieving provisioned languages...");const e=await window.dataverseAPI.queryData("RetrieveProvisionedLanguages");console.log("RetrieveProvisionedLanguages response:",e);const r=e.RetrieveProvisionedLanguages||[];if(console.log(`Found ${r.length} provisioned language LCIDs:`,r),r.length===0)return console.warn("No provisioned languages found"),[];const n=["languagelocaleid","localeid","language","region"].join(","),i=r.map(d=>`localeid eq ${d}`).join(" or "),l=`languagelocale?$select=${n}&$filter=${i}&$orderby=language asc`;console.log("Loading language details from:",l);const a=await So(l);console.log(`Loaded ${a.length} language details from Dataverse`,a);const u=C5(a);return console.log(`Mapped ${u.length} unique languages`,u),u}catch(e){return console.error("Error loading languages:",e),console.error("Error details:",JSON.stringify(e,null,2)),[]}},R5=async()=>{try{let r=`languagelocale?$select=${["localeid","language","region"].join(",")}&$orderby=language asc`;console.log("Loading formats from:",r);const n=await So(r);console.log(`Loaded ${n.length} formats from Dataverse`,n);const i=z5(n);return console.log(`Mapped ${i.length} formats`,i),i}catch(e){return console.error("Error loading formats:",e),console.error("Error details:",JSON.stringify(e,null,2)),[]}},F5=async e=>{let n=`usersettingscollection?$select=${["systemuserid","addressbooksyncinterval","advancedfindstartupmode","allowemailcredentials","amdesignator","autocaptureuserstatus","autocreatecontactonpromote","businessunitid","calendartype","_createdby_value","createdon","_createdonbehalfby_value","currencydecimalprecision","currencyformatcode","currencysymbol","d365autoinstallattemptstatus","datavalidationmodeforexporttoexcel","dateformatcode","dateformatstring","dateseparator","decimalsymbol","defaultcalendarview","defaultcountrycode","defaultdashboardid","defaultsearchexperience","emailpassword","emailusername","entityformmode","fullnameconventioncode","getstartedpanecontentenabled","helplanguageid","homepagearea","homepagelayout","homepagesubarea","ignoreunsolicitedemail","incomingemailfilteringmethod","isappsforcrmalertdismissed","isautodatacaptureenabled","isdefaultcountrycodecheckenabled","isduplicatedetectionenabledwhengoingonline","isemailconversationviewenabled","isguidedhelpenabled","isresourcebookingexchangesyncenabled","issendasallowed","lastalertsviewedtime","lastmodifiedtimeforviewpersonalizationsettings","localeid","longdateformatcode","_modifiedby_value","modifiedon","_modifiedonbehalfby_value","negativecurrencyformatcode","negativeformatcode","nexttrackingnumber","numbergroupformat","numberseparator","offlinesyncinterval","outlooksyncinterval","paginglimit","personalizationsettings","pmdesignator","preferredsolution","pricingdecimalprecision","releasechannel","reportscripterrors","resourcebookingexchangesyncversion","selectedglobalfilterid","showweeknumber","splitviewstate","synccontactcompany","tablescopeddvsearchfeatureteachingbubbleviews","tablescopeddvsearchquickfindteachingbubbleviews","timeformatcode","timeformatstring","timeseparator","timezonecode","trackingtokenid","transactioncurrencyid","trytogglesets","trytogglestatus","uilanguageid","usecrmformforappointment","usecrmformforcontact","usecrmformforemail","usecrmformfortask","useimagestrips","userprofile","versionnumber","visualizationpanelayout","workdaystarttime","workdaystoptime"].join(",")}&$filter=systemuserid eq '${e}'`;try{const i=await So(n);if(console.log("Usersettings response:",i),i&&i.length>0){const l=x5(i[0]);return console.log("Mapped usersettings:",l),l}return console.log("No usersettings found for systemuserid:",e),null}catch(i){throw console.error("Error loading usersettings for",e,i),i}},So=async e=>{const r=[];for(;e;){let n=e;if(e.startsWith("http")){const l=new URL(e),a=/^\/api\/data\/v\d+\.\d+\//;n=l.pathname.replace(a,"")+l.search}const i=await window.dataverseAPI.queryData(n);r.push(...i.value),e=i["@odata.nextLink"]||null}return r},I5=async e=>{try{const n=`sitemaps?$select=${["sitemapid","sitemapxml","sitemapname"].join(",")}`;e&&console.log(`Loading sitemap with language preference: ${e}`);const i=await So(n);if(!i||i.length===0)return console.log("No sitemaps found"),{areas:[],subAreas:[]};console.log(`Loaded ${i.length} sitemaps from Dataverse`,i);const a=i[0].sitemapxml;return a?S5(a,e):(console.log("No sitemap XML found"),{areas:[],subAreas:[]})}catch(r){return console.error("Error loading sitemap data:",r),{areas:[],subAreas:[]}}},j5=async()=>{try{const n=`systemforms?fetchXml=${encodeURIComponent(`
10
+ <fetch>
11
+ <entity name='systemform'>
12
+ <attribute name='formid' />
13
+ <attribute name='name' />
14
+ <filter type='or'>
15
+ <condition attribute='type' operator='eq' value='0' />
16
+ <condition attribute='type' operator='eq' value='10' />
17
+ <condition attribute='type' operator='eq' value='103' />
18
+ </filter>
19
+ <order attribute='name' />
20
+ </entity>
21
+ </fetch>`)}`,l=(await window.dataverseAPI.queryData(n))?.value||[];return console.log(`Loaded ${l.length} dashboards from Dataverse`,l),l.map(a=>({formid:a.formid,name:a.name}))}catch(e){return console.error("Error loading dashboards:",e),[]}},D5=async()=>{try{const n=`transactioncurrencies?fetchXml=${encodeURIComponent(`
22
+ <fetch>
23
+ <entity name='transactioncurrency'>
24
+ <attribute name='transactioncurrencyid' />
25
+ <attribute name='currencyname' />
26
+ <order attribute='currencyname' />
27
+ </entity>
28
+ </fetch>`)}`,l=(await window.dataverseAPI.queryData(n))?.value||[];return console.log(`Loaded ${l.length} currencies from Dataverse`,l),l.map(a=>({transactioncurrencyid:a.transactioncurrencyid,currencyname:a.currencyname}))}catch(e){return console.error("Error loading currencies:",e),[]}},O5=async e=>{try{const{systemuserid:r,changes:n}=e;if(n.size===0)return{success:!0};const i={};return n.forEach((l,a)=>{a==="transactioncurrencyid"&&l?i["transactioncurrencyid@odata.bind"]=`/transactioncurrencies(${l})`:i[a.toLowerCase()]=l??null}),console.log(`Updating usersettings for user ${r}:`,i),await window.dataverseAPI.update("usersettingscollection",r,i),console.log(`Successfully updated usersettings for user ${r}`),{success:!0}}catch(r){return console.error(`Error updating usersettings for user ${e.systemuserid}:`,r),{success:!1,error:r.message||"Unknown error occurred"}}},A5=async(e,r)=>{const n=[],i=[];for(let l=0;l<e.length;l++){const a=e[l],u=await O5(a);u.success?n.push(a.systemuserid):i.push({userId:a.systemuserid,userName:a.userFullname,error:u.error||"Unknown error"})}return{successful:n,failed:i}},M5=e=>{const r=Gt("search-input"),n=Gt("businessunit-dropdown"),i=S.useMemo(()=>[...e.businessunits].sort((f,m)=>f.name.localeCompare(m.name)),[e.businessunits]),l=(f,m)=>{e.onTextFilterChanged(m.value)},a=(f,m)=>{e.onBusinessunitFilterChanged(m.optionValue||"")},d=Vo({root:{display:"flex",gap:"20px",alignItems:"flex-end"},field:{display:"grid",justifyItems:"start",gap:"2px"},searchInput:{minWidth:"250px"},businessunitDropdown:{minWidth:"400px"}})();return X.jsxs("div",{className:d.root,children:[X.jsxs("div",{className:d.field,children:[X.jsx("label",{htmlFor:r,children:"Filter"}),X.jsx(qg,{id:r,placeholder:"Search systemusers...",onChange:l,className:d.searchInput})]}),X.jsxs("div",{className:d.field,children:[X.jsx("label",{htmlFor:n,children:"Business Unit"}),X.jsxs(Un,{id:n,placeholder:"All business units",onOptionSelect:a,className:d.businessunitDropdown,freeform:!0,children:[X.jsx(Tt,{value:"",children:"All business units"},"all"),i.map(f=>X.jsx(Tt,{value:f.businessunitid,children:f.name},f.businessunitid))]})]})]})},L5=Vo({grid:{height:"100%",overflow:"hidden",display:"flex",flexDirection:"column"},header:{flexShrink:0},body:{flex:1,overflowY:"auto",minHeight:0},cellStyles:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"}}),q5=({systemusers:e,onSelectionChange:r})=>{const n=L5(),i=[Ns({columnId:"fullname",compare:(l,a)=>l.fullname.localeCompare(a.fullname),renderHeaderCell:()=>"Full Name",renderCell:l=>X.jsx("span",{title:l.fullname||"-",className:n.cellStyles,children:l.fullname})}),Ns({columnId:"email",compare:(l,a)=>(l.internalemailaddress||"").localeCompare(a.internalemailaddress||""),renderHeaderCell:()=>"Email",renderCell:l=>X.jsx("span",{title:l.internalemailaddress||"-",className:n.cellStyles,children:l.internalemailaddress||"-"})}),Ns({columnId:"businessunit",compare:(l,a)=>(l.businessunitname||"").localeCompare(a.businessunitname||""),renderHeaderCell:()=>"Business Unit",renderCell:l=>X.jsx("span",{title:l.businessunitname||"-",className:n.cellStyles,children:l.businessunitname||"-"})}),Ns({columnId:"systemuserid",compare:(l,a)=>l.systemuserId.localeCompare(a.systemuserId),renderHeaderCell:()=>"System User ID",renderCell:l=>X.jsx("span",{title:l.systemuserId,className:n.cellStyles,children:l.systemuserId})})];return X.jsxs(Ag,{items:e,columns:i,sortable:!0,selectionMode:"multiselect",getRowId:l=>l.systemuserId,defaultSortState:{sortColumn:"fullname",sortDirection:"ascending"},onSelectionChange:(l,a)=>{const u=e.filter(d=>a.selectedItems.has(d.systemuserId));r(u)},className:n.grid,children:[X.jsx(Mg,{className:n.header,children:X.jsx(Bc,{children:({renderHeaderCell:l})=>X.jsx(Lg,{children:l()})})}),X.jsx(Og,{className:n.body,children:({item:l,rowId:a})=>X.jsx(Bc,{children:({renderCell:u})=>X.jsx(jg,{children:u(l)})},a)})]})},Ps=Vo({section:{marginBottom:ve.spacingVerticalXL},sectionTitle:{fontSize:ve.fontSizeBase500,fontWeight:ve.fontWeightSemibold,marginBottom:ve.spacingVerticalS,color:ve.colorBrandForeground1,borderBottom:`1px solid ${ve.colorNeutralStroke2}`,paddingBottom:ve.spacingVerticalXS},fieldGroup:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:ve.spacingVerticalM,marginBottom:ve.spacingVerticalS},field:{display:"flex",flexDirection:"column",gap:ve.spacingVerticalXXS},fieldLabel:{fontWeight:ve.fontWeightSemibold,fontSize:ve.fontSizeBase300,color:ve.colorNeutralForeground2},fieldValue:{fontSize:ve.fontSizeBase300,color:ve.colorNeutralForeground1,wordBreak:"break-word"},emptyValue:{fontSize:ve.fontSizeBase300,color:ve.colorNeutralForeground4,fontStyle:"italic"},loadingMessage:{textAlign:"center",padding:ve.spacingVerticalXXL,color:ve.colorNeutralForeground3},fieldLabelWithInfo:{display:"flex",alignItems:"center",gap:ve.spacingHorizontalXS},infoIcon:{color:ve.colorBrandForeground1,cursor:"pointer"},tooltipContent:{minWidth:"300px",maxWidth:"800px",padding:ve.spacingVerticalS},tooltipHeader:{fontWeight:ve.fontWeightSemibold,marginBottom:ve.spacingVerticalS,paddingBottom:ve.spacingVerticalXS,borderBottom:`1px solid ${ve.colorNeutralStroke2}`,fontSize:ve.fontSizeBase300},tooltipItem:{display:"grid",gridTemplateColumns:"auto 1fr",gap:ve.spacingHorizontalS,marginBottom:ve.spacingVerticalXS,fontSize:ve.fontSizeBase200},tooltipUserName:{fontWeight:ve.fontWeightSemibold,color:ve.colorBrandForeground1,whiteSpace:"nowrap"},tooltipValue:{color:ve.colorNeutralForeground2,whiteSpace:"nowrap"}}),H5=(e,r)=>{if(!r||r.length===0)return{value:void 0,isDifferent:!1};const n=r.map(a=>a[e]),i=n[0],l=n.every(a=>a===i||a==null&&i==null);return{value:l?i:void 0,isDifferent:!l}},_o=(e,r,n)=>{const i=H5(e,r),l=n?.[e],a=l!==void 0,u=i.isDifferent&&!a;return{value:a?l:i.value,showNoChange:u,state:i}},W5=(e,r,n)=>{if(!r||!n||r.length<=1||n.length<=1)return null;if(r.length!==n.length)return console.warn("Mismatch between systemusers and allUsersettings lengths"),null;const i=n.map((u,d)=>{const f=r[d];return f?{user:f,value:u[e]}:(console.error("User not found at index",d),null)}).filter(u=>u!==null);if(i.length===0)return null;const l=i[0].value;return i.every(u=>u.value===l||u.value==null&&l==null)?null:i},Yt={advancedfindstartupmode:{1:"Simple",2:"Advanced"},defaultcalendarview:{0:"Day",1:"Week",2:"Month"},calendartype:{0:"Gregorian",1:"Gregorian US",2:"Japanese Emperor Era",3:"Taiwan Calendar",4:"Korean Tangun Era",5:"Hijri",6:"Thai Buddhist",7:"Hebrew Lunar",8:"Gregorian Middle East French",9:"Gregorian Arabic",10:"Gregorian Transliterated English",11:"Gregorian Transliterated French",12:"Japanese Lunar",14:"Chinese Lunar",15:"Saka Era",16:"Lunar ETO Chinese",17:"Lunar ETO Korean",18:"Lunar ETO Rokuyou",23:"UmAlQura"},autocaptureuserstatus:{0:"No Preference",1:"Opted In",2:"Opted Out"},releasechannel:{0:"Semi-Annual Channel",1:"Monthly Channel",2:"Microsoft Inner Channel"},defaultsearchexperience:{0:"Relevance Search",1:"Categorized Search",2:"Custom Search",3:"Single Entity Search"},incomingemailfilteringmethod:{0:"All email messages",1:"Email messages in response to Dynamics 365 email",2:"Email messages from Dynamics 365 Leads, Contacts and Accounts",3:"Email messages from Dynamics 365 records that are email enabled",4:"No email messages"},autocreatecontactonpromote:{0:"No",1:"Yes",2:"Ask"},datavalidationmodeforexporttoexcel:{0:"Block",1:"Warn"},reportscripterrors:{1:"Ask me for permission to send an error report to Microsoft",2:"Automatically send an error report to Microsoft without asking me for permission",3:"Never send an error report to Microsoft about Microsoft Dynamics 365"},paginglimit:{25:"25",50:"50",75:"75",100:"100",250:"250"}},V5=(e,r)=>{const n=Yt[e];return n&&r in n?n[r]:r.toString()},$5=(e,r,n)=>{const{timezones:i,languages:l,formats:a,sitemapData:u,dashboards:d,currencies:f}=n;if(e==null)return"Not set";if(typeof e=="boolean")return e?"Yes":"No";if(r==="timezonecode"&&i.length>0){const m=i.find(h=>h.timezonecode===e);return m?`${m.userinterfacename}`:String(e)}if((r==="uilanguageid"||r==="helplanguageid")&&l.length>0){const m=l.find(h=>h.localeid===e);return m?`${m.language}${m.region?` (${m.region})`:""}`:String(e)}if(r==="localeid"&&a.length>0){const m=a.find(h=>h.localeid===e);return m?`${m.language}${m.region?` (${m.region})`:""}`:String(e)}if(r==="homepagearea"&&u.areas.length>0){const m=u.areas.find(h=>h.id===e);return m?m.title:String(e)}if(r==="homepagesubarea"&&u.subAreas.length>0){const m=u.subAreas.find(h=>h.id===e);return m?m.title:String(e)}if(r==="defaultdashboardid"&&d.length>0){const m=d.find(h=>h.formid===e);return m?m.name:String(e)}if(r==="transactioncurrencyid"&&f.length>0){const m=f.find(h=>h.transactioncurrencyid===e);return m?m.currencyname:String(e)}return typeof e=="number"?V5(r,e):String(e)},U5=({fieldKey:e,systemusers:r,allUsersettings:n,formatContext:i})=>{const l=Ps();try{const a=W5(e,r,n);if(!a)return null;const u=[...a].sort((f,m)=>{const h=f?.user?.fullname||"",v=m?.user?.fullname||"";return h.localeCompare(v)}),d=f=>{f.stopPropagation(),f.preventDefault()};return X.jsx(fc,{withArrow:!0,content:{children:X.jsxs("div",{className:l.tooltipContent,children:[X.jsxs("div",{className:l.tooltipHeader,children:["Different values for ",r?.length||0," users"]}),u.map((f,m)=>X.jsxs("div",{className:l.tooltipItem,children:[X.jsxs("span",{className:l.tooltipUserName,children:[f?.user?.fullname||"Unknown",":"]}),X.jsx("span",{className:l.tooltipValue,children:$5(f.value,e,i)})]},m))]}),style:{maxWidth:"none"}},relationship:"label",children:X.jsx("span",{onClick:d,onMouseDown:d,children:X.jsx(gx,{className:l.infoIcon})})})}catch(a){return console.error("Error rendering info icon for",e,a),null}},G5=e=>{const r=Ps(),{allUsersettings:n,editedSettings:i,systemusers:l,formatContext:a}=e;return(u,d)=>{if(!d)return u;const{state:f}=_o(d,n,i);return f.isDifferent?X.jsxs("div",{className:r.fieldLabelWithInfo,children:[u,X.jsx(U5,{fieldKey:d,systemusers:l,allUsersettings:n,formatContext:a})]}):u}},K5=e=>{const{allUsersettings:r,editedSettings:n,setEditedSettings:i,onFieldChange:l}=e,a=G5(e),u=(v,b)=>{n&&(i({...n,[v]:b}),l?.(v,b))};return{renderTextField:(v,b,y=!1)=>{const{value:k,showNoChange:w}=_o(b,r,n),_=w?"No change":k==null?"":String(k);return X.jsx(xo,{label:a(v,b),size:"medium",children:X.jsx(pg,{size:"medium",value:_,readOnly:!y,onChange:z=>{if(y&&n){const N=z.target.value||void 0;u(b,N)}}})})},renderDropdown:(v,b,y)=>{const{value:k,showNoChange:w}=_o(b,r,n),_=k??void 0,z=_!==void 0?[String(_)]:["0"],N=w?"No change":_!==void 0?y[_]||String(_):"No change";return X.jsx(xo,{label:a(v,b),size:"medium",children:X.jsxs(gc,{size:"medium",value:N,selectedOptions:z,onOptionSelect:(B,C)=>{if(n&&C.optionValue!==void 0){const E=parseInt(C.optionValue);u(b,E===0?void 0:E)}},children:[X.jsx(Tt,{value:"0",children:"No change"},"0"),Object.entries(y).map(([B,C])=>X.jsx(Tt,{value:B,children:C},B))]})})},renderBooleanDropdown:(v,b)=>{const{value:y,showNoChange:k}=_o(b,r,n),w=y,_=k||w==null?"0":w?"2":"1",z=k||w==null?"No change":w?"Yes":"No";return X.jsx(xo,{label:a(v,b),size:"medium",children:X.jsxs(gc,{size:"medium",value:z,selectedOptions:[_],onOptionSelect:(N,B)=>{if(n){const C=B.optionValue==="0"?void 0:B.optionValue==="2";u(b,C)}},children:[X.jsx(Tt,{value:"0",children:"No change"},"0"),X.jsx(Tt,{value:"1",children:"No"},"1"),X.jsx(Tt,{value:"2",children:"Yes"},"2")]})})},renderCombobox:(v,b,y,k,w,_)=>{const{value:z,showNoChange:N}=_o(b,r,n),B=N||z==null?"No change":y.find(E=>k(E)===String(z))?w(y.find(E=>k(E)===String(z))):String(z),C=N||z===void 0||z===null?[""]:[String(z)];return X.jsx(xo,{label:a(v,b),size:"medium",children:X.jsxs(Un,{size:"medium",value:B,selectedOptions:C,onOptionSelect:(E,O)=>{if(n){const I=O.optionValue,q=_?_(I||""):I||void 0;u(b,q)}},children:[X.jsx(Tt,{value:"",children:"No change"},""),y.map(E=>X.jsx(Tt,{value:k(E),children:w(E)},k(E)))]})})},renderLabelWithInfo:a}},Lt=({title:e,children:r})=>{const n=Ps();return X.jsxs("div",{className:n.section,children:[X.jsx("div",{className:n.sectionTitle,children:e}),X.jsx("div",{className:n.fieldGroup,children:r})]})},X5=({usersettings:e,isLoading:r,sitemapData:n,timezones:i,languages:l,formats:a,systemusers:u,allUsersettings:d,dashboards:f,currencies:m,onFieldChange:h})=>{const v=Ps(),[b,y]=S.useState(null),[k,w]=S.useState(""),z={allUsersettings:d,editedSettings:b,setEditedSettings:y,systemusers:u,formatContext:{timezones:i,languages:l,formats:a,sitemapData:n,dashboards:f,currencies:m},onFieldChange:h},{renderTextField:N,renderDropdown:B,renderBooleanDropdown:C,renderLabelWithInfo:E}=K5(z);if(S.useEffect(()=>{e?(y({...e}),w(e.homepagearea||"")):(y(null),w(""))},[e]),r)return X.jsx("div",{className:v.loadingMessage,children:"Loading user settings..."});if(!e)return X.jsx("div",{className:v.loadingMessage,children:"No user settings available"});if(!b)return null;const O=k?n.subAreas.filter(j=>j.areaId===k):n.subAreas,I=(j,U,le,te)=>{const{value:V,showNoChange:ee}=_o(U,d,b),oe=ee||V==null?"No change":le.find(K=>K.value===String(V))?.label??String(V),H=ee||V===void 0||V===null?[""]:[String(V)];return X.jsx(xo,{label:E(j,U),size:"medium",children:X.jsxs(Un,{size:"medium",value:oe,selectedOptions:H,onOptionSelect:(K,L)=>{if(b){const Q=te?te(L.optionValue||void 0):{[U]:L.optionValue||void 0};y({...b,...Q});const $=L.optionValue||void 0;h?.(U,$)}},children:[X.jsx(Tt,{value:"",children:"No change"},""),le.map(K=>X.jsx(Tt,{value:K.value,children:K.label},K.value))]})})},q=(j,U,le)=>{const{value:te,showNoChange:V}=_o(U,d,b),ee=V||te==null?"No change":le.find(H=>H.value===te)?.label??String(te),oe=V||te===void 0||te===null?["0"]:[String(te)];return X.jsx(xo,{label:E(j,U),size:"medium",children:X.jsxs(Un,{size:"medium",value:ee,selectedOptions:oe,onOptionSelect:(H,K)=>{if(b){const L=K.optionValue?parseInt(K.optionValue):void 0,Q=L===0?void 0:L;y({...b,[U]:Q}),h?.(U,Q)}},children:[X.jsx(Tt,{value:"0",children:"No change"},"0"),le.map(H=>X.jsx(Tt,{value:String(H.value),children:H.label},H.value))]})})};return X.jsxs("div",{children:[X.jsx(Lt,{title:"Display Settings",children:B("Records Per Page","paginglimit",Yt.paginglimit)}),X.jsxs(Lt,{title:"Regional & Language Settings",children:[q("Time Zone","timezonecode",i.map(j=>({value:j.timezonecode,label:j.userinterfacename}))),q("UI Language","uilanguageid",l.map(j=>({value:j.localeid,label:`${j.language}${j.region?` (${j.region})`:""}`}))),q("Regional Format","localeid",a.map(j=>({value:j.localeid,label:`${j.language}${j.region?` (${j.region})`:""}`}))),q("Help Language","helplanguageid",l.map(j=>({value:j.localeid,label:`${j.language}${j.region?` (${j.region})`:""}`}))),I("Currency","transactioncurrencyid",m.map(j=>({value:j.transactioncurrencyid,label:j.currencyname}))),B("Calendar Type","calendartype",Yt.calendartype)]}),X.jsxs(Lt,{title:"Home Page Settings",children:[I("App","homepagearea",n.areas.map(j=>({value:j.id,label:j.title})),j=>(w(j||""),h?.("homepagesubarea",void 0),{homepagearea:j,homepagesubarea:void 0})),I("Page","homepagesubarea",O.map(j=>({value:j.id,label:j.title}))),I("Default Dashboard","defaultdashboardid",f.map(j=>({value:j.formid,label:j.name})))]}),X.jsx(Lt,{title:"Advanced Find",children:B("Advanced Find Startup Mode","advancedfindstartupmode",Yt.advancedfindstartupmode)}),X.jsxs(Lt,{title:"Calendar Settings",children:[B("Default Calendar View","defaultcalendarview",Yt.defaultcalendarview),N("Work Day Start Time","workdaystarttime"),N("Work Day Stop Time","workdaystoptime")]}),X.jsxs(Lt,{title:"Sales & Marketing",children:[C("Show Week Number","showweeknumber"),C("Use CRM Form for Appointment","usecrmformforappointment"),C("Use CRM Form for Contact","usecrmformforcontact"),C("Use CRM Form for Email","usecrmformforemail"),C("Use CRM Form for Task","usecrmformfortask")]}),X.jsx(Lt,{title:"Auto Capture",children:B("Auto Capture User Status","autocaptureuserstatus",Yt.autocaptureuserstatus)}),X.jsx(Lt,{title:"Microsoft 365",children:B("Release Channel","releasechannel",Yt.releasechannel)}),X.jsx(Lt,{title:"Search Settings",children:B("Default Search Experience","defaultsearchexperience",Yt.defaultsearchexperience)}),X.jsxs(Lt,{title:"Email Settings",children:[B("Incoming Email Filtering Method","incomingemailfilteringmethod",Yt.incomingemailfilteringmethod),B("Auto Create Contact on Promote","autocreatecontactonpromote",Yt.autocreatecontactonpromote)]}),X.jsx(Lt,{title:"Export Settings",children:B("Data Validation Mode for Export to Excel","datavalidationmodeforexporttoexcel",Yt.datavalidationmodeforexporttoexcel)}),X.jsx(Lt,{title:"Error Reporting",children:B("Report Script Errors","reportscripterrors",Yt.reportscripterrors)}),X.jsx(Lt,{title:"Privacy Settings",children:C("Is Send As Allowed","issendasallowed")})]})},Q5=Vo({container:{display:"flex",flexDirection:"column",height:"100%",minHeight:0,overflow:"hidden"},header:{paddingBottom:ve.spacingVerticalM,marginBottom:ve.spacingVerticalM,borderBottom:`1px solid ${ve.colorNeutralStroke2}`,flexShrink:0,display:"flex",justifyContent:"space-between",alignItems:"center"},headerLeft:{display:"flex",flexDirection:"column",gap:ve.spacingVerticalXS},title:{fontSize:ve.fontSizeBase500,fontWeight:ve.fontWeightSemibold,color:ve.colorBrandForeground1},changesCount:{fontSize:ve.fontSizeBase200,color:ve.colorNeutralForeground3},body:{flex:1,minHeight:0,overflow:"auto",paddingRight:ve.spacingHorizontalS},emptyState:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",color:ve.colorNeutralForeground3,fontSize:ve.fontSizeBase300}}),Y5=({systemusers:e,sitemapData:r,timezones:n,languages:i,formats:l,dashboards:a,currencies:u})=>{const d=Q5(),[f,m]=S.useState(null),[h,v]=S.useState([]),[b,y]=S.useState([]),[k,w]=S.useState(!1),[_,z]=S.useState(!1),[N,B]=S.useState(new Map),C=Array.from(N.values()).reduce((j,U)=>j+U.changes.size,0);S.useEffect(()=>{B(new Map),e.length>0?I(e):(m(null),v([]),y([]))},[e]);const E=S.useCallback((j,U)=>{B(le=>{const te=new Map(le);return b.forEach(V=>{let ee=te.get(V.systemuserId);ee||(ee={systemuserid:V.systemuserId,userFullname:V.fullname,changes:new Map},te.set(V.systemuserId,ee)),U===void 0?(ee.changes.delete(j),ee.changes.size===0&&te.delete(V.systemuserId)):ee.changes.set(j,U)}),te})},[b]),O=async()=>{if(N.size!==0){z(!0);try{const j=Array.from(N.values()),U=await A5(j);if(U.failed.length===0)await window.toolboxAPI.utils.showNotification({title:"Success",body:`Updated settings for ${U.successful.length} user(s)`,type:"success",duration:3e3}),B(new Map),await I(e);else{const le=U.failed.map(te=>te.userName).join(", ");await window.toolboxAPI.utils.showNotification({title:"Partial Success",body:`Updated ${U.successful.length} user(s). Failed: ${le}`,type:"warning",duration:5e3})}}catch(j){await window.toolboxAPI.utils.showNotification({title:"Error",body:`Failed to save changes: ${j.message}`,type:"error",duration:5e3})}finally{z(!1)}}},I=async j=>{w(!0);try{console.log("Loading settings for users:",j);const U=j.map(H=>F5(H.systemuserId).catch(K=>(console.error("Error loading settings for user",H.fullname,K),null))),le=await Promise.all(U);console.log("Loaded settings array:",le);const te=[];if(le.forEach((H,K)=>{H!==null&&te.push({user:j[K],settings:H})}),console.log("Valid pairs:",te),te.length===0){m(null),v([]),y([]);return}const V=te.map(H=>H.user),ee=te.map(H=>H.settings);console.log("Valid users:",V),console.log("Valid settings:",ee),y(V),v(ee);const oe=q(ee);console.log("Merged settings:",oe),m(oe)}catch(U){console.error("Error loading usersettings:",U)}finally{w(!1)}},q=j=>{if(j.length===0)return{};if(j.length===1)return j[0];const U={systemuserid:j[0].systemuserid},le=Object.keys(j[0]);for(const te of le){if(te==="systemuserid")continue;const V=j[0][te],ee=j.every(oe=>{const H=oe[te];return H===V||H==null&&V==null});U[te]=ee?V:void 0}return U};return X.jsx("div",{className:d.container,children:e.length===0?X.jsx("div",{className:d.emptyState,children:"Select one or more users to view their settings"}):X.jsxs(X.Fragment,{children:[X.jsxs("div",{className:d.header,children:[X.jsxs("div",{className:d.headerLeft,children:[X.jsx("div",{className:d.title,children:e.length===1?e[0].fullname:`${e.length} users selected`}),C>0&&X.jsxs("div",{className:d.changesCount,children:[C," pending change",C!==1?"s":""]})]}),X.jsx(Zm,{appearance:"primary",icon:_?X.jsx(vc,{size:"tiny"}):X.jsx(cx,{}),disabled:C===0||_,onClick:O,children:_?"Saving...":"Save"})]}),X.jsx("div",{className:d.body,children:X.jsx(X5,{usersettings:f,isLoading:k,sitemapData:r,timezones:n,languages:i,formats:l,systemusers:b,allUsersettings:h,dashboards:a,currencies:u,onFieldChange:E})})]})})},J5=({connection:e})=>{const[r,n]=S.useState([]),[i,l]=S.useState([]),[a,u]=S.useState({areas:[],subAreas:[]}),[d,f]=S.useState([]),[m,h]=S.useState([]),[v,b]=S.useState([]),[y,k]=S.useState([]),[w,_]=S.useState([]),[z,N]=S.useState([]),[B,C]=S.useState(""),[E,O]=S.useState(""),[I,q]=S.useState(!1),j=oe=>{l(oe)},le=Vo({mainContainer:{display:"flex",gap:"16px",height:"100%",overflow:"hidden"},leftPanel:{flex:"0 0 60%",display:"flex",flexDirection:"column",overflow:"hidden",minHeight:0},rightPanel:{flex:"0 0 40%",display:"flex",flexDirection:"column",borderLeft:`2px solid ${ve.colorNeutralStroke1}`,paddingLeft:"20px",borderRadius:ve.borderRadiusMedium,padding:"20px",overflowY:"auto",minHeight:0},filterContainer:{display:"flex",alignItems:"flex-end",justifyContent:"space-between",gap:"12px",flexShrink:0},gridContainer:{flex:1,overflowY:"auto",minHeight:0},buttonGroup:{display:"flex",gap:"8px"},loadingContainer:{display:"flex",justifyContent:"center",alignItems:"center",padding:"40px"}})();S.useEffect(()=>{(async()=>{e&&V()})()},[e]);const te=S.useCallback(async(oe,H,K)=>{try{await window.toolboxAPI.utils.showNotification({title:oe,body:H,type:K,duration:3e3})}catch(L){console.error("Error showing notification:",L)}},[]),V=S.useCallback(async()=>{try{q(!0);const oe=await P5();b(oe);const K=oe.find(be=>be.localeid===1033)?1033:oe[0]?.localeid||void 0;console.log(`Using preferred language LCID for sitemap: ${K}`);const[L,Q,$,F,M,ne,ae]=await Promise.all([N5(),I5(K),T5(),E5(),R5(),j5(),D5()]);n(L),u(Q),f($),h(F),k(M),_(ne),N(ae)}catch(oe){te("Error",`Failed to load data: ${oe.message}`,"error")}finally{q(!1)}},[e,te]),ee=Cd.useMemo(()=>{let oe=r;if(E&&(oe=oe.filter(H=>H.businessunitid===E)),B){const H=B.toLowerCase();oe=oe.filter(K=>K.fullname?.toLowerCase().includes(H)||K.internalemailaddress?.toLowerCase().includes(H)||K.businessunitname?.toLowerCase().includes(H))}return oe},[r,B,E]);return X.jsx("div",{className:le.mainContainer,children:I?X.jsx("div",{className:le.loadingContainer,children:X.jsx(vc,{label:"Loading systemusers..."})}):X.jsxs(X.Fragment,{children:[X.jsxs("div",{className:le.leftPanel,children:[X.jsx("div",{className:le.filterContainer,children:X.jsx(M5,{businessunits:d,onTextFilterChanged:oe=>{C(oe)},onBusinessunitFilterChanged:oe=>{O(oe)}})}),X.jsx("div",{className:le.gridContainer,children:X.jsx(q5,{systemusers:ee,onSelectionChange:j})})]}),X.jsx("div",{className:le.rightPanel,children:X.jsx(Y5,{systemusers:i,sitemapData:a,timezones:m,languages:v,formats:y,dashboards:w,currencies:z})})]})})},Z5=Vo({container:{backgroundColor:ve.colorNeutralBackground1,height:"100vh",display:"flex",flexDirection:"column",overflow:"hidden"},header:{padding:ve.spacingVerticalL,paddingBottom:ve.spacingVerticalS,borderBottom:`1px solid ${ve.colorNeutralStroke1}`,gap:ve.spacingVerticalXXS,flexShrink:0},headerTitle:{display:"flex",alignItems:"center",gap:ve.spacingHorizontalM},headerIcon:{height:"50px",objectFit:"contain"},subtitle:{color:ve.colorNeutralForeground3,fontSize:ve.fontSizeBase300},content:{padding:ve.spacingVerticalL,flex:1,overflow:"hidden",minHeight:0}});function e3(){const{connection:e,refreshConnection:r}=v5(),{addLog:n}=y5(),[i,l]=S.useState(em),a=Z5(),u=S.useCallback((f,m)=>{switch(f){case"connection:updated":case"connection:created":r();break;case"connection:deleted":r();break;case"terminal:output":case"terminal:command:completed":case"terminal:error":break;case"settings:updated":d();break}},[r]);async function d(){const f=await window.toolboxAPI.utils.getCurrentTheme();l(f==="dark"?em:Rk)}return b5(u),S.useEffect(()=>{n("React Sample Tool initialized","success")},[n]),X.jsx(rm,{theme:i,children:X.jsxs("div",{className:a.container,children:[X.jsx("div",{className:a.header,children:X.jsxs("div",{className:a.headerTitle,children:[X.jsx("img",{src:w5,alt:"User Settings Utility",className:a.headerIcon}),X.jsx(iB,{children:"User Settings Utility"}),X.jsx(yg,{className:a.subtitle,children:"Your tool to update user settings in Dataverse"})]})}),X.jsx("div",{className:a.content,children:X.jsx(J5,{connection:e})})]})})}const Jn=document.getElementById("root");Jn&&!Jn.hasAttribute("data-reactroot-initialized")?(Jn.setAttribute("data-reactroot-initialized","true"),U0.createRoot(Jn).render(X.jsx(S.StrictMode,{children:X.jsx(e3,{})}))):Jn||console.error('Root element not found. Make sure the HTML contains <div id="root"></div>')})();