From 2b520834dc748e0360e4f557772be88a7114a80b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Fri, 17 Jan 2025 15:42:33 +0100 Subject: [PATCH 1/2] fix: overwrites left and right arrow key behaviour in NumberComponent The cursor position was not stored when moving the cursor without changing the number. --- frontend/src/components/NumberComponent.tsx | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/frontend/src/components/NumberComponent.tsx b/frontend/src/components/NumberComponent.tsx index 2a642060..8dbdfaa1 100644 --- a/frontend/src/components/NumberComponent.tsx +++ b/frontend/src/components/NumberComponent.tsx @@ -199,16 +199,8 @@ export const NumberComponent = React.memo((props: NumberComponentProps) => { const handleKeyDown = (event: React.KeyboardEvent) => { const { key, target } = event; - // Typecast const inputTarget = target as HTMLInputElement; - if ( - key === "F1" || - key === "F5" || - key === "F12" || - key === "Tab" || - key === "ArrowRight" || - key === "ArrowLeft" - ) { + if (key === "F1" || key === "F5" || key === "F12" || key === "Tab") { return; } event.preventDefault(); @@ -223,6 +215,11 @@ export const NumberComponent = React.memo((props: NumberComponentProps) => { // Select everything when pressing Ctrl + a inputTarget.setSelectionRange(0, value.length); return; + } else if (key === "ArrowRight" || key === "ArrowLeft") { + // Move the cursor with the arrow keys and store its position + selectionStart = key === "ArrowRight" ? selectionStart + 1 : selectionStart - 1; + setCursorPosition(selectionStart); + return; } else if ((key >= "0" && key <= "9") || key === "-") { // Check if a number key or a decimal point key is pressed ({ value: newValue, selectionStart } = handleNumericKey( From 1dca04f6937abc94e419b29bdcb9cef1e4edf9e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Fri, 17 Jan 2025 15:43:01 +0100 Subject: [PATCH 2/2] npm run dev --- .../{index-BqF7l_R8.js => index-B4RiTBEo.js} | 14 +++++++------- src/pydase/frontend/index.html | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) rename src/pydase/frontend/assets/{index-BqF7l_R8.js => index-B4RiTBEo.js} (92%) diff --git a/src/pydase/frontend/assets/index-BqF7l_R8.js b/src/pydase/frontend/assets/index-B4RiTBEo.js similarity index 92% rename from src/pydase/frontend/assets/index-BqF7l_R8.js rename to src/pydase/frontend/assets/index-B4RiTBEo.js index f5e284c8..953ea3c3 100644 --- a/src/pydase/frontend/assets/index-BqF7l_R8.js +++ b/src/pydase/frontend/assets/index-B4RiTBEo.js @@ -26,7 +26,7 @@ function Ek(e,t){for(var n=0;n>>1,Z=_[Y];if(0>>1;Yo(re,F))geo(Me,re)?(_[Y]=Me,_[ge]=F,Y=ge):(_[Y]=re,_[X]=F,Y=X);else if(geo(Me,F))_[Y]=Me,_[ge]=F,Y=ge;else break e}}return I}function o(_,I){var F=_.sortIndex-I.sortIndex;return F!==0?F:_.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,v=!1,g=!1,S=!1,k=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(_){for(var I=n(u);I!==null;){if(I.callback===null)r(u);else if(I.startTime<=_)r(u),I.sortIndex=I.expirationTime,t(l,I);else break;I=n(u)}}function E(_){if(S=!1,y(_),!g)if(n(l)!==null)g=!0,G(C);else{var I=n(u);I!==null&&V(E,I.startTime-_)}}function C(_,I){g=!1,S&&(S=!1,m(O),O=-1),v=!0;var F=f;try{for(y(I),d=n(l);d!==null&&(!(d.expirationTime>I)||_&&!A());){var Y=d.callback;if(typeof Y=="function"){d.callback=null,f=d.priorityLevel;var Z=Y(d.expirationTime<=I);I=e.unstable_now(),typeof Z=="function"?d.callback=Z:d===n(l)&&r(l),y(I)}else r(l);d=n(l)}if(d!==null)var ve=!0;else{var X=n(u);X!==null&&V(E,X.startTime-I),ve=!1}return ve}finally{d=null,f=F,v=!1}}var x=!1,b=null,O=-1,T=5,$=-1;function A(){return!(e.unstable_now()-$_||125<_||(T=0<_?Math.floor(1e3/_):5)},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(_){switch(f){case 1:case 2:case 3:var I=3;break;default:I=f}var F=f;f=I;try{return _()}finally{f=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,I){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var F=f;f=_;try{return I()}finally{f=F}},e.unstable_scheduleCallback=function(_,I,F){var Y=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0Y?(_.sortIndex=F,t(u,_),n(l)===null&&_===n(u)&&(S?(m(O),O=-1):S=!0,V(E,F-Y))):(_.sortIndex=Z,t(l,_),g||v||(g=!0,G(C))),_},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(_){var I=f;return function(){var F=f;f=I;try{return _.apply(this,arguments)}finally{f=F}}}})(A0);N0.exports=A0;var ub=N0.exports;/** + */(function(e){function t(_,I){var F=_.length;_.push(I);e:for(;0>>1,Z=_[Y];if(0>>1;Yo(re,F))geo(Me,re)?(_[Y]=Me,_[ge]=F,Y=ge):(_[Y]=re,_[X]=F,Y=X);else if(geo(Me,F))_[Y]=Me,_[ge]=F,Y=ge;else break e}}return I}function o(_,I){var F=_.sortIndex-I.sortIndex;return F!==0?F:_.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,v=!1,g=!1,S=!1,k=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(_){for(var I=n(u);I!==null;){if(I.callback===null)r(u);else if(I.startTime<=_)r(u),I.sortIndex=I.expirationTime,t(l,I);else break;I=n(u)}}function E(_){if(S=!1,m(_),!g)if(n(l)!==null)g=!0,G(C);else{var I=n(u);I!==null&&V(E,I.startTime-_)}}function C(_,I){g=!1,S&&(S=!1,y(O),O=-1),v=!0;var F=f;try{for(m(I),d=n(l);d!==null&&(!(d.expirationTime>I)||_&&!A());){var Y=d.callback;if(typeof Y=="function"){d.callback=null,f=d.priorityLevel;var Z=Y(d.expirationTime<=I);I=e.unstable_now(),typeof Z=="function"?d.callback=Z:d===n(l)&&r(l),m(I)}else r(l);d=n(l)}if(d!==null)var ve=!0;else{var X=n(u);X!==null&&V(E,X.startTime-I),ve=!1}return ve}finally{d=null,f=F,v=!1}}var x=!1,b=null,O=-1,T=5,$=-1;function A(){return!(e.unstable_now()-$_||125<_||(T=0<_?Math.floor(1e3/_):5)},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(_){switch(f){case 1:case 2:case 3:var I=3;break;default:I=f}var F=f;f=I;try{return _()}finally{f=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,I){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var F=f;f=_;try{return I()}finally{f=F}},e.unstable_scheduleCallback=function(_,I,F){var Y=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0Y?(_.sortIndex=F,t(u,_),n(l)===null&&_===n(u)&&(S?(y(O),O=-1):S=!0,V(E,F-Y))):(_.sortIndex=Z,t(l,_),g||v||(g=!0,G(C))),_},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(_){var I=f;return function(){var F=f;f=I;try{return _.apply(this,arguments)}finally{f=F}}}})(A0);N0.exports=A0;var ub=N0.exports;/** * @license React * react-dom.production.min.js * @@ -38,17 +38,17 @@ function Ek(e,t){for(var n=0;na||o[s]!==i[a]){var l=` -`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Ec=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Li(e):""}function mb(e){switch(e.tag){case 5:return Li(e.type);case 16:return Li("Lazy");case 13:return Li("Suspense");case 19:return Li("SuspenseList");case 0:case 2:case 15:return e=kc(e.type,!1),e;case 11:return e=kc(e.type.render,!1),e;case 1:return e=kc(e.type,!0),e;default:return""}}function Nf(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case xo:return"Fragment";case So:return"Portal";case _f:return"Profiler";case Ep:return"StrictMode";case Tf:return"Suspense";case Rf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case L0:return(e.displayName||"Context")+".Consumer";case j0:return(e._context.displayName||"Context")+".Provider";case kp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case bp:return t=e.displayName||null,t!==null?t:Nf(e.type)||"Memo";case nr:t=e._payload,e=e._init;try{return Nf(e(t))}catch{}}return null}function yb(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Nf(t);case 8:return t===Ep?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function xr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function M0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vb(e){var t=M0(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ea(e){e._valueTracker||(e._valueTracker=vb(e))}function B0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=M0(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function fl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Af(e,t){var n=t.checked;return be({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Pm(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=xr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function D0(e,t){t=t.checked,t!=null&&xp(e,"checked",t,!1)}function Pf(e,t){D0(e,t);var n=xr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?jf(e,t.type,n):t.hasOwnProperty("defaultValue")&&jf(e,t.type,xr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function jm(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function jf(e,t,n){(t!=="number"||fl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ii=Array.isArray;function Po(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ta.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ls(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Wi={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},gb=["Webkit","ms","Moz","O"];Object.keys(Wi).forEach(function(e){gb.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Wi[t]=Wi[e]})});function W0(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Wi.hasOwnProperty(e)&&Wi[e]?(""+t).trim():t+"px"}function H0(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=W0(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var wb=be({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 Mf(e,t){if(t){if(wb[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function Bf(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Df=null;function Cp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ff=null,jo=null,Lo=null;function Mm(e){if(e=Bs(e)){if(typeof Ff!="function")throw Error(R(280));var t=e.stateNode;t&&(t=du(t),Ff(e.stateNode,e.type,t))}}function V0(e){jo?Lo?Lo.push(e):Lo=[e]:jo=e}function K0(){if(jo){var e=jo,t=Lo;if(Lo=jo=null,Mm(e),t)for(e=0;e>>=0,e===0?32:31-(Rb(e)/Nb|0)|0}var na=64,ra=4194304;function Mi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ml(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=Mi(a):(i&=s,i!==0&&(r=Mi(i)))}else s=n&~o,s!==0?r=Mi(s):i!==0&&(r=Mi(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Is(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-nn(t),e[t]=n}function Lb(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Vi),Km=" ",Gm=!1;function d1(e,t){switch(e){case"keyup":return uC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function p1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Eo=!1;function fC(e,t){switch(e){case"compositionend":return p1(t);case"keypress":return t.which!==32?null:(Gm=!0,Km);case"textInput":return e=t.data,e===Km&&Gm?null:e;default:return null}}function dC(e,t){if(Eo)return e==="compositionend"||!Pp&&d1(e,t)?(e=c1(),ja=Rp=ur=null,Eo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Xm(n)}}function v1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?v1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function g1(){for(var e=window,t=fl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=fl(e.document)}return t}function jp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function xC(e){var t=g1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&v1(n.ownerDocument.documentElement,n)){if(r!==null&&jp(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Jm(n,i);var s=Jm(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ko=null,Kf=null,Gi=null,Gf=!1;function Zm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gf||ko==null||ko!==fl(r)||(r=ko,"selectionStart"in r&&jp(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Gi&&hs(Gi,r)||(Gi=r,r=gl(Kf,"onSelect"),0Oo||(e.current=Zf[Oo],Zf[Oo]=null,Oo--)}function he(e,t){Oo++,Zf[Oo]=e.current,e.current=t}var Er={},et=Cr(Er),ft=Cr(!1),Ur=Er;function Ho(e,t){var n=e.type.contextTypes;if(!n)return Er;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function dt(e){return e=e.childContextTypes,e!=null}function Sl(){ye(ft),ye(et)}function sy(e,t,n){if(et.current!==Er)throw Error(R(168));he(et,t),he(ft,n)}function $1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(R(108,yb(e)||"Unknown",o));return be({},n,r)}function xl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Er,Ur=et.current,he(et,e),he(ft,ft.current),!0}function ay(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=$1(e,t,Ur),r.__reactInternalMemoizedMergedChildContext=e,ye(ft),ye(et),he(et,e)):ye(ft),he(ft,n)}var jn=null,pu=!1,Mc=!1;function _1(e){jn===null?jn=[e]:jn.push(e)}function PC(e){pu=!0,_1(e)}function Or(){if(!Mc&&jn!==null){Mc=!0;var e=0,t=ue;try{var n=jn;for(ue=1;e>=s,o-=s,Mn=1<<32-nn(t)+o|n<O?(T=b,b=null):T=b.sibling;var $=f(m,b,y[O],E);if($===null){b===null&&(b=T);break}e&&b&&$.alternate===null&&t(m,b),p=i($,p,O),x===null?C=$:x.sibling=$,x=$,b=T}if(O===y.length)return n(m,b),xe&&Nr(m,O),C;if(b===null){for(;OO?(T=b,b=null):T=b.sibling;var A=f(m,b,$.value,E);if(A===null){b===null&&(b=T);break}e&&b&&A.alternate===null&&t(m,b),p=i(A,p,O),x===null?C=A:x.sibling=A,x=A,b=T}if($.done)return n(m,b),xe&&Nr(m,O),C;if(b===null){for(;!$.done;O++,$=y.next())$=d(m,$.value,E),$!==null&&(p=i($,p,O),x===null?C=$:x.sibling=$,x=$);return xe&&Nr(m,O),C}for(b=r(m,b);!$.done;O++,$=y.next())$=v(b,m,O,$.value,E),$!==null&&(e&&$.alternate!==null&&b.delete($.key===null?O:$.key),p=i($,p,O),x===null?C=$:x.sibling=$,x=$);return e&&b.forEach(function(U){return t(m,U)}),xe&&Nr(m,O),C}function k(m,p,y,E){if(typeof y=="object"&&y!==null&&y.type===xo&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Zs:e:{for(var C=y.key,x=p;x!==null;){if(x.key===C){if(C=y.type,C===xo){if(x.tag===7){n(m,x.sibling),p=o(x,y.props.children),p.return=m,m=p;break e}}else if(x.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===nr&&cy(C)===x.type){n(m,x.sibling),p=o(x,y.props),p.ref=bi(m,x,y),p.return=m,m=p;break e}n(m,x);break}else t(m,x);x=x.sibling}y.type===xo?(p=Br(y.props.children,m.mode,E,y.key),p.return=m,m=p):(E=Ua(y.type,y.key,y.props,null,m.mode,E),E.ref=bi(m,p,y),E.return=m,m=E)}return s(m);case So:e:{for(x=y.key;p!==null;){if(p.key===x)if(p.tag===4&&p.stateNode.containerInfo===y.containerInfo&&p.stateNode.implementation===y.implementation){n(m,p.sibling),p=o(p,y.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=Vc(y,m.mode,E),p.return=m,m=p}return s(m);case nr:return x=y._init,k(m,p,x(y._payload),E)}if(Ii(y))return g(m,p,y,E);if(wi(y))return S(m,p,y,E);ca(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,p!==null&&p.tag===6?(n(m,p.sibling),p=o(p,y),p.return=m,m=p):(n(m,p),p=Hc(y,m.mode,E),p.return=m,m=p),s(m)):n(m,p)}return k}var Ko=A1(!0),P1=A1(!1),bl=Cr(null),Cl=null,To=null,Bp=null;function Dp(){Bp=To=Cl=null}function Fp(e){var t=bl.current;ye(bl),e._currentValue=t}function nd(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Mo(e,t){Cl=e,Bp=To=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ct=!0),e.firstContext=null)}function Dt(e){var t=e._currentValue;if(Bp!==e)if(e={context:e,memoizedValue:t,next:null},To===null){if(Cl===null)throw Error(R(308));To=e,Cl.dependencies={lanes:0,firstContext:e}}else To=To.next=e;return t}var jr=null;function zp(e){jr===null?jr=[e]:jr.push(e)}function j1(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,zp(t)):(n.next=o.next,o.next=n),t.interleaved=n,Vn(e,r)}function Vn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var rr=!1;function Up(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function L1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function zn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function yr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,te&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Vn(e,n)}return o=r.interleaved,o===null?(t.next=t,zp(r)):(t.next=o.next,o.next=t),r.interleaved=t,Vn(e,n)}function Ia(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$p(e,n)}}function fy(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ol(e,t,n,r){var o=e.updateQueue;rr=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,c=u=l=null,a=i;do{var f=a.lane,v=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=e,S=a;switch(f=t,v=n,S.tag){case 1:if(g=S.payload,typeof g=="function"){d=g.call(v,d,f);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=S.payload,f=typeof g=="function"?g.call(v,d,f):g,f==null)break e;d=be({},d,f);break e;case 2:rr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else v={eventTime:v,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=v,l=d):c=c.next=v,s|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Vr|=s,e.lanes=s,e.memoizedState=d}}function dy(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Dc.transition;Dc.transition={};try{e(!1),t()}finally{ue=n,Dc.transition=r}}function J1(){return Ft().memoizedState}function MC(e,t,n){var r=gr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Z1(e))ew(t,n);else if(n=j1(e,t,n,r),n!==null){var o=st();rn(n,e,r,o),tw(n,t,r)}}function BC(e,t,n){var r=gr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Z1(e))ew(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,sn(a,s)){var l=t.interleaved;l===null?(o.next=o,zp(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=j1(e,t,o,r),n!==null&&(o=st(),rn(n,e,r,o),tw(n,t,r))}}function Z1(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function ew(e,t){qi=_l=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function tw(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$p(e,n)}}var Tl={readContext:Dt,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useInsertionEffect:Ye,useLayoutEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useMutableSource:Ye,useSyncExternalStore:Ye,useId:Ye,unstable_isNewReconciler:!1},DC={readContext:Dt,useCallback:function(e,t){return fn().memoizedState=[e,t===void 0?null:t],e},useContext:Dt,useEffect:hy,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ba(4194308,4,G1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ba(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ba(4,2,e,t)},useMemo:function(e,t){var n=fn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=fn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=MC.bind(null,ke,e),[r.memoizedState,e]},useRef:function(e){var t=fn();return e={current:e},t.memoizedState=e},useState:py,useDebugValue:Yp,useDeferredValue:function(e){return fn().memoizedState=e},useTransition:function(){var e=py(!1),t=e[0];return e=IC.bind(null,e[1]),fn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ke,o=fn();if(xe){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Fe===null)throw Error(R(349));Hr&30||D1(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,hy(z1.bind(null,r,i,e),[e]),r.flags|=2048,Es(9,F1.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=fn(),t=Fe.identifierPrefix;if(xe){var n=Bn,r=Mn;n=(r&~(1<<32-nn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ss++,0")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Ec=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Li(e):""}function mb(e){switch(e.tag){case 5:return Li(e.type);case 16:return Li("Lazy");case 13:return Li("Suspense");case 19:return Li("SuspenseList");case 0:case 2:case 15:return e=kc(e.type,!1),e;case 11:return e=kc(e.type.render,!1),e;case 1:return e=kc(e.type,!0),e;default:return""}}function Nf(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case xo:return"Fragment";case So:return"Portal";case _f:return"Profiler";case Ep:return"StrictMode";case Tf:return"Suspense";case Rf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case L0:return(e.displayName||"Context")+".Consumer";case j0:return(e._context.displayName||"Context")+".Provider";case kp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case bp:return t=e.displayName||null,t!==null?t:Nf(e.type)||"Memo";case nr:t=e._payload,e=e._init;try{return Nf(e(t))}catch{}}return null}function yb(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Nf(t);case 8:return t===Ep?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function xr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function M0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vb(e){var t=M0(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ea(e){e._valueTracker||(e._valueTracker=vb(e))}function B0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=M0(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function fl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Af(e,t){var n=t.checked;return be({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Pm(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=xr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function D0(e,t){t=t.checked,t!=null&&xp(e,"checked",t,!1)}function Pf(e,t){D0(e,t);var n=xr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?jf(e,t.type,n):t.hasOwnProperty("defaultValue")&&jf(e,t.type,xr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function jm(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function jf(e,t,n){(t!=="number"||fl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ii=Array.isArray;function Po(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ta.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ls(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Wi={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},gb=["Webkit","ms","Moz","O"];Object.keys(Wi).forEach(function(e){gb.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Wi[t]=Wi[e]})});function W0(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Wi.hasOwnProperty(e)&&Wi[e]?(""+t).trim():t+"px"}function H0(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=W0(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var wb=be({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 Mf(e,t){if(t){if(wb[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function Bf(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Df=null;function Cp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ff=null,jo=null,Lo=null;function Mm(e){if(e=Bs(e)){if(typeof Ff!="function")throw Error(R(280));var t=e.stateNode;t&&(t=du(t),Ff(e.stateNode,e.type,t))}}function V0(e){jo?Lo?Lo.push(e):Lo=[e]:jo=e}function K0(){if(jo){var e=jo,t=Lo;if(Lo=jo=null,Mm(e),t)for(e=0;e>>=0,e===0?32:31-(Rb(e)/Nb|0)|0}var na=64,ra=4194304;function Mi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ml(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=Mi(a):(i&=s,i!==0&&(r=Mi(i)))}else s=n&~o,s!==0?r=Mi(s):i!==0&&(r=Mi(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Is(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-nn(t),e[t]=n}function Lb(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Vi),Km=" ",Gm=!1;function d1(e,t){switch(e){case"keyup":return uC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function p1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Eo=!1;function fC(e,t){switch(e){case"compositionend":return p1(t);case"keypress":return t.which!==32?null:(Gm=!0,Km);case"textInput":return e=t.data,e===Km&&Gm?null:e;default:return null}}function dC(e,t){if(Eo)return e==="compositionend"||!Pp&&d1(e,t)?(e=c1(),ja=Rp=ur=null,Eo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Xm(n)}}function v1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?v1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function g1(){for(var e=window,t=fl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=fl(e.document)}return t}function jp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function xC(e){var t=g1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&v1(n.ownerDocument.documentElement,n)){if(r!==null&&jp(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Jm(n,i);var s=Jm(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ko=null,Kf=null,Gi=null,Gf=!1;function Zm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gf||ko==null||ko!==fl(r)||(r=ko,"selectionStart"in r&&jp(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Gi&&hs(Gi,r)||(Gi=r,r=gl(Kf,"onSelect"),0Oo||(e.current=Zf[Oo],Zf[Oo]=null,Oo--)}function he(e,t){Oo++,Zf[Oo]=e.current,e.current=t}var Er={},et=Cr(Er),ft=Cr(!1),Ur=Er;function Ho(e,t){var n=e.type.contextTypes;if(!n)return Er;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function dt(e){return e=e.childContextTypes,e!=null}function Sl(){ye(ft),ye(et)}function sy(e,t,n){if(et.current!==Er)throw Error(R(168));he(et,t),he(ft,n)}function $1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(R(108,yb(e)||"Unknown",o));return be({},n,r)}function xl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Er,Ur=et.current,he(et,e),he(ft,ft.current),!0}function ay(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=$1(e,t,Ur),r.__reactInternalMemoizedMergedChildContext=e,ye(ft),ye(et),he(et,e)):ye(ft),he(ft,n)}var jn=null,pu=!1,Mc=!1;function _1(e){jn===null?jn=[e]:jn.push(e)}function PC(e){pu=!0,_1(e)}function Or(){if(!Mc&&jn!==null){Mc=!0;var e=0,t=ue;try{var n=jn;for(ue=1;e>=s,o-=s,Mn=1<<32-nn(t)+o|n<O?(T=b,b=null):T=b.sibling;var $=f(y,b,m[O],E);if($===null){b===null&&(b=T);break}e&&b&&$.alternate===null&&t(y,b),p=i($,p,O),x===null?C=$:x.sibling=$,x=$,b=T}if(O===m.length)return n(y,b),xe&&Nr(y,O),C;if(b===null){for(;OO?(T=b,b=null):T=b.sibling;var A=f(y,b,$.value,E);if(A===null){b===null&&(b=T);break}e&&b&&A.alternate===null&&t(y,b),p=i(A,p,O),x===null?C=A:x.sibling=A,x=A,b=T}if($.done)return n(y,b),xe&&Nr(y,O),C;if(b===null){for(;!$.done;O++,$=m.next())$=d(y,$.value,E),$!==null&&(p=i($,p,O),x===null?C=$:x.sibling=$,x=$);return xe&&Nr(y,O),C}for(b=r(y,b);!$.done;O++,$=m.next())$=v(b,y,O,$.value,E),$!==null&&(e&&$.alternate!==null&&b.delete($.key===null?O:$.key),p=i($,p,O),x===null?C=$:x.sibling=$,x=$);return e&&b.forEach(function(U){return t(y,U)}),xe&&Nr(y,O),C}function k(y,p,m,E){if(typeof m=="object"&&m!==null&&m.type===xo&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Zs:e:{for(var C=m.key,x=p;x!==null;){if(x.key===C){if(C=m.type,C===xo){if(x.tag===7){n(y,x.sibling),p=o(x,m.props.children),p.return=y,y=p;break e}}else if(x.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===nr&&cy(C)===x.type){n(y,x.sibling),p=o(x,m.props),p.ref=bi(y,x,m),p.return=y,y=p;break e}n(y,x);break}else t(y,x);x=x.sibling}m.type===xo?(p=Br(m.props.children,y.mode,E,m.key),p.return=y,y=p):(E=Ua(m.type,m.key,m.props,null,y.mode,E),E.ref=bi(y,p,m),E.return=y,y=E)}return s(y);case So:e:{for(x=m.key;p!==null;){if(p.key===x)if(p.tag===4&&p.stateNode.containerInfo===m.containerInfo&&p.stateNode.implementation===m.implementation){n(y,p.sibling),p=o(p,m.children||[]),p.return=y,y=p;break e}else{n(y,p);break}else t(y,p);p=p.sibling}p=Vc(m,y.mode,E),p.return=y,y=p}return s(y);case nr:return x=m._init,k(y,p,x(m._payload),E)}if(Ii(m))return g(y,p,m,E);if(wi(m))return S(y,p,m,E);ca(y,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,p!==null&&p.tag===6?(n(y,p.sibling),p=o(p,m),p.return=y,y=p):(n(y,p),p=Hc(m,y.mode,E),p.return=y,y=p),s(y)):n(y,p)}return k}var Ko=A1(!0),P1=A1(!1),bl=Cr(null),Cl=null,To=null,Bp=null;function Dp(){Bp=To=Cl=null}function Fp(e){var t=bl.current;ye(bl),e._currentValue=t}function nd(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Mo(e,t){Cl=e,Bp=To=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ct=!0),e.firstContext=null)}function Dt(e){var t=e._currentValue;if(Bp!==e)if(e={context:e,memoizedValue:t,next:null},To===null){if(Cl===null)throw Error(R(308));To=e,Cl.dependencies={lanes:0,firstContext:e}}else To=To.next=e;return t}var jr=null;function zp(e){jr===null?jr=[e]:jr.push(e)}function j1(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,zp(t)):(n.next=o.next,o.next=n),t.interleaved=n,Vn(e,r)}function Vn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var rr=!1;function Up(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function L1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function zn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function yr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,te&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Vn(e,n)}return o=r.interleaved,o===null?(t.next=t,zp(r)):(t.next=o.next,o.next=t),r.interleaved=t,Vn(e,n)}function Ia(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$p(e,n)}}function fy(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ol(e,t,n,r){var o=e.updateQueue;rr=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,c=u=l=null,a=i;do{var f=a.lane,v=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=e,S=a;switch(f=t,v=n,S.tag){case 1:if(g=S.payload,typeof g=="function"){d=g.call(v,d,f);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=S.payload,f=typeof g=="function"?g.call(v,d,f):g,f==null)break e;d=be({},d,f);break e;case 2:rr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else v={eventTime:v,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=v,l=d):c=c.next=v,s|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Vr|=s,e.lanes=s,e.memoizedState=d}}function dy(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Dc.transition;Dc.transition={};try{e(!1),t()}finally{ue=n,Dc.transition=r}}function J1(){return Ft().memoizedState}function MC(e,t,n){var r=gr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Z1(e))ew(t,n);else if(n=j1(e,t,n,r),n!==null){var o=st();rn(n,e,r,o),tw(n,t,r)}}function BC(e,t,n){var r=gr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Z1(e))ew(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,sn(a,s)){var l=t.interleaved;l===null?(o.next=o,zp(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=j1(e,t,o,r),n!==null&&(o=st(),rn(n,e,r,o),tw(n,t,r))}}function Z1(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function ew(e,t){qi=_l=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function tw(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$p(e,n)}}var Tl={readContext:Dt,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useInsertionEffect:Ye,useLayoutEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useMutableSource:Ye,useSyncExternalStore:Ye,useId:Ye,unstable_isNewReconciler:!1},DC={readContext:Dt,useCallback:function(e,t){return fn().memoizedState=[e,t===void 0?null:t],e},useContext:Dt,useEffect:hy,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ba(4194308,4,G1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ba(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ba(4,2,e,t)},useMemo:function(e,t){var n=fn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=fn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=MC.bind(null,ke,e),[r.memoizedState,e]},useRef:function(e){var t=fn();return e={current:e},t.memoizedState=e},useState:py,useDebugValue:Yp,useDeferredValue:function(e){return fn().memoizedState=e},useTransition:function(){var e=py(!1),t=e[0];return e=IC.bind(null,e[1]),fn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ke,o=fn();if(xe){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Fe===null)throw Error(R(349));Hr&30||D1(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,hy(z1.bind(null,r,i,e),[e]),r.flags|=2048,Es(9,F1.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=fn(),t=Fe.identifierPrefix;if(xe){var n=Bn,r=Mn;n=(r&~(1<<32-nn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ss++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[yn]=t,e[vs]=r,fw(e,t,!1,!1),t.stateNode=e;e:{switch(s=Bf(n,r),n){case"dialog":me("cancel",e),me("close",e),o=r;break;case"iframe":case"object":case"embed":me("load",e),o=r;break;case"video":case"audio":for(o=0;oQo&&(t.flags|=128,r=!0,Ci(i,!1),t.lanes=4194304)}else{if(!r)if(e=$l(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ci(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!xe)return Xe(t),null}else 2*_e()-i.renderingStartTime>Qo&&n!==1073741824&&(t.flags|=128,r=!0,Ci(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=_e(),t.sibling=null,n=Ee.current,he(Ee,r?n&1|2:n&1),t):(Xe(t),null);case 22:case 23:return nh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?gt&1073741824&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function GC(e,t){switch(Ip(t),t.tag){case 1:return dt(t.type)&&Sl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Go(),ye(ft),ye(et),Vp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Hp(t),null;case 13:if(ye(Ee),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));Vo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ye(Ee),null;case 4:return Go(),null;case 10:return Fp(t.type._context),null;case 22:case 23:return nh(),null;case 24:return null;default:return null}}var da=!1,Ze=!1,qC=typeof WeakSet=="function"?WeakSet:Set,L=null;function Ro(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){$e(e,t,r)}else n.current=null}function fd(e,t,n){try{n()}catch(r){$e(e,t,r)}}var Cy=!1;function QC(e,t){if(qf=yl,e=g1(),jp(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var v;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(v=d.firstChild)!==null;)f=d,d=v;for(;;){if(d===e)break t;if(f===n&&++u===o&&(a=s),f===i&&++c===r&&(l=s),(v=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=v}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Qf={focusedElem:e,selectionRange:n},yl=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var S=g.memoizedProps,k=g.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?S:Xt(t.type,S),k);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(E){$e(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return g=Cy,Cy=!1,g}function Qi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&fd(t,n,i)}o=o.next}while(o!==r)}}function yu(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function dd(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function hw(e){var t=e.alternate;t!==null&&(e.alternate=null,hw(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[yn],delete t[vs],delete t[Jf],delete t[NC],delete t[AC])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function mw(e){return e.tag===5||e.tag===3||e.tag===4}function Oy(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mw(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function pd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=wl));else if(r!==4&&(e=e.child,e!==null))for(pd(e,t,n),e=e.sibling;e!==null;)pd(e,t,n),e=e.sibling}function hd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(hd(e,t,n),e=e.sibling;e!==null;)hd(e,t,n),e=e.sibling}var He=null,Jt=!1;function er(e,t,n){for(n=n.child;n!==null;)yw(e,t,n),n=n.sibling}function yw(e,t,n){if(vn&&typeof vn.onCommitFiberUnmount=="function")try{vn.onCommitFiberUnmount(lu,n)}catch{}switch(n.tag){case 5:Ze||Ro(n,t);case 6:var r=He,o=Jt;He=null,er(e,t,n),He=r,Jt=o,He!==null&&(Jt?(e=He,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):He.removeChild(n.stateNode));break;case 18:He!==null&&(Jt?(e=He,n=n.stateNode,e.nodeType===8?Ic(e.parentNode,n):e.nodeType===1&&Ic(e,n),ds(e)):Ic(He,n.stateNode));break;case 4:r=He,o=Jt,He=n.stateNode.containerInfo,Jt=!0,er(e,t,n),He=r,Jt=o;break;case 0:case 11:case 14:case 15:if(!Ze&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&fd(n,t,s),o=o.next}while(o!==r)}er(e,t,n);break;case 1:if(!Ze&&(Ro(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){$e(n,t,a)}er(e,t,n);break;case 21:er(e,t,n);break;case 22:n.mode&1?(Ze=(r=Ze)||n.memoizedState!==null,er(e,t,n),Ze=r):er(e,t,n);break;default:er(e,t,n)}}function $y(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new qC),t.forEach(function(r){var o=oO.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Qt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=_e()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*XC(r/1960))-r,10e?16:e,cr===null)var r=!1;else{if(e=cr,cr=null,Al=0,te&6)throw Error(R(331));var o=te;for(te|=4,L=e.current;L!==null;){var i=L,s=i.child;if(L.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l_e()-eh?Mr(e,0):Zp|=n),pt(e,t)}function bw(e,t){t===0&&(e.mode&1?(t=ra,ra<<=1,!(ra&130023424)&&(ra=4194304)):t=1);var n=st();e=Vn(e,t),e!==null&&(Is(e,t,n),pt(e,n))}function rO(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),bw(e,n)}function oO(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),bw(e,n)}var Cw;Cw=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ft.current)ct=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ct=!1,VC(e,t,n);ct=!!(e.flags&131072)}else ct=!1,xe&&t.flags&1048576&&T1(t,kl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Da(e,t),e=t.pendingProps;var o=Ho(t,et.current);Mo(t,n),o=Gp(null,t,r,e,o,n);var i=qp();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,dt(r)?(i=!0,xl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Up(t),o.updater=mu,t.stateNode=o,o._reactInternals=t,od(t,r,e,n),t=ad(null,t,r,!0,i,n)):(t.tag=0,xe&&i&&Lp(t),rt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Da(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=sO(r),e=Xt(r,e),o){case 0:t=sd(null,t,r,e,n);break e;case 1:t=Ey(null,t,r,e,n);break e;case 11:t=Sy(null,t,r,e,n);break e;case 14:t=xy(null,t,r,Xt(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),sd(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),Ey(e,t,r,o,n);case 3:e:{if(lw(t),e===null)throw Error(R(387));r=t.pendingProps,i=t.memoizedState,o=i.element,L1(e,t),Ol(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=qo(Error(R(423)),t),t=ky(e,t,r,n,o);break e}else if(r!==o){o=qo(Error(R(424)),t),t=ky(e,t,r,n,o);break e}else for(St=mr(t.stateNode.containerInfo.firstChild),xt=t,xe=!0,en=null,n=P1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vo(),r===o){t=Kn(e,t,n);break e}rt(e,t,r,n)}t=t.child}return t;case 5:return I1(t),e===null&&td(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Yf(r,o)?s=null:i!==null&&Yf(r,i)&&(t.flags|=32),aw(e,t),rt(e,t,s,n),t.child;case 6:return e===null&&td(t),null;case 13:return uw(e,t,n);case 4:return Wp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ko(t,null,r,n):rt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),Sy(e,t,r,o,n);case 7:return rt(e,t,t.pendingProps,n),t.child;case 8:return rt(e,t,t.pendingProps.children,n),t.child;case 12:return rt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,he(bl,r._currentValue),r._currentValue=s,i!==null)if(sn(i.value,s)){if(i.children===o.children&&!ft.current){t=Kn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=zn(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),nd(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(R(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),nd(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}rt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Mo(t,n),o=Dt(o),r=r(o),t.flags|=1,rt(e,t,r,n),t.child;case 14:return r=t.type,o=Xt(r,t.pendingProps),o=Xt(r.type,o),xy(e,t,r,o,n);case 15:return iw(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),Da(e,t),t.tag=1,dt(r)?(e=!0,xl(t)):e=!1,Mo(t,n),nw(t,r,o),od(t,r,o,n),ad(null,t,r,!0,e,n);case 19:return cw(e,t,n);case 22:return sw(e,t,n)}throw Error(R(156,t.tag))};function Ow(e,t){return Z0(e,t)}function iO(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function It(e,t,n,r){return new iO(e,t,n,r)}function oh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sO(e){if(typeof e=="function")return oh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===kp)return 11;if(e===bp)return 14}return 2}function wr(e,t){var n=e.alternate;return n===null?(n=It(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ua(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")oh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case xo:return Br(n.children,o,i,t);case Ep:s=8,o|=8;break;case _f:return e=It(12,n,t,o|2),e.elementType=_f,e.lanes=i,e;case Tf:return e=It(13,n,t,o),e.elementType=Tf,e.lanes=i,e;case Rf:return e=It(19,n,t,o),e.elementType=Rf,e.lanes=i,e;case I0:return gu(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case j0:s=10;break e;case L0:s=9;break e;case kp:s=11;break e;case bp:s=14;break e;case nr:s=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=It(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Br(e,t,n,r){return e=It(7,e,r,t),e.lanes=n,e}function gu(e,t,n,r){return e=It(22,e,r,t),e.elementType=I0,e.lanes=n,e.stateNode={isHidden:!1},e}function Hc(e,t,n){return e=It(6,e,null,t),e.lanes=n,e}function Vc(e,t,n){return t=It(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function aO(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Cc(0),this.expirationTimes=Cc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cc(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ih(e,t,n,r,o,i,s,a,l){return e=new aO(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=It(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Up(i),e}function lO(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Rw)}catch{}}Rw(),R0.exports=Ct;var Nw=R0.exports;const Ir=si(Nw),Ly={disabled:!1},Aw=ne.createContext(null);var pO=function(t){return t.scrollTop},Di="unmounted",or="exited",Pt="entering",In="entered",Yo="exiting",Jn=function(e){qk(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=o,a=s&&!s.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?a?(l=or,i.appearStatus=Pt):l=In:r.unmountOnExit||r.mountOnEnter?l=Di:l=or,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===Di?{status:or}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==Pt&&s!==In&&(i=Pt):(s===Pt||s===In)&&(i=Yo)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Pt){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Ir.findDOMNode(this);s&&pO(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===or&&this.setState({status:Di})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[Ir.findDOMNode(this),a],u=l[0],c=l[1],d=this.getTimeouts(),f=a?d.appear:d.enter;if(!o&&!s||Ly.disabled){this.safeSetState({status:In},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Pt},function(){i.props.onEntering(u,c),i.onTransitionEnd(f,function(){i.safeSetState({status:In},function(){i.props.onEntered(u,c)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:Ir.findDOMNode(this);if(!i||Ly.disabled){this.safeSetState({status:or},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Yo},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:or},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:Ir.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Di)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=an(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ne.createElement(Aw.Provider,{value:null},typeof s=="function"?s(o,a):ne.cloneElement(ne.Children.only(s),a))},t}(ne.Component);Jn.contextType=Aw;Jn.propTypes={};function io(){}Jn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:io,onEntering:io,onEntered:io,onExit:io,onExiting:io,onExited:io};Jn.UNMOUNTED=Di;Jn.EXITED=or;Jn.ENTERING=Pt;Jn.ENTERED=In;Jn.EXITING=Yo;const ku=!!(typeof window<"u"&&window.document&&window.document.createElement);var wd=!1,Sd=!1;try{var Kc={get passive(){return wd=!0},get once(){return Sd=wd=!0}};ku&&(window.addEventListener("test",Kc,Kc),window.removeEventListener("test",Kc,!0))}catch{}function hO(e,t,n,r){if(r&&typeof r!="boolean"&&!Sd){var o=r.once,i=r.capture,s=n;!Sd&&o&&(s=n.__once||function a(l){this.removeEventListener(t,a,i),n.call(this,l)},n.__once=s),e.addEventListener(t,s,wd?r:i)}e.addEventListener(t,n,r)}function mO(e,t,n,r){var o=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)}function Dn(e,t,n,r){return hO(e,t,n,r),function(){mO(e,t,n,r)}}function yO(e,t,n,r){if(r===void 0&&(r=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent(t,n,r),e.dispatchEvent(o)}}function vO(e){var t=Fn(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function gO(e,t,n){n===void 0&&(n=5);var r=!1,o=setTimeout(function(){r||yO(e,"transitionend",!0)},t+n),i=Dn(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(o),i()}}function wO(e,t,n,r){n==null&&(n=vO(e)||0);var o=gO(e,n,r),i=Dn(e,"transitionend",t);return function(){o(),i()}}function Iy(e,t){const n=Fn(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function uh(e,t){const n=Iy(e,"transitionDuration"),r=Iy(e,"transitionDelay"),o=wO(e,i=>{i.target===e&&(o(),t(i))},n+r)}function $i(...e){return e.filter(t=>t!=null).reduce((t,n)=>{if(typeof n!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return t===null?n:function(...o){t.apply(this,o),n.apply(this,o)}},null)}function Pw(e){e.offsetHeight}const My=e=>!e||typeof e=="function"?e:t=>{e.current=t};function SO(e,t){const n=My(e),r=My(t);return o=>{n&&n(o),r&&r(o)}}function Yr(e,t){return h.useMemo(()=>SO(e,t),[e,t])}function Ll(e){return e&&"setState"in e?Ir.findDOMNode(e):e??null}const ch=ne.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:o,onExited:i,addEndListener:s,children:a,childRef:l,...u},c)=>{const d=h.useRef(null),f=Yr(d,l),v=x=>{f(Ll(x))},g=x=>b=>{x&&d.current&&x(d.current,b)},S=h.useCallback(g(e),[e]),k=h.useCallback(g(t),[t]),m=h.useCallback(g(n),[n]),p=h.useCallback(g(r),[r]),y=h.useCallback(g(o),[o]),E=h.useCallback(g(i),[i]),C=h.useCallback(g(s),[s]);return w.jsx(Jn,{ref:c,...u,onEnter:S,onEntered:m,onEntering:k,onExit:p,onExited:E,onExiting:y,addEndListener:C,nodeRef:d,children:typeof a=="function"?(x,b)=>a(x,{...b,ref:v}):ne.cloneElement(a,{ref:v})})}),xO={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function EO(e,t){const n=`offset${e[0].toUpperCase()}${e.slice(1)}`,r=t[n],o=xO[e];return r+parseInt(Fn(t,o[0]),10)+parseInt(Fn(t,o[1]),10)}const kO={[or]:"collapse",[Yo]:"collapsing",[Pt]:"collapsing",[In]:"collapse show"},bu=ne.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:o,className:i,children:s,dimension:a="height",in:l=!1,timeout:u=300,mountOnEnter:c=!1,unmountOnExit:d=!1,appear:f=!1,getDimensionValue:v=EO,...g},S)=>{const k=typeof a=="function"?a():a,m=h.useMemo(()=>$i(x=>{x.style[k]="0"},e),[k,e]),p=h.useMemo(()=>$i(x=>{const b=`scroll${k[0].toUpperCase()}${k.slice(1)}`;x.style[k]=`${x[b]}px`},t),[k,t]),y=h.useMemo(()=>$i(x=>{x.style[k]=null},n),[k,n]),E=h.useMemo(()=>$i(x=>{x.style[k]=`${v(k,x)}px`,Pw(x)},r),[r,v,k]),C=h.useMemo(()=>$i(x=>{x.style[k]=null},o),[k,o]);return w.jsx(ch,{ref:S,addEndListener:uh,...g,"aria-expanded":g.role?l:null,onEnter:m,onEntering:p,onEntered:y,onExit:E,onExiting:C,childRef:s.ref,in:l,timeout:u,mountOnEnter:c,unmountOnExit:d,appear:f,children:(x,b)=>ne.cloneElement(s,{...b,className:M(i,s.props.className,kO[x],k==="width"&&"collapse-horizontal")})})});function bO(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e},[e]),t}function it(e){const t=bO(e);return h.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const fh=e=>h.forwardRef((t,n)=>w.jsx("div",{...t,ref:n,className:M(t.className,e)}));function By(){return h.useState(null)}function dh(){const e=h.useRef(!0),t=h.useRef(()=>e.current);return h.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function CO(e){const t=h.useRef(null);return h.useEffect(()=>{t.current=e}),t.current}const OO=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",$O=typeof document<"u",Il=$O||OO?h.useLayoutEffect:h.useEffect,_O=["as","disabled"];function TO(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function RO(e){return!e||e.trim()==="#"}function jw({tagName:e,disabled:t,href:n,target:r,rel:o,role:i,onClick:s,tabIndex:a=0,type:l}){e||(n!=null||r!=null||o!=null?e="a":e="button");const u={tagName:e};if(e==="button")return[{type:l||"button",disabled:t},u];const c=f=>{if((t||e==="a"&&RO(n))&&f.preventDefault(),t){f.stopPropagation();return}s==null||s(f)},d=f=>{f.key===" "&&(f.preventDefault(),c(f))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:i??"button",disabled:void 0,tabIndex:t?void 0:a,href:n,target:e==="a"?r:void 0,"aria-disabled":t||void 0,rel:e==="a"?o:void 0,onClick:c,onKeyDown:d},u]}const NO=h.forwardRef((e,t)=>{let{as:n,disabled:r}=e,o=TO(e,_O);const[i,{tagName:s}]=jw(Object.assign({tagName:n,disabled:r},o));return w.jsx(s,Object.assign({},o,i,{ref:t}))});NO.displayName="Button";const AO={[Pt]:"show",[In]:"show"},bs=h.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...o},i)=>{const s={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...o},a=h.useCallback((l,u)=>{Pw(l),r==null||r(l,u)},[r]);return w.jsx(ch,{ref:i,addEndListener:uh,...s,onEnter:a,childRef:t.ref,children:(l,u)=>h.cloneElement(t,{...u,className:M("fade",e,t.props.className,AO[l],n[l])})})});bs.displayName="Fade";const PO={"aria-label":pe.string,onClick:pe.func,variant:pe.oneOf(["white"])},Cu=h.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},o)=>w.jsx("button",{ref:o,type:"button",className:M("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));Cu.displayName="CloseButton";Cu.propTypes=PO;const Lw=h.forwardRef(({bsPrefix:e,bg:t="primary",pill:n=!1,text:r,className:o,as:i="span",...s},a)=>{const l=z(e,"badge");return w.jsx(i,{ref:a,...s,className:M(o,l,n&&"rounded-pill",r&&`text-${r}`,t&&`bg-${t}`)})});Lw.displayName="Badge";const Fs=h.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:o=!1,disabled:i=!1,className:s,...a},l)=>{const u=z(t,"btn"),[c,{tagName:d}]=jw({tagName:e,disabled:i,...a}),f=d;return w.jsx(f,{...c,...a,ref:l,disabled:i,className:M(s,u,o&&"active",n&&`${u}-${n}`,r&&`${u}-${r}`,a.href&&i&&"disabled")})});Fs.displayName="Button";const ph=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"card-body"),w.jsx(n,{ref:o,className:M(e,t),...r})));ph.displayName="CardBody";const Iw=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"card-footer"),w.jsx(n,{ref:o,className:M(e,t),...r})));Iw.displayName="CardFooter";const Mw=h.createContext(null);Mw.displayName="CardHeaderContext";const Bw=h.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},o)=>{const i=z(e,"card-header"),s=h.useMemo(()=>({cardHeaderBsPrefix:i}),[i]);return w.jsx(Mw.Provider,{value:s,children:w.jsx(n,{ref:o,...r,className:M(t,i)})})});Bw.displayName="CardHeader";const Dw=h.forwardRef(({bsPrefix:e,className:t,variant:n,as:r="img",...o},i)=>{const s=z(e,"card-img");return w.jsx(r,{ref:i,className:M(n?`${s}-${n}`:s,t),...o})});Dw.displayName="CardImg";const Fw=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"card-img-overlay"),w.jsx(n,{ref:o,className:M(e,t),...r})));Fw.displayName="CardImgOverlay";const zw=h.forwardRef(({className:e,bsPrefix:t,as:n="a",...r},o)=>(t=z(t,"card-link"),w.jsx(n,{ref:o,className:M(e,t),...r})));zw.displayName="CardLink";const jO=fh("h6"),Uw=h.forwardRef(({className:e,bsPrefix:t,as:n=jO,...r},o)=>(t=z(t,"card-subtitle"),w.jsx(n,{ref:o,className:M(e,t),...r})));Uw.displayName="CardSubtitle";const Ww=h.forwardRef(({className:e,bsPrefix:t,as:n="p",...r},o)=>(t=z(t,"card-text"),w.jsx(n,{ref:o,className:M(e,t),...r})));Ww.displayName="CardText";const LO=fh("h5"),Hw=h.forwardRef(({className:e,bsPrefix:t,as:n=LO,...r},o)=>(t=z(t,"card-title"),w.jsx(n,{ref:o,className:M(e,t),...r})));Hw.displayName="CardTitle";const Vw=h.forwardRef(({bsPrefix:e,className:t,bg:n,text:r,border:o,body:i=!1,children:s,as:a="div",...l},u)=>{const c=z(e,"card");return w.jsx(a,{ref:u,...l,className:M(t,c,n&&`bg-${n}`,r&&`text-${r}`,o&&`border-${o}`),children:i?w.jsx(ph,{children:s}):s})});Vw.displayName="Card";const Do=Object.assign(Vw,{Img:Dw,Title:Hw,Subtitle:Uw,Body:ph,Link:zw,Text:Ww,Header:Bw,Footer:Iw,ImgOverlay:Fw});function IO(e){const t=h.useRef(e);return t.current=e,t}function Kw(e){const t=IO(e);h.useEffect(()=>()=>t.current(),[])}const xd=2**31-1;function Gw(e,t,n){const r=n-Date.now();e.current=r<=xd?setTimeout(t,r):setTimeout(()=>Gw(e,t,n),xd)}function qw(){const e=dh(),t=h.useRef();return Kw(()=>clearTimeout(t.current)),h.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(o,i=0){e()&&(n(),i<=xd?t.current=setTimeout(o,i):Gw(t,o,Date.now()+i))}return{set:r,clear:n,handleRef:t}},[])}function MO(e,t){return h.Children.toArray(e).some(n=>h.isValidElement(n)&&n.type===t)}function BO({as:e,bsPrefix:t,className:n,...r}){t=z(t,"col");const o=b0(),i=C0(),s=[],a=[];return o.forEach(l=>{const u=r[l];delete r[l];let c,d,f;typeof u=="object"&&u!=null?{span:c,offset:d,order:f}=u:c=u;const v=l!==i?`-${l}`:"";c&&s.push(c===!0?`${t}${v}`:`${t}${v}-${c}`),f!=null&&a.push(`order${v}-${f}`),d!=null&&a.push(`offset${v}-${d}`)}),[{...r,className:M(n,...s,...a)},{as:e,bsPrefix:t,spans:s}]}const dn=h.forwardRef((e,t)=>{const[{className:n,...r},{as:o="div",bsPrefix:i,spans:s}]=BO(e);return w.jsx(o,{...r,ref:t,className:M(n,!s.length&&i)})});dn.displayName="Col";const Qw=h.forwardRef(({bsPrefix:e,fluid:t=!1,as:n="div",className:r,...o},i)=>{const s=z(e,"container"),a=typeof t=="string"?`-${t}`:"-fluid";return w.jsx(n,{ref:i,...o,className:M(r,t?`${s}${a}`:s)})});Qw.displayName="Container";var DO=Function.prototype.bind.call(Function.prototype.call,[].slice);function so(e,t){return DO(e.querySelectorAll(t))}var Dy=Object.prototype.hasOwnProperty;function Fy(e,t,n){for(n of e.keys())if(Ji(n,t))return n}function Ji(e,t){var n,r,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Ji(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(o=r,o&&typeof o=="object"&&(o=Fy(t,o),!o)||!t.has(o))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(o=r[0],o&&typeof o=="object"&&(o=Fy(t,o),!o)||!Ji(r[1],t.get(o)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(Dy.call(e,n)&&++r&&!Dy.call(t,n)||!(n in t)||!Ji(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function FO(e){const t=dh();return[e[0],h.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var ht="top",zt="bottom",Ut="right",mt="left",hh="auto",zs=[ht,zt,Ut,mt],Xo="start",Cs="end",zO="clippingParents",Yw="viewport",_i="popper",UO="reference",zy=zs.reduce(function(e,t){return e.concat([t+"-"+Xo,t+"-"+Cs])},[]),Xw=[].concat(zs,[hh]).reduce(function(e,t){return e.concat([t,t+"-"+Xo,t+"-"+Cs])},[]),WO="beforeRead",HO="read",VO="afterRead",KO="beforeMain",GO="main",qO="afterMain",QO="beforeWrite",YO="write",XO="afterWrite",JO=[WO,HO,VO,KO,GO,qO,QO,YO,XO];function wn(e){return e.split("-")[0]}function bt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Gr(e){var t=bt(e).Element;return e instanceof t||e instanceof Element}function Sn(e){var t=bt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function mh(e){if(typeof ShadowRoot>"u")return!1;var t=bt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Dr=Math.max,Ml=Math.min,Jo=Math.round;function Ed(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Jw(){return!/^((?!chrome|android).)*safari/i.test(Ed())}function Zo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Sn(e)&&(o=e.offsetWidth>0&&Jo(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Jo(r.height)/e.offsetHeight||1);var s=Gr(e)?bt(e):window,a=s.visualViewport,l=!Jw()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/o,c=(r.top+(l&&a?a.offsetTop:0))/i,d=r.width/o,f=r.height/i;return{width:d,height:f,top:c,right:u+d,bottom:c+f,left:u,x:u,y:c}}function yh(e){var t=Zo(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Zw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&mh(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function kr(e){return e?(e.nodeName||"").toLowerCase():null}function Gn(e){return bt(e).getComputedStyle(e)}function ZO(e){return["table","td","th"].indexOf(kr(e))>=0}function $r(e){return((Gr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ou(e){return kr(e)==="html"?e:e.assignedSlot||e.parentNode||(mh(e)?e.host:null)||$r(e)}function Uy(e){return!Sn(e)||Gn(e).position==="fixed"?null:e.offsetParent}function e2(e){var t=/firefox/i.test(Ed()),n=/Trident/i.test(Ed());if(n&&Sn(e)){var r=Gn(e);if(r.position==="fixed")return null}var o=Ou(e);for(mh(o)&&(o=o.host);Sn(o)&&["html","body"].indexOf(kr(o))<0;){var i=Gn(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Us(e){for(var t=bt(e),n=Uy(e);n&&ZO(n)&&Gn(n).position==="static";)n=Uy(n);return n&&(kr(n)==="html"||kr(n)==="body"&&Gn(n).position==="static")?t:n||e2(e)||t}function vh(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Zi(e,t,n){return Dr(e,Ml(t,n))}function t2(e,t,n){var r=Zi(e,t,n);return r>n?n:r}function eS(){return{top:0,right:0,bottom:0,left:0}}function tS(e){return Object.assign({},eS(),e)}function nS(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var n2=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,tS(typeof t!="number"?t:nS(t,zs))};function r2(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=wn(n.placement),l=vh(a),u=[mt,Ut].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!s)){var d=n2(o.padding,n),f=yh(i),v=l==="y"?ht:mt,g=l==="y"?zt:Ut,S=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],k=s[l]-n.rects.reference[l],m=Us(i),p=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,y=S/2-k/2,E=d[v],C=p-f[c]-d[g],x=p/2-f[c]/2+y,b=Zi(E,x,C),O=l;n.modifiersData[r]=(t={},t[O]=b,t.centerOffset=b-x,t)}}function o2(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Zw(t.elements.popper,o)&&(t.elements.arrow=o))}const i2={name:"arrow",enabled:!0,phase:"main",fn:r2,effect:o2,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ei(e){return e.split("-")[1]}var s2={top:"auto",right:"auto",bottom:"auto",left:"auto"};function a2(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Jo(n*o)/o||0,y:Jo(r*o)/o||0}}function Wy(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=s.x,v=f===void 0?0:f,g=s.y,S=g===void 0?0:g,k=typeof c=="function"?c({x:v,y:S}):{x:v,y:S};v=k.x,S=k.y;var m=s.hasOwnProperty("x"),p=s.hasOwnProperty("y"),y=mt,E=ht,C=window;if(u){var x=Us(n),b="clientHeight",O="clientWidth";if(x===bt(n)&&(x=$r(n),Gn(x).position!=="static"&&a==="absolute"&&(b="scrollHeight",O="scrollWidth")),x=x,o===ht||(o===mt||o===Ut)&&i===Cs){E=zt;var T=d&&x===C&&C.visualViewport?C.visualViewport.height:x[b];S-=T-r.height,S*=l?1:-1}if(o===mt||(o===ht||o===zt)&&i===Cs){y=Ut;var $=d&&x===C&&C.visualViewport?C.visualViewport.width:x[O];v-=$-r.width,v*=l?1:-1}}var A=Object.assign({position:a},u&&s2),U=c===!0?a2({x:v,y:S},bt(n)):{x:v,y:S};if(v=U.x,S=U.y,l){var B;return Object.assign({},A,(B={},B[E]=p?"0":"",B[y]=m?"0":"",B.transform=(C.devicePixelRatio||1)<=1?"translate("+v+"px, "+S+"px)":"translate3d("+v+"px, "+S+"px, 0)",B))}return Object.assign({},A,(t={},t[E]=p?S+"px":"",t[y]=m?v+"px":"",t.transform="",t))}function l2(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:wn(t.placement),variation:ei(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Wy(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Wy(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const u2={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:l2,data:{}};var ma={passive:!0};function c2(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,l=bt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,ma)}),a&&l.addEventListener("resize",n.update,ma),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,ma)}),a&&l.removeEventListener("resize",n.update,ma)}}const f2={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:c2,data:{}};var d2={left:"right",right:"left",bottom:"top",top:"bottom"};function Wa(e){return e.replace(/left|right|bottom|top/g,function(t){return d2[t]})}var p2={start:"end",end:"start"};function Hy(e){return e.replace(/start|end/g,function(t){return p2[t]})}function gh(e){var t=bt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function wh(e){return Zo($r(e)).left+gh(e).scrollLeft}function h2(e,t){var n=bt(e),r=$r(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var u=Jw();(u||!u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+wh(e),y:l}}function m2(e){var t,n=$r(e),r=gh(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Dr(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Dr(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+wh(e),l=-r.scrollTop;return Gn(o||n).direction==="rtl"&&(a+=Dr(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function Sh(e){var t=Gn(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function rS(e){return["html","body","#document"].indexOf(kr(e))>=0?e.ownerDocument.body:Sn(e)&&Sh(e)?e:rS(Ou(e))}function es(e,t){var n;t===void 0&&(t=[]);var r=rS(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=bt(r),s=o?[i].concat(i.visualViewport||[],Sh(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(es(Ou(s)))}function kd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function y2(e,t){var n=Zo(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Vy(e,t,n){return t===Yw?kd(h2(e,n)):Gr(t)?y2(t,n):kd(m2($r(e)))}function v2(e){var t=es(Ou(e)),n=["absolute","fixed"].indexOf(Gn(e).position)>=0,r=n&&Sn(e)?Us(e):e;return Gr(r)?t.filter(function(o){return Gr(o)&&Zw(o,r)&&kr(o)!=="body"}):[]}function g2(e,t,n,r){var o=t==="clippingParents"?v2(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,u){var c=Vy(e,u,r);return l.top=Dr(c.top,l.top),l.right=Ml(c.right,l.right),l.bottom=Ml(c.bottom,l.bottom),l.left=Dr(c.left,l.left),l},Vy(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function oS(e){var t=e.reference,n=e.element,r=e.placement,o=r?wn(r):null,i=r?ei(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case ht:l={x:s,y:t.y-n.height};break;case zt:l={x:s,y:t.y+t.height};break;case Ut:l={x:t.x+t.width,y:a};break;case mt:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var u=o?vh(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Xo:l[u]=l[u]-(t[c]/2-n[c]/2);break;case Cs:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function Os(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,a=n.boundary,l=a===void 0?zO:a,u=n.rootBoundary,c=u===void 0?Yw:u,d=n.elementContext,f=d===void 0?_i:d,v=n.altBoundary,g=v===void 0?!1:v,S=n.padding,k=S===void 0?0:S,m=tS(typeof k!="number"?k:nS(k,zs)),p=f===_i?UO:_i,y=e.rects.popper,E=e.elements[g?p:f],C=g2(Gr(E)?E:E.contextElement||$r(e.elements.popper),l,c,s),x=Zo(e.elements.reference),b=oS({reference:x,element:y,strategy:"absolute",placement:o}),O=kd(Object.assign({},y,b)),T=f===_i?O:x,$={top:C.top-T.top+m.top,bottom:T.bottom-C.bottom+m.bottom,left:C.left-T.left+m.left,right:T.right-C.right+m.right},A=e.modifiersData.offset;if(f===_i&&A){var U=A[o];Object.keys($).forEach(function(B){var K=[Ut,zt].indexOf(B)>=0?1:-1,W=[ht,zt].indexOf(B)>=0?"y":"x";$[B]+=U[W]*K})}return $}function w2(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?Xw:l,c=ei(r),d=c?a?zy:zy.filter(function(g){return ei(g)===c}):zs,f=d.filter(function(g){return u.indexOf(g)>=0});f.length===0&&(f=d);var v=f.reduce(function(g,S){return g[S]=Os(e,{placement:S,boundary:o,rootBoundary:i,padding:s})[wn(S)],g},{});return Object.keys(v).sort(function(g,S){return v[g]-v[S]})}function S2(e){if(wn(e)===hh)return[];var t=Wa(e);return[Hy(e),t,Hy(t)]}function x2(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,v=n.flipVariations,g=v===void 0?!0:v,S=n.allowedAutoPlacements,k=t.options.placement,m=wn(k),p=m===k,y=l||(p||!g?[Wa(k)]:S2(k)),E=[k].concat(y).reduce(function(X,re){return X.concat(wn(re)===hh?w2(t,{placement:re,boundary:c,rootBoundary:d,padding:u,flipVariations:g,allowedAutoPlacements:S}):re)},[]),C=t.rects.reference,x=t.rects.popper,b=new Map,O=!0,T=E[0],$=0;$=0,W=K?"width":"height",G=Os(t,{placement:A,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),V=K?B?Ut:mt:B?zt:ht;C[W]>x[W]&&(V=Wa(V));var _=Wa(V),I=[];if(i&&I.push(G[U]<=0),a&&I.push(G[V]<=0,G[_]<=0),I.every(function(X){return X})){T=A,O=!1;break}b.set(A,I)}if(O)for(var F=g?3:1,Y=function(re){var ge=E.find(function(Me){var qe=b.get(Me);if(qe)return qe.slice(0,re).every(function(_t){return _t})});if(ge)return T=ge,"break"},Z=F;Z>0;Z--){var ve=Y(Z);if(ve==="break")break}t.placement!==T&&(t.modifiersData[r]._skip=!0,t.placement=T,t.reset=!0)}}const E2={name:"flip",enabled:!0,phase:"main",fn:x2,requiresIfExists:["offset"],data:{_skip:!1}};function Ky(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Gy(e){return[ht,Ut,zt,mt].some(function(t){return e[t]>=0})}function k2(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Os(t,{elementContext:"reference"}),a=Os(t,{altBoundary:!0}),l=Ky(s,r),u=Ky(a,o,i),c=Gy(l),d=Gy(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const b2={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:k2};function C2(e,t,n){var r=wn(e),o=[mt,ht].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[mt,Ut].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function O2(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=Xw.reduce(function(c,d){return c[d]=C2(d,t.rects,i),c},{}),a=s[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const $2={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:O2};function _2(e){var t=e.state,n=e.name;t.modifiersData[n]=oS({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const T2={name:"popperOffsets",enabled:!0,phase:"read",fn:_2,data:{}};function R2(e){return e==="x"?"y":"x"}function N2(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,v=f===void 0?!0:f,g=n.tetherOffset,S=g===void 0?0:g,k=Os(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),m=wn(t.placement),p=ei(t.placement),y=!p,E=vh(m),C=R2(E),x=t.modifiersData.popperOffsets,b=t.rects.reference,O=t.rects.popper,T=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,$=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if(x){if(i){var B,K=E==="y"?ht:mt,W=E==="y"?zt:Ut,G=E==="y"?"height":"width",V=x[E],_=V+k[K],I=V-k[W],F=v?-O[G]/2:0,Y=p===Xo?b[G]:O[G],Z=p===Xo?-O[G]:-b[G],ve=t.elements.arrow,X=v&&ve?yh(ve):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:eS(),ge=re[K],Me=re[W],qe=Zi(0,b[G],X[G]),_t=y?b[G]/2-F-qe-ge-$.mainAxis:Y-qe-ge-$.mainAxis,_n=y?-b[G]/2+F+qe+Me+$.mainAxis:Z+qe+Me+$.mainAxis,Tn=t.elements.arrow&&Us(t.elements.arrow),Rn=Tn?E==="y"?Tn.clientTop||0:Tn.clientLeft||0:0,Qe=(B=A==null?void 0:A[E])!=null?B:0,de=V+_t-Qe-Rn,H=V+_n-Qe,Ue=Zi(v?Ml(_,de):_,V,v?Dr(I,H):I);x[E]=Ue,U[E]=Ue-V}if(a){var nt,vt=E==="x"?ht:mt,vi=E==="x"?zt:Ut,we=x[C],Gt=C==="y"?"height":"width",eo=we+k[vt],to=we-k[vi],Rr=[ht,mt].indexOf(m)!==-1,gi=(nt=A==null?void 0:A[C])!=null?nt:0,no=Rr?eo:we-b[Gt]-O[Gt]-gi+$.altAxis,Zn=Rr?we+b[Gt]+O[Gt]-gi-$.altAxis:to,N=v&&Rr?t2(no,we,Zn):Zi(v?no:eo,we,v?Zn:to);x[C]=N,U[C]=N-we}t.modifiersData[r]=U}}const A2={name:"preventOverflow",enabled:!0,phase:"main",fn:N2,requiresIfExists:["offset"]};function P2(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function j2(e){return e===bt(e)||!Sn(e)?gh(e):P2(e)}function L2(e){var t=e.getBoundingClientRect(),n=Jo(t.width)/e.offsetWidth||1,r=Jo(t.height)/e.offsetHeight||1;return n!==1||r!==1}function I2(e,t,n){n===void 0&&(n=!1);var r=Sn(t),o=Sn(t)&&L2(t),i=$r(t),s=Zo(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((kr(t)!=="body"||Sh(i))&&(a=j2(t)),Sn(t)?(l=Zo(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=wh(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function M2(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function B2(e){var t=M2(e);return JO.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function D2(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function F2(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var qy={placement:"bottom",modifiers:[],strategy:"absolute"};function Qy(){for(var e=arguments.length,t=new Array(e),n=0;n=0)&&(n[o]=e[o]);return n}const V2={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},K2={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const r=(t.getAttribute("aria-describedby")||"").split(",").filter(o=>o.trim()!==n.id);r.length?t.setAttribute("aria-describedby",r.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,o=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&o==="tooltip"&&"setAttribute"in r){const i=r.getAttribute("aria-describedby");if(i&&i.split(",").indexOf(n.id)!==-1)return;r.setAttribute("aria-describedby",i?`${i},${n.id}`:n.id)}}},G2=[];function q2(e,t,n={}){let{enabled:r=!0,placement:o="bottom",strategy:i="absolute",modifiers:s=G2}=n,a=H2(n,W2);const l=h.useRef(s),u=h.useRef(),c=h.useCallback(()=>{var k;(k=u.current)==null||k.update()},[]),d=h.useCallback(()=>{var k;(k=u.current)==null||k.forceUpdate()},[]),[f,v]=FO(h.useState({placement:o,update:c,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),g=h.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:k})=>{const m={},p={};Object.keys(k.elements).forEach(y=>{m[y]=k.styles[y],p[y]=k.attributes[y]}),v({state:k,styles:m,attributes:p,update:c,forceUpdate:d,placement:k.placement})}}),[c,d,v]),S=h.useMemo(()=>(Ji(l.current,s)||(l.current=s),l.current),[s]);return h.useEffect(()=>{!u.current||!r||u.current.setOptions({placement:o,strategy:i,modifiers:[...S,g,V2]})},[i,o,g,r,S]),h.useEffect(()=>{if(!(!r||e==null||t==null))return u.current=U2(e,t,Object.assign({},a,{placement:o,strategy:i,modifiers:[...S,K2,g]})),()=>{u.current!=null&&(u.current.destroy(),u.current=void 0,v(k=>Object.assign({},k,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),f}function $s(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var Q2=function(){},Y2=Q2;const X2=si(Y2),Yy=()=>{};function J2(e){return e.button===0}function Z2(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Ha=e=>e&&("current"in e?e.current:e),Xy={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function e$(e,t=Yy,{disabled:n,clickTrigger:r="click"}={}){const o=h.useRef(!1),i=h.useRef(!1),s=h.useCallback(u=>{const c=Ha(e);X2(!!c,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),o.current=!c||Z2(u)||!J2(u)||!!$s(c,u.target)||i.current,i.current=!1},[e]),a=it(u=>{const c=Ha(e);c&&$s(c,u.target)&&(i.current=!0)}),l=it(u=>{o.current||t(u)});h.useEffect(()=>{var u,c;if(n||e==null)return;const d=Ls(Ha(e)),f=d.defaultView||window;let v=(u=f.event)!=null?u:(c=f.parent)==null?void 0:c.event,g=null;Xy[r]&&(g=Dn(d,Xy[r],a,!0));const S=Dn(d,r,s,!0),k=Dn(d,r,p=>{if(p===v){v=void 0;return}l(p)});let m=[];return"ontouchstart"in d.documentElement&&(m=[].slice.call(d.body.children).map(p=>Dn(p,"mousemove",Yy))),()=>{g==null||g(),S(),k(),m.forEach(p=>p())}},[e,n,r,s,a,l])}function t$(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function n$(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function r$({enabled:e,enableEvents:t,placement:n,flip:r,offset:o,fixed:i,containerPadding:s,arrowElement:a,popperConfig:l={}}){var u,c,d,f,v;const g=t$(l.modifiers);return Object.assign({},l,{placement:n,enabled:e,strategy:i?"fixed":l.strategy,modifiers:n$(Object.assign({},g,{eventListeners:{enabled:t,options:(u=g.eventListeners)==null?void 0:u.options},preventOverflow:Object.assign({},g.preventOverflow,{options:s?Object.assign({padding:s},(c=g.preventOverflow)==null?void 0:c.options):(d=g.preventOverflow)==null?void 0:d.options}),offset:{options:Object.assign({offset:o},(f=g.offset)==null?void 0:f.options)},arrow:Object.assign({},g.arrow,{enabled:!!a,options:Object.assign({},(v=g.arrow)==null?void 0:v.options,{element:a})}),flip:Object.assign({enabled:!!r},g.flip)}))})}const o$=h.createContext(null),i$="data-rr-ui-";function s$(e){return`${i$}${e}`}const iS=h.createContext(ku?window:void 0);iS.Provider;function xh(){return h.useContext(iS)}const sS=h.createContext(null);sS.displayName="InputGroupContext";const ci=h.createContext(null);ci.displayName="NavbarContext";pe.string,pe.bool,pe.bool,pe.bool,pe.bool;const aS=h.forwardRef(({bsPrefix:e,className:t,fluid:n=!1,rounded:r=!1,roundedCircle:o=!1,thumbnail:i=!1,...s},a)=>(e=z(e,"img"),w.jsx("img",{ref:a,...s,className:M(t,n&&`${e}-fluid`,r&&"rounded",o&&"rounded-circle",i&&`${e}-thumbnail`)})));aS.displayName="Image";const a$={type:pe.string,tooltip:pe.bool,as:pe.elementType},$u=h.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...o},i)=>w.jsx(e,{...o,ref:i,className:M(t,`${n}-${r?"tooltip":"feedback"}`)}));$u.displayName="Feedback";$u.propTypes=a$;const qn=h.createContext({}),Ws=h.forwardRef(({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:o=!1,isInvalid:i=!1,as:s="input",...a},l)=>{const{controlId:u}=h.useContext(qn);return t=z(t,"form-check-input"),w.jsx(s,{...a,ref:l,type:r,id:e||u,className:M(n,t,o&&"is-valid",i&&"is-invalid")})});Ws.displayName="FormCheckInput";const Bl=h.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...r},o)=>{const{controlId:i}=h.useContext(qn);return e=z(e,"form-check-label"),w.jsx("label",{...r,ref:o,htmlFor:n||i,className:M(t,e)})});Bl.displayName="FormCheckLabel";const lS=h.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:r=!1,reverse:o=!1,disabled:i=!1,isValid:s=!1,isInvalid:a=!1,feedbackTooltip:l=!1,feedback:u,feedbackType:c,className:d,style:f,title:v="",type:g="checkbox",label:S,children:k,as:m="input",...p},y)=>{t=z(t,"form-check"),n=z(n,"form-switch");const{controlId:E}=h.useContext(qn),C=h.useMemo(()=>({controlId:e||E}),[E,e]),x=!k&&S!=null&&S!==!1||MO(k,Bl),b=w.jsx(Ws,{...p,type:g==="switch"?"checkbox":g,ref:y,isValid:s,isInvalid:a,disabled:i,as:m});return w.jsx(qn.Provider,{value:C,children:w.jsx("div",{style:f,className:M(d,x&&t,r&&`${t}-inline`,o&&`${t}-reverse`,g==="switch"&&n),children:k||w.jsxs(w.Fragment,{children:[b,x&&w.jsx(Bl,{title:v,children:S}),u&&w.jsx($u,{type:c,tooltip:l,children:u})]})})})});lS.displayName="FormCheck";const Dl=Object.assign(lS,{Input:Ws,Label:Bl}),uS=h.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:r,id:o,className:i,isValid:s=!1,isInvalid:a=!1,plaintext:l,readOnly:u,as:c="input",...d},f)=>{const{controlId:v}=h.useContext(qn);return e=z(e,"form-control"),w.jsx(c,{...d,type:t,size:r,ref:f,readOnly:u,id:o||v,className:M(i,l?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,s&&"is-valid",a&&"is-invalid")})});uS.displayName="FormControl";const l$=Object.assign(uS,{Feedback:$u}),cS=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"form-floating"),w.jsx(n,{ref:o,className:M(e,t),...r})));cS.displayName="FormFloating";const Eh=h.forwardRef(({controlId:e,as:t="div",...n},r)=>{const o=h.useMemo(()=>({controlId:e}),[e]);return w.jsx(qn.Provider,{value:o,children:w.jsx(t,{...n,ref:r})})});Eh.displayName="FormGroup";const fS=h.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:o,htmlFor:i,...s},a)=>{const{controlId:l}=h.useContext(qn);t=z(t,"form-label");let u="col-form-label";typeof n=="string"&&(u=`${u} ${u}-${n}`);const c=M(o,t,r&&"visually-hidden",n&&u);return i=i||l,n?w.jsx(dn,{ref:a,as:"label",className:c,htmlFor:i,...s}):w.jsx(e,{ref:a,className:c,htmlFor:i,...s})});fS.displayName="FormLabel";const dS=h.forwardRef(({bsPrefix:e,className:t,id:n,...r},o)=>{const{controlId:i}=h.useContext(qn);return e=z(e,"form-range"),w.jsx("input",{...r,type:"range",ref:o,className:M(t,e),id:n||i})});dS.displayName="FormRange";const pS=h.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:o=!1,isInvalid:i=!1,id:s,...a},l)=>{const{controlId:u}=h.useContext(qn);return e=z(e,"form-select"),w.jsx("select",{...a,size:n,ref:l,className:M(r,e,t&&`${e}-${t}`,o&&"is-valid",i&&"is-invalid"),id:s||u})});pS.displayName="FormSelect";const hS=h.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...o},i)=>(e=z(e,"form-text"),w.jsx(n,{...o,ref:i,className:M(t,e,r&&"text-muted")})));hS.displayName="FormText";const mS=h.forwardRef((e,t)=>w.jsx(Dl,{...e,ref:t,type:"switch"}));mS.displayName="Switch";const u$=Object.assign(mS,{Input:Dl.Input,Label:Dl.Label}),yS=h.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:o,...i},s)=>(e=z(e,"form-floating"),w.jsxs(Eh,{ref:s,className:M(t,e),controlId:r,...i,children:[n,w.jsx("label",{htmlFor:r,children:o})]})));yS.displayName="FloatingLabel";const c$={_ref:pe.any,validated:pe.bool,as:pe.elementType},kh=h.forwardRef(({className:e,validated:t,as:n="form",...r},o)=>w.jsx(n,{...r,ref:o,className:M(e,t&&"was-validated")}));kh.displayName="Form";kh.propTypes=c$;const ot=Object.assign(kh,{Group:Eh,Control:l$,Floating:cS,Check:Dl,Switch:u$,Label:fS,Text:hS,Range:dS,Select:pS,FloatingLabel:yS}),_u=h.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},o)=>(t=z(t,"input-group-text"),w.jsx(n,{ref:o,className:M(e,t),...r})));_u.displayName="InputGroupText";const f$=e=>w.jsx(_u,{children:w.jsx(Ws,{type:"checkbox",...e})}),d$=e=>w.jsx(_u,{children:w.jsx(Ws,{type:"radio",...e})}),vS=h.forwardRef(({bsPrefix:e,size:t,hasValidation:n,className:r,as:o="div",...i},s)=>{e=z(e,"input-group");const a=h.useMemo(()=>({}),[]);return w.jsx(sS.Provider,{value:a,children:w.jsx(o,{ref:s,...i,className:M(r,e,t&&`${e}-${t}`,n&&"has-validation")})})});vS.displayName="InputGroup";const Un=Object.assign(vS,{Text:_u,Radio:d$,Checkbox:f$});function Gc(e){e===void 0&&(e=Ls());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function p$(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const Jy=s$("modal-open");class bh{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return p$(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",o=this.getElement();t.style={overflow:o.style.overflow,[r]:o.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt(Fn(o,r)||"0",10)+t.scrollBarWidth}px`),o.setAttribute(Jy,""),Fn(o,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(Jy),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const qc=(e,t)=>ku?e==null?(t||Ls()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function bd(e,t){const n=xh(),[r,o]=h.useState(()=>qc(e,n==null?void 0:n.document));if(!r){const i=qc(e);i&&o(i)}return h.useEffect(()=>{},[t,r]),h.useEffect(()=>{const i=qc(e);i!==r&&o(i)},[e,r]),r}function h$({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:o}){const i=h.useRef(null),s=h.useRef(t),a=it(n);h.useEffect(()=>{t?s.current=!0:a(i.current)},[t,a]);const l=Yr(i,e.ref),u=h.cloneElement(e,{ref:l});return t?u:o||!s.current&&r?null:u}function gS(e){return e.code==="Escape"||e.keyCode===27}function m$(){const e=h.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}const y$=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function v$(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function g$(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:o,onExiting:i,onExited:s,addEndListener:a,children:l}=e,u=v$(e,y$);const{major:c}=m$(),d=c>=19?l.props.ref:l.ref,f=h.useRef(null),v=Yr(f,typeof l=="function"?null:d),g=x=>b=>{x&&f.current&&x(f.current,b)},S=h.useCallback(g(t),[t]),k=h.useCallback(g(n),[n]),m=h.useCallback(g(r),[r]),p=h.useCallback(g(o),[o]),y=h.useCallback(g(i),[i]),E=h.useCallback(g(s),[s]),C=h.useCallback(g(a),[a]);return Object.assign({},u,{nodeRef:f},t&&{onEnter:S},n&&{onEntering:k},r&&{onEntered:m},o&&{onExit:p},i&&{onExiting:y},s&&{onExited:E},a&&{addEndListener:C},{children:typeof l=="function"?(x,b)=>l(x,Object.assign({},b,{ref:v})):h.cloneElement(l,{ref:v})})}const w$=["component"];function S$(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}const x$=h.forwardRef((e,t)=>{let{component:n}=e,r=S$(e,w$);const o=g$(r);return w.jsx(n,Object.assign({ref:t},o))});function E$({in:e,onTransition:t}){const n=h.useRef(null),r=h.useRef(!0),o=it(t);return Il(()=>{if(!n.current)return;let i=!1;return o({in:e,element:n.current,initial:r.current,isStale:()=>i}),()=>{i=!0}},[e,o]),Il(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function k$({children:e,in:t,onExited:n,onEntered:r,transition:o}){const[i,s]=h.useState(!t);t&&i&&s(!1);const a=E$({in:!!t,onTransition:u=>{const c=()=>{u.isStale()||(u.in?r==null||r(u.element,u.initial):(s(!0),n==null||n(u.element)))};Promise.resolve(o(u)).then(c,d=>{throw u.in||s(!0),d})}}),l=Yr(a,e.ref);return i&&!t?null:h.cloneElement(e,{ref:l})}function Cd(e,t,n){return e?w.jsx(x$,Object.assign({},n,{component:e})):t?w.jsx(k$,Object.assign({},n,{transition:t})):w.jsx(h$,Object.assign({},n))}const b$=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function C$(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}let Qc;function O$(e){return Qc||(Qc=new bh({ownerDocument:e==null?void 0:e.document})),Qc}function $$(e){const t=xh(),n=e||O$(t),r=h.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:h.useCallback(o=>{r.current.dialog=o},[]),setBackdropRef:h.useCallback(o=>{r.current.backdrop=o},[])})}const wS=h.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:o,style:i,children:s,backdrop:a=!0,keyboard:l=!0,onBackdropClick:u,onEscapeKeyDown:c,transition:d,runTransition:f,backdropTransition:v,runBackdropTransition:g,autoFocus:S=!0,enforceFocus:k=!0,restoreFocus:m=!0,restoreFocusOptions:p,renderDialog:y,renderBackdrop:E=H=>w.jsx("div",Object.assign({},H)),manager:C,container:x,onShow:b,onHide:O=()=>{},onExit:T,onExited:$,onExiting:A,onEnter:U,onEntering:B,onEntered:K}=e,W=C$(e,b$);const G=xh(),V=bd(x),_=$$(C),I=dh(),F=CO(n),[Y,Z]=h.useState(!n),ve=h.useRef(null);h.useImperativeHandle(t,()=>_,[_]),ku&&!F&&n&&(ve.current=Gc(G==null?void 0:G.document)),n&&Y&&Z(!1);const X=it(()=>{if(_.add(),_n.current=Dn(document,"keydown",qe),_t.current=Dn(document,"focus",()=>setTimeout(ge),!0),b&&b(),S){var H,Ue;const nt=Gc((H=(Ue=_.dialog)==null?void 0:Ue.ownerDocument)!=null?H:G==null?void 0:G.document);_.dialog&&nt&&!$s(_.dialog,nt)&&(ve.current=nt,_.dialog.focus())}}),re=it(()=>{if(_.remove(),_n.current==null||_n.current(),_t.current==null||_t.current(),m){var H;(H=ve.current)==null||H.focus==null||H.focus(p),ve.current=null}});h.useEffect(()=>{!n||!V||X()},[n,V,X]),h.useEffect(()=>{Y&&re()},[Y,re]),Kw(()=>{re()});const ge=it(()=>{if(!k||!I()||!_.isTopModal())return;const H=Gc(G==null?void 0:G.document);_.dialog&&H&&!$s(_.dialog,H)&&_.dialog.focus()}),Me=it(H=>{H.target===H.currentTarget&&(u==null||u(H),a===!0&&O())}),qe=it(H=>{l&&gS(H)&&_.isTopModal()&&(c==null||c(H),H.defaultPrevented||O())}),_t=h.useRef(),_n=h.useRef(),Tn=(...H)=>{Z(!0),$==null||$(...H)};if(!V)return null;const Rn=Object.assign({role:r,ref:_.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},W,{style:i,className:o,tabIndex:-1});let Qe=y?y(Rn):w.jsx("div",Object.assign({},Rn,{children:h.cloneElement(s,{role:"document"})}));Qe=Cd(d,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:T,onExiting:A,onExited:Tn,onEnter:U,onEntering:B,onEntered:K,children:Qe});let de=null;return a&&(de=E({ref:_.setBackdropRef,onClick:Me}),de=Cd(v,g,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:de})),w.jsx(w.Fragment,{children:Ir.createPortal(w.jsxs(w.Fragment,{children:[de,Qe]}),V)})});wS.displayName="Modal";const _$=Object.assign(wS,{Manager:bh});function Od(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function T$(e,t){e.classList?e.classList.add(t):Od(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Zy(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function R$(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Zy(e.className,t):e.setAttribute("class",Zy(e.className&&e.className.baseVal||"",t))}const ao={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class SS extends bh{adjustAndStore(t,n,r){const o=n.style[t];n.dataset[t]=o,Fn(n,{[t]:`${parseFloat(Fn(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],Fn(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(T$(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";so(n,ao.FIXED_CONTENT).forEach(i=>this.adjustAndStore(r,i,t.scrollBarWidth)),so(n,ao.STICKY_CONTENT).forEach(i=>this.adjustAndStore(o,i,-t.scrollBarWidth)),so(n,ao.NAVBAR_TOGGLER).forEach(i=>this.adjustAndStore(o,i,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();R$(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";so(n,ao.FIXED_CONTENT).forEach(i=>this.restore(r,i)),so(n,ao.STICKY_CONTENT).forEach(i=>this.restore(o,i)),so(n,ao.NAVBAR_TOGGLER).forEach(i=>this.restore(o,i))}}let Yc;function N$(e){return Yc||(Yc=new SS(e)),Yc}const xS=h.createContext({onHide(){}}),A$=h.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:o,...i},s)=>{const a=h.useContext(xS),l=it(()=>{a==null||a.onHide(),r==null||r()});return w.jsxs("div",{ref:s,...i,children:[o,n&&w.jsx(Cu,{"aria-label":e,variant:t,onClick:l})]})}),ES=h.forwardRef(({bsPrefix:e,className:t,as:n,...r},o)=>{e=z(e,"navbar-brand");const i=n||(r.href?"a":"span");return w.jsx(i,{...r,ref:o,className:M(t,e)})});ES.displayName="NavbarBrand";const kS=h.forwardRef(({children:e,bsPrefix:t,...n},r)=>{t=z(t,"navbar-collapse");const o=h.useContext(ci);return w.jsx(bu,{in:!!(o&&o.expanded),...n,children:w.jsx("div",{ref:r,className:t,children:e})})});kS.displayName="NavbarCollapse";const bS=h.forwardRef(({bsPrefix:e,className:t,children:n,label:r="Toggle navigation",as:o="button",onClick:i,...s},a)=>{e=z(e,"navbar-toggler");const{onToggle:l,expanded:u}=h.useContext(ci)||{},c=it(d=>{i&&i(d),l&&l()});return o==="button"&&(s.type="button"),w.jsx(o,{...s,ref:a,onClick:c,"aria-label":r,className:M(t,e,!u&&"collapsed"),children:n||w.jsx("span",{className:`${e}-icon`})})});bS.displayName="NavbarToggle";const $d=new WeakMap,ev=(e,t)=>{if(!e||!t)return;const n=$d.get(t)||new Map;$d.set(t,n);let r=n.get(e);return r||(r=t.matchMedia(e),r.refCount=0,n.set(r.media,r)),r};function P$(e,t=typeof window>"u"?void 0:window){const n=ev(e,t),[r,o]=h.useState(()=>n?n.matches:!1);return Il(()=>{let i=ev(e,t);if(!i)return o(!1);let s=$d.get(t);const a=()=>{o(i.matches)};return i.refCount++,i.addListener(a),a(),()=>{i.removeListener(a),i.refCount--,i.refCount<=0&&(s==null||s.delete(i.media)),i=void 0}},[e]),r}function j$(e){const t=Object.keys(e);function n(a,l){return a===l?l:a?`${a} and ${l}`:l}function r(a){return t[Math.min(t.indexOf(a)+1,t.length-1)]}function o(a){const l=r(a);let u=e[l];return typeof u=="number"?u=`${u-.2}px`:u=`calc(${u} - 0.2px)`,`(max-width: ${u})`}function i(a){let l=e[a];return typeof l=="number"&&(l=`${l}px`),`(min-width: ${l})`}function s(a,l,u){let c;typeof a=="object"?(c=a,u=l,l=!0):(l=l||!0,c={[a]:l});let d=h.useMemo(()=>Object.entries(c).reduce((f,[v,g])=>((g==="up"||g===!0)&&(f=n(f,i(v))),(g==="down"||g===!0)&&(f=n(f,o(v))),f),""),[JSON.stringify(c)]);return P$(d,u)}return s}const L$=j$({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400}),CS=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"offcanvas-body"),w.jsx(n,{ref:o,className:M(e,t),...r})));CS.displayName="OffcanvasBody";const I$={[Pt]:"show",[In]:"show"},OS=h.forwardRef(({bsPrefix:e,className:t,children:n,in:r=!1,mountOnEnter:o=!1,unmountOnExit:i=!1,appear:s=!1,...a},l)=>(e=z(e,"offcanvas"),w.jsx(ch,{ref:l,addEndListener:uh,in:r,mountOnEnter:o,unmountOnExit:i,appear:s,...a,childRef:n.ref,children:(u,c)=>h.cloneElement(n,{...c,className:M(t,n.props.className,(u===Pt||u===Yo)&&`${e}-toggling`,I$[u])})})));OS.displayName="OffcanvasToggling";const $S=h.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...o},i)=>(e=z(e,"offcanvas-header"),w.jsx(A$,{ref:i,...o,className:M(t,e),closeLabel:n,closeButton:r})));$S.displayName="OffcanvasHeader";const M$=fh("h5"),_S=h.forwardRef(({className:e,bsPrefix:t,as:n=M$,...r},o)=>(t=z(t,"offcanvas-title"),w.jsx(n,{ref:o,className:M(e,t),...r})));_S.displayName="OffcanvasTitle";function B$(e){return w.jsx(OS,{...e})}function D$(e){return w.jsx(bs,{...e})}const TS=h.forwardRef(({bsPrefix:e,className:t,children:n,"aria-labelledby":r,placement:o="start",responsive:i,show:s=!1,backdrop:a=!0,keyboard:l=!0,scroll:u=!1,onEscapeKeyDown:c,onShow:d,onHide:f,container:v,autoFocus:g=!0,enforceFocus:S=!0,restoreFocus:k=!0,restoreFocusOptions:m,onEntered:p,onExit:y,onExiting:E,onEnter:C,onEntering:x,onExited:b,backdropClassName:O,manager:T,renderStaticNode:$=!1,...A},U)=>{const B=h.useRef();e=z(e,"offcanvas");const{onToggle:K}=h.useContext(ci)||{},[W,G]=h.useState(!1),V=L$(i||"xs","up");h.useEffect(()=>{G(i?s&&!V:s)},[s,i,V]);const _=it(()=>{K==null||K(),f==null||f()}),I=h.useMemo(()=>({onHide:_}),[_]);function F(){return T||(u?(B.current||(B.current=new SS({handleContainerOverflow:!1})),B.current):N$())}const Y=(re,...ge)=>{re&&(re.style.visibility="visible"),C==null||C(re,...ge)},Z=(re,...ge)=>{re&&(re.style.visibility=""),b==null||b(...ge)},ve=h.useCallback(re=>w.jsx("div",{...re,className:M(`${e}-backdrop`,O)}),[O,e]),X=re=>w.jsx("div",{...re,...A,className:M(t,i?`${e}-${i}`:e,`${e}-${o}`),"aria-labelledby":r,children:n});return w.jsxs(w.Fragment,{children:[!W&&(i||$)&&X({}),w.jsx(xS.Provider,{value:I,children:w.jsx(_$,{show:W,ref:U,backdrop:a,container:v,keyboard:l,autoFocus:g,enforceFocus:S&&!u,restoreFocus:k,restoreFocusOptions:m,onEscapeKeyDown:c,onShow:d,onHide:_,onEnter:Y,onEntering:x,onEntered:p,onExit:y,onExiting:E,onExited:Z,manager:F(),transition:B$,backdropTransition:D$,renderBackdrop:ve,renderDialog:X})})]})});TS.displayName="Offcanvas";const Fi=Object.assign(TS,{Body:CS,Header:$S,Title:_S}),RS=h.forwardRef((e,t)=>{const n=h.useContext(ci);return w.jsx(Fi,{ref:t,show:!!(n!=null&&n.expanded),...e,renderStaticNode:!0})});RS.displayName="NavbarOffcanvas";const NS=h.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},o)=>(t=z(t,"navbar-text"),w.jsx(n,{ref:o,className:M(e,t),...r})));NS.displayName="NavbarText";const AS=h.forwardRef((e,t)=>{const{bsPrefix:n,expand:r=!0,variant:o="light",bg:i,fixed:s,sticky:a,className:l,as:u="nav",expanded:c,onToggle:d,onSelect:f,collapseOnSelect:v=!1,...g}=Gk(e,{expanded:"onToggle"}),S=z(n,"navbar"),k=h.useCallback((...y)=>{f==null||f(...y),v&&c&&(d==null||d(!1))},[f,v,c,d]);g.role===void 0&&u!=="nav"&&(g.role="navigation");let m=`${S}-expand`;typeof r=="string"&&(m=`${m}-${r}`);const p=h.useMemo(()=>({onToggle:()=>d==null?void 0:d(!c),bsPrefix:S,expanded:!!c,expand:r}),[S,c,r,d]);return w.jsx(ci.Provider,{value:p,children:w.jsx(o$.Provider,{value:k,children:w.jsx(u,{ref:t,...g,className:M(l,S,r&&m,o&&`${S}-${o}`,i&&`bg-${i}`,a&&`sticky-${a}`,s&&`fixed-${s}`)})})})});AS.displayName="Navbar";const Xc=Object.assign(AS,{Brand:ES,Collapse:kS,Offcanvas:RS,Text:NS,Toggle:bS}),F$=()=>{};function z$(e,t,{disabled:n,clickTrigger:r}={}){const o=t||F$;e$(e,o,{disabled:n,clickTrigger:r});const i=it(s=>{gS(s)&&o(s)});h.useEffect(()=>{if(n||e==null)return;const s=Ls(Ha(e));let a=(s.defaultView||window).event;const l=Dn(s,"keyup",u=>{if(u===a){a=void 0;return}i(u)});return()=>{l()}},[e,n,i])}const PS=h.forwardRef((e,t)=>{const{flip:n,offset:r,placement:o,containerPadding:i,popperConfig:s={},transition:a,runTransition:l}=e,[u,c]=By(),[d,f]=By(),v=Yr(c,t),g=bd(e.container),S=bd(e.target),[k,m]=h.useState(!e.show),p=q2(S,u,r$({placement:o,enableEvents:!!e.show,containerPadding:i||5,flip:n,offset:r,arrowElement:d,popperConfig:s}));e.show&&k&&m(!1);const y=(...A)=>{m(!0),e.onExited&&e.onExited(...A)},E=e.show||!k;if(z$(u,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!E)return null;const{onExit:C,onExiting:x,onEnter:b,onEntering:O,onEntered:T}=e;let $=e.children(Object.assign({},p.attributes.popper,{style:p.styles.popper,ref:v}),{popper:p,placement:o,show:!!e.show,arrowProps:Object.assign({},p.attributes.arrow,{style:p.styles.arrow,ref:f})});return $=Cd(a,l,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:$,onExit:C,onExiting:x,onExited:y,onEnter:b,onEntering:O,onEntered:T}),g?Ir.createPortal($,g):null});PS.displayName="Overlay";const jS=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"popover-header"),w.jsx(n,{ref:o,className:M(e,t),...r})));jS.displayName="PopoverHeader";const Ch=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"popover-body"),w.jsx(n,{ref:o,className:M(e,t),...r})));Ch.displayName="PopoverBody";function LS(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function IS(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const U$=h.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:o,body:i,arrowProps:s,hasDoneInitialMeasure:a,popper:l,show:u,...c},d)=>{const f=z(e,"popover"),v=O0(),[g]=(t==null?void 0:t.split("-"))||[],S=LS(g,v);let k=r;return u&&!a&&(k={...r,...IS(l==null?void 0:l.strategy)}),w.jsxs("div",{ref:d,role:"tooltip",style:k,"x-placement":g,className:M(n,f,g&&`bs-popover-${S}`),...c,children:[w.jsx("div",{className:"popover-arrow",...s}),i?w.jsx(Ch,{children:o}):o]})}),W$=Object.assign(U$,{Header:jS,Body:Ch,POPPER_OFFSET:[0,8]}),MS=h.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:o,arrowProps:i,hasDoneInitialMeasure:s,popper:a,show:l,...u},c)=>{e=z(e,"tooltip");const d=O0(),[f]=(t==null?void 0:t.split("-"))||[],v=LS(f,d);let g=r;return l&&!s&&(g={...r,...IS(a==null?void 0:a.strategy)}),w.jsxs("div",{ref:c,style:g,role:"tooltip","x-placement":f,className:M(n,e,`bs-tooltip-${v}`),...u,children:[w.jsx("div",{className:"tooltip-arrow",...i}),w.jsx("div",{className:`${e}-inner`,children:o})]})});MS.displayName="Tooltip";const BS=Object.assign(MS,{TOOLTIP_OFFSET:[0,6]});function H$(e){const t=h.useRef(null),n=z(void 0,"popover"),r=z(void 0,"tooltip"),o=h.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(Od(t.current,n))return W$.POPPER_OFFSET;if(Od(t.current,r))return BS.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r]);return[t,[o]]}function V$(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=o=>n(Ll(o))),t.ref=r.__wrapped||(r.__wrapped=o=>r(Ll(o)))}const DS=h.forwardRef(({children:e,transition:t=bs,popperConfig:n={},rootClose:r=!1,placement:o="top",show:i=!1,...s},a)=>{const l=h.useRef({}),[u,c]=h.useState(null),[d,f]=H$(s.offset),v=Yr(a,d),g=t===!0?bs:t||void 0,S=it(k=>{c(k),n==null||n.onFirstUpdate==null||n.onFirstUpdate(k)});return Il(()=>{u&&s.target&&(l.current.scheduleUpdate==null||l.current.scheduleUpdate())},[u,s.target]),h.useEffect(()=>{i||c(null)},[i]),w.jsx(PS,{...s,ref:v,popperConfig:{...n,modifiers:f.concat(n.modifiers||[]),onFirstUpdate:S},transition:g,rootClose:r,placement:o,show:i,children:(k,{arrowProps:m,popper:p,show:y})=>{var E;V$(k,m);const C=p==null?void 0:p.placement,x=Object.assign(l.current,{state:p==null?void 0:p.state,scheduleUpdate:p==null?void 0:p.update,placement:C,outOfBoundaries:(p==null||(E=p.state)==null||(E=E.modifiersData.hide)==null?void 0:E.isReferenceHidden)||!1,strategy:n.strategy}),b=!!u;return typeof e=="function"?e({...k,placement:C,show:y,...!t&&y&&{className:"show"},popper:x,arrowProps:m,hasDoneInitialMeasure:b}):h.cloneElement(e,{...k,placement:C,arrowProps:m,popper:x,hasDoneInitialMeasure:b,className:M(e.props.className,!t&&y&&"show"),style:{...e.props.style,...k.style}})}})});DS.displayName="Overlay";function K$(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function tv(e,t,n){const[r]=t,o=r.currentTarget,i=r.relatedTarget||r.nativeEvent[n];(!i||i!==o)&&!$s(o,i)&&e(...t)}pe.oneOf(["click","hover","focus"]);const G$=({trigger:e=["hover","focus"],overlay:t,children:n,popperConfig:r={},show:o,defaultShow:i=!1,onToggle:s,delay:a,placement:l,flip:u=l&&l.indexOf("auto")!==-1,...c})=>{const d=h.useRef(null),f=Yr(d,n.ref),v=qw(),g=h.useRef(""),[S,k]=k0(o,i,s),m=K$(a),{onFocus:p,onBlur:y,onClick:E}=typeof n!="function"?h.Children.only(n).props:{},C=W=>{f(Ll(W))},x=h.useCallback(()=>{if(v.clear(),g.current="show",!m.show){k(!0);return}v.set(()=>{g.current==="show"&&k(!0)},m.show)},[m.show,k,v]),b=h.useCallback(()=>{if(v.clear(),g.current="hide",!m.hide){k(!1);return}v.set(()=>{g.current==="hide"&&k(!1)},m.hide)},[m.hide,k,v]),O=h.useCallback((...W)=>{x(),p==null||p(...W)},[x,p]),T=h.useCallback((...W)=>{b(),y==null||y(...W)},[b,y]),$=h.useCallback((...W)=>{k(!S),E==null||E(...W)},[E,k,S]),A=h.useCallback((...W)=>{tv(x,W,"fromElement")},[x]),U=h.useCallback((...W)=>{tv(b,W,"toElement")},[b]),B=e==null?[]:[].concat(e),K={ref:C};return B.indexOf("click")!==-1&&(K.onClick=$),B.indexOf("focus")!==-1&&(K.onFocus=O,K.onBlur=T),B.indexOf("hover")!==-1&&(K.onMouseOver=A,K.onMouseOut=U),w.jsxs(w.Fragment,{children:[typeof n=="function"?n(K):h.cloneElement(n,K),w.jsx(DS,{...c,show:S,onHide:b,flip:u,placement:l,popperConfig:r,target:d.current,children:t})]})},Fl=h.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},o)=>{const i=z(e,"row"),s=b0(),a=C0(),l=`${i}-cols`,u=[];return s.forEach(c=>{const d=r[c];delete r[c];let f;d!=null&&typeof d=="object"?{cols:f}=d:f=d;const v=c!==a?`-${c}`:"";f!=null&&u.push(`${l}${v}-${f}`)}),w.jsx(n,{ref:o,...r,className:M(t,i,...u)})});Fl.displayName="Row";const FS=h.forwardRef(({bsPrefix:e,variant:t,animation:n="border",size:r,as:o="div",className:i,...s},a)=>{e=z(e,"spinner");const l=`${e}-${n}`;return w.jsx(o,{ref:a,...s,className:M(i,l,r&&`${l}-${r}`,t&&`text-${t}`)})});FS.displayName="Spinner";const q$={[Pt]:"showing",[Yo]:"showing show"},zS=h.forwardRef((e,t)=>w.jsx(bs,{...e,ref:t,transitionClasses:q$}));zS.displayName="ToastFade";const US=h.createContext({onClose(){}}),WS=h.forwardRef(({bsPrefix:e,closeLabel:t="Close",closeVariant:n,closeButton:r=!0,className:o,children:i,...s},a)=>{e=z(e,"toast-header");const l=h.useContext(US),u=it(c=>{l==null||l.onClose==null||l.onClose(c)});return w.jsxs("div",{ref:a,...s,className:M(e,o),children:[i,r&&w.jsx(Cu,{"aria-label":t,variant:n,onClick:u,"data-dismiss":"toast"})]})});WS.displayName="ToastHeader";const HS=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"toast-body"),w.jsx(n,{ref:o,className:M(e,t),...r})));HS.displayName="ToastBody";const VS=h.forwardRef(({bsPrefix:e,className:t,transition:n=zS,show:r=!0,animation:o=!0,delay:i=5e3,autohide:s=!1,onClose:a,onEntered:l,onExit:u,onExiting:c,onEnter:d,onEntering:f,onExited:v,bg:g,...S},k)=>{e=z(e,"toast");const m=h.useRef(i),p=h.useRef(a);h.useEffect(()=>{m.current=i,p.current=a},[i,a]);const y=qw(),E=!!(s&&r),C=h.useCallback(()=>{E&&(p.current==null||p.current())},[E]);h.useEffect(()=>{y.set(C,m.current)},[y,C]);const x=h.useMemo(()=>({onClose:a}),[a]),b=!!(n&&o),O=w.jsx("div",{...S,ref:k,className:M(e,t,g&&`bg-${g}`,!b&&(r?"show":"hide")),role:"alert","aria-live":"assertive","aria-atomic":"true"});return w.jsx(US.Provider,{value:x,children:b&&n?w.jsx(n,{in:r,onEnter:d,onEntering:f,onEntered:l,onExit:u,onExiting:c,onExited:v,unmountOnExit:!0,children:O}):O})});VS.displayName="Toast";const ts=Object.assign(VS,{Body:HS,Header:WS}),Q$={"top-start":"top-0 start-0","top-center":"top-0 start-50 translate-middle-x","top-end":"top-0 end-0","middle-start":"top-50 start-0 translate-middle-y","middle-center":"top-50 start-50 translate-middle","middle-end":"top-50 end-0 translate-middle-y","bottom-start":"bottom-0 start-0","bottom-center":"bottom-0 start-50 translate-middle-x","bottom-end":"bottom-0 end-0"},Oh=h.forwardRef(({bsPrefix:e,position:t,containerPosition:n,className:r,as:o="div",...i},s)=>(e=z(e,"toast-container"),w.jsx(o,{ref:s,...i,className:M(e,t&&Q$[t],n&&`position-${n}`,r)})));Oh.displayName="ToastContainer";const Y$=()=>{},$h=h.forwardRef(({bsPrefix:e,name:t,className:n,checked:r,type:o,onChange:i,value:s,disabled:a,id:l,inputRef:u,...c},d)=>(e=z(e,"btn-check"),w.jsxs(w.Fragment,{children:[w.jsx("input",{className:e,name:t,type:o,value:s,ref:u,autoComplete:"off",checked:!!r,disabled:!!a,onChange:i||Y$,id:l}),w.jsx(Fs,{...c,ref:d,className:M(n,a&&"disabled"),type:void 0,role:void 0,as:"label",htmlFor:l})]})));$h.displayName="ToggleButton";const bn=Object.create(null);bn.open="0";bn.close="1";bn.ping="2";bn.pong="3";bn.message="4";bn.upgrade="5";bn.noop="6";const Va=Object.create(null);Object.keys(bn).forEach(e=>{Va[bn[e]]=e});const _d={type:"error",data:"parser error"},KS=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",GS=typeof ArrayBuffer=="function",qS=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,_h=({type:e,data:t},n,r)=>KS&&t instanceof Blob?n?r(t):nv(t,r):GS&&(t instanceof ArrayBuffer||qS(t))?n?r(t):nv(new Blob([t]),r):r(bn[e]+(t||"")),nv=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function rv(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Jc;function X$(e,t){if(KS&&e.data instanceof Blob)return e.data.arrayBuffer().then(rv).then(t);if(GS&&(e.data instanceof ArrayBuffer||qS(e.data)))return t(rv(e.data));_h(e,!1,n=>{Jc||(Jc=new TextEncoder),t(Jc.encode(n))})}const ov="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zi=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,n=e.length,r,o=0,i,s,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),c=new Uint8Array(u);for(r=0;r>4,c[o++]=(s&15)<<4|a>>2,c[o++]=(a&3)<<6|l&63;return u},Z$=typeof ArrayBuffer=="function",Th=(e,t)=>{if(typeof e!="string")return{type:"message",data:QS(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:e_(e.substring(1),t)}:Va[n]?e.length>1?{type:Va[n],data:e.substring(1)}:{type:Va[n]}:_d},e_=(e,t)=>{if(Z$){const n=J$(e);return QS(n,t)}else return{base64:!0,data:e}},QS=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},YS="",t_=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((i,s)=>{_h(i,!1,a=>{r[s]=a,++o===n&&t(r.join(YS))})})},n_=(e,t)=>{const n=e.split(YS),r=[];for(let o=0;o{const r=n.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const i=new DataView(o.buffer);i.setUint8(0,126),i.setUint16(1,r)}else{o=new Uint8Array(9);const i=new DataView(o.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(n)})}})}let Zc;function ya(e){return e.reduce((t,n)=>t+n.length,0)}function va(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let o=0;oMath.pow(2,21)-1){a.enqueue(_d);break}o=c*Math.pow(2,32)+u.getUint32(4),r=3}else{if(ya(n)e){a.enqueue(_d);break}}}})}const XS=4;function je(e){if(e)return i_(e)}function i_(e){for(var t in je.prototype)e[t]=je.prototype[t];return e}je.prototype.on=je.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};je.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};je.prototype.off=je.prototype.removeListener=je.prototype.removeAllListeners=je.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const s_=jt.setTimeout,a_=jt.clearTimeout;function Tu(e,t){t.useNativeTimers?(e.setTimeoutFn=s_.bind(jt),e.clearTimeoutFn=a_.bind(jt)):(e.setTimeoutFn=jt.setTimeout.bind(jt),e.clearTimeoutFn=jt.clearTimeout.bind(jt))}const l_=1.33;function u_(e){return typeof e=="string"?c_(e):Math.ceil((e.byteLength||e.size)*l_)}function c_(e){let t=0,n=0;for(let r=0,o=e.length;r=57344?n+=3:(r++,n+=4);return n}function f_(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function d_(e){let t={},n=e.split("&");for(let r=0,o=n.length;r0);return t}function ex(){const e=av(+new Date);return e!==sv?(iv=0,sv=e):e+"."+av(iv++)}for(;ga{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};n_(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,t_(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=ex()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new xn(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(o,i)=>{this.onError("xhr post error",o,i)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class xn extends je{constructor(t,n){super(),Tu(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.data=n.data!==void 0?n.data:null,this.create()}create(){var t;const n=JS(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new nx(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this.opts.extraHeaders[o])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this.opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this.opts.cookieJar)===null||o===void 0||o.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(o){this.setTimeoutFn(()=>{this.onError(o)},0);return}typeof document<"u"&&(this.index=xn.requestsCount++,xn.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=y_,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete xn.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}xn.requestsCount=0;xn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",lv);else if(typeof addEventListener=="function"){const e="onpagehide"in jt?"pagehide":"unload";addEventListener(e,lv,!1)}}function lv(){for(let e in xn.requests)xn.requests.hasOwnProperty(e)&&xn.requests[e].abort()}const Nh=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),wa=jt.WebSocket||jt.MozWebSocket,uv=!0,w_="arraybuffer",cv=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class S_ extends Rh{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=cv?{}:JS(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=uv&&!cv?n?new wa(t,n):new wa(t):new wa(t,n,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n{const s={};try{uv&&this.ws.send(i)}catch{}o&&Nh(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=ex()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}check(){return!!wa}}class x_ extends Rh{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(t=>{const n=o_(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),o=r_();o.readable.pipeTo(t.writable),this.writer=o.writable.getWriter();const i=()=>{r.read().then(({done:a,value:l})=>{a||(this.onPacket(l),i())}).catch(a=>{})};i();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this.writer.write(s).then(()=>this.onOpen())})}))}write(t){this.writable=!1;for(let n=0;n{o&&Nh(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this.transport)===null||t===void 0||t.close()}}const E_={websocket:S_,webtransport:x_,polling:g_},k_=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,b_=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Rd(e){if(e.length>2e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=k_.exec(e||""),i={},s=14;for(;s--;)i[b_[s]]=o[s]||"";return n!=-1&&r!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=C_(i,i.path),i.queryKey=O_(i,i.query),i}function C_(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function O_(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,i){o&&(n[o]=i)}),n}let rx=class vo extends je{constructor(t,n={}){super(),this.binaryType=w_,this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=Rd(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=Rd(n.host).host),Tu(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=d_(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=XS,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new E_[t](r)}open(){let t;if(this.opts.rememberUpgrade&&vo.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;vo.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",d=>{if(!r)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;vo.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(c(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=n.name,this.emitReserved("upgradeError",f)}}))};function i(){r||(r=!0,c(),n.close(),n=null)}const s=d=>{const f=new Error("probe error: "+d);f.transport=n.name,i(),this.emitReserved("upgradeError",f)};function a(){s("transport closed")}function l(){s("socket closed")}function u(d){n&&d.name!==n.name&&i()}const c=()=>{n.removeListener("open",o),n.removeListener("error",s),n.removeListener("close",a),this.off("close",l),this.off("upgrading",u)};n.once("open",o),n.once("error",s),n.once("close",a),this.once("close",l),this.once("upgrading",u),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",vo.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const n=this.upgrades.length;for(;t{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const i={type:t,data:n,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){vo.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const o=t.length;for(;rtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,ox=Object.prototype.toString,R_=typeof Blob=="function"||typeof Blob<"u"&&ox.call(Blob)==="[object BlobConstructor]",N_=typeof File=="function"||typeof File<"u"&&ox.call(File)==="[object FileConstructor]";function Ah(e){return __&&(e instanceof ArrayBuffer||T_(e))||R_&&e instanceof Blob||N_&&e instanceof File}function Ka(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n=0&&e.num{delete this.acks[t];for(let a=0;a{this.io.clearTimeoutFn(i),n.apply(this,a)};s.withError=!0,this.acks[t]=s}emitWithAck(t,...n){return new Promise((r,o)=>{const i=(s,a)=>s?o(s):r(a);i.withError=!0,n.push(i),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...i)=>r!==this._queue[0]?void 0:(o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...i)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:J.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case J.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case J.EVENT:case J.BINARY_EVENT:this.onevent(t);break;case J.ACK:case J.BINARY_ACK:this.onack(t);break;case J.DISCONNECT:this.ondisconnect();break;case J.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...o){r||(r=!0,n.packet({type:J.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:J.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}fi.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};fi.prototype.reset=function(){this.attempts=0};fi.prototype.setMin=function(e){this.ms=e};fi.prototype.setMax=function(e){this.max=e};fi.prototype.setJitter=function(e){this.jitter=e};class Pd extends je{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Tu(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new fi({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||B_;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new rx(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=Zt(n,"open",function(){r.onopen(),t&&t()}),i=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},s=Zt(n,"error",i);if(this._timeout!==!1){const a=this._timeout,l=this.setTimeoutFn(()=>{o(),i(new Error("timeout")),n.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(o),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Zt(t,"ping",this.onping.bind(this)),Zt(t,"data",this.ondata.bind(this)),Zt(t,"error",this.onerror.bind(this)),Zt(t,"close",this.onclose.bind(this)),Zt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){Nh(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new ix(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;rt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Ti={};function Ga(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=$_(e,t.path||"/socket.io"),r=n.source,o=n.id,i=n.path,s=Ti[o]&&i in Ti[o].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let l;return a?l=new Pd(r,t):(Ti[o]||(Ti[o]=new Pd(r,t)),l=Ti[o]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(Ga,{Manager:Pd,Socket:ix,io:Ga,connect:Ga});const sx=(e,t)=>{if(typeof e=="number")return{full_access_path:t,doc:null,readonly:!1,type:Number.isInteger(e)?"int":"float",value:e};if(typeof e=="boolean")return{full_access_path:t,doc:null,readonly:!1,type:"bool",value:e};if(typeof e=="string")return{full_access_path:t,doc:null,readonly:!1,type:"str",value:e};if(e===null)return{full_access_path:t,doc:null,readonly:!1,type:"None",value:null};throw new Error("Unsupported type for serialization")},F_=(e,t="")=>{const r=e.map((o,i)=>{(typeof o=="number"||typeof o=="boolean"||typeof o=="string"||o===null)&&sx(o,`${t}[${i}]`)});return{full_access_path:t,type:"list",value:r,readonly:!1,doc:null}},z_=(e,t="")=>{const r=Object.entries(e).reduce((o,[i,s])=>{const a=`${t}["${i}"]`;return(typeof s=="number"||typeof s=="boolean"||typeof s=="string"||s===null)&&(o[i]=sx(s,a)),o},{});return{full_access_path:t,type:"dict",value:r,readonly:!1,doc:null}},ax=window.location.hostname,lx=window.location.port,ux=window.__FORWARDED_PREFIX__||"",Ui=window.__FORWARDED_PROTO__||"http",Sa=`${ax}:${lx}${ux}`,U_=Ui==="http"?"ws":"wss",W_=`${U_}://${ax}:${lx}/`,Ln=Ga(W_,{path:`${ux}/ws/socket.io`,transports:["websocket"]}),H_=(e,t)=>{t?Ln.emit("update_value",{access_path:e.full_access_path,value:e},t):Ln.emit("update_value",{access_path:e.full_access_path,value:e})},cx=(e,t=[],n={},r)=>{const o=F_(t),i=z_(n);Ln.emit("trigger_method",{access_path:e,args:o,kwargs:i})},fx=ne.memo(e=>{const{showNotification:t,notifications:n,removeNotificationById:r}=e;return w.jsx(Oh,{className:"navbarOffset toastContainer",position:"top-end",children:n.map(o=>o.levelname==="ERROR"||o.levelname==="CRITICAL"||t&&["WARNING","INFO","DEBUG"].includes(o.levelname)?w.jsxs(ts,{className:o.levelname.toLowerCase()+"Toast",onClose:()=>r(o.id),onClick:()=>r(o.id),onMouseLeave:()=>{o.levelname!=="ERROR"&&r(o.id)},show:!0,autohide:o.levelname==="WARNING"||o.levelname==="INFO"||o.levelname==="DEBUG",delay:o.levelname==="WARNING"||o.levelname==="INFO"||o.levelname==="DEBUG"?2e3:void 0,children:[w.jsxs(ts.Header,{closeButton:!1,className:o.levelname.toLowerCase()+"Toast text-right",children:[w.jsx("strong",{className:"me-auto",children:o.levelname}),w.jsx("small",{children:o.timeStamp})]}),w.jsx(ts.Body,{children:o.message})]},o.id):null)})});fx.displayName="Notifications";const jd=ne.memo(({connectionStatus:e})=>{const[t,n]=h.useState(!0);h.useEffect(()=>{n(!0)},[e]);const r=()=>n(!1),o=()=>{switch(e){case"connecting":return{message:"Connecting...",bg:"info",delay:void 0};case"connected":return{message:"Connected",bg:"success",delay:1e3};case"disconnected":return{message:"Disconnected",bg:"danger",delay:void 0};case"reconnecting":return{message:"Reconnecting...",bg:"info",delay:void 0};default:return{message:"",bg:"info",delay:void 0}}},{message:i,bg:s,delay:a}=o();return w.jsx(Oh,{position:"bottom-center",className:"toastContainer",children:w.jsx(ts,{show:t,onClose:r,delay:a,autohide:a!==void 0,bg:s,children:w.jsxs(ts.Body,{className:"d-flex justify-content-between",children:[i,w.jsx(Fs,{variant:"close",size:"sm",onClick:r})]})})})});jd.displayName="ConnectionToast";function dx(e){const t=/\w+|\[\d+\.\d+\]|\[\d+\]|\["[^"]*"\]|\['[^']*'\]/g;return e.match(t)??[]}function V_(e){if(e.startsWith("[")&&e.endsWith("]")&&(e=e.slice(1,-1)),e.startsWith("'")&&e.endsWith("'")||e.startsWith('"')&&e.endsWith('"'))return e.slice(1,-1);const t=parseFloat(e);return isNaN(t)?e:t}function K_(e,t,n){if(t in e)return e[t];if(Array.isArray(e)){if(n&&t===e.length)return e.push(pv()),e[t];throw new Error(`Index out of bounds: ${t}`)}else{if(n)return e[t]=pv(),e[t];throw new Error(`Key not found: ${t}`)}}function dv(e,t,n=!1){const r=V_(t);try{return K_(e,r,n)}catch(o){throw o instanceof RangeError?new Error(`Index '${r}': ${o.message}`):o instanceof Error?new Error(`Key '${r}': ${o.message}`):o}}function G_(e,t,n){const r=dx(t),o=JSON.parse(JSON.stringify(e));let i=o;try{for(let l=0;l{const{docString:t}=e;if(!t)return null;const n=w.jsx(BS,{id:"tooltip",children:t});return w.jsx(G$,{placement:"bottom",overlay:n,children:w.jsx(Lw,{pill:!0,className:"tooltip-trigger",bg:"light",text:"dark",children:"?"})})});ln.displayName="DocStringComponent";function Cn(){const e=h.useRef(0);return h.useEffect(()=>{e.current+=1}),e.current}const px=ne.memo(e=>{const{value:t,fullAccessPath:n,readOnly:r,docString:o,addNotification:i,changeCallback:s=()=>{},displayName:a,id:l}=e;Cn(),h.useEffect(()=>{i(`${n} changed to ${t}.`)},[e.value]);const u=c=>{s({type:"bool",value:c,full_access_path:n,readonly:r,doc:o})};return w.jsxs("div",{className:"component buttonComponent",id:l,children:[!1,w.jsxs($h,{id:`toggle-check-${l}`,type:"checkbox",variant:t?"success":"secondary",checked:t,value:a,disabled:r,onChange:c=>u(c.currentTarget.checked),children:[a,w.jsx(ln,{docString:o})]})]})});px.displayName="ButtonComponent";const q_=(e,t,n)=>{const r=t.split("."),o=r[0].length,i=r[1]?r[1].length:0,s=n>o;let a=0;s?a=Math.pow(10,o+1-n):a=Math.pow(10,o-n);const u=(parseFloat(t)+(e==="ArrowUp"?a:-a)).toFixed(i),c=u.split(".")[0].length;return c>o?n+=1:cn>t?{value:e.slice(0,t)+e.slice(n),selectionStart:t}:t>0?{value:e.slice(0,t-1)+e.slice(t),selectionStart:t-1}:{value:e,selectionStart:t},Y_=(e,t,n)=>n>t?{value:e.slice(0,t)+e.slice(n),selectionStart:t}:t{let o=t;return e==="."&&t.includes(".")?{value:t,selectionStart:n}:e==="-"?(n===0&&r>n?(o="-"+t.slice(r),n=1):n===0&&!t.startsWith("-")?(o="-"+t,n=1):(n===0||n===1)&&t.startsWith("-")&&(o=t.slice(1),n=0),{value:o,selectionStart:n}):(r>n?o=t.slice(0,n)+e+t.slice(r):o=t.slice(0,n)+e+t.slice(n),{value:o,selectionStart:n+1})},zl=ne.memo(e=>{const{fullAccessPath:t,value:n,readOnly:r,type:o,docString:i,isInstantUpdate:s,unit:a,addNotification:l,changeCallback:u=()=>{},displayName:c,id:d}=e,[f,v]=h.useState(null),[g,S]=h.useState(n.toString());Cn();const k=p=>{const{key:y,target:E}=p,C=E;if(y==="F1"||y==="F5"||y==="F12"||y==="Tab"||y==="ArrowRight"||y==="ArrowLeft")return;p.preventDefault();const{value:x}=C,b=C.selectionEnd??0;let O=C.selectionStart??0,T=x;if(p.ctrlKey&&y==="a"){C.setSelectionRange(0,x.length);return}else if(y>="0"&&y<="9"||y==="-")({value:T,selectionStart:O}=hv(y,x,O,b));else if(y==="."&&(o==="float"||o==="Quantity"))({value:T,selectionStart:O}=hv(y,x,O,b));else if(y==="ArrowUp"||y==="ArrowDown")({value:T,selectionStart:O}=q_(y,x,O));else if(y==="Backspace")({value:T,selectionStart:O}=Q_(x,O,b));else if(y==="Delete")({value:T,selectionStart:O}=Y_(x,O,b));else if(y==="Enter"&&!s){let $;o==="Quantity"?$={type:"Quantity",value:{magnitude:Number(T),unit:a},full_access_path:t,readonly:r,doc:i}:$={type:o,value:Number(T),full_access_path:t,readonly:r,doc:i},u($);return}else return;if(s){let $;o==="Quantity"?$={type:"Quantity",value:{magnitude:Number(T),unit:a},full_access_path:t,readonly:r,doc:i}:$={type:o,value:Number(T),full_access_path:t,readonly:r,doc:i},u($)}S(T),v(O)},m=()=>{if(!s){let p;o==="Quantity"?p={type:"Quantity",value:{magnitude:Number(g),unit:a},full_access_path:t,readonly:r,doc:i}:p={type:o,value:Number(g),full_access_path:t,readonly:r,doc:i},u(p)}};return h.useEffect(()=>{const p=o==="int"?parseInt(g):parseFloat(g);n!==p&&S(n.toString());let y=`${t} changed to ${e.value}`;a===void 0?y+=".":y+=` ${a}.`,l(y)},[n]),h.useEffect(()=>{const p=document.getElementsByName(d)[0];p&&f!==null&&p.setSelectionRange(f,f)}),w.jsxs("div",{className:"component numberComponent",id:d,children:[!1,w.jsxs(Un,{children:[c&&w.jsxs(Un.Text,{children:[c,w.jsx(ln,{docString:i})]}),w.jsx(ot.Control,{type:"text",value:g,disabled:r,onChange:()=>{},name:d,onKeyDown:k,onBlur:m,className:s&&!r?"instantUpdate":""}),a&&w.jsx(Un.Text,{children:a})]})]})});zl.displayName="NumberComponent";const _s={black:"#000",white:"#fff"},lo={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},uo={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},co={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},fo={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},po={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Ri={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},X_={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Ts(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n0?Ve(di,--yt):0,ti--,Ae===10&&(ti=1,Nu--),Ae}function Et(){return Ae=yt2||Ns(Ae)>3?"":" "}function mT(e,t){for(;--t&&Et()&&!(Ae<48||Ae>102||Ae>57&&Ae<65||Ae>70&&Ae<97););return Hs(e,qa()+(t<6&&En()==32&&Et()==32))}function Id(e){for(;Et();)switch(Ae){case e:return yt;case 34:case 39:e!==34&&e!==39&&Id(Ae);break;case 40:e===41&&Id(e);break;case 92:Et();break}return yt}function yT(e,t){for(;Et()&&e+Ae!==57;)if(e+Ae===84&&En()===47)break;return"/*"+Hs(t,yt-1)+"*"+Ru(e===47?e:Et())}function vT(e){for(;!Ns(En());)Et();return Hs(e,yt)}function gT(e){return Sx(Ya("",null,null,null,[""],e=wx(e),0,[0],e))}function Ya(e,t,n,r,o,i,s,a,l){for(var u=0,c=0,d=s,f=0,v=0,g=0,S=1,k=1,m=1,p=0,y="",E=o,C=i,x=r,b=y;k;)switch(g=p,p=Et()){case 40:if(g!=108&&Ve(b,d-1)==58){Ld(b+=ae(Qa(p),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:b+=Qa(p);break;case 9:case 10:case 13:case 32:b+=hT(g);break;case 92:b+=mT(qa()-1,7);continue;case 47:switch(En()){case 42:case 47:xa(wT(yT(Et(),qa()),t,n),l);break;default:b+="/"}break;case 123*S:a[u++]=pn(b)*m;case 125*S:case 59:case 0:switch(p){case 0:case 125:k=0;case 59+c:m==-1&&(b=ae(b,/\f/g,"")),v>0&&pn(b)-d&&xa(v>32?yv(b+";",r,n,d-1):yv(ae(b," ","")+";",r,n,d-2),l);break;case 59:b+=";";default:if(xa(x=mv(b,t,n,u,c,o,a,y,E=[],C=[],d),i),p===123)if(c===0)Ya(b,t,x,x,E,i,d,a,C);else switch(f===99&&Ve(b,3)===110?100:f){case 100:case 108:case 109:case 115:Ya(e,x,x,r&&xa(mv(e,x,x,0,0,o,a,y,o,E=[],d),C),o,C,d,a,r?E:C);break;default:Ya(b,x,x,x,[""],C,0,a,C)}}u=c=v=0,S=m=1,y=b="",d=s;break;case 58:d=1+pn(b),v=g;default:if(S<1){if(p==123)--S;else if(p==125&&S++==0&&pT()==125)continue}switch(b+=Ru(p),p*S){case 38:m=c>0?1:(b+="\f",-1);break;case 44:a[u++]=(pn(b)-1)*m,m=1;break;case 64:En()===45&&(b+=Qa(Et())),f=En(),c=d=pn(y=b+=vT(qa())),p++;break;case 45:g===45&&pn(b)==2&&(S=0)}}return i}function mv(e,t,n,r,o,i,s,a,l,u,c){for(var d=o-1,f=o===0?i:[""],v=Mh(f),g=0,S=0,k=0;g0?f[m]+" "+p:ae(p,/&\f/g,f[m])))&&(l[k++]=y);return Au(e,t,n,o===0?Lh:a,l,u,c)}function wT(e,t,n){return Au(e,t,n,mx,Ru(dT()),Rs(e,2,-2),0)}function yv(e,t,n,r){return Au(e,t,n,Ih,Rs(e,0,r),Rs(e,r+1,-1),r)}function Fo(e,t){for(var n="",r=Mh(e),o=0;o6)switch(Ve(e,t+1)){case 109:if(Ve(e,t+4)!==45)break;case 102:return ae(e,/(.+:)(.+)-([^]+)/,"$1"+se+"$2-$3$1"+Ul+(Ve(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ld(e,"stretch")?xx(ae(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ve(e,t+1)!==115)break;case 6444:switch(Ve(e,pn(e)-3-(~Ld(e,"!important")&&10))){case 107:return ae(e,":",":"+se)+e;case 101:return ae(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+se+(Ve(e,14)===45?"inline-":"")+"box$3$1"+se+"$2$3$1"+Je+"$2box$3")+e}break;case 5936:switch(Ve(e,t+11)){case 114:return se+e+Je+ae(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return se+e+Je+ae(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return se+e+Je+ae(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return se+e+Je+e+e}return e}var _T=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Ih:t.return=xx(t.value,t.length);break;case yx:return Fo([Ni(t,{value:ae(t.value,"@","@"+se)})],o);case Lh:if(t.length)return fT(t.props,function(i){switch(cT(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Fo([Ni(t,{props:[ae(i,/:(read-\w+)/,":"+Ul+"$1")]})],o);case"::placeholder":return Fo([Ni(t,{props:[ae(i,/:(plac\w+)/,":"+se+"input-$1")]}),Ni(t,{props:[ae(i,/:(plac\w+)/,":"+Ul+"$1")]}),Ni(t,{props:[ae(i,/:(plac\w+)/,Je+"input-$1")]})],o)}return""})}},TT=[_T],Ex=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var k=S.getAttribute("data-emotion");k.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var o=t.stylisPlugins||TT,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var k=S.getAttribute("data-emotion").split(" "),m=1;m<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[yn]=t,e[vs]=r,fw(e,t,!1,!1),t.stateNode=e;e:{switch(s=Bf(n,r),n){case"dialog":me("cancel",e),me("close",e),o=r;break;case"iframe":case"object":case"embed":me("load",e),o=r;break;case"video":case"audio":for(o=0;oQo&&(t.flags|=128,r=!0,Ci(i,!1),t.lanes=4194304)}else{if(!r)if(e=$l(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ci(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!xe)return Xe(t),null}else 2*_e()-i.renderingStartTime>Qo&&n!==1073741824&&(t.flags|=128,r=!0,Ci(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=_e(),t.sibling=null,n=Ee.current,he(Ee,r?n&1|2:n&1),t):(Xe(t),null);case 22:case 23:return nh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?gt&1073741824&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function GC(e,t){switch(Ip(t),t.tag){case 1:return dt(t.type)&&Sl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Go(),ye(ft),ye(et),Vp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Hp(t),null;case 13:if(ye(Ee),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));Vo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ye(Ee),null;case 4:return Go(),null;case 10:return Fp(t.type._context),null;case 22:case 23:return nh(),null;case 24:return null;default:return null}}var da=!1,Ze=!1,qC=typeof WeakSet=="function"?WeakSet:Set,L=null;function Ro(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){$e(e,t,r)}else n.current=null}function fd(e,t,n){try{n()}catch(r){$e(e,t,r)}}var Cy=!1;function QC(e,t){if(qf=yl,e=g1(),jp(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var v;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(v=d.firstChild)!==null;)f=d,d=v;for(;;){if(d===e)break t;if(f===n&&++u===o&&(a=s),f===i&&++c===r&&(l=s),(v=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=v}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Qf={focusedElem:e,selectionRange:n},yl=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var S=g.memoizedProps,k=g.memoizedState,y=t.stateNode,p=y.getSnapshotBeforeUpdate(t.elementType===t.type?S:Xt(t.type,S),k);y.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(E){$e(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return g=Cy,Cy=!1,g}function Qi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&fd(t,n,i)}o=o.next}while(o!==r)}}function yu(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function dd(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function hw(e){var t=e.alternate;t!==null&&(e.alternate=null,hw(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[yn],delete t[vs],delete t[Jf],delete t[NC],delete t[AC])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function mw(e){return e.tag===5||e.tag===3||e.tag===4}function Oy(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mw(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function pd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=wl));else if(r!==4&&(e=e.child,e!==null))for(pd(e,t,n),e=e.sibling;e!==null;)pd(e,t,n),e=e.sibling}function hd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(hd(e,t,n),e=e.sibling;e!==null;)hd(e,t,n),e=e.sibling}var He=null,Jt=!1;function er(e,t,n){for(n=n.child;n!==null;)yw(e,t,n),n=n.sibling}function yw(e,t,n){if(vn&&typeof vn.onCommitFiberUnmount=="function")try{vn.onCommitFiberUnmount(lu,n)}catch{}switch(n.tag){case 5:Ze||Ro(n,t);case 6:var r=He,o=Jt;He=null,er(e,t,n),He=r,Jt=o,He!==null&&(Jt?(e=He,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):He.removeChild(n.stateNode));break;case 18:He!==null&&(Jt?(e=He,n=n.stateNode,e.nodeType===8?Ic(e.parentNode,n):e.nodeType===1&&Ic(e,n),ds(e)):Ic(He,n.stateNode));break;case 4:r=He,o=Jt,He=n.stateNode.containerInfo,Jt=!0,er(e,t,n),He=r,Jt=o;break;case 0:case 11:case 14:case 15:if(!Ze&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&fd(n,t,s),o=o.next}while(o!==r)}er(e,t,n);break;case 1:if(!Ze&&(Ro(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){$e(n,t,a)}er(e,t,n);break;case 21:er(e,t,n);break;case 22:n.mode&1?(Ze=(r=Ze)||n.memoizedState!==null,er(e,t,n),Ze=r):er(e,t,n);break;default:er(e,t,n)}}function $y(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new qC),t.forEach(function(r){var o=oO.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Qt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=_e()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*XC(r/1960))-r,10e?16:e,cr===null)var r=!1;else{if(e=cr,cr=null,Al=0,te&6)throw Error(R(331));var o=te;for(te|=4,L=e.current;L!==null;){var i=L,s=i.child;if(L.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l_e()-eh?Mr(e,0):Zp|=n),pt(e,t)}function bw(e,t){t===0&&(e.mode&1?(t=ra,ra<<=1,!(ra&130023424)&&(ra=4194304)):t=1);var n=st();e=Vn(e,t),e!==null&&(Is(e,t,n),pt(e,n))}function rO(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),bw(e,n)}function oO(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),bw(e,n)}var Cw;Cw=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ft.current)ct=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ct=!1,VC(e,t,n);ct=!!(e.flags&131072)}else ct=!1,xe&&t.flags&1048576&&T1(t,kl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Da(e,t),e=t.pendingProps;var o=Ho(t,et.current);Mo(t,n),o=Gp(null,t,r,e,o,n);var i=qp();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,dt(r)?(i=!0,xl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Up(t),o.updater=mu,t.stateNode=o,o._reactInternals=t,od(t,r,e,n),t=ad(null,t,r,!0,i,n)):(t.tag=0,xe&&i&&Lp(t),rt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Da(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=sO(r),e=Xt(r,e),o){case 0:t=sd(null,t,r,e,n);break e;case 1:t=Ey(null,t,r,e,n);break e;case 11:t=Sy(null,t,r,e,n);break e;case 14:t=xy(null,t,r,Xt(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),sd(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),Ey(e,t,r,o,n);case 3:e:{if(lw(t),e===null)throw Error(R(387));r=t.pendingProps,i=t.memoizedState,o=i.element,L1(e,t),Ol(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=qo(Error(R(423)),t),t=ky(e,t,r,n,o);break e}else if(r!==o){o=qo(Error(R(424)),t),t=ky(e,t,r,n,o);break e}else for(St=mr(t.stateNode.containerInfo.firstChild),xt=t,xe=!0,en=null,n=P1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vo(),r===o){t=Kn(e,t,n);break e}rt(e,t,r,n)}t=t.child}return t;case 5:return I1(t),e===null&&td(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Yf(r,o)?s=null:i!==null&&Yf(r,i)&&(t.flags|=32),aw(e,t),rt(e,t,s,n),t.child;case 6:return e===null&&td(t),null;case 13:return uw(e,t,n);case 4:return Wp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ko(t,null,r,n):rt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),Sy(e,t,r,o,n);case 7:return rt(e,t,t.pendingProps,n),t.child;case 8:return rt(e,t,t.pendingProps.children,n),t.child;case 12:return rt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,he(bl,r._currentValue),r._currentValue=s,i!==null)if(sn(i.value,s)){if(i.children===o.children&&!ft.current){t=Kn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=zn(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),nd(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(R(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),nd(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}rt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Mo(t,n),o=Dt(o),r=r(o),t.flags|=1,rt(e,t,r,n),t.child;case 14:return r=t.type,o=Xt(r,t.pendingProps),o=Xt(r.type,o),xy(e,t,r,o,n);case 15:return iw(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),Da(e,t),t.tag=1,dt(r)?(e=!0,xl(t)):e=!1,Mo(t,n),nw(t,r,o),od(t,r,o,n),ad(null,t,r,!0,e,n);case 19:return cw(e,t,n);case 22:return sw(e,t,n)}throw Error(R(156,t.tag))};function Ow(e,t){return Z0(e,t)}function iO(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function It(e,t,n,r){return new iO(e,t,n,r)}function oh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sO(e){if(typeof e=="function")return oh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===kp)return 11;if(e===bp)return 14}return 2}function wr(e,t){var n=e.alternate;return n===null?(n=It(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ua(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")oh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case xo:return Br(n.children,o,i,t);case Ep:s=8,o|=8;break;case _f:return e=It(12,n,t,o|2),e.elementType=_f,e.lanes=i,e;case Tf:return e=It(13,n,t,o),e.elementType=Tf,e.lanes=i,e;case Rf:return e=It(19,n,t,o),e.elementType=Rf,e.lanes=i,e;case I0:return gu(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case j0:s=10;break e;case L0:s=9;break e;case kp:s=11;break e;case bp:s=14;break e;case nr:s=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=It(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Br(e,t,n,r){return e=It(7,e,r,t),e.lanes=n,e}function gu(e,t,n,r){return e=It(22,e,r,t),e.elementType=I0,e.lanes=n,e.stateNode={isHidden:!1},e}function Hc(e,t,n){return e=It(6,e,null,t),e.lanes=n,e}function Vc(e,t,n){return t=It(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function aO(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Cc(0),this.expirationTimes=Cc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cc(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ih(e,t,n,r,o,i,s,a,l){return e=new aO(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=It(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Up(i),e}function lO(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Rw)}catch{}}Rw(),R0.exports=Ct;var Nw=R0.exports;const Ir=si(Nw),Ly={disabled:!1},Aw=ne.createContext(null);var pO=function(t){return t.scrollTop},Di="unmounted",or="exited",Pt="entering",In="entered",Yo="exiting",Jn=function(e){qk(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=o,a=s&&!s.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?a?(l=or,i.appearStatus=Pt):l=In:r.unmountOnExit||r.mountOnEnter?l=Di:l=or,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===Di?{status:or}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==Pt&&s!==In&&(i=Pt):(s===Pt||s===In)&&(i=Yo)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Pt){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Ir.findDOMNode(this);s&&pO(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===or&&this.setState({status:Di})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[Ir.findDOMNode(this),a],u=l[0],c=l[1],d=this.getTimeouts(),f=a?d.appear:d.enter;if(!o&&!s||Ly.disabled){this.safeSetState({status:In},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Pt},function(){i.props.onEntering(u,c),i.onTransitionEnd(f,function(){i.safeSetState({status:In},function(){i.props.onEntered(u,c)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:Ir.findDOMNode(this);if(!i||Ly.disabled){this.safeSetState({status:or},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Yo},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:or},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:Ir.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Di)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=an(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ne.createElement(Aw.Provider,{value:null},typeof s=="function"?s(o,a):ne.cloneElement(ne.Children.only(s),a))},t}(ne.Component);Jn.contextType=Aw;Jn.propTypes={};function io(){}Jn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:io,onEntering:io,onEntered:io,onExit:io,onExiting:io,onExited:io};Jn.UNMOUNTED=Di;Jn.EXITED=or;Jn.ENTERING=Pt;Jn.ENTERED=In;Jn.EXITING=Yo;const ku=!!(typeof window<"u"&&window.document&&window.document.createElement);var wd=!1,Sd=!1;try{var Kc={get passive(){return wd=!0},get once(){return Sd=wd=!0}};ku&&(window.addEventListener("test",Kc,Kc),window.removeEventListener("test",Kc,!0))}catch{}function hO(e,t,n,r){if(r&&typeof r!="boolean"&&!Sd){var o=r.once,i=r.capture,s=n;!Sd&&o&&(s=n.__once||function a(l){this.removeEventListener(t,a,i),n.call(this,l)},n.__once=s),e.addEventListener(t,s,wd?r:i)}e.addEventListener(t,n,r)}function mO(e,t,n,r){var o=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)}function Dn(e,t,n,r){return hO(e,t,n,r),function(){mO(e,t,n,r)}}function yO(e,t,n,r){if(r===void 0&&(r=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent(t,n,r),e.dispatchEvent(o)}}function vO(e){var t=Fn(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function gO(e,t,n){n===void 0&&(n=5);var r=!1,o=setTimeout(function(){r||yO(e,"transitionend",!0)},t+n),i=Dn(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(o),i()}}function wO(e,t,n,r){n==null&&(n=vO(e)||0);var o=gO(e,n,r),i=Dn(e,"transitionend",t);return function(){o(),i()}}function Iy(e,t){const n=Fn(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function uh(e,t){const n=Iy(e,"transitionDuration"),r=Iy(e,"transitionDelay"),o=wO(e,i=>{i.target===e&&(o(),t(i))},n+r)}function $i(...e){return e.filter(t=>t!=null).reduce((t,n)=>{if(typeof n!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return t===null?n:function(...o){t.apply(this,o),n.apply(this,o)}},null)}function Pw(e){e.offsetHeight}const My=e=>!e||typeof e=="function"?e:t=>{e.current=t};function SO(e,t){const n=My(e),r=My(t);return o=>{n&&n(o),r&&r(o)}}function Yr(e,t){return h.useMemo(()=>SO(e,t),[e,t])}function Ll(e){return e&&"setState"in e?Ir.findDOMNode(e):e??null}const ch=ne.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:o,onExited:i,addEndListener:s,children:a,childRef:l,...u},c)=>{const d=h.useRef(null),f=Yr(d,l),v=x=>{f(Ll(x))},g=x=>b=>{x&&d.current&&x(d.current,b)},S=h.useCallback(g(e),[e]),k=h.useCallback(g(t),[t]),y=h.useCallback(g(n),[n]),p=h.useCallback(g(r),[r]),m=h.useCallback(g(o),[o]),E=h.useCallback(g(i),[i]),C=h.useCallback(g(s),[s]);return w.jsx(Jn,{ref:c,...u,onEnter:S,onEntered:y,onEntering:k,onExit:p,onExited:E,onExiting:m,addEndListener:C,nodeRef:d,children:typeof a=="function"?(x,b)=>a(x,{...b,ref:v}):ne.cloneElement(a,{ref:v})})}),xO={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function EO(e,t){const n=`offset${e[0].toUpperCase()}${e.slice(1)}`,r=t[n],o=xO[e];return r+parseInt(Fn(t,o[0]),10)+parseInt(Fn(t,o[1]),10)}const kO={[or]:"collapse",[Yo]:"collapsing",[Pt]:"collapsing",[In]:"collapse show"},bu=ne.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:o,className:i,children:s,dimension:a="height",in:l=!1,timeout:u=300,mountOnEnter:c=!1,unmountOnExit:d=!1,appear:f=!1,getDimensionValue:v=EO,...g},S)=>{const k=typeof a=="function"?a():a,y=h.useMemo(()=>$i(x=>{x.style[k]="0"},e),[k,e]),p=h.useMemo(()=>$i(x=>{const b=`scroll${k[0].toUpperCase()}${k.slice(1)}`;x.style[k]=`${x[b]}px`},t),[k,t]),m=h.useMemo(()=>$i(x=>{x.style[k]=null},n),[k,n]),E=h.useMemo(()=>$i(x=>{x.style[k]=`${v(k,x)}px`,Pw(x)},r),[r,v,k]),C=h.useMemo(()=>$i(x=>{x.style[k]=null},o),[k,o]);return w.jsx(ch,{ref:S,addEndListener:uh,...g,"aria-expanded":g.role?l:null,onEnter:y,onEntering:p,onEntered:m,onExit:E,onExiting:C,childRef:s.ref,in:l,timeout:u,mountOnEnter:c,unmountOnExit:d,appear:f,children:(x,b)=>ne.cloneElement(s,{...b,className:M(i,s.props.className,kO[x],k==="width"&&"collapse-horizontal")})})});function bO(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e},[e]),t}function it(e){const t=bO(e);return h.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const fh=e=>h.forwardRef((t,n)=>w.jsx("div",{...t,ref:n,className:M(t.className,e)}));function By(){return h.useState(null)}function dh(){const e=h.useRef(!0),t=h.useRef(()=>e.current);return h.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function CO(e){const t=h.useRef(null);return h.useEffect(()=>{t.current=e}),t.current}const OO=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",$O=typeof document<"u",Il=$O||OO?h.useLayoutEffect:h.useEffect,_O=["as","disabled"];function TO(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function RO(e){return!e||e.trim()==="#"}function jw({tagName:e,disabled:t,href:n,target:r,rel:o,role:i,onClick:s,tabIndex:a=0,type:l}){e||(n!=null||r!=null||o!=null?e="a":e="button");const u={tagName:e};if(e==="button")return[{type:l||"button",disabled:t},u];const c=f=>{if((t||e==="a"&&RO(n))&&f.preventDefault(),t){f.stopPropagation();return}s==null||s(f)},d=f=>{f.key===" "&&(f.preventDefault(),c(f))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:i??"button",disabled:void 0,tabIndex:t?void 0:a,href:n,target:e==="a"?r:void 0,"aria-disabled":t||void 0,rel:e==="a"?o:void 0,onClick:c,onKeyDown:d},u]}const NO=h.forwardRef((e,t)=>{let{as:n,disabled:r}=e,o=TO(e,_O);const[i,{tagName:s}]=jw(Object.assign({tagName:n,disabled:r},o));return w.jsx(s,Object.assign({},o,i,{ref:t}))});NO.displayName="Button";const AO={[Pt]:"show",[In]:"show"},bs=h.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...o},i)=>{const s={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...o},a=h.useCallback((l,u)=>{Pw(l),r==null||r(l,u)},[r]);return w.jsx(ch,{ref:i,addEndListener:uh,...s,onEnter:a,childRef:t.ref,children:(l,u)=>h.cloneElement(t,{...u,className:M("fade",e,t.props.className,AO[l],n[l])})})});bs.displayName="Fade";const PO={"aria-label":pe.string,onClick:pe.func,variant:pe.oneOf(["white"])},Cu=h.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},o)=>w.jsx("button",{ref:o,type:"button",className:M("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));Cu.displayName="CloseButton";Cu.propTypes=PO;const Lw=h.forwardRef(({bsPrefix:e,bg:t="primary",pill:n=!1,text:r,className:o,as:i="span",...s},a)=>{const l=z(e,"badge");return w.jsx(i,{ref:a,...s,className:M(o,l,n&&"rounded-pill",r&&`text-${r}`,t&&`bg-${t}`)})});Lw.displayName="Badge";const Fs=h.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:o=!1,disabled:i=!1,className:s,...a},l)=>{const u=z(t,"btn"),[c,{tagName:d}]=jw({tagName:e,disabled:i,...a}),f=d;return w.jsx(f,{...c,...a,ref:l,disabled:i,className:M(s,u,o&&"active",n&&`${u}-${n}`,r&&`${u}-${r}`,a.href&&i&&"disabled")})});Fs.displayName="Button";const ph=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"card-body"),w.jsx(n,{ref:o,className:M(e,t),...r})));ph.displayName="CardBody";const Iw=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"card-footer"),w.jsx(n,{ref:o,className:M(e,t),...r})));Iw.displayName="CardFooter";const Mw=h.createContext(null);Mw.displayName="CardHeaderContext";const Bw=h.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},o)=>{const i=z(e,"card-header"),s=h.useMemo(()=>({cardHeaderBsPrefix:i}),[i]);return w.jsx(Mw.Provider,{value:s,children:w.jsx(n,{ref:o,...r,className:M(t,i)})})});Bw.displayName="CardHeader";const Dw=h.forwardRef(({bsPrefix:e,className:t,variant:n,as:r="img",...o},i)=>{const s=z(e,"card-img");return w.jsx(r,{ref:i,className:M(n?`${s}-${n}`:s,t),...o})});Dw.displayName="CardImg";const Fw=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"card-img-overlay"),w.jsx(n,{ref:o,className:M(e,t),...r})));Fw.displayName="CardImgOverlay";const zw=h.forwardRef(({className:e,bsPrefix:t,as:n="a",...r},o)=>(t=z(t,"card-link"),w.jsx(n,{ref:o,className:M(e,t),...r})));zw.displayName="CardLink";const jO=fh("h6"),Uw=h.forwardRef(({className:e,bsPrefix:t,as:n=jO,...r},o)=>(t=z(t,"card-subtitle"),w.jsx(n,{ref:o,className:M(e,t),...r})));Uw.displayName="CardSubtitle";const Ww=h.forwardRef(({className:e,bsPrefix:t,as:n="p",...r},o)=>(t=z(t,"card-text"),w.jsx(n,{ref:o,className:M(e,t),...r})));Ww.displayName="CardText";const LO=fh("h5"),Hw=h.forwardRef(({className:e,bsPrefix:t,as:n=LO,...r},o)=>(t=z(t,"card-title"),w.jsx(n,{ref:o,className:M(e,t),...r})));Hw.displayName="CardTitle";const Vw=h.forwardRef(({bsPrefix:e,className:t,bg:n,text:r,border:o,body:i=!1,children:s,as:a="div",...l},u)=>{const c=z(e,"card");return w.jsx(a,{ref:u,...l,className:M(t,c,n&&`bg-${n}`,r&&`text-${r}`,o&&`border-${o}`),children:i?w.jsx(ph,{children:s}):s})});Vw.displayName="Card";const Do=Object.assign(Vw,{Img:Dw,Title:Hw,Subtitle:Uw,Body:ph,Link:zw,Text:Ww,Header:Bw,Footer:Iw,ImgOverlay:Fw});function IO(e){const t=h.useRef(e);return t.current=e,t}function Kw(e){const t=IO(e);h.useEffect(()=>()=>t.current(),[])}const xd=2**31-1;function Gw(e,t,n){const r=n-Date.now();e.current=r<=xd?setTimeout(t,r):setTimeout(()=>Gw(e,t,n),xd)}function qw(){const e=dh(),t=h.useRef();return Kw(()=>clearTimeout(t.current)),h.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(o,i=0){e()&&(n(),i<=xd?t.current=setTimeout(o,i):Gw(t,o,Date.now()+i))}return{set:r,clear:n,handleRef:t}},[])}function MO(e,t){return h.Children.toArray(e).some(n=>h.isValidElement(n)&&n.type===t)}function BO({as:e,bsPrefix:t,className:n,...r}){t=z(t,"col");const o=b0(),i=C0(),s=[],a=[];return o.forEach(l=>{const u=r[l];delete r[l];let c,d,f;typeof u=="object"&&u!=null?{span:c,offset:d,order:f}=u:c=u;const v=l!==i?`-${l}`:"";c&&s.push(c===!0?`${t}${v}`:`${t}${v}-${c}`),f!=null&&a.push(`order${v}-${f}`),d!=null&&a.push(`offset${v}-${d}`)}),[{...r,className:M(n,...s,...a)},{as:e,bsPrefix:t,spans:s}]}const dn=h.forwardRef((e,t)=>{const[{className:n,...r},{as:o="div",bsPrefix:i,spans:s}]=BO(e);return w.jsx(o,{...r,ref:t,className:M(n,!s.length&&i)})});dn.displayName="Col";const Qw=h.forwardRef(({bsPrefix:e,fluid:t=!1,as:n="div",className:r,...o},i)=>{const s=z(e,"container"),a=typeof t=="string"?`-${t}`:"-fluid";return w.jsx(n,{ref:i,...o,className:M(r,t?`${s}${a}`:s)})});Qw.displayName="Container";var DO=Function.prototype.bind.call(Function.prototype.call,[].slice);function so(e,t){return DO(e.querySelectorAll(t))}var Dy=Object.prototype.hasOwnProperty;function Fy(e,t,n){for(n of e.keys())if(Ji(n,t))return n}function Ji(e,t){var n,r,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Ji(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(o=r,o&&typeof o=="object"&&(o=Fy(t,o),!o)||!t.has(o))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(o=r[0],o&&typeof o=="object"&&(o=Fy(t,o),!o)||!Ji(r[1],t.get(o)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(Dy.call(e,n)&&++r&&!Dy.call(t,n)||!(n in t)||!Ji(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function FO(e){const t=dh();return[e[0],h.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var ht="top",zt="bottom",Ut="right",mt="left",hh="auto",zs=[ht,zt,Ut,mt],Xo="start",Cs="end",zO="clippingParents",Yw="viewport",_i="popper",UO="reference",zy=zs.reduce(function(e,t){return e.concat([t+"-"+Xo,t+"-"+Cs])},[]),Xw=[].concat(zs,[hh]).reduce(function(e,t){return e.concat([t,t+"-"+Xo,t+"-"+Cs])},[]),WO="beforeRead",HO="read",VO="afterRead",KO="beforeMain",GO="main",qO="afterMain",QO="beforeWrite",YO="write",XO="afterWrite",JO=[WO,HO,VO,KO,GO,qO,QO,YO,XO];function wn(e){return e.split("-")[0]}function bt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Gr(e){var t=bt(e).Element;return e instanceof t||e instanceof Element}function Sn(e){var t=bt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function mh(e){if(typeof ShadowRoot>"u")return!1;var t=bt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Dr=Math.max,Ml=Math.min,Jo=Math.round;function Ed(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Jw(){return!/^((?!chrome|android).)*safari/i.test(Ed())}function Zo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Sn(e)&&(o=e.offsetWidth>0&&Jo(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Jo(r.height)/e.offsetHeight||1);var s=Gr(e)?bt(e):window,a=s.visualViewport,l=!Jw()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/o,c=(r.top+(l&&a?a.offsetTop:0))/i,d=r.width/o,f=r.height/i;return{width:d,height:f,top:c,right:u+d,bottom:c+f,left:u,x:u,y:c}}function yh(e){var t=Zo(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Zw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&mh(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function kr(e){return e?(e.nodeName||"").toLowerCase():null}function Gn(e){return bt(e).getComputedStyle(e)}function ZO(e){return["table","td","th"].indexOf(kr(e))>=0}function $r(e){return((Gr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ou(e){return kr(e)==="html"?e:e.assignedSlot||e.parentNode||(mh(e)?e.host:null)||$r(e)}function Uy(e){return!Sn(e)||Gn(e).position==="fixed"?null:e.offsetParent}function e2(e){var t=/firefox/i.test(Ed()),n=/Trident/i.test(Ed());if(n&&Sn(e)){var r=Gn(e);if(r.position==="fixed")return null}var o=Ou(e);for(mh(o)&&(o=o.host);Sn(o)&&["html","body"].indexOf(kr(o))<0;){var i=Gn(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Us(e){for(var t=bt(e),n=Uy(e);n&&ZO(n)&&Gn(n).position==="static";)n=Uy(n);return n&&(kr(n)==="html"||kr(n)==="body"&&Gn(n).position==="static")?t:n||e2(e)||t}function vh(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Zi(e,t,n){return Dr(e,Ml(t,n))}function t2(e,t,n){var r=Zi(e,t,n);return r>n?n:r}function eS(){return{top:0,right:0,bottom:0,left:0}}function tS(e){return Object.assign({},eS(),e)}function nS(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var n2=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,tS(typeof t!="number"?t:nS(t,zs))};function r2(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=wn(n.placement),l=vh(a),u=[mt,Ut].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!s)){var d=n2(o.padding,n),f=yh(i),v=l==="y"?ht:mt,g=l==="y"?zt:Ut,S=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],k=s[l]-n.rects.reference[l],y=Us(i),p=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,m=S/2-k/2,E=d[v],C=p-f[c]-d[g],x=p/2-f[c]/2+m,b=Zi(E,x,C),O=l;n.modifiersData[r]=(t={},t[O]=b,t.centerOffset=b-x,t)}}function o2(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Zw(t.elements.popper,o)&&(t.elements.arrow=o))}const i2={name:"arrow",enabled:!0,phase:"main",fn:r2,effect:o2,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ei(e){return e.split("-")[1]}var s2={top:"auto",right:"auto",bottom:"auto",left:"auto"};function a2(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Jo(n*o)/o||0,y:Jo(r*o)/o||0}}function Wy(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=s.x,v=f===void 0?0:f,g=s.y,S=g===void 0?0:g,k=typeof c=="function"?c({x:v,y:S}):{x:v,y:S};v=k.x,S=k.y;var y=s.hasOwnProperty("x"),p=s.hasOwnProperty("y"),m=mt,E=ht,C=window;if(u){var x=Us(n),b="clientHeight",O="clientWidth";if(x===bt(n)&&(x=$r(n),Gn(x).position!=="static"&&a==="absolute"&&(b="scrollHeight",O="scrollWidth")),x=x,o===ht||(o===mt||o===Ut)&&i===Cs){E=zt;var T=d&&x===C&&C.visualViewport?C.visualViewport.height:x[b];S-=T-r.height,S*=l?1:-1}if(o===mt||(o===ht||o===zt)&&i===Cs){m=Ut;var $=d&&x===C&&C.visualViewport?C.visualViewport.width:x[O];v-=$-r.width,v*=l?1:-1}}var A=Object.assign({position:a},u&&s2),U=c===!0?a2({x:v,y:S},bt(n)):{x:v,y:S};if(v=U.x,S=U.y,l){var B;return Object.assign({},A,(B={},B[E]=p?"0":"",B[m]=y?"0":"",B.transform=(C.devicePixelRatio||1)<=1?"translate("+v+"px, "+S+"px)":"translate3d("+v+"px, "+S+"px, 0)",B))}return Object.assign({},A,(t={},t[E]=p?S+"px":"",t[m]=y?v+"px":"",t.transform="",t))}function l2(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:wn(t.placement),variation:ei(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Wy(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Wy(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const u2={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:l2,data:{}};var ma={passive:!0};function c2(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,l=bt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,ma)}),a&&l.addEventListener("resize",n.update,ma),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,ma)}),a&&l.removeEventListener("resize",n.update,ma)}}const f2={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:c2,data:{}};var d2={left:"right",right:"left",bottom:"top",top:"bottom"};function Wa(e){return e.replace(/left|right|bottom|top/g,function(t){return d2[t]})}var p2={start:"end",end:"start"};function Hy(e){return e.replace(/start|end/g,function(t){return p2[t]})}function gh(e){var t=bt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function wh(e){return Zo($r(e)).left+gh(e).scrollLeft}function h2(e,t){var n=bt(e),r=$r(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var u=Jw();(u||!u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+wh(e),y:l}}function m2(e){var t,n=$r(e),r=gh(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Dr(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Dr(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+wh(e),l=-r.scrollTop;return Gn(o||n).direction==="rtl"&&(a+=Dr(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function Sh(e){var t=Gn(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function rS(e){return["html","body","#document"].indexOf(kr(e))>=0?e.ownerDocument.body:Sn(e)&&Sh(e)?e:rS(Ou(e))}function es(e,t){var n;t===void 0&&(t=[]);var r=rS(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=bt(r),s=o?[i].concat(i.visualViewport||[],Sh(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(es(Ou(s)))}function kd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function y2(e,t){var n=Zo(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Vy(e,t,n){return t===Yw?kd(h2(e,n)):Gr(t)?y2(t,n):kd(m2($r(e)))}function v2(e){var t=es(Ou(e)),n=["absolute","fixed"].indexOf(Gn(e).position)>=0,r=n&&Sn(e)?Us(e):e;return Gr(r)?t.filter(function(o){return Gr(o)&&Zw(o,r)&&kr(o)!=="body"}):[]}function g2(e,t,n,r){var o=t==="clippingParents"?v2(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,u){var c=Vy(e,u,r);return l.top=Dr(c.top,l.top),l.right=Ml(c.right,l.right),l.bottom=Ml(c.bottom,l.bottom),l.left=Dr(c.left,l.left),l},Vy(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function oS(e){var t=e.reference,n=e.element,r=e.placement,o=r?wn(r):null,i=r?ei(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case ht:l={x:s,y:t.y-n.height};break;case zt:l={x:s,y:t.y+t.height};break;case Ut:l={x:t.x+t.width,y:a};break;case mt:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var u=o?vh(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Xo:l[u]=l[u]-(t[c]/2-n[c]/2);break;case Cs:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function Os(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,a=n.boundary,l=a===void 0?zO:a,u=n.rootBoundary,c=u===void 0?Yw:u,d=n.elementContext,f=d===void 0?_i:d,v=n.altBoundary,g=v===void 0?!1:v,S=n.padding,k=S===void 0?0:S,y=tS(typeof k!="number"?k:nS(k,zs)),p=f===_i?UO:_i,m=e.rects.popper,E=e.elements[g?p:f],C=g2(Gr(E)?E:E.contextElement||$r(e.elements.popper),l,c,s),x=Zo(e.elements.reference),b=oS({reference:x,element:m,strategy:"absolute",placement:o}),O=kd(Object.assign({},m,b)),T=f===_i?O:x,$={top:C.top-T.top+y.top,bottom:T.bottom-C.bottom+y.bottom,left:C.left-T.left+y.left,right:T.right-C.right+y.right},A=e.modifiersData.offset;if(f===_i&&A){var U=A[o];Object.keys($).forEach(function(B){var K=[Ut,zt].indexOf(B)>=0?1:-1,W=[ht,zt].indexOf(B)>=0?"y":"x";$[B]+=U[W]*K})}return $}function w2(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?Xw:l,c=ei(r),d=c?a?zy:zy.filter(function(g){return ei(g)===c}):zs,f=d.filter(function(g){return u.indexOf(g)>=0});f.length===0&&(f=d);var v=f.reduce(function(g,S){return g[S]=Os(e,{placement:S,boundary:o,rootBoundary:i,padding:s})[wn(S)],g},{});return Object.keys(v).sort(function(g,S){return v[g]-v[S]})}function S2(e){if(wn(e)===hh)return[];var t=Wa(e);return[Hy(e),t,Hy(t)]}function x2(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,v=n.flipVariations,g=v===void 0?!0:v,S=n.allowedAutoPlacements,k=t.options.placement,y=wn(k),p=y===k,m=l||(p||!g?[Wa(k)]:S2(k)),E=[k].concat(m).reduce(function(X,re){return X.concat(wn(re)===hh?w2(t,{placement:re,boundary:c,rootBoundary:d,padding:u,flipVariations:g,allowedAutoPlacements:S}):re)},[]),C=t.rects.reference,x=t.rects.popper,b=new Map,O=!0,T=E[0],$=0;$=0,W=K?"width":"height",G=Os(t,{placement:A,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),V=K?B?Ut:mt:B?zt:ht;C[W]>x[W]&&(V=Wa(V));var _=Wa(V),I=[];if(i&&I.push(G[U]<=0),a&&I.push(G[V]<=0,G[_]<=0),I.every(function(X){return X})){T=A,O=!1;break}b.set(A,I)}if(O)for(var F=g?3:1,Y=function(re){var ge=E.find(function(Me){var qe=b.get(Me);if(qe)return qe.slice(0,re).every(function(_t){return _t})});if(ge)return T=ge,"break"},Z=F;Z>0;Z--){var ve=Y(Z);if(ve==="break")break}t.placement!==T&&(t.modifiersData[r]._skip=!0,t.placement=T,t.reset=!0)}}const E2={name:"flip",enabled:!0,phase:"main",fn:x2,requiresIfExists:["offset"],data:{_skip:!1}};function Ky(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Gy(e){return[ht,Ut,zt,mt].some(function(t){return e[t]>=0})}function k2(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Os(t,{elementContext:"reference"}),a=Os(t,{altBoundary:!0}),l=Ky(s,r),u=Ky(a,o,i),c=Gy(l),d=Gy(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const b2={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:k2};function C2(e,t,n){var r=wn(e),o=[mt,ht].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[mt,Ut].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function O2(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=Xw.reduce(function(c,d){return c[d]=C2(d,t.rects,i),c},{}),a=s[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const $2={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:O2};function _2(e){var t=e.state,n=e.name;t.modifiersData[n]=oS({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const T2={name:"popperOffsets",enabled:!0,phase:"read",fn:_2,data:{}};function R2(e){return e==="x"?"y":"x"}function N2(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,v=f===void 0?!0:f,g=n.tetherOffset,S=g===void 0?0:g,k=Os(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),y=wn(t.placement),p=ei(t.placement),m=!p,E=vh(y),C=R2(E),x=t.modifiersData.popperOffsets,b=t.rects.reference,O=t.rects.popper,T=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,$=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if(x){if(i){var B,K=E==="y"?ht:mt,W=E==="y"?zt:Ut,G=E==="y"?"height":"width",V=x[E],_=V+k[K],I=V-k[W],F=v?-O[G]/2:0,Y=p===Xo?b[G]:O[G],Z=p===Xo?-O[G]:-b[G],ve=t.elements.arrow,X=v&&ve?yh(ve):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:eS(),ge=re[K],Me=re[W],qe=Zi(0,b[G],X[G]),_t=m?b[G]/2-F-qe-ge-$.mainAxis:Y-qe-ge-$.mainAxis,_n=m?-b[G]/2+F+qe+Me+$.mainAxis:Z+qe+Me+$.mainAxis,Tn=t.elements.arrow&&Us(t.elements.arrow),Rn=Tn?E==="y"?Tn.clientTop||0:Tn.clientLeft||0:0,Qe=(B=A==null?void 0:A[E])!=null?B:0,de=V+_t-Qe-Rn,H=V+_n-Qe,Ue=Zi(v?Ml(_,de):_,V,v?Dr(I,H):I);x[E]=Ue,U[E]=Ue-V}if(a){var nt,vt=E==="x"?ht:mt,vi=E==="x"?zt:Ut,we=x[C],Gt=C==="y"?"height":"width",eo=we+k[vt],to=we-k[vi],Rr=[ht,mt].indexOf(y)!==-1,gi=(nt=A==null?void 0:A[C])!=null?nt:0,no=Rr?eo:we-b[Gt]-O[Gt]-gi+$.altAxis,Zn=Rr?we+b[Gt]+O[Gt]-gi-$.altAxis:to,N=v&&Rr?t2(no,we,Zn):Zi(v?no:eo,we,v?Zn:to);x[C]=N,U[C]=N-we}t.modifiersData[r]=U}}const A2={name:"preventOverflow",enabled:!0,phase:"main",fn:N2,requiresIfExists:["offset"]};function P2(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function j2(e){return e===bt(e)||!Sn(e)?gh(e):P2(e)}function L2(e){var t=e.getBoundingClientRect(),n=Jo(t.width)/e.offsetWidth||1,r=Jo(t.height)/e.offsetHeight||1;return n!==1||r!==1}function I2(e,t,n){n===void 0&&(n=!1);var r=Sn(t),o=Sn(t)&&L2(t),i=$r(t),s=Zo(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((kr(t)!=="body"||Sh(i))&&(a=j2(t)),Sn(t)?(l=Zo(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=wh(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function M2(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function B2(e){var t=M2(e);return JO.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function D2(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function F2(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var qy={placement:"bottom",modifiers:[],strategy:"absolute"};function Qy(){for(var e=arguments.length,t=new Array(e),n=0;n=0)&&(n[o]=e[o]);return n}const V2={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},K2={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const r=(t.getAttribute("aria-describedby")||"").split(",").filter(o=>o.trim()!==n.id);r.length?t.setAttribute("aria-describedby",r.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,o=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&o==="tooltip"&&"setAttribute"in r){const i=r.getAttribute("aria-describedby");if(i&&i.split(",").indexOf(n.id)!==-1)return;r.setAttribute("aria-describedby",i?`${i},${n.id}`:n.id)}}},G2=[];function q2(e,t,n={}){let{enabled:r=!0,placement:o="bottom",strategy:i="absolute",modifiers:s=G2}=n,a=H2(n,W2);const l=h.useRef(s),u=h.useRef(),c=h.useCallback(()=>{var k;(k=u.current)==null||k.update()},[]),d=h.useCallback(()=>{var k;(k=u.current)==null||k.forceUpdate()},[]),[f,v]=FO(h.useState({placement:o,update:c,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),g=h.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:k})=>{const y={},p={};Object.keys(k.elements).forEach(m=>{y[m]=k.styles[m],p[m]=k.attributes[m]}),v({state:k,styles:y,attributes:p,update:c,forceUpdate:d,placement:k.placement})}}),[c,d,v]),S=h.useMemo(()=>(Ji(l.current,s)||(l.current=s),l.current),[s]);return h.useEffect(()=>{!u.current||!r||u.current.setOptions({placement:o,strategy:i,modifiers:[...S,g,V2]})},[i,o,g,r,S]),h.useEffect(()=>{if(!(!r||e==null||t==null))return u.current=U2(e,t,Object.assign({},a,{placement:o,strategy:i,modifiers:[...S,K2,g]})),()=>{u.current!=null&&(u.current.destroy(),u.current=void 0,v(k=>Object.assign({},k,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),f}function $s(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var Q2=function(){},Y2=Q2;const X2=si(Y2),Yy=()=>{};function J2(e){return e.button===0}function Z2(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Ha=e=>e&&("current"in e?e.current:e),Xy={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function e$(e,t=Yy,{disabled:n,clickTrigger:r="click"}={}){const o=h.useRef(!1),i=h.useRef(!1),s=h.useCallback(u=>{const c=Ha(e);X2(!!c,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),o.current=!c||Z2(u)||!J2(u)||!!$s(c,u.target)||i.current,i.current=!1},[e]),a=it(u=>{const c=Ha(e);c&&$s(c,u.target)&&(i.current=!0)}),l=it(u=>{o.current||t(u)});h.useEffect(()=>{var u,c;if(n||e==null)return;const d=Ls(Ha(e)),f=d.defaultView||window;let v=(u=f.event)!=null?u:(c=f.parent)==null?void 0:c.event,g=null;Xy[r]&&(g=Dn(d,Xy[r],a,!0));const S=Dn(d,r,s,!0),k=Dn(d,r,p=>{if(p===v){v=void 0;return}l(p)});let y=[];return"ontouchstart"in d.documentElement&&(y=[].slice.call(d.body.children).map(p=>Dn(p,"mousemove",Yy))),()=>{g==null||g(),S(),k(),y.forEach(p=>p())}},[e,n,r,s,a,l])}function t$(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function n$(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function r$({enabled:e,enableEvents:t,placement:n,flip:r,offset:o,fixed:i,containerPadding:s,arrowElement:a,popperConfig:l={}}){var u,c,d,f,v;const g=t$(l.modifiers);return Object.assign({},l,{placement:n,enabled:e,strategy:i?"fixed":l.strategy,modifiers:n$(Object.assign({},g,{eventListeners:{enabled:t,options:(u=g.eventListeners)==null?void 0:u.options},preventOverflow:Object.assign({},g.preventOverflow,{options:s?Object.assign({padding:s},(c=g.preventOverflow)==null?void 0:c.options):(d=g.preventOverflow)==null?void 0:d.options}),offset:{options:Object.assign({offset:o},(f=g.offset)==null?void 0:f.options)},arrow:Object.assign({},g.arrow,{enabled:!!a,options:Object.assign({},(v=g.arrow)==null?void 0:v.options,{element:a})}),flip:Object.assign({enabled:!!r},g.flip)}))})}const o$=h.createContext(null),i$="data-rr-ui-";function s$(e){return`${i$}${e}`}const iS=h.createContext(ku?window:void 0);iS.Provider;function xh(){return h.useContext(iS)}const sS=h.createContext(null);sS.displayName="InputGroupContext";const ci=h.createContext(null);ci.displayName="NavbarContext";pe.string,pe.bool,pe.bool,pe.bool,pe.bool;const aS=h.forwardRef(({bsPrefix:e,className:t,fluid:n=!1,rounded:r=!1,roundedCircle:o=!1,thumbnail:i=!1,...s},a)=>(e=z(e,"img"),w.jsx("img",{ref:a,...s,className:M(t,n&&`${e}-fluid`,r&&"rounded",o&&"rounded-circle",i&&`${e}-thumbnail`)})));aS.displayName="Image";const a$={type:pe.string,tooltip:pe.bool,as:pe.elementType},$u=h.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...o},i)=>w.jsx(e,{...o,ref:i,className:M(t,`${n}-${r?"tooltip":"feedback"}`)}));$u.displayName="Feedback";$u.propTypes=a$;const qn=h.createContext({}),Ws=h.forwardRef(({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:o=!1,isInvalid:i=!1,as:s="input",...a},l)=>{const{controlId:u}=h.useContext(qn);return t=z(t,"form-check-input"),w.jsx(s,{...a,ref:l,type:r,id:e||u,className:M(n,t,o&&"is-valid",i&&"is-invalid")})});Ws.displayName="FormCheckInput";const Bl=h.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...r},o)=>{const{controlId:i}=h.useContext(qn);return e=z(e,"form-check-label"),w.jsx("label",{...r,ref:o,htmlFor:n||i,className:M(t,e)})});Bl.displayName="FormCheckLabel";const lS=h.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:r=!1,reverse:o=!1,disabled:i=!1,isValid:s=!1,isInvalid:a=!1,feedbackTooltip:l=!1,feedback:u,feedbackType:c,className:d,style:f,title:v="",type:g="checkbox",label:S,children:k,as:y="input",...p},m)=>{t=z(t,"form-check"),n=z(n,"form-switch");const{controlId:E}=h.useContext(qn),C=h.useMemo(()=>({controlId:e||E}),[E,e]),x=!k&&S!=null&&S!==!1||MO(k,Bl),b=w.jsx(Ws,{...p,type:g==="switch"?"checkbox":g,ref:m,isValid:s,isInvalid:a,disabled:i,as:y});return w.jsx(qn.Provider,{value:C,children:w.jsx("div",{style:f,className:M(d,x&&t,r&&`${t}-inline`,o&&`${t}-reverse`,g==="switch"&&n),children:k||w.jsxs(w.Fragment,{children:[b,x&&w.jsx(Bl,{title:v,children:S}),u&&w.jsx($u,{type:c,tooltip:l,children:u})]})})})});lS.displayName="FormCheck";const Dl=Object.assign(lS,{Input:Ws,Label:Bl}),uS=h.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:r,id:o,className:i,isValid:s=!1,isInvalid:a=!1,plaintext:l,readOnly:u,as:c="input",...d},f)=>{const{controlId:v}=h.useContext(qn);return e=z(e,"form-control"),w.jsx(c,{...d,type:t,size:r,ref:f,readOnly:u,id:o||v,className:M(i,l?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,s&&"is-valid",a&&"is-invalid")})});uS.displayName="FormControl";const l$=Object.assign(uS,{Feedback:$u}),cS=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"form-floating"),w.jsx(n,{ref:o,className:M(e,t),...r})));cS.displayName="FormFloating";const Eh=h.forwardRef(({controlId:e,as:t="div",...n},r)=>{const o=h.useMemo(()=>({controlId:e}),[e]);return w.jsx(qn.Provider,{value:o,children:w.jsx(t,{...n,ref:r})})});Eh.displayName="FormGroup";const fS=h.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:o,htmlFor:i,...s},a)=>{const{controlId:l}=h.useContext(qn);t=z(t,"form-label");let u="col-form-label";typeof n=="string"&&(u=`${u} ${u}-${n}`);const c=M(o,t,r&&"visually-hidden",n&&u);return i=i||l,n?w.jsx(dn,{ref:a,as:"label",className:c,htmlFor:i,...s}):w.jsx(e,{ref:a,className:c,htmlFor:i,...s})});fS.displayName="FormLabel";const dS=h.forwardRef(({bsPrefix:e,className:t,id:n,...r},o)=>{const{controlId:i}=h.useContext(qn);return e=z(e,"form-range"),w.jsx("input",{...r,type:"range",ref:o,className:M(t,e),id:n||i})});dS.displayName="FormRange";const pS=h.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:o=!1,isInvalid:i=!1,id:s,...a},l)=>{const{controlId:u}=h.useContext(qn);return e=z(e,"form-select"),w.jsx("select",{...a,size:n,ref:l,className:M(r,e,t&&`${e}-${t}`,o&&"is-valid",i&&"is-invalid"),id:s||u})});pS.displayName="FormSelect";const hS=h.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...o},i)=>(e=z(e,"form-text"),w.jsx(n,{...o,ref:i,className:M(t,e,r&&"text-muted")})));hS.displayName="FormText";const mS=h.forwardRef((e,t)=>w.jsx(Dl,{...e,ref:t,type:"switch"}));mS.displayName="Switch";const u$=Object.assign(mS,{Input:Dl.Input,Label:Dl.Label}),yS=h.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:o,...i},s)=>(e=z(e,"form-floating"),w.jsxs(Eh,{ref:s,className:M(t,e),controlId:r,...i,children:[n,w.jsx("label",{htmlFor:r,children:o})]})));yS.displayName="FloatingLabel";const c$={_ref:pe.any,validated:pe.bool,as:pe.elementType},kh=h.forwardRef(({className:e,validated:t,as:n="form",...r},o)=>w.jsx(n,{...r,ref:o,className:M(e,t&&"was-validated")}));kh.displayName="Form";kh.propTypes=c$;const ot=Object.assign(kh,{Group:Eh,Control:l$,Floating:cS,Check:Dl,Switch:u$,Label:fS,Text:hS,Range:dS,Select:pS,FloatingLabel:yS}),_u=h.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},o)=>(t=z(t,"input-group-text"),w.jsx(n,{ref:o,className:M(e,t),...r})));_u.displayName="InputGroupText";const f$=e=>w.jsx(_u,{children:w.jsx(Ws,{type:"checkbox",...e})}),d$=e=>w.jsx(_u,{children:w.jsx(Ws,{type:"radio",...e})}),vS=h.forwardRef(({bsPrefix:e,size:t,hasValidation:n,className:r,as:o="div",...i},s)=>{e=z(e,"input-group");const a=h.useMemo(()=>({}),[]);return w.jsx(sS.Provider,{value:a,children:w.jsx(o,{ref:s,...i,className:M(r,e,t&&`${e}-${t}`,n&&"has-validation")})})});vS.displayName="InputGroup";const Un=Object.assign(vS,{Text:_u,Radio:d$,Checkbox:f$});function Gc(e){e===void 0&&(e=Ls());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function p$(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const Jy=s$("modal-open");class bh{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return p$(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",o=this.getElement();t.style={overflow:o.style.overflow,[r]:o.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt(Fn(o,r)||"0",10)+t.scrollBarWidth}px`),o.setAttribute(Jy,""),Fn(o,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(Jy),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const qc=(e,t)=>ku?e==null?(t||Ls()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function bd(e,t){const n=xh(),[r,o]=h.useState(()=>qc(e,n==null?void 0:n.document));if(!r){const i=qc(e);i&&o(i)}return h.useEffect(()=>{},[t,r]),h.useEffect(()=>{const i=qc(e);i!==r&&o(i)},[e,r]),r}function h$({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:o}){const i=h.useRef(null),s=h.useRef(t),a=it(n);h.useEffect(()=>{t?s.current=!0:a(i.current)},[t,a]);const l=Yr(i,e.ref),u=h.cloneElement(e,{ref:l});return t?u:o||!s.current&&r?null:u}function gS(e){return e.code==="Escape"||e.keyCode===27}function m$(){const e=h.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}const y$=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function v$(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function g$(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:o,onExiting:i,onExited:s,addEndListener:a,children:l}=e,u=v$(e,y$);const{major:c}=m$(),d=c>=19?l.props.ref:l.ref,f=h.useRef(null),v=Yr(f,typeof l=="function"?null:d),g=x=>b=>{x&&f.current&&x(f.current,b)},S=h.useCallback(g(t),[t]),k=h.useCallback(g(n),[n]),y=h.useCallback(g(r),[r]),p=h.useCallback(g(o),[o]),m=h.useCallback(g(i),[i]),E=h.useCallback(g(s),[s]),C=h.useCallback(g(a),[a]);return Object.assign({},u,{nodeRef:f},t&&{onEnter:S},n&&{onEntering:k},r&&{onEntered:y},o&&{onExit:p},i&&{onExiting:m},s&&{onExited:E},a&&{addEndListener:C},{children:typeof l=="function"?(x,b)=>l(x,Object.assign({},b,{ref:v})):h.cloneElement(l,{ref:v})})}const w$=["component"];function S$(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}const x$=h.forwardRef((e,t)=>{let{component:n}=e,r=S$(e,w$);const o=g$(r);return w.jsx(n,Object.assign({ref:t},o))});function E$({in:e,onTransition:t}){const n=h.useRef(null),r=h.useRef(!0),o=it(t);return Il(()=>{if(!n.current)return;let i=!1;return o({in:e,element:n.current,initial:r.current,isStale:()=>i}),()=>{i=!0}},[e,o]),Il(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function k$({children:e,in:t,onExited:n,onEntered:r,transition:o}){const[i,s]=h.useState(!t);t&&i&&s(!1);const a=E$({in:!!t,onTransition:u=>{const c=()=>{u.isStale()||(u.in?r==null||r(u.element,u.initial):(s(!0),n==null||n(u.element)))};Promise.resolve(o(u)).then(c,d=>{throw u.in||s(!0),d})}}),l=Yr(a,e.ref);return i&&!t?null:h.cloneElement(e,{ref:l})}function Cd(e,t,n){return e?w.jsx(x$,Object.assign({},n,{component:e})):t?w.jsx(k$,Object.assign({},n,{transition:t})):w.jsx(h$,Object.assign({},n))}const b$=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function C$(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}let Qc;function O$(e){return Qc||(Qc=new bh({ownerDocument:e==null?void 0:e.document})),Qc}function $$(e){const t=xh(),n=e||O$(t),r=h.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:h.useCallback(o=>{r.current.dialog=o},[]),setBackdropRef:h.useCallback(o=>{r.current.backdrop=o},[])})}const wS=h.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:o,style:i,children:s,backdrop:a=!0,keyboard:l=!0,onBackdropClick:u,onEscapeKeyDown:c,transition:d,runTransition:f,backdropTransition:v,runBackdropTransition:g,autoFocus:S=!0,enforceFocus:k=!0,restoreFocus:y=!0,restoreFocusOptions:p,renderDialog:m,renderBackdrop:E=H=>w.jsx("div",Object.assign({},H)),manager:C,container:x,onShow:b,onHide:O=()=>{},onExit:T,onExited:$,onExiting:A,onEnter:U,onEntering:B,onEntered:K}=e,W=C$(e,b$);const G=xh(),V=bd(x),_=$$(C),I=dh(),F=CO(n),[Y,Z]=h.useState(!n),ve=h.useRef(null);h.useImperativeHandle(t,()=>_,[_]),ku&&!F&&n&&(ve.current=Gc(G==null?void 0:G.document)),n&&Y&&Z(!1);const X=it(()=>{if(_.add(),_n.current=Dn(document,"keydown",qe),_t.current=Dn(document,"focus",()=>setTimeout(ge),!0),b&&b(),S){var H,Ue;const nt=Gc((H=(Ue=_.dialog)==null?void 0:Ue.ownerDocument)!=null?H:G==null?void 0:G.document);_.dialog&&nt&&!$s(_.dialog,nt)&&(ve.current=nt,_.dialog.focus())}}),re=it(()=>{if(_.remove(),_n.current==null||_n.current(),_t.current==null||_t.current(),y){var H;(H=ve.current)==null||H.focus==null||H.focus(p),ve.current=null}});h.useEffect(()=>{!n||!V||X()},[n,V,X]),h.useEffect(()=>{Y&&re()},[Y,re]),Kw(()=>{re()});const ge=it(()=>{if(!k||!I()||!_.isTopModal())return;const H=Gc(G==null?void 0:G.document);_.dialog&&H&&!$s(_.dialog,H)&&_.dialog.focus()}),Me=it(H=>{H.target===H.currentTarget&&(u==null||u(H),a===!0&&O())}),qe=it(H=>{l&&gS(H)&&_.isTopModal()&&(c==null||c(H),H.defaultPrevented||O())}),_t=h.useRef(),_n=h.useRef(),Tn=(...H)=>{Z(!0),$==null||$(...H)};if(!V)return null;const Rn=Object.assign({role:r,ref:_.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},W,{style:i,className:o,tabIndex:-1});let Qe=m?m(Rn):w.jsx("div",Object.assign({},Rn,{children:h.cloneElement(s,{role:"document"})}));Qe=Cd(d,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:T,onExiting:A,onExited:Tn,onEnter:U,onEntering:B,onEntered:K,children:Qe});let de=null;return a&&(de=E({ref:_.setBackdropRef,onClick:Me}),de=Cd(v,g,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:de})),w.jsx(w.Fragment,{children:Ir.createPortal(w.jsxs(w.Fragment,{children:[de,Qe]}),V)})});wS.displayName="Modal";const _$=Object.assign(wS,{Manager:bh});function Od(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function T$(e,t){e.classList?e.classList.add(t):Od(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Zy(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function R$(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Zy(e.className,t):e.setAttribute("class",Zy(e.className&&e.className.baseVal||"",t))}const ao={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class SS extends bh{adjustAndStore(t,n,r){const o=n.style[t];n.dataset[t]=o,Fn(n,{[t]:`${parseFloat(Fn(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],Fn(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(T$(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";so(n,ao.FIXED_CONTENT).forEach(i=>this.adjustAndStore(r,i,t.scrollBarWidth)),so(n,ao.STICKY_CONTENT).forEach(i=>this.adjustAndStore(o,i,-t.scrollBarWidth)),so(n,ao.NAVBAR_TOGGLER).forEach(i=>this.adjustAndStore(o,i,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();R$(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";so(n,ao.FIXED_CONTENT).forEach(i=>this.restore(r,i)),so(n,ao.STICKY_CONTENT).forEach(i=>this.restore(o,i)),so(n,ao.NAVBAR_TOGGLER).forEach(i=>this.restore(o,i))}}let Yc;function N$(e){return Yc||(Yc=new SS(e)),Yc}const xS=h.createContext({onHide(){}}),A$=h.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:o,...i},s)=>{const a=h.useContext(xS),l=it(()=>{a==null||a.onHide(),r==null||r()});return w.jsxs("div",{ref:s,...i,children:[o,n&&w.jsx(Cu,{"aria-label":e,variant:t,onClick:l})]})}),ES=h.forwardRef(({bsPrefix:e,className:t,as:n,...r},o)=>{e=z(e,"navbar-brand");const i=n||(r.href?"a":"span");return w.jsx(i,{...r,ref:o,className:M(t,e)})});ES.displayName="NavbarBrand";const kS=h.forwardRef(({children:e,bsPrefix:t,...n},r)=>{t=z(t,"navbar-collapse");const o=h.useContext(ci);return w.jsx(bu,{in:!!(o&&o.expanded),...n,children:w.jsx("div",{ref:r,className:t,children:e})})});kS.displayName="NavbarCollapse";const bS=h.forwardRef(({bsPrefix:e,className:t,children:n,label:r="Toggle navigation",as:o="button",onClick:i,...s},a)=>{e=z(e,"navbar-toggler");const{onToggle:l,expanded:u}=h.useContext(ci)||{},c=it(d=>{i&&i(d),l&&l()});return o==="button"&&(s.type="button"),w.jsx(o,{...s,ref:a,onClick:c,"aria-label":r,className:M(t,e,!u&&"collapsed"),children:n||w.jsx("span",{className:`${e}-icon`})})});bS.displayName="NavbarToggle";const $d=new WeakMap,ev=(e,t)=>{if(!e||!t)return;const n=$d.get(t)||new Map;$d.set(t,n);let r=n.get(e);return r||(r=t.matchMedia(e),r.refCount=0,n.set(r.media,r)),r};function P$(e,t=typeof window>"u"?void 0:window){const n=ev(e,t),[r,o]=h.useState(()=>n?n.matches:!1);return Il(()=>{let i=ev(e,t);if(!i)return o(!1);let s=$d.get(t);const a=()=>{o(i.matches)};return i.refCount++,i.addListener(a),a(),()=>{i.removeListener(a),i.refCount--,i.refCount<=0&&(s==null||s.delete(i.media)),i=void 0}},[e]),r}function j$(e){const t=Object.keys(e);function n(a,l){return a===l?l:a?`${a} and ${l}`:l}function r(a){return t[Math.min(t.indexOf(a)+1,t.length-1)]}function o(a){const l=r(a);let u=e[l];return typeof u=="number"?u=`${u-.2}px`:u=`calc(${u} - 0.2px)`,`(max-width: ${u})`}function i(a){let l=e[a];return typeof l=="number"&&(l=`${l}px`),`(min-width: ${l})`}function s(a,l,u){let c;typeof a=="object"?(c=a,u=l,l=!0):(l=l||!0,c={[a]:l});let d=h.useMemo(()=>Object.entries(c).reduce((f,[v,g])=>((g==="up"||g===!0)&&(f=n(f,i(v))),(g==="down"||g===!0)&&(f=n(f,o(v))),f),""),[JSON.stringify(c)]);return P$(d,u)}return s}const L$=j$({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400}),CS=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"offcanvas-body"),w.jsx(n,{ref:o,className:M(e,t),...r})));CS.displayName="OffcanvasBody";const I$={[Pt]:"show",[In]:"show"},OS=h.forwardRef(({bsPrefix:e,className:t,children:n,in:r=!1,mountOnEnter:o=!1,unmountOnExit:i=!1,appear:s=!1,...a},l)=>(e=z(e,"offcanvas"),w.jsx(ch,{ref:l,addEndListener:uh,in:r,mountOnEnter:o,unmountOnExit:i,appear:s,...a,childRef:n.ref,children:(u,c)=>h.cloneElement(n,{...c,className:M(t,n.props.className,(u===Pt||u===Yo)&&`${e}-toggling`,I$[u])})})));OS.displayName="OffcanvasToggling";const $S=h.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...o},i)=>(e=z(e,"offcanvas-header"),w.jsx(A$,{ref:i,...o,className:M(t,e),closeLabel:n,closeButton:r})));$S.displayName="OffcanvasHeader";const M$=fh("h5"),_S=h.forwardRef(({className:e,bsPrefix:t,as:n=M$,...r},o)=>(t=z(t,"offcanvas-title"),w.jsx(n,{ref:o,className:M(e,t),...r})));_S.displayName="OffcanvasTitle";function B$(e){return w.jsx(OS,{...e})}function D$(e){return w.jsx(bs,{...e})}const TS=h.forwardRef(({bsPrefix:e,className:t,children:n,"aria-labelledby":r,placement:o="start",responsive:i,show:s=!1,backdrop:a=!0,keyboard:l=!0,scroll:u=!1,onEscapeKeyDown:c,onShow:d,onHide:f,container:v,autoFocus:g=!0,enforceFocus:S=!0,restoreFocus:k=!0,restoreFocusOptions:y,onEntered:p,onExit:m,onExiting:E,onEnter:C,onEntering:x,onExited:b,backdropClassName:O,manager:T,renderStaticNode:$=!1,...A},U)=>{const B=h.useRef();e=z(e,"offcanvas");const{onToggle:K}=h.useContext(ci)||{},[W,G]=h.useState(!1),V=L$(i||"xs","up");h.useEffect(()=>{G(i?s&&!V:s)},[s,i,V]);const _=it(()=>{K==null||K(),f==null||f()}),I=h.useMemo(()=>({onHide:_}),[_]);function F(){return T||(u?(B.current||(B.current=new SS({handleContainerOverflow:!1})),B.current):N$())}const Y=(re,...ge)=>{re&&(re.style.visibility="visible"),C==null||C(re,...ge)},Z=(re,...ge)=>{re&&(re.style.visibility=""),b==null||b(...ge)},ve=h.useCallback(re=>w.jsx("div",{...re,className:M(`${e}-backdrop`,O)}),[O,e]),X=re=>w.jsx("div",{...re,...A,className:M(t,i?`${e}-${i}`:e,`${e}-${o}`),"aria-labelledby":r,children:n});return w.jsxs(w.Fragment,{children:[!W&&(i||$)&&X({}),w.jsx(xS.Provider,{value:I,children:w.jsx(_$,{show:W,ref:U,backdrop:a,container:v,keyboard:l,autoFocus:g,enforceFocus:S&&!u,restoreFocus:k,restoreFocusOptions:y,onEscapeKeyDown:c,onShow:d,onHide:_,onEnter:Y,onEntering:x,onEntered:p,onExit:m,onExiting:E,onExited:Z,manager:F(),transition:B$,backdropTransition:D$,renderBackdrop:ve,renderDialog:X})})]})});TS.displayName="Offcanvas";const Fi=Object.assign(TS,{Body:CS,Header:$S,Title:_S}),RS=h.forwardRef((e,t)=>{const n=h.useContext(ci);return w.jsx(Fi,{ref:t,show:!!(n!=null&&n.expanded),...e,renderStaticNode:!0})});RS.displayName="NavbarOffcanvas";const NS=h.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},o)=>(t=z(t,"navbar-text"),w.jsx(n,{ref:o,className:M(e,t),...r})));NS.displayName="NavbarText";const AS=h.forwardRef((e,t)=>{const{bsPrefix:n,expand:r=!0,variant:o="light",bg:i,fixed:s,sticky:a,className:l,as:u="nav",expanded:c,onToggle:d,onSelect:f,collapseOnSelect:v=!1,...g}=Gk(e,{expanded:"onToggle"}),S=z(n,"navbar"),k=h.useCallback((...m)=>{f==null||f(...m),v&&c&&(d==null||d(!1))},[f,v,c,d]);g.role===void 0&&u!=="nav"&&(g.role="navigation");let y=`${S}-expand`;typeof r=="string"&&(y=`${y}-${r}`);const p=h.useMemo(()=>({onToggle:()=>d==null?void 0:d(!c),bsPrefix:S,expanded:!!c,expand:r}),[S,c,r,d]);return w.jsx(ci.Provider,{value:p,children:w.jsx(o$.Provider,{value:k,children:w.jsx(u,{ref:t,...g,className:M(l,S,r&&y,o&&`${S}-${o}`,i&&`bg-${i}`,a&&`sticky-${a}`,s&&`fixed-${s}`)})})})});AS.displayName="Navbar";const Xc=Object.assign(AS,{Brand:ES,Collapse:kS,Offcanvas:RS,Text:NS,Toggle:bS}),F$=()=>{};function z$(e,t,{disabled:n,clickTrigger:r}={}){const o=t||F$;e$(e,o,{disabled:n,clickTrigger:r});const i=it(s=>{gS(s)&&o(s)});h.useEffect(()=>{if(n||e==null)return;const s=Ls(Ha(e));let a=(s.defaultView||window).event;const l=Dn(s,"keyup",u=>{if(u===a){a=void 0;return}i(u)});return()=>{l()}},[e,n,i])}const PS=h.forwardRef((e,t)=>{const{flip:n,offset:r,placement:o,containerPadding:i,popperConfig:s={},transition:a,runTransition:l}=e,[u,c]=By(),[d,f]=By(),v=Yr(c,t),g=bd(e.container),S=bd(e.target),[k,y]=h.useState(!e.show),p=q2(S,u,r$({placement:o,enableEvents:!!e.show,containerPadding:i||5,flip:n,offset:r,arrowElement:d,popperConfig:s}));e.show&&k&&y(!1);const m=(...A)=>{y(!0),e.onExited&&e.onExited(...A)},E=e.show||!k;if(z$(u,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!E)return null;const{onExit:C,onExiting:x,onEnter:b,onEntering:O,onEntered:T}=e;let $=e.children(Object.assign({},p.attributes.popper,{style:p.styles.popper,ref:v}),{popper:p,placement:o,show:!!e.show,arrowProps:Object.assign({},p.attributes.arrow,{style:p.styles.arrow,ref:f})});return $=Cd(a,l,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:$,onExit:C,onExiting:x,onExited:m,onEnter:b,onEntering:O,onEntered:T}),g?Ir.createPortal($,g):null});PS.displayName="Overlay";const jS=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"popover-header"),w.jsx(n,{ref:o,className:M(e,t),...r})));jS.displayName="PopoverHeader";const Ch=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"popover-body"),w.jsx(n,{ref:o,className:M(e,t),...r})));Ch.displayName="PopoverBody";function LS(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function IS(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const U$=h.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:o,body:i,arrowProps:s,hasDoneInitialMeasure:a,popper:l,show:u,...c},d)=>{const f=z(e,"popover"),v=O0(),[g]=(t==null?void 0:t.split("-"))||[],S=LS(g,v);let k=r;return u&&!a&&(k={...r,...IS(l==null?void 0:l.strategy)}),w.jsxs("div",{ref:d,role:"tooltip",style:k,"x-placement":g,className:M(n,f,g&&`bs-popover-${S}`),...c,children:[w.jsx("div",{className:"popover-arrow",...s}),i?w.jsx(Ch,{children:o}):o]})}),W$=Object.assign(U$,{Header:jS,Body:Ch,POPPER_OFFSET:[0,8]}),MS=h.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:o,arrowProps:i,hasDoneInitialMeasure:s,popper:a,show:l,...u},c)=>{e=z(e,"tooltip");const d=O0(),[f]=(t==null?void 0:t.split("-"))||[],v=LS(f,d);let g=r;return l&&!s&&(g={...r,...IS(a==null?void 0:a.strategy)}),w.jsxs("div",{ref:c,style:g,role:"tooltip","x-placement":f,className:M(n,e,`bs-tooltip-${v}`),...u,children:[w.jsx("div",{className:"tooltip-arrow",...i}),w.jsx("div",{className:`${e}-inner`,children:o})]})});MS.displayName="Tooltip";const BS=Object.assign(MS,{TOOLTIP_OFFSET:[0,6]});function H$(e){const t=h.useRef(null),n=z(void 0,"popover"),r=z(void 0,"tooltip"),o=h.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(Od(t.current,n))return W$.POPPER_OFFSET;if(Od(t.current,r))return BS.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r]);return[t,[o]]}function V$(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=o=>n(Ll(o))),t.ref=r.__wrapped||(r.__wrapped=o=>r(Ll(o)))}const DS=h.forwardRef(({children:e,transition:t=bs,popperConfig:n={},rootClose:r=!1,placement:o="top",show:i=!1,...s},a)=>{const l=h.useRef({}),[u,c]=h.useState(null),[d,f]=H$(s.offset),v=Yr(a,d),g=t===!0?bs:t||void 0,S=it(k=>{c(k),n==null||n.onFirstUpdate==null||n.onFirstUpdate(k)});return Il(()=>{u&&s.target&&(l.current.scheduleUpdate==null||l.current.scheduleUpdate())},[u,s.target]),h.useEffect(()=>{i||c(null)},[i]),w.jsx(PS,{...s,ref:v,popperConfig:{...n,modifiers:f.concat(n.modifiers||[]),onFirstUpdate:S},transition:g,rootClose:r,placement:o,show:i,children:(k,{arrowProps:y,popper:p,show:m})=>{var E;V$(k,y);const C=p==null?void 0:p.placement,x=Object.assign(l.current,{state:p==null?void 0:p.state,scheduleUpdate:p==null?void 0:p.update,placement:C,outOfBoundaries:(p==null||(E=p.state)==null||(E=E.modifiersData.hide)==null?void 0:E.isReferenceHidden)||!1,strategy:n.strategy}),b=!!u;return typeof e=="function"?e({...k,placement:C,show:m,...!t&&m&&{className:"show"},popper:x,arrowProps:y,hasDoneInitialMeasure:b}):h.cloneElement(e,{...k,placement:C,arrowProps:y,popper:x,hasDoneInitialMeasure:b,className:M(e.props.className,!t&&m&&"show"),style:{...e.props.style,...k.style}})}})});DS.displayName="Overlay";function K$(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function tv(e,t,n){const[r]=t,o=r.currentTarget,i=r.relatedTarget||r.nativeEvent[n];(!i||i!==o)&&!$s(o,i)&&e(...t)}pe.oneOf(["click","hover","focus"]);const G$=({trigger:e=["hover","focus"],overlay:t,children:n,popperConfig:r={},show:o,defaultShow:i=!1,onToggle:s,delay:a,placement:l,flip:u=l&&l.indexOf("auto")!==-1,...c})=>{const d=h.useRef(null),f=Yr(d,n.ref),v=qw(),g=h.useRef(""),[S,k]=k0(o,i,s),y=K$(a),{onFocus:p,onBlur:m,onClick:E}=typeof n!="function"?h.Children.only(n).props:{},C=W=>{f(Ll(W))},x=h.useCallback(()=>{if(v.clear(),g.current="show",!y.show){k(!0);return}v.set(()=>{g.current==="show"&&k(!0)},y.show)},[y.show,k,v]),b=h.useCallback(()=>{if(v.clear(),g.current="hide",!y.hide){k(!1);return}v.set(()=>{g.current==="hide"&&k(!1)},y.hide)},[y.hide,k,v]),O=h.useCallback((...W)=>{x(),p==null||p(...W)},[x,p]),T=h.useCallback((...W)=>{b(),m==null||m(...W)},[b,m]),$=h.useCallback((...W)=>{k(!S),E==null||E(...W)},[E,k,S]),A=h.useCallback((...W)=>{tv(x,W,"fromElement")},[x]),U=h.useCallback((...W)=>{tv(b,W,"toElement")},[b]),B=e==null?[]:[].concat(e),K={ref:C};return B.indexOf("click")!==-1&&(K.onClick=$),B.indexOf("focus")!==-1&&(K.onFocus=O,K.onBlur=T),B.indexOf("hover")!==-1&&(K.onMouseOver=A,K.onMouseOut=U),w.jsxs(w.Fragment,{children:[typeof n=="function"?n(K):h.cloneElement(n,K),w.jsx(DS,{...c,show:S,onHide:b,flip:u,placement:l,popperConfig:r,target:d.current,children:t})]})},Fl=h.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},o)=>{const i=z(e,"row"),s=b0(),a=C0(),l=`${i}-cols`,u=[];return s.forEach(c=>{const d=r[c];delete r[c];let f;d!=null&&typeof d=="object"?{cols:f}=d:f=d;const v=c!==a?`-${c}`:"";f!=null&&u.push(`${l}${v}-${f}`)}),w.jsx(n,{ref:o,...r,className:M(t,i,...u)})});Fl.displayName="Row";const FS=h.forwardRef(({bsPrefix:e,variant:t,animation:n="border",size:r,as:o="div",className:i,...s},a)=>{e=z(e,"spinner");const l=`${e}-${n}`;return w.jsx(o,{ref:a,...s,className:M(i,l,r&&`${l}-${r}`,t&&`text-${t}`)})});FS.displayName="Spinner";const q$={[Pt]:"showing",[Yo]:"showing show"},zS=h.forwardRef((e,t)=>w.jsx(bs,{...e,ref:t,transitionClasses:q$}));zS.displayName="ToastFade";const US=h.createContext({onClose(){}}),WS=h.forwardRef(({bsPrefix:e,closeLabel:t="Close",closeVariant:n,closeButton:r=!0,className:o,children:i,...s},a)=>{e=z(e,"toast-header");const l=h.useContext(US),u=it(c=>{l==null||l.onClose==null||l.onClose(c)});return w.jsxs("div",{ref:a,...s,className:M(e,o),children:[i,r&&w.jsx(Cu,{"aria-label":t,variant:n,onClick:u,"data-dismiss":"toast"})]})});WS.displayName="ToastHeader";const HS=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"toast-body"),w.jsx(n,{ref:o,className:M(e,t),...r})));HS.displayName="ToastBody";const VS=h.forwardRef(({bsPrefix:e,className:t,transition:n=zS,show:r=!0,animation:o=!0,delay:i=5e3,autohide:s=!1,onClose:a,onEntered:l,onExit:u,onExiting:c,onEnter:d,onEntering:f,onExited:v,bg:g,...S},k)=>{e=z(e,"toast");const y=h.useRef(i),p=h.useRef(a);h.useEffect(()=>{y.current=i,p.current=a},[i,a]);const m=qw(),E=!!(s&&r),C=h.useCallback(()=>{E&&(p.current==null||p.current())},[E]);h.useEffect(()=>{m.set(C,y.current)},[m,C]);const x=h.useMemo(()=>({onClose:a}),[a]),b=!!(n&&o),O=w.jsx("div",{...S,ref:k,className:M(e,t,g&&`bg-${g}`,!b&&(r?"show":"hide")),role:"alert","aria-live":"assertive","aria-atomic":"true"});return w.jsx(US.Provider,{value:x,children:b&&n?w.jsx(n,{in:r,onEnter:d,onEntering:f,onEntered:l,onExit:u,onExiting:c,onExited:v,unmountOnExit:!0,children:O}):O})});VS.displayName="Toast";const ts=Object.assign(VS,{Body:HS,Header:WS}),Q$={"top-start":"top-0 start-0","top-center":"top-0 start-50 translate-middle-x","top-end":"top-0 end-0","middle-start":"top-50 start-0 translate-middle-y","middle-center":"top-50 start-50 translate-middle","middle-end":"top-50 end-0 translate-middle-y","bottom-start":"bottom-0 start-0","bottom-center":"bottom-0 start-50 translate-middle-x","bottom-end":"bottom-0 end-0"},Oh=h.forwardRef(({bsPrefix:e,position:t,containerPosition:n,className:r,as:o="div",...i},s)=>(e=z(e,"toast-container"),w.jsx(o,{ref:s,...i,className:M(e,t&&Q$[t],n&&`position-${n}`,r)})));Oh.displayName="ToastContainer";const Y$=()=>{},$h=h.forwardRef(({bsPrefix:e,name:t,className:n,checked:r,type:o,onChange:i,value:s,disabled:a,id:l,inputRef:u,...c},d)=>(e=z(e,"btn-check"),w.jsxs(w.Fragment,{children:[w.jsx("input",{className:e,name:t,type:o,value:s,ref:u,autoComplete:"off",checked:!!r,disabled:!!a,onChange:i||Y$,id:l}),w.jsx(Fs,{...c,ref:d,className:M(n,a&&"disabled"),type:void 0,role:void 0,as:"label",htmlFor:l})]})));$h.displayName="ToggleButton";const bn=Object.create(null);bn.open="0";bn.close="1";bn.ping="2";bn.pong="3";bn.message="4";bn.upgrade="5";bn.noop="6";const Va=Object.create(null);Object.keys(bn).forEach(e=>{Va[bn[e]]=e});const _d={type:"error",data:"parser error"},KS=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",GS=typeof ArrayBuffer=="function",qS=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,_h=({type:e,data:t},n,r)=>KS&&t instanceof Blob?n?r(t):nv(t,r):GS&&(t instanceof ArrayBuffer||qS(t))?n?r(t):nv(new Blob([t]),r):r(bn[e]+(t||"")),nv=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function rv(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Jc;function X$(e,t){if(KS&&e.data instanceof Blob)return e.data.arrayBuffer().then(rv).then(t);if(GS&&(e.data instanceof ArrayBuffer||qS(e.data)))return t(rv(e.data));_h(e,!1,n=>{Jc||(Jc=new TextEncoder),t(Jc.encode(n))})}const ov="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zi=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,n=e.length,r,o=0,i,s,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),c=new Uint8Array(u);for(r=0;r>4,c[o++]=(s&15)<<4|a>>2,c[o++]=(a&3)<<6|l&63;return u},Z$=typeof ArrayBuffer=="function",Th=(e,t)=>{if(typeof e!="string")return{type:"message",data:QS(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:e_(e.substring(1),t)}:Va[n]?e.length>1?{type:Va[n],data:e.substring(1)}:{type:Va[n]}:_d},e_=(e,t)=>{if(Z$){const n=J$(e);return QS(n,t)}else return{base64:!0,data:e}},QS=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},YS="",t_=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((i,s)=>{_h(i,!1,a=>{r[s]=a,++o===n&&t(r.join(YS))})})},n_=(e,t)=>{const n=e.split(YS),r=[];for(let o=0;o{const r=n.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const i=new DataView(o.buffer);i.setUint8(0,126),i.setUint16(1,r)}else{o=new Uint8Array(9);const i=new DataView(o.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(n)})}})}let Zc;function ya(e){return e.reduce((t,n)=>t+n.length,0)}function va(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let o=0;oMath.pow(2,21)-1){a.enqueue(_d);break}o=c*Math.pow(2,32)+u.getUint32(4),r=3}else{if(ya(n)e){a.enqueue(_d);break}}}})}const XS=4;function je(e){if(e)return i_(e)}function i_(e){for(var t in je.prototype)e[t]=je.prototype[t];return e}je.prototype.on=je.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};je.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};je.prototype.off=je.prototype.removeListener=je.prototype.removeAllListeners=je.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const s_=jt.setTimeout,a_=jt.clearTimeout;function Tu(e,t){t.useNativeTimers?(e.setTimeoutFn=s_.bind(jt),e.clearTimeoutFn=a_.bind(jt)):(e.setTimeoutFn=jt.setTimeout.bind(jt),e.clearTimeoutFn=jt.clearTimeout.bind(jt))}const l_=1.33;function u_(e){return typeof e=="string"?c_(e):Math.ceil((e.byteLength||e.size)*l_)}function c_(e){let t=0,n=0;for(let r=0,o=e.length;r=57344?n+=3:(r++,n+=4);return n}function f_(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function d_(e){let t={},n=e.split("&");for(let r=0,o=n.length;r0);return t}function ex(){const e=av(+new Date);return e!==sv?(iv=0,sv=e):e+"."+av(iv++)}for(;ga{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};n_(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,t_(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=ex()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new xn(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(o,i)=>{this.onError("xhr post error",o,i)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class xn extends je{constructor(t,n){super(),Tu(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.data=n.data!==void 0?n.data:null,this.create()}create(){var t;const n=JS(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new nx(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this.opts.extraHeaders[o])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this.opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this.opts.cookieJar)===null||o===void 0||o.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(o){this.setTimeoutFn(()=>{this.onError(o)},0);return}typeof document<"u"&&(this.index=xn.requestsCount++,xn.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=y_,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete xn.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}xn.requestsCount=0;xn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",lv);else if(typeof addEventListener=="function"){const e="onpagehide"in jt?"pagehide":"unload";addEventListener(e,lv,!1)}}function lv(){for(let e in xn.requests)xn.requests.hasOwnProperty(e)&&xn.requests[e].abort()}const Nh=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),wa=jt.WebSocket||jt.MozWebSocket,uv=!0,w_="arraybuffer",cv=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class S_ extends Rh{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=cv?{}:JS(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=uv&&!cv?n?new wa(t,n):new wa(t):new wa(t,n,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n{const s={};try{uv&&this.ws.send(i)}catch{}o&&Nh(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=ex()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}check(){return!!wa}}class x_ extends Rh{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(t=>{const n=o_(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),o=r_();o.readable.pipeTo(t.writable),this.writer=o.writable.getWriter();const i=()=>{r.read().then(({done:a,value:l})=>{a||(this.onPacket(l),i())}).catch(a=>{})};i();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this.writer.write(s).then(()=>this.onOpen())})}))}write(t){this.writable=!1;for(let n=0;n{o&&Nh(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this.transport)===null||t===void 0||t.close()}}const E_={websocket:S_,webtransport:x_,polling:g_},k_=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,b_=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Rd(e){if(e.length>2e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=k_.exec(e||""),i={},s=14;for(;s--;)i[b_[s]]=o[s]||"";return n!=-1&&r!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=C_(i,i.path),i.queryKey=O_(i,i.query),i}function C_(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function O_(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,i){o&&(n[o]=i)}),n}let rx=class vo extends je{constructor(t,n={}){super(),this.binaryType=w_,this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=Rd(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=Rd(n.host).host),Tu(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=d_(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=XS,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new E_[t](r)}open(){let t;if(this.opts.rememberUpgrade&&vo.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;vo.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",d=>{if(!r)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;vo.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(c(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=n.name,this.emitReserved("upgradeError",f)}}))};function i(){r||(r=!0,c(),n.close(),n=null)}const s=d=>{const f=new Error("probe error: "+d);f.transport=n.name,i(),this.emitReserved("upgradeError",f)};function a(){s("transport closed")}function l(){s("socket closed")}function u(d){n&&d.name!==n.name&&i()}const c=()=>{n.removeListener("open",o),n.removeListener("error",s),n.removeListener("close",a),this.off("close",l),this.off("upgrading",u)};n.once("open",o),n.once("error",s),n.once("close",a),this.once("close",l),this.once("upgrading",u),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",vo.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const n=this.upgrades.length;for(;t{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const i={type:t,data:n,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){vo.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const o=t.length;for(;rtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,ox=Object.prototype.toString,R_=typeof Blob=="function"||typeof Blob<"u"&&ox.call(Blob)==="[object BlobConstructor]",N_=typeof File=="function"||typeof File<"u"&&ox.call(File)==="[object FileConstructor]";function Ah(e){return __&&(e instanceof ArrayBuffer||T_(e))||R_&&e instanceof Blob||N_&&e instanceof File}function Ka(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n=0&&e.num{delete this.acks[t];for(let a=0;a{this.io.clearTimeoutFn(i),n.apply(this,a)};s.withError=!0,this.acks[t]=s}emitWithAck(t,...n){return new Promise((r,o)=>{const i=(s,a)=>s?o(s):r(a);i.withError=!0,n.push(i),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...i)=>r!==this._queue[0]?void 0:(o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...i)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:J.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case J.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case J.EVENT:case J.BINARY_EVENT:this.onevent(t);break;case J.ACK:case J.BINARY_ACK:this.onack(t);break;case J.DISCONNECT:this.ondisconnect();break;case J.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...o){r||(r=!0,n.packet({type:J.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:J.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}fi.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};fi.prototype.reset=function(){this.attempts=0};fi.prototype.setMin=function(e){this.ms=e};fi.prototype.setMax=function(e){this.max=e};fi.prototype.setJitter=function(e){this.jitter=e};class Pd extends je{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Tu(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new fi({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||B_;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new rx(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=Zt(n,"open",function(){r.onopen(),t&&t()}),i=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},s=Zt(n,"error",i);if(this._timeout!==!1){const a=this._timeout,l=this.setTimeoutFn(()=>{o(),i(new Error("timeout")),n.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(o),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Zt(t,"ping",this.onping.bind(this)),Zt(t,"data",this.ondata.bind(this)),Zt(t,"error",this.onerror.bind(this)),Zt(t,"close",this.onclose.bind(this)),Zt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){Nh(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new ix(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;rt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Ti={};function Ga(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=$_(e,t.path||"/socket.io"),r=n.source,o=n.id,i=n.path,s=Ti[o]&&i in Ti[o].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let l;return a?l=new Pd(r,t):(Ti[o]||(Ti[o]=new Pd(r,t)),l=Ti[o]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(Ga,{Manager:Pd,Socket:ix,io:Ga,connect:Ga});const sx=(e,t)=>{if(typeof e=="number")return{full_access_path:t,doc:null,readonly:!1,type:Number.isInteger(e)?"int":"float",value:e};if(typeof e=="boolean")return{full_access_path:t,doc:null,readonly:!1,type:"bool",value:e};if(typeof e=="string")return{full_access_path:t,doc:null,readonly:!1,type:"str",value:e};if(e===null)return{full_access_path:t,doc:null,readonly:!1,type:"None",value:null};throw new Error("Unsupported type for serialization")},F_=(e,t="")=>{const r=e.map((o,i)=>{(typeof o=="number"||typeof o=="boolean"||typeof o=="string"||o===null)&&sx(o,`${t}[${i}]`)});return{full_access_path:t,type:"list",value:r,readonly:!1,doc:null}},z_=(e,t="")=>{const r=Object.entries(e).reduce((o,[i,s])=>{const a=`${t}["${i}"]`;return(typeof s=="number"||typeof s=="boolean"||typeof s=="string"||s===null)&&(o[i]=sx(s,a)),o},{});return{full_access_path:t,type:"dict",value:r,readonly:!1,doc:null}},ax=window.location.hostname,lx=window.location.port,ux=window.__FORWARDED_PREFIX__||"",Ui=window.__FORWARDED_PROTO__||"http",Sa=`${ax}:${lx}${ux}`,U_=Ui==="http"?"ws":"wss",W_=`${U_}://${ax}:${lx}/`,Ln=Ga(W_,{path:`${ux}/ws/socket.io`,transports:["websocket"]}),H_=(e,t)=>{t?Ln.emit("update_value",{access_path:e.full_access_path,value:e},t):Ln.emit("update_value",{access_path:e.full_access_path,value:e})},cx=(e,t=[],n={},r)=>{const o=F_(t),i=z_(n);Ln.emit("trigger_method",{access_path:e,args:o,kwargs:i})},fx=ne.memo(e=>{const{showNotification:t,notifications:n,removeNotificationById:r}=e;return w.jsx(Oh,{className:"navbarOffset toastContainer",position:"top-end",children:n.map(o=>o.levelname==="ERROR"||o.levelname==="CRITICAL"||t&&["WARNING","INFO","DEBUG"].includes(o.levelname)?w.jsxs(ts,{className:o.levelname.toLowerCase()+"Toast",onClose:()=>r(o.id),onClick:()=>r(o.id),onMouseLeave:()=>{o.levelname!=="ERROR"&&r(o.id)},show:!0,autohide:o.levelname==="WARNING"||o.levelname==="INFO"||o.levelname==="DEBUG",delay:o.levelname==="WARNING"||o.levelname==="INFO"||o.levelname==="DEBUG"?2e3:void 0,children:[w.jsxs(ts.Header,{closeButton:!1,className:o.levelname.toLowerCase()+"Toast text-right",children:[w.jsx("strong",{className:"me-auto",children:o.levelname}),w.jsx("small",{children:o.timeStamp})]}),w.jsx(ts.Body,{children:o.message})]},o.id):null)})});fx.displayName="Notifications";const jd=ne.memo(({connectionStatus:e})=>{const[t,n]=h.useState(!0);h.useEffect(()=>{n(!0)},[e]);const r=()=>n(!1),o=()=>{switch(e){case"connecting":return{message:"Connecting...",bg:"info",delay:void 0};case"connected":return{message:"Connected",bg:"success",delay:1e3};case"disconnected":return{message:"Disconnected",bg:"danger",delay:void 0};case"reconnecting":return{message:"Reconnecting...",bg:"info",delay:void 0};default:return{message:"",bg:"info",delay:void 0}}},{message:i,bg:s,delay:a}=o();return w.jsx(Oh,{position:"bottom-center",className:"toastContainer",children:w.jsx(ts,{show:t,onClose:r,delay:a,autohide:a!==void 0,bg:s,children:w.jsxs(ts.Body,{className:"d-flex justify-content-between",children:[i,w.jsx(Fs,{variant:"close",size:"sm",onClick:r})]})})})});jd.displayName="ConnectionToast";function dx(e){const t=/\w+|\[\d+\.\d+\]|\[\d+\]|\["[^"]*"\]|\['[^']*'\]/g;return e.match(t)??[]}function V_(e){if(e.startsWith("[")&&e.endsWith("]")&&(e=e.slice(1,-1)),e.startsWith("'")&&e.endsWith("'")||e.startsWith('"')&&e.endsWith('"'))return e.slice(1,-1);const t=parseFloat(e);return isNaN(t)?e:t}function K_(e,t,n){if(t in e)return e[t];if(Array.isArray(e)){if(n&&t===e.length)return e.push(pv()),e[t];throw new Error(`Index out of bounds: ${t}`)}else{if(n)return e[t]=pv(),e[t];throw new Error(`Key not found: ${t}`)}}function dv(e,t,n=!1){const r=V_(t);try{return K_(e,r,n)}catch(o){throw o instanceof RangeError?new Error(`Index '${r}': ${o.message}`):o instanceof Error?new Error(`Key '${r}': ${o.message}`):o}}function G_(e,t,n){const r=dx(t),o=JSON.parse(JSON.stringify(e));let i=o;try{for(let l=0;l{const{docString:t}=e;if(!t)return null;const n=w.jsx(BS,{id:"tooltip",children:t});return w.jsx(G$,{placement:"bottom",overlay:n,children:w.jsx(Lw,{pill:!0,className:"tooltip-trigger",bg:"light",text:"dark",children:"?"})})});ln.displayName="DocStringComponent";function Cn(){const e=h.useRef(0);return h.useEffect(()=>{e.current+=1}),e.current}const px=ne.memo(e=>{const{value:t,fullAccessPath:n,readOnly:r,docString:o,addNotification:i,changeCallback:s=()=>{},displayName:a,id:l}=e;Cn(),h.useEffect(()=>{i(`${n} changed to ${t}.`)},[e.value]);const u=c=>{s({type:"bool",value:c,full_access_path:n,readonly:r,doc:o})};return w.jsxs("div",{className:"component buttonComponent",id:l,children:[!1,w.jsxs($h,{id:`toggle-check-${l}`,type:"checkbox",variant:t?"success":"secondary",checked:t,value:a,disabled:r,onChange:c=>u(c.currentTarget.checked),children:[a,w.jsx(ln,{docString:o})]})]})});px.displayName="ButtonComponent";const q_=(e,t,n)=>{const r=t.split("."),o=r[0].length,i=r[1]?r[1].length:0,s=n>o;let a=0;s?a=Math.pow(10,o+1-n):a=Math.pow(10,o-n);const u=(parseFloat(t)+(e==="ArrowUp"?a:-a)).toFixed(i),c=u.split(".")[0].length;return c>o?n+=1:cn>t?{value:e.slice(0,t)+e.slice(n),selectionStart:t}:t>0?{value:e.slice(0,t-1)+e.slice(t),selectionStart:t-1}:{value:e,selectionStart:t},Y_=(e,t,n)=>n>t?{value:e.slice(0,t)+e.slice(n),selectionStart:t}:t{let o=t;return e==="."&&t.includes(".")?{value:t,selectionStart:n}:e==="-"?(n===0&&r>n?(o="-"+t.slice(r),n=1):n===0&&!t.startsWith("-")?(o="-"+t,n=1):(n===0||n===1)&&t.startsWith("-")&&(o=t.slice(1),n=0),{value:o,selectionStart:n}):(r>n?o=t.slice(0,n)+e+t.slice(r):o=t.slice(0,n)+e+t.slice(n),{value:o,selectionStart:n+1})},zl=ne.memo(e=>{const{fullAccessPath:t,value:n,readOnly:r,type:o,docString:i,isInstantUpdate:s,unit:a,addNotification:l,changeCallback:u=()=>{},displayName:c,id:d}=e,[f,v]=h.useState(null),[g,S]=h.useState(n.toString());Cn();const k=p=>{const{key:m,target:E}=p,C=E;if(m==="F1"||m==="F5"||m==="F12"||m==="Tab")return;p.preventDefault();const{value:x}=C,b=C.selectionEnd??0;let O=C.selectionStart??0,T=x;if(p.ctrlKey&&m==="a"){C.setSelectionRange(0,x.length);return}else if(m==="ArrowRight"||m==="ArrowLeft"){O=m==="ArrowRight"?O+1:O-1,v(O);return}else if(m>="0"&&m<="9"||m==="-")({value:T,selectionStart:O}=hv(m,x,O,b));else if(m==="."&&(o==="float"||o==="Quantity"))({value:T,selectionStart:O}=hv(m,x,O,b));else if(m==="ArrowUp"||m==="ArrowDown")({value:T,selectionStart:O}=q_(m,x,O));else if(m==="Backspace")({value:T,selectionStart:O}=Q_(x,O,b));else if(m==="Delete")({value:T,selectionStart:O}=Y_(x,O,b));else if(m==="Enter"&&!s){let $;o==="Quantity"?$={type:"Quantity",value:{magnitude:Number(T),unit:a},full_access_path:t,readonly:r,doc:i}:$={type:o,value:Number(T),full_access_path:t,readonly:r,doc:i},u($);return}else return;if(s){let $;o==="Quantity"?$={type:"Quantity",value:{magnitude:Number(T),unit:a},full_access_path:t,readonly:r,doc:i}:$={type:o,value:Number(T),full_access_path:t,readonly:r,doc:i},u($)}S(T),v(O)},y=()=>{if(!s){let p;o==="Quantity"?p={type:"Quantity",value:{magnitude:Number(g),unit:a},full_access_path:t,readonly:r,doc:i}:p={type:o,value:Number(g),full_access_path:t,readonly:r,doc:i},u(p)}};return h.useEffect(()=>{const p=o==="int"?parseInt(g):parseFloat(g);n!==p&&S(n.toString());let m=`${t} changed to ${e.value}`;a===void 0?m+=".":m+=` ${a}.`,l(m)},[n]),h.useEffect(()=>{const p=document.getElementsByName(d)[0];p&&f!==null&&p.setSelectionRange(f,f)}),w.jsxs("div",{className:"component numberComponent",id:d,children:[!1,w.jsxs(Un,{children:[c&&w.jsxs(Un.Text,{children:[c,w.jsx(ln,{docString:i})]}),w.jsx(ot.Control,{type:"text",value:g,disabled:r,onChange:()=>{},name:d,onKeyDown:k,onBlur:y,className:s&&!r?"instantUpdate":""}),a&&w.jsx(Un.Text,{children:a})]})]})});zl.displayName="NumberComponent";const _s={black:"#000",white:"#fff"},lo={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},uo={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},co={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},fo={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},po={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Ri={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},X_={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Ts(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n0?Ve(di,--yt):0,ti--,Ae===10&&(ti=1,Nu--),Ae}function Et(){return Ae=yt2||Ns(Ae)>3?"":" "}function mT(e,t){for(;--t&&Et()&&!(Ae<48||Ae>102||Ae>57&&Ae<65||Ae>70&&Ae<97););return Hs(e,qa()+(t<6&&En()==32&&Et()==32))}function Id(e){for(;Et();)switch(Ae){case e:return yt;case 34:case 39:e!==34&&e!==39&&Id(Ae);break;case 40:e===41&&Id(e);break;case 92:Et();break}return yt}function yT(e,t){for(;Et()&&e+Ae!==57;)if(e+Ae===84&&En()===47)break;return"/*"+Hs(t,yt-1)+"*"+Ru(e===47?e:Et())}function vT(e){for(;!Ns(En());)Et();return Hs(e,yt)}function gT(e){return Sx(Ya("",null,null,null,[""],e=wx(e),0,[0],e))}function Ya(e,t,n,r,o,i,s,a,l){for(var u=0,c=0,d=s,f=0,v=0,g=0,S=1,k=1,y=1,p=0,m="",E=o,C=i,x=r,b=m;k;)switch(g=p,p=Et()){case 40:if(g!=108&&Ve(b,d-1)==58){Ld(b+=ae(Qa(p),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:b+=Qa(p);break;case 9:case 10:case 13:case 32:b+=hT(g);break;case 92:b+=mT(qa()-1,7);continue;case 47:switch(En()){case 42:case 47:xa(wT(yT(Et(),qa()),t,n),l);break;default:b+="/"}break;case 123*S:a[u++]=pn(b)*y;case 125*S:case 59:case 0:switch(p){case 0:case 125:k=0;case 59+c:y==-1&&(b=ae(b,/\f/g,"")),v>0&&pn(b)-d&&xa(v>32?yv(b+";",r,n,d-1):yv(ae(b," ","")+";",r,n,d-2),l);break;case 59:b+=";";default:if(xa(x=mv(b,t,n,u,c,o,a,m,E=[],C=[],d),i),p===123)if(c===0)Ya(b,t,x,x,E,i,d,a,C);else switch(f===99&&Ve(b,3)===110?100:f){case 100:case 108:case 109:case 115:Ya(e,x,x,r&&xa(mv(e,x,x,0,0,o,a,m,o,E=[],d),C),o,C,d,a,r?E:C);break;default:Ya(b,x,x,x,[""],C,0,a,C)}}u=c=v=0,S=y=1,m=b="",d=s;break;case 58:d=1+pn(b),v=g;default:if(S<1){if(p==123)--S;else if(p==125&&S++==0&&pT()==125)continue}switch(b+=Ru(p),p*S){case 38:y=c>0?1:(b+="\f",-1);break;case 44:a[u++]=(pn(b)-1)*y,y=1;break;case 64:En()===45&&(b+=Qa(Et())),f=En(),c=d=pn(m=b+=vT(qa())),p++;break;case 45:g===45&&pn(b)==2&&(S=0)}}return i}function mv(e,t,n,r,o,i,s,a,l,u,c){for(var d=o-1,f=o===0?i:[""],v=Mh(f),g=0,S=0,k=0;g0?f[y]+" "+p:ae(p,/&\f/g,f[y])))&&(l[k++]=m);return Au(e,t,n,o===0?Lh:a,l,u,c)}function wT(e,t,n){return Au(e,t,n,mx,Ru(dT()),Rs(e,2,-2),0)}function yv(e,t,n,r){return Au(e,t,n,Ih,Rs(e,0,r),Rs(e,r+1,-1),r)}function Fo(e,t){for(var n="",r=Mh(e),o=0;o6)switch(Ve(e,t+1)){case 109:if(Ve(e,t+4)!==45)break;case 102:return ae(e,/(.+:)(.+)-([^]+)/,"$1"+se+"$2-$3$1"+Ul+(Ve(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ld(e,"stretch")?xx(ae(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ve(e,t+1)!==115)break;case 6444:switch(Ve(e,pn(e)-3-(~Ld(e,"!important")&&10))){case 107:return ae(e,":",":"+se)+e;case 101:return ae(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+se+(Ve(e,14)===45?"inline-":"")+"box$3$1"+se+"$2$3$1"+Je+"$2box$3")+e}break;case 5936:switch(Ve(e,t+11)){case 114:return se+e+Je+ae(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return se+e+Je+ae(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return se+e+Je+ae(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return se+e+Je+e+e}return e}var _T=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Ih:t.return=xx(t.value,t.length);break;case yx:return Fo([Ni(t,{value:ae(t.value,"@","@"+se)})],o);case Lh:if(t.length)return fT(t.props,function(i){switch(cT(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Fo([Ni(t,{props:[ae(i,/:(read-\w+)/,":"+Ul+"$1")]})],o);case"::placeholder":return Fo([Ni(t,{props:[ae(i,/:(plac\w+)/,":"+se+"input-$1")]}),Ni(t,{props:[ae(i,/:(plac\w+)/,":"+Ul+"$1")]}),Ni(t,{props:[ae(i,/:(plac\w+)/,Je+"input-$1")]})],o)}return""})}},TT=[_T],Ex=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var k=S.getAttribute("data-emotion");k.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var o=t.stylisPlugins||TT,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var k=S.getAttribute("data-emotion").split(" "),y=1;y=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var zT={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},UT=/[A-Z]|^ms/g,WT=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Tx=function(t){return t.charCodeAt(1)===45},gv=function(t){return t!=null&&typeof t!="boolean"},ef=hx(function(e){return Tx(e)?e:e.replace(UT,"-$&").toLowerCase()}),wv=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(WT,function(r,o,i){return hn={name:o,styles:i,next:hn},o})}return zT[t]!==1&&!Tx(t)&&typeof n=="number"&&n!==0?n+"px":n};function As(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return hn={name:n.name,styles:n.styles,next:hn},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)hn={name:r.name,styles:r.styles,next:hn},r=r.next;var o=n.styles+";";return o}return HT(e,t,n)}case"function":{if(e!==void 0){var i=hn,s=n(e);return hn=i,As(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function HT(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?YT:XT},bv=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},JT=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return $x(n,r,o),KT(function(){return _x(n,r,o)}),null},ZT=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=bv(t,n,r),l=a||kv(o),u=!l("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,v=1;vt(nR(o)?n:o):t;return w.jsx(qT,{styles:r})}function oR(e,t){return Md(e,t)}const iR=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},sR=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:rR,StyledEngineProvider:tR,ThemeContext:Uh,css:jx,default:oR,internal_processStyles:iR,keyframes:QT},Symbol.toStringTag,{value:"Module"}));function lr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Lx(e){if(!lr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Lx(e[n])}),t}function kn(e,t,n={clone:!0}){const r=n.clone?j({},e):e;return lr(e)&&lr(t)&&Object.keys(t).forEach(o=>{lr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&lr(e[o])?r[o]=kn(e[o],t[o],n):n.clone?r[o]=lr(t[o])?Lx(t[o]):t[o]:r[o]=t[o]}),r}const aR=Object.freeze(Object.defineProperty({__proto__:null,default:kn,isPlainObject:lr},Symbol.toStringTag,{value:"Module"})),lR=["values","unit","step"],uR=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>j({},n,{[r.key]:r.val}),{})};function Ix(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=an(e,lR),i=uR(t),s=Object.keys(i);function a(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,v){const g=s.indexOf(v);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(g!==-1&&typeof t[s[g]]=="number"?t[s[g]]:v)-r/100}${n})`}function c(f){return s.indexOf(f)+1`@media (min-width:${Wh[e]}px)`};function Qn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Cv;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const i=r.breakpoints||Cv;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||Wh).indexOf(a)!==-1){const l=i.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function fR(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function dR(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function tn(e){if(typeof e!="string")throw new Error(Ts(7));return e.charAt(0).toUpperCase()+e.slice(1)}const pR=Object.freeze(Object.defineProperty({__proto__:null,default:tn},Symbol.toStringTag,{value:"Module"}));function Wu(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Wl(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Wu(e,n)||r,t&&(o=t(o,r,e)),o}function Te(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,u=Wu(l,r)||{};return Qn(s,a,d=>{let f=Wl(u,o,d);return d===f&&typeof d=="string"&&(f=Wl(u,o,`${t}${d==="default"?"":tn(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function hR(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const mR={m:"margin",p:"padding"},yR={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ov={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},vR=hR(e=>{if(e.length>2)if(Ov[e])e=Ov[e];else return[e];const[t,n]=e.split(""),r=mR[t],o=yR[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Hh=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Vh=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Hh,...Vh];function Vs(e,t,n,r){var o;const i=(o=Wu(e,t,!1))!=null?o:n;return typeof i=="number"?s=>typeof s=="string"?s:i*s:Array.isArray(i)?s=>typeof s=="string"?s:i[s]:typeof i=="function"?i:()=>{}}function Mx(e){return Vs(e,"spacing",8)}function Ks(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function gR(e,t){return n=>e.reduce((r,o)=>(r[o]=Ks(t,n),r),{})}function wR(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=vR(n),i=gR(o,r),s=e[n];return Qn(e,s,i)}function Bx(e,t){const n=Mx(e.theme);return Object.keys(e).map(r=>wR(e,t,r,n)).reduce(ns,{})}function Ce(e){return Bx(e,Hh)}Ce.propTypes={};Ce.filterProps=Hh;function Oe(e){return Bx(e,Vh)}Oe.propTypes={};Oe.filterProps=Vh;function SR(e=8){if(e.mui)return e;const t=Mx({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function Hu(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?ns(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Lt(e){return typeof e!="number"?e:`${e}px solid`}function Ht(e,t){return Te({prop:e,themeKey:"borders",transform:t})}const xR=Ht("border",Lt),ER=Ht("borderTop",Lt),kR=Ht("borderRight",Lt),bR=Ht("borderBottom",Lt),CR=Ht("borderLeft",Lt),OR=Ht("borderColor"),$R=Ht("borderTopColor"),_R=Ht("borderRightColor"),TR=Ht("borderBottomColor"),RR=Ht("borderLeftColor"),NR=Ht("outline",Lt),AR=Ht("outlineColor"),Vu=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Vs(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Ks(t,r)});return Qn(e,e.borderRadius,n)}return null};Vu.propTypes={};Vu.filterProps=["borderRadius"];Hu(xR,ER,kR,bR,CR,OR,$R,_R,TR,RR,Vu,NR,AR);const Ku=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Vs(e.theme,"spacing",8),n=r=>({gap:Ks(t,r)});return Qn(e,e.gap,n)}return null};Ku.propTypes={};Ku.filterProps=["gap"];const Gu=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Vs(e.theme,"spacing",8),n=r=>({columnGap:Ks(t,r)});return Qn(e,e.columnGap,n)}return null};Gu.propTypes={};Gu.filterProps=["columnGap"];const qu=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Vs(e.theme,"spacing",8),n=r=>({rowGap:Ks(t,r)});return Qn(e,e.rowGap,n)}return null};qu.propTypes={};qu.filterProps=["rowGap"];const PR=Te({prop:"gridColumn"}),jR=Te({prop:"gridRow"}),LR=Te({prop:"gridAutoFlow"}),IR=Te({prop:"gridAutoColumns"}),MR=Te({prop:"gridAutoRows"}),BR=Te({prop:"gridTemplateColumns"}),DR=Te({prop:"gridTemplateRows"}),FR=Te({prop:"gridTemplateAreas"}),zR=Te({prop:"gridArea"});Hu(Ku,Gu,qu,PR,jR,LR,IR,MR,BR,DR,FR,zR);function zo(e,t){return t==="grey"?t:e}const UR=Te({prop:"color",themeKey:"palette",transform:zo}),WR=Te({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:zo}),HR=Te({prop:"backgroundColor",themeKey:"palette",transform:zo});Hu(UR,WR,HR);function wt(e){return e<=1&&e!==0?`${e*100}%`:e}const VR=Te({prop:"width",transform:wt}),Kh=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Wh[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:wt(n)}};return Qn(e,e.maxWidth,t)}return null};Kh.filterProps=["maxWidth"];const KR=Te({prop:"minWidth",transform:wt}),GR=Te({prop:"height",transform:wt}),qR=Te({prop:"maxHeight",transform:wt}),QR=Te({prop:"minHeight",transform:wt});Te({prop:"size",cssProperty:"width",transform:wt});Te({prop:"size",cssProperty:"height",transform:wt});const YR=Te({prop:"boxSizing"});Hu(VR,Kh,KR,GR,qR,QR,YR);const XR={border:{themeKey:"borders",transform:Lt},borderTop:{themeKey:"borders",transform:Lt},borderRight:{themeKey:"borders",transform:Lt},borderBottom:{themeKey:"borders",transform:Lt},borderLeft:{themeKey:"borders",transform:Lt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Lt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Vu},color:{themeKey:"palette",transform:zo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:zo},backgroundColor:{themeKey:"palette",transform:zo},p:{style:Oe},pt:{style:Oe},pr:{style:Oe},pb:{style:Oe},pl:{style:Oe},px:{style:Oe},py:{style:Oe},padding:{style:Oe},paddingTop:{style:Oe},paddingRight:{style:Oe},paddingBottom:{style:Oe},paddingLeft:{style:Oe},paddingX:{style:Oe},paddingY:{style:Oe},paddingInline:{style:Oe},paddingInlineStart:{style:Oe},paddingInlineEnd:{style:Oe},paddingBlock:{style:Oe},paddingBlockStart:{style:Oe},paddingBlockEnd:{style:Oe},m:{style:Ce},mt:{style:Ce},mr:{style:Ce},mb:{style:Ce},ml:{style:Ce},mx:{style:Ce},my:{style:Ce},margin:{style:Ce},marginTop:{style:Ce},marginRight:{style:Ce},marginBottom:{style:Ce},marginLeft:{style:Ce},marginX:{style:Ce},marginY:{style:Ce},marginInline:{style:Ce},marginInlineStart:{style:Ce},marginInlineEnd:{style:Ce},marginBlock:{style:Ce},marginBlockStart:{style:Ce},marginBlockEnd:{style:Ce},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ku},rowGap:{style:qu},columnGap:{style:Gu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:wt},maxWidth:{style:Kh},minWidth:{transform:wt},height:{transform:wt},maxHeight:{transform:wt},minHeight:{transform:wt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Gs=XR;function JR(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function ZR(e,t){return typeof e=="function"?e(t):e}function Dx(){function e(n,r,o,i){const s={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:d}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const f=Wu(o,u)||{};return d?d(s):Qn(s,r,g=>{let S=Wl(f,c,g);return g===S&&typeof g=="string"&&(S=Wl(f,c,`${n}${g==="default"?"":tn(g)}`,g)),l===!1?S:{[l]:S}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:Gs;function a(l){let u=l;if(typeof l=="function")u=l(i);else if(typeof l!="object")return l;if(!u)return null;const c=fR(i.breakpoints),d=Object.keys(c);let f=c;return Object.keys(u).forEach(v=>{const g=ZR(u[v],i);if(g!=null)if(typeof g=="object")if(s[v])f=ns(f,e(v,g,i,s));else{const S=Qn({theme:i},g,k=>({[v]:k}));JR(S,g)?f[v]=t({sx:g,theme:i}):f=ns(f,S)}else f=ns(f,e(v,g,i,s))}),dR(d,f)}return Array.isArray(o)?o.map(a):a(o)}return t}const Fx=Dx();Fx.filterProps=["sx"];const Gh=Fx;function zx(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const eN=["breakpoints","palette","spacing","shape"];function Ux(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=an(e,eN),a=Ix(n),l=SR(o);let u=kn({breakpoints:a,direction:"ltr",components:{},palette:j({mode:"light"},r),spacing:l,shape:j({},cR,i)},s);return u.applyStyles=zx,u=t.reduce((c,d)=>kn(c,d),u),u.unstable_sxConfig=j({},Gs,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return Gh({sx:d,theme:this})},u}const tN=Object.freeze(Object.defineProperty({__proto__:null,default:Ux,private_createBreakpoints:Ix,unstable_applyStyles:zx},Symbol.toStringTag,{value:"Module"})),nN=["sx"],rN=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Gs;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function oN(e){const{sx:t}=e,n=an(e,nN),{systemProps:r,otherProps:o}=rN(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return lr(a)?j({},r,a):r}:i=j({},r,t),j({},o,{sx:i})}const iN=Object.freeze(Object.defineProperty({__proto__:null,default:Gh,extendSxProp:oN,unstable_createStyleFunctionSx:Dx,unstable_defaultSxConfig:Gs},Symbol.toStringTag,{value:"Module"})),$v=e=>e,sN=()=>{let e=$v;return{configure(t){e=t},generate(t){return e(t)},reset(){e=$v}}},aN=sN();function Wx(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{r[o]=Hx(e,o,n)}),r}var Vx={exports:{}},fe={};/** + */var ze=typeof Symbol=="function"&&Symbol.for,Bh=ze?Symbol.for("react.element"):60103,Dh=ze?Symbol.for("react.portal"):60106,Pu=ze?Symbol.for("react.fragment"):60107,ju=ze?Symbol.for("react.strict_mode"):60108,Lu=ze?Symbol.for("react.profiler"):60114,Iu=ze?Symbol.for("react.provider"):60109,Mu=ze?Symbol.for("react.context"):60110,Fh=ze?Symbol.for("react.async_mode"):60111,Bu=ze?Symbol.for("react.concurrent_mode"):60111,Du=ze?Symbol.for("react.forward_ref"):60112,Fu=ze?Symbol.for("react.suspense"):60113,RT=ze?Symbol.for("react.suspense_list"):60120,zu=ze?Symbol.for("react.memo"):60115,Uu=ze?Symbol.for("react.lazy"):60116,NT=ze?Symbol.for("react.block"):60121,AT=ze?Symbol.for("react.fundamental"):60117,PT=ze?Symbol.for("react.responder"):60118,jT=ze?Symbol.for("react.scope"):60119;function $t(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Bh:switch(e=e.type,e){case Fh:case Bu:case Pu:case Lu:case ju:case Fu:return e;default:switch(e=e&&e.$$typeof,e){case Mu:case Du:case Uu:case zu:case Iu:return e;default:return t}}case Dh:return t}}}function bx(e){return $t(e)===Bu}ce.AsyncMode=Fh;ce.ConcurrentMode=Bu;ce.ContextConsumer=Mu;ce.ContextProvider=Iu;ce.Element=Bh;ce.ForwardRef=Du;ce.Fragment=Pu;ce.Lazy=Uu;ce.Memo=zu;ce.Portal=Dh;ce.Profiler=Lu;ce.StrictMode=ju;ce.Suspense=Fu;ce.isAsyncMode=function(e){return bx(e)||$t(e)===Fh};ce.isConcurrentMode=bx;ce.isContextConsumer=function(e){return $t(e)===Mu};ce.isContextProvider=function(e){return $t(e)===Iu};ce.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Bh};ce.isForwardRef=function(e){return $t(e)===Du};ce.isFragment=function(e){return $t(e)===Pu};ce.isLazy=function(e){return $t(e)===Uu};ce.isMemo=function(e){return $t(e)===zu};ce.isPortal=function(e){return $t(e)===Dh};ce.isProfiler=function(e){return $t(e)===Lu};ce.isStrictMode=function(e){return $t(e)===ju};ce.isSuspense=function(e){return $t(e)===Fu};ce.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Pu||e===Bu||e===Lu||e===ju||e===Fu||e===RT||typeof e=="object"&&e!==null&&(e.$$typeof===Uu||e.$$typeof===zu||e.$$typeof===Iu||e.$$typeof===Mu||e.$$typeof===Du||e.$$typeof===AT||e.$$typeof===PT||e.$$typeof===jT||e.$$typeof===NT)};ce.typeOf=$t;kx.exports=ce;var LT=kx.exports,Cx=LT,IT={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},MT={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ox={};Ox[Cx.ForwardRef]=IT;Ox[Cx.Memo]=MT;var BT=!0;function DT(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var $x=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||BT===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},_x=function(t,n,r){$x(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function FT(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var zT={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},UT=/[A-Z]|^ms/g,WT=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Tx=function(t){return t.charCodeAt(1)===45},gv=function(t){return t!=null&&typeof t!="boolean"},ef=hx(function(e){return Tx(e)?e:e.replace(UT,"-$&").toLowerCase()}),wv=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(WT,function(r,o,i){return hn={name:o,styles:i,next:hn},o})}return zT[t]!==1&&!Tx(t)&&typeof n=="number"&&n!==0?n+"px":n};function As(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return hn={name:n.name,styles:n.styles,next:hn},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)hn={name:r.name,styles:r.styles,next:hn},r=r.next;var o=n.styles+";";return o}return HT(e,t,n)}case"function":{if(e!==void 0){var i=hn,s=n(e);return hn=i,As(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function HT(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?YT:XT},bv=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},JT=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return $x(n,r,o),KT(function(){return _x(n,r,o)}),null},ZT=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=bv(t,n,r),l=a||kv(o),u=!l("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,v=1;vt(nR(o)?n:o):t;return w.jsx(qT,{styles:r})}function oR(e,t){return Md(e,t)}const iR=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},sR=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:rR,StyledEngineProvider:tR,ThemeContext:Uh,css:jx,default:oR,internal_processStyles:iR,keyframes:QT},Symbol.toStringTag,{value:"Module"}));function lr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Lx(e){if(!lr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Lx(e[n])}),t}function kn(e,t,n={clone:!0}){const r=n.clone?j({},e):e;return lr(e)&&lr(t)&&Object.keys(t).forEach(o=>{lr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&lr(e[o])?r[o]=kn(e[o],t[o],n):n.clone?r[o]=lr(t[o])?Lx(t[o]):t[o]:r[o]=t[o]}),r}const aR=Object.freeze(Object.defineProperty({__proto__:null,default:kn,isPlainObject:lr},Symbol.toStringTag,{value:"Module"})),lR=["values","unit","step"],uR=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>j({},n,{[r.key]:r.val}),{})};function Ix(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=an(e,lR),i=uR(t),s=Object.keys(i);function a(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,v){const g=s.indexOf(v);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(g!==-1&&typeof t[s[g]]=="number"?t[s[g]]:v)-r/100}${n})`}function c(f){return s.indexOf(f)+1`@media (min-width:${Wh[e]}px)`};function Qn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Cv;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const i=r.breakpoints||Cv;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||Wh).indexOf(a)!==-1){const l=i.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function fR(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function dR(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function tn(e){if(typeof e!="string")throw new Error(Ts(7));return e.charAt(0).toUpperCase()+e.slice(1)}const pR=Object.freeze(Object.defineProperty({__proto__:null,default:tn},Symbol.toStringTag,{value:"Module"}));function Wu(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Wl(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Wu(e,n)||r,t&&(o=t(o,r,e)),o}function Te(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,u=Wu(l,r)||{};return Qn(s,a,d=>{let f=Wl(u,o,d);return d===f&&typeof d=="string"&&(f=Wl(u,o,`${t}${d==="default"?"":tn(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function hR(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const mR={m:"margin",p:"padding"},yR={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ov={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},vR=hR(e=>{if(e.length>2)if(Ov[e])e=Ov[e];else return[e];const[t,n]=e.split(""),r=mR[t],o=yR[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Hh=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Vh=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Hh,...Vh];function Vs(e,t,n,r){var o;const i=(o=Wu(e,t,!1))!=null?o:n;return typeof i=="number"?s=>typeof s=="string"?s:i*s:Array.isArray(i)?s=>typeof s=="string"?s:i[s]:typeof i=="function"?i:()=>{}}function Mx(e){return Vs(e,"spacing",8)}function Ks(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function gR(e,t){return n=>e.reduce((r,o)=>(r[o]=Ks(t,n),r),{})}function wR(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=vR(n),i=gR(o,r),s=e[n];return Qn(e,s,i)}function Bx(e,t){const n=Mx(e.theme);return Object.keys(e).map(r=>wR(e,t,r,n)).reduce(ns,{})}function Ce(e){return Bx(e,Hh)}Ce.propTypes={};Ce.filterProps=Hh;function Oe(e){return Bx(e,Vh)}Oe.propTypes={};Oe.filterProps=Vh;function SR(e=8){if(e.mui)return e;const t=Mx({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function Hu(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?ns(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Lt(e){return typeof e!="number"?e:`${e}px solid`}function Ht(e,t){return Te({prop:e,themeKey:"borders",transform:t})}const xR=Ht("border",Lt),ER=Ht("borderTop",Lt),kR=Ht("borderRight",Lt),bR=Ht("borderBottom",Lt),CR=Ht("borderLeft",Lt),OR=Ht("borderColor"),$R=Ht("borderTopColor"),_R=Ht("borderRightColor"),TR=Ht("borderBottomColor"),RR=Ht("borderLeftColor"),NR=Ht("outline",Lt),AR=Ht("outlineColor"),Vu=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Vs(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Ks(t,r)});return Qn(e,e.borderRadius,n)}return null};Vu.propTypes={};Vu.filterProps=["borderRadius"];Hu(xR,ER,kR,bR,CR,OR,$R,_R,TR,RR,Vu,NR,AR);const Ku=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Vs(e.theme,"spacing",8),n=r=>({gap:Ks(t,r)});return Qn(e,e.gap,n)}return null};Ku.propTypes={};Ku.filterProps=["gap"];const Gu=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Vs(e.theme,"spacing",8),n=r=>({columnGap:Ks(t,r)});return Qn(e,e.columnGap,n)}return null};Gu.propTypes={};Gu.filterProps=["columnGap"];const qu=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Vs(e.theme,"spacing",8),n=r=>({rowGap:Ks(t,r)});return Qn(e,e.rowGap,n)}return null};qu.propTypes={};qu.filterProps=["rowGap"];const PR=Te({prop:"gridColumn"}),jR=Te({prop:"gridRow"}),LR=Te({prop:"gridAutoFlow"}),IR=Te({prop:"gridAutoColumns"}),MR=Te({prop:"gridAutoRows"}),BR=Te({prop:"gridTemplateColumns"}),DR=Te({prop:"gridTemplateRows"}),FR=Te({prop:"gridTemplateAreas"}),zR=Te({prop:"gridArea"});Hu(Ku,Gu,qu,PR,jR,LR,IR,MR,BR,DR,FR,zR);function zo(e,t){return t==="grey"?t:e}const UR=Te({prop:"color",themeKey:"palette",transform:zo}),WR=Te({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:zo}),HR=Te({prop:"backgroundColor",themeKey:"palette",transform:zo});Hu(UR,WR,HR);function wt(e){return e<=1&&e!==0?`${e*100}%`:e}const VR=Te({prop:"width",transform:wt}),Kh=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Wh[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:wt(n)}};return Qn(e,e.maxWidth,t)}return null};Kh.filterProps=["maxWidth"];const KR=Te({prop:"minWidth",transform:wt}),GR=Te({prop:"height",transform:wt}),qR=Te({prop:"maxHeight",transform:wt}),QR=Te({prop:"minHeight",transform:wt});Te({prop:"size",cssProperty:"width",transform:wt});Te({prop:"size",cssProperty:"height",transform:wt});const YR=Te({prop:"boxSizing"});Hu(VR,Kh,KR,GR,qR,QR,YR);const XR={border:{themeKey:"borders",transform:Lt},borderTop:{themeKey:"borders",transform:Lt},borderRight:{themeKey:"borders",transform:Lt},borderBottom:{themeKey:"borders",transform:Lt},borderLeft:{themeKey:"borders",transform:Lt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Lt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Vu},color:{themeKey:"palette",transform:zo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:zo},backgroundColor:{themeKey:"palette",transform:zo},p:{style:Oe},pt:{style:Oe},pr:{style:Oe},pb:{style:Oe},pl:{style:Oe},px:{style:Oe},py:{style:Oe},padding:{style:Oe},paddingTop:{style:Oe},paddingRight:{style:Oe},paddingBottom:{style:Oe},paddingLeft:{style:Oe},paddingX:{style:Oe},paddingY:{style:Oe},paddingInline:{style:Oe},paddingInlineStart:{style:Oe},paddingInlineEnd:{style:Oe},paddingBlock:{style:Oe},paddingBlockStart:{style:Oe},paddingBlockEnd:{style:Oe},m:{style:Ce},mt:{style:Ce},mr:{style:Ce},mb:{style:Ce},ml:{style:Ce},mx:{style:Ce},my:{style:Ce},margin:{style:Ce},marginTop:{style:Ce},marginRight:{style:Ce},marginBottom:{style:Ce},marginLeft:{style:Ce},marginX:{style:Ce},marginY:{style:Ce},marginInline:{style:Ce},marginInlineStart:{style:Ce},marginInlineEnd:{style:Ce},marginBlock:{style:Ce},marginBlockStart:{style:Ce},marginBlockEnd:{style:Ce},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ku},rowGap:{style:qu},columnGap:{style:Gu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:wt},maxWidth:{style:Kh},minWidth:{transform:wt},height:{transform:wt},maxHeight:{transform:wt},minHeight:{transform:wt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Gs=XR;function JR(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function ZR(e,t){return typeof e=="function"?e(t):e}function Dx(){function e(n,r,o,i){const s={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:d}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const f=Wu(o,u)||{};return d?d(s):Qn(s,r,g=>{let S=Wl(f,c,g);return g===S&&typeof g=="string"&&(S=Wl(f,c,`${n}${g==="default"?"":tn(g)}`,g)),l===!1?S:{[l]:S}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:Gs;function a(l){let u=l;if(typeof l=="function")u=l(i);else if(typeof l!="object")return l;if(!u)return null;const c=fR(i.breakpoints),d=Object.keys(c);let f=c;return Object.keys(u).forEach(v=>{const g=ZR(u[v],i);if(g!=null)if(typeof g=="object")if(s[v])f=ns(f,e(v,g,i,s));else{const S=Qn({theme:i},g,k=>({[v]:k}));JR(S,g)?f[v]=t({sx:g,theme:i}):f=ns(f,S)}else f=ns(f,e(v,g,i,s))}),dR(d,f)}return Array.isArray(o)?o.map(a):a(o)}return t}const Fx=Dx();Fx.filterProps=["sx"];const Gh=Fx;function zx(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const eN=["breakpoints","palette","spacing","shape"];function Ux(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=an(e,eN),a=Ix(n),l=SR(o);let u=kn({breakpoints:a,direction:"ltr",components:{},palette:j({mode:"light"},r),spacing:l,shape:j({},cR,i)},s);return u.applyStyles=zx,u=t.reduce((c,d)=>kn(c,d),u),u.unstable_sxConfig=j({},Gs,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return Gh({sx:d,theme:this})},u}const tN=Object.freeze(Object.defineProperty({__proto__:null,default:Ux,private_createBreakpoints:Ix,unstable_applyStyles:zx},Symbol.toStringTag,{value:"Module"})),nN=["sx"],rN=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Gs;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function oN(e){const{sx:t}=e,n=an(e,nN),{systemProps:r,otherProps:o}=rN(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return lr(a)?j({},r,a):r}:i=j({},r,t),j({},o,{sx:i})}const iN=Object.freeze(Object.defineProperty({__proto__:null,default:Gh,extendSxProp:oN,unstable_createStyleFunctionSx:Dx,unstable_defaultSxConfig:Gs},Symbol.toStringTag,{value:"Module"})),$v=e=>e,sN=()=>{let e=$v;return{configure(t){e=t},generate(t){return e(t)},reset(){e=$v}}},aN=sN();function Wx(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{r[o]=Hx(e,o,n)}),r}var Vx={exports:{}},fe={};/** * @license React * react-is.production.min.js * @@ -56,7 +56,7 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var qh=Symbol.for("react.element"),Qh=Symbol.for("react.portal"),Qu=Symbol.for("react.fragment"),Yu=Symbol.for("react.strict_mode"),Xu=Symbol.for("react.profiler"),Ju=Symbol.for("react.provider"),Zu=Symbol.for("react.context"),cN=Symbol.for("react.server_context"),ec=Symbol.for("react.forward_ref"),tc=Symbol.for("react.suspense"),nc=Symbol.for("react.suspense_list"),rc=Symbol.for("react.memo"),oc=Symbol.for("react.lazy"),fN=Symbol.for("react.offscreen"),Kx;Kx=Symbol.for("react.module.reference");function Vt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case qh:switch(e=e.type,e){case Qu:case Xu:case Yu:case tc:case nc:return e;default:switch(e=e&&e.$$typeof,e){case cN:case Zu:case ec:case oc:case rc:case Ju:return e;default:return t}}case Qh:return t}}}fe.ContextConsumer=Zu;fe.ContextProvider=Ju;fe.Element=qh;fe.ForwardRef=ec;fe.Fragment=Qu;fe.Lazy=oc;fe.Memo=rc;fe.Portal=Qh;fe.Profiler=Xu;fe.StrictMode=Yu;fe.Suspense=tc;fe.SuspenseList=nc;fe.isAsyncMode=function(){return!1};fe.isConcurrentMode=function(){return!1};fe.isContextConsumer=function(e){return Vt(e)===Zu};fe.isContextProvider=function(e){return Vt(e)===Ju};fe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===qh};fe.isForwardRef=function(e){return Vt(e)===ec};fe.isFragment=function(e){return Vt(e)===Qu};fe.isLazy=function(e){return Vt(e)===oc};fe.isMemo=function(e){return Vt(e)===rc};fe.isPortal=function(e){return Vt(e)===Qh};fe.isProfiler=function(e){return Vt(e)===Xu};fe.isStrictMode=function(e){return Vt(e)===Yu};fe.isSuspense=function(e){return Vt(e)===tc};fe.isSuspenseList=function(e){return Vt(e)===nc};fe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Qu||e===Xu||e===Yu||e===tc||e===nc||e===fN||typeof e=="object"&&e!==null&&(e.$$typeof===oc||e.$$typeof===rc||e.$$typeof===Ju||e.$$typeof===Zu||e.$$typeof===ec||e.$$typeof===Kx||e.getModuleId!==void 0)};fe.typeOf=Vt;Vx.exports=fe;var _v=Vx.exports;const dN=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Gx(e){const t=`${e}`.match(dN);return t&&t[1]||""}function qx(e,t=""){return e.displayName||e.name||Gx(e)||t}function Tv(e,t,n){const r=qx(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function pN(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return qx(e,"Component");if(typeof e=="object")switch(e.$$typeof){case _v.ForwardRef:return Tv(e,e.render,"ForwardRef");case _v.Memo:return Tv(e,e.type,"memo");default:return}}}const hN=Object.freeze(Object.defineProperty({__proto__:null,default:pN,getFunctionName:Gx},Symbol.toStringTag,{value:"Module"}));function Dd(e,t){const n=j({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=j({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=j({},i),Object.keys(o).forEach(s=>{n[r][s]=Dd(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}const Qx=typeof window<"u"?h.useLayoutEffect:h.useEffect;function go(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const mN=Object.freeze(Object.defineProperty({__proto__:null,default:go},Symbol.toStringTag,{value:"Module"}));function Xa(e){return e&&e.ownerDocument||document}function yN(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function vN({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=h.useRef(e!==void 0),[i,s]=h.useState(t),a=o?e:i,l=h.useCallback(u=>{o||s(u)},[]);return[a,l]}function nf(e){const t=h.useRef(e);return Qx(()=>{t.current=e}),h.useRef((...n)=>(0,t.current)(...n)).current}function Fd(...e){return h.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{yN(n,t)})},e)}class Yh{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Yh}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}let ic=!0,zd=!1;const gN=new Yh,wN={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function SN(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&wN[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function xN(e){e.metaKey||e.altKey||e.ctrlKey||(ic=!0)}function rf(){ic=!1}function EN(){this.visibilityState==="hidden"&&zd&&(ic=!0)}function kN(e){e.addEventListener("keydown",xN,!0),e.addEventListener("mousedown",rf,!0),e.addEventListener("pointerdown",rf,!0),e.addEventListener("touchstart",rf,!0),e.addEventListener("visibilitychange",EN,!0)}function bN(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return ic||SN(t)}function CN(){const e=h.useCallback(o=>{o!=null&&kN(o.ownerDocument)},[]),t=h.useRef(!1);function n(){return t.current?(zd=!0,gN.start(100,()=>{zd=!1}),t.current=!1,!0):!1}function r(o){return bN(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}const ON={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function $N(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,s)=>{if(s){const a=t(s);a!==""&&i.push(a),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}const _N=h.createContext(),TN=()=>{const e=h.useContext(_N);return e??!1},RN=h.createContext(void 0);function NN(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Dd(o.defaultProps,r):!o.styleOverrides&&!o.variants?Dd(o,r):r}function AN({props:e,name:t}){const n=h.useContext(RN);return NN({props:e,name:t,theme:{components:n}})}function PN(e,t){return j({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Re={},Yx={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Yx);var Xx=Yx.exports;const jN=Yn(J_),LN=Yn(mN);var Jx=Xx;Object.defineProperty(Re,"__esModule",{value:!0});var Rv=Re.alpha=nE;Re.blend=KN;Re.colorChannel=void 0;var Ud=Re.darken=Jh;Re.decomposeColor=Wt;Re.emphasize=rE;var IN=Re.getContrastRatio=zN;Re.getLuminance=Hl;Re.hexToRgb=Zx;Re.hslToRgb=tE;var Wd=Re.lighten=Zh;Re.private_safeAlpha=UN;Re.private_safeColorChannel=void 0;Re.private_safeDarken=WN;Re.private_safeEmphasize=VN;Re.private_safeLighten=HN;Re.recomposeColor=pi;Re.rgbToHex=FN;var Nv=Jx(jN),MN=Jx(LN);function Xh(e,t=0,n=1){return(0,MN.default)(e,t,n)}function Zx(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function BN(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Wt(e){if(e.type)return e;if(e.charAt(0)==="#")return Wt(Zx(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,Nv.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,Nv.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const eE=e=>{const t=Wt(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Re.colorChannel=eE;const DN=(e,t)=>{try{return eE(e)}catch{return e}};Re.private_safeColorChannel=DN;function pi(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function FN(e){if(e.indexOf("#")===0)return e;const{values:t}=Wt(e);return`#${t.map((n,r)=>BN(r===3?Math.round(255*n):n)).join("")}`}function tE(e){e=Wt(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(u,c=(u+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),pi({type:a,values:l})}function Hl(e){e=Wt(e);let t=e.type==="hsl"||e.type==="hsla"?Wt(tE(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function zN(e,t){const n=Hl(e),r=Hl(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function nE(e,t){return e=Wt(e),t=Xh(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,pi(e)}function UN(e,t,n){try{return nE(e,t)}catch{return e}}function Jh(e,t){if(e=Wt(e),t=Xh(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return pi(e)}function WN(e,t,n){try{return Jh(e,t)}catch{return e}}function Zh(e,t){if(e=Wt(e),t=Xh(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return pi(e)}function HN(e,t,n){try{return Zh(e,t)}catch{return e}}function rE(e,t=.15){return Hl(e)>.5?Jh(e,t):Zh(e,t)}function VN(e,t,n){try{return rE(e,t)}catch{return e}}function KN(e,t,n,r=1){const o=(l,u)=>Math.round((l**(1/r)*(1-n)+u**(1/r)*n)**r),i=Wt(e),s=Wt(t),a=[o(i.values[0],s.values[0]),o(i.values[1],s.values[1]),o(i.values[2],s.values[2])];return pi({type:"rgb",values:a})}const GN=["mode","contrastThreshold","tonalOffset"],Av={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:_s.white,default:_s.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},of={text:{primary:_s.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:_s.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Pv(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Wd(e.main,o):t==="dark"&&(e.dark=Ud(e.main,i)))}function qN(e="light"){return e==="dark"?{main:co[200],light:co[50],dark:co[400]}:{main:co[700],light:co[400],dark:co[800]}}function QN(e="light"){return e==="dark"?{main:uo[200],light:uo[50],dark:uo[400]}:{main:uo[500],light:uo[300],dark:uo[700]}}function YN(e="light"){return e==="dark"?{main:lo[500],light:lo[300],dark:lo[700]}:{main:lo[700],light:lo[400],dark:lo[800]}}function XN(e="light"){return e==="dark"?{main:fo[400],light:fo[300],dark:fo[700]}:{main:fo[700],light:fo[500],dark:fo[900]}}function JN(e="light"){return e==="dark"?{main:po[400],light:po[300],dark:po[700]}:{main:po[800],light:po[500],dark:po[900]}}function ZN(e="light"){return e==="dark"?{main:Ri[400],light:Ri[300],dark:Ri[700]}:{main:"#ed6c02",light:Ri[500],dark:Ri[900]}}function eA(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=an(e,GN),i=e.primary||qN(t),s=e.secondary||QN(t),a=e.error||YN(t),l=e.info||XN(t),u=e.success||JN(t),c=e.warning||ZN(t);function d(S){return IN(S,of.text.primary)>=n?of.text.primary:Av.text.primary}const f=({color:S,name:k,mainShade:m=500,lightShade:p=300,darkShade:y=700})=>{if(S=j({},S),!S.main&&S[m]&&(S.main=S[m]),!S.hasOwnProperty("main"))throw new Error(Ts(11,k?` (${k})`:"",m));if(typeof S.main!="string")throw new Error(Ts(12,k?` (${k})`:"",JSON.stringify(S.main)));return Pv(S,"light",p,r),Pv(S,"dark",y,r),S.contrastText||(S.contrastText=d(S.main)),S},v={dark:of,light:Av};return kn(j({common:j({},_s),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:a,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:u,name:"success"}),grey:X_,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},v[t]),o)}const tA=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function nA(e){return Math.round(e*1e5)/1e5}const jv={textTransform:"uppercase"},Lv='"Roboto", "Helvetica", "Arial", sans-serif';function rA(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Lv,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=an(n,tA),v=o/14,g=d||(m=>`${m/u*v}rem`),S=(m,p,y,E,C)=>j({fontFamily:r,fontWeight:m,fontSize:g(p),lineHeight:y},r===Lv?{letterSpacing:`${nA(E/p)}em`}:{},C,c),k={h1:S(i,96,1.167,-1.5),h2:S(i,60,1.2,-.5),h3:S(s,48,1.167,0),h4:S(s,34,1.235,.25),h5:S(s,24,1.334,0),h6:S(a,20,1.6,.15),subtitle1:S(s,16,1.75,.15),subtitle2:S(a,14,1.57,.1),body1:S(s,16,1.5,.15),body2:S(s,14,1.43,.15),button:S(a,14,1.75,.4,jv),caption:S(s,12,1.66,.4),overline:S(s,12,2.66,1,jv),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return kn(j({htmlFontSize:u,pxToRem:g,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},k),f,{clone:!1})}const oA=.2,iA=.14,sA=.12;function Se(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${oA})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${iA})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${sA})`].join(",")}const aA=["none",Se(0,2,1,-1,0,1,1,0,0,1,3,0),Se(0,3,1,-2,0,2,2,0,0,1,5,0),Se(0,3,3,-2,0,3,4,0,0,1,8,0),Se(0,2,4,-1,0,4,5,0,0,1,10,0),Se(0,3,5,-1,0,5,8,0,0,1,14,0),Se(0,3,5,-1,0,6,10,0,0,1,18,0),Se(0,4,5,-2,0,7,10,1,0,2,16,1),Se(0,5,5,-3,0,8,10,1,0,3,14,2),Se(0,5,6,-3,0,9,12,1,0,3,16,2),Se(0,6,6,-3,0,10,14,1,0,4,18,3),Se(0,6,7,-4,0,11,15,1,0,4,20,3),Se(0,7,8,-4,0,12,17,2,0,5,22,4),Se(0,7,8,-4,0,13,19,2,0,5,24,4),Se(0,7,9,-4,0,14,21,2,0,5,26,4),Se(0,8,9,-5,0,15,22,2,0,6,28,5),Se(0,8,10,-5,0,16,24,2,0,6,30,5),Se(0,8,11,-5,0,17,26,2,0,6,32,5),Se(0,9,11,-5,0,18,28,2,0,7,34,6),Se(0,9,12,-6,0,19,29,2,0,7,36,6),Se(0,10,13,-6,0,20,31,3,0,8,38,7),Se(0,10,13,-6,0,21,33,3,0,8,40,7),Se(0,10,14,-6,0,22,35,3,0,8,42,7),Se(0,11,14,-7,0,23,36,3,0,9,44,8),Se(0,11,15,-7,0,24,38,3,0,9,46,8)],lA=["duration","easing","delay"],uA={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},cA={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Iv(e){return`${Math.round(e)}ms`}function fA(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function dA(e){const t=j({},uA,e.easing),n=j({},cA,e.duration);return j({getAutoHeightDuration:fA,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0}=i;return an(i,lA),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof s=="string"?s:Iv(s)} ${a} ${typeof l=="string"?l:Iv(l)}`).join(",")}},e,{easing:t,duration:n})}const pA={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},hA=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function mA(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=an(e,hA);if(e.vars)throw new Error(Ts(18));const a=eA(r),l=Ux(e);let u=kn(l,{mixins:PN(l.breakpoints,n),palette:a,shadows:aA.slice(),typography:rA(a,i),transitions:dA(o),zIndex:j({},pA)});return u=kn(u,s),u=t.reduce((c,d)=>kn(c,d),u),u.unstable_sxConfig=j({},Gs,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return Gh({sx:d,theme:this})},u}const yA=mA();var qs={},sf={exports:{}},Mv;function vA(){return Mv||(Mv=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.indexOf(i)>=0)continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(sf)),sf.exports}const gA=Yn(sR),wA=Yn(aR),SA=Yn(pR),xA=Yn(hN),EA=Yn(tN),kA=Yn(iN);var hi=Xx;Object.defineProperty(qs,"__esModule",{value:!0});var bA=qs.default=MA;qs.shouldForwardProp=Ja;qs.systemDefaultTheme=void 0;var Rt=hi(Px()),Hd=hi(vA()),Bv=NA(gA),CA=wA;hi(SA);hi(xA);var OA=hi(EA),$A=hi(kA);const _A=["ownerState"],TA=["variants"],RA=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function oE(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(oE=function(r){return r?n:t})(e)}function NA(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=oE(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function AA(e){return Object.keys(e).length===0}function PA(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Ja(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const jA=qs.systemDefaultTheme=(0,OA.default)(),LA=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Ea({defaultTheme:e,theme:t,themeId:n}){return AA(t)?e:t[n]||t}function IA(e){return e?(t,n)=>n[e]:null}function Za(e,t){let{ownerState:n}=t,r=(0,Hd.default)(t,_A);const o=typeof e=="function"?e((0,Rt.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Za(i,(0,Rt.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=(0,Hd.default)(o,TA);return i.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props((0,Rt.default)({ownerState:n},r,n)):Object.keys(l.props).forEach(c=>{(n==null?void 0:n[c])!==l.props[c]&&r[c]!==l.props[c]&&(u=!1)}),u&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style((0,Rt.default)({ownerState:n},r,n)):l.style))}),a}return o}function MA(e={}){const{themeId:t,defaultTheme:n=jA,rootShouldForwardProp:r=Ja,slotShouldForwardProp:o=Ja}=e,i=s=>(0,$A.default)((0,Rt.default)({},s,{theme:Ea((0,Rt.default)({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{(0,Bv.internal_processStyles)(s,C=>C.filter(x=>!(x!=null&&x.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f=IA(LA(u))}=a,v=(0,Hd.default)(a,RA),g=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,S=d||!1;let k,m=Ja;u==="Root"||u==="root"?m=r:u?m=o:PA(s)&&(m=void 0);const p=(0,Bv.default)(s,(0,Rt.default)({shouldForwardProp:m,label:k},v)),y=C=>typeof C=="function"&&C.__emotion_real!==C||(0,CA.isPlainObject)(C)?x=>Za(C,(0,Rt.default)({},x,{theme:Ea({theme:x.theme,defaultTheme:n,themeId:t})})):C,E=(C,...x)=>{let b=y(C);const O=x?x.map(y):[];l&&f&&O.push(A=>{const U=Ea((0,Rt.default)({},A,{defaultTheme:n,themeId:t}));if(!U.components||!U.components[l]||!U.components[l].styleOverrides)return null;const B=U.components[l].styleOverrides,K={};return Object.entries(B).forEach(([W,G])=>{K[W]=Za(G,(0,Rt.default)({},A,{theme:U}))}),f(A,K)}),l&&!g&&O.push(A=>{var U;const B=Ea((0,Rt.default)({},A,{defaultTheme:n,themeId:t})),K=B==null||(U=B.components)==null||(U=U[l])==null?void 0:U.variants;return Za({variants:K},(0,Rt.default)({},A,{theme:B}))}),S||O.push(i);const T=O.length-x.length;if(Array.isArray(C)&&T>0){const A=new Array(T).fill("");b=[...C,...A],b.raw=[...C.raw,...A]}const $=p(b,...O);return s.muiName&&($.muiName=s.muiName),$};return p.withConfig&&(E.withConfig=p.withConfig),E}}function em(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const BA=e=>em(e)&&e!=="classes",Xr=bA({themeId:Z_,defaultTheme:yA,rootShouldForwardProp:BA});function DA(e){return AN(e)}function rs(e){return typeof e=="string"}function FA(e,t,n){return e===void 0||rs(e)?t:j({},t,{ownerState:j({},t.ownerState,n)})}function zA(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}function el(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function UA(e,t,n){return typeof e=="function"?e(t,n):e}function Dv(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function WA(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const v=Sr(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g=j({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),S=j({},n,o,r);return v.length>0&&(S.className=v),Object.keys(g).length>0&&(S.style=g),{props:S,internalRef:void 0}}const s=el(j({},o,r)),a=Dv(r),l=Dv(o),u=t(s),c=Sr(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d=j({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),f=j({},u,n,l,a);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}const HA=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function tr(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=an(e,HA),a=i?{}:UA(r,o),{props:l,internalRef:u}=WA(j({},s,{externalSlotProps:a})),c=Fd(u,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return FA(n,j({},l,{ref:c}),o)}const VA=2;function iE(e,t){return e-t}function Fv(e,t){var n;const{index:r}=(n=e.reduce((o,i,s)=>{const a=Math.abs(t-i);return o===null||a({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},YA=e=>e;let Oa;function Uv(){return Oa===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Oa=CSS.supports("touch-action","none"):Oa=!0),Oa}function XA(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:i=!1,marks:s=!1,max:a=100,min:l=0,name:u,onChange:c,onChangeCommitted:d,orientation:f="horizontal",rootRef:v,scale:g=YA,step:S=1,shiftStep:k=10,tabIndex:m,value:p}=e,y=h.useRef(),[E,C]=h.useState(-1),[x,b]=h.useState(-1),[O,T]=h.useState(!1),$=h.useRef(0),[A,U]=vN({controlled:p,default:n??l,name:"Slider"}),B=c&&((N,P,D)=>{const oe=N.nativeEvent||N,ie=new oe.constructor(oe.type,oe);Object.defineProperty(ie,"target",{writable:!0,value:{value:P,name:u}}),c(ie,P,D)}),K=Array.isArray(A);let W=K?A.slice().sort(iE):[A];W=W.map(N=>N==null?l:go(N,l,a));const G=s===!0&&S!==null?[...Array(Math.floor((a-l)/S)+1)].map((N,P)=>({value:l+S*P})):s||[],V=G.map(N=>N.value),{isFocusVisibleRef:_,onBlur:I,onFocus:F,ref:Y}=CN(),[Z,ve]=h.useState(-1),X=h.useRef(),re=Fd(Y,X),ge=Fd(v,re),Me=N=>P=>{var D;const oe=Number(P.currentTarget.getAttribute("data-index"));F(P),_.current===!0&&ve(oe),b(oe),N==null||(D=N.onFocus)==null||D.call(N,P)},qe=N=>P=>{var D;I(P),_.current===!1&&ve(-1),b(-1),N==null||(D=N.onBlur)==null||D.call(N,P)},_t=(N,P)=>{const D=Number(N.currentTarget.getAttribute("data-index")),oe=W[D],ie=V.indexOf(oe);let ee=P;if(G&&S==null){const qt=V[V.length-1];ee>qt?ee=qt:eeP=>{var D;if(S!==null){const oe=Number(P.currentTarget.getAttribute("data-index")),ie=W[oe];let ee=null;(P.key==="ArrowLeft"||P.key==="ArrowDown")&&P.shiftKey||P.key==="PageDown"?ee=Math.max(ie-k,l):((P.key==="ArrowRight"||P.key==="ArrowUp")&&P.shiftKey||P.key==="PageUp")&&(ee=Math.min(ie+k,a)),ee!==null&&(_t(P,ee),P.preventDefault())}N==null||(D=N.onKeyDown)==null||D.call(N,P)};Qx(()=>{if(r&&X.current.contains(document.activeElement)){var N;(N=document.activeElement)==null||N.blur()}},[r]),r&&E!==-1&&C(-1),r&&Z!==-1&&ve(-1);const Tn=N=>P=>{var D;(D=N.onChange)==null||D.call(N,P),_t(P,P.target.valueAsNumber)},Rn=h.useRef();let Qe=f;i&&f==="horizontal"&&(Qe+="-reverse");const de=({finger:N,move:P=!1})=>{const{current:D}=X,{width:oe,height:ie,bottom:ee,left:qt}=D.getBoundingClientRect();let un;Qe.indexOf("vertical")===0?un=(ee-N.y)/ie:un=(N.x-qt)/oe,Qe.indexOf("-reverse")!==-1&&(un=1-un);let le;if(le=KA(un,l,a),S)le=qA(le,S,l);else{const ro=Fv(V,le);le=V[ro]}le=go(le,l,a);let Tt=0;if(K){P?Tt=Rn.current:Tt=Fv(W,le),o&&(le=go(le,W[Tt-1]||-1/0,W[Tt+1]||1/0));const ro=le;le=zv({values:W,newValue:le,index:Tt}),o&&P||(Tt=le.indexOf(ro),Rn.current=Tt)}return{newValue:le,activeIndex:Tt}},H=nf(N=>{const P=ka(N,y);if(!P)return;if($.current+=1,N.type==="mousemove"&&N.buttons===0){Ue(N);return}const{newValue:D,activeIndex:oe}=de({finger:P,move:!0});ba({sliderRef:X,activeIndex:oe,setActive:C}),U(D),!O&&$.current>VA&&T(!0),B&&!Ca(D,A)&&B(N,D,oe)}),Ue=nf(N=>{const P=ka(N,y);if(T(!1),!P)return;const{newValue:D}=de({finger:P,move:!0});C(-1),N.type==="touchend"&&b(-1),d&&d(N,D),y.current=void 0,vt()}),nt=nf(N=>{if(r)return;Uv()||N.preventDefault();const P=N.changedTouches[0];P!=null&&(y.current=P.identifier);const D=ka(N,y);if(D!==!1){const{newValue:ie,activeIndex:ee}=de({finger:D});ba({sliderRef:X,activeIndex:ee,setActive:C}),U(ie),B&&!Ca(ie,A)&&B(N,ie,ee)}$.current=0;const oe=Xa(X.current);oe.addEventListener("touchmove",H,{passive:!0}),oe.addEventListener("touchend",Ue,{passive:!0})}),vt=h.useCallback(()=>{const N=Xa(X.current);N.removeEventListener("mousemove",H),N.removeEventListener("mouseup",Ue),N.removeEventListener("touchmove",H),N.removeEventListener("touchend",Ue)},[Ue,H]);h.useEffect(()=>{const{current:N}=X;return N.addEventListener("touchstart",nt,{passive:Uv()}),()=>{N.removeEventListener("touchstart",nt),vt()}},[vt,nt]),h.useEffect(()=>{r&&vt()},[r,vt]);const vi=N=>P=>{var D;if((D=N.onMouseDown)==null||D.call(N,P),r||P.defaultPrevented||P.button!==0)return;P.preventDefault();const oe=ka(P,y);if(oe!==!1){const{newValue:ee,activeIndex:qt}=de({finger:oe});ba({sliderRef:X,activeIndex:qt,setActive:C}),U(ee),B&&!Ca(ee,A)&&B(P,ee,qt)}$.current=0;const ie=Xa(X.current);ie.addEventListener("mousemove",H,{passive:!0}),ie.addEventListener("mouseup",Ue)},we=Vl(K?W[0]:l,l,a),Gt=Vl(W[W.length-1],l,a)-we,eo=(N={})=>{const P=el(N),D={onMouseDown:vi(P||{})},oe=j({},P,D);return j({},N,{ref:ge},oe)},to=N=>P=>{var D;(D=N.onMouseOver)==null||D.call(N,P);const oe=Number(P.currentTarget.getAttribute("data-index"));b(oe)},Rr=N=>P=>{var D;(D=N.onMouseLeave)==null||D.call(N,P),b(-1)};return{active:E,axis:Qe,axisProps:QA,dragging:O,focusedThumbIndex:Z,getHiddenInputProps:(N={})=>{var P;const D=el(N),oe={onChange:Tn(D||{}),onFocus:Me(D||{}),onBlur:qe(D||{}),onKeyDown:_n(D||{})},ie=j({},D,oe);return j({tabIndex:m,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":g(a),"aria-valuemin":g(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(P=e.step)!=null?P:void 0,disabled:r},N,ie,{style:j({},ON,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:eo,getThumbProps:(N={})=>{const P=el(N),D={onMouseOver:to(P||{}),onMouseLeave:Rr(P||{})};return j({},N,P,D)},marks:G,open:x,range:K,rootRef:ge,trackLeap:Gt,trackOffset:we,values:W,getThumbStyle:N=>({pointerEvents:E!==-1&&E!==N?"none":void 0})}}const JA=e=>!e||!rs(e);function ZA(e){return Hx("MuiSlider",e)}const Mt=uN("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),eP=e=>{const{open:t}=e;return{offset:Sr(t&&Mt.valueLabelOpen),circle:Mt.valueLabelCircle,label:Mt.valueLabelLabel}};function tP(e){const{children:t,className:n,value:r}=e,o=eP(e);return t?h.cloneElement(t,{className:Sr(t.props.className)},w.jsxs(h.Fragment,{children:[t.props.children,w.jsx("span",{className:Sr(o.offset,n),"aria-hidden":!0,children:w.jsx("span",{className:o.circle,children:w.jsx("span",{className:o.label,children:r})})})]})):null}const nP=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function Wv(e){return e}const rP=Xr("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${tn(n.color)}`],n.size!=="medium"&&t[`size${tn(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Mt.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Mt.dragging}`]:{[`& .${Mt.thumb}, & .${Mt.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),oP=Xr("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),iP=Xr("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n,track:"inverted"},style:j({},e.vars?{backgroundColor:e.vars.palette.Slider[`${n}Track`],borderColor:e.vars.palette.Slider[`${n}Track`]}:j({backgroundColor:Wd(e.palette[n].main,.62),borderColor:Wd(e.palette[n].main,.62)},e.applyStyles("dark",{backgroundColor:Ud(e.palette[n].main,.5)}),e.applyStyles("dark",{borderColor:Ud(e.palette[n].main,.5)})))}))]}}),sP=Xr("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${tn(n.color)}`],n.size!=="medium"&&t[`thumbSize${tn(n.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Mt.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{[`&:hover, &.${Mt.focusVisible}`]:j({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${Rv(e.palette[n].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${Mt.active}`]:j({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${Rv(e.palette[n].main,.16)}`})}}))]}}),aP=Xr(tP,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>j({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Mt.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Mt.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),lP=Xr("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>em(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),uP=Xr("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>em(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>j({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),cP=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:s,color:a,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",a&&`color${tn(a)}`,l&&`size${tn(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${tn(l)}`,a&&`thumbColor${tn(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return $N(u,ZA,s)},fP=({children:e})=>e,dP=h.forwardRef(function(t,n){var r,o,i,s,a,l,u,c,d,f,v,g,S,k,m,p,y,E,C,x,b,O,T,$;const A=DA({props:t,name:"MuiSlider"}),U=TN(),{"aria-label":B,"aria-valuetext":K,"aria-labelledby":W,component:G="span",components:V={},componentsProps:_={},color:I="primary",classes:F,className:Y,disableSwap:Z=!1,disabled:ve=!1,getAriaLabel:X,getAriaValueText:re,marks:ge=!1,max:Me=100,min:qe=0,orientation:_t="horizontal",shiftStep:_n=10,size:Tn="medium",step:Rn=1,scale:Qe=Wv,slotProps:de,slots:H,track:Ue="normal",valueLabelDisplay:nt="off",valueLabelFormat:vt=Wv}=A,vi=an(A,nP),we=j({},A,{isRtl:U,max:Me,min:qe,classes:F,disabled:ve,disableSwap:Z,orientation:_t,marks:ge,color:I,size:Tn,step:Rn,shiftStep:_n,scale:Qe,track:Ue,valueLabelDisplay:nt,valueLabelFormat:vt}),{axisProps:Gt,getRootProps:eo,getHiddenInputProps:to,getThumbProps:Rr,open:gi,active:no,axis:Zn,focusedThumbIndex:N,range:P,dragging:D,marks:oe,values:ie,trackOffset:ee,trackLeap:qt,getThumbStyle:un}=XA(j({},we,{rootRef:n}));we.marked=oe.length>0&&oe.some(Ne=>Ne.label),we.dragging=D,we.focusedThumbIndex=N;const le=cP(we),Tt=(r=(o=H==null?void 0:H.root)!=null?o:V.Root)!=null?r:rP,ro=(i=(s=H==null?void 0:H.rail)!=null?s:V.Rail)!=null?i:oP,xm=(a=(l=H==null?void 0:H.track)!=null?l:V.Track)!=null?a:iP,Em=(u=(c=H==null?void 0:H.thumb)!=null?c:V.Thumb)!=null?u:sP,km=(d=(f=H==null?void 0:H.valueLabel)!=null?f:V.ValueLabel)!=null?d:aP,cc=(v=(g=H==null?void 0:H.mark)!=null?g:V.Mark)!=null?v:lP,fc=(S=(k=H==null?void 0:H.markLabel)!=null?k:V.MarkLabel)!=null?S:uP,bm=(m=(p=H==null?void 0:H.input)!=null?p:V.Input)!=null?m:"input",dc=(y=de==null?void 0:de.root)!=null?y:_.root,pk=(E=de==null?void 0:de.rail)!=null?E:_.rail,pc=(C=de==null?void 0:de.track)!=null?C:_.track,hc=(x=de==null?void 0:de.thumb)!=null?x:_.thumb,mc=(b=de==null?void 0:de.valueLabel)!=null?b:_.valueLabel,hk=(O=de==null?void 0:de.mark)!=null?O:_.mark,mk=(T=de==null?void 0:de.markLabel)!=null?T:_.markLabel,yk=($=de==null?void 0:de.input)!=null?$:_.input,vk=tr({elementType:Tt,getSlotProps:eo,externalSlotProps:dc,externalForwardedProps:vi,additionalProps:j({},JA(Tt)&&{as:G}),ownerState:j({},we,dc==null?void 0:dc.ownerState),className:[le.root,Y]}),gk=tr({elementType:ro,externalSlotProps:pk,ownerState:we,className:le.rail}),wk=tr({elementType:xm,externalSlotProps:pc,additionalProps:{style:j({},Gt[Zn].offset(ee),Gt[Zn].leap(qt))},ownerState:j({},we,pc==null?void 0:pc.ownerState),className:le.track}),yc=tr({elementType:Em,getSlotProps:Rr,externalSlotProps:hc,ownerState:j({},we,hc==null?void 0:hc.ownerState),className:le.thumb}),Sk=tr({elementType:km,externalSlotProps:mc,ownerState:j({},we,mc==null?void 0:mc.ownerState),className:le.valueLabel}),vc=tr({elementType:cc,externalSlotProps:hk,ownerState:we,className:le.mark}),gc=tr({elementType:fc,externalSlotProps:mk,ownerState:we,className:le.markLabel}),xk=tr({elementType:bm,getSlotProps:to,externalSlotProps:yk,ownerState:we});return w.jsxs(Tt,j({},vk,{children:[w.jsx(ro,j({},gk)),w.jsx(xm,j({},wk)),oe.filter(Ne=>Ne.value>=qe&&Ne.value<=Me).map((Ne,We)=>{const wc=Vl(Ne.value,qe,Me),Ys=Gt[Zn].offset(wc);let Nn;return Ue===!1?Nn=ie.indexOf(Ne.value)!==-1:Nn=Ue==="normal"&&(P?Ne.value>=ie[0]&&Ne.value<=ie[ie.length-1]:Ne.value<=ie[0])||Ue==="inverted"&&(P?Ne.value<=ie[0]||Ne.value>=ie[ie.length-1]:Ne.value>=ie[0]),w.jsxs(h.Fragment,{children:[w.jsx(cc,j({"data-index":We},vc,!rs(cc)&&{markActive:Nn},{style:j({},Ys,vc.style),className:Sr(vc.className,Nn&&le.markActive)})),Ne.label!=null?w.jsx(fc,j({"aria-hidden":!0,"data-index":We},gc,!rs(fc)&&{markLabelActive:Nn},{style:j({},Ys,gc.style),className:Sr(le.markLabel,gc.className,Nn&&le.markLabelActive),children:Ne.label})):null]},We)}),ie.map((Ne,We)=>{const wc=Vl(Ne,qe,Me),Ys=Gt[Zn].offset(wc),Nn=nt==="off"?fP:km;return w.jsx(Nn,j({},!rs(Nn)&&{valueLabelFormat:vt,valueLabelDisplay:nt,value:typeof vt=="function"?vt(Qe(Ne),We):vt,index:We,open:gi===We||no===We||nt==="on",disabled:ve},Sk,{children:w.jsx(Em,j({"data-index":We},yc,{className:Sr(le.thumb,yc.className,no===We&&le.active,N===We&&le.focusVisible),style:j({},Ys,un(We),yc.style),children:w.jsx(bm,j({"data-index":We,"aria-label":X?X(We):B,"aria-valuenow":Qe(Ne),"aria-labelledby":W,"aria-valuetext":re?re(Qe(Ne),We):K,value:ie[We]},xk))}))}),We)})]}))});var Hv=Object.prototype.toString,sE=function(t){var n=Hv.call(t),r=n==="[object Arguments]";return r||(r=n!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&Hv.call(t.callee)==="[object Function]"),r},af,Vv;function pP(){if(Vv)return af;Vv=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=sE,o=Object.prototype.propertyIsEnumerable,i=!o.call({toString:null},"toString"),s=o.call(function(){},"prototype"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(f){var v=f.constructor;return v&&v.prototype===f},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if(typeof window>"u")return!1;for(var f in window)try{if(!u["$"+f]&&t.call(window,f)&&window[f]!==null&&typeof window[f]=="object")try{l(window[f])}catch{return!0}}catch{return!0}return!1}(),d=function(f){if(typeof window>"u"||!c)return l(f);try{return l(f)}catch{return!1}};e=function(v){var g=v!==null&&typeof v=="object",S=n.call(v)==="[object Function]",k=r(v),m=g&&n.call(v)==="[object String]",p=[];if(!g&&!S&&!k)throw new TypeError("Object.keys called on a non-object");var y=s&&S;if(m&&v.length>0&&!t.call(v,0))for(var E=0;E0)for(var C=0;C"u"||!Be?Q:Be(Uint8Array),zr={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Q:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Q:ArrayBuffer,"%ArrayIteratorPrototype%":ho&&Be?Be([][Symbol.iterator]()):Q,"%AsyncFromSyncIteratorPrototype%":Q,"%AsyncFunction%":wo,"%AsyncGenerator%":wo,"%AsyncGeneratorFunction%":wo,"%AsyncIteratorPrototype%":wo,"%Atomics%":typeof Atomics>"u"?Q:Atomics,"%BigInt%":typeof BigInt>"u"?Q:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Q:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Q:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Q:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":LP,"%eval%":eval,"%EvalError%":IP,"%Float32Array%":typeof Float32Array>"u"?Q:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Q:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Q:FinalizationRegistry,"%Function%":uE,"%GeneratorFunction%":wo,"%Int8Array%":typeof Int8Array>"u"?Q:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Q:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Q:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ho&&Be?Be(Be([][Symbol.iterator]())):Q,"%JSON%":typeof JSON=="object"?JSON:Q,"%Map%":typeof Map>"u"?Q:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ho||!Be?Q:Be(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Q:Promise,"%Proxy%":typeof Proxy>"u"?Q:Proxy,"%RangeError%":MP,"%ReferenceError%":BP,"%Reflect%":typeof Reflect>"u"?Q:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Q:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ho||!Be?Q:Be(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Q:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ho&&Be?Be(""[Symbol.iterator]()):Q,"%Symbol%":ho?Symbol:Q,"%SyntaxError%":ni,"%ThrowTypeError%":FP,"%TypedArray%":UP,"%TypeError%":Uo,"%Uint8Array%":typeof Uint8Array>"u"?Q:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Q:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Q:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Q:Uint32Array,"%URIError%":DP,"%WeakMap%":typeof WeakMap>"u"?Q:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Q:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Q:WeakSet};if(Be)try{null.error}catch(e){var WP=Be(Be(e));zr["%Error.prototype%"]=WP}var HP=function e(t){var n;if(t==="%AsyncFunction%")n=uf("async function () {}");else if(t==="%GeneratorFunction%")n=uf("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=uf("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&Be&&(n=Be(o.prototype))}return zr[t]=n,n},Yv={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Qs=rm,Kl=lE,VP=Qs.call(Function.call,Array.prototype.concat),KP=Qs.call(Function.apply,Array.prototype.splice),Xv=Qs.call(Function.call,String.prototype.replace),Gl=Qs.call(Function.call,String.prototype.slice),GP=Qs.call(Function.call,RegExp.prototype.exec),qP=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,QP=/\\(\\)?/g,YP=function(t){var n=Gl(t,0,1),r=Gl(t,-1);if(n==="%"&&r!=="%")throw new ni("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new ni("invalid intrinsic syntax, expected opening `%`");var o=[];return Xv(t,qP,function(i,s,a,l){o[o.length]=a?Xv(l,QP,"$1"):s||i}),o},XP=function(t,n){var r=t,o;if(Kl(Yv,r)&&(o=Yv[r],r="%"+o[0]+"%"),Kl(zr,r)){var i=zr[r];if(i===wo&&(i=HP(r)),typeof i>"u"&&!n)throw new Uo("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:r,value:i}}throw new ni("intrinsic "+t+" does not exist!")},On=function(t,n){if(typeof t!="string"||t.length===0)throw new Uo("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Uo('"allowMissing" argument must be a boolean');if(GP(/^%?[^%]*%?$/,t)===null)throw new ni("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=YP(t),o=r.length>0?r[0]:"",i=XP("%"+o+"%",n),s=i.name,a=i.value,l=!1,u=i.alias;u&&(o=u[0],KP(r,VP([0,1],u)));for(var c=1,d=!0;c=r.length){var S=Fr(a,f);d=!!S,d&&"get"in S&&!("originalValue"in S.get)?a=S.get:a=a[f]}else d=Kl(a,f),a=a[f];d&&!l&&(zr[s]=a)}}return a},JP=On,nl=JP("%Object.defineProperty%",!0)||!1;if(nl)try{nl({},"a",{value:1})}catch{nl=!1}var om=nl,ZP=On,rl=ZP("%Object.getOwnPropertyDescriptor%",!0);if(rl)try{rl([],"length")}catch{rl=null}var im=rl,Jv=om,e3=aE,mo=_r,Zv=im,sm=function(t,n,r){if(!t||typeof t!="object"&&typeof t!="function")throw new mo("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new mo("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new mo("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new mo("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new mo("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new mo("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,l=!!Zv&&Zv(t,n);if(Jv)Jv(t,n,{configurable:s===null&&l?l.configurable:!s,enumerable:o===null&&l?l.enumerable:!o,value:r,writable:i===null&&l?l.writable:!i});else if(a||!o&&!i&&!s)t[n]=r;else throw new e3("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Vd=om,cE=function(){return!!Vd};cE.hasArrayLengthDefineBug=function(){if(!Vd)return null;try{return Vd([],"length",{value:1}).length!==1}catch{return!0}};var am=cE,t3=tm,n3=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",r3=Object.prototype.toString,o3=Array.prototype.concat,eg=sm,i3=function(e){return typeof e=="function"&&r3.call(e)==="[object Function]"},fE=am(),s3=function(e,t,n,r){if(t in e){if(r===!0){if(e[t]===n)return}else if(!i3(r)||!r())return}fE?eg(e,t,n,!0):eg(e,t,n)},dE=function(e,t){var n=arguments.length>2?arguments[2]:{},r=t3(t);n3&&(r=o3.call(r,Object.getOwnPropertySymbols(t)));for(var o=0;o4294967295||u3(n)!==n)throw new rg("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in t&&ng){var s=ng(t,"length");s&&!s.configurable&&(o=!1),s&&!s.writable&&(i=!1)}return(o||i||!r)&&(l3?tg(t,"length",n,!0,!0):tg(t,"length",n)),t};(function(e){var t=rm,n=On,r=c3,o=_r,i=n("%Function.prototype.apply%"),s=n("%Function.prototype.call%"),a=n("%Reflect.apply%",!0)||t.call(s,i),l=om,u=n("%Math.max%");e.exports=function(f){if(typeof f!="function")throw new o("a function is required");var v=a(t,s,arguments);return r(v,1+u(0,f.length-(arguments.length-1)),!0)};var c=function(){return a(t,i,arguments)};l?l(e.exports,"apply",{value:c}):e.exports.apply=c})(pE);var mi=pE.exports,hE=On,mE=mi,f3=mE(hE("String.prototype.indexOf")),Kt=function(t,n){var r=hE(t,!!n);return typeof r=="function"&&f3(t,".prototype.")>-1?mE(r):r},d3=tm,yE=sc(),vE=Kt,og=Object,p3=vE("Array.prototype.push"),ig=vE("Object.prototype.propertyIsEnumerable"),h3=yE?Object.getOwnPropertySymbols:null,gE=function(t,n){if(t==null)throw new TypeError("target must be an object");var r=og(t);if(arguments.length===1)return r;for(var o=1;o2&&!!arguments[2];return(!r||T3)&&(_3?sg(t,"name",n,!0,!0):sg(t,"name",n)),t},A3=N3,P3=_r,j3=Object,EE=A3(function(){if(this==null||this!==j3(this))throw new P3("RegExp.prototype.flags getter called on non-object");var t="";return this.hasIndices&&(t+="d"),this.global&&(t+="g"),this.ignoreCase&&(t+="i"),this.multiline&&(t+="m"),this.dotAll&&(t+="s"),this.unicode&&(t+="u"),this.unicodeSets&&(t+="v"),this.sticky&&(t+="y"),t},"get flags",!0),L3=EE,I3=Jr.supportsDescriptors,M3=Object.getOwnPropertyDescriptor,kE=function(){if(I3&&/a/mig.flags==="gim"){var t=M3(RegExp.prototype,"flags");if(t&&typeof t.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var n="",r={};if(Object.defineProperty(r,"hasIndices",{get:function(){n+="d"}}),Object.defineProperty(r,"sticky",{get:function(){n+="y"}}),n==="dy")return t.get}}return L3},B3=Jr.supportsDescriptors,D3=kE,F3=Object.getOwnPropertyDescriptor,z3=Object.defineProperty,U3=TypeError,ag=Object.getPrototypeOf,W3=/a/,H3=function(){if(!B3||!ag)throw new U3("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=D3(),n=ag(W3),r=F3(n,"flags");return(!r||r.get!==t)&&z3(n,"flags",{configurable:!0,enumerable:!1,get:t}),t},V3=Jr,K3=mi,G3=EE,bE=kE,q3=H3,CE=K3(bE());V3(CE,{getPolyfill:bE,implementation:G3,shim:q3});var Q3=CE,ol={exports:{}},Y3=sc,Zr=function(){return Y3()&&!!Symbol.toStringTag},X3=Zr(),J3=Kt,Kd=J3("Object.prototype.toString"),ac=function(t){return X3&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:Kd(t)==="[object Arguments]"},OE=function(t){return ac(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&Kd(t)!=="[object Array]"&&Kd(t.callee)==="[object Function]"},Z3=function(){return ac(arguments)}();ac.isLegacyArguments=OE;var $E=Z3?ac:OE;const ej={},tj=Object.freeze(Object.defineProperty({__proto__:null,default:ej},Symbol.toStringTag,{value:"Module"})),nj=Yn(tj);var lm=typeof Map=="function"&&Map.prototype,df=Object.getOwnPropertyDescriptor&&lm?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ql=lm&&df&&typeof df.get=="function"?df.get:null,lg=lm&&Map.prototype.forEach,um=typeof Set=="function"&&Set.prototype,pf=Object.getOwnPropertyDescriptor&&um?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ql=um&&pf&&typeof pf.get=="function"?pf.get:null,ug=um&&Set.prototype.forEach,rj=typeof WeakMap=="function"&&WeakMap.prototype,is=rj?WeakMap.prototype.has:null,oj=typeof WeakSet=="function"&&WeakSet.prototype,ss=oj?WeakSet.prototype.has:null,ij=typeof WeakRef=="function"&&WeakRef.prototype,cg=ij?WeakRef.prototype.deref:null,sj=Boolean.prototype.valueOf,aj=Object.prototype.toString,lj=Function.prototype.toString,uj=String.prototype.match,cm=String.prototype.slice,fr=String.prototype.replace,cj=String.prototype.toUpperCase,fg=String.prototype.toLowerCase,_E=RegExp.prototype.test,dg=Array.prototype.concat,mn=Array.prototype.join,fj=Array.prototype.slice,pg=Math.floor,Gd=typeof BigInt=="function"?BigInt.prototype.valueOf:null,hf=Object.getOwnPropertySymbols,qd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ri=typeof Symbol=="function"&&typeof Symbol.iterator=="object",tt=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ri||!0)?Symbol.toStringTag:null,TE=Object.prototype.propertyIsEnumerable,hg=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function mg(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||_E.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-pg(-e):pg(e);if(r!==e){var o=String(r),i=cm.call(t,o.length+1);return fr.call(o,n,"$&_")+"."+fr.call(fr.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return fr.call(t,n,"$&_")}var Qd=nj,yg=Qd.custom,vg=NE(yg)?yg:null,dj=function e(t,n,r,o){var i=n||{};if(ir(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ir(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=ir(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ir(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ir(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return PE(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return a?mg(t,l):l}if(typeof t=="bigint"){var u=String(t)+"n";return a?mg(t,u):u}var c=typeof i.depth>"u"?5:i.depth;if(typeof r>"u"&&(r=0),r>=c&&c>0&&typeof t=="object")return Yd(t)?"[Array]":"[Object]";var d=Rj(i,r);if(typeof o>"u")o=[];else if(AE(o,t)>=0)return"[Circular]";function f(B,K,W){if(K&&(o=fj.call(o),o.push(K)),W){var G={depth:i.depth};return ir(i,"quoteStyle")&&(G.quoteStyle=i.quoteStyle),e(B,G,r+1,o)}return e(B,i,r+1,o)}if(typeof t=="function"&&!gg(t)){var v=xj(t),g=$a(t,f);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(g.length>0?" { "+mn.call(g,", ")+" }":"")}if(NE(t)){var S=ri?fr.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):qd.call(t);return typeof t=="object"&&!ri?Ai(S):S}if($j(t)){for(var k="<"+fg.call(String(t.nodeName)),m=t.attributes||[],p=0;p",k}if(Yd(t)){if(t.length===0)return"[]";var y=$a(t,f);return d&&!Tj(y)?"["+Xd(y,d)+"]":"[ "+mn.call(y,", ")+" ]"}if(mj(t)){var E=$a(t,f);return!("cause"in Error.prototype)&&"cause"in t&&!TE.call(t,"cause")?"{ ["+String(t)+"] "+mn.call(dg.call("[cause]: "+f(t.cause),E),", ")+" }":E.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+mn.call(E,", ")+" }"}if(typeof t=="object"&&s){if(vg&&typeof t[vg]=="function"&&Qd)return Qd(t,{depth:c-r});if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Ej(t)){var C=[];return lg&&lg.call(t,function(B,K){C.push(f(K,t,!0)+" => "+f(B,t))}),wg("Map",ql.call(t),C,d)}if(Cj(t)){var x=[];return ug&&ug.call(t,function(B){x.push(f(B,t))}),wg("Set",Ql.call(t),x,d)}if(kj(t))return mf("WeakMap");if(Oj(t))return mf("WeakSet");if(bj(t))return mf("WeakRef");if(vj(t))return Ai(f(Number(t)));if(wj(t))return Ai(f(Gd.call(t)));if(gj(t))return Ai(sj.call(t));if(yj(t))return Ai(f(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof cl<"u"&&t===cl)return"{ [object globalThis] }";if(!hj(t)&&!gg(t)){var b=$a(t,f),O=hg?hg(t)===Object.prototype:t instanceof Object||t.constructor===Object,T=t instanceof Object?"":"null prototype",$=!O&&tt&&Object(t)===t&&tt in t?cm.call(Tr(t),8,-1):T?"Object":"",A=O||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",U=A+($||T?"["+mn.call(dg.call([],$||[],T||[]),": ")+"] ":"");return b.length===0?U+"{}":d?U+"{"+Xd(b,d)+"}":U+"{ "+mn.call(b,", ")+" }"}return String(t)};function RE(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function pj(e){return fr.call(String(e),/"/g,""")}function Yd(e){return Tr(e)==="[object Array]"&&(!tt||!(typeof e=="object"&&tt in e))}function hj(e){return Tr(e)==="[object Date]"&&(!tt||!(typeof e=="object"&&tt in e))}function gg(e){return Tr(e)==="[object RegExp]"&&(!tt||!(typeof e=="object"&&tt in e))}function mj(e){return Tr(e)==="[object Error]"&&(!tt||!(typeof e=="object"&&tt in e))}function yj(e){return Tr(e)==="[object String]"&&(!tt||!(typeof e=="object"&&tt in e))}function vj(e){return Tr(e)==="[object Number]"&&(!tt||!(typeof e=="object"&&tt in e))}function gj(e){return Tr(e)==="[object Boolean]"&&(!tt||!(typeof e=="object"&&tt in e))}function NE(e){if(ri)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!qd)return!1;try{return qd.call(e),!0}catch{}return!1}function wj(e){if(!e||typeof e!="object"||!Gd)return!1;try{return Gd.call(e),!0}catch{}return!1}var Sj=Object.prototype.hasOwnProperty||function(e){return e in this};function ir(e,t){return Sj.call(e,t)}function Tr(e){return aj.call(e)}function xj(e){if(e.name)return e.name;var t=uj.call(lj.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function AE(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return PE(cm.call(e,0,t.maxStringLength),t)+r}var o=fr.call(fr.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,_j);return RE(o,"single",t)}function _j(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+cj.call(t.toString(16))}function Ai(e){return"Object("+e+")"}function mf(e){return e+" { ? }"}function wg(e,t,n,r){var o=r?Xd(n,r):mn.call(n,", ");return e+" ("+t+") {"+o+"}"}function Tj(e){for(var t=0;t{if(r.toString().match(/^(components|slots)$/))n[r]=j({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=j({},i),Object.keys(o).forEach(s=>{n[r][s]=Dd(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}const Qx=typeof window<"u"?h.useLayoutEffect:h.useEffect;function go(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const mN=Object.freeze(Object.defineProperty({__proto__:null,default:go},Symbol.toStringTag,{value:"Module"}));function Xa(e){return e&&e.ownerDocument||document}function yN(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function vN({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=h.useRef(e!==void 0),[i,s]=h.useState(t),a=o?e:i,l=h.useCallback(u=>{o||s(u)},[]);return[a,l]}function nf(e){const t=h.useRef(e);return Qx(()=>{t.current=e}),h.useRef((...n)=>(0,t.current)(...n)).current}function Fd(...e){return h.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{yN(n,t)})},e)}class Yh{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Yh}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}let ic=!0,zd=!1;const gN=new Yh,wN={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function SN(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&wN[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function xN(e){e.metaKey||e.altKey||e.ctrlKey||(ic=!0)}function rf(){ic=!1}function EN(){this.visibilityState==="hidden"&&zd&&(ic=!0)}function kN(e){e.addEventListener("keydown",xN,!0),e.addEventListener("mousedown",rf,!0),e.addEventListener("pointerdown",rf,!0),e.addEventListener("touchstart",rf,!0),e.addEventListener("visibilitychange",EN,!0)}function bN(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return ic||SN(t)}function CN(){const e=h.useCallback(o=>{o!=null&&kN(o.ownerDocument)},[]),t=h.useRef(!1);function n(){return t.current?(zd=!0,gN.start(100,()=>{zd=!1}),t.current=!1,!0):!1}function r(o){return bN(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}const ON={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function $N(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,s)=>{if(s){const a=t(s);a!==""&&i.push(a),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}const _N=h.createContext(),TN=()=>{const e=h.useContext(_N);return e??!1},RN=h.createContext(void 0);function NN(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Dd(o.defaultProps,r):!o.styleOverrides&&!o.variants?Dd(o,r):r}function AN({props:e,name:t}){const n=h.useContext(RN);return NN({props:e,name:t,theme:{components:n}})}function PN(e,t){return j({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Re={},Yx={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Yx);var Xx=Yx.exports;const jN=Yn(J_),LN=Yn(mN);var Jx=Xx;Object.defineProperty(Re,"__esModule",{value:!0});var Rv=Re.alpha=nE;Re.blend=KN;Re.colorChannel=void 0;var Ud=Re.darken=Jh;Re.decomposeColor=Wt;Re.emphasize=rE;var IN=Re.getContrastRatio=zN;Re.getLuminance=Hl;Re.hexToRgb=Zx;Re.hslToRgb=tE;var Wd=Re.lighten=Zh;Re.private_safeAlpha=UN;Re.private_safeColorChannel=void 0;Re.private_safeDarken=WN;Re.private_safeEmphasize=VN;Re.private_safeLighten=HN;Re.recomposeColor=pi;Re.rgbToHex=FN;var Nv=Jx(jN),MN=Jx(LN);function Xh(e,t=0,n=1){return(0,MN.default)(e,t,n)}function Zx(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function BN(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Wt(e){if(e.type)return e;if(e.charAt(0)==="#")return Wt(Zx(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,Nv.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,Nv.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const eE=e=>{const t=Wt(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Re.colorChannel=eE;const DN=(e,t)=>{try{return eE(e)}catch{return e}};Re.private_safeColorChannel=DN;function pi(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function FN(e){if(e.indexOf("#")===0)return e;const{values:t}=Wt(e);return`#${t.map((n,r)=>BN(r===3?Math.round(255*n):n)).join("")}`}function tE(e){e=Wt(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(u,c=(u+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),pi({type:a,values:l})}function Hl(e){e=Wt(e);let t=e.type==="hsl"||e.type==="hsla"?Wt(tE(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function zN(e,t){const n=Hl(e),r=Hl(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function nE(e,t){return e=Wt(e),t=Xh(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,pi(e)}function UN(e,t,n){try{return nE(e,t)}catch{return e}}function Jh(e,t){if(e=Wt(e),t=Xh(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return pi(e)}function WN(e,t,n){try{return Jh(e,t)}catch{return e}}function Zh(e,t){if(e=Wt(e),t=Xh(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return pi(e)}function HN(e,t,n){try{return Zh(e,t)}catch{return e}}function rE(e,t=.15){return Hl(e)>.5?Jh(e,t):Zh(e,t)}function VN(e,t,n){try{return rE(e,t)}catch{return e}}function KN(e,t,n,r=1){const o=(l,u)=>Math.round((l**(1/r)*(1-n)+u**(1/r)*n)**r),i=Wt(e),s=Wt(t),a=[o(i.values[0],s.values[0]),o(i.values[1],s.values[1]),o(i.values[2],s.values[2])];return pi({type:"rgb",values:a})}const GN=["mode","contrastThreshold","tonalOffset"],Av={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:_s.white,default:_s.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},of={text:{primary:_s.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:_s.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Pv(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Wd(e.main,o):t==="dark"&&(e.dark=Ud(e.main,i)))}function qN(e="light"){return e==="dark"?{main:co[200],light:co[50],dark:co[400]}:{main:co[700],light:co[400],dark:co[800]}}function QN(e="light"){return e==="dark"?{main:uo[200],light:uo[50],dark:uo[400]}:{main:uo[500],light:uo[300],dark:uo[700]}}function YN(e="light"){return e==="dark"?{main:lo[500],light:lo[300],dark:lo[700]}:{main:lo[700],light:lo[400],dark:lo[800]}}function XN(e="light"){return e==="dark"?{main:fo[400],light:fo[300],dark:fo[700]}:{main:fo[700],light:fo[500],dark:fo[900]}}function JN(e="light"){return e==="dark"?{main:po[400],light:po[300],dark:po[700]}:{main:po[800],light:po[500],dark:po[900]}}function ZN(e="light"){return e==="dark"?{main:Ri[400],light:Ri[300],dark:Ri[700]}:{main:"#ed6c02",light:Ri[500],dark:Ri[900]}}function eA(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=an(e,GN),i=e.primary||qN(t),s=e.secondary||QN(t),a=e.error||YN(t),l=e.info||XN(t),u=e.success||JN(t),c=e.warning||ZN(t);function d(S){return IN(S,of.text.primary)>=n?of.text.primary:Av.text.primary}const f=({color:S,name:k,mainShade:y=500,lightShade:p=300,darkShade:m=700})=>{if(S=j({},S),!S.main&&S[y]&&(S.main=S[y]),!S.hasOwnProperty("main"))throw new Error(Ts(11,k?` (${k})`:"",y));if(typeof S.main!="string")throw new Error(Ts(12,k?` (${k})`:"",JSON.stringify(S.main)));return Pv(S,"light",p,r),Pv(S,"dark",m,r),S.contrastText||(S.contrastText=d(S.main)),S},v={dark:of,light:Av};return kn(j({common:j({},_s),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:a,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:u,name:"success"}),grey:X_,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},v[t]),o)}const tA=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function nA(e){return Math.round(e*1e5)/1e5}const jv={textTransform:"uppercase"},Lv='"Roboto", "Helvetica", "Arial", sans-serif';function rA(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Lv,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=an(n,tA),v=o/14,g=d||(y=>`${y/u*v}rem`),S=(y,p,m,E,C)=>j({fontFamily:r,fontWeight:y,fontSize:g(p),lineHeight:m},r===Lv?{letterSpacing:`${nA(E/p)}em`}:{},C,c),k={h1:S(i,96,1.167,-1.5),h2:S(i,60,1.2,-.5),h3:S(s,48,1.167,0),h4:S(s,34,1.235,.25),h5:S(s,24,1.334,0),h6:S(a,20,1.6,.15),subtitle1:S(s,16,1.75,.15),subtitle2:S(a,14,1.57,.1),body1:S(s,16,1.5,.15),body2:S(s,14,1.43,.15),button:S(a,14,1.75,.4,jv),caption:S(s,12,1.66,.4),overline:S(s,12,2.66,1,jv),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return kn(j({htmlFontSize:u,pxToRem:g,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},k),f,{clone:!1})}const oA=.2,iA=.14,sA=.12;function Se(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${oA})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${iA})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${sA})`].join(",")}const aA=["none",Se(0,2,1,-1,0,1,1,0,0,1,3,0),Se(0,3,1,-2,0,2,2,0,0,1,5,0),Se(0,3,3,-2,0,3,4,0,0,1,8,0),Se(0,2,4,-1,0,4,5,0,0,1,10,0),Se(0,3,5,-1,0,5,8,0,0,1,14,0),Se(0,3,5,-1,0,6,10,0,0,1,18,0),Se(0,4,5,-2,0,7,10,1,0,2,16,1),Se(0,5,5,-3,0,8,10,1,0,3,14,2),Se(0,5,6,-3,0,9,12,1,0,3,16,2),Se(0,6,6,-3,0,10,14,1,0,4,18,3),Se(0,6,7,-4,0,11,15,1,0,4,20,3),Se(0,7,8,-4,0,12,17,2,0,5,22,4),Se(0,7,8,-4,0,13,19,2,0,5,24,4),Se(0,7,9,-4,0,14,21,2,0,5,26,4),Se(0,8,9,-5,0,15,22,2,0,6,28,5),Se(0,8,10,-5,0,16,24,2,0,6,30,5),Se(0,8,11,-5,0,17,26,2,0,6,32,5),Se(0,9,11,-5,0,18,28,2,0,7,34,6),Se(0,9,12,-6,0,19,29,2,0,7,36,6),Se(0,10,13,-6,0,20,31,3,0,8,38,7),Se(0,10,13,-6,0,21,33,3,0,8,40,7),Se(0,10,14,-6,0,22,35,3,0,8,42,7),Se(0,11,14,-7,0,23,36,3,0,9,44,8),Se(0,11,15,-7,0,24,38,3,0,9,46,8)],lA=["duration","easing","delay"],uA={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},cA={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Iv(e){return`${Math.round(e)}ms`}function fA(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function dA(e){const t=j({},uA,e.easing),n=j({},cA,e.duration);return j({getAutoHeightDuration:fA,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0}=i;return an(i,lA),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof s=="string"?s:Iv(s)} ${a} ${typeof l=="string"?l:Iv(l)}`).join(",")}},e,{easing:t,duration:n})}const pA={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},hA=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function mA(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=an(e,hA);if(e.vars)throw new Error(Ts(18));const a=eA(r),l=Ux(e);let u=kn(l,{mixins:PN(l.breakpoints,n),palette:a,shadows:aA.slice(),typography:rA(a,i),transitions:dA(o),zIndex:j({},pA)});return u=kn(u,s),u=t.reduce((c,d)=>kn(c,d),u),u.unstable_sxConfig=j({},Gs,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return Gh({sx:d,theme:this})},u}const yA=mA();var qs={},sf={exports:{}},Mv;function vA(){return Mv||(Mv=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.indexOf(i)>=0)continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(sf)),sf.exports}const gA=Yn(sR),wA=Yn(aR),SA=Yn(pR),xA=Yn(hN),EA=Yn(tN),kA=Yn(iN);var hi=Xx;Object.defineProperty(qs,"__esModule",{value:!0});var bA=qs.default=MA;qs.shouldForwardProp=Ja;qs.systemDefaultTheme=void 0;var Rt=hi(Px()),Hd=hi(vA()),Bv=NA(gA),CA=wA;hi(SA);hi(xA);var OA=hi(EA),$A=hi(kA);const _A=["ownerState"],TA=["variants"],RA=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function oE(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(oE=function(r){return r?n:t})(e)}function NA(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=oE(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function AA(e){return Object.keys(e).length===0}function PA(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Ja(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const jA=qs.systemDefaultTheme=(0,OA.default)(),LA=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Ea({defaultTheme:e,theme:t,themeId:n}){return AA(t)?e:t[n]||t}function IA(e){return e?(t,n)=>n[e]:null}function Za(e,t){let{ownerState:n}=t,r=(0,Hd.default)(t,_A);const o=typeof e=="function"?e((0,Rt.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Za(i,(0,Rt.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=(0,Hd.default)(o,TA);return i.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props((0,Rt.default)({ownerState:n},r,n)):Object.keys(l.props).forEach(c=>{(n==null?void 0:n[c])!==l.props[c]&&r[c]!==l.props[c]&&(u=!1)}),u&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style((0,Rt.default)({ownerState:n},r,n)):l.style))}),a}return o}function MA(e={}){const{themeId:t,defaultTheme:n=jA,rootShouldForwardProp:r=Ja,slotShouldForwardProp:o=Ja}=e,i=s=>(0,$A.default)((0,Rt.default)({},s,{theme:Ea((0,Rt.default)({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{(0,Bv.internal_processStyles)(s,C=>C.filter(x=>!(x!=null&&x.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f=IA(LA(u))}=a,v=(0,Hd.default)(a,RA),g=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,S=d||!1;let k,y=Ja;u==="Root"||u==="root"?y=r:u?y=o:PA(s)&&(y=void 0);const p=(0,Bv.default)(s,(0,Rt.default)({shouldForwardProp:y,label:k},v)),m=C=>typeof C=="function"&&C.__emotion_real!==C||(0,CA.isPlainObject)(C)?x=>Za(C,(0,Rt.default)({},x,{theme:Ea({theme:x.theme,defaultTheme:n,themeId:t})})):C,E=(C,...x)=>{let b=m(C);const O=x?x.map(m):[];l&&f&&O.push(A=>{const U=Ea((0,Rt.default)({},A,{defaultTheme:n,themeId:t}));if(!U.components||!U.components[l]||!U.components[l].styleOverrides)return null;const B=U.components[l].styleOverrides,K={};return Object.entries(B).forEach(([W,G])=>{K[W]=Za(G,(0,Rt.default)({},A,{theme:U}))}),f(A,K)}),l&&!g&&O.push(A=>{var U;const B=Ea((0,Rt.default)({},A,{defaultTheme:n,themeId:t})),K=B==null||(U=B.components)==null||(U=U[l])==null?void 0:U.variants;return Za({variants:K},(0,Rt.default)({},A,{theme:B}))}),S||O.push(i);const T=O.length-x.length;if(Array.isArray(C)&&T>0){const A=new Array(T).fill("");b=[...C,...A],b.raw=[...C.raw,...A]}const $=p(b,...O);return s.muiName&&($.muiName=s.muiName),$};return p.withConfig&&(E.withConfig=p.withConfig),E}}function em(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const BA=e=>em(e)&&e!=="classes",Xr=bA({themeId:Z_,defaultTheme:yA,rootShouldForwardProp:BA});function DA(e){return AN(e)}function rs(e){return typeof e=="string"}function FA(e,t,n){return e===void 0||rs(e)?t:j({},t,{ownerState:j({},t.ownerState,n)})}function zA(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}function el(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function UA(e,t,n){return typeof e=="function"?e(t,n):e}function Dv(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function WA(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const v=Sr(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g=j({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),S=j({},n,o,r);return v.length>0&&(S.className=v),Object.keys(g).length>0&&(S.style=g),{props:S,internalRef:void 0}}const s=el(j({},o,r)),a=Dv(r),l=Dv(o),u=t(s),c=Sr(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d=j({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),f=j({},u,n,l,a);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}const HA=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function tr(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=an(e,HA),a=i?{}:UA(r,o),{props:l,internalRef:u}=WA(j({},s,{externalSlotProps:a})),c=Fd(u,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return FA(n,j({},l,{ref:c}),o)}const VA=2;function iE(e,t){return e-t}function Fv(e,t){var n;const{index:r}=(n=e.reduce((o,i,s)=>{const a=Math.abs(t-i);return o===null||a({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},YA=e=>e;let Oa;function Uv(){return Oa===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Oa=CSS.supports("touch-action","none"):Oa=!0),Oa}function XA(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:i=!1,marks:s=!1,max:a=100,min:l=0,name:u,onChange:c,onChangeCommitted:d,orientation:f="horizontal",rootRef:v,scale:g=YA,step:S=1,shiftStep:k=10,tabIndex:y,value:p}=e,m=h.useRef(),[E,C]=h.useState(-1),[x,b]=h.useState(-1),[O,T]=h.useState(!1),$=h.useRef(0),[A,U]=vN({controlled:p,default:n??l,name:"Slider"}),B=c&&((N,P,D)=>{const oe=N.nativeEvent||N,ie=new oe.constructor(oe.type,oe);Object.defineProperty(ie,"target",{writable:!0,value:{value:P,name:u}}),c(ie,P,D)}),K=Array.isArray(A);let W=K?A.slice().sort(iE):[A];W=W.map(N=>N==null?l:go(N,l,a));const G=s===!0&&S!==null?[...Array(Math.floor((a-l)/S)+1)].map((N,P)=>({value:l+S*P})):s||[],V=G.map(N=>N.value),{isFocusVisibleRef:_,onBlur:I,onFocus:F,ref:Y}=CN(),[Z,ve]=h.useState(-1),X=h.useRef(),re=Fd(Y,X),ge=Fd(v,re),Me=N=>P=>{var D;const oe=Number(P.currentTarget.getAttribute("data-index"));F(P),_.current===!0&&ve(oe),b(oe),N==null||(D=N.onFocus)==null||D.call(N,P)},qe=N=>P=>{var D;I(P),_.current===!1&&ve(-1),b(-1),N==null||(D=N.onBlur)==null||D.call(N,P)},_t=(N,P)=>{const D=Number(N.currentTarget.getAttribute("data-index")),oe=W[D],ie=V.indexOf(oe);let ee=P;if(G&&S==null){const qt=V[V.length-1];ee>qt?ee=qt:eeP=>{var D;if(S!==null){const oe=Number(P.currentTarget.getAttribute("data-index")),ie=W[oe];let ee=null;(P.key==="ArrowLeft"||P.key==="ArrowDown")&&P.shiftKey||P.key==="PageDown"?ee=Math.max(ie-k,l):((P.key==="ArrowRight"||P.key==="ArrowUp")&&P.shiftKey||P.key==="PageUp")&&(ee=Math.min(ie+k,a)),ee!==null&&(_t(P,ee),P.preventDefault())}N==null||(D=N.onKeyDown)==null||D.call(N,P)};Qx(()=>{if(r&&X.current.contains(document.activeElement)){var N;(N=document.activeElement)==null||N.blur()}},[r]),r&&E!==-1&&C(-1),r&&Z!==-1&&ve(-1);const Tn=N=>P=>{var D;(D=N.onChange)==null||D.call(N,P),_t(P,P.target.valueAsNumber)},Rn=h.useRef();let Qe=f;i&&f==="horizontal"&&(Qe+="-reverse");const de=({finger:N,move:P=!1})=>{const{current:D}=X,{width:oe,height:ie,bottom:ee,left:qt}=D.getBoundingClientRect();let un;Qe.indexOf("vertical")===0?un=(ee-N.y)/ie:un=(N.x-qt)/oe,Qe.indexOf("-reverse")!==-1&&(un=1-un);let le;if(le=KA(un,l,a),S)le=qA(le,S,l);else{const ro=Fv(V,le);le=V[ro]}le=go(le,l,a);let Tt=0;if(K){P?Tt=Rn.current:Tt=Fv(W,le),o&&(le=go(le,W[Tt-1]||-1/0,W[Tt+1]||1/0));const ro=le;le=zv({values:W,newValue:le,index:Tt}),o&&P||(Tt=le.indexOf(ro),Rn.current=Tt)}return{newValue:le,activeIndex:Tt}},H=nf(N=>{const P=ka(N,m);if(!P)return;if($.current+=1,N.type==="mousemove"&&N.buttons===0){Ue(N);return}const{newValue:D,activeIndex:oe}=de({finger:P,move:!0});ba({sliderRef:X,activeIndex:oe,setActive:C}),U(D),!O&&$.current>VA&&T(!0),B&&!Ca(D,A)&&B(N,D,oe)}),Ue=nf(N=>{const P=ka(N,m);if(T(!1),!P)return;const{newValue:D}=de({finger:P,move:!0});C(-1),N.type==="touchend"&&b(-1),d&&d(N,D),m.current=void 0,vt()}),nt=nf(N=>{if(r)return;Uv()||N.preventDefault();const P=N.changedTouches[0];P!=null&&(m.current=P.identifier);const D=ka(N,m);if(D!==!1){const{newValue:ie,activeIndex:ee}=de({finger:D});ba({sliderRef:X,activeIndex:ee,setActive:C}),U(ie),B&&!Ca(ie,A)&&B(N,ie,ee)}$.current=0;const oe=Xa(X.current);oe.addEventListener("touchmove",H,{passive:!0}),oe.addEventListener("touchend",Ue,{passive:!0})}),vt=h.useCallback(()=>{const N=Xa(X.current);N.removeEventListener("mousemove",H),N.removeEventListener("mouseup",Ue),N.removeEventListener("touchmove",H),N.removeEventListener("touchend",Ue)},[Ue,H]);h.useEffect(()=>{const{current:N}=X;return N.addEventListener("touchstart",nt,{passive:Uv()}),()=>{N.removeEventListener("touchstart",nt),vt()}},[vt,nt]),h.useEffect(()=>{r&&vt()},[r,vt]);const vi=N=>P=>{var D;if((D=N.onMouseDown)==null||D.call(N,P),r||P.defaultPrevented||P.button!==0)return;P.preventDefault();const oe=ka(P,m);if(oe!==!1){const{newValue:ee,activeIndex:qt}=de({finger:oe});ba({sliderRef:X,activeIndex:qt,setActive:C}),U(ee),B&&!Ca(ee,A)&&B(P,ee,qt)}$.current=0;const ie=Xa(X.current);ie.addEventListener("mousemove",H,{passive:!0}),ie.addEventListener("mouseup",Ue)},we=Vl(K?W[0]:l,l,a),Gt=Vl(W[W.length-1],l,a)-we,eo=(N={})=>{const P=el(N),D={onMouseDown:vi(P||{})},oe=j({},P,D);return j({},N,{ref:ge},oe)},to=N=>P=>{var D;(D=N.onMouseOver)==null||D.call(N,P);const oe=Number(P.currentTarget.getAttribute("data-index"));b(oe)},Rr=N=>P=>{var D;(D=N.onMouseLeave)==null||D.call(N,P),b(-1)};return{active:E,axis:Qe,axisProps:QA,dragging:O,focusedThumbIndex:Z,getHiddenInputProps:(N={})=>{var P;const D=el(N),oe={onChange:Tn(D||{}),onFocus:Me(D||{}),onBlur:qe(D||{}),onKeyDown:_n(D||{})},ie=j({},D,oe);return j({tabIndex:y,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":g(a),"aria-valuemin":g(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(P=e.step)!=null?P:void 0,disabled:r},N,ie,{style:j({},ON,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:eo,getThumbProps:(N={})=>{const P=el(N),D={onMouseOver:to(P||{}),onMouseLeave:Rr(P||{})};return j({},N,P,D)},marks:G,open:x,range:K,rootRef:ge,trackLeap:Gt,trackOffset:we,values:W,getThumbStyle:N=>({pointerEvents:E!==-1&&E!==N?"none":void 0})}}const JA=e=>!e||!rs(e);function ZA(e){return Hx("MuiSlider",e)}const Mt=uN("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),eP=e=>{const{open:t}=e;return{offset:Sr(t&&Mt.valueLabelOpen),circle:Mt.valueLabelCircle,label:Mt.valueLabelLabel}};function tP(e){const{children:t,className:n,value:r}=e,o=eP(e);return t?h.cloneElement(t,{className:Sr(t.props.className)},w.jsxs(h.Fragment,{children:[t.props.children,w.jsx("span",{className:Sr(o.offset,n),"aria-hidden":!0,children:w.jsx("span",{className:o.circle,children:w.jsx("span",{className:o.label,children:r})})})]})):null}const nP=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function Wv(e){return e}const rP=Xr("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${tn(n.color)}`],n.size!=="medium"&&t[`size${tn(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Mt.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Mt.dragging}`]:{[`& .${Mt.thumb}, & .${Mt.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),oP=Xr("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),iP=Xr("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n,track:"inverted"},style:j({},e.vars?{backgroundColor:e.vars.palette.Slider[`${n}Track`],borderColor:e.vars.palette.Slider[`${n}Track`]}:j({backgroundColor:Wd(e.palette[n].main,.62),borderColor:Wd(e.palette[n].main,.62)},e.applyStyles("dark",{backgroundColor:Ud(e.palette[n].main,.5)}),e.applyStyles("dark",{borderColor:Ud(e.palette[n].main,.5)})))}))]}}),sP=Xr("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${tn(n.color)}`],n.size!=="medium"&&t[`thumbSize${tn(n.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Mt.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{[`&:hover, &.${Mt.focusVisible}`]:j({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${Rv(e.palette[n].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${Mt.active}`]:j({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${Rv(e.palette[n].main,.16)}`})}}))]}}),aP=Xr(tP,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>j({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Mt.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Mt.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),lP=Xr("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>em(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),uP=Xr("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>em(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>j({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),cP=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:s,color:a,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",a&&`color${tn(a)}`,l&&`size${tn(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${tn(l)}`,a&&`thumbColor${tn(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return $N(u,ZA,s)},fP=({children:e})=>e,dP=h.forwardRef(function(t,n){var r,o,i,s,a,l,u,c,d,f,v,g,S,k,y,p,m,E,C,x,b,O,T,$;const A=DA({props:t,name:"MuiSlider"}),U=TN(),{"aria-label":B,"aria-valuetext":K,"aria-labelledby":W,component:G="span",components:V={},componentsProps:_={},color:I="primary",classes:F,className:Y,disableSwap:Z=!1,disabled:ve=!1,getAriaLabel:X,getAriaValueText:re,marks:ge=!1,max:Me=100,min:qe=0,orientation:_t="horizontal",shiftStep:_n=10,size:Tn="medium",step:Rn=1,scale:Qe=Wv,slotProps:de,slots:H,track:Ue="normal",valueLabelDisplay:nt="off",valueLabelFormat:vt=Wv}=A,vi=an(A,nP),we=j({},A,{isRtl:U,max:Me,min:qe,classes:F,disabled:ve,disableSwap:Z,orientation:_t,marks:ge,color:I,size:Tn,step:Rn,shiftStep:_n,scale:Qe,track:Ue,valueLabelDisplay:nt,valueLabelFormat:vt}),{axisProps:Gt,getRootProps:eo,getHiddenInputProps:to,getThumbProps:Rr,open:gi,active:no,axis:Zn,focusedThumbIndex:N,range:P,dragging:D,marks:oe,values:ie,trackOffset:ee,trackLeap:qt,getThumbStyle:un}=XA(j({},we,{rootRef:n}));we.marked=oe.length>0&&oe.some(Ne=>Ne.label),we.dragging=D,we.focusedThumbIndex=N;const le=cP(we),Tt=(r=(o=H==null?void 0:H.root)!=null?o:V.Root)!=null?r:rP,ro=(i=(s=H==null?void 0:H.rail)!=null?s:V.Rail)!=null?i:oP,xm=(a=(l=H==null?void 0:H.track)!=null?l:V.Track)!=null?a:iP,Em=(u=(c=H==null?void 0:H.thumb)!=null?c:V.Thumb)!=null?u:sP,km=(d=(f=H==null?void 0:H.valueLabel)!=null?f:V.ValueLabel)!=null?d:aP,cc=(v=(g=H==null?void 0:H.mark)!=null?g:V.Mark)!=null?v:lP,fc=(S=(k=H==null?void 0:H.markLabel)!=null?k:V.MarkLabel)!=null?S:uP,bm=(y=(p=H==null?void 0:H.input)!=null?p:V.Input)!=null?y:"input",dc=(m=de==null?void 0:de.root)!=null?m:_.root,pk=(E=de==null?void 0:de.rail)!=null?E:_.rail,pc=(C=de==null?void 0:de.track)!=null?C:_.track,hc=(x=de==null?void 0:de.thumb)!=null?x:_.thumb,mc=(b=de==null?void 0:de.valueLabel)!=null?b:_.valueLabel,hk=(O=de==null?void 0:de.mark)!=null?O:_.mark,mk=(T=de==null?void 0:de.markLabel)!=null?T:_.markLabel,yk=($=de==null?void 0:de.input)!=null?$:_.input,vk=tr({elementType:Tt,getSlotProps:eo,externalSlotProps:dc,externalForwardedProps:vi,additionalProps:j({},JA(Tt)&&{as:G}),ownerState:j({},we,dc==null?void 0:dc.ownerState),className:[le.root,Y]}),gk=tr({elementType:ro,externalSlotProps:pk,ownerState:we,className:le.rail}),wk=tr({elementType:xm,externalSlotProps:pc,additionalProps:{style:j({},Gt[Zn].offset(ee),Gt[Zn].leap(qt))},ownerState:j({},we,pc==null?void 0:pc.ownerState),className:le.track}),yc=tr({elementType:Em,getSlotProps:Rr,externalSlotProps:hc,ownerState:j({},we,hc==null?void 0:hc.ownerState),className:le.thumb}),Sk=tr({elementType:km,externalSlotProps:mc,ownerState:j({},we,mc==null?void 0:mc.ownerState),className:le.valueLabel}),vc=tr({elementType:cc,externalSlotProps:hk,ownerState:we,className:le.mark}),gc=tr({elementType:fc,externalSlotProps:mk,ownerState:we,className:le.markLabel}),xk=tr({elementType:bm,getSlotProps:to,externalSlotProps:yk,ownerState:we});return w.jsxs(Tt,j({},vk,{children:[w.jsx(ro,j({},gk)),w.jsx(xm,j({},wk)),oe.filter(Ne=>Ne.value>=qe&&Ne.value<=Me).map((Ne,We)=>{const wc=Vl(Ne.value,qe,Me),Ys=Gt[Zn].offset(wc);let Nn;return Ue===!1?Nn=ie.indexOf(Ne.value)!==-1:Nn=Ue==="normal"&&(P?Ne.value>=ie[0]&&Ne.value<=ie[ie.length-1]:Ne.value<=ie[0])||Ue==="inverted"&&(P?Ne.value<=ie[0]||Ne.value>=ie[ie.length-1]:Ne.value>=ie[0]),w.jsxs(h.Fragment,{children:[w.jsx(cc,j({"data-index":We},vc,!rs(cc)&&{markActive:Nn},{style:j({},Ys,vc.style),className:Sr(vc.className,Nn&&le.markActive)})),Ne.label!=null?w.jsx(fc,j({"aria-hidden":!0,"data-index":We},gc,!rs(fc)&&{markLabelActive:Nn},{style:j({},Ys,gc.style),className:Sr(le.markLabel,gc.className,Nn&&le.markLabelActive),children:Ne.label})):null]},We)}),ie.map((Ne,We)=>{const wc=Vl(Ne,qe,Me),Ys=Gt[Zn].offset(wc),Nn=nt==="off"?fP:km;return w.jsx(Nn,j({},!rs(Nn)&&{valueLabelFormat:vt,valueLabelDisplay:nt,value:typeof vt=="function"?vt(Qe(Ne),We):vt,index:We,open:gi===We||no===We||nt==="on",disabled:ve},Sk,{children:w.jsx(Em,j({"data-index":We},yc,{className:Sr(le.thumb,yc.className,no===We&&le.active,N===We&&le.focusVisible),style:j({},Ys,un(We),yc.style),children:w.jsx(bm,j({"data-index":We,"aria-label":X?X(We):B,"aria-valuenow":Qe(Ne),"aria-labelledby":W,"aria-valuetext":re?re(Qe(Ne),We):K,value:ie[We]},xk))}))}),We)})]}))});var Hv=Object.prototype.toString,sE=function(t){var n=Hv.call(t),r=n==="[object Arguments]";return r||(r=n!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&Hv.call(t.callee)==="[object Function]"),r},af,Vv;function pP(){if(Vv)return af;Vv=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=sE,o=Object.prototype.propertyIsEnumerable,i=!o.call({toString:null},"toString"),s=o.call(function(){},"prototype"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(f){var v=f.constructor;return v&&v.prototype===f},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if(typeof window>"u")return!1;for(var f in window)try{if(!u["$"+f]&&t.call(window,f)&&window[f]!==null&&typeof window[f]=="object")try{l(window[f])}catch{return!0}}catch{return!0}return!1}(),d=function(f){if(typeof window>"u"||!c)return l(f);try{return l(f)}catch{return!1}};e=function(v){var g=v!==null&&typeof v=="object",S=n.call(v)==="[object Function]",k=r(v),y=g&&n.call(v)==="[object String]",p=[];if(!g&&!S&&!k)throw new TypeError("Object.keys called on a non-object");var m=s&&S;if(y&&v.length>0&&!t.call(v,0))for(var E=0;E0)for(var C=0;C"u"||!Be?Q:Be(Uint8Array),zr={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Q:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Q:ArrayBuffer,"%ArrayIteratorPrototype%":ho&&Be?Be([][Symbol.iterator]()):Q,"%AsyncFromSyncIteratorPrototype%":Q,"%AsyncFunction%":wo,"%AsyncGenerator%":wo,"%AsyncGeneratorFunction%":wo,"%AsyncIteratorPrototype%":wo,"%Atomics%":typeof Atomics>"u"?Q:Atomics,"%BigInt%":typeof BigInt>"u"?Q:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Q:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Q:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Q:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":LP,"%eval%":eval,"%EvalError%":IP,"%Float32Array%":typeof Float32Array>"u"?Q:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Q:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Q:FinalizationRegistry,"%Function%":uE,"%GeneratorFunction%":wo,"%Int8Array%":typeof Int8Array>"u"?Q:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Q:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Q:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ho&&Be?Be(Be([][Symbol.iterator]())):Q,"%JSON%":typeof JSON=="object"?JSON:Q,"%Map%":typeof Map>"u"?Q:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ho||!Be?Q:Be(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Q:Promise,"%Proxy%":typeof Proxy>"u"?Q:Proxy,"%RangeError%":MP,"%ReferenceError%":BP,"%Reflect%":typeof Reflect>"u"?Q:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Q:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ho||!Be?Q:Be(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Q:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ho&&Be?Be(""[Symbol.iterator]()):Q,"%Symbol%":ho?Symbol:Q,"%SyntaxError%":ni,"%ThrowTypeError%":FP,"%TypedArray%":UP,"%TypeError%":Uo,"%Uint8Array%":typeof Uint8Array>"u"?Q:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Q:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Q:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Q:Uint32Array,"%URIError%":DP,"%WeakMap%":typeof WeakMap>"u"?Q:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Q:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Q:WeakSet};if(Be)try{null.error}catch(e){var WP=Be(Be(e));zr["%Error.prototype%"]=WP}var HP=function e(t){var n;if(t==="%AsyncFunction%")n=uf("async function () {}");else if(t==="%GeneratorFunction%")n=uf("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=uf("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&Be&&(n=Be(o.prototype))}return zr[t]=n,n},Yv={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Qs=rm,Kl=lE,VP=Qs.call(Function.call,Array.prototype.concat),KP=Qs.call(Function.apply,Array.prototype.splice),Xv=Qs.call(Function.call,String.prototype.replace),Gl=Qs.call(Function.call,String.prototype.slice),GP=Qs.call(Function.call,RegExp.prototype.exec),qP=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,QP=/\\(\\)?/g,YP=function(t){var n=Gl(t,0,1),r=Gl(t,-1);if(n==="%"&&r!=="%")throw new ni("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new ni("invalid intrinsic syntax, expected opening `%`");var o=[];return Xv(t,qP,function(i,s,a,l){o[o.length]=a?Xv(l,QP,"$1"):s||i}),o},XP=function(t,n){var r=t,o;if(Kl(Yv,r)&&(o=Yv[r],r="%"+o[0]+"%"),Kl(zr,r)){var i=zr[r];if(i===wo&&(i=HP(r)),typeof i>"u"&&!n)throw new Uo("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:r,value:i}}throw new ni("intrinsic "+t+" does not exist!")},On=function(t,n){if(typeof t!="string"||t.length===0)throw new Uo("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Uo('"allowMissing" argument must be a boolean');if(GP(/^%?[^%]*%?$/,t)===null)throw new ni("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=YP(t),o=r.length>0?r[0]:"",i=XP("%"+o+"%",n),s=i.name,a=i.value,l=!1,u=i.alias;u&&(o=u[0],KP(r,VP([0,1],u)));for(var c=1,d=!0;c=r.length){var S=Fr(a,f);d=!!S,d&&"get"in S&&!("originalValue"in S.get)?a=S.get:a=a[f]}else d=Kl(a,f),a=a[f];d&&!l&&(zr[s]=a)}}return a},JP=On,nl=JP("%Object.defineProperty%",!0)||!1;if(nl)try{nl({},"a",{value:1})}catch{nl=!1}var om=nl,ZP=On,rl=ZP("%Object.getOwnPropertyDescriptor%",!0);if(rl)try{rl([],"length")}catch{rl=null}var im=rl,Jv=om,e3=aE,mo=_r,Zv=im,sm=function(t,n,r){if(!t||typeof t!="object"&&typeof t!="function")throw new mo("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new mo("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new mo("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new mo("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new mo("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new mo("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,l=!!Zv&&Zv(t,n);if(Jv)Jv(t,n,{configurable:s===null&&l?l.configurable:!s,enumerable:o===null&&l?l.enumerable:!o,value:r,writable:i===null&&l?l.writable:!i});else if(a||!o&&!i&&!s)t[n]=r;else throw new e3("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Vd=om,cE=function(){return!!Vd};cE.hasArrayLengthDefineBug=function(){if(!Vd)return null;try{return Vd([],"length",{value:1}).length!==1}catch{return!0}};var am=cE,t3=tm,n3=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",r3=Object.prototype.toString,o3=Array.prototype.concat,eg=sm,i3=function(e){return typeof e=="function"&&r3.call(e)==="[object Function]"},fE=am(),s3=function(e,t,n,r){if(t in e){if(r===!0){if(e[t]===n)return}else if(!i3(r)||!r())return}fE?eg(e,t,n,!0):eg(e,t,n)},dE=function(e,t){var n=arguments.length>2?arguments[2]:{},r=t3(t);n3&&(r=o3.call(r,Object.getOwnPropertySymbols(t)));for(var o=0;o4294967295||u3(n)!==n)throw new rg("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in t&&ng){var s=ng(t,"length");s&&!s.configurable&&(o=!1),s&&!s.writable&&(i=!1)}return(o||i||!r)&&(l3?tg(t,"length",n,!0,!0):tg(t,"length",n)),t};(function(e){var t=rm,n=On,r=c3,o=_r,i=n("%Function.prototype.apply%"),s=n("%Function.prototype.call%"),a=n("%Reflect.apply%",!0)||t.call(s,i),l=om,u=n("%Math.max%");e.exports=function(f){if(typeof f!="function")throw new o("a function is required");var v=a(t,s,arguments);return r(v,1+u(0,f.length-(arguments.length-1)),!0)};var c=function(){return a(t,i,arguments)};l?l(e.exports,"apply",{value:c}):e.exports.apply=c})(pE);var mi=pE.exports,hE=On,mE=mi,f3=mE(hE("String.prototype.indexOf")),Kt=function(t,n){var r=hE(t,!!n);return typeof r=="function"&&f3(t,".prototype.")>-1?mE(r):r},d3=tm,yE=sc(),vE=Kt,og=Object,p3=vE("Array.prototype.push"),ig=vE("Object.prototype.propertyIsEnumerable"),h3=yE?Object.getOwnPropertySymbols:null,gE=function(t,n){if(t==null)throw new TypeError("target must be an object");var r=og(t);if(arguments.length===1)return r;for(var o=1;o2&&!!arguments[2];return(!r||T3)&&(_3?sg(t,"name",n,!0,!0):sg(t,"name",n)),t},A3=N3,P3=_r,j3=Object,EE=A3(function(){if(this==null||this!==j3(this))throw new P3("RegExp.prototype.flags getter called on non-object");var t="";return this.hasIndices&&(t+="d"),this.global&&(t+="g"),this.ignoreCase&&(t+="i"),this.multiline&&(t+="m"),this.dotAll&&(t+="s"),this.unicode&&(t+="u"),this.unicodeSets&&(t+="v"),this.sticky&&(t+="y"),t},"get flags",!0),L3=EE,I3=Jr.supportsDescriptors,M3=Object.getOwnPropertyDescriptor,kE=function(){if(I3&&/a/mig.flags==="gim"){var t=M3(RegExp.prototype,"flags");if(t&&typeof t.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var n="",r={};if(Object.defineProperty(r,"hasIndices",{get:function(){n+="d"}}),Object.defineProperty(r,"sticky",{get:function(){n+="y"}}),n==="dy")return t.get}}return L3},B3=Jr.supportsDescriptors,D3=kE,F3=Object.getOwnPropertyDescriptor,z3=Object.defineProperty,U3=TypeError,ag=Object.getPrototypeOf,W3=/a/,H3=function(){if(!B3||!ag)throw new U3("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=D3(),n=ag(W3),r=F3(n,"flags");return(!r||r.get!==t)&&z3(n,"flags",{configurable:!0,enumerable:!1,get:t}),t},V3=Jr,K3=mi,G3=EE,bE=kE,q3=H3,CE=K3(bE());V3(CE,{getPolyfill:bE,implementation:G3,shim:q3});var Q3=CE,ol={exports:{}},Y3=sc,Zr=function(){return Y3()&&!!Symbol.toStringTag},X3=Zr(),J3=Kt,Kd=J3("Object.prototype.toString"),ac=function(t){return X3&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:Kd(t)==="[object Arguments]"},OE=function(t){return ac(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&Kd(t)!=="[object Array]"&&Kd(t.callee)==="[object Function]"},Z3=function(){return ac(arguments)}();ac.isLegacyArguments=OE;var $E=Z3?ac:OE;const ej={},tj=Object.freeze(Object.defineProperty({__proto__:null,default:ej},Symbol.toStringTag,{value:"Module"})),nj=Yn(tj);var lm=typeof Map=="function"&&Map.prototype,df=Object.getOwnPropertyDescriptor&&lm?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ql=lm&&df&&typeof df.get=="function"?df.get:null,lg=lm&&Map.prototype.forEach,um=typeof Set=="function"&&Set.prototype,pf=Object.getOwnPropertyDescriptor&&um?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ql=um&&pf&&typeof pf.get=="function"?pf.get:null,ug=um&&Set.prototype.forEach,rj=typeof WeakMap=="function"&&WeakMap.prototype,is=rj?WeakMap.prototype.has:null,oj=typeof WeakSet=="function"&&WeakSet.prototype,ss=oj?WeakSet.prototype.has:null,ij=typeof WeakRef=="function"&&WeakRef.prototype,cg=ij?WeakRef.prototype.deref:null,sj=Boolean.prototype.valueOf,aj=Object.prototype.toString,lj=Function.prototype.toString,uj=String.prototype.match,cm=String.prototype.slice,fr=String.prototype.replace,cj=String.prototype.toUpperCase,fg=String.prototype.toLowerCase,_E=RegExp.prototype.test,dg=Array.prototype.concat,mn=Array.prototype.join,fj=Array.prototype.slice,pg=Math.floor,Gd=typeof BigInt=="function"?BigInt.prototype.valueOf:null,hf=Object.getOwnPropertySymbols,qd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ri=typeof Symbol=="function"&&typeof Symbol.iterator=="object",tt=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ri||!0)?Symbol.toStringTag:null,TE=Object.prototype.propertyIsEnumerable,hg=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function mg(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||_E.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-pg(-e):pg(e);if(r!==e){var o=String(r),i=cm.call(t,o.length+1);return fr.call(o,n,"$&_")+"."+fr.call(fr.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return fr.call(t,n,"$&_")}var Qd=nj,yg=Qd.custom,vg=NE(yg)?yg:null,dj=function e(t,n,r,o){var i=n||{};if(ir(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ir(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=ir(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ir(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ir(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return PE(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return a?mg(t,l):l}if(typeof t=="bigint"){var u=String(t)+"n";return a?mg(t,u):u}var c=typeof i.depth>"u"?5:i.depth;if(typeof r>"u"&&(r=0),r>=c&&c>0&&typeof t=="object")return Yd(t)?"[Array]":"[Object]";var d=Rj(i,r);if(typeof o>"u")o=[];else if(AE(o,t)>=0)return"[Circular]";function f(B,K,W){if(K&&(o=fj.call(o),o.push(K)),W){var G={depth:i.depth};return ir(i,"quoteStyle")&&(G.quoteStyle=i.quoteStyle),e(B,G,r+1,o)}return e(B,i,r+1,o)}if(typeof t=="function"&&!gg(t)){var v=xj(t),g=$a(t,f);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(g.length>0?" { "+mn.call(g,", ")+" }":"")}if(NE(t)){var S=ri?fr.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):qd.call(t);return typeof t=="object"&&!ri?Ai(S):S}if($j(t)){for(var k="<"+fg.call(String(t.nodeName)),y=t.attributes||[],p=0;p",k}if(Yd(t)){if(t.length===0)return"[]";var m=$a(t,f);return d&&!Tj(m)?"["+Xd(m,d)+"]":"[ "+mn.call(m,", ")+" ]"}if(mj(t)){var E=$a(t,f);return!("cause"in Error.prototype)&&"cause"in t&&!TE.call(t,"cause")?"{ ["+String(t)+"] "+mn.call(dg.call("[cause]: "+f(t.cause),E),", ")+" }":E.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+mn.call(E,", ")+" }"}if(typeof t=="object"&&s){if(vg&&typeof t[vg]=="function"&&Qd)return Qd(t,{depth:c-r});if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Ej(t)){var C=[];return lg&&lg.call(t,function(B,K){C.push(f(K,t,!0)+" => "+f(B,t))}),wg("Map",ql.call(t),C,d)}if(Cj(t)){var x=[];return ug&&ug.call(t,function(B){x.push(f(B,t))}),wg("Set",Ql.call(t),x,d)}if(kj(t))return mf("WeakMap");if(Oj(t))return mf("WeakSet");if(bj(t))return mf("WeakRef");if(vj(t))return Ai(f(Number(t)));if(wj(t))return Ai(f(Gd.call(t)));if(gj(t))return Ai(sj.call(t));if(yj(t))return Ai(f(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof cl<"u"&&t===cl)return"{ [object globalThis] }";if(!hj(t)&&!gg(t)){var b=$a(t,f),O=hg?hg(t)===Object.prototype:t instanceof Object||t.constructor===Object,T=t instanceof Object?"":"null prototype",$=!O&&tt&&Object(t)===t&&tt in t?cm.call(Tr(t),8,-1):T?"Object":"",A=O||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",U=A+($||T?"["+mn.call(dg.call([],$||[],T||[]),": ")+"] ":"");return b.length===0?U+"{}":d?U+"{"+Xd(b,d)+"}":U+"{ "+mn.call(b,", ")+" }"}return String(t)};function RE(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function pj(e){return fr.call(String(e),/"/g,""")}function Yd(e){return Tr(e)==="[object Array]"&&(!tt||!(typeof e=="object"&&tt in e))}function hj(e){return Tr(e)==="[object Date]"&&(!tt||!(typeof e=="object"&&tt in e))}function gg(e){return Tr(e)==="[object RegExp]"&&(!tt||!(typeof e=="object"&&tt in e))}function mj(e){return Tr(e)==="[object Error]"&&(!tt||!(typeof e=="object"&&tt in e))}function yj(e){return Tr(e)==="[object String]"&&(!tt||!(typeof e=="object"&&tt in e))}function vj(e){return Tr(e)==="[object Number]"&&(!tt||!(typeof e=="object"&&tt in e))}function gj(e){return Tr(e)==="[object Boolean]"&&(!tt||!(typeof e=="object"&&tt in e))}function NE(e){if(ri)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!qd)return!1;try{return qd.call(e),!0}catch{}return!1}function wj(e){if(!e||typeof e!="object"||!Gd)return!1;try{return Gd.call(e),!0}catch{}return!1}var Sj=Object.prototype.hasOwnProperty||function(e){return e in this};function ir(e,t){return Sj.call(e,t)}function Tr(e){return aj.call(e)}function xj(e){if(e.name)return e.name;var t=uj.call(lj.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function AE(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return PE(cm.call(e,0,t.maxStringLength),t)+r}var o=fr.call(fr.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,_j);return RE(o,"single",t)}function _j(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+cj.call(t.toString(16))}function Ai(e){return"Object("+e+")"}function mf(e){return e+" { ? }"}function wg(e,t,n,r){var o=r?Xd(n,r):mn.call(n,", ");return e+" ("+t+") {"+o+"}"}function Tj(e){for(var t=0;t=0)return!1;return!0}function Rj(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=mn.call(Array(e.indent+1)," ");else return null;return{base:n,prev:mn.call(Array(t+1),n)}}function Xd(e,t){if(e.length===0)return"";var n=` `+t.prev+t.base;return n+mn.call(e,","+n)+` -`+t.prev}function $a(e,t){var n=Yd(e),r=[];if(n){r.length=e.length;for(var o=0;o=r)return n+1;var o=$g(t,n);if(o<55296||o>56319)return n+1;var i=$g(t,n+1);return i<56320||i>57343?n+1:n+2},vf=function(t){var n=0;return{next:function(){var o=n>=t.length,i;return o||(i=t[n],n+=1),{done:o,value:i}}}},_g=function(t,n){if(e4(t)||kg(t))return vf(t);if(t4(t)){var r=0;return{next:function(){var i=i4(t,r),s=o4(t,r,i);return r=i,{done:i>t.length,value:s}}}}if(n&&typeof t["_es6-shim iterator_"]<"u")return t["_es6-shim iterator_"]()};if(!n4&&!r4)ol.exports=function(t){if(t!=null)return _g(t,!0)};else{var s4=DE,a4=zE,Tg=Yt("Map.prototype.forEach",!0),Rg=Yt("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var Ng=Yt("Map.prototype.iterator",!0),Ag=Yt("Set.prototype.iterator",!0);var Pg=Yt("Map.prototype.@@iterator",!0)||Yt("Map.prototype._es6-shim iterator_",!0),jg=Yt("Set.prototype.@@iterator",!0)||Yt("Set.prototype._es6-shim iterator_",!0),l4=function(t){if(s4(t)){if(Ng)return bg(Ng(t));if(Pg)return Pg(t);if(Tg){var n=[];return Tg(t,function(o,i){Og(n,[i,o])}),vf(n)}}if(a4(t)){if(Ag)return bg(Ag(t));if(jg)return jg(t);if(Rg){var r=[];return Rg(t,function(o){Og(r,o)}),vf(r)}}};ol.exports=function(t){return l4(t)||_g(t)}}}var u4=ol.exports,Lg=function(e){return e!==e},UE=function(t,n){return t===0&&n===0?1/t===1/n:!!(t===n||Lg(t)&&Lg(n))},c4=UE,WE=function(){return typeof Object.is=="function"?Object.is:c4},f4=WE,d4=Jr,p4=function(){var t=f4();return d4(Object,{is:t},{is:function(){return Object.is!==t}}),t},h4=Jr,m4=mi,y4=UE,HE=WE,v4=p4,VE=m4(HE(),Object);h4(VE,{getPolyfill:HE,implementation:y4,shim:v4});var g4=VE,w4=mi,KE=Kt,S4=On,Jd=S4("%ArrayBuffer%",!0),il=KE("ArrayBuffer.prototype.byteLength",!0),x4=KE("Object.prototype.toString"),Ig=!!Jd&&!il&&new Jd(0).slice,Mg=!!Ig&&w4(Ig),GE=il||Mg?function(t){if(!t||typeof t!="object")return!1;try{return il?il(t):Mg(t,0),!0}catch{return!1}}:Jd?function(t){return x4(t)==="[object ArrayBuffer]"}:function(t){return!1},E4=Date.prototype.getDay,k4=function(t){try{return E4.call(t),!0}catch{return!1}},b4=Object.prototype.toString,C4="[object Date]",O4=Zr(),$4=function(t){return typeof t!="object"||t===null?!1:O4?k4(t):b4.call(t)===C4},Zd=Kt,qE=Zr(),QE,YE,ep,tp;if(qE){QE=Zd("Object.prototype.hasOwnProperty"),YE=Zd("RegExp.prototype.exec"),ep={};var gf=function(){throw ep};tp={toString:gf,valueOf:gf},typeof Symbol.toPrimitive=="symbol"&&(tp[Symbol.toPrimitive]=gf)}var _4=Zd("Object.prototype.toString"),T4=Object.getOwnPropertyDescriptor,R4="[object RegExp]",N4=qE?function(t){if(!t||typeof t!="object")return!1;var n=T4(t,"lastIndex"),r=n&&QE(n,"value");if(!r)return!1;try{YE(t,tp)}catch(o){return o===ep}}:function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:_4(t)===R4},A4=Kt,Bg=A4("SharedArrayBuffer.prototype.byteLength",!0),P4=Bg?function(t){if(!t||typeof t!="object")return!1;try{return Bg(t),!0}catch{return!1}}:function(t){return!1},j4=Number.prototype.toString,L4=function(t){try{return j4.call(t),!0}catch{return!1}},I4=Object.prototype.toString,M4="[object Number]",B4=Zr(),D4=function(t){return typeof t=="number"?!0:typeof t!="object"?!1:B4?L4(t):I4.call(t)===M4},XE=Kt,F4=XE("Boolean.prototype.toString"),z4=XE("Object.prototype.toString"),U4=function(t){try{return F4(t),!0}catch{return!1}},W4="[object Boolean]",H4=Zr(),V4=function(t){return typeof t=="boolean"?!0:t===null||typeof t!="object"?!1:H4&&Symbol.toStringTag in t?U4(t):z4(t)===W4},np={exports:{}},K4=Object.prototype.toString,G4=nm();if(G4){var q4=Symbol.prototype.toString,Q4=/^Symbol\(.*\)$/,Y4=function(t){return typeof t.valueOf()!="symbol"?!1:Q4.test(q4.call(t))};np.exports=function(t){if(typeof t=="symbol")return!0;if(K4.call(t)!=="[object Symbol]")return!1;try{return Y4(t)}catch{return!1}}}else np.exports=function(t){return!1};var X4=np.exports,rp={exports:{}},Dg=typeof BigInt<"u"&&BigInt,J4=function(){return typeof Dg=="function"&&typeof BigInt=="function"&&typeof Dg(42)=="bigint"&&typeof BigInt(42)=="bigint"},Z4=J4();if(Z4){var e5=BigInt.prototype.valueOf,t5=function(t){try{return e5.call(t),!0}catch{}return!1};rp.exports=function(t){return t===null||typeof t>"u"||typeof t=="boolean"||typeof t=="string"||typeof t=="number"||typeof t=="symbol"||typeof t=="function"?!1:typeof t=="bigint"?!0:t5(t)}}else rp.exports=function(t){return!1};var n5=rp.exports,r5=ME,o5=D4,i5=V4,s5=X4,a5=n5,l5=function(t){if(t==null||typeof t!="object"&&typeof t!="function")return null;if(r5(t))return"String";if(o5(t))return"Number";if(i5(t))return"Boolean";if(s5(t))return"Symbol";if(a5(t))return"BigInt"},Jl=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,Fg=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,Zl;Jl||(Zl=function(t){return!1});var op=Jl?Jl.prototype.has:null,wf=Fg?Fg.prototype.has:null;!Zl&&!op&&(Zl=function(t){return!1});var u5=Zl||function(t){if(!t||typeof t!="object")return!1;try{if(op.call(t,op),wf)try{wf.call(t,wf)}catch{return!0}return t instanceof Jl}catch{}return!1},ip={exports:{}},c5=On,JE=Kt,f5=c5("%WeakSet%",!0),Sf=JE("WeakSet.prototype.has",!0);if(Sf){var xf=JE("WeakMap.prototype.has",!0);ip.exports=function(t){if(!t||typeof t!="object")return!1;try{if(Sf(t,Sf),xf)try{xf(t,xf)}catch{return!0}return t instanceof f5}catch{}return!1}}else ip.exports=function(t){return!1};var d5=ip.exports,p5=DE,h5=zE,m5=u5,y5=d5,v5=function(t){if(t&&typeof t=="object"){if(p5(t))return"Map";if(h5(t))return"Set";if(m5(t))return"WeakMap";if(y5(t))return"WeakSet"}return!1},ZE=Function.prototype.toString,Ao=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,sp,sl;if(typeof Ao=="function"&&typeof Object.defineProperty=="function")try{sp=Object.defineProperty({},"length",{get:function(){throw sl}}),sl={},Ao(function(){throw 42},null,sp)}catch(e){e!==sl&&(Ao=null)}else Ao=null;var g5=/^\s*class\b/,ap=function(t){try{var n=ZE.call(t);return g5.test(n)}catch{return!1}},Ef=function(t){try{return ap(t)?!1:(ZE.call(t),!0)}catch{return!1}},al=Object.prototype.toString,w5="[object Object]",S5="[object Function]",x5="[object GeneratorFunction]",E5="[object HTMLAllCollection]",k5="[object HTML document.all class]",b5="[object HTMLCollection]",C5=typeof Symbol=="function"&&!!Symbol.toStringTag,O5=!(0 in[,]),lp=function(){return!1};if(typeof document=="object"){var $5=document.all;al.call($5)===al.call(document.all)&&(lp=function(t){if((O5||!t)&&(typeof t>"u"||typeof t=="object"))try{var n=al.call(t);return(n===E5||n===k5||n===b5||n===w5)&&t("")==null}catch{}return!1})}var _5=Ao?function(t){if(lp(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{Ao(t,null,sp)}catch(n){if(n!==sl)return!1}return!ap(t)&&Ef(t)}:function(t){if(lp(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(C5)return Ef(t);if(ap(t))return!1;var n=al.call(t);return n!==S5&&n!==x5&&!/^\[object HTML/.test(n)?!1:Ef(t)},T5=_5,R5=Object.prototype.toString,ek=Object.prototype.hasOwnProperty,N5=function(t,n,r){for(var o=0,i=t.length;o=3&&(o=r),R5.call(t)==="[object Array]"?N5(t,n,o):typeof t=="string"?A5(t,n,o):P5(t,n,o)},L5=j5,I5=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],kf=I5,M5=typeof globalThis>"u"?cl:globalThis,B5=function(){for(var t=[],n=0;n"u"?cl:globalThis,up=D5(),ym=mm("String.prototype.slice"),bf=Object.getPrototypeOf,z5=mm("Array.prototype.indexOf",!0)||function(t,n){for(var r=0;r-1?n:n!=="Object"?!1:W5(t)}return ll?U5(t):null},V5=Kt,Wg=V5("ArrayBuffer.prototype.byteLength",!0),K5=GE,G5=function(t){return K5(t)?Wg?Wg(t):t.byteLength:NaN},nk=C3,$n=Kt,Hg=Q3,q5=On,oi=u4,Q5=LE,Vg=g4,Kg=$E,Gg=IE,qg=GE,Qg=$4,Yg=N4,Xg=P4,Jg=tm,Zg=l5,e0=v5,t0=H5,n0=G5,r0=$n("SharedArrayBuffer.prototype.byteLength",!0),o0=$n("Date.prototype.getTime"),Cf=Object.getPrototypeOf,i0=$n("Object.prototype.toString"),nu=q5("%Set%",!0),cp=$n("Map.prototype.has",!0),ru=$n("Map.prototype.get",!0),s0=$n("Map.prototype.size",!0),ou=$n("Set.prototype.add",!0),rk=$n("Set.prototype.delete",!0),iu=$n("Set.prototype.has",!0),ul=$n("Set.prototype.size",!0);function a0(e,t,n,r){for(var o=oi(e),i;(i=o.next())&&!i.done;)if(on(t,i.value,n,r))return rk(e,i.value),!0;return!1}function ok(e){if(typeof e>"u")return null;if(typeof e!="object")return typeof e=="symbol"?!1:typeof e=="string"||typeof e=="number"?+e==+e:!0}function Y5(e,t,n,r,o,i){var s=ok(n);if(s!=null)return s;var a=ru(t,s),l=nk({},o,{strict:!1});return typeof a>"u"&&!cp(t,s)||!on(r,a,l,i)?!1:!cp(e,s)&&on(r,a,l,i)}function X5(e,t,n){var r=ok(n);return r??(iu(t,r)&&!iu(e,r))}function l0(e,t,n,r,o,i){for(var s=oi(e),a,l;(a=s.next())&&!a.done;)if(l=a.value,on(n,l,o,i)&&on(r,ru(t,l),o,i))return rk(e,l),!0;return!1}function on(e,t,n,r){var o=n||{};if(o.strict?Vg(e,t):e===t)return!0;var i=Zg(e),s=Zg(t);if(i!==s)return!1;if(!e||!t||typeof e!="object"&&typeof t!="object")return o.strict?Vg(e,t):e==t;var a=r.has(e),l=r.has(t),u;if(a&&l){if(r.get(e)===r.get(t))return!0}else u={};return a||r.set(e,u),l||r.set(t,u),eL(e,t,o,r)}function u0(e){return!e||typeof e!="object"||typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||e.length>0&&typeof e[0]!="number"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}function J5(e,t,n,r){if(ul(e)!==ul(t))return!1;for(var o=oi(e),i=oi(t),s,a,l;(s=o.next())&&!s.done;)if(s.value&&typeof s.value=="object")l||(l=new nu),ou(l,s.value);else if(!iu(t,s.value)){if(n.strict||!X5(e,t,s.value))return!1;l||(l=new nu),ou(l,s.value)}if(l){for(;(a=i.next())&&!a.done;)if(a.value&&typeof a.value=="object"){if(!a0(l,a.value,n.strict,r))return!1}else if(!n.strict&&!iu(e,a.value)&&!a0(l,a.value,n.strict,r))return!1;return ul(l)===0}return!0}function Z5(e,t,n,r){if(s0(e)!==s0(t))return!1;for(var o=oi(e),i=oi(t),s,a,l,u,c,d;(s=o.next())&&!s.done;)if(u=s.value[0],c=s.value[1],u&&typeof u=="object")l||(l=new nu),ou(l,u);else if(d=ru(t,u),typeof d>"u"&&!cp(t,u)||!on(c,d,n,r)){if(n.strict||!Y5(e,t,u,c,n,r))return!1;l||(l=new nu),ou(l,u)}if(l){for(;(a=i.next())&&!a.done;)if(u=a.value[0],d=a.value[1],u&&typeof u=="object"){if(!l0(l,e,u,d,n,r))return!1}else if(!n.strict&&(!e.has(u)||!on(ru(e,u),d,n,r))&&!l0(l,e,u,d,nk({},n,{strict:!1}),r))return!1;return ul(l)===0}return!0}function eL(e,t,n,r){var o,i;if(typeof e!=typeof t||e==null||t==null||i0(e)!==i0(t)||Kg(e)!==Kg(t))return!1;var s=Gg(e),a=Gg(t);if(s!==a)return!1;var l=e instanceof Error,u=t instanceof Error;if(l!==u||(l||u)&&(e.name!==t.name||e.message!==t.message))return!1;var c=Yg(e),d=Yg(t);if(c!==d||(c||d)&&(e.source!==t.source||Hg(e)!==Hg(t)))return!1;var f=Qg(e),v=Qg(t);if(f!==v||(f||v)&&o0(e)!==o0(t)||n.strict&&Cf&&Cf(e)!==Cf(t))return!1;var g=t0(e),S=t0(t);if(g!==S)return!1;if(g||S){if(e.length!==t.length)return!1;for(o=0;o=0;o--)if(x[o]!=b[o])return!1;for(o=x.length-1;o>=0;o--)if(i=x[o],!on(e[i],t[i],n,r))return!1;var O=e0(e),T=e0(t);return O!==T?!1:O==="Set"||T==="Set"?J5(e,t,n,r):O==="Map"?Z5(e,t,n,r):!0}var tL=function(t,n,r){return on(t,n,r,Q5())};const nL=si(tL),vm=(e,t)=>{for(const n in t)if(typeof t[n]=="object"){if(!nL(e[n],t[n]))return!1}else if(!Object.is(e[n],t[n]))return!1;return!0},Ra=e=>{let t=0,n;const r=e.readonly;return e.type==="int"||e.type==="float"?t=e.value:e.type==="Quantity"&&(t=e.value.magnitude,n=e.value.unit),[t,r,n]},ik=ne.memo(e=>{Cn();const[t,n]=h.useState(!1),{fullAccessPath:r,value:o,min:i,max:s,stepSize:a,docString:l,isInstantUpdate:u,addNotification:c,changeCallback:d=()=>{},displayName:f,id:v}=e;h.useEffect(()=>{c(`${r} changed to ${o.value}.`)},[e.value.value]),h.useEffect(()=>{c(`${r}.min changed to ${i.value}.`)},[e.min.value,e.min.type]),h.useEffect(()=>{c(`${r}.max changed to ${s.value}.`)},[e.max.value,e.max.type]),h.useEffect(()=>{c(`${r}.stepSize changed to ${a.value}.`)},[e.stepSize.value,e.stepSize.type]);const g=(T,$)=>{Array.isArray($)&&($=$[0]);let A;o.type==="Quantity"?A={type:"Quantity",value:{magnitude:$,unit:o.value.unit},full_access_path:`${r}.value`,readonly:o.readonly,doc:l}:A={type:o.type,value:$,full_access_path:`${r}.value`,readonly:o.readonly,doc:l},d(A)},S=(T,$,A)=>{let U;A.type==="Quantity"?U={type:A.type,value:{magnitude:T,unit:A.value.unit},full_access_path:`${r}.${$}`,readonly:A.readonly,doc:null}:U={type:A.type,value:T,full_access_path:`${r}.${$}`,readonly:A.readonly,doc:null},d(U)},[k,m,p]=Ra(o),[y,E]=Ra(i),[C,x]=Ra(s),[b,O]=Ra(a);return w.jsxs("div",{className:"component sliderComponent",id:v,children:[!1,w.jsxs(Fl,{children:[w.jsx(dn,{xs:"auto",xl:"auto",children:w.jsxs(Un.Text,{children:[f,w.jsx(ln,{docString:l})]})}),w.jsx(dn,{xs:"5",xl:!0,children:w.jsx(dP,{style:{margin:"0px 0px 10px 0px"},"aria-label":"Always visible",disabled:m,value:k,onChange:(T,$)=>g(T,$),min:y,max:C,step:b,marks:[{value:y,label:`${y}`},{value:C,label:`${C}`}]})}),w.jsx(dn,{xs:"3",xl:!0,children:w.jsx(zl,{isInstantUpdate:u,fullAccessPath:`${r}.value`,docString:l,readOnly:m,type:o.type,value:k,unit:p,addNotification:()=>{},changeCallback:d,id:v+"-value"})}),w.jsx(dn,{xs:"auto",children:w.jsx($h,{id:`button-${v}`,onClick:()=>n(!t),type:"checkbox",checked:t,value:"",className:"btn",variant:"light","aria-controls":"slider-settings","aria-expanded":t,children:w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",className:"bi bi-gear",viewBox:"0 0 16 16",children:[w.jsx("path",{d:"M8 4.754a3.246 3.246 0 1 0 0 6.492 3.246 3.246 0 0 0 0-6.492zM5.754 8a2.246 2.246 0 1 1 4.492 0 2.246 2.246 0 0 1-4.492 0z"}),w.jsx("path",{d:"M9.796 1.343c-.527-1.79-3.065-1.79-3.592 0l-.094.319a.873.873 0 0 1-1.255.52l-.292-.16c-1.64-.892-3.433.902-2.54 2.541l.159.292a.873.873 0 0 1-.52 1.255l-.319.094c-1.79.527-1.79 3.065 0 3.592l.319.094a.873.873 0 0 1 .52 1.255l-.16.292c-.892 1.64.901 3.434 2.541 2.54l.292-.159a.873.873 0 0 1 1.255.52l.094.319c.527 1.79 3.065 1.79 3.592 0l.094-.319a.873.873 0 0 1 1.255-.52l.292.16c1.64.893 3.434-.902 2.54-2.541l-.159-.292a.873.873 0 0 1 .52-1.255l.319-.094c1.79-.527 1.79-3.065 0-3.592l-.319-.094a.873.873 0 0 1-.52-1.255l.16-.292c.893-1.64-.902-3.433-2.541-2.54l-.292.159a.873.873 0 0 1-1.255-.52l-.094-.319zm-2.633.283c.246-.835 1.428-.835 1.674 0l.094.319a1.873 1.873 0 0 0 2.693 1.115l.291-.16c.764-.415 1.6.42 1.184 1.185l-.159.292a1.873 1.873 0 0 0 1.116 2.692l.318.094c.835.246.835 1.428 0 1.674l-.319.094a1.873 1.873 0 0 0-1.115 2.693l.16.291c.415.764-.42 1.6-1.185 1.184l-.291-.159a1.873 1.873 0 0 0-2.693 1.116l-.094.318c-.246.835-1.428.835-1.674 0l-.094-.319a1.873 1.873 0 0 0-2.692-1.115l-.292.16c-.764.415-1.6-.42-1.184-1.185l.159-.291A1.873 1.873 0 0 0 1.945 8.93l-.319-.094c-.835-.246-.835-1.428 0-1.674l.319-.094A1.873 1.873 0 0 0 3.06 4.377l-.16-.292c-.415-.764.42-1.6 1.185-1.184l.292.159a1.873 1.873 0 0 0 2.692-1.115l.094-.319z"})]})})})]}),w.jsx(bu,{in:t,children:w.jsx(ot.Group,{children:w.jsxs(Fl,{className:"justify-content-center",style:{paddingTop:"20px",margin:"10px"},children:[w.jsxs(dn,{xs:"auto",children:[w.jsx(ot.Label,{children:"Min Value"}),w.jsx(ot.Control,{type:"number",value:y,disabled:E,onChange:T=>S(Number(T.target.value),"min",i)})]}),w.jsxs(dn,{xs:"auto",children:[w.jsx(ot.Label,{children:"Max Value"}),w.jsx(ot.Control,{type:"number",value:C,disabled:x,onChange:T=>S(Number(T.target.value),"max",s)})]}),w.jsxs(dn,{xs:"auto",children:[w.jsx(ot.Label,{children:"Step Size"}),w.jsx(ot.Control,{type:"number",value:b,disabled:O,onChange:T=>S(Number(T.target.value),"step_size",a)})]})]})})})]})},vm);ik.displayName="SliderComponent";const sk=ne.memo(e=>{const{addNotification:t,displayName:n,id:r,value:o,full_access_path:i,enum:s,doc:a,readonly:l,changeCallback:u}=e;return Cn(),h.useEffect(()=>{t(`${i} changed to ${o}.`)},[o]),w.jsxs("div",{className:"component enumComponent",id:r,children:[!1,w.jsx(Fl,{children:w.jsxs(dn,{className:"d-flex align-items-center",children:[w.jsxs(Un.Text,{children:[n,w.jsx(ln,{docString:a})]}),l?w.jsx(ot.Control,{style:e.type=="ColouredEnum"?{backgroundColor:s[o]}:{},value:e.type=="ColouredEnum"?o:s[o],name:i,disabled:!0}):w.jsx(ot.Select,{"aria-label":"example-select",value:o,name:i,style:e.type=="ColouredEnum"?{backgroundColor:s[o]}:{},onChange:c=>u({type:e.type,name:e.name,enum:s,value:c.target.value,full_access_path:i,readonly:e.readonly,doc:e.doc}),children:Object.entries(s).map(([c,d])=>w.jsx("option",{value:c,children:e.type=="ColouredEnum"?c:d},c))})]})})]})},vm);sk.displayName="EnumComponent";const gm=ne.memo(e=>{const{fullAccessPath:t,docString:n,addNotification:r,displayName:o,id:i}=e;if(!e.render)return null;Cn();const s=h.useRef(null),a=()=>{const u=`Method ${t} was triggered.`;r(u)},l=async u=>{u.preventDefault(),cx(t),a()};return w.jsxs("div",{className:"component methodComponent",id:i,children:[!1,w.jsx(ot,{onSubmit:l,ref:s,children:w.jsxs(Fs,{className:"component",variant:"primary",type:"submit",children:[`${o} `,w.jsx(ln,{docString:n})]})})]})},vm);gm.displayName="MethodComponent";const ak=ne.memo(e=>{const{fullAccessPath:t,readOnly:n,docString:r,isInstantUpdate:o,addNotification:i,changeCallback:s=()=>{},displayName:a,id:l}=e;Cn();const[u,c]=h.useState(e.value);h.useEffect(()=>{e.value!==u&&c(e.value),i(`${t} changed to ${e.value}.`)},[e.value]);const d=g=>{c(g.target.value),o&&s({type:"str",value:g.target.value,full_access_path:t,readonly:n,doc:r})},f=g=>{g.key==="Enter"&&!o&&(s({type:"str",value:u,full_access_path:t,readonly:n,doc:r}),g.preventDefault())},v=()=>{o||s({type:"str",value:u,full_access_path:t,readonly:n,doc:r})};return w.jsxs("div",{className:"component stringComponent",id:l,children:[!1,w.jsxs(Un,{children:[w.jsxs(Un.Text,{children:[a,w.jsx(ln,{docString:r})]}),w.jsx(ot.Control,{type:"text",name:l,value:u,disabled:n,onChange:d,onKeyDown:f,onBlur:v,className:o&&!n?"instantUpdate":""})]})]})});ak.displayName="StringComponent";function wm(e){const t=h.useContext(jh),n=o=>{var i;return((i=t[o])==null?void 0:i.displayOrder)??Number.MAX_SAFE_INTEGER};let r;return Array.isArray(e)?r=[...e].sort((o,i)=>n(o.full_access_path)-n(i.full_access_path)):r=Object.values(e).sort((o,i)=>n(o.full_access_path)-n(i.full_access_path)),r}const lk=ne.memo(e=>{const{docString:t,isInstantUpdate:n,addNotification:r,id:o}=e,i=wm(e.value);return Cn(),w.jsxs("div",{className:"listComponent",id:o,children:[!1,w.jsx(ln,{docString:t}),i.map(s=>w.jsx(ii,{attribute:s,isInstantUpdate:n,addNotification:r},s.full_access_path))]})});lk.displayName="ListComponent";var rL=["color","size","title","className"];function fp(){return fp=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function iL(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var lc=h.forwardRef(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=oL(e,rL);return ne.createElement("svg",fp({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-chevron-down",i].filter(Boolean).join(" ")},s),o?ne.createElement("title",null,o):null,ne.createElement("path",{fillRule:"evenodd",d:"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708"}))});lc.propTypes={color:pe.string,size:pe.oneOfType([pe.string,pe.number]),title:pe.string,className:pe.string};lc.defaultProps={color:"currentColor",size:"1em",title:null,className:""};var sL=["color","size","title","className"];function dp(){return dp=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lL(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var uc=h.forwardRef(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=aL(e,sL);return ne.createElement("svg",dp({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-chevron-right",i].filter(Boolean).join(" ")},s),o?ne.createElement("title",null,o):null,ne.createElement("path",{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708"}))});uc.propTypes={color:pe.string,size:pe.oneOfType([pe.string,pe.number]),title:pe.string,className:pe.string};uc.defaultProps={color:"currentColor",size:"1em",title:null,className:""};function pp(e,t){const[n,r]=h.useState(()=>{const o=localStorage.getItem(e);return o?JSON.parse(o):t});return h.useEffect(()=>{n!==void 0&&localStorage.setItem(e,JSON.stringify(n))},[n,e]),[n,r]}const Sm=ne.memo(({props:e,isInstantUpdate:t,addNotification:n,displayName:r,id:o})=>{const[i,s]=pp(`dataServiceComponent-${o}-open`,!0),a=wm(e);return r!==""?w.jsx("div",{className:"component dataServiceComponent",id:o,children:w.jsxs(Do,{children:[w.jsxs(Do.Header,{onClick:()=>s(!i),style:{cursor:"pointer"},children:[r," ",i?w.jsx(lc,{}):w.jsx(uc,{})]}),w.jsx(bu,{in:i,children:w.jsx(Do.Body,{children:a.map(l=>w.jsx(ii,{attribute:l,isInstantUpdate:t,addNotification:n},l.full_access_path))})})]})}):w.jsx("div",{className:"component dataServiceComponent",id:o,children:a.map(l=>w.jsx(ii,{attribute:l,isInstantUpdate:t,addNotification:n},l.full_access_path))})});Sm.displayName="DataServiceComponent";const uk=ne.memo(({fullAccessPath:e,props:t,isInstantUpdate:n,addNotification:r,displayName:o,id:i})=>{const{connected:s,connect:a,...l}=t,u=s.value;return w.jsxs("div",{className:"deviceConnectionComponent",id:i,children:[!u&&w.jsxs("div",{className:"overlayContent",children:[w.jsxs("div",{children:[o!=""?o:"Device"," is currently not available!"]}),w.jsx(gm,{fullAccessPath:`${e}.connect`,docString:a.doc,addNotification:r,displayName:"reconnect",id:i+"-connect",render:!0})]}),w.jsx(Sm,{props:l,isInstantUpdate:n,addNotification:r,displayName:o,id:i})]})});uk.displayName="DeviceConnectionComponent";const ck=ne.memo(e=>{const{fullAccessPath:t,value:n,docString:r,format:o,addNotification:i,displayName:s,id:a}=e;Cn();const[l,u]=h.useState(!0);return h.useEffect(()=>{i(`${t} changed.`)},[e.value]),w.jsx("div",{className:"component imageComponent",id:a,children:w.jsxs(Do,{children:[w.jsxs(Do.Header,{onClick:()=>u(!l),style:{cursor:"pointer"},children:[s,w.jsx(ln,{docString:r}),l?w.jsx(lc,{}):w.jsx(uc,{})]}),w.jsx(bu,{in:l,children:w.jsxs(Do.Body,{children:[!1,o===""&&n===""?w.jsx("p",{children:"No image set in the backend."}):w.jsx(aS,{src:`data:image/${o.toLowerCase()};base64,${n}`})]})})]})})});ck.displayName="ImageComponent";function uL(e){if(e){let t=e.replace(/\]\./g,"-");return t=t.replace(/[^\w_]+/g,"-"),t=t.replace(/-+$/,""),t}else return"main"}const fk=ne.memo(e=>{const{docString:t,isInstantUpdate:n,addNotification:r,id:o}=e,i=wm(e.value);return Cn(),w.jsxs("div",{className:"listComponent",id:o,children:[!1,w.jsx(ln,{docString:t}),i.map(s=>w.jsx(ii,{attribute:s,isInstantUpdate:n,addNotification:r},s.full_access_path))]})});fk.displayName="DictComponent";const dk=ne.memo(e=>{const{fullAccessPath:t,docString:n,status:r,addNotification:o,displayName:i,id:s}=e;Cn();const a=h.useRef(null),[l,u]=h.useState(!1);h.useEffect(()=>{let d;r==="RUNNING"?d=`${t} was started.`:d=`${t} was stopped.`,o(d),u(!1)},[r]);const c=async d=>{d.preventDefault();const f=r=="RUNNING"?"stop":"start",v=[t,f].filter(g=>g).join(".");u(!0),cx(v)};return w.jsxs("div",{className:"component taskComponent",id:s,children:[!1,w.jsx(ot,{onSubmit:c,ref:a,children:w.jsxs(Un,{children:[w.jsxs(Un.Text,{children:[i,w.jsx(ln,{docString:n})]}),w.jsx(Fs,{id:`button-${s}`,type:"submit",children:l?w.jsx(FS,{size:"sm",role:"status","aria-hidden":"true"}):r==="RUNNING"?"Stop ":"Start "})]})})]})});dk.displayName="TaskComponent";const cL=e=>{let t="";for(const n of e)!n.startsWith("[")&&t!==""&&(t+="."),t+=n;return t},fL=e=>{const t=[],n=dx(e);for(let r=n.length-1;r>=0;r--){const o=n[r];if(t.unshift(o),!o.startsWith("["))break}return cL(t)};function yo(e,t=()=>{}){H_(e,t)}const ii=ne.memo(({attribute:e,isInstantUpdate:t,addNotification:n})=>{const{full_access_path:r}=e,o=uL(r),i=h.useContext(jh);let s=fL(r);if(i[r]){if(i[r].display===!1)return null;i[r].displayName&&(s=i[r].displayName)}return e.type==="bool"?w.jsx(px,{fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:!!e.value,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="float"||e.type==="int"?w.jsx(zl,{type:e.type,fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:Number(e.value),isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="Quantity"?w.jsx(zl,{type:"Quantity",fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:Number(e.value.magnitude),unit:e.value.unit,isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="NumberSlider"?w.jsx(ik,{fullAccessPath:r,docString:e.value.value.doc,readOnly:e.readonly,value:e.value.value,min:e.value.min,max:e.value.max,stepSize:e.value.step_size,isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="Enum"||e.type==="ColouredEnum"?w.jsx(sk,{...e,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="method"?w.jsx(gm,{fullAccessPath:r,docString:e.doc,addNotification:n,displayName:s,id:o,render:e.frontend_render}):e.type==="str"?w.jsx(ak,{fullAccessPath:r,value:e.value,readOnly:e.readonly,docString:e.doc,isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type=="Task"?w.jsx(dk,{fullAccessPath:r,docString:e.doc,status:e.value.status.value,addNotification:n,displayName:s,id:o}):e.type==="DataService"?w.jsx(Sm,{props:e.value,isInstantUpdate:t,addNotification:n,displayName:s,id:o}):e.type==="DeviceConnection"?w.jsx(uk,{fullAccessPath:r,props:e.value,isInstantUpdate:t,addNotification:n,displayName:s,id:o}):e.type==="list"?w.jsx(lk,{value:e.value,docString:e.doc,isInstantUpdate:t,addNotification:n,id:o}):e.type==="dict"?w.jsx(fk,{value:e.value,docString:e.doc,isInstantUpdate:t,addNotification:n,id:o}):e.type==="Image"?w.jsx(ck,{fullAccessPath:r,docString:e.value.value.doc,displayName:s,id:o,addNotification:n,value:e.value.value.value,format:e.value.format.value}):w.jsx("div",{children:r},r)});ii.displayName="GenericComponent";const dL=(e,t)=>{switch(t.type){case"SET_DATA":return t.data;case"UPDATE_ATTRIBUTE":return e===null?null:{...e,value:G_(e.value,t.fullAccessPath,t.newValue)};default:throw new Error}},pL=()=>{const[e,t]=h.useReducer(dL,null),[n,r]=h.useState(null),[o,i]=h.useState({}),[s,a]=pp("isInstantUpdate",!1),[l,u]=h.useState(!1),[c,d]=pp("showNotification",!1),[f,v]=h.useState([]),[g,S]=h.useState("connecting");h.useEffect(()=>(fetch(`${Ui}://${Sa}/custom.css`,{credentials:"include"}).then(x=>{if(x.ok){const b=document.createElement("link");b.href=`${Ui}://${Sa}/custom.css`,b.type="text/css",b.rel="stylesheet",document.head.appendChild(b)}}).catch(console.error),Ln.on("connect",()=>{fetch(`${Ui}://${Sa}/service-properties`,{credentials:"include"}).then(x=>x.json()).then(x=>{t({type:"SET_DATA",data:x}),r(x.name),document.title=x.name}),fetch(`${Ui}://${Sa}/web-settings`,{credentials:"include"}).then(x=>x.json()).then(x=>i(x)),S("connected")}),Ln.on("disconnect",()=>{S("disconnected"),setTimeout(()=>{S(x=>x==="disconnected"?"reconnecting":x)},2e3)}),Ln.on("notify",E),Ln.on("log",C),()=>{Ln.off("notify",E),Ln.off("log",C)}),[]);const k=h.useCallback((x,b="DEBUG")=>{const O=new Date().toISOString().substring(11,19),T=Math.random();v($=>[{levelname:b,id:T,message:x,timeStamp:O},...$])},[]),m=x=>{v(b=>b.filter(O=>O.id!==x))},p=()=>u(!1),y=()=>u(!0);function E(x){const{full_access_path:b,value:O}=x.data;t({type:"UPDATE_ATTRIBUTE",fullAccessPath:b,newValue:O})}function C(x){k(x.message,x.levelname)}return e?w.jsxs(w.Fragment,{children:[w.jsx(Xc,{expand:!1,bg:"primary",variant:"dark",fixed:"top",children:w.jsxs(Qw,{fluid:!0,children:[w.jsx(Xc.Brand,{children:n}),w.jsx(Xc.Toggle,{"aria-controls":"offcanvasNavbar",onClick:y})]})}),w.jsx(fx,{showNotification:c,notifications:f,removeNotificationById:m}),w.jsxs(Fi,{show:l,onHide:p,placement:"end",style:{zIndex:9999},children:[w.jsx(Fi.Header,{closeButton:!0,children:w.jsx(Fi.Title,{children:"Settings"})}),w.jsxs(Fi.Body,{children:[w.jsx(ot.Check,{checked:s,onChange:x=>a(x.target.checked),type:"switch",label:"Enable Instant Update"}),w.jsx(ot.Check,{checked:c,onChange:x=>d(x.target.checked),type:"switch",label:"Show Notifications"})]})]}),w.jsx("div",{className:"App navbarOffset",children:w.jsx(jh.Provider,{value:o,children:w.jsx(ii,{attribute:e,isInstantUpdate:s,addNotification:k})})}),w.jsx(jd,{connectionStatus:g})]}):w.jsx(jd,{connectionStatus:g})};var hp={},c0=Nw;hp.createRoot=c0.createRoot,hp.hydrateRoot=c0.hydrateRoot;hp.createRoot(document.getElementById("root")).render(w.jsx(ne.StrictMode,{children:w.jsx(pL,{})})); +`+t.prev}function $a(e,t){var n=Yd(e),r=[];if(n){r.length=e.length;for(var o=0;o=r)return n+1;var o=$g(t,n);if(o<55296||o>56319)return n+1;var i=$g(t,n+1);return i<56320||i>57343?n+1:n+2},vf=function(t){var n=0;return{next:function(){var o=n>=t.length,i;return o||(i=t[n],n+=1),{done:o,value:i}}}},_g=function(t,n){if(e4(t)||kg(t))return vf(t);if(t4(t)){var r=0;return{next:function(){var i=i4(t,r),s=o4(t,r,i);return r=i,{done:i>t.length,value:s}}}}if(n&&typeof t["_es6-shim iterator_"]<"u")return t["_es6-shim iterator_"]()};if(!n4&&!r4)ol.exports=function(t){if(t!=null)return _g(t,!0)};else{var s4=DE,a4=zE,Tg=Yt("Map.prototype.forEach",!0),Rg=Yt("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var Ng=Yt("Map.prototype.iterator",!0),Ag=Yt("Set.prototype.iterator",!0);var Pg=Yt("Map.prototype.@@iterator",!0)||Yt("Map.prototype._es6-shim iterator_",!0),jg=Yt("Set.prototype.@@iterator",!0)||Yt("Set.prototype._es6-shim iterator_",!0),l4=function(t){if(s4(t)){if(Ng)return bg(Ng(t));if(Pg)return Pg(t);if(Tg){var n=[];return Tg(t,function(o,i){Og(n,[i,o])}),vf(n)}}if(a4(t)){if(Ag)return bg(Ag(t));if(jg)return jg(t);if(Rg){var r=[];return Rg(t,function(o){Og(r,o)}),vf(r)}}};ol.exports=function(t){return l4(t)||_g(t)}}}var u4=ol.exports,Lg=function(e){return e!==e},UE=function(t,n){return t===0&&n===0?1/t===1/n:!!(t===n||Lg(t)&&Lg(n))},c4=UE,WE=function(){return typeof Object.is=="function"?Object.is:c4},f4=WE,d4=Jr,p4=function(){var t=f4();return d4(Object,{is:t},{is:function(){return Object.is!==t}}),t},h4=Jr,m4=mi,y4=UE,HE=WE,v4=p4,VE=m4(HE(),Object);h4(VE,{getPolyfill:HE,implementation:y4,shim:v4});var g4=VE,w4=mi,KE=Kt,S4=On,Jd=S4("%ArrayBuffer%",!0),il=KE("ArrayBuffer.prototype.byteLength",!0),x4=KE("Object.prototype.toString"),Ig=!!Jd&&!il&&new Jd(0).slice,Mg=!!Ig&&w4(Ig),GE=il||Mg?function(t){if(!t||typeof t!="object")return!1;try{return il?il(t):Mg(t,0),!0}catch{return!1}}:Jd?function(t){return x4(t)==="[object ArrayBuffer]"}:function(t){return!1},E4=Date.prototype.getDay,k4=function(t){try{return E4.call(t),!0}catch{return!1}},b4=Object.prototype.toString,C4="[object Date]",O4=Zr(),$4=function(t){return typeof t!="object"||t===null?!1:O4?k4(t):b4.call(t)===C4},Zd=Kt,qE=Zr(),QE,YE,ep,tp;if(qE){QE=Zd("Object.prototype.hasOwnProperty"),YE=Zd("RegExp.prototype.exec"),ep={};var gf=function(){throw ep};tp={toString:gf,valueOf:gf},typeof Symbol.toPrimitive=="symbol"&&(tp[Symbol.toPrimitive]=gf)}var _4=Zd("Object.prototype.toString"),T4=Object.getOwnPropertyDescriptor,R4="[object RegExp]",N4=qE?function(t){if(!t||typeof t!="object")return!1;var n=T4(t,"lastIndex"),r=n&&QE(n,"value");if(!r)return!1;try{YE(t,tp)}catch(o){return o===ep}}:function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:_4(t)===R4},A4=Kt,Bg=A4("SharedArrayBuffer.prototype.byteLength",!0),P4=Bg?function(t){if(!t||typeof t!="object")return!1;try{return Bg(t),!0}catch{return!1}}:function(t){return!1},j4=Number.prototype.toString,L4=function(t){try{return j4.call(t),!0}catch{return!1}},I4=Object.prototype.toString,M4="[object Number]",B4=Zr(),D4=function(t){return typeof t=="number"?!0:typeof t!="object"?!1:B4?L4(t):I4.call(t)===M4},XE=Kt,F4=XE("Boolean.prototype.toString"),z4=XE("Object.prototype.toString"),U4=function(t){try{return F4(t),!0}catch{return!1}},W4="[object Boolean]",H4=Zr(),V4=function(t){return typeof t=="boolean"?!0:t===null||typeof t!="object"?!1:H4&&Symbol.toStringTag in t?U4(t):z4(t)===W4},np={exports:{}},K4=Object.prototype.toString,G4=nm();if(G4){var q4=Symbol.prototype.toString,Q4=/^Symbol\(.*\)$/,Y4=function(t){return typeof t.valueOf()!="symbol"?!1:Q4.test(q4.call(t))};np.exports=function(t){if(typeof t=="symbol")return!0;if(K4.call(t)!=="[object Symbol]")return!1;try{return Y4(t)}catch{return!1}}}else np.exports=function(t){return!1};var X4=np.exports,rp={exports:{}},Dg=typeof BigInt<"u"&&BigInt,J4=function(){return typeof Dg=="function"&&typeof BigInt=="function"&&typeof Dg(42)=="bigint"&&typeof BigInt(42)=="bigint"},Z4=J4();if(Z4){var e5=BigInt.prototype.valueOf,t5=function(t){try{return e5.call(t),!0}catch{}return!1};rp.exports=function(t){return t===null||typeof t>"u"||typeof t=="boolean"||typeof t=="string"||typeof t=="number"||typeof t=="symbol"||typeof t=="function"?!1:typeof t=="bigint"?!0:t5(t)}}else rp.exports=function(t){return!1};var n5=rp.exports,r5=ME,o5=D4,i5=V4,s5=X4,a5=n5,l5=function(t){if(t==null||typeof t!="object"&&typeof t!="function")return null;if(r5(t))return"String";if(o5(t))return"Number";if(i5(t))return"Boolean";if(s5(t))return"Symbol";if(a5(t))return"BigInt"},Jl=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,Fg=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,Zl;Jl||(Zl=function(t){return!1});var op=Jl?Jl.prototype.has:null,wf=Fg?Fg.prototype.has:null;!Zl&&!op&&(Zl=function(t){return!1});var u5=Zl||function(t){if(!t||typeof t!="object")return!1;try{if(op.call(t,op),wf)try{wf.call(t,wf)}catch{return!0}return t instanceof Jl}catch{}return!1},ip={exports:{}},c5=On,JE=Kt,f5=c5("%WeakSet%",!0),Sf=JE("WeakSet.prototype.has",!0);if(Sf){var xf=JE("WeakMap.prototype.has",!0);ip.exports=function(t){if(!t||typeof t!="object")return!1;try{if(Sf(t,Sf),xf)try{xf(t,xf)}catch{return!0}return t instanceof f5}catch{}return!1}}else ip.exports=function(t){return!1};var d5=ip.exports,p5=DE,h5=zE,m5=u5,y5=d5,v5=function(t){if(t&&typeof t=="object"){if(p5(t))return"Map";if(h5(t))return"Set";if(m5(t))return"WeakMap";if(y5(t))return"WeakSet"}return!1},ZE=Function.prototype.toString,Ao=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,sp,sl;if(typeof Ao=="function"&&typeof Object.defineProperty=="function")try{sp=Object.defineProperty({},"length",{get:function(){throw sl}}),sl={},Ao(function(){throw 42},null,sp)}catch(e){e!==sl&&(Ao=null)}else Ao=null;var g5=/^\s*class\b/,ap=function(t){try{var n=ZE.call(t);return g5.test(n)}catch{return!1}},Ef=function(t){try{return ap(t)?!1:(ZE.call(t),!0)}catch{return!1}},al=Object.prototype.toString,w5="[object Object]",S5="[object Function]",x5="[object GeneratorFunction]",E5="[object HTMLAllCollection]",k5="[object HTML document.all class]",b5="[object HTMLCollection]",C5=typeof Symbol=="function"&&!!Symbol.toStringTag,O5=!(0 in[,]),lp=function(){return!1};if(typeof document=="object"){var $5=document.all;al.call($5)===al.call(document.all)&&(lp=function(t){if((O5||!t)&&(typeof t>"u"||typeof t=="object"))try{var n=al.call(t);return(n===E5||n===k5||n===b5||n===w5)&&t("")==null}catch{}return!1})}var _5=Ao?function(t){if(lp(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{Ao(t,null,sp)}catch(n){if(n!==sl)return!1}return!ap(t)&&Ef(t)}:function(t){if(lp(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(C5)return Ef(t);if(ap(t))return!1;var n=al.call(t);return n!==S5&&n!==x5&&!/^\[object HTML/.test(n)?!1:Ef(t)},T5=_5,R5=Object.prototype.toString,ek=Object.prototype.hasOwnProperty,N5=function(t,n,r){for(var o=0,i=t.length;o=3&&(o=r),R5.call(t)==="[object Array]"?N5(t,n,o):typeof t=="string"?A5(t,n,o):P5(t,n,o)},L5=j5,I5=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],kf=I5,M5=typeof globalThis>"u"?cl:globalThis,B5=function(){for(var t=[],n=0;n"u"?cl:globalThis,up=D5(),ym=mm("String.prototype.slice"),bf=Object.getPrototypeOf,z5=mm("Array.prototype.indexOf",!0)||function(t,n){for(var r=0;r-1?n:n!=="Object"?!1:W5(t)}return ll?U5(t):null},V5=Kt,Wg=V5("ArrayBuffer.prototype.byteLength",!0),K5=GE,G5=function(t){return K5(t)?Wg?Wg(t):t.byteLength:NaN},nk=C3,$n=Kt,Hg=Q3,q5=On,oi=u4,Q5=LE,Vg=g4,Kg=$E,Gg=IE,qg=GE,Qg=$4,Yg=N4,Xg=P4,Jg=tm,Zg=l5,e0=v5,t0=H5,n0=G5,r0=$n("SharedArrayBuffer.prototype.byteLength",!0),o0=$n("Date.prototype.getTime"),Cf=Object.getPrototypeOf,i0=$n("Object.prototype.toString"),nu=q5("%Set%",!0),cp=$n("Map.prototype.has",!0),ru=$n("Map.prototype.get",!0),s0=$n("Map.prototype.size",!0),ou=$n("Set.prototype.add",!0),rk=$n("Set.prototype.delete",!0),iu=$n("Set.prototype.has",!0),ul=$n("Set.prototype.size",!0);function a0(e,t,n,r){for(var o=oi(e),i;(i=o.next())&&!i.done;)if(on(t,i.value,n,r))return rk(e,i.value),!0;return!1}function ok(e){if(typeof e>"u")return null;if(typeof e!="object")return typeof e=="symbol"?!1:typeof e=="string"||typeof e=="number"?+e==+e:!0}function Y5(e,t,n,r,o,i){var s=ok(n);if(s!=null)return s;var a=ru(t,s),l=nk({},o,{strict:!1});return typeof a>"u"&&!cp(t,s)||!on(r,a,l,i)?!1:!cp(e,s)&&on(r,a,l,i)}function X5(e,t,n){var r=ok(n);return r??(iu(t,r)&&!iu(e,r))}function l0(e,t,n,r,o,i){for(var s=oi(e),a,l;(a=s.next())&&!a.done;)if(l=a.value,on(n,l,o,i)&&on(r,ru(t,l),o,i))return rk(e,l),!0;return!1}function on(e,t,n,r){var o=n||{};if(o.strict?Vg(e,t):e===t)return!0;var i=Zg(e),s=Zg(t);if(i!==s)return!1;if(!e||!t||typeof e!="object"&&typeof t!="object")return o.strict?Vg(e,t):e==t;var a=r.has(e),l=r.has(t),u;if(a&&l){if(r.get(e)===r.get(t))return!0}else u={};return a||r.set(e,u),l||r.set(t,u),eL(e,t,o,r)}function u0(e){return!e||typeof e!="object"||typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||e.length>0&&typeof e[0]!="number"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}function J5(e,t,n,r){if(ul(e)!==ul(t))return!1;for(var o=oi(e),i=oi(t),s,a,l;(s=o.next())&&!s.done;)if(s.value&&typeof s.value=="object")l||(l=new nu),ou(l,s.value);else if(!iu(t,s.value)){if(n.strict||!X5(e,t,s.value))return!1;l||(l=new nu),ou(l,s.value)}if(l){for(;(a=i.next())&&!a.done;)if(a.value&&typeof a.value=="object"){if(!a0(l,a.value,n.strict,r))return!1}else if(!n.strict&&!iu(e,a.value)&&!a0(l,a.value,n.strict,r))return!1;return ul(l)===0}return!0}function Z5(e,t,n,r){if(s0(e)!==s0(t))return!1;for(var o=oi(e),i=oi(t),s,a,l,u,c,d;(s=o.next())&&!s.done;)if(u=s.value[0],c=s.value[1],u&&typeof u=="object")l||(l=new nu),ou(l,u);else if(d=ru(t,u),typeof d>"u"&&!cp(t,u)||!on(c,d,n,r)){if(n.strict||!Y5(e,t,u,c,n,r))return!1;l||(l=new nu),ou(l,u)}if(l){for(;(a=i.next())&&!a.done;)if(u=a.value[0],d=a.value[1],u&&typeof u=="object"){if(!l0(l,e,u,d,n,r))return!1}else if(!n.strict&&(!e.has(u)||!on(ru(e,u),d,n,r))&&!l0(l,e,u,d,nk({},n,{strict:!1}),r))return!1;return ul(l)===0}return!0}function eL(e,t,n,r){var o,i;if(typeof e!=typeof t||e==null||t==null||i0(e)!==i0(t)||Kg(e)!==Kg(t))return!1;var s=Gg(e),a=Gg(t);if(s!==a)return!1;var l=e instanceof Error,u=t instanceof Error;if(l!==u||(l||u)&&(e.name!==t.name||e.message!==t.message))return!1;var c=Yg(e),d=Yg(t);if(c!==d||(c||d)&&(e.source!==t.source||Hg(e)!==Hg(t)))return!1;var f=Qg(e),v=Qg(t);if(f!==v||(f||v)&&o0(e)!==o0(t)||n.strict&&Cf&&Cf(e)!==Cf(t))return!1;var g=t0(e),S=t0(t);if(g!==S)return!1;if(g||S){if(e.length!==t.length)return!1;for(o=0;o=0;o--)if(x[o]!=b[o])return!1;for(o=x.length-1;o>=0;o--)if(i=x[o],!on(e[i],t[i],n,r))return!1;var O=e0(e),T=e0(t);return O!==T?!1:O==="Set"||T==="Set"?J5(e,t,n,r):O==="Map"?Z5(e,t,n,r):!0}var tL=function(t,n,r){return on(t,n,r,Q5())};const nL=si(tL),vm=(e,t)=>{for(const n in t)if(typeof t[n]=="object"){if(!nL(e[n],t[n]))return!1}else if(!Object.is(e[n],t[n]))return!1;return!0},Ra=e=>{let t=0,n;const r=e.readonly;return e.type==="int"||e.type==="float"?t=e.value:e.type==="Quantity"&&(t=e.value.magnitude,n=e.value.unit),[t,r,n]},ik=ne.memo(e=>{Cn();const[t,n]=h.useState(!1),{fullAccessPath:r,value:o,min:i,max:s,stepSize:a,docString:l,isInstantUpdate:u,addNotification:c,changeCallback:d=()=>{},displayName:f,id:v}=e;h.useEffect(()=>{c(`${r} changed to ${o.value}.`)},[e.value.value]),h.useEffect(()=>{c(`${r}.min changed to ${i.value}.`)},[e.min.value,e.min.type]),h.useEffect(()=>{c(`${r}.max changed to ${s.value}.`)},[e.max.value,e.max.type]),h.useEffect(()=>{c(`${r}.stepSize changed to ${a.value}.`)},[e.stepSize.value,e.stepSize.type]);const g=(T,$)=>{Array.isArray($)&&($=$[0]);let A;o.type==="Quantity"?A={type:"Quantity",value:{magnitude:$,unit:o.value.unit},full_access_path:`${r}.value`,readonly:o.readonly,doc:l}:A={type:o.type,value:$,full_access_path:`${r}.value`,readonly:o.readonly,doc:l},d(A)},S=(T,$,A)=>{let U;A.type==="Quantity"?U={type:A.type,value:{magnitude:T,unit:A.value.unit},full_access_path:`${r}.${$}`,readonly:A.readonly,doc:null}:U={type:A.type,value:T,full_access_path:`${r}.${$}`,readonly:A.readonly,doc:null},d(U)},[k,y,p]=Ra(o),[m,E]=Ra(i),[C,x]=Ra(s),[b,O]=Ra(a);return w.jsxs("div",{className:"component sliderComponent",id:v,children:[!1,w.jsxs(Fl,{children:[w.jsx(dn,{xs:"auto",xl:"auto",children:w.jsxs(Un.Text,{children:[f,w.jsx(ln,{docString:l})]})}),w.jsx(dn,{xs:"5",xl:!0,children:w.jsx(dP,{style:{margin:"0px 0px 10px 0px"},"aria-label":"Always visible",disabled:y,value:k,onChange:(T,$)=>g(T,$),min:m,max:C,step:b,marks:[{value:m,label:`${m}`},{value:C,label:`${C}`}]})}),w.jsx(dn,{xs:"3",xl:!0,children:w.jsx(zl,{isInstantUpdate:u,fullAccessPath:`${r}.value`,docString:l,readOnly:y,type:o.type,value:k,unit:p,addNotification:()=>{},changeCallback:d,id:v+"-value"})}),w.jsx(dn,{xs:"auto",children:w.jsx($h,{id:`button-${v}`,onClick:()=>n(!t),type:"checkbox",checked:t,value:"",className:"btn",variant:"light","aria-controls":"slider-settings","aria-expanded":t,children:w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",className:"bi bi-gear",viewBox:"0 0 16 16",children:[w.jsx("path",{d:"M8 4.754a3.246 3.246 0 1 0 0 6.492 3.246 3.246 0 0 0 0-6.492zM5.754 8a2.246 2.246 0 1 1 4.492 0 2.246 2.246 0 0 1-4.492 0z"}),w.jsx("path",{d:"M9.796 1.343c-.527-1.79-3.065-1.79-3.592 0l-.094.319a.873.873 0 0 1-1.255.52l-.292-.16c-1.64-.892-3.433.902-2.54 2.541l.159.292a.873.873 0 0 1-.52 1.255l-.319.094c-1.79.527-1.79 3.065 0 3.592l.319.094a.873.873 0 0 1 .52 1.255l-.16.292c-.892 1.64.901 3.434 2.541 2.54l.292-.159a.873.873 0 0 1 1.255.52l.094.319c.527 1.79 3.065 1.79 3.592 0l.094-.319a.873.873 0 0 1 1.255-.52l.292.16c1.64.893 3.434-.902 2.54-2.541l-.159-.292a.873.873 0 0 1 .52-1.255l.319-.094c1.79-.527 1.79-3.065 0-3.592l-.319-.094a.873.873 0 0 1-.52-1.255l.16-.292c.893-1.64-.902-3.433-2.541-2.54l-.292.159a.873.873 0 0 1-1.255-.52l-.094-.319zm-2.633.283c.246-.835 1.428-.835 1.674 0l.094.319a1.873 1.873 0 0 0 2.693 1.115l.291-.16c.764-.415 1.6.42 1.184 1.185l-.159.292a1.873 1.873 0 0 0 1.116 2.692l.318.094c.835.246.835 1.428 0 1.674l-.319.094a1.873 1.873 0 0 0-1.115 2.693l.16.291c.415.764-.42 1.6-1.185 1.184l-.291-.159a1.873 1.873 0 0 0-2.693 1.116l-.094.318c-.246.835-1.428.835-1.674 0l-.094-.319a1.873 1.873 0 0 0-2.692-1.115l-.292.16c-.764.415-1.6-.42-1.184-1.185l.159-.291A1.873 1.873 0 0 0 1.945 8.93l-.319-.094c-.835-.246-.835-1.428 0-1.674l.319-.094A1.873 1.873 0 0 0 3.06 4.377l-.16-.292c-.415-.764.42-1.6 1.185-1.184l.292.159a1.873 1.873 0 0 0 2.692-1.115l.094-.319z"})]})})})]}),w.jsx(bu,{in:t,children:w.jsx(ot.Group,{children:w.jsxs(Fl,{className:"justify-content-center",style:{paddingTop:"20px",margin:"10px"},children:[w.jsxs(dn,{xs:"auto",children:[w.jsx(ot.Label,{children:"Min Value"}),w.jsx(ot.Control,{type:"number",value:m,disabled:E,onChange:T=>S(Number(T.target.value),"min",i)})]}),w.jsxs(dn,{xs:"auto",children:[w.jsx(ot.Label,{children:"Max Value"}),w.jsx(ot.Control,{type:"number",value:C,disabled:x,onChange:T=>S(Number(T.target.value),"max",s)})]}),w.jsxs(dn,{xs:"auto",children:[w.jsx(ot.Label,{children:"Step Size"}),w.jsx(ot.Control,{type:"number",value:b,disabled:O,onChange:T=>S(Number(T.target.value),"step_size",a)})]})]})})})]})},vm);ik.displayName="SliderComponent";const sk=ne.memo(e=>{const{addNotification:t,displayName:n,id:r,value:o,full_access_path:i,enum:s,doc:a,readonly:l,changeCallback:u}=e;return Cn(),h.useEffect(()=>{t(`${i} changed to ${o}.`)},[o]),w.jsxs("div",{className:"component enumComponent",id:r,children:[!1,w.jsx(Fl,{children:w.jsxs(dn,{className:"d-flex align-items-center",children:[w.jsxs(Un.Text,{children:[n,w.jsx(ln,{docString:a})]}),l?w.jsx(ot.Control,{style:e.type=="ColouredEnum"?{backgroundColor:s[o]}:{},value:e.type=="ColouredEnum"?o:s[o],name:i,disabled:!0}):w.jsx(ot.Select,{"aria-label":"example-select",value:o,name:i,style:e.type=="ColouredEnum"?{backgroundColor:s[o]}:{},onChange:c=>u({type:e.type,name:e.name,enum:s,value:c.target.value,full_access_path:i,readonly:e.readonly,doc:e.doc}),children:Object.entries(s).map(([c,d])=>w.jsx("option",{value:c,children:e.type=="ColouredEnum"?c:d},c))})]})})]})},vm);sk.displayName="EnumComponent";const gm=ne.memo(e=>{const{fullAccessPath:t,docString:n,addNotification:r,displayName:o,id:i}=e;if(!e.render)return null;Cn();const s=h.useRef(null),a=()=>{const u=`Method ${t} was triggered.`;r(u)},l=async u=>{u.preventDefault(),cx(t),a()};return w.jsxs("div",{className:"component methodComponent",id:i,children:[!1,w.jsx(ot,{onSubmit:l,ref:s,children:w.jsxs(Fs,{className:"component",variant:"primary",type:"submit",children:[`${o} `,w.jsx(ln,{docString:n})]})})]})},vm);gm.displayName="MethodComponent";const ak=ne.memo(e=>{const{fullAccessPath:t,readOnly:n,docString:r,isInstantUpdate:o,addNotification:i,changeCallback:s=()=>{},displayName:a,id:l}=e;Cn();const[u,c]=h.useState(e.value);h.useEffect(()=>{e.value!==u&&c(e.value),i(`${t} changed to ${e.value}.`)},[e.value]);const d=g=>{c(g.target.value),o&&s({type:"str",value:g.target.value,full_access_path:t,readonly:n,doc:r})},f=g=>{g.key==="Enter"&&!o&&(s({type:"str",value:u,full_access_path:t,readonly:n,doc:r}),g.preventDefault())},v=()=>{o||s({type:"str",value:u,full_access_path:t,readonly:n,doc:r})};return w.jsxs("div",{className:"component stringComponent",id:l,children:[!1,w.jsxs(Un,{children:[w.jsxs(Un.Text,{children:[a,w.jsx(ln,{docString:r})]}),w.jsx(ot.Control,{type:"text",name:l,value:u,disabled:n,onChange:d,onKeyDown:f,onBlur:v,className:o&&!n?"instantUpdate":""})]})]})});ak.displayName="StringComponent";function wm(e){const t=h.useContext(jh),n=o=>{var i;return((i=t[o])==null?void 0:i.displayOrder)??Number.MAX_SAFE_INTEGER};let r;return Array.isArray(e)?r=[...e].sort((o,i)=>n(o.full_access_path)-n(i.full_access_path)):r=Object.values(e).sort((o,i)=>n(o.full_access_path)-n(i.full_access_path)),r}const lk=ne.memo(e=>{const{docString:t,isInstantUpdate:n,addNotification:r,id:o}=e,i=wm(e.value);return Cn(),w.jsxs("div",{className:"listComponent",id:o,children:[!1,w.jsx(ln,{docString:t}),i.map(s=>w.jsx(ii,{attribute:s,isInstantUpdate:n,addNotification:r},s.full_access_path))]})});lk.displayName="ListComponent";var rL=["color","size","title","className"];function fp(){return fp=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function iL(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var lc=h.forwardRef(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=oL(e,rL);return ne.createElement("svg",fp({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-chevron-down",i].filter(Boolean).join(" ")},s),o?ne.createElement("title",null,o):null,ne.createElement("path",{fillRule:"evenodd",d:"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708"}))});lc.propTypes={color:pe.string,size:pe.oneOfType([pe.string,pe.number]),title:pe.string,className:pe.string};lc.defaultProps={color:"currentColor",size:"1em",title:null,className:""};var sL=["color","size","title","className"];function dp(){return dp=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lL(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var uc=h.forwardRef(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=aL(e,sL);return ne.createElement("svg",dp({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-chevron-right",i].filter(Boolean).join(" ")},s),o?ne.createElement("title",null,o):null,ne.createElement("path",{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708"}))});uc.propTypes={color:pe.string,size:pe.oneOfType([pe.string,pe.number]),title:pe.string,className:pe.string};uc.defaultProps={color:"currentColor",size:"1em",title:null,className:""};function pp(e,t){const[n,r]=h.useState(()=>{const o=localStorage.getItem(e);return o?JSON.parse(o):t});return h.useEffect(()=>{n!==void 0&&localStorage.setItem(e,JSON.stringify(n))},[n,e]),[n,r]}const Sm=ne.memo(({props:e,isInstantUpdate:t,addNotification:n,displayName:r,id:o})=>{const[i,s]=pp(`dataServiceComponent-${o}-open`,!0),a=wm(e);return r!==""?w.jsx("div",{className:"component dataServiceComponent",id:o,children:w.jsxs(Do,{children:[w.jsxs(Do.Header,{onClick:()=>s(!i),style:{cursor:"pointer"},children:[r," ",i?w.jsx(lc,{}):w.jsx(uc,{})]}),w.jsx(bu,{in:i,children:w.jsx(Do.Body,{children:a.map(l=>w.jsx(ii,{attribute:l,isInstantUpdate:t,addNotification:n},l.full_access_path))})})]})}):w.jsx("div",{className:"component dataServiceComponent",id:o,children:a.map(l=>w.jsx(ii,{attribute:l,isInstantUpdate:t,addNotification:n},l.full_access_path))})});Sm.displayName="DataServiceComponent";const uk=ne.memo(({fullAccessPath:e,props:t,isInstantUpdate:n,addNotification:r,displayName:o,id:i})=>{const{connected:s,connect:a,...l}=t,u=s.value;return w.jsxs("div",{className:"deviceConnectionComponent",id:i,children:[!u&&w.jsxs("div",{className:"overlayContent",children:[w.jsxs("div",{children:[o!=""?o:"Device"," is currently not available!"]}),w.jsx(gm,{fullAccessPath:`${e}.connect`,docString:a.doc,addNotification:r,displayName:"reconnect",id:i+"-connect",render:!0})]}),w.jsx(Sm,{props:l,isInstantUpdate:n,addNotification:r,displayName:o,id:i})]})});uk.displayName="DeviceConnectionComponent";const ck=ne.memo(e=>{const{fullAccessPath:t,value:n,docString:r,format:o,addNotification:i,displayName:s,id:a}=e;Cn();const[l,u]=h.useState(!0);return h.useEffect(()=>{i(`${t} changed.`)},[e.value]),w.jsx("div",{className:"component imageComponent",id:a,children:w.jsxs(Do,{children:[w.jsxs(Do.Header,{onClick:()=>u(!l),style:{cursor:"pointer"},children:[s,w.jsx(ln,{docString:r}),l?w.jsx(lc,{}):w.jsx(uc,{})]}),w.jsx(bu,{in:l,children:w.jsxs(Do.Body,{children:[!1,o===""&&n===""?w.jsx("p",{children:"No image set in the backend."}):w.jsx(aS,{src:`data:image/${o.toLowerCase()};base64,${n}`})]})})]})})});ck.displayName="ImageComponent";function uL(e){if(e){let t=e.replace(/\]\./g,"-");return t=t.replace(/[^\w_]+/g,"-"),t=t.replace(/-+$/,""),t}else return"main"}const fk=ne.memo(e=>{const{docString:t,isInstantUpdate:n,addNotification:r,id:o}=e,i=wm(e.value);return Cn(),w.jsxs("div",{className:"listComponent",id:o,children:[!1,w.jsx(ln,{docString:t}),i.map(s=>w.jsx(ii,{attribute:s,isInstantUpdate:n,addNotification:r},s.full_access_path))]})});fk.displayName="DictComponent";const dk=ne.memo(e=>{const{fullAccessPath:t,docString:n,status:r,addNotification:o,displayName:i,id:s}=e;Cn();const a=h.useRef(null),[l,u]=h.useState(!1);h.useEffect(()=>{let d;r==="RUNNING"?d=`${t} was started.`:d=`${t} was stopped.`,o(d),u(!1)},[r]);const c=async d=>{d.preventDefault();const f=r=="RUNNING"?"stop":"start",v=[t,f].filter(g=>g).join(".");u(!0),cx(v)};return w.jsxs("div",{className:"component taskComponent",id:s,children:[!1,w.jsx(ot,{onSubmit:c,ref:a,children:w.jsxs(Un,{children:[w.jsxs(Un.Text,{children:[i,w.jsx(ln,{docString:n})]}),w.jsx(Fs,{id:`button-${s}`,type:"submit",children:l?w.jsx(FS,{size:"sm",role:"status","aria-hidden":"true"}):r==="RUNNING"?"Stop ":"Start "})]})})]})});dk.displayName="TaskComponent";const cL=e=>{let t="";for(const n of e)!n.startsWith("[")&&t!==""&&(t+="."),t+=n;return t},fL=e=>{const t=[],n=dx(e);for(let r=n.length-1;r>=0;r--){const o=n[r];if(t.unshift(o),!o.startsWith("["))break}return cL(t)};function yo(e,t=()=>{}){H_(e,t)}const ii=ne.memo(({attribute:e,isInstantUpdate:t,addNotification:n})=>{const{full_access_path:r}=e,o=uL(r),i=h.useContext(jh);let s=fL(r);if(i[r]){if(i[r].display===!1)return null;i[r].displayName&&(s=i[r].displayName)}return e.type==="bool"?w.jsx(px,{fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:!!e.value,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="float"||e.type==="int"?w.jsx(zl,{type:e.type,fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:Number(e.value),isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="Quantity"?w.jsx(zl,{type:"Quantity",fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:Number(e.value.magnitude),unit:e.value.unit,isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="NumberSlider"?w.jsx(ik,{fullAccessPath:r,docString:e.value.value.doc,readOnly:e.readonly,value:e.value.value,min:e.value.min,max:e.value.max,stepSize:e.value.step_size,isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="Enum"||e.type==="ColouredEnum"?w.jsx(sk,{...e,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="method"?w.jsx(gm,{fullAccessPath:r,docString:e.doc,addNotification:n,displayName:s,id:o,render:e.frontend_render}):e.type==="str"?w.jsx(ak,{fullAccessPath:r,value:e.value,readOnly:e.readonly,docString:e.doc,isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type=="Task"?w.jsx(dk,{fullAccessPath:r,docString:e.doc,status:e.value.status.value,addNotification:n,displayName:s,id:o}):e.type==="DataService"?w.jsx(Sm,{props:e.value,isInstantUpdate:t,addNotification:n,displayName:s,id:o}):e.type==="DeviceConnection"?w.jsx(uk,{fullAccessPath:r,props:e.value,isInstantUpdate:t,addNotification:n,displayName:s,id:o}):e.type==="list"?w.jsx(lk,{value:e.value,docString:e.doc,isInstantUpdate:t,addNotification:n,id:o}):e.type==="dict"?w.jsx(fk,{value:e.value,docString:e.doc,isInstantUpdate:t,addNotification:n,id:o}):e.type==="Image"?w.jsx(ck,{fullAccessPath:r,docString:e.value.value.doc,displayName:s,id:o,addNotification:n,value:e.value.value.value,format:e.value.format.value}):w.jsx("div",{children:r},r)});ii.displayName="GenericComponent";const dL=(e,t)=>{switch(t.type){case"SET_DATA":return t.data;case"UPDATE_ATTRIBUTE":return e===null?null:{...e,value:G_(e.value,t.fullAccessPath,t.newValue)};default:throw new Error}},pL=()=>{const[e,t]=h.useReducer(dL,null),[n,r]=h.useState(null),[o,i]=h.useState({}),[s,a]=pp("isInstantUpdate",!1),[l,u]=h.useState(!1),[c,d]=pp("showNotification",!1),[f,v]=h.useState([]),[g,S]=h.useState("connecting");h.useEffect(()=>(fetch(`${Ui}://${Sa}/custom.css`,{credentials:"include"}).then(x=>{if(x.ok){const b=document.createElement("link");b.href=`${Ui}://${Sa}/custom.css`,b.type="text/css",b.rel="stylesheet",document.head.appendChild(b)}}).catch(console.error),Ln.on("connect",()=>{fetch(`${Ui}://${Sa}/service-properties`,{credentials:"include"}).then(x=>x.json()).then(x=>{t({type:"SET_DATA",data:x}),r(x.name),document.title=x.name}),fetch(`${Ui}://${Sa}/web-settings`,{credentials:"include"}).then(x=>x.json()).then(x=>i(x)),S("connected")}),Ln.on("disconnect",()=>{S("disconnected"),setTimeout(()=>{S(x=>x==="disconnected"?"reconnecting":x)},2e3)}),Ln.on("notify",E),Ln.on("log",C),()=>{Ln.off("notify",E),Ln.off("log",C)}),[]);const k=h.useCallback((x,b="DEBUG")=>{const O=new Date().toISOString().substring(11,19),T=Math.random();v($=>[{levelname:b,id:T,message:x,timeStamp:O},...$])},[]),y=x=>{v(b=>b.filter(O=>O.id!==x))},p=()=>u(!1),m=()=>u(!0);function E(x){const{full_access_path:b,value:O}=x.data;t({type:"UPDATE_ATTRIBUTE",fullAccessPath:b,newValue:O})}function C(x){k(x.message,x.levelname)}return e?w.jsxs(w.Fragment,{children:[w.jsx(Xc,{expand:!1,bg:"primary",variant:"dark",fixed:"top",children:w.jsxs(Qw,{fluid:!0,children:[w.jsx(Xc.Brand,{children:n}),w.jsx(Xc.Toggle,{"aria-controls":"offcanvasNavbar",onClick:m})]})}),w.jsx(fx,{showNotification:c,notifications:f,removeNotificationById:y}),w.jsxs(Fi,{show:l,onHide:p,placement:"end",style:{zIndex:9999},children:[w.jsx(Fi.Header,{closeButton:!0,children:w.jsx(Fi.Title,{children:"Settings"})}),w.jsxs(Fi.Body,{children:[w.jsx(ot.Check,{checked:s,onChange:x=>a(x.target.checked),type:"switch",label:"Enable Instant Update"}),w.jsx(ot.Check,{checked:c,onChange:x=>d(x.target.checked),type:"switch",label:"Show Notifications"})]})]}),w.jsx("div",{className:"App navbarOffset",children:w.jsx(jh.Provider,{value:o,children:w.jsx(ii,{attribute:e,isInstantUpdate:s,addNotification:k})})}),w.jsx(jd,{connectionStatus:g})]}):w.jsx(jd,{connectionStatus:g})};var hp={},c0=Nw;hp.createRoot=c0.createRoot,hp.hydrateRoot=c0.hydrateRoot;hp.createRoot(document.getElementById("root")).render(w.jsx(ne.StrictMode,{children:w.jsx(pL,{})})); diff --git a/src/pydase/frontend/index.html b/src/pydase/frontend/index.html index 66d9228e..4be8fe57 100644 --- a/src/pydase/frontend/index.html +++ b/src/pydase/frontend/index.html @@ -7,7 +7,7 @@ - +