@hpcc-js/composite 3.5.6 → 3.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
- var e,t,n,r,o,i,l,a,s,u,c,d,h,p,f,g,m,y,b,v,w,_=Object.defineProperty,x=(e,t)=>_(e,"name",{value:t,configurable:!0});import{HTMLWidget as C,format as S,timeParse as k,timeFormat as T,FAChar as P,select as E,selectAll as z,Utility as I,d3Event as R,Platform as A,drag as D,SVGWidget as F,Database as L,Palette as O,scaleOrdinal as M,ProgressBar as B,ToggleButton as H,Text as N,Button as W,Spacer as U,TitleBar as j,IconBar as $,scaleLinear as V,dispatch as G,formatPrefix as q,formatLocale as Y,formatSpecifier as X,sum as K,map as Q}from"@hpcc-js/common";import{instanceOfIHighlight as J,INDChart as Z,IGraph as ee}from"@hpcc-js/api";import{OnOff as te,Button as ne,Input as re,Select as oe}from"@hpcc-js/form";import{PropertyEditor as ie,Legend as le,Html as ae,Persist as se}from"@hpcc-js/other";const ue="@hpcc-js/composite",ce="3.5.6",de="3.21.5";var he=Object.defineProperty,pe=/* @__PURE__ */x((e,t)=>he(e,"name",{value:t,configurable:!0}),"t$1");function fe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}x(fe,"s"),pe(fe,"getDefaultExportFromCjs");var ge,me,ye={exports:{}},be={};function ve(){if(ge)return be;ge=1;var e=/* @__PURE__ */Symbol.for("react.transitional.element"),t=/* @__PURE__ */Symbol.for("react.portal"),n=/* @__PURE__ */Symbol.for("react.fragment"),r=/* @__PURE__ */Symbol.for("react.strict_mode"),o=/* @__PURE__ */Symbol.for("react.profiler"),i=/* @__PURE__ */Symbol.for("react.consumer"),l=/* @__PURE__ */Symbol.for("react.context"),a=/* @__PURE__ */Symbol.for("react.forward_ref"),s=/* @__PURE__ */Symbol.for("react.suspense"),u=/* @__PURE__ */Symbol.for("react.memo"),c=/* @__PURE__ */Symbol.for("react.lazy"),d=/* @__PURE__ */Symbol.for("react.activity"),h=Symbol.iterator;function p(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}x(p,"g"),pe(p,"getIteratorFn");var f={isMounted:/* @__PURE__ */pe(function(){return!1},"isMounted"),enqueueForceUpdate:/* @__PURE__ */pe(function(){},"enqueueForceUpdate"),enqueueReplaceState:/* @__PURE__ */pe(function(){},"enqueueReplaceState"),enqueueSetState:/* @__PURE__ */pe(function(){},"enqueueSetState")},g=Object.assign,m={};function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}function b(){}function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}x(y,"w"),x(b,"S"),x(v,"k"),pe(y,"Component"),y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},pe(b,"ComponentDummy"),b.prototype=y.prototype,pe(v,"PureComponent");var w=v.prototype=new b;w.constructor=v,g(w,y.prototype),w.isPureReactComponent=!0;var _=Array.isArray;function C(){}x(C,"E"),pe(C,"noop");var S={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function T(t,n,r){var o=r.ref;return{$$typeof:e,type:t,key:n,ref:void 0!==o?o:null,props:r}}function P(e,t){return T(e.type,t,e.props)}function E(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}function z(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}x(T,"P"),x(P,"T"),x(E,"z"),x(z,"_"),pe(T,"ReactElement"),pe(P,"cloneAndReplaceKey"),pe(E,"isValidElement"),pe(z,"escape");var I=/\/+/g;function R(e,t){return"object"==typeof e&&null!==e&&null!=e.key?z(""+e.key):t.toString(36)}function A(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(C,C):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function D(n,r,o,i,l){var a=typeof n;"undefined"!==a&&"boolean"!==a||(n=null);var s=!1;if(null===n)s=!0;else switch(a){case"bigint":case"string":case"number":s=!0;break;case"object":switch(n.$$typeof){case e:case t:s=!0;break;case c:return D((s=n._init)(n._payload),r,o,i,l)}}if(s)return l=l(n),s=""===i?"."+R(n,0):i,_(l)?(o="",null!=s&&(o=s.replace(I,"$&/")+"/"),D(l,r,o,"",function(e){return e})):null!=l&&(E(l)&&(l=P(l,o+(null==l.key||n&&n.key===l.key?"":(""+l.key).replace(I,"$&/")+"/")+s)),r.push(l)),1;s=0;var u=""===i?".":i+":";if(_(n))for(var d=0;d<n.length;d++)s+=D(i=n[d],r,o,a=u+R(i,d),l);else if("function"==typeof(d=p(n)))for(n=d.call(n),d=0;!(i=n.next()).done;)s+=D(i=i.value,r,o,a=u+R(i,d++),l);else if("object"===a){if("function"==typeof n.then)return D(A(n),r,o,i,l);throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.")}return s}function F(e,t,n){if(null==e)return e;var r=[],o=0;return D(e,r,"","",function(e){return t.call(n,e,o++)}),r}function L(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}x(R,"F"),x(A,"D"),x(D,"L"),x(F,"O"),x(L,"A"),pe(R,"getElementKey"),pe(A,"resolveThenable"),pe(D,"mapIntoArray"),pe(F,"mapChildren"),pe(L,"lazyInitializer");var O="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},M={map:F,forEach:/* @__PURE__ */pe(function(e,t,n){F(e,function(){t.apply(this,arguments)},n)},"forEach"),count:/* @__PURE__ */pe(function(e){var t=0;return F(e,function(){t++}),t},"count"),toArray:/* @__PURE__ */pe(function(e){return F(e,function(e){return e})||[]},"toArray"),only:/* @__PURE__ */pe(function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e},"only")};return be.Activity=d,be.Children=M,be.Component=y,be.Fragment=n,be.Profiler=o,be.PureComponent=v,be.StrictMode=r,be.Suspense=s,be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=S,be.__COMPILER_RUNTIME={__proto__:null,c:/* @__PURE__ */pe(function(e){return S.H.useMemoCache(e)},"c")},be.cache=function(e){return function(){return e.apply(null,arguments)}},be.cacheSignal=function(){return null},be.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=g({},e.props),o=e.key;if(null!=t)for(i in void 0!==t.key&&(o=""+t.key),t)!k.call(t,i)||"key"===i||"__self"===i||"__source"===i||"ref"===i&&void 0===t.ref||(r[i]=t[i]);var i=arguments.length-2;if(1===i)r.children=n;else if(1<i){for(var l=Array(i),a=0;a<i;a++)l[a]=arguments[a+2];r.children=l}return T(e.type,o,r)},be.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:i,_context:e},e},be.createElement=function(e,t,n){var r,o={},i=null;if(null!=t)for(r in void 0!==t.key&&(i=""+t.key),t)k.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var a=Array(l),s=0;s<l;s++)a[s]=arguments[s+2];o.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return T(e,i,o)},be.createRef=function(){return{current:null}},be.forwardRef=function(e){return{$$typeof:a,render:e}},be.isValidElement=E,be.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:L}},be.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},be.startTransition=function(e){var t=S.T,n={};S.T=n;try{var r=e(),o=S.S;null!==o&&o(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(C,O)}catch(i){O(i)}finally{null!==t&&null!==n.types&&(t.types=n.types),S.T=t}},be.unstable_useCacheRefresh=function(){return S.H.useCacheRefresh()},be.use=function(e){return S.H.use(e)},be.useActionState=function(e,t,n){return S.H.useActionState(e,t,n)},be.useCallback=function(e,t){return S.H.useCallback(e,t)},be.useContext=function(e){return S.H.useContext(e)},be.useDebugValue=function(){},be.useDeferredValue=function(e,t){return S.H.useDeferredValue(e,t)},be.useEffect=function(e,t){return S.H.useEffect(e,t)},be.useEffectEvent=function(e){return S.H.useEffectEvent(e)},be.useId=function(){return S.H.useId()},be.useImperativeHandle=function(e,t,n){return S.H.useImperativeHandle(e,t,n)},be.useInsertionEffect=function(e,t){return S.H.useInsertionEffect(e,t)},be.useLayoutEffect=function(e,t){return S.H.useLayoutEffect(e,t)},be.useMemo=function(e,t){return S.H.useMemo(e,t)},be.useOptimistic=function(e,t){return S.H.useOptimistic(e,t)},be.useReducer=function(e,t,n){return S.H.useReducer(e,t,n)},be.useRef=function(e){return S.H.useRef(e)},be.useState=function(e){return S.H.useState(e)},be.useSyncExternalStore=function(e,t,n){return S.H.useSyncExternalStore(e,t,n)},be.useTransition=function(){return S.H.useTransition()},be.version="19.2.4",be}function we(){return me||(me=1,ye.exports=ve()),ye.exports}x(ve,"m"),x(we,"h"),pe(ve,"requireReact_production"),pe(we,"requireReact");var _e=we();const xe=/* @__PURE__ */fe(_e);var Ce,Se,ke={exports:{}},Te={},Pe={exports:{}},Ee={};function ze(){return Ce||(Ce=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,l=i>>>1;r<l;){var a=2*(r+1)-1,s=e[a],u=a+1,c=e[u];if(0>o(s,n))u<i&&0>o(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[a]=n,r=a);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(x(t,"n"),x(n,"r"),x(r,"l"),x(o,"o"),pe(t,"push"),pe(n,"peek"),pe(r,"pop"),pe(o,"compare"),e.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,a=l.now();e.unstable_now=function(){return l.now()-a}}var s=[],u=[],c=1,d=null,h=3,p=!1,f=!1,g=!1,m=!1,y="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var o=n(u);null!==o;){if(null===o.callback)r(u);else{if(!(o.startTime<=e))break;r(u),o.sortIndex=o.expirationTime,t(s,o)}o=n(u)}}function _(e){if(g=!1,w(e),!f)if(null!==n(s))f=!0,S||(S=!0,C());else{var t=n(u);null!==t&&A(_,t.startTime-e)}}x(w,"S"),x(_,"k"),pe(w,"advanceTimers"),pe(_,"handleTimeout");var C,S=!1,k=-1,T=5,P=-1;function E(){return!(!m&&e.unstable_now()-P<T)}function z(){if(m=!1,S){var t=e.unstable_now();P=t;var o=!0;try{e:{f=!1,g&&(g=!1,b(k),k=-1),p=!0;var i=h;try{t:{for(w(t),d=n(s);null!==d&&!(d.expirationTime>t&&E());){var l=d.callback;if("function"==typeof l){d.callback=null,h=d.priorityLevel;var a=l(d.expirationTime<=t);if(t=e.unstable_now(),"function"==typeof a){d.callback=a,w(t),o=!0;break t}d===n(s)&&r(s),w(t)}else r(s);d=n(s)}if(null!==d)o=!0;else{var c=n(u);null!==c&&A(_,c.startTime-t),o=!1}}break e}finally{d=null,h=i,p=!1}o=void 0}}finally{o?C():S=!1}}}if(x(E,"P"),x(z,"T"),pe(E,"shouldYieldToHost"),pe(z,"performWorkUntilDeadline"),"function"==typeof v)C=/* @__PURE__ */pe(function(){v(z)},"schedulePerformWorkUntilDeadline");else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,R=I.port2;I.port1.onmessage=z,C=/* @__PURE__ */pe(function(){R.postMessage(null)},"schedulePerformWorkUntilDeadline")}else C=/* @__PURE__ */pe(function(){y(z,0)},"schedulePerformWorkUntilDeadline");function A(t,n){k=y(function(){t(e.unstable_now())},n)}x(A,"N"),pe(A,"requestHostTimeout"),e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},e.unstable_requestPaint=function(){m=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},e.unstable_scheduleCallback=function(r,o,i){var l=e.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?l+i:l,r){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return r={id:c++,callback:o,priorityLevel:r,startTime:i,expirationTime:a=i+a,sortIndex:-1},i>l?(r.sortIndex=i,t(u,r),null===n(s)&&r===n(u)&&(g?(b(k),k=-1):g=!0,A(_,i-l))):(r.sortIndex=a,t(s,r),f||p||(f=!0,S||(S=!0,C()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}}(Ee)),Ee}function Ie(){return Se||(Se=1,Pe.exports=ze()),Pe.exports}x(ze,"x"),x(Ie,"E$1"),pe(ze,"requireScheduler_production"),pe(Ie,"requireScheduler");var Re,Ae,De,Fe,Le={exports:{}},Oe={};function Me(){if(Re)return Oe;Re=1;var e=we();function t(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}x(t,"n"),x(n,"r"),pe(t,"formatProdErrorMessage"),pe(n,"noop");var r={d:{f:n,r:/* @__PURE__ */pe(function(){throw Error(t(522))},"r"),D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=/* @__PURE__ */Symbol.for("react.portal");function i(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:o,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}x(i,"a"),pe(i,"createPortal$1");var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}return x(a,"u"),pe(a,"getCrossOriginStringAs"),Oe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Oe.createPortal=function(e,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!n||1!==n.nodeType&&9!==n.nodeType&&11!==n.nodeType)throw Error(t(299));return i(e,n,null,r)},Oe.flushSync=function(e){var t=l.T,n=r.p;try{if(l.T=null,r.p=2,e)return e()}finally{l.T=t,r.p=n,r.d.f()}},Oe.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,r.d.C(e,t))},Oe.prefetchDNS=function(e){"string"==typeof e&&r.d.D(e)},Oe.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,o=a(n,t.crossOrigin),i="string"==typeof t.integrity?t.integrity:void 0,l="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?r.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:o,integrity:i,fetchPriority:l}):"script"===n&&r.d.X(e,{crossOrigin:o,integrity:i,fetchPriority:l,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},Oe.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=a(t.as,t.crossOrigin);r.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&r.d.M(e)},Oe.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,o=a(n,t.crossOrigin);r.d.L(e,n,{crossOrigin:o,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},Oe.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=a(t.as,t.crossOrigin);r.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else r.d.m(e)},Oe.requestFormReset=function(e){r.d.r(e)},Oe.unstable_batchedUpdates=function(e,t){return e(t)},Oe.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},Oe.useFormStatus=function(){return l.H.useHostTransitionStatus()},Oe.version="19.2.4",Oe}function Be(){if(Ae)return Le.exports;function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return x(e,"e"),Ae=1,pe(e,"checkDCE"),e(),Le.exports=Me(),Le.exports}function He(){if(De)return Te;De=1;var e=Ie(),t=we(),n=Be();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function i(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function l(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function a(e){if(31===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function s(e){if(i(e)!==e)throw Error(r(188))}function u(e){var t=e.alternate;if(!t){if(null===(t=i(e)))throw Error(r(188));return t!==e?null:e}for(var n=e,o=t;;){var l=n.return;if(null===l)break;var a=l.alternate;if(null===a){if(null!==(o=l.return)){n=o;continue}break}if(l.child===a.child){for(a=l.child;a;){if(a===n)return s(l),e;if(a===o)return s(l),t;a=a.sibling}throw Error(r(188))}if(n.return!==o.return)n=l,o=a;else{for(var u=!1,c=l.child;c;){if(c===n){u=!0,n=l,o=a;break}if(c===o){u=!0,o=l,n=a;break}c=c.sibling}if(!u){for(c=a.child;c;){if(c===n){u=!0,n=a,o=l;break}if(c===o){u=!0,o=a,n=l;break}c=c.sibling}if(!u)throw Error(r(189))}}if(n.alternate!==o)throw Error(r(190))}if(3!==n.tag)throw Error(r(188));return n.stateNode.current===n?e:t}function c(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=c(e)))return t;e=e.sibling}return null}x(r,"l"),x(o,"o"),x(i,"a"),x(l,"i"),x(a,"u"),x(s,"s"),x(u,"c"),x(c,"d"),pe(r,"formatProdErrorMessage"),pe(o,"isValidContainer"),pe(i,"getNearestMountedFiber"),pe(l,"getSuspenseInstanceFromFiber"),pe(a,"getActivityInstanceFromFiber"),pe(s,"assertIsMounted"),pe(u,"findCurrentFiberUsingSlowPath"),pe(c,"findCurrentHostFiberImpl");var d=Object.assign,h=/* @__PURE__ */Symbol.for("react.element"),p=/* @__PURE__ */Symbol.for("react.transitional.element"),f=/* @__PURE__ */Symbol.for("react.portal"),g=/* @__PURE__ */Symbol.for("react.fragment"),m=/* @__PURE__ */Symbol.for("react.strict_mode"),y=/* @__PURE__ */Symbol.for("react.profiler"),b=/* @__PURE__ */Symbol.for("react.consumer"),v=/* @__PURE__ */Symbol.for("react.context"),w=/* @__PURE__ */Symbol.for("react.forward_ref"),_=/* @__PURE__ */Symbol.for("react.suspense"),C=/* @__PURE__ */Symbol.for("react.suspense_list"),S=/* @__PURE__ */Symbol.for("react.memo"),k=/* @__PURE__ */Symbol.for("react.lazy"),T=/* @__PURE__ */Symbol.for("react.activity"),P=/* @__PURE__ */Symbol.for("react.memo_cache_sentinel"),E=Symbol.iterator;function z(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=E&&e[E]||e["@@iterator"])?e:null}x(z,"D"),pe(z,"getIteratorFn");var I=/* @__PURE__ */Symbol.for("react.client.reference");function R(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===I?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case g:return"Fragment";case y:return"Profiler";case m:return"StrictMode";case _:return"Suspense";case C:return"SuspenseList";case T:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case f:return"Portal";case v:return e.displayName||"Context";case b:return(e._context.displayName||"Context")+".Consumer";case w:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case S:return null!==(t=e.displayName||null)?t:R(e.type)||"Memo";case k:t=e._payload,e=e._init;try{return R(e(t))}catch(n){}}return null}x(R,"O"),pe(R,"getComponentNameFromType");var A=Array.isArray,D=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L={pending:!1,data:null,method:null,action:null},O=[],M=-1;function B(e){return{current:e}}function H(e){0>M||(e.current=O[M],O[M]=null,M--)}function N(e,t){M++,O[M]=e.current,e.current=t}x(B,"$"),x(H,"V"),x(N,"B"),pe(B,"createCursor"),pe(H,"pop"),pe(N,"push");var W,U,j=B(null),$=B(null),V=B(null),G=B(null);function q(e,t){switch(N(V,t),N($,e),N(j,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?$d(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=Vd(t=$d(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}H(j),N(j,e)}function Y(){H(j),H($),H(V)}function X(e){null!==e.memoizedState&&N(G,e);var t=j.current,n=Vd(t,e.type);t!==n&&(N($,e),N(j,n))}function K(e){$.current===e&&(H(j),H($)),G.current===e&&(H(G),ep._currentValue=L)}function Q(e){if(void 0===W)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);W=t&&t[1]||"",U=-1<n.stack.indexOf("\n at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+W+e+U}x(q,"J"),x(Y,"Z"),x(X,"ee"),x(K,"te"),x(Q,"ne"),pe(q,"pushHostContainer"),pe(Y,"popHostContainer"),pe(X,"pushHostContext"),pe(K,"popHostContext"),pe(Q,"describeBuiltInComponentFrame");var J=!1;function Z(e,t){if(!e||J)return"";J=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:/* @__PURE__ */pe(function(){try{if(t){var n=/* @__PURE__ */pe(function(){throw Error()},"Fake");if(Object.defineProperty(n.prototype,"props",{set:/* @__PURE__ */pe(function(){throw Error()},"set")}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(o){var r=o}Reflect.construct(e,[],n)}else{try{n.call()}catch(i){r=i}e.call(n.prototype)}}else{try{throw Error()}catch(l){r=l}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(a){if(a&&r&&"string"==typeof a.stack)return[a.stack,r.stack]}return[null,null]},"DetermineComponentFrameRoot")};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=r.DetermineComponentFrameRoot(),l=i[0],a=i[1];if(l&&a){var s=l.split("\n"),u=a.split("\n");for(o=r=0;r<s.length&&!s[r].includes("DetermineComponentFrameRoot");)r++;for(;o<u.length&&!u[o].includes("DetermineComponentFrameRoot");)o++;if(r===s.length||o===u.length)for(r=s.length-1,o=u.length-1;1<=r&&0<=o&&s[r]!==u[o];)o--;for(;1<=r&&0<=o;r--,o--)if(s[r]!==u[o]){if(1!==r||1!==o)do{if(r--,0>--o||s[r]!==u[o]){var c="\n"+s[r].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=r&&0<=o);break}}}finally{J=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Q(n):""}function ee(e,t){switch(e.tag){case 26:case 27:case 5:return Q(e.type);case 16:return Q("Lazy");case 13:return e.child!==t&&null!==t?Q("Suspense Fallback"):Q("Suspense");case 19:return Q("SuspenseList");case 0:case 15:return Z(e.type,!1);case 11:return Z(e.type.render,!1);case 1:return Z(e.type,!0);case 31:return Q("Activity");default:return""}}function te(e){try{var t="",n=null;do{t+=ee(e,n),n=e,e=e.return}while(e);return t}catch(r){return"\nError generating stack: "+r.message+"\n"+r.stack}}x(Z,"le"),x(ee,"oe"),x(te,"ae"),pe(Z,"describeNativeComponentFrame"),pe(ee,"describeFiber"),pe(te,"getStackByFiberInDevAndProd");var ne=Object.prototype.hasOwnProperty,re=e.unstable_scheduleCallback,oe=e.unstable_cancelCallback,ie=e.unstable_shouldYield,le=e.unstable_requestPaint,ae=e.unstable_now,se=e.unstable_getCurrentPriorityLevel,ue=e.unstable_ImmediatePriority,ce=e.unstable_UserBlockingPriority,de=e.unstable_NormalPriority,he=e.unstable_LowPriority,fe=e.unstable_IdlePriority,ge=e.log,me=e.unstable_setDisableYieldValue,ye=null,be=null;function ve(e){if("function"==typeof ge&&me(e),be&&"function"==typeof be.setStrictMode)try{be.setStrictMode(ye,e)}catch(t){}}x(ve,"Ce"),pe(ve,"setIsStrictModeForDevtools");var _e=Math.clz32?Math.clz32:Se,xe=Math.log,Ce=Math.LN2;function Se(e){return 0==(e>>>=0)?32:31-(xe(e)/Ce|0)|0}x(Se,"Ie"),pe(Se,"clz32Fallback");var ke=256,Pe=262144,Ee=4194304;function ze(e){var t=42&e;if(0!==t)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return 261888&e;case 262144:case 524288:case 1048576:case 2097152:return 3932160&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Re(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var o=0,i=e.suspendedLanes,l=e.pingedLanes;e=e.warmLanes;var a=134217727&r;return 0!==a?0!==(r=a&~i)?o=ze(r):0!==(l&=a)?o=ze(l):n||0!==(n=a&~e)&&(o=ze(n)):0!==(a=r&~i)?o=ze(a):0!==l?o=ze(l):n||0!==(n=r&~e)&&(o=ze(n)),0===o?0:0!==t&&t!==o&&0===(t&i)&&((i=o&-o)>=(n=t&-t)||32===i&&4194048&n)?t:o}function Ae(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Fe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function Le(){var e=Ee;return!(62914560&(Ee<<=1))&&(Ee=4194304),e}function Oe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Me(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function He(e,t,n,r,o,i){var l=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var a=e.entanglements,s=e.expirationTimes,u=e.hiddenUpdates;for(n=l&~n;0<n;){var c=31-_e(n),d=1<<c;a[c]=0,s[c]=-1;var h=u[c];if(null!==h)for(u[c]=null,c=0;c<h.length;c++){var p=h[c];null!==p&&(p.lane&=-536870913)}n&=~d}0!==r&&Ne(e,r,0),0!==i&&0===o&&0!==e.tag&&(e.suspendedLanes|=i&~(l&~t))}function Ne(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-_e(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|261930&n}function We(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-_e(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}function Ue(e,t){var n=t&-t;return 0!==((n=42&n?1:je(n))&(e.suspendedLanes|t))?0:n}function je(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function $e(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function Ve(){var e=F.p;return 0!==e?e:void 0===(e=window.event)?32:mp(e.type)}function Ge(e,t){var n=F.p;try{return F.p=e,t()}finally{F.p=n}}x(ze,"_e"),x(Re,"Ne"),x(Ae,"Fe"),x(Fe,"De"),x(Le,"Le"),x(Oe,"Oe"),x(Me,"Ae"),x(He,"Me"),x(Ne,"He"),x(We,"Ue"),x(Ue,"je"),x(je,"We"),x($e,"$e"),x(Ve,"Ve"),x(Ge,"Be"),pe(ze,"getHighestPriorityLanes"),pe(Re,"getNextLanes"),pe(Ae,"checkIfRootIsPrerendering"),pe(Fe,"computeExpirationTime"),pe(Le,"claimNextRetryLane"),pe(Oe,"createLaneMap"),pe(Me,"markRootUpdated$1"),pe(He,"markRootFinished"),pe(Ne,"markSpawnedDeferredLane"),pe(We,"markRootEntangled"),pe(Ue,"getBumpedLaneForHydration"),pe(je,"getBumpedLaneForHydrationByLane"),pe($e,"lanesToEventPriority"),pe(Ve,"resolveUpdatePriority"),pe(Ge,"runWithPriority");var qe=Math.random().toString(36).slice(2),Ye="__reactFiber$"+qe,Xe="__reactProps$"+qe,Ke="__reactContainer$"+qe,Qe="__reactEvents$"+qe,Je="__reactListeners$"+qe,Ze="__reactHandles$"+qe,et="__reactResources$"+qe,tt="__reactMarker$"+qe;function nt(e){delete e[Ye],delete e[Xe],delete e[Qe],delete e[Je],delete e[Ze]}function rt(e){var t=e[Ye];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ke]||n[Ye]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ph(e);null!==e;){if(n=e[Ye])return n;e=ph(e)}return t}n=(e=n).parentNode}return null}function ot(e){if(e=e[Ye]||e[Ke]){var t=e.tag;if(5===t||6===t||13===t||31===t||26===t||27===t||3===t)return e}return null}function it(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(r(33))}function lt(e){var t=e[et];return t||(t=e[et]={hoistableStyles:/* @__PURE__ */new Map,hoistableScripts:/* @__PURE__ */new Map}),t}function at(e){e[tt]=!0}x(nt,"tt"),x(rt,"nt"),x(ot,"rt"),x(it,"lt"),x(lt,"ot"),x(at,"at"),pe(nt,"detachDeletedInstance"),pe(rt,"getClosestInstanceFromNode"),pe(ot,"getInstanceFromNode"),pe(it,"getNodeFromInstance"),pe(lt,"getResourcesFromRoot"),pe(at,"markNodeAsHoistable");var st=/* @__PURE__ */new Set,ut={};function ct(e,t){dt(e,t),dt(e+"Capture",t)}function dt(e,t){for(ut[e]=t,e=0;e<t.length;e++)st.add(t[e])}x(ct,"st"),x(dt,"ct"),pe(ct,"registerTwoPhaseEvent"),pe(dt,"registerDirectEvent");var ht=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),pt={},ft={};function gt(e){return!!ne.call(ft,e)||!ne.call(pt,e)&&(ht.test(e)?ft[e]=!0:(pt[e]=!0,!1))}function mt(e,t,n){if(gt(t))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function yt(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function bt(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function vt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function wt(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function _t(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:/* @__PURE__ */pe(function(){return o.call(this)},"get"),set:/* @__PURE__ */pe(function(e){n=""+e,i.call(this,e)},"set")}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:/* @__PURE__ */pe(function(){return n},"getValue"),setValue:/* @__PURE__ */pe(function(e){n=""+e},"setValue"),stopTracking:/* @__PURE__ */pe(function(){e._valueTracker=null,delete e[t]},"stopTracking")}}}function xt(e){if(!e._valueTracker){var t=wt(e)?"checked":"value";e._valueTracker=_t(e,t,""+e[t])}}function Ct(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=wt(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function St(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}x(gt,"mt"),x(mt,"ht"),x(yt,"gt"),x(bt,"yt"),x(vt,"vt"),x(wt,"bt"),x(_t,"wt"),x(xt,"St"),x(Ct,"kt"),x(St,"Ct"),pe(gt,"isAttributeNameSafe"),pe(mt,"setValueForAttribute"),pe(yt,"setValueForKnownAttribute"),pe(bt,"setValueForNamespacedAttribute"),pe(vt,"getToStringValue"),pe(wt,"isCheckable"),pe(_t,"trackValueOnNode"),pe(xt,"track"),pe(Ct,"updateValueIfChanged"),pe(St,"getActiveElement");var kt=/[\n"\\]/g;function Tt(e){return e.replace(kt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Pt(e,t,n,r,o,i,l,a){e.name="",null!=l&&"function"!=typeof l&&"symbol"!=typeof l&&"boolean"!=typeof l?e.type=l:e.removeAttribute("type"),null!=t?"number"===l?(0===t&&""===e.value||e.value!=t)&&(e.value=""+vt(t)):e.value!==""+vt(t)&&(e.value=""+vt(t)):"submit"!==l&&"reset"!==l||e.removeAttribute("value"),null!=t?zt(e,l,vt(t)):null!=n?zt(e,l,vt(n)):null!=r&&e.removeAttribute("value"),null==o&&null!=i&&(e.defaultChecked=!!i),null!=o&&(e.checked=o&&"function"!=typeof o&&"symbol"!=typeof o),null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a?e.name=""+vt(a):e.removeAttribute("name")}function Et(e,t,n,r,o,i,l,a){if(null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i&&(e.type=i),null!=t||null!=n){if(("submit"===i||"reset"===i)&&null==t)return void xt(e);n=null!=n?""+vt(n):"",t=null!=t?""+vt(t):n,a||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:o)&&"symbol"!=typeof r&&!!r,e.checked=a?e.checked:!!r,e.defaultChecked=!!r,null!=l&&"function"!=typeof l&&"symbol"!=typeof l&&"boolean"!=typeof l&&(e.name=l),xt(e)}function zt(e,t,n){"number"===t&&St(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function It(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+vt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Rt(e,t,n){null==t||((t=""+vt(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+vt(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function At(e,t,n,o){if(null==t){if(null!=o){if(null!=n)throw Error(r(92));if(A(o)){if(1<o.length)throw Error(r(93));o=o[0]}n=o}null==n&&(n=""),t=n}n=vt(t),e.defaultValue=n,(o=e.textContent)===n&&""!==o&&null!==o&&(e.value=o),xt(e)}function Dt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}x(Tt,"Et"),x(Pt,"Rt"),x(Et,"It"),x(zt,"Pt"),x(It,"Tt"),x(Rt,"zt"),x(At,"_t"),x(Dt,"Nt"),pe(Tt,"escapeSelectorAttributeValueInsideDoubleQuotes"),pe(Pt,"updateInput"),pe(Et,"initInput"),pe(zt,"setDefaultValue"),pe(It,"updateOptions"),pe(Rt,"updateTextarea"),pe(At,"initTextarea"),pe(Dt,"setTextContent");var Ft=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Lt(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||Ft.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Ot(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(r(62));if(e=e.style,null!=n){for(var o in n)!n.hasOwnProperty(o)||null!=t&&t.hasOwnProperty(o)||(0===o.indexOf("--")?e.setProperty(o,""):"float"===o?e.cssFloat="":e[o]="");for(var i in t)o=t[i],t.hasOwnProperty(i)&&n[i]!==o&&Lt(e,i,o)}else for(var l in t)t.hasOwnProperty(l)&&Lt(e,l,t[l])}function Mt(e){if(-1===e.indexOf("-"))return!1;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}}x(Lt,"Dt"),x(Ot,"Lt"),x(Mt,"Ot"),pe(Lt,"setValueForStyle"),pe(Ot,"setValueForStyles"),pe(Mt,"isCustomElement");var Bt=/* @__PURE__ */new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Ht=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Nt(e){return Ht.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Wt(){}x(Nt,"Ht"),x(Wt,"Ut"),pe(Nt,"sanitizeURL"),pe(Wt,"noop$1");var Ut=null;function jt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}x(jt,"Wt"),pe(jt,"getEventTarget");var $t=null,Vt=null;function Gt(e){var t=ot(e);if(t&&(e=t.stateNode)){var n=e[Xe]||null;e:switch(e=t.stateNode,t.type){case"input":if(Pt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Tt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var i=o[Xe]||null;if(!i)throw Error(r(90));Pt(o,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)(o=n[t]).form===e.form&&Ct(o)}break e;case"textarea":Rt(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&It(e,!!n.multiple,t,!1)}}}x(Gt,"Bt"),pe(Gt,"restoreStateOfTarget");var qt=!1;function Yt(e,t,n){if(qt)return e(t,n);qt=!0;try{return e(t)}finally{if(qt=!1,(null!==$t||null!==Vt)&&(wc(),$t&&(t=$t,e=Vt,Vt=$t=null,Gt(t),e)))for(t=0;t<e.length;t++)Gt(e[t])}}function Xt(e,t){var n=e.stateNode;if(null===n)return null;var o=n[Xe]||null;if(null===o)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(r(231,t,typeof n));return n}x(Yt,"Kt"),x(Xt,"Qt"),pe(Yt,"batchedUpdates$1"),pe(Xt,"getListener");var Kt=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Qt=!1;if(Kt)try{var Jt={};Object.defineProperty(Jt,"passive",{get:/* @__PURE__ */pe(function(){Qt=!0},"get")}),window.addEventListener("test",Jt,Jt),window.removeEventListener("test",Jt,Jt)}catch(Up){Qt=!1}var Zt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,o="value"in Zt?Zt.value:Zt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var l=r-e;for(t=1;t<=l&&n[r-t]===o[i-t];t++);return tn=o.slice(e,1<t?1-t:void 0)}function rn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function on(){return!0}function ln(){return!1}function an(e){function t(t,n,r,o,i){for(var l in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(l)&&(t=e[l],this[l]=t?t(o):o[l]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?on:ln,this.isPropagationStopped=ln,this}return x(t,"n"),pe(t,"SyntheticBaseEvent"),d(t.prototype,{preventDefault:/* @__PURE__ */pe(function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=on)},"preventDefault"),stopPropagation:/* @__PURE__ */pe(function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},"stopPropagation"),persist:/* @__PURE__ */pe(function(){},"persist"),isPersistent:on}),t}x(nn,"tn"),x(rn,"nn"),x(on,"rn"),x(ln,"ln"),x(an,"on"),pe(nn,"getData"),pe(rn,"getEventCharCode"),pe(on,"functionThatReturnsTrue"),pe(ln,"functionThatReturnsFalse"),pe(an,"createSyntheticEvent");var sn,un,cn,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:/* @__PURE__ */pe(function(e){return e.timeStamp||Date.now()},"timeStamp"),defaultPrevented:0,isTrusted:0},hn=an(dn),pn=d({},dn,{view:0,detail:0}),fn=an(pn),gn=d({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tn,button:0,buttons:0,relatedTarget:/* @__PURE__ */pe(function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},"relatedTarget"),movementX:/* @__PURE__ */pe(function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(sn=e.screenX-cn.screenX,un=e.screenY-cn.screenY):un=sn=0,cn=e),sn)},"movementX"),movementY:/* @__PURE__ */pe(function(e){return"movementY"in e?e.movementY:un},"movementY")}),mn=an(gn),yn=an(d({},gn,{dataTransfer:0})),bn=an(d({},pn,{relatedTarget:0})),vn=an(d({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),wn=an(d({},dn,{clipboardData:/* @__PURE__ */pe(function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData},"clipboardData")})),_n=an(d({},dn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function Tn(){return kn}x(kn,"xn"),x(Tn,"En"),pe(kn,"modifierStateGetter"),pe(Tn,"getEventModifierState");var Pn=an(d({},pn,{key:/* @__PURE__ */pe(function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Cn[e.keyCode]||"Unidentified":""},"key"),code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tn,charCode:/* @__PURE__ */pe(function(e){return"keypress"===e.type?rn(e):0},"charCode"),keyCode:/* @__PURE__ */pe(function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},"keyCode"),which:/* @__PURE__ */pe(function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0},"which")})),En=an(d({},gn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),zn=an(d({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tn})),In=an(d({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Rn=an(d({},gn,{deltaX:/* @__PURE__ */pe(function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},"deltaX"),deltaY:/* @__PURE__ */pe(function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},"deltaY"),deltaZ:0,deltaMode:0})),An=an(d({},dn,{newState:0,oldState:0})),Dn=[9,13,27,32],Fn=Kt&&"CompositionEvent"in window,Ln=null;Kt&&"documentMode"in document&&(Ln=document.documentMode);var On=Kt&&"TextEvent"in window&&!Ln,Mn=Kt&&(!Fn||Ln&&8<Ln&&11>=Ln),Bn=String.fromCharCode(32),Hn=!1;function Nn(e,t){switch(e){case"keyup":return-1!==Dn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}x(Nn,"Hn"),x(Wn,"Un"),pe(Nn,"isFallbackCompositionEnd"),pe(Wn,"getDataFromCustomEvent");var Un=!1;function jn(e,t){switch(e){case"compositionend":return Wn(t);case"keypress":return 32!==t.which?null:(Hn=!0,Bn);case"textInput":return(e=t.data)===Bn&&Hn?null:e;default:return null}}function $n(e,t){if(Un)return"compositionend"===e||!Fn&&Nn(e,t)?(e=nn(),tn=en=Zt=null,Un=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Mn&&"ko"!==t.locale?null:t.data}}x(jn,"Wn"),x($n,"$n"),pe(jn,"getNativeBeforeInputChars"),pe($n,"getFallbackBeforeInputChars");var Vn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Gn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Vn[e.type]:"textarea"===t}function qn(e,t,n,r){$t?Vt?Vt.push(r):Vt=[r]:$t=r,0<(t=Ed(t,"onChange")).length&&(n=new hn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}x(Gn,"Bn"),x(qn,"qn"),pe(Gn,"isTextInputElement"),pe(qn,"createAndAccumulateChangeEvent");var Yn=null,Xn=null;function Kn(e){wd(e,0)}function Qn(e){if(Ct(it(e)))return e}function Jn(e,t){if("change"===e)return t}x(Kn,"Gn"),x(Qn,"Yn"),x(Jn,"Xn"),pe(Kn,"runEventInBatch"),pe(Qn,"getInstIfValueChanged"),pe(Jn,"getTargetInstForChangeEvent");var Zn=!1;if(Kt){var er;if(Kt){var tr="oninput"in document;if(!tr){var nr=document.createElement("div");nr.setAttribute("oninput","return;"),tr="function"==typeof nr.oninput}er=tr}else er=!1;Zn=er&&(!document.documentMode||9<document.documentMode)}function rr(){Yn&&(Yn.detachEvent("onpropertychange",or),Xn=Yn=null)}function or(e){if("value"===e.propertyName&&Qn(Xn)){var t=[];qn(t,Xn,e,jt(e)),Yt(Kn,t)}}function ir(e,t,n){"focusin"===e?(rr(),Xn=n,(Yn=t).attachEvent("onpropertychange",or)):"focusout"===e&&rr()}function lr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn(Xn)}function ar(e,t){if("click"===e)return Qn(t)}function sr(e,t){if("input"===e||"change"===e)return Qn(t)}function ur(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}x(rr,"nr"),x(or,"rr"),x(ir,"lr"),x(lr,"or"),x(ar,"ar"),x(sr,"ir"),x(ur,"ur"),pe(rr,"stopWatchingForValueChange"),pe(or,"handlePropertyChange"),pe(ir,"handleEventsForInputEventPolyfill"),pe(lr,"getTargetInstForInputEventPolyfill"),pe(ar,"getTargetInstForClickEvent"),pe(sr,"getTargetInstForInputOrChangeEvent"),pe(ur,"is");var cr="function"==typeof Object.is?Object.is:ur;function dr(e,t){if(cr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!ne.call(t,o)||!cr(e[o],t[o]))return!1}return!0}function hr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pr(e,t){var n,r=hr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=hr(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function gr(e){for(var t=St((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=St((e=t.contentWindow).document)}return t}function mr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}x(dr,"cr"),x(hr,"dr"),x(pr,"fr"),x(fr,"pr"),x(gr,"mr"),x(mr,"hr"),pe(dr,"shallowEqual"),pe(hr,"getLeafNode"),pe(pr,"getNodeForCharacterOffset"),pe(fr,"containsNode"),pe(gr,"getActiveElementDeep"),pe(mr,"hasSelectionCapabilities");var yr=Kt&&"documentMode"in document&&11>=document.documentMode,br=null,vr=null,wr=null,_r=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;_r||null==br||br!==St(r)||(r="selectionStart"in(r=br)&&mr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},wr&&dr(wr,r)||(wr=r,0<(r=Ed(vr,"onSelect")).length&&(t=new hn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=br)))}function Cr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}x(xr,"Sr"),x(Cr,"kr"),pe(xr,"constructSelectEvent"),pe(Cr,"makePrefixMap");var Sr={animationend:Cr("Animation","AnimationEnd"),animationiteration:Cr("Animation","AnimationIteration"),animationstart:Cr("Animation","AnimationStart"),transitionrun:Cr("Transition","TransitionRun"),transitionstart:Cr("Transition","TransitionStart"),transitioncancel:Cr("Transition","TransitionCancel"),transitionend:Cr("Transition","TransitionEnd")},kr={},Tr={};function Pr(e){if(kr[e])return kr[e];if(!Sr[e])return e;var t,n=Sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Tr)return kr[e]=n[t];return e}x(Pr,"Rr"),Kt&&(Tr=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition),pe(Pr,"getVendorPrefixedEventName");var Er=Pr("animationend"),zr=Pr("animationiteration"),Ir=Pr("animationstart"),Rr=Pr("transitionrun"),Ar=Pr("transitionstart"),Dr=Pr("transitioncancel"),Fr=Pr("transitionend"),Lr=/* @__PURE__ */new Map,Or="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Mr(e,t){Lr.set(e,t),ct(t,[e])}x(Mr,"Or"),Or.push("scrollEnd"),pe(Mr,"registerSimpleEvent");var Br="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},Hr=[],Nr=0,Wr=0;function Ur(){for(var e=Nr,t=Wr=Nr=0;t<e;){var n=Hr[t];Hr[t++]=null;var r=Hr[t];Hr[t++]=null;var o=Hr[t];Hr[t++]=null;var i=Hr[t];if(Hr[t++]=null,null!==r&&null!==o){var l=r.pending;null===l?o.next=o:(o.next=l.next,l.next=o),r.pending=o}0!==i&&Gr(n,o,i)}}function jr(e,t,n,r){Hr[Nr++]=e,Hr[Nr++]=t,Hr[Nr++]=n,Hr[Nr++]=r,Wr|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function $r(e,t,n,r){return jr(e,t,n,r),qr(e)}function Vr(e,t){return jr(e,null,null,t),qr(e)}function Gr(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var o=!1,i=e.return;null!==i;)i.childLanes|=n,null!==(r=i.alternate)&&(r.childLanes|=n),22===i.tag&&(null===(e=i.stateNode)||1&e._visibility||(o=!0)),e=i,i=i.return;return 3===e.tag?(i=e.stateNode,o&&null!==t&&(o=31-_e(n),null===(r=(e=i.hiddenUpdates)[o])?e[o]=[t]:r.push(t),t.lane=536870912|n),i):null}function qr(e){if(50<dc)throw dc=0,hc=null,Error(r(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}x(Ur,"jr"),x(jr,"Wr"),x($r,"$r"),x(Vr,"Vr"),x(Gr,"Br"),x(qr,"qr"),pe(Ur,"finishQueueingConcurrentUpdates"),pe(jr,"enqueueUpdate$1"),pe($r,"enqueueConcurrentHookUpdate"),pe(Vr,"enqueueConcurrentRenderForLane"),pe(Gr,"markUpdateLaneFromFiberToRoot"),pe(qr,"getRootForUpdatedFiber");var Yr={};function Xr(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.refCleanup=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 Kr(e,t,n,r){return new Xr(e,t,n,r)}function Qr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Jr(e,t){var n=e.alternate;return null===n?((n=Kr(e.tag,t,e.key,e.mode)).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=65011712&e.flags,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=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Zr(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function eo(e,t,n,o,i,l){var a=0;if(o=e,"function"==typeof e)Qr(e)&&(a=1);else if("string"==typeof e)a=Vh(e,n,j.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case T:return(e=Kr(31,n,t,i)).elementType=T,e.lanes=l,e;case g:return to(n.children,i,l,t);case m:a=8,i|=24;break;case y:return(e=Kr(12,n,t,2|i)).elementType=y,e.lanes=l,e;case _:return(e=Kr(13,n,t,i)).elementType=_,e.lanes=l,e;case C:return(e=Kr(19,n,t,i)).elementType=C,e.lanes=l,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case v:a=10;break e;case b:a=9;break e;case w:a=11;break e;case S:a=14;break e;case k:a=16,o=null;break e}a=29,n=Error(r(130,null===e?"null":typeof e,"")),o=null}return(t=Kr(a,n,t,i)).elementType=e,t.type=o,t.lanes=l,t}function to(e,t,n,r){return(e=Kr(7,e,r,t)).lanes=n,e}function no(e,t,n){return(e=Kr(6,e,null,t)).lanes=n,e}function ro(e){var t=Kr(18,null,null,0);return t.stateNode=e,t}function oo(e,t,n){return(t=Kr(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}x(Xr,"Qr"),x(Kr,"Gr"),x(Qr,"Yr"),x(Jr,"Xr"),x(Zr,"Jr"),x(eo,"Zr"),x(to,"el"),x(no,"tl"),x(ro,"nl"),x(oo,"rl"),pe(Xr,"FiberNode"),pe(Kr,"createFiberImplClass"),pe(Qr,"shouldConstruct"),pe(Jr,"createWorkInProgress"),pe(Zr,"resetWorkInProgress"),pe(eo,"createFiberFromTypeAndProps"),pe(to,"createFiberFromFragment"),pe(no,"createFiberFromText"),pe(ro,"createFiberFromDehydratedFragment"),pe(oo,"createFiberFromPortal");var io=/* @__PURE__ */new WeakMap;function lo(e,t){if("object"==typeof e&&null!==e){var n=io.get(e);return void 0!==n?n:(t={value:e,source:t,stack:te(t)},io.set(e,t),t)}return{value:e,source:t,stack:te(t)}}x(lo,"ol"),pe(lo,"createCapturedValueAtFiber");var ao=[],so=0,uo=null,co=0,ho=[],po=0,fo=null,go=1,mo="";function yo(e,t){ao[so++]=co,ao[so++]=uo,uo=e,co=t}function bo(e,t,n){ho[po++]=go,ho[po++]=mo,ho[po++]=fo,fo=e;var r=go;e=mo;var o=32-_e(r)-1;r&=~(1<<o),n+=1;var i=32-_e(t)+o;if(30<i){var l=o-o%5;i=(r&(1<<l)-1).toString(32),r>>=l,o-=l,go=1<<32-_e(t)+o|n<<o|r,mo=i+e}else go=1<<i|n<<o|r,mo=e}function vo(e){null!==e.return&&(yo(e,1),bo(e,1,0))}function wo(e){for(;e===uo;)uo=ao[--so],ao[so]=null,co=ao[--so],ao[so]=null;for(;e===fo;)fo=ho[--po],ho[po]=null,mo=ho[--po],ho[po]=null,go=ho[--po],ho[po]=null}function _o(e,t){ho[po++]=go,ho[po++]=mo,ho[po++]=fo,go=t.id,mo=t.overflow,fo=e}x(yo,"hl"),x(bo,"gl"),x(vo,"yl"),x(wo,"vl"),x(_o,"bl"),pe(yo,"pushTreeFork"),pe(bo,"pushTreeId"),pe(vo,"pushMaterializedTreeId"),pe(wo,"popTreeContext"),pe(_o,"restoreSuspendedTreeContext");var xo=null,Co=null,So=!1,ko=null,To=!1,Po=Error(r(519));function Eo(e){throw Fo(lo(Error(r(418,1<arguments.length&&void 0!==arguments[1]&&arguments[1]?"text":"HTML","")),e)),Po}function zo(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Ye]=e,t[Xe]=r,n){case"dialog":_d("cancel",t),_d("close",t);break;case"iframe":case"object":case"embed":_d("load",t);break;case"video":case"audio":for(n=0;n<bd.length;n++)_d(bd[n],t);break;case"source":_d("error",t);break;case"img":case"image":case"link":_d("error",t),_d("load",t);break;case"details":_d("toggle",t);break;case"input":_d("invalid",t),Et(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":_d("invalid",t);break;case"textarea":_d("invalid",t),At(t,r.value,r.defaultValue,r.children)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||Fd(t.textContent,n)?(null!=r.popover&&(_d("beforetoggle",t),_d("toggle",t)),null!=r.onScroll&&_d("scroll",t),null!=r.onScrollEnd&&_d("scrollend",t),null!=r.onClick&&(t.onclick=Wt),t=!0):t=!1,t||Eo(e,!0)}function Io(e){for(xo=e.return;xo;)switch(xo.tag){case 5:case 31:case 13:return void(To=!1);case 27:case 3:return void(To=!0);default:xo=xo.return}}function Ro(e){if(e!==xo)return!1;if(!So)return Io(e),So=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||Gd(e.type,e.memoizedProps)),t=!t),t&&Co&&Eo(e),Io(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));Co=hh(e)}else if(31===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));Co=hh(e)}else 27===n?(n=Co,eh(e.type)?(e=dh,dh=null,Co=e):Co=n):Co=xo?ch(e.stateNode.nextSibling):null;return!0}function Ao(){Co=xo=null,So=!1}function Do(){var e=ko;return null!==e&&(null===Qu?Qu=e:Qu.push.apply(Qu,e),ko=null),e}function Fo(e){null===ko?ko=[e]:ko.push(e)}x(Eo,"Rl"),x(zo,"Il"),x(Io,"Pl"),x(Ro,"Tl"),x(Ao,"zl"),x(Do,"_l"),x(Fo,"Nl"),pe(Eo,"throwOnHydrationMismatch"),pe(zo,"prepareToHydrateHostInstance"),pe(Io,"popToNextHostParent"),pe(Ro,"popHydrationState"),pe(Ao,"resetHydrationState"),pe(Do,"upgradeHydrationErrorsToRecoverable"),pe(Fo,"queueHydrationError");var Lo=B(null),Oo=null,Mo=null;function Bo(e,t,n){N(Lo,t._currentValue),t._currentValue=n}function Ho(e){e._currentValue=Lo.current,H(Lo)}function No(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Wo(e,t,n,o){var i=e.child;for(null!==i&&(i.return=e);null!==i;){var l=i.dependencies;if(null!==l){var a=i.child;l=l.firstContext;e:for(;null!==l;){var s=l;l=i;for(var u=0;u<t.length;u++)if(s.context===t[u]){l.lanes|=n,null!==(s=l.alternate)&&(s.lanes|=n),No(l.return,n,e),o||(a=null);break e}l=s.next}}else if(18===i.tag){if(null===(a=i.return))throw Error(r(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),No(a,n,e),a=null}else a=i.child;if(null!==a)a.return=i;else for(a=i;null!==a;){if(a===e){a=null;break}if(null!==(i=a.sibling)){i.return=a.return,a=i;break}a=a.return}i=a}}function Uo(e,t,n,o){e=null;for(var i=t,l=!1;null!==i;){if(!l)if(524288&i.flags)l=!0;else if(262144&i.flags)break;if(10===i.tag){var a=i.alternate;if(null===a)throw Error(r(387));if(null!==(a=a.memoizedProps)){var s=i.type;cr(i.pendingProps.value,a.value)||(null!==e?e.push(s):e=[s])}}else if(i===G.current){if(null===(a=i.alternate))throw Error(r(387));a.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(null!==e?e.push(ep):e=[ep])}i=i.return}null!==e&&Wo(t,e,n,o),t.flags|=262144}function jo(e){for(e=e.firstContext;null!==e;){if(!cr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function $o(e){Oo=e,Mo=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Vo(e){return qo(Oo,e)}function Go(e,t){return null===Oo&&$o(e),qo(e,t)}function qo(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===Mo){if(null===e)throw Error(r(308));Mo=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Mo=Mo.next=t;return n}x(Bo,"Ol"),x(Ho,"Al"),x(No,"Ml"),x(Wo,"Hl"),x(Uo,"Ul"),x(jo,"jl"),x($o,"Wl"),x(Vo,"$l"),x(Go,"Vl"),x(qo,"Bl"),pe(Bo,"pushProvider"),pe(Ho,"popProvider"),pe(No,"scheduleContextWorkOnParentPath"),pe(Wo,"propagateContextChanges"),pe(Uo,"propagateParentContextChanges"),pe(jo,"checkIfContextChanged"),pe($o,"prepareToReadContext"),pe(Vo,"readContext"),pe(Go,"readContextDuringReconciliation"),pe(qo,"readContextForConsumer");var Yo="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:/* @__PURE__ */pe(function(t,n){e.push(n)},"addEventListener")};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Xo=e.unstable_scheduleCallback,Ko=e.unstable_NormalPriority,Qo={$$typeof:v,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Jo(){return{controller:new Yo,data:/* @__PURE__ */new Map,refCount:0}}function Zo(e){e.refCount--,0===e.refCount&&Xo(Ko,function(){e.controller.abort()})}x(Jo,"Yl"),x(Zo,"Xl"),pe(Jo,"createCache"),pe(Zo,"releaseCache");var ei=null,ti=0,ni=0,ri=null;function oi(e,t){if(null===ei){var n=ei=[];ti=0,ni=hd(),ri={status:"pending",value:void 0,then:/* @__PURE__ */pe(function(e){n.push(e)},"then")}}return ti++,t.then(ii,ii),t}function ii(){if(0===--ti&&null!==ei){null!==ri&&(ri.status="fulfilled");var e=ei;ei=null,ni=0,ri=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function li(e,t){var n=[],r={status:"pending",value:null,reason:null,then:/* @__PURE__ */pe(function(e){n.push(e)},"then")};return e.then(function(){r.status="fulfilled",r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status="rejected",r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}x(oi,"no"),x(ii,"ro"),x(li,"lo"),pe(oi,"entangleAsyncAction"),pe(ii,"pingEngtangledActionScope"),pe(li,"chainThenableValue");var ai=D.S;D.S=function(e,t){ec=ae(),"object"==typeof t&&null!==t&&"function"==typeof t.then&&oi(0,t),null!==ai&&ai(e,t)};var si=B(null);function ui(){var e=si.current;return null!==e?e:Lu.pooledCache}function ci(e,t){N(si,null===t?si.current:t.pool)}function di(){var e=ui();return null===e?null:{parent:Qo._currentValue,pool:e}}x(ui,"io"),x(ci,"uo"),x(di,"so"),pe(ui,"peekCacheFromPool"),pe(ci,"pushTransition"),pe(di,"getSuspendedCache");var hi=Error(r(460)),pi=Error(r(474)),fi=Error(r(542)),gi={then:/* @__PURE__ */pe(function(){},"then")};function mi(e){return"fulfilled"===(e=e.status)||"rejected"===e}function yi(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(Wt,Wt),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw _i(e=t.reason),e;default:if("string"==typeof t.status)t.then(Wt,Wt);else{if(null!==(e=Lu)&&100<e.shellSuspendCounter)throw Error(r(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw _i(e=t.reason),e}throw vi=t,hi}}function bi(e){try{return(0,e._init)(e._payload)}catch(t){if(null!==t&&"object"==typeof t&&"function"==typeof t.then)throw vi=t,hi;throw t}}x(mi,"ho"),x(yi,"go"),x(bi,"yo"),pe(mi,"isThenableResolved"),pe(yi,"trackUsedThenable"),pe(bi,"resolveLazy");var vi=null;function wi(){if(null===vi)throw Error(r(459));var e=vi;return vi=null,e}function _i(e){if(e===hi||e===fi)throw Error(r(483))}x(wi,"bo"),x(_i,"wo"),pe(wi,"getSuspendedThenable"),pe(_i,"checkIfUseWrappedInAsyncCatch");var xi=null,Ci=0;function Si(e){var t=Ci;return Ci+=1,null===xi&&(xi=[]),yi(xi,e,t)}function ki(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function Ti(e,t){if(t.$$typeof===h)throw Error(r(525));throw e=Object.prototype.toString.call(t),Error(r(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Pi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(e){for(var t=/* @__PURE__ */new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function i(e,t){return(e=Jr(e,t)).index=0,e.sibling=null,e}function l(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=no(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===g?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===k&&bi(o)===t.type)?(ki(t=i(t,n.props),n),t.return=e,t):(ki(t=eo(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=oo(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=to(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function h(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=no(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case p:return ki(n=eo(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case f:return(t=oo(t,e.mode,n)).return=e,t;case k:return h(e,t=bi(t),n)}if(A(t)||z(t))return(t=to(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return h(e,Si(t),n);if(t.$$typeof===v)return h(e,Go(e,t),n);Ti(e,t)}return null}function m(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case p:return n.key===o?u(e,t,n,r):null;case f:return n.key===o?c(e,t,n,r):null;case k:return m(e,t,n=bi(n),r)}if(A(n)||z(n))return null!==o?null:d(e,t,n,r,null);if("function"==typeof n.then)return m(e,t,Si(n),r);if(n.$$typeof===v)return m(e,t,Go(e,n),r);Ti(e,n)}return null}function y(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case p:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case f:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case k:return y(e,t,n,r=bi(r),o)}if(A(r)||z(r))return d(t,e=e.get(n)||null,r,o,null);if("function"==typeof r.then)return y(e,t,n,Si(r),o);if(r.$$typeof===v)return y(e,t,n,Go(t,r),o);Ti(t,r)}return null}function b(r,i,a,s){for(var u=null,c=null,d=i,p=i=0,f=null;null!==d&&p<a.length;p++){d.index>p?(f=d,d=null):f=d.sibling;var g=m(r,d,a[p],s);if(null===g){null===d&&(d=f);break}e&&d&&null===g.alternate&&t(r,d),i=l(g,i,p),null===c?u=g:c.sibling=g,c=g,d=f}if(p===a.length)return n(r,d),So&&yo(r,p),u;if(null===d){for(;p<a.length;p++)null!==(d=h(r,a[p],s))&&(i=l(d,i,p),null===c?u=d:c.sibling=d,c=d);return So&&yo(r,p),u}for(d=o(d);p<a.length;p++)null!==(f=y(d,r,p,a[p],s))&&(e&&null!==f.alternate&&d.delete(null===f.key?p:f.key),i=l(f,i,p),null===c?u=f:c.sibling=f,c=f);return e&&d.forEach(function(e){return t(r,e)}),So&&yo(r,p),u}function w(i,a,s,u){if(null==s)throw Error(r(151));for(var c=null,d=null,p=a,f=a=0,g=null,b=s.next();null!==p&&!b.done;f++,b=s.next()){p.index>f?(g=p,p=null):g=p.sibling;var v=m(i,p,b.value,u);if(null===v){null===p&&(p=g);break}e&&p&&null===v.alternate&&t(i,p),a=l(v,a,f),null===d?c=v:d.sibling=v,d=v,p=g}if(b.done)return n(i,p),So&&yo(i,f),c;if(null===p){for(;!b.done;f++,b=s.next())null!==(b=h(i,b.value,u))&&(a=l(b,a,f),null===d?c=b:d.sibling=b,d=b);return So&&yo(i,f),c}for(p=o(p);!b.done;f++,b=s.next())null!==(b=y(p,i,f,b.value,u))&&(e&&null!==b.alternate&&p.delete(null===b.key?f:b.key),a=l(b,a,f),null===d?c=b:d.sibling=b,d=b);return e&&p.forEach(function(e){return t(i,e)}),So&&yo(i,f),c}function _(e,o,l,s){if("object"==typeof l&&null!==l&&l.type===g&&null===l.key&&(l=l.props.children),"object"==typeof l&&null!==l){switch(l.$$typeof){case p:e:{for(var u=l.key;null!==o;){if(o.key===u){if((u=l.type)===g){if(7===o.tag){n(e,o.sibling),(s=i(o,l.props.children)).return=e,e=s;break e}}else if(o.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===k&&bi(u)===o.type){n(e,o.sibling),ki(s=i(o,l.props),l),s.return=e,e=s;break e}n(e,o);break}t(e,o),o=o.sibling}l.type===g?((s=to(l.props.children,e.mode,s,l.key)).return=e,e=s):(ki(s=eo(l.type,l.key,l.props,null,e.mode,s),l),s.return=e,e=s)}return a(e);case f:e:{for(u=l.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===l.containerInfo&&o.stateNode.implementation===l.implementation){n(e,o.sibling),(s=i(o,l.children||[])).return=e,e=s;break e}n(e,o);break}t(e,o),o=o.sibling}(s=oo(l,e.mode,s)).return=e,e=s}return a(e);case k:return _(e,o,l=bi(l),s)}if(A(l))return b(e,o,l,s);if(z(l)){if("function"!=typeof(u=z(l)))throw Error(r(150));return w(e,o,l=u.call(l),s)}if("function"==typeof l.then)return _(e,o,Si(l),s);if(l.$$typeof===v)return _(e,o,Go(e,l),s);Ti(e,l)}return"string"==typeof l&&""!==l||"number"==typeof l||"bigint"==typeof l?(l=""+l,null!==o&&6===o.tag?(n(e,o.sibling),(s=i(o,l)).return=e,e=s):(n(e,o),(s=no(l,e.mode,s)).return=e,e=s),a(e)):n(e,o)}return x(t,"n"),x(n,"r"),x(o,"o"),x(i,"a"),x(l,"i"),x(a,"u"),x(s,"s"),x(u,"c"),x(c,"d"),x(d,"f"),x(h,"p"),x(m,"h"),x(y,"v"),x(b,"b"),x(w,"w"),x(_,"S"),pe(t,"deleteChild"),pe(n,"deleteRemainingChildren"),pe(o,"mapRemainingChildren"),pe(i,"useFiber"),pe(l,"placeChild"),pe(a,"placeSingleChild"),pe(s,"updateTextNode"),pe(u,"updateElement"),pe(c,"updatePortal"),pe(d,"updateFragment"),pe(h,"createChild"),pe(m,"updateSlot"),pe(y,"updateFromMap"),pe(b,"reconcileChildrenArray"),pe(w,"reconcileChildrenIterator"),pe(_,"reconcileChildFibersImpl"),function(e,t,n,r){try{Ci=0;var o=_(e,t,n,r);return xi=null,o}catch(l){if(l===hi||l===fi)throw l;var i=Kr(29,l,null,e.mode);return i.lanes=r,i.return=e,i}}}x(Si,"Co"),x(ki,"xo"),x(Ti,"Eo"),x(Pi,"Ro"),pe(Si,"unwrapThenable"),pe(ki,"coerceRef"),pe(Ti,"throwOnInvalidObjectTypeImpl"),pe(Pi,"createChildReconciler");var Ei=Pi(!0),zi=Pi(!1),Ii=!1;function Ri(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ai(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Di(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Fi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Fu){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=qr(e),Gr(e,null,n),t}return jr(e,r,t,n),qr(e)}function Li(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,We(e,n)}}function Oi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var l={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===i?o=i=l:i=i.next=l,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}x(Ri,"zo"),x(Ai,"_o"),x(Di,"No"),x(Fi,"Fo"),x(Li,"Do"),x(Oi,"Lo"),pe(Ri,"initializeUpdateQueue"),pe(Ai,"cloneUpdateQueue"),pe(Di,"createUpdate"),pe(Fi,"enqueueUpdate"),pe(Li,"entangleTransitions"),pe(Oi,"enqueueCapturedUpdate");var Mi=!1;function Bi(){if(Mi&&null!==ri)throw ri}function Hi(e,t,n,r){Mi=!1;var o=e.updateQueue;Ii=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,a=o.shared.pending;if(null!==a){o.shared.pending=null;var s=a,u=s.next;s.next=null,null===l?i=u:l.next=u,l=s;var c=e.alternate;null!==c&&(a=(c=c.updateQueue).lastBaseUpdate)!==l&&(null===a?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=s)}if(null!==i){var h=o.baseState;for(l=0,c=u=s=null,a=i;;){var p=-536870913&a.lane,f=p!==a.lane;if(f?(Mu&p)===p:(r&p)===p){0!==p&&p===ni&&(Mi=!0),null!==c&&(c=c.next={lane:0,tag:a.tag,payload:a.payload,callback:null,next:null});e:{var g=e,m=a;p=t;var y=n;switch(m.tag){case 1:if("function"==typeof(g=m.payload)){h=g.call(y,h,p);break e}h=g;break e;case 3:g.flags=-65537&g.flags|128;case 0:if(null==(p="function"==typeof(g=m.payload)?g.call(y,h,p):g))break e;h=d({},h,p);break e;case 2:Ii=!0}}null!==(p=a.callback)&&(e.flags|=64,f&&(e.flags|=8192),null===(f=o.callbacks)?o.callbacks=[p]:f.push(p))}else f={lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===c?(u=c=f,s=h):c=c.next=f,l|=p;if(null===(a=a.next)){if(null===(a=o.shared.pending))break;a=(f=a).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}null===c&&(s=h),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null===i&&(o.shared.lanes=0),Vu|=l,e.lanes=l,e.memoizedState=h}}function Ni(e,t){if("function"!=typeof e)throw Error(r(191,e));e.call(t)}function Wi(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)Ni(n[e],t)}x(Bi,"Ao"),x(Hi,"Mo"),x(Ni,"Ho"),x(Wi,"Uo"),pe(Bi,"suspendIfUpdateReadFromEntangledAsyncAction"),pe(Hi,"processUpdateQueue"),pe(Ni,"callCallback"),pe(Wi,"commitCallbacks");var Ui=B(null),ji=B(0);function $i(e,t){N(ji,e=ju),N(Ui,t),ju=e|t.baseLanes}function Vi(){N(ji,ju),N(Ui,Ui.current)}function Gi(){ju=ji.current,H(Ui),H(ji)}x($i,"$o"),x(Vi,"Vo"),x(Gi,"Bo"),pe($i,"pushHiddenContext"),pe(Vi,"reuseHiddenContextOnStack"),pe(Gi,"popHiddenContext");var qi=B(null),Yi=null;function Xi(e){var t=e.alternate;N(el,1&el.current),N(qi,e),null===Yi&&(null===t||null!==Ui.current||null!==t.memoizedState)&&(Yi=e)}function Ki(e){N(el,el.current),N(qi,e),null===Yi&&(Yi=e)}function Qi(e){22===e.tag?(N(el,el.current),N(qi,e),null===Yi&&(Yi=e)):Ji()}function Ji(){N(el,el.current),N(qi,qi.current)}function Zi(e){H(qi),Yi===e&&(Yi=null),H(el)}x(Xi,"Qo"),x(Ki,"Go"),x(Qi,"Yo"),x(Ji,"Xo"),x(Zi,"Jo"),pe(Xi,"pushPrimaryTreeSuspenseHandler"),pe(Ki,"pushDehydratedActivitySuspenseHandler"),pe(Qi,"pushOffscreenSuspenseHandler"),pe(Ji,"reuseSuspenseHandlerOnStack"),pe(Zi,"popSuspenseHandler");var el=B(0);function tl(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||ah(n)||sh(n)))return t}else if(19!==t.tag||"forwards"!==t.memoizedProps.revealOrder&&"backwards"!==t.memoizedProps.revealOrder&&"unstable_legacy-backwards"!==t.memoizedProps.revealOrder&&"together"!==t.memoizedProps.revealOrder){if(null!==t.child){t.child.return=t,t=t.child;continue}}else if(128&t.flags)return t;if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}x(tl,"ea"),pe(tl,"findFirstSuspended");var nl=0,rl=null,ol=null,il=null,ll=!1,al=!1,sl=!1,ul=0,cl=0,dl=null,hl=0;function pl(){throw Error(r(321))}function fl(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!cr(e[n],t[n]))return!1;return!0}function gl(e,t,n,r,o,i){return nl=i,rl=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=null===e||null===e.memoizedState?Aa:Da,sl=!1,i=n(r,o),sl=!1,al&&(i=yl(t,n,r,o)),ml(e),i}function ml(e){D.H=Ra;var t=null!==ol&&null!==ol.next;if(nl=0,il=ol=rl=null,ll=!1,cl=0,dl=null,t)throw Error(r(300));null===e||Ka||null!==(e=e.dependencies)&&jo(e)&&(Ka=!0)}function yl(e,t,n,o){rl=e;var i=0;do{if(al&&(dl=null),cl=0,al=!1,25<=i)throw Error(r(301));if(i+=1,il=ol=null,null!=e.updateQueue){var l=e.updateQueue;l.lastEffect=null,l.events=null,l.stores=null,null!=l.memoCache&&(l.memoCache.index=0)}D.H=Fa,l=t(n,o)}while(al);return l}function bl(){var e=D.H,t=e.useState()[0];return t="function"==typeof t.then?kl(t):t,e=e.useState()[0],(null!==ol?ol.memoizedState:null)!==e&&(rl.flags|=1024),t}function vl(){var e=0!==ul;return ul=0,e}function wl(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function _l(e){if(ll){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}ll=!1}nl=0,il=ol=rl=null,al=!1,cl=ul=0,dl=null}function xl(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===il?rl.memoizedState=il=e:il=il.next=e,il}function Cl(){if(null===ol){var e=rl.alternate;e=null!==e?e.memoizedState:null}else e=ol.next;var t=null===il?rl.memoizedState:il.next;if(null!==t)il=t,ol=e;else{if(null===e){if(null===rl.alternate)throw Error(r(467));throw Error(r(310))}e={memoizedState:(ol=e).memoizedState,baseState:ol.baseState,baseQueue:ol.baseQueue,queue:ol.queue,next:null},null===il?rl.memoizedState=il=e:il=il.next=e}return il}function Sl(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function kl(e){var t=cl;return cl+=1,null===dl&&(dl=[]),e=yi(dl,e,t),t=rl,null===(null===il?t.memoizedState:il.next)&&(t=t.alternate,D.H=null===t||null===t.memoizedState?Aa:Da),e}function Tl(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return kl(e);if(e.$$typeof===v)return Vo(e)}throw Error(r(438,String(e)))}function Pl(e){var t=null,n=rl.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=rl.alternate;null!==r&&null!==(r=r.updateQueue)&&null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},rl.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=P;return t.index++,n}function El(e,t){return"function"==typeof t?t(e):t}function zl(e){return Il(Cl(),ol,e)}function Il(e,t,n){var o=e.queue;if(null===o)throw Error(r(311));o.lastRenderedReducer=n;var i=e.baseQueue,l=o.pending;if(null!==l){if(null!==i){var a=i.next;i.next=l.next,l.next=a}t.baseQueue=i=l,o.pending=null}if(l=e.baseState,null===i)e.memoizedState=l;else{var s=a=null,u=null,c=t=i.next,d=!1;do{var h=-536870913&c.lane;if(h!==c.lane?(Mu&h)===h:(nl&h)===h){var p=c.revertLane;if(0===p)null!==u&&(u=u.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),h===ni&&(d=!0);else{if((nl&p)===p){c=c.next,p===ni&&(d=!0);continue}h={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(s=u=h,a=l):u=u.next=h,rl.lanes|=p,Vu|=p}h=c.action,sl&&n(l,h),l=c.hasEagerState?c.eagerState:n(l,h)}else p={lane:h,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(s=u=p,a=l):u=u.next=p,rl.lanes|=h,Vu|=h;c=c.next}while(null!==c&&c!==t);if(null===u?a=l:u.next=s,!cr(l,e.memoizedState)&&(Ka=!0,d&&null!==(n=ri)))throw n;e.memoizedState=l,e.baseState=a,e.baseQueue=u,o.lastRenderedState=l}return null===i&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Rl(e){var t=Cl(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var o=n.dispatch,i=n.pending,l=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{l=e(l,a.action),a=a.next}while(a!==i);cr(l,t.memoizedState)||(Ka=!0),t.memoizedState=l,null===t.baseQueue&&(t.baseState=l),n.lastRenderedState=l}return[l,o]}function Al(e,t,n){var o=rl,i=Cl(),l=So;if(l){if(void 0===n)throw Error(r(407));n=n()}else n=t();var a=!cr((ol||i).memoizedState,n);if(a&&(i.memoizedState=n,Ka=!0),i=i.queue,ra(Ll.bind(null,o,i,e),[e]),i.getSnapshot!==t||a||null!==il&&1&il.memoizedState.tag){if(o.flags|=2048,Jl(9,{destroy:void 0},Fl.bind(null,o,i,n,t),null),null===Lu)throw Error(r(349));l||127&nl||Dl(o,t,n)}return n}function Dl(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=rl.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},rl.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Fl(e,t,n,r){t.value=n,t.getSnapshot=r,Ol(t)&&Ml(e)}function Ll(e,t,n){return n(function(){Ol(t)&&Ml(e)})}function Ol(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!cr(e,n)}catch(r){return!0}}function Ml(e){var t=Vr(e,2);null!==t&&gc(t,e,2)}function Bl(e){var t=xl();if("function"==typeof e){var n=e;if(e=n(),sl){ve(!0);try{n()}finally{ve(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:El,lastRenderedState:e},t}function Hl(e,t,n,r){return e.baseState=n,Il(e,ol,"function"==typeof r?r:El)}function Nl(e,t,n,o,i){if(Ea(e))throw Error(r(485));if(null!==(e=t.action)){var l={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:/* @__PURE__ */pe(function(e){l.listeners.push(e)},"then")};null!==D.T?n(!0):l.isTransition=!1,o(l),null===(n=t.pending)?(l.next=t.pending=l,Wl(t,l)):(l.next=n.next,t.pending=n.next=l)}}function Wl(e,t){var n=t.action,r=t.payload,o=e.state;if(t.isTransition){var i=D.T,l={};D.T=l;try{var a=n(o,r),s=D.S;null!==s&&s(l,a),Ul(e,t,a)}catch(u){$l(e,t,u)}finally{null!==i&&null!==l.types&&(i.types=l.types),D.T=i}}else try{Ul(e,t,i=n(o,r))}catch(c){$l(e,t,c)}}function Ul(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then(function(n){jl(e,t,n)},function(n){return $l(e,t,n)}):jl(e,t,n)}function jl(e,t,n){t.status="fulfilled",t.value=n,Vl(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,Wl(e,n)))}function $l(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,Vl(t),t=t.next}while(t!==r)}e.action=null}function Vl(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Gl(e,t){return t}function ql(e,t){if(So){var n=Lu.formState;if(null!==n){e:{var r=rl;if(So){if(Co){t:{for(var o=Co,i=To;8!==o.nodeType;){if(!i){o=null;break t}if(null===(o=ch(o.nextSibling))){o=null;break t}}o="F!"===(i=o.data)||"F"===i?o:null}if(o){Co=ch(o.nextSibling),r="F!"===o.data;break e}}Eo(r)}r=!1}r&&(t=n[0])}}return(n=xl()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gl,lastRenderedState:t},n.queue=r,n=ka.bind(null,rl,r),r.dispatch=n,r=Bl(!1),i=Pa.bind(null,rl,!1,r.queue),o={state:t,dispatch:null,action:e,pending:null},(r=xl()).queue=o,n=Nl.bind(null,rl,o,i,n),o.dispatch=n,r.memoizedState=e,[t,n,!1]}function Yl(e){return Xl(Cl(),ol,e)}function Xl(e,t,n){if(t=Il(e,t,Gl)[0],e=zl(El)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=kl(t)}catch(l){if(l===hi)throw fi;throw l}else r=t;var o=(t=Cl()).queue,i=o.dispatch;return n!==t.memoizedState&&(rl.flags|=2048,Jl(9,{destroy:void 0},Kl.bind(null,o,n),null)),[r,i,e]}function Kl(e,t){e.action=t}function Ql(e){var t=Cl(),n=ol;if(null!==n)return Xl(t,n,e);Cl(),t=t.memoizedState;var r=(n=Cl()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Jl(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=rl.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},rl.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Zl(){return Cl().memoizedState}function ea(e,t,n,r){var o=xl();rl.flags|=e,o.memoizedState=Jl(1|t,{destroy:void 0},n,void 0===r?null:r)}function ta(e,t,n,r){var o=Cl();r=void 0===r?null:r;var i=o.memoizedState.inst;null!==ol&&null!==r&&fl(r,ol.memoizedState.deps)?o.memoizedState=Jl(t,i,n,r):(rl.flags|=e,o.memoizedState=Jl(1|t,i,n,r))}function na(e,t){ea(8390656,8,e,t)}function ra(e,t){ta(2048,8,e,t)}function oa(e){rl.flags|=4;var t=rl.updateQueue;if(null===t)t={lastEffect:null,events:null,stores:null,memoCache:null},rl.updateQueue=t,t.events=[e];else{var n=t.events;null===n?t.events=[e]:n.push(e)}}function ia(e){var t=Cl().memoizedState;return oa({ref:t,nextImpl:e}),function(){if(2&Fu)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function la(e,t){return ta(4,2,e,t)}function aa(e,t){return ta(4,4,e,t)}function sa(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return e=e(),t.current=e,function(){t.current=null}}function ua(e,t,n){n=null!=n?n.concat([e]):null,ta(4,4,sa.bind(null,t,e),n)}function ca(){}function da(e,t){var n=Cl();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&fl(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ha(e,t){var n=Cl();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&fl(t,r[1]))return r[0];if(r=e(),sl){ve(!0);try{e()}finally{ve(!1)}}return n.memoizedState=[r,t],r}function pa(e,t,n){return void 0===n||1073741824&nl&&!(261930&Mu)?e.memoizedState=t:(e.memoizedState=n,e=fc(),rl.lanes|=e,Vu|=e,n)}function fa(e,t,n,r){return cr(n,t)?n:null!==Ui.current?(e=pa(e,n,r),cr(e,t)||(Ka=!0),e):42&nl&&(!(1073741824&nl)||261930&Mu)?(e=fc(),rl.lanes|=e,Vu|=e,t):(Ka=!0,e.memoizedState=n)}function ga(e,t,n,r,o){var i=F.p;F.p=0!==i&&8>i?i:8;var l=D.T,a={};D.T=a,Pa(e,!1,t,n);try{var s=o(),u=D.S;null!==u&&u(a,s),null!==s&&"object"==typeof s&&"function"==typeof s.then?Ta(e,t,li(s,r),pc()):Ta(e,t,r,pc())}catch(c){Ta(e,t,{then:/* @__PURE__ */pe(function(){},"then"),status:"rejected",reason:c},pc())}finally{F.p=i,null!==l&&null!==a.types&&(l.types=a.types),D.T=l}}function ma(){}function ya(e,t,n,o){if(5!==e.tag)throw Error(r(476));var i=ba(e).queue;ga(e,i,t,L,null===n?ma:function(){return va(e),n(o)})}function ba(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:L,baseState:L,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:El,lastRenderedState:L},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:El,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function va(e){var t=ba(e);null===t.next&&(t=e.alternate.memoizedState),Ta(e,t.next.queue,{},pc())}function wa(){return Vo(ep)}function _a(){return Cl().memoizedState}function xa(){return Cl().memoizedState}function Ca(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=pc(),r=Fi(t,e=Di(n),n);return null!==r&&(gc(r,t,n),Li(r,t,n)),t={cache:Jo()},void(e.payload=t)}t=t.return}}function Sa(e,t,n){var r=pc();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ea(e)?za(t,n):null!==(n=$r(e,t,n,r))&&(gc(n,e,r),Ia(n,t,r))}function ka(e,t,n){Ta(e,t,n,pc())}function Ta(e,t,n,r){var o={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ea(e))za(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var l=t.lastRenderedState,a=i(l,n);if(o.hasEagerState=!0,o.eagerState=a,cr(a,l))return jr(e,t,o,0),null===Lu&&Ur(),!1}catch(s){}if(null!==(n=$r(e,t,o,r)))return gc(n,e,r),Ia(n,t,r),!0}return!1}function Pa(e,t,n,o){if(o={lane:2,revertLane:hd(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Ea(e)){if(t)throw Error(r(479))}else null!==(t=$r(e,n,o,2))&&gc(t,e,2)}function Ea(e){var t=e.alternate;return e===rl||null!==t&&t===rl}function za(e,t){al=ll=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ia(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,We(e,n)}}x(pl,"fa"),x(fl,"pa"),x(gl,"ma"),x(ml,"ha"),x(yl,"ga"),x(bl,"ya"),x(vl,"va"),x(wl,"ba"),x(_l,"wa"),x(xl,"Sa"),x(Cl,"ka"),x(Sl,"Ca"),x(kl,"xa"),x(Tl,"Ea"),x(Pl,"Ra"),x(El,"Ia"),x(zl,"Pa"),x(Il,"Ta"),x(Rl,"za"),x(Al,"_a"),x(Dl,"Na"),x(Fl,"Fa"),x(Ll,"Da"),x(Ol,"La"),x(Ml,"Oa"),x(Bl,"Aa"),x(Hl,"Ma"),x(Nl,"Ha"),x(Wl,"Ua"),x(Ul,"ja"),x(jl,"Wa"),x($l,"$a"),x(Vl,"Va"),x(Gl,"Ba"),x(ql,"qa"),x(Yl,"Ka"),x(Xl,"Qa"),x(Kl,"Ga"),x(Ql,"Ya"),x(Jl,"Xa"),x(Zl,"Ja"),x(ea,"Za"),x(ta,"ei"),x(na,"ti"),x(ra,"ni"),x(oa,"ri"),x(ia,"li"),x(la,"oi"),x(aa,"ai"),x(sa,"ii"),x(ua,"ui"),x(ca,"si"),x(da,"ci"),x(ha,"di"),x(pa,"fi"),x(fa,"pi"),x(ga,"mi"),x(ma,"hi"),x(ya,"gi"),x(ba,"yi"),x(va,"vi"),x(wa,"bi"),x(_a,"wi"),x(xa,"Si"),x(Ca,"ki"),x(Sa,"Ci"),x(ka,"xi"),x(Ta,"Ei"),x(Pa,"Ri"),x(Ea,"Ii"),x(za,"Pi"),x(Ia,"Ti"),pe(pl,"throwInvalidHookError"),pe(fl,"areHookInputsEqual"),pe(gl,"renderWithHooks"),pe(ml,"finishRenderingHooks"),pe(yl,"renderWithHooksAgain"),pe(bl,"TransitionAwareHostComponent"),pe(vl,"checkDidRenderIdHook"),pe(wl,"bailoutHooks"),pe(_l,"resetHooksOnUnwind"),pe(xl,"mountWorkInProgressHook"),pe(Cl,"updateWorkInProgressHook"),pe(Sl,"createFunctionComponentUpdateQueue"),pe(kl,"useThenable"),pe(Tl,"use"),pe(Pl,"useMemoCache"),pe(El,"basicStateReducer"),pe(zl,"updateReducer"),pe(Il,"updateReducerImpl"),pe(Rl,"rerenderReducer"),pe(Al,"updateSyncExternalStore"),pe(Dl,"pushStoreConsistencyCheck"),pe(Fl,"updateStoreInstance"),pe(Ll,"subscribeToStore"),pe(Ol,"checkIfSnapshotChanged"),pe(Ml,"forceStoreRerender"),pe(Bl,"mountStateImpl"),pe(Hl,"updateOptimisticImpl"),pe(Nl,"dispatchActionState"),pe(Wl,"runActionStateAction"),pe(Ul,"handleActionReturnValue"),pe(jl,"onActionSuccess"),pe($l,"onActionError"),pe(Vl,"notifyActionListeners"),pe(Gl,"actionStateReducer"),pe(ql,"mountActionState"),pe(Yl,"updateActionState"),pe(Xl,"updateActionStateImpl"),pe(Kl,"actionStateActionEffect"),pe(Ql,"rerenderActionState"),pe(Jl,"pushSimpleEffect"),pe(Zl,"updateRef"),pe(ea,"mountEffectImpl"),pe(ta,"updateEffectImpl"),pe(na,"mountEffect"),pe(ra,"updateEffect"),pe(oa,"useEffectEventImpl"),pe(ia,"updateEvent"),pe(la,"updateInsertionEffect"),pe(aa,"updateLayoutEffect"),pe(sa,"imperativeHandleEffect"),pe(ua,"updateImperativeHandle"),pe(ca,"mountDebugValue"),pe(da,"updateCallback"),pe(ha,"updateMemo"),pe(pa,"mountDeferredValueImpl"),pe(fa,"updateDeferredValueImpl"),pe(ga,"startTransition"),pe(ma,"noop"),pe(ya,"startHostTransition"),pe(ba,"ensureFormComponentIsStateful"),pe(va,"requestFormReset$1"),pe(wa,"useHostTransitionStatus"),pe(_a,"updateId"),pe(xa,"updateRefresh"),pe(Ca,"refreshCache"),pe(Sa,"dispatchReducerAction"),pe(ka,"dispatchSetState"),pe(Ta,"dispatchSetStateInternal"),pe(Pa,"dispatchOptimisticSetState"),pe(Ea,"isRenderPhaseUpdate"),pe(za,"enqueueRenderPhaseUpdate"),pe(Ia,"entangleTransitionUpdate");var Ra={readContext:Vo,use:Tl,useCallback:pl,useContext:pl,useEffect:pl,useImperativeHandle:pl,useLayoutEffect:pl,useInsertionEffect:pl,useMemo:pl,useReducer:pl,useRef:pl,useState:pl,useDebugValue:pl,useDeferredValue:pl,useTransition:pl,useSyncExternalStore:pl,useId:pl,useHostTransitionStatus:pl,useFormState:pl,useActionState:pl,useOptimistic:pl,useMemoCache:pl,useCacheRefresh:pl};Ra.useEffectEvent=pl;var Aa={readContext:Vo,use:Tl,useCallback:/* @__PURE__ */pe(function(e,t){return xl().memoizedState=[e,void 0===t?null:t],e},"useCallback"),useContext:Vo,useEffect:na,useImperativeHandle:/* @__PURE__ */pe(function(e,t,n){n=null!=n?n.concat([e]):null,ea(4194308,4,sa.bind(null,t,e),n)},"useImperativeHandle"),useLayoutEffect:/* @__PURE__ */pe(function(e,t){return ea(4194308,4,e,t)},"useLayoutEffect"),useInsertionEffect:/* @__PURE__ */pe(function(e,t){ea(4,2,e,t)},"useInsertionEffect"),useMemo:/* @__PURE__ */pe(function(e,t){var n=xl();t=void 0===t?null:t;var r=e();if(sl){ve(!0);try{e()}finally{ve(!1)}}return n.memoizedState=[r,t],r},"useMemo"),useReducer:/* @__PURE__ */pe(function(e,t,n){var r=xl();if(void 0!==n){var o=n(t);if(sl){ve(!0);try{n(t)}finally{ve(!1)}}}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=Sa.bind(null,rl,e),[r.memoizedState,e]},"useReducer"),useRef:/* @__PURE__ */pe(function(e){return e={current:e},xl().memoizedState=e},"useRef"),useState:/* @__PURE__ */pe(function(e){var t=(e=Bl(e)).queue,n=ka.bind(null,rl,t);return t.dispatch=n,[e.memoizedState,n]},"useState"),useDebugValue:ca,useDeferredValue:/* @__PURE__ */pe(function(e,t){return pa(xl(),e,t)},"useDeferredValue"),useTransition:/* @__PURE__ */pe(function(){var e=Bl(!1);return e=ga.bind(null,rl,e.queue,!0,!1),xl().memoizedState=e,[!1,e]},"useTransition"),useSyncExternalStore:/* @__PURE__ */pe(function(e,t,n){var o=rl,i=xl();if(So){if(void 0===n)throw Error(r(407));n=n()}else{if(n=t(),null===Lu)throw Error(r(349));127&Mu||Dl(o,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,na(Ll.bind(null,o,l,e),[e]),o.flags|=2048,Jl(9,{destroy:void 0},Fl.bind(null,o,l,n,t),null),n},"useSyncExternalStore"),useId:/* @__PURE__ */pe(function(){var e=xl(),t=Lu.identifierPrefix;if(So){var n=mo;t="_"+t+"R_"+(n=(go&~(1<<32-_e(go)-1)).toString(32)+n),0<(n=ul++)&&(t+="H"+n.toString(32)),t+="_"}else t="_"+t+"r_"+(n=hl++).toString(32)+"_";return e.memoizedState=t},"useId"),useHostTransitionStatus:wa,useFormState:ql,useActionState:ql,useOptimistic:/* @__PURE__ */pe(function(e){var t=xl();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Pa.bind(null,rl,!0,n),n.dispatch=t,[e,t]},"useOptimistic"),useMemoCache:Pl,useCacheRefresh:/* @__PURE__ */pe(function(){return xl().memoizedState=Ca.bind(null,rl)},"useCacheRefresh"),useEffectEvent:/* @__PURE__ */pe(function(e){var t=xl(),n={impl:e};return t.memoizedState=n,function(){if(2&Fu)throw Error(r(440));return n.impl.apply(void 0,arguments)}},"useEffectEvent")},Da={readContext:Vo,use:Tl,useCallback:da,useContext:Vo,useEffect:ra,useImperativeHandle:ua,useInsertionEffect:la,useLayoutEffect:aa,useMemo:ha,useReducer:zl,useRef:Zl,useState:/* @__PURE__ */pe(function(){return zl(El)},"useState"),useDebugValue:ca,useDeferredValue:/* @__PURE__ */pe(function(e,t){return fa(Cl(),ol.memoizedState,e,t)},"useDeferredValue"),useTransition:/* @__PURE__ */pe(function(){var e=zl(El)[0],t=Cl().memoizedState;return["boolean"==typeof e?e:kl(e),t]},"useTransition"),useSyncExternalStore:Al,useId:_a,useHostTransitionStatus:wa,useFormState:Yl,useActionState:Yl,useOptimistic:/* @__PURE__ */pe(function(e,t){return Hl(Cl(),0,e,t)},"useOptimistic"),useMemoCache:Pl,useCacheRefresh:xa};Da.useEffectEvent=ia;var Fa={readContext:Vo,use:Tl,useCallback:da,useContext:Vo,useEffect:ra,useImperativeHandle:ua,useInsertionEffect:la,useLayoutEffect:aa,useMemo:ha,useReducer:Rl,useRef:Zl,useState:/* @__PURE__ */pe(function(){return Rl(El)},"useState"),useDebugValue:ca,useDeferredValue:/* @__PURE__ */pe(function(e,t){var n=Cl();return null===ol?pa(n,e,t):fa(n,ol.memoizedState,e,t)},"useDeferredValue"),useTransition:/* @__PURE__ */pe(function(){var e=Rl(El)[0],t=Cl().memoizedState;return["boolean"==typeof e?e:kl(e),t]},"useTransition"),useSyncExternalStore:Al,useId:_a,useHostTransitionStatus:wa,useFormState:Ql,useActionState:Ql,useOptimistic:/* @__PURE__ */pe(function(e,t){var n=Cl();return null!==ol?Hl(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},"useOptimistic"),useMemoCache:Pl,useCacheRefresh:xa};function La(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:d({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}x(La,"Di"),Fa.useEffectEvent=ia,pe(La,"applyDerivedStateFromProps");var Oa={enqueueSetState:/* @__PURE__ */pe(function(e,t,n){e=e._reactInternals;var r=pc(),o=Di(r);o.payload=t,null!=n&&(o.callback=n),null!==(t=Fi(e,o,r))&&(gc(t,e,r),Li(t,e,r))},"enqueueSetState"),enqueueReplaceState:/* @__PURE__ */pe(function(e,t,n){e=e._reactInternals;var r=pc(),o=Di(r);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=Fi(e,o,r))&&(gc(t,e,r),Li(t,e,r))},"enqueueReplaceState"),enqueueForceUpdate:/* @__PURE__ */pe(function(e,t){e=e._reactInternals;var n=pc(),r=Di(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=Fi(e,r,n))&&(gc(t,e,n),Li(t,e,n))},"enqueueForceUpdate")};function Ma(e,t,n,r,o,i,l){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,l):!(t.prototype&&t.prototype.isPureReactComponent&&dr(n,r)&&dr(o,i))}function Ba(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Oa.enqueueReplaceState(t,t.state,null)}function Ha(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var o in n===t&&(n=d({},n)),e)void 0===n[o]&&(n[o]=e[o]);return n}function Na(e){Br(e)}function Wa(e){console.error(e)}function Ua(e){Br(e)}function ja(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function $a(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Va(e,t,n){return(n=Di(n)).tag=3,n.payload={element:null},n.callback=function(){ja(e,t)},n}function Ga(e){return(e=Di(e)).tag=3,e}function qa(e,t,n,r){var o=n.type.getDerivedStateFromError;if("function"==typeof o){var i=r.value;e.payload=function(){return o(i)},e.callback=function(){$a(t,n,r)}}var l=n.stateNode;null!==l&&"function"==typeof l.componentDidCatch&&(e.callback=function(){$a(t,n,r),"function"!=typeof o&&(null===rc?rc=/* @__PURE__ */new Set([this]):rc.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}function Ya(e,t,n,o,i){if(n.flags|=32768,null!==o&&"object"==typeof o&&"function"==typeof o.then){if(null!==(t=n.alternate)&&Uo(t,n,i,!0),null!==(n=qi.current)){switch(n.tag){case 31:case 13:return null===Yi?Pc():null===n.alternate&&0===$u&&($u=3),n.flags&=-257,n.flags|=65536,n.lanes=i,o===gi?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=/* @__PURE__ */new Set([o]):t.add(o),Gc(e,o,i)),!1;case 22:return n.flags|=65536,o===gi?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:/* @__PURE__ */new Set([o])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=/* @__PURE__ */new Set([o]):n.add(o),Gc(e,o,i)),!1}throw Error(r(435,n.tag))}return Gc(e,o,i),Pc(),!1}if(So)return null!==(t=qi.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=i,o!==Po&&Fo(lo(e=Error(r(422),{cause:o}),n))):(o!==Po&&Fo(lo(t=Error(r(423),{cause:o}),n)),(e=e.current.alternate).flags|=65536,i&=-i,e.lanes|=i,o=lo(o,n),Oi(e,i=Va(e.stateNode,o,i)),4!==$u&&($u=2)),!1;var l=Error(r(520),{cause:o});if(l=lo(l,n),null===Ku?Ku=[l]:Ku.push(l),4!==$u&&($u=2),null===t)return!0;o=lo(o,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,Oi(n,e=Va(n.stateNode,o,e)),!1;case 1:if(t=n.type,l=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===l||"function"!=typeof l.componentDidCatch||null!==rc&&rc.has(l))))return n.flags|=65536,i&=-i,n.lanes|=i,qa(i=Ga(i),e,n,o),Oi(n,i),!1}n=n.return}while(null!==n);return!1}x(Ma,"Oi"),x(Ba,"Ai"),x(Ha,"Mi"),x(Na,"Hi"),x(Wa,"Ui"),x(Ua,"ji"),x(ja,"Wi"),x($a,"$i"),x(Va,"Vi"),x(Ga,"Bi"),x(qa,"qi"),x(Ya,"Ki"),pe(Ma,"checkShouldComponentUpdate"),pe(Ba,"callComponentWillReceiveProps"),pe(Ha,"resolveClassComponentProps"),pe(Na,"defaultOnUncaughtError"),pe(Wa,"defaultOnCaughtError"),pe(Ua,"defaultOnRecoverableError"),pe(ja,"logUncaughtError"),pe($a,"logCaughtError"),pe(Va,"createRootErrorUpdate"),pe(Ga,"createClassErrorUpdate"),pe(qa,"initializeClassErrorUpdate"),pe(Ya,"throwException");var Xa=Error(r(461)),Ka=!1;function Qa(e,t,n,r){t.child=null===e?zi(t,null,n,r):Ei(t,e.child,n,r)}function Ja(e,t,n,r,o){n=n.render;var i=t.ref;if("ref"in r){var l={};for(var a in r)"ref"!==a&&(l[a]=r[a])}else l=r;return $o(t),r=gl(e,t,n,l,i,o),a=vl(),null===e||Ka?(So&&a&&vo(t),t.flags|=1,Qa(e,t,r,o),t.child):(wl(e,t,o),xs(e,t,o))}function Za(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Qr(i)||void 0!==i.defaultProps||null!==n.compare?((e=eo(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,es(e,t,i,r,o))}if(i=e.child,!Cs(e,o)){var l=i.memoizedProps;if((n=null!==(n=n.compare)?n:dr)(l,r)&&e.ref===t.ref)return xs(e,t,o)}return t.flags|=1,(e=Jr(i,r)).ref=t.ref,e.return=t,t.child=e}function es(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(dr(i,r)&&e.ref===t.ref){if(Ka=!1,t.pendingProps=r=i,!Cs(e,o))return t.lanes=e.lanes,xs(e,t,o);131072&e.flags&&(Ka=!0)}}return ss(e,t,n,r,o)}function ts(e,t,n,r){var o=r.children,i=null!==e?e.memoizedState:null;if(null===e&&null===t.stateNode&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),"hidden"===r.mode){if(128&t.flags){if(i=null!==i?i.baseLanes|n:n,null!==e){for(r=t.child=e.child,o=0;null!==r;)o=o|r.lanes|r.childLanes,r=r.sibling;r=o&~i}else r=0,t.child=null;return rs(e,t,i,n,r)}if(!(536870912&n))return r=t.lanes=536870912,rs(e,t,null!==i?i.baseLanes|n:n,n,r);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&ci(0,null!==i?i.cachePool:null),null!==i?$i(t,i):Vi(),Qi(t)}else null!==i?(ci(0,i.cachePool),$i(t,i),Ji(),t.memoizedState=null):(null!==e&&ci(0,null),Vi(),Ji());return Qa(e,t,o,n),t.child}function ns(e,t){return null!==e&&22===e.tag||null!==t.stateNode||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function rs(e,t,n,r,o){var i=ui();return i=null===i?null:{parent:Qo._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},null!==e&&ci(0,null),Vi(),Qi(t),null!==e&&Uo(e,t,r,!0),t.childLanes=o,null}function os(e,t){return(t=ys({mode:t.mode,children:t.children},e.mode)).ref=e.ref,e.child=t,t.return=e,t}function is(e,t,n){return Ei(t,e.child,null,n),(e=os(t,t.pendingProps)).flags|=2,Zi(t),t.memoizedState=null,e}function ls(e,t,n){var o=t.pendingProps,i=!!(128&t.flags);if(t.flags&=-129,null===e){if(So){if("hidden"===o.mode)return e=os(t,o),t.lanes=536870912,ns(null,e);if(Ki(t),(e=Co)?null!==(e=null!==(e=lh(e,To))&&"&"===e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==fo?{id:go,overflow:mo}:null,retryLane:536870912,hydrationErrors:null},(n=ro(e)).return=t,t.child=n,xo=t,Co=null):e=null,null===e)throw Eo(t);return t.lanes=536870912,null}return os(t,o)}var l=e.memoizedState;if(null!==l){var a=l.dehydrated;if(Ki(t),i)if(256&t.flags)t.flags&=-257,t=is(e,t,n);else{if(null===t.memoizedState)throw Error(r(558));t.child=e.child,t.flags|=128,t=null}else if(Ka||Uo(e,t,n,!1),i=0!==(n&e.childLanes),Ka||i){if(null!==(o=Lu)&&0!==(a=Ue(o,n))&&a!==l.retryLane)throw l.retryLane=a,Vr(e,a),gc(o,e,a),Xa;Pc(),t=is(e,t,n)}else e=l.treeContext,Co=ch(a.nextSibling),xo=t,So=!0,ko=null,To=!1,null!==e&&_o(t,e),(t=os(t,o)).flags|=4096;return t}return(e=Jr(e.child,{mode:o.mode,children:o.children})).ref=t.ref,t.child=e,e.return=t,e}function as(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(r(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function ss(e,t,n,r,o){return $o(t),n=gl(e,t,n,r,void 0,o),r=vl(),null===e||Ka?(So&&r&&vo(t),t.flags|=1,Qa(e,t,n,o),t.child):(wl(e,t,o),xs(e,t,o))}function us(e,t,n,r,o,i){return $o(t),t.updateQueue=null,n=yl(t,r,n,o),ml(e),r=vl(),null===e||Ka?(So&&r&&vo(t),t.flags|=1,Qa(e,t,n,i),t.child):(wl(e,t,i),xs(e,t,i))}function cs(e,t,n,r,o){if($o(t),null===t.stateNode){var i=Yr,l=n.contextType;"object"==typeof l&&null!==l&&(i=Vo(l)),i=new n(r,i),t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,i.updater=Oa,t.stateNode=i,i._reactInternals=t,(i=t.stateNode).props=r,i.state=t.memoizedState,i.refs={},Ri(t),l=n.contextType,i.context="object"==typeof l&&null!==l?Vo(l):Yr,i.state=t.memoizedState,"function"==typeof(l=n.getDerivedStateFromProps)&&(La(t,n,l,r),i.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(l=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),l!==i.state&&Oa.enqueueReplaceState(i,i.state,null),Hi(t,r,i,o),Bi(),i.state=t.memoizedState),"function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){i=t.stateNode;var a=t.memoizedProps,s=Ha(n,a);i.props=s;var u=i.context,c=n.contextType;l=Yr,"object"==typeof c&&null!==c&&(l=Vo(c));var d=n.getDerivedStateFromProps;c="function"==typeof d||"function"==typeof i.getSnapshotBeforeUpdate,a=t.pendingProps!==a,c||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(a||u!==l)&&Ba(t,i,r,l),Ii=!1;var h=t.memoizedState;i.state=h,Hi(t,r,i,o),Bi(),u=t.memoizedState,a||h!==u||Ii?("function"==typeof d&&(La(t,n,d,r),u=t.memoizedState),(s=Ii||Ma(t,n,s,r,h,u,l))?(c||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=l,r=s):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Ai(e,t),c=Ha(n,l=t.memoizedProps),i.props=c,d=t.pendingProps,h=i.context,u=n.contextType,s=Yr,"object"==typeof u&&null!==u&&(s=Vo(u)),(u="function"==typeof(a=n.getDerivedStateFromProps)||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==d||h!==s)&&Ba(t,i,r,s),Ii=!1,h=t.memoizedState,i.state=h,Hi(t,r,i,o),Bi();var p=t.memoizedState;l!==d||h!==p||Ii||null!==e&&null!==e.dependencies&&jo(e.dependencies)?("function"==typeof a&&(La(t,n,a,r),p=t.memoizedState),(c=Ii||Ma(t,n,c,r,h,p,s)||null!==e&&null!==e.dependencies&&jo(e.dependencies))?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,p,s),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,p,s)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),i.props=r,i.state=p,i.context=s,r=c):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return i=r,as(e,t),r=!!(128&t.flags),i||r?(i=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:i.render(),t.flags|=1,null!==e&&r?(t.child=Ei(t,e.child,null,o),t.child=Ei(t,null,n,o)):Qa(e,t,n,o),t.memoizedState=i.state,e=t.child):e=xs(e,t,o),e}function ds(e,t,n,r){return Ao(),t.flags|=256,Qa(e,t,n,r),t.child}x(Qa,"Yi"),x(Ja,"Xi"),x(Za,"Ji"),x(es,"Zi"),x(ts,"eu"),x(ns,"tu"),x(rs,"nu"),x(os,"ru"),x(is,"lu"),x(ls,"ou"),x(as,"au"),x(ss,"iu"),x(us,"uu"),x(cs,"su"),x(ds,"cu"),pe(Qa,"reconcileChildren"),pe(Ja,"updateForwardRef"),pe(Za,"updateMemoComponent"),pe(es,"updateSimpleMemoComponent"),pe(ts,"updateOffscreenComponent"),pe(ns,"bailoutOffscreenComponent"),pe(rs,"deferHiddenOffscreenComponent"),pe(os,"mountActivityChildren"),pe(is,"retryActivityComponentWithoutHydrating"),pe(ls,"updateActivityComponent"),pe(as,"markRef"),pe(ss,"updateFunctionComponent"),pe(us,"replayFunctionComponent"),pe(cs,"updateClassComponent"),pe(ds,"mountHostRootWithoutHydrating");var hs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ps(e){return{baseLanes:e,cachePool:di()}}function fs(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=Yu),e}function gs(e,t,n){var o,i=t.pendingProps,l=!1,a=!!(128&t.flags);if((o=a)||(o=(null===e||null!==e.memoizedState)&&!!(2&el.current)),o&&(l=!0,t.flags&=-129),o=!!(32&t.flags),t.flags&=-33,null===e){if(So){if(l?Xi(t):Ji(),(e=Co)?null!==(e=null!==(e=lh(e,To))&&"&"!==e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==fo?{id:go,overflow:mo}:null,retryLane:536870912,hydrationErrors:null},(n=ro(e)).return=t,t.child=n,xo=t,Co=null):e=null,null===e)throw Eo(t);return sh(e)?t.lanes=32:t.lanes=536870912,null}var s=i.children;return i=i.fallback,l?(Ji(),s=ys({mode:"hidden",children:s},l=t.mode),i=to(i,l,n,null),s.return=t,i.return=t,s.sibling=i,t.child=s,(i=t.child).memoizedState=ps(n),i.childLanes=fs(e,o,n),t.memoizedState=hs,ns(null,i)):(Xi(t),ms(t,s))}var u=e.memoizedState;if(null!==u&&null!==(s=u.dehydrated)){if(a)256&t.flags?(Xi(t),t.flags&=-257,t=bs(e,t,n)):null!==t.memoizedState?(Ji(),t.child=e.child,t.flags|=128,t=null):(Ji(),s=i.fallback,l=t.mode,i=ys({mode:"visible",children:i.children},l),(s=to(s,l,n,null)).flags|=2,i.return=t,s.return=t,i.sibling=s,t.child=i,Ei(t,e.child,null,n),(i=t.child).memoizedState=ps(n),i.childLanes=fs(e,o,n),t.memoizedState=hs,t=ns(null,i));else if(Xi(t),sh(s)){if(o=s.nextSibling&&s.nextSibling.dataset)var c=o.dgst;o=c,(i=Error(r(419))).stack="",i.digest=o,Fo({value:i,source:null,stack:null}),t=bs(e,t,n)}else if(Ka||Uo(e,t,n,!1),o=0!==(n&e.childLanes),Ka||o){if(null!==(o=Lu)&&0!==(i=Ue(o,n))&&i!==u.retryLane)throw u.retryLane=i,Vr(e,i),gc(o,e,i),Xa;ah(s)||Pc(),t=bs(e,t,n)}else ah(s)?(t.flags|=192,t.child=e.child,t=null):(e=u.treeContext,Co=ch(s.nextSibling),xo=t,So=!0,ko=null,To=!1,null!==e&&_o(t,e),(t=ms(t,i.children)).flags|=4096);return t}return l?(Ji(),s=i.fallback,l=t.mode,c=(u=e.child).sibling,(i=Jr(u,{mode:"hidden",children:i.children})).subtreeFlags=65011712&u.subtreeFlags,null!==c?s=Jr(c,s):(s=to(s,l,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,ns(null,i),i=t.child,null===(s=e.child.memoizedState)?s=ps(n):(null!==(l=s.cachePool)?(u=Qo._currentValue,l=l.parent!==u?{parent:u,pool:u}:l):l=di(),s={baseLanes:s.baseLanes|n,cachePool:l}),i.memoizedState=s,i.childLanes=fs(e,o,n),t.memoizedState=hs,ns(e.child,i)):(Xi(t),e=(n=e.child).sibling,(n=Jr(n,{mode:"visible",children:i.children})).return=t,n.sibling=null,null!==e&&(null===(o=t.deletions)?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function ms(e,t){return(t=ys({mode:"visible",children:t},e.mode)).return=e,e.child=t}function ys(e,t){return(e=Kr(22,e,null,t)).lanes=0,e}function bs(e,t,n){return Ei(t,e.child,null,n),(e=ms(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function vs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),No(e.return,t,n)}function ws(e,t,n,r,o,i){var l=e.memoizedState;null===l?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,treeForkCount:i}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=o,l.treeForkCount=i)}function _s(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;r=r.children;var l=el.current,a=!!(2&l);if(a?(l=1&l|2,t.flags|=128):l&=1,N(el,l),Qa(e,t,r,n),r=So?co:0,!a&&null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&vs(e,n,t);else if(19===e.tag)vs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===tl(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ws(t,!1,o,n,i,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===tl(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ws(t,!0,n,null,i,r);break;case"together":ws(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function xs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Vu|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Uo(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(r(153));if(null!==t.child){for(n=Jr(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Jr(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Cs(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!jo(e))}function Ss(e,t,n){switch(t.tag){case 3:q(t,t.stateNode.containerInfo),Bo(0,Qo,e.memoizedState.cache),Ao();break;case 27:case 5:X(t);break;case 4:q(t,t.stateNode.containerInfo);break;case 10:Bo(0,t.type,t.memoizedProps.value);break;case 31:if(null!==t.memoizedState)return t.flags|=128,Ki(t),null;break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(Xi(t),t.flags|=128,null):0!==(n&t.child.childLanes)?gs(e,t,n):(Xi(t),null!==(e=xs(e,t,n))?e.sibling:null);Xi(t);break;case 19:var o=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(Uo(e,t,n,!1),r=0!==(n&t.childLanes)),o){if(r)return _s(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),N(el,el.current),r)break;return null;case 22:return t.lanes=0,ts(e,t,n,t.pendingProps);case 24:Bo(0,Qo,e.memoizedState.cache)}return xs(e,t,n)}function ks(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Ka=!0;else{if(!(Cs(e,n)||128&t.flags))return Ka=!1,Ss(e,t,n);Ka=!!(131072&e.flags)}else Ka=!1,So&&1048576&t.flags&&bo(t,co,t.index);switch(t.lanes=0,t.tag){case 16:e:{var o=t.pendingProps;if(e=bi(t.elementType),t.type=e,"function"!=typeof e){if(null!=e){var i=e.$$typeof;if(i===w){t.tag=11,t=Ja(null,t,e,o,n);break e}if(i===S){t.tag=14,t=Za(null,t,e,o,n);break e}}throw t=R(e)||e,Error(r(306,t,""))}Qr(e)?(o=Ha(e,o),t.tag=1,t=cs(null,t,e,o,n)):(t.tag=0,t=ss(null,t,e,o,n))}return t;case 0:return ss(e,t,t.type,t.pendingProps,n);case 1:return cs(e,t,o=t.type,i=Ha(o,t.pendingProps),n);case 3:e:{if(q(t,t.stateNode.containerInfo),null===e)throw Error(r(387));o=t.pendingProps;var l=t.memoizedState;i=l.element,Ai(e,t),Hi(t,o,null,n);var a=t.memoizedState;if(o=a.cache,Bo(0,Qo,o),o!==l.cache&&Wo(t,[Qo],n,!0),Bi(),o=a.element,l.isDehydrated){if(l={element:o,isDehydrated:!1,cache:a.cache},t.updateQueue.baseState=l,t.memoizedState=l,256&t.flags){t=ds(e,t,o,n);break e}if(o!==i){Fo(i=lo(Error(r(424)),t)),t=ds(e,t,o,n);break e}for(e=9===(e=t.stateNode.containerInfo).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,Co=ch(e.firstChild),xo=t,So=!0,ko=null,To=!0,n=zi(t,null,o,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(Ao(),o===i){t=xs(e,t,n);break e}Qa(e,t,o,n)}t=t.child}return t;case 26:return as(e,t),null===e?(n=Rh(t.type,null,t.pendingProps,null))?t.memoizedState=n:So||(n=t.type,e=t.pendingProps,(o=jd(V.current).createElement(n))[Ye]=t,o[Xe]=e,Md(o,n,e),at(o),t.stateNode=o):t.memoizedState=Rh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return X(t),null===e&&So&&(o=t.stateNode=fh(t.type,t.pendingProps,V.current),xo=t,To=!0,i=Co,eh(t.type)?(dh=i,Co=ch(o.firstChild)):Co=i),Qa(e,t,t.pendingProps.children,n),as(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&So&&((i=o=Co)&&(null!==(o=oh(o,t.type,t.pendingProps,To))?(t.stateNode=o,xo=t,Co=ch(o.firstChild),To=!1,i=!0):i=!1),i||Eo(t)),X(t),i=t.type,l=t.pendingProps,a=null!==e?e.memoizedProps:null,o=l.children,Gd(i,l)?o=null:null!==a&&Gd(i,a)&&(t.flags|=32),null!==t.memoizedState&&(i=gl(e,t,bl,null,null,n),ep._currentValue=i),as(e,t),Qa(e,t,o,n),t.child;case 6:return null===e&&So&&((e=n=Co)&&(null!==(n=ih(n,t.pendingProps,To))?(t.stateNode=n,xo=t,Co=null,e=!0):e=!1),e||Eo(t)),null;case 13:return gs(e,t,n);case 4:return q(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=Ei(t,null,o,n):Qa(e,t,o,n),t.child;case 11:return Ja(e,t,t.type,t.pendingProps,n);case 7:return Qa(e,t,t.pendingProps,n),t.child;case 8:case 12:return Qa(e,t,t.pendingProps.children,n),t.child;case 10:return o=t.pendingProps,Bo(0,t.type,o.value),Qa(e,t,o.children,n),t.child;case 9:return i=t.type._context,o=t.pendingProps.children,$o(t),o=o(i=Vo(i)),t.flags|=1,Qa(e,t,o,n),t.child;case 14:return Za(e,t,t.type,t.pendingProps,n);case 15:return es(e,t,t.type,t.pendingProps,n);case 19:return _s(e,t,n);case 31:return ls(e,t,n);case 22:return ts(e,t,n,t.pendingProps);case 24:return $o(t),o=Vo(Qo),null===e?(null===(i=ui())&&(i=Lu,l=Jo(),i.pooledCache=l,l.refCount++,null!==l&&(i.pooledCacheLanes|=n),i=l),t.memoizedState={parent:o,cache:i},Ri(t),Bo(0,Qo,i)):(0!==(e.lanes&n)&&(Ai(e,t),Hi(t,null,null,n),Bi()),i=e.memoizedState,l=t.memoizedState,i.parent!==o?(i={parent:o,cache:o},t.memoizedState=i,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=i),Bo(0,Qo,o)):(o=l.cache,Bo(0,Qo,o),o!==i.cache&&Wo(t,[Qo],n,!0))),Qa(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Ts(e){e.flags|=4}function Ps(e,t,n,r,o){if((t=!!(32&e.mode))&&(t=!1),t){if(e.flags|=16777216,(335544128&o)===o)if(e.stateNode.complete)e.flags|=8192;else{if(!Sc())throw vi=gi,pi;e.flags|=8192}}else e.flags&=-16777217}function Es(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!Gh(t)){if(!Sc())throw vi=gi,pi;e.flags|=8192}}function zs(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Le():536870912,e.lanes|=t,Xu|=t)}function Is(e,t){if(!So)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Rs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=65011712&o.subtreeFlags,r|=65011712&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function As(e,t,n){var o=t.pendingProps;switch(wo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return Rs(t),null;case 3:return n=t.stateNode,o=null,null!==e&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),Ho(Qo),Y(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(Ro(t)?Ts(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,Do())),Rs(t),null;case 26:var i=t.type,l=t.memoizedState;return null===e?(Ts(t),null!==l?(Rs(t),Es(t,l)):(Rs(t),Ps(t,i,0,0,n))):l?l!==e.memoizedState?(Ts(t),Rs(t),Es(t,l)):(Rs(t),t.flags&=-16777217):((e=e.memoizedProps)!==o&&Ts(t),Rs(t),Ps(t,i,0,0,n)),null;case 27:if(K(t),n=V.current,i=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==o&&Ts(t);else{if(!o){if(null===t.stateNode)throw Error(r(166));return Rs(t),null}e=j.current,Ro(t)?zo(t):(e=fh(i,o,n),t.stateNode=e,Ts(t))}return Rs(t),null;case 5:if(K(t),i=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==o&&Ts(t);else{if(!o){if(null===t.stateNode)throw Error(r(166));return Rs(t),null}if(l=j.current,Ro(t))zo(t);else{var a=jd(V.current);switch(l){case 1:l=a.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:l=a.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":l=a.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":l=a.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":(l=a.createElement("div")).innerHTML="<script><\/script>",l=l.removeChild(l.firstChild);break;case"select":l="string"==typeof o.is?a.createElement("select",{is:o.is}):a.createElement("select"),o.multiple?l.multiple=!0:o.size&&(l.size=o.size);break;default:l="string"==typeof o.is?a.createElement(i,{is:o.is}):a.createElement(i)}}l[Ye]=t,l[Xe]=o;e:for(a=t.child;null!==a;){if(5===a.tag||6===a.tag)l.appendChild(a.stateNode);else if(4!==a.tag&&27!==a.tag&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;null===a.sibling;){if(null===a.return||a.return===t)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}t.stateNode=l;e:switch(Md(l,i,o),i){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&Ts(t)}}return Rs(t),Ps(t,t.type,null===e||e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==o&&Ts(t);else{if("string"!=typeof o&&null===t.stateNode)throw Error(r(166));if(e=V.current,Ro(t)){if(e=t.stateNode,n=t.memoizedProps,o=null,null!==(i=xo))switch(i.tag){case 27:case 5:o=i.memoizedProps}e[Ye]=t,(e=!!(e.nodeValue===n||null!==o&&!0===o.suppressHydrationWarning||Fd(e.nodeValue,n)))||Eo(t,!0)}else(e=jd(e).createTextNode(o))[Ye]=t,t.stateNode=e}return Rs(t),null;case 31:if(n=t.memoizedState,null===e||null!==e.memoizedState){if(o=Ro(t),null!==n){if(null===e){if(!o)throw Error(r(318));if(!(e=null!==(e=t.memoizedState)?e.dehydrated:null))throw Error(r(557));e[Ye]=t}else Ao(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Rs(t),e=!1}else n=Do(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return 256&t.flags?(Zi(t),t):(Zi(t),null);if(128&t.flags)throw Error(r(558))}return Rs(t),null;case 13:if(o=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(i=Ro(t),null!==o&&null!==o.dehydrated){if(null===e){if(!i)throw Error(r(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(r(317));i[Ye]=t}else Ao(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Rs(t),i=!1}else i=Do(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return 256&t.flags?(Zi(t),t):(Zi(t),null)}return Zi(t),128&t.flags?(t.lanes=n,t):(n=null!==o,e=null!==e&&null!==e.memoizedState,n&&(i=null,null!==(o=t.child).alternate&&null!==o.alternate.memoizedState&&null!==o.alternate.memoizedState.cachePool&&(i=o.alternate.memoizedState.cachePool.pool),l=null,null!==o.memoizedState&&null!==o.memoizedState.cachePool&&(l=o.memoizedState.cachePool.pool),l!==i&&(o.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),zs(t,t.updateQueue),Rs(t),null);case 4:return Y(),null===e&&Sd(t.stateNode.containerInfo),Rs(t),null;case 10:return Ho(t.type),Rs(t),null;case 19:if(H(el),null===(o=t.memoizedState))return Rs(t),null;if(i=!!(128&t.flags),null===(l=o.rendering))if(i)Is(o,!1);else{if(0!==$u||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=tl(e))){for(t.flags|=128,Is(o,!1),e=l.updateQueue,t.updateQueue=e,zs(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Zr(n,e),n=n.sibling;return N(el,1&el.current|2),So&&yo(t,o.treeForkCount),t.child}e=e.sibling}null!==o.tail&&ae()>tc&&(t.flags|=128,i=!0,Is(o,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=tl(l))){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,zs(t,e),Is(o,!0),null===o.tail&&"hidden"===o.tailMode&&!l.alternate&&!So)return Rs(t),null}else 2*ae()-o.renderingStartTime>tc&&536870912!==n&&(t.flags|=128,i=!0,Is(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(null!==(e=o.last)?e.sibling=l:t.child=l,o.last=l)}return null!==o.tail?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=ae(),e.sibling=null,n=el.current,N(el,i?1&n|2:1&n),So&&yo(t,o.treeForkCount),e):(Rs(t),null);case 22:case 23:return Zi(t),Gi(),o=null!==t.memoizedState,null!==e?null!==e.memoizedState!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?!!(536870912&n)&&!(128&t.flags)&&(Rs(t),6&t.subtreeFlags&&(t.flags|=8192)):Rs(t),null!==(n=t.updateQueue)&&zs(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),o=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(o=t.memoizedState.cachePool.pool),o!==n&&(t.flags|=2048),null!==e&&H(si),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ho(Qo),Rs(t),null;case 25:case 30:return null}throw Error(r(156,t.tag))}function Ds(e,t){switch(wo(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ho(Qo),Y(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return K(t),null;case 31:if(null!==t.memoizedState){if(Zi(t),null===t.alternate)throw Error(r(340));Ao()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 13:if(Zi(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(r(340));Ao()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return H(el),null;case 4:return Y(),null;case 10:return Ho(t.type),null;case 22:case 23:return Zi(t),Gi(),null!==e&&H(si),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return Ho(Qo),null;default:return null}}function Fs(e,t){switch(wo(t),t.tag){case 3:Ho(Qo),Y();break;case 26:case 27:case 5:K(t);break;case 4:Y();break;case 31:null!==t.memoizedState&&Zi(t);break;case 13:Zi(t);break;case 19:H(el);break;case 10:Ho(t.type);break;case 22:case 23:Zi(t),Gi(),null!==e&&H(si);break;case 24:Ho(Qo)}}function Ls(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var o=r.next;n=o;do{if((n.tag&e)===e){r=void 0;var i=n.create,l=n.inst;r=i(),l.destroy=r}n=n.next}while(n!==o)}}catch(a){Vc(t,t.return,a)}}function Os(e,t,n){try{var r=t.updateQueue,o=null!==r?r.lastEffect:null;if(null!==o){var i=o.next;r=i;do{if((r.tag&e)===e){var l=r.inst,a=l.destroy;if(void 0!==a){l.destroy=void 0,o=t;var s=n,u=a;try{u()}catch(c){Vc(o,s,c)}}}r=r.next}while(r!==i)}}catch(c){Vc(t,t.return,c)}}function Ms(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{Wi(t,n)}catch(r){Vc(e,e.return,r)}}}function Bs(e,t,n){n.props=Ha(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){Vc(e,t,r)}}function Hs(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(o){Vc(e,t,o)}}function Ns(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(o){Vc(e,t,o)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(i){Vc(e,t,i)}else n.current=null}function Ws(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(o){Vc(e,e.return,o)}}function Us(e,t,n){try{var r=e.stateNode;Bd(r,e.type,n,t),r[Xe]=t}catch(o){Vc(e,e.return,o)}}function js(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&eh(e.type)||4===e.tag}function $s(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||js(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&eh(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Vs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Wt));else if(4!==r&&(27===r&&eh(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(Vs(e,t,n),e=e.sibling;null!==e;)Vs(e,t,n),e=e.sibling}function Gs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&eh(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(Gs(e,t,n),e=e.sibling;null!==e;)Gs(e,t,n),e=e.sibling}function qs(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);Md(t,r,n),t[Ye]=e,t[Xe]=n}catch(i){Vc(e,e.return,i)}}x(ps,"fu"),x(fs,"pu"),x(gs,"mu"),x(ms,"hu"),x(ys,"gu"),x(bs,"yu"),x(vs,"vu"),x(ws,"bu"),x(_s,"wu"),x(xs,"Su"),x(Cs,"ku"),x(Ss,"Cu"),x(ks,"xu"),x(Ts,"Eu"),x(Ps,"Ru"),x(Es,"Iu"),x(zs,"Pu"),x(Is,"Tu"),x(Rs,"zu"),x(As,"_u"),x(Ds,"Nu"),x(Fs,"Fu"),x(Ls,"Du"),x(Os,"Lu"),x(Ms,"Ou"),x(Bs,"Au"),x(Hs,"Mu"),x(Ns,"Hu"),x(Ws,"Uu"),x(Us,"ju"),x(js,"Wu"),x($s,"$u"),x(Vs,"Vu"),x(Gs,"Bu"),x(qs,"qu"),pe(ps,"mountSuspenseOffscreenState"),pe(fs,"getRemainingWorkInPrimaryTree"),pe(gs,"updateSuspenseComponent"),pe(ms,"mountSuspensePrimaryChildren"),pe(ys,"mountWorkInProgressOffscreenFiber"),pe(bs,"retrySuspenseComponentWithoutHydrating"),pe(vs,"scheduleSuspenseWorkOnFiber"),pe(ws,"initSuspenseListRenderState"),pe(_s,"updateSuspenseListComponent"),pe(xs,"bailoutOnAlreadyFinishedWork"),pe(Cs,"checkScheduledUpdateOrContext"),pe(Ss,"attemptEarlyBailoutIfNoScheduledUpdate"),pe(ks,"beginWork"),pe(Ts,"markUpdate"),pe(Ps,"preloadInstanceAndSuspendIfNeeded"),pe(Es,"preloadResourceAndSuspendIfNeeded"),pe(zs,"scheduleRetryEffect"),pe(Is,"cutOffTailIfNeeded"),pe(Rs,"bubbleProperties"),pe(As,"completeWork"),pe(Ds,"unwindWork"),pe(Fs,"unwindInterruptedWork"),pe(Ls,"commitHookEffectListMount"),pe(Os,"commitHookEffectListUnmount"),pe(Ms,"commitClassCallbacks"),pe(Bs,"safelyCallComponentWillUnmount"),pe(Hs,"safelyAttachRef"),pe(Ns,"safelyDetachRef"),pe(Ws,"commitHostMount"),pe(Us,"commitHostUpdate"),pe(js,"isHostParent"),pe($s,"getHostSibling"),pe(Vs,"insertOrAppendPlacementNodeIntoContainer"),pe(Gs,"insertOrAppendPlacementNode"),pe(qs,"commitHostSingletonAcquisition");var Ys=!1,Xs=!1,Ks=!1,Qs="function"==typeof WeakSet?WeakSet:Set,Js=null;function Zs(e,t){if(e=e.containerInfo,Wd=up,mr(e=gr(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(o&&0!==o.rangeCount){n=o.anchorNode;var i=o.anchorOffset,l=o.focusNode;o=o.focusOffset;try{n.nodeType,l.nodeType}catch(m){n=null;break e}var a=0,s=-1,u=-1,c=0,d=0,h=e,p=null;t:for(;;){for(var f;h!==n||0!==i&&3!==h.nodeType||(s=a+i),h!==l||0!==o&&3!==h.nodeType||(u=a+o),3===h.nodeType&&(a+=h.nodeValue.length),null!==(f=h.firstChild);)p=h,h=f;for(;;){if(h===e)break t;if(p===n&&++c===i&&(s=a),p===l&&++d===o&&(u=a),null!==(f=h.nextSibling))break;p=(h=p).parentNode}h=f}n=-1===s||-1===u?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ud={focusedElem:e,selectionRange:n},up=!1,Js=t;null!==Js;)if(e=(t=Js).child,1028&t.subtreeFlags&&null!==e)e.return=t,Js=e;else for(;null!==Js;){switch(l=(t=Js).alternate,e=t.flags,t.tag){case 0:if(4&e&&null!==(e=null!==(e=t.updateQueue)?e.events:null))for(n=0;n<e.length;n++)(i=e[n]).ref.impl=i.nextImpl;break;case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==l){e=void 0,n=t,i=l.memoizedProps,l=l.memoizedState,o=n.stateNode;try{var g=Ha(n.type,i);e=o.getSnapshotBeforeUpdate(g,l),o.__reactInternalSnapshotBeforeUpdate=e}catch(y){Vc(n,n.return,y)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))rh(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":rh(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(r(163))}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}}function eu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:gu(e,n),4&r&&Ls(5,n);break;case 1:if(gu(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(l){Vc(n,n.return,l)}else{var o=Ha(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(a){Vc(n,n.return,a)}}64&r&&Ms(n),512&r&&Hs(n,n.return);break;case 3:if(gu(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{Wi(e,t)}catch(l){Vc(n,n.return,l)}}break;case 27:null===t&&4&r&&qs(n);case 26:case 5:gu(e,n),null===t&&4&r&&Ws(n),512&r&&Hs(n,n.return);break;case 12:gu(e,n);break;case 31:gu(e,n),4&r&&lu(e,n);break;case 13:gu(e,n),4&r&&au(e,n),64&r&&null!==(e=n.memoizedState)&&null!==(e=e.dehydrated)&&uh(e,n=Xc.bind(null,n));break;case 22:if(!(r=null!==n.memoizedState||Ys)){t=null!==t&&null!==t.memoizedState||Xs,o=Ys;var i=Xs;Ys=r,(Xs=t)&&!i?yu(e,n,!!(8772&n.subtreeFlags)):gu(e,n),Ys=o,Xs=i}break;case 30:break;default:gu(e,n)}}function tu(e){var t=e.alternate;null!==t&&(e.alternate=null,tu(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&nt(t),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}x(Zs,"Ju"),x(eu,"Zu"),x(tu,"es"),pe(Zs,"commitBeforeMutationEffects"),pe(eu,"commitLayoutEffectOnFiber"),pe(tu,"detachFiberAfterEffects");var nu=null,ru=!1;function ou(e,t,n){for(n=n.child;null!==n;)iu(e,t,n),n=n.sibling}function iu(e,t,n){if(be&&"function"==typeof be.onCommitFiberUnmount)try{be.onCommitFiberUnmount(ye,n)}catch(i){}switch(n.tag){case 26:Xs||Ns(n,t),ou(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Xs||Ns(n,t);var r=nu,o=ru;eh(n.type)&&(nu=n.stateNode,ru=!1),ou(e,t,n),gh(n.stateNode),nu=r,ru=o;break;case 5:Xs||Ns(n,t);case 6:if(r=nu,o=ru,nu=null,ou(e,t,n),ru=o,null!==(nu=r))if(ru)try{(9===nu.nodeType?nu.body:"HTML"===nu.nodeName?nu.ownerDocument.body:nu).removeChild(n.stateNode)}catch(l){Vc(n,t,l)}else try{nu.removeChild(n.stateNode)}catch(l){Vc(n,t,l)}break;case 18:null!==nu&&(ru?(th(9===(e=nu).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Lp(e)):th(nu,n.stateNode));break;case 4:r=nu,o=ru,nu=n.stateNode.containerInfo,ru=!0,ou(e,t,n),nu=r,ru=o;break;case 0:case 11:case 14:case 15:Os(2,n,t),Xs||Os(4,n,t),ou(e,t,n);break;case 1:Xs||(Ns(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&Bs(n,t,r)),ou(e,t,n);break;case 21:ou(e,t,n);break;case 22:Xs=(r=Xs)||null!==n.memoizedState,ou(e,t,n),Xs=r;break;default:ou(e,t,n)}}function lu(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)){e=e.dehydrated;try{Lp(e)}catch(n){Vc(t,t.return,n)}}}function au(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))try{Lp(e)}catch(n){Vc(t,t.return,n)}}function su(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new Qs),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new Qs),t;default:throw Error(r(435,e.tag))}}function uu(e,t){var n=su(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Kc.bind(null,e,t);t.then(r,r)}})}function cu(e,t){var n=t.deletions;if(null!==n)for(var o=0;o<n.length;o++){var i=n[o],l=e,a=t,s=a;e:for(;null!==s;){switch(s.tag){case 27:if(eh(s.type)){nu=s.stateNode,ru=!1;break e}break;case 5:nu=s.stateNode,ru=!1;break e;case 3:case 4:nu=s.stateNode.containerInfo,ru=!0;break e}s=s.return}if(null===nu)throw Error(r(160));iu(l,a,i),nu=null,ru=!1,null!==(l=i.alternate)&&(l.return=null),i.return=null}if(13886&t.subtreeFlags)for(t=t.child;null!==t;)hu(t,e),t=t.sibling}x(ou,"rs"),x(iu,"ls"),x(lu,"os"),x(au,"as"),x(su,"is"),x(uu,"us"),x(cu,"ss"),pe(ou,"recursivelyTraverseDeletionEffects"),pe(iu,"commitDeletionEffectsOnFiber"),pe(lu,"commitActivityHydrationCallbacks"),pe(au,"commitSuspenseHydrationCallbacks"),pe(su,"getRetryCache"),pe(uu,"attachSuspenseRetryListeners"),pe(cu,"recursivelyTraverseMutationEffects");var du=null;function hu(e,t){var n=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:cu(t,e),pu(e),4&o&&(Os(3,e,e.return),Ls(3,e),Os(5,e,e.return));break;case 1:cu(t,e),pu(e),512&o&&(Xs||null===n||Ns(n,n.return)),64&o&&Ys&&null!==(e=e.updateQueue)&&null!==(o=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?o:n.concat(o));break;case 26:var i=du;if(cu(t,e),pu(e),512&o&&(Xs||null===n||Ns(n,n.return)),4&o){var l=null!==n?n.memoizedState:null;if(o=e.memoizedState,null===n)if(null===o)if(null===e.stateNode){e:{o=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(o){case"title":(!(l=i.getElementsByTagName("title")[0])||l[tt]||l[Ye]||"http://www.w3.org/2000/svg"===l.namespaceURI||l.hasAttribute("itemprop"))&&(l=i.createElement(o),i.head.insertBefore(l,i.querySelector("head > title"))),Md(l,o,n),l[Ye]=e,at(l),o=l;break e;case"link":var a=jh("link","href",i).get(o+(n.href||""));if(a)for(var s=0;s<a.length;s++)if((l=a[s]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&l.getAttribute("rel")===(null==n.rel?null:n.rel)&&l.getAttribute("title")===(null==n.title?null:n.title)&&l.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){a.splice(s,1);break t}Md(l=i.createElement(o),o,n),i.head.appendChild(l);break;case"meta":if(a=jh("meta","content",i).get(o+(n.content||"")))for(s=0;s<a.length;s++)if((l=a[s]).getAttribute("content")===(null==n.content?null:""+n.content)&&l.getAttribute("name")===(null==n.name?null:n.name)&&l.getAttribute("property")===(null==n.property?null:n.property)&&l.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&l.getAttribute("charset")===(null==n.charSet?null:n.charSet)){a.splice(s,1);break t}Md(l=i.createElement(o),o,n),i.head.appendChild(l);break;default:throw Error(r(468,o))}l[Ye]=e,at(l),o=l}e.stateNode=o}else $h(i,e.type,e.stateNode);else e.stateNode=Bh(i,o,e.memoizedProps);else l!==o?(null===l?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):l.count--,null===o?$h(i,e.type,e.stateNode):Bh(i,o,e.memoizedProps)):null===o&&null!==e.stateNode&&Us(e,e.memoizedProps,n.memoizedProps)}break;case 27:cu(t,e),pu(e),512&o&&(Xs||null===n||Ns(n,n.return)),null!==n&&4&o&&Us(e,e.memoizedProps,n.memoizedProps);break;case 5:if(cu(t,e),pu(e),512&o&&(Xs||null===n||Ns(n,n.return)),32&e.flags){i=e.stateNode;try{Dt(i,"")}catch(g){Vc(e,e.return,g)}}4&o&&null!=e.stateNode&&Us(e,i=e.memoizedProps,null!==n?n.memoizedProps:i),1024&o&&(Ks=!0);break;case 6:if(cu(t,e),pu(e),4&o){if(null===e.stateNode)throw Error(r(162));o=e.memoizedProps,n=e.stateNode;try{n.nodeValue=o}catch(g){Vc(e,e.return,g)}}break;case 3:if(Uh=null,i=du,du=bh(t.containerInfo),cu(t,e),du=i,pu(e),4&o&&null!==n&&n.memoizedState.isDehydrated)try{Lp(t.containerInfo)}catch(g){Vc(e,e.return,g)}Ks&&(Ks=!1,fu(e));break;case 4:o=du,du=bh(e.stateNode.containerInfo),cu(t,e),pu(e),du=o;break;case 12:default:cu(t,e),pu(e);break;case 31:case 19:cu(t,e),pu(e),4&o&&null!==(o=e.updateQueue)&&(e.updateQueue=null,uu(e,o));break;case 13:cu(t,e),pu(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(Zu=ae()),4&o&&null!==(o=e.updateQueue)&&(e.updateQueue=null,uu(e,o));break;case 22:i=null!==e.memoizedState;var u=null!==n&&null!==n.memoizedState,c=Ys,d=Xs;if(Ys=c||i,Xs=d||u,cu(t,e),Xs=d,Ys=c,pu(e),8192&o)e:for(t=e.stateNode,t._visibility=i?-2&t._visibility:1|t._visibility,i&&(null===n||u||Ys||Xs||mu(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){u=n=t;try{if(l=u.stateNode,i)"function"==typeof(a=l.style).setProperty?a.setProperty("display","none","important"):a.display="none";else{s=u.stateNode;var h=u.memoizedProps.style,p=null!=h&&h.hasOwnProperty("display")?h.display:null;s.style.display=null==p||"boolean"==typeof p?"":(""+p).trim()}}catch(g){Vc(u,u.return,g)}}}else if(6===t.tag){if(null===n){u=t;try{u.stateNode.nodeValue=i?"":u.memoizedProps}catch(g){Vc(u,u.return,g)}}}else if(18===t.tag){if(null===n){u=t;try{var f=u.stateNode;i?nh(f,!0):nh(u.stateNode,!1)}catch(g){Vc(u,u.return,g)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&o&&null!==(o=e.updateQueue)&&null!==(n=o.retryQueue)&&(o.retryQueue=null,uu(e,n));case 30:case 21:}}function pu(e){var t=e.flags;if(2&t){try{for(var n,o=e.return;null!==o;){if(js(o)){n=o;break}o=o.return}if(null==n)throw Error(r(160));switch(n.tag){case 27:var i=n.stateNode;Gs(e,$s(e),i);break;case 5:var l=n.stateNode;32&n.flags&&(Dt(l,""),n.flags&=-33),Gs(e,$s(e),l);break;case 3:case 4:var a=n.stateNode.containerInfo;Vs(e,$s(e),a);break;default:throw Error(r(161))}}catch(s){Vc(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function fu(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;fu(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function gu(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)eu(e,t.alternate,t),t=t.sibling}function mu(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Os(4,t,t.return),mu(t);break;case 1:Ns(t,t.return);var n=t.stateNode;"function"==typeof n.componentWillUnmount&&Bs(t,t.return,n),mu(t);break;case 27:gh(t.stateNode);case 26:case 5:Ns(t,t.return),mu(t);break;case 22:null===t.memoizedState&&mu(t);break;default:mu(t)}e=e.sibling}}function yu(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,o=e,i=t,l=i.flags;switch(i.tag){case 0:case 11:case 15:yu(o,i,n),Ls(4,i);break;case 1:if(yu(o,i,n),"function"==typeof(o=(r=i).stateNode).componentDidMount)try{o.componentDidMount()}catch(u){Vc(r,r.return,u)}if(null!==(o=(r=i).updateQueue)){var a=r.stateNode;try{var s=o.shared.hiddenCallbacks;if(null!==s)for(o.shared.hiddenCallbacks=null,o=0;o<s.length;o++)Ni(s[o],a)}catch(u){Vc(r,r.return,u)}}n&&64&l&&Ms(i),Hs(i,i.return);break;case 27:qs(i);case 26:case 5:yu(o,i,n),n&&null===r&&4&l&&Ws(i),Hs(i,i.return);break;case 12:yu(o,i,n);break;case 31:yu(o,i,n),n&&4&l&&lu(o,i);break;case 13:yu(o,i,n),n&&4&l&&au(o,i);break;case 22:null===i.memoizedState&&yu(o,i,n),Hs(i,i.return);break;case 30:break;default:yu(o,i,n)}t=t.sibling}}function bu(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Zo(n))}function vu(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Zo(e))}function wu(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)_u(e,t,n,r),t=t.sibling}function _u(e,t,n,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:wu(e,t,n,r),2048&o&&Ls(9,t);break;case 1:case 31:case 13:default:wu(e,t,n,r);break;case 3:wu(e,t,n,r),2048&o&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Zo(e)));break;case 12:if(2048&o){wu(e,t,n,r),e=t.stateNode;try{var i=t.memoizedProps,l=i.id,a=i.onPostCommit;"function"==typeof a&&a(l,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(s){Vc(t,t.return,s)}}else wu(e,t,n,r);break;case 23:break;case 22:i=t.stateNode,l=t.alternate,null!==t.memoizedState?2&i._visibility?wu(e,t,n,r):Cu(e,t):2&i._visibility?wu(e,t,n,r):(i._visibility|=2,xu(e,t,n,r,!!(10256&t.subtreeFlags)||!1)),2048&o&&bu(l,t);break;case 24:wu(e,t,n,r),2048&o&&vu(t.alternate,t)}}function xu(e,t,n,r,o){for(o=o&&(!!(10256&t.subtreeFlags)||!1),t=t.child;null!==t;){var i=e,l=t,a=n,s=r,u=l.flags;switch(l.tag){case 0:case 11:case 15:xu(i,l,a,s,o),Ls(8,l);break;case 23:break;case 22:var c=l.stateNode;null!==l.memoizedState?2&c._visibility?xu(i,l,a,s,o):Cu(i,l):(c._visibility|=2,xu(i,l,a,s,o)),o&&2048&u&&bu(l.alternate,l);break;case 24:xu(i,l,a,s,o),o&&2048&u&&vu(l.alternate,l);break;default:xu(i,l,a,s,o)}t=t.sibling}}function Cu(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,o=r.flags;switch(r.tag){case 22:Cu(n,r),2048&o&&bu(r.alternate,r);break;case 24:Cu(n,r),2048&o&&vu(r.alternate,r);break;default:Cu(n,r)}t=t.sibling}}x(hu,"ds"),x(pu,"fs"),x(fu,"ps"),x(gu,"ms"),x(mu,"hs"),x(yu,"gs"),x(bu,"ys"),x(vu,"vs"),x(wu,"bs"),x(_u,"ws"),x(xu,"Ss"),x(Cu,"ks"),pe(hu,"commitMutationEffectsOnFiber"),pe(pu,"commitReconciliationEffects"),pe(fu,"recursivelyResetForms"),pe(gu,"recursivelyTraverseLayoutEffects"),pe(mu,"recursivelyTraverseDisappearLayoutEffects"),pe(yu,"recursivelyTraverseReappearLayoutEffects"),pe(bu,"commitOffscreenPassiveMountEffects"),pe(vu,"commitCachePassiveMountEffect"),pe(wu,"recursivelyTraversePassiveMountEffects"),pe(_u,"commitPassiveMountOnFiber"),pe(xu,"recursivelyTraverseReconnectPassiveEffects"),pe(Cu,"recursivelyTraverseAtomicPassiveEffects");var Su=8192;function ku(e,t,n){if(e.subtreeFlags&Su)for(e=e.child;null!==e;)Tu(e,t,n),e=e.sibling}function Tu(e,t,n){switch(e.tag){case 26:ku(e,t,n),e.flags&Su&&null!==e.memoizedState&&qh(n,du,e.memoizedState,e.memoizedProps);break;case 5:default:ku(e,t,n);break;case 3:case 4:var r=du;du=bh(e.stateNode.containerInfo),ku(e,t,n),du=r;break;case 22:null===e.memoizedState&&(null!==(r=e.alternate)&&null!==r.memoizedState?(r=Su,Su=16777216,ku(e,t,n),Su=r):ku(e,t,n))}}function Pu(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function Eu(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Js=r,Ru(r,e)}Pu(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)zu(e),e=e.sibling}function zu(e){switch(e.tag){case 0:case 11:case 15:Eu(e),2048&e.flags&&Os(9,e,e.return);break;case 3:case 12:default:Eu(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,Iu(e)):Eu(e)}}function Iu(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Js=r,Ru(r,e)}Pu(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:Os(8,t,t.return),Iu(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,Iu(t));break;default:Iu(t)}e=e.sibling}}function Ru(e,t){for(;null!==Js;){var n=Js;switch(n.tag){case 0:case 11:case 15:Os(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Zo(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,Js=r;else e:for(n=e;null!==Js;){var o=(r=Js).sibling,i=r.return;if(tu(r),r===n){Js=null;break e}if(null!==o){o.return=i,Js=o;break e}Js=i}}}x(ku,"xs"),x(Tu,"Es"),x(Pu,"Rs"),x(Eu,"Is"),x(zu,"Ps"),x(Iu,"Ts"),x(Ru,"zs"),pe(ku,"recursivelyAccumulateSuspenseyCommit"),pe(Tu,"accumulateSuspenseyCommitOnFiber"),pe(Pu,"detachAlternateSiblings"),pe(Eu,"recursivelyTraversePassiveUnmountEffects"),pe(zu,"commitPassiveUnmountOnFiber"),pe(Iu,"recursivelyTraverseDisconnectPassiveEffects"),pe(Ru,"commitPassiveUnmountEffectsInsideOfDeletedTree_begin");var Au={getCacheForType:/* @__PURE__ */pe(function(e){var t=Vo(Qo),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n},"getCacheForType"),cacheSignal:/* @__PURE__ */pe(function(){return Vo(Qo).controller.signal},"cacheSignal")},Du="function"==typeof WeakMap?WeakMap:Map,Fu=0,Lu=null,Ou=null,Mu=0,Bu=0,Hu=null,Nu=!1,Wu=!1,Uu=!1,ju=0,$u=0,Vu=0,Gu=0,qu=0,Yu=0,Xu=0,Ku=null,Qu=null,Ju=!1,Zu=0,ec=0,tc=1/0,nc=null,rc=null,oc=0,ic=null,lc=null,ac=0,sc=0,uc=null,cc=null,dc=0,hc=null;function pc(){return 2&Fu&&0!==Mu?Mu&-Mu:null!==D.T?hd():Ve()}function fc(){if(0===Yu)if(536870912&Mu&&!So)Yu=536870912;else{var e=Pe;!(3932160&(Pe<<=1))&&(Pe=262144),Yu=e}return null!==(e=qi.current)&&(e.flags|=32),Yu}function gc(e,t,n){(e!==Lu||2!==Bu&&9!==Bu)&&null===e.cancelPendingCommit||(xc(e,0),vc(e,Mu,Yu,!1)),Me(e,n),2&Fu&&e===Lu||(e===Lu&&(!(2&Fu)&&(Gu|=n),4===$u&&vc(e,Mu,Yu,!1)),od(e))}function mc(e,t,n){if(6&Fu)throw Error(r(327));for(var o=!n&&!(127&t)&&0===(t&e.expiredLanes)||Ae(e,t),i=o?Ic(e,t):Ec(e,t,!0),l=o;;){if(0===i){Wu&&!o&&vc(e,t,0,!1);break}if(n=e.current.alternate,!l||bc(n)){if(2===i){if(l=t,e.errorRecoveryDisabledLanes&l)var a=0;else a=0!=(a=-536870913&e.pendingLanes)?a:536870912&a?536870912:0;if(0!==a){t=a;e:{var s=e;i=Ku;var u=s.current.memoizedState.isDehydrated;if(u&&(xc(s,a).flags|=256),2!==(a=Ec(s,a,!1))){if(Uu&&!u){s.errorRecoveryDisabledLanes|=l,Gu|=l,i=4;break e}l=Qu,Qu=i,null!==l&&(null===Qu?Qu=l:Qu.push.apply(Qu,l))}i=a}if(l=!1,2!==i)continue}}if(1===i){xc(e,0),vc(e,t,0,!0);break}e:{switch(o=e,l=i){case 0:case 1:throw Error(r(345));case 4:if((4194048&t)!==t)break;case 6:vc(o,t,Yu,!Nu);break e;case 2:Qu=null;break;case 3:case 5:break;default:throw Error(r(329))}if((62914560&t)===t&&10<(i=Zu+300-ae())){if(vc(o,t,Yu,!Nu),0!==Re(o,0,!0))break e;ac=t,o.timeoutHandle=Xd(yc.bind(null,o,n,Qu,nc,Ju,t,Yu,Gu,Xu,Nu,l,"Throttled",-0,0),i)}else yc(o,n,Qu,nc,Ju,t,Yu,Gu,Xu,Nu,l,null,-0,0)}break}i=Ec(e,t,!1),l=!1}od(e)}function yc(e,t,n,r,o,i,l,a,s,u,c,d,h,p){if(e.timeoutHandle=-1,8192&(d=t.subtreeFlags)||!(16785408&~d)){Tu(t,i,d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Wt});var f=(62914560&i)===i?Zu-ae():(4194048&i)===i?ec-ae():0;if(null!==(f=Xh(d,f)))return ac=i,e.cancelPendingCommit=f(Mc.bind(null,e,t,i,n,r,o,l,a,s,c,d,null,h,p)),void vc(e,i,l,!u)}Mc(e,t,i,n,r,o,l,a,s)}function bc(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&null!==(n=t.updateQueue)&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!cr(i(),o))return!1}catch(l){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function vc(e,t,n,r){t&=~qu,t&=~Gu,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var i=31-_e(o),l=1<<i;r[i]=-1,o&=~l}0!==n&&Ne(e,n,t)}function wc(){return!!(6&Fu)||(id(0),!1)}function _c(){if(null!==Ou){if(0===Bu)var e=Ou.return;else Mo=Oo=null,_l(e=Ou),xi=null,Ci=0,e=Ou;for(;null!==e;)Fs(e.alternate,e),e=e.return;Ou=null}}function xc(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,Kd(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),ac=0,_c(),Lu=e,Ou=n=Jr(e.current,null),Mu=t,Bu=0,Hu=null,Nu=!1,Wu=Ae(e,t),Uu=!1,Xu=Yu=qu=Gu=Vu=$u=0,Qu=Ku=null,Ju=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var o=31-_e(r),i=1<<o;t|=e[o],r&=~i}return ju=t,Ur(),n}function Cc(e,t){rl=null,D.H=Ra,t===hi||t===fi?(t=wi(),Bu=3):t===pi?(t=wi(),Bu=4):Bu=t===Xa?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,Hu=t,null===Ou&&($u=1,ja(e,lo(t,e.current)))}function Sc(){var e=qi.current;return null===e||((4194048&Mu)===Mu?null===Yi:!!((62914560&Mu)===Mu||536870912&Mu)&&e===Yi)}function kc(){var e=D.H;return D.H=Ra,null===e?Ra:e}function Tc(){var e=D.A;return D.A=Au,e}function Pc(){$u=4,Nu||(4194048&Mu)!==Mu&&null!==qi.current||(Wu=!0),!(134217727&Vu)&&!(134217727&Gu)||null===Lu||vc(Lu,Mu,Yu,!1)}function Ec(e,t,n){var r=Fu;Fu|=2;var o=kc(),i=Tc();Lu===e&&Mu===t||(nc=null,xc(e,t)),t=!1;var l=$u;e:for(;;)try{if(0!==Bu&&null!==Ou){var a=Ou,s=Hu;switch(Bu){case 8:_c(),l=6;break e;case 3:case 2:case 9:case 6:null===qi.current&&(t=!0);var u=Bu;if(Bu=0,Hu=null,Fc(e,a,s,u),n&&Wu){l=0;break e}break;default:u=Bu,Bu=0,Hu=null,Fc(e,a,s,u)}}zc(),l=$u;break}catch(c){Cc(e,c)}return t&&e.shellSuspendCounter++,Mo=Oo=null,Fu=r,D.H=o,D.A=i,null===Ou&&(Lu=null,Mu=0,Ur()),l}function zc(){for(;null!==Ou;)Ac(Ou)}function Ic(e,t){var n=Fu;Fu|=2;var o=kc(),i=Tc();Lu!==e||Mu!==t?(nc=null,tc=ae()+500,xc(e,t)):Wu=Ae(e,t);e:for(;;)try{if(0!==Bu&&null!==Ou){t=Ou;var l=Hu;t:switch(Bu){case 1:Bu=0,Hu=null,Fc(e,t,l,1);break;case 2:case 9:if(mi(l)){Bu=0,Hu=null,Dc(t);break}t=/* @__PURE__ */pe(function(){2!==Bu&&9!==Bu||Lu!==e||(Bu=7),od(e)},"lanes"),l.then(t,t);break e;case 3:Bu=7;break e;case 4:Bu=5;break e;case 7:mi(l)?(Bu=0,Hu=null,Dc(t)):(Bu=0,Hu=null,Fc(e,t,l,7));break;case 5:var a=null;switch(Ou.tag){case 26:a=Ou.memoizedState;case 5:case 27:var s=Ou;if(a?Gh(a):s.stateNode.complete){Bu=0,Hu=null;var u=s.sibling;if(null!==u)Ou=u;else{var c=s.return;null!==c?(Ou=c,Lc(c)):Ou=null}break t}}Bu=0,Hu=null,Fc(e,t,l,5);break;case 6:Bu=0,Hu=null,Fc(e,t,l,6);break;case 8:_c(),$u=6;break e;default:throw Error(r(462))}}Rc();break}catch(d){Cc(e,d)}return Mo=Oo=null,D.H=o,D.A=i,Fu=n,null!==Ou?0:(Lu=null,Mu=0,Ur(),$u)}function Rc(){for(;null!==Ou&&!ie();)Ac(Ou)}function Ac(e){var t=ks(e.alternate,e,ju);e.memoizedProps=e.pendingProps,null===t?Lc(e):Ou=t}function Dc(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=us(n,t,t.pendingProps,t.type,void 0,Mu);break;case 11:t=us(n,t,t.pendingProps,t.type.render,t.ref,Mu);break;case 5:_l(t);default:Fs(n,t),t=ks(n,t=Ou=Zr(t,ju),ju)}e.memoizedProps=e.pendingProps,null===t?Lc(e):Ou=t}function Fc(e,t,n,r){Mo=Oo=null,_l(t),xi=null,Ci=0;var o=t.return;try{if(Ya(e,o,t,n,Mu))return $u=1,ja(e,lo(n,e.current)),void(Ou=null)}catch(i){if(null!==o)throw Ou=o,i;return $u=1,ja(e,lo(n,e.current)),void(Ou=null)}32768&t.flags?(So||1===r?e=!0:Wu||536870912&Mu?e=!1:(Nu=e=!0,(2===r||9===r||3===r||6===r)&&null!==(r=qi.current)&&13===r.tag&&(r.flags|=16384)),Oc(t,e)):Lc(t)}function Lc(e){var t=e;do{if(32768&t.flags)return void Oc(t,Nu);e=t.return;var n=As(t.alternate,t,ju);if(null!==n)return void(Ou=n);if(null!==(t=t.sibling))return void(Ou=t);Ou=t=e}while(null!==t);0===$u&&($u=5)}function Oc(e,t){do{var n=Ds(e.alternate,e);if(null!==n)return n.flags&=32767,void(Ou=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(Ou=e);Ou=e=n}while(null!==e);$u=6,Ou=null}function Mc(e,t,n,o,i,l,a,s,u){e.cancelPendingCommit=null;do{Uc()}while(0!==oc);if(6&Fu)throw Error(r(327));if(null!==t){if(t===e.current)throw Error(r(177));if(l=t.lanes|t.childLanes,He(e,n,l|=Wr,a,s,u),e===Lu&&(Ou=Lu=null,Mu=0),lc=t,ic=e,ac=n,sc=l,uc=i,cc=o,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,Qc(de,function(){return jc(),null})):(e.callbackNode=null,e.callbackPriority=0),o=!!(13878&t.flags),13878&t.subtreeFlags||o){o=D.T,D.T=null,i=F.p,F.p=2,a=Fu,Fu|=4;try{Zs(e,t)}finally{Fu=a,F.p=i,D.T=o}}oc=1,Bc(),Hc(),Nc()}}function Bc(){if(1===oc){oc=0;var e=ic,t=lc,n=!!(13878&t.flags);if(13878&t.subtreeFlags||n){n=D.T,D.T=null;var r=F.p;F.p=2;var o=Fu;Fu|=4;try{hu(t,e);var i=Ud,l=gr(e.containerInfo),a=i.focusedElem,s=i.selectionRange;if(l!==a&&a&&a.ownerDocument&&fr(a.ownerDocument.documentElement,a)){if(null!==s&&mr(a)){var u=s.start,c=s.end;if(void 0===c&&(c=u),"selectionStart"in a)a.selectionStart=u,a.selectionEnd=Math.min(c,a.value.length);else{var d=a.ownerDocument||document,h=d&&d.defaultView||window;if(h.getSelection){var p=h.getSelection(),f=a.textContent.length,g=Math.min(s.start,f),m=void 0===s.end?g:Math.min(s.end,f);!p.extend&&g>m&&(l=m,m=g,g=l);var y=pr(a,g),b=pr(a,m);if(y&&b&&(1!==p.rangeCount||p.anchorNode!==y.node||p.anchorOffset!==y.offset||p.focusNode!==b.node||p.focusOffset!==b.offset)){var v=d.createRange();v.setStart(y.node,y.offset),p.removeAllRanges(),g>m?(p.addRange(v),p.extend(b.node,b.offset)):(v.setEnd(b.node,b.offset),p.addRange(v))}}}}for(d=[],p=a;p=p.parentNode;)1===p.nodeType&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof a.focus&&a.focus(),a=0;a<d.length;a++){var w=d[a];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}up=!!Wd,Ud=Wd=null}finally{Fu=o,F.p=r,D.T=n}}e.current=t,oc=2}}function Hc(){if(2===oc){oc=0;var e=ic,t=lc,n=!!(8772&t.flags);if(8772&t.subtreeFlags||n){n=D.T,D.T=null;var r=F.p;F.p=2;var o=Fu;Fu|=4;try{eu(e,t.alternate,t)}finally{Fu=o,F.p=r,D.T=n}}oc=3}}function Nc(){if(4===oc||3===oc){oc=0,le();var e=ic,t=lc,n=ac,r=cc;10256&t.subtreeFlags||10256&t.flags?oc=5:(oc=0,lc=ic=null,Wc(e,e.pendingLanes));var o=e.pendingLanes;if(0===o&&(rc=null),$e(n),t=t.stateNode,be&&"function"==typeof be.onCommitFiberRoot)try{be.onCommitFiberRoot(ye,t,void 0,!(128&~t.current.flags))}catch(s){}if(null!==r){t=D.T,o=F.p,F.p=2,D.T=null;try{for(var i=e.onRecoverableError,l=0;l<r.length;l++){var a=r[l];i(a.value,{componentStack:a.stack})}}finally{D.T=t,F.p=o}}3&ac&&Uc(),od(e),o=e.pendingLanes,261930&n&&42&o?e===hc?dc++:(dc=0,hc=e):dc=0,id(0)}}function Wc(e,t){0===(e.pooledCacheLanes&=t)&&null!=(t=e.pooledCache)&&(e.pooledCache=null,Zo(t))}function Uc(){return Bc(),Hc(),Nc(),jc()}function jc(){if(5!==oc)return!1;var e=ic,t=sc;sc=0;var n=$e(ac),o=D.T,i=F.p;try{F.p=32>n?32:n,D.T=null,n=uc,uc=null;var l=ic,a=ac;if(oc=0,lc=ic=null,ac=0,6&Fu)throw Error(r(331));var s=Fu;if(Fu|=4,zu(l.current),_u(l,l.current,a,n),Fu=s,id(0,!1),be&&"function"==typeof be.onPostCommitFiberRoot)try{be.onPostCommitFiberRoot(ye,l)}catch(u){}return!0}finally{F.p=i,D.T=o,Wc(e,t)}}function $c(e,t,n){t=lo(n,t),null!==(e=Fi(e,t=Va(e.stateNode,t,2),2))&&(Me(e,2),od(e))}function Vc(e,t,n){if(3===e.tag)$c(e,e,n);else for(;null!==t;){if(3===t.tag){$c(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===rc||!rc.has(r))){e=lo(n,e),null!==(r=Fi(t,n=Ga(2),2))&&(qa(n,r,t,e),Me(r,2),od(r));break}}t=t.return}}function Gc(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Du;var o=/* @__PURE__ */new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=/* @__PURE__ */new Set,r.set(t,o));o.has(n)||(Uu=!0,o.add(n),e=qc.bind(null,e,t,n),t.then(e,e))}function qc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Lu===e&&(Mu&n)===n&&(4===$u||3===$u&&(62914560&Mu)===Mu&&300>ae()-Zu?!(2&Fu)&&xc(e,0):qu|=n,Xu===Mu&&(Xu=0)),od(e)}function Yc(e,t){0===t&&(t=Le()),null!==(e=Vr(e,t))&&(Me(e,t),od(e))}function Xc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Yc(e,n)}function Kc(e,t){var n=0;switch(e.tag){case 31:case 13:var o=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(r(314))}null!==o&&o.delete(t),Yc(e,n)}function Qc(e,t){return re(e,t)}x(pc,"fc"),x(fc,"pc"),x(gc,"mc"),x(mc,"hc"),x(yc,"gc"),x(bc,"yc"),x(vc,"vc"),x(wc,"bc"),x(_c,"wc"),x(xc,"Sc"),x(Cc,"kc"),x(Sc,"Cc"),x(kc,"xc"),x(Tc,"Ec"),x(Pc,"Rc"),x(Ec,"Ic"),x(zc,"Pc"),x(Ic,"Tc"),x(Rc,"zc"),x(Ac,"_c"),x(Dc,"Nc"),x(Fc,"Fc"),x(Lc,"Dc"),x(Oc,"Lc"),x(Mc,"Oc"),x(Bc,"Ac"),x(Hc,"Mc"),x(Nc,"Hc"),x(Wc,"Uc"),x(Uc,"jc"),x(jc,"Wc"),x($c,"$c"),x(Vc,"Vc"),x(Gc,"Bc"),x(qc,"qc"),x(Yc,"Kc"),x(Xc,"Qc"),x(Kc,"Gc"),x(Qc,"Yc"),pe(pc,"requestUpdateLane"),pe(fc,"requestDeferredLane"),pe(gc,"scheduleUpdateOnFiber"),pe(mc,"performWorkOnRoot"),pe(yc,"commitRootWhenReady"),pe(bc,"isRenderConsistentWithExternalStores"),pe(vc,"markRootSuspended"),pe(wc,"flushSyncWork$1"),pe(_c,"resetWorkInProgressStack"),pe(xc,"prepareFreshStack"),pe(Cc,"handleThrow"),pe(Sc,"shouldRemainOnPreviousScreen"),pe(kc,"pushDispatcher"),pe(Tc,"pushAsyncDispatcher"),pe(Pc,"renderDidSuspendDelayIfPossible"),pe(Ec,"renderRootSync"),pe(zc,"workLoopSync"),pe(Ic,"renderRootConcurrent"),pe(Rc,"workLoopConcurrentByScheduler"),pe(Ac,"performUnitOfWork"),pe(Dc,"replaySuspendedUnitOfWork"),pe(Fc,"throwAndUnwindWorkLoop"),pe(Lc,"completeUnitOfWork"),pe(Oc,"unwindUnitOfWork"),pe(Mc,"commitRoot"),pe(Bc,"flushMutationEffects"),pe(Hc,"flushLayoutEffects"),pe(Nc,"flushSpawnedWork"),pe(Wc,"releaseRootPooledCache"),pe(Uc,"flushPendingEffects"),pe(jc,"flushPassiveEffects"),pe($c,"captureCommitPhaseErrorOnRoot"),pe(Vc,"captureCommitPhaseError"),pe(Gc,"attachPingListener"),pe(qc,"pingSuspendedRoot"),pe(Yc,"retryTimedOutBoundary"),pe(Xc,"retryDehydratedSuspenseBoundary"),pe(Kc,"resolveRetryWakeable"),pe(Qc,"scheduleCallback$1");var Jc=null,Zc=null,ed=!1,td=!1,nd=!1,rd=0;function od(e){e!==Zc&&null===e.next&&(null===Zc?Jc=Zc=e:Zc=Zc.next=e),td=!0,ed||(ed=!0,dd())}function id(e,t){if(!nd&&td){nd=!0;do{for(var n=!1,r=Jc;null!==r;){if(0!==e){var o=r.pendingLanes;if(0===o)var i=0;else{var l=r.suspendedLanes,a=r.pingedLanes;i=(1<<31-_e(42|e)+1)-1,i=201326741&(i&=o&~(l&~a))?201326741&i|1:i?2|i:0}0!==i&&(n=!0,cd(r,i))}else i=Mu,!(3&(i=Re(r,r===Lu?i:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||Ae(r,i)||(n=!0,cd(r,i));r=r.next}}while(n);nd=!1}}function ld(){ad()}function ad(){td=ed=!1;var e=0;0!==rd&&Yd()&&(e=rd);for(var t=ae(),n=null,r=Jc;null!==r;){var o=r.next,i=sd(r,t);0===i?(r.next=null,null===n?Jc=o:n.next=o,null===o&&(Zc=n)):(n=r,(0!==e||3&i)&&(td=!0)),r=o}0!==oc&&5!==oc||id(e),0!==rd&&(rd=0)}function sd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=-62914561&e.pendingLanes;0<i;){var l=31-_e(i),a=1<<l,s=o[l];-1===s?0!==(a&n)&&0===(a&r)||(o[l]=Fe(a,t)):s<=t&&(e.expiredLanes|=a),i&=~a}if(n=Mu,n=Re(e,e===(t=Lu)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===Bu||9===Bu)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&oe(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||Ae(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&oe(r),$e(n)){case 2:case 8:n=ce;break;case 32:default:n=de;break;case 268435456:n=fe}return r=ud.bind(null,e),n=re(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&oe(r),e.callbackPriority=2,e.callbackNode=null,2}function ud(e,t){if(0!==oc&&5!==oc)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Uc()&&e.callbackNode!==n)return null;var r=Mu;return 0===(r=Re(e,e===Lu?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(mc(e,r,t),sd(e,ae()),null!=e.callbackNode&&e.callbackNode===n?ud.bind(null,e):null)}function cd(e,t){if(Uc())return null;mc(e,t,!0)}function dd(){Jd(function(){6&Fu?re(ue,ld):ad()})}function hd(){if(0===rd){var e=ni;0===e&&(e=ke,!(261888&(ke<<=1))&&(ke=256)),rd=e}return rd}function pd(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:Nt(""+e)}function fd(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function gd(e,t,n,r,o){if("submit"===t&&n&&n.stateNode===o){var i=pd((o[Xe]||null).action),l=r.submitter;l&&null!==(t=(t=l[Xe]||null)?pd(t.formAction):l.getAttribute("formAction"))&&(i=t,l=null);var a=new hn("action","action",null,r,o);e.push({event:a,listeners:[{instance:null,listener:/* @__PURE__ */pe(function(){if(r.defaultPrevented){if(0!==rd){var e=l?fd(o,l):new FormData(o);ya(n,{pending:!0,data:e,method:o.method,action:i},null,e)}}else"function"==typeof i&&(a.preventDefault(),e=l?fd(o,l):new FormData(o),ya(n,{pending:!0,data:e,method:o.method,action:i},i,e))},"listener"),currentTarget:o}]})}}x(od,"rd"),x(id,"ld"),x(ld,"od"),x(ad,"ad"),x(sd,"id"),x(ud,"ud"),x(cd,"sd"),x(dd,"cd"),x(hd,"dd"),x(pd,"fd"),x(fd,"pd"),x(gd,"md"),pe(od,"ensureRootIsScheduled"),pe(id,"flushSyncWorkAcrossRoots_impl"),pe(ld,"processRootScheduleInImmediateTask"),pe(ad,"processRootScheduleInMicrotask"),pe(sd,"scheduleTaskForRootDuringMicrotask"),pe(ud,"performWorkOnRootViaSchedulerTask"),pe(cd,"performSyncWorkOnRoot"),pe(dd,"scheduleImmediateRootScheduleTask"),pe(hd,"requestTransitionLane"),pe(pd,"coerceFormActionProp"),pe(fd,"createFormDataWithSubmitter"),pe(gd,"extractEvents$1");for(var md=0;md<Or.length;md++){var yd=Or[md];Mr(yd.toLowerCase(),"on"+(yd[0].toUpperCase()+yd.slice(1)))}Mr(Er,"onAnimationEnd"),Mr(zr,"onAnimationIteration"),Mr(Ir,"onAnimationStart"),Mr("dblclick","onDoubleClick"),Mr("focusin","onFocus"),Mr("focusout","onBlur"),Mr(Rr,"onTransitionRun"),Mr(Ar,"onTransitionStart"),Mr(Dr,"onTransitionCancel"),Mr(Fr,"onTransitionEnd"),dt("onMouseEnter",["mouseout","mouseover"]),dt("onMouseLeave",["mouseout","mouseover"]),dt("onPointerEnter",["pointerout","pointerover"]),dt("onPointerLeave",["pointerout","pointerover"]),ct("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ct("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ct("onBeforeInput",["compositionend","keypress","textInput","paste"]),ct("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ct("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ct("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bd="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),vd=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(bd));function wd(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var l=r.length-1;0<=l;l--){var a=r[l],s=a.instance,u=a.currentTarget;if(a=a.listener,s!==i&&o.isPropagationStopped())break e;i=a,o.currentTarget=u;try{i(o)}catch(c){Br(c)}o.currentTarget=null,i=s}else for(l=0;l<r.length;l++){if(s=(a=r[l]).instance,u=a.currentTarget,a=a.listener,s!==i&&o.isPropagationStopped())break e;i=a,o.currentTarget=u;try{i(o)}catch(c){Br(c)}o.currentTarget=null,i=s}}}}function _d(e,t){var n=t[Qe];void 0===n&&(n=t[Qe]=/* @__PURE__ */new Set);var r=e+"__bubble";n.has(r)||(kd(t,e,2,!1),n.add(r))}function xd(e,t,n){var r=0;t&&(r|=4),kd(n,e,r,t)}x(wd,"bd"),x(_d,"wd"),x(xd,"Sd"),pe(wd,"processDispatchQueue"),pe(_d,"listenToNonDelegatedEvent"),pe(xd,"listenToNativeEvent");var Cd="_reactListening"+Math.random().toString(36).slice(2);function Sd(e){if(!e[Cd]){e[Cd]=!0,st.forEach(function(t){"selectionchange"!==t&&(vd.has(t)||xd(t,!1,e),xd(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Cd]||(t[Cd]=!0,xd("selectionchange",!1,t))}}function kd(e,t,n,r){switch(mp(t)){case 2:var o=cp;break;case 8:o=dp;break;default:o=hp}n=o.bind(null,t,n,e),o=void 0,!Qt||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Td(e,t,n,r,o){var l=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&a.stateNode.containerInfo===o)return;a=a.return}for(;null!==s;){if(null===(a=rt(s)))return;if(5===(u=a.tag)||6===u||26===u||27===u){r=l=a;continue e}s=s.parentNode}}r=r.return}Yt(function(){var r=l,o=jt(n),a=[];e:{var s=Lr.get(e);if(void 0!==s){var u=hn,c=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":u=Pn;break;case"focusin":c="focus",u=bn;break;case"focusout":c="blur",u=bn;break;case"beforeblur":case"afterblur":u=bn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=yn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=zn;break;case Er:case zr:case Ir:u=vn;break;case Fr:u=In;break;case"scroll":case"scrollend":u=fn;break;case"wheel":u=Rn;break;case"copy":case"cut":case"paste":u=wn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=En;break;case"toggle":case"beforetoggle":u=An}var d=!!(4&t),h=!d&&("scroll"===e||"scrollend"===e),p=d?null!==s?s+"Capture":null:s;d=[];for(var f,g=r;null!==g;){var m=g;if(f=m.stateNode,5!==(m=m.tag)&&26!==m&&27!==m||null===f||null===p||null!=(m=Xt(g,p))&&d.push(Pd(g,m,f)),h)break;g=g.return}0<d.length&&(s=new u(s,c,null,n,o),a.push({event:s,listeners:d}))}}if(!(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===Ut||!(c=n.relatedTarget||n.fromElement)||!rt(c)&&!c[Ke])&&(u||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=r,null!==(c=(c=n.relatedTarget||n.toElement)?rt(c):null)&&(h=i(c),d=c.tag,c!==h||5!==d&&27!==d&&6!==d)&&(c=null)):(u=null,c=r),u!==c)){if(d=mn,m="onMouseLeave",p="onMouseEnter",g="mouse","pointerout"!==e&&"pointerover"!==e||(d=En,m="onPointerLeave",p="onPointerEnter",g="pointer"),h=null==u?s:it(u),f=null==c?s:it(c),(s=new d(m,g+"leave",u,n,o)).target=h,s.relatedTarget=f,m=null,rt(o)===r&&((d=new d(p,g+"enter",c,n,o)).target=f,d.relatedTarget=h,m=d),h=m,u&&c)e:{for(d=zd,g=c,f=0,m=p=u;m;m=d(m))f++;m=0;for(var y=g;y;y=d(y))m++;for(;0<f-m;)p=d(p),f--;for(;0<m-f;)g=d(g),m--;for(;f--;){if(p===g||null!==g&&p===g.alternate){d=p;break e}p=d(p),g=d(g)}d=null}else d=null;null!==u&&Id(a,s,u,d,!1),null!==c&&null!==h&&Id(a,h,c,d,!0)}if("select"===(u=(s=r?it(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var b=Jn;else if(Gn(s))if(Zn)b=sr;else{b=lr;var v=ir}else!(u=s.nodeName)||"input"!==u.toLowerCase()||"checkbox"!==s.type&&"radio"!==s.type?r&&Mt(r.elementType)&&(b=Jn):b=ar;switch(b&&(b=b(e,r))?qn(a,b,n,o):(v&&v(e,s,r),"focusout"===e&&r&&"number"===s.type&&null!=r.memoizedProps.value&&zt(s,"number",s.value)),v=r?it(r):window,e){case"focusin":(Gn(v)||"true"===v.contentEditable)&&(br=v,vr=r,wr=null);break;case"focusout":wr=vr=br=null;break;case"mousedown":_r=!0;break;case"contextmenu":case"mouseup":case"dragend":_r=!1,xr(a,n,o);break;case"selectionchange":if(yr)break;case"keydown":case"keyup":xr(a,n,o)}var w;if(Fn)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else Un?Nn(e,n)&&(_="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(_="onCompositionStart");_&&(Mn&&"ko"!==n.locale&&(Un||"onCompositionStart"!==_?"onCompositionEnd"===_&&Un&&(w=nn()):(en="value"in(Zt=o)?Zt.value:Zt.textContent,Un=!0)),0<(v=Ed(r,_)).length&&(_=new _n(_,e,null,n,o),a.push({event:_,listeners:v}),(w||null!==(w=Wn(n)))&&(_.data=w))),(w=On?jn(e,n):$n(e,n))&&0<(_=Ed(r,"onBeforeInput")).length&&(v=new _n("onBeforeInput","beforeinput",null,n,o),a.push({event:v,listeners:_}),v.data=w),gd(a,e,r,n,o)}wd(a,t)})}function Pd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ed(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;if(5!==(o=o.tag)&&26!==o&&27!==o||null===i||(null!=(o=Xt(e,n))&&r.unshift(Pd(e,o,i)),null!=(o=Xt(e,t))&&r.push(Pd(e,o,i))),3===e.tag)return r;e=e.return}return[]}function zd(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function Id(e,t,n,r,o){for(var i=t._reactName,l=[];null!==n&&n!==r;){var a=n,s=a.alternate,u=a.stateNode;if(a=a.tag,null!==s&&s===r)break;5!==a&&26!==a&&27!==a||null===u||(s=u,o?null!=(u=Xt(n,i))&&l.unshift(Pd(n,u,s)):o||null!=(u=Xt(n,i))&&l.push(Pd(n,u,s))),n=n.return}0!==l.length&&e.push({event:t,listeners:l})}x(Sd,"Cd"),x(kd,"xd"),x(Td,"Ed"),x(Pd,"Rd"),x(Ed,"Id"),x(zd,"Pd"),x(Id,"Td"),pe(Sd,"listenToAllSupportedEvents"),pe(kd,"addTrappedEventListener"),pe(Td,"dispatchEventForPluginEventSystem"),pe(Pd,"createDispatchListener"),pe(Ed,"accumulateTwoPhaseListeners"),pe(zd,"getParent"),pe(Id,"accumulateEnterLeaveListenersForEvent");var Rd=/\r\n?/g,Ad=/\u0000|\uFFFD/g;function Dd(e){return("string"==typeof e?e:""+e).replace(Rd,"\n").replace(Ad,"")}function Fd(e,t){return t=Dd(t),Dd(e)===t}function Ld(e,t,n,o,i,l){switch(n){case"children":"string"==typeof o?"body"===t||"textarea"===t&&""===o||Dt(e,o):("number"==typeof o||"bigint"==typeof o)&&"body"!==t&&Dt(e,""+o);break;case"className":yt(e,"class",o);break;case"tabIndex":yt(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":yt(e,n,o);break;case"style":Ot(e,o,l);break;case"data":if("object"!==t){yt(e,"data",o);break}case"src":case"href":if(""===o&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==o||"function"==typeof o||"symbol"==typeof o||"boolean"==typeof o){e.removeAttribute(n);break}o=Nt(""+o),e.setAttribute(n,o);break;case"action":case"formAction":if("function"==typeof o){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof l&&("formAction"===n?("input"!==t&&Ld(e,t,"name",i.name,i,null),Ld(e,t,"formEncType",i.formEncType,i,null),Ld(e,t,"formMethod",i.formMethod,i,null),Ld(e,t,"formTarget",i.formTarget,i,null)):(Ld(e,t,"encType",i.encType,i,null),Ld(e,t,"method",i.method,i,null),Ld(e,t,"target",i.target,i,null))),null==o||"symbol"==typeof o||"boolean"==typeof o){e.removeAttribute(n);break}o=Nt(""+o),e.setAttribute(n,o);break;case"onClick":null!=o&&(e.onclick=Wt);break;case"onScroll":null!=o&&_d("scroll",e);break;case"onScrollEnd":null!=o&&_d("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=o){if("object"!=typeof o||!("__html"in o))throw Error(r(61));if(null!=(n=o.__html)){if(null!=i.children)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=o&&"function"!=typeof o&&"symbol"!=typeof o;break;case"muted":e.muted=o&&"function"!=typeof o&&"symbol"!=typeof o;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==o||"function"==typeof o||"boolean"==typeof o||"symbol"==typeof o){e.removeAttribute("xlink:href");break}n=Nt(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,""+o):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===o?e.setAttribute(n,""):!1!==o&&null!=o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,o):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&!isNaN(o)&&1<=o?e.setAttribute(n,o):e.removeAttribute(n);break;case"rowSpan":case"start":null==o||"function"==typeof o||"symbol"==typeof o||isNaN(o)?e.removeAttribute(n):e.setAttribute(n,o);break;case"popover":_d("beforetoggle",e),_d("toggle",e),mt(e,"popover",o);break;case"xlinkActuate":bt(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":bt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":bt(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":bt(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":bt(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":bt(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":bt(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":bt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":bt(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":mt(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&mt(e,n=Bt.get(n)||n,o)}}function Od(e,t,n,o,i,l){switch(n){case"style":Ot(e,o,l);break;case"dangerouslySetInnerHTML":if(null!=o){if("object"!=typeof o||!("__html"in o))throw Error(r(61));if(null!=(n=o.__html)){if(null!=i.children)throw Error(r(60));e.innerHTML=n}}break;case"children":"string"==typeof o?Dt(e,o):("number"==typeof o||"bigint"==typeof o)&&Dt(e,""+o);break;case"onScroll":null!=o&&_d("scroll",e);break;case"onScrollEnd":null!=o&&_d("scrollend",e);break;case"onClick":null!=o&&(e.onclick=Wt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:ut.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),"function"==typeof(l=null!=(l=e[Xe]||null)?l[n]:null)&&e.removeEventListener(t,l,i),"function"!=typeof o)?n in e?e[n]=o:!0===o?e.setAttribute(n,""):mt(e,n,o):("function"!=typeof l&&null!==l&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,o,i)))}}function Md(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_d("error",e),_d("load",e);var o,i=!1,l=!1;for(o in n)if(n.hasOwnProperty(o)){var a=n[o];if(null!=a)switch(o){case"src":i=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ld(e,t,o,a,n,null)}}return l&&Ld(e,t,"srcSet",n.srcSet,n,null),void(i&&Ld(e,t,"src",n.src,n,null));case"input":_d("invalid",e);var s=o=a=l=null,u=null,c=null;for(i in n)if(n.hasOwnProperty(i)){var d=n[i];if(null!=d)switch(i){case"name":l=d;break;case"type":a=d;break;case"checked":u=d;break;case"defaultChecked":c=d;break;case"value":o=d;break;case"defaultValue":s=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(r(137,t));break;default:Ld(e,t,i,d,n,null)}}return void Et(e,o,s,u,c,a,l,!1);case"select":for(l in _d("invalid",e),i=a=o=null,n)if(n.hasOwnProperty(l)&&null!=(s=n[l]))switch(l){case"value":o=s;break;case"defaultValue":a=s;break;case"multiple":i=s;default:Ld(e,t,l,s,n,null)}return t=o,n=a,e.multiple=!!i,void(null!=t?It(e,!!i,t,!1):null!=n&&It(e,!!i,n,!0));case"textarea":for(a in _d("invalid",e),o=l=i=null,n)if(n.hasOwnProperty(a)&&null!=(s=n[a]))switch(a){case"value":i=s;break;case"defaultValue":l=s;break;case"children":o=s;break;case"dangerouslySetInnerHTML":if(null!=s)throw Error(r(91));break;default:Ld(e,t,a,s,n,null)}return void At(e,i,l,o);case"option":for(u in n)n.hasOwnProperty(u)&&null!=(i=n[u])&&("selected"===u?e.selected=i&&"function"!=typeof i&&"symbol"!=typeof i:Ld(e,t,u,i,n,null));return;case"dialog":_d("beforetoggle",e),_d("toggle",e),_d("cancel",e),_d("close",e);break;case"iframe":case"object":_d("load",e);break;case"video":case"audio":for(i=0;i<bd.length;i++)_d(bd[i],e);break;case"image":_d("error",e),_d("load",e);break;case"details":_d("toggle",e);break;case"embed":case"source":case"link":_d("error",e),_d("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&null!=(i=n[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ld(e,t,c,i,n,null)}return;default:if(Mt(t)){for(d in n)n.hasOwnProperty(d)&&void 0!==(i=n[d])&&Od(e,t,d,i,n,void 0);return}}for(s in n)n.hasOwnProperty(s)&&null!=(i=n[s])&&Ld(e,t,s,i,n,null)}function Bd(e,t,n,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,l=null,a=null,s=null,u=null,c=null,d=null;for(f in n){var h=n[f];if(n.hasOwnProperty(f)&&null!=h)switch(f){case"checked":case"value":break;case"defaultValue":u=h;default:o.hasOwnProperty(f)||Ld(e,t,f,null,o,h)}}for(var p in o){var f=o[p];if(h=n[p],o.hasOwnProperty(p)&&(null!=f||null!=h))switch(p){case"type":l=f;break;case"name":i=f;break;case"checked":c=f;break;case"defaultChecked":d=f;break;case"value":a=f;break;case"defaultValue":s=f;break;case"children":case"dangerouslySetInnerHTML":if(null!=f)throw Error(r(137,t));break;default:f!==h&&Ld(e,t,p,f,o,h)}}return void Pt(e,a,s,u,c,d,l,i);case"select":for(l in f=a=s=p=null,n)if(u=n[l],n.hasOwnProperty(l)&&null!=u)switch(l){case"value":break;case"multiple":f=u;default:o.hasOwnProperty(l)||Ld(e,t,l,null,o,u)}for(i in o)if(l=o[i],u=n[i],o.hasOwnProperty(i)&&(null!=l||null!=u))switch(i){case"value":p=l;break;case"defaultValue":s=l;break;case"multiple":a=l;default:l!==u&&Ld(e,t,i,l,o,u)}return t=s,n=a,o=f,void(null!=p?It(e,!!n,p,!1):!!o!=!!n&&(null!=t?It(e,!!n,t,!0):It(e,!!n,n?[]:"",!1)));case"textarea":for(s in f=p=null,n)if(i=n[s],n.hasOwnProperty(s)&&null!=i&&!o.hasOwnProperty(s))switch(s){case"value":case"children":break;default:Ld(e,t,s,null,o,i)}for(a in o)if(i=o[a],l=n[a],o.hasOwnProperty(a)&&(null!=i||null!=l))switch(a){case"value":p=i;break;case"defaultValue":f=i;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=i)throw Error(r(91));break;default:i!==l&&Ld(e,t,a,i,o,l)}return void Rt(e,p,f);case"option":for(var g in n)p=n[g],n.hasOwnProperty(g)&&null!=p&&!o.hasOwnProperty(g)&&("selected"===g?e.selected=!1:Ld(e,t,g,null,o,p));for(u in o)p=o[u],f=n[u],!o.hasOwnProperty(u)||p===f||null==p&&null==f||("selected"===u?e.selected=p&&"function"!=typeof p&&"symbol"!=typeof p:Ld(e,t,u,p,o,f));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var m in n)p=n[m],n.hasOwnProperty(m)&&null!=p&&!o.hasOwnProperty(m)&&Ld(e,t,m,null,o,p);for(c in o)if(p=o[c],f=n[c],o.hasOwnProperty(c)&&p!==f&&(null!=p||null!=f))switch(c){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(r(137,t));break;default:Ld(e,t,c,p,o,f)}return;default:if(Mt(t)){for(var y in n)p=n[y],n.hasOwnProperty(y)&&void 0!==p&&!o.hasOwnProperty(y)&&Od(e,t,y,void 0,o,p);for(d in o)p=o[d],f=n[d],!o.hasOwnProperty(d)||p===f||void 0===p&&void 0===f||Od(e,t,d,p,o,f);return}}for(var b in n)p=n[b],n.hasOwnProperty(b)&&null!=p&&!o.hasOwnProperty(b)&&Ld(e,t,b,null,o,p);for(h in o)p=o[h],f=n[h],!o.hasOwnProperty(h)||p===f||null==p&&null==f||Ld(e,t,h,p,o,f)}function Hd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Nd(){if("function"==typeof performance.getEntriesByType){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var o=n[r],i=o.transferSize,l=o.initiatorType,a=o.duration;if(i&&a&&Hd(l)){for(l=0,a=o.responseEnd,r+=1;r<n.length;r++){var s=n[r],u=s.startTime;if(u>a)break;var c=s.transferSize,d=s.initiatorType;c&&Hd(d)&&(l+=c*((s=s.responseEnd)<a?1:(a-u)/(s-u)))}if(--r,t+=8*(i+l)/(o.duration/1e3),10<++e)break}}if(0<e)return t/e/1e6}return navigator.connection&&"number"==typeof(e=navigator.connection.downlink)?e:5}x(Dd,"Nd"),x(Fd,"Fd"),x(Ld,"Dd"),x(Od,"Ld"),x(Md,"Od"),x(Bd,"Ad"),x(Hd,"Md"),x(Nd,"Hd"),pe(Dd,"normalizeMarkupForTextOrAttribute"),pe(Fd,"checkForUnmatchedText"),pe(Ld,"setProp"),pe(Od,"setPropOnCustomElement"),pe(Md,"setInitialProperties"),pe(Bd,"updateProperties"),pe(Hd,"isLikelyStaticResource"),pe(Nd,"estimateBandwidth");var Wd=null,Ud=null;function jd(e){return 9===e.nodeType?e:e.ownerDocument}function $d(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Vd(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function Gd(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}x(jd,"Wd"),x($d,"$d"),x(Vd,"Vd"),x(Gd,"Bd"),pe(jd,"getOwnerDocumentFromRootContainer"),pe($d,"getOwnHostContext"),pe(Vd,"getChildHostContextProd"),pe(Gd,"shouldSetTextContent");var qd=null;function Yd(){var e=window.event;return e&&"popstate"===e.type?e!==qd&&(qd=e,!0):(qd=null,!1)}x(Yd,"Kd"),pe(Yd,"shouldAttemptEagerTransition");var Xd="function"==typeof setTimeout?setTimeout:void 0,Kd="function"==typeof clearTimeout?clearTimeout:void 0,Qd="function"==typeof Promise?Promise:void 0,Jd="function"==typeof queueMicrotask?queueMicrotask:void 0!==Qd?function(e){return Qd.resolve(null).then(e).catch(Zd)}:Xd;function Zd(e){setTimeout(function(){throw e})}function eh(e){return"head"===e}function th(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)||"/&"===n){if(0===r)return e.removeChild(o),void Lp(t);r--}else if("$"===n||"$?"===n||"$~"===n||"$!"===n||"&"===n)r++;else if("html"===n)gh(e.ownerDocument.documentElement);else if("head"===n){gh(n=e.ownerDocument.head);for(var i=n.firstChild;i;){var l=i.nextSibling,a=i.nodeName;i[tt]||"SCRIPT"===a||"STYLE"===a||"LINK"===a&&"stylesheet"===i.rel.toLowerCase()||n.removeChild(i),i=l}}else"body"===n&&gh(e.ownerDocument.body);n=o}while(n);Lp(t)}function nh(e,t){var n=e;e=0;do{var r=n.nextSibling;if(1===n.nodeType?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",""===n.getAttribute("style")&&n.removeAttribute("style")):3===n.nodeType&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===e)break;e--}else"$"!==n&&"$?"!==n&&"$~"!==n&&"$!"!==n||e++;n=r}while(n)}function rh(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":rh(n),nt(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function oh(e,t,n,r){for(;1===e.nodeType;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[tt])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(i=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(i!==o.rel||e.getAttribute("href")!==(null==o.href||""===o.href?null:o.href)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin)||e.getAttribute("title")!==(null==o.title?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((i=e.getAttribute("src"))!==(null==o.src?null:o.src)||e.getAttribute("type")!==(null==o.type?null:o.type)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var i=null==o.name?null:""+o.name;if("hidden"===o.type&&e.getAttribute("name")===i)return e}if(null===(e=ch(e.nextSibling)))break}return null}function ih(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=ch(e.nextSibling)))return null}return e}function lh(e,t){for(;8!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t)return null;if(null===(e=ch(e.nextSibling)))return null}return e}function ah(e){return"$?"===e.data||"$~"===e.data}function sh(e){return"$!"===e.data||"$?"===e.data&&"loading"!==e.ownerDocument.readyState}function uh(e,t){var n=e.ownerDocument;if("$~"===e.data)e._reactRetry=t;else if("$?"!==e.data||"loading"!==n.readyState)t();else{var r=/* @__PURE__ */pe(function(){t(),n.removeEventListener("DOMContentLoaded",r)},"listener");n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function ch(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"$~"===t||"&"===t||"F!"===t||"F"===t)break;if("/$"===t||"/&"===t)return null}}return e}x(Zd,"Jd"),x(eh,"Zd"),x(th,"ef"),x(nh,"tf"),x(rh,"nf"),x(oh,"rf"),x(ih,"lf"),x(lh,"of"),x(ah,"af"),x(sh,"uf"),x(uh,"sf"),x(ch,"cf"),pe(Zd,"handleErrorInNextTick"),pe(eh,"isSingletonScope"),pe(th,"clearHydrationBoundary"),pe(nh,"hideOrUnhideDehydratedBoundary"),pe(rh,"clearContainerSparingly"),pe(oh,"canHydrateInstance"),pe(ih,"canHydrateTextInstance"),pe(lh,"canHydrateHydrationBoundary"),pe(ah,"isSuspenseInstancePending"),pe(sh,"isSuspenseInstanceFallback"),pe(uh,"registerSuspenseInstanceRetry"),pe(ch,"getNextHydratable");var dh=null;function hh(e){e=e.nextSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n||"/&"===n){if(0===t)return ch(e.nextSibling);t--}else"$"!==n&&"$!"!==n&&"$?"!==n&&"$~"!==n&&"&"!==n||t++}e=e.nextSibling}return null}function ph(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n||"$~"===n||"&"===n){if(0===t)return e;t--}else"/$"!==n&&"/&"!==n||t++}e=e.previousSibling}return null}function fh(e,t,n){switch(t=jd(n),e){case"html":if(!(e=t.documentElement))throw Error(r(452));return e;case"head":if(!(e=t.head))throw Error(r(453));return e;case"body":if(!(e=t.body))throw Error(r(454));return e;default:throw Error(r(451))}}function gh(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);nt(e)}x(hh,"ff"),x(ph,"pf"),x(fh,"mf"),x(gh,"hf"),pe(hh,"getNextHydratableInstanceAfterHydrationBoundary"),pe(ph,"getParentHydrationBoundary"),pe(fh,"resolveSingletonInstance"),pe(gh,"releaseSingletonInstance");var mh=/* @__PURE__ */new Map,yh=/* @__PURE__ */new Set;function bh(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}x(bh,"vf"),pe(bh,"getHoistableRoot");var vh=F.d;function wh(){var e=vh.f(),t=wc();return e||t}function _h(e){var t=ot(e);null!==t&&5===t.tag&&"form"===t.type?va(t):vh.r(e)}x(wh,"wf"),x(_h,"Sf"),F.d={f:wh,r:_h,D:Sh,C:kh,L:Th,m:Ph,X:zh,S:Eh,M:Ih},pe(wh,"flushSyncWork"),pe(_h,"requestFormReset");var xh="undefined"==typeof document?null:document;function Ch(e,t,n){var r=xh;if(r&&"string"==typeof t&&t){var o=Tt(t);o='link[rel="'+e+'"][href="'+o+'"]',"string"==typeof n&&(o+='[crossorigin="'+n+'"]'),yh.has(o)||(yh.add(o),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(o)&&(Md(t=r.createElement("link"),"link",e),at(t),r.head.appendChild(t)))}}function Sh(e){vh.D(e),Ch("dns-prefetch",e,null)}function kh(e,t){vh.C(e,t),Ch("preconnect",e,t)}function Th(e,t,n){vh.L(e,t,n);var r=xh;if(r&&e&&t){var o='link[rel="preload"][as="'+Tt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(o+='[imagesrcset="'+Tt(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(o+='[imagesizes="'+Tt(n.imageSizes)+'"]')):o+='[href="'+Tt(e)+'"]';var i=o;switch(t){case"style":i=Ah(e);break;case"script":i=Oh(e)}mh.has(i)||(e=d({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),mh.set(i,e),null!==r.querySelector(o)||"style"===t&&r.querySelector(Dh(i))||"script"===t&&r.querySelector(Mh(i))||(Md(t=r.createElement("link"),"link",e),at(t),r.head.appendChild(t)))}}function Ph(e,t){vh.m(e,t);var n=xh;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",o='link[rel="modulepreload"][as="'+Tt(r)+'"][href="'+Tt(e)+'"]',i=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Oh(e)}if(!mh.has(i)&&(e=d({rel:"modulepreload",href:e},t),mh.set(i,e),null===n.querySelector(o))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Mh(i)))return}Md(r=n.createElement("link"),"link",e),at(r),n.head.appendChild(r)}}}function Eh(e,t,n){vh.S(e,t,n);var r=xh;if(r&&e){var o=lt(r).hoistableStyles,i=Ah(e);t=t||"default";var l=o.get(i);if(!l){var a={loading:0,preload:null};if(l=r.querySelector(Dh(i)))a.loading=5;else{e=d({rel:"stylesheet",href:e,"data-precedence":t},n),(n=mh.get(i))&&Nh(e,n);var s=l=r.createElement("link");at(s),Md(s,"link",e),s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),s.addEventListener("load",function(){a.loading|=1}),s.addEventListener("error",function(){a.loading|=2}),a.loading|=4,Hh(l,t,r)}l={type:"stylesheet",instance:l,count:1,state:a},o.set(i,l)}}}function zh(e,t){vh.X(e,t);var n=xh;if(n&&e){var r=lt(n).hoistableScripts,o=Oh(e),i=r.get(o);i||((i=n.querySelector(Mh(o)))||(e=d({src:e,async:!0},t),(t=mh.get(o))&&Wh(e,t),at(i=n.createElement("script")),Md(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}}function Ih(e,t){vh.M(e,t);var n=xh;if(n&&e){var r=lt(n).hoistableScripts,o=Oh(e),i=r.get(o);i||((i=n.querySelector(Mh(o)))||(e=d({src:e,async:!0,type:"module"},t),(t=mh.get(o))&&Wh(e,t),at(i=n.createElement("script")),Md(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}}function Rh(e,t,n,o){var i=(i=V.current)?bh(i):null;if(!i)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=Ah(n.href),(o=(n=lt(i).hoistableStyles).get(t))||(o={type:"style",instance:null,count:0,state:null},n.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=Ah(n.href);var l=lt(i).hoistableStyles,a=l.get(e);if(a||(i=i.ownerDocument||i,a={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},l.set(e,a),(l=i.querySelector(Dh(e)))&&!l._p&&(a.instance=l,a.state.loading=5),mh.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},mh.set(e,n),l||Lh(i,e,n,a.state))),t&&null===o)throw Error(r(528,""));return a}if(t&&null!==o)throw Error(r(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=Oh(n),(o=(n=lt(i).hoistableScripts).get(t))||(o={type:"script",instance:null,count:0,state:null},n.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Ah(e){return'href="'+Tt(e)+'"'}function Dh(e){return'link[rel="stylesheet"]['+e+"]"}function Fh(e){return d({},e,{"data-precedence":e.precedence,precedence:null})}function Lh(e,t,n,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),Md(t,"link",n),at(t),e.head.appendChild(t))}function Oh(e){return'[src="'+Tt(e)+'"]'}function Mh(e){return"script[async]"+e}function Bh(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+Tt(n.href)+'"]');if(o)return t.instance=o,at(o),o;var i=d({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return at(o=(e.ownerDocument||e).createElement("style")),Md(o,"style",i),Hh(o,n.precedence,e),t.instance=o;case"stylesheet":i=Ah(n.href);var l=e.querySelector(Dh(i));if(l)return t.state.loading|=4,t.instance=l,at(l),l;o=Fh(n),(i=mh.get(i))&&Nh(o,i),at(l=(e.ownerDocument||e).createElement("link"));var a=l;return a._p=new Promise(function(e,t){a.onload=e,a.onerror=t}),Md(l,"link",o),t.state.loading|=4,Hh(l,n.precedence,e),t.instance=l;case"script":return l=Oh(n.src),(i=e.querySelector(Mh(l)))?(t.instance=i,at(i),i):(o=n,(i=mh.get(l))&&Wh(o=d({},n),i),at(i=(e=e.ownerDocument||e).createElement("script")),Md(i,"link",o),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(r(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(o=t.instance,t.state.loading|=4,Hh(o,n.precedence,e));return t.instance}function Hh(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,i=o,l=0;l<r.length;l++){var a=r[l];if(a.dataset.precedence===t)i=a;else if(i!==o)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Nh(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function Wh(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}x(Ch,"Cf"),x(Sh,"xf"),x(kh,"Ef"),x(Th,"Rf"),x(Ph,"If"),x(Eh,"Pf"),x(zh,"Tf"),x(Ih,"zf"),x(Rh,"_f"),x(Ah,"Nf"),x(Dh,"Ff"),x(Fh,"Df"),x(Lh,"Lf"),x(Oh,"Of"),x(Mh,"Af"),x(Bh,"Mf"),x(Hh,"Hf"),x(Nh,"Uf"),x(Wh,"jf"),pe(Ch,"preconnectAs"),pe(Sh,"prefetchDNS"),pe(kh,"preconnect"),pe(Th,"preload"),pe(Ph,"preloadModule"),pe(Eh,"preinitStyle"),pe(zh,"preinitScript"),pe(Ih,"preinitModuleScript"),pe(Rh,"getResource"),pe(Ah,"getStyleKey"),pe(Dh,"getStylesheetSelectorFromKey"),pe(Fh,"stylesheetPropsFromRawProps"),pe(Lh,"preloadStylesheet"),pe(Oh,"getScriptKey"),pe(Mh,"getScriptSelectorFromKey"),pe(Bh,"acquireResource"),pe(Hh,"insertStylesheet"),pe(Nh,"adoptPreloadPropsForStylesheet"),pe(Wh,"adoptPreloadPropsForScript");var Uh=null;function jh(e,t,n){if(null===Uh){var r=/* @__PURE__ */new Map,o=Uh=/* @__PURE__ */new Map;o.set(n,r)}else(r=(o=Uh).get(n))||(r=/* @__PURE__ */new Map,o.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var i=n[o];if(!(i[tt]||i[Ye]||"link"===e&&"stylesheet"===i.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==i.namespaceURI){var l=i.getAttribute(t)||"";l=e+l;var a=r.get(l);a?a.push(i):r.set(l,[i])}}return r}function $h(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function Vh(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"==typeof t.precedence&&null==e);case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}function Gh(e){return!!("stylesheet"!==e.type||3&e.state.loading)}function qh(e,t,n,r){if(!("stylesheet"!==n.type||"string"==typeof r.media&&!1===matchMedia(r.media).matches||4&n.state.loading)){if(null===n.instance){var o=Ah(r.href),i=t.querySelector(Dh(o));if(i)return null!==(t=i._p)&&"object"==typeof t&&"function"==typeof t.then&&(e.count++,e=Kh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,void at(i);i=t.ownerDocument||t,r=Fh(r),(o=mh.get(o))&&Nh(r,o),at(i=i.createElement("link"));var l=i;l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),Md(i,"link",r),n.instance=i}null===e.stylesheets&&(e.stylesheets=/* @__PURE__ */new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(3&n.state.loading)&&(e.count++,n=Kh.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}x(jh,"$f"),x($h,"Vf"),x(Vh,"Bf"),x(Gh,"qf"),x(qh,"Kf"),pe(jh,"getHydratableHoistableCache"),pe($h,"mountHoistable"),pe(Vh,"isHostHoistableType"),pe(Gh,"preloadResource"),pe(qh,"suspendResource");var Yh=0;function Xh(e,t){return e.stylesheets&&0===e.count&&Jh(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Jh(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&0===Yh&&(Yh=62500*Nd());var o=setTimeout(function(){if(e.waitingForImages=!1,0===e.count&&(e.stylesheets&&Jh(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Yh?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(o)}}:null}function Kh(){if(this.count--,0===this.count&&(0===this.imgCount||!this.waitingForImages))if(this.stylesheets)Jh(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}x(Xh,"Gf"),x(Kh,"Yf"),pe(Xh,"waitForCommitToBeReady"),pe(Kh,"onUnsuspend");var Qh=null;function Jh(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,Qh=/* @__PURE__ */new Map,t.forEach(Zh,e),Qh=null,Kh.call(e))}function Zh(e,t){if(!(4&t.state.loading)){var n=Qh.get(e);if(n)var r=n.get(null);else{n=/* @__PURE__ */new Map,Qh.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<o.length;i++){var l=o[i];"LINK"!==l.nodeName&&"not all"===l.getAttribute("media")||(n.set(l.dataset.precedence,l),r=l)}r&&n.set(null,r)}l=(o=t.instance).getAttribute("data-precedence"),(i=n.get(l)||r)===r&&n.set(null,o),n.set(l,o),this.count++,r=Kh.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),i?i.parentNode.insertBefore(o,i.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(o,e.firstChild),t.state.loading|=4}}x(Jh,"Jf"),x(Zh,"Zf"),pe(Jh,"insertSuspendedStylesheets"),pe(Zh,"insertStylesheetIntoRoot");var ep={$$typeof:v,Provider:null,Consumer:null,_currentValue:L,_currentValue2:L,_threadCount:0};function tp(e,t,n,r,o,i,l,a,s){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Oe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Oe(0),this.hiddenUpdates=Oe(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=i,this.onRecoverableError=l,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=/* @__PURE__ */new Map}function np(e,t,n,r,o,i,l,a,s,u,c,d){return e=new tp(e,t,n,l,s,u,c,d,a),t=1,!0===i&&(t|=24),i=Kr(3,null,null,t),e.current=i,i.stateNode=e,(t=Jo()).refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:r,isDehydrated:n,cache:t},Ri(i),e}function rp(e){return e?e=Yr:Yr}function op(e,t,n,r,o,i){o=rp(o),null===r.context?r.context=o:r.pendingContext=o,(r=Di(t)).payload={element:n},null!==(i=void 0===i?null:i)&&(r.callback=i),null!==(n=Fi(e,r,t))&&(gc(n,0,t),Li(n,e,t))}function ip(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function lp(e,t){ip(e,t),(e=e.alternate)&&ip(e,t)}function ap(e){if(13===e.tag||31===e.tag){var t=Vr(e,67108864);null!==t&&gc(t,0,67108864),lp(e,67108864)}}function sp(e){if(13===e.tag||31===e.tag){var t=pc(),n=Vr(e,t=je(t));null!==n&&gc(n,0,t),lp(e,t)}}x(tp,"tp"),x(np,"np"),x(rp,"rp"),x(op,"lp"),x(ip,"op"),x(lp,"ap"),x(ap,"ip"),x(sp,"up"),pe(tp,"FiberRootNode"),pe(np,"createFiberRoot"),pe(rp,"getContextForSubtree"),pe(op,"updateContainerImpl"),pe(ip,"markRetryLaneImpl"),pe(lp,"markRetryLaneIfNotHydrated"),pe(ap,"attemptContinuousHydration"),pe(sp,"attemptHydrationAtCurrentPriority");var up=!0;function cp(e,t,n,r){var o=D.T;D.T=null;var i=F.p;try{F.p=2,hp(e,t,n,r)}finally{F.p=i,D.T=o}}function dp(e,t,n,r){var o=D.T;D.T=null;var i=F.p;try{F.p=8,hp(e,t,n,r)}finally{F.p=i,D.T=o}}function hp(e,t,n,r){if(up){var o=pp(r);if(null===o)Td(e,t,r,fp,n),kp(e,r);else if(Pp(o,e,t,n,r))r.stopPropagation();else if(kp(e,r),4&t&&-1<Sp.indexOf(e)){for(;null!==o;){var i=ot(o);if(null!==i)switch(i.tag){case 3:if((i=i.stateNode).current.memoizedState.isDehydrated){var l=ze(i.pendingLanes);if(0!==l){var a=i;for(a.pendingLanes|=2,a.entangledLanes|=2;l;){var s=1<<31-_e(l);a.entanglements[1]|=s,l&=~s}od(i),!(6&Fu)&&(tc=ae()+500,id(0))}}break;case 31:case 13:null!==(a=Vr(i,2))&&gc(a,0,2),wc(),lp(i,2)}if(null===(i=pp(r))&&Td(e,t,r,fp,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Td(e,t,r,null,n)}}function pp(e){return gp(e=jt(e))}x(cp,"cp"),x(dp,"dp"),x(hp,"fp"),x(pp,"pp"),pe(cp,"dispatchDiscreteEvent"),pe(dp,"dispatchContinuousEvent"),pe(hp,"dispatchEvent"),pe(pp,"findInstanceBlockingEvent");var fp=null;function gp(e){if(fp=null,null!==(e=rt(e))){var t=i(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=l(t)))return e;e=null}else if(31===n){if(null!==(e=a(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return fp=e,null}function mp(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(se()){case ue:return 2;case ce:return 8;case de:case he:return 32;case fe:return 268435456;default:return 32}default:return 32}}x(gp,"hp"),x(mp,"gp"),pe(gp,"findInstanceBlockingTarget"),pe(mp,"getEventPriority");var yp=!1,bp=null,vp=null,wp=null,_p=/* @__PURE__ */new Map,xp=/* @__PURE__ */new Map,Cp=[],Sp="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function kp(e,t){switch(e){case"focusin":case"focusout":bp=null;break;case"dragenter":case"dragleave":vp=null;break;case"mouseover":case"mouseout":wp=null;break;case"pointerover":case"pointerout":_p.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xp.delete(t.pointerId)}}function Tp(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&null!==(t=ot(t))&&ap(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Pp(e,t,n,r,o){switch(t){case"focusin":return bp=Tp(bp,e,t,n,r,o),!0;case"dragenter":return vp=Tp(vp,e,t,n,r,o),!0;case"mouseover":return wp=Tp(wp,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return _p.set(i,Tp(_p.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,xp.set(i,Tp(xp.get(i)||null,e,t,n,r,o)),!0}return!1}function Ep(e){var t=rt(e.target);if(null!==t){var n=i(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=l(n)))return e.blockedOn=t,void Ge(e.priority,function(){sp(n)})}else if(31===t){if(null!==(t=a(n)))return e.blockedOn=t,void Ge(e.priority,function(){sp(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function zp(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=pp(e.nativeEvent);if(null!==n)return null!==(t=ot(n))&&ap(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Ut=r,n.target.dispatchEvent(r),Ut=null,t.shift()}return!0}function Ip(e,t,n){zp(e)&&n.delete(t)}function Rp(){yp=!1,null!==bp&&zp(bp)&&(bp=null),null!==vp&&zp(vp)&&(vp=null),null!==wp&&zp(wp)&&(wp=null),_p.forEach(Ip),xp.forEach(Ip)}function Ap(t,n){t.blockedOn===n&&(t.blockedOn=null,yp||(yp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Rp)))}x(kp,"Ep"),x(Tp,"Rp"),x(Pp,"Ip"),x(Ep,"Pp"),x(zp,"Tp"),x(Ip,"zp"),x(Rp,"_p"),x(Ap,"Np"),pe(kp,"clearIfContinuousEvent"),pe(Tp,"accumulateOrCreateContinuousQueuedReplayableEvent"),pe(Pp,"queueIfContinuousEvent"),pe(Ep,"attemptExplicitHydrationTarget"),pe(zp,"attemptReplayContinuousQueuedEvent"),pe(Ip,"attemptReplayContinuousQueuedEventInMap"),pe(Rp,"replayUnblockedEvents"),pe(Ap,"scheduleCallbackIfUnblocked");var Dp=null;function Fp(t){Dp!==t&&(Dp=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Dp===t&&(Dp=null);for(var e=0;e<t.length;e+=3){var n=t[e],r=t[e+1],o=t[e+2];if("function"!=typeof r){if(null===gp(r||n))continue;break}var i=ot(n);null!==i&&(t.splice(e,3),e-=3,ya(i,{pending:!0,data:o,method:n.method,action:r},r,o))}}))}function Lp(e){function t(t){return Ap(t,e)}x(t,"n"),pe(t,"unblock"),null!==bp&&Ap(bp,e),null!==vp&&Ap(vp,e),null!==wp&&Ap(wp,e),_p.forEach(t),xp.forEach(t);for(var n=0;n<Cp.length;n++){var r=Cp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Cp.length&&null===(n=Cp[0]).blockedOn;)Ep(n),null===n.blockedOn&&Cp.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var o=n[r],i=n[r+1],l=o[Xe]||null;if("function"==typeof i)l||Fp(n);else if(l){var a=null;if(i&&i.hasAttribute("formAction")){if(o=i,l=i[Xe]||null)a=l.formAction;else if(null!==gp(o))continue}else a=l.action;"function"==typeof a?n[r+1]=a:(n.splice(r,3),r-=3),Fp(n)}}}function Op(){function e(e){e.canIntercept&&"react-transition"===e.info&&e.intercept({handler:/* @__PURE__ */pe(function(){return new Promise(function(e){return o=e})},"handler"),focusReset:"manual",scroll:"manual"})}function t(){null!==o&&(o(),o=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&null!=e.url&&navigation.navigate(e.url,{state:e.getState(),info:"react-transition",history:"replace"})}}if(x(e,"e"),x(t,"n"),x(n,"r"),pe(e,"handleNavigate"),pe(t,"handleNavigateComplete"),pe(n,"startFakeNavigation"),"object"==typeof navigation){var r=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),null!==o&&(o(),o=null)}}}function Mp(e){this._internalRoot=e}function Bp(e){this._internalRoot=e}x(Fp,"Dp"),x(Lp,"Lp"),x(Op,"Op"),x(Mp,"Ap"),x(Bp,"Mp"),pe(Fp,"scheduleReplayQueueIfNeeded"),pe(Lp,"retryIfBlockedOn"),pe(Op,"defaultOnDefaultTransitionIndicator"),pe(Mp,"ReactDOMRoot"),Bp.prototype.render=Mp.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(r(409));op(t.current,pc(),e,t,null,null)},Bp.prototype.unmount=Mp.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;op(e.current,2,null,e,null,null),wc(),t[Ke]=null}},pe(Bp,"ReactDOMHydrationRoot"),Bp.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ve();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Cp.length&&0!==t&&t<Cp[n].priority;n++);Cp.splice(n,0,e),0===n&&Ep(e)}};var Hp=t.version;if("19.2.4"!==Hp)throw Error(r(527,Hp,"19.2.4"));F.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(r(188));throw e=Object.keys(e).join(","),Error(r(268,e))}return null===(e=null!==(e=u(t))?c(e):null)?null:e.stateNode};var Np={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.4"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Wp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wp.isDisabled&&Wp.supportsFiber)try{ye=Wp.inject(Np),be=Wp}catch(jp){}}return Te.createRoot=function(e,t){if(!o(e))throw Error(r(299));var n=!1,i="",l=Na,a=Wa,s=Ua;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(i=t.identifierPrefix),void 0!==t.onUncaughtError&&(l=t.onUncaughtError),void 0!==t.onCaughtError&&(a=t.onCaughtError),void 0!==t.onRecoverableError&&(s=t.onRecoverableError)),t=np(e,1,!1,null,0,n,i,null,l,a,s,Op),e[Ke]=t.current,Sd(e),new Mp(t)},Te.hydrateRoot=function(e,t,n){if(!o(e))throw Error(r(299));var i=!1,l="",a=Na,s=Wa,u=Ua,c=null;return null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(l=n.identifierPrefix),void 0!==n.onUncaughtError&&(a=n.onUncaughtError),void 0!==n.onCaughtError&&(s=n.onCaughtError),void 0!==n.onRecoverableError&&(u=n.onRecoverableError),void 0!==n.formState&&(c=n.formState)),(t=np(e,1,!0,t,0,i,l,c,a,s,u,Op)).context=rp(null),n=t.current,(l=Di(i=je(i=pc()))).callback=null,Fi(n,l,i),n=i,t.current.lanes=n,Me(t,n),od(t),e[Ke]=t.current,Sd(e),new Bp(t)},Te.version="19.2.4",Te}function Ne(){if(Fe)return ke.exports;function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return x(e,"e"),Fe=1,pe(e,"checkDCE"),e(),ke.exports=He(),ke.exports}x(Me,"N$1"),x(Be,"F$1"),x(He,"D$1"),x(Ne,"L$1"),pe(Me,"requireReactDom_production"),pe(Be,"requireReactDom"),pe(He,"requireReactDomClient_production"),pe(Ne,"requireClient");var We,Ue,je=Ne(),$e={exports:{}},Ve={};function Ge(){if(We)return Ve;We=1;var e=/* @__PURE__ */Symbol.for("react.transitional.element"),t=/* @__PURE__ */Symbol.for("react.fragment");function n(t,n,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==n.key&&(o=""+n.key),"key"in n)for(var i in r={},n)"key"!==i&&(r[i]=n[i]);else r=n;return n=r.ref,{$$typeof:e,type:t,key:o,ref:void 0!==n?n:null,props:r}}return x(n,"r"),pe(n,"jsxProd"),Ve.Fragment=t,Ve.jsx=n,Ve.jsxs=n,Ve}function qe(){return Ue||(Ue=1,$e.exports=Ge()),$e.exports}x(Ge,"j$1"),x(qe,"W"),pe(Ge,"requireReactJsxRuntime_production"),pe(qe,"requireJsxRuntime");var Ye=qe(),Xe=Be();function Ke(e,t,n){const r="function"==typeof e.colSpan?e.colSpan(n):1;if(Number.isInteger(r)&&r>1&&(!e.frozen||e.idx+r-1<=t))return r}function Qe(e){e.stopPropagation()}function Je(e,t="instant"){e?.scrollIntoView({inline:"nearest",block:"nearest",behavior:t})}function Ze(e){let t=!1;const n={...e,preventGridDefault(){t=!0},isGridDefaultPrevented:/* @__PURE__ */x(()=>t,"isGridDefaultPrevented")};return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),n}x(Ke,"B"),x(Qe,"q$1"),x(Je,"K$1"),x(Ze,"Q$1"),pe(Ke,"getColSpan"),pe(Qe,"stopPropagation"),pe(Je,"scrollIntoView"),pe(Ze,"createCellEvent");const et=/* @__PURE__ */new Set(["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","Meta","NumLock","ScrollLock","Shift","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Insert","ContextMenu","Escape","Pause","Play","PrintScreen","F1","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]);function tt(e){return(e.ctrlKey||e.metaKey)&&"Control"!==e.key}function nt(e,t){return(!tt(e)||86===e.keyCode&&!t)&&!et.has(e.key)}function rt({key:e,target:t}){return"Tab"===e&&(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement)&&1===t.closest(".rdg-editor-container")?.querySelectorAll("input, textarea, select").length}function ot(e){const t="rtl"===e;return{leftKey:t?"ArrowRight":"ArrowLeft",rightKey:t?"ArrowLeft":"ArrowRight"}}function it(e){return e.map(({key:e,idx:t,minWidth:n,maxWidth:r})=>/* @__PURE__ */Ye.jsx("div",{className:"rdg-7-0-0-beta-58-fa71d63e",style:{gridColumnStart:t+1,minWidth:n,maxWidth:r},"data-measuring-cell-key":e},e))}function lt({selectedPosition:e,columns:t,rows:n}){return at(t[e.idx],n[e.rowIdx])}function at(e,t){return null!=e.renderEditCell&&!1!==("function"==typeof e.editable?e.editable(t):e.editable)}function st({rows:e,topSummaryRows:t,bottomSummaryRows:n,rowIdx:r,mainHeaderRowIdx:o,lastFrozenColumnIndex:i,column:l}){const a=t?.length??0;return r===o?Ke(l,i,{type:"HEADER"}):t&&r>o&&r<=a+o?Ke(l,i,{type:"SUMMARY",row:t[r+a]}):r>=0&&r<e.length?Ke(l,i,{type:"ROW",row:e[r]}):n?Ke(l,i,{type:"SUMMARY",row:n[r-e.length]}):void 0}function ut({moveUp:e,moveNext:t,cellNavigationMode:n,columns:r,colSpanColumns:o,rows:i,topSummaryRows:l,bottomSummaryRows:a,minRowIdx:s,mainHeaderRowIdx:u,maxRowIdx:c,currentPosition:{idx:d,rowIdx:h},nextPosition:p,lastFrozenColumnIndex:f,isCellWithinBounds:g}){let{idx:m,rowIdx:y}=p;const b=r.length,v=/* @__PURE__ */pe(e=>{for(const t of o){const n=t.idx;if(n>m)break;const r=st({rows:i,topSummaryRows:l,bottomSummaryRows:a,rowIdx:y,mainHeaderRowIdx:u,lastFrozenColumnIndex:f,column:t});if(r&&m>n&&m<r+n){m=n+(e?r:0);break}}},"setColSpan"),w=/* @__PURE__ */pe(e=>e.level+u,"getParentRowIdx"),_=/* @__PURE__ */pe(()=>{if(t){let e=r[m].parent;for(;void 0!==e;){const t=w(e);if(y===t){m=e.idx+e.colSpan;break}e=e.parent}}else if(e){let e=r[m].parent,t=!1;for(;void 0!==e;){const n=w(e);if(y>=n){m=e.idx,y=n,t=!0;break}e=e.parent}t||(m=d,y=h)}},"setHeaderGroupColAndRowSpan");if(g(p)&&(v(t),y<u&&_()),"CHANGE_ROW"===n){const e=-1===m;m===b?y!==c&&(m=0,y+=1):e&&(y!==s&&(y-=1,m=b-1),v(!1))}if(y<u&&m>-1&&m<b){let e=r[m].parent;const t=y;for(y=u;void 0!==e;){const n=w(e);n>=t&&(y=n,m=e.idx),e=e.parent}}return{idx:m,rowIdx:y}}function ct({maxColIdx:e,minRowIdx:t,maxRowIdx:n,selectedPosition:{rowIdx:r,idx:o},shiftKey:i}){return i?0===o&&r===t:o===e&&r===n}x(tt,"Y$1"),pe(tt,"isCtrlKeyHeldDown"),x(nt,"X$1"),x(rt,"J$1"),x(ot,"Z$1"),pe(nt,"isDefaultCellInput"),pe(rt,"onEditorNavigation"),pe(ot,"getLeftRightKey"),x(it,"ee$1"),x(lt,"te$1"),x(at,"ne$1"),x(st,"re$1"),x(ut,"le$1"),x(ct,"oe$1"),pe(it,"renderMeasuringCells"),pe(lt,"isSelectedCellEditable"),pe(at,"isCellEditableUtil"),pe(st,"getSelectedCellColSpan"),pe(ut,"getNextSelectedCellPosition"),pe(ct,"canExitGrid");const dt="rdg-cell rdg-7-0-0-beta-58-85c48527",ht="rdg-cell-frozen rdg-7-0-0-beta-58-17a9a6d4";function pt(e){return{"--rdg-grid-row-start":e}}function ft(e,t,n){const r=t+1,o=`calc(${n-1} * var(--rdg-header-row-height))`;return void 0===e.parent?{insetBlockStart:0,gridRowStart:1,gridRowEnd:r,paddingBlockStart:o}:{insetBlockStart:`calc(${t-n} * var(--rdg-header-row-height))`,gridRowStart:r-n,gridRowEnd:r,paddingBlockStart:o}}function gt(e,t=1){const n=e.idx+1;return{gridColumnStart:n,gridColumnEnd:n+t,insetInlineStart:e.frozen?`var(--rdg-frozen-left-${e.idx})`:void 0}}function mt(...e){let t="";for(const n of e)if(n)if("string"==typeof n)t+=` ${n}`;else if("object"==typeof n)for(const e in n)n[e]&&(t+=` ${e}`);return t.trimStart()}function yt(e,...t){return mt(dt,{[ht]:e.frozen},...t)}x(pt,"ue"),x(ft,"se$1"),x(gt,"ce"),x(mt,"de$1"),x(yt,"fe"),pe(pt,"getRowStyle"),pe(ft,"getHeaderCellStyle"),pe(gt,"getCellStyle"),pe(mt,"classnames"),pe(yt,"getCellClassname");const{min:bt,max:vt,floor:wt,sign:_t,abs:xt}=Math;function Ct(e){if("function"!=typeof e)throw new Error("Please specify the rowKeyGetter prop to use selection")}function St(e,{minWidth:t,maxWidth:n}){return e=vt(e,t),"number"==typeof n&&n>=t?bt(e,n):e}function kt(e,t){return void 0===e.parent?t:e.level-e.parent.level}function Tt({onChange:e,indeterminate:t,...n}){function r(t){e(t.target.checked,t.nativeEvent.shiftKey)}return x(r,"l"),pe(r,"handleChange"),/* @__PURE__ */Ye.jsx("input",{ref:/* @__PURE__ */pe(e=>{e&&(e.indeterminate=!0===t)},"ref"),type:"checkbox",className:"rdg-checkbox-input rdg-7-0-0-beta-58-3b807ead",onChange:r,...n})}function Pt(e){try{return e.row[e.column.key]}catch{return null}}x(Ct,"ve"),x(St,"be"),x(kt,"we"),pe(Ct,"assertIsValidKeyGetter"),pe(St,"clampColumnWidth"),pe(kt,"getHeaderCellRowSpan"),x(Tt,"Se"),x(Pt,"ke"),pe(Tt,"renderCheckbox"),pe(Pt,"renderValue");const Et=_e.createContext(void 0);function zt(){return _e.useContext(Et)}function It({value:e,tabIndex:t,indeterminate:n,disabled:r,onChange:o,"aria-label":i,"aria-labelledby":l}){return(0,zt().renderCheckbox)({"aria-label":i,"aria-labelledby":l,tabIndex:t,indeterminate:n,disabled:r,checked:e,onChange:o})}x(zt,"xe"),x(It,"Ee"),pe(zt,"useDefaultRenderers"),pe(It,"SelectCellFormatter");const Rt=_e.createContext(void 0),At=_e.createContext(void 0);function Dt(){const e=_e.useContext(Rt),t=_e.useContext(At);if(void 0===e||void 0===t)throw new Error("useRowSelection must be used within renderCell");return{isRowSelectionDisabled:e.isRowSelectionDisabled,isRowSelected:e.isRowSelected,onRowSelectionChange:t}}x(Dt,"Pe"),pe(Dt,"useRowSelection");const Ft=_e.createContext(void 0),Lt=_e.createContext(void 0);function Ot(){const e=_e.useContext(Ft),t=_e.useContext(Lt);if(void 0===e||void 0===t)throw new Error("useHeaderRowSelection must be used within renderHeaderCell");return{isIndeterminate:e.isIndeterminate,isRowSelected:e.isRowSelected,onRowSelectionChange:t}}x(Ot,"_e"),pe(Ot,"useHeaderRowSelection");const Mt="rdg-select-column";function Bt(e){const{isIndeterminate:t,isRowSelected:n,onRowSelectionChange:r}=Ot();return Ye.jsx(It,{"aria-label":"Select All",tabIndex:e.tabIndex,indeterminate:t,value:n,onChange:/* @__PURE__ */pe(e=>{r({checked:!t&&e})},"onChange")})}function Ht(e){const{isRowSelectionDisabled:t,isRowSelected:n,onRowSelectionChange:r}=Dt();return Ye.jsx(It,{"aria-label":"Select",tabIndex:e.tabIndex,disabled:t,value:n,onChange:/* @__PURE__ */pe((t,n)=>{r({row:e.row,checked:t,isShiftClick:n})},"onChange")})}function Nt(e){const{isRowSelected:t,onRowSelectionChange:n}=Dt();return Ye.jsx(It,{"aria-label":"Select Group",tabIndex:e.tabIndex,value:t,onChange:/* @__PURE__ */pe(t=>{n({row:e.row,checked:t,isShiftClick:!1})},"onChange")})}x(Bt,"Fe"),x(Ht,"De"),x(Nt,"Le"),pe(Bt,"HeaderRenderer"),pe(Ht,"SelectFormatter"),pe(Nt,"SelectGroupFormatter");const Wt={key:Mt,name:"",width:35,minWidth:35,maxWidth:35,resizable:!1,sortable:!1,frozen:!0,renderHeaderCell:/* @__PURE__ */x(e=>/* @__PURE__ */Ye.jsx(Bt,{...e}),"renderHeaderCell"),renderCell:/* @__PURE__ */x(e=>/* @__PURE__ */Ye.jsx(Ht,{...e}),"renderCell"),renderGroupCell:/* @__PURE__ */x(e=>/* @__PURE__ */Ye.jsx(Nt,{...e}),"renderGroupCell")};function Ut({column:e,sortDirection:t,priority:n}){return e.sortable?/* @__PURE__ */Ye.jsx(jt,{sortDirection:t,priority:n,children:e.name}):e.name}function jt({sortDirection:e,priority:t,children:n}){const r=zt().renderSortStatus;return Ye.jsxs("span",{className:"rdg-7-0-0-beta-58-56a248e4",children:[/* @__PURE__ */Ye.jsx("span",{className:"rdg-header-sort-name rdg-7-0-0-beta-58-7fad8c83",children:n}),/* @__PURE__ */Ye.jsx("span",{children:r({sortDirection:e,priority:t})})]})}function $t({rawColumns:e,defaultColumnOptions:t,getColumnWidth:n,viewportWidth:r,scrollLeft:o,enableVirtualization:i}){const l=t?.width??"auto",a=t?.minWidth??50,s=t?.maxWidth??void 0,u=t?.renderCell??Pt,c=t?.renderHeaderCell??Ut,d=t?.sortable??!1,h=t?.resizable??!1,p=t?.draggable??!1,{columns:f,colSpanColumns:g,lastFrozenColumnIndex:m,headerRowsCount:y}=_e.useMemo(()=>{let t=-1,n=1;const r=[];function o(e,i,f){for(const g of e){if("children"in g){const e={name:g.name,parent:f,idx:-1,colSpan:0,level:0,headerCellClass:g.headerCellClass};o(g.children,i+1,e);continue}const e=g.frozen??!1,m={...g,parent:f,idx:0,level:0,frozen:e,width:g.width??l,minWidth:g.minWidth??a,maxWidth:g.maxWidth??s,sortable:g.sortable??d,resizable:g.resizable??h,draggable:g.draggable??p,renderCell:g.renderCell??u,renderHeaderCell:g.renderHeaderCell??c};r.push(m),e&&t++,i>n&&(n=i)}}x(o,"o"),o(e,1),pe(o,"collectColumns"),r.sort(({key:e,frozen:t},{key:n,frozen:r})=>e===Mt?-1:n===Mt?1:t?r?0:-1:r?1:0);const i=[];return r.forEach((e,t)=>{e.idx=t,Vt(e,t,0),null!=e.colSpan&&i.push(e)}),{columns:r,colSpanColumns:i,lastFrozenColumnIndex:t,headerRowsCount:n}},[e,l,a,s,u,c,h,d,p]),{templateColumns:b,layoutCssVars:v,totalFrozenColumnWidth:w,columnMetrics:_}=_e.useMemo(()=>{const e=/* @__PURE__ */new Map;let t=0,r=0;const o=[];for(const l of f){let r=n(l);r="number"==typeof r?St(r,l):l.minWidth,o.push(`${r}px`),e.set(l,{width:r,left:t}),t+=r}if(-1!==m){const t=e.get(f[m]);r=t.left+t.width}const i={};for(let n=0;n<=m;n++){const t=f[n];i[`--rdg-frozen-left-${t.idx}`]=`${e.get(t).left}px`}return{templateColumns:o,layoutCssVars:i,totalFrozenColumnWidth:r,columnMetrics:e}},[n,f,m]),[C,S]=_e.useMemo(()=>{if(!i)return[0,f.length-1];const e=o+w,t=o+r,n=f.length-1,l=bt(m+1,n);if(e>=t)return[l,l];let a=l;for(;a<n;){const{left:t,width:n}=_.get(f[a]);if(t+n>e)break;a++}let s=a;for(;s<n;){const{left:e,width:n}=_.get(f[s]);if(e+n>=t)break;s++}return[vt(l,a-1),bt(n,s+1)]},[_,f,m,o,w,r,i]);return{columns:f,colSpanColumns:g,colOverscanStartIdx:C,colOverscanEndIdx:S,templateColumns:b,layoutCssVars:v,headerRowsCount:y,lastFrozenColumnIndex:m,totalFrozenColumnWidth:w}}function Vt(e,t,n){if(n<e.level&&(e.level=n),void 0!==e.parent){const{parent:r}=e;-1===r.idx&&(r.idx=t),r.colSpan+=1,Vt(r,t,n-1)}}function Gt(e,t,n,r,o,i,l,a,s){const[u,c]=_e.useState(null),[d,h]=_e.useState(null),[p,f]=_e.useState(o),g=e.length===t.length,m=g&&o!==p,y=[...n],b=[];for(const{key:x,idx:C,width:S}of t){const e=i.get(x);x===u?.key?(y[C]="max-content"===u.width?u.width:`${u.width}px`,b.push(x)):"string"!=typeof S||"resized"===e?.type||!m&&!0!==d?.has(x)&&void 0!==e||(y[C]=S,b.push(x))}const v=y.join(" ");function w(){if(f(o),0===b.length)return;const e=new Map(i);let t=!1;for(const n of b){const o=qt(r,n);t||=o!==i.get(n)?.width,void 0===o?e.delete(n):e.set(n,{type:"measured",width:o})}if(null!==u){const n=u.key,o=i.get(n)?.width,l=qt(r,n);void 0!==l&&o!==l&&(t=!0,e.set(n,{type:"resized",width:l})),c(null)}t&&l(e)}function _(e,n){const{key:o}=e;if(Xe.flushSync(()=>{if(g){const e=/* @__PURE__ */new Set;for(const{key:n,width:r}of t)o!==n&&"string"==typeof r&&"resized"!==i.get(n)?.type&&e.add(n);h(e)}c({key:o,width:n}),s("number"==typeof n)}),h(null),a){const t=i.get(o)?.width,l="number"==typeof n?n:qt(r,o);void 0!==l&&l!==t&&a(e,l)}}return x(w,"k"),x(_,"C"),_e.useLayoutEffect(w),pe(w,"updateMeasuredAndResizedWidths"),pe(_,"handleColumnResize"),{gridTemplateColumns:v,handleColumnResize:_}}function qt(e,t){const n=`[data-measuring-cell-key="${CSS.escape(t)}"]`;return e.current?.querySelector(n)?.getBoundingClientRect().width}function Yt(){const e=_e.useRef(null),[t,n]=_e.useState(1),[r,o]=_e.useState(1),[i,l]=_e.useState(0);return _e.useLayoutEffect(()=>{const{ResizeObserver:t}=window;if(null==t)return;const{clientWidth:r,clientHeight:i,offsetWidth:a,offsetHeight:s}=e.current,{width:u,height:c}=e.current.getBoundingClientRect(),d=s-i,h=c-d;n(u-a+r),o(h),l(d);const p=new t(t=>{const r=t[0].contentBoxSize[0],{clientHeight:i,offsetHeight:a}=e.current;Xe.flushSync(()=>{n(r.inlineSize),o(r.blockSize),l(a-i)})});return p.observe(e.current),()=>{p.disconnect()}},[]),[e,t,r,i]}function Xt(e){const t=_e.useRef(e);_e.useLayoutEffect(()=>{t.current=e});const n=_e.useCallback((...e)=>{t.current(...e)},[]);return e?n:e}function Kt(e){const[t,n]=_e.useState(!1);function r(e){if(e.target===e.currentTarget){const t=e.currentTarget.querySelector('[tabindex="0"]');null!==t?(t.focus({preventScroll:!0}),n(!0)):n(!1)}else n(!0)}return x(r,"l"),t&&!e&&n(!1),pe(r,"onFocus"),{tabIndex:e&&!t?0:-1,childTabIndex:e?0:-1,onFocus:e?r:void 0}}function Qt({columns:e,colSpanColumns:t,rows:n,topSummaryRows:r,bottomSummaryRows:o,colOverscanStartIdx:i,colOverscanEndIdx:l,lastFrozenColumnIndex:a,rowOverscanStartIdx:s,rowOverscanEndIdx:u}){const c=_e.useMemo(()=>{if(0===i)return 0;let e=i;const l=/* @__PURE__ */pe((t,n)=>void 0!==n&&t+n>i&&(e=t,!0),"updateStartIdx");for(const i of t){const t=i.idx;if(t>=e)break;if(l(t,Ke(i,a,{type:"HEADER"})))break;for(let e=s;e<=u;e++){const r=n[e];if(l(t,Ke(i,a,{type:"ROW",row:r})))break}if(null!=r)for(const e of r)if(l(t,Ke(i,a,{type:"SUMMARY",row:e})))break;if(null!=o)for(const e of o)if(l(t,Ke(i,a,{type:"SUMMARY",row:e})))break}return e},[s,u,n,r,o,i,a,t]);return _e.useMemo(()=>{const t=[];for(let n=0;n<=l;n++){const r=e[n];n<c&&!r.frozen||t.push(r)}return t},[c,l,e])}function Jt({rows:e,rowHeight:t,clientHeight:n,scrollTop:r,enableVirtualization:o}){const{totalRowHeight:i,gridTemplateRows:l,getRowTop:a,getRowHeight:s,findRowIdx:u}=_e.useMemo(()=>{if("number"==typeof t)return{totalRowHeight:t*e.length,gridTemplateRows:` repeat(${e.length}, ${t}px)`,getRowTop:/* @__PURE__ */pe(e=>e*t,"getRowTop"),getRowHeight:/* @__PURE__ */pe(()=>t,"getRowHeight"),findRowIdx:/* @__PURE__ */pe(e=>wt(e/t),"findRowIdx")};let n=0,r="",o=null,i=0;const l=e.map((l,a)=>{const s=t(l),u={top:n,height:s};return n+=s,null===o?(o=s,i=1):o===s?i++:(r+=i>1?`repeat(${i}, ${o}px) `:`${o}px `,o=s,i=1),a===e.length-1&&(r+=i>1?`repeat(${i}, ${o}px)`:`${o}px`),u}),a=/* @__PURE__ */pe(t=>vt(0,bt(e.length-1,t)),"validateRowIdx");return{totalRowHeight:n,gridTemplateRows:r,getRowTop:/* @__PURE__ */pe(e=>l[a(e)].top,"getRowTop"),getRowHeight:/* @__PURE__ */pe(e=>l[a(e)].height,"getRowHeight"),findRowIdx(e){let t=0,n=l.length-1;for(;t<=n;){const r=t+wt((n-t)/2),o=l[r].top;if(o===e)return r;if(o<e?t=r+1:o>e&&(n=r-1),t>n)return n}return 0}}},[t,e]);let c=0,d=e.length-1;if(o){const t=4,o=u(r),i=u(r+n);c=vt(0,o-t),d=bt(e.length-1,i+t)}return{rowOverscanStartIdx:c,rowOverscanEndIdx:d,totalRowHeight:i,gridTemplateRows:l,getRowTop:a,getRowHeight:s,findRowIdx:u}}x(Ut,"Ae"),x(jt,"Me"),pe(Ut,"renderHeaderCell"),pe(jt,"SortableHeaderCell"),x($t,"He"),x(Vt,"Ue"),x(Gt,"je"),x(qt,"We"),x(Yt,"$e"),x(Xt,"Ve"),x(Kt,"Be"),x(Qt,"qe"),x(Jt,"Ke"),pe($t,"useCalculatedColumns"),pe(Vt,"updateColumnParent"),pe(Gt,"useColumnWidths"),pe(qt,"measureColumnWidth"),pe(Yt,"useGridDimensions"),pe(Xt,"useLatestFunc"),pe(Kt,"useRovingTabIndex"),pe(Qt,"useViewportColumns"),pe(Jt,"useViewportRows");const Zt="rdg-cell-dragged-over rdg-7-0-0-beta-58-35ccb4c8";function en({column:e,colSpan:t,isCellSelected:n,isDraggedOver:r,row:o,rowIdx:i,className:l,onMouseDown:a,onCellMouseDown:s,onClick:u,onCellClick:c,onDoubleClick:d,onCellDoubleClick:h,onContextMenu:p,onCellContextMenu:f,onRowChange:g,selectCell:m,style:y,...b}){const{tabIndex:v,childTabIndex:w,onFocus:_}=Kt(n),{cellClass:C}=e;l=yt(e,{[Zt]:r},"function"==typeof C?C(o):C,l);const S=at(e,o);function k(t){m({rowIdx:i,idx:e.idx},{enableEditor:t})}function T(t,n){let r=!1;if(n){const l=Ze(t);n({rowIdx:i,row:o,column:e,selectCell:k},l),r=l.isGridDefaultPrevented()}return r}function P(e){a?.(e),T(e,s)||k()}function E(e){u?.(e),T(e,c)}function z(e){d?.(e),T(e,h)||k(!0)}function I(e){p?.(e),T(e,f)}function R(t){g(e,t)}return x(k,"E"),x(T,"R"),x(P,"I"),x(E,"P"),x(z,"T"),x(I,"z"),x(R,"_"),pe(k,"selectCellWrapper"),pe(T,"handleMouseEvent"),pe(P,"handleMouseDown"),pe(E,"handleClick"),pe(z,"handleDoubleClick"),pe(I,"handleContextMenu"),pe(R,"handleRowChange"),/* @__PURE__ */Ye.jsx("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":n,"aria-readonly":!S||void 0,tabIndex:v,className:l,style:{...gt(e,t),...y},onClick:E,onMouseDown:P,onDoubleClick:z,onContextMenu:I,onFocus:_,...b,children:e.renderCell({column:e,row:o,rowIdx:i,isCellEditable:S,tabIndex:w,onRowChange:R})})}x(en,"Ge"),pe(en,"Cell");const tn=_e.memo(en);function nn(e,t){return Ye.jsx(tn,{...t},e)}x(nn,"Xe"),pe(nn,"defaultRenderCell");const rn="object"==typeof scheduler&&"function"==typeof scheduler.postTask;function on({column:e,colSpan:t,row:n,rowIdx:r,onRowChange:o,closeEditor:i,onKeyDown:l,navigate:a}){const s=_e.useRef(void 0),u=_e.useRef(void 0),c=_e.useRef(void 0),d=e.editorOptions?.commitOnOutsideClick??!0,h=_e.useEffectEvent(()=>{g(!0,!1)});function p(){s.current=void 0,void 0!==u.current&&(u.current.abort(),u.current=void 0),void 0!==c.current&&(cancelAnimationFrame(c.current),c.current=void 0)}function f(t){if(l){const o=Ze(t);if(l({mode:"EDIT",row:n,column:e,rowIdx:r,navigate(){a(t)},onClose:g},o),o.isGridDefaultPrevented())return}"Escape"===t.key?g():"Enter"===t.key?g(!0):rt(t)&&a(t)}function g(e=!1,t=!0){e?o(n,!0,t):i(t)}function m(e,t=!1){o(e,t,t)}x(p,"m"),x(f,"h"),x(g,"y"),x(m,"v"),_e.useLayoutEffect(()=>{if(d)return pe(e,"onWindowCaptureMouseDown"),pe(t,"onWindowMouseDown"),addEventListener("mousedown",e,{capture:!0}),addEventListener("mousedown",t),()=>{removeEventListener("mousedown",e,{capture:!0}),removeEventListener("mousedown",t),p()};function e(e){if(s.current=e,rn){const e=new AbortController,{signal:t}=e;u.current=e,scheduler.postTask(h,{priority:"user-blocking",signal:t}).catch(()=>{})}else c.current=requestAnimationFrame(h)}function t(e){s.current===e&&h()}x(e,"e"),x(t,"n")},[d]),pe(p,"cancelTask"),pe(f,"handleKeyDown"),pe(g,"onClose"),pe(m,"onEditorRowChange");const{cellClass:y}=e,b=yt(e,"rdg-editor-container",!e.editorOptions?.displayCellContent&&"rdg-7-0-0-beta-58-46f9ea88","function"==typeof y?y(n):y);return Ye.jsx("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":!0,className:b,style:gt(e,t),onKeyDown:f,onMouseDownCapture:p,children:null!=e.renderEditCell&&/* @__PURE__ */Ye.jsxs(Ye.Fragment,{children:[e.renderEditCell({column:e,row:n,rowIdx:r,onRowChange:m,onClose:g}),e.editorOptions?.displayCellContent&&e.renderCell({column:e,row:n,rowIdx:r,isCellEditable:!0,tabIndex:-1,onRowChange:m})]})})}function ln({column:e,rowIdx:t,isCellSelected:n,selectCell:r}){const{tabIndex:o,onFocus:i}=Kt(n),{colSpan:l}=e,a=kt(e,t),s=e.idx+1;function u(){r({idx:e.idx,rowIdx:t})}return x(u,"c"),pe(u,"onMouseDown"),/* @__PURE__ */Ye.jsx("div",{role:"columnheader","aria-colindex":s,"aria-colspan":l,"aria-rowspan":a,"aria-selected":n,tabIndex:o,className:mt(dt,e.headerCellClass),style:{...ft(e,t,a),gridColumnStart:s,gridColumnEnd:s+l},onFocus:i,onMouseDown:u,children:e.name})}x(on,"Ze"),x(ln,"et$1"),pe(on,"EditCell"),pe(ln,"GroupedColumnHeaderCell");const an="rdg-7-0-0-beta-58-2a7e240d",sn="rdg-cell-resizable rdg-7-0-0-beta-58-1893dc0f",un="rdg-cell-draggable",cn="rdg-cell-dragging rdg-7-0-0-beta-58-3e1a4ad4",dn="rdg-cell-drag-over rdg-7-0-0-beta-58-51abd8b8";function hn({column:e,colSpan:t,rowIdx:n,isCellSelected:r,onColumnResize:o,onColumnResizeEnd:i,onColumnsReorder:l,sortColumns:a,onSortColumnsChange:s,selectCell:u,shouldFocusGrid:c,direction:d,draggedColumnKey:h,setDraggedColumnKey:p}){const[f,g]=_e.useState(!1),m=_e.useRef(null),y=h===e.key,b=kt(e,n),{tabIndex:v,childTabIndex:w,onFocus:_}=Kt(c||r),C=a?.findIndex(t=>t.columnKey===e.key),S=void 0!==C&&C>-1?a[C]:void 0,k=S?.direction,T=void 0!==S&&a.length>1?C+1:void 0,P=k&&!T?"ASC"===k?"ascending":"descending":void 0,{sortable:E,resizable:z,draggable:I}=e,R=yt(e,e.headerCellClass,{[an]:E,[sn]:z,[un]:I,[cn]:y,[dn]:f});function A(t){if(null==s)return;const{sortDescendingFirst:n}=e;if(void 0===S){const r={columnKey:e.key,direction:n?"DESC":"ASC"};s(a&&t?[...a,r]:[r])}else{let r;if((!0===n&&"DESC"===k||!0!==n&&"ASC"===k)&&(r={columnKey:e.key,direction:"ASC"===k?"DESC":"ASC"}),t){const e=[...a];r?e[C]=r:e.splice(C,1),s(e)}else s(r?[r]:[])}}function D(e){_?.(e),c&&u({idx:0,rowIdx:n})}function F(){u({idx:e.idx,rowIdx:n})}function L(e){E&&A(e.ctrlKey||e.metaKey)}function O(t){const{key:n}=t;if(!E||" "!==n&&"Enter"!==n){if(z&&tt(t)&&("ArrowLeft"===n||"ArrowRight"===n)){t.stopPropagation();const{width:r}=t.currentTarget.getBoundingClientRect(),{leftKey:i}=ot(d),l=St(r+(n===i?-10:10),e);l!==r&&o(e,l)}}else t.preventDefault(),A(t.ctrlKey||t.metaKey)}function M(t){Xe.flushSync(()=>{p(e.key)}),t.dataTransfer.setDragImage(m.current,0,0),t.dataTransfer.dropEffect="move"}function B(){p(void 0)}function H(e){e.preventDefault(),e.dataTransfer.dropEffect="move"}function N(t){g(!1),t.preventDefault(),l?.(h,e.key)}function W(e){fn(e)&&g(!0)}function U(e){fn(e)&&g(!1)}let j,$;x(A,"F"),x(D,"D"),x(F,"L"),x(L,"O"),x(O,"A"),x(M,"M"),x(B,"H"),x(H,"U"),x(N,"j"),x(W,"W"),x(U,"B"),pe(A,"onSort"),pe(D,"handleFocus"),pe(F,"onMouseDown"),pe(L,"onClick"),pe(O,"onKeyDown"),pe(M,"onDragStart"),pe(B,"onDragEnd"),pe(H,"onDragOver"),pe(N,"onDrop"),pe(W,"onDragEnter"),pe(U,"onDragLeave"),I&&(j={draggable:!0,onDragStart:M,onDragEnd:B},void 0!==h&&h!==e.key&&($={onDragOver:H,onDragEnter:W,onDragLeave:U,onDrop:N}));const V={...ft(e,n,b),...gt(e,t)},G=e.renderHeaderCell({column:e,sortDirection:k,priority:T,tabIndex:w});return Ye.jsxs(Ye.Fragment,{children:[y&&/* @__PURE__ */Ye.jsx("div",{ref:m,style:V,className:yt(e,e.headerCellClass,"rdg-7-0-0-beta-58-c8d7aa64"),children:G}),/* @__PURE__ */Ye.jsxs("div",{role:"columnheader","aria-colindex":e.idx+1,"aria-colspan":t,"aria-rowspan":b,"aria-selected":r,"aria-sort":P,tabIndex:v,className:R,style:V,onMouseDown:F,onFocus:D,onClick:L,onKeyDown:O,...j,...$,children:[G,z&&/* @__PURE__ */Ye.jsx(pn,{direction:d,column:e,onColumnResize:o,onColumnResizeEnd:i})]})]})}function pn({direction:e,column:t,onColumnResize:n,onColumnResizeEnd:r}){const o=_e.useRef(void 0),i="rtl"===e;function l(e){if("mouse"===e.pointerType&&1!==e.buttons)return;e.preventDefault();const{currentTarget:t,pointerId:n}=e;t.setPointerCapture(n);const{right:r,left:l}=t.parentElement.getBoundingClientRect();o.current=i?e.clientX-l:r-e.clientX}function a(e){const r=o.current;if(void 0===r)return;const{width:l,right:a,left:s}=e.currentTarget.parentElement.getBoundingClientRect();let u=i?a+r-e.clientX:e.clientX+r-s;u=St(u,t),l>0&&u!==l&&n(t,u)}function s(){r(),o.current=void 0}function u(){n(t,"max-content")}return x(l,"i"),x(a,"u"),x(s,"s"),x(u,"c"),pe(l,"onPointerDown"),pe(a,"onPointerMove"),pe(s,"onLostPointerCapture"),pe(u,"onDoubleClick"),/* @__PURE__ */Ye.jsx("div",{"aria-hidden":!0,className:"rdg-resize-handle rdg-7-0-0-beta-58-4e60db91",onClick:Qe,onPointerDown:l,onPointerMove:a,onLostPointerCapture:s,onDoubleClick:u})}function fn(e){const t=e.relatedTarget;return!e.currentTarget.contains(t)}x(hn,"at$1"),x(pn,"it$1"),x(fn,"ut$1"),pe(hn,"HeaderCell"),pe(pn,"ResizeHandle"),pe(fn,"isEventPertinent");const gn="rdg-row rdg-7-0-0-beta-58-3c083f1b",mn="rdg-7-0-0-beta-58-3fe773c3",yn="rdg-row-selected",bn="rdg-7-0-0-beta-58-97ce3fde",vn="rdg-bottom-summary-row",wn="rdg-header-row rdg-7-0-0-beta-58-0dbd5994";function _n({headerRowClass:e,rowIdx:t,columns:n,onColumnResize:r,onColumnResizeEnd:o,onColumnsReorder:i,sortColumns:l,onSortColumnsChange:a,lastFrozenColumnIndex:s,selectedCellIdx:u,selectCell:c,shouldFocusGrid:d,direction:h}){const[p,f]=_e.useState(),g=[];for(let m=0;m<n.length;m++){const e=n[m],y=Ke(e,s,{type:"HEADER"});void 0!==y&&(m+=y-1),g.push(/* @__PURE__ */Ye.jsx(hn,{column:e,colSpan:y,rowIdx:t,isCellSelected:u===e.idx,onColumnResize:r,onColumnResizeEnd:o,onColumnsReorder:i,onSortColumnsChange:a,sortColumns:l,selectCell:c,shouldFocusGrid:d&&0===m,direction:h,draggedColumnKey:p,setDraggedColumnKey:f},e.key))}return Ye.jsx("div",{role:"row","aria-rowindex":t,className:mt(wn,{[yn]:-1===u},e),children:g})}x(_n,"ht$1"),pe(_n,"HeaderRow");var xn=_e.memo(_n);function Cn({rowIdx:e,level:t,columns:n,selectedCellIdx:r,selectCell:o}){const i=[],l=/* @__PURE__ */new Set;for(const a of n){let{parent:n}=a;if(void 0!==n){for(;n.level>t&&void 0!==n.parent;)n=n.parent;if(n.level===t&&!l.has(n)){l.add(n);const{idx:t}=n;i.push(/* @__PURE__ */Ye.jsx(ln,{column:n,rowIdx:e,isCellSelected:r===t,selectCell:o},t))}}}return Ye.jsx("div",{role:"row","aria-rowindex":e,className:wn,children:i})}x(Cn,"yt$1"),pe(Cn,"GroupedColumnHeaderRow");var Sn=_e.memo(Cn);function kn({className:e,rowIdx:t,gridRowStart:n,selectedCellIdx:r,isRowSelectionDisabled:o,isRowSelected:i,draggedOverCellIdx:l,lastFrozenColumnIndex:a,row:s,viewportColumns:u,selectedCellEditor:c,onCellMouseDown:d,onCellClick:h,onCellDoubleClick:p,onCellContextMenu:f,rowClass:g,onRowChange:m,selectCell:y,style:b,...v}){const w=zt().renderCell,_=Xt((e,n)=>{m(e,t,n)});e=mt(gn,"rdg-row-"+(t%2==0?"even":"odd"),{[yn]:-1===r},g?.(s,t),e);const x=[];for(let C=0;C<u.length;C++){const e=u[C],{idx:n}=e,o=Ke(e,a,{type:"ROW",row:s});void 0!==o&&(C+=o-1);const i=r===n;i&&c?x.push(c):x.push(w(e.key,{column:e,colSpan:o,row:s,rowIdx:t,isDraggedOver:l===n,isCellSelected:i,onCellMouseDown:d,onCellClick:h,onCellDoubleClick:p,onCellContextMenu:f,onRowChange:_,selectCell:y}))}return Ye.jsx(Rt,{value:_e.useMemo(()=>({isRowSelected:i,isRowSelectionDisabled:o}),[o,i]),children:/* @__PURE__ */Ye.jsx("div",{role:"row",className:e,style:{...pt(n),...b},...v,children:x})})}x(kn,"bt$1"),pe(kn,"Row");const Tn=_e.memo(kn);function Pn(e,t){return Ye.jsx(Tn,{...t},e)}function En({scrollToPosition:{idx:e,rowIdx:t},gridRef:n,setScrollToCellPosition:r}){const o=_e.useRef(null);return _e.useLayoutEffect(()=>{Je(o.current,"auto")}),_e.useLayoutEffect(()=>{function e(){r(null)}x(e,"e"),pe(e,"removeScrollToCell");const t=new IntersectionObserver(e,{root:n.current,threshold:1});return t.observe(o.current),()=>{t.disconnect()}},[n,r]),/* @__PURE__ */Ye.jsx("div",{ref:o,style:{gridColumn:void 0===e?"1/-1":e+1,gridRow:void 0===t?"1/-1":t+2}})}function zn({sortDirection:e,priority:t}){return Ye.jsxs(Ye.Fragment,{children:[In({sortDirection:e}),Rn({priority:t})]})}function In({sortDirection:e}){return void 0===e?null:/* @__PURE__ */Ye.jsx("svg",{viewBox:"0 0 12 8",width:"12",height:"8",className:"rdg-sort-arrow rdg-7-0-0-beta-58-3d5115f3","aria-hidden":!0,children:/* @__PURE__ */Ye.jsx("path",{d:"ASC"===e?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})})}function Rn({priority:e}){return e}x(Pn,"St$1"),x(En,"kt$1"),pe(Pn,"defaultRenderRow"),pe(En,"ScrollToCell"),x(zn,"Ct$1"),x(In,"xt$1"),x(Rn,"Et$1"),pe(zn,"renderSortStatus"),pe(In,"renderSortIcon"),pe(Rn,"renderSortPriority");const An="rdg-viewport-dragging rdg-7-0-0-beta-58-e9b0e1c9",Dn="rdg-7-0-0-beta-58-e9f55541";function Fn({column:e,colSpan:t,row:n,rowIdx:r,isCellSelected:o,selectCell:i}){const{tabIndex:l,childTabIndex:a,onFocus:s}=Kt(o),{summaryCellClass:u}=e,c=yt(e,"rdg-7-0-0-beta-58-d907aa87","function"==typeof u?u(n):u);function d(){i({rowIdx:r,idx:e.idx})}return x(d,"f"),pe(d,"onMouseDown"),/* @__PURE__ */Ye.jsx("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":o,tabIndex:l,className:c,style:gt(e,t),onMouseDown:d,onFocus:s,children:e.renderSummaryCell?.({column:e,row:n,tabIndex:a})})}x(Fn,"Pt$1"),pe(Fn,"SummaryCell");var Ln=_e.memo(Fn);function On({rowIdx:e,gridRowStart:t,row:n,viewportColumns:r,top:o,bottom:i,lastFrozenColumnIndex:l,selectedCellIdx:a,isTop:s,selectCell:u,"aria-rowindex":c}){const d=[];for(let h=0;h<r.length;h++){const t=r[h],o=Ke(t,l,{type:"SUMMARY",row:n});void 0!==o&&(h+=o-1);const i=a===t.idx;d.push(/* @__PURE__ */Ye.jsx(Ln,{column:t,colSpan:o,row:n,rowIdx:e,isCellSelected:i,selectCell:u},t.key))}return Ye.jsx("div",{role:"row","aria-rowindex":c,className:mt(gn,"rdg-row-"+(e%2==0?"even":"odd"),"rdg-summary-row rdg-7-0-0-beta-58-0b90c82c",{[yn]:-1===a,"rdg-top-summary-row rdg-7-0-0-beta-58-d0520eab":s,[vn]:!s}),style:{...pt(t),"--rdg-summary-row-top":void 0!==o?`${o}px`:void 0,"--rdg-summary-row-bottom":void 0!==i?`${i}px`:void 0},children:d})}x(On,"zt$1"),pe(On,"SummaryRow");var Mn=_e.memo(On);function Bn(e){const{ref:t,columns:n,rows:r,topSummaryRows:o,bottomSummaryRows:i,rowKeyGetter:l,onRowsChange:a,rowHeight:s,headerRowHeight:u,summaryRowHeight:c,columnWidths:d,onColumnWidthsChange:h,selectedRows:p,isRowSelectionDisabled:f,onSelectedRowsChange:g,sortColumns:m,onSortColumnsChange:y,defaultColumnOptions:b,onCellMouseDown:v,onCellClick:w,onCellDoubleClick:_,onCellContextMenu:C,onCellKeyDown:S,onSelectedCellChange:k,onScroll:T,onColumnResize:P,onColumnsReorder:E,onFill:z,onCellCopy:I,onCellPaste:R,enableVirtualization:A,renderers:D,className:F,style:L,rowClass:O,headerRowClass:M,direction:B,role:H,"aria-label":N,"aria-labelledby":W,"aria-description":U,"aria-describedby":j,"aria-rowcount":$,"data-testid":V,"data-cy":G}=e,q=zt(),Y=H??"grid",X=s??35,K=u??("number"==typeof X?X:35),Q=c??("number"==typeof X?X:35),J=D?.renderRow??q?.renderRow??Pn,Z=D?.renderCell??q?.renderCell??nn,ee=D?.renderSortStatus??q?.renderSortStatus??zn,te=D?.renderCheckbox??q?.renderCheckbox??Tt,ne=D?.noRowsFallback??q?.noRowsFallback,re=A??!0,oe=B??"ltr",[ie,le]=_e.useState(0),[ae,se]=_e.useState(0),[ue,ce]=_e.useState(()=>d??/* @__PURE__ */new Map),[de,he]=_e.useState(!1),[fe,ge]=_e.useState(!1),[me,ye]=_e.useState(void 0),[be,ve]=_e.useState(null),[we,xe]=_e.useState(!1),[Ce,Se]=_e.useState(-1),ke=null!=d&&null!=h&&!de,Te=ke?d:ue,Pe=ke?e=>{ce(e),h(e)}:ce,Ee=_e.useCallback(e=>Te.get(e.key)?.width??e.width,[Te]),[ze,Ie,Re,Ae]=Yt(),{columns:De,colSpanColumns:Fe,lastFrozenColumnIndex:Le,headerRowsCount:Oe,colOverscanStartIdx:Me,colOverscanEndIdx:Be,templateColumns:He,layoutCssVars:Ne,totalFrozenColumnWidth:We}=$t({rawColumns:n,defaultColumnOptions:b,getColumnWidth:Ee,scrollLeft:ae,viewportWidth:Ie,enableVirtualization:re}),Ue=o?.length??0,je=i?.length??0,$e=Ue+je,Ve=Oe+Ue,Ge=Oe-1,qe=-Ve,Qe=qe+Ge,et=r.length+je-1,[rt,at]=_e.useState(()=>({idx:-1,rowIdx:qe-1,mode:"SELECT"})),st=_e.useRef(null),dt="treegrid"===Y,ht=Oe*K,pt=$e*Q,ft=Re-ht-pt,yt=null!=p&&null!=g,{leftKey:bt,rightKey:vt}=ot(oe),wt=$??Oe+r.length+$e,St=_e.useMemo(()=>({renderCheckbox:te,renderSortStatus:ee,renderCell:Z}),[te,ee,Z]),kt=_e.useMemo(()=>{let e=!1,t=!1;if(null!=l&&null!=p&&p.size>0)for(const n of r)if(p.has(l(n))?e=!0:t=!0,e&&t)break;return{isRowSelected:e&&!t,isIndeterminate:e&&t}},[r,p,l]),{rowOverscanStartIdx:Pt,rowOverscanEndIdx:It,totalRowHeight:Rt,gridTemplateRows:Dt,getRowTop:Ot,getRowHeight:Mt,findRowIdx:Bt}=Jt({rows:r,rowHeight:X,clientHeight:ft,scrollTop:ie,enableVirtualization:re}),Ht=Qt({columns:De,colSpanColumns:Fe,colOverscanStartIdx:Me,colOverscanEndIdx:Be,lastFrozenColumnIndex:Le,rowOverscanStartIdx:Pt,rowOverscanEndIdx:It,rows:r,topSummaryRows:o,bottomSummaryRows:i}),{gridTemplateColumns:Nt,handleColumnResize:Wt}=Gt(De,Ht,He,ze,Ie,Te,Pe,P,he),Ut=dt?-1:0,jt=De.length-1,Vt=Gn(rt),qt=Yn(rt),Kt=K+Rt+pt+Ae,Zt=Xt(Wt),en=Xt(Fn),tn=Xt(E),rn=Xt(y),ln=Xt(v),an=Xt(w),sn=Xt(_),un=Xt(C),cn=Xt(yn),dn=Xt(vn),hn=Xt(Cn),pn=Xt(Kn),fn=Xt(Qn),gn=_e.useCallback((e=!0)=>{const t=Hn(ze.current);null!==t&&(e&&Je(t),t.focus({preventScroll:!0}))},[ze]);function yn(e){if(!g)return;Ct(l);const t=new Set(p);for(const n of r){if(!0===f?.(n))continue;const r=l(n);e.checked?t.add(r):t.delete(r)}g(t)}function vn(e){if(!g)return;Ct(l);const{row:t,checked:n,isShiftClick:o}=e;if(!0===f?.(t))return;const i=new Set(p),a=l(t),s=r.indexOf(t);if(Se(s),n?i.add(a):i.delete(a),o&&-1!==Ce&&Ce!==s&&Ce<r.length){const e=_t(s-Ce);for(let t=Ce+e;t!==s;t+=e){const e=r[t];!0!==f?.(e)&&(n?i.add(l(e)):i.delete(l(e)))}}g(i)}function wn(e){const{idx:t,rowIdx:n,mode:o}=rt;if("EDIT"===o)return;if(S&&Vn(n)){const o=r[n],i=Ze(e);if(S({mode:"SELECT",row:o,column:De[t],rowIdx:n,selectCell:Kn},i),i.isGridDefaultPrevented())return}if(!(e.target instanceof Element))return;const i=null!==e.target.closest(".rdg-cell"),l=dt&&e.target===st.current;if(i||l)switch(e.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Tab":case"Home":case"End":case"PageUp":case"PageDown":Zn(e);break;default:Rn(e)}}function _n(e){const{scrollTop:t,scrollLeft:n}=e.currentTarget;Xe.flushSync(()=>{le(t),se(xt(n))}),T?.(e)}function Cn(e,t,n){"function"==typeof a&&n!==r[t]&&a(r.with(t,n),{indexes:[t],column:e})}function kn(){"EDIT"===rt.mode&&Cn(De[rt.idx],rt.rowIdx,rt.row)}function Tn(e){if(!qt)return;const{idx:t,rowIdx:n}=rt;I?.({row:r[n],column:De[t]},e)}function In(e){if(!R||!a||!Xn(rt))return;const{idx:t,rowIdx:n}=rt,o=De[t];Cn(o,n,R({row:r[n],column:o},e))}function Rn(e){if(!qt)return;const t=r[rt.rowIdx],{key:n,shiftKey:o}=e;if(yt&&o&&" "===n){Ct(l);const n=l(t);return vn({row:t,checked:!p.has(n),isShiftClick:!1}),void e.preventDefault()}Xn(rt)&&nt(e,null!=R)&&at(({idx:e,rowIdx:n})=>({idx:e,rowIdx:n,mode:"EDIT",row:t,originalRow:t}))}function Fn(){de&&(h?.(Te),he(!1))}function Ln(e){e.preventDefault(),"mouse"===e.pointerType&&1!==e.buttons||(ge(!0),e.currentTarget.setPointerCapture(e.pointerId))}function On(e){const t=ze.current,n=Bt(ie-(ht+Ue*Q)+e.clientY-t.getBoundingClientRect().top);ye(n);const r=Ve+n+1;Je(t.querySelector(`:scope > [aria-rowindex="${r}"] > [aria-colindex="${rt.idx+1}"]`))}function Bn(){if(ge(!1),void 0===me)return;const{rowIdx:e}=rt,[t,n]=e<me?[e+1,me+1]:[me,e];jn(t,n),ye(void 0)}function Wn(){gn(!1)}function Un(e){e.stopPropagation(),jn(rt.rowIdx+1,r.length)}function jn(e,t){if(null==a)return;const{rowIdx:n,idx:o}=rt,i=De[o],l=r[n],s=[...r],u=[];for(let a=e;a<t;a++)if(Xn({rowIdx:a,idx:o})){const e=z({columnKey:i.key,sourceRow:l,targetRow:r[a]});e!==r[a]&&(s[a]=e,u.push(a))}u.length>0&&a(s,{indexes:u,column:i})}function $n(e){return e>=Ut&&e<=jt}function Vn(e){return e>=0&&e<r.length}function Gn({idx:e,rowIdx:t}){return t>=qe&&t<=et&&$n(e)}function qn({idx:e,rowIdx:t}){return Vn(t)&&e>=0&&e<=jt}function Yn({idx:e,rowIdx:t}){return Vn(t)&&$n(e)}function Xn(e){return qn(e)&&lt({columns:De,rows:r,selectedPosition:e})}function Kn(e,t){if(!Gn(e))return;kn();const n=Nn(rt,e);if(t?.enableEditor&&Xn(e)){const t=r[e.rowIdx];at({...e,mode:"EDIT",row:t,originalRow:t})}else n?Je(Hn(ze.current)):(xe(!0===t?.shouldFocusCell),at({...e,mode:"SELECT"}));k&&!n&&k({rowIdx:e.rowIdx,row:Vn(e.rowIdx)?r[e.rowIdx]:void 0,column:De[e.idx]})}function Qn({idx:e,rowIdx:t}){Kn({rowIdx:qe+t-1,idx:e})}function Jn(e,t,n){const{idx:o,rowIdx:i}=rt,l=Vt&&-1===o;switch(e){case"ArrowUp":return{idx:o,rowIdx:i-1};case"ArrowDown":return{idx:o,rowIdx:i+1};case bt:return{idx:o-1,rowIdx:i};case vt:return{idx:o+1,rowIdx:i};case"Tab":return{idx:o+(n?-1:1),rowIdx:i};case"Home":return l?{idx:o,rowIdx:qe}:{idx:0,rowIdx:t?qe:i};case"End":return l?{idx:o,rowIdx:et}:{idx:jt,rowIdx:t?et:i};case"PageUp":{if(rt.rowIdx===qe)return rt;const e=Ot(i)+Mt(i)-ft;return{idx:o,rowIdx:e>0?Bt(e):0}}case"PageDown":{if(rt.rowIdx>=r.length)return rt;const e=Ot(i)+ft;return{idx:o,rowIdx:e<Rt?Bt(e):r.length-1}}default:return rt}}function Zn(e){const{key:t,shiftKey:n}=e;let l="NONE";if("Tab"===t){if(ct({shiftKey:n,maxColIdx:jt,minRowIdx:qe,maxRowIdx:et,selectedPosition:rt}))return void kn();l="CHANGE_ROW"}e.preventDefault();const a=Jn(t,tt(e),n);Nn(rt,a)||Kn(ut({moveUp:"ArrowUp"===t,moveNext:t===vt||"Tab"===t&&!n,columns:De,colSpanColumns:Fe,rows:r,topSummaryRows:o,bottomSummaryRows:i,minRowIdx:qe,mainHeaderRowIdx:Qe,maxRowIdx:et,lastFrozenColumnIndex:Le,cellNavigationMode:l,currentPosition:rt,nextPosition:a,isCellWithinBounds:Gn}),{shouldFocusCell:!0})}function er(e){if(void 0===me)return;const{rowIdx:t}=rt;return(t<me?t<e&&e<=me:t>e&&e>=me)?rt.idx:void 0}function tr(){if(null==z||"EDIT"===rt.mode||!Yn(rt))return;const{idx:e,rowIdx:t}=rt,n=De[e];if(null==n.renderEditCell||!1===n.editable)return;const o=t===et,i=Ee(n),l=n.colSpan?.({type:"ROW",row:r[t]})??1,{insetInlineStart:a,...s}=gt(n,l),u="calc(var(--rdg-drag-handle-size) * -0.5 + 1px)",c=n.idx+l-1===jt;return Ye.jsx("div",{style:{...s,gridRowStart:Ve+t+1,marginInlineEnd:c?void 0:u,marginBlockEnd:o?void 0:u,insetInlineStart:a?`calc(${a} + ${i}px + var(--rdg-drag-handle-size) * -0.5 - 1px)`:void 0},className:mt("rdg-cell-drag-handle rdg-7-0-0-beta-58-bfba19bc",n.frozen&&"rdg-7-0-0-beta-58-7abddb3e"),onPointerDown:Ln,onPointerMove:fe?On:void 0,onLostPointerCapture:fe?Bn:void 0,onClick:Wn,onDoubleClick:Un})}function nr(e){if(!Yn(rt)||rt.rowIdx!==e||"SELECT"===rt.mode)return;const{idx:t,row:n}=rt,o=De[t],i=Ke(o,Le,{type:"ROW",row:n}),l=o.editorOptions?.closeOnExternalRowChange??!0,a=/* @__PURE__ */pe(e=>{xe(e),at(({idx:e,rowIdx:t})=>({idx:e,rowIdx:t,mode:"SELECT"}))},"closeEditor"),s=/* @__PURE__ */pe((e,t,n)=>{t?Xe.flushSync(()=>{Cn(o,rt.rowIdx,e),a(n)}):at(t=>({...t,row:e}))},"onRowChange");return l&&r[rt.rowIdx]!==rt.originalRow&&a(!1),/* @__PURE__ */Ye.jsx(on,{column:o,colSpan:i,row:n,rowIdx:e,onRowChange:s,closeEditor:a,onKeyDown:S,navigate:Zn},o.key)}function rr(e){const t=-1===rt.idx?void 0:De[rt.idx];return void 0===t||rt.rowIdx!==e||Ht.includes(t)?Ht:rt.idx>Be?[...Ht,t]:[...Ht.slice(0,Le+1),t,...Ht.slice(Le+1)]}function or(){const e=[],{idx:t,rowIdx:n}=rt,o=qt&&n>It?It+1:It;for(let i=qt&&n<Pt?Pt-1:Pt;i<=o;i++){const o=i===Pt-1||i===It+1,a=o?n:i;let s=Ht;const u=-1===t?void 0:De[t];void 0!==u&&(s=o?[u]:rr(a));const c=r[a],d=Ve+a+1;let h=a,g=!1;"function"==typeof l&&(h=l(c),g=p?.has(h)??!1),e.push(J(h,{"aria-rowindex":Ve+a+1,"aria-selected":yt?g:void 0,rowIdx:a,row:c,viewportColumns:s,isRowSelectionDisabled:f?.(c)??!1,isRowSelected:g,onCellMouseDown:ln,onCellClick:an,onCellDoubleClick:sn,onCellContextMenu:un,rowClass:O,gridRowStart:d,selectedCellIdx:n===a?t:void 0,draggedOverCellIdx:er(a),lastFrozenColumnIndex:Le,onRowChange:hn,selectCell:pn,selectedCellEditor:nr(a)}))}return e}x(yn,"In"),x(vn,"Pn"),x(wn,"Tn"),x(_n,"zn"),x(Cn,"_n"),x(kn,"Nn"),x(Tn,"Fn"),x(In,"Dn"),x(Rn,"Ln"),x(Fn,"On"),x(Ln,"An"),x(On,"Mn"),x(Bn,"Hn"),x(Wn,"Un"),x(Un,"jn"),x(jn,"Wn"),x($n,"$n"),x(Vn,"Vn"),x(Gn,"Bn"),x(qn,"qn"),x(Yn,"Kn"),x(Xn,"Qn"),x(Kn,"Gn"),x(Qn,"Yn"),x(Jn,"Xn"),x(Zn,"Jn"),x(er,"Zn"),x(tr,"er"),x(nr,"tr"),x(rr,"nr"),x(or,"rr"),_e.useLayoutEffect(()=>{we&&(null!==st.current&&-1===rt.idx?(st.current.focus({preventScroll:!0}),Je(st.current)):gn(),xe(!1))},[we,gn,rt.idx]),_e.useImperativeHandle(t,()=>({element:ze.current,scrollToCell({idx:e,rowIdx:t}){const n=void 0!==e&&e>Le&&e<De.length?e:void 0,r=void 0!==t&&Vn(t)?t:void 0;void 0===n&&void 0===r||ve({idx:n,rowIdx:r})},selectCell:Kn})),pe(yn,"selectHeaderRow"),pe(vn,"selectRow"),pe(wn,"handleKeyDown"),pe(_n,"handleScroll"),pe(Cn,"updateRow"),pe(kn,"commitEditorChanges"),pe(Tn,"handleCellCopy"),pe(In,"handleCellPaste"),pe(Rn,"handleCellInput"),pe(Fn,"handleColumnResizeEnd"),pe(Ln,"handleDragHandlePointerDown"),pe(On,"handleDragHandlePointerMove"),pe(Bn,"handleDragHandleLostPointerCapture"),pe(Wn,"handleDragHandleClick"),pe(Un,"handleDragHandleDoubleClick"),pe(jn,"updateRows"),pe($n,"isColIdxWithinSelectionBounds"),pe(Vn,"isRowIdxWithinViewportBounds"),pe(Gn,"isCellWithinSelectionBounds"),pe(qn,"isCellWithinEditBounds"),pe(Yn,"isCellWithinViewportBounds"),pe(Xn,"isCellEditable"),pe(Kn,"selectCell"),pe(Qn,"selectHeaderCell"),pe(Jn,"getNextPosition"),pe(Zn,"navigate"),pe(er,"getDraggedOverCellIdx"),pe(tr,"getDragHandle"),pe(nr,"getCellEditor"),pe(rr,"getRowViewportColumns"),pe(or,"getViewportRows"),(rt.idx>jt||rt.rowIdx>et)&&(at({idx:-1,rowIdx:qe-1,mode:"SELECT"}),ye(void 0)),ke&&ue!==d&&ce(d);let ir=`repeat(${Oe}, ${K}px)`;Ue>0&&(ir+=` repeat(${Ue}, ${Q}px)`),r.length>0&&(ir+=Dt),je>0&&(ir+=` repeat(${je}, ${Q}px)`);const lr=-1===rt.idx&&rt.rowIdx!==qe-1;return Ye.jsxs("div",{role:Y,"aria-label":N,"aria-labelledby":W,"aria-description":U,"aria-describedby":j,"aria-multiselectable":!!yt||void 0,"aria-colcount":De.length,"aria-rowcount":wt,tabIndex:-1,className:mt("rdg rdg-7-0-0-beta-58-ccd2e5d9",{[An]:fe},F),style:{...L,scrollPaddingInlineStart:rt.idx>Le||void 0!==be?.idx?`${We}px`:void 0,scrollPaddingBlock:Vn(rt.rowIdx)||void 0!==be?.rowIdx?`${ht+Ue*Q}px ${je*Q}px`:void 0,gridTemplateColumns:Nt,gridTemplateRows:ir,"--rdg-header-row-height":`${K}px`,"--rdg-scroll-height":`${Kt}px`,...Ne},dir:oe,ref:ze,onScroll:_n,onKeyDown:wn,onCopy:Tn,onPaste:In,"data-testid":V,"data-cy":G,children:[
1
+ var e,t,n,r,o,i,l,a,s,u,c,d,h,p,f,g,m,y,b,v,w,_=Object.defineProperty,x=(e,t)=>_(e,"name",{value:t,configurable:!0});import{HTMLWidget as C,format as S,timeParse as k,timeFormat as T,FAChar as P,select as E,selectAll as z,Utility as I,d3Event as R,Platform as A,drag as D,SVGWidget as F,Database as L,Palette as O,scaleOrdinal as M,ProgressBar as B,ToggleButton as H,Text as N,Button as W,Spacer as U,TitleBar as j,IconBar as $,scaleLinear as V,dispatch as G,formatPrefix as q,formatLocale as Y,formatSpecifier as X,sum as K,map as Q}from"@hpcc-js/common";import{instanceOfIHighlight as J,INDChart as Z,IGraph as ee}from"@hpcc-js/api";import{OnOff as te,Button as ne,Input as re,Select as oe}from"@hpcc-js/form";import{PropertyEditor as ie,Legend as le,Html as ae,Persist as se}from"@hpcc-js/other";const ue="@hpcc-js/composite",ce="3.5.7",de="3.22.0";var he=Object.defineProperty,pe=/* @__PURE__ */x((e,t)=>he(e,"name",{value:t,configurable:!0}),"t$1");function fe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}x(fe,"s"),pe(fe,"getDefaultExportFromCjs");var ge,me,ye={exports:{}},be={};function ve(){if(ge)return be;ge=1;var e=/* @__PURE__ */Symbol.for("react.transitional.element"),t=/* @__PURE__ */Symbol.for("react.portal"),n=/* @__PURE__ */Symbol.for("react.fragment"),r=/* @__PURE__ */Symbol.for("react.strict_mode"),o=/* @__PURE__ */Symbol.for("react.profiler"),i=/* @__PURE__ */Symbol.for("react.consumer"),l=/* @__PURE__ */Symbol.for("react.context"),a=/* @__PURE__ */Symbol.for("react.forward_ref"),s=/* @__PURE__ */Symbol.for("react.suspense"),u=/* @__PURE__ */Symbol.for("react.memo"),c=/* @__PURE__ */Symbol.for("react.lazy"),d=/* @__PURE__ */Symbol.for("react.activity"),h=Symbol.iterator;function p(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}x(p,"g"),pe(p,"getIteratorFn");var f={isMounted:/* @__PURE__ */pe(function(){return!1},"isMounted"),enqueueForceUpdate:/* @__PURE__ */pe(function(){},"enqueueForceUpdate"),enqueueReplaceState:/* @__PURE__ */pe(function(){},"enqueueReplaceState"),enqueueSetState:/* @__PURE__ */pe(function(){},"enqueueSetState")},g=Object.assign,m={};function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}function b(){}function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}x(y,"w"),x(b,"S"),x(v,"k"),pe(y,"Component"),y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},pe(b,"ComponentDummy"),b.prototype=y.prototype,pe(v,"PureComponent");var w=v.prototype=new b;w.constructor=v,g(w,y.prototype),w.isPureReactComponent=!0;var _=Array.isArray;function C(){}x(C,"E"),pe(C,"noop");var S={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function T(t,n,r){var o=r.ref;return{$$typeof:e,type:t,key:n,ref:void 0!==o?o:null,props:r}}function P(e,t){return T(e.type,t,e.props)}function E(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}function z(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}x(T,"P"),x(P,"T"),x(E,"z"),x(z,"_"),pe(T,"ReactElement"),pe(P,"cloneAndReplaceKey"),pe(E,"isValidElement"),pe(z,"escape");var I=/\/+/g;function R(e,t){return"object"==typeof e&&null!==e&&null!=e.key?z(""+e.key):t.toString(36)}function A(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(C,C):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function D(n,r,o,i,l){var a=typeof n;"undefined"!==a&&"boolean"!==a||(n=null);var s=!1;if(null===n)s=!0;else switch(a){case"bigint":case"string":case"number":s=!0;break;case"object":switch(n.$$typeof){case e:case t:s=!0;break;case c:return D((s=n._init)(n._payload),r,o,i,l)}}if(s)return l=l(n),s=""===i?"."+R(n,0):i,_(l)?(o="",null!=s&&(o=s.replace(I,"$&/")+"/"),D(l,r,o,"",function(e){return e})):null!=l&&(E(l)&&(l=P(l,o+(null==l.key||n&&n.key===l.key?"":(""+l.key).replace(I,"$&/")+"/")+s)),r.push(l)),1;s=0;var u=""===i?".":i+":";if(_(n))for(var d=0;d<n.length;d++)s+=D(i=n[d],r,o,a=u+R(i,d),l);else if("function"==typeof(d=p(n)))for(n=d.call(n),d=0;!(i=n.next()).done;)s+=D(i=i.value,r,o,a=u+R(i,d++),l);else if("object"===a){if("function"==typeof n.then)return D(A(n),r,o,i,l);throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.")}return s}function F(e,t,n){if(null==e)return e;var r=[],o=0;return D(e,r,"","",function(e){return t.call(n,e,o++)}),r}function L(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}x(R,"F"),x(A,"D"),x(D,"L"),x(F,"O"),x(L,"A"),pe(R,"getElementKey"),pe(A,"resolveThenable"),pe(D,"mapIntoArray"),pe(F,"mapChildren"),pe(L,"lazyInitializer");var O="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},M={map:F,forEach:/* @__PURE__ */pe(function(e,t,n){F(e,function(){t.apply(this,arguments)},n)},"forEach"),count:/* @__PURE__ */pe(function(e){var t=0;return F(e,function(){t++}),t},"count"),toArray:/* @__PURE__ */pe(function(e){return F(e,function(e){return e})||[]},"toArray"),only:/* @__PURE__ */pe(function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e},"only")};return be.Activity=d,be.Children=M,be.Component=y,be.Fragment=n,be.Profiler=o,be.PureComponent=v,be.StrictMode=r,be.Suspense=s,be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=S,be.__COMPILER_RUNTIME={__proto__:null,c:/* @__PURE__ */pe(function(e){return S.H.useMemoCache(e)},"c")},be.cache=function(e){return function(){return e.apply(null,arguments)}},be.cacheSignal=function(){return null},be.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=g({},e.props),o=e.key;if(null!=t)for(i in void 0!==t.key&&(o=""+t.key),t)!k.call(t,i)||"key"===i||"__self"===i||"__source"===i||"ref"===i&&void 0===t.ref||(r[i]=t[i]);var i=arguments.length-2;if(1===i)r.children=n;else if(1<i){for(var l=Array(i),a=0;a<i;a++)l[a]=arguments[a+2];r.children=l}return T(e.type,o,r)},be.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:i,_context:e},e},be.createElement=function(e,t,n){var r,o={},i=null;if(null!=t)for(r in void 0!==t.key&&(i=""+t.key),t)k.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var a=Array(l),s=0;s<l;s++)a[s]=arguments[s+2];o.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return T(e,i,o)},be.createRef=function(){return{current:null}},be.forwardRef=function(e){return{$$typeof:a,render:e}},be.isValidElement=E,be.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:L}},be.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},be.startTransition=function(e){var t=S.T,n={};S.T=n;try{var r=e(),o=S.S;null!==o&&o(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(C,O)}catch(i){O(i)}finally{null!==t&&null!==n.types&&(t.types=n.types),S.T=t}},be.unstable_useCacheRefresh=function(){return S.H.useCacheRefresh()},be.use=function(e){return S.H.use(e)},be.useActionState=function(e,t,n){return S.H.useActionState(e,t,n)},be.useCallback=function(e,t){return S.H.useCallback(e,t)},be.useContext=function(e){return S.H.useContext(e)},be.useDebugValue=function(){},be.useDeferredValue=function(e,t){return S.H.useDeferredValue(e,t)},be.useEffect=function(e,t){return S.H.useEffect(e,t)},be.useEffectEvent=function(e){return S.H.useEffectEvent(e)},be.useId=function(){return S.H.useId()},be.useImperativeHandle=function(e,t,n){return S.H.useImperativeHandle(e,t,n)},be.useInsertionEffect=function(e,t){return S.H.useInsertionEffect(e,t)},be.useLayoutEffect=function(e,t){return S.H.useLayoutEffect(e,t)},be.useMemo=function(e,t){return S.H.useMemo(e,t)},be.useOptimistic=function(e,t){return S.H.useOptimistic(e,t)},be.useReducer=function(e,t,n){return S.H.useReducer(e,t,n)},be.useRef=function(e){return S.H.useRef(e)},be.useState=function(e){return S.H.useState(e)},be.useSyncExternalStore=function(e,t,n){return S.H.useSyncExternalStore(e,t,n)},be.useTransition=function(){return S.H.useTransition()},be.version="19.2.4",be}function we(){return me||(me=1,ye.exports=ve()),ye.exports}x(ve,"m"),x(we,"h"),pe(ve,"requireReact_production"),pe(we,"requireReact");var _e=we();const xe=/* @__PURE__ */fe(_e);var Ce,Se,ke={exports:{}},Te={},Pe={exports:{}},Ee={};function ze(){return Ce||(Ce=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,l=i>>>1;r<l;){var a=2*(r+1)-1,s=e[a],u=a+1,c=e[u];if(0>o(s,n))u<i&&0>o(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[a]=n,r=a);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(x(t,"n"),x(n,"r"),x(r,"l"),x(o,"o"),pe(t,"push"),pe(n,"peek"),pe(r,"pop"),pe(o,"compare"),e.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,a=l.now();e.unstable_now=function(){return l.now()-a}}var s=[],u=[],c=1,d=null,h=3,p=!1,f=!1,g=!1,m=!1,y="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var o=n(u);null!==o;){if(null===o.callback)r(u);else{if(!(o.startTime<=e))break;r(u),o.sortIndex=o.expirationTime,t(s,o)}o=n(u)}}function _(e){if(g=!1,w(e),!f)if(null!==n(s))f=!0,S||(S=!0,C());else{var t=n(u);null!==t&&A(_,t.startTime-e)}}x(w,"S"),x(_,"k"),pe(w,"advanceTimers"),pe(_,"handleTimeout");var C,S=!1,k=-1,T=5,P=-1;function E(){return!(!m&&e.unstable_now()-P<T)}function z(){if(m=!1,S){var t=e.unstable_now();P=t;var o=!0;try{e:{f=!1,g&&(g=!1,b(k),k=-1),p=!0;var i=h;try{t:{for(w(t),d=n(s);null!==d&&!(d.expirationTime>t&&E());){var l=d.callback;if("function"==typeof l){d.callback=null,h=d.priorityLevel;var a=l(d.expirationTime<=t);if(t=e.unstable_now(),"function"==typeof a){d.callback=a,w(t),o=!0;break t}d===n(s)&&r(s),w(t)}else r(s);d=n(s)}if(null!==d)o=!0;else{var c=n(u);null!==c&&A(_,c.startTime-t),o=!1}}break e}finally{d=null,h=i,p=!1}o=void 0}}finally{o?C():S=!1}}}if(x(E,"P"),x(z,"T"),pe(E,"shouldYieldToHost"),pe(z,"performWorkUntilDeadline"),"function"==typeof v)C=/* @__PURE__ */pe(function(){v(z)},"schedulePerformWorkUntilDeadline");else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,R=I.port2;I.port1.onmessage=z,C=/* @__PURE__ */pe(function(){R.postMessage(null)},"schedulePerformWorkUntilDeadline")}else C=/* @__PURE__ */pe(function(){y(z,0)},"schedulePerformWorkUntilDeadline");function A(t,n){k=y(function(){t(e.unstable_now())},n)}x(A,"N"),pe(A,"requestHostTimeout"),e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},e.unstable_requestPaint=function(){m=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},e.unstable_scheduleCallback=function(r,o,i){var l=e.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?l+i:l,r){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return r={id:c++,callback:o,priorityLevel:r,startTime:i,expirationTime:a=i+a,sortIndex:-1},i>l?(r.sortIndex=i,t(u,r),null===n(s)&&r===n(u)&&(g?(b(k),k=-1):g=!0,A(_,i-l))):(r.sortIndex=a,t(s,r),f||p||(f=!0,S||(S=!0,C()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}}(Ee)),Ee}function Ie(){return Se||(Se=1,Pe.exports=ze()),Pe.exports}x(ze,"x"),x(Ie,"E$1"),pe(ze,"requireScheduler_production"),pe(Ie,"requireScheduler");var Re,Ae,De,Fe,Le={exports:{}},Oe={};function Me(){if(Re)return Oe;Re=1;var e=we();function t(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}x(t,"n"),x(n,"r"),pe(t,"formatProdErrorMessage"),pe(n,"noop");var r={d:{f:n,r:/* @__PURE__ */pe(function(){throw Error(t(522))},"r"),D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=/* @__PURE__ */Symbol.for("react.portal");function i(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:o,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}x(i,"a"),pe(i,"createPortal$1");var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}return x(a,"u"),pe(a,"getCrossOriginStringAs"),Oe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Oe.createPortal=function(e,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!n||1!==n.nodeType&&9!==n.nodeType&&11!==n.nodeType)throw Error(t(299));return i(e,n,null,r)},Oe.flushSync=function(e){var t=l.T,n=r.p;try{if(l.T=null,r.p=2,e)return e()}finally{l.T=t,r.p=n,r.d.f()}},Oe.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,r.d.C(e,t))},Oe.prefetchDNS=function(e){"string"==typeof e&&r.d.D(e)},Oe.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,o=a(n,t.crossOrigin),i="string"==typeof t.integrity?t.integrity:void 0,l="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?r.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:o,integrity:i,fetchPriority:l}):"script"===n&&r.d.X(e,{crossOrigin:o,integrity:i,fetchPriority:l,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},Oe.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=a(t.as,t.crossOrigin);r.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&r.d.M(e)},Oe.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,o=a(n,t.crossOrigin);r.d.L(e,n,{crossOrigin:o,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},Oe.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=a(t.as,t.crossOrigin);r.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else r.d.m(e)},Oe.requestFormReset=function(e){r.d.r(e)},Oe.unstable_batchedUpdates=function(e,t){return e(t)},Oe.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},Oe.useFormStatus=function(){return l.H.useHostTransitionStatus()},Oe.version="19.2.4",Oe}function Be(){if(Ae)return Le.exports;function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return x(e,"e"),Ae=1,pe(e,"checkDCE"),e(),Le.exports=Me(),Le.exports}function He(){if(De)return Te;De=1;var e=Ie(),t=we(),n=Be();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function i(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function l(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function a(e){if(31===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function s(e){if(i(e)!==e)throw Error(r(188))}function u(e){var t=e.alternate;if(!t){if(null===(t=i(e)))throw Error(r(188));return t!==e?null:e}for(var n=e,o=t;;){var l=n.return;if(null===l)break;var a=l.alternate;if(null===a){if(null!==(o=l.return)){n=o;continue}break}if(l.child===a.child){for(a=l.child;a;){if(a===n)return s(l),e;if(a===o)return s(l),t;a=a.sibling}throw Error(r(188))}if(n.return!==o.return)n=l,o=a;else{for(var u=!1,c=l.child;c;){if(c===n){u=!0,n=l,o=a;break}if(c===o){u=!0,o=l,n=a;break}c=c.sibling}if(!u){for(c=a.child;c;){if(c===n){u=!0,n=a,o=l;break}if(c===o){u=!0,o=a,n=l;break}c=c.sibling}if(!u)throw Error(r(189))}}if(n.alternate!==o)throw Error(r(190))}if(3!==n.tag)throw Error(r(188));return n.stateNode.current===n?e:t}function c(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=c(e)))return t;e=e.sibling}return null}x(r,"l"),x(o,"o"),x(i,"a"),x(l,"i"),x(a,"u"),x(s,"s"),x(u,"c"),x(c,"d"),pe(r,"formatProdErrorMessage"),pe(o,"isValidContainer"),pe(i,"getNearestMountedFiber"),pe(l,"getSuspenseInstanceFromFiber"),pe(a,"getActivityInstanceFromFiber"),pe(s,"assertIsMounted"),pe(u,"findCurrentFiberUsingSlowPath"),pe(c,"findCurrentHostFiberImpl");var d=Object.assign,h=/* @__PURE__ */Symbol.for("react.element"),p=/* @__PURE__ */Symbol.for("react.transitional.element"),f=/* @__PURE__ */Symbol.for("react.portal"),g=/* @__PURE__ */Symbol.for("react.fragment"),m=/* @__PURE__ */Symbol.for("react.strict_mode"),y=/* @__PURE__ */Symbol.for("react.profiler"),b=/* @__PURE__ */Symbol.for("react.consumer"),v=/* @__PURE__ */Symbol.for("react.context"),w=/* @__PURE__ */Symbol.for("react.forward_ref"),_=/* @__PURE__ */Symbol.for("react.suspense"),C=/* @__PURE__ */Symbol.for("react.suspense_list"),S=/* @__PURE__ */Symbol.for("react.memo"),k=/* @__PURE__ */Symbol.for("react.lazy"),T=/* @__PURE__ */Symbol.for("react.activity"),P=/* @__PURE__ */Symbol.for("react.memo_cache_sentinel"),E=Symbol.iterator;function z(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=E&&e[E]||e["@@iterator"])?e:null}x(z,"D"),pe(z,"getIteratorFn");var I=/* @__PURE__ */Symbol.for("react.client.reference");function R(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===I?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case g:return"Fragment";case y:return"Profiler";case m:return"StrictMode";case _:return"Suspense";case C:return"SuspenseList";case T:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case f:return"Portal";case v:return e.displayName||"Context";case b:return(e._context.displayName||"Context")+".Consumer";case w:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case S:return null!==(t=e.displayName||null)?t:R(e.type)||"Memo";case k:t=e._payload,e=e._init;try{return R(e(t))}catch(n){}}return null}x(R,"O"),pe(R,"getComponentNameFromType");var A=Array.isArray,D=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L={pending:!1,data:null,method:null,action:null},O=[],M=-1;function B(e){return{current:e}}function H(e){0>M||(e.current=O[M],O[M]=null,M--)}function N(e,t){M++,O[M]=e.current,e.current=t}x(B,"$"),x(H,"V"),x(N,"B"),pe(B,"createCursor"),pe(H,"pop"),pe(N,"push");var W,U,j=B(null),$=B(null),V=B(null),G=B(null);function q(e,t){switch(N(V,t),N($,e),N(j,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?$d(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=Vd(t=$d(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}H(j),N(j,e)}function Y(){H(j),H($),H(V)}function X(e){null!==e.memoizedState&&N(G,e);var t=j.current,n=Vd(t,e.type);t!==n&&(N($,e),N(j,n))}function K(e){$.current===e&&(H(j),H($)),G.current===e&&(H(G),ep._currentValue=L)}function Q(e){if(void 0===W)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);W=t&&t[1]||"",U=-1<n.stack.indexOf("\n at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+W+e+U}x(q,"J"),x(Y,"Z"),x(X,"ee"),x(K,"te"),x(Q,"ne"),pe(q,"pushHostContainer"),pe(Y,"popHostContainer"),pe(X,"pushHostContext"),pe(K,"popHostContext"),pe(Q,"describeBuiltInComponentFrame");var J=!1;function Z(e,t){if(!e||J)return"";J=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:/* @__PURE__ */pe(function(){try{if(t){var n=/* @__PURE__ */pe(function(){throw Error()},"Fake");if(Object.defineProperty(n.prototype,"props",{set:/* @__PURE__ */pe(function(){throw Error()},"set")}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(o){var r=o}Reflect.construct(e,[],n)}else{try{n.call()}catch(i){r=i}e.call(n.prototype)}}else{try{throw Error()}catch(l){r=l}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(a){if(a&&r&&"string"==typeof a.stack)return[a.stack,r.stack]}return[null,null]},"DetermineComponentFrameRoot")};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=r.DetermineComponentFrameRoot(),l=i[0],a=i[1];if(l&&a){var s=l.split("\n"),u=a.split("\n");for(o=r=0;r<s.length&&!s[r].includes("DetermineComponentFrameRoot");)r++;for(;o<u.length&&!u[o].includes("DetermineComponentFrameRoot");)o++;if(r===s.length||o===u.length)for(r=s.length-1,o=u.length-1;1<=r&&0<=o&&s[r]!==u[o];)o--;for(;1<=r&&0<=o;r--,o--)if(s[r]!==u[o]){if(1!==r||1!==o)do{if(r--,0>--o||s[r]!==u[o]){var c="\n"+s[r].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=r&&0<=o);break}}}finally{J=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Q(n):""}function ee(e,t){switch(e.tag){case 26:case 27:case 5:return Q(e.type);case 16:return Q("Lazy");case 13:return e.child!==t&&null!==t?Q("Suspense Fallback"):Q("Suspense");case 19:return Q("SuspenseList");case 0:case 15:return Z(e.type,!1);case 11:return Z(e.type.render,!1);case 1:return Z(e.type,!0);case 31:return Q("Activity");default:return""}}function te(e){try{var t="",n=null;do{t+=ee(e,n),n=e,e=e.return}while(e);return t}catch(r){return"\nError generating stack: "+r.message+"\n"+r.stack}}x(Z,"le"),x(ee,"oe"),x(te,"ae"),pe(Z,"describeNativeComponentFrame"),pe(ee,"describeFiber"),pe(te,"getStackByFiberInDevAndProd");var ne=Object.prototype.hasOwnProperty,re=e.unstable_scheduleCallback,oe=e.unstable_cancelCallback,ie=e.unstable_shouldYield,le=e.unstable_requestPaint,ae=e.unstable_now,se=e.unstable_getCurrentPriorityLevel,ue=e.unstable_ImmediatePriority,ce=e.unstable_UserBlockingPriority,de=e.unstable_NormalPriority,he=e.unstable_LowPriority,fe=e.unstable_IdlePriority,ge=e.log,me=e.unstable_setDisableYieldValue,ye=null,be=null;function ve(e){if("function"==typeof ge&&me(e),be&&"function"==typeof be.setStrictMode)try{be.setStrictMode(ye,e)}catch(t){}}x(ve,"Ce"),pe(ve,"setIsStrictModeForDevtools");var _e=Math.clz32?Math.clz32:Se,xe=Math.log,Ce=Math.LN2;function Se(e){return 0==(e>>>=0)?32:31-(xe(e)/Ce|0)|0}x(Se,"Ie"),pe(Se,"clz32Fallback");var ke=256,Pe=262144,Ee=4194304;function ze(e){var t=42&e;if(0!==t)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return 261888&e;case 262144:case 524288:case 1048576:case 2097152:return 3932160&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Re(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var o=0,i=e.suspendedLanes,l=e.pingedLanes;e=e.warmLanes;var a=134217727&r;return 0!==a?0!==(r=a&~i)?o=ze(r):0!==(l&=a)?o=ze(l):n||0!==(n=a&~e)&&(o=ze(n)):0!==(a=r&~i)?o=ze(a):0!==l?o=ze(l):n||0!==(n=r&~e)&&(o=ze(n)),0===o?0:0!==t&&t!==o&&0===(t&i)&&((i=o&-o)>=(n=t&-t)||32===i&&4194048&n)?t:o}function Ae(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Fe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function Le(){var e=Ee;return!(62914560&(Ee<<=1))&&(Ee=4194304),e}function Oe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Me(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function He(e,t,n,r,o,i){var l=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var a=e.entanglements,s=e.expirationTimes,u=e.hiddenUpdates;for(n=l&~n;0<n;){var c=31-_e(n),d=1<<c;a[c]=0,s[c]=-1;var h=u[c];if(null!==h)for(u[c]=null,c=0;c<h.length;c++){var p=h[c];null!==p&&(p.lane&=-536870913)}n&=~d}0!==r&&Ne(e,r,0),0!==i&&0===o&&0!==e.tag&&(e.suspendedLanes|=i&~(l&~t))}function Ne(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-_e(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|261930&n}function We(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-_e(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}function Ue(e,t){var n=t&-t;return 0!==((n=42&n?1:je(n))&(e.suspendedLanes|t))?0:n}function je(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function $e(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function Ve(){var e=F.p;return 0!==e?e:void 0===(e=window.event)?32:mp(e.type)}function Ge(e,t){var n=F.p;try{return F.p=e,t()}finally{F.p=n}}x(ze,"_e"),x(Re,"Ne"),x(Ae,"Fe"),x(Fe,"De"),x(Le,"Le"),x(Oe,"Oe"),x(Me,"Ae"),x(He,"Me"),x(Ne,"He"),x(We,"Ue"),x(Ue,"je"),x(je,"We"),x($e,"$e"),x(Ve,"Ve"),x(Ge,"Be"),pe(ze,"getHighestPriorityLanes"),pe(Re,"getNextLanes"),pe(Ae,"checkIfRootIsPrerendering"),pe(Fe,"computeExpirationTime"),pe(Le,"claimNextRetryLane"),pe(Oe,"createLaneMap"),pe(Me,"markRootUpdated$1"),pe(He,"markRootFinished"),pe(Ne,"markSpawnedDeferredLane"),pe(We,"markRootEntangled"),pe(Ue,"getBumpedLaneForHydration"),pe(je,"getBumpedLaneForHydrationByLane"),pe($e,"lanesToEventPriority"),pe(Ve,"resolveUpdatePriority"),pe(Ge,"runWithPriority");var qe=Math.random().toString(36).slice(2),Ye="__reactFiber$"+qe,Xe="__reactProps$"+qe,Ke="__reactContainer$"+qe,Qe="__reactEvents$"+qe,Je="__reactListeners$"+qe,Ze="__reactHandles$"+qe,et="__reactResources$"+qe,tt="__reactMarker$"+qe;function nt(e){delete e[Ye],delete e[Xe],delete e[Qe],delete e[Je],delete e[Ze]}function rt(e){var t=e[Ye];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ke]||n[Ye]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ph(e);null!==e;){if(n=e[Ye])return n;e=ph(e)}return t}n=(e=n).parentNode}return null}function ot(e){if(e=e[Ye]||e[Ke]){var t=e.tag;if(5===t||6===t||13===t||31===t||26===t||27===t||3===t)return e}return null}function it(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(r(33))}function lt(e){var t=e[et];return t||(t=e[et]={hoistableStyles:/* @__PURE__ */new Map,hoistableScripts:/* @__PURE__ */new Map}),t}function at(e){e[tt]=!0}x(nt,"tt"),x(rt,"nt"),x(ot,"rt"),x(it,"lt"),x(lt,"ot"),x(at,"at"),pe(nt,"detachDeletedInstance"),pe(rt,"getClosestInstanceFromNode"),pe(ot,"getInstanceFromNode"),pe(it,"getNodeFromInstance"),pe(lt,"getResourcesFromRoot"),pe(at,"markNodeAsHoistable");var st=/* @__PURE__ */new Set,ut={};function ct(e,t){dt(e,t),dt(e+"Capture",t)}function dt(e,t){for(ut[e]=t,e=0;e<t.length;e++)st.add(t[e])}x(ct,"st"),x(dt,"ct"),pe(ct,"registerTwoPhaseEvent"),pe(dt,"registerDirectEvent");var ht=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),pt={},ft={};function gt(e){return!!ne.call(ft,e)||!ne.call(pt,e)&&(ht.test(e)?ft[e]=!0:(pt[e]=!0,!1))}function mt(e,t,n){if(gt(t))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function yt(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function bt(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function vt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function wt(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function _t(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:/* @__PURE__ */pe(function(){return o.call(this)},"get"),set:/* @__PURE__ */pe(function(e){n=""+e,i.call(this,e)},"set")}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:/* @__PURE__ */pe(function(){return n},"getValue"),setValue:/* @__PURE__ */pe(function(e){n=""+e},"setValue"),stopTracking:/* @__PURE__ */pe(function(){e._valueTracker=null,delete e[t]},"stopTracking")}}}function xt(e){if(!e._valueTracker){var t=wt(e)?"checked":"value";e._valueTracker=_t(e,t,""+e[t])}}function Ct(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=wt(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function St(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}x(gt,"mt"),x(mt,"ht"),x(yt,"gt"),x(bt,"yt"),x(vt,"vt"),x(wt,"bt"),x(_t,"wt"),x(xt,"St"),x(Ct,"kt"),x(St,"Ct"),pe(gt,"isAttributeNameSafe"),pe(mt,"setValueForAttribute"),pe(yt,"setValueForKnownAttribute"),pe(bt,"setValueForNamespacedAttribute"),pe(vt,"getToStringValue"),pe(wt,"isCheckable"),pe(_t,"trackValueOnNode"),pe(xt,"track"),pe(Ct,"updateValueIfChanged"),pe(St,"getActiveElement");var kt=/[\n"\\]/g;function Tt(e){return e.replace(kt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Pt(e,t,n,r,o,i,l,a){e.name="",null!=l&&"function"!=typeof l&&"symbol"!=typeof l&&"boolean"!=typeof l?e.type=l:e.removeAttribute("type"),null!=t?"number"===l?(0===t&&""===e.value||e.value!=t)&&(e.value=""+vt(t)):e.value!==""+vt(t)&&(e.value=""+vt(t)):"submit"!==l&&"reset"!==l||e.removeAttribute("value"),null!=t?zt(e,l,vt(t)):null!=n?zt(e,l,vt(n)):null!=r&&e.removeAttribute("value"),null==o&&null!=i&&(e.defaultChecked=!!i),null!=o&&(e.checked=o&&"function"!=typeof o&&"symbol"!=typeof o),null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a?e.name=""+vt(a):e.removeAttribute("name")}function Et(e,t,n,r,o,i,l,a){if(null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i&&(e.type=i),null!=t||null!=n){if(("submit"===i||"reset"===i)&&null==t)return void xt(e);n=null!=n?""+vt(n):"",t=null!=t?""+vt(t):n,a||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:o)&&"symbol"!=typeof r&&!!r,e.checked=a?e.checked:!!r,e.defaultChecked=!!r,null!=l&&"function"!=typeof l&&"symbol"!=typeof l&&"boolean"!=typeof l&&(e.name=l),xt(e)}function zt(e,t,n){"number"===t&&St(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function It(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+vt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Rt(e,t,n){null==t||((t=""+vt(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+vt(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function At(e,t,n,o){if(null==t){if(null!=o){if(null!=n)throw Error(r(92));if(A(o)){if(1<o.length)throw Error(r(93));o=o[0]}n=o}null==n&&(n=""),t=n}n=vt(t),e.defaultValue=n,(o=e.textContent)===n&&""!==o&&null!==o&&(e.value=o),xt(e)}function Dt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}x(Tt,"Et"),x(Pt,"Rt"),x(Et,"It"),x(zt,"Pt"),x(It,"Tt"),x(Rt,"zt"),x(At,"_t"),x(Dt,"Nt"),pe(Tt,"escapeSelectorAttributeValueInsideDoubleQuotes"),pe(Pt,"updateInput"),pe(Et,"initInput"),pe(zt,"setDefaultValue"),pe(It,"updateOptions"),pe(Rt,"updateTextarea"),pe(At,"initTextarea"),pe(Dt,"setTextContent");var Ft=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Lt(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||Ft.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Ot(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(r(62));if(e=e.style,null!=n){for(var o in n)!n.hasOwnProperty(o)||null!=t&&t.hasOwnProperty(o)||(0===o.indexOf("--")?e.setProperty(o,""):"float"===o?e.cssFloat="":e[o]="");for(var i in t)o=t[i],t.hasOwnProperty(i)&&n[i]!==o&&Lt(e,i,o)}else for(var l in t)t.hasOwnProperty(l)&&Lt(e,l,t[l])}function Mt(e){if(-1===e.indexOf("-"))return!1;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}}x(Lt,"Dt"),x(Ot,"Lt"),x(Mt,"Ot"),pe(Lt,"setValueForStyle"),pe(Ot,"setValueForStyles"),pe(Mt,"isCustomElement");var Bt=/* @__PURE__ */new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Ht=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Nt(e){return Ht.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Wt(){}x(Nt,"Ht"),x(Wt,"Ut"),pe(Nt,"sanitizeURL"),pe(Wt,"noop$1");var Ut=null;function jt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}x(jt,"Wt"),pe(jt,"getEventTarget");var $t=null,Vt=null;function Gt(e){var t=ot(e);if(t&&(e=t.stateNode)){var n=e[Xe]||null;e:switch(e=t.stateNode,t.type){case"input":if(Pt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Tt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var i=o[Xe]||null;if(!i)throw Error(r(90));Pt(o,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)(o=n[t]).form===e.form&&Ct(o)}break e;case"textarea":Rt(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&It(e,!!n.multiple,t,!1)}}}x(Gt,"Bt"),pe(Gt,"restoreStateOfTarget");var qt=!1;function Yt(e,t,n){if(qt)return e(t,n);qt=!0;try{return e(t)}finally{if(qt=!1,(null!==$t||null!==Vt)&&(wc(),$t&&(t=$t,e=Vt,Vt=$t=null,Gt(t),e)))for(t=0;t<e.length;t++)Gt(e[t])}}function Xt(e,t){var n=e.stateNode;if(null===n)return null;var o=n[Xe]||null;if(null===o)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(r(231,t,typeof n));return n}x(Yt,"Kt"),x(Xt,"Qt"),pe(Yt,"batchedUpdates$1"),pe(Xt,"getListener");var Kt=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Qt=!1;if(Kt)try{var Jt={};Object.defineProperty(Jt,"passive",{get:/* @__PURE__ */pe(function(){Qt=!0},"get")}),window.addEventListener("test",Jt,Jt),window.removeEventListener("test",Jt,Jt)}catch(Up){Qt=!1}var Zt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,o="value"in Zt?Zt.value:Zt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var l=r-e;for(t=1;t<=l&&n[r-t]===o[i-t];t++);return tn=o.slice(e,1<t?1-t:void 0)}function rn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function on(){return!0}function ln(){return!1}function an(e){function t(t,n,r,o,i){for(var l in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(l)&&(t=e[l],this[l]=t?t(o):o[l]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?on:ln,this.isPropagationStopped=ln,this}return x(t,"n"),pe(t,"SyntheticBaseEvent"),d(t.prototype,{preventDefault:/* @__PURE__ */pe(function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=on)},"preventDefault"),stopPropagation:/* @__PURE__ */pe(function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},"stopPropagation"),persist:/* @__PURE__ */pe(function(){},"persist"),isPersistent:on}),t}x(nn,"tn"),x(rn,"nn"),x(on,"rn"),x(ln,"ln"),x(an,"on"),pe(nn,"getData"),pe(rn,"getEventCharCode"),pe(on,"functionThatReturnsTrue"),pe(ln,"functionThatReturnsFalse"),pe(an,"createSyntheticEvent");var sn,un,cn,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:/* @__PURE__ */pe(function(e){return e.timeStamp||Date.now()},"timeStamp"),defaultPrevented:0,isTrusted:0},hn=an(dn),pn=d({},dn,{view:0,detail:0}),fn=an(pn),gn=d({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tn,button:0,buttons:0,relatedTarget:/* @__PURE__ */pe(function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},"relatedTarget"),movementX:/* @__PURE__ */pe(function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(sn=e.screenX-cn.screenX,un=e.screenY-cn.screenY):un=sn=0,cn=e),sn)},"movementX"),movementY:/* @__PURE__ */pe(function(e){return"movementY"in e?e.movementY:un},"movementY")}),mn=an(gn),yn=an(d({},gn,{dataTransfer:0})),bn=an(d({},pn,{relatedTarget:0})),vn=an(d({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),wn=an(d({},dn,{clipboardData:/* @__PURE__ */pe(function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData},"clipboardData")})),_n=an(d({},dn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function Tn(){return kn}x(kn,"xn"),x(Tn,"En"),pe(kn,"modifierStateGetter"),pe(Tn,"getEventModifierState");var Pn=an(d({},pn,{key:/* @__PURE__ */pe(function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Cn[e.keyCode]||"Unidentified":""},"key"),code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tn,charCode:/* @__PURE__ */pe(function(e){return"keypress"===e.type?rn(e):0},"charCode"),keyCode:/* @__PURE__ */pe(function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},"keyCode"),which:/* @__PURE__ */pe(function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0},"which")})),En=an(d({},gn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),zn=an(d({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tn})),In=an(d({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Rn=an(d({},gn,{deltaX:/* @__PURE__ */pe(function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},"deltaX"),deltaY:/* @__PURE__ */pe(function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},"deltaY"),deltaZ:0,deltaMode:0})),An=an(d({},dn,{newState:0,oldState:0})),Dn=[9,13,27,32],Fn=Kt&&"CompositionEvent"in window,Ln=null;Kt&&"documentMode"in document&&(Ln=document.documentMode);var On=Kt&&"TextEvent"in window&&!Ln,Mn=Kt&&(!Fn||Ln&&8<Ln&&11>=Ln),Bn=String.fromCharCode(32),Hn=!1;function Nn(e,t){switch(e){case"keyup":return-1!==Dn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}x(Nn,"Hn"),x(Wn,"Un"),pe(Nn,"isFallbackCompositionEnd"),pe(Wn,"getDataFromCustomEvent");var Un=!1;function jn(e,t){switch(e){case"compositionend":return Wn(t);case"keypress":return 32!==t.which?null:(Hn=!0,Bn);case"textInput":return(e=t.data)===Bn&&Hn?null:e;default:return null}}function $n(e,t){if(Un)return"compositionend"===e||!Fn&&Nn(e,t)?(e=nn(),tn=en=Zt=null,Un=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Mn&&"ko"!==t.locale?null:t.data}}x(jn,"Wn"),x($n,"$n"),pe(jn,"getNativeBeforeInputChars"),pe($n,"getFallbackBeforeInputChars");var Vn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Gn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Vn[e.type]:"textarea"===t}function qn(e,t,n,r){$t?Vt?Vt.push(r):Vt=[r]:$t=r,0<(t=Ed(t,"onChange")).length&&(n=new hn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}x(Gn,"Bn"),x(qn,"qn"),pe(Gn,"isTextInputElement"),pe(qn,"createAndAccumulateChangeEvent");var Yn=null,Xn=null;function Kn(e){wd(e,0)}function Qn(e){if(Ct(it(e)))return e}function Jn(e,t){if("change"===e)return t}x(Kn,"Gn"),x(Qn,"Yn"),x(Jn,"Xn"),pe(Kn,"runEventInBatch"),pe(Qn,"getInstIfValueChanged"),pe(Jn,"getTargetInstForChangeEvent");var Zn=!1;if(Kt){var er;if(Kt){var tr="oninput"in document;if(!tr){var nr=document.createElement("div");nr.setAttribute("oninput","return;"),tr="function"==typeof nr.oninput}er=tr}else er=!1;Zn=er&&(!document.documentMode||9<document.documentMode)}function rr(){Yn&&(Yn.detachEvent("onpropertychange",or),Xn=Yn=null)}function or(e){if("value"===e.propertyName&&Qn(Xn)){var t=[];qn(t,Xn,e,jt(e)),Yt(Kn,t)}}function ir(e,t,n){"focusin"===e?(rr(),Xn=n,(Yn=t).attachEvent("onpropertychange",or)):"focusout"===e&&rr()}function lr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn(Xn)}function ar(e,t){if("click"===e)return Qn(t)}function sr(e,t){if("input"===e||"change"===e)return Qn(t)}function ur(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}x(rr,"nr"),x(or,"rr"),x(ir,"lr"),x(lr,"or"),x(ar,"ar"),x(sr,"ir"),x(ur,"ur"),pe(rr,"stopWatchingForValueChange"),pe(or,"handlePropertyChange"),pe(ir,"handleEventsForInputEventPolyfill"),pe(lr,"getTargetInstForInputEventPolyfill"),pe(ar,"getTargetInstForClickEvent"),pe(sr,"getTargetInstForInputOrChangeEvent"),pe(ur,"is");var cr="function"==typeof Object.is?Object.is:ur;function dr(e,t){if(cr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!ne.call(t,o)||!cr(e[o],t[o]))return!1}return!0}function hr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pr(e,t){var n,r=hr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=hr(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function gr(e){for(var t=St((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=St((e=t.contentWindow).document)}return t}function mr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}x(dr,"cr"),x(hr,"dr"),x(pr,"fr"),x(fr,"pr"),x(gr,"mr"),x(mr,"hr"),pe(dr,"shallowEqual"),pe(hr,"getLeafNode"),pe(pr,"getNodeForCharacterOffset"),pe(fr,"containsNode"),pe(gr,"getActiveElementDeep"),pe(mr,"hasSelectionCapabilities");var yr=Kt&&"documentMode"in document&&11>=document.documentMode,br=null,vr=null,wr=null,_r=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;_r||null==br||br!==St(r)||(r="selectionStart"in(r=br)&&mr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},wr&&dr(wr,r)||(wr=r,0<(r=Ed(vr,"onSelect")).length&&(t=new hn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=br)))}function Cr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}x(xr,"Sr"),x(Cr,"kr"),pe(xr,"constructSelectEvent"),pe(Cr,"makePrefixMap");var Sr={animationend:Cr("Animation","AnimationEnd"),animationiteration:Cr("Animation","AnimationIteration"),animationstart:Cr("Animation","AnimationStart"),transitionrun:Cr("Transition","TransitionRun"),transitionstart:Cr("Transition","TransitionStart"),transitioncancel:Cr("Transition","TransitionCancel"),transitionend:Cr("Transition","TransitionEnd")},kr={},Tr={};function Pr(e){if(kr[e])return kr[e];if(!Sr[e])return e;var t,n=Sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Tr)return kr[e]=n[t];return e}x(Pr,"Rr"),Kt&&(Tr=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition),pe(Pr,"getVendorPrefixedEventName");var Er=Pr("animationend"),zr=Pr("animationiteration"),Ir=Pr("animationstart"),Rr=Pr("transitionrun"),Ar=Pr("transitionstart"),Dr=Pr("transitioncancel"),Fr=Pr("transitionend"),Lr=/* @__PURE__ */new Map,Or="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Mr(e,t){Lr.set(e,t),ct(t,[e])}x(Mr,"Or"),Or.push("scrollEnd"),pe(Mr,"registerSimpleEvent");var Br="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},Hr=[],Nr=0,Wr=0;function Ur(){for(var e=Nr,t=Wr=Nr=0;t<e;){var n=Hr[t];Hr[t++]=null;var r=Hr[t];Hr[t++]=null;var o=Hr[t];Hr[t++]=null;var i=Hr[t];if(Hr[t++]=null,null!==r&&null!==o){var l=r.pending;null===l?o.next=o:(o.next=l.next,l.next=o),r.pending=o}0!==i&&Gr(n,o,i)}}function jr(e,t,n,r){Hr[Nr++]=e,Hr[Nr++]=t,Hr[Nr++]=n,Hr[Nr++]=r,Wr|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function $r(e,t,n,r){return jr(e,t,n,r),qr(e)}function Vr(e,t){return jr(e,null,null,t),qr(e)}function Gr(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var o=!1,i=e.return;null!==i;)i.childLanes|=n,null!==(r=i.alternate)&&(r.childLanes|=n),22===i.tag&&(null===(e=i.stateNode)||1&e._visibility||(o=!0)),e=i,i=i.return;return 3===e.tag?(i=e.stateNode,o&&null!==t&&(o=31-_e(n),null===(r=(e=i.hiddenUpdates)[o])?e[o]=[t]:r.push(t),t.lane=536870912|n),i):null}function qr(e){if(50<dc)throw dc=0,hc=null,Error(r(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}x(Ur,"jr"),x(jr,"Wr"),x($r,"$r"),x(Vr,"Vr"),x(Gr,"Br"),x(qr,"qr"),pe(Ur,"finishQueueingConcurrentUpdates"),pe(jr,"enqueueUpdate$1"),pe($r,"enqueueConcurrentHookUpdate"),pe(Vr,"enqueueConcurrentRenderForLane"),pe(Gr,"markUpdateLaneFromFiberToRoot"),pe(qr,"getRootForUpdatedFiber");var Yr={};function Xr(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.refCleanup=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 Kr(e,t,n,r){return new Xr(e,t,n,r)}function Qr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Jr(e,t){var n=e.alternate;return null===n?((n=Kr(e.tag,t,e.key,e.mode)).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=65011712&e.flags,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=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Zr(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function eo(e,t,n,o,i,l){var a=0;if(o=e,"function"==typeof e)Qr(e)&&(a=1);else if("string"==typeof e)a=Vh(e,n,j.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case T:return(e=Kr(31,n,t,i)).elementType=T,e.lanes=l,e;case g:return to(n.children,i,l,t);case m:a=8,i|=24;break;case y:return(e=Kr(12,n,t,2|i)).elementType=y,e.lanes=l,e;case _:return(e=Kr(13,n,t,i)).elementType=_,e.lanes=l,e;case C:return(e=Kr(19,n,t,i)).elementType=C,e.lanes=l,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case v:a=10;break e;case b:a=9;break e;case w:a=11;break e;case S:a=14;break e;case k:a=16,o=null;break e}a=29,n=Error(r(130,null===e?"null":typeof e,"")),o=null}return(t=Kr(a,n,t,i)).elementType=e,t.type=o,t.lanes=l,t}function to(e,t,n,r){return(e=Kr(7,e,r,t)).lanes=n,e}function no(e,t,n){return(e=Kr(6,e,null,t)).lanes=n,e}function ro(e){var t=Kr(18,null,null,0);return t.stateNode=e,t}function oo(e,t,n){return(t=Kr(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}x(Xr,"Qr"),x(Kr,"Gr"),x(Qr,"Yr"),x(Jr,"Xr"),x(Zr,"Jr"),x(eo,"Zr"),x(to,"el"),x(no,"tl"),x(ro,"nl"),x(oo,"rl"),pe(Xr,"FiberNode"),pe(Kr,"createFiberImplClass"),pe(Qr,"shouldConstruct"),pe(Jr,"createWorkInProgress"),pe(Zr,"resetWorkInProgress"),pe(eo,"createFiberFromTypeAndProps"),pe(to,"createFiberFromFragment"),pe(no,"createFiberFromText"),pe(ro,"createFiberFromDehydratedFragment"),pe(oo,"createFiberFromPortal");var io=/* @__PURE__ */new WeakMap;function lo(e,t){if("object"==typeof e&&null!==e){var n=io.get(e);return void 0!==n?n:(t={value:e,source:t,stack:te(t)},io.set(e,t),t)}return{value:e,source:t,stack:te(t)}}x(lo,"ol"),pe(lo,"createCapturedValueAtFiber");var ao=[],so=0,uo=null,co=0,ho=[],po=0,fo=null,go=1,mo="";function yo(e,t){ao[so++]=co,ao[so++]=uo,uo=e,co=t}function bo(e,t,n){ho[po++]=go,ho[po++]=mo,ho[po++]=fo,fo=e;var r=go;e=mo;var o=32-_e(r)-1;r&=~(1<<o),n+=1;var i=32-_e(t)+o;if(30<i){var l=o-o%5;i=(r&(1<<l)-1).toString(32),r>>=l,o-=l,go=1<<32-_e(t)+o|n<<o|r,mo=i+e}else go=1<<i|n<<o|r,mo=e}function vo(e){null!==e.return&&(yo(e,1),bo(e,1,0))}function wo(e){for(;e===uo;)uo=ao[--so],ao[so]=null,co=ao[--so],ao[so]=null;for(;e===fo;)fo=ho[--po],ho[po]=null,mo=ho[--po],ho[po]=null,go=ho[--po],ho[po]=null}function _o(e,t){ho[po++]=go,ho[po++]=mo,ho[po++]=fo,go=t.id,mo=t.overflow,fo=e}x(yo,"hl"),x(bo,"gl"),x(vo,"yl"),x(wo,"vl"),x(_o,"bl"),pe(yo,"pushTreeFork"),pe(bo,"pushTreeId"),pe(vo,"pushMaterializedTreeId"),pe(wo,"popTreeContext"),pe(_o,"restoreSuspendedTreeContext");var xo=null,Co=null,So=!1,ko=null,To=!1,Po=Error(r(519));function Eo(e){throw Fo(lo(Error(r(418,1<arguments.length&&void 0!==arguments[1]&&arguments[1]?"text":"HTML","")),e)),Po}function zo(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Ye]=e,t[Xe]=r,n){case"dialog":_d("cancel",t),_d("close",t);break;case"iframe":case"object":case"embed":_d("load",t);break;case"video":case"audio":for(n=0;n<bd.length;n++)_d(bd[n],t);break;case"source":_d("error",t);break;case"img":case"image":case"link":_d("error",t),_d("load",t);break;case"details":_d("toggle",t);break;case"input":_d("invalid",t),Et(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":_d("invalid",t);break;case"textarea":_d("invalid",t),At(t,r.value,r.defaultValue,r.children)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||Fd(t.textContent,n)?(null!=r.popover&&(_d("beforetoggle",t),_d("toggle",t)),null!=r.onScroll&&_d("scroll",t),null!=r.onScrollEnd&&_d("scrollend",t),null!=r.onClick&&(t.onclick=Wt),t=!0):t=!1,t||Eo(e,!0)}function Io(e){for(xo=e.return;xo;)switch(xo.tag){case 5:case 31:case 13:return void(To=!1);case 27:case 3:return void(To=!0);default:xo=xo.return}}function Ro(e){if(e!==xo)return!1;if(!So)return Io(e),So=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||Gd(e.type,e.memoizedProps)),t=!t),t&&Co&&Eo(e),Io(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));Co=hh(e)}else if(31===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));Co=hh(e)}else 27===n?(n=Co,eh(e.type)?(e=dh,dh=null,Co=e):Co=n):Co=xo?ch(e.stateNode.nextSibling):null;return!0}function Ao(){Co=xo=null,So=!1}function Do(){var e=ko;return null!==e&&(null===Qu?Qu=e:Qu.push.apply(Qu,e),ko=null),e}function Fo(e){null===ko?ko=[e]:ko.push(e)}x(Eo,"Rl"),x(zo,"Il"),x(Io,"Pl"),x(Ro,"Tl"),x(Ao,"zl"),x(Do,"_l"),x(Fo,"Nl"),pe(Eo,"throwOnHydrationMismatch"),pe(zo,"prepareToHydrateHostInstance"),pe(Io,"popToNextHostParent"),pe(Ro,"popHydrationState"),pe(Ao,"resetHydrationState"),pe(Do,"upgradeHydrationErrorsToRecoverable"),pe(Fo,"queueHydrationError");var Lo=B(null),Oo=null,Mo=null;function Bo(e,t,n){N(Lo,t._currentValue),t._currentValue=n}function Ho(e){e._currentValue=Lo.current,H(Lo)}function No(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Wo(e,t,n,o){var i=e.child;for(null!==i&&(i.return=e);null!==i;){var l=i.dependencies;if(null!==l){var a=i.child;l=l.firstContext;e:for(;null!==l;){var s=l;l=i;for(var u=0;u<t.length;u++)if(s.context===t[u]){l.lanes|=n,null!==(s=l.alternate)&&(s.lanes|=n),No(l.return,n,e),o||(a=null);break e}l=s.next}}else if(18===i.tag){if(null===(a=i.return))throw Error(r(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),No(a,n,e),a=null}else a=i.child;if(null!==a)a.return=i;else for(a=i;null!==a;){if(a===e){a=null;break}if(null!==(i=a.sibling)){i.return=a.return,a=i;break}a=a.return}i=a}}function Uo(e,t,n,o){e=null;for(var i=t,l=!1;null!==i;){if(!l)if(524288&i.flags)l=!0;else if(262144&i.flags)break;if(10===i.tag){var a=i.alternate;if(null===a)throw Error(r(387));if(null!==(a=a.memoizedProps)){var s=i.type;cr(i.pendingProps.value,a.value)||(null!==e?e.push(s):e=[s])}}else if(i===G.current){if(null===(a=i.alternate))throw Error(r(387));a.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(null!==e?e.push(ep):e=[ep])}i=i.return}null!==e&&Wo(t,e,n,o),t.flags|=262144}function jo(e){for(e=e.firstContext;null!==e;){if(!cr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function $o(e){Oo=e,Mo=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Vo(e){return qo(Oo,e)}function Go(e,t){return null===Oo&&$o(e),qo(e,t)}function qo(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===Mo){if(null===e)throw Error(r(308));Mo=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Mo=Mo.next=t;return n}x(Bo,"Ol"),x(Ho,"Al"),x(No,"Ml"),x(Wo,"Hl"),x(Uo,"Ul"),x(jo,"jl"),x($o,"Wl"),x(Vo,"$l"),x(Go,"Vl"),x(qo,"Bl"),pe(Bo,"pushProvider"),pe(Ho,"popProvider"),pe(No,"scheduleContextWorkOnParentPath"),pe(Wo,"propagateContextChanges"),pe(Uo,"propagateParentContextChanges"),pe(jo,"checkIfContextChanged"),pe($o,"prepareToReadContext"),pe(Vo,"readContext"),pe(Go,"readContextDuringReconciliation"),pe(qo,"readContextForConsumer");var Yo="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:/* @__PURE__ */pe(function(t,n){e.push(n)},"addEventListener")};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Xo=e.unstable_scheduleCallback,Ko=e.unstable_NormalPriority,Qo={$$typeof:v,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Jo(){return{controller:new Yo,data:/* @__PURE__ */new Map,refCount:0}}function Zo(e){e.refCount--,0===e.refCount&&Xo(Ko,function(){e.controller.abort()})}x(Jo,"Yl"),x(Zo,"Xl"),pe(Jo,"createCache"),pe(Zo,"releaseCache");var ei=null,ti=0,ni=0,ri=null;function oi(e,t){if(null===ei){var n=ei=[];ti=0,ni=hd(),ri={status:"pending",value:void 0,then:/* @__PURE__ */pe(function(e){n.push(e)},"then")}}return ti++,t.then(ii,ii),t}function ii(){if(0===--ti&&null!==ei){null!==ri&&(ri.status="fulfilled");var e=ei;ei=null,ni=0,ri=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function li(e,t){var n=[],r={status:"pending",value:null,reason:null,then:/* @__PURE__ */pe(function(e){n.push(e)},"then")};return e.then(function(){r.status="fulfilled",r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status="rejected",r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}x(oi,"no"),x(ii,"ro"),x(li,"lo"),pe(oi,"entangleAsyncAction"),pe(ii,"pingEngtangledActionScope"),pe(li,"chainThenableValue");var ai=D.S;D.S=function(e,t){ec=ae(),"object"==typeof t&&null!==t&&"function"==typeof t.then&&oi(0,t),null!==ai&&ai(e,t)};var si=B(null);function ui(){var e=si.current;return null!==e?e:Lu.pooledCache}function ci(e,t){N(si,null===t?si.current:t.pool)}function di(){var e=ui();return null===e?null:{parent:Qo._currentValue,pool:e}}x(ui,"io"),x(ci,"uo"),x(di,"so"),pe(ui,"peekCacheFromPool"),pe(ci,"pushTransition"),pe(di,"getSuspendedCache");var hi=Error(r(460)),pi=Error(r(474)),fi=Error(r(542)),gi={then:/* @__PURE__ */pe(function(){},"then")};function mi(e){return"fulfilled"===(e=e.status)||"rejected"===e}function yi(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(Wt,Wt),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw _i(e=t.reason),e;default:if("string"==typeof t.status)t.then(Wt,Wt);else{if(null!==(e=Lu)&&100<e.shellSuspendCounter)throw Error(r(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw _i(e=t.reason),e}throw vi=t,hi}}function bi(e){try{return(0,e._init)(e._payload)}catch(t){if(null!==t&&"object"==typeof t&&"function"==typeof t.then)throw vi=t,hi;throw t}}x(mi,"ho"),x(yi,"go"),x(bi,"yo"),pe(mi,"isThenableResolved"),pe(yi,"trackUsedThenable"),pe(bi,"resolveLazy");var vi=null;function wi(){if(null===vi)throw Error(r(459));var e=vi;return vi=null,e}function _i(e){if(e===hi||e===fi)throw Error(r(483))}x(wi,"bo"),x(_i,"wo"),pe(wi,"getSuspendedThenable"),pe(_i,"checkIfUseWrappedInAsyncCatch");var xi=null,Ci=0;function Si(e){var t=Ci;return Ci+=1,null===xi&&(xi=[]),yi(xi,e,t)}function ki(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function Ti(e,t){if(t.$$typeof===h)throw Error(r(525));throw e=Object.prototype.toString.call(t),Error(r(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Pi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(e){for(var t=/* @__PURE__ */new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function i(e,t){return(e=Jr(e,t)).index=0,e.sibling=null,e}function l(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=no(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===g?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===k&&bi(o)===t.type)?(ki(t=i(t,n.props),n),t.return=e,t):(ki(t=eo(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=oo(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=to(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function h(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=no(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case p:return ki(n=eo(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case f:return(t=oo(t,e.mode,n)).return=e,t;case k:return h(e,t=bi(t),n)}if(A(t)||z(t))return(t=to(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return h(e,Si(t),n);if(t.$$typeof===v)return h(e,Go(e,t),n);Ti(e,t)}return null}function m(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case p:return n.key===o?u(e,t,n,r):null;case f:return n.key===o?c(e,t,n,r):null;case k:return m(e,t,n=bi(n),r)}if(A(n)||z(n))return null!==o?null:d(e,t,n,r,null);if("function"==typeof n.then)return m(e,t,Si(n),r);if(n.$$typeof===v)return m(e,t,Go(e,n),r);Ti(e,n)}return null}function y(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case p:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case f:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case k:return y(e,t,n,r=bi(r),o)}if(A(r)||z(r))return d(t,e=e.get(n)||null,r,o,null);if("function"==typeof r.then)return y(e,t,n,Si(r),o);if(r.$$typeof===v)return y(e,t,n,Go(t,r),o);Ti(t,r)}return null}function b(r,i,a,s){for(var u=null,c=null,d=i,p=i=0,f=null;null!==d&&p<a.length;p++){d.index>p?(f=d,d=null):f=d.sibling;var g=m(r,d,a[p],s);if(null===g){null===d&&(d=f);break}e&&d&&null===g.alternate&&t(r,d),i=l(g,i,p),null===c?u=g:c.sibling=g,c=g,d=f}if(p===a.length)return n(r,d),So&&yo(r,p),u;if(null===d){for(;p<a.length;p++)null!==(d=h(r,a[p],s))&&(i=l(d,i,p),null===c?u=d:c.sibling=d,c=d);return So&&yo(r,p),u}for(d=o(d);p<a.length;p++)null!==(f=y(d,r,p,a[p],s))&&(e&&null!==f.alternate&&d.delete(null===f.key?p:f.key),i=l(f,i,p),null===c?u=f:c.sibling=f,c=f);return e&&d.forEach(function(e){return t(r,e)}),So&&yo(r,p),u}function w(i,a,s,u){if(null==s)throw Error(r(151));for(var c=null,d=null,p=a,f=a=0,g=null,b=s.next();null!==p&&!b.done;f++,b=s.next()){p.index>f?(g=p,p=null):g=p.sibling;var v=m(i,p,b.value,u);if(null===v){null===p&&(p=g);break}e&&p&&null===v.alternate&&t(i,p),a=l(v,a,f),null===d?c=v:d.sibling=v,d=v,p=g}if(b.done)return n(i,p),So&&yo(i,f),c;if(null===p){for(;!b.done;f++,b=s.next())null!==(b=h(i,b.value,u))&&(a=l(b,a,f),null===d?c=b:d.sibling=b,d=b);return So&&yo(i,f),c}for(p=o(p);!b.done;f++,b=s.next())null!==(b=y(p,i,f,b.value,u))&&(e&&null!==b.alternate&&p.delete(null===b.key?f:b.key),a=l(b,a,f),null===d?c=b:d.sibling=b,d=b);return e&&p.forEach(function(e){return t(i,e)}),So&&yo(i,f),c}function _(e,o,l,s){if("object"==typeof l&&null!==l&&l.type===g&&null===l.key&&(l=l.props.children),"object"==typeof l&&null!==l){switch(l.$$typeof){case p:e:{for(var u=l.key;null!==o;){if(o.key===u){if((u=l.type)===g){if(7===o.tag){n(e,o.sibling),(s=i(o,l.props.children)).return=e,e=s;break e}}else if(o.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===k&&bi(u)===o.type){n(e,o.sibling),ki(s=i(o,l.props),l),s.return=e,e=s;break e}n(e,o);break}t(e,o),o=o.sibling}l.type===g?((s=to(l.props.children,e.mode,s,l.key)).return=e,e=s):(ki(s=eo(l.type,l.key,l.props,null,e.mode,s),l),s.return=e,e=s)}return a(e);case f:e:{for(u=l.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===l.containerInfo&&o.stateNode.implementation===l.implementation){n(e,o.sibling),(s=i(o,l.children||[])).return=e,e=s;break e}n(e,o);break}t(e,o),o=o.sibling}(s=oo(l,e.mode,s)).return=e,e=s}return a(e);case k:return _(e,o,l=bi(l),s)}if(A(l))return b(e,o,l,s);if(z(l)){if("function"!=typeof(u=z(l)))throw Error(r(150));return w(e,o,l=u.call(l),s)}if("function"==typeof l.then)return _(e,o,Si(l),s);if(l.$$typeof===v)return _(e,o,Go(e,l),s);Ti(e,l)}return"string"==typeof l&&""!==l||"number"==typeof l||"bigint"==typeof l?(l=""+l,null!==o&&6===o.tag?(n(e,o.sibling),(s=i(o,l)).return=e,e=s):(n(e,o),(s=no(l,e.mode,s)).return=e,e=s),a(e)):n(e,o)}return x(t,"n"),x(n,"r"),x(o,"o"),x(i,"a"),x(l,"i"),x(a,"u"),x(s,"s"),x(u,"c"),x(c,"d"),x(d,"f"),x(h,"p"),x(m,"h"),x(y,"v"),x(b,"b"),x(w,"w"),x(_,"S"),pe(t,"deleteChild"),pe(n,"deleteRemainingChildren"),pe(o,"mapRemainingChildren"),pe(i,"useFiber"),pe(l,"placeChild"),pe(a,"placeSingleChild"),pe(s,"updateTextNode"),pe(u,"updateElement"),pe(c,"updatePortal"),pe(d,"updateFragment"),pe(h,"createChild"),pe(m,"updateSlot"),pe(y,"updateFromMap"),pe(b,"reconcileChildrenArray"),pe(w,"reconcileChildrenIterator"),pe(_,"reconcileChildFibersImpl"),function(e,t,n,r){try{Ci=0;var o=_(e,t,n,r);return xi=null,o}catch(l){if(l===hi||l===fi)throw l;var i=Kr(29,l,null,e.mode);return i.lanes=r,i.return=e,i}}}x(Si,"Co"),x(ki,"xo"),x(Ti,"Eo"),x(Pi,"Ro"),pe(Si,"unwrapThenable"),pe(ki,"coerceRef"),pe(Ti,"throwOnInvalidObjectTypeImpl"),pe(Pi,"createChildReconciler");var Ei=Pi(!0),zi=Pi(!1),Ii=!1;function Ri(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ai(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Di(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Fi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Fu){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=qr(e),Gr(e,null,n),t}return jr(e,r,t,n),qr(e)}function Li(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,We(e,n)}}function Oi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var l={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===i?o=i=l:i=i.next=l,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}x(Ri,"zo"),x(Ai,"_o"),x(Di,"No"),x(Fi,"Fo"),x(Li,"Do"),x(Oi,"Lo"),pe(Ri,"initializeUpdateQueue"),pe(Ai,"cloneUpdateQueue"),pe(Di,"createUpdate"),pe(Fi,"enqueueUpdate"),pe(Li,"entangleTransitions"),pe(Oi,"enqueueCapturedUpdate");var Mi=!1;function Bi(){if(Mi&&null!==ri)throw ri}function Hi(e,t,n,r){Mi=!1;var o=e.updateQueue;Ii=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,a=o.shared.pending;if(null!==a){o.shared.pending=null;var s=a,u=s.next;s.next=null,null===l?i=u:l.next=u,l=s;var c=e.alternate;null!==c&&(a=(c=c.updateQueue).lastBaseUpdate)!==l&&(null===a?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=s)}if(null!==i){var h=o.baseState;for(l=0,c=u=s=null,a=i;;){var p=-536870913&a.lane,f=p!==a.lane;if(f?(Mu&p)===p:(r&p)===p){0!==p&&p===ni&&(Mi=!0),null!==c&&(c=c.next={lane:0,tag:a.tag,payload:a.payload,callback:null,next:null});e:{var g=e,m=a;p=t;var y=n;switch(m.tag){case 1:if("function"==typeof(g=m.payload)){h=g.call(y,h,p);break e}h=g;break e;case 3:g.flags=-65537&g.flags|128;case 0:if(null==(p="function"==typeof(g=m.payload)?g.call(y,h,p):g))break e;h=d({},h,p);break e;case 2:Ii=!0}}null!==(p=a.callback)&&(e.flags|=64,f&&(e.flags|=8192),null===(f=o.callbacks)?o.callbacks=[p]:f.push(p))}else f={lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===c?(u=c=f,s=h):c=c.next=f,l|=p;if(null===(a=a.next)){if(null===(a=o.shared.pending))break;a=(f=a).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}null===c&&(s=h),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null===i&&(o.shared.lanes=0),Vu|=l,e.lanes=l,e.memoizedState=h}}function Ni(e,t){if("function"!=typeof e)throw Error(r(191,e));e.call(t)}function Wi(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)Ni(n[e],t)}x(Bi,"Ao"),x(Hi,"Mo"),x(Ni,"Ho"),x(Wi,"Uo"),pe(Bi,"suspendIfUpdateReadFromEntangledAsyncAction"),pe(Hi,"processUpdateQueue"),pe(Ni,"callCallback"),pe(Wi,"commitCallbacks");var Ui=B(null),ji=B(0);function $i(e,t){N(ji,e=ju),N(Ui,t),ju=e|t.baseLanes}function Vi(){N(ji,ju),N(Ui,Ui.current)}function Gi(){ju=ji.current,H(Ui),H(ji)}x($i,"$o"),x(Vi,"Vo"),x(Gi,"Bo"),pe($i,"pushHiddenContext"),pe(Vi,"reuseHiddenContextOnStack"),pe(Gi,"popHiddenContext");var qi=B(null),Yi=null;function Xi(e){var t=e.alternate;N(el,1&el.current),N(qi,e),null===Yi&&(null===t||null!==Ui.current||null!==t.memoizedState)&&(Yi=e)}function Ki(e){N(el,el.current),N(qi,e),null===Yi&&(Yi=e)}function Qi(e){22===e.tag?(N(el,el.current),N(qi,e),null===Yi&&(Yi=e)):Ji()}function Ji(){N(el,el.current),N(qi,qi.current)}function Zi(e){H(qi),Yi===e&&(Yi=null),H(el)}x(Xi,"Qo"),x(Ki,"Go"),x(Qi,"Yo"),x(Ji,"Xo"),x(Zi,"Jo"),pe(Xi,"pushPrimaryTreeSuspenseHandler"),pe(Ki,"pushDehydratedActivitySuspenseHandler"),pe(Qi,"pushOffscreenSuspenseHandler"),pe(Ji,"reuseSuspenseHandlerOnStack"),pe(Zi,"popSuspenseHandler");var el=B(0);function tl(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||ah(n)||sh(n)))return t}else if(19!==t.tag||"forwards"!==t.memoizedProps.revealOrder&&"backwards"!==t.memoizedProps.revealOrder&&"unstable_legacy-backwards"!==t.memoizedProps.revealOrder&&"together"!==t.memoizedProps.revealOrder){if(null!==t.child){t.child.return=t,t=t.child;continue}}else if(128&t.flags)return t;if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}x(tl,"ea"),pe(tl,"findFirstSuspended");var nl=0,rl=null,ol=null,il=null,ll=!1,al=!1,sl=!1,ul=0,cl=0,dl=null,hl=0;function pl(){throw Error(r(321))}function fl(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!cr(e[n],t[n]))return!1;return!0}function gl(e,t,n,r,o,i){return nl=i,rl=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=null===e||null===e.memoizedState?Aa:Da,sl=!1,i=n(r,o),sl=!1,al&&(i=yl(t,n,r,o)),ml(e),i}function ml(e){D.H=Ra;var t=null!==ol&&null!==ol.next;if(nl=0,il=ol=rl=null,ll=!1,cl=0,dl=null,t)throw Error(r(300));null===e||Ka||null!==(e=e.dependencies)&&jo(e)&&(Ka=!0)}function yl(e,t,n,o){rl=e;var i=0;do{if(al&&(dl=null),cl=0,al=!1,25<=i)throw Error(r(301));if(i+=1,il=ol=null,null!=e.updateQueue){var l=e.updateQueue;l.lastEffect=null,l.events=null,l.stores=null,null!=l.memoCache&&(l.memoCache.index=0)}D.H=Fa,l=t(n,o)}while(al);return l}function bl(){var e=D.H,t=e.useState()[0];return t="function"==typeof t.then?kl(t):t,e=e.useState()[0],(null!==ol?ol.memoizedState:null)!==e&&(rl.flags|=1024),t}function vl(){var e=0!==ul;return ul=0,e}function wl(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function _l(e){if(ll){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}ll=!1}nl=0,il=ol=rl=null,al=!1,cl=ul=0,dl=null}function xl(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===il?rl.memoizedState=il=e:il=il.next=e,il}function Cl(){if(null===ol){var e=rl.alternate;e=null!==e?e.memoizedState:null}else e=ol.next;var t=null===il?rl.memoizedState:il.next;if(null!==t)il=t,ol=e;else{if(null===e){if(null===rl.alternate)throw Error(r(467));throw Error(r(310))}e={memoizedState:(ol=e).memoizedState,baseState:ol.baseState,baseQueue:ol.baseQueue,queue:ol.queue,next:null},null===il?rl.memoizedState=il=e:il=il.next=e}return il}function Sl(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function kl(e){var t=cl;return cl+=1,null===dl&&(dl=[]),e=yi(dl,e,t),t=rl,null===(null===il?t.memoizedState:il.next)&&(t=t.alternate,D.H=null===t||null===t.memoizedState?Aa:Da),e}function Tl(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return kl(e);if(e.$$typeof===v)return Vo(e)}throw Error(r(438,String(e)))}function Pl(e){var t=null,n=rl.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=rl.alternate;null!==r&&null!==(r=r.updateQueue)&&null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},rl.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=P;return t.index++,n}function El(e,t){return"function"==typeof t?t(e):t}function zl(e){return Il(Cl(),ol,e)}function Il(e,t,n){var o=e.queue;if(null===o)throw Error(r(311));o.lastRenderedReducer=n;var i=e.baseQueue,l=o.pending;if(null!==l){if(null!==i){var a=i.next;i.next=l.next,l.next=a}t.baseQueue=i=l,o.pending=null}if(l=e.baseState,null===i)e.memoizedState=l;else{var s=a=null,u=null,c=t=i.next,d=!1;do{var h=-536870913&c.lane;if(h!==c.lane?(Mu&h)===h:(nl&h)===h){var p=c.revertLane;if(0===p)null!==u&&(u=u.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),h===ni&&(d=!0);else{if((nl&p)===p){c=c.next,p===ni&&(d=!0);continue}h={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(s=u=h,a=l):u=u.next=h,rl.lanes|=p,Vu|=p}h=c.action,sl&&n(l,h),l=c.hasEagerState?c.eagerState:n(l,h)}else p={lane:h,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(s=u=p,a=l):u=u.next=p,rl.lanes|=h,Vu|=h;c=c.next}while(null!==c&&c!==t);if(null===u?a=l:u.next=s,!cr(l,e.memoizedState)&&(Ka=!0,d&&null!==(n=ri)))throw n;e.memoizedState=l,e.baseState=a,e.baseQueue=u,o.lastRenderedState=l}return null===i&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Rl(e){var t=Cl(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var o=n.dispatch,i=n.pending,l=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{l=e(l,a.action),a=a.next}while(a!==i);cr(l,t.memoizedState)||(Ka=!0),t.memoizedState=l,null===t.baseQueue&&(t.baseState=l),n.lastRenderedState=l}return[l,o]}function Al(e,t,n){var o=rl,i=Cl(),l=So;if(l){if(void 0===n)throw Error(r(407));n=n()}else n=t();var a=!cr((ol||i).memoizedState,n);if(a&&(i.memoizedState=n,Ka=!0),i=i.queue,ra(Ll.bind(null,o,i,e),[e]),i.getSnapshot!==t||a||null!==il&&1&il.memoizedState.tag){if(o.flags|=2048,Jl(9,{destroy:void 0},Fl.bind(null,o,i,n,t),null),null===Lu)throw Error(r(349));l||127&nl||Dl(o,t,n)}return n}function Dl(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=rl.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},rl.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Fl(e,t,n,r){t.value=n,t.getSnapshot=r,Ol(t)&&Ml(e)}function Ll(e,t,n){return n(function(){Ol(t)&&Ml(e)})}function Ol(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!cr(e,n)}catch(r){return!0}}function Ml(e){var t=Vr(e,2);null!==t&&gc(t,e,2)}function Bl(e){var t=xl();if("function"==typeof e){var n=e;if(e=n(),sl){ve(!0);try{n()}finally{ve(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:El,lastRenderedState:e},t}function Hl(e,t,n,r){return e.baseState=n,Il(e,ol,"function"==typeof r?r:El)}function Nl(e,t,n,o,i){if(Ea(e))throw Error(r(485));if(null!==(e=t.action)){var l={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:/* @__PURE__ */pe(function(e){l.listeners.push(e)},"then")};null!==D.T?n(!0):l.isTransition=!1,o(l),null===(n=t.pending)?(l.next=t.pending=l,Wl(t,l)):(l.next=n.next,t.pending=n.next=l)}}function Wl(e,t){var n=t.action,r=t.payload,o=e.state;if(t.isTransition){var i=D.T,l={};D.T=l;try{var a=n(o,r),s=D.S;null!==s&&s(l,a),Ul(e,t,a)}catch(u){$l(e,t,u)}finally{null!==i&&null!==l.types&&(i.types=l.types),D.T=i}}else try{Ul(e,t,i=n(o,r))}catch(c){$l(e,t,c)}}function Ul(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then(function(n){jl(e,t,n)},function(n){return $l(e,t,n)}):jl(e,t,n)}function jl(e,t,n){t.status="fulfilled",t.value=n,Vl(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,Wl(e,n)))}function $l(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,Vl(t),t=t.next}while(t!==r)}e.action=null}function Vl(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Gl(e,t){return t}function ql(e,t){if(So){var n=Lu.formState;if(null!==n){e:{var r=rl;if(So){if(Co){t:{for(var o=Co,i=To;8!==o.nodeType;){if(!i){o=null;break t}if(null===(o=ch(o.nextSibling))){o=null;break t}}o="F!"===(i=o.data)||"F"===i?o:null}if(o){Co=ch(o.nextSibling),r="F!"===o.data;break e}}Eo(r)}r=!1}r&&(t=n[0])}}return(n=xl()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gl,lastRenderedState:t},n.queue=r,n=ka.bind(null,rl,r),r.dispatch=n,r=Bl(!1),i=Pa.bind(null,rl,!1,r.queue),o={state:t,dispatch:null,action:e,pending:null},(r=xl()).queue=o,n=Nl.bind(null,rl,o,i,n),o.dispatch=n,r.memoizedState=e,[t,n,!1]}function Yl(e){return Xl(Cl(),ol,e)}function Xl(e,t,n){if(t=Il(e,t,Gl)[0],e=zl(El)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=kl(t)}catch(l){if(l===hi)throw fi;throw l}else r=t;var o=(t=Cl()).queue,i=o.dispatch;return n!==t.memoizedState&&(rl.flags|=2048,Jl(9,{destroy:void 0},Kl.bind(null,o,n),null)),[r,i,e]}function Kl(e,t){e.action=t}function Ql(e){var t=Cl(),n=ol;if(null!==n)return Xl(t,n,e);Cl(),t=t.memoizedState;var r=(n=Cl()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Jl(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=rl.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},rl.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Zl(){return Cl().memoizedState}function ea(e,t,n,r){var o=xl();rl.flags|=e,o.memoizedState=Jl(1|t,{destroy:void 0},n,void 0===r?null:r)}function ta(e,t,n,r){var o=Cl();r=void 0===r?null:r;var i=o.memoizedState.inst;null!==ol&&null!==r&&fl(r,ol.memoizedState.deps)?o.memoizedState=Jl(t,i,n,r):(rl.flags|=e,o.memoizedState=Jl(1|t,i,n,r))}function na(e,t){ea(8390656,8,e,t)}function ra(e,t){ta(2048,8,e,t)}function oa(e){rl.flags|=4;var t=rl.updateQueue;if(null===t)t={lastEffect:null,events:null,stores:null,memoCache:null},rl.updateQueue=t,t.events=[e];else{var n=t.events;null===n?t.events=[e]:n.push(e)}}function ia(e){var t=Cl().memoizedState;return oa({ref:t,nextImpl:e}),function(){if(2&Fu)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function la(e,t){return ta(4,2,e,t)}function aa(e,t){return ta(4,4,e,t)}function sa(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return e=e(),t.current=e,function(){t.current=null}}function ua(e,t,n){n=null!=n?n.concat([e]):null,ta(4,4,sa.bind(null,t,e),n)}function ca(){}function da(e,t){var n=Cl();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&fl(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ha(e,t){var n=Cl();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&fl(t,r[1]))return r[0];if(r=e(),sl){ve(!0);try{e()}finally{ve(!1)}}return n.memoizedState=[r,t],r}function pa(e,t,n){return void 0===n||1073741824&nl&&!(261930&Mu)?e.memoizedState=t:(e.memoizedState=n,e=fc(),rl.lanes|=e,Vu|=e,n)}function fa(e,t,n,r){return cr(n,t)?n:null!==Ui.current?(e=pa(e,n,r),cr(e,t)||(Ka=!0),e):42&nl&&(!(1073741824&nl)||261930&Mu)?(e=fc(),rl.lanes|=e,Vu|=e,t):(Ka=!0,e.memoizedState=n)}function ga(e,t,n,r,o){var i=F.p;F.p=0!==i&&8>i?i:8;var l=D.T,a={};D.T=a,Pa(e,!1,t,n);try{var s=o(),u=D.S;null!==u&&u(a,s),null!==s&&"object"==typeof s&&"function"==typeof s.then?Ta(e,t,li(s,r),pc()):Ta(e,t,r,pc())}catch(c){Ta(e,t,{then:/* @__PURE__ */pe(function(){},"then"),status:"rejected",reason:c},pc())}finally{F.p=i,null!==l&&null!==a.types&&(l.types=a.types),D.T=l}}function ma(){}function ya(e,t,n,o){if(5!==e.tag)throw Error(r(476));var i=ba(e).queue;ga(e,i,t,L,null===n?ma:function(){return va(e),n(o)})}function ba(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:L,baseState:L,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:El,lastRenderedState:L},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:El,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function va(e){var t=ba(e);null===t.next&&(t=e.alternate.memoizedState),Ta(e,t.next.queue,{},pc())}function wa(){return Vo(ep)}function _a(){return Cl().memoizedState}function xa(){return Cl().memoizedState}function Ca(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=pc(),r=Fi(t,e=Di(n),n);return null!==r&&(gc(r,t,n),Li(r,t,n)),t={cache:Jo()},void(e.payload=t)}t=t.return}}function Sa(e,t,n){var r=pc();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ea(e)?za(t,n):null!==(n=$r(e,t,n,r))&&(gc(n,e,r),Ia(n,t,r))}function ka(e,t,n){Ta(e,t,n,pc())}function Ta(e,t,n,r){var o={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ea(e))za(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var l=t.lastRenderedState,a=i(l,n);if(o.hasEagerState=!0,o.eagerState=a,cr(a,l))return jr(e,t,o,0),null===Lu&&Ur(),!1}catch(s){}if(null!==(n=$r(e,t,o,r)))return gc(n,e,r),Ia(n,t,r),!0}return!1}function Pa(e,t,n,o){if(o={lane:2,revertLane:hd(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Ea(e)){if(t)throw Error(r(479))}else null!==(t=$r(e,n,o,2))&&gc(t,e,2)}function Ea(e){var t=e.alternate;return e===rl||null!==t&&t===rl}function za(e,t){al=ll=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ia(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,We(e,n)}}x(pl,"fa"),x(fl,"pa"),x(gl,"ma"),x(ml,"ha"),x(yl,"ga"),x(bl,"ya"),x(vl,"va"),x(wl,"ba"),x(_l,"wa"),x(xl,"Sa"),x(Cl,"ka"),x(Sl,"Ca"),x(kl,"xa"),x(Tl,"Ea"),x(Pl,"Ra"),x(El,"Ia"),x(zl,"Pa"),x(Il,"Ta"),x(Rl,"za"),x(Al,"_a"),x(Dl,"Na"),x(Fl,"Fa"),x(Ll,"Da"),x(Ol,"La"),x(Ml,"Oa"),x(Bl,"Aa"),x(Hl,"Ma"),x(Nl,"Ha"),x(Wl,"Ua"),x(Ul,"ja"),x(jl,"Wa"),x($l,"$a"),x(Vl,"Va"),x(Gl,"Ba"),x(ql,"qa"),x(Yl,"Ka"),x(Xl,"Qa"),x(Kl,"Ga"),x(Ql,"Ya"),x(Jl,"Xa"),x(Zl,"Ja"),x(ea,"Za"),x(ta,"ei"),x(na,"ti"),x(ra,"ni"),x(oa,"ri"),x(ia,"li"),x(la,"oi"),x(aa,"ai"),x(sa,"ii"),x(ua,"ui"),x(ca,"si"),x(da,"ci"),x(ha,"di"),x(pa,"fi"),x(fa,"pi"),x(ga,"mi"),x(ma,"hi"),x(ya,"gi"),x(ba,"yi"),x(va,"vi"),x(wa,"bi"),x(_a,"wi"),x(xa,"Si"),x(Ca,"ki"),x(Sa,"Ci"),x(ka,"xi"),x(Ta,"Ei"),x(Pa,"Ri"),x(Ea,"Ii"),x(za,"Pi"),x(Ia,"Ti"),pe(pl,"throwInvalidHookError"),pe(fl,"areHookInputsEqual"),pe(gl,"renderWithHooks"),pe(ml,"finishRenderingHooks"),pe(yl,"renderWithHooksAgain"),pe(bl,"TransitionAwareHostComponent"),pe(vl,"checkDidRenderIdHook"),pe(wl,"bailoutHooks"),pe(_l,"resetHooksOnUnwind"),pe(xl,"mountWorkInProgressHook"),pe(Cl,"updateWorkInProgressHook"),pe(Sl,"createFunctionComponentUpdateQueue"),pe(kl,"useThenable"),pe(Tl,"use"),pe(Pl,"useMemoCache"),pe(El,"basicStateReducer"),pe(zl,"updateReducer"),pe(Il,"updateReducerImpl"),pe(Rl,"rerenderReducer"),pe(Al,"updateSyncExternalStore"),pe(Dl,"pushStoreConsistencyCheck"),pe(Fl,"updateStoreInstance"),pe(Ll,"subscribeToStore"),pe(Ol,"checkIfSnapshotChanged"),pe(Ml,"forceStoreRerender"),pe(Bl,"mountStateImpl"),pe(Hl,"updateOptimisticImpl"),pe(Nl,"dispatchActionState"),pe(Wl,"runActionStateAction"),pe(Ul,"handleActionReturnValue"),pe(jl,"onActionSuccess"),pe($l,"onActionError"),pe(Vl,"notifyActionListeners"),pe(Gl,"actionStateReducer"),pe(ql,"mountActionState"),pe(Yl,"updateActionState"),pe(Xl,"updateActionStateImpl"),pe(Kl,"actionStateActionEffect"),pe(Ql,"rerenderActionState"),pe(Jl,"pushSimpleEffect"),pe(Zl,"updateRef"),pe(ea,"mountEffectImpl"),pe(ta,"updateEffectImpl"),pe(na,"mountEffect"),pe(ra,"updateEffect"),pe(oa,"useEffectEventImpl"),pe(ia,"updateEvent"),pe(la,"updateInsertionEffect"),pe(aa,"updateLayoutEffect"),pe(sa,"imperativeHandleEffect"),pe(ua,"updateImperativeHandle"),pe(ca,"mountDebugValue"),pe(da,"updateCallback"),pe(ha,"updateMemo"),pe(pa,"mountDeferredValueImpl"),pe(fa,"updateDeferredValueImpl"),pe(ga,"startTransition"),pe(ma,"noop"),pe(ya,"startHostTransition"),pe(ba,"ensureFormComponentIsStateful"),pe(va,"requestFormReset$1"),pe(wa,"useHostTransitionStatus"),pe(_a,"updateId"),pe(xa,"updateRefresh"),pe(Ca,"refreshCache"),pe(Sa,"dispatchReducerAction"),pe(ka,"dispatchSetState"),pe(Ta,"dispatchSetStateInternal"),pe(Pa,"dispatchOptimisticSetState"),pe(Ea,"isRenderPhaseUpdate"),pe(za,"enqueueRenderPhaseUpdate"),pe(Ia,"entangleTransitionUpdate");var Ra={readContext:Vo,use:Tl,useCallback:pl,useContext:pl,useEffect:pl,useImperativeHandle:pl,useLayoutEffect:pl,useInsertionEffect:pl,useMemo:pl,useReducer:pl,useRef:pl,useState:pl,useDebugValue:pl,useDeferredValue:pl,useTransition:pl,useSyncExternalStore:pl,useId:pl,useHostTransitionStatus:pl,useFormState:pl,useActionState:pl,useOptimistic:pl,useMemoCache:pl,useCacheRefresh:pl};Ra.useEffectEvent=pl;var Aa={readContext:Vo,use:Tl,useCallback:/* @__PURE__ */pe(function(e,t){return xl().memoizedState=[e,void 0===t?null:t],e},"useCallback"),useContext:Vo,useEffect:na,useImperativeHandle:/* @__PURE__ */pe(function(e,t,n){n=null!=n?n.concat([e]):null,ea(4194308,4,sa.bind(null,t,e),n)},"useImperativeHandle"),useLayoutEffect:/* @__PURE__ */pe(function(e,t){return ea(4194308,4,e,t)},"useLayoutEffect"),useInsertionEffect:/* @__PURE__ */pe(function(e,t){ea(4,2,e,t)},"useInsertionEffect"),useMemo:/* @__PURE__ */pe(function(e,t){var n=xl();t=void 0===t?null:t;var r=e();if(sl){ve(!0);try{e()}finally{ve(!1)}}return n.memoizedState=[r,t],r},"useMemo"),useReducer:/* @__PURE__ */pe(function(e,t,n){var r=xl();if(void 0!==n){var o=n(t);if(sl){ve(!0);try{n(t)}finally{ve(!1)}}}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=Sa.bind(null,rl,e),[r.memoizedState,e]},"useReducer"),useRef:/* @__PURE__ */pe(function(e){return e={current:e},xl().memoizedState=e},"useRef"),useState:/* @__PURE__ */pe(function(e){var t=(e=Bl(e)).queue,n=ka.bind(null,rl,t);return t.dispatch=n,[e.memoizedState,n]},"useState"),useDebugValue:ca,useDeferredValue:/* @__PURE__ */pe(function(e,t){return pa(xl(),e,t)},"useDeferredValue"),useTransition:/* @__PURE__ */pe(function(){var e=Bl(!1);return e=ga.bind(null,rl,e.queue,!0,!1),xl().memoizedState=e,[!1,e]},"useTransition"),useSyncExternalStore:/* @__PURE__ */pe(function(e,t,n){var o=rl,i=xl();if(So){if(void 0===n)throw Error(r(407));n=n()}else{if(n=t(),null===Lu)throw Error(r(349));127&Mu||Dl(o,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,na(Ll.bind(null,o,l,e),[e]),o.flags|=2048,Jl(9,{destroy:void 0},Fl.bind(null,o,l,n,t),null),n},"useSyncExternalStore"),useId:/* @__PURE__ */pe(function(){var e=xl(),t=Lu.identifierPrefix;if(So){var n=mo;t="_"+t+"R_"+(n=(go&~(1<<32-_e(go)-1)).toString(32)+n),0<(n=ul++)&&(t+="H"+n.toString(32)),t+="_"}else t="_"+t+"r_"+(n=hl++).toString(32)+"_";return e.memoizedState=t},"useId"),useHostTransitionStatus:wa,useFormState:ql,useActionState:ql,useOptimistic:/* @__PURE__ */pe(function(e){var t=xl();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Pa.bind(null,rl,!0,n),n.dispatch=t,[e,t]},"useOptimistic"),useMemoCache:Pl,useCacheRefresh:/* @__PURE__ */pe(function(){return xl().memoizedState=Ca.bind(null,rl)},"useCacheRefresh"),useEffectEvent:/* @__PURE__ */pe(function(e){var t=xl(),n={impl:e};return t.memoizedState=n,function(){if(2&Fu)throw Error(r(440));return n.impl.apply(void 0,arguments)}},"useEffectEvent")},Da={readContext:Vo,use:Tl,useCallback:da,useContext:Vo,useEffect:ra,useImperativeHandle:ua,useInsertionEffect:la,useLayoutEffect:aa,useMemo:ha,useReducer:zl,useRef:Zl,useState:/* @__PURE__ */pe(function(){return zl(El)},"useState"),useDebugValue:ca,useDeferredValue:/* @__PURE__ */pe(function(e,t){return fa(Cl(),ol.memoizedState,e,t)},"useDeferredValue"),useTransition:/* @__PURE__ */pe(function(){var e=zl(El)[0],t=Cl().memoizedState;return["boolean"==typeof e?e:kl(e),t]},"useTransition"),useSyncExternalStore:Al,useId:_a,useHostTransitionStatus:wa,useFormState:Yl,useActionState:Yl,useOptimistic:/* @__PURE__ */pe(function(e,t){return Hl(Cl(),0,e,t)},"useOptimistic"),useMemoCache:Pl,useCacheRefresh:xa};Da.useEffectEvent=ia;var Fa={readContext:Vo,use:Tl,useCallback:da,useContext:Vo,useEffect:ra,useImperativeHandle:ua,useInsertionEffect:la,useLayoutEffect:aa,useMemo:ha,useReducer:Rl,useRef:Zl,useState:/* @__PURE__ */pe(function(){return Rl(El)},"useState"),useDebugValue:ca,useDeferredValue:/* @__PURE__ */pe(function(e,t){var n=Cl();return null===ol?pa(n,e,t):fa(n,ol.memoizedState,e,t)},"useDeferredValue"),useTransition:/* @__PURE__ */pe(function(){var e=Rl(El)[0],t=Cl().memoizedState;return["boolean"==typeof e?e:kl(e),t]},"useTransition"),useSyncExternalStore:Al,useId:_a,useHostTransitionStatus:wa,useFormState:Ql,useActionState:Ql,useOptimistic:/* @__PURE__ */pe(function(e,t){var n=Cl();return null!==ol?Hl(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},"useOptimistic"),useMemoCache:Pl,useCacheRefresh:xa};function La(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:d({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}x(La,"Di"),Fa.useEffectEvent=ia,pe(La,"applyDerivedStateFromProps");var Oa={enqueueSetState:/* @__PURE__ */pe(function(e,t,n){e=e._reactInternals;var r=pc(),o=Di(r);o.payload=t,null!=n&&(o.callback=n),null!==(t=Fi(e,o,r))&&(gc(t,e,r),Li(t,e,r))},"enqueueSetState"),enqueueReplaceState:/* @__PURE__ */pe(function(e,t,n){e=e._reactInternals;var r=pc(),o=Di(r);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=Fi(e,o,r))&&(gc(t,e,r),Li(t,e,r))},"enqueueReplaceState"),enqueueForceUpdate:/* @__PURE__ */pe(function(e,t){e=e._reactInternals;var n=pc(),r=Di(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=Fi(e,r,n))&&(gc(t,e,n),Li(t,e,n))},"enqueueForceUpdate")};function Ma(e,t,n,r,o,i,l){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,l):!(t.prototype&&t.prototype.isPureReactComponent&&dr(n,r)&&dr(o,i))}function Ba(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Oa.enqueueReplaceState(t,t.state,null)}function Ha(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var o in n===t&&(n=d({},n)),e)void 0===n[o]&&(n[o]=e[o]);return n}function Na(e){Br(e)}function Wa(e){console.error(e)}function Ua(e){Br(e)}function ja(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function $a(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Va(e,t,n){return(n=Di(n)).tag=3,n.payload={element:null},n.callback=function(){ja(e,t)},n}function Ga(e){return(e=Di(e)).tag=3,e}function qa(e,t,n,r){var o=n.type.getDerivedStateFromError;if("function"==typeof o){var i=r.value;e.payload=function(){return o(i)},e.callback=function(){$a(t,n,r)}}var l=n.stateNode;null!==l&&"function"==typeof l.componentDidCatch&&(e.callback=function(){$a(t,n,r),"function"!=typeof o&&(null===rc?rc=/* @__PURE__ */new Set([this]):rc.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}function Ya(e,t,n,o,i){if(n.flags|=32768,null!==o&&"object"==typeof o&&"function"==typeof o.then){if(null!==(t=n.alternate)&&Uo(t,n,i,!0),null!==(n=qi.current)){switch(n.tag){case 31:case 13:return null===Yi?Pc():null===n.alternate&&0===$u&&($u=3),n.flags&=-257,n.flags|=65536,n.lanes=i,o===gi?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=/* @__PURE__ */new Set([o]):t.add(o),Gc(e,o,i)),!1;case 22:return n.flags|=65536,o===gi?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:/* @__PURE__ */new Set([o])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=/* @__PURE__ */new Set([o]):n.add(o),Gc(e,o,i)),!1}throw Error(r(435,n.tag))}return Gc(e,o,i),Pc(),!1}if(So)return null!==(t=qi.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=i,o!==Po&&Fo(lo(e=Error(r(422),{cause:o}),n))):(o!==Po&&Fo(lo(t=Error(r(423),{cause:o}),n)),(e=e.current.alternate).flags|=65536,i&=-i,e.lanes|=i,o=lo(o,n),Oi(e,i=Va(e.stateNode,o,i)),4!==$u&&($u=2)),!1;var l=Error(r(520),{cause:o});if(l=lo(l,n),null===Ku?Ku=[l]:Ku.push(l),4!==$u&&($u=2),null===t)return!0;o=lo(o,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,Oi(n,e=Va(n.stateNode,o,e)),!1;case 1:if(t=n.type,l=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===l||"function"!=typeof l.componentDidCatch||null!==rc&&rc.has(l))))return n.flags|=65536,i&=-i,n.lanes|=i,qa(i=Ga(i),e,n,o),Oi(n,i),!1}n=n.return}while(null!==n);return!1}x(Ma,"Oi"),x(Ba,"Ai"),x(Ha,"Mi"),x(Na,"Hi"),x(Wa,"Ui"),x(Ua,"ji"),x(ja,"Wi"),x($a,"$i"),x(Va,"Vi"),x(Ga,"Bi"),x(qa,"qi"),x(Ya,"Ki"),pe(Ma,"checkShouldComponentUpdate"),pe(Ba,"callComponentWillReceiveProps"),pe(Ha,"resolveClassComponentProps"),pe(Na,"defaultOnUncaughtError"),pe(Wa,"defaultOnCaughtError"),pe(Ua,"defaultOnRecoverableError"),pe(ja,"logUncaughtError"),pe($a,"logCaughtError"),pe(Va,"createRootErrorUpdate"),pe(Ga,"createClassErrorUpdate"),pe(qa,"initializeClassErrorUpdate"),pe(Ya,"throwException");var Xa=Error(r(461)),Ka=!1;function Qa(e,t,n,r){t.child=null===e?zi(t,null,n,r):Ei(t,e.child,n,r)}function Ja(e,t,n,r,o){n=n.render;var i=t.ref;if("ref"in r){var l={};for(var a in r)"ref"!==a&&(l[a]=r[a])}else l=r;return $o(t),r=gl(e,t,n,l,i,o),a=vl(),null===e||Ka?(So&&a&&vo(t),t.flags|=1,Qa(e,t,r,o),t.child):(wl(e,t,o),xs(e,t,o))}function Za(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Qr(i)||void 0!==i.defaultProps||null!==n.compare?((e=eo(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,es(e,t,i,r,o))}if(i=e.child,!Cs(e,o)){var l=i.memoizedProps;if((n=null!==(n=n.compare)?n:dr)(l,r)&&e.ref===t.ref)return xs(e,t,o)}return t.flags|=1,(e=Jr(i,r)).ref=t.ref,e.return=t,t.child=e}function es(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(dr(i,r)&&e.ref===t.ref){if(Ka=!1,t.pendingProps=r=i,!Cs(e,o))return t.lanes=e.lanes,xs(e,t,o);131072&e.flags&&(Ka=!0)}}return ss(e,t,n,r,o)}function ts(e,t,n,r){var o=r.children,i=null!==e?e.memoizedState:null;if(null===e&&null===t.stateNode&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),"hidden"===r.mode){if(128&t.flags){if(i=null!==i?i.baseLanes|n:n,null!==e){for(r=t.child=e.child,o=0;null!==r;)o=o|r.lanes|r.childLanes,r=r.sibling;r=o&~i}else r=0,t.child=null;return rs(e,t,i,n,r)}if(!(536870912&n))return r=t.lanes=536870912,rs(e,t,null!==i?i.baseLanes|n:n,n,r);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&ci(0,null!==i?i.cachePool:null),null!==i?$i(t,i):Vi(),Qi(t)}else null!==i?(ci(0,i.cachePool),$i(t,i),Ji(),t.memoizedState=null):(null!==e&&ci(0,null),Vi(),Ji());return Qa(e,t,o,n),t.child}function ns(e,t){return null!==e&&22===e.tag||null!==t.stateNode||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function rs(e,t,n,r,o){var i=ui();return i=null===i?null:{parent:Qo._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},null!==e&&ci(0,null),Vi(),Qi(t),null!==e&&Uo(e,t,r,!0),t.childLanes=o,null}function os(e,t){return(t=ys({mode:t.mode,children:t.children},e.mode)).ref=e.ref,e.child=t,t.return=e,t}function is(e,t,n){return Ei(t,e.child,null,n),(e=os(t,t.pendingProps)).flags|=2,Zi(t),t.memoizedState=null,e}function ls(e,t,n){var o=t.pendingProps,i=!!(128&t.flags);if(t.flags&=-129,null===e){if(So){if("hidden"===o.mode)return e=os(t,o),t.lanes=536870912,ns(null,e);if(Ki(t),(e=Co)?null!==(e=null!==(e=lh(e,To))&&"&"===e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==fo?{id:go,overflow:mo}:null,retryLane:536870912,hydrationErrors:null},(n=ro(e)).return=t,t.child=n,xo=t,Co=null):e=null,null===e)throw Eo(t);return t.lanes=536870912,null}return os(t,o)}var l=e.memoizedState;if(null!==l){var a=l.dehydrated;if(Ki(t),i)if(256&t.flags)t.flags&=-257,t=is(e,t,n);else{if(null===t.memoizedState)throw Error(r(558));t.child=e.child,t.flags|=128,t=null}else if(Ka||Uo(e,t,n,!1),i=0!==(n&e.childLanes),Ka||i){if(null!==(o=Lu)&&0!==(a=Ue(o,n))&&a!==l.retryLane)throw l.retryLane=a,Vr(e,a),gc(o,e,a),Xa;Pc(),t=is(e,t,n)}else e=l.treeContext,Co=ch(a.nextSibling),xo=t,So=!0,ko=null,To=!1,null!==e&&_o(t,e),(t=os(t,o)).flags|=4096;return t}return(e=Jr(e.child,{mode:o.mode,children:o.children})).ref=t.ref,t.child=e,e.return=t,e}function as(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(r(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function ss(e,t,n,r,o){return $o(t),n=gl(e,t,n,r,void 0,o),r=vl(),null===e||Ka?(So&&r&&vo(t),t.flags|=1,Qa(e,t,n,o),t.child):(wl(e,t,o),xs(e,t,o))}function us(e,t,n,r,o,i){return $o(t),t.updateQueue=null,n=yl(t,r,n,o),ml(e),r=vl(),null===e||Ka?(So&&r&&vo(t),t.flags|=1,Qa(e,t,n,i),t.child):(wl(e,t,i),xs(e,t,i))}function cs(e,t,n,r,o){if($o(t),null===t.stateNode){var i=Yr,l=n.contextType;"object"==typeof l&&null!==l&&(i=Vo(l)),i=new n(r,i),t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,i.updater=Oa,t.stateNode=i,i._reactInternals=t,(i=t.stateNode).props=r,i.state=t.memoizedState,i.refs={},Ri(t),l=n.contextType,i.context="object"==typeof l&&null!==l?Vo(l):Yr,i.state=t.memoizedState,"function"==typeof(l=n.getDerivedStateFromProps)&&(La(t,n,l,r),i.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(l=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),l!==i.state&&Oa.enqueueReplaceState(i,i.state,null),Hi(t,r,i,o),Bi(),i.state=t.memoizedState),"function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){i=t.stateNode;var a=t.memoizedProps,s=Ha(n,a);i.props=s;var u=i.context,c=n.contextType;l=Yr,"object"==typeof c&&null!==c&&(l=Vo(c));var d=n.getDerivedStateFromProps;c="function"==typeof d||"function"==typeof i.getSnapshotBeforeUpdate,a=t.pendingProps!==a,c||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(a||u!==l)&&Ba(t,i,r,l),Ii=!1;var h=t.memoizedState;i.state=h,Hi(t,r,i,o),Bi(),u=t.memoizedState,a||h!==u||Ii?("function"==typeof d&&(La(t,n,d,r),u=t.memoizedState),(s=Ii||Ma(t,n,s,r,h,u,l))?(c||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=l,r=s):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Ai(e,t),c=Ha(n,l=t.memoizedProps),i.props=c,d=t.pendingProps,h=i.context,u=n.contextType,s=Yr,"object"==typeof u&&null!==u&&(s=Vo(u)),(u="function"==typeof(a=n.getDerivedStateFromProps)||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==d||h!==s)&&Ba(t,i,r,s),Ii=!1,h=t.memoizedState,i.state=h,Hi(t,r,i,o),Bi();var p=t.memoizedState;l!==d||h!==p||Ii||null!==e&&null!==e.dependencies&&jo(e.dependencies)?("function"==typeof a&&(La(t,n,a,r),p=t.memoizedState),(c=Ii||Ma(t,n,c,r,h,p,s)||null!==e&&null!==e.dependencies&&jo(e.dependencies))?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,p,s),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,p,s)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),i.props=r,i.state=p,i.context=s,r=c):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return i=r,as(e,t),r=!!(128&t.flags),i||r?(i=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:i.render(),t.flags|=1,null!==e&&r?(t.child=Ei(t,e.child,null,o),t.child=Ei(t,null,n,o)):Qa(e,t,n,o),t.memoizedState=i.state,e=t.child):e=xs(e,t,o),e}function ds(e,t,n,r){return Ao(),t.flags|=256,Qa(e,t,n,r),t.child}x(Qa,"Yi"),x(Ja,"Xi"),x(Za,"Ji"),x(es,"Zi"),x(ts,"eu"),x(ns,"tu"),x(rs,"nu"),x(os,"ru"),x(is,"lu"),x(ls,"ou"),x(as,"au"),x(ss,"iu"),x(us,"uu"),x(cs,"su"),x(ds,"cu"),pe(Qa,"reconcileChildren"),pe(Ja,"updateForwardRef"),pe(Za,"updateMemoComponent"),pe(es,"updateSimpleMemoComponent"),pe(ts,"updateOffscreenComponent"),pe(ns,"bailoutOffscreenComponent"),pe(rs,"deferHiddenOffscreenComponent"),pe(os,"mountActivityChildren"),pe(is,"retryActivityComponentWithoutHydrating"),pe(ls,"updateActivityComponent"),pe(as,"markRef"),pe(ss,"updateFunctionComponent"),pe(us,"replayFunctionComponent"),pe(cs,"updateClassComponent"),pe(ds,"mountHostRootWithoutHydrating");var hs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ps(e){return{baseLanes:e,cachePool:di()}}function fs(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=Yu),e}function gs(e,t,n){var o,i=t.pendingProps,l=!1,a=!!(128&t.flags);if((o=a)||(o=(null===e||null!==e.memoizedState)&&!!(2&el.current)),o&&(l=!0,t.flags&=-129),o=!!(32&t.flags),t.flags&=-33,null===e){if(So){if(l?Xi(t):Ji(),(e=Co)?null!==(e=null!==(e=lh(e,To))&&"&"!==e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==fo?{id:go,overflow:mo}:null,retryLane:536870912,hydrationErrors:null},(n=ro(e)).return=t,t.child=n,xo=t,Co=null):e=null,null===e)throw Eo(t);return sh(e)?t.lanes=32:t.lanes=536870912,null}var s=i.children;return i=i.fallback,l?(Ji(),s=ys({mode:"hidden",children:s},l=t.mode),i=to(i,l,n,null),s.return=t,i.return=t,s.sibling=i,t.child=s,(i=t.child).memoizedState=ps(n),i.childLanes=fs(e,o,n),t.memoizedState=hs,ns(null,i)):(Xi(t),ms(t,s))}var u=e.memoizedState;if(null!==u&&null!==(s=u.dehydrated)){if(a)256&t.flags?(Xi(t),t.flags&=-257,t=bs(e,t,n)):null!==t.memoizedState?(Ji(),t.child=e.child,t.flags|=128,t=null):(Ji(),s=i.fallback,l=t.mode,i=ys({mode:"visible",children:i.children},l),(s=to(s,l,n,null)).flags|=2,i.return=t,s.return=t,i.sibling=s,t.child=i,Ei(t,e.child,null,n),(i=t.child).memoizedState=ps(n),i.childLanes=fs(e,o,n),t.memoizedState=hs,t=ns(null,i));else if(Xi(t),sh(s)){if(o=s.nextSibling&&s.nextSibling.dataset)var c=o.dgst;o=c,(i=Error(r(419))).stack="",i.digest=o,Fo({value:i,source:null,stack:null}),t=bs(e,t,n)}else if(Ka||Uo(e,t,n,!1),o=0!==(n&e.childLanes),Ka||o){if(null!==(o=Lu)&&0!==(i=Ue(o,n))&&i!==u.retryLane)throw u.retryLane=i,Vr(e,i),gc(o,e,i),Xa;ah(s)||Pc(),t=bs(e,t,n)}else ah(s)?(t.flags|=192,t.child=e.child,t=null):(e=u.treeContext,Co=ch(s.nextSibling),xo=t,So=!0,ko=null,To=!1,null!==e&&_o(t,e),(t=ms(t,i.children)).flags|=4096);return t}return l?(Ji(),s=i.fallback,l=t.mode,c=(u=e.child).sibling,(i=Jr(u,{mode:"hidden",children:i.children})).subtreeFlags=65011712&u.subtreeFlags,null!==c?s=Jr(c,s):(s=to(s,l,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,ns(null,i),i=t.child,null===(s=e.child.memoizedState)?s=ps(n):(null!==(l=s.cachePool)?(u=Qo._currentValue,l=l.parent!==u?{parent:u,pool:u}:l):l=di(),s={baseLanes:s.baseLanes|n,cachePool:l}),i.memoizedState=s,i.childLanes=fs(e,o,n),t.memoizedState=hs,ns(e.child,i)):(Xi(t),e=(n=e.child).sibling,(n=Jr(n,{mode:"visible",children:i.children})).return=t,n.sibling=null,null!==e&&(null===(o=t.deletions)?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function ms(e,t){return(t=ys({mode:"visible",children:t},e.mode)).return=e,e.child=t}function ys(e,t){return(e=Kr(22,e,null,t)).lanes=0,e}function bs(e,t,n){return Ei(t,e.child,null,n),(e=ms(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function vs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),No(e.return,t,n)}function ws(e,t,n,r,o,i){var l=e.memoizedState;null===l?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,treeForkCount:i}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=o,l.treeForkCount=i)}function _s(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;r=r.children;var l=el.current,a=!!(2&l);if(a?(l=1&l|2,t.flags|=128):l&=1,N(el,l),Qa(e,t,r,n),r=So?co:0,!a&&null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&vs(e,n,t);else if(19===e.tag)vs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===tl(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ws(t,!1,o,n,i,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===tl(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ws(t,!0,n,null,i,r);break;case"together":ws(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function xs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Vu|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Uo(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(r(153));if(null!==t.child){for(n=Jr(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Jr(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Cs(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!jo(e))}function Ss(e,t,n){switch(t.tag){case 3:q(t,t.stateNode.containerInfo),Bo(0,Qo,e.memoizedState.cache),Ao();break;case 27:case 5:X(t);break;case 4:q(t,t.stateNode.containerInfo);break;case 10:Bo(0,t.type,t.memoizedProps.value);break;case 31:if(null!==t.memoizedState)return t.flags|=128,Ki(t),null;break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(Xi(t),t.flags|=128,null):0!==(n&t.child.childLanes)?gs(e,t,n):(Xi(t),null!==(e=xs(e,t,n))?e.sibling:null);Xi(t);break;case 19:var o=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(Uo(e,t,n,!1),r=0!==(n&t.childLanes)),o){if(r)return _s(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),N(el,el.current),r)break;return null;case 22:return t.lanes=0,ts(e,t,n,t.pendingProps);case 24:Bo(0,Qo,e.memoizedState.cache)}return xs(e,t,n)}function ks(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Ka=!0;else{if(!(Cs(e,n)||128&t.flags))return Ka=!1,Ss(e,t,n);Ka=!!(131072&e.flags)}else Ka=!1,So&&1048576&t.flags&&bo(t,co,t.index);switch(t.lanes=0,t.tag){case 16:e:{var o=t.pendingProps;if(e=bi(t.elementType),t.type=e,"function"!=typeof e){if(null!=e){var i=e.$$typeof;if(i===w){t.tag=11,t=Ja(null,t,e,o,n);break e}if(i===S){t.tag=14,t=Za(null,t,e,o,n);break e}}throw t=R(e)||e,Error(r(306,t,""))}Qr(e)?(o=Ha(e,o),t.tag=1,t=cs(null,t,e,o,n)):(t.tag=0,t=ss(null,t,e,o,n))}return t;case 0:return ss(e,t,t.type,t.pendingProps,n);case 1:return cs(e,t,o=t.type,i=Ha(o,t.pendingProps),n);case 3:e:{if(q(t,t.stateNode.containerInfo),null===e)throw Error(r(387));o=t.pendingProps;var l=t.memoizedState;i=l.element,Ai(e,t),Hi(t,o,null,n);var a=t.memoizedState;if(o=a.cache,Bo(0,Qo,o),o!==l.cache&&Wo(t,[Qo],n,!0),Bi(),o=a.element,l.isDehydrated){if(l={element:o,isDehydrated:!1,cache:a.cache},t.updateQueue.baseState=l,t.memoizedState=l,256&t.flags){t=ds(e,t,o,n);break e}if(o!==i){Fo(i=lo(Error(r(424)),t)),t=ds(e,t,o,n);break e}for(e=9===(e=t.stateNode.containerInfo).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,Co=ch(e.firstChild),xo=t,So=!0,ko=null,To=!0,n=zi(t,null,o,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(Ao(),o===i){t=xs(e,t,n);break e}Qa(e,t,o,n)}t=t.child}return t;case 26:return as(e,t),null===e?(n=Rh(t.type,null,t.pendingProps,null))?t.memoizedState=n:So||(n=t.type,e=t.pendingProps,(o=jd(V.current).createElement(n))[Ye]=t,o[Xe]=e,Md(o,n,e),at(o),t.stateNode=o):t.memoizedState=Rh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return X(t),null===e&&So&&(o=t.stateNode=fh(t.type,t.pendingProps,V.current),xo=t,To=!0,i=Co,eh(t.type)?(dh=i,Co=ch(o.firstChild)):Co=i),Qa(e,t,t.pendingProps.children,n),as(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&So&&((i=o=Co)&&(null!==(o=oh(o,t.type,t.pendingProps,To))?(t.stateNode=o,xo=t,Co=ch(o.firstChild),To=!1,i=!0):i=!1),i||Eo(t)),X(t),i=t.type,l=t.pendingProps,a=null!==e?e.memoizedProps:null,o=l.children,Gd(i,l)?o=null:null!==a&&Gd(i,a)&&(t.flags|=32),null!==t.memoizedState&&(i=gl(e,t,bl,null,null,n),ep._currentValue=i),as(e,t),Qa(e,t,o,n),t.child;case 6:return null===e&&So&&((e=n=Co)&&(null!==(n=ih(n,t.pendingProps,To))?(t.stateNode=n,xo=t,Co=null,e=!0):e=!1),e||Eo(t)),null;case 13:return gs(e,t,n);case 4:return q(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=Ei(t,null,o,n):Qa(e,t,o,n),t.child;case 11:return Ja(e,t,t.type,t.pendingProps,n);case 7:return Qa(e,t,t.pendingProps,n),t.child;case 8:case 12:return Qa(e,t,t.pendingProps.children,n),t.child;case 10:return o=t.pendingProps,Bo(0,t.type,o.value),Qa(e,t,o.children,n),t.child;case 9:return i=t.type._context,o=t.pendingProps.children,$o(t),o=o(i=Vo(i)),t.flags|=1,Qa(e,t,o,n),t.child;case 14:return Za(e,t,t.type,t.pendingProps,n);case 15:return es(e,t,t.type,t.pendingProps,n);case 19:return _s(e,t,n);case 31:return ls(e,t,n);case 22:return ts(e,t,n,t.pendingProps);case 24:return $o(t),o=Vo(Qo),null===e?(null===(i=ui())&&(i=Lu,l=Jo(),i.pooledCache=l,l.refCount++,null!==l&&(i.pooledCacheLanes|=n),i=l),t.memoizedState={parent:o,cache:i},Ri(t),Bo(0,Qo,i)):(0!==(e.lanes&n)&&(Ai(e,t),Hi(t,null,null,n),Bi()),i=e.memoizedState,l=t.memoizedState,i.parent!==o?(i={parent:o,cache:o},t.memoizedState=i,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=i),Bo(0,Qo,o)):(o=l.cache,Bo(0,Qo,o),o!==i.cache&&Wo(t,[Qo],n,!0))),Qa(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Ts(e){e.flags|=4}function Ps(e,t,n,r,o){if((t=!!(32&e.mode))&&(t=!1),t){if(e.flags|=16777216,(335544128&o)===o)if(e.stateNode.complete)e.flags|=8192;else{if(!Sc())throw vi=gi,pi;e.flags|=8192}}else e.flags&=-16777217}function Es(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!Gh(t)){if(!Sc())throw vi=gi,pi;e.flags|=8192}}function zs(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Le():536870912,e.lanes|=t,Xu|=t)}function Is(e,t){if(!So)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Rs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=65011712&o.subtreeFlags,r|=65011712&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function As(e,t,n){var o=t.pendingProps;switch(wo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return Rs(t),null;case 3:return n=t.stateNode,o=null,null!==e&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),Ho(Qo),Y(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(Ro(t)?Ts(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,Do())),Rs(t),null;case 26:var i=t.type,l=t.memoizedState;return null===e?(Ts(t),null!==l?(Rs(t),Es(t,l)):(Rs(t),Ps(t,i,0,0,n))):l?l!==e.memoizedState?(Ts(t),Rs(t),Es(t,l)):(Rs(t),t.flags&=-16777217):((e=e.memoizedProps)!==o&&Ts(t),Rs(t),Ps(t,i,0,0,n)),null;case 27:if(K(t),n=V.current,i=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==o&&Ts(t);else{if(!o){if(null===t.stateNode)throw Error(r(166));return Rs(t),null}e=j.current,Ro(t)?zo(t):(e=fh(i,o,n),t.stateNode=e,Ts(t))}return Rs(t),null;case 5:if(K(t),i=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==o&&Ts(t);else{if(!o){if(null===t.stateNode)throw Error(r(166));return Rs(t),null}if(l=j.current,Ro(t))zo(t);else{var a=jd(V.current);switch(l){case 1:l=a.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:l=a.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":l=a.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":l=a.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":(l=a.createElement("div")).innerHTML="<script><\/script>",l=l.removeChild(l.firstChild);break;case"select":l="string"==typeof o.is?a.createElement("select",{is:o.is}):a.createElement("select"),o.multiple?l.multiple=!0:o.size&&(l.size=o.size);break;default:l="string"==typeof o.is?a.createElement(i,{is:o.is}):a.createElement(i)}}l[Ye]=t,l[Xe]=o;e:for(a=t.child;null!==a;){if(5===a.tag||6===a.tag)l.appendChild(a.stateNode);else if(4!==a.tag&&27!==a.tag&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;null===a.sibling;){if(null===a.return||a.return===t)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}t.stateNode=l;e:switch(Md(l,i,o),i){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&Ts(t)}}return Rs(t),Ps(t,t.type,null===e||e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==o&&Ts(t);else{if("string"!=typeof o&&null===t.stateNode)throw Error(r(166));if(e=V.current,Ro(t)){if(e=t.stateNode,n=t.memoizedProps,o=null,null!==(i=xo))switch(i.tag){case 27:case 5:o=i.memoizedProps}e[Ye]=t,(e=!!(e.nodeValue===n||null!==o&&!0===o.suppressHydrationWarning||Fd(e.nodeValue,n)))||Eo(t,!0)}else(e=jd(e).createTextNode(o))[Ye]=t,t.stateNode=e}return Rs(t),null;case 31:if(n=t.memoizedState,null===e||null!==e.memoizedState){if(o=Ro(t),null!==n){if(null===e){if(!o)throw Error(r(318));if(!(e=null!==(e=t.memoizedState)?e.dehydrated:null))throw Error(r(557));e[Ye]=t}else Ao(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Rs(t),e=!1}else n=Do(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return 256&t.flags?(Zi(t),t):(Zi(t),null);if(128&t.flags)throw Error(r(558))}return Rs(t),null;case 13:if(o=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(i=Ro(t),null!==o&&null!==o.dehydrated){if(null===e){if(!i)throw Error(r(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(r(317));i[Ye]=t}else Ao(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Rs(t),i=!1}else i=Do(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return 256&t.flags?(Zi(t),t):(Zi(t),null)}return Zi(t),128&t.flags?(t.lanes=n,t):(n=null!==o,e=null!==e&&null!==e.memoizedState,n&&(i=null,null!==(o=t.child).alternate&&null!==o.alternate.memoizedState&&null!==o.alternate.memoizedState.cachePool&&(i=o.alternate.memoizedState.cachePool.pool),l=null,null!==o.memoizedState&&null!==o.memoizedState.cachePool&&(l=o.memoizedState.cachePool.pool),l!==i&&(o.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),zs(t,t.updateQueue),Rs(t),null);case 4:return Y(),null===e&&Sd(t.stateNode.containerInfo),Rs(t),null;case 10:return Ho(t.type),Rs(t),null;case 19:if(H(el),null===(o=t.memoizedState))return Rs(t),null;if(i=!!(128&t.flags),null===(l=o.rendering))if(i)Is(o,!1);else{if(0!==$u||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=tl(e))){for(t.flags|=128,Is(o,!1),e=l.updateQueue,t.updateQueue=e,zs(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Zr(n,e),n=n.sibling;return N(el,1&el.current|2),So&&yo(t,o.treeForkCount),t.child}e=e.sibling}null!==o.tail&&ae()>tc&&(t.flags|=128,i=!0,Is(o,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=tl(l))){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,zs(t,e),Is(o,!0),null===o.tail&&"hidden"===o.tailMode&&!l.alternate&&!So)return Rs(t),null}else 2*ae()-o.renderingStartTime>tc&&536870912!==n&&(t.flags|=128,i=!0,Is(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(null!==(e=o.last)?e.sibling=l:t.child=l,o.last=l)}return null!==o.tail?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=ae(),e.sibling=null,n=el.current,N(el,i?1&n|2:1&n),So&&yo(t,o.treeForkCount),e):(Rs(t),null);case 22:case 23:return Zi(t),Gi(),o=null!==t.memoizedState,null!==e?null!==e.memoizedState!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?!!(536870912&n)&&!(128&t.flags)&&(Rs(t),6&t.subtreeFlags&&(t.flags|=8192)):Rs(t),null!==(n=t.updateQueue)&&zs(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),o=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(o=t.memoizedState.cachePool.pool),o!==n&&(t.flags|=2048),null!==e&&H(si),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ho(Qo),Rs(t),null;case 25:case 30:return null}throw Error(r(156,t.tag))}function Ds(e,t){switch(wo(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ho(Qo),Y(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return K(t),null;case 31:if(null!==t.memoizedState){if(Zi(t),null===t.alternate)throw Error(r(340));Ao()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 13:if(Zi(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(r(340));Ao()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return H(el),null;case 4:return Y(),null;case 10:return Ho(t.type),null;case 22:case 23:return Zi(t),Gi(),null!==e&&H(si),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return Ho(Qo),null;default:return null}}function Fs(e,t){switch(wo(t),t.tag){case 3:Ho(Qo),Y();break;case 26:case 27:case 5:K(t);break;case 4:Y();break;case 31:null!==t.memoizedState&&Zi(t);break;case 13:Zi(t);break;case 19:H(el);break;case 10:Ho(t.type);break;case 22:case 23:Zi(t),Gi(),null!==e&&H(si);break;case 24:Ho(Qo)}}function Ls(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var o=r.next;n=o;do{if((n.tag&e)===e){r=void 0;var i=n.create,l=n.inst;r=i(),l.destroy=r}n=n.next}while(n!==o)}}catch(a){Vc(t,t.return,a)}}function Os(e,t,n){try{var r=t.updateQueue,o=null!==r?r.lastEffect:null;if(null!==o){var i=o.next;r=i;do{if((r.tag&e)===e){var l=r.inst,a=l.destroy;if(void 0!==a){l.destroy=void 0,o=t;var s=n,u=a;try{u()}catch(c){Vc(o,s,c)}}}r=r.next}while(r!==i)}}catch(c){Vc(t,t.return,c)}}function Ms(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{Wi(t,n)}catch(r){Vc(e,e.return,r)}}}function Bs(e,t,n){n.props=Ha(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){Vc(e,t,r)}}function Hs(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(o){Vc(e,t,o)}}function Ns(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(o){Vc(e,t,o)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(i){Vc(e,t,i)}else n.current=null}function Ws(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(o){Vc(e,e.return,o)}}function Us(e,t,n){try{var r=e.stateNode;Bd(r,e.type,n,t),r[Xe]=t}catch(o){Vc(e,e.return,o)}}function js(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&eh(e.type)||4===e.tag}function $s(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||js(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&eh(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Vs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Wt));else if(4!==r&&(27===r&&eh(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(Vs(e,t,n),e=e.sibling;null!==e;)Vs(e,t,n),e=e.sibling}function Gs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&eh(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(Gs(e,t,n),e=e.sibling;null!==e;)Gs(e,t,n),e=e.sibling}function qs(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);Md(t,r,n),t[Ye]=e,t[Xe]=n}catch(i){Vc(e,e.return,i)}}x(ps,"fu"),x(fs,"pu"),x(gs,"mu"),x(ms,"hu"),x(ys,"gu"),x(bs,"yu"),x(vs,"vu"),x(ws,"bu"),x(_s,"wu"),x(xs,"Su"),x(Cs,"ku"),x(Ss,"Cu"),x(ks,"xu"),x(Ts,"Eu"),x(Ps,"Ru"),x(Es,"Iu"),x(zs,"Pu"),x(Is,"Tu"),x(Rs,"zu"),x(As,"_u"),x(Ds,"Nu"),x(Fs,"Fu"),x(Ls,"Du"),x(Os,"Lu"),x(Ms,"Ou"),x(Bs,"Au"),x(Hs,"Mu"),x(Ns,"Hu"),x(Ws,"Uu"),x(Us,"ju"),x(js,"Wu"),x($s,"$u"),x(Vs,"Vu"),x(Gs,"Bu"),x(qs,"qu"),pe(ps,"mountSuspenseOffscreenState"),pe(fs,"getRemainingWorkInPrimaryTree"),pe(gs,"updateSuspenseComponent"),pe(ms,"mountSuspensePrimaryChildren"),pe(ys,"mountWorkInProgressOffscreenFiber"),pe(bs,"retrySuspenseComponentWithoutHydrating"),pe(vs,"scheduleSuspenseWorkOnFiber"),pe(ws,"initSuspenseListRenderState"),pe(_s,"updateSuspenseListComponent"),pe(xs,"bailoutOnAlreadyFinishedWork"),pe(Cs,"checkScheduledUpdateOrContext"),pe(Ss,"attemptEarlyBailoutIfNoScheduledUpdate"),pe(ks,"beginWork"),pe(Ts,"markUpdate"),pe(Ps,"preloadInstanceAndSuspendIfNeeded"),pe(Es,"preloadResourceAndSuspendIfNeeded"),pe(zs,"scheduleRetryEffect"),pe(Is,"cutOffTailIfNeeded"),pe(Rs,"bubbleProperties"),pe(As,"completeWork"),pe(Ds,"unwindWork"),pe(Fs,"unwindInterruptedWork"),pe(Ls,"commitHookEffectListMount"),pe(Os,"commitHookEffectListUnmount"),pe(Ms,"commitClassCallbacks"),pe(Bs,"safelyCallComponentWillUnmount"),pe(Hs,"safelyAttachRef"),pe(Ns,"safelyDetachRef"),pe(Ws,"commitHostMount"),pe(Us,"commitHostUpdate"),pe(js,"isHostParent"),pe($s,"getHostSibling"),pe(Vs,"insertOrAppendPlacementNodeIntoContainer"),pe(Gs,"insertOrAppendPlacementNode"),pe(qs,"commitHostSingletonAcquisition");var Ys=!1,Xs=!1,Ks=!1,Qs="function"==typeof WeakSet?WeakSet:Set,Js=null;function Zs(e,t){if(e=e.containerInfo,Wd=up,mr(e=gr(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(o&&0!==o.rangeCount){n=o.anchorNode;var i=o.anchorOffset,l=o.focusNode;o=o.focusOffset;try{n.nodeType,l.nodeType}catch(m){n=null;break e}var a=0,s=-1,u=-1,c=0,d=0,h=e,p=null;t:for(;;){for(var f;h!==n||0!==i&&3!==h.nodeType||(s=a+i),h!==l||0!==o&&3!==h.nodeType||(u=a+o),3===h.nodeType&&(a+=h.nodeValue.length),null!==(f=h.firstChild);)p=h,h=f;for(;;){if(h===e)break t;if(p===n&&++c===i&&(s=a),p===l&&++d===o&&(u=a),null!==(f=h.nextSibling))break;p=(h=p).parentNode}h=f}n=-1===s||-1===u?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ud={focusedElem:e,selectionRange:n},up=!1,Js=t;null!==Js;)if(e=(t=Js).child,1028&t.subtreeFlags&&null!==e)e.return=t,Js=e;else for(;null!==Js;){switch(l=(t=Js).alternate,e=t.flags,t.tag){case 0:if(4&e&&null!==(e=null!==(e=t.updateQueue)?e.events:null))for(n=0;n<e.length;n++)(i=e[n]).ref.impl=i.nextImpl;break;case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==l){e=void 0,n=t,i=l.memoizedProps,l=l.memoizedState,o=n.stateNode;try{var g=Ha(n.type,i);e=o.getSnapshotBeforeUpdate(g,l),o.__reactInternalSnapshotBeforeUpdate=e}catch(y){Vc(n,n.return,y)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))rh(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":rh(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(r(163))}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}}function eu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:gu(e,n),4&r&&Ls(5,n);break;case 1:if(gu(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(l){Vc(n,n.return,l)}else{var o=Ha(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(a){Vc(n,n.return,a)}}64&r&&Ms(n),512&r&&Hs(n,n.return);break;case 3:if(gu(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{Wi(e,t)}catch(l){Vc(n,n.return,l)}}break;case 27:null===t&&4&r&&qs(n);case 26:case 5:gu(e,n),null===t&&4&r&&Ws(n),512&r&&Hs(n,n.return);break;case 12:gu(e,n);break;case 31:gu(e,n),4&r&&lu(e,n);break;case 13:gu(e,n),4&r&&au(e,n),64&r&&null!==(e=n.memoizedState)&&null!==(e=e.dehydrated)&&uh(e,n=Xc.bind(null,n));break;case 22:if(!(r=null!==n.memoizedState||Ys)){t=null!==t&&null!==t.memoizedState||Xs,o=Ys;var i=Xs;Ys=r,(Xs=t)&&!i?yu(e,n,!!(8772&n.subtreeFlags)):gu(e,n),Ys=o,Xs=i}break;case 30:break;default:gu(e,n)}}function tu(e){var t=e.alternate;null!==t&&(e.alternate=null,tu(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&nt(t),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}x(Zs,"Ju"),x(eu,"Zu"),x(tu,"es"),pe(Zs,"commitBeforeMutationEffects"),pe(eu,"commitLayoutEffectOnFiber"),pe(tu,"detachFiberAfterEffects");var nu=null,ru=!1;function ou(e,t,n){for(n=n.child;null!==n;)iu(e,t,n),n=n.sibling}function iu(e,t,n){if(be&&"function"==typeof be.onCommitFiberUnmount)try{be.onCommitFiberUnmount(ye,n)}catch(i){}switch(n.tag){case 26:Xs||Ns(n,t),ou(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Xs||Ns(n,t);var r=nu,o=ru;eh(n.type)&&(nu=n.stateNode,ru=!1),ou(e,t,n),gh(n.stateNode),nu=r,ru=o;break;case 5:Xs||Ns(n,t);case 6:if(r=nu,o=ru,nu=null,ou(e,t,n),ru=o,null!==(nu=r))if(ru)try{(9===nu.nodeType?nu.body:"HTML"===nu.nodeName?nu.ownerDocument.body:nu).removeChild(n.stateNode)}catch(l){Vc(n,t,l)}else try{nu.removeChild(n.stateNode)}catch(l){Vc(n,t,l)}break;case 18:null!==nu&&(ru?(th(9===(e=nu).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Lp(e)):th(nu,n.stateNode));break;case 4:r=nu,o=ru,nu=n.stateNode.containerInfo,ru=!0,ou(e,t,n),nu=r,ru=o;break;case 0:case 11:case 14:case 15:Os(2,n,t),Xs||Os(4,n,t),ou(e,t,n);break;case 1:Xs||(Ns(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&Bs(n,t,r)),ou(e,t,n);break;case 21:ou(e,t,n);break;case 22:Xs=(r=Xs)||null!==n.memoizedState,ou(e,t,n),Xs=r;break;default:ou(e,t,n)}}function lu(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)){e=e.dehydrated;try{Lp(e)}catch(n){Vc(t,t.return,n)}}}function au(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))try{Lp(e)}catch(n){Vc(t,t.return,n)}}function su(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new Qs),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new Qs),t;default:throw Error(r(435,e.tag))}}function uu(e,t){var n=su(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Kc.bind(null,e,t);t.then(r,r)}})}function cu(e,t){var n=t.deletions;if(null!==n)for(var o=0;o<n.length;o++){var i=n[o],l=e,a=t,s=a;e:for(;null!==s;){switch(s.tag){case 27:if(eh(s.type)){nu=s.stateNode,ru=!1;break e}break;case 5:nu=s.stateNode,ru=!1;break e;case 3:case 4:nu=s.stateNode.containerInfo,ru=!0;break e}s=s.return}if(null===nu)throw Error(r(160));iu(l,a,i),nu=null,ru=!1,null!==(l=i.alternate)&&(l.return=null),i.return=null}if(13886&t.subtreeFlags)for(t=t.child;null!==t;)hu(t,e),t=t.sibling}x(ou,"rs"),x(iu,"ls"),x(lu,"os"),x(au,"as"),x(su,"is"),x(uu,"us"),x(cu,"ss"),pe(ou,"recursivelyTraverseDeletionEffects"),pe(iu,"commitDeletionEffectsOnFiber"),pe(lu,"commitActivityHydrationCallbacks"),pe(au,"commitSuspenseHydrationCallbacks"),pe(su,"getRetryCache"),pe(uu,"attachSuspenseRetryListeners"),pe(cu,"recursivelyTraverseMutationEffects");var du=null;function hu(e,t){var n=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:cu(t,e),pu(e),4&o&&(Os(3,e,e.return),Ls(3,e),Os(5,e,e.return));break;case 1:cu(t,e),pu(e),512&o&&(Xs||null===n||Ns(n,n.return)),64&o&&Ys&&null!==(e=e.updateQueue)&&null!==(o=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?o:n.concat(o));break;case 26:var i=du;if(cu(t,e),pu(e),512&o&&(Xs||null===n||Ns(n,n.return)),4&o){var l=null!==n?n.memoizedState:null;if(o=e.memoizedState,null===n)if(null===o)if(null===e.stateNode){e:{o=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(o){case"title":(!(l=i.getElementsByTagName("title")[0])||l[tt]||l[Ye]||"http://www.w3.org/2000/svg"===l.namespaceURI||l.hasAttribute("itemprop"))&&(l=i.createElement(o),i.head.insertBefore(l,i.querySelector("head > title"))),Md(l,o,n),l[Ye]=e,at(l),o=l;break e;case"link":var a=jh("link","href",i).get(o+(n.href||""));if(a)for(var s=0;s<a.length;s++)if((l=a[s]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&l.getAttribute("rel")===(null==n.rel?null:n.rel)&&l.getAttribute("title")===(null==n.title?null:n.title)&&l.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){a.splice(s,1);break t}Md(l=i.createElement(o),o,n),i.head.appendChild(l);break;case"meta":if(a=jh("meta","content",i).get(o+(n.content||"")))for(s=0;s<a.length;s++)if((l=a[s]).getAttribute("content")===(null==n.content?null:""+n.content)&&l.getAttribute("name")===(null==n.name?null:n.name)&&l.getAttribute("property")===(null==n.property?null:n.property)&&l.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&l.getAttribute("charset")===(null==n.charSet?null:n.charSet)){a.splice(s,1);break t}Md(l=i.createElement(o),o,n),i.head.appendChild(l);break;default:throw Error(r(468,o))}l[Ye]=e,at(l),o=l}e.stateNode=o}else $h(i,e.type,e.stateNode);else e.stateNode=Bh(i,o,e.memoizedProps);else l!==o?(null===l?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):l.count--,null===o?$h(i,e.type,e.stateNode):Bh(i,o,e.memoizedProps)):null===o&&null!==e.stateNode&&Us(e,e.memoizedProps,n.memoizedProps)}break;case 27:cu(t,e),pu(e),512&o&&(Xs||null===n||Ns(n,n.return)),null!==n&&4&o&&Us(e,e.memoizedProps,n.memoizedProps);break;case 5:if(cu(t,e),pu(e),512&o&&(Xs||null===n||Ns(n,n.return)),32&e.flags){i=e.stateNode;try{Dt(i,"")}catch(g){Vc(e,e.return,g)}}4&o&&null!=e.stateNode&&Us(e,i=e.memoizedProps,null!==n?n.memoizedProps:i),1024&o&&(Ks=!0);break;case 6:if(cu(t,e),pu(e),4&o){if(null===e.stateNode)throw Error(r(162));o=e.memoizedProps,n=e.stateNode;try{n.nodeValue=o}catch(g){Vc(e,e.return,g)}}break;case 3:if(Uh=null,i=du,du=bh(t.containerInfo),cu(t,e),du=i,pu(e),4&o&&null!==n&&n.memoizedState.isDehydrated)try{Lp(t.containerInfo)}catch(g){Vc(e,e.return,g)}Ks&&(Ks=!1,fu(e));break;case 4:o=du,du=bh(e.stateNode.containerInfo),cu(t,e),pu(e),du=o;break;case 12:default:cu(t,e),pu(e);break;case 31:case 19:cu(t,e),pu(e),4&o&&null!==(o=e.updateQueue)&&(e.updateQueue=null,uu(e,o));break;case 13:cu(t,e),pu(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(Zu=ae()),4&o&&null!==(o=e.updateQueue)&&(e.updateQueue=null,uu(e,o));break;case 22:i=null!==e.memoizedState;var u=null!==n&&null!==n.memoizedState,c=Ys,d=Xs;if(Ys=c||i,Xs=d||u,cu(t,e),Xs=d,Ys=c,pu(e),8192&o)e:for(t=e.stateNode,t._visibility=i?-2&t._visibility:1|t._visibility,i&&(null===n||u||Ys||Xs||mu(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){u=n=t;try{if(l=u.stateNode,i)"function"==typeof(a=l.style).setProperty?a.setProperty("display","none","important"):a.display="none";else{s=u.stateNode;var h=u.memoizedProps.style,p=null!=h&&h.hasOwnProperty("display")?h.display:null;s.style.display=null==p||"boolean"==typeof p?"":(""+p).trim()}}catch(g){Vc(u,u.return,g)}}}else if(6===t.tag){if(null===n){u=t;try{u.stateNode.nodeValue=i?"":u.memoizedProps}catch(g){Vc(u,u.return,g)}}}else if(18===t.tag){if(null===n){u=t;try{var f=u.stateNode;i?nh(f,!0):nh(u.stateNode,!1)}catch(g){Vc(u,u.return,g)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&o&&null!==(o=e.updateQueue)&&null!==(n=o.retryQueue)&&(o.retryQueue=null,uu(e,n));case 30:case 21:}}function pu(e){var t=e.flags;if(2&t){try{for(var n,o=e.return;null!==o;){if(js(o)){n=o;break}o=o.return}if(null==n)throw Error(r(160));switch(n.tag){case 27:var i=n.stateNode;Gs(e,$s(e),i);break;case 5:var l=n.stateNode;32&n.flags&&(Dt(l,""),n.flags&=-33),Gs(e,$s(e),l);break;case 3:case 4:var a=n.stateNode.containerInfo;Vs(e,$s(e),a);break;default:throw Error(r(161))}}catch(s){Vc(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function fu(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;fu(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function gu(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)eu(e,t.alternate,t),t=t.sibling}function mu(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Os(4,t,t.return),mu(t);break;case 1:Ns(t,t.return);var n=t.stateNode;"function"==typeof n.componentWillUnmount&&Bs(t,t.return,n),mu(t);break;case 27:gh(t.stateNode);case 26:case 5:Ns(t,t.return),mu(t);break;case 22:null===t.memoizedState&&mu(t);break;default:mu(t)}e=e.sibling}}function yu(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,o=e,i=t,l=i.flags;switch(i.tag){case 0:case 11:case 15:yu(o,i,n),Ls(4,i);break;case 1:if(yu(o,i,n),"function"==typeof(o=(r=i).stateNode).componentDidMount)try{o.componentDidMount()}catch(u){Vc(r,r.return,u)}if(null!==(o=(r=i).updateQueue)){var a=r.stateNode;try{var s=o.shared.hiddenCallbacks;if(null!==s)for(o.shared.hiddenCallbacks=null,o=0;o<s.length;o++)Ni(s[o],a)}catch(u){Vc(r,r.return,u)}}n&&64&l&&Ms(i),Hs(i,i.return);break;case 27:qs(i);case 26:case 5:yu(o,i,n),n&&null===r&&4&l&&Ws(i),Hs(i,i.return);break;case 12:yu(o,i,n);break;case 31:yu(o,i,n),n&&4&l&&lu(o,i);break;case 13:yu(o,i,n),n&&4&l&&au(o,i);break;case 22:null===i.memoizedState&&yu(o,i,n),Hs(i,i.return);break;case 30:break;default:yu(o,i,n)}t=t.sibling}}function bu(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Zo(n))}function vu(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Zo(e))}function wu(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)_u(e,t,n,r),t=t.sibling}function _u(e,t,n,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:wu(e,t,n,r),2048&o&&Ls(9,t);break;case 1:case 31:case 13:default:wu(e,t,n,r);break;case 3:wu(e,t,n,r),2048&o&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Zo(e)));break;case 12:if(2048&o){wu(e,t,n,r),e=t.stateNode;try{var i=t.memoizedProps,l=i.id,a=i.onPostCommit;"function"==typeof a&&a(l,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(s){Vc(t,t.return,s)}}else wu(e,t,n,r);break;case 23:break;case 22:i=t.stateNode,l=t.alternate,null!==t.memoizedState?2&i._visibility?wu(e,t,n,r):Cu(e,t):2&i._visibility?wu(e,t,n,r):(i._visibility|=2,xu(e,t,n,r,!!(10256&t.subtreeFlags)||!1)),2048&o&&bu(l,t);break;case 24:wu(e,t,n,r),2048&o&&vu(t.alternate,t)}}function xu(e,t,n,r,o){for(o=o&&(!!(10256&t.subtreeFlags)||!1),t=t.child;null!==t;){var i=e,l=t,a=n,s=r,u=l.flags;switch(l.tag){case 0:case 11:case 15:xu(i,l,a,s,o),Ls(8,l);break;case 23:break;case 22:var c=l.stateNode;null!==l.memoizedState?2&c._visibility?xu(i,l,a,s,o):Cu(i,l):(c._visibility|=2,xu(i,l,a,s,o)),o&&2048&u&&bu(l.alternate,l);break;case 24:xu(i,l,a,s,o),o&&2048&u&&vu(l.alternate,l);break;default:xu(i,l,a,s,o)}t=t.sibling}}function Cu(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,o=r.flags;switch(r.tag){case 22:Cu(n,r),2048&o&&bu(r.alternate,r);break;case 24:Cu(n,r),2048&o&&vu(r.alternate,r);break;default:Cu(n,r)}t=t.sibling}}x(hu,"ds"),x(pu,"fs"),x(fu,"ps"),x(gu,"ms"),x(mu,"hs"),x(yu,"gs"),x(bu,"ys"),x(vu,"vs"),x(wu,"bs"),x(_u,"ws"),x(xu,"Ss"),x(Cu,"ks"),pe(hu,"commitMutationEffectsOnFiber"),pe(pu,"commitReconciliationEffects"),pe(fu,"recursivelyResetForms"),pe(gu,"recursivelyTraverseLayoutEffects"),pe(mu,"recursivelyTraverseDisappearLayoutEffects"),pe(yu,"recursivelyTraverseReappearLayoutEffects"),pe(bu,"commitOffscreenPassiveMountEffects"),pe(vu,"commitCachePassiveMountEffect"),pe(wu,"recursivelyTraversePassiveMountEffects"),pe(_u,"commitPassiveMountOnFiber"),pe(xu,"recursivelyTraverseReconnectPassiveEffects"),pe(Cu,"recursivelyTraverseAtomicPassiveEffects");var Su=8192;function ku(e,t,n){if(e.subtreeFlags&Su)for(e=e.child;null!==e;)Tu(e,t,n),e=e.sibling}function Tu(e,t,n){switch(e.tag){case 26:ku(e,t,n),e.flags&Su&&null!==e.memoizedState&&qh(n,du,e.memoizedState,e.memoizedProps);break;case 5:default:ku(e,t,n);break;case 3:case 4:var r=du;du=bh(e.stateNode.containerInfo),ku(e,t,n),du=r;break;case 22:null===e.memoizedState&&(null!==(r=e.alternate)&&null!==r.memoizedState?(r=Su,Su=16777216,ku(e,t,n),Su=r):ku(e,t,n))}}function Pu(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function Eu(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Js=r,Ru(r,e)}Pu(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)zu(e),e=e.sibling}function zu(e){switch(e.tag){case 0:case 11:case 15:Eu(e),2048&e.flags&&Os(9,e,e.return);break;case 3:case 12:default:Eu(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,Iu(e)):Eu(e)}}function Iu(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Js=r,Ru(r,e)}Pu(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:Os(8,t,t.return),Iu(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,Iu(t));break;default:Iu(t)}e=e.sibling}}function Ru(e,t){for(;null!==Js;){var n=Js;switch(n.tag){case 0:case 11:case 15:Os(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Zo(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,Js=r;else e:for(n=e;null!==Js;){var o=(r=Js).sibling,i=r.return;if(tu(r),r===n){Js=null;break e}if(null!==o){o.return=i,Js=o;break e}Js=i}}}x(ku,"xs"),x(Tu,"Es"),x(Pu,"Rs"),x(Eu,"Is"),x(zu,"Ps"),x(Iu,"Ts"),x(Ru,"zs"),pe(ku,"recursivelyAccumulateSuspenseyCommit"),pe(Tu,"accumulateSuspenseyCommitOnFiber"),pe(Pu,"detachAlternateSiblings"),pe(Eu,"recursivelyTraversePassiveUnmountEffects"),pe(zu,"commitPassiveUnmountOnFiber"),pe(Iu,"recursivelyTraverseDisconnectPassiveEffects"),pe(Ru,"commitPassiveUnmountEffectsInsideOfDeletedTree_begin");var Au={getCacheForType:/* @__PURE__ */pe(function(e){var t=Vo(Qo),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n},"getCacheForType"),cacheSignal:/* @__PURE__ */pe(function(){return Vo(Qo).controller.signal},"cacheSignal")},Du="function"==typeof WeakMap?WeakMap:Map,Fu=0,Lu=null,Ou=null,Mu=0,Bu=0,Hu=null,Nu=!1,Wu=!1,Uu=!1,ju=0,$u=0,Vu=0,Gu=0,qu=0,Yu=0,Xu=0,Ku=null,Qu=null,Ju=!1,Zu=0,ec=0,tc=1/0,nc=null,rc=null,oc=0,ic=null,lc=null,ac=0,sc=0,uc=null,cc=null,dc=0,hc=null;function pc(){return 2&Fu&&0!==Mu?Mu&-Mu:null!==D.T?hd():Ve()}function fc(){if(0===Yu)if(536870912&Mu&&!So)Yu=536870912;else{var e=Pe;!(3932160&(Pe<<=1))&&(Pe=262144),Yu=e}return null!==(e=qi.current)&&(e.flags|=32),Yu}function gc(e,t,n){(e!==Lu||2!==Bu&&9!==Bu)&&null===e.cancelPendingCommit||(xc(e,0),vc(e,Mu,Yu,!1)),Me(e,n),2&Fu&&e===Lu||(e===Lu&&(!(2&Fu)&&(Gu|=n),4===$u&&vc(e,Mu,Yu,!1)),od(e))}function mc(e,t,n){if(6&Fu)throw Error(r(327));for(var o=!n&&!(127&t)&&0===(t&e.expiredLanes)||Ae(e,t),i=o?Ic(e,t):Ec(e,t,!0),l=o;;){if(0===i){Wu&&!o&&vc(e,t,0,!1);break}if(n=e.current.alternate,!l||bc(n)){if(2===i){if(l=t,e.errorRecoveryDisabledLanes&l)var a=0;else a=0!=(a=-536870913&e.pendingLanes)?a:536870912&a?536870912:0;if(0!==a){t=a;e:{var s=e;i=Ku;var u=s.current.memoizedState.isDehydrated;if(u&&(xc(s,a).flags|=256),2!==(a=Ec(s,a,!1))){if(Uu&&!u){s.errorRecoveryDisabledLanes|=l,Gu|=l,i=4;break e}l=Qu,Qu=i,null!==l&&(null===Qu?Qu=l:Qu.push.apply(Qu,l))}i=a}if(l=!1,2!==i)continue}}if(1===i){xc(e,0),vc(e,t,0,!0);break}e:{switch(o=e,l=i){case 0:case 1:throw Error(r(345));case 4:if((4194048&t)!==t)break;case 6:vc(o,t,Yu,!Nu);break e;case 2:Qu=null;break;case 3:case 5:break;default:throw Error(r(329))}if((62914560&t)===t&&10<(i=Zu+300-ae())){if(vc(o,t,Yu,!Nu),0!==Re(o,0,!0))break e;ac=t,o.timeoutHandle=Xd(yc.bind(null,o,n,Qu,nc,Ju,t,Yu,Gu,Xu,Nu,l,"Throttled",-0,0),i)}else yc(o,n,Qu,nc,Ju,t,Yu,Gu,Xu,Nu,l,null,-0,0)}break}i=Ec(e,t,!1),l=!1}od(e)}function yc(e,t,n,r,o,i,l,a,s,u,c,d,h,p){if(e.timeoutHandle=-1,8192&(d=t.subtreeFlags)||!(16785408&~d)){Tu(t,i,d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Wt});var f=(62914560&i)===i?Zu-ae():(4194048&i)===i?ec-ae():0;if(null!==(f=Xh(d,f)))return ac=i,e.cancelPendingCommit=f(Mc.bind(null,e,t,i,n,r,o,l,a,s,c,d,null,h,p)),void vc(e,i,l,!u)}Mc(e,t,i,n,r,o,l,a,s)}function bc(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&null!==(n=t.updateQueue)&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!cr(i(),o))return!1}catch(l){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function vc(e,t,n,r){t&=~qu,t&=~Gu,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var i=31-_e(o),l=1<<i;r[i]=-1,o&=~l}0!==n&&Ne(e,n,t)}function wc(){return!!(6&Fu)||(id(0),!1)}function _c(){if(null!==Ou){if(0===Bu)var e=Ou.return;else Mo=Oo=null,_l(e=Ou),xi=null,Ci=0,e=Ou;for(;null!==e;)Fs(e.alternate,e),e=e.return;Ou=null}}function xc(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,Kd(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),ac=0,_c(),Lu=e,Ou=n=Jr(e.current,null),Mu=t,Bu=0,Hu=null,Nu=!1,Wu=Ae(e,t),Uu=!1,Xu=Yu=qu=Gu=Vu=$u=0,Qu=Ku=null,Ju=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var o=31-_e(r),i=1<<o;t|=e[o],r&=~i}return ju=t,Ur(),n}function Cc(e,t){rl=null,D.H=Ra,t===hi||t===fi?(t=wi(),Bu=3):t===pi?(t=wi(),Bu=4):Bu=t===Xa?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,Hu=t,null===Ou&&($u=1,ja(e,lo(t,e.current)))}function Sc(){var e=qi.current;return null===e||((4194048&Mu)===Mu?null===Yi:!!((62914560&Mu)===Mu||536870912&Mu)&&e===Yi)}function kc(){var e=D.H;return D.H=Ra,null===e?Ra:e}function Tc(){var e=D.A;return D.A=Au,e}function Pc(){$u=4,Nu||(4194048&Mu)!==Mu&&null!==qi.current||(Wu=!0),!(134217727&Vu)&&!(134217727&Gu)||null===Lu||vc(Lu,Mu,Yu,!1)}function Ec(e,t,n){var r=Fu;Fu|=2;var o=kc(),i=Tc();Lu===e&&Mu===t||(nc=null,xc(e,t)),t=!1;var l=$u;e:for(;;)try{if(0!==Bu&&null!==Ou){var a=Ou,s=Hu;switch(Bu){case 8:_c(),l=6;break e;case 3:case 2:case 9:case 6:null===qi.current&&(t=!0);var u=Bu;if(Bu=0,Hu=null,Fc(e,a,s,u),n&&Wu){l=0;break e}break;default:u=Bu,Bu=0,Hu=null,Fc(e,a,s,u)}}zc(),l=$u;break}catch(c){Cc(e,c)}return t&&e.shellSuspendCounter++,Mo=Oo=null,Fu=r,D.H=o,D.A=i,null===Ou&&(Lu=null,Mu=0,Ur()),l}function zc(){for(;null!==Ou;)Ac(Ou)}function Ic(e,t){var n=Fu;Fu|=2;var o=kc(),i=Tc();Lu!==e||Mu!==t?(nc=null,tc=ae()+500,xc(e,t)):Wu=Ae(e,t);e:for(;;)try{if(0!==Bu&&null!==Ou){t=Ou;var l=Hu;t:switch(Bu){case 1:Bu=0,Hu=null,Fc(e,t,l,1);break;case 2:case 9:if(mi(l)){Bu=0,Hu=null,Dc(t);break}t=/* @__PURE__ */pe(function(){2!==Bu&&9!==Bu||Lu!==e||(Bu=7),od(e)},"lanes"),l.then(t,t);break e;case 3:Bu=7;break e;case 4:Bu=5;break e;case 7:mi(l)?(Bu=0,Hu=null,Dc(t)):(Bu=0,Hu=null,Fc(e,t,l,7));break;case 5:var a=null;switch(Ou.tag){case 26:a=Ou.memoizedState;case 5:case 27:var s=Ou;if(a?Gh(a):s.stateNode.complete){Bu=0,Hu=null;var u=s.sibling;if(null!==u)Ou=u;else{var c=s.return;null!==c?(Ou=c,Lc(c)):Ou=null}break t}}Bu=0,Hu=null,Fc(e,t,l,5);break;case 6:Bu=0,Hu=null,Fc(e,t,l,6);break;case 8:_c(),$u=6;break e;default:throw Error(r(462))}}Rc();break}catch(d){Cc(e,d)}return Mo=Oo=null,D.H=o,D.A=i,Fu=n,null!==Ou?0:(Lu=null,Mu=0,Ur(),$u)}function Rc(){for(;null!==Ou&&!ie();)Ac(Ou)}function Ac(e){var t=ks(e.alternate,e,ju);e.memoizedProps=e.pendingProps,null===t?Lc(e):Ou=t}function Dc(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=us(n,t,t.pendingProps,t.type,void 0,Mu);break;case 11:t=us(n,t,t.pendingProps,t.type.render,t.ref,Mu);break;case 5:_l(t);default:Fs(n,t),t=ks(n,t=Ou=Zr(t,ju),ju)}e.memoizedProps=e.pendingProps,null===t?Lc(e):Ou=t}function Fc(e,t,n,r){Mo=Oo=null,_l(t),xi=null,Ci=0;var o=t.return;try{if(Ya(e,o,t,n,Mu))return $u=1,ja(e,lo(n,e.current)),void(Ou=null)}catch(i){if(null!==o)throw Ou=o,i;return $u=1,ja(e,lo(n,e.current)),void(Ou=null)}32768&t.flags?(So||1===r?e=!0:Wu||536870912&Mu?e=!1:(Nu=e=!0,(2===r||9===r||3===r||6===r)&&null!==(r=qi.current)&&13===r.tag&&(r.flags|=16384)),Oc(t,e)):Lc(t)}function Lc(e){var t=e;do{if(32768&t.flags)return void Oc(t,Nu);e=t.return;var n=As(t.alternate,t,ju);if(null!==n)return void(Ou=n);if(null!==(t=t.sibling))return void(Ou=t);Ou=t=e}while(null!==t);0===$u&&($u=5)}function Oc(e,t){do{var n=Ds(e.alternate,e);if(null!==n)return n.flags&=32767,void(Ou=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(Ou=e);Ou=e=n}while(null!==e);$u=6,Ou=null}function Mc(e,t,n,o,i,l,a,s,u){e.cancelPendingCommit=null;do{Uc()}while(0!==oc);if(6&Fu)throw Error(r(327));if(null!==t){if(t===e.current)throw Error(r(177));if(l=t.lanes|t.childLanes,He(e,n,l|=Wr,a,s,u),e===Lu&&(Ou=Lu=null,Mu=0),lc=t,ic=e,ac=n,sc=l,uc=i,cc=o,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,Qc(de,function(){return jc(),null})):(e.callbackNode=null,e.callbackPriority=0),o=!!(13878&t.flags),13878&t.subtreeFlags||o){o=D.T,D.T=null,i=F.p,F.p=2,a=Fu,Fu|=4;try{Zs(e,t)}finally{Fu=a,F.p=i,D.T=o}}oc=1,Bc(),Hc(),Nc()}}function Bc(){if(1===oc){oc=0;var e=ic,t=lc,n=!!(13878&t.flags);if(13878&t.subtreeFlags||n){n=D.T,D.T=null;var r=F.p;F.p=2;var o=Fu;Fu|=4;try{hu(t,e);var i=Ud,l=gr(e.containerInfo),a=i.focusedElem,s=i.selectionRange;if(l!==a&&a&&a.ownerDocument&&fr(a.ownerDocument.documentElement,a)){if(null!==s&&mr(a)){var u=s.start,c=s.end;if(void 0===c&&(c=u),"selectionStart"in a)a.selectionStart=u,a.selectionEnd=Math.min(c,a.value.length);else{var d=a.ownerDocument||document,h=d&&d.defaultView||window;if(h.getSelection){var p=h.getSelection(),f=a.textContent.length,g=Math.min(s.start,f),m=void 0===s.end?g:Math.min(s.end,f);!p.extend&&g>m&&(l=m,m=g,g=l);var y=pr(a,g),b=pr(a,m);if(y&&b&&(1!==p.rangeCount||p.anchorNode!==y.node||p.anchorOffset!==y.offset||p.focusNode!==b.node||p.focusOffset!==b.offset)){var v=d.createRange();v.setStart(y.node,y.offset),p.removeAllRanges(),g>m?(p.addRange(v),p.extend(b.node,b.offset)):(v.setEnd(b.node,b.offset),p.addRange(v))}}}}for(d=[],p=a;p=p.parentNode;)1===p.nodeType&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof a.focus&&a.focus(),a=0;a<d.length;a++){var w=d[a];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}up=!!Wd,Ud=Wd=null}finally{Fu=o,F.p=r,D.T=n}}e.current=t,oc=2}}function Hc(){if(2===oc){oc=0;var e=ic,t=lc,n=!!(8772&t.flags);if(8772&t.subtreeFlags||n){n=D.T,D.T=null;var r=F.p;F.p=2;var o=Fu;Fu|=4;try{eu(e,t.alternate,t)}finally{Fu=o,F.p=r,D.T=n}}oc=3}}function Nc(){if(4===oc||3===oc){oc=0,le();var e=ic,t=lc,n=ac,r=cc;10256&t.subtreeFlags||10256&t.flags?oc=5:(oc=0,lc=ic=null,Wc(e,e.pendingLanes));var o=e.pendingLanes;if(0===o&&(rc=null),$e(n),t=t.stateNode,be&&"function"==typeof be.onCommitFiberRoot)try{be.onCommitFiberRoot(ye,t,void 0,!(128&~t.current.flags))}catch(s){}if(null!==r){t=D.T,o=F.p,F.p=2,D.T=null;try{for(var i=e.onRecoverableError,l=0;l<r.length;l++){var a=r[l];i(a.value,{componentStack:a.stack})}}finally{D.T=t,F.p=o}}3&ac&&Uc(),od(e),o=e.pendingLanes,261930&n&&42&o?e===hc?dc++:(dc=0,hc=e):dc=0,id(0)}}function Wc(e,t){0===(e.pooledCacheLanes&=t)&&null!=(t=e.pooledCache)&&(e.pooledCache=null,Zo(t))}function Uc(){return Bc(),Hc(),Nc(),jc()}function jc(){if(5!==oc)return!1;var e=ic,t=sc;sc=0;var n=$e(ac),o=D.T,i=F.p;try{F.p=32>n?32:n,D.T=null,n=uc,uc=null;var l=ic,a=ac;if(oc=0,lc=ic=null,ac=0,6&Fu)throw Error(r(331));var s=Fu;if(Fu|=4,zu(l.current),_u(l,l.current,a,n),Fu=s,id(0,!1),be&&"function"==typeof be.onPostCommitFiberRoot)try{be.onPostCommitFiberRoot(ye,l)}catch(u){}return!0}finally{F.p=i,D.T=o,Wc(e,t)}}function $c(e,t,n){t=lo(n,t),null!==(e=Fi(e,t=Va(e.stateNode,t,2),2))&&(Me(e,2),od(e))}function Vc(e,t,n){if(3===e.tag)$c(e,e,n);else for(;null!==t;){if(3===t.tag){$c(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===rc||!rc.has(r))){e=lo(n,e),null!==(r=Fi(t,n=Ga(2),2))&&(qa(n,r,t,e),Me(r,2),od(r));break}}t=t.return}}function Gc(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Du;var o=/* @__PURE__ */new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=/* @__PURE__ */new Set,r.set(t,o));o.has(n)||(Uu=!0,o.add(n),e=qc.bind(null,e,t,n),t.then(e,e))}function qc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Lu===e&&(Mu&n)===n&&(4===$u||3===$u&&(62914560&Mu)===Mu&&300>ae()-Zu?!(2&Fu)&&xc(e,0):qu|=n,Xu===Mu&&(Xu=0)),od(e)}function Yc(e,t){0===t&&(t=Le()),null!==(e=Vr(e,t))&&(Me(e,t),od(e))}function Xc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Yc(e,n)}function Kc(e,t){var n=0;switch(e.tag){case 31:case 13:var o=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(r(314))}null!==o&&o.delete(t),Yc(e,n)}function Qc(e,t){return re(e,t)}x(pc,"fc"),x(fc,"pc"),x(gc,"mc"),x(mc,"hc"),x(yc,"gc"),x(bc,"yc"),x(vc,"vc"),x(wc,"bc"),x(_c,"wc"),x(xc,"Sc"),x(Cc,"kc"),x(Sc,"Cc"),x(kc,"xc"),x(Tc,"Ec"),x(Pc,"Rc"),x(Ec,"Ic"),x(zc,"Pc"),x(Ic,"Tc"),x(Rc,"zc"),x(Ac,"_c"),x(Dc,"Nc"),x(Fc,"Fc"),x(Lc,"Dc"),x(Oc,"Lc"),x(Mc,"Oc"),x(Bc,"Ac"),x(Hc,"Mc"),x(Nc,"Hc"),x(Wc,"Uc"),x(Uc,"jc"),x(jc,"Wc"),x($c,"$c"),x(Vc,"Vc"),x(Gc,"Bc"),x(qc,"qc"),x(Yc,"Kc"),x(Xc,"Qc"),x(Kc,"Gc"),x(Qc,"Yc"),pe(pc,"requestUpdateLane"),pe(fc,"requestDeferredLane"),pe(gc,"scheduleUpdateOnFiber"),pe(mc,"performWorkOnRoot"),pe(yc,"commitRootWhenReady"),pe(bc,"isRenderConsistentWithExternalStores"),pe(vc,"markRootSuspended"),pe(wc,"flushSyncWork$1"),pe(_c,"resetWorkInProgressStack"),pe(xc,"prepareFreshStack"),pe(Cc,"handleThrow"),pe(Sc,"shouldRemainOnPreviousScreen"),pe(kc,"pushDispatcher"),pe(Tc,"pushAsyncDispatcher"),pe(Pc,"renderDidSuspendDelayIfPossible"),pe(Ec,"renderRootSync"),pe(zc,"workLoopSync"),pe(Ic,"renderRootConcurrent"),pe(Rc,"workLoopConcurrentByScheduler"),pe(Ac,"performUnitOfWork"),pe(Dc,"replaySuspendedUnitOfWork"),pe(Fc,"throwAndUnwindWorkLoop"),pe(Lc,"completeUnitOfWork"),pe(Oc,"unwindUnitOfWork"),pe(Mc,"commitRoot"),pe(Bc,"flushMutationEffects"),pe(Hc,"flushLayoutEffects"),pe(Nc,"flushSpawnedWork"),pe(Wc,"releaseRootPooledCache"),pe(Uc,"flushPendingEffects"),pe(jc,"flushPassiveEffects"),pe($c,"captureCommitPhaseErrorOnRoot"),pe(Vc,"captureCommitPhaseError"),pe(Gc,"attachPingListener"),pe(qc,"pingSuspendedRoot"),pe(Yc,"retryTimedOutBoundary"),pe(Xc,"retryDehydratedSuspenseBoundary"),pe(Kc,"resolveRetryWakeable"),pe(Qc,"scheduleCallback$1");var Jc=null,Zc=null,ed=!1,td=!1,nd=!1,rd=0;function od(e){e!==Zc&&null===e.next&&(null===Zc?Jc=Zc=e:Zc=Zc.next=e),td=!0,ed||(ed=!0,dd())}function id(e,t){if(!nd&&td){nd=!0;do{for(var n=!1,r=Jc;null!==r;){if(0!==e){var o=r.pendingLanes;if(0===o)var i=0;else{var l=r.suspendedLanes,a=r.pingedLanes;i=(1<<31-_e(42|e)+1)-1,i=201326741&(i&=o&~(l&~a))?201326741&i|1:i?2|i:0}0!==i&&(n=!0,cd(r,i))}else i=Mu,!(3&(i=Re(r,r===Lu?i:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||Ae(r,i)||(n=!0,cd(r,i));r=r.next}}while(n);nd=!1}}function ld(){ad()}function ad(){td=ed=!1;var e=0;0!==rd&&Yd()&&(e=rd);for(var t=ae(),n=null,r=Jc;null!==r;){var o=r.next,i=sd(r,t);0===i?(r.next=null,null===n?Jc=o:n.next=o,null===o&&(Zc=n)):(n=r,(0!==e||3&i)&&(td=!0)),r=o}0!==oc&&5!==oc||id(e),0!==rd&&(rd=0)}function sd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=-62914561&e.pendingLanes;0<i;){var l=31-_e(i),a=1<<l,s=o[l];-1===s?0!==(a&n)&&0===(a&r)||(o[l]=Fe(a,t)):s<=t&&(e.expiredLanes|=a),i&=~a}if(n=Mu,n=Re(e,e===(t=Lu)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===Bu||9===Bu)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&oe(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||Ae(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&oe(r),$e(n)){case 2:case 8:n=ce;break;case 32:default:n=de;break;case 268435456:n=fe}return r=ud.bind(null,e),n=re(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&oe(r),e.callbackPriority=2,e.callbackNode=null,2}function ud(e,t){if(0!==oc&&5!==oc)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Uc()&&e.callbackNode!==n)return null;var r=Mu;return 0===(r=Re(e,e===Lu?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(mc(e,r,t),sd(e,ae()),null!=e.callbackNode&&e.callbackNode===n?ud.bind(null,e):null)}function cd(e,t){if(Uc())return null;mc(e,t,!0)}function dd(){Jd(function(){6&Fu?re(ue,ld):ad()})}function hd(){if(0===rd){var e=ni;0===e&&(e=ke,!(261888&(ke<<=1))&&(ke=256)),rd=e}return rd}function pd(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:Nt(""+e)}function fd(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function gd(e,t,n,r,o){if("submit"===t&&n&&n.stateNode===o){var i=pd((o[Xe]||null).action),l=r.submitter;l&&null!==(t=(t=l[Xe]||null)?pd(t.formAction):l.getAttribute("formAction"))&&(i=t,l=null);var a=new hn("action","action",null,r,o);e.push({event:a,listeners:[{instance:null,listener:/* @__PURE__ */pe(function(){if(r.defaultPrevented){if(0!==rd){var e=l?fd(o,l):new FormData(o);ya(n,{pending:!0,data:e,method:o.method,action:i},null,e)}}else"function"==typeof i&&(a.preventDefault(),e=l?fd(o,l):new FormData(o),ya(n,{pending:!0,data:e,method:o.method,action:i},i,e))},"listener"),currentTarget:o}]})}}x(od,"rd"),x(id,"ld"),x(ld,"od"),x(ad,"ad"),x(sd,"id"),x(ud,"ud"),x(cd,"sd"),x(dd,"cd"),x(hd,"dd"),x(pd,"fd"),x(fd,"pd"),x(gd,"md"),pe(od,"ensureRootIsScheduled"),pe(id,"flushSyncWorkAcrossRoots_impl"),pe(ld,"processRootScheduleInImmediateTask"),pe(ad,"processRootScheduleInMicrotask"),pe(sd,"scheduleTaskForRootDuringMicrotask"),pe(ud,"performWorkOnRootViaSchedulerTask"),pe(cd,"performSyncWorkOnRoot"),pe(dd,"scheduleImmediateRootScheduleTask"),pe(hd,"requestTransitionLane"),pe(pd,"coerceFormActionProp"),pe(fd,"createFormDataWithSubmitter"),pe(gd,"extractEvents$1");for(var md=0;md<Or.length;md++){var yd=Or[md];Mr(yd.toLowerCase(),"on"+(yd[0].toUpperCase()+yd.slice(1)))}Mr(Er,"onAnimationEnd"),Mr(zr,"onAnimationIteration"),Mr(Ir,"onAnimationStart"),Mr("dblclick","onDoubleClick"),Mr("focusin","onFocus"),Mr("focusout","onBlur"),Mr(Rr,"onTransitionRun"),Mr(Ar,"onTransitionStart"),Mr(Dr,"onTransitionCancel"),Mr(Fr,"onTransitionEnd"),dt("onMouseEnter",["mouseout","mouseover"]),dt("onMouseLeave",["mouseout","mouseover"]),dt("onPointerEnter",["pointerout","pointerover"]),dt("onPointerLeave",["pointerout","pointerover"]),ct("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ct("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ct("onBeforeInput",["compositionend","keypress","textInput","paste"]),ct("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ct("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ct("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bd="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),vd=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(bd));function wd(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var l=r.length-1;0<=l;l--){var a=r[l],s=a.instance,u=a.currentTarget;if(a=a.listener,s!==i&&o.isPropagationStopped())break e;i=a,o.currentTarget=u;try{i(o)}catch(c){Br(c)}o.currentTarget=null,i=s}else for(l=0;l<r.length;l++){if(s=(a=r[l]).instance,u=a.currentTarget,a=a.listener,s!==i&&o.isPropagationStopped())break e;i=a,o.currentTarget=u;try{i(o)}catch(c){Br(c)}o.currentTarget=null,i=s}}}}function _d(e,t){var n=t[Qe];void 0===n&&(n=t[Qe]=/* @__PURE__ */new Set);var r=e+"__bubble";n.has(r)||(kd(t,e,2,!1),n.add(r))}function xd(e,t,n){var r=0;t&&(r|=4),kd(n,e,r,t)}x(wd,"bd"),x(_d,"wd"),x(xd,"Sd"),pe(wd,"processDispatchQueue"),pe(_d,"listenToNonDelegatedEvent"),pe(xd,"listenToNativeEvent");var Cd="_reactListening"+Math.random().toString(36).slice(2);function Sd(e){if(!e[Cd]){e[Cd]=!0,st.forEach(function(t){"selectionchange"!==t&&(vd.has(t)||xd(t,!1,e),xd(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Cd]||(t[Cd]=!0,xd("selectionchange",!1,t))}}function kd(e,t,n,r){switch(mp(t)){case 2:var o=cp;break;case 8:o=dp;break;default:o=hp}n=o.bind(null,t,n,e),o=void 0,!Qt||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Td(e,t,n,r,o){var l=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&a.stateNode.containerInfo===o)return;a=a.return}for(;null!==s;){if(null===(a=rt(s)))return;if(5===(u=a.tag)||6===u||26===u||27===u){r=l=a;continue e}s=s.parentNode}}r=r.return}Yt(function(){var r=l,o=jt(n),a=[];e:{var s=Lr.get(e);if(void 0!==s){var u=hn,c=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":u=Pn;break;case"focusin":c="focus",u=bn;break;case"focusout":c="blur",u=bn;break;case"beforeblur":case"afterblur":u=bn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=yn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=zn;break;case Er:case zr:case Ir:u=vn;break;case Fr:u=In;break;case"scroll":case"scrollend":u=fn;break;case"wheel":u=Rn;break;case"copy":case"cut":case"paste":u=wn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=En;break;case"toggle":case"beforetoggle":u=An}var d=!!(4&t),h=!d&&("scroll"===e||"scrollend"===e),p=d?null!==s?s+"Capture":null:s;d=[];for(var f,g=r;null!==g;){var m=g;if(f=m.stateNode,5!==(m=m.tag)&&26!==m&&27!==m||null===f||null===p||null!=(m=Xt(g,p))&&d.push(Pd(g,m,f)),h)break;g=g.return}0<d.length&&(s=new u(s,c,null,n,o),a.push({event:s,listeners:d}))}}if(!(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===Ut||!(c=n.relatedTarget||n.fromElement)||!rt(c)&&!c[Ke])&&(u||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=r,null!==(c=(c=n.relatedTarget||n.toElement)?rt(c):null)&&(h=i(c),d=c.tag,c!==h||5!==d&&27!==d&&6!==d)&&(c=null)):(u=null,c=r),u!==c)){if(d=mn,m="onMouseLeave",p="onMouseEnter",g="mouse","pointerout"!==e&&"pointerover"!==e||(d=En,m="onPointerLeave",p="onPointerEnter",g="pointer"),h=null==u?s:it(u),f=null==c?s:it(c),(s=new d(m,g+"leave",u,n,o)).target=h,s.relatedTarget=f,m=null,rt(o)===r&&((d=new d(p,g+"enter",c,n,o)).target=f,d.relatedTarget=h,m=d),h=m,u&&c)e:{for(d=zd,g=c,f=0,m=p=u;m;m=d(m))f++;m=0;for(var y=g;y;y=d(y))m++;for(;0<f-m;)p=d(p),f--;for(;0<m-f;)g=d(g),m--;for(;f--;){if(p===g||null!==g&&p===g.alternate){d=p;break e}p=d(p),g=d(g)}d=null}else d=null;null!==u&&Id(a,s,u,d,!1),null!==c&&null!==h&&Id(a,h,c,d,!0)}if("select"===(u=(s=r?it(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var b=Jn;else if(Gn(s))if(Zn)b=sr;else{b=lr;var v=ir}else!(u=s.nodeName)||"input"!==u.toLowerCase()||"checkbox"!==s.type&&"radio"!==s.type?r&&Mt(r.elementType)&&(b=Jn):b=ar;switch(b&&(b=b(e,r))?qn(a,b,n,o):(v&&v(e,s,r),"focusout"===e&&r&&"number"===s.type&&null!=r.memoizedProps.value&&zt(s,"number",s.value)),v=r?it(r):window,e){case"focusin":(Gn(v)||"true"===v.contentEditable)&&(br=v,vr=r,wr=null);break;case"focusout":wr=vr=br=null;break;case"mousedown":_r=!0;break;case"contextmenu":case"mouseup":case"dragend":_r=!1,xr(a,n,o);break;case"selectionchange":if(yr)break;case"keydown":case"keyup":xr(a,n,o)}var w;if(Fn)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else Un?Nn(e,n)&&(_="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(_="onCompositionStart");_&&(Mn&&"ko"!==n.locale&&(Un||"onCompositionStart"!==_?"onCompositionEnd"===_&&Un&&(w=nn()):(en="value"in(Zt=o)?Zt.value:Zt.textContent,Un=!0)),0<(v=Ed(r,_)).length&&(_=new _n(_,e,null,n,o),a.push({event:_,listeners:v}),(w||null!==(w=Wn(n)))&&(_.data=w))),(w=On?jn(e,n):$n(e,n))&&0<(_=Ed(r,"onBeforeInput")).length&&(v=new _n("onBeforeInput","beforeinput",null,n,o),a.push({event:v,listeners:_}),v.data=w),gd(a,e,r,n,o)}wd(a,t)})}function Pd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ed(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;if(5!==(o=o.tag)&&26!==o&&27!==o||null===i||(null!=(o=Xt(e,n))&&r.unshift(Pd(e,o,i)),null!=(o=Xt(e,t))&&r.push(Pd(e,o,i))),3===e.tag)return r;e=e.return}return[]}function zd(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function Id(e,t,n,r,o){for(var i=t._reactName,l=[];null!==n&&n!==r;){var a=n,s=a.alternate,u=a.stateNode;if(a=a.tag,null!==s&&s===r)break;5!==a&&26!==a&&27!==a||null===u||(s=u,o?null!=(u=Xt(n,i))&&l.unshift(Pd(n,u,s)):o||null!=(u=Xt(n,i))&&l.push(Pd(n,u,s))),n=n.return}0!==l.length&&e.push({event:t,listeners:l})}x(Sd,"Cd"),x(kd,"xd"),x(Td,"Ed"),x(Pd,"Rd"),x(Ed,"Id"),x(zd,"Pd"),x(Id,"Td"),pe(Sd,"listenToAllSupportedEvents"),pe(kd,"addTrappedEventListener"),pe(Td,"dispatchEventForPluginEventSystem"),pe(Pd,"createDispatchListener"),pe(Ed,"accumulateTwoPhaseListeners"),pe(zd,"getParent"),pe(Id,"accumulateEnterLeaveListenersForEvent");var Rd=/\r\n?/g,Ad=/\u0000|\uFFFD/g;function Dd(e){return("string"==typeof e?e:""+e).replace(Rd,"\n").replace(Ad,"")}function Fd(e,t){return t=Dd(t),Dd(e)===t}function Ld(e,t,n,o,i,l){switch(n){case"children":"string"==typeof o?"body"===t||"textarea"===t&&""===o||Dt(e,o):("number"==typeof o||"bigint"==typeof o)&&"body"!==t&&Dt(e,""+o);break;case"className":yt(e,"class",o);break;case"tabIndex":yt(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":yt(e,n,o);break;case"style":Ot(e,o,l);break;case"data":if("object"!==t){yt(e,"data",o);break}case"src":case"href":if(""===o&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==o||"function"==typeof o||"symbol"==typeof o||"boolean"==typeof o){e.removeAttribute(n);break}o=Nt(""+o),e.setAttribute(n,o);break;case"action":case"formAction":if("function"==typeof o){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof l&&("formAction"===n?("input"!==t&&Ld(e,t,"name",i.name,i,null),Ld(e,t,"formEncType",i.formEncType,i,null),Ld(e,t,"formMethod",i.formMethod,i,null),Ld(e,t,"formTarget",i.formTarget,i,null)):(Ld(e,t,"encType",i.encType,i,null),Ld(e,t,"method",i.method,i,null),Ld(e,t,"target",i.target,i,null))),null==o||"symbol"==typeof o||"boolean"==typeof o){e.removeAttribute(n);break}o=Nt(""+o),e.setAttribute(n,o);break;case"onClick":null!=o&&(e.onclick=Wt);break;case"onScroll":null!=o&&_d("scroll",e);break;case"onScrollEnd":null!=o&&_d("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=o){if("object"!=typeof o||!("__html"in o))throw Error(r(61));if(null!=(n=o.__html)){if(null!=i.children)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=o&&"function"!=typeof o&&"symbol"!=typeof o;break;case"muted":e.muted=o&&"function"!=typeof o&&"symbol"!=typeof o;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==o||"function"==typeof o||"boolean"==typeof o||"symbol"==typeof o){e.removeAttribute("xlink:href");break}n=Nt(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,""+o):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===o?e.setAttribute(n,""):!1!==o&&null!=o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,o):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&!isNaN(o)&&1<=o?e.setAttribute(n,o):e.removeAttribute(n);break;case"rowSpan":case"start":null==o||"function"==typeof o||"symbol"==typeof o||isNaN(o)?e.removeAttribute(n):e.setAttribute(n,o);break;case"popover":_d("beforetoggle",e),_d("toggle",e),mt(e,"popover",o);break;case"xlinkActuate":bt(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":bt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":bt(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":bt(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":bt(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":bt(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":bt(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":bt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":bt(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":mt(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&mt(e,n=Bt.get(n)||n,o)}}function Od(e,t,n,o,i,l){switch(n){case"style":Ot(e,o,l);break;case"dangerouslySetInnerHTML":if(null!=o){if("object"!=typeof o||!("__html"in o))throw Error(r(61));if(null!=(n=o.__html)){if(null!=i.children)throw Error(r(60));e.innerHTML=n}}break;case"children":"string"==typeof o?Dt(e,o):("number"==typeof o||"bigint"==typeof o)&&Dt(e,""+o);break;case"onScroll":null!=o&&_d("scroll",e);break;case"onScrollEnd":null!=o&&_d("scrollend",e);break;case"onClick":null!=o&&(e.onclick=Wt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:ut.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),"function"==typeof(l=null!=(l=e[Xe]||null)?l[n]:null)&&e.removeEventListener(t,l,i),"function"!=typeof o)?n in e?e[n]=o:!0===o?e.setAttribute(n,""):mt(e,n,o):("function"!=typeof l&&null!==l&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,o,i)))}}function Md(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_d("error",e),_d("load",e);var o,i=!1,l=!1;for(o in n)if(n.hasOwnProperty(o)){var a=n[o];if(null!=a)switch(o){case"src":i=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ld(e,t,o,a,n,null)}}return l&&Ld(e,t,"srcSet",n.srcSet,n,null),void(i&&Ld(e,t,"src",n.src,n,null));case"input":_d("invalid",e);var s=o=a=l=null,u=null,c=null;for(i in n)if(n.hasOwnProperty(i)){var d=n[i];if(null!=d)switch(i){case"name":l=d;break;case"type":a=d;break;case"checked":u=d;break;case"defaultChecked":c=d;break;case"value":o=d;break;case"defaultValue":s=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(r(137,t));break;default:Ld(e,t,i,d,n,null)}}return void Et(e,o,s,u,c,a,l,!1);case"select":for(l in _d("invalid",e),i=a=o=null,n)if(n.hasOwnProperty(l)&&null!=(s=n[l]))switch(l){case"value":o=s;break;case"defaultValue":a=s;break;case"multiple":i=s;default:Ld(e,t,l,s,n,null)}return t=o,n=a,e.multiple=!!i,void(null!=t?It(e,!!i,t,!1):null!=n&&It(e,!!i,n,!0));case"textarea":for(a in _d("invalid",e),o=l=i=null,n)if(n.hasOwnProperty(a)&&null!=(s=n[a]))switch(a){case"value":i=s;break;case"defaultValue":l=s;break;case"children":o=s;break;case"dangerouslySetInnerHTML":if(null!=s)throw Error(r(91));break;default:Ld(e,t,a,s,n,null)}return void At(e,i,l,o);case"option":for(u in n)n.hasOwnProperty(u)&&null!=(i=n[u])&&("selected"===u?e.selected=i&&"function"!=typeof i&&"symbol"!=typeof i:Ld(e,t,u,i,n,null));return;case"dialog":_d("beforetoggle",e),_d("toggle",e),_d("cancel",e),_d("close",e);break;case"iframe":case"object":_d("load",e);break;case"video":case"audio":for(i=0;i<bd.length;i++)_d(bd[i],e);break;case"image":_d("error",e),_d("load",e);break;case"details":_d("toggle",e);break;case"embed":case"source":case"link":_d("error",e),_d("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&null!=(i=n[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ld(e,t,c,i,n,null)}return;default:if(Mt(t)){for(d in n)n.hasOwnProperty(d)&&void 0!==(i=n[d])&&Od(e,t,d,i,n,void 0);return}}for(s in n)n.hasOwnProperty(s)&&null!=(i=n[s])&&Ld(e,t,s,i,n,null)}function Bd(e,t,n,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,l=null,a=null,s=null,u=null,c=null,d=null;for(f in n){var h=n[f];if(n.hasOwnProperty(f)&&null!=h)switch(f){case"checked":case"value":break;case"defaultValue":u=h;default:o.hasOwnProperty(f)||Ld(e,t,f,null,o,h)}}for(var p in o){var f=o[p];if(h=n[p],o.hasOwnProperty(p)&&(null!=f||null!=h))switch(p){case"type":l=f;break;case"name":i=f;break;case"checked":c=f;break;case"defaultChecked":d=f;break;case"value":a=f;break;case"defaultValue":s=f;break;case"children":case"dangerouslySetInnerHTML":if(null!=f)throw Error(r(137,t));break;default:f!==h&&Ld(e,t,p,f,o,h)}}return void Pt(e,a,s,u,c,d,l,i);case"select":for(l in f=a=s=p=null,n)if(u=n[l],n.hasOwnProperty(l)&&null!=u)switch(l){case"value":break;case"multiple":f=u;default:o.hasOwnProperty(l)||Ld(e,t,l,null,o,u)}for(i in o)if(l=o[i],u=n[i],o.hasOwnProperty(i)&&(null!=l||null!=u))switch(i){case"value":p=l;break;case"defaultValue":s=l;break;case"multiple":a=l;default:l!==u&&Ld(e,t,i,l,o,u)}return t=s,n=a,o=f,void(null!=p?It(e,!!n,p,!1):!!o!=!!n&&(null!=t?It(e,!!n,t,!0):It(e,!!n,n?[]:"",!1)));case"textarea":for(s in f=p=null,n)if(i=n[s],n.hasOwnProperty(s)&&null!=i&&!o.hasOwnProperty(s))switch(s){case"value":case"children":break;default:Ld(e,t,s,null,o,i)}for(a in o)if(i=o[a],l=n[a],o.hasOwnProperty(a)&&(null!=i||null!=l))switch(a){case"value":p=i;break;case"defaultValue":f=i;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=i)throw Error(r(91));break;default:i!==l&&Ld(e,t,a,i,o,l)}return void Rt(e,p,f);case"option":for(var g in n)p=n[g],n.hasOwnProperty(g)&&null!=p&&!o.hasOwnProperty(g)&&("selected"===g?e.selected=!1:Ld(e,t,g,null,o,p));for(u in o)p=o[u],f=n[u],!o.hasOwnProperty(u)||p===f||null==p&&null==f||("selected"===u?e.selected=p&&"function"!=typeof p&&"symbol"!=typeof p:Ld(e,t,u,p,o,f));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var m in n)p=n[m],n.hasOwnProperty(m)&&null!=p&&!o.hasOwnProperty(m)&&Ld(e,t,m,null,o,p);for(c in o)if(p=o[c],f=n[c],o.hasOwnProperty(c)&&p!==f&&(null!=p||null!=f))switch(c){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(r(137,t));break;default:Ld(e,t,c,p,o,f)}return;default:if(Mt(t)){for(var y in n)p=n[y],n.hasOwnProperty(y)&&void 0!==p&&!o.hasOwnProperty(y)&&Od(e,t,y,void 0,o,p);for(d in o)p=o[d],f=n[d],!o.hasOwnProperty(d)||p===f||void 0===p&&void 0===f||Od(e,t,d,p,o,f);return}}for(var b in n)p=n[b],n.hasOwnProperty(b)&&null!=p&&!o.hasOwnProperty(b)&&Ld(e,t,b,null,o,p);for(h in o)p=o[h],f=n[h],!o.hasOwnProperty(h)||p===f||null==p&&null==f||Ld(e,t,h,p,o,f)}function Hd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Nd(){if("function"==typeof performance.getEntriesByType){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var o=n[r],i=o.transferSize,l=o.initiatorType,a=o.duration;if(i&&a&&Hd(l)){for(l=0,a=o.responseEnd,r+=1;r<n.length;r++){var s=n[r],u=s.startTime;if(u>a)break;var c=s.transferSize,d=s.initiatorType;c&&Hd(d)&&(l+=c*((s=s.responseEnd)<a?1:(a-u)/(s-u)))}if(--r,t+=8*(i+l)/(o.duration/1e3),10<++e)break}}if(0<e)return t/e/1e6}return navigator.connection&&"number"==typeof(e=navigator.connection.downlink)?e:5}x(Dd,"Nd"),x(Fd,"Fd"),x(Ld,"Dd"),x(Od,"Ld"),x(Md,"Od"),x(Bd,"Ad"),x(Hd,"Md"),x(Nd,"Hd"),pe(Dd,"normalizeMarkupForTextOrAttribute"),pe(Fd,"checkForUnmatchedText"),pe(Ld,"setProp"),pe(Od,"setPropOnCustomElement"),pe(Md,"setInitialProperties"),pe(Bd,"updateProperties"),pe(Hd,"isLikelyStaticResource"),pe(Nd,"estimateBandwidth");var Wd=null,Ud=null;function jd(e){return 9===e.nodeType?e:e.ownerDocument}function $d(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Vd(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function Gd(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}x(jd,"Wd"),x($d,"$d"),x(Vd,"Vd"),x(Gd,"Bd"),pe(jd,"getOwnerDocumentFromRootContainer"),pe($d,"getOwnHostContext"),pe(Vd,"getChildHostContextProd"),pe(Gd,"shouldSetTextContent");var qd=null;function Yd(){var e=window.event;return e&&"popstate"===e.type?e!==qd&&(qd=e,!0):(qd=null,!1)}x(Yd,"Kd"),pe(Yd,"shouldAttemptEagerTransition");var Xd="function"==typeof setTimeout?setTimeout:void 0,Kd="function"==typeof clearTimeout?clearTimeout:void 0,Qd="function"==typeof Promise?Promise:void 0,Jd="function"==typeof queueMicrotask?queueMicrotask:void 0!==Qd?function(e){return Qd.resolve(null).then(e).catch(Zd)}:Xd;function Zd(e){setTimeout(function(){throw e})}function eh(e){return"head"===e}function th(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)||"/&"===n){if(0===r)return e.removeChild(o),void Lp(t);r--}else if("$"===n||"$?"===n||"$~"===n||"$!"===n||"&"===n)r++;else if("html"===n)gh(e.ownerDocument.documentElement);else if("head"===n){gh(n=e.ownerDocument.head);for(var i=n.firstChild;i;){var l=i.nextSibling,a=i.nodeName;i[tt]||"SCRIPT"===a||"STYLE"===a||"LINK"===a&&"stylesheet"===i.rel.toLowerCase()||n.removeChild(i),i=l}}else"body"===n&&gh(e.ownerDocument.body);n=o}while(n);Lp(t)}function nh(e,t){var n=e;e=0;do{var r=n.nextSibling;if(1===n.nodeType?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",""===n.getAttribute("style")&&n.removeAttribute("style")):3===n.nodeType&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===e)break;e--}else"$"!==n&&"$?"!==n&&"$~"!==n&&"$!"!==n||e++;n=r}while(n)}function rh(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":rh(n),nt(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function oh(e,t,n,r){for(;1===e.nodeType;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[tt])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(i=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(i!==o.rel||e.getAttribute("href")!==(null==o.href||""===o.href?null:o.href)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin)||e.getAttribute("title")!==(null==o.title?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((i=e.getAttribute("src"))!==(null==o.src?null:o.src)||e.getAttribute("type")!==(null==o.type?null:o.type)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var i=null==o.name?null:""+o.name;if("hidden"===o.type&&e.getAttribute("name")===i)return e}if(null===(e=ch(e.nextSibling)))break}return null}function ih(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=ch(e.nextSibling)))return null}return e}function lh(e,t){for(;8!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t)return null;if(null===(e=ch(e.nextSibling)))return null}return e}function ah(e){return"$?"===e.data||"$~"===e.data}function sh(e){return"$!"===e.data||"$?"===e.data&&"loading"!==e.ownerDocument.readyState}function uh(e,t){var n=e.ownerDocument;if("$~"===e.data)e._reactRetry=t;else if("$?"!==e.data||"loading"!==n.readyState)t();else{var r=/* @__PURE__ */pe(function(){t(),n.removeEventListener("DOMContentLoaded",r)},"listener");n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function ch(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"$~"===t||"&"===t||"F!"===t||"F"===t)break;if("/$"===t||"/&"===t)return null}}return e}x(Zd,"Jd"),x(eh,"Zd"),x(th,"ef"),x(nh,"tf"),x(rh,"nf"),x(oh,"rf"),x(ih,"lf"),x(lh,"of"),x(ah,"af"),x(sh,"uf"),x(uh,"sf"),x(ch,"cf"),pe(Zd,"handleErrorInNextTick"),pe(eh,"isSingletonScope"),pe(th,"clearHydrationBoundary"),pe(nh,"hideOrUnhideDehydratedBoundary"),pe(rh,"clearContainerSparingly"),pe(oh,"canHydrateInstance"),pe(ih,"canHydrateTextInstance"),pe(lh,"canHydrateHydrationBoundary"),pe(ah,"isSuspenseInstancePending"),pe(sh,"isSuspenseInstanceFallback"),pe(uh,"registerSuspenseInstanceRetry"),pe(ch,"getNextHydratable");var dh=null;function hh(e){e=e.nextSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n||"/&"===n){if(0===t)return ch(e.nextSibling);t--}else"$"!==n&&"$!"!==n&&"$?"!==n&&"$~"!==n&&"&"!==n||t++}e=e.nextSibling}return null}function ph(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n||"$~"===n||"&"===n){if(0===t)return e;t--}else"/$"!==n&&"/&"!==n||t++}e=e.previousSibling}return null}function fh(e,t,n){switch(t=jd(n),e){case"html":if(!(e=t.documentElement))throw Error(r(452));return e;case"head":if(!(e=t.head))throw Error(r(453));return e;case"body":if(!(e=t.body))throw Error(r(454));return e;default:throw Error(r(451))}}function gh(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);nt(e)}x(hh,"ff"),x(ph,"pf"),x(fh,"mf"),x(gh,"hf"),pe(hh,"getNextHydratableInstanceAfterHydrationBoundary"),pe(ph,"getParentHydrationBoundary"),pe(fh,"resolveSingletonInstance"),pe(gh,"releaseSingletonInstance");var mh=/* @__PURE__ */new Map,yh=/* @__PURE__ */new Set;function bh(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}x(bh,"vf"),pe(bh,"getHoistableRoot");var vh=F.d;function wh(){var e=vh.f(),t=wc();return e||t}function _h(e){var t=ot(e);null!==t&&5===t.tag&&"form"===t.type?va(t):vh.r(e)}x(wh,"wf"),x(_h,"Sf"),F.d={f:wh,r:_h,D:Sh,C:kh,L:Th,m:Ph,X:zh,S:Eh,M:Ih},pe(wh,"flushSyncWork"),pe(_h,"requestFormReset");var xh="undefined"==typeof document?null:document;function Ch(e,t,n){var r=xh;if(r&&"string"==typeof t&&t){var o=Tt(t);o='link[rel="'+e+'"][href="'+o+'"]',"string"==typeof n&&(o+='[crossorigin="'+n+'"]'),yh.has(o)||(yh.add(o),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(o)&&(Md(t=r.createElement("link"),"link",e),at(t),r.head.appendChild(t)))}}function Sh(e){vh.D(e),Ch("dns-prefetch",e,null)}function kh(e,t){vh.C(e,t),Ch("preconnect",e,t)}function Th(e,t,n){vh.L(e,t,n);var r=xh;if(r&&e&&t){var o='link[rel="preload"][as="'+Tt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(o+='[imagesrcset="'+Tt(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(o+='[imagesizes="'+Tt(n.imageSizes)+'"]')):o+='[href="'+Tt(e)+'"]';var i=o;switch(t){case"style":i=Ah(e);break;case"script":i=Oh(e)}mh.has(i)||(e=d({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),mh.set(i,e),null!==r.querySelector(o)||"style"===t&&r.querySelector(Dh(i))||"script"===t&&r.querySelector(Mh(i))||(Md(t=r.createElement("link"),"link",e),at(t),r.head.appendChild(t)))}}function Ph(e,t){vh.m(e,t);var n=xh;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",o='link[rel="modulepreload"][as="'+Tt(r)+'"][href="'+Tt(e)+'"]',i=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Oh(e)}if(!mh.has(i)&&(e=d({rel:"modulepreload",href:e},t),mh.set(i,e),null===n.querySelector(o))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Mh(i)))return}Md(r=n.createElement("link"),"link",e),at(r),n.head.appendChild(r)}}}function Eh(e,t,n){vh.S(e,t,n);var r=xh;if(r&&e){var o=lt(r).hoistableStyles,i=Ah(e);t=t||"default";var l=o.get(i);if(!l){var a={loading:0,preload:null};if(l=r.querySelector(Dh(i)))a.loading=5;else{e=d({rel:"stylesheet",href:e,"data-precedence":t},n),(n=mh.get(i))&&Nh(e,n);var s=l=r.createElement("link");at(s),Md(s,"link",e),s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),s.addEventListener("load",function(){a.loading|=1}),s.addEventListener("error",function(){a.loading|=2}),a.loading|=4,Hh(l,t,r)}l={type:"stylesheet",instance:l,count:1,state:a},o.set(i,l)}}}function zh(e,t){vh.X(e,t);var n=xh;if(n&&e){var r=lt(n).hoistableScripts,o=Oh(e),i=r.get(o);i||((i=n.querySelector(Mh(o)))||(e=d({src:e,async:!0},t),(t=mh.get(o))&&Wh(e,t),at(i=n.createElement("script")),Md(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}}function Ih(e,t){vh.M(e,t);var n=xh;if(n&&e){var r=lt(n).hoistableScripts,o=Oh(e),i=r.get(o);i||((i=n.querySelector(Mh(o)))||(e=d({src:e,async:!0,type:"module"},t),(t=mh.get(o))&&Wh(e,t),at(i=n.createElement("script")),Md(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}}function Rh(e,t,n,o){var i=(i=V.current)?bh(i):null;if(!i)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=Ah(n.href),(o=(n=lt(i).hoistableStyles).get(t))||(o={type:"style",instance:null,count:0,state:null},n.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=Ah(n.href);var l=lt(i).hoistableStyles,a=l.get(e);if(a||(i=i.ownerDocument||i,a={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},l.set(e,a),(l=i.querySelector(Dh(e)))&&!l._p&&(a.instance=l,a.state.loading=5),mh.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},mh.set(e,n),l||Lh(i,e,n,a.state))),t&&null===o)throw Error(r(528,""));return a}if(t&&null!==o)throw Error(r(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=Oh(n),(o=(n=lt(i).hoistableScripts).get(t))||(o={type:"script",instance:null,count:0,state:null},n.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Ah(e){return'href="'+Tt(e)+'"'}function Dh(e){return'link[rel="stylesheet"]['+e+"]"}function Fh(e){return d({},e,{"data-precedence":e.precedence,precedence:null})}function Lh(e,t,n,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),Md(t,"link",n),at(t),e.head.appendChild(t))}function Oh(e){return'[src="'+Tt(e)+'"]'}function Mh(e){return"script[async]"+e}function Bh(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+Tt(n.href)+'"]');if(o)return t.instance=o,at(o),o;var i=d({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return at(o=(e.ownerDocument||e).createElement("style")),Md(o,"style",i),Hh(o,n.precedence,e),t.instance=o;case"stylesheet":i=Ah(n.href);var l=e.querySelector(Dh(i));if(l)return t.state.loading|=4,t.instance=l,at(l),l;o=Fh(n),(i=mh.get(i))&&Nh(o,i),at(l=(e.ownerDocument||e).createElement("link"));var a=l;return a._p=new Promise(function(e,t){a.onload=e,a.onerror=t}),Md(l,"link",o),t.state.loading|=4,Hh(l,n.precedence,e),t.instance=l;case"script":return l=Oh(n.src),(i=e.querySelector(Mh(l)))?(t.instance=i,at(i),i):(o=n,(i=mh.get(l))&&Wh(o=d({},n),i),at(i=(e=e.ownerDocument||e).createElement("script")),Md(i,"link",o),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(r(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(o=t.instance,t.state.loading|=4,Hh(o,n.precedence,e));return t.instance}function Hh(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,i=o,l=0;l<r.length;l++){var a=r[l];if(a.dataset.precedence===t)i=a;else if(i!==o)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Nh(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function Wh(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}x(Ch,"Cf"),x(Sh,"xf"),x(kh,"Ef"),x(Th,"Rf"),x(Ph,"If"),x(Eh,"Pf"),x(zh,"Tf"),x(Ih,"zf"),x(Rh,"_f"),x(Ah,"Nf"),x(Dh,"Ff"),x(Fh,"Df"),x(Lh,"Lf"),x(Oh,"Of"),x(Mh,"Af"),x(Bh,"Mf"),x(Hh,"Hf"),x(Nh,"Uf"),x(Wh,"jf"),pe(Ch,"preconnectAs"),pe(Sh,"prefetchDNS"),pe(kh,"preconnect"),pe(Th,"preload"),pe(Ph,"preloadModule"),pe(Eh,"preinitStyle"),pe(zh,"preinitScript"),pe(Ih,"preinitModuleScript"),pe(Rh,"getResource"),pe(Ah,"getStyleKey"),pe(Dh,"getStylesheetSelectorFromKey"),pe(Fh,"stylesheetPropsFromRawProps"),pe(Lh,"preloadStylesheet"),pe(Oh,"getScriptKey"),pe(Mh,"getScriptSelectorFromKey"),pe(Bh,"acquireResource"),pe(Hh,"insertStylesheet"),pe(Nh,"adoptPreloadPropsForStylesheet"),pe(Wh,"adoptPreloadPropsForScript");var Uh=null;function jh(e,t,n){if(null===Uh){var r=/* @__PURE__ */new Map,o=Uh=/* @__PURE__ */new Map;o.set(n,r)}else(r=(o=Uh).get(n))||(r=/* @__PURE__ */new Map,o.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var i=n[o];if(!(i[tt]||i[Ye]||"link"===e&&"stylesheet"===i.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==i.namespaceURI){var l=i.getAttribute(t)||"";l=e+l;var a=r.get(l);a?a.push(i):r.set(l,[i])}}return r}function $h(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function Vh(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"==typeof t.precedence&&null==e);case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}function Gh(e){return!!("stylesheet"!==e.type||3&e.state.loading)}function qh(e,t,n,r){if(!("stylesheet"!==n.type||"string"==typeof r.media&&!1===matchMedia(r.media).matches||4&n.state.loading)){if(null===n.instance){var o=Ah(r.href),i=t.querySelector(Dh(o));if(i)return null!==(t=i._p)&&"object"==typeof t&&"function"==typeof t.then&&(e.count++,e=Kh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,void at(i);i=t.ownerDocument||t,r=Fh(r),(o=mh.get(o))&&Nh(r,o),at(i=i.createElement("link"));var l=i;l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),Md(i,"link",r),n.instance=i}null===e.stylesheets&&(e.stylesheets=/* @__PURE__ */new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(3&n.state.loading)&&(e.count++,n=Kh.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}x(jh,"$f"),x($h,"Vf"),x(Vh,"Bf"),x(Gh,"qf"),x(qh,"Kf"),pe(jh,"getHydratableHoistableCache"),pe($h,"mountHoistable"),pe(Vh,"isHostHoistableType"),pe(Gh,"preloadResource"),pe(qh,"suspendResource");var Yh=0;function Xh(e,t){return e.stylesheets&&0===e.count&&Jh(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Jh(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&0===Yh&&(Yh=62500*Nd());var o=setTimeout(function(){if(e.waitingForImages=!1,0===e.count&&(e.stylesheets&&Jh(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Yh?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(o)}}:null}function Kh(){if(this.count--,0===this.count&&(0===this.imgCount||!this.waitingForImages))if(this.stylesheets)Jh(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}x(Xh,"Gf"),x(Kh,"Yf"),pe(Xh,"waitForCommitToBeReady"),pe(Kh,"onUnsuspend");var Qh=null;function Jh(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,Qh=/* @__PURE__ */new Map,t.forEach(Zh,e),Qh=null,Kh.call(e))}function Zh(e,t){if(!(4&t.state.loading)){var n=Qh.get(e);if(n)var r=n.get(null);else{n=/* @__PURE__ */new Map,Qh.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<o.length;i++){var l=o[i];"LINK"!==l.nodeName&&"not all"===l.getAttribute("media")||(n.set(l.dataset.precedence,l),r=l)}r&&n.set(null,r)}l=(o=t.instance).getAttribute("data-precedence"),(i=n.get(l)||r)===r&&n.set(null,o),n.set(l,o),this.count++,r=Kh.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),i?i.parentNode.insertBefore(o,i.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(o,e.firstChild),t.state.loading|=4}}x(Jh,"Jf"),x(Zh,"Zf"),pe(Jh,"insertSuspendedStylesheets"),pe(Zh,"insertStylesheetIntoRoot");var ep={$$typeof:v,Provider:null,Consumer:null,_currentValue:L,_currentValue2:L,_threadCount:0};function tp(e,t,n,r,o,i,l,a,s){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Oe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Oe(0),this.hiddenUpdates=Oe(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=i,this.onRecoverableError=l,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=/* @__PURE__ */new Map}function np(e,t,n,r,o,i,l,a,s,u,c,d){return e=new tp(e,t,n,l,s,u,c,d,a),t=1,!0===i&&(t|=24),i=Kr(3,null,null,t),e.current=i,i.stateNode=e,(t=Jo()).refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:r,isDehydrated:n,cache:t},Ri(i),e}function rp(e){return e?e=Yr:Yr}function op(e,t,n,r,o,i){o=rp(o),null===r.context?r.context=o:r.pendingContext=o,(r=Di(t)).payload={element:n},null!==(i=void 0===i?null:i)&&(r.callback=i),null!==(n=Fi(e,r,t))&&(gc(n,0,t),Li(n,e,t))}function ip(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function lp(e,t){ip(e,t),(e=e.alternate)&&ip(e,t)}function ap(e){if(13===e.tag||31===e.tag){var t=Vr(e,67108864);null!==t&&gc(t,0,67108864),lp(e,67108864)}}function sp(e){if(13===e.tag||31===e.tag){var t=pc(),n=Vr(e,t=je(t));null!==n&&gc(n,0,t),lp(e,t)}}x(tp,"tp"),x(np,"np"),x(rp,"rp"),x(op,"lp"),x(ip,"op"),x(lp,"ap"),x(ap,"ip"),x(sp,"up"),pe(tp,"FiberRootNode"),pe(np,"createFiberRoot"),pe(rp,"getContextForSubtree"),pe(op,"updateContainerImpl"),pe(ip,"markRetryLaneImpl"),pe(lp,"markRetryLaneIfNotHydrated"),pe(ap,"attemptContinuousHydration"),pe(sp,"attemptHydrationAtCurrentPriority");var up=!0;function cp(e,t,n,r){var o=D.T;D.T=null;var i=F.p;try{F.p=2,hp(e,t,n,r)}finally{F.p=i,D.T=o}}function dp(e,t,n,r){var o=D.T;D.T=null;var i=F.p;try{F.p=8,hp(e,t,n,r)}finally{F.p=i,D.T=o}}function hp(e,t,n,r){if(up){var o=pp(r);if(null===o)Td(e,t,r,fp,n),kp(e,r);else if(Pp(o,e,t,n,r))r.stopPropagation();else if(kp(e,r),4&t&&-1<Sp.indexOf(e)){for(;null!==o;){var i=ot(o);if(null!==i)switch(i.tag){case 3:if((i=i.stateNode).current.memoizedState.isDehydrated){var l=ze(i.pendingLanes);if(0!==l){var a=i;for(a.pendingLanes|=2,a.entangledLanes|=2;l;){var s=1<<31-_e(l);a.entanglements[1]|=s,l&=~s}od(i),!(6&Fu)&&(tc=ae()+500,id(0))}}break;case 31:case 13:null!==(a=Vr(i,2))&&gc(a,0,2),wc(),lp(i,2)}if(null===(i=pp(r))&&Td(e,t,r,fp,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Td(e,t,r,null,n)}}function pp(e){return gp(e=jt(e))}x(cp,"cp"),x(dp,"dp"),x(hp,"fp"),x(pp,"pp"),pe(cp,"dispatchDiscreteEvent"),pe(dp,"dispatchContinuousEvent"),pe(hp,"dispatchEvent"),pe(pp,"findInstanceBlockingEvent");var fp=null;function gp(e){if(fp=null,null!==(e=rt(e))){var t=i(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=l(t)))return e;e=null}else if(31===n){if(null!==(e=a(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return fp=e,null}function mp(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(se()){case ue:return 2;case ce:return 8;case de:case he:return 32;case fe:return 268435456;default:return 32}default:return 32}}x(gp,"hp"),x(mp,"gp"),pe(gp,"findInstanceBlockingTarget"),pe(mp,"getEventPriority");var yp=!1,bp=null,vp=null,wp=null,_p=/* @__PURE__ */new Map,xp=/* @__PURE__ */new Map,Cp=[],Sp="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function kp(e,t){switch(e){case"focusin":case"focusout":bp=null;break;case"dragenter":case"dragleave":vp=null;break;case"mouseover":case"mouseout":wp=null;break;case"pointerover":case"pointerout":_p.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xp.delete(t.pointerId)}}function Tp(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&null!==(t=ot(t))&&ap(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Pp(e,t,n,r,o){switch(t){case"focusin":return bp=Tp(bp,e,t,n,r,o),!0;case"dragenter":return vp=Tp(vp,e,t,n,r,o),!0;case"mouseover":return wp=Tp(wp,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return _p.set(i,Tp(_p.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,xp.set(i,Tp(xp.get(i)||null,e,t,n,r,o)),!0}return!1}function Ep(e){var t=rt(e.target);if(null!==t){var n=i(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=l(n)))return e.blockedOn=t,void Ge(e.priority,function(){sp(n)})}else if(31===t){if(null!==(t=a(n)))return e.blockedOn=t,void Ge(e.priority,function(){sp(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function zp(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=pp(e.nativeEvent);if(null!==n)return null!==(t=ot(n))&&ap(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Ut=r,n.target.dispatchEvent(r),Ut=null,t.shift()}return!0}function Ip(e,t,n){zp(e)&&n.delete(t)}function Rp(){yp=!1,null!==bp&&zp(bp)&&(bp=null),null!==vp&&zp(vp)&&(vp=null),null!==wp&&zp(wp)&&(wp=null),_p.forEach(Ip),xp.forEach(Ip)}function Ap(t,n){t.blockedOn===n&&(t.blockedOn=null,yp||(yp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Rp)))}x(kp,"Ep"),x(Tp,"Rp"),x(Pp,"Ip"),x(Ep,"Pp"),x(zp,"Tp"),x(Ip,"zp"),x(Rp,"_p"),x(Ap,"Np"),pe(kp,"clearIfContinuousEvent"),pe(Tp,"accumulateOrCreateContinuousQueuedReplayableEvent"),pe(Pp,"queueIfContinuousEvent"),pe(Ep,"attemptExplicitHydrationTarget"),pe(zp,"attemptReplayContinuousQueuedEvent"),pe(Ip,"attemptReplayContinuousQueuedEventInMap"),pe(Rp,"replayUnblockedEvents"),pe(Ap,"scheduleCallbackIfUnblocked");var Dp=null;function Fp(t){Dp!==t&&(Dp=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Dp===t&&(Dp=null);for(var e=0;e<t.length;e+=3){var n=t[e],r=t[e+1],o=t[e+2];if("function"!=typeof r){if(null===gp(r||n))continue;break}var i=ot(n);null!==i&&(t.splice(e,3),e-=3,ya(i,{pending:!0,data:o,method:n.method,action:r},r,o))}}))}function Lp(e){function t(t){return Ap(t,e)}x(t,"n"),pe(t,"unblock"),null!==bp&&Ap(bp,e),null!==vp&&Ap(vp,e),null!==wp&&Ap(wp,e),_p.forEach(t),xp.forEach(t);for(var n=0;n<Cp.length;n++){var r=Cp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Cp.length&&null===(n=Cp[0]).blockedOn;)Ep(n),null===n.blockedOn&&Cp.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var o=n[r],i=n[r+1],l=o[Xe]||null;if("function"==typeof i)l||Fp(n);else if(l){var a=null;if(i&&i.hasAttribute("formAction")){if(o=i,l=i[Xe]||null)a=l.formAction;else if(null!==gp(o))continue}else a=l.action;"function"==typeof a?n[r+1]=a:(n.splice(r,3),r-=3),Fp(n)}}}function Op(){function e(e){e.canIntercept&&"react-transition"===e.info&&e.intercept({handler:/* @__PURE__ */pe(function(){return new Promise(function(e){return o=e})},"handler"),focusReset:"manual",scroll:"manual"})}function t(){null!==o&&(o(),o=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&null!=e.url&&navigation.navigate(e.url,{state:e.getState(),info:"react-transition",history:"replace"})}}if(x(e,"e"),x(t,"n"),x(n,"r"),pe(e,"handleNavigate"),pe(t,"handleNavigateComplete"),pe(n,"startFakeNavigation"),"object"==typeof navigation){var r=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),null!==o&&(o(),o=null)}}}function Mp(e){this._internalRoot=e}function Bp(e){this._internalRoot=e}x(Fp,"Dp"),x(Lp,"Lp"),x(Op,"Op"),x(Mp,"Ap"),x(Bp,"Mp"),pe(Fp,"scheduleReplayQueueIfNeeded"),pe(Lp,"retryIfBlockedOn"),pe(Op,"defaultOnDefaultTransitionIndicator"),pe(Mp,"ReactDOMRoot"),Bp.prototype.render=Mp.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(r(409));op(t.current,pc(),e,t,null,null)},Bp.prototype.unmount=Mp.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;op(e.current,2,null,e,null,null),wc(),t[Ke]=null}},pe(Bp,"ReactDOMHydrationRoot"),Bp.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ve();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Cp.length&&0!==t&&t<Cp[n].priority;n++);Cp.splice(n,0,e),0===n&&Ep(e)}};var Hp=t.version;if("19.2.4"!==Hp)throw Error(r(527,Hp,"19.2.4"));F.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(r(188));throw e=Object.keys(e).join(","),Error(r(268,e))}return null===(e=null!==(e=u(t))?c(e):null)?null:e.stateNode};var Np={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.4"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Wp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wp.isDisabled&&Wp.supportsFiber)try{ye=Wp.inject(Np),be=Wp}catch(jp){}}return Te.createRoot=function(e,t){if(!o(e))throw Error(r(299));var n=!1,i="",l=Na,a=Wa,s=Ua;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(i=t.identifierPrefix),void 0!==t.onUncaughtError&&(l=t.onUncaughtError),void 0!==t.onCaughtError&&(a=t.onCaughtError),void 0!==t.onRecoverableError&&(s=t.onRecoverableError)),t=np(e,1,!1,null,0,n,i,null,l,a,s,Op),e[Ke]=t.current,Sd(e),new Mp(t)},Te.hydrateRoot=function(e,t,n){if(!o(e))throw Error(r(299));var i=!1,l="",a=Na,s=Wa,u=Ua,c=null;return null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(l=n.identifierPrefix),void 0!==n.onUncaughtError&&(a=n.onUncaughtError),void 0!==n.onCaughtError&&(s=n.onCaughtError),void 0!==n.onRecoverableError&&(u=n.onRecoverableError),void 0!==n.formState&&(c=n.formState)),(t=np(e,1,!0,t,0,i,l,c,a,s,u,Op)).context=rp(null),n=t.current,(l=Di(i=je(i=pc()))).callback=null,Fi(n,l,i),n=i,t.current.lanes=n,Me(t,n),od(t),e[Ke]=t.current,Sd(e),new Bp(t)},Te.version="19.2.4",Te}function Ne(){if(Fe)return ke.exports;function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return x(e,"e"),Fe=1,pe(e,"checkDCE"),e(),ke.exports=He(),ke.exports}x(Me,"N$1"),x(Be,"F$1"),x(He,"D$1"),x(Ne,"L$1"),pe(Me,"requireReactDom_production"),pe(Be,"requireReactDom"),pe(He,"requireReactDomClient_production"),pe(Ne,"requireClient");var We,Ue,je=Ne(),$e={exports:{}},Ve={};function Ge(){if(We)return Ve;We=1;var e=/* @__PURE__ */Symbol.for("react.transitional.element"),t=/* @__PURE__ */Symbol.for("react.fragment");function n(t,n,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==n.key&&(o=""+n.key),"key"in n)for(var i in r={},n)"key"!==i&&(r[i]=n[i]);else r=n;return n=r.ref,{$$typeof:e,type:t,key:o,ref:void 0!==n?n:null,props:r}}return x(n,"r"),pe(n,"jsxProd"),Ve.Fragment=t,Ve.jsx=n,Ve.jsxs=n,Ve}function qe(){return Ue||(Ue=1,$e.exports=Ge()),$e.exports}x(Ge,"j$1"),x(qe,"W"),pe(Ge,"requireReactJsxRuntime_production"),pe(qe,"requireJsxRuntime");var Ye=qe(),Xe=Be();function Ke(e,t,n){const r="function"==typeof e.colSpan?e.colSpan(n):1;if(Number.isInteger(r)&&r>1&&(!e.frozen||e.idx+r-1<=t))return r}function Qe(e){e.stopPropagation()}function Je(e,t="instant"){e?.scrollIntoView({inline:"nearest",block:"nearest",behavior:t})}function Ze(e){let t=!1;const n={...e,preventGridDefault(){t=!0},isGridDefaultPrevented:/* @__PURE__ */x(()=>t,"isGridDefaultPrevented")};return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),n}x(Ke,"B"),x(Qe,"q$1"),x(Je,"K$1"),x(Ze,"Q$1"),pe(Ke,"getColSpan"),pe(Qe,"stopPropagation"),pe(Je,"scrollIntoView"),pe(Ze,"createCellEvent");const et=/* @__PURE__ */new Set(["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","Meta","NumLock","ScrollLock","Shift","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Insert","ContextMenu","Escape","Pause","Play","PrintScreen","F1","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]);function tt(e){return(e.ctrlKey||e.metaKey)&&"Control"!==e.key}function nt(e,t){return(!tt(e)||86===e.keyCode&&!t)&&!et.has(e.key)}function rt({key:e,target:t}){return"Tab"===e&&(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement)&&1===t.closest(".rdg-editor-container")?.querySelectorAll("input, textarea, select").length}function ot(e){const t="rtl"===e;return{leftKey:t?"ArrowRight":"ArrowLeft",rightKey:t?"ArrowLeft":"ArrowRight"}}function it(e){return e.map(({key:e,idx:t,minWidth:n,maxWidth:r})=>/* @__PURE__ */Ye.jsx("div",{className:"rdg-7-0-0-beta-58-fa71d63e",style:{gridColumnStart:t+1,minWidth:n,maxWidth:r},"data-measuring-cell-key":e},e))}function lt({selectedPosition:e,columns:t,rows:n}){return at(t[e.idx],n[e.rowIdx])}function at(e,t){return null!=e.renderEditCell&&!1!==("function"==typeof e.editable?e.editable(t):e.editable)}function st({rows:e,topSummaryRows:t,bottomSummaryRows:n,rowIdx:r,mainHeaderRowIdx:o,lastFrozenColumnIndex:i,column:l}){const a=t?.length??0;return r===o?Ke(l,i,{type:"HEADER"}):t&&r>o&&r<=a+o?Ke(l,i,{type:"SUMMARY",row:t[r+a]}):r>=0&&r<e.length?Ke(l,i,{type:"ROW",row:e[r]}):n?Ke(l,i,{type:"SUMMARY",row:n[r-e.length]}):void 0}function ut({moveUp:e,moveNext:t,cellNavigationMode:n,columns:r,colSpanColumns:o,rows:i,topSummaryRows:l,bottomSummaryRows:a,minRowIdx:s,mainHeaderRowIdx:u,maxRowIdx:c,currentPosition:{idx:d,rowIdx:h},nextPosition:p,lastFrozenColumnIndex:f,isCellWithinBounds:g}){let{idx:m,rowIdx:y}=p;const b=r.length,v=/* @__PURE__ */pe(e=>{for(const t of o){const n=t.idx;if(n>m)break;const r=st({rows:i,topSummaryRows:l,bottomSummaryRows:a,rowIdx:y,mainHeaderRowIdx:u,lastFrozenColumnIndex:f,column:t});if(r&&m>n&&m<r+n){m=n+(e?r:0);break}}},"setColSpan"),w=/* @__PURE__ */pe(e=>e.level+u,"getParentRowIdx"),_=/* @__PURE__ */pe(()=>{if(t){let e=r[m].parent;for(;void 0!==e;){const t=w(e);if(y===t){m=e.idx+e.colSpan;break}e=e.parent}}else if(e){let e=r[m].parent,t=!1;for(;void 0!==e;){const n=w(e);if(y>=n){m=e.idx,y=n,t=!0;break}e=e.parent}t||(m=d,y=h)}},"setHeaderGroupColAndRowSpan");if(g(p)&&(v(t),y<u&&_()),"CHANGE_ROW"===n){const e=-1===m;m===b?y!==c&&(m=0,y+=1):e&&(y!==s&&(y-=1,m=b-1),v(!1))}if(y<u&&m>-1&&m<b){let e=r[m].parent;const t=y;for(y=u;void 0!==e;){const n=w(e);n>=t&&(y=n,m=e.idx),e=e.parent}}return{idx:m,rowIdx:y}}function ct({maxColIdx:e,minRowIdx:t,maxRowIdx:n,selectedPosition:{rowIdx:r,idx:o},shiftKey:i}){return i?0===o&&r===t:o===e&&r===n}x(tt,"Y$1"),pe(tt,"isCtrlKeyHeldDown"),x(nt,"X$1"),x(rt,"J$1"),x(ot,"Z$1"),pe(nt,"isDefaultCellInput"),pe(rt,"onEditorNavigation"),pe(ot,"getLeftRightKey"),x(it,"ee$1"),x(lt,"te$1"),x(at,"ne$1"),x(st,"re$1"),x(ut,"le$1"),x(ct,"oe$1"),pe(it,"renderMeasuringCells"),pe(lt,"isSelectedCellEditable"),pe(at,"isCellEditableUtil"),pe(st,"getSelectedCellColSpan"),pe(ut,"getNextSelectedCellPosition"),pe(ct,"canExitGrid");const dt="rdg-cell rdg-7-0-0-beta-58-85c48527",ht="rdg-cell-frozen rdg-7-0-0-beta-58-17a9a6d4";function pt(e){return{"--rdg-grid-row-start":e}}function ft(e,t,n){const r=t+1,o=`calc(${n-1} * var(--rdg-header-row-height))`;return void 0===e.parent?{insetBlockStart:0,gridRowStart:1,gridRowEnd:r,paddingBlockStart:o}:{insetBlockStart:`calc(${t-n} * var(--rdg-header-row-height))`,gridRowStart:r-n,gridRowEnd:r,paddingBlockStart:o}}function gt(e,t=1){const n=e.idx+1;return{gridColumnStart:n,gridColumnEnd:n+t,insetInlineStart:e.frozen?`var(--rdg-frozen-left-${e.idx})`:void 0}}function mt(...e){let t="";for(const n of e)if(n)if("string"==typeof n)t+=` ${n}`;else if("object"==typeof n)for(const e in n)n[e]&&(t+=` ${e}`);return t.trimStart()}function yt(e,...t){return mt(dt,{[ht]:e.frozen},...t)}x(pt,"ue"),x(ft,"se$1"),x(gt,"ce"),x(mt,"de$1"),x(yt,"fe"),pe(pt,"getRowStyle"),pe(ft,"getHeaderCellStyle"),pe(gt,"getCellStyle"),pe(mt,"classnames"),pe(yt,"getCellClassname");const{min:bt,max:vt,floor:wt,sign:_t,abs:xt}=Math;function Ct(e){if("function"!=typeof e)throw new Error("Please specify the rowKeyGetter prop to use selection")}function St(e,{minWidth:t,maxWidth:n}){return e=vt(e,t),"number"==typeof n&&n>=t?bt(e,n):e}function kt(e,t){return void 0===e.parent?t:e.level-e.parent.level}function Tt({onChange:e,indeterminate:t,...n}){function r(t){e(t.target.checked,t.nativeEvent.shiftKey)}return x(r,"l"),pe(r,"handleChange"),/* @__PURE__ */Ye.jsx("input",{ref:/* @__PURE__ */pe(e=>{e&&(e.indeterminate=!0===t)},"ref"),type:"checkbox",className:"rdg-checkbox-input rdg-7-0-0-beta-58-3b807ead",onChange:r,...n})}function Pt(e){try{return e.row[e.column.key]}catch{return null}}x(Ct,"ve"),x(St,"be"),x(kt,"we"),pe(Ct,"assertIsValidKeyGetter"),pe(St,"clampColumnWidth"),pe(kt,"getHeaderCellRowSpan"),x(Tt,"Se"),x(Pt,"ke"),pe(Tt,"renderCheckbox"),pe(Pt,"renderValue");const Et=_e.createContext(void 0);function zt(){return _e.useContext(Et)}function It({value:e,tabIndex:t,indeterminate:n,disabled:r,onChange:o,"aria-label":i,"aria-labelledby":l}){return(0,zt().renderCheckbox)({"aria-label":i,"aria-labelledby":l,tabIndex:t,indeterminate:n,disabled:r,checked:e,onChange:o})}x(zt,"xe"),x(It,"Ee"),pe(zt,"useDefaultRenderers"),pe(It,"SelectCellFormatter");const Rt=_e.createContext(void 0),At=_e.createContext(void 0);function Dt(){const e=_e.useContext(Rt),t=_e.useContext(At);if(void 0===e||void 0===t)throw new Error("useRowSelection must be used within renderCell");return{isRowSelectionDisabled:e.isRowSelectionDisabled,isRowSelected:e.isRowSelected,onRowSelectionChange:t}}x(Dt,"Pe"),pe(Dt,"useRowSelection");const Ft=_e.createContext(void 0),Lt=_e.createContext(void 0);function Ot(){const e=_e.useContext(Ft),t=_e.useContext(Lt);if(void 0===e||void 0===t)throw new Error("useHeaderRowSelection must be used within renderHeaderCell");return{isIndeterminate:e.isIndeterminate,isRowSelected:e.isRowSelected,onRowSelectionChange:t}}x(Ot,"_e"),pe(Ot,"useHeaderRowSelection");const Mt="rdg-select-column";function Bt(e){const{isIndeterminate:t,isRowSelected:n,onRowSelectionChange:r}=Ot();return Ye.jsx(It,{"aria-label":"Select All",tabIndex:e.tabIndex,indeterminate:t,value:n,onChange:/* @__PURE__ */pe(e=>{r({checked:!t&&e})},"onChange")})}function Ht(e){const{isRowSelectionDisabled:t,isRowSelected:n,onRowSelectionChange:r}=Dt();return Ye.jsx(It,{"aria-label":"Select",tabIndex:e.tabIndex,disabled:t,value:n,onChange:/* @__PURE__ */pe((t,n)=>{r({row:e.row,checked:t,isShiftClick:n})},"onChange")})}function Nt(e){const{isRowSelected:t,onRowSelectionChange:n}=Dt();return Ye.jsx(It,{"aria-label":"Select Group",tabIndex:e.tabIndex,value:t,onChange:/* @__PURE__ */pe(t=>{n({row:e.row,checked:t,isShiftClick:!1})},"onChange")})}x(Bt,"Fe"),x(Ht,"De"),x(Nt,"Le"),pe(Bt,"HeaderRenderer"),pe(Ht,"SelectFormatter"),pe(Nt,"SelectGroupFormatter");const Wt={key:Mt,name:"",width:35,minWidth:35,maxWidth:35,resizable:!1,sortable:!1,frozen:!0,renderHeaderCell:/* @__PURE__ */x(e=>/* @__PURE__ */Ye.jsx(Bt,{...e}),"renderHeaderCell"),renderCell:/* @__PURE__ */x(e=>/* @__PURE__ */Ye.jsx(Ht,{...e}),"renderCell"),renderGroupCell:/* @__PURE__ */x(e=>/* @__PURE__ */Ye.jsx(Nt,{...e}),"renderGroupCell")};function Ut({column:e,sortDirection:t,priority:n}){return e.sortable?/* @__PURE__ */Ye.jsx(jt,{sortDirection:t,priority:n,children:e.name}):e.name}function jt({sortDirection:e,priority:t,children:n}){const r=zt().renderSortStatus;return Ye.jsxs("span",{className:"rdg-7-0-0-beta-58-56a248e4",children:[/* @__PURE__ */Ye.jsx("span",{className:"rdg-header-sort-name rdg-7-0-0-beta-58-7fad8c83",children:n}),/* @__PURE__ */Ye.jsx("span",{children:r({sortDirection:e,priority:t})})]})}function $t({rawColumns:e,defaultColumnOptions:t,getColumnWidth:n,viewportWidth:r,scrollLeft:o,enableVirtualization:i}){const l=t?.width??"auto",a=t?.minWidth??50,s=t?.maxWidth??void 0,u=t?.renderCell??Pt,c=t?.renderHeaderCell??Ut,d=t?.sortable??!1,h=t?.resizable??!1,p=t?.draggable??!1,{columns:f,colSpanColumns:g,lastFrozenColumnIndex:m,headerRowsCount:y}=_e.useMemo(()=>{let t=-1,n=1;const r=[];function o(e,i,f){for(const g of e){if("children"in g){const e={name:g.name,parent:f,idx:-1,colSpan:0,level:0,headerCellClass:g.headerCellClass};o(g.children,i+1,e);continue}const e=g.frozen??!1,m={...g,parent:f,idx:0,level:0,frozen:e,width:g.width??l,minWidth:g.minWidth??a,maxWidth:g.maxWidth??s,sortable:g.sortable??d,resizable:g.resizable??h,draggable:g.draggable??p,renderCell:g.renderCell??u,renderHeaderCell:g.renderHeaderCell??c};r.push(m),e&&t++,i>n&&(n=i)}}x(o,"o"),o(e,1),pe(o,"collectColumns"),r.sort(({key:e,frozen:t},{key:n,frozen:r})=>e===Mt?-1:n===Mt?1:t?r?0:-1:r?1:0);const i=[];return r.forEach((e,t)=>{e.idx=t,Vt(e,t,0),null!=e.colSpan&&i.push(e)}),{columns:r,colSpanColumns:i,lastFrozenColumnIndex:t,headerRowsCount:n}},[e,l,a,s,u,c,h,d,p]),{templateColumns:b,layoutCssVars:v,totalFrozenColumnWidth:w,columnMetrics:_}=_e.useMemo(()=>{const e=/* @__PURE__ */new Map;let t=0,r=0;const o=[];for(const l of f){let r=n(l);r="number"==typeof r?St(r,l):l.minWidth,o.push(`${r}px`),e.set(l,{width:r,left:t}),t+=r}if(-1!==m){const t=e.get(f[m]);r=t.left+t.width}const i={};for(let n=0;n<=m;n++){const t=f[n];i[`--rdg-frozen-left-${t.idx}`]=`${e.get(t).left}px`}return{templateColumns:o,layoutCssVars:i,totalFrozenColumnWidth:r,columnMetrics:e}},[n,f,m]),[C,S]=_e.useMemo(()=>{if(!i)return[0,f.length-1];const e=o+w,t=o+r,n=f.length-1,l=bt(m+1,n);if(e>=t)return[l,l];let a=l;for(;a<n;){const{left:t,width:n}=_.get(f[a]);if(t+n>e)break;a++}let s=a;for(;s<n;){const{left:e,width:n}=_.get(f[s]);if(e+n>=t)break;s++}return[vt(l,a-1),bt(n,s+1)]},[_,f,m,o,w,r,i]);return{columns:f,colSpanColumns:g,colOverscanStartIdx:C,colOverscanEndIdx:S,templateColumns:b,layoutCssVars:v,headerRowsCount:y,lastFrozenColumnIndex:m,totalFrozenColumnWidth:w}}function Vt(e,t,n){if(n<e.level&&(e.level=n),void 0!==e.parent){const{parent:r}=e;-1===r.idx&&(r.idx=t),r.colSpan+=1,Vt(r,t,n-1)}}function Gt(e,t,n,r,o,i,l,a,s){const[u,c]=_e.useState(null),[d,h]=_e.useState(null),[p,f]=_e.useState(o),g=e.length===t.length,m=g&&o!==p,y=[...n],b=[];for(const{key:x,idx:C,width:S}of t){const e=i.get(x);x===u?.key?(y[C]="max-content"===u.width?u.width:`${u.width}px`,b.push(x)):"string"!=typeof S||"resized"===e?.type||!m&&!0!==d?.has(x)&&void 0!==e||(y[C]=S,b.push(x))}const v=y.join(" ");function w(){if(f(o),0===b.length)return;const e=new Map(i);let t=!1;for(const n of b){const o=qt(r,n);t||=o!==i.get(n)?.width,void 0===o?e.delete(n):e.set(n,{type:"measured",width:o})}if(null!==u){const n=u.key,o=i.get(n)?.width,l=qt(r,n);void 0!==l&&o!==l&&(t=!0,e.set(n,{type:"resized",width:l})),c(null)}t&&l(e)}function _(e,n){const{key:o}=e;if(Xe.flushSync(()=>{if(g){const e=/* @__PURE__ */new Set;for(const{key:n,width:r}of t)o!==n&&"string"==typeof r&&"resized"!==i.get(n)?.type&&e.add(n);h(e)}c({key:o,width:n}),s("number"==typeof n)}),h(null),a){const t=i.get(o)?.width,l="number"==typeof n?n:qt(r,o);void 0!==l&&l!==t&&a(e,l)}}return x(w,"k"),x(_,"C"),_e.useLayoutEffect(w),pe(w,"updateMeasuredAndResizedWidths"),pe(_,"handleColumnResize"),{gridTemplateColumns:v,handleColumnResize:_}}function qt(e,t){const n=`[data-measuring-cell-key="${CSS.escape(t)}"]`;return e.current?.querySelector(n)?.getBoundingClientRect().width}function Yt(){const e=_e.useRef(null),[t,n]=_e.useState(1),[r,o]=_e.useState(1),[i,l]=_e.useState(0);return _e.useLayoutEffect(()=>{const{ResizeObserver:t}=window;if(null==t)return;const{clientWidth:r,clientHeight:i,offsetWidth:a,offsetHeight:s}=e.current,{width:u,height:c}=e.current.getBoundingClientRect(),d=s-i,h=c-d;n(u-a+r),o(h),l(d);const p=new t(t=>{const r=t[0].contentBoxSize[0],{clientHeight:i,offsetHeight:a}=e.current;Xe.flushSync(()=>{n(r.inlineSize),o(r.blockSize),l(a-i)})});return p.observe(e.current),()=>{p.disconnect()}},[]),[e,t,r,i]}function Xt(e){const t=_e.useRef(e);_e.useLayoutEffect(()=>{t.current=e});const n=_e.useCallback((...e)=>{t.current(...e)},[]);return e?n:e}function Kt(e){const[t,n]=_e.useState(!1);function r(e){if(e.target===e.currentTarget){const t=e.currentTarget.querySelector('[tabindex="0"]');null!==t?(t.focus({preventScroll:!0}),n(!0)):n(!1)}else n(!0)}return x(r,"l"),t&&!e&&n(!1),pe(r,"onFocus"),{tabIndex:e&&!t?0:-1,childTabIndex:e?0:-1,onFocus:e?r:void 0}}function Qt({columns:e,colSpanColumns:t,rows:n,topSummaryRows:r,bottomSummaryRows:o,colOverscanStartIdx:i,colOverscanEndIdx:l,lastFrozenColumnIndex:a,rowOverscanStartIdx:s,rowOverscanEndIdx:u}){const c=_e.useMemo(()=>{if(0===i)return 0;let e=i;const l=/* @__PURE__ */pe((t,n)=>void 0!==n&&t+n>i&&(e=t,!0),"updateStartIdx");for(const i of t){const t=i.idx;if(t>=e)break;if(l(t,Ke(i,a,{type:"HEADER"})))break;for(let e=s;e<=u;e++){const r=n[e];if(l(t,Ke(i,a,{type:"ROW",row:r})))break}if(null!=r)for(const e of r)if(l(t,Ke(i,a,{type:"SUMMARY",row:e})))break;if(null!=o)for(const e of o)if(l(t,Ke(i,a,{type:"SUMMARY",row:e})))break}return e},[s,u,n,r,o,i,a,t]);return _e.useMemo(()=>{const t=[];for(let n=0;n<=l;n++){const r=e[n];n<c&&!r.frozen||t.push(r)}return t},[c,l,e])}function Jt({rows:e,rowHeight:t,clientHeight:n,scrollTop:r,enableVirtualization:o}){const{totalRowHeight:i,gridTemplateRows:l,getRowTop:a,getRowHeight:s,findRowIdx:u}=_e.useMemo(()=>{if("number"==typeof t)return{totalRowHeight:t*e.length,gridTemplateRows:` repeat(${e.length}, ${t}px)`,getRowTop:/* @__PURE__ */pe(e=>e*t,"getRowTop"),getRowHeight:/* @__PURE__ */pe(()=>t,"getRowHeight"),findRowIdx:/* @__PURE__ */pe(e=>wt(e/t),"findRowIdx")};let n=0,r="",o=null,i=0;const l=e.map((l,a)=>{const s=t(l),u={top:n,height:s};return n+=s,null===o?(o=s,i=1):o===s?i++:(r+=i>1?`repeat(${i}, ${o}px) `:`${o}px `,o=s,i=1),a===e.length-1&&(r+=i>1?`repeat(${i}, ${o}px)`:`${o}px`),u}),a=/* @__PURE__ */pe(t=>vt(0,bt(e.length-1,t)),"validateRowIdx");return{totalRowHeight:n,gridTemplateRows:r,getRowTop:/* @__PURE__ */pe(e=>l[a(e)].top,"getRowTop"),getRowHeight:/* @__PURE__ */pe(e=>l[a(e)].height,"getRowHeight"),findRowIdx(e){let t=0,n=l.length-1;for(;t<=n;){const r=t+wt((n-t)/2),o=l[r].top;if(o===e)return r;if(o<e?t=r+1:o>e&&(n=r-1),t>n)return n}return 0}}},[t,e]);let c=0,d=e.length-1;if(o){const t=4,o=u(r),i=u(r+n);c=vt(0,o-t),d=bt(e.length-1,i+t)}return{rowOverscanStartIdx:c,rowOverscanEndIdx:d,totalRowHeight:i,gridTemplateRows:l,getRowTop:a,getRowHeight:s,findRowIdx:u}}x(Ut,"Ae"),x(jt,"Me"),pe(Ut,"renderHeaderCell"),pe(jt,"SortableHeaderCell"),x($t,"He"),x(Vt,"Ue"),x(Gt,"je"),x(qt,"We"),x(Yt,"$e"),x(Xt,"Ve"),x(Kt,"Be"),x(Qt,"qe"),x(Jt,"Ke"),pe($t,"useCalculatedColumns"),pe(Vt,"updateColumnParent"),pe(Gt,"useColumnWidths"),pe(qt,"measureColumnWidth"),pe(Yt,"useGridDimensions"),pe(Xt,"useLatestFunc"),pe(Kt,"useRovingTabIndex"),pe(Qt,"useViewportColumns"),pe(Jt,"useViewportRows");const Zt="rdg-cell-dragged-over rdg-7-0-0-beta-58-35ccb4c8";function en({column:e,colSpan:t,isCellSelected:n,isDraggedOver:r,row:o,rowIdx:i,className:l,onMouseDown:a,onCellMouseDown:s,onClick:u,onCellClick:c,onDoubleClick:d,onCellDoubleClick:h,onContextMenu:p,onCellContextMenu:f,onRowChange:g,selectCell:m,style:y,...b}){const{tabIndex:v,childTabIndex:w,onFocus:_}=Kt(n),{cellClass:C}=e;l=yt(e,{[Zt]:r},"function"==typeof C?C(o):C,l);const S=at(e,o);function k(t){m({rowIdx:i,idx:e.idx},{enableEditor:t})}function T(t,n){let r=!1;if(n){const l=Ze(t);n({rowIdx:i,row:o,column:e,selectCell:k},l),r=l.isGridDefaultPrevented()}return r}function P(e){a?.(e),T(e,s)||k()}function E(e){u?.(e),T(e,c)}function z(e){d?.(e),T(e,h)||k(!0)}function I(e){p?.(e),T(e,f)}function R(t){g(e,t)}return x(k,"E"),x(T,"R"),x(P,"I"),x(E,"P"),x(z,"T"),x(I,"z"),x(R,"_"),pe(k,"selectCellWrapper"),pe(T,"handleMouseEvent"),pe(P,"handleMouseDown"),pe(E,"handleClick"),pe(z,"handleDoubleClick"),pe(I,"handleContextMenu"),pe(R,"handleRowChange"),/* @__PURE__ */Ye.jsx("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":n,"aria-readonly":!S||void 0,tabIndex:v,className:l,style:{...gt(e,t),...y},onClick:E,onMouseDown:P,onDoubleClick:z,onContextMenu:I,onFocus:_,...b,children:e.renderCell({column:e,row:o,rowIdx:i,isCellEditable:S,tabIndex:w,onRowChange:R})})}x(en,"Ge"),pe(en,"Cell");const tn=_e.memo(en);function nn(e,t){return Ye.jsx(tn,{...t},e)}x(nn,"Xe"),pe(nn,"defaultRenderCell");const rn="object"==typeof scheduler&&"function"==typeof scheduler.postTask;function on({column:e,colSpan:t,row:n,rowIdx:r,onRowChange:o,closeEditor:i,onKeyDown:l,navigate:a}){const s=_e.useRef(void 0),u=_e.useRef(void 0),c=_e.useRef(void 0),d=e.editorOptions?.commitOnOutsideClick??!0,h=_e.useEffectEvent(()=>{g(!0,!1)});function p(){s.current=void 0,void 0!==u.current&&(u.current.abort(),u.current=void 0),void 0!==c.current&&(cancelAnimationFrame(c.current),c.current=void 0)}function f(t){if(l){const o=Ze(t);if(l({mode:"EDIT",row:n,column:e,rowIdx:r,navigate(){a(t)},onClose:g},o),o.isGridDefaultPrevented())return}"Escape"===t.key?g():"Enter"===t.key?g(!0):rt(t)&&a(t)}function g(e=!1,t=!0){e?o(n,!0,t):i(t)}function m(e,t=!1){o(e,t,t)}x(p,"m"),x(f,"h"),x(g,"y"),x(m,"v"),_e.useLayoutEffect(()=>{if(d)return pe(e,"onWindowCaptureMouseDown"),pe(t,"onWindowMouseDown"),addEventListener("mousedown",e,{capture:!0}),addEventListener("mousedown",t),()=>{removeEventListener("mousedown",e,{capture:!0}),removeEventListener("mousedown",t),p()};function e(e){if(s.current=e,rn){const e=new AbortController,{signal:t}=e;u.current=e,scheduler.postTask(h,{priority:"user-blocking",signal:t}).catch(()=>{})}else c.current=requestAnimationFrame(h)}function t(e){s.current===e&&h()}x(e,"e"),x(t,"n")},[d]),pe(p,"cancelTask"),pe(f,"handleKeyDown"),pe(g,"onClose"),pe(m,"onEditorRowChange");const{cellClass:y}=e,b=yt(e,"rdg-editor-container",!e.editorOptions?.displayCellContent&&"rdg-7-0-0-beta-58-46f9ea88","function"==typeof y?y(n):y);return Ye.jsx("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":!0,className:b,style:gt(e,t),onKeyDown:f,onMouseDownCapture:p,children:null!=e.renderEditCell&&/* @__PURE__ */Ye.jsxs(Ye.Fragment,{children:[e.renderEditCell({column:e,row:n,rowIdx:r,onRowChange:m,onClose:g}),e.editorOptions?.displayCellContent&&e.renderCell({column:e,row:n,rowIdx:r,isCellEditable:!0,tabIndex:-1,onRowChange:m})]})})}function ln({column:e,rowIdx:t,isCellSelected:n,selectCell:r}){const{tabIndex:o,onFocus:i}=Kt(n),{colSpan:l}=e,a=kt(e,t),s=e.idx+1;function u(){r({idx:e.idx,rowIdx:t})}return x(u,"c"),pe(u,"onMouseDown"),/* @__PURE__ */Ye.jsx("div",{role:"columnheader","aria-colindex":s,"aria-colspan":l,"aria-rowspan":a,"aria-selected":n,tabIndex:o,className:mt(dt,e.headerCellClass),style:{...ft(e,t,a),gridColumnStart:s,gridColumnEnd:s+l},onFocus:i,onMouseDown:u,children:e.name})}x(on,"Ze"),x(ln,"et$1"),pe(on,"EditCell"),pe(ln,"GroupedColumnHeaderCell");const an="rdg-7-0-0-beta-58-2a7e240d",sn="rdg-cell-resizable rdg-7-0-0-beta-58-1893dc0f",un="rdg-cell-draggable",cn="rdg-cell-dragging rdg-7-0-0-beta-58-3e1a4ad4",dn="rdg-cell-drag-over rdg-7-0-0-beta-58-51abd8b8";function hn({column:e,colSpan:t,rowIdx:n,isCellSelected:r,onColumnResize:o,onColumnResizeEnd:i,onColumnsReorder:l,sortColumns:a,onSortColumnsChange:s,selectCell:u,shouldFocusGrid:c,direction:d,draggedColumnKey:h,setDraggedColumnKey:p}){const[f,g]=_e.useState(!1),m=_e.useRef(null),y=h===e.key,b=kt(e,n),{tabIndex:v,childTabIndex:w,onFocus:_}=Kt(c||r),C=a?.findIndex(t=>t.columnKey===e.key),S=void 0!==C&&C>-1?a[C]:void 0,k=S?.direction,T=void 0!==S&&a.length>1?C+1:void 0,P=k&&!T?"ASC"===k?"ascending":"descending":void 0,{sortable:E,resizable:z,draggable:I}=e,R=yt(e,e.headerCellClass,{[an]:E,[sn]:z,[un]:I,[cn]:y,[dn]:f});function A(t){if(null==s)return;const{sortDescendingFirst:n}=e;if(void 0===S){const r={columnKey:e.key,direction:n?"DESC":"ASC"};s(a&&t?[...a,r]:[r])}else{let r;if((!0===n&&"DESC"===k||!0!==n&&"ASC"===k)&&(r={columnKey:e.key,direction:"ASC"===k?"DESC":"ASC"}),t){const e=[...a];r?e[C]=r:e.splice(C,1),s(e)}else s(r?[r]:[])}}function D(e){_?.(e),c&&u({idx:0,rowIdx:n})}function F(){u({idx:e.idx,rowIdx:n})}function L(e){E&&A(e.ctrlKey||e.metaKey)}function O(t){const{key:n}=t;if(!E||" "!==n&&"Enter"!==n){if(z&&tt(t)&&("ArrowLeft"===n||"ArrowRight"===n)){t.stopPropagation();const{width:r}=t.currentTarget.getBoundingClientRect(),{leftKey:i}=ot(d),l=St(r+(n===i?-10:10),e);l!==r&&o(e,l)}}else t.preventDefault(),A(t.ctrlKey||t.metaKey)}function M(t){Xe.flushSync(()=>{p(e.key)}),t.dataTransfer.setDragImage(m.current,0,0),t.dataTransfer.dropEffect="move"}function B(){p(void 0)}function H(e){e.preventDefault(),e.dataTransfer.dropEffect="move"}function N(t){g(!1),t.preventDefault(),l?.(h,e.key)}function W(e){fn(e)&&g(!0)}function U(e){fn(e)&&g(!1)}let j,$;x(A,"F"),x(D,"D"),x(F,"L"),x(L,"O"),x(O,"A"),x(M,"M"),x(B,"H"),x(H,"U"),x(N,"j"),x(W,"W"),x(U,"B"),pe(A,"onSort"),pe(D,"handleFocus"),pe(F,"onMouseDown"),pe(L,"onClick"),pe(O,"onKeyDown"),pe(M,"onDragStart"),pe(B,"onDragEnd"),pe(H,"onDragOver"),pe(N,"onDrop"),pe(W,"onDragEnter"),pe(U,"onDragLeave"),I&&(j={draggable:!0,onDragStart:M,onDragEnd:B},void 0!==h&&h!==e.key&&($={onDragOver:H,onDragEnter:W,onDragLeave:U,onDrop:N}));const V={...ft(e,n,b),...gt(e,t)},G=e.renderHeaderCell({column:e,sortDirection:k,priority:T,tabIndex:w});return Ye.jsxs(Ye.Fragment,{children:[y&&/* @__PURE__ */Ye.jsx("div",{ref:m,style:V,className:yt(e,e.headerCellClass,"rdg-7-0-0-beta-58-c8d7aa64"),children:G}),/* @__PURE__ */Ye.jsxs("div",{role:"columnheader","aria-colindex":e.idx+1,"aria-colspan":t,"aria-rowspan":b,"aria-selected":r,"aria-sort":P,tabIndex:v,className:R,style:V,onMouseDown:F,onFocus:D,onClick:L,onKeyDown:O,...j,...$,children:[G,z&&/* @__PURE__ */Ye.jsx(pn,{direction:d,column:e,onColumnResize:o,onColumnResizeEnd:i})]})]})}function pn({direction:e,column:t,onColumnResize:n,onColumnResizeEnd:r}){const o=_e.useRef(void 0),i="rtl"===e;function l(e){if("mouse"===e.pointerType&&1!==e.buttons)return;e.preventDefault();const{currentTarget:t,pointerId:n}=e;t.setPointerCapture(n);const{right:r,left:l}=t.parentElement.getBoundingClientRect();o.current=i?e.clientX-l:r-e.clientX}function a(e){const r=o.current;if(void 0===r)return;const{width:l,right:a,left:s}=e.currentTarget.parentElement.getBoundingClientRect();let u=i?a+r-e.clientX:e.clientX+r-s;u=St(u,t),l>0&&u!==l&&n(t,u)}function s(){r(),o.current=void 0}function u(){n(t,"max-content")}return x(l,"i"),x(a,"u"),x(s,"s"),x(u,"c"),pe(l,"onPointerDown"),pe(a,"onPointerMove"),pe(s,"onLostPointerCapture"),pe(u,"onDoubleClick"),/* @__PURE__ */Ye.jsx("div",{"aria-hidden":!0,className:"rdg-resize-handle rdg-7-0-0-beta-58-4e60db91",onClick:Qe,onPointerDown:l,onPointerMove:a,onLostPointerCapture:s,onDoubleClick:u})}function fn(e){const t=e.relatedTarget;return!e.currentTarget.contains(t)}x(hn,"at$1"),x(pn,"it$1"),x(fn,"ut$1"),pe(hn,"HeaderCell"),pe(pn,"ResizeHandle"),pe(fn,"isEventPertinent");const gn="rdg-row rdg-7-0-0-beta-58-3c083f1b",mn="rdg-7-0-0-beta-58-3fe773c3",yn="rdg-row-selected",bn="rdg-7-0-0-beta-58-97ce3fde",vn="rdg-bottom-summary-row",wn="rdg-header-row rdg-7-0-0-beta-58-0dbd5994";function _n({headerRowClass:e,rowIdx:t,columns:n,onColumnResize:r,onColumnResizeEnd:o,onColumnsReorder:i,sortColumns:l,onSortColumnsChange:a,lastFrozenColumnIndex:s,selectedCellIdx:u,selectCell:c,shouldFocusGrid:d,direction:h}){const[p,f]=_e.useState(),g=[];for(let m=0;m<n.length;m++){const e=n[m],y=Ke(e,s,{type:"HEADER"});void 0!==y&&(m+=y-1),g.push(/* @__PURE__ */Ye.jsx(hn,{column:e,colSpan:y,rowIdx:t,isCellSelected:u===e.idx,onColumnResize:r,onColumnResizeEnd:o,onColumnsReorder:i,onSortColumnsChange:a,sortColumns:l,selectCell:c,shouldFocusGrid:d&&0===m,direction:h,draggedColumnKey:p,setDraggedColumnKey:f},e.key))}return Ye.jsx("div",{role:"row","aria-rowindex":t,className:mt(wn,{[yn]:-1===u},e),children:g})}x(_n,"ht$1"),pe(_n,"HeaderRow");var xn=_e.memo(_n);function Cn({rowIdx:e,level:t,columns:n,selectedCellIdx:r,selectCell:o}){const i=[],l=/* @__PURE__ */new Set;for(const a of n){let{parent:n}=a;if(void 0!==n){for(;n.level>t&&void 0!==n.parent;)n=n.parent;if(n.level===t&&!l.has(n)){l.add(n);const{idx:t}=n;i.push(/* @__PURE__ */Ye.jsx(ln,{column:n,rowIdx:e,isCellSelected:r===t,selectCell:o},t))}}}return Ye.jsx("div",{role:"row","aria-rowindex":e,className:wn,children:i})}x(Cn,"yt$1"),pe(Cn,"GroupedColumnHeaderRow");var Sn=_e.memo(Cn);function kn({className:e,rowIdx:t,gridRowStart:n,selectedCellIdx:r,isRowSelectionDisabled:o,isRowSelected:i,draggedOverCellIdx:l,lastFrozenColumnIndex:a,row:s,viewportColumns:u,selectedCellEditor:c,onCellMouseDown:d,onCellClick:h,onCellDoubleClick:p,onCellContextMenu:f,rowClass:g,onRowChange:m,selectCell:y,style:b,...v}){const w=zt().renderCell,_=Xt((e,n)=>{m(e,t,n)});e=mt(gn,"rdg-row-"+(t%2==0?"even":"odd"),{[yn]:-1===r},g?.(s,t),e);const x=[];for(let C=0;C<u.length;C++){const e=u[C],{idx:n}=e,o=Ke(e,a,{type:"ROW",row:s});void 0!==o&&(C+=o-1);const i=r===n;i&&c?x.push(c):x.push(w(e.key,{column:e,colSpan:o,row:s,rowIdx:t,isDraggedOver:l===n,isCellSelected:i,onCellMouseDown:d,onCellClick:h,onCellDoubleClick:p,onCellContextMenu:f,onRowChange:_,selectCell:y}))}return Ye.jsx(Rt,{value:_e.useMemo(()=>({isRowSelected:i,isRowSelectionDisabled:o}),[o,i]),children:/* @__PURE__ */Ye.jsx("div",{role:"row",className:e,style:{...pt(n),...b},...v,children:x})})}x(kn,"bt$1"),pe(kn,"Row");const Tn=_e.memo(kn);function Pn(e,t){return Ye.jsx(Tn,{...t},e)}function En({scrollToPosition:{idx:e,rowIdx:t},gridRef:n,setScrollToCellPosition:r}){const o=_e.useRef(null);return _e.useLayoutEffect(()=>{Je(o.current,"auto")}),_e.useLayoutEffect(()=>{function e(){r(null)}x(e,"e"),pe(e,"removeScrollToCell");const t=new IntersectionObserver(e,{root:n.current,threshold:1});return t.observe(o.current),()=>{t.disconnect()}},[n,r]),/* @__PURE__ */Ye.jsx("div",{ref:o,style:{gridColumn:void 0===e?"1/-1":e+1,gridRow:void 0===t?"1/-1":t+2}})}function zn({sortDirection:e,priority:t}){return Ye.jsxs(Ye.Fragment,{children:[In({sortDirection:e}),Rn({priority:t})]})}function In({sortDirection:e}){return void 0===e?null:/* @__PURE__ */Ye.jsx("svg",{viewBox:"0 0 12 8",width:"12",height:"8",className:"rdg-sort-arrow rdg-7-0-0-beta-58-3d5115f3","aria-hidden":!0,children:/* @__PURE__ */Ye.jsx("path",{d:"ASC"===e?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})})}function Rn({priority:e}){return e}x(Pn,"St$1"),x(En,"kt$1"),pe(Pn,"defaultRenderRow"),pe(En,"ScrollToCell"),x(zn,"Ct$1"),x(In,"xt$1"),x(Rn,"Et$1"),pe(zn,"renderSortStatus"),pe(In,"renderSortIcon"),pe(Rn,"renderSortPriority");const An="rdg-viewport-dragging rdg-7-0-0-beta-58-e9b0e1c9",Dn="rdg-7-0-0-beta-58-e9f55541";function Fn({column:e,colSpan:t,row:n,rowIdx:r,isCellSelected:o,selectCell:i}){const{tabIndex:l,childTabIndex:a,onFocus:s}=Kt(o),{summaryCellClass:u}=e,c=yt(e,"rdg-7-0-0-beta-58-d907aa87","function"==typeof u?u(n):u);function d(){i({rowIdx:r,idx:e.idx})}return x(d,"f"),pe(d,"onMouseDown"),/* @__PURE__ */Ye.jsx("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":o,tabIndex:l,className:c,style:gt(e,t),onMouseDown:d,onFocus:s,children:e.renderSummaryCell?.({column:e,row:n,tabIndex:a})})}x(Fn,"Pt$1"),pe(Fn,"SummaryCell");var Ln=_e.memo(Fn);function On({rowIdx:e,gridRowStart:t,row:n,viewportColumns:r,top:o,bottom:i,lastFrozenColumnIndex:l,selectedCellIdx:a,isTop:s,selectCell:u,"aria-rowindex":c}){const d=[];for(let h=0;h<r.length;h++){const t=r[h],o=Ke(t,l,{type:"SUMMARY",row:n});void 0!==o&&(h+=o-1);const i=a===t.idx;d.push(/* @__PURE__ */Ye.jsx(Ln,{column:t,colSpan:o,row:n,rowIdx:e,isCellSelected:i,selectCell:u},t.key))}return Ye.jsx("div",{role:"row","aria-rowindex":c,className:mt(gn,"rdg-row-"+(e%2==0?"even":"odd"),"rdg-summary-row rdg-7-0-0-beta-58-0b90c82c",{[yn]:-1===a,"rdg-top-summary-row rdg-7-0-0-beta-58-d0520eab":s,[vn]:!s}),style:{...pt(t),"--rdg-summary-row-top":void 0!==o?`${o}px`:void 0,"--rdg-summary-row-bottom":void 0!==i?`${i}px`:void 0},children:d})}x(On,"zt$1"),pe(On,"SummaryRow");var Mn=_e.memo(On);function Bn(e){const{ref:t,columns:n,rows:r,topSummaryRows:o,bottomSummaryRows:i,rowKeyGetter:l,onRowsChange:a,rowHeight:s,headerRowHeight:u,summaryRowHeight:c,columnWidths:d,onColumnWidthsChange:h,selectedRows:p,isRowSelectionDisabled:f,onSelectedRowsChange:g,sortColumns:m,onSortColumnsChange:y,defaultColumnOptions:b,onCellMouseDown:v,onCellClick:w,onCellDoubleClick:_,onCellContextMenu:C,onCellKeyDown:S,onSelectedCellChange:k,onScroll:T,onColumnResize:P,onColumnsReorder:E,onFill:z,onCellCopy:I,onCellPaste:R,enableVirtualization:A,renderers:D,className:F,style:L,rowClass:O,headerRowClass:M,direction:B,role:H,"aria-label":N,"aria-labelledby":W,"aria-description":U,"aria-describedby":j,"aria-rowcount":$,"data-testid":V,"data-cy":G}=e,q=zt(),Y=H??"grid",X=s??35,K=u??("number"==typeof X?X:35),Q=c??("number"==typeof X?X:35),J=D?.renderRow??q?.renderRow??Pn,Z=D?.renderCell??q?.renderCell??nn,ee=D?.renderSortStatus??q?.renderSortStatus??zn,te=D?.renderCheckbox??q?.renderCheckbox??Tt,ne=D?.noRowsFallback??q?.noRowsFallback,re=A??!0,oe=B??"ltr",[ie,le]=_e.useState(0),[ae,se]=_e.useState(0),[ue,ce]=_e.useState(()=>d??/* @__PURE__ */new Map),[de,he]=_e.useState(!1),[fe,ge]=_e.useState(!1),[me,ye]=_e.useState(void 0),[be,ve]=_e.useState(null),[we,xe]=_e.useState(!1),[Ce,Se]=_e.useState(-1),ke=null!=d&&null!=h&&!de,Te=ke?d:ue,Pe=ke?e=>{ce(e),h(e)}:ce,Ee=_e.useCallback(e=>Te.get(e.key)?.width??e.width,[Te]),[ze,Ie,Re,Ae]=Yt(),{columns:De,colSpanColumns:Fe,lastFrozenColumnIndex:Le,headerRowsCount:Oe,colOverscanStartIdx:Me,colOverscanEndIdx:Be,templateColumns:He,layoutCssVars:Ne,totalFrozenColumnWidth:We}=$t({rawColumns:n,defaultColumnOptions:b,getColumnWidth:Ee,scrollLeft:ae,viewportWidth:Ie,enableVirtualization:re}),Ue=o?.length??0,je=i?.length??0,$e=Ue+je,Ve=Oe+Ue,Ge=Oe-1,qe=-Ve,Qe=qe+Ge,et=r.length+je-1,[rt,at]=_e.useState(()=>({idx:-1,rowIdx:qe-1,mode:"SELECT"})),st=_e.useRef(null),dt="treegrid"===Y,ht=Oe*K,pt=$e*Q,ft=Re-ht-pt,yt=null!=p&&null!=g,{leftKey:bt,rightKey:vt}=ot(oe),wt=$??Oe+r.length+$e,St=_e.useMemo(()=>({renderCheckbox:te,renderSortStatus:ee,renderCell:Z}),[te,ee,Z]),kt=_e.useMemo(()=>{let e=!1,t=!1;if(null!=l&&null!=p&&p.size>0)for(const n of r)if(p.has(l(n))?e=!0:t=!0,e&&t)break;return{isRowSelected:e&&!t,isIndeterminate:e&&t}},[r,p,l]),{rowOverscanStartIdx:Pt,rowOverscanEndIdx:It,totalRowHeight:Rt,gridTemplateRows:Dt,getRowTop:Ot,getRowHeight:Mt,findRowIdx:Bt}=Jt({rows:r,rowHeight:X,clientHeight:ft,scrollTop:ie,enableVirtualization:re}),Ht=Qt({columns:De,colSpanColumns:Fe,colOverscanStartIdx:Me,colOverscanEndIdx:Be,lastFrozenColumnIndex:Le,rowOverscanStartIdx:Pt,rowOverscanEndIdx:It,rows:r,topSummaryRows:o,bottomSummaryRows:i}),{gridTemplateColumns:Nt,handleColumnResize:Wt}=Gt(De,Ht,He,ze,Ie,Te,Pe,P,he),Ut=dt?-1:0,jt=De.length-1,Vt=Gn(rt),qt=Yn(rt),Kt=K+Rt+pt+Ae,Zt=Xt(Wt),en=Xt(Fn),tn=Xt(E),rn=Xt(y),ln=Xt(v),an=Xt(w),sn=Xt(_),un=Xt(C),cn=Xt(yn),dn=Xt(vn),hn=Xt(Cn),pn=Xt(Kn),fn=Xt(Qn),gn=_e.useCallback((e=!0)=>{const t=Hn(ze.current);null!==t&&(e&&Je(t),t.focus({preventScroll:!0}))},[ze]);function yn(e){if(!g)return;Ct(l);const t=new Set(p);for(const n of r){if(!0===f?.(n))continue;const r=l(n);e.checked?t.add(r):t.delete(r)}g(t)}function vn(e){if(!g)return;Ct(l);const{row:t,checked:n,isShiftClick:o}=e;if(!0===f?.(t))return;const i=new Set(p),a=l(t),s=r.indexOf(t);if(Se(s),n?i.add(a):i.delete(a),o&&-1!==Ce&&Ce!==s&&Ce<r.length){const e=_t(s-Ce);for(let t=Ce+e;t!==s;t+=e){const e=r[t];!0!==f?.(e)&&(n?i.add(l(e)):i.delete(l(e)))}}g(i)}function wn(e){const{idx:t,rowIdx:n,mode:o}=rt;if("EDIT"===o)return;if(S&&Vn(n)){const o=r[n],i=Ze(e);if(S({mode:"SELECT",row:o,column:De[t],rowIdx:n,selectCell:Kn},i),i.isGridDefaultPrevented())return}if(!(e.target instanceof Element))return;const i=null!==e.target.closest(".rdg-cell"),l=dt&&e.target===st.current;if(i||l)switch(e.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Tab":case"Home":case"End":case"PageUp":case"PageDown":Zn(e);break;default:Rn(e)}}function _n(e){const{scrollTop:t,scrollLeft:n}=e.currentTarget;Xe.flushSync(()=>{le(t),se(xt(n))}),T?.(e)}function Cn(e,t,n){"function"==typeof a&&n!==r[t]&&a(r.with(t,n),{indexes:[t],column:e})}function kn(){"EDIT"===rt.mode&&Cn(De[rt.idx],rt.rowIdx,rt.row)}function Tn(e){if(!qt)return;const{idx:t,rowIdx:n}=rt;I?.({row:r[n],column:De[t]},e)}function In(e){if(!R||!a||!Xn(rt))return;const{idx:t,rowIdx:n}=rt,o=De[t];Cn(o,n,R({row:r[n],column:o},e))}function Rn(e){if(!qt)return;const t=r[rt.rowIdx],{key:n,shiftKey:o}=e;if(yt&&o&&" "===n){Ct(l);const n=l(t);return vn({row:t,checked:!p.has(n),isShiftClick:!1}),void e.preventDefault()}Xn(rt)&&nt(e,null!=R)&&at(({idx:e,rowIdx:n})=>({idx:e,rowIdx:n,mode:"EDIT",row:t,originalRow:t}))}function Fn(){de&&(h?.(Te),he(!1))}function Ln(e){e.preventDefault(),"mouse"===e.pointerType&&1!==e.buttons||(ge(!0),e.currentTarget.setPointerCapture(e.pointerId))}function On(e){const t=ze.current,n=Bt(ie-(ht+Ue*Q)+e.clientY-t.getBoundingClientRect().top);ye(n);const r=Ve+n+1;Je(t.querySelector(`:scope > [aria-rowindex="${r}"] > [aria-colindex="${rt.idx+1}"]`))}function Bn(){if(ge(!1),void 0===me)return;const{rowIdx:e}=rt,[t,n]=e<me?[e+1,me+1]:[me,e];jn(t,n),ye(void 0)}function Wn(){gn(!1)}function Un(e){e.stopPropagation(),jn(rt.rowIdx+1,r.length)}function jn(e,t){if(null==a)return;const{rowIdx:n,idx:o}=rt,i=De[o],l=r[n],s=[...r],u=[];for(let a=e;a<t;a++)if(Xn({rowIdx:a,idx:o})){const e=z({columnKey:i.key,sourceRow:l,targetRow:r[a]});e!==r[a]&&(s[a]=e,u.push(a))}u.length>0&&a(s,{indexes:u,column:i})}function $n(e){return e>=Ut&&e<=jt}function Vn(e){return e>=0&&e<r.length}function Gn({idx:e,rowIdx:t}){return t>=qe&&t<=et&&$n(e)}function qn({idx:e,rowIdx:t}){return Vn(t)&&e>=0&&e<=jt}function Yn({idx:e,rowIdx:t}){return Vn(t)&&$n(e)}function Xn(e){return qn(e)&&lt({columns:De,rows:r,selectedPosition:e})}function Kn(e,t){if(!Gn(e))return;kn();const n=Nn(rt,e);if(t?.enableEditor&&Xn(e)){const t=r[e.rowIdx];at({...e,mode:"EDIT",row:t,originalRow:t})}else n?Je(Hn(ze.current)):(xe(!0===t?.shouldFocusCell),at({...e,mode:"SELECT"}));k&&!n&&k({rowIdx:e.rowIdx,row:Vn(e.rowIdx)?r[e.rowIdx]:void 0,column:De[e.idx]})}function Qn({idx:e,rowIdx:t}){Kn({rowIdx:qe+t-1,idx:e})}function Jn(e,t,n){const{idx:o,rowIdx:i}=rt,l=Vt&&-1===o;switch(e){case"ArrowUp":return{idx:o,rowIdx:i-1};case"ArrowDown":return{idx:o,rowIdx:i+1};case bt:return{idx:o-1,rowIdx:i};case vt:return{idx:o+1,rowIdx:i};case"Tab":return{idx:o+(n?-1:1),rowIdx:i};case"Home":return l?{idx:o,rowIdx:qe}:{idx:0,rowIdx:t?qe:i};case"End":return l?{idx:o,rowIdx:et}:{idx:jt,rowIdx:t?et:i};case"PageUp":{if(rt.rowIdx===qe)return rt;const e=Ot(i)+Mt(i)-ft;return{idx:o,rowIdx:e>0?Bt(e):0}}case"PageDown":{if(rt.rowIdx>=r.length)return rt;const e=Ot(i)+ft;return{idx:o,rowIdx:e<Rt?Bt(e):r.length-1}}default:return rt}}function Zn(e){const{key:t,shiftKey:n}=e;let l="NONE";if("Tab"===t){if(ct({shiftKey:n,maxColIdx:jt,minRowIdx:qe,maxRowIdx:et,selectedPosition:rt}))return void kn();l="CHANGE_ROW"}e.preventDefault();const a=Jn(t,tt(e),n);Nn(rt,a)||Kn(ut({moveUp:"ArrowUp"===t,moveNext:t===vt||"Tab"===t&&!n,columns:De,colSpanColumns:Fe,rows:r,topSummaryRows:o,bottomSummaryRows:i,minRowIdx:qe,mainHeaderRowIdx:Qe,maxRowIdx:et,lastFrozenColumnIndex:Le,cellNavigationMode:l,currentPosition:rt,nextPosition:a,isCellWithinBounds:Gn}),{shouldFocusCell:!0})}function er(e){if(void 0===me)return;const{rowIdx:t}=rt;return(t<me?t<e&&e<=me:t>e&&e>=me)?rt.idx:void 0}function tr(){if(null==z||"EDIT"===rt.mode||!Yn(rt))return;const{idx:e,rowIdx:t}=rt,n=De[e];if(null==n.renderEditCell||!1===n.editable)return;const o=t===et,i=Ee(n),l=n.colSpan?.({type:"ROW",row:r[t]})??1,{insetInlineStart:a,...s}=gt(n,l),u="calc(var(--rdg-drag-handle-size) * -0.5 + 1px)",c=n.idx+l-1===jt;return Ye.jsx("div",{style:{...s,gridRowStart:Ve+t+1,marginInlineEnd:c?void 0:u,marginBlockEnd:o?void 0:u,insetInlineStart:a?`calc(${a} + ${i}px + var(--rdg-drag-handle-size) * -0.5 - 1px)`:void 0},className:mt("rdg-cell-drag-handle rdg-7-0-0-beta-58-bfba19bc",n.frozen&&"rdg-7-0-0-beta-58-7abddb3e"),onPointerDown:Ln,onPointerMove:fe?On:void 0,onLostPointerCapture:fe?Bn:void 0,onClick:Wn,onDoubleClick:Un})}function nr(e){if(!Yn(rt)||rt.rowIdx!==e||"SELECT"===rt.mode)return;const{idx:t,row:n}=rt,o=De[t],i=Ke(o,Le,{type:"ROW",row:n}),l=o.editorOptions?.closeOnExternalRowChange??!0,a=/* @__PURE__ */pe(e=>{xe(e),at(({idx:e,rowIdx:t})=>({idx:e,rowIdx:t,mode:"SELECT"}))},"closeEditor"),s=/* @__PURE__ */pe((e,t,n)=>{t?Xe.flushSync(()=>{Cn(o,rt.rowIdx,e),a(n)}):at(t=>({...t,row:e}))},"onRowChange");return l&&r[rt.rowIdx]!==rt.originalRow&&a(!1),/* @__PURE__ */Ye.jsx(on,{column:o,colSpan:i,row:n,rowIdx:e,onRowChange:s,closeEditor:a,onKeyDown:S,navigate:Zn},o.key)}function rr(e){const t=-1===rt.idx?void 0:De[rt.idx];return void 0===t||rt.rowIdx!==e||Ht.includes(t)?Ht:rt.idx>Be?[...Ht,t]:[...Ht.slice(0,Le+1),t,...Ht.slice(Le+1)]}function or(){const e=[],{idx:t,rowIdx:n}=rt,o=qt&&n>It?It+1:It;for(let i=qt&&n<Pt?Pt-1:Pt;i<=o;i++){const o=i===Pt-1||i===It+1,a=o?n:i;let s=Ht;const u=-1===t?void 0:De[t];void 0!==u&&(s=o?[u]:rr(a));const c=r[a],d=Ve+a+1;let h=a,g=!1;"function"==typeof l&&(h=l(c),g=p?.has(h)??!1),e.push(J(h,{"aria-rowindex":Ve+a+1,"aria-selected":yt?g:void 0,rowIdx:a,row:c,viewportColumns:s,isRowSelectionDisabled:f?.(c)??!1,isRowSelected:g,onCellMouseDown:ln,onCellClick:an,onCellDoubleClick:sn,onCellContextMenu:un,rowClass:O,gridRowStart:d,selectedCellIdx:n===a?t:void 0,draggedOverCellIdx:er(a),lastFrozenColumnIndex:Le,onRowChange:hn,selectCell:pn,selectedCellEditor:nr(a)}))}return e}x(yn,"In"),x(vn,"Pn"),x(wn,"Tn"),x(_n,"zn"),x(Cn,"_n"),x(kn,"Nn"),x(Tn,"Fn"),x(In,"Dn"),x(Rn,"Ln"),x(Fn,"On"),x(Ln,"An"),x(On,"Mn"),x(Bn,"Hn"),x(Wn,"Un"),x(Un,"jn"),x(jn,"Wn"),x($n,"$n"),x(Vn,"Vn"),x(Gn,"Bn"),x(qn,"qn"),x(Yn,"Kn"),x(Xn,"Qn"),x(Kn,"Gn"),x(Qn,"Yn"),x(Jn,"Xn"),x(Zn,"Jn"),x(er,"Zn"),x(tr,"er"),x(nr,"tr"),x(rr,"nr"),x(or,"rr"),_e.useLayoutEffect(()=>{we&&(null!==st.current&&-1===rt.idx?(st.current.focus({preventScroll:!0}),Je(st.current)):gn(),xe(!1))},[we,gn,rt.idx]),_e.useImperativeHandle(t,()=>({element:ze.current,scrollToCell({idx:e,rowIdx:t}){const n=void 0!==e&&e>Le&&e<De.length?e:void 0,r=void 0!==t&&Vn(t)?t:void 0;void 0===n&&void 0===r||ve({idx:n,rowIdx:r})},selectCell:Kn})),pe(yn,"selectHeaderRow"),pe(vn,"selectRow"),pe(wn,"handleKeyDown"),pe(_n,"handleScroll"),pe(Cn,"updateRow"),pe(kn,"commitEditorChanges"),pe(Tn,"handleCellCopy"),pe(In,"handleCellPaste"),pe(Rn,"handleCellInput"),pe(Fn,"handleColumnResizeEnd"),pe(Ln,"handleDragHandlePointerDown"),pe(On,"handleDragHandlePointerMove"),pe(Bn,"handleDragHandleLostPointerCapture"),pe(Wn,"handleDragHandleClick"),pe(Un,"handleDragHandleDoubleClick"),pe(jn,"updateRows"),pe($n,"isColIdxWithinSelectionBounds"),pe(Vn,"isRowIdxWithinViewportBounds"),pe(Gn,"isCellWithinSelectionBounds"),pe(qn,"isCellWithinEditBounds"),pe(Yn,"isCellWithinViewportBounds"),pe(Xn,"isCellEditable"),pe(Kn,"selectCell"),pe(Qn,"selectHeaderCell"),pe(Jn,"getNextPosition"),pe(Zn,"navigate"),pe(er,"getDraggedOverCellIdx"),pe(tr,"getDragHandle"),pe(nr,"getCellEditor"),pe(rr,"getRowViewportColumns"),pe(or,"getViewportRows"),(rt.idx>jt||rt.rowIdx>et)&&(at({idx:-1,rowIdx:qe-1,mode:"SELECT"}),ye(void 0)),ke&&ue!==d&&ce(d);let ir=`repeat(${Oe}, ${K}px)`;Ue>0&&(ir+=` repeat(${Ue}, ${Q}px)`),r.length>0&&(ir+=Dt),je>0&&(ir+=` repeat(${je}, ${Q}px)`);const lr=-1===rt.idx&&rt.rowIdx!==qe-1;return Ye.jsxs("div",{role:Y,"aria-label":N,"aria-labelledby":W,"aria-description":U,"aria-describedby":j,"aria-multiselectable":!!yt||void 0,"aria-colcount":De.length,"aria-rowcount":wt,tabIndex:-1,className:mt("rdg rdg-7-0-0-beta-58-ccd2e5d9",{[An]:fe},F),style:{...L,scrollPaddingInlineStart:rt.idx>Le||void 0!==be?.idx?`${We}px`:void 0,scrollPaddingBlock:Vn(rt.rowIdx)||void 0!==be?.rowIdx?`${ht+Ue*Q}px ${je*Q}px`:void 0,gridTemplateColumns:Nt,gridTemplateRows:ir,"--rdg-header-row-height":`${K}px`,"--rdg-scroll-height":`${Kt}px`,...Ne},dir:oe,ref:ze,onScroll:_n,onKeyDown:wn,onCopy:Tn,onPaste:In,"data-testid":V,"data-cy":G,children:[
2
2
  /* @__PURE__ */Ye.jsxs(Et,{value:St,children:[/* @__PURE__ */Ye.jsx(Lt,{value:cn,children:/* @__PURE__ */Ye.jsxs(Ft,{value:kt,children:[Array.from({length:Ge},(e,t)=>/* @__PURE__ */Ye.jsx(Sn,{rowIdx:t+1,level:-Ge+t,columns:rr(qe+t),selectedCellIdx:rt.rowIdx===qe+t?rt.idx:void 0,selectCell:fn},t)),/* @__PURE__ */Ye.jsx(xn,{headerRowClass:M,rowIdx:Oe,columns:rr(Qe),onColumnResize:Zt,onColumnResizeEnd:en,onColumnsReorder:tn,sortColumns:m,onSortColumnsChange:rn,lastFrozenColumnIndex:Le,selectedCellIdx:rt.rowIdx===Qe?rt.idx:void 0,selectCell:fn,shouldFocusGrid:!Vt,direction:oe})]})}),0===r.length&&ne?ne:/* @__PURE__ */Ye.jsxs(Ye.Fragment,{children:[o?.map((e,t)=>{const n=Oe+1+t,r=Qe+1+t,o=rt.rowIdx===r,i=ht+Q*t;return Ye.jsx(Mn,{"aria-rowindex":n,rowIdx:r,gridRowStart:n,row:e,top:i,bottom:void 0,viewportColumns:rr(r),lastFrozenColumnIndex:Le,selectedCellIdx:o?rt.idx:void 0,isTop:!0,selectCell:pn},t)}),
3
3
  /* @__PURE__ */Ye.jsx(At,{value:dn,children:or()}),i?.map((e,t)=>{const n=Ve+r.length+t+1,o=r.length+t,l=rt.rowIdx===o,a=ft>Rt?Re-Q*(i.length-t):void 0,s=void 0===a?Q*(i.length-1-t):void 0;return Ye.jsx(Mn,{"aria-rowindex":wt-je+t+1,rowIdx:o,gridRowStart:n,row:e,top:a,bottom:s,viewportColumns:rr(o),lastFrozenColumnIndex:Le,selectedCellIdx:l?rt.idx:void 0,isTop:!1,selectCell:pn},t)})]})]}),tr(),it(Ht),dt&&/* @__PURE__ */Ye.jsx("div",{ref:st,tabIndex:lr?0:-1,className:mt("rdg-7-0-0-beta-58-dbb8b3c5",{[Dn]:!Vn(rt.rowIdx),[mn]:lr,[bn]:lr&&-1!==Le}),style:{gridRowStart:rt.rowIdx+Ve+1}}),null!==be&&/* @__PURE__ */Ye.jsx(En,{scrollToPosition:be,setScrollToCellPosition:ve,gridRef:ze})]})}function Hn(e){return e.querySelector(':scope > [role="row"] > [tabindex="0"]')}function Nn(e,t){return e.idx===t.idx&&e.rowIdx===t.rowIdx}function Wn({id:e,groupKey:t,childRows:n,isExpanded:r,isCellSelected:o,column:i,row:l,groupColumnIndex:a,isGroupByColumn:s,toggleGroup:u}){const{tabIndex:c,childTabIndex:d,onFocus:h}=Kt(o);function p(){u(e)}x(p,"m"),pe(p,"toggleGroup");const f=s&&a===i.idx;return Ye.jsx("div",{role:"gridcell","aria-colindex":i.idx+1,"aria-selected":o,tabIndex:c,className:yt(i),style:{...gt(i),cursor:f?"pointer":"default"},onMouseDown:/* @__PURE__ */pe(e=>{e.preventDefault()},"onMouseDown"),onClick:f?p:void 0,onFocus:h,children:(!s||f)&&i.renderGroupCell?.({groupKey:t,childRows:n,column:i,row:l,isExpanded:r,tabIndex:d,toggleGroup:p})},i.key)}x(Bn,"Nt$1"),x(Hn,"Ft$1"),x(Nn,"Dt$1"),x(Wn,"Lt$1"),pe(Bn,"DataGrid"),pe(Hn,"getCellToScroll"),pe(Nn,"isSamePosition"),pe(Wn,"GroupCell");var Un=_e.memo(Wn);function jn({className:e,row:t,rowIdx:n,viewportColumns:r,selectedCellIdx:o,isRowSelected:i,selectCell:l,gridRowStart:a,groupBy:s,toggleGroup:u,isRowSelectionDisabled:c,...d}){const h=r[0].key===Mt?t.level+1:t.level;function p(){l({rowIdx:n,idx:-1},{shouldFocusCell:!0})}return x(p,"m"),pe(p,"handleSelectGroup"),/* @__PURE__ */Ye.jsx(Rt,{value:_e.useMemo(()=>({isRowSelectionDisabled:!1,isRowSelected:i}),[i]),children:/* @__PURE__ */Ye.jsx("div",{role:"row","aria-level":t.level+1,"aria-setsize":t.setSize,"aria-posinset":t.posInSet+1,"aria-expanded":t.isExpanded,className:mt(gn,"rdg-group-row rdg-7-0-0-beta-58-e74a2be3","rdg-row-"+(n%2==0?"even":"odd"),-1===o&&yn,e),onMouseDown:p,style:pt(a),...d,children:r.map(e=>/* @__PURE__ */Ye.jsx(Un,{id:t.id,groupKey:t.groupKey,childRows:t.childRows,isExpanded:t.isExpanded,isCellSelected:o===e.idx,column:e,row:t,groupColumnIndex:h,toggleGroup:u,isGroupByColumn:s.includes(e.key)},e.key))})})}x(jn,"At$1"),pe(jn,"GroupedRow"),_e.memo(jn);const $n=(e=class extends _e.Component{state={hasError:!1,error:null};static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error("Error caught by boundary:",e),console.error("Component stack:",t.componentStack)}handleReset=/* @__PURE__ */pe(()=>{this.setState({hasError:!1,error:null})},"handleReset");render(){return this.state.hasError?this.props.fallback?this.props.fallback:/* @__PURE__ */Ye.jsx("div",{className:"min-h-[200px] flex items-center justify-center p-8 bg-red-50 rounded-lg border border-red-100",children:/* @__PURE__ */Ye.jsxs("div",{className:"text-center",children:[
4
4
  /* @__PURE__ */Ye.jsx("h2",{className:"text-xl font-semibold text-red-700 mb-2",children:"Something went wrong"}),
5
5
  /* @__PURE__ */Ye.jsx("p",{className:"text-red-600",children:this.state.error?.message}),
6
- /* @__PURE__ */Ye.jsx("button",{onClick:this.handleReset,className:"mt-4 px-4 py-2 bg-red-600 text-white rounded-md hover:bg-red-700 transition-colors",children:"Try again"})]})}):this.props.children}},x(e,"_ErrorBoundary"),e);pe($n,"ErrorBoundary");let Vn=$n;function Gn(e){return[xe.useMemo(()=>e.columns(),[e,e.dataChecksum()]),xe.useMemo(()=>e.data(),[e,e.dataChecksum()])]}function qn(e,t,n){const r=t;return[...e].sort((e,t)=>e[r]<t[r]?n?1:-1:e[r]>t[r]?n?-1:1:0)}x(Gn,"Ut$1"),x(qn,"jt$1"),pe(Gn,"useData"),pe(qn,"copyAndSort");const Yn=/* @__PURE__ */pe(({message:e})=>/* @__PURE__ */Ye.jsx("div",{style:{textAlign:"center",gridColumn:"1/-1"},children:e}),"EmptyRowsRenderer"),Xn=/* @__PURE__ */pe(({table:e,sort:t})=>{const[n,r]=Gn(e),o=e.multiSelect(),i=e.columnTypes(),l=e.columnPatterns(),a=e.columnFormats(),[s,u]=_e.useState([]),[c,d]=_e.useState(),[h,p]=_e.useState([]),[f,g]=_e.useState(/* @__PURE__ */new Set);_e.useEffect(()=>{u([...o?[Wt]:[],...n.map(e=>{let t,n,r;switch(i[e]??"string"){case"time":n=void 0!==l[e]?k(l[e]):void 0,r=void 0!==a[e]?T(a[e]):void 0;break;case"number":t=/* @__PURE__ */pe(e=>/* @__PURE__ */Ye.jsx("div",{style:{textAlign:"right"},children:e.row[e.column.key]}),"formatter");default:r=void 0!==a[e]?S(a[e]):void 0}return{key:e,name:e,resizable:!0,sortable:!0,minWidth:80,renderCell:t,__hpcc_pattern:n,__hpcc_format:r}})])},[a,l,i,n,o]);const m=_e.useCallback(e=>{const t=e.slice(-1)[0],n=void 0!==t,r="DESC"===t?.direction;d(t),p(qn(h,n?t.columnKey:"key",!!n&&r))},[h]),y=_e.useCallback(e=>e.key,[]),b=_e.useCallback(e=>{g(e)},[]),v=_e.useCallback((t,n)=>{e.onRowClickCallback(t,n.key)},[e]);return _e.useEffect(()=>{let e=r.map((e,t)=>{const n={key:t};return s.forEach((t,r)=>{let o=e[r];t.__hpcc_pattern&&t.__hpcc_format?o=t.__hpcc_format(t.__hpcc_pattern(o)):t.__hpcc_pattern?o=t.__hpcc_pattern(o).toString():t.__hpcc_format&&(o=t.__hpcc_format(o)),n[t.key]=o}),n});t?.attribute&&(e=qn(e,t.attribute,t.descending)),p(e)},[s,r,t]),/* @__PURE__ */Ye.jsx(Vn,{fallback:/* @__PURE__ */Ye.jsx("div",{children:"Error loading table"}),children:/* @__PURE__ */Ye.jsx(Bn,{columns:s,headerRowHeight:24,rows:h,rowKeyGetter:y,rowHeight:20,renderers:{noRowsFallback:/* @__PURE__ */Ye.jsx(Yn,{message:e.noDataMessage()})},className:e.darkMode()?"rdg-dark":"rdg-light",sortColumns:c?[c]:[],onSortColumnsChange:m,selectedRows:f,onSelectedRowsChange:o?b:void 0,onCellClick:o?void 0:(e,t)=>v(e.row,e.column),style:{height:"100%"}})})},"ReactTable"),Kn=(x(t=class extends C{_div;_root;_component;constructor(){super()}columnType(e,t){return 1===arguments.length?this.columnTypes()[e]:(this.columnTypes({...this.columnTypes(),[e]:t}),this)}columnPattern(e,t){return 1===arguments.length?this.columnPatterns()[e]:(this.columnPatterns({...this.columnPatterns(),[e]:t}),this)}columnFormat(e,t){return 1===arguments.length?this.columnFormats()[e]:(this.columnFormats({...this.columnFormats(),[e]:t}),this)}_prevRow;_prevColumn;onRowClickCallback(e,t){this._prevRow&&JSON.stringify(this._prevRow)!==JSON.stringify(e)&&this.click(this._prevRow,this._prevColumn??"",!1),e&&this.click(e,t,!0),this._prevRow=e,this._prevColumn=t}enter(e,t){super.enter(e,t),this._div=t.append("div").style("display","grid"),this._root=je.createRoot(this._div.node(),{identifierPrefix:this.id()}),this._component=_e.createElement(Xn,{table:this})}update(e,t){super.update(e,t),this._div.style("width",this.width()+"px"),this._div.style("height",this.height()+"px"),this._root.render(this._component)}exit(e,t){this._div.remove(),super.exit(e,t)}click(e,t,n){}},"_Table"),t);pe(Kn,"Table");let Qn=Kn;Qn.prototype._class+=" dgrid2_Table",Qn.prototype.publish("noDataMessage","...empty...","string","No Data Message"),Qn.prototype.publish("darkMode",!1,"boolean","Dark Mode"),Qn.prototype.publish("multiSelect",!1,"boolean","Multiple Selection"),Qn.prototype.publish("columnTypes",{},"object",'Column Types ("boolean" | "number" | "string" | "time"'),Qn.prototype.publish("columnPatterns",{},"object","Column Patterns"),Qn.prototype.publish("columnFormats",{},"object","Column Formats"),function(){try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('@layer rdg{@layer Defaults,FocusSink,CheckboxInput,CheckboxIcon,CheckboxLabel,Cell,HeaderCell,SummaryCell,EditCell,Row,HeaderRow,SummaryRow,GroupedRow,Root;}@layer rdg.MeasuringCell{.rdg-7-0-0-beta-58-fa71d63e{contain:strict;grid-row:1;visibility:hidden}}@layer rdg.Cell{.rdg-7-0-0-beta-58-85c48527{position:relative;padding-block:0;padding-inline:8px;border-inline-end:var(--rdg-border-width) solid var(--rdg-border-color);border-block-end:var(--rdg-border-width) solid var(--rdg-border-color);grid-row-start:var(--rdg-grid-row-start);align-content:center;background-color:inherit;white-space:nowrap;overflow:clip;text-overflow:ellipsis;outline:none}.rdg-7-0-0-beta-58-85c48527[aria-selected=true]{outline:var(--rdg-selection-width) solid var(--rdg-selection-color);outline-offset:calc(var(--rdg-selection-width) * -1)}}@layer rdg.Cell{.rdg-7-0-0-beta-58-17a9a6d4{position:sticky;z-index:1}.rdg-7-0-0-beta-58-17a9a6d4:nth-last-child(1 of.rdg-7-0-0-beta-58-17a9a6d4){box-shadow:var(--rdg-cell-frozen-box-shadow)}}@layer rdg.DragHandle{.rdg-7-0-0-beta-58-bfba19bc{--rdg-drag-handle-size: 8px;z-index:0;cursor:move;inline-size:var(--rdg-drag-handle-size);block-size:var(--rdg-drag-handle-size);background-color:var(--rdg-selection-color);place-self:end}.rdg-7-0-0-beta-58-bfba19bc:hover{--rdg-drag-handle-size: 16px;border:2px solid var(--rdg-selection-color);background-color:var(--rdg-background-color)}}@layer rdg.DragHandle{.rdg-7-0-0-beta-58-7abddb3e{z-index:1;position:sticky}}@layer rdg.CheckboxInput{.rdg-7-0-0-beta-58-3b807ead{display:block;margin:auto;inline-size:20px;block-size:20px}.rdg-7-0-0-beta-58-3b807ead:focus-visible{outline:2px solid var(--rdg-checkbox-focus-color);outline-offset:-3px}.rdg-7-0-0-beta-58-3b807ead:enabled{cursor:pointer}}@layer rdg.GroupCellContent{.rdg-7-0-0-beta-58-07919382{outline:none}}@layer rdg.GroupCellCaret{.rdg-7-0-0-beta-58-02a50147{margin-inline-start:4px;stroke:currentColor;stroke-width:1.5px;fill:transparent;vertical-align:middle}.rdg-7-0-0-beta-58-02a50147>path{transition:d .1s}}@layer rdg.SortableHeaderCell{.rdg-7-0-0-beta-58-56a248e4{display:flex}}@layer rdg.SortableHeaderCellName{.rdg-7-0-0-beta-58-7fad8c83{flex-grow:1;overflow:clip;text-overflow:ellipsis}}@layer rdg.Cell{.rdg-7-0-0-beta-58-35ccb4c8{background-color:#ccf}}@layer rdg.EditCell{.rdg-7-0-0-beta-58-46f9ea88{padding:0}}@layer rdg.HeaderRow{.rdg-7-0-0-beta-58-0dbd5994{display:contents;background-color:var(--rdg-header-background-color);font-weight:700}.rdg-7-0-0-beta-58-0dbd5994>.rdg-7-0-0-beta-58-85c48527{z-index:2;position:sticky}.rdg-7-0-0-beta-58-0dbd5994>.rdg-7-0-0-beta-58-17a9a6d4{z-index:3}}@layer rdg.HeaderCell{.rdg-7-0-0-beta-58-2a7e240d{cursor:pointer}}@layer rdg.HeaderCell{.rdg-7-0-0-beta-58-1893dc0f{touch-action:none}}@layer rdg.HeaderCell{.rdg-7-0-0-beta-58-4e60db91{cursor:col-resize;position:absolute;inset-block-start:0;inset-inline-end:0;inset-block-end:0;inline-size:10px}}@layer rdg.HeaderCell{.rdg-7-0-0-beta-58-3e1a4ad4{background-color:var(--rdg-header-draggable-background-color)}}@layer rdg.HeaderCell{.rdg-7-0-0-beta-58-51abd8b8{background-color:var(--rdg-header-draggable-background-color)}}@layer rdg.HeaderCell{.rdg-7-0-0-beta-58-c8d7aa64{border-radius:4px;width:fit-content;outline:2px solid hsl(207,100%,50%);outline-offset:-2px}}@layer rdg.Row{.rdg-7-0-0-beta-58-3c083f1b{display:contents;background-color:var(--rdg-background-color)}.rdg-7-0-0-beta-58-3c083f1b:hover{background-color:var(--rdg-row-hover-background-color)}.rdg-7-0-0-beta-58-3c083f1b[aria-selected=true]{background-color:var(--rdg-row-selected-background-color)}.rdg-7-0-0-beta-58-3c083f1b[aria-selected=true]:hover{background-color:var(--rdg-row-selected-hover-background-color)}}@layer rdg.FocusSink{.rdg-7-0-0-beta-58-3fe773c3{outline:2px solid var(--rdg-selection-color);outline-offset:-2px}}@layer rdg.FocusSink{.rdg-7-0-0-beta-58-97ce3fde:before{content:"";display:inline-block;block-size:100%;position:sticky;inset-inline-start:0;border-inline-start:2px solid var(--rdg-selection-color)}}@layer rdg.SortIcon{.rdg-7-0-0-beta-58-3d5115f3{fill:currentColor}.rdg-7-0-0-beta-58-3d5115f3>path{transition:d .1s}}@layer rdg.Defaults{.rdg-7-0-0-beta-58-ccd2e5d9 *,.rdg-7-0-0-beta-58-ccd2e5d9 *:before,.rdg-7-0-0-beta-58-ccd2e5d9 *:after{box-sizing:inherit}}@layer rdg.Root{.rdg-7-0-0-beta-58-ccd2e5d9{--rdg-selection-width: 2px;--rdg-selection-color: hsl(207, 75%, 66%);--rdg-font-size: 14px;--rdg-cell-frozen-box-shadow: 2px 0 5px -2px rgba(136, 136, 136, .3);--rdg-border-width: 1px;--rdg-summary-border-width: calc(var(--rdg-border-width) * 2);--rdg-color: light-dark(#000, #ddd);--rdg-border-color: light-dark(#ddd, #444);--rdg-summary-border-color: light-dark(#aaa, #555);--rdg-background-color: light-dark(hsl(0deg 0% 100%), hsl(0deg 0% 13%));--rdg-header-background-color: light-dark(hsl(0deg 0% 97.5%), hsl(0deg 0% 10.5%));--rdg-header-draggable-background-color: light-dark(hsl(0deg 0% 90.5%), hsl(0deg 0% 17.5%));--rdg-row-hover-background-color: light-dark(hsl(0deg 0% 96%), hsl(0deg 0% 9%));--rdg-row-selected-background-color: light-dark(hsl(207deg 76% 92%), hsl(207deg 76% 42%));--rdg-row-selected-hover-background-color: light-dark(hsl(207deg 76% 88%), hsl(207deg 76% 38%));--rdg-checkbox-focus-color: hsl(207deg 100% 69%);color-scheme:var(--rdg-color-scheme, light dark);display:grid;accent-color:light-dark(hsl(207deg 100% 29%),hsl(207deg 100% 79%));contain:content;content-visibility:auto;block-size:350px;border:1px solid var(--rdg-border-color);box-sizing:border-box;overflow:auto;background-color:var(--rdg-background-color);color:var(--rdg-color);font-size:var(--rdg-font-size)}.rdg-7-0-0-beta-58-ccd2e5d9.rdg-dark{--rdg-color-scheme: dark}.rdg-7-0-0-beta-58-ccd2e5d9.rdg-light{--rdg-color-scheme: light}.rdg-7-0-0-beta-58-ccd2e5d9:dir(rtl){--rdg-cell-frozen-box-shadow: -2px 0 5px -2px rgba(136, 136, 136, .3)}.rdg-7-0-0-beta-58-ccd2e5d9:before{content:"";grid-column:1/-1;grid-row:1/-1}.rdg-7-0-0-beta-58-ccd2e5d9>:nth-last-child(1 of.rdg-top-summary-row)>.rdg-7-0-0-beta-58-85c48527{border-block-end:var(--rdg-summary-border-width) solid var(--rdg-summary-border-color)}.rdg-7-0-0-beta-58-ccd2e5d9>:nth-child(1 of.rdg-bottom-summary-row)>.rdg-7-0-0-beta-58-85c48527{border-block-start:var(--rdg-summary-border-width) solid var(--rdg-summary-border-color)}}@layer rdg.Root{.rdg-7-0-0-beta-58-e9b0e1c9{-webkit-user-select:none;user-select:none}.rdg-7-0-0-beta-58-e9b0e1c9 .rdg-7-0-0-beta-58-3c083f1b{cursor:move}}@layer rdg.FocusSink{.rdg-7-0-0-beta-58-dbb8b3c5{grid-column:1/-1;pointer-events:none;z-index:1}}@layer rdg.FocusSink{.rdg-7-0-0-beta-58-e9f55541{z-index:3}}@layer rdg.SummaryRow{.rdg-7-0-0-beta-58-0b90c82c>.rdg-7-0-0-beta-58-85c48527{position:sticky}}@layer rdg.SummaryRow{.rdg-7-0-0-beta-58-d0520eab>.rdg-7-0-0-beta-58-85c48527{z-index:2}.rdg-7-0-0-beta-58-d0520eab>.rdg-7-0-0-beta-58-17a9a6d4{z-index:3}}@layer rdg.SummaryCell{.rdg-7-0-0-beta-58-d907aa87{inset-block-start:var(--rdg-summary-row-top);inset-block-end:var(--rdg-summary-row-bottom)}}@layer rdg.GroupedRow{.rdg-7-0-0-beta-58-e74a2be3:not([aria-selected=true]){background-color:var(--rdg-header-background-color)}.rdg-7-0-0-beta-58-e74a2be3>.rdg-7-0-0-beta-58-85c48527:not(:last-child,.rdg-7-0-0-beta-58-17a9a6d4),.rdg-7-0-0-beta-58-e74a2be3>:nth-last-child(n+2 of.rdg-7-0-0-beta-58-17a9a6d4){border-inline-end:none}}@layer rdg.TextEditor{.rdg-7-0-0-beta-58-2f8db206{appearance:none;box-sizing:border-box;inline-size:100%;block-size:100%;padding-block:0;padding-inline:6px;border:2px solid #ccc;vertical-align:top;color:var(--rdg-color);background-color:var(--rdg-background-color);font-family:inherit;font-size:var(--rdg-font-size)}.rdg-7-0-0-beta-58-2f8db206:focus{border-color:var(--rdg-selection-color);outline:none}.rdg-7-0-0-beta-58-2f8db206::placeholder{color:#999;opacity:1}}.dgrid2_Table .rdg{font-family:monospace,Courier New,Courier}.dgrid2_Table .rdg-checkbox-label .rdg-checkbox{block-size:16px;inline-size:16px;border-width:2px;box-shadow:inset 0 0 0 3px var(--rdg-background-color)}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();var Jn=Object.defineProperty,Zn=/* @__PURE__ */x((e,t)=>Jn(e,"name",{value:t,configurable:!0}),"e");function er(e,t){for(var n=0;n<t.length;n++){const r=t[n];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const n=Object.getOwnPropertyDescriptor(r,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:/* @__PURE__ */Zn(()=>r[t],"get")})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}x(er,"I"),Zn(er,"_mergeNamespaces");const tr=(x(n=class extends C{constructor(){super(),this._tag="div"}enter(e,t){super.enter(e,t)}update(e,t){super.update(e,t);let n=0,r=0,o=this.clientWidth(),i=this.clientHeight();switch(this.units()){case"pixels":n=this.widgetX(),r=this.widgetY(),o=""===this.widgetWidth()?o-n:Number(this.widgetWidth()),i=""===this.widgetHeight()?i-r:Number(this.widgetHeight());break;case"percent":n=this.widgetX()*o/100,r=this.widgetY()*i/100,o=""===this.widgetWidth()?o-n:Number(this.widgetWidth())*o/100,i=""===this.widgetHeight()?i-r:Number(this.widgetHeight())*i/100}t.style("opacity",this.opacity());const l=t.selectAll("#"+this._id+" > .placeholder").data(this.widget()?[this.widget()]:[],function(e){return e._id});l.enter().append("div").attr("class","placeholder").each(function(e){e.target(this)}).merge(l).style("left",n+"px").style("top",r+"px").style("width",o+"px").style("bottom",i+"px").each(function(e){e.resize({width:o,height:i})}),l.exit().each(function(e){e.target(null)}).remove()}exit(e,t){this.widget()&&this.widget().target(null),super.exit(e,t)}},"_AbsoluteSurface"),n);Zn(tr,"AbsoluteSurface");let nr=tr;nr.prototype._class+=" layout_AbsoluteSurface",nr.prototype.publish("units","percent","set","Units",["pixels","percent"]),nr.prototype.publish("widgetX",0,"number","Widget XPos"),nr.prototype.publish("widgetY",0,"number","Widget YPos"),nr.prototype.publish("widgetWidth","100","string","Widget Width, omit for full"),nr.prototype.publish("widgetHeight","100","string","Widget Height, omit for full"),nr.prototype.publish("widget",null,"widget","Widget",null,{tags:["Private"]}),nr.prototype.publish("opacity",1,"number","Opacity");const rr=(x(r=class extends C{_isClosed;titleSpan;iconDiv;ul;icon;constructor(){super(),this._tag="div",this._isClosed=!1}pushListItem(e,t=!1,n=!1){const r=this.content();return e._protected=n,t?r.unshift(e):r.push(e),this.content(r),this}clearListItems(){const e=[];for(const t in this.content())this.content()[t]._protected&&e.push(this.content()[t]);return this.content(e),this}collapseClick(e){e.classed("closed")?(this._isClosed=!1,e.classed("open",!0),e.classed("closed",!1)):(this._isClosed=!0,e.classed("open",!1),e.classed("closed",!0))}enter(e,t){super.enter(e,t);const n=this;this._isClosed=this.defaultCollapsed(),t.classed(this._isClosed?"closed":"open",!0),this.titleSpan=t.append("span").classed("collapsible-title",!0),this.iconDiv=t.append("div").classed("collapsible-icon",!0),this.ul=t.append("ul"),this.icon=(new P).size({height:24,width:24}).target(this.iconDiv.node()),this.iconDiv.on("click",function(){n.collapseClick(t),n.render()}),this.titleSpan.on("click",function(){n.collapseClick(t),n.render()})}update(e,t){super.update(e,t);const n=this;this.titleSpan.text(n.title().length>0?n.title()+"":"Accordion ["+n._id+"]");const r=this.ul.selectAll("#"+n._id+" > ul > li").data(this.content(),function(e){return e._id});r.enter().append(function(e){const t=document.createElement("li");if(null!==e._target)return e._target;{const r=e.size();if(0===r.width||0===r.height){const t=n.size();e.size({width:t.width,height:t.width})}e.target(t)}return t}),r.exit().remove(),this.icon.text_colorFill(this.titleFontColor()).char(this._isClosed?this.closedIcon():this.openIcon()).render()}exit(e,t){super.exit(e,t)}},"_Accordion"),r);Zn(rr,"Accordion");let or=rr;or.prototype._class+=" layout_Accordion",or.prototype.publish("content",[],"widgetArray","Array of widgets",null,{tags:["Basic"]}),or.prototype.publish("title","","string","Title of collapsible section",null,{tags:["Private"]}),or.prototype.publish("openIcon","","string","Icon to display when list is open",null,{tags:["Private"]}),or.prototype.publish("closedIcon","","string","Icon to display when list is closed",null,{tags:["Private"]}),or.prototype.publish("titleFontColor","#FFFFFF","html-color","Title font color",null,{tags:["Private"]}),or.prototype.publish("titleBackgroundColor","#333333","html-color","Title background color",null,{tags:["Private"]}),or.prototype.publish("defaultCollapsed",!1,"boolean","Collapsed by default if true",null,{tags:["Private"]});const ir=(x(o=class extends C{_surfaceButtons;constructor(){super(),this._tag="div",this._surfaceButtons=[]}widgetSize(e,t){let n=this.clientWidth(),r=this.clientHeight();return this.title()&&(r-=this.calcHeight(e)),r-=this.calcFrameHeight(t),n-=this.calcFrameWidth(t),{width:n,height:r}}enter(e,t){super.enter(e,t)}update(e,t){super.update(e,t);const n=this;t.classed("shadow2",this.surfaceShadow()).style("border-width",this.surfaceBorderWidth_exists()?this.surfaceBorderWidth()+"px":null).style("border-color",this.surfaceBorderColor()).style("border-radius",this.surfaceBorderRadius_exists()?this.surfaceBorderRadius()+"px":null).style("background-color",this.surfaceBackgroundColor());const r=t.selectAll(".surfaceTitle").data(this.title()?[this.title()]:[]);r.enter().insert("h3","div").attr("class","surfaceTitle").merge(r).text(function(e){return e}).style("text-align",this.surfaceTitleAlignment()).style("color",this.surfaceTitleFontColor()).style("font-size",this.surfaceTitleFontSize_exists()?this.surfaceTitleFontSize()+"px":null).style("font-family",this.surfaceTitleFontFamily()).style("font-weight",this.surfaceTitleFontBold()?"bold":"normal").style("background-color",this.surfaceTitleBackgroundColor()).style("padding",this.surfaceTitlePadding_exists()?this.surfaceTitlePadding()+"px":null).style("title",this.altText_exists()?this.altText():null),r.exit().remove();const o=t.select(".surfaceTitle").append("div").attr("class","html-button-container").selectAll(".surface-button").data(this.buttonAnnotations());o.enter().append("button").classed("surface-button",!0).each(function(e,t){const r=n._surfaceButtons[t]=E(this).attr("class","surface-button"+(e.class?" "+e.class:"")).attr("id",e.id).style("padding",e.padding).style("width",e.width).style("height",e.height).style("cursor","pointer");"FontAwesome"===e.font?r.style("background","transparent").style("border","none").on("click",function(e){n.click(e)}).append("i").attr("class","fa").text(function(){return e.label}):r.text(function(){return e.label}).on("click",function(e){n.click(e)})}),o.exit().each(function(e,t){const r=E(this);delete n._surfaceButtons[t],r.remove()});const i=t.selectAll("#"+this._id+" > .surfaceWidget").data(this.widget()?[this.widget()]:[],function(e){return e._id});i.enter().append("div").attr("class","surfaceWidget").each(function(e){E(n.element().node().parentElement).classed("content-icon content-icon-"+e.classID().split("_")[1],!0),e.target(this)}).merge(i).style("padding",this.surfacePadding_exists()?this.surfacePadding()+"px":null).each(function(e){const r=n.widgetSize(t.select("h3"),E(this));r.width<0&&(r.width=0),r.height<0&&(r.height=0),e.resize({width:r.width,height:r.height})}),i.exit().each(function(e){e.target(null)}).remove()}exit(e,t){this.widget()&&this.widget().target(null),super.exit(e,t)}click(e){}},"_Surface"),o);Zn(ir,"Surface");let lr=ir;lr.prototype._class+=" layout_Surface",lr.prototype.publish("title","","string","Title",null,{tags:["Intermediate"]}),lr.prototype.publish("altText",null,"string","Alt text",null,{optional:!0}),lr.prototype.publish("surfaceTitlePadding",null,"number","Title Padding (px)",null,{tags:["Advanced"],disable:/* @__PURE__ */Zn(e=>!e.title(),"disable")}),lr.prototype.publish("surfaceTitleFontSize",null,"number","Title Font Size (px)",null,{tags:["Advanced"],disable:/* @__PURE__ */Zn(e=>!e.title(),"disable")}),lr.prototype.publish("surfaceTitleFontColor",null,"html-color","Title Font Color",null,{tags:["Advanced"],disable:/* @__PURE__ */Zn(e=>!e.title(),"disable")}),lr.prototype.publish("surfaceTitleFontFamily",null,"string","Title Font Family",null,{tags:["Advanced"],disable:/* @__PURE__ */Zn(e=>!e.title(),"disable")}),lr.prototype.publish("surfaceTitleFontBold",!0,"boolean","Enable Bold Title Font",null,{tags:["Advanced"],disable:/* @__PURE__ */Zn(e=>!e.title(),"disable")}),lr.prototype.publish("surfaceTitleBackgroundColor",null,"html-color","Title Background Color",null,{tags:["Advanced"],disable:/* @__PURE__ */Zn(e=>!e.title(),"disable")}),lr.prototype.publish("surfaceTitleAlignment","center","set","Title Alignment",["left","right","center"],{tags:["Basic"],disable:/* @__PURE__ */Zn(e=>!e.title(),"disable")}),lr.prototype.publish("surfaceShadow",!1,"boolean","3D Shadow"),lr.prototype.publish("surfacePadding",null,"string","Surface Padding (px)",null,{tags:["Intermediate"]}),lr.prototype.publish("surfaceBackgroundColor",null,"html-color","Surface Background Color",null,{tags:["Advanced"]}),lr.prototype.publish("surfaceBorderWidth",null,"number","Surface Border Width (px)",null,{tags:["Advanced"]}),lr.prototype.publish("surfaceBorderColor",null,"html-color","Surface Border Color",null,{tags:["Advanced"]}),lr.prototype.publish("surfaceBorderRadius",null,"number","Surface Border Radius (px)",null,{tags:["Advanced"]}),lr.prototype.publish("buttonAnnotations",[],"array","Button Array",null,{tags:["Private"]}),lr.prototype.publish("widget",null,"widget","Widget",null,{tags:["Basic"]});const ar=(x(i=class extends lr{_indicateTheseIds;constructor(){super(),this._indicateTheseIds=[]}indicateTheseIds(e){return arguments.length?(this._indicateTheseIds=e,this):this._indicateTheseIds}enter(e,t){super.enter(e,t);const n=this;t.classed("layout_Surface",!0).on("mouseenter",function(){n.onMouseEnter()}).on("mouseleave",function(){n.onMouseLeave()})}update(e,t){super.update(e,t)}onMouseEnter(){const e=this.indicateTheseIds(),t=this.indicatorOpacity(),n=this.indicatorBorderColor(),r=this.indicatorGlowColor();for(let o=0;o<e.length;o++){const i=E("#"+e[o]),l=i.datum();i&&l&&i.append("div").attr("class","update-indicator").style("width",l.width()+"px").style("height",l.height()+"px").style("opacity",t).style("border-color",n).style("-webkit-box-shadow","inset 0px 0px 30px 0px "+r).style("-moz-box-shadow","inset 0px 0px 30px 0px "+r).style("box-shadow","inset 0px 0px 30px 0px "+r)}}onMouseLeave(){const e=this.indicateTheseIds();for(let t=0;t<e.length;t++)z("#"+e[t]+" > div.update-indicator").remove()}},"_Cell"),i);Zn(ar,"Cell");let sr=ar;sr.prototype._class+=" layout_Cell",sr.prototype.publish("gridRow",0,"number","Grid Row Position",null,{tags:["Private"]}),sr.prototype.publish("gridCol",0,"number","Grid Column Position",null,{tags:["Private"]}),sr.prototype.publish("gridRowSpan",1,"number","Grid Row Span",null,{tags:["Private"]}),sr.prototype.publish("gridColSpan",1,"number","Grid Column Span",null,{tags:["Private"]}),sr.prototype.publish("indicatorGlowColor","#EEEE11","html-color","Glow color of update-indicator",null,{tags:["Basic"]}),sr.prototype.publish("indicatorBorderColor","#F48A00","html-color","Border color of update-indicator",null,{tags:["Basic"]}),sr.prototype.publish("indicatorOpacity",.8,"number","Opacity of update-indicator",null,{tags:["Basic"]});const ur=(l=class extends C{_colCount;_rowCount;_colSize;_rowSize;_shrinkWrapBoxes;_watch;_offsetX;_offsetY;_dragCell;_dragCellSize;_dragCellStartSize;_handleTop;_handleLeft;_dragPrevX;_dragPrevY;_cellSizes;contentDiv;_scrollBarWidth;_borderHandles;_sectionTypeArr;constructor(){super(),this._tag="div",this._colCount=0,this._rowCount=0,this._colSize=0,this._rowSize=0,this._shrinkWrapBoxes={},this.content([]),this.sectionTypes([])}watchWidget(e){if(void 0===this._watch&&(this._watch={}),this._watch[e.id()]&&(this._watch[e.id()].remove(),delete this._watch[e.id()]),e){const t=this;this._watch[e.id()]=e.monitor(function(e,n,r){r!==n&&t.lazyPostUpdate()})}}lazyPostUpdate=I.debounce(function(){this.postUpdate()},100);applyLayoutType(){const e=this.borderLayoutObject();this.content().forEach(function(t,n){t._fixedLeft=e[this.sectionTypes()[n]].left,t._fixedTop=e[this.sectionTypes()[n]].top,t._fixedWidth=e[this.sectionTypes()[n]].width,t._fixedHeight=e[this.sectionTypes()[n]].height,t._dragHandles=this.cellSpecificDragHandles(this.sectionTypes()[n])},this)}cellSpecificDragHandles(e){switch(e){case"top":return["s"];case"right":return["w"];case"bottom":return["n"];case"left":return["e"];case"center":return[]}}borderLayoutObject(e){const t={},n=this;let r,o,i,l,a,s,u,c;const d=this.target().getBoundingClientRect();d.top,d.left,d.bottom,d.right,this.target()instanceof SVGElement?(parseFloat(this.target().getAttribute("width")),parseFloat(this.target().getAttribute("height"))):(d.width,d.height),-1!==this.sectionTypes().indexOf("top")&&(r=this.topSize(),o=this.topPercentage(),void 0!==this._shrinkWrapBoxes.top&&(r=this._shrinkWrapBoxes.top.height+this.gutter(),o=0)),-1!==this.sectionTypes().indexOf("bottom")&&(i=this.bottomSize(),l=this.bottomPercentage(),void 0!==this._shrinkWrapBoxes.bottom&&(i=this._shrinkWrapBoxes.bottom.height+this.gutter(),l=0)),-1!==this.sectionTypes().indexOf("left")&&(a=this.leftSize(),s=this.leftPercentage(),void 0!==this._shrinkWrapBoxes.left&&(a=this._shrinkWrapBoxes.left.width+this.gutter(),s=0)),-1!==this.sectionTypes().indexOf("right")&&(u=this.rightSize(),c=this.rightPercentage(),void 0!==this._shrinkWrapBoxes.right&&(u=this._shrinkWrapBoxes.right.width+this.gutter(),c=0));const h=y({width:{px:0,"%":100},height:{px:r,"%":o},top:{px:0,"%":0},left:{px:0,"%":0}}),p=y({width:{px:0,"%":100},height:{px:i,"%":l},top:{px:0,"%":100},left:{px:0,"%":0}});p.top-=p.height;const f=y({width:{px:a,"%":s},height:{px:-h.height-p.height,"%":100},top:{px:h.height,"%":0},left:{px:0,"%":0}}),g=y({width:{px:u,"%":c},height:{px:-h.height-p.height,"%":100},top:{px:h.height,"%":0},left:{px:0,"%":100}});g.left-=g.width;const m=y({width:{px:-g.width-f.width,"%":100},height:{px:-h.height-p.height,"%":100},top:{px:h.height,"%":0},left:{px:f.width,"%":0}});return t.top=h,t.bottom=p,t.right=g,t.left=f,t.center=m,t;function y(e){return e.width.px=void 0!==e.width.px?e.width.px:0,e.width["%"]=void 0!==e.width["%"]?e.width["%"]:0,e.height.px=void 0!==e.height.px?e.height.px:0,e.height["%"]=void 0!==e.height["%"]?e.height["%"]:0,{width:e.width.px+e.width["%"]/100*n.width(),height:e.height.px+e.height["%"]/100*n.height(),top:e.top.px+e.top["%"]/100*n.height()+n.gutter()/2,left:e.left.px+e.left["%"]/100*n.width()+n.gutter()/2}}}clearContent(e){if(e){const t=this.sectionTypes().indexOf(e);t>=0&&(this._watch&&this.content()[t]&&delete this._watch[this.content()[t].id()],this.content()[t].target(null),E("#"+this.id()+" > div.borderHandle_"+e).classed("borderHandleDisabled",!0),this.content().splice(t,1),this.sectionTypes().splice(t,1))}else this.content().forEach(function(e){return e.target(null),!1}),E("#"+this.id()+" > div.borderHandle").classed("borderHandleDisabled",!0),delete this._watch,this.content([]),this.sectionTypes([])}hasContent(e,t,n){return this.sectionTypes().indexOf(e)>=0}setContent(e,t,n){if(this.clearContent(e),n=void 0!==n?n:"",t){const r=(new sr).surfaceBorderWidth(0).widget(t).title(n);this.watchWidget(t),this.content().push(r),this.sectionTypes().push(e)}return this}getCell(e){const t=this.sectionTypes().indexOf(e);return t>=0?this.content()[t]:null}getContent(e){const t=this.sectionTypes().indexOf(e);return t>=0?this.content()[t].widget():null}setLayoutOffsets(){this._offsetX=this._element.node().getBoundingClientRect().left+this.gutter()/2,this._offsetY=this._element.node().getBoundingClientRect().top+this.gutter()/2}dragStart(e){const t=R();t.sourceEvent.stopPropagation();const n=this;this._dragCell=e,this._dragCellStartSize=this[e+"Size"](),this[e+"ShrinkWrap"]()&&(this[e+"Percentage"](0),this[e+"ShrinkWrap"](!1));const r=E("#"+n.id()+" > div.borderHandle_"+e);n._handleTop=parseFloat(r.style("top").split("px")[0]),n._handleLeft=parseFloat(r.style("left").split("px")[0]),this._dragPrevX=t.sourceEvent.clientX,this._dragPrevY=t.sourceEvent.clientY}dragTick(e){const t=this,n=R(),r=this._dragPrevX-n.sourceEvent.clientX,o=this._dragPrevY-n.sourceEvent.clientY;switch(e){case"top":case"bottom":i(e,o);break;case"right":case"left":i(e,r)}function i(e,n){if(0===n)return;const r=z("#"+t.id()+" > div.borderHandle"),o=E("#"+t.id()+" > div.borderHandle_"+e);o.classed("borderHandle_top")?(o.style("top",t._handleTop-n+"px"),t._cellSizes.topHeight=t._handleTop-n,t._cellSizes.leftHeight=t._cellSizes.height,t._cellSizes.leftHeight-=t._cellSizes.topHeight,t._cellSizes.leftHeight-=t._cellSizes.bottomHeight,t._cellSizes.rightHeight=t._cellSizes.leftHeight):o.classed("borderHandle_right")?(o.style("left",t._handleLeft-n+"px"),t._cellSizes.rightWidth=t._cellSizes.width-t._handleLeft+n):o.classed("borderHandle_bottom")?(o.style("top",t._handleTop-n+"px"),t._cellSizes.bottomHeight=t._cellSizes.height-t._handleTop+n,t._cellSizes.leftHeight=t._cellSizes.height,t._cellSizes.leftHeight-=t._cellSizes.bottomHeight,t._cellSizes.leftHeight-=t._cellSizes.topHeight,t._cellSizes.rightHeight=t._cellSizes.leftHeight):o.classed("borderHandle_left")&&(o.style("left",t._handleLeft-n+"px"),t._cellSizes.leftWidth=t._handleLeft-n),r.each(function(){const e=E(this);e.classed("borderHandle_top")?(e.style("width",t._cellSizes.width+"px"),e.style("top",t._cellSizes.topHeight-3+"px")):e.classed("borderHandle_right")?(e.style("left",t._cellSizes.width-t._cellSizes.rightWidth+"px"),e.style("top",t._cellSizes.topHeight+3+"px"),e.style("height",t._cellSizes.rightHeight+"px")):e.classed("borderHandle_bottom")?(e.style("width",t._cellSizes.width+"px"),e.style("top",t._cellSizes.height-t._cellSizes.bottomHeight-3+"px")):e.classed("borderHandle_left")&&(e.style("left",t._cellSizes.leftWidth+"px"),e.style("height",t._cellSizes.leftHeight+"px"),e.style("top",t._cellSizes.topHeight+3+"px"))})}x(i,"a"),Zn(i,"_moveHandles")}dragEnd(e){if(e){const t=R(),n=this._dragPrevX-t.sourceEvent.clientX,r=this._dragPrevY-t.sourceEvent.clientY;switch(e){case"top":0!==r&&(this.topPercentage(0),this.topSize(0===this.topSize()?this.getContent("top").getBBox().height-r:this.topSize()-r));break;case"right":0!==n&&(this.rightPercentage(0),this.rightSize(0===this.rightSize()?this.getContent("right").getBBox().width+n:this.rightSize()+n));break;case"bottom":0!==r&&(this.bottomPercentage(0),this.bottomSize(0===this.bottomSize()?this.getContent("bottom").getBBox().height+r:this.bottomSize()+r));break;case"left":0!==n&&(this.leftPercentage(0),this.leftSize(0===this.leftSize()?this.getContent("left").getBBox().width-n:this.leftSize()-n))}this._dragPrevX=t.sourceEvent.clientX,this._dragPrevY=t.sourceEvent.clientY}this.render()}size(e){const t=C.prototype.size.apply(this,arguments);return arguments.length&&this.contentDiv&&this.contentDiv.style("width",this._size.width+"px").style("height",this._size.height+"px"),t}enter(e,t){super.enter(e,t);const n=this;t.style("position","relative"),this.contentDiv=t.append("div").classed("border-content",!0),this._scrollBarWidth=A.getScrollbarWidth(),this._borderHandles=["top","left","right","bottom"],t.selectAll("div.borderHandle").data(this._borderHandles).enter().append("div").classed("borderHandle",!0).each(function(e){E(this).classed("borderHandle_"+e,!0).classed("borderHandleDisabled",null===n.getContent(e))})}update(e,t){super.update(e,t),this._sectionTypeArr=this.sectionTypes();const n=this;t.classed("design-mode",this.designMode()),this.setLayoutOffsets();const r=this.contentDiv.selectAll(".cell_"+this._id).data(this.content(),function(e){return e._id}),o=r.enter().append("div").classed("cell_"+this._id,!0).style("position","absolute").each(function(e,t){E(this).classed("border-cell border-cell-"+n._sectionTypeArr[t],!0),e.target(this),E("#"+n.id()+" > div.borderHandle_"+n._sectionTypeArr[t]).classed("borderHandleDisabled",!1)}).merge(r);o.each(function(e,t){const r=n.sectionTypes()[t];void 0!==n[r+"ShrinkWrap"]&&n[r+"ShrinkWrap"]()?(e.render(),n._shrinkWrapBoxes[r]=e.widget().getBBox(!0)):delete n._shrinkWrapBoxes[r]});const i=D().on("start",function(e,t){n.dragStart.call(n,e,t)}).on("drag",function(e,t){n.dragTick.call(n,e,t)}).on("end",function(e,t){n.dragEnd.call(n,e,t)});this.designMode()?t.selectAll("#"+this.id()+" > div.borderHandle").call(i):t.selectAll("#"+this.id()+" > div.borderHandle").on(".drag",null);const l=this.borderLayoutObject();this.content().forEach(function(e,t){e._fixedLeft=l[this.sectionTypes()[t]].left,e._fixedTop=l[this.sectionTypes()[t]].top,e._fixedWidth=l[this.sectionTypes()[t]].width,e._fixedHeight=l[this.sectionTypes()[t]].height,e._dragHandles=[]},this),o.style("left",function(e){return e._fixedLeft+"px"}).style("top",function(e){return e._fixedTop+"px"}).style("width",function(e){return e._fixedWidth-n.gutter()+"px"}).style("height",function(e){return e._fixedHeight-n.gutter()+"px"}).each(function(e){e._placeholderElement.attr("draggable",n.designMode()).selectAll(".dragHandle").attr("draggable",n.designMode()),e.surfacePadding(n.surfacePadding()).resize()}),r.exit().each(function(e){e.target(null)}).remove(),this.getCellSizes(),t.selectAll("#"+this.id()+" > div.borderHandle").each(function(){const e=E(this);e.classed("borderHandle_top")?(e.style("width",n._cellSizes.width+"px"),e.style("top",n._cellSizes.topHeight-3+"px")):e.classed("borderHandle_right")?(e.style("left",n._cellSizes.width-n._cellSizes.rightWidth+"px"),e.style("top",n._cellSizes.topHeight+3+"px"),e.style("height",n._cellSizes.rightHeight+"px")):e.classed("borderHandle_bottom")?(e.style("width",n._cellSizes.width+"px"),e.style("top",n._cellSizes.height-n._cellSizes.bottomHeight-3+"px")):e.classed("borderHandle_left")&&(e.style("left",n._cellSizes.leftWidth+"px"),e.style("height",n._cellSizes.leftHeight+"px"),e.style("top",n._cellSizes.topHeight+3+"px"))})}getCellSizes(){const e=this;e._cellSizes={};const t=this.element().node().getBoundingClientRect();e._cellSizes.width=t.width,e._cellSizes.height=t.height,this.element().selectAll("#"+this.id()+" > div > div.border-cell").each(function(){const t=E(this);if("function"==typeof t.node){const n=t.node().getBoundingClientRect();t.classed("border-cell-top")?e._cellSizes.topHeight=n.height:t.classed("border-cell-left")?(e._cellSizes.leftWidth=n.width,e._cellSizes.leftHeight=n.height):t.classed("border-cell-right")?(e._cellSizes.rightWidth=n.width,e._cellSizes.rightHeight=n.height):t.classed("border-cell-bottom")&&(e._cellSizes.bottomHeight=n.height)}}),["height","width","topHeight","bottomHeight","leftHeight","rightHeight","leftWidth","rightWidth"].forEach(function(t){e._cellSizes[t]=void 0===e._cellSizes[t]?0:e._cellSizes[t]})}postUpdate(e,t){const n=this;this.content().forEach(function(e){if(null!==e._element.node()&&e.widget()){const t=e.widget().getBBox(!1,!0),r=e.widget().getBBox(!0,!0);t.width===r.width&&t.height===r.height||n.lazyRender()}})}exit(e,t){this.content().forEach(e=>e.target(null)),super.exit(e,t)}},x(l,"_Border"),l);Zn(ur,"Border");let cr=ur;cr.prototype._class+=" layout_Border",cr.prototype.publish("designMode",!1,"boolean","Design Mode",null,{tags:["Basic"]}),cr.prototype.publish("content",[],"widgetArray","widgets",null,{tags:["Intermediate"]}),cr.prototype.publish("gutter",0,"number","Gap Between Widgets",null,{tags:["Basic"]}),cr.prototype.publish("topShrinkWrap",!1,"boolean","'Top' Cell shrinks to fit content",null,{tags:["Intermediate"]}),cr.prototype.publish("leftShrinkWrap",!1,"boolean","'Left' Cell shrinks to fit content",null,{tags:["Intermediate"]}),cr.prototype.publish("rightShrinkWrap",!1,"boolean","'Right' Cell shrinks to fit content",null,{tags:["Intermediate"]}),cr.prototype.publish("bottomShrinkWrap",!1,"boolean","'Bottom' Cell shrinks to fit content",null,{tags:["Intermediate"]}),cr.prototype.publish("topSize",0,"number","Height of the 'Top' Cell (px)",null,{tags:["Private"]}),cr.prototype.publish("leftSize",0,"number","Width of the 'Left' Cell (px)",null,{tags:["Private"]}),cr.prototype.publish("rightSize",0,"number","Width of the 'Right' Cell (px)",null,{tags:["Private"]}),cr.prototype.publish("bottomSize",0,"number","Height of the 'Bottom' Cell (px)",null,{tags:["Private"]}),cr.prototype.publish("topPercentage",20,"number","Percentage (of parent) Height of the 'Top' Cell",null,{tags:["Private"]}),cr.prototype.publish("leftPercentage",20,"number","Percentage (of parent) Width of the 'Left' Cell",null,{tags:["Private"]}),cr.prototype.publish("rightPercentage",20,"number","Percentage (of parent) Width of the 'Right' Cell",null,{tags:["Private"]}),cr.prototype.publish("bottomPercentage",20,"number","Percentage (of parent) Height of the 'Bottom' Cell",null,{tags:["Private"]}),cr.prototype.publish("surfacePadding",0,"number","Cell Padding (px)",null,{tags:["Intermediate"]}),cr.prototype.publish("sectionTypes",[],"array","Section Types sharing an index with 'content' - Used to determine position/size.",null,{tags:["Private"]});const dr=(x(a=class{_div;_overlay=!1;_overflowX="visible";_overflowY="visible";_widget;constructor(e){this._div=e}overlay(e){return arguments.length?(this._overlay=e,this):this._overlay}overflowX(e){return arguments.length?(this._overflowX=e,this._div.style("overflow-x",e),this):this._overflowX}overflowY(e){return arguments.length?(this._overflowY=e,this._div.style("overflow-y",e),this):this._overflowY}element(){return this._div}node(){return this._div.node()}widget(e){return arguments.length?(this._widget!==e&&(this._widget&&this._widget.target(null),this._widget=e,this._widget&&this._widget.target(this._div.node())),this):this._widget}resize(e){return this._widget&&(this._div.style("width",`${e.width}px`).style("height",`${e.height}px`),this._widget.resize(e)),this}async render(e,t,n){let r=this.overflowX();this.overlay()||"visible"!==r||(r=null);let o=this.overflowY();return this.overlay()||"visible"!==o||(o=null),this._div.style("height",this.overlay()?"0px":null).style("overflow-x",r).style("overflow-y",o),this._widget?this._widget.renderPromise().then(r=>{if(e&&this._widget.visible()){const e=this._widget.getBBox();return e.width+=8,void 0!==t&&e.height>t&&(e.width+=A.getScrollbarWidth()),void 0!==n&&e.width>n&&(e.height+=A.getScrollbarWidth()),this.overlay()?e.height=0:e.height+=4,e}return e?{x:0,y:0,width:0,height:0}:void 0}):Promise.resolve(e?{x:0,y:0,width:0,height:0}:void 0)}},"_WidgetDiv"),a);Zn(dr,"WidgetDiv");let hr=dr;const pr=(x(s=class extends C{_bodyElement;_topWA;_leftWA;_centerWA;_rightWA;_bottomWA;_topPrevOverflow;_leftPrevOverflow;_rightPrevOverflow;_bottomPrevOverflow;constructor(){super(),this._tag="div"}enter(e,t){super.enter(e,t);const n=t.append("header");this._bodyElement=t.append("div").attr("class","body");const r=this._bodyElement.append("div").attr("class","center"),o=this._bodyElement.append("div").attr("class","lhs"),i=this._bodyElement.append("div").attr("class","rhs"),l=t.append("div").attr("class","footer");this._topWA=new hr(n),this._centerWA=new hr(r),this._leftWA=new hr(o),this._rightWA=new hr(i),this._bottomWA=new hr(l)}update(e,t){super.update(e,t),this._topWA.element().style("display",this.showTop()?null:"none"),this._rightWA.element().style("display",this.showRight()?null:"none"),this._bottomWA.element().style("display",this.showBottom()?null:"none"),this._leftWA.element().style("display",this.showLeft()?null:"none"),this.topOverflowX()!==this._topWA.overflowX()&&this._topWA.overflowX(this.topOverflowX()),this.rightOverflowX()!==this._rightWA.overflowX()&&this._rightWA.overflowX(this.rightOverflowX()),this.bottomOverflowX()!==this._bottomWA.overflowX()&&this._bottomWA.overflowX(this.bottomOverflowX()),this.leftOverflowX()!==this._leftWA.overflowX()&&this._leftWA.overflowX(this.leftOverflowX()),this.topOverflowY()!==this._topWA.overflowY()&&this._topWA.overflowY(this.topOverflowY()),this.rightOverflowY()!==this._rightWA.overflowY()&&this._rightWA.overflowY(this.rightOverflowY()),this.bottomOverflowY()!==this._bottomWA.overflowY()&&this._bottomWA.overflowY(this.bottomOverflowY()),this.leftOverflowY()!==this._leftWA.overflowY()&&this._leftWA.overflowY(this.leftOverflowY()),this.element().style("width",`${this.width()}px`).style("height",`${this.height()}px`)}targetNull(e){e&&e.target(null)}exit(e,t){this.targetNull(this.center()),this.targetNull(this.bottom()),this.targetNull(this.right()),this.targetNull(this.left()),this.targetNull(this.top()),super.exit(e,t)}swap(e,t){const n=this[e](),r=this[t]();return this.targetNull(n),this.targetNull(r),this[`_${e}WA`].widget(null),this[`_${t}WA`].widget(null),this[e](r),this[t](n),this}render(e){return super.render(t=>{this._topWA?this._topWA.widget(this.top()).overlay(this.topOverlay()).render(!0).then(async t=>{const n=await this._bottomWA.widget(this.bottom()).render(!0,void 0,this.width()),r=this.height()-(t.height+n.height),o=await this._leftWA.widget(this.left()).render(!0,r),i=await this._rightWA.widget(this.right()).render(!0,r);this.bottomHeight_exists()&&(n.height=this.bottomHeight());const l=this.width()-(o.width+i.width),a=this.height()-(t.height+n.height),s=this.centerOverflowX(),u=this.centerOverflowY(),c=-1!==["auto","scroll"].indexOf(s),d=-1!==["auto","scroll"].indexOf(u);(c||d)&&this._centerWA.overflowX(this.centerOverflowX()).overflowY(this.centerOverflowY()).widget(this.center()).resize({width:l,height:a}).render(),this._bodyElement.style("height",`${a}px`);const h=[this._topWA.overflowX(this.topOverflowX()).overflowY(this.topOverflowY()).resize({width:this.width(),height:t.height}).render(),this._leftWA.overflowX(this.leftOverflowX()).overflowY(this.leftOverflowY()).resize({width:o.width,height:a}).render(),this._rightWA.overflowX(this.rightOverflowX()).overflowY(this.rightOverflowY()).resize({width:i.width,height:a}).render(),this._centerWA.overflowX(this.centerOverflowX()).overflowY(this.centerOverflowY()).widget(this.center()).resize({width:l,height:a}).render(),this._bottomWA.overflowX(this.bottomOverflowX()).overflowY(this.bottomOverflowY()).resize({width:this.width(),height:n.height}).render()];Promise.all(h).then(t=>{e&&e(this)})}):e&&e(this)})}},"_Border2"),s);Zn(pr,"Border2");let fr=pr;fr.prototype._class+=" layout_Border2",fr.prototype.publish("showTop",!0,"boolean","If true, top widget adapter will display"),fr.prototype.publish("showRight",!0,"boolean","If true, right widget adapter will display"),fr.prototype.publish("showBottom",!0,"boolean","If true, bottom widget adapter will display"),fr.prototype.publish("showLeft",!0,"boolean","If true, left widget adapter will display"),fr.prototype.publish("topOverflowX","visible","set","Sets the overflow-x css style for the top widget adapter",["hidden","scroll","visible","auto"]),fr.prototype.publish("rightOverflowX","visible","set","Sets the overflow-x css style for the right widget adapter",["hidden","scroll","visible","auto"]),fr.prototype.publish("bottomOverflowX","visible","set","Sets the overflow-x css style for the bottom widget adapter",["hidden","scroll","visible","auto"]),fr.prototype.publish("leftOverflowX","visible","set","Sets the overflow-x css style for the left widget adapter",["hidden","scroll","visible","auto"]),fr.prototype.publish("centerOverflowX","visible","set","Sets the overflow-x css style for the center widget adapter",["hidden","scroll","visible","auto"]),fr.prototype.publish("topOverflowY","visible","set","Sets the overflow-y css style for the top widget adapter",["hidden","scroll","visible","auto"]),fr.prototype.publish("rightOverflowY","visible","set","Sets the overflow-y css style for the right widget adapter",["hidden","scroll","visible","auto"]),fr.prototype.publish("bottomOverflowY","visible","set","Sets the overflow-y css style for the bottom widget adapter",["hidden","scroll","visible","auto"]),fr.prototype.publish("leftOverflowY","visible","set","Sets the overflow-y css style for the left widget adapter",["hidden","scroll","visible","auto"]),fr.prototype.publish("centerOverflowY","visible","set","Sets the overflow-y css style for the center widget adapter",["hidden","scroll","visible","auto"]),fr.prototype.publish("top",null,"widget","Top Widget",void 0,{render:!1}),fr.prototype.publish("topOverlay",!1,"boolean","Overlay Top Widget"),fr.prototype.publish("left",null,"widget","Left Widget",void 0,{render:!1}),fr.prototype.publish("center",null,"widget","Center Widget",void 0,{render:!1}),fr.prototype.publish("right",null,"widget","Right Widget",void 0,{render:!1}),fr.prototype.publish("bottom",null,"widget","Bottom Widget",void 0,{render:!1}),fr.prototype.publish("bottomHeight",null,"number","Bottom Fixed Height",void 0,{optional:!0});const gr=(x(u=class extends C{_prevActive=0;_root;activeWidget(){return this.widgets()[this.active()]}enter(e,t){super.enter(e,t),this._root=t.append("div").attr("id",`${this.id()}_root`)}update(e,t){super.update(e,t);const n=this.active(),r=this.width();this._root.style("width",`${r}px`).style("height",`${this.height()}px`);const o=this._root.selectAll(`#${this.id()}_root > .carouselItem`).data(this.widgets(),e=>e.id()),i=o.enter().append("div").attr("class","carouselItem").each(function(e){e.target(this)}).merge(o).style("left",(e,t)=>(t-this._prevActive)*r+"px").style("width",`${r}px`);this._prevActive!==n&&(i.style("display",(e,t)=>t===this._prevActive||t===n?null:"none").transition().duration(this.transitionDuration()).style("left",(e,t)=>(t-n)*r+"px").on("end",function(e,t){E(this).style("display",()=>t===n?null:"none")}),this._prevActive=n),o.exit().each(function(e){e.target(null)}).remove()}exit(e,t){this.widgets().forEach(e=>e.target(null)),super.exit(e,t)}render(e){return super.render(t=>{if(!this.visible()||this.isDOMHidden())e&&e(t);else{const n=this.activeWidget();n&&n.resize(this.size()).render(n=>{e&&e(t)})}})}},"_Carousel"),u);Zn(gr,"Carousel");let mr=gr;mr.prototype._class+=" layout_Carousel",mr.prototype.publish("widgets",[],"widgetArray","Widgets",null,{render:!1}),mr.prototype.publish("active",0,"number","Active widget"),mr.prototype.publish("transitionDuration",500,"number","Transition duration");var yr=Math.PI,br=2*yr,vr=1e-6,wr=br-vr;function _r(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function xr(){return new _r}function Cr(e){return Zn(function(){return e},"constant")}x(_r,"tt"),x(xr,"et"),x(Cr,"it"),Zn(_r,"Path"),Zn(xr,"path"),_r.prototype=xr.prototype={constructor:_r,moveTo:/* @__PURE__ */Zn(function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},"moveTo"),closePath:/* @__PURE__ */Zn(function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},"closePath"),lineTo:/* @__PURE__ */Zn(function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},"lineTo"),quadraticCurveTo:/* @__PURE__ */Zn(function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},"quadraticCurveTo"),bezierCurveTo:/* @__PURE__ */Zn(function(e,t,n,r,o,i){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+i)},"bezierCurveTo"),arcTo:/* @__PURE__ */Zn(function(e,t,n,r,o){e=+e,t=+t,n=+n,r=+r,o=+o;var i=this._x1,l=this._y1,a=n-e,s=r-t,u=i-e,c=l-t,d=u*u+c*c;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>vr)if(Math.abs(c*a-s*u)>vr&&o){var h=n-i,p=r-l,f=a*a+s*s,g=h*h+p*p,m=Math.sqrt(f),y=Math.sqrt(d),b=o*Math.tan((yr-Math.acos((f+d-g)/(2*m*y)))/2),v=b/y,w=b/m;Math.abs(v-1)>vr&&(this._+="L"+(e+v*u)+","+(t+v*c)),this._+="A"+o+","+o+",0,0,"+ +(c*h>u*p)+","+(this._x1=e+w*a)+","+(this._y1=t+w*s)}else this._+="L"+(this._x1=e)+","+(this._y1=t)},"arcTo"),arc:/* @__PURE__ */Zn(function(e,t,n,r,o,i){e=+e,t=+t,i=!!i;var l=(n=+n)*Math.cos(r),a=n*Math.sin(r),s=e+l,u=t+a,c=1^i,d=i?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+s+","+u:(Math.abs(this._x1-s)>vr||Math.abs(this._y1-u)>vr)&&(this._+="L"+s+","+u),n&&(d<0&&(d=d%br+br),d>wr?this._+="A"+n+","+n+",0,1,"+c+","+(e-l)+","+(t-a)+"A"+n+","+n+",0,1,"+c+","+(this._x1=s)+","+(this._y1=u):d>vr&&(this._+="A"+n+","+n+",0,"+ +(d>=yr)+","+c+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},"arc"),rect:/* @__PURE__ */Zn(function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},"rect"),toString:/* @__PURE__ */Zn(function(){return this._},"toString")},Zn(Cr,"constant");var Sr=Math.PI,kr=2*Sr;const Tr={draw:/* @__PURE__ */Zn(function(e,t){var n=Math.sqrt(t/Sr);e.moveTo(n,0),e.arc(0,0,n,0,kr)},"draw")},Pr={draw:/* @__PURE__ */Zn(function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()},"draw")};var Er=Math.sqrt(1/3),zr=2*Er;const Ir={draw:/* @__PURE__ */Zn(function(e,t){var n=Math.sqrt(t/zr),r=n*Er;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()},"draw")};var Rr=Math.sin(Sr/10)/Math.sin(7*Sr/10),Ar=Math.sin(kr/10)*Rr,Dr=-Math.cos(kr/10)*Rr;const Fr={draw:/* @__PURE__ */Zn(function(e,t){var n=Math.sqrt(.8908130915292852*t),r=Ar*n,o=Dr*n;e.moveTo(0,-n),e.lineTo(r,o);for(var i=1;i<5;++i){var l=kr*i/5,a=Math.cos(l),s=Math.sin(l);e.lineTo(s*n,-a*n),e.lineTo(a*r-s*o,s*r+a*o)}e.closePath()},"draw")},Lr={draw:/* @__PURE__ */Zn(function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)},"draw")};var Or=Math.sqrt(3);const Mr={draw:/* @__PURE__ */Zn(function(e,t){var n=-Math.sqrt(t/(3*Or));e.moveTo(0,2*n),e.lineTo(-Or*n,-n),e.lineTo(Or*n,-n),e.closePath()},"draw")};var Br=-.5,Hr=Math.sqrt(3)/2,Nr=1/Math.sqrt(12),Wr=3*(Nr/2+1);const Ur={draw:/* @__PURE__ */Zn(function(e,t){var n=Math.sqrt(t/Wr),r=n/2,o=n*Nr,i=r,l=n*Nr+n,a=-i,s=l;e.moveTo(r,o),e.lineTo(i,l),e.lineTo(a,s),e.lineTo(Br*r-Hr*o,Hr*r+Br*o),e.lineTo(Br*i-Hr*l,Hr*i+Br*l),e.lineTo(Br*a-Hr*s,Hr*a+Br*s),e.lineTo(Br*r+Hr*o,Br*o-Hr*r),e.lineTo(Br*i+Hr*l,Br*l-Hr*i),e.lineTo(Br*a+Hr*s,Br*s-Hr*a),e.closePath()},"draw")};function jr(){var e=Cr(Tr),t=Cr(64),n=null;function r(){var r;if(n||(n=r=xr()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return x(r,"o"),Zn(r,"symbol"),r.type=function(t){return arguments.length?(e="function"==typeof t?t:Cr(t),r):e},r.size=function(e){return arguments.length?(t="function"==typeof e?e:Cr(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r}x(jr,"xt"),Zn(jr,"d3Symbol");var $r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vr=/* @__PURE__ */Zn(function(e){return e},"d3_identity"),Gr=/* @__PURE__ */Zn(function(e){for(var t=[],n=0,r=e.length;n<r;n++)t[n]=e[r-n-1];return t},"d3_reverse"),qr=/* @__PURE__ */Zn(function(e,t){e.each(function(){var e,n=E(this),r=n.text().split(/\s+/).reverse(),o=[];n.attr("y");for(var i=parseFloat(n.attr("dy"))||0,l=n.text(null).append("tspan").attr("x",0).attr("dy",i+"em");e=r.pop();)o.push(e),l.text(o.join(" ")),l.node().getComputedTextLength()>t&&o.length>1&&(o.pop(),l.text(o.join(" ")),o=[e],l=n.append("tspan").attr("x",0).attr("dy",1.2+i+"em").text(e))})},"d3_textWrapping"),Yr=/* @__PURE__ */Zn(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n=arguments[2],r=arguments[3],o=arguments[4];if("object"===(void 0===t?"undefined":$r(t))){if(0===t.length)return e;for(var i=t.length;i<e.length;i++)t.push(e[i]);return t}if("function"==typeof t){for(var l=[],a=e.length,s=0;s<a;s++)l.push(t({i:s,genLength:a,generatedLabels:e,domain:n,range:r,labelDelimiter:o}));return l}return e},"d3_mergeLabels"),Xr=/* @__PURE__ */Zn(function(e,t,n){var r=[];if(t.length>1)r=t;else for(var o=e.domain(),i=(o[o.length-1]-o[0])/(t-1),l=0;l<t;l++)r.push(o[0]+l*i);var a=r.map(n);return{data:r,labels:a,feature:/* @__PURE__ */Zn(function(t){return e(t)},"feature")}},"d3_linearLegend"),Kr=/* @__PURE__ */Zn(function(e,t,n){var r=e.range().map(function(r){var o=e.invertExtent(r);return t(o[0])+" "+n+" "+t(o[1])});return{data:e.range(),labels:r,feature:Vr}},"d3_quantLegend"),Qr=/* @__PURE__ */Zn(function(e){return{data:e.domain(),labels:e.domain(),feature:/* @__PURE__ */Zn(function(t){return e(t)},"feature")}},"d3_ordinalLegend"),Jr=/* @__PURE__ */Zn(function(e,t,n){e.call("cellover",n,t)},"d3_cellOver"),Zr=/* @__PURE__ */Zn(function(e,t,n){e.call("cellout",n,t)},"d3_cellOut"),eo=/* @__PURE__ */Zn(function(e,t,n){e.call("cellclick",n,t)},"d3_cellClick"),to={d3_drawShapes:/* @__PURE__ */Zn(function(e,t,n,r,o,i){"rect"===e?t.attr("height",n).attr("width",r):"circle"===e?t.attr("r",o):"line"===e?t.attr("x1",0).attr("x2",r).attr("y1",0).attr("y2",0):"path"===e&&t.attr("d",i)},"d3_drawShapes"),d3_addText:/* @__PURE__ */Zn(function(e,t,n,r,o){t.append("text").attr("class",r+"label");var i=e.selectAll("g."+r+"cell text."+r+"label").data(n).text(Vr);return o&&e.selectAll("g."+r+"cell text."+r+"label").call(qr,o),i},"d3_addText"),d3_calcType:/* @__PURE__ */Zn(function(e,t,n,r,o,i){var l=e.invertExtent?Kr(e,o,i):e.ticks?Xr(e,n,o):Qr(e),a=e.range&&e.range()||e.domain();return l.labels=Yr(l.labels,r,e.domain(),a,i),t&&(l.labels=Gr(l.labels),l.data=Gr(l.data)),l},"d3_calcType"),d3_filterCells:/* @__PURE__ */Zn(function(e,t){var n=e.data.map(function(t,n){return{data:t,label:e.labels[n]}}).filter(t),r=n.map(function(e){return e.data}),o=n.map(function(e){return e.label});return e.data=e.data.filter(function(e){return-1!==r.indexOf(e)}),e.labels=e.labels.filter(function(e){return-1!==o.indexOf(e)}),e},"d3_filterCells"),d3_placement:/* @__PURE__ */Zn(function(e,t,n,r,o,i){t.attr("transform",n),r.attr("transform",o),"horizontal"===e&&r.style("text-anchor",i)},"d3_placement"),d3_addEvents:/* @__PURE__ */Zn(function(e,t){e.on("mouseover.legend",function(e){Jr(t,e,this)}).on("mouseout.legend",function(e){Zr(t,e,this)}).on("click.legend",function(e){eo(t,e,this)})},"d3_addEvents"),d3_title:/* @__PURE__ */Zn(function(e,t,n,r){if(""!==t){e.selectAll("text."+n+"legendTitle").data([t]).enter().append("text").attr("class",n+"legendTitle"),e.selectAll("text."+n+"legendTitle").text(t),r&&e.selectAll("text."+n+"legendTitle").call(qr,r);var o=e.select("."+n+"legendCells"),i=e.select("."+n+"legendTitle").nodes().map(function(e){return e.getBBox().height})[0],l=-o.nodes().map(function(e){return e.getBBox().x})[0];o.attr("transform","translate("+l+","+i+")")}},"d3_title"),d3_defaultLocale:{format:S,formatPrefix:q},d3_defaultFormatSpecifier:".01f",d3_defaultDelimiter:"to"};function no(){var e=V(),t="rect",n=15,r=15,o=10,i=2,l=[5],a=void 0,s=[],u="",c=!1,d="",h=to.d3_defaultLocale,p=to.d3_defaultFormatSpecifier,f=10,g="middle",m=to.d3_defaultDelimiter,y=void 0,b="vertical",v=!1,w=void 0,_=void 0,C=G("cellover","cellout","cellclick");function S(x){var S=to.d3_calcType(e,v,l,s,h.format(p),m);x.selectAll("g").data([e]).enter().append("g").attr("class",u+"legendCells"),a&&to.d3_filterCells(S,a);var k=x.select("."+u+"legendCells").selectAll("."+u+"cell").data(S.data),T=k.enter().append("g").attr("class",u+"cell");T.append(t).attr("class",u+"swatch");var P=x.selectAll("g."+u+"cell "+t+"."+u+"swatch").data(S.data);to.d3_addEvents(T,C),k.exit().transition().style("opacity",0).remove(),P.exit().transition().style("opacity",0).remove(),P=P.merge(P),to.d3_drawShapes(t,P,r,n,o,w);var E=to.d3_addText(x,T,S.labels,u,y);k=T.merge(k);var z=E.nodes().map(function(e){return e.getBBox()}),I=P.nodes().map(function(e){return e.getBBox()});c?P.attr("class",function(e){return u+"swatch "+S.feature(e)}):"line"==t?P.style("stroke",S.feature):P.style("fill",S.feature);var R,A=void 0,D=void 0,F="start"==g?0:"middle"==g?.5:1;"vertical"===b?(R=z.map(function(e,t){return Math.max(e.height,I[t].height)}),A=/* @__PURE__ */Zn(function(e,t){return"translate(0, "+(K(R.slice(0,t))+t*i)+")"},"cellTrans"),D=/* @__PURE__ */Zn(function(e,t){return"translate( "+(I[t].width+I[t].x+f)+", "+(I[t].y+I[t].height/2+5)+")"},"textTrans")):"horizontal"===b&&(A=/* @__PURE__ */Zn(function(e,t){return"translate("+t*(I[t].width+i)+",0)"},"cellTrans"),D=/* @__PURE__ */Zn(function(e,t){return"translate("+(I[t].width*F+I[t].x)+",\n "+(I[t].height+I[t].y+f+8)+")"},"textTrans")),to.d3_placement(b,k,A,E,D,g),to.d3_title(x,d,u,_),k.transition().style("opacity",1)}return x(S,"B"),Zn(S,"legend"),S.scale=function(t){return arguments.length?(e=t,S):e},S.cells=function(e){return arguments.length?((e.length>1||e>=2)&&(l=e),S):l},S.cellFilter=function(e){return arguments.length?(a=e,S):a},S.shape=function(e,n){return arguments.length?(("rect"==e||"circle"==e||"line"==e||"path"==e&&"string"==typeof n)&&(t=e,w=n),S):t},S.shapeWidth=function(e){return arguments.length?(n=+e,S):n},S.shapeHeight=function(e){return arguments.length?(r=+e,S):r},S.shapeRadius=function(e){return arguments.length?(o=+e,S):o},S.shapePadding=function(e){return arguments.length?(i=+e,S):i},S.labels=function(e){return arguments.length?(s=e,S):s},S.labelAlign=function(e){return arguments.length?("start"!=e&&"end"!=e&&"middle"!=e||(g=e),S):g},S.locale=function(e){return arguments.length?(h=Y(e),S):h},S.labelFormat=function(e){return arguments.length?(p=X(e),S):S.locale().format(p)},S.labelOffset=function(e){return arguments.length?(f=+e,S):f},S.labelDelimiter=function(e){return arguments.length?(m=e,S):m},S.labelWrap=function(e){return arguments.length?(y=e,S):y},S.useClass=function(e){return arguments.length?(!0!==e&&!1!==e||(c=e),S):c},S.orient=function(e){return arguments.length?("horizontal"!=(e=e.toLowerCase())&&"vertical"!=e||(b=e),S):b},S.ascending=function(e){return arguments.length?(v=!!e,S):v},S.classPrefix=function(e){return arguments.length?(u=e,S):u},S.title=function(e){return arguments.length?(d=e,S):d},S.titleWidth=function(e){return arguments.length?(_=e,S):_},S.textWrap=function(e){return arguments.length?(textWrap=e,S):textWrap},S.on=function(){var e=C.on.apply(C,arguments);return e===C?S:e},S}x(no,"Ft"),Zn(no,"color");const ro=(x(c=class extends F{_owner;_targetWidget;_targetWidgetMonitor;_legendOrdinal;_disabled=[];_symbolTypeMap={circle:Tr,cross:Pr,diamond:Ir,square:Lr,star:Fr,triangle:Mr,wye:Ur};constructor(e){super(),this._owner=e,this._drawStartPos="origin";const t=this;this._legendOrdinal=no().shape("path",jr().type(Tr).size(150)()).shapePadding(10).shapeRadius(10).on("cellclick",function(e){t.onClick(e,this)}).on("cellover",e=>{t.onOver(e,this)}).on("cellout",e=>{t.onOut(e,this)})}isDisabled(e){return void 0!==e&&("string"==typeof e?0===e.indexOf("__")||this._disabled.indexOf(e)>=0:e instanceof L.Field?0===e.id().indexOf("__")||this._disabled.indexOf(e.id())>=0:this._disabled.indexOf(e)>=0)}filteredFields(){switch(this.dataFamily()){case"2D":return this.fields();case"ND":return this.fields().filter(e=>!this.isDisabled(e))}return this.fields()}filteredColumns(){switch(this.dataFamily()){case"2D":return this.columns();case"ND":return this.columns().filter(e=>!this.isDisabled(e))}return this.columns()}filteredData(){switch(this.dataFamily()){case"2D":return this.data().filter(e=>!this.isDisabled(e[0]));case"ND":const e={};let t=!1;return this.columns().forEach((n,r)=>{const o=this.isDisabled(n);e[r]=o,o&&(t=!0)}),t?this.data().map(t=>t.filter((t,n)=>!e[n])):this.data()}return this.data()}isRainbow(){const e=this.getWidget();return e&&e._palette&&"rainbow"===e._palette.type()}targetWidget(e){if(!arguments.length)return this._targetWidget;if(this._targetWidget=e,this._targetWidgetMonitor&&(this._targetWidgetMonitor.remove(),delete this._targetWidgetMonitor),this._targetWidget){const e=this;this._targetWidgetMonitor=this._targetWidget.monitor(function(t,n,r,o){switch(t){case"chart":case"columns":case"data":case"paletteID":e.lazyRender()}})}return this}getWidget(){return this._targetWidget&&"composite_MultiChart"===this._targetWidget.classID()?this._targetWidget.chart():this._targetWidget}getPalette(){const e=this.getWidget();if(e&&e._palette)switch(e._palette.type()){case"ordinal":return O.ordinal(e._palette.id());case"rainbow":return O.rainbow(e._palette.id())}return O.ordinal("default")}getPaletteType(){return this.getPalette().type()}fillColorFunc(){const e=this.getWidget();if(e&&e.fillColor)return e._palette&&e.paletteID&&e._palette.name!==e.paletteID()&&(e._palette=e._palette.switch(e.paletteID())),(t,n,r)=>e.fillColor(t,n,r);const t=O.ordinal(e&&e.paletteID&&e.paletteID()||"default");return(e,n,r)=>t(n)}fillColor(e,t,n){return this.fillColorFunc()(e,t,n)}_g;enter(e,t){super.enter(e,t),this._g=t.append("g").attr("class","legendOrdinal")}calcMetaData(){let e=[],t=0,n=0;const r=this.columns().length;if(this._targetWidget){const o=this.columns();switch(this.getPaletteType()){case"ordinal":const i=this.fillColorFunc();let l=0;switch(this.dataFamily()){case"2D":e=this.data().map(function(e,o){l=this.data()[o].slice(1,r).reduce((e,t)=>e+t,0);const a=this.isDisabled(e[0]);a||(t+=l);const s=e[0]+(!a&&this.showSeriesTotal()?` (${l})`:""),u=this.textSize(s);return n<u.width&&(n=u.width),[i(e,e[0],!1),e[0],s]},this);break;case"ND":e=this.columns().filter(e=>0!==e.indexOf("__")).filter(function(e,t){return t>0}).map(function(e,r){l=this.data().reduce((e,t)=>e+t[r+1],0);const a=this.isDisabled(o[r+1]),s=e+(!a&&this.showSeriesTotal()?` (${l})`:"");a||(t+=l);const u=this.textSize(s);return n<u.width&&(n=u.width),[i(void 0,e,!1),e,s]},this);break;default:e=this.columns().map(function(e){return[i(void 0,e,!1),e]},this)}break;case"rainbow":const a=this.getPalette(),s=S(this.rainbowFormat()),u=this.getWidget(),c=this.rainbowBins(),d=u._dataMinWeight,h=u._dataMaxWeight,p=(h-d)/(c-1);e.push([a(d,d,h),s(d)]);for(let t=1;t<c-1;++t){let n=p*t;Math.floor(n)>parseInt(e[0][1])&&(n=Math.floor(n)),e.push([a(n,d,h),s(n)])}e.push([a(h,d,h),s(h)])}}return{dataArr:e,total:t,maxLabelWidth:n}}update(e,t){super.update(e,t);const{dataArr:n,maxLabelWidth:r,total:o}=this.calcMetaData(),i=this.shapeRadius(),l=this.radiusToSymbolSize(i);let a=this.itemPadding();"horizontal"===this.orientation()&&(a+=r-2*i);const s=M().domain(n.map(e=>e[1])).range(n.map(e=>e[0]));this._legendOrdinal.shape("path",jr().type(this._symbolTypeMap[this.symbolType()]).size(l)()).orient(this.orientation()).title(this.title()).labelWrap(this.labelMaxWidth()).labelAlign(this.labelAlign()).shapePadding(a).scale(s).labels(e=>n[e.i][2]),this._g.call(this._legendOrdinal),this.updateDisabled(t,n);const u=this._g.select(".legendCells").node().getBBox();let c=Math.abs(u.x),d=Math.abs(u.y)+1;"horizontal"===this.orientation()?("start"===this.labelAlign()?c+=1:"end"===this.labelAlign()&&(c-=1),this.width()>u.width&&(c+=(this.width()-u.width)/2)):"vertical"===this.orientation()&&(c+=1,this._containerSize.height>u.height)&&(d+=(this.height()-u.height)/2),this._g.attr("transform",`translate(${c}, ${d})`),this.pos({x:0,y:0}),this._legendOrdinal.labelOffset(this.itemPadding());const h=this._g.selectAll(".legendTotal").data(n.length&&this.showLegendTotal()?[o]:[]),p=`Total: ${o}`,f=-c,g=u.height+this.itemPadding()+1;this.enableOverflowScroll(!1),this.enableOverflow(!0),h.enter().append("text").classed("legendTotal",!0).merge(h).attr("transform",`translate(${f}, ${g})`).text(p),h.exit().remove()}updateDisabled(e,t){e.style("cursor","pointer").selectAll("path.swatch").filter((e,n)=>n<t.length).style("stroke",(e,n)=>t[n][0]).style("fill",(e,n)=>this._disabled.indexOf(e)<0?t[n][0]:"white")}postUpdate(e,t){let n;this._boundingBox&&(n=this._boundingBox.width,this._boundingBox.width=this._size.width),super.postUpdate(e,t),void 0!==n&&(this._boundingBox.width=n),this._parentRelativeDiv.style("overflow","hidden")}exit(e,t){super.exit(e,t)}radiusToSymbolSize(e){const t=Math.pow(e,2)*Math.PI;switch(this.symbolType()){case"star":return.45*t;case"triangle":return.65*t;case"cross":case"diamond":case"wye":return.75*t;case"circle":return t;case"square":return 1.3*t}}onClick(e,t){if("ordinal"===this.getPaletteType())switch(this.dataFamily()){case"2D":case"ND":const t=this._disabled.indexOf(e);t<0?this._disabled.push(e):this._disabled.splice(t,1),this._owner.refreshColumns(),this._owner.refreshData(),this._owner.render()}}onOver(e,t){if(J(this._owner)&&"ordinal"===this.getPaletteType())switch(this.dataFamily()){case"2D":case"ND":this._disabled.indexOf(e)<0&&this._owner.highlightColumn(e)}}onOut(e,t){if(J(this._owner)&&"ordinal"===this.getPaletteType())switch(this.dataFamily()){case"2D":case"ND":this._owner.highlightColumn()}}onDblClick(e,t){}onMouseOver(e,t){}_containerSize;resize(e){let t;if(this.fitToContent()){this._containerSize=e;const n=this.getBBox();e.width>n.width&&(n.width=e.width),e.height>n.height&&(n.height=e.height),t=super.resize.apply(this,[{...n}])}else t=super.resize.apply(this,arguments);return t}},"_Legend"),c);Zn(ro,"Legend");let oo=ro;oo.prototype._class+=" layout_Legend",oo.prototype.publish("title","","string","Title"),oo.prototype.publish("symbolType","circle","set","Shape of each legend item",["circle","cross","diamond","square","star","triangle","wye"]),oo.prototype.publish("labelMaxWidth",null,"number","Max Label Width (pixels)",null,{optional:!0}),oo.prototype.publish("orientation","vertical","set","Orientation of Legend rows",["vertical","horizontal"],{tags:["Private"]}),oo.prototype.publish("dataFamily","ND","set","Type of data",["1D","2D","ND","map","graph","any"],{tags:["Private"]}),oo.prototype.publish("rainbowFormat",",","string","Rainbow number formatting",null,{tags:["Private"],optional:!0,disable:/* @__PURE__ */Zn(e=>!e.isRainbow(),"disable")}),oo.prototype.publish("rainbowBins",8,"number","Number of rainbow bins",null,{tags:["Private"],disable:/* @__PURE__ */Zn(e=>!e.isRainbow(),"disable")}),oo.prototype.publish("showSeriesTotal",!1,"boolean","Show value next to series"),oo.prototype.publish("showLegendTotal",!1,"boolean","Show a total of the series values under the legend",null),oo.prototype.publish("itemPadding",8,"number","Padding between legend items (pixels)"),oo.prototype.publish("shapeRadius",7,"number","Radius of legend shape (pixels)"),oo.prototype.publish("fitToContent",!0,"boolean","If true, resize will simply reapply the bounding box dimensions"),oo.prototype.publish("labelAlign","start","set","Horizontal alignment of legend item label (for horizontal orientation only)",["start","middle","end"],{optional:!0,disable:/* @__PURE__ */Zn(e=>"vertical"===e.orientation(),"disable")});const io=(x(d=class extends C{_widget;_relativeTarget;_fade;_modal;_modalHeader;_modalBody;_modalHeaderAnnotations;_modalHeaderCloseButton;_close;constructor(){super(),this._tag="div"}closeModal(){this.visible(!1)}getRelativeTarget(){let e;return this.relativeTargetId()&&(e=document.getElementById(this.relativeTargetId()),e)?e:!e&&(e=this.locateAncestor("layout_Grid"),e&&e.element)?e.element().node():document.body}setModalSize(){null!==this.fixedHeight()&&null!==this.fixedWidth()?this._modal.style("height",this.fixedHeight()).style("width",this.fixedWidth()).style("min-height",null).style("min-width",null).style("max-height",null).style("max-width",null):(this.minHeight()||this.minWidth())&&this._modal.style("min-height",this.minHeight()).style("min-width",this.minWidth()).style("max-height",this.maxHeight()).style("max-width",this.maxWidth());const e=this._modal.node().getBoundingClientRect(),t=this._modalHeader.node().getBoundingClientRect();return this._modalBody.style("height",e.height-t.height+"px").style("width",e.width),e}setFadePosition(e){this._fade.style("top",e.top+"px").style("left",e.left+"px").style("width",e.width+"px").style("height",e.height+"px")}setModalPosition(e){const t=this.setModalSize();if(null!==this.fixedTop()&&null!==this.fixedLeft())this._modal.style("top",`calc(${this.fixedTop()} + ${e.top}px)`).style("left",`calc(${this.fixedLeft()} + ${e.left}px)`);else if(null!==this.fixedHeight()&&null!==this.fixedWidth())this._modal.style("top",e.top+e.height/2-t.height/2+"px").style("left",e.left+e.width/2-t.width/2+"px");else if(this.minHeight()||this.minWidth()){const t=this._modal.node().getBoundingClientRect();this._modal.style("top",e.top+e.height/2-t.height/2+"px").style("left",e.left+e.width/2-t.width/2+"px")}}resize(e){return super.resize(),this._modal&&this.setModalSize(),this}resizeBodySync(e,t){const n=this._modalHeader.node().getBoundingClientRect();return this._modal.style("width",e+"px").style("height",t+n.height+"px").style("min-width",e+"px").style("min-height",t+n.height+"px"),this._modalHeader.style("width",e+"px"),this._modalBody.style("width",e+"px").style("height",t+"px"),this.minWidth(e+"px").minHeight(t+n.height+"px").resize({height:t+n.height,width:e})}enter(e,t){super.enter(e,t),this._fade=t.append("div").classed("layout_Modal-fade",!0).classed("layout_Modal-fadeClickable",this.enableClickFadeToClose()).classed("layout_Modal-fade-hidden",!this.showFade());const n=2*this.titleFontSize();this._modal=t.append("div").classed("layout_Modal-content",!0),this._modalHeader=this._modal.append("div").classed("layout_Modal-header",!0).style("color",this.titleFontColor()).style("font-size",this.titleFontSize()+"px").style("height",n+"px"),this._modalBody=this._modal.append("div").classed("layout_Modal-body",!0).style("height",`calc( 100% - ${n}px )`).style("overflow-x",this.overflowX()).style("overflow-y",this.overflowY()),this._modalHeader.append("div").classed("layout_Modal-title",!0).style("line-height",this.titleFontSize()+"px").style("top",this.titleFontSize()/2+"px").style("left",this.titleFontSize()/2+"px").text(this.formattedTitle()),this._modalHeaderAnnotations=this._modalHeader.append("div").classed("layout_Modal-annotations",!0),this._modalHeaderCloseButton=this._modalHeaderAnnotations.append("div").classed("layout_Modal-closeButton",!0).html('<i class="fa fa-close"></i>'),this._modalHeaderAnnotations.style("line-height",this.titleFontSize()+"px").style("right",this.titleFontSize()/2+"px").style("top",this.titleFontSize()/2+"px"),this._modalHeaderCloseButton.on("click",()=>{this.closeModal()}),this._fade.on("click",e=>{this.enableClickFadeToClose()&&this.closeModal()})}update(e,t){super.update(e,t),t.style("display",this.show()?null:"none"),this._fade.classed("layout_Modal-fade-hidden",!this.showFade()),this._relativeTarget=this.getRelativeTarget(),this.setModalSize();const n=this._relativeTarget.getBoundingClientRect();this.setFadePosition(n),this.setModalPosition(n),this.show()?(this._widget.target()||this._widget.target(this._modalBody.node()),this._widget.resize().render()):this._widget.target(null).render()}exit(e,t){this._widget&&this._widget.target(null),super.exit(e,t)}formattedTitle(){const e=this.title_exists()?this.title().trim():"";return e.length>0&&"("===e.slice(0,1)&&")"===e.slice(-1)?e.slice(1,-1):this.title()}},"_Modal"),d);Zn(io,"Modal");let lo=io;lo.prototype._class+=" layout_Modal",lo.prototype.publish("title",null,"string","title"),lo.prototype.publish("widget",null,"widget","widget"),lo.prototype.publish("titleFontSize",18,"number","titleFontSize (in pixels)"),lo.prototype.publish("titleFontColor","#ffffff","html-color","titleFontColor"),lo.prototype.publish("relativeTargetId",null,"string","relativeTargetId"),lo.prototype.publish("show",!0,"boolean","show"),lo.prototype.publish("showFade",!0,"boolean","showFade"),lo.prototype.publish("enableClickFadeToClose",!0,"boolean","enableClickFadeToClose"),lo.prototype.publish("minWidth","400px","string","minWidth"),lo.prototype.publish("minHeight","400px","string","minHeight"),lo.prototype.publish("maxWidth","800px","string","maxWidth"),lo.prototype.publish("maxHeight","800px","string","maxHeight"),lo.prototype.publish("fixedWidth",null,"string","fixedWidth"),lo.prototype.publish("fixedHeight",null,"string","fixedHeight"),lo.prototype.publish("fixedTop",null,"string","fixedTop"),lo.prototype.publish("fixedLeft",null,"string","fixedLeft"),lo.prototype.publish("overflowX","hidden","string","overflowX"),lo.prototype.publish("overflowY","scroll","string","overflowY");const ao=(x(h=class extends fr{_legend=new oo(this).enableOverflow(!0);_progressBar=new B;_autoScale=!1;_resolutions={tiny:{width:100,height:100},small:{width:300,height:300}};_modal=new lo;_highlight;_scale;_orig_size;_toggleInfo=(new H).faChar("fa-info-circle").tooltip(".Description").selected(!1).on("enabled",()=>""!==this.description()).on("click",()=>{if(this._toggleInfo.selected()){this._modal.title(this.title()).widget((new N).text(this.description())).show(!0).render();const e=this._modal._close;this._modal._close=()=>{this._toggleInfo.selected(!1).render(),this._modal._close=e}}}).on("mouseMove",()=>{}).on("mouseOut",()=>{});_toggleData=(new H).faChar("fa-table").tooltip("Data").on("click",()=>{this.dataVisible(this._toggleData.selected()),this.render()});_buttonDownload=(new W).faChar("fa-download").tooltip("Download").on("click",()=>{this.downloadCSV()});_buttonDownloadImage=(new W).faChar("fa-image").tooltip("Download Image").on("click",()=>{this.downloadPNG()});_toggleLegend=(new H).faChar("fa-list-ul").tooltip("Legend").selected(!1).on("click",()=>{const e=this._toggleLegend.selected();"bottom"===this.legendPosition()?this.showBottom(e):"right"===this.legendPosition()&&this.showRight(e),this.legendVisible(e),this.render()});_spacer=new U;_titleBar=(new j).buttons([this._toggleData,this._buttonDownload,this._buttonDownloadImage,this._spacer,this._toggleLegend]);_carousel=new mr;_table=new Qn;_widget;_hideLegendToggleList=["dgrid_Table","dgrid2_Table"];constructor(){super(),this._tag="div"}fields(e){return arguments.length?(super.fields(e),this._legend.fields(e),this.refreshFields(),this):super.fields()}refreshFields(){return this._widget.fields(this._legend.filteredFields()),this._table.fields(this._legend.filteredFields()),this}columns(e,t){return arguments.length?(super.columns(e,t),this._legend.columns(e,t),this.refreshColumns(),this):super.columns()}refreshColumns(){return this._widget.columns(this._legend.filteredColumns()),this._table.columns(this._legend.filteredColumns()),this}data(e){return arguments.length?(super.data(e),this._legend.data(e),this.refreshData(),this):super.data()}refreshData(){return this._widget.data(this._legend.filteredData()),this._table.data(this._legend.filteredData()),this}highlight(e){return arguments.length?(this._highlight=e,this):this._highlight}startProgress(){this._progressBar.start()}finishProgress(){this._progressBar.finish()}buttons(e){return arguments.length?(this._titleBar.buttons(e),this):this._titleBar.buttons()}downloadCSV(){const e=this.downloadTitle()?this.downloadTitle():this.title()?this.title():"data",t=this.downloadTimestampSuffix()?"_"+I.timestamp():"";return I.downloadString("CSV",this._widget.export("CSV"),e+t),this}downloadPNG(){const e=this.widget();return e instanceof F&&(this.legendVisible()?e.downloadPNG(this.title(),void 0,this._legend):e.downloadPNG(this.title())),this}highlightColumn(e){if(e){const t=`series-${this.cssTag(e)}`;this._centerWA.element().selectAll(".series").each(function(){const e=E(this),n=e.classed(t);e.classed("highlight",n).classed("lowlight",!n)})}else this._centerWA.element().selectAll(".series").classed("highlight",!1).classed("lowlight",!1);return this}getResponsiveMode(){return this.enableAutoscaling()?this._autoScale?this.size().width<=this._resolutions.tiny.width||this.size().height<=this._resolutions.tiny.height?"tiny":this.size().width<=this._resolutions.small.width||this.size().height<=this._resolutions.small.height?"small":"regular":"regular":"none"}setOrigSize(){this._orig_size=JSON.parse(JSON.stringify(this.size()))}enter(e,t){super.enter(e,t),this._modal.target(this.target()).relativeTargetId(this.id()),this.top(this._titleBar),this.center(this._carousel),this._legend.targetWidget(this._widget).orientation("vertical").title("").visible(!1),this._progressBar.enter(e,t),this.setOrigSize()}preUpdateTiny(e){e.selectAll("div.body,div.title-text,div.icon-bar").style("display","none")}preUpdateSmall(e){const t=this._orig_size.width/this._resolutions.small.width,n=this._orig_size.height/this._resolutions.small.height;this._scale=Math.min(t,n);const r=this._scale===t;this.size({width:r?this._resolutions.small.width:this._orig_size.width*(1/this._scale),height:r?this._orig_size.height*(1/this._scale):this._resolutions.small.height}),e.select("div.title-icon").style("position","static"),e.selectAll("lhs").style("display","none"),e.selectAll("div.body,div.title-text,div.icon-bar").style("display",""),e.selectAll("div.data-count").style("visibility","hidden"),e.style("transform",`scale(${this._scale})`)}preUpdateRegular(e){e.selectAll("div.body,div.title-text,div.icon-bar").style("display",""),e.selectAll("div.data-count").style("visibility","hidden"),e.select("div.title-icon").style("position","static"),e.style("transform","translate(0px,0px) scale(1)")}_prevdataVisible;_prevlegendVisible;_prevLegendPosition;_prevChartDataFamily;_prevChart;_prevButtons;update(e,t){super.update(e,t)}preUpdate(e,t){switch(super.preUpdate(e,t),this._prevLegendPosition!==this.legendPosition()&&(null!==this._legend.target()&&this._legend.target(null),void 0!==this._prevLegendPosition?this.swap(this._prevLegendPosition,this.legendPosition()):this[this.legendPosition()](this._legend),"right"===this.legendPosition()?(this.rightOverflowX("hidden"),this.rightOverflowY("auto"),this.bottomOverflowX("visible"),this.bottomOverflowY("visible")):(this.rightOverflowX("visible"),this.rightOverflowY("visible"),this.bottomOverflowX("auto"),this.bottomOverflowY("hidden")),this._prevLegendPosition=this.legendPosition()),this._prevdataVisible!==this.dataVisible()&&(this._prevdataVisible=this.dataVisible(),this._toggleData.selected(this._prevdataVisible),this._legend.visible(this._prevlegendVisible&&!this._prevdataVisible),this._carousel.active(this._prevdataVisible?1:0)),this._prevlegendVisible!==this.legendVisible()&&(this._prevlegendVisible=this.legendVisible(),this._toggleLegend.selected(this._prevlegendVisible),this._legend.visible(this._prevlegendVisible&&!this._prevdataVisible)),this._legend.orientation("bottom"===this.legendPosition()?"horizontal":"vertical"),this.showLeft(!this.left()),this.getResponsiveMode()){case"tiny":this.preUpdateTiny(t);break;case"small":this.preUpdateSmall(t);break;case"regular":this.preUpdateRegular(t)}const n="composite_MultiChart"===this._widget.classID()?this._widget.chart():this._widget;if(this._legend.dataFamily(n._dataFamily||"any"),this._prevChartDataFamily!==this._legend.dataFamily()&&(this._prevChartDataFamily=this._legend.dataFamily(),"any"===this._prevChartDataFamily)&&(this._toggleLegend.selected(!1),this._legend.visible(!1)),t.style("box-shadow",this.highlight()?`inset 0px 0px 0px ${this.highlightSize()}px ${this.highlightColor()}`:"none"),-1!==this._hideLegendToggleList.indexOf(n.classID())?(this._spacer.visible(!1),this._toggleLegend.visible(!1)):(this._spacer.visible(!0),this._toggleLegend.visible(!0)),this._prevChart!==n){this._prevChart=n;const e=n?n._titleBar||n._iconBar:void 0;if(e&&e instanceof $){this._prevButtons=this._prevButtons||[...this.buttons()];const t=[...e.buttons(),new U,...this._prevButtons];e.buttons([]).render(),this.buttons(t)}else this._prevButtons&&this.buttons(this._prevButtons)}const r=[];this.dataButtonVisible()||r.push(this._toggleData),this.downloadButtonVisible()||r.push(this._buttonDownload),this.downloadImageButtonVisible()||r.push(this._buttonDownloadImage),this.legendButtonVisible()||r.push(this._toggleLegend),this._buttonDownloadImage.enabled(this.widget()instanceof F),this._titleBar.hiddenButtons(r).visible(this.titleVisible()),this.topOverlay(this.titleOverlay()||!this.titleVisible())}postUpdate(e,t){switch(super.postUpdate(e,t),this.getResponsiveMode()){case"tiny":this.postUpdateTiny(t);break;case"small":this.postUpdateSmall(t);break;case"regular":this.postUpdateRegular(t)}}postUpdateTiny(e){e.selectAll("div.body,div.title-text,div.icon-bar").style("display","none"),e.selectAll("div.data-count").style("visibility","visible").style("font-size",this.titleIconFontSize()/3+"px").style("line-height",this.titleIconFontSize()/3+"px").style("left",this.titleIconFontSize()+"px").text(this.data().length),e.style("transform","translate(0px,0px) scale(1)");const t=e.selectAll("div.title-icon"),n=t.node(),r=e.node().parentElement.getBoundingClientRect();if(n){const n=t.node().getBoundingClientRect(),o=r.height/2;t.style("position","absolute").style("left",`calc(50% - ${n.width/2}px)`).style("top",o-n.height/2+"px"),e.selectAll("div.data-count").style("position","absolute").style("left",`calc(50% + ${n.width/2}px)`).style("top",o-n.height/2+"px")}}postUpdateSmall(e){e.selectAll("lhs").style("display","none"),e.selectAll("div.title-icon").style("position","static"),e.selectAll("div.body,div.title-text,div.icon-bar").style("display",""),e.selectAll("div.data-count").style("visibility","hidden");const t=e.node().getBoundingClientRect(),n=e.node().parentElement.getBoundingClientRect();e.style("transform",`translate(${n.x-t.x}px, ${n.y-t.y}px) scale(${this._scale})`)}postUpdateRegular(e){e.selectAll("div.title-icon").style("position","static"),e.selectAll("div.body,div.title-text,div.icon-bar").style("display",""),e.selectAll("div.data-count").style("visibility","hidden")}exit(e,t){this._progressBar.exit(e,t),this.right(null),this._legend.target(null),this.center(null),this._carousel.target(null),this.top(null),this._titleBar.target(null),this._modal.target(null),delete this._prevChart,delete this._prevButtons,delete this._prevChartDataFamily,delete this._prevPos,delete this._prevdataVisible,delete this._prevlegendVisible,super.exit(e,t)}click(e,t,n){}dblclick(e,t,n){}vertex_click(e,t,n,r){r&&r.vertex}vertex_dblclick(e,t,n,r){r&&r.vertex}edge_click(e,t,n,r){r&&r.edge}edge_dblclick(e,t,n,r){r&&r.edge}},"_ChartPanel"),h);Zn(ao,"ChartPanel");let so=ao;so.prototype._class+=" layout_ChartPanel",so.prototype.publishReset(),so.prototype.publishProxy("title","_titleBar"),so.prototype.publish("titleVisible",!0,"boolean"),so.prototype.publish("titleOverlay",!1,"boolean"),so.prototype.publishProxy("titleIcon","_titleBar"),so.prototype.publishProxy("titleIconFont","_titleBar"),so.prototype.publishProxy("titleFont","_titleBar"),so.prototype.publishProxy("titleIconFontSize","_titleBar"),so.prototype.publishProxy("titleFontSize","_titleBar"),so.prototype.publishProxy("description","_titleBar"),so.prototype.publishProxy("descriptionFont","_titleBar"),so.prototype.publishProxy("descriptionFontSize","_titleBar"),so.prototype.publish("dataVisible",!1,"boolean","Show data table"),so.prototype.publish("dataButtonVisible",!0,"boolean","Show data table button"),so.prototype.publish("downloadButtonVisible",!0,"boolean","Show data download button"),so.prototype.publish("downloadImageButtonVisible",!1,"boolean","Show image download button"),so.prototype.publish("downloadTitle","","string","File name when downloaded"),so.prototype.publish("downloadTimestampSuffix",!0,"boolean","Use timestamp as file name suffix"),so.prototype.publish("legendVisible",!1,"boolean","Show legend"),so.prototype.publish("legendButtonVisible",!0,"boolean","Show legend button"),so.prototype.publish("legendPosition","right","set","Position of legend",["right","bottom"]),so.prototype.publishProxy("legend_labelMaxWidth","_legend","labelMaxWidth"),so.prototype.publishProxy("legend_showSeriesTotal","_legend","showSeriesTotal"),so.prototype.publishProxy("legend_showLegendTotal","_legend","showLegendTotal"),so.prototype.publishProxy("legend_itemPadding","_legend","itemPadding"),so.prototype.publishProxy("legend_shapeRadius","_legend","shapeRadius"),so.prototype.publishProxy("legend_symbolType","_legend","symbolType"),so.prototype.publishProxy("legend_labelAlign","_legend","labelAlign"),so.prototype.publish("widget",null,"widget","Widget",void 0,{render:!1}),so.prototype.publish("enableAutoscaling",!1,"boolean"),so.prototype.publish("highlightSize",4,"number"),so.prototype.publish("highlightColor","#e67e22","html-color"),so.prototype.publishProxy("progress_halfLife","_progressBar","halfLife"),so.prototype.publishProxy("progress_decay","_progressBar","decay"),so.prototype.publishProxy("progress_size","_progressBar","size"),so.prototype.publishProxy("progress_color","_progressBar","color"),so.prototype.publishProxy("progress_blurBar","_progressBar","blurBar"),so.prototype.publishProxy("progress_blurSize","_progressBar","blurSize"),so.prototype.publishProxy("progress_blurColor","_progressBar","blurColor"),so.prototype.publishProxy("progress_blurOpacity","_progressBar","blurOpacity"),so.prototype.widget=function(e){if(!arguments.length)return this._widget;this._carousel.widgets([e,this._table]),this._widget=e,this._widget.fields(this._legend.filteredFields()).data(this._legend.filteredData());const t=this,n=this._widget;return n.click=function(){t.click.apply(t,arguments)},n.dblclick=function(){t.dblclick.apply(t,arguments)},n.vertex_click=function(){t.vertex_click.apply(t,arguments)},n.vertex_dblclick=function(){t.vertex_dblclick.apply(t,arguments)},n.edge_click=function(){t.edge_click.apply(t,arguments)},n.edge_dblclick=function(){t.edge_dblclick.apply(t,arguments)},this};const uo=(x(p=class extends C{constructor(){super()}enter(e,t){super.enter(e,t),E(e.parentNode).style("height","100%").style("width","100%")}update(e,t){super.update(e,t);const n=this,r=[];this.updateFlexParent(t);const o=t.selectAll(".FlexGrid-list-item").data(this.widgets(),e=>e.id());o.enter().append("div").classed("FlexGrid-list-item",!0).each(function(e){e.target(this)}).merge(o).style("min-height",this.itemMinHeight()+"px").style("min-width",this.itemMinWidth()+"px").style("flex-basis",(e,t)=>{const n=this.widgetsFlexBasis()[t];return void 0!==n?n:this.flexBasis()}).style("flex-grow",(e,t)=>{const n=this.widgetsFlexGrow()[t];return void 0!==n?n:this.flexGrow()}).style("border-width",this.borderWidth()+"px").style("border-color",this.itemBorderColor()).each(function(){this.firstChild.style.display="none"}).each(function(){const e=this.getBoundingClientRect();r.push([e.width,e.height])}).each(function(e,t){this.firstChild.style.display="block",e.resize({width:r[t][0]-2*n.borderWidth(),height:r[t][1]-2*n.borderWidth()})}),o.exit().remove()}exit(e,t){super.exit(e,t)}updateFlexParent(e){e.style("height","100%").style("flex-direction","horizontal"===this.orientation()?"row":"column").style("flex-wrap",this.flexWrap()).style("align-items",this.alignItems()).style("align-content",this.alignContent()).style("overflow-x",()=>this.forceXScroll()||"horizontal"===this.orientation()&&"nowrap"===this.flexWrap()&&!this.disableScroll()?"scroll":"hidden").style("overflow-y",()=>this.forceYScroll()||"vertical"===this.orientation()&&"nowrap"===this.flexWrap()&&!this.disableScroll()?"scroll":"hidden")}},"_FlexGrid"),p);Zn(uo,"FlexGrid");let co=uo;function ho(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}x(ho,"Vt"),co.prototype._class+=" layout_FlexGrid",co.prototype.publish("itemBorderColor","transparent","html-color","Color of list item borders"),co.prototype.publish("borderWidth",0,"number","Width of list item borders (pixels)"),co.prototype.publish("orientation","horizontal","set","Controls the flex-direction of the list items",["horizontal","vertical"]),co.prototype.publish("flexWrap","wrap","set","Controls the line wrap when overflow occurs",["nowrap","wrap","wrap-reverse"]),co.prototype.publish("disableScroll",!1,"boolean","If false, scrollbar will show (when flexWrap is set to 'nowrap')",null,{disable:/* @__PURE__ */Zn(e=>"nowrap"!==e.flexWrap(),"disable")}),co.prototype.publish("forceXScroll",!1,"boolean","If true, horzontal scrollbar will show"),co.prototype.publish("forceYScroll",!1,"boolean","If true, vertical scrollbar will show"),co.prototype.publish("itemMinHeight",64,"number","Minimum height of a list item (pixels)"),co.prototype.publish("itemMinWidth",64,"number","Minimum width of a list item (pixels)"),co.prototype.publish("alignItems","stretch","set","Controls normal alignment of items",["flex-start","center","flex-end","stretch"]),co.prototype.publish("alignContent","stretch","set","Controls normal alignment of item rows",["flex-start","center","flex-end","stretch","space-between","space-around"]),co.prototype.publish("flexGrow",1,"number","Default flex-grow style for all list items"),co.prototype.publish("flexBasis","10%","string","Default flex-basis style for all list items"),co.prototype.publish("widgetsFlexGrow",[],"array","Array of flex-grow values keyed on the widgets array"),co.prototype.publish("widgetsFlexBasis",[],"array","Array of flex-basis values keyed on the widgets array"),co.prototype.publish("widgets",[],"widgetArray","Array of widgets to be rendered as list items"),Zn(ho,"getDefaultExportFromCjs");var po,fo={exports:{}};function go(){return po?fo.exports:(po=1,fo.exports=function(){var e=/* @__PURE__ */Zn(function(e,t){for(var n in this._options=t,this.defaults)this._options.hasOwnProperty(n)||(this._options[n]=this.defaults[n]);this.items=e,this._adjustSizeOfItems(),this.generateGrid()},"GridList");e.cloneItems=function(e,t){var n,r;for(void 0===t&&(t=[]),n=0;n<e.length;n++)for(r in t[n]||(t[n]={}),e[n])t[n][r]=e[n][r];return t},e.prototype={defaults:{lanes:5,direction:"horizontal"},toString:/* @__PURE__ */Zn(function(){var e,t,n,r=this.grid.length,o="\n #|",i="\n --";for(t=0;t<r;t++)o+=" "+this._padNumber(t," "),i+="---";for(o+=i,t=0;t<this._options.lanes;t++)for(o+="\n"+this._padNumber(t," ")+"|",n=0;n<r;n++)o+=" ",o+=(e=this.grid[n][t])?this._padNumber(this.items.indexOf(e),"0"):"--";return o+"\n"},"toString"),generateGrid:/* @__PURE__ */Zn(function(){var e;for(this._resetGrid(),e=0;e<this.items.length;e++)this._markItemPositionToGrid(this.items[e])},"generateGrid"),resizeGrid:/* @__PURE__ */Zn(function(e){var t=0;this._options.lanes=e,this._adjustSizeOfItems(),this._sortItemsByPosition(),this._resetGrid();for(var n=0;n<this.items.length;n++){var r=this.items[n],o=this._getItemPosition(r);this._updateItemPosition(r,this.findPositionForItem(r,{x:t,y:0})),t=Math.max(t,o.x)}this._pullItemsToLeft()},"resizeGrid"),findPositionForItem:/* @__PURE__ */Zn(function(e,t,n){var r,o,i;for(r=t.x;r<this.grid.length;r++)if(void 0!==n){if(i=[r,n],this._itemFitsAtPosition(e,i))return i}else for(o=t.y;o<this._options.lanes;o++)if(i=[r,o],this._itemFitsAtPosition(e,i))return i;var l=this.grid.length,a=0;return void 0!==n&&this._itemFitsAtPosition(e,[l,n])&&(a=n),[l,a]},"findPositionForItem"),moveItemToPosition:/* @__PURE__ */Zn(function(e,t){var n=this._getItemPosition({x:t[0],y:t[1],w:e.w,h:e.h});this._updateItemPosition(e,[n.x,n.y]),this._resolveCollisions(e)},"moveItemToPosition"),resizeItem:/* @__PURE__ */Zn(function(e,t){var n=t.w||e.w,r=t.h||e.h;this._updateItemSize(e,n,r),this._resolveCollisions(e),this._pullItemsToLeft()},"resizeItem"),getChangedItems:/* @__PURE__ */Zn(function(e,t){for(var n=[],r=0;r<e.length;r++){var o=this._getItemByAttribute(t,e[r][t]);o.x===e[r].x&&o.y===e[r].y&&o.w===e[r].w&&o.h===e[r].h||n.push(o)}return n},"getChangedItems"),_sortItemsByPosition:/* @__PURE__ */Zn(function(){this.items.sort(function(e,t){var n=this._getItemPosition(e),r=this._getItemPosition(t);return n.x!=r.x?n.x-r.x:n.y!=r.y?n.y-r.y:0}.bind(this))},"_sortItemsByPosition"),_adjustSizeOfItems:/* @__PURE__ */Zn(function(){for(var e=0;e<this.items.length;e++){var t=this.items[e];void 0===t.autoSize&&(t.autoSize=0===t.w||0===t.h),t.autoSize&&("horizontal"===this._options.direction?t.h=this._options.lanes:t.w=this._options.lanes)}},"_adjustSizeOfItems"),_resetGrid:/* @__PURE__ */Zn(function(){this.grid=[]},"_resetGrid"),_itemFitsAtPosition:/* @__PURE__ */Zn(function(e,t){var n,r,o=this._getItemPosition(e);if(t[0]<0||t[1]<0)return!1;if(t[1]+o.h>this._options.lanes)return!1;for(n=t[0];n<t[0]+o.w;n++){var i=this.grid[n];if(i)for(r=t[1];r<t[1]+o.h;r++)if(i[r]&&i[r]!==e)return!1}return!0},"_itemFitsAtPosition"),_updateItemPosition:/* @__PURE__ */Zn(function(e,t){null!==e.x&&null!==e.y&&this._deleteItemPositionFromGrid(e),this._setItemPosition(e,t),this._markItemPositionToGrid(e)},"_updateItemPosition"),_updateItemSize:/* @__PURE__ */Zn(function(e,t,n){null!==e.x&&null!==e.y&&this._deleteItemPositionFromGrid(e),e.w=t,e.h=n,this._markItemPositionToGrid(e)},"_updateItemSize"),_markItemPositionToGrid:/* @__PURE__ */Zn(function(e){var t,n,r=this._getItemPosition(e);for(this._ensureColumns(r.x+r.w),t=r.x;t<r.x+r.w;t++)for(n=r.y;n<r.y+r.h;n++)this.grid[t][n]=e},"_markItemPositionToGrid"),_deleteItemPositionFromGrid:/* @__PURE__ */Zn(function(e){var t,n,r=this._getItemPosition(e);for(t=r.x;t<r.x+r.w;t++)if(this.grid[t])for(n=r.y;n<r.y+r.h;n++)this.grid[t][n]==e&&(this.grid[t][n]=null)},"_deleteItemPositionFromGrid"),_ensureColumns:/* @__PURE__ */Zn(function(e){var n;for(n=0;n<e;n++)this.grid[n]||this.grid.push(new t(this._options.lanes))},"_ensureColumns"),_getItemsCollidingWithItem:/* @__PURE__ */Zn(function(e){for(var t=[],n=0;n<this.items.length;n++)e!=this.items[n]&&this._itemsAreColliding(e,this.items[n])&&t.push(n);return t},"_getItemsCollidingWithItem"),_itemsAreColliding:/* @__PURE__ */Zn(function(e,t){var n=this._getItemPosition(e),r=this._getItemPosition(t);return!(r.x>=n.x+n.w||r.x+r.w<=n.x||r.y>=n.y+n.h||r.y+r.h<=n.y)},"_itemsAreColliding"),_resolveCollisions:/* @__PURE__ */Zn(function(e){this._tryToResolveCollisionsLocally(e)||this._pullItemsToLeft(e),this._pullItemsToLeft()},"_resolveCollisions"),_tryToResolveCollisionsLocally:/* @__PURE__ */Zn(function(t){var n=this._getItemsCollidingWithItem(t);if(!n.length)return!0;var r,o,i,l,a=new e([],this._options);e.cloneItems(this.items,a.items),a.generateGrid();for(var s=0;s<n.length;s++){var u=a.items[n[s]],c=this._getItemPosition(u),d=this._getItemPosition(t);if(r=[d.x-c.w,c.y],o=[d.x+d.w,c.y],i=[c.x,d.y-c.h],l=[c.x,d.y+d.h],a._itemFitsAtPosition(u,r))a._updateItemPosition(u,r);else if(a._itemFitsAtPosition(u,i))a._updateItemPosition(u,i);else if(a._itemFitsAtPosition(u,l))a._updateItemPosition(u,l);else{if(!a._itemFitsAtPosition(u,o))return!1;a._updateItemPosition(u,o)}}return e.cloneItems(a.items,this.items),this.generateGrid(),!0},"_tryToResolveCollisionsLocally"),_pullItemsToLeft:/* @__PURE__ */Zn(function(e){if(this._sortItemsByPosition(),this._resetGrid(),e){var t=this._getItemPosition(e);this._updateItemPosition(e,[t.x,t.y])}for(var n=0;n<this.items.length;n++){var r=this.items[n],o=this._getItemPosition(r);if(!e||r!=e){var i=this._findLeftMostPositionForItem(r),l=this.findPositionForItem(r,{x:i,y:0},o.y);this._updateItemPosition(r,l)}}},"_pullItemsToLeft"),_findLeftMostPositionForItem:/* @__PURE__ */Zn(function(e){for(var t=0,n=this._getItemPosition(e),r=0;r<this.grid.length;r++)for(var o=n.y;o<n.y+n.h;o++){var i=this.grid[r][o];if(i){var l=this._getItemPosition(i);this.items.indexOf(i)<this.items.indexOf(e)&&(t=l.x+l.w)}}return t},"_findLeftMostPositionForItem"),_getItemByAttribute:/* @__PURE__ */Zn(function(e,t){for(var n=0;n<this.items.length;n++)if(this.items[n][e]===t)return this.items[n];return null},"_getItemByAttribute"),_padNumber:/* @__PURE__ */Zn(function(e,t){return e>=10?e:t+e},"_padNumber"),_getItemPosition:/* @__PURE__ */Zn(function(e){return"horizontal"===this._options.direction?e:{x:e.y,y:e.x,w:e.h,h:e.w}},"_getItemPosition"),_setItemPosition:/* @__PURE__ */Zn(function(e,t){"horizontal"===this._options.direction?(e.x=t[0],e.y=t[1]):(e.x=t[1],e.y=t[0])},"_setItemPosition")};var t=/* @__PURE__ */Zn(function(e){for(var t=0;t<e;t++)this.push(null)},"GridCol");return t.prototype=[],e}())}x(go,"Ut"),Zn(go,"requireGridList");var mo=go();const yo=/* @__PURE__ */ho(mo),bo=/* @__PURE__ */er({__proto__:null,default:yo},[mo]),vo=bo&&yo||bo,wo=(x(f=class extends C{divItems;gridList;items;itemsMap;origItems;cellWidth;cellHeight;dragItem;dragItemPos;_d3Drag;_d3DragResize;_selectionBag;_scrollBarWidth;constructor(){super(),this._tag="div",this._selectionBag=new I.Selection(this),this.content([])}getDimensions(){const e={width:0,height:0};return this.content().forEach(function(t){e.width<t.gridCol()+t.gridColSpan()&&(e.width=t.gridCol()+t.gridColSpan()),e.height<t.gridRow()+t.gridRowSpan()&&(e.height=t.gridRow()+t.gridRowSpan())},this),e}clearContent(e){this.content(this.content().filter(function(t){if(!e)return t.target(null),!1;let n=t;for(;n;){if(e===n)return t.target(null),!1;n=n.widget?n.widget():null}return!0}))}setContent(e,t,n,r,o,i){if(o=o||1,i=i||1,r=r||"",this.content(this.content().filter(function(n){return n.gridRow()!==e||n.gridCol()!==t||(n.target(null),!1)})),n){const l=(new sr).gridRow(e).gridCol(t).widget(n).title(r).gridRowSpan(o).gridColSpan(i);this.content().push(l)}return this}sortedContent(){return this.content().sort(function(e,t){return e.gridRow()===t.gridRow()?e.gridCol()-t.gridCol():e.gridRow()-t.gridRow()})}getCell(e,t){let n=null;return this.content().some(function(r){return e>=r.gridRow()&&e<r.gridRow()+r.gridRowSpan()&&t>=r.gridCol()&&t<r.gridCol()+r.gridColSpan()&&(n=r,!0)}),n}getWidgetCell(e){let t=null;return this.content().some(function(n){return n.widget().id()===e&&(t=n,!0)}),t}getContent(e){let t=null;return this.content().some(function(n){return n.widget().id()===e&&(t=n.widget(),!0)}),t}cellToGridItem(e){return{x:e.gridCol(),y:e.gridRow(),w:e.gridColSpan(),h:e.gridRowSpan(),id:e.id(),cell:e}}gridItemToCell(e){e.cell.gridCol(e.x).gridRow(e.y).gridColSpan(e.w).gridRowSpan(e.h)}resetItemsPos(){this.origItems.forEach(function(e){const t=this.itemsMap[e.id];t.x=e.x,t.y=e.y},this)}initGridList(){this.itemsMap={},this.items=this.content().map(function(e){const t=this.cellToGridItem(e);return this.itemsMap[t.id]=t,t},this),this.origItems=this.content().map(this.cellToGridItem),this.gridList=new vo(this.items,{direction:this.snapping(),lanes:"horizontal"===this.snapping()?this.snappingRows():this.snappingColumns()})}killGridList(){this.gridList=null,delete this.items,delete this.itemsMap}enter(e,t){super.enter(e,t),this._scrollBarWidth=A.getScrollbarWidth();const n=this;this._d3Drag=D().subject(function(e){const t=n.cellToGridItem(e);return{x:t.x*n.cellWidth,y:t.y*n.cellHeight}}).on("start",function(e){if(!n.designMode())return;R().sourceEvent.stopPropagation(),n.initGridList();const r=n.itemsMap[e.id()];n.dragItem=t.append("div").attr("class","dragging").style("transform",function(){return"translate("+r.x*n.cellWidth+"px, "+r.y*n.cellHeight+"px)"}).style("width",function(){return r.w*n.cellWidth-n.gutter()+"px"}).style("height",function(){return r.h*n.cellHeight-n.gutter()+"px"}),n.selectionBagClick(e)}).on("drag",function(e){if(!n.designMode())return;const t=R();t.sourceEvent.stopPropagation();const r=n.itemsMap[e.id()];t.x<0&&(t.x=0),t.x+r.w*n.cellWidth>n.snappingColumns()*n.cellWidth&&(t.x=n.snappingColumns()*n.cellWidth-r.w*n.cellWidth),t.y<0&&(t.y=0),t.y+r.h*n.cellWidth>n.snappingRows()*n.cellWidth&&(t.y=n.snappingRows()*n.cellWidth-r.h*n.cellWidth);const o=[Math.max(0,Math.floor((t.x+n.cellWidth/2)/n.cellWidth)),Math.max(0,Math.floor((t.y+n.cellHeight/2)/n.cellHeight))];r.x===o[0]&&r.y===o[1]||("none"!==n.snapping()?(n.resetItemsPos(),n.gridList.moveItemToPosition(r,o)):(r.x=o[0],r.y=o[1]),e.gridCol()===r.x&&e.gridRow()===r.y||(n.items.forEach(n.gridItemToCell),n.updateGrid(!1,100))),n.dragItem.style("transform",function(){return"translate("+t.x+"px, "+t.y+"px)"}).style("width",function(){return r.w*n.cellWidth+"px"}).style("height",function(){return r.h*n.cellHeight+"px"})}).on("end",function(){n.designMode()&&(R().sourceEvent.stopPropagation(),n.dragItem.remove(),n.dragItem=null,n.killGridList())}),this._d3DragResize=D().subject(function(e){const t=n.cellToGridItem(e);return{x:(t.x+t.w-1)*n.cellWidth,y:(t.y+t.h-1)*n.cellHeight}}).on("start",function(e){if(!n.designMode())return;R().sourceEvent.stopPropagation(),n.initGridList();const r=n.itemsMap[e.id()];n.dragItem=t.append("div").attr("class","resizing").style("transform",function(){return"translate("+r.x*n.cellWidth+"px, "+r.y*n.cellHeight+"px)"}).style("width",function(){return r.w*n.cellWidth-n.gutter()+"px"}).style("height",function(){return r.h*n.cellHeight-n.gutter()+"px"}),n.dragItemPos={x:r.x,y:r.y}}).on("drag",function(e){if(!n.designMode())return;const t=R();t.sourceEvent.stopPropagation();const r=n.itemsMap[e.id()],o=[Math.max(0,Math.round(t.x/n.cellWidth)),Math.max(0,Math.round(t.y/n.cellHeight))],i={w:Math.max(1,o[0]-r.x+1),h:Math.max(1,o[1]-r.y+1)};r.w===i.w&&r.h===i.h||("none"!==n.snapping()?(n.resetItemsPos(),n.gridList.resizeItem(r,i)):(r.w=i.w,r.h=i.h),e.gridColSpan()===r.w&&e.gridRowSpan()===r.h||(n.items.forEach(n.gridItemToCell),n.updateGrid(r.id,100))),n.dragItem.style("width",function(){return(1-r.x)*n.cellWidth+t.x-n.gutter()+"px"}).style("height",function(){return(1-r.y)*n.cellHeight+t.y-n.gutter()+"px"})}).on("end",function(){n.designMode()&&(R().sourceEvent.stopPropagation(),n.dragItem.remove(),n.dragItem=null,n.killGridList())})}updateGrid(e,t=0,n=!1){t=t||0;const r=this;this.divItems.classed("draggable",this.designMode()).transition().duration(t).style("left",function(e){return e.gridCol()*r.cellWidth+r.gutter()/2+"px"}).style("top",function(e){return e.gridRow()*r.cellHeight+r.gutter()/2+"px"}).style("width",function(e){return e.gridColSpan()*r.cellWidth-r.gutter()+"px"}).style("height",function(e){return e.gridRowSpan()*r.cellHeight-r.gutter()+"px"}).on("end",function(t){t.surfaceShadow_default(r.surfaceShadow()).surfacePadding_default(r.surfacePadding()).surfaceBorderWidth_default(r.surfaceBorderWidth()).surfaceBackgroundColor_default(r.surfaceBackgroundColor()),!0!==e&&e!==t.id()||t.resize().lazyRender()})}update(e,t){super.update(e,t),this._placeholderElement.style("overflow-x","width"===this.fitTo()?"hidden":null),this._placeholderElement.style("overflow-y","width"===this.fitTo()?"scroll":null);const n=this.getDimensions(),r=this.width()-("width"===this.fitTo()?this._scrollBarWidth:0);if(this.cellWidth=r/n.width,this.cellHeight="all"===this.fitTo()?this.height()/n.height:this.cellWidth,this.designMode()){const e=Math.min(this.width()/this.snappingColumns(),this.height()/this.snappingRows()),t=Math.floor(e);this.cellWidth=t,this.cellHeight=this.cellWidth}const o=this,i=t.selectAll("#"+this.id()+" > .ddCell").data(this.content(),function(e){return e.id()});this.divItems=i.enter().append("div").attr("class","ddCell").each(function(e){e.target(this),e.__grid_watch=e.monitor(function(t,n,r){!o._renderCount||"snapping"!==t&&0!==t.indexOf("grid")||n===r||o.gridList||(o.initGridList(),"none"!==o.snapping()&&o.gridList.resizeGrid("horizontal"===o.snapping()?o.snappingRows():o.snappingColumns()),o.items.forEach(o.gridItemToCell),o.updateGrid(e.id(),100),o.killGridList())}),E(this).append("div").attr("class","resizeHandle").call(o._d3DragResize).append("div").attr("class","resizeHandleDisplay")}).merge(i),this.divItems.each(function(e){const t=E(this);o.designMode()?t.call(o._d3Drag):t.on("mousedown.drag",null).on("touchstart.drag",null)}),this.divItems.select(".resizeHandle").style("display",this.designMode()?null:"none"),this.updateGrid(!0),i.exit().each(function(e){e.target(null),e.__grid_watch&&e.__grid_watch.remove()}).remove();const l=t.selectAll("#"+this.id()+" > .laneBackground").data(this.designMode()?[""]:[]);l.enter().insert("div",":first-child").attr("class","laneBackground").style("left","1px").style("top","1px").on("click",function(){o.selectionBagClear()}).merge(l).style("width",this.snappingColumns()*this.cellWidth+"px").style("height",this.snappingRows()*this.cellHeight+"px"),l.exit().each(function(){o.selectionBagClear()}).remove();const a=t.selectAll("#"+this.id()+" > .lane").data(this.designMode()?[""]:[]);a.enter().append("div").attr("class","lane").style("left","1px").style("top","1px"),a.style("display",this.showLanes()?null:"none").style("width",this.snappingColumns()*this.cellWidth+"px").style("height",this.snappingRows()*this.cellHeight+"px").style("background-image","linear-gradient(to right, grey 1px, transparent 1px), linear-gradient(to bottom, grey 1px, transparent 1px)").style("background-size",this.cellWidth+"px "+this.cellHeight+"px"),a.exit().remove()}exit(e,t){this.content().forEach(e=>e.target(null)),super.exit(e,t)}_createSelectionObject(e){return{_id:e._id,element:/* @__PURE__ */Zn(()=>e._element,"element"),widget:e}}selection(e){return arguments.length?(this._selectionBag.set(e.map(function(e){return this._createSelectionObject(e)},this)),this):this._selectionBag.get().map(function(e){return e._id})}selectionBagClear(){this._selectionBag.isEmpty()||(this._selectionBag.clear(),this.postSelectionChange())}selectionBagClick(e){if(null!==e){const t=this._createSelectionObject(e);if(R().sourceEvent.ctrlKey)this._selectionBag.isSelected(t)?(this._selectionBag.remove(t),this.postSelectionChange()):(this._selectionBag.append(t),this.postSelectionChange());else{const e=this._selectionBag.get();1===e.length&&e[0]._id===t._id?this.selectionBagClear():this._selectionBag.set([t]),this.postSelectionChange()}}}postSelectionChange(){}applyLayout(e){this.divItems.each((t,n)=>{if(e[n]){const[r,o,i,l]=e[n];t.gridCol(r).gridRow(o).gridColSpan(i).gridRowSpan(l)}}),this.updateGrid(!0)}vizActivation(e){}},"_Grid"),f);Zn(wo,"Grid");let _o=wo;_o.prototype._class+=" layout_Grid",_o.prototype.publish("designMode",!1,"boolean","Design Mode",null,{tags:["Basic"]}),_o.prototype.publish("showLanes",!0,"boolean","Show snapping lanes when in design mode",null,{tags:["Basic"],disable:/* @__PURE__ */Zn(e=>!e.designMode(),"disable")}),_o.prototype.publish("fitTo","all","set","Sizing Strategy",["all","width"],{tags:["Basic"]}),_o.prototype.publish("snapping","vertical","set","Snapping Strategy",["vertical","horizontal","none"]),_o.prototype.publish("snappingColumns",12,"number","Snapping Columns"),_o.prototype.publish("snappingRows",16,"number","Snapping Rows"),_o.prototype.publish("gutter",6,"number","Gap Between Widgets",null,{tags:["Basic"]}),_o.prototype.publish("surfaceShadow",!0,"boolean","3D Shadow"),_o.prototype.publish("surfacePadding",null,"string","Cell Padding (px)",null,{tags:["Intermediate"]}),_o.prototype.publish("surfaceBorderWidth",1,"number","Width (px) of Cell Border",null,{tags:["Intermediate"]}),_o.prototype.publish("surfaceBackgroundColor",null,"html-color","Surface Background Color",null,{tags:["Advanced"]}),_o.prototype.publish("content",[],"widgetArray","widgets",null,{tags:["Basic"],render:!1});const xo=(x(g=class extends co{constructor(){super(),this.orientation_default("horizontal"),this.flexWrap_default("nowrap")}},"_HorizontalList"),g);Zn(xo,"HorizontalList"),xo.prototype._class+=" layout_HorizontalList";const Co=(x(m=class extends C{_contentContainer;_widgetPlacements;_widgetRatios;constructor(){super(),this._tag="div",this._widgetPlacements=[],this._widgetRatios=[]}addLayer(e,t="default",n=1,r=1){const o=this.widgets();return o.push(e||(new N).text("No widget defined for layer.")),this.widgets(o),this._widgetPlacements.push(t),this._widgetRatios.push([n,r]),this}enter(e,t){super.enter(e,t),this._contentContainer=t.append("div").attr("class","container")}update(e,t){super.update(e,t);const n=this;t.style("padding",this.surfacePadding()+"px");const r=this._contentContainer.selectAll(".content.id"+this.id()).data(this.widgets(),function(e){return e.id()});r.enter().append("div").attr("class","content id"+this.id()).each(function(e,t){e.target(this)}).merge(r).each(function(e,t){const r={width:n.clientWidth(),height:n.clientHeight()},o=n.widgetSize(t,r),i=n.widgetPosition(t,r,o);this.style.top=i.y+"px",this.style.left=i.x+"px",e.resize(o).render()}),r.exit().each(function(e,t){e.target(null)}).remove(),r.order()}widgetSize(e,t){return this._widgetPlacements[e],{width:t.width*this._widgetRatios[e][0],height:t.height*this._widgetRatios[e][1]}}widgetPosition(e,t,n){switch(this._widgetPlacements[e]){default:return{x:0,y:0};case"top":return{x:t.width/2-n.width/2,y:0};case"bottom":return{x:t.width/2-n.width/2,y:t.height-n.height};case"left":return{x:0,y:t.height/2-n.height/2};case"right":return{x:t.width-n.width,y:t.height/2-n.height/2};case"center":return{x:t.width/2-n.width/2,y:t.height/2-n.height/2}}}},"_Layered"),m);Zn(Co,"Layered");let So=Co;So.prototype._class+=" layout_Layered",So.prototype.publish("surfacePadding",0,"number","Padding"),So.prototype.publish("widgets",[],"widgetArray","widgets",null,{tags:["Private"]});const ko=(x(y=class extends C{_surfaceButtons;_originalPosition;constructor(){super(),this._tag="div",this._surfaceButtons=[]}updateState(e){e=e||!this.popupState(),this.popupState(e).render()}enter(e,t){super.enter(e,t),this.widget().target(e),this._originalPosition=this.position()}update(e,t){super.update(e,t),t.style("visibility",this.popupState()?null:"hidden").style("opacity",this.popupState()?null:0).style("width",this.shrinkWrap()?this.widget().width()+"px":this._size.width+"px").style("height",this.shrinkWrap()?this.widget().height()+"px":this._size.height+"px"),0===this.widget().size().height&&this.widget().resize(this.size())}postUpdate(e,t){let n,r;switch(this.centerPopup()){case"container":this._placeholderElement&&(n=parseInt(this._placeholderElement.style("width"))/2-this.widget().width()/2,r=parseInt(this._placeholderElement.style("height"))/2-this.widget().height()/2),this.position("absolute");break;case"window":n=window.innerWidth/2-this.widget().width()/2,r=window.innerHeight/2-this.widget().height()/2,this.position("fixed");break;default:n=0,r=0,this.position(this._originalPosition)}this.pos({x:n,y:r}),super.postUpdate(e,t),t.style("position",this.position()).style("left",this.left()+"px").style("right",this.right()+"px").style("top",this.top()+"px").style("bottom",this.bottom()+"px")}exit(e,t){this.widget()&&this.widget().target(null),super.exit(e,t)}click(e){}},"_Popup"),y);Zn(ko,"Popup");let To=ko;To.prototype._class+=" layout_Popup",To.prototype.publish("popupState",!1,"boolean","State of the popup, visible (true) or hidden (false)",null,{}),To.prototype.publish("shrinkWrap",!1,"boolean","The popup parent container either shrinks to the size of its contents (true) or expands to fit thge popup's parentDiv (false)",null,{}),To.prototype.publish("centerPopup","none","set","Center the widget in its container element (target) or in the window",["none","container","window"],{}),To.prototype.publish("top",null,"number","Top position property of popup",null,{}),To.prototype.publish("bottom",null,"number","Bottom position property of popup",null,{}),To.prototype.publish("left",null,"number","Left position property of popup",null,{}),To.prototype.publish("right",null,"number","Right position property of popup",null,{}),To.prototype.publish("position","relative","set","Value of the 'position' property",["absolute","relative","fixed","static","initial","inherit"],{tags:["Private"]}),To.prototype.publish("widget",null,"widget","Widget",null,{tags:["Private"]});const Po=(x(b=class extends C{_tabContainer;_contentContainer;constructor(){super(),this._tag="div"}clearTabs(){return this.labels([]),this.widgets([]),this}addTab(e,t,n,r){const o=e.size();0===o.width&&0===o.height&&e.size({width:"100%",height:"100%"});const i=this.labels(),l=this.widgets();n&&this.activeTabIdx(this.widgets().length),i.push(t);const a=(new lr).widget(e||(new N).text("No widget defined for tab"));return l.push(a),this.labels(i),this.widgets(l),r&&r(a),this}widgetSize(e){const t=this.clientWidth();let n=this.clientHeight();const r=this._tabContainer.node().getBoundingClientRect();return void 0!==r.height&&(n-=r.height),{width:t,height:n}}enter(e,t){super.enter(e,t),this._tabContainer=t.append("div"),this._contentContainer=t.append("div")}update(e,t){super.update(e,t);const n=this;t.style("padding",this.surfacePadding_exists()?this.surfacePadding()+"px":null);const r=this._tabContainer.selectAll(".tab-button.id"+this.id()).data(this.showTabs()?this.labels():[],function(e){return e});r.enter().append("span").attr("class","tab-button id"+this.id()).style("cursor","pointer").on("click",function(e,t){n.click(n.widgets()[t].widget(),e,t),n.activeTabIdx(t).render()}).merge(r).classed("active",function(e,t){return n.activeTabIdx()===t}).text(function(e){return e}),r.exit().remove();const o=this._contentContainer.selectAll(".tab-content.id"+this.id()).data(this.widgets(),function(e){return e.id()});o.enter().append("div").attr("class","tab-content id"+this.id()).each(function(e,t){e.target(this)}).merge(o).classed("active",function(e,t){return n.activeTabIdx()===t}).style("display",function(e,t){return n.activeTabIdx()===t?"block":"none"}).each(function(e,t){if(e.visible(n.activeTabIdx()===t),n.activeTabIdx()===t){const t=n.widgetSize(E(this));e.surfaceBorderWidth(n.showTabs()?null:0).surfacePadding(n.showTabs()?null:0).resize(t)}}),o.exit().each(function(e,t){e.target(null)}).remove(),"bottom"===this.tabLocation()?(this._tabContainer.attr("class","on_bottom").style("top",this._contentContainer.node().offsetHeight+this.surfacePadding()+"px").style("position","absolute"),this._contentContainer.style("top",this.surfacePadding_exists()?this.surfacePadding()+"px":null).style("position","absolute")):(this._tabContainer.attr("class","on_top").style("top",null).style("position","relative"),this._contentContainer.style("top",this._tabContainer.node().offsetHeight+this.surfacePadding()+"px").style("position","absolute"))}click(e,t,n){}},"_Tabbed"),b);Zn(Po,"Tabbed");let Eo=Po;Eo.prototype._class+=" layout_Tabbed",Eo.prototype.publish("showTabs",!0,"boolean","Show Tabs",null,{}),Eo.prototype.publish("surfacePadding",4,"number","Padding"),Eo.prototype.publish("activeTabIdx",0,"number","Index of active tab",null,{}),Eo.prototype.publish("labels",[],"array","Array of tab labels sharing an index with ",null,{tags:["Private"]}),Eo.prototype.publish("tabLocation","top","set","Position the tabs at the bottom of the widget",["top","bottom"],{tags:["Private"]}),Eo.prototype.publish("widgets",[],"widgetArray","widgets",null,{tags:["Private"]});const zo=(x(v=class extends C{constructor(){super(),this._tag="div"}enter(e,t){super.enter(e,t)}update(e,t){super.update(e,t);const n=this;t.attr("title",n.title()).style("background-color",this.backgroundColor());const r=t.selectAll("div.toolbar-title").data(this.title()?[this.title()]:[]);r.enter().append("div").classed("toolbar-title",!0).append("span"),r.selectAll("div.toolbar-title > span").style("font-size",this.fontSize_exists()?this.fontSize()+"px":null).style("color",this.fontColor_exists()?this.fontColor():null).style("font-family",this.fontFamily_exists()?this.fontFamily():null).style("font-weight",this.fontBold_exists()?this.fontBold()?"bold":"normal":null).style("background-color",this.backgroundColor_exists()?this.backgroundColor():null).text(n.title()),r.exit().remove();const o=t.selectAll("div.toolbar-child").data(null!==this.widgets()?this.widgets():[],function(e){return e.id()});o.enter().insert("div","div.toolbar-title").each(function(e,t){const r=n.widgetClasses()[t]?n.widgetClasses()[t]+" toolbar-child":"toolbar-child";E(this).classed(r,!0),e.target(this)}),o.exit().each(function(e){e.target(null)}).remove(),o.order()}render(e){const t=this;return super.render(function(n){const r=t.element().node().getBoundingClientRect();let o=r.left+r.width;t.element().selectAll("div.toolbar-child").each(function(e,t){const n=this.getBoundingClientRect();o>n.left&&(o=n.left)}),t.element().select(".toolbar-title").style("width",o-r.left-4+"px"),e&&e(n)})}exit(e,t){this.widgets().forEach(function(e){e.target(null)}),super.exit(e,t)}},"_Toolbar"),v);Zn(zo,"Toolbar");let Io=zo;Io.prototype._class+=" layout_Toolbar",Io.prototype.publish("title","","string","Title",null,{tags:["Intermediate"]}),Io.prototype.publish("fontSize",null,"number","Title Font Size (px)",null,{tags:["Advanced"],optional:!0}),Io.prototype.publish("fontColor",null,"html-color","Title Font Color",null,{tags:["Advanced"],optional:!0}),Io.prototype.publish("fontFamily",null,"string","Title Font Family",null,{tags:["Advanced"],optional:!0}),Io.prototype.publish("fontBold",!0,"boolean","Enable Bold Title Font",null,{tags:["Advanced"],optional:!0}),Io.prototype.publish("backgroundColor",null,"html-color","Background Color",null,{tags:["Intermediate"],optional:!0}),Io.prototype.publish("responsive",!0,"boolean","Adapts to pixel width",null,{tags:["Basic"]}),Io.prototype.publish("widgets",[],"widgetArray","Child widgets of the toolbar",null,{tags:["Basic"]}),Io.prototype.publish("widgetClasses",[],"array","Array of Html Element classes to be assigned to the child widgets (shares index with widgets param)",null,{tags:["Basic"]});const Ro=(x(w=class extends co{constructor(){super(),this.orientation_default("vertical"),this.flexWrap_default("nowrap")}},"_VerticalList"),w);function Ao(e){return new Promise(function(t,n){const r=I.parseClassID(e);require&&require([r.package],function(e){let n=null;e&&e[r.widgetID]&&(n=e[r.widgetID]),t(r.memberWidgetID?n.prototype?n.prototype[r.memberWidgetID]:n[r.memberWidgetID]:n)})})}function Do(e){return Promise.all(e.map(Ao))}Zn(Ro,"VerticalList"),Ro.prototype._class+=" layout_VerticalList",function(){try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.layout_AbsoluteSurface{pointer-events:none!important}.layout_AbsoluteSurface>.placeholder{position:relative;overflow:hidden;pointer-events:all}.layout_Accordion>ul{position:relative}.layout_Accordion.open>span{font-style:italic}.layout_Accordion.closed>ul{height:0px;overflow:hidden}.layout_Accordion.open>ul{display:block}.layout_Accordion>.collapsible-icon,.layout_Accordion>.collapsible-title{cursor:pointer;box-sizing:border-box}.layout_Accordion>.collapsible-title{display:block;width:100%}.layout_Accordion>.collapsible-title{font-size:13px;color:#fff;padding:4px 8px;height:26px;-webkit-box-shadow:inset 0px -1px 1px 0px rgba(0,0,0,.2);-moz-box-shadow:inset 0px -1px 1px 0px rgba(0,0,0,.2);box-shadow:inset 0 -1px 1px #0003}.layout_Accordion li{background-color:#fff}.layout_Accordion>ul,.layout_Accordion>.collapsible-title{background-color:#333}.layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion>.collapsible-title{background-color:#555}.layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#777}.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#999}.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#bbb}.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#ccc}.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#ddd}.layout_Accordion>ul,.layout_Accordion>span{padding-left:0}.layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion>span{padding-left:12px}.layout_Accordion>.collapsible-title:before{padding:4px 8px;position:absolute;left:0;top:0}.layout_Accordion>.collapsible-icon{position:absolute;top:0;right:0;width:24px;height:24px;color:#fff}.layout_Surface{box-sizing:border-box;margin:0;border:1px solid #e5e5e5;overflow:hidden;height:100%;width:100%}.layout_Surface.shadow2{box-shadow:0 2px 2px #00000024,0 3px 1px -2px #0003,0 1px 5px #0000001f}.layout_Surface>h3{margin:0;padding:2px;background-color:#e5e5e5}.layout_Surface .html-button-container{position:absolute;right:0;top:3px}.layout_Surface>div{padding:8px}.layout_Surface .html-button-container .surface-button{margin-right:5px}.layout_Surface .html-button-container .surface-button i{opacity:.8}.layout_Surface .html-button-container .surface-button:hover{opacity:1}.layout_Surface .html-button-container .surface-button:active{opacity:.5}div[draggable=true].hideDragCellContent.content-icon:before{content:"";font-family:FontAwesome;position:absolute;top:calc(50% - 74px);left:calc(50% - 56px);font-size:100px}div[draggable=true].hideDragCellContent.content-icon-Line:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Pie:before{top:calc(50% - 72px);left:calc(50% - 45px);content:""}div[draggable=true].hideDragCellContent.content-icon-Area:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Gauge:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Table:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Form:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Grid:before,div[draggable=true].hideDragCellContent.content-icon-Graph:before,div[draggable=true].hideDragCellContent.content-icon-Border:before,div[draggable=true].hideDragCellContent.content-icon-Tabbed:before,div[draggable=true].hideDragCellContent.content-icon-Accordion:before,div[draggable=true].hideDragCellContent.content-icon-MultiChart:before,div[draggable=true].hideDragCellContent.content-icon-MultiChartSurface:before{content:""}div[draggable=true].hideDragCellContent.content-icon-ChoroplethStates:before,div[draggable=true].hideDragCellContent.content-icon-ChoroplethStatesHeat:before,div[draggable=true].hideDragCellContent.content-icon-ChoroplethCounties:before,div[draggable=true].hideDragCellContent.content-icon-ChoroplethCountries:before,div[draggable=true].hideDragCellContent.content-icon-GMap:before,div[draggable=true].hideDragCellContent.content-icon-GMapHeat:before,div[draggable=true].hideDragCellContent.content-icon-GMapGraph:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Text:before,div[draggable=true].hideDragCellContent.content-icon-TextBox:before,div[draggable=true].hideDragCellContent.content-icon-FAChar:before{content:""}.layout_Cell .update-indicator{box-sizing:border-box;position:absolute;top:0;left:0;padding:0;z-index:1000;border-width:0px;border-style:solid;pointer-events:none}.layout_Border{width:100%;height:100%}.layout_Border>.border-content{width:100%;height:100%;position:relative}.layout_Border>.borderHandle{width:6px;height:6px;background-color:#444;opacity:.3;position:absolute;visibility:hidden}.layout_Border.design-mode>.borderHandle{visibility:visible}.layout_Border>.borderHandle:hover{background-color:#666}.layout_Border>.borderHandle.borderHandleDisabled{display:none}.layout_Border>.borderHandle_top,.layout_Border>.borderHandle_bottom{cursor:ns-resize}.layout_Border>.borderHandle_left,.layout_Border>.borderHandle_right{cursor:ew-resize}.layout_Border .cell{border-radius:5px;border:1px solid #e5e5e5;display:inline-block;overflow:hidden}.layout_Border .cell h2{margin:0;padding-top:4px;-webkit-margin:0px;text-align:center}.layout_Border .layout_BorderCell.over{border:2px dashed #000}.layout_Border .dragItem{z-index:-1;opacity:.33}.layout_Border .notDragItem{z-index:-1;opacity:1}.layout_Border div[draggable=true]{opacity:.75;cursor:default}.layout_Border div[draggable=true] .dragHandle{opacity:1}.layout_Border div[draggable=true] .dragHandle_n,.layout_Border div[draggable=true] .dragHandle_e,.layout_Border div[draggable=true] .dragHandle_s,.layout_Border div[draggable=true] .dragHandle_w{background-color:#aaa}.layout_Border div[draggable=true] .dragHandle_nw,.layout_Border div[draggable=true] .dragHandle_ne,.layout_Border div[draggable=true] .dragHandle_se,.layout_Border div[draggable=true] .dragHandle_sw{background-color:#333}.layout_Border div[draggable=true] .dragHandle_nw{cursor:nw-resize}.layout_Border div[draggable=true] .dragHandle_n{cursor:n-resize}.layout_Border div[draggable=true] .dragHandle_ne{cursor:ne-resize}.layout_Border div[draggable=true] .dragHandle_e{cursor:e-resize}.layout_Border div[draggable=true] .dragHandle_se{cursor:se-resize}.layout_Border div[draggable=true] .dragHandle_s{cursor:s-resize}.layout_Border div[draggable=true] .dragHandle_sw{cursor:sw-resize}.layout_Border div[draggable=true] .dragHandle_w{cursor:w-resize}.layout_Border div[draggable=false]>div>.dragHandle{display:none}.layout_Border .grid-drop-target{position:fixed;box-sizing:border-box;border:2px dashed #7f8c8d;border-radius:0;background:repeating-linear-gradient(-45deg,#0000,#0000 4px,#6464641a 4px 8px)}.layout_Border .grid-drop-target.drop-target-over{border:2px dashed #179BD7;background:repeating-linear-gradient(-45deg,#0000,#0000 6px,#119bd71a 6px 12px)}.layout_Border2{display:flex;flex-direction:column}.layout_Border2>.body{margin:0;padding:0;display:flex;flex-flow:row}.layout_Border2>.body>.center{flex:1}.layout_Border2>.header{display:block}.layout_Border2>.footer{display:block}.layout_Carousel>div{position:relative;overflow:hidden}.layout_Carousel>div>.carouselItem{position:absolute}.layout_Modal-header{background-color:#3f51b5;overflow:hidden}.layout_Modal-body{background-color:#fff;overflow-y:scroll;overflow-x:hidden}.layout_Modal-title,.layout_Modal-annotations{position:absolute}.layout_Modal-closeButton{cursor:pointer}.layout_Modal-closeButton:hover{opacity:.7}.layout_Modal-closeButton:active{opacity:.5}.layout_Modal-fade{position:fixed;background-color:#000;opacity:.5;z-index:10000}.layout_Modal-content{position:fixed;background-color:#fff;z-index:10100}.layout_Modal-fade-hidden{display:none}.layout_Modal-fadeClickable{cursor:pointer}.layout_ChartPanel .series.highlight{stroke-width:2px;opacity:1}.layout_ChartPanel .series.lowlight{opacity:.3!important}.layout_FlexGrid{display:flex}.FlexGrid-list-item{overflow:hidden;border-style:solid;flex-grow:1}.layout_Grid>.ddCell{position:absolute}.layout_Grid>.laneBackground{position:absolute;border-style:solid;border-width:1px;background:#f5f5f5}.layout_Grid>.lane{position:absolute;border-style:none;opacity:.25;border-radius:0;pointer-events:none}.layout_Grid>.ddCell.draggable{border-style:solid;border-width:1px;background-color:#f8f8ff;border-radius:0;cursor:move}.layout_Grid>.ddCell.draggable>.resizeHandle{bottom:0;right:0;width:8px;height:8px;border-style:none;position:absolute;cursor:nwse-resize}.layout_Grid>.ddCell.draggable .resizeHandleDisplay{bottom:2px;right:2px;width:4px;height:4px;border-style:solid;border-left-width:0px;border-top-width:0px;border-right-width:2px;border-bottom-width:2px;border-color:#a9a9a9;background-color:none;position:absolute}.layout_Grid>.ddCell.draggable .resizeHandleDisplay:hover{border-color:orange}.layout_Grid>.dragging{border-style:solid;border-width:1px;border-color:gray;border-radius:0;position:absolute;background:repeating-linear-gradient(-45deg,#0000,#0000 4px,#6464641a 4px 8px)}.layout_Grid>.resizing{border-style:solid;border-width:1px;border-color:gray;background-color:orange;border-radius:0;position:absolute;opacity:.3;background:repeating-linear-gradient(-45deg,#0000,#0000 4px,orange 4px 8px)}.layout_Grid>.ddCell.draggable .common_Widget.selected{border-style:solid;border-width:1px;border-color:red;background-color:gray;border-radius:0;position:absolute;background:repeating-linear-gradient(-45deg,#0000,#0000 4px,#6400001a 4px 8px)}.layout_Grid #drag-me:before{content:"#" attr(id);font-weight:700}.layout_Layered{pointer-events:none}.layout_Layered>.container>.content{position:absolute}.layout_Layered>.container>.content>div>.common_Widget,.layout_Layered>.container>.content>div>svg>.common_Widget{pointer-events:all}.layout_Tabbed .tab-button{position:relative;top:1px;display:inline-block;border-left:1px solid #ddd;border-top:1px solid #ddd;border-right:1px solid #ddd;background-color:transparent;margin-right:4px;padding:2px 2px 4px;background-color:#ccc}.layout_Tabbed .tab-button.active{background-color:#fff;z-index:999}.layout_Tabbed .on_bottom .tab-button{border-bottom:1px solid #ddd;border-top:none;top:-1px}.layout_Toolbar{height:100%;background-color:#ddd;white-space:nowrap;overflow:hidden}.layout_Toolbar .toolbar-title{display:inline-block;position:relative;top:50%;transform:translateY(-50%);-ms-transform:translateY(-50%);margin-left:4px;font-weight:700;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.layout_Toolbar .toolbar-child{position:relative;top:50%;transform:translateY(-50%);-ms-transform:translateY(-50%);float:right;margin-left:4px;margin-right:4px;line-height:16px}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}(),x(Ao,"requireWidget"),x(Do,"requireWidgets");const Fo=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,requireWidget:Ao,requireWidgets:Do},Symbol.toStringTag,{value:"Module"})),Lo=class _MultiChart extends C{_allCharts={};_chartTypeDefaults;_chartTypeProperties;_chartMonitor;_switchingTo;constructor(){super(),Z.call(this),ee.call(this),this._tag="div",this._allCharts={},this._allChartTypes.forEach(function(e){const t=JSON.parse(JSON.stringify(e));t.widget=null,this._allCharts[e.id]=t,this._allCharts[e.display]=t,this._allCharts[e.widgetClass]=t},this),this._chartTypeDefaults={},this._chartTypeProperties={}}fields(e){const t=super.fields.apply(this,arguments);if(this.chart()){if(!arguments.length)return this.chart().fields();this.chart().fields(e)}return t}columns(e,t){const n=C.prototype.columns.apply(this,arguments);if(this.chart()){if(!arguments.length)return this.chart().columns();this.chart().columns(e,t)}return n}data(e){const t=C.prototype.data.apply(this,arguments);if(this.chart()){if(!arguments.length)return this.chart().data();this.chart().data(e)}return t}hasOverlay(){return this.chart()&&this.chart().hasOverlay()}visible(e){return arguments.length?(this.chart()&&this.chart().visible(e),this):this.chart()&&this.chart().visible()}chartTypeDefaults(e){return arguments.length?(this._chartTypeDefaults=e,this):this._chartTypeDefaults}chartTypeProperties(e){return arguments.length?(this._chartTypeProperties=e,this):this._chartTypeProperties}getChartDataFamily(){return this._allCharts[this.chartType()].family}requireContent(e,t){const n=I.parseClassID(this._allCharts[e].widgetClass);switch(n.package){case"@hpcc-js/chart":import("@hpcc-js/chart").then(e=>{t(new e[n.widgetID])});break;case"@hpcc-js/dgrid":import("@hpcc-js/dgrid").then(e=>{t(new e[n.widgetID])});break;default:Ao(this._allCharts[e].widgetClass).then(function(e){t(new e)})}}switchChart(e){if(this._switchingTo===this.chartType())return void(e&&e(this));this._switchingTo&&console.warn("Attempting switch to: "+this.chartType()+", before previous switch is complete ("+this._switchingTo+")"),this._switchingTo=this.chartType();const t=this.chart(),n=this;this.requireContent(this.chartType(),function(r){if(r!==t){const e=n.size();r.fields(n.fields()).data(n.data()).size(e),n.chart(r),t&&t.size({width:1,height:1}).render()}delete n._switchingTo,e&&e(this)})}update(e,t){super.update(e,t);const n=t.selectAll(".multiChart").data(this.chart()?[this.chart()]:[],function(e){return e._id});n.enter().append("div").attr("class","multiChart").each(function(e){e.target(this)});const r=this.chart();if(r){for(const e in this._chartTypeDefaults)if(r[e+"_default"])try{r[e+"_default"](this._chartTypeDefaults[e])}catch(i){console.warn("Exception Setting Default: "+e)}else console.warn("Unknown Default: "+e);this._chartTypeDefaults={};for(const e in this._chartTypeProperties)if(r[e])try{r[e](this._chartTypeProperties[e])}catch(i){console.warn("Exception Setting Property: "+e)}else console.warn("Unknown Property: "+e);this._chartTypeProperties={}}const o=this;n.each(function(e){e.resize(o.size())}),n.exit().transition().each(function(e){e.target(null)}).remove()}exit(e,t){this._chartMonitor&&(this._chartMonitor.remove(),delete this._chartMonitor),this.chart()&&this.chart().target(null),super.exit(e,t)}render(e){if(this.chartType()&&(!this.chart()||this.chart().classID()!==this._allCharts[this.chartType()].widgetClass)){const e=this,t=arguments;return this.switchChart(function(){C.prototype.render.apply(e,t)}),this}return C.prototype.render.apply(this,arguments)}};x(Lo,"MultiChart");let Oo=Lo;Oo.prototype._class+=" composite_MultiChart",Oo.prototype.implements(Z.prototype),Oo.prototype.implements(ee.prototype),Oo.prototype._otherChartTypes=[{id:"FORM",display:"Form",widgetClass:"form_FieldForm"}].map(function(e){return e.family="other",e}),Oo.prototype._graphChartTypes=[{id:"GRAPH",display:"Graph",widgetClass:"graph_Graph"},{id:"ADJACENCY_GRAPH",display:"Graph",widgetClass:"graph_AdjacencyGraph"},{id:"GRAPHC",display:"GraphC",widgetClass:"graph_GraphC"}].map(function(e){return e.family="GRAPH",e}),Oo.prototype._1DChartTypes=[].map(function(e){return e.family="1D",e}),Oo.prototype._2DChartTypes=[{id:"SUMMARY",display:"Summary",widgetClass:"chart_Summary"},{id:"BUBBLE",display:"Bubble",widgetClass:"chart_Bubble"},{id:"PIE",display:"Pie",widgetClass:"chart_Pie"},{id:"WORD_CLOUD",display:"Word Cloud",widgetClass:"other_WordCloud"}].map(function(e){return e.family="2D",e}),Oo.prototype._NDChartTypes=[{id:"COLUMN",display:"Column",widgetClass:"chart_Column"},{id:"BAR",display:"Bar",widgetClass:"chart_Bar"},{id:"LINE",display:"Line",widgetClass:"chart_Line"},{id:"AREA",display:"Area",widgetClass:"chart_Area"},{id:"STEP",display:"Step",widgetClass:"chart_Step"},{id:"SCATTER",display:"Scatter",widgetClass:"chart_Scatter"},{id:"HEXBIN",display:"Hex Bin",widgetClass:"chart_HexBin"}].map(function(e){return e.family="ND",e}),Oo.prototype._mapChartTypes=[{id:"CHORO_USSTATES",display:"US State Choropleth",widgetClass:"map_ChoroplethStates"},{id:"CHORO_USCOUNTIES",display:"US County Choropleth",widgetClass:"map_ChoroplethCounties"},{id:"CHORO_COUNTRIES",display:"Country Choropleth",widgetClass:"map_ChoroplethCountries"},{id:"GMAP_CHORO_USCOUNTIES",display:"Google Map US County Choropleth",widgetClass:"map_GMapCounties"},{id:"GOOGLE_MAP",display:"Google Map",widgetClass:"map_GMapLayered"},{id:"OPENSTREET",display:"Open Street Map",widgetClass:"map_OpenStreet"}].map(function(e){return e.family="map",e}),Oo.prototype._anyChartTypes=[{id:"TABLE",display:"Table",widgetClass:"dgrid_Table"},{id:"TABLE_LEGACY",display:"Table (legacy)",widgetClass:"other_Table"},{id:"TABLE_NESTED",display:"Nested Table",widgetClass:"other_NestedTable"},{id:"TABLE_CALENDAR",display:"Table driven Calendar Heat Map",widgetClass:"other_CalendarHeatMap"},{id:"TABLE_BULLET",display:"Table driven bullet chart",widgetClass:"chart_Bullet"},{id:"TABLE_SELECT",display:"Table driven select",widgetClass:"other_Select"},{id:"TABLE_AUTOCOMPLETE",display:"Table driven auto complete",widgetClass:"other_AutoCompleteText"},{id:"TABLE_OPPORTUNITY",display:"Table driven opportunity widget",widgetClass:"graph_Opportunity"},{id:"TABLE_TREE",display:"Table driven tree",widgetClass:"tree_Dendrogram"},{id:"TABLE_TREEMAP",display:"Table driven Treemap",widgetClass:"tree_Treemap"},{id:"TABLE_SANKEY",display:"Table driven Sankey",widgetClass:"graph_Sankey"},{id:"TABLE_GMAP_PIN",display:"Table driven Google Map (pins)",widgetClass:"map_GMapPin"},{id:"TABLE_GMAP_PINLINE",display:"Table driven Google Map (pins/lines)",widgetClass:"map_GMapPinLine"},{id:"TABLE_XML_TREE",display:"Table driven XML Tree",widgetClass:"tree_Indented"}].map(function(e){return e.family="any",e}),Oo.prototype._allChartTypes=Oo.prototype._otherChartTypes.concat(Oo.prototype._graphChartTypes.concat(Oo.prototype._1DChartTypes.concat(Oo.prototype._2DChartTypes.concat(Oo.prototype._NDChartTypes.concat(Oo.prototype._mapChartTypes.concat(Oo.prototype._anyChartTypes)))))),Oo.prototype._allMap=Q(Oo.prototype._allChartTypes,function(e){return e.family}),Oo.prototype._allFamilies=Oo.prototype._allMap.keys(),Oo.prototype._allChartTypesMap={},Oo.prototype._allChartTypesByClass={},Oo.prototype._allChartTypes.forEach(function(e){e.widgetPath=I.widgetPath(e.widgetClass),Oo.prototype._allChartTypesMap[e.id]=e,Oo.prototype._allChartTypesByClass[e.widgetClass]=e}),Oo.prototype.publishReset(),Oo.prototype.publish("hideRowOnLegendClick",!1,"boolean","Enable/Disable hiding row on legend clicks",null,{tags:["Basic"]}),Oo.prototype.publish("chartType","BUBBLE","set","Chart Type",Oo.prototype._allChartTypes.map(function(e){return e.id}),{tags:["Basic"]}),Oo.prototype.publish("chart",null,"widget","Chart",null,{tags:["Basic"]});const Mo=Oo.prototype.chart;Oo.prototype.chart=function(e){const t=Mo.apply(this,arguments);if(arguments.length){const t=this;this._allChartTypesByClass[e.classID()]?this.chartType(this._allChartTypesByClass[e.classID()].id):console.warn("Unknown Class ID: "+e.classID()),e.click=function(e,n,r){t.click.apply(t,arguments)},e.dblclick=function(e,n,r){t.dblclick.apply(t,arguments)},e.vertex_click=function(e,n,r,o){t.vertex_click.apply(t,arguments)},e.vertex_dblclick=function(e,n,r,o){t.vertex_dblclick.apply(t,arguments)},e.edge_click=function(e,n,r,o){t.edge_click.apply(t,arguments)},e.edge_dblclick=function(e,n,r,o){t.edge_dblclick.apply(t,arguments)},this._chartMonitor&&(this._chartMonitor.remove(),delete this._chartMonitor),this._chartMonitor=e.monitor(function(n,r,o){t.broadcast(n,r,o,e)})}return t};const Bo=class _Summary extends C{constructor(){super()}enter(e,t){super.enter(e,t),t.append("p")}update(e,t){super.update(e,t),t.select("p").text(this.text())}};x(Bo,"Summary"),Bo.prototype.publish("text","","string");const Ho=class _MultiChartPanel extends so{constructor(){super(),this.widget((new Oo).chartType("COLUMN"))}multiChart(){return this._widget}chartType(e){return arguments.length?(this._widget.chartType(e),this):this._widget.chartType()}chart(e){return arguments.length?(this._widget.chart(e),this):this._widget.chart()}chartTypeDefaults(e){return arguments.length?(this._widget.chartTypeDefaults(e),this):this._widget.chartTypeDefaults()}chartTypeProperties(e){return arguments.length?(this._widget.chartTypeProperties(e),this):this._widget.chartTypeProperties()}update(e,t){super.update(e,t),this._widget instanceof Oo&&this._legend.dataFamily(this._widget.getChartDataFamily()),super.update(e,t)}};x(Ho,"MultiChartPanel");let No=Ho;No.prototype._class+=" composite_MultiChartPanel";const Wo=class _Dermatology extends cr{_toolbar;_propEditor;_showProperties;_propsButton;_prevWidget;constructor(){super(),this._toolbar=(new Io).title("Dermatology"),this._propEditor=(new ie).show_settings(!0)}showProperties(e){if(!arguments.length)return this._showProperties;this._showProperties=e,this.rightPercentage(0).rightSize(this._showProperties?360:0).setContent("right",this._showProperties?this._propEditor:null);const t=this.widget();return t&&t.designMode&&t.designMode(this._showProperties),this}toggleProperties(){return this.showProperties(!this.showProperties())}enter(e,t){super.enter(e,t),this.topPercentage(0).topSize(0).setContent("top",this._toolbar),this.getCell("top").surfaceShadow(!0);const n=this;this._propsButton=(new te).id(this.id()+"_props").value("Properties").on("click",function(){n.toggleProperties().render()}),this._toolbar.widgets([this._propsButton])}update(e,t){this.topPercentage(0).topSize(this.showToolbar()?32:0),super.update(e,t);const n=this.widget();t.style("background-color",n&&n.surfaceShadow?null:"white")}render(e){const t=this.widget();return t!==this._prevWidget&&(t&&t.surfaceShadow&&t.surfaceBackgroundColor_default("white"),this.setContent("center",t),this._propEditor.widget(t),this._prevWidget=t),super.render(e)}showToolbar;showToolbar_exists;widget;widget_exists};x(Wo,"Dermatology");let Uo=Wo;Uo.prototype._class+=" composite_Dermatology",Uo.prototype.publish("showToolbar",!0,"boolean","Show Toolbar"),Uo.prototype.publish("widget",null,"widget","Widget");const jo=class _MegaChart extends cr{_chart=new Oo;_toolbar=new Io;_valueTitle=new N;_domainTitle=new N;_legend=new le;_csvButton;_infoButton;_maximizeButton;_legendButton;_chartTypeSelect;_prevLegendPosition;_prevShowToolbar;_1DChartTypes;_2DChartTypes;_NDChartTypes;_anyChartTypes;_allChartTypes;_contentClasses;_dataCount;constructor(){super(),this._tag="div";const e=this;this._chart.click=function(){e.click.apply(e,arguments)},this._chart.dblclick=function(){e.dblclick.apply(e,arguments)},this._chart.vertex_click=function(){e.vertex_click.apply(e,arguments)},this._chart.vertex_dblclick=function(){e.vertex_dblclick.apply(e,arguments)},this._chart.edge_click=function(){e.edge_click.apply(e,arguments)},this._chart.edge_dblclick=function(){e.edge_dblclick.apply(e,arguments)}}toolbarWidgets(e){return arguments.length?(this._toolbar.widgets(e),this):this._toolbar.widgets()}chartTypeDefaults(e){return arguments.length?(this._chart.chartTypeDefaults(e),this):this._chart.chartTypeDefaults()}chartTypeProperties(e){return arguments.length?(this._chart.chartTypeProperties(e),this):this._chart.chartTypeProperties()}fields(e){return arguments.length?(this._chart.fields(e),this):this._chart.fields()}columns(e,t){return arguments.length?(this._chart.columns(e,t),this):this._chart.columns()}data(e){return arguments.length?(this._chart.data(e),this):this._chart.data()}downloadCSV(){return I.downloadString("CSV",this._chart.export("CSV")),this}enter(e,t){super.enter(e,t);const n=this;this.topShrinkWrap(!1).topPercentage(0).topSize(30),this._dataCount=(new ae).classed({"composite_MegaChart-dataCount":!0}).id(this.id()+"_dataCount").html('<span class="MegaChart-dataCount-label">Count:</span>&nbsp;<span class="MegaChart-dataCount-value">'+(this.data()?this.data().length:"0")+"</span>").overflowX("visible").overflowY("visible"),this._csvButton=(new ne).classed({"composite_MegaChart-CSV":!0}).id(this.id()+"_csv").value("CSV"),this._csvButton.click=function(e){n.downloadCSV()},this._infoButton=(new ne).classed({"composite_MegaChart-Info":!0}).id(this.id()+"_info").value(this.infoIcon()),this._maximizeButton=(new ne).classed({"composite_MegaChart-Maximize":!0}).id(this.id()+"_maximize").value(""),this._maximizeButton.click=function(e){const t=n.target();let r=t;const o=E(t).classed("__hpccisMaximized"),i=n.locateAncestor("layout_Grid");r=i?i.element().node():document.body;const l=E(n.target());if(o){const r=t.parentElement.getBoundingClientRect(),o=parseInt(getComputedStyle(t,null).getPropertyValue("padding-top").replace("px","")),i=parseInt(getComputedStyle(t,null).getPropertyValue("padding-left").replace("px","")),a=parseInt(getComputedStyle(t,null).getPropertyValue("padding-right").replace("px","")),s=parseInt(getComputedStyle(t,null).getPropertyValue("padding-bottom").replace("px",""));n.contentDiv.style("opacity",0).transition(100),l.transition().style("top",r.top+"px").style("left",r.left+"px").style("width",r.width-i-a+"px").style("height",r.height-o-s+"px").each("end",function(){l.style("position",t.__old_position),l.style("z-index",t.__old_zindex),l.style("background-color",t.__old_backgroundColor),l.style("box-shadow",t.__old_boxshadow),n.resize({width:r.width-i-a,height:r.height-o-s}).render(function(){n.contentDiv.transition().style("opacity",1)}),e.value("").render()})}else{t.__old_position=t.style.position,t.__old_zindex=t.style.zIndex,t.__old_boxshadow=t.style.boxShadow,t.__old_backgroundColor=n.element().style("background-color");const o=E(r).datum(),i=o.target(),a=o?i.getBoundingClientRect():r.getBoundingClientRect(),s=parseInt(getComputedStyle(i,null).getPropertyValue("padding-top").replace("px","")),u=parseInt(getComputedStyle(i,null).getPropertyValue("padding-left").replace("px","")),c=parseInt(getComputedStyle(i,null).getPropertyValue("padding-right").replace("px","")),d=parseInt(getComputedStyle(i,null).getPropertyValue("padding-bottom").replace("px",""));n.contentDiv.style("opacity",0).transition(100),l.style("position","fixed").style("z-index",999999).style("box-shadow","0 8px 8px 0 rgba(0,0,0,.14),0 12px 4px -8px rgba(0,0,0,.2),0 4px 20px 0 rgba(0,0,0,.12)").style("background-color",t.__old_backgroundColor).transition().style("top",a.top+s+"px").style("left",a.left+u+"px").style("width",a.width-u-c+"px").style("height",a.height-s-d+"px").each("end",function(){l.style("background-color",n.maximizedBackgroundColor()),n.resize({width:a.width-u-c,height:a.height-s-d}).render(function(){n.contentDiv.transition().style("opacity",1)}),e.value("").render()})}E(t).classed("__hpccisMaximized",!o)},this._legendButton=(new re).classed({"composite_MegaChart-legend":!0}).id(this.id()+"_legend").type("checkbox").inlineLabel("Legend: "),this._legendButton.click=function(e){n.render()},this._chartTypeSelect=(new oe).classed({"composite_MegaChart-chartType":!0}).id(this.id()+"_chartType").selectOptions(this._allChartTypes.map(function(e){return[e.id,e.display]})).value(this.chartType()),this._chartTypeSelect.change=function(e){n.chartType(e.value()).render()},this.setContent("center",this._chart),this._legend.targetWidget(this._chart).orientation(-1!==["top","bottom"].indexOf(this.legendPosition())?"horizontal":"vertical").fixedSize(!0),this._prevLegendPosition=this.legendPosition(),this.valueAxisTitle()&&this.setContent("left",this._valueTitle.rotation(-90)).leftShrinkWrap(!0),this.domainAxisTitle()&&this.setContent("bottom",this._domainTitle).bottomShrinkWrap(!0),"none"!==this.legendPosition()&&this.setContent(this.legendPosition(),this._legend)[this.legendPosition()+"ShrinkWrap"](!0)}update(e,t){function n(e,t,n){if(n&&-1===e.indexOf(t))e.push(t);else if(!n){const n=e.indexOf(t);n>=0&&e.splice(n,1)}}x(n,"showHideButton"),this._chart&&"function"==typeof this._chart.hideRowOnLegendClick&&this._chart.hideRowOnLegendClick(this.hideRowOnLegendClick()),this._dataCount.html('<span class="MegaChart-dataCount-label">Count:</span>&nbsp;<span class="MegaChart-dataCount-value">'+(this.data()?this.data().length:"0")+"</span>"),this._chartTypeSelect.value(this.chartType());const r=this.toolbarWidgets();n(r,this._csvButton,this.showCSV()),n(r,this._maximizeButton,this.showMaximize()),n(r,this._legendButton,this.toolbarShowLegend()),n(r,this._chartTypeSelect,this.showChartSelect()),n(r,this._infoButton,this.showInfoButton()),n(r,this._dataCount,this.showCount()),this.toolbarWidgets(r),this._prevShowToolbar!==this.showToolbar()&&(this.setContent("top",this.showToolbar()?this._toolbar:null),this._prevShowToolbar=this.showToolbar()),this._toolbar.fontSize(this.titleFontSize()).fontColor(this.titleFontColor()).fontFamily(this.titleFontFamily()).fontBold(this.titleFontBold()).backgroundColor(this.titleBackgroundColor()),this._chart.data(this.data()),this._chart.chartType()!==this.chartType()&&this._chart.chartType(this.chartType());let o=this.legendPosition();this.toolbarShowLegend()&&!this._legendButton.checked()&&(o="none"),this._prevLegendPosition!==o&&("none"!==this._prevLegendPosition&&this.clearContent(this._prevLegendPosition),this._prevLegendPosition=o,"none"!==o&&(this._legend=(new le).targetWidget(this.getContent("center").fixedSize(!0)),this.setContent(o,this._legend),this._legend.orientation(-1!==["top","bottom"].indexOf(o)?"horizontal":"vertical"))),this._contentClasses=this.getContentClasses(),this.valueAxisTitle()&&"common_Text"!==this._contentClasses.left&&"left"!==o&&this.setContent("left",this._valueTitle.rotation(-90)),this.domainAxisTitle()&&"common_Text"!==this._contentClasses.bottom&&"bottom"!==o&&this.setContent("bottom",this._domainTitle).bottomShrinkWrap(!0),this._legend.dataFamily(this._chart.getChartDataFamily()),super.update(e,t)}exit(e,t){super.exit(e,t)}getContentClasses(){const e={},t=this.getContent("top"),n=this.getContent("right"),r=this.getContent("bottom"),o=this.getContent("left");return e.top=null!==t?t.classID():void 0,e.right=null!==n?n.classID():void 0,e.bottom=null!==r?r.classID():void 0,e.left=null!==o?o.classID():void 0,e}serializeState(){const e={title:this.title(),data:this.data()},t=this.chart();return t&&t.serializeState&&(e.chart=t.serializeState(),delete e.chart.data),e}deserializeState(e){if(e){this.title(e.title).data(e.data);const t=this.chart();t&&e.chart&&t.serializeState&&t.deserializeState(e.chart)}return this}click(e,t,n){}dblclick(e,t,n){}vertex_click(e,t,n,r){r&&r.vertex}vertex_dblclick(e,t,n,r){r&&r.vertex}edge_click(e,t,n,r){r&&r.edge}edge_dblclick(e,t,n,r){r&&r.edge}hideRowOnLegendClick;hideRowOnLegendClick_exists;showToolbar;showToolbar_exists;titleFontSize;titleFontSize_exists;titleFontColor;titleFontColor_exists;titleFontFamily;titleFontFamily_exists;titleFontBold;titleFontBold_exists;titleBackgroundColor;titleBackgroundColor_exists;maximizedBackgroundColor;maximizedBackgroundColor_exists;showChartSelect;showChartSelect_exists;showCSV;showCSV_exists;showCount;showCount_exists;showMaximize;showMaximize_exists;toolbarShowLegend;toolbarShowLegend_exists;showInfoButton;showInfoButton_exists;infoIcon;infoIcon_exists;legendPosition;legendPosition_exists;title;title_exists;domainAxisTitle;domainAxisTitle_exists;valueAxisTitle;valueAxisTitle_exists;chartType;chartType_exists;chart;chart_exists};x(jo,"MegaChart");let $o=jo;function Vo(e,t){if(t=t&&"1.14.2-dev"!==t?t:"1.18.0",!e.__version)return e;const n=I.parseVersionString(e.__version),r=I.parseVersionString(t);if(1===n.major&&14===n.minor){console.info("Upgrading old persist from "+e.__version+" to "+t);let n=JSON.stringify(e);n=n.split('"'+e.__version).join('"'+t);const o=JSON.parse(n);return o.__properties&&o.__properties.content&&o.__properties.content.forEach(function(e){JSON.stringify(e).split("graph_Graph").length>1&&r.minor>=16&&(e.__properties.widget.__id=e.__properties.widget.__properties.widget.__id,e.__properties.widget.__class="composite_MegaChart",e.__properties.widget.__properties.showCSV=!1,e.__properties.widget.__properties.chartType="GRAPH",e.__properties.widget.__properties.chart=e.__properties.widget.__properties.widget,delete e.__properties.widget.__properties.chart.__id,delete e.__properties.widget.__properties.widget),void 0===e.__properties.fields&&(e.__properties.fields=[])}),o}return e}function Go(e,t){const n=[];return se.widgetPropertyWalker(e,null,(e,r)=>{if(e[r.id+"_reset"](),void 0!==t.__properties[r.id])switch(r.type){case"widget":const o=r.id;n.push(Yo(t.__properties[r.id]).then(t=>(t._owner=e,e[o](t),t)));break;case"widgetArray":case"propertyArray":const i=r.id,l=t.__properties[r.id];if(l.length){const t=[];for(const n of l)t.push(Yo(n).then(t=>(t._owner=e,t)));n.push(Promise.all(t).then(t=>{e[i](t)}))}break;default:e[r.id](t.__properties[r.id])}}),Promise.all(n).then(n=>{if(t.__data)for(const r in t.__data)if(t.__data.HasOwnProperty(r))if("data"===r)e.data(t.__data[r]);else console.warn("Unexpected __data item: "+r),e[r](t.__data[r]);return t.__state&&(e.deserializeState?e.deserializeState(t.__state):t.__state.data&&e.data&&e.data(t.__state.data)),e})}function qo(e,t){"string"==typeof t&&(t=JSON.parse(t)),t.__id&&0!==t.__id.indexOf(e._idSeed)&&e._id!==t.__id&&console.warn("Deserialize: IDs do not match - "+e._id),Go(e,t)}function Yo(e){return"string"==typeof e&&(e=JSON.parse(e)),Ao((e=Vo(e,A.version())).__class).then(t=>{const n=new t;return e.__id&&0!==e.__id.indexOf(n._idSeed)&&0!==e.__id.indexOf("_pe")&&(n._id=e.__id),Go(n,e)}).catch(function(e){console.error("Persist.create: ***exception***"),console.error(e)})}function Xo(e){Yo(se.serializeToObject(e,void 0,!0,!0))}$o.prototype._class+=" composite_MegaChart",$o.prototype._1DChartTypes=Oo.prototype._1DChartTypes,$o.prototype._2DChartTypes=Oo.prototype._2DChartTypes,$o.prototype._NDChartTypes=Oo.prototype._NDChartTypes,$o.prototype._anyChartTypes=Oo.prototype._anyChartTypes,$o.prototype._allChartTypes=Oo.prototype._allChartTypes,$o.prototype.publishReset(),$o.prototype.publish("hideRowOnLegendClick",!1,"boolean","Enable/Disable hiding row on legend clicks",null,{tags:["Basic"]}),$o.prototype.publish("showToolbar",!0,"boolean","Enable/Disable Toolbar widget",null,{tags:["Basic"]}),$o.prototype.publishProxy("title","_toolbar","title"),$o.prototype.publish("ddlParamsFormat","","string","DDL Param Format '{fname}, {lname}'",null,{tags:["Advanced"],optional:!0}),$o.prototype.publish("titleFontSize",null,"number","Title Font Size (px)",null,{tags:["Advanced"],optional:!0}),$o.prototype.publish("titleFontColor",null,"html-color","Title Font Color",null,{tags:["Advanced"],optional:!0}),$o.prototype.publish("titleFontFamily",null,"string","Title Font Family",null,{tags:["Advanced"],optional:!0}),$o.prototype.publish("titleFontBold",!0,"boolean","Enable Bold Title Font",null,{tags:["Advanced"],optional:!0}),$o.prototype.publish("titleBackgroundColor",null,"html-color","Background Color",null,{tags:["Intermediate"],optional:!0}),$o.prototype.publish("maximizedBackgroundColor","#FFFFFF","html-color","Background Color while maximized",null,{tags:["Intermediate"],optional:!0}),$o.prototype.publish("showChartSelect",!0,"boolean","Show/Hide the chartType dropdown in the toolbar",null,{tags:["Basic"]}),$o.prototype.publish("showCSV",!0,"boolean","Show/Hide CSV button",null,{tags:["Basic"]}),$o.prototype.publish("showCount",!1,"boolean","Show/Hide Data Count",null,{tags:["Basic"]}),$o.prototype.publish("showMaximize",!1,"boolean","Show/Hide Maximize button",null,{tags:["Basic"]}),$o.prototype.publish("toolbarShowLegend",!1,"boolean","Show/Hide Legend button",null,{tags:["Basic"]}),$o.prototype.publish("showInfoButton",!1,"boolean","Show/Hide Info button in toolbar",null,{tags:["Basic"]}),$o.prototype.publish("infoIcon","","string","Help Icon",null,{tags:["Basic"]}),$o.prototype.publish("legendPosition","none","set","Position of the Legend widget",["none","top","right","bottom","left"],{tags:["Basic"]}),$o.prototype.publishProxy("legendFormat","_legend","rainbowFormat"),$o.prototype.publishProxy("legendBins","_legend","rainbowBins"),$o.prototype.publishProxy("domainAxisTitle","_domainTitle","text"),$o.prototype.publishProxy("valueAxisTitle","_valueTitle","text"),$o.prototype.publishProxy("chartType","_chart","chartType"),$o.prototype.publishProxy("chart","_chart","chart"),x(Vo,"retrofit_114_serialization"),x(Go,"deserializeFromObject"),x(qo,"deserialize"),x(Yo,"create"),x(Xo,"clone");const Ko=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,clone:Xo,create:Yo,deserialize:qo,deserializeFromObject:Go,retrofit_114_serialization:Vo},Symbol.toStringTag,{value:"Module"}));export{de as BUILD_VERSION,Uo as Dermatology,$o as MegaChart,Oo as MultiChart,No as MultiChartPanel,ue as PKG_NAME,ce as PKG_VERSION,Ko as Persist,Fo as Utility};
6
+ /* @__PURE__ */Ye.jsx("button",{onClick:this.handleReset,className:"mt-4 px-4 py-2 bg-red-600 text-white rounded-md hover:bg-red-700 transition-colors",children:"Try again"})]})}):this.props.children}},x(e,"_ErrorBoundary"),e);pe($n,"ErrorBoundary");let Vn=$n;function Gn(e){return[xe.useMemo(()=>e.columns(),[e,e.dataChecksum()]),xe.useMemo(()=>e.data(),[e,e.dataChecksum()])]}function qn(e,t,n){const r=t;return[...e].sort((e,t)=>e[r]<t[r]?n?1:-1:e[r]>t[r]?n?-1:1:0)}x(Gn,"Ut$1"),x(qn,"jt$1"),pe(Gn,"useData"),pe(qn,"copyAndSort");const Yn=/* @__PURE__ */pe(({message:e})=>/* @__PURE__ */Ye.jsx("div",{style:{textAlign:"center",gridColumn:"1/-1"},children:e}),"EmptyRowsRenderer"),Xn=/* @__PURE__ */pe(({table:e,sort:t})=>{const[n,r]=Gn(e),o=e.multiSelect(),i=e.columnTypes(),l=e.columnPatterns(),a=e.columnFormats(),[s,u]=_e.useState([]),[c,d]=_e.useState(),[h,p]=_e.useState([]),[f,g]=_e.useState(/* @__PURE__ */new Set);_e.useEffect(()=>{u([...o?[Wt]:[],...n.map(e=>{let t,n,r;switch(i[e]??"string"){case"time":n=void 0!==l[e]?k(l[e]):void 0,r=void 0!==a[e]?T(a[e]):void 0;break;case"number":t=/* @__PURE__ */pe(e=>/* @__PURE__ */Ye.jsx("div",{style:{textAlign:"right"},children:e.row[e.column.key]}),"formatter");default:r=void 0!==a[e]?S(a[e]):void 0}return{key:e,name:e,resizable:!0,sortable:!0,minWidth:80,renderCell:t,__hpcc_pattern:n,__hpcc_format:r}})])},[a,l,i,n,o]);const m=_e.useCallback(e=>{const t=e.slice(-1)[0],n=void 0!==t,r="DESC"===t?.direction;d(t),p(qn(h,n?t.columnKey:"key",!!n&&r))},[h]),y=_e.useCallback(e=>e.key,[]),b=_e.useCallback(e=>{g(e)},[]),v=_e.useCallback((t,n)=>{e.onRowClickCallback(t,n.key)},[e]);return _e.useEffect(()=>{let e=r.map((e,t)=>{const n={key:t};return s.forEach((t,r)=>{let o=e[r];t.__hpcc_pattern&&t.__hpcc_format?o=t.__hpcc_format(t.__hpcc_pattern(o)):t.__hpcc_pattern?o=t.__hpcc_pattern(o).toString():t.__hpcc_format&&(o=t.__hpcc_format(o)),n[t.key]=o}),n});t?.attribute&&(e=qn(e,t.attribute,t.descending)),p(e)},[s,r,t]),/* @__PURE__ */Ye.jsx(Vn,{fallback:/* @__PURE__ */Ye.jsx("div",{children:"Error loading table"}),children:/* @__PURE__ */Ye.jsx(Bn,{columns:s,headerRowHeight:24,rows:h,rowKeyGetter:y,rowHeight:20,renderers:{noRowsFallback:/* @__PURE__ */Ye.jsx(Yn,{message:e.noDataMessage()})},className:e.darkMode()?"rdg-dark":"rdg-light",sortColumns:c?[c]:[],onSortColumnsChange:m,selectedRows:f,onSelectedRowsChange:o?b:void 0,onCellClick:o?void 0:(e,t)=>v(e.row,e.column),style:{height:"100%"}})})},"ReactTable"),Kn=(x(t=class extends C{_div;_root;_component;constructor(){super()}columnType(e,t){return 1===arguments.length?this.columnTypes()[e]:(this.columnTypes({...this.columnTypes(),[e]:t}),this)}columnPattern(e,t){return 1===arguments.length?this.columnPatterns()[e]:(this.columnPatterns({...this.columnPatterns(),[e]:t}),this)}columnFormat(e,t){return 1===arguments.length?this.columnFormats()[e]:(this.columnFormats({...this.columnFormats(),[e]:t}),this)}_prevRow;_prevColumn;onRowClickCallback(e,t){this._prevRow&&JSON.stringify(this._prevRow)!==JSON.stringify(e)&&this.click(this._prevRow,this._prevColumn??"",!1),e&&this.click(e,t,!0),this._prevRow=e,this._prevColumn=t}enter(e,t){super.enter(e,t),this._div=t.append("div").style("display","grid"),this._root=je.createRoot(this._div.node(),{identifierPrefix:this.id()}),this._component=_e.createElement(Xn,{table:this})}update(e,t){super.update(e,t),this._div.style("width",this.width()+"px"),this._div.style("height",this.height()+"px"),this._root.render(this._component)}exit(e,t){this._div.remove(),super.exit(e,t)}click(e,t,n){}},"_Table"),t);pe(Kn,"Table");let Qn=Kn;Qn.prototype._class+=" dgrid2_Table",Qn.prototype.publish("noDataMessage","...empty...","string","No Data Message"),Qn.prototype.publish("darkMode",!1,"boolean","Dark Mode"),Qn.prototype.publish("multiSelect",!1,"boolean","Multiple Selection"),Qn.prototype.publish("columnTypes",{},"object",'Column Types ("boolean" | "number" | "string" | "time"'),Qn.prototype.publish("columnPatterns",{},"object","Column Patterns"),Qn.prototype.publish("columnFormats",{},"object","Column Formats"),function(){try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('@layer rdg{@layer Defaults,FocusSink,CheckboxInput,CheckboxIcon,CheckboxLabel,Cell,HeaderCell,SummaryCell,EditCell,Row,HeaderRow,SummaryRow,GroupedRow,Root;}@layer rdg.MeasuringCell{.rdg-7-0-0-beta-58-fa71d63e{contain:strict;grid-row:1;visibility:hidden}}@layer rdg.Cell{.rdg-7-0-0-beta-58-85c48527{position:relative;padding-block:0;padding-inline:8px;border-inline-end:var(--rdg-border-width) solid var(--rdg-border-color);border-block-end:var(--rdg-border-width) solid var(--rdg-border-color);grid-row-start:var(--rdg-grid-row-start);align-content:center;background-color:inherit;white-space:nowrap;overflow:clip;text-overflow:ellipsis;outline:none}.rdg-7-0-0-beta-58-85c48527[aria-selected=true]{outline:var(--rdg-selection-width) solid var(--rdg-selection-color);outline-offset:calc(var(--rdg-selection-width) * -1)}}@layer rdg.Cell{.rdg-7-0-0-beta-58-17a9a6d4{position:sticky;z-index:1}.rdg-7-0-0-beta-58-17a9a6d4:nth-last-child(1 of.rdg-7-0-0-beta-58-17a9a6d4){box-shadow:var(--rdg-cell-frozen-box-shadow)}}@layer rdg.DragHandle{.rdg-7-0-0-beta-58-bfba19bc{--rdg-drag-handle-size: 8px;z-index:0;cursor:move;inline-size:var(--rdg-drag-handle-size);block-size:var(--rdg-drag-handle-size);background-color:var(--rdg-selection-color);place-self:end}.rdg-7-0-0-beta-58-bfba19bc:hover{--rdg-drag-handle-size: 16px;border:2px solid var(--rdg-selection-color);background-color:var(--rdg-background-color)}}@layer rdg.DragHandle{.rdg-7-0-0-beta-58-7abddb3e{z-index:1;position:sticky}}@layer rdg.CheckboxInput{.rdg-7-0-0-beta-58-3b807ead{display:block;margin:auto;inline-size:20px;block-size:20px}.rdg-7-0-0-beta-58-3b807ead:focus-visible{outline:2px solid var(--rdg-checkbox-focus-color);outline-offset:-3px}.rdg-7-0-0-beta-58-3b807ead:enabled{cursor:pointer}}@layer rdg.GroupCellContent{.rdg-7-0-0-beta-58-07919382{outline:none}}@layer rdg.GroupCellCaret{.rdg-7-0-0-beta-58-02a50147{margin-inline-start:4px;stroke:currentColor;stroke-width:1.5px;fill:transparent;vertical-align:middle}.rdg-7-0-0-beta-58-02a50147>path{transition:d .1s}}@layer rdg.SortableHeaderCell{.rdg-7-0-0-beta-58-56a248e4{display:flex}}@layer rdg.SortableHeaderCellName{.rdg-7-0-0-beta-58-7fad8c83{flex-grow:1;overflow:clip;text-overflow:ellipsis}}@layer rdg.Cell{.rdg-7-0-0-beta-58-35ccb4c8{background-color:#ccf}}@layer rdg.EditCell{.rdg-7-0-0-beta-58-46f9ea88{padding:0}}@layer rdg.HeaderRow{.rdg-7-0-0-beta-58-0dbd5994{display:contents;background-color:var(--rdg-header-background-color);font-weight:700}.rdg-7-0-0-beta-58-0dbd5994>.rdg-7-0-0-beta-58-85c48527{z-index:2;position:sticky}.rdg-7-0-0-beta-58-0dbd5994>.rdg-7-0-0-beta-58-17a9a6d4{z-index:3}}@layer rdg.HeaderCell{.rdg-7-0-0-beta-58-2a7e240d{cursor:pointer}}@layer rdg.HeaderCell{.rdg-7-0-0-beta-58-1893dc0f{touch-action:none}}@layer rdg.HeaderCell{.rdg-7-0-0-beta-58-4e60db91{cursor:col-resize;position:absolute;inset-block-start:0;inset-inline-end:0;inset-block-end:0;inline-size:10px}}@layer rdg.HeaderCell{.rdg-7-0-0-beta-58-3e1a4ad4{background-color:var(--rdg-header-draggable-background-color)}}@layer rdg.HeaderCell{.rdg-7-0-0-beta-58-51abd8b8{background-color:var(--rdg-header-draggable-background-color)}}@layer rdg.HeaderCell{.rdg-7-0-0-beta-58-c8d7aa64{border-radius:4px;width:fit-content;outline:2px solid hsl(207,100%,50%);outline-offset:-2px}}@layer rdg.Row{.rdg-7-0-0-beta-58-3c083f1b{display:contents;background-color:var(--rdg-background-color)}.rdg-7-0-0-beta-58-3c083f1b:hover{background-color:var(--rdg-row-hover-background-color)}.rdg-7-0-0-beta-58-3c083f1b[aria-selected=true]{background-color:var(--rdg-row-selected-background-color)}.rdg-7-0-0-beta-58-3c083f1b[aria-selected=true]:hover{background-color:var(--rdg-row-selected-hover-background-color)}}@layer rdg.FocusSink{.rdg-7-0-0-beta-58-3fe773c3{outline:2px solid var(--rdg-selection-color);outline-offset:-2px}}@layer rdg.FocusSink{.rdg-7-0-0-beta-58-97ce3fde:before{content:"";display:inline-block;block-size:100%;position:sticky;inset-inline-start:0;border-inline-start:2px solid var(--rdg-selection-color)}}@layer rdg.SortIcon{.rdg-7-0-0-beta-58-3d5115f3{fill:currentColor}.rdg-7-0-0-beta-58-3d5115f3>path{transition:d .1s}}@layer rdg.Defaults{.rdg-7-0-0-beta-58-ccd2e5d9 *,.rdg-7-0-0-beta-58-ccd2e5d9 *:before,.rdg-7-0-0-beta-58-ccd2e5d9 *:after{box-sizing:inherit}}@layer rdg.Root{.rdg-7-0-0-beta-58-ccd2e5d9{--rdg-selection-width: 2px;--rdg-selection-color: hsl(207, 75%, 66%);--rdg-font-size: 14px;--rdg-cell-frozen-box-shadow: 2px 0 5px -2px rgba(136, 136, 136, .3);--rdg-border-width: 1px;--rdg-summary-border-width: calc(var(--rdg-border-width) * 2);--rdg-color: light-dark(#000, #ddd);--rdg-border-color: light-dark(#ddd, #444);--rdg-summary-border-color: light-dark(#aaa, #555);--rdg-background-color: light-dark(hsl(0deg 0% 100%), hsl(0deg 0% 13%));--rdg-header-background-color: light-dark(hsl(0deg 0% 97.5%), hsl(0deg 0% 10.5%));--rdg-header-draggable-background-color: light-dark(hsl(0deg 0% 90.5%), hsl(0deg 0% 17.5%));--rdg-row-hover-background-color: light-dark(hsl(0deg 0% 96%), hsl(0deg 0% 9%));--rdg-row-selected-background-color: light-dark(hsl(207deg 76% 92%), hsl(207deg 76% 42%));--rdg-row-selected-hover-background-color: light-dark(hsl(207deg 76% 88%), hsl(207deg 76% 38%));--rdg-checkbox-focus-color: hsl(207deg 100% 69%);color-scheme:var(--rdg-color-scheme, light dark);display:grid;accent-color:light-dark(hsl(207deg 100% 29%),hsl(207deg 100% 79%));contain:content;content-visibility:auto;block-size:350px;border:1px solid var(--rdg-border-color);box-sizing:border-box;overflow:auto;background-color:var(--rdg-background-color);color:var(--rdg-color);font-size:var(--rdg-font-size)}.rdg-7-0-0-beta-58-ccd2e5d9.rdg-dark{--rdg-color-scheme: dark}.rdg-7-0-0-beta-58-ccd2e5d9.rdg-light{--rdg-color-scheme: light}.rdg-7-0-0-beta-58-ccd2e5d9:dir(rtl){--rdg-cell-frozen-box-shadow: -2px 0 5px -2px rgba(136, 136, 136, .3)}.rdg-7-0-0-beta-58-ccd2e5d9:before{content:"";grid-column:1/-1;grid-row:1/-1}.rdg-7-0-0-beta-58-ccd2e5d9>:nth-last-child(1 of.rdg-top-summary-row)>.rdg-7-0-0-beta-58-85c48527{border-block-end:var(--rdg-summary-border-width) solid var(--rdg-summary-border-color)}.rdg-7-0-0-beta-58-ccd2e5d9>:nth-child(1 of.rdg-bottom-summary-row)>.rdg-7-0-0-beta-58-85c48527{border-block-start:var(--rdg-summary-border-width) solid var(--rdg-summary-border-color)}}@layer rdg.Root{.rdg-7-0-0-beta-58-e9b0e1c9{-webkit-user-select:none;user-select:none}.rdg-7-0-0-beta-58-e9b0e1c9 .rdg-7-0-0-beta-58-3c083f1b{cursor:move}}@layer rdg.FocusSink{.rdg-7-0-0-beta-58-dbb8b3c5{grid-column:1/-1;pointer-events:none;z-index:1}}@layer rdg.FocusSink{.rdg-7-0-0-beta-58-e9f55541{z-index:3}}@layer rdg.SummaryRow{.rdg-7-0-0-beta-58-0b90c82c>.rdg-7-0-0-beta-58-85c48527{position:sticky}}@layer rdg.SummaryRow{.rdg-7-0-0-beta-58-d0520eab>.rdg-7-0-0-beta-58-85c48527{z-index:2}.rdg-7-0-0-beta-58-d0520eab>.rdg-7-0-0-beta-58-17a9a6d4{z-index:3}}@layer rdg.SummaryCell{.rdg-7-0-0-beta-58-d907aa87{inset-block-start:var(--rdg-summary-row-top);inset-block-end:var(--rdg-summary-row-bottom)}}@layer rdg.GroupedRow{.rdg-7-0-0-beta-58-e74a2be3:not([aria-selected=true]){background-color:var(--rdg-header-background-color)}.rdg-7-0-0-beta-58-e74a2be3>.rdg-7-0-0-beta-58-85c48527:not(:last-child,.rdg-7-0-0-beta-58-17a9a6d4),.rdg-7-0-0-beta-58-e74a2be3>:nth-last-child(n+2 of.rdg-7-0-0-beta-58-17a9a6d4){border-inline-end:none}}@layer rdg.TextEditor{.rdg-7-0-0-beta-58-2f8db206{appearance:none;box-sizing:border-box;inline-size:100%;block-size:100%;padding-block:0;padding-inline:6px;border:2px solid #ccc;vertical-align:top;color:var(--rdg-color);background-color:var(--rdg-background-color);font-family:inherit;font-size:var(--rdg-font-size)}.rdg-7-0-0-beta-58-2f8db206:focus{border-color:var(--rdg-selection-color);outline:none}.rdg-7-0-0-beta-58-2f8db206::placeholder{color:#999;opacity:1}}.dgrid2_Table .rdg{font-family:monospace,Courier New,Courier}.dgrid2_Table .rdg-checkbox-label .rdg-checkbox{block-size:16px;inline-size:16px;border-width:2px;box-shadow:inset 0 0 0 3px var(--rdg-background-color)}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();var Jn=Object.defineProperty,Zn=/* @__PURE__ */x((e,t)=>Jn(e,"name",{value:t,configurable:!0}),"e");function er(e,t){for(var n=0;n<t.length;n++){const r=t[n];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const n=Object.getOwnPropertyDescriptor(r,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:/* @__PURE__ */Zn(()=>r[t],"get")})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}x(er,"I"),Zn(er,"_mergeNamespaces");const tr=(x(n=class extends C{constructor(){super(),this._tag="div"}enter(e,t){super.enter(e,t)}update(e,t){super.update(e,t);let n=0,r=0,o=this.clientWidth(),i=this.clientHeight();switch(this.units()){case"pixels":n=this.widgetX(),r=this.widgetY(),o=""===this.widgetWidth()?o-n:Number(this.widgetWidth()),i=""===this.widgetHeight()?i-r:Number(this.widgetHeight());break;case"percent":n=this.widgetX()*o/100,r=this.widgetY()*i/100,o=""===this.widgetWidth()?o-n:Number(this.widgetWidth())*o/100,i=""===this.widgetHeight()?i-r:Number(this.widgetHeight())*i/100}t.style("opacity",this.opacity());const l=t.selectAll("#"+this._id+" > .placeholder").data(this.widget()?[this.widget()]:[],function(e){return e._id});l.enter().append("div").attr("class","placeholder").each(function(e){e.target(this)}).merge(l).style("left",n+"px").style("top",r+"px").style("width",o+"px").style("bottom",i+"px").each(function(e){e.resize({width:o,height:i})}),l.exit().each(function(e){e.target(null)}).remove()}exit(e,t){this.widget()&&this.widget().target(null),super.exit(e,t)}},"_AbsoluteSurface"),n);Zn(tr,"AbsoluteSurface");let nr=tr;nr.prototype._class+=" layout_AbsoluteSurface",nr.prototype.publish("units","percent","set","Units",["pixels","percent"]),nr.prototype.publish("widgetX",0,"number","Widget XPos"),nr.prototype.publish("widgetY",0,"number","Widget YPos"),nr.prototype.publish("widgetWidth","100","string","Widget Width, omit for full"),nr.prototype.publish("widgetHeight","100","string","Widget Height, omit for full"),nr.prototype.publish("widget",null,"widget","Widget",null,{tags:["Private"]}),nr.prototype.publish("opacity",1,"number","Opacity");const rr=(x(r=class extends C{_isClosed;titleSpan;iconDiv;ul;icon;constructor(){super(),this._tag="div",this._isClosed=!1}pushListItem(e,t=!1,n=!1){const r=this.content();return e._protected=n,t?r.unshift(e):r.push(e),this.content(r),this}clearListItems(){const e=[];for(const t in this.content())this.content()[t]._protected&&e.push(this.content()[t]);return this.content(e),this}collapseClick(e){e.classed("closed")?(this._isClosed=!1,e.classed("open",!0),e.classed("closed",!1)):(this._isClosed=!0,e.classed("open",!1),e.classed("closed",!0))}enter(e,t){super.enter(e,t);const n=this;this._isClosed=this.defaultCollapsed(),t.classed(this._isClosed?"closed":"open",!0),this.titleSpan=t.append("span").classed("collapsible-title",!0),this.iconDiv=t.append("div").classed("collapsible-icon",!0),this.ul=t.append("ul"),this.icon=(new P).size({height:24,width:24}).target(this.iconDiv.node()),this.iconDiv.on("click",function(){n.collapseClick(t),n.render()}),this.titleSpan.on("click",function(){n.collapseClick(t),n.render()})}update(e,t){super.update(e,t);const n=this;this.titleSpan.text(n.title().length>0?n.title()+"":"Accordion ["+n._id+"]");const r=this.ul.selectAll("#"+n._id+" > ul > li").data(this.content(),function(e){return e._id});r.enter().append(function(e){const t=document.createElement("li");if(null!==e._target)return e._target;{const r=e.size();if(0===r.width||0===r.height){const t=n.size();e.size({width:t.width,height:t.width})}e.target(t)}return t}),r.exit().remove(),this.icon.text_colorFill(this.titleFontColor()).char(this._isClosed?this.closedIcon():this.openIcon()).render()}exit(e,t){super.exit(e,t)}},"_Accordion"),r);Zn(rr,"Accordion");let or=rr;or.prototype._class+=" layout_Accordion",or.prototype.publish("content",[],"widgetArray","Array of widgets",null,{tags:["Basic"]}),or.prototype.publish("title","","string","Title of collapsible section",null,{tags:["Private"]}),or.prototype.publish("openIcon","","string","Icon to display when list is open",null,{tags:["Private"]}),or.prototype.publish("closedIcon","","string","Icon to display when list is closed",null,{tags:["Private"]}),or.prototype.publish("titleFontColor","#FFFFFF","html-color","Title font color",null,{tags:["Private"]}),or.prototype.publish("titleBackgroundColor","#333333","html-color","Title background color",null,{tags:["Private"]}),or.prototype.publish("defaultCollapsed",!1,"boolean","Collapsed by default if true",null,{tags:["Private"]});const ir=(x(o=class extends C{_surfaceButtons;constructor(){super(),this._tag="div",this._surfaceButtons=[]}widgetSize(e,t){let n=this.clientWidth(),r=this.clientHeight();return this.title()&&(r-=this.calcHeight(e)),r-=this.calcFrameHeight(t),n-=this.calcFrameWidth(t),{width:n,height:r}}enter(e,t){super.enter(e,t)}update(e,t){super.update(e,t);const n=this;t.classed("shadow2",this.surfaceShadow()).style("border-width",this.surfaceBorderWidth_exists()?this.surfaceBorderWidth()+"px":null).style("border-color",this.surfaceBorderColor()).style("border-radius",this.surfaceBorderRadius_exists()?this.surfaceBorderRadius()+"px":null).style("background-color",this.surfaceBackgroundColor());const r=t.selectAll(".surfaceTitle").data(this.title()?[this.title()]:[]);r.enter().insert("h3","div").attr("class","surfaceTitle").merge(r).text(function(e){return e}).style("text-align",this.surfaceTitleAlignment()).style("color",this.surfaceTitleFontColor()).style("font-size",this.surfaceTitleFontSize_exists()?this.surfaceTitleFontSize()+"px":null).style("font-family",this.surfaceTitleFontFamily()).style("font-weight",this.surfaceTitleFontBold()?"bold":"normal").style("background-color",this.surfaceTitleBackgroundColor()).style("padding",this.surfaceTitlePadding_exists()?this.surfaceTitlePadding()+"px":null).style("title",this.altText_exists()?this.altText():null),r.exit().remove();const o=t.select(".surfaceTitle").append("div").attr("class","html-button-container").selectAll(".surface-button").data(this.buttonAnnotations());o.enter().append("button").classed("surface-button",!0).each(function(e,t){const r=n._surfaceButtons[t]=E(this).attr("class","surface-button"+(e.class?" "+e.class:"")).attr("id",e.id).style("padding",e.padding).style("width",e.width).style("height",e.height).style("cursor","pointer");"FontAwesome"===e.font?r.style("background","transparent").style("border","none").on("click",function(e){n.click(e)}).append("i").attr("class","fa").text(function(){return e.label}):r.text(function(){return e.label}).on("click",function(e){n.click(e)})}),o.exit().each(function(e,t){const r=E(this);delete n._surfaceButtons[t],r.remove()});const i=t.selectAll("#"+this._id+" > .surfaceWidget").data(this.widget()?[this.widget()]:[],function(e){return e._id});i.enter().append("div").attr("class","surfaceWidget").each(function(e){E(n.element().node().parentElement).classed("content-icon content-icon-"+e.classID().split("_")[1],!0),e.target(this)}).merge(i).style("padding",this.surfacePadding_exists()?this.surfacePadding()+"px":null).each(function(e){const r=n.widgetSize(t.select("h3"),E(this));r.width<0&&(r.width=0),r.height<0&&(r.height=0),e.resize({width:r.width,height:r.height})}),i.exit().each(function(e){e.target(null)}).remove()}exit(e,t){this.widget()&&this.widget().target(null),super.exit(e,t)}click(e){}},"_Surface"),o);Zn(ir,"Surface");let lr=ir;lr.prototype._class+=" layout_Surface",lr.prototype.publish("title","","string","Title",null,{tags:["Intermediate"]}),lr.prototype.publish("altText",null,"string","Alt text",null,{optional:!0}),lr.prototype.publish("surfaceTitlePadding",null,"number","Title Padding (px)",null,{tags:["Advanced"],disable:/* @__PURE__ */Zn(e=>!e.title(),"disable")}),lr.prototype.publish("surfaceTitleFontSize",null,"number","Title Font Size (px)",null,{tags:["Advanced"],disable:/* @__PURE__ */Zn(e=>!e.title(),"disable")}),lr.prototype.publish("surfaceTitleFontColor",null,"html-color","Title Font Color",null,{tags:["Advanced"],disable:/* @__PURE__ */Zn(e=>!e.title(),"disable")}),lr.prototype.publish("surfaceTitleFontFamily",null,"string","Title Font Family",null,{tags:["Advanced"],disable:/* @__PURE__ */Zn(e=>!e.title(),"disable")}),lr.prototype.publish("surfaceTitleFontBold",!0,"boolean","Enable Bold Title Font",null,{tags:["Advanced"],disable:/* @__PURE__ */Zn(e=>!e.title(),"disable")}),lr.prototype.publish("surfaceTitleBackgroundColor",null,"html-color","Title Background Color",null,{tags:["Advanced"],disable:/* @__PURE__ */Zn(e=>!e.title(),"disable")}),lr.prototype.publish("surfaceTitleAlignment","center","set","Title Alignment",["left","right","center"],{tags:["Basic"],disable:/* @__PURE__ */Zn(e=>!e.title(),"disable")}),lr.prototype.publish("surfaceShadow",!1,"boolean","3D Shadow"),lr.prototype.publish("surfacePadding",null,"string","Surface Padding (px)",null,{tags:["Intermediate"]}),lr.prototype.publish("surfaceBackgroundColor",null,"html-color","Surface Background Color",null,{tags:["Advanced"]}),lr.prototype.publish("surfaceBorderWidth",null,"number","Surface Border Width (px)",null,{tags:["Advanced"]}),lr.prototype.publish("surfaceBorderColor",null,"html-color","Surface Border Color",null,{tags:["Advanced"]}),lr.prototype.publish("surfaceBorderRadius",null,"number","Surface Border Radius (px)",null,{tags:["Advanced"]}),lr.prototype.publish("buttonAnnotations",[],"array","Button Array",null,{tags:["Private"]}),lr.prototype.publish("widget",null,"widget","Widget",null,{tags:["Basic"]});const ar=(x(i=class extends lr{_indicateTheseIds;constructor(){super(),this._indicateTheseIds=[]}indicateTheseIds(e){return arguments.length?(this._indicateTheseIds=e,this):this._indicateTheseIds}enter(e,t){super.enter(e,t);const n=this;t.classed("layout_Surface",!0).on("mouseenter",function(){n.onMouseEnter()}).on("mouseleave",function(){n.onMouseLeave()})}update(e,t){super.update(e,t)}onMouseEnter(){const e=this.indicateTheseIds(),t=this.indicatorOpacity(),n=this.indicatorBorderColor(),r=this.indicatorGlowColor();for(let o=0;o<e.length;o++){const i=E("#"+e[o]),l=i.datum();i&&l&&i.append("div").attr("class","update-indicator").style("width",l.width()+"px").style("height",l.height()+"px").style("opacity",t).style("border-color",n).style("-webkit-box-shadow","inset 0px 0px 30px 0px "+r).style("-moz-box-shadow","inset 0px 0px 30px 0px "+r).style("box-shadow","inset 0px 0px 30px 0px "+r)}}onMouseLeave(){const e=this.indicateTheseIds();for(let t=0;t<e.length;t++)z("#"+e[t]+" > div.update-indicator").remove()}},"_Cell"),i);Zn(ar,"Cell");let sr=ar;sr.prototype._class+=" layout_Cell",sr.prototype.publish("gridRow",0,"number","Grid Row Position",null,{tags:["Private"]}),sr.prototype.publish("gridCol",0,"number","Grid Column Position",null,{tags:["Private"]}),sr.prototype.publish("gridRowSpan",1,"number","Grid Row Span",null,{tags:["Private"]}),sr.prototype.publish("gridColSpan",1,"number","Grid Column Span",null,{tags:["Private"]}),sr.prototype.publish("indicatorGlowColor","#EEEE11","html-color","Glow color of update-indicator",null,{tags:["Basic"]}),sr.prototype.publish("indicatorBorderColor","#F48A00","html-color","Border color of update-indicator",null,{tags:["Basic"]}),sr.prototype.publish("indicatorOpacity",.8,"number","Opacity of update-indicator",null,{tags:["Basic"]});const ur=(l=class extends C{_colCount;_rowCount;_colSize;_rowSize;_shrinkWrapBoxes;_watch;_offsetX;_offsetY;_dragCell;_dragCellSize;_dragCellStartSize;_handleTop;_handleLeft;_dragPrevX;_dragPrevY;_cellSizes;contentDiv;_scrollBarWidth;_borderHandles;_sectionTypeArr;constructor(){super(),this._tag="div",this._colCount=0,this._rowCount=0,this._colSize=0,this._rowSize=0,this._shrinkWrapBoxes={},this.content([]),this.sectionTypes([])}watchWidget(e){if(void 0===this._watch&&(this._watch={}),this._watch[e.id()]&&(this._watch[e.id()].remove(),delete this._watch[e.id()]),e){const t=this;this._watch[e.id()]=e.monitor(function(e,n,r){r!==n&&t.lazyPostUpdate()})}}lazyPostUpdate=I.debounce(function(){this.postUpdate()},100);applyLayoutType(){const e=this.borderLayoutObject();this.content().forEach(function(t,n){t._fixedLeft=e[this.sectionTypes()[n]].left,t._fixedTop=e[this.sectionTypes()[n]].top,t._fixedWidth=e[this.sectionTypes()[n]].width,t._fixedHeight=e[this.sectionTypes()[n]].height,t._dragHandles=this.cellSpecificDragHandles(this.sectionTypes()[n])},this)}cellSpecificDragHandles(e){switch(e){case"top":return["s"];case"right":return["w"];case"bottom":return["n"];case"left":return["e"];case"center":return[]}}borderLayoutObject(e){const t={},n=this;let r,o,i,l,a,s,u,c;const d=this.target().getBoundingClientRect();d.top,d.left,d.bottom,d.right,this.target()instanceof SVGElement?(parseFloat(this.target().getAttribute("width")),parseFloat(this.target().getAttribute("height"))):(d.width,d.height),-1!==this.sectionTypes().indexOf("top")&&(r=this.topSize(),o=this.topPercentage(),void 0!==this._shrinkWrapBoxes.top&&(r=this._shrinkWrapBoxes.top.height+this.gutter(),o=0)),-1!==this.sectionTypes().indexOf("bottom")&&(i=this.bottomSize(),l=this.bottomPercentage(),void 0!==this._shrinkWrapBoxes.bottom&&(i=this._shrinkWrapBoxes.bottom.height+this.gutter(),l=0)),-1!==this.sectionTypes().indexOf("left")&&(a=this.leftSize(),s=this.leftPercentage(),void 0!==this._shrinkWrapBoxes.left&&(a=this._shrinkWrapBoxes.left.width+this.gutter(),s=0)),-1!==this.sectionTypes().indexOf("right")&&(u=this.rightSize(),c=this.rightPercentage(),void 0!==this._shrinkWrapBoxes.right&&(u=this._shrinkWrapBoxes.right.width+this.gutter(),c=0));const h=y({width:{px:0,"%":100},height:{px:r,"%":o},top:{px:0,"%":0},left:{px:0,"%":0}}),p=y({width:{px:0,"%":100},height:{px:i,"%":l},top:{px:0,"%":100},left:{px:0,"%":0}});p.top-=p.height;const f=y({width:{px:a,"%":s},height:{px:-h.height-p.height,"%":100},top:{px:h.height,"%":0},left:{px:0,"%":0}}),g=y({width:{px:u,"%":c},height:{px:-h.height-p.height,"%":100},top:{px:h.height,"%":0},left:{px:0,"%":100}});g.left-=g.width;const m=y({width:{px:-g.width-f.width,"%":100},height:{px:-h.height-p.height,"%":100},top:{px:h.height,"%":0},left:{px:f.width,"%":0}});return t.top=h,t.bottom=p,t.right=g,t.left=f,t.center=m,t;function y(e){return e.width.px=void 0!==e.width.px?e.width.px:0,e.width["%"]=void 0!==e.width["%"]?e.width["%"]:0,e.height.px=void 0!==e.height.px?e.height.px:0,e.height["%"]=void 0!==e.height["%"]?e.height["%"]:0,{width:e.width.px+e.width["%"]/100*n.width(),height:e.height.px+e.height["%"]/100*n.height(),top:e.top.px+e.top["%"]/100*n.height()+n.gutter()/2,left:e.left.px+e.left["%"]/100*n.width()+n.gutter()/2}}}clearContent(e){if(e){const t=this.sectionTypes().indexOf(e);t>=0&&(this._watch&&this.content()[t]&&delete this._watch[this.content()[t].id()],this.content()[t].target(null),E("#"+this.id()+" > div.borderHandle_"+e).classed("borderHandleDisabled",!0),this.content().splice(t,1),this.sectionTypes().splice(t,1))}else this.content().forEach(function(e){return e.target(null),!1}),E("#"+this.id()+" > div.borderHandle").classed("borderHandleDisabled",!0),delete this._watch,this.content([]),this.sectionTypes([])}hasContent(e,t,n){return this.sectionTypes().indexOf(e)>=0}setContent(e,t,n){if(this.clearContent(e),n=void 0!==n?n:"",t){const r=(new sr).surfaceBorderWidth(0).widget(t).title(n);this.watchWidget(t),this.content().push(r),this.sectionTypes().push(e)}return this}getCell(e){const t=this.sectionTypes().indexOf(e);return t>=0?this.content()[t]:null}getContent(e){const t=this.sectionTypes().indexOf(e);return t>=0?this.content()[t].widget():null}setLayoutOffsets(){this._offsetX=this._element.node().getBoundingClientRect().left+this.gutter()/2,this._offsetY=this._element.node().getBoundingClientRect().top+this.gutter()/2}dragStart(e){const t=R();t.sourceEvent.stopPropagation();const n=this;this._dragCell=e,this._dragCellStartSize=this[e+"Size"](),this[e+"ShrinkWrap"]()&&(this[e+"Percentage"](0),this[e+"ShrinkWrap"](!1));const r=E("#"+n.id()+" > div.borderHandle_"+e);n._handleTop=parseFloat(r.style("top").split("px")[0]),n._handleLeft=parseFloat(r.style("left").split("px")[0]),this._dragPrevX=t.sourceEvent.clientX,this._dragPrevY=t.sourceEvent.clientY}dragTick(e){const t=this,n=R(),r=this._dragPrevX-n.sourceEvent.clientX,o=this._dragPrevY-n.sourceEvent.clientY;switch(e){case"top":case"bottom":i(e,o);break;case"right":case"left":i(e,r)}function i(e,n){if(0===n)return;const r=z("#"+t.id()+" > div.borderHandle"),o=E("#"+t.id()+" > div.borderHandle_"+e);o.classed("borderHandle_top")?(o.style("top",t._handleTop-n+"px"),t._cellSizes.topHeight=t._handleTop-n,t._cellSizes.leftHeight=t._cellSizes.height,t._cellSizes.leftHeight-=t._cellSizes.topHeight,t._cellSizes.leftHeight-=t._cellSizes.bottomHeight,t._cellSizes.rightHeight=t._cellSizes.leftHeight):o.classed("borderHandle_right")?(o.style("left",t._handleLeft-n+"px"),t._cellSizes.rightWidth=t._cellSizes.width-t._handleLeft+n):o.classed("borderHandle_bottom")?(o.style("top",t._handleTop-n+"px"),t._cellSizes.bottomHeight=t._cellSizes.height-t._handleTop+n,t._cellSizes.leftHeight=t._cellSizes.height,t._cellSizes.leftHeight-=t._cellSizes.bottomHeight,t._cellSizes.leftHeight-=t._cellSizes.topHeight,t._cellSizes.rightHeight=t._cellSizes.leftHeight):o.classed("borderHandle_left")&&(o.style("left",t._handleLeft-n+"px"),t._cellSizes.leftWidth=t._handleLeft-n),r.each(function(){const e=E(this);e.classed("borderHandle_top")?(e.style("width",t._cellSizes.width+"px"),e.style("top",t._cellSizes.topHeight-3+"px")):e.classed("borderHandle_right")?(e.style("left",t._cellSizes.width-t._cellSizes.rightWidth+"px"),e.style("top",t._cellSizes.topHeight+3+"px"),e.style("height",t._cellSizes.rightHeight+"px")):e.classed("borderHandle_bottom")?(e.style("width",t._cellSizes.width+"px"),e.style("top",t._cellSizes.height-t._cellSizes.bottomHeight-3+"px")):e.classed("borderHandle_left")&&(e.style("left",t._cellSizes.leftWidth+"px"),e.style("height",t._cellSizes.leftHeight+"px"),e.style("top",t._cellSizes.topHeight+3+"px"))})}x(i,"a"),Zn(i,"_moveHandles")}dragEnd(e){if(e){const t=R(),n=this._dragPrevX-t.sourceEvent.clientX,r=this._dragPrevY-t.sourceEvent.clientY;switch(e){case"top":0!==r&&(this.topPercentage(0),this.topSize(0===this.topSize()?this.getContent("top").getBBox().height-r:this.topSize()-r));break;case"right":0!==n&&(this.rightPercentage(0),this.rightSize(0===this.rightSize()?this.getContent("right").getBBox().width+n:this.rightSize()+n));break;case"bottom":0!==r&&(this.bottomPercentage(0),this.bottomSize(0===this.bottomSize()?this.getContent("bottom").getBBox().height+r:this.bottomSize()+r));break;case"left":0!==n&&(this.leftPercentage(0),this.leftSize(0===this.leftSize()?this.getContent("left").getBBox().width-n:this.leftSize()-n))}this._dragPrevX=t.sourceEvent.clientX,this._dragPrevY=t.sourceEvent.clientY}this.render()}size(e){const t=C.prototype.size.apply(this,arguments);return arguments.length&&this.contentDiv&&this.contentDiv.style("width",this._size.width+"px").style("height",this._size.height+"px"),t}enter(e,t){super.enter(e,t);const n=this;t.style("position","relative"),this.contentDiv=t.append("div").classed("border-content",!0),this._scrollBarWidth=A.getScrollbarWidth(),this._borderHandles=["top","left","right","bottom"],t.selectAll("div.borderHandle").data(this._borderHandles).enter().append("div").classed("borderHandle",!0).each(function(e){E(this).classed("borderHandle_"+e,!0).classed("borderHandleDisabled",null===n.getContent(e))})}update(e,t){super.update(e,t),this._sectionTypeArr=this.sectionTypes();const n=this;t.classed("design-mode",this.designMode()),this.setLayoutOffsets();const r=this.contentDiv.selectAll(".cell_"+this._id).data(this.content(),function(e){return e._id}),o=r.enter().append("div").classed("cell_"+this._id,!0).style("position","absolute").each(function(e,t){E(this).classed("border-cell border-cell-"+n._sectionTypeArr[t],!0),e.target(this),E("#"+n.id()+" > div.borderHandle_"+n._sectionTypeArr[t]).classed("borderHandleDisabled",!1)}).merge(r);o.each(function(e,t){const r=n.sectionTypes()[t];void 0!==n[r+"ShrinkWrap"]&&n[r+"ShrinkWrap"]()?(e.render(),n._shrinkWrapBoxes[r]=e.widget().getBBox(!0)):delete n._shrinkWrapBoxes[r]});const i=D().on("start",function(e,t){n.dragStart.call(n,e,t)}).on("drag",function(e,t){n.dragTick.call(n,e,t)}).on("end",function(e,t){n.dragEnd.call(n,e,t)});this.designMode()?t.selectAll("#"+this.id()+" > div.borderHandle").call(i):t.selectAll("#"+this.id()+" > div.borderHandle").on(".drag",null);const l=this.borderLayoutObject();this.content().forEach(function(e,t){e._fixedLeft=l[this.sectionTypes()[t]].left,e._fixedTop=l[this.sectionTypes()[t]].top,e._fixedWidth=l[this.sectionTypes()[t]].width,e._fixedHeight=l[this.sectionTypes()[t]].height,e._dragHandles=[]},this),o.style("left",function(e){return e._fixedLeft+"px"}).style("top",function(e){return e._fixedTop+"px"}).style("width",function(e){return e._fixedWidth-n.gutter()+"px"}).style("height",function(e){return e._fixedHeight-n.gutter()+"px"}).each(function(e){e._placeholderElement.attr("draggable",n.designMode()).selectAll(".dragHandle").attr("draggable",n.designMode()),e.surfacePadding(n.surfacePadding()).resize()}),r.exit().each(function(e){e.target(null)}).remove(),this.getCellSizes(),t.selectAll("#"+this.id()+" > div.borderHandle").each(function(){const e=E(this);e.classed("borderHandle_top")?(e.style("width",n._cellSizes.width+"px"),e.style("top",n._cellSizes.topHeight-3+"px")):e.classed("borderHandle_right")?(e.style("left",n._cellSizes.width-n._cellSizes.rightWidth+"px"),e.style("top",n._cellSizes.topHeight+3+"px"),e.style("height",n._cellSizes.rightHeight+"px")):e.classed("borderHandle_bottom")?(e.style("width",n._cellSizes.width+"px"),e.style("top",n._cellSizes.height-n._cellSizes.bottomHeight-3+"px")):e.classed("borderHandle_left")&&(e.style("left",n._cellSizes.leftWidth+"px"),e.style("height",n._cellSizes.leftHeight+"px"),e.style("top",n._cellSizes.topHeight+3+"px"))})}getCellSizes(){const e=this;e._cellSizes={};const t=this.element().node().getBoundingClientRect();e._cellSizes.width=t.width,e._cellSizes.height=t.height,this.element().selectAll("#"+this.id()+" > div > div.border-cell").each(function(){const t=E(this);if("function"==typeof t.node){const n=t.node().getBoundingClientRect();t.classed("border-cell-top")?e._cellSizes.topHeight=n.height:t.classed("border-cell-left")?(e._cellSizes.leftWidth=n.width,e._cellSizes.leftHeight=n.height):t.classed("border-cell-right")?(e._cellSizes.rightWidth=n.width,e._cellSizes.rightHeight=n.height):t.classed("border-cell-bottom")&&(e._cellSizes.bottomHeight=n.height)}}),["height","width","topHeight","bottomHeight","leftHeight","rightHeight","leftWidth","rightWidth"].forEach(function(t){e._cellSizes[t]=void 0===e._cellSizes[t]?0:e._cellSizes[t]})}postUpdate(e,t){const n=this;this.content().forEach(function(e){if(null!==e._element.node()&&e.widget()){const t=e.widget().getBBox(!1,!0),r=e.widget().getBBox(!0,!0);t.width===r.width&&t.height===r.height||n.lazyRender()}})}exit(e,t){this.content().forEach(e=>e.target(null)),super.exit(e,t)}},x(l,"_Border"),l);Zn(ur,"Border");let cr=ur;cr.prototype._class+=" layout_Border",cr.prototype.publish("designMode",!1,"boolean","Design Mode",null,{tags:["Basic"]}),cr.prototype.publish("content",[],"widgetArray","widgets",null,{tags:["Intermediate"]}),cr.prototype.publish("gutter",0,"number","Gap Between Widgets",null,{tags:["Basic"]}),cr.prototype.publish("topShrinkWrap",!1,"boolean","'Top' Cell shrinks to fit content",null,{tags:["Intermediate"]}),cr.prototype.publish("leftShrinkWrap",!1,"boolean","'Left' Cell shrinks to fit content",null,{tags:["Intermediate"]}),cr.prototype.publish("rightShrinkWrap",!1,"boolean","'Right' Cell shrinks to fit content",null,{tags:["Intermediate"]}),cr.prototype.publish("bottomShrinkWrap",!1,"boolean","'Bottom' Cell shrinks to fit content",null,{tags:["Intermediate"]}),cr.prototype.publish("topSize",0,"number","Height of the 'Top' Cell (px)",null,{tags:["Private"]}),cr.prototype.publish("leftSize",0,"number","Width of the 'Left' Cell (px)",null,{tags:["Private"]}),cr.prototype.publish("rightSize",0,"number","Width of the 'Right' Cell (px)",null,{tags:["Private"]}),cr.prototype.publish("bottomSize",0,"number","Height of the 'Bottom' Cell (px)",null,{tags:["Private"]}),cr.prototype.publish("topPercentage",20,"number","Percentage (of parent) Height of the 'Top' Cell",null,{tags:["Private"]}),cr.prototype.publish("leftPercentage",20,"number","Percentage (of parent) Width of the 'Left' Cell",null,{tags:["Private"]}),cr.prototype.publish("rightPercentage",20,"number","Percentage (of parent) Width of the 'Right' Cell",null,{tags:["Private"]}),cr.prototype.publish("bottomPercentage",20,"number","Percentage (of parent) Height of the 'Bottom' Cell",null,{tags:["Private"]}),cr.prototype.publish("surfacePadding",0,"number","Cell Padding (px)",null,{tags:["Intermediate"]}),cr.prototype.publish("sectionTypes",[],"array","Section Types sharing an index with 'content' - Used to determine position/size.",null,{tags:["Private"]});const dr=(x(a=class{_div;_overlay=!1;_overflowX="visible";_overflowY="visible";_widget;constructor(e){this._div=e}overlay(e){return arguments.length?(this._overlay=e,this):this._overlay}overflowX(e){return arguments.length?(this._overflowX=e,this._div.style("overflow-x",e),this):this._overflowX}overflowY(e){return arguments.length?(this._overflowY=e,this._div.style("overflow-y",e),this):this._overflowY}element(){return this._div}node(){return this._div.node()}widget(e){return arguments.length?(this._widget!==e&&(this._widget&&this._widget.target(null),this._widget=e,this._widget&&this._widget.target(this._div.node())),this):this._widget}resize(e){return this._widget&&(this._div.style("width",`${e.width}px`).style("height",`${e.height}px`),this._widget.resize(e)),this}async render(e,t,n){let r=this.overflowX();this.overlay()||"visible"!==r||(r=null);let o=this.overflowY();return this.overlay()||"visible"!==o||(o=null),this._div.style("height",this.overlay()?"0px":null).style("overflow-x",r).style("overflow-y",o),this._widget?this._widget.renderPromise().then(r=>{if(e&&this._widget.visible()){const e=this._widget.getBBox();return e.width+=8,void 0!==t&&e.height>t&&(e.width+=A.getScrollbarWidth()),void 0!==n&&e.width>n&&(e.height+=A.getScrollbarWidth()),this.overlay()?e.height=0:e.height+=4,e}return e?{x:0,y:0,width:0,height:0}:void 0}):Promise.resolve(e?{x:0,y:0,width:0,height:0}:void 0)}},"_WidgetDiv"),a);Zn(dr,"WidgetDiv");let hr=dr;const pr=(x(s=class extends C{_bodyElement;_topWA;_leftWA;_centerWA;_rightWA;_bottomWA;_topPrevOverflow;_leftPrevOverflow;_rightPrevOverflow;_bottomPrevOverflow;constructor(){super(),this._tag="div"}enter(e,t){super.enter(e,t);const n=t.append("header");this._bodyElement=t.append("div").attr("class","body");const r=this._bodyElement.append("div").attr("class","center"),o=this._bodyElement.append("div").attr("class","lhs"),i=this._bodyElement.append("div").attr("class","rhs"),l=t.append("div").attr("class","footer");this._topWA=new hr(n),this._centerWA=new hr(r),this._leftWA=new hr(o),this._rightWA=new hr(i),this._bottomWA=new hr(l)}update(e,t){super.update(e,t),this._topWA.element().style("display",this.showTop()?null:"none"),this._rightWA.element().style("display",this.showRight()?null:"none"),this._bottomWA.element().style("display",this.showBottom()?null:"none"),this._leftWA.element().style("display",this.showLeft()?null:"none"),this.topOverflowX()!==this._topWA.overflowX()&&this._topWA.overflowX(this.topOverflowX()),this.rightOverflowX()!==this._rightWA.overflowX()&&this._rightWA.overflowX(this.rightOverflowX()),this.bottomOverflowX()!==this._bottomWA.overflowX()&&this._bottomWA.overflowX(this.bottomOverflowX()),this.leftOverflowX()!==this._leftWA.overflowX()&&this._leftWA.overflowX(this.leftOverflowX()),this.topOverflowY()!==this._topWA.overflowY()&&this._topWA.overflowY(this.topOverflowY()),this.rightOverflowY()!==this._rightWA.overflowY()&&this._rightWA.overflowY(this.rightOverflowY()),this.bottomOverflowY()!==this._bottomWA.overflowY()&&this._bottomWA.overflowY(this.bottomOverflowY()),this.leftOverflowY()!==this._leftWA.overflowY()&&this._leftWA.overflowY(this.leftOverflowY()),this.element().style("width",`${this.width()}px`).style("height",`${this.height()}px`)}targetNull(e){e&&e.target(null)}exit(e,t){this.targetNull(this.center()),this.targetNull(this.bottom()),this.targetNull(this.right()),this.targetNull(this.left()),this.targetNull(this.top()),super.exit(e,t)}swap(e,t){const n=this[e](),r=this[t]();return this.targetNull(n),this.targetNull(r),this[`_${e}WA`].widget(null),this[`_${t}WA`].widget(null),this[e](r),this[t](n),this}render(e){return super.render(t=>{this._topWA?this._topWA.widget(this.top()).overlay(this.topOverlay()).render(!0).then(async t=>{const n=await this._bottomWA.widget(this.bottom()).render(!0,void 0,this.width()),r=this.height()-(t.height+n.height),o=await this._leftWA.widget(this.left()).render(!0,r),i=await this._rightWA.widget(this.right()).render(!0,r);this.bottomHeight_exists()&&(n.height=this.bottomHeight());const l=this.width()-(o.width+i.width),a=this.height()-(t.height+n.height),s=this.centerOverflowX(),u=this.centerOverflowY(),c=-1!==["auto","scroll"].indexOf(s),d=-1!==["auto","scroll"].indexOf(u);(c||d)&&this._centerWA.overflowX(this.centerOverflowX()).overflowY(this.centerOverflowY()).widget(this.center()).resize({width:l,height:a}).render(),this._bodyElement.style("height",`${a}px`);const h=[this._topWA.overflowX(this.topOverflowX()).overflowY(this.topOverflowY()).resize({width:this.width(),height:t.height}).render(),this._leftWA.overflowX(this.leftOverflowX()).overflowY(this.leftOverflowY()).resize({width:o.width,height:a}).render(),this._rightWA.overflowX(this.rightOverflowX()).overflowY(this.rightOverflowY()).resize({width:i.width,height:a}).render(),this._centerWA.overflowX(this.centerOverflowX()).overflowY(this.centerOverflowY()).widget(this.center()).resize({width:l,height:a}).render(),this._bottomWA.overflowX(this.bottomOverflowX()).overflowY(this.bottomOverflowY()).resize({width:this.width(),height:n.height}).render()];Promise.all(h).then(t=>{e&&e(this)})}):e&&e(this)})}},"_Border2"),s);Zn(pr,"Border2");let fr=pr;fr.prototype._class+=" layout_Border2",fr.prototype.publish("showTop",!0,"boolean","If true, top widget adapter will display"),fr.prototype.publish("showRight",!0,"boolean","If true, right widget adapter will display"),fr.prototype.publish("showBottom",!0,"boolean","If true, bottom widget adapter will display"),fr.prototype.publish("showLeft",!0,"boolean","If true, left widget adapter will display"),fr.prototype.publish("topOverflowX","visible","set","Sets the overflow-x css style for the top widget adapter",["hidden","scroll","visible","auto"]),fr.prototype.publish("rightOverflowX","visible","set","Sets the overflow-x css style for the right widget adapter",["hidden","scroll","visible","auto"]),fr.prototype.publish("bottomOverflowX","visible","set","Sets the overflow-x css style for the bottom widget adapter",["hidden","scroll","visible","auto"]),fr.prototype.publish("leftOverflowX","visible","set","Sets the overflow-x css style for the left widget adapter",["hidden","scroll","visible","auto"]),fr.prototype.publish("centerOverflowX","visible","set","Sets the overflow-x css style for the center widget adapter",["hidden","scroll","visible","auto"]),fr.prototype.publish("topOverflowY","visible","set","Sets the overflow-y css style for the top widget adapter",["hidden","scroll","visible","auto"]),fr.prototype.publish("rightOverflowY","visible","set","Sets the overflow-y css style for the right widget adapter",["hidden","scroll","visible","auto"]),fr.prototype.publish("bottomOverflowY","visible","set","Sets the overflow-y css style for the bottom widget adapter",["hidden","scroll","visible","auto"]),fr.prototype.publish("leftOverflowY","visible","set","Sets the overflow-y css style for the left widget adapter",["hidden","scroll","visible","auto"]),fr.prototype.publish("centerOverflowY","visible","set","Sets the overflow-y css style for the center widget adapter",["hidden","scroll","visible","auto"]),fr.prototype.publish("top",null,"widget","Top Widget",void 0,{render:!1}),fr.prototype.publish("topOverlay",!1,"boolean","Overlay Top Widget"),fr.prototype.publish("left",null,"widget","Left Widget",void 0,{render:!1}),fr.prototype.publish("center",null,"widget","Center Widget",void 0,{render:!1}),fr.prototype.publish("right",null,"widget","Right Widget",void 0,{render:!1}),fr.prototype.publish("bottom",null,"widget","Bottom Widget",void 0,{render:!1}),fr.prototype.publish("bottomHeight",null,"number","Bottom Fixed Height",void 0,{optional:!0});const gr=(x(u=class extends C{_prevActive=0;_root;activeWidget(){return this.widgets()[this.active()]}enter(e,t){super.enter(e,t),this._root=t.append("div").attr("id",`${this.id()}_root`)}update(e,t){super.update(e,t);const n=this.active(),r=this.width();this._root.style("width",`${r}px`).style("height",`${this.height()}px`);const o=this._root.selectAll(`#${this.id()}_root > .carouselItem`).data(this.widgets(),e=>e.id()),i=o.enter().append("div").attr("class","carouselItem").each(function(e){e.target(this)}).merge(o).style("left",(e,t)=>(t-this._prevActive)*r+"px").style("width",`${r}px`);this._prevActive!==n&&(i.style("display",(e,t)=>t===this._prevActive||t===n?null:"none").transition().duration(this.transitionDuration()).style("left",(e,t)=>(t-n)*r+"px").on("end",function(e,t){E(this).style("display",()=>t===n?null:"none")}),this._prevActive=n),o.exit().each(function(e){e.target(null)}).remove()}exit(e,t){this.widgets().forEach(e=>e.target(null)),super.exit(e,t)}render(e){return super.render(t=>{if(!this.visible()||this.isDOMHidden())e&&e(t);else{const n=this.activeWidget();n&&n.resize(this.size()).render(n=>{e&&e(t)})}})}},"_Carousel"),u);Zn(gr,"Carousel");let mr=gr;mr.prototype._class+=" layout_Carousel",mr.prototype.publish("widgets",[],"widgetArray","Widgets",null,{render:!1}),mr.prototype.publish("active",0,"number","Active widget"),mr.prototype.publish("transitionDuration",500,"number","Transition duration");var yr=Math.PI,br=2*yr,vr=1e-6,wr=br-vr;function _r(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function xr(){return new _r}function Cr(e){return Zn(function(){return e},"constant")}x(_r,"tt"),x(xr,"et"),x(Cr,"it"),Zn(_r,"Path"),Zn(xr,"path"),_r.prototype=xr.prototype={constructor:_r,moveTo:/* @__PURE__ */Zn(function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},"moveTo"),closePath:/* @__PURE__ */Zn(function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},"closePath"),lineTo:/* @__PURE__ */Zn(function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},"lineTo"),quadraticCurveTo:/* @__PURE__ */Zn(function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},"quadraticCurveTo"),bezierCurveTo:/* @__PURE__ */Zn(function(e,t,n,r,o,i){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+i)},"bezierCurveTo"),arcTo:/* @__PURE__ */Zn(function(e,t,n,r,o){e=+e,t=+t,n=+n,r=+r,o=+o;var i=this._x1,l=this._y1,a=n-e,s=r-t,u=i-e,c=l-t,d=u*u+c*c;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>vr)if(Math.abs(c*a-s*u)>vr&&o){var h=n-i,p=r-l,f=a*a+s*s,g=h*h+p*p,m=Math.sqrt(f),y=Math.sqrt(d),b=o*Math.tan((yr-Math.acos((f+d-g)/(2*m*y)))/2),v=b/y,w=b/m;Math.abs(v-1)>vr&&(this._+="L"+(e+v*u)+","+(t+v*c)),this._+="A"+o+","+o+",0,0,"+ +(c*h>u*p)+","+(this._x1=e+w*a)+","+(this._y1=t+w*s)}else this._+="L"+(this._x1=e)+","+(this._y1=t)},"arcTo"),arc:/* @__PURE__ */Zn(function(e,t,n,r,o,i){e=+e,t=+t,i=!!i;var l=(n=+n)*Math.cos(r),a=n*Math.sin(r),s=e+l,u=t+a,c=1^i,d=i?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+s+","+u:(Math.abs(this._x1-s)>vr||Math.abs(this._y1-u)>vr)&&(this._+="L"+s+","+u),n&&(d<0&&(d=d%br+br),d>wr?this._+="A"+n+","+n+",0,1,"+c+","+(e-l)+","+(t-a)+"A"+n+","+n+",0,1,"+c+","+(this._x1=s)+","+(this._y1=u):d>vr&&(this._+="A"+n+","+n+",0,"+ +(d>=yr)+","+c+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},"arc"),rect:/* @__PURE__ */Zn(function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},"rect"),toString:/* @__PURE__ */Zn(function(){return this._},"toString")},Zn(Cr,"constant");var Sr=Math.PI,kr=2*Sr;const Tr={draw:/* @__PURE__ */Zn(function(e,t){var n=Math.sqrt(t/Sr);e.moveTo(n,0),e.arc(0,0,n,0,kr)},"draw")},Pr={draw:/* @__PURE__ */Zn(function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()},"draw")};var Er=Math.sqrt(1/3),zr=2*Er;const Ir={draw:/* @__PURE__ */Zn(function(e,t){var n=Math.sqrt(t/zr),r=n*Er;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()},"draw")};var Rr=Math.sin(Sr/10)/Math.sin(7*Sr/10),Ar=Math.sin(kr/10)*Rr,Dr=-Math.cos(kr/10)*Rr;const Fr={draw:/* @__PURE__ */Zn(function(e,t){var n=Math.sqrt(.8908130915292852*t),r=Ar*n,o=Dr*n;e.moveTo(0,-n),e.lineTo(r,o);for(var i=1;i<5;++i){var l=kr*i/5,a=Math.cos(l),s=Math.sin(l);e.lineTo(s*n,-a*n),e.lineTo(a*r-s*o,s*r+a*o)}e.closePath()},"draw")},Lr={draw:/* @__PURE__ */Zn(function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)},"draw")};var Or=Math.sqrt(3);const Mr={draw:/* @__PURE__ */Zn(function(e,t){var n=-Math.sqrt(t/(3*Or));e.moveTo(0,2*n),e.lineTo(-Or*n,-n),e.lineTo(Or*n,-n),e.closePath()},"draw")};var Br=-.5,Hr=Math.sqrt(3)/2,Nr=1/Math.sqrt(12),Wr=3*(Nr/2+1);const Ur={draw:/* @__PURE__ */Zn(function(e,t){var n=Math.sqrt(t/Wr),r=n/2,o=n*Nr,i=r,l=n*Nr+n,a=-i,s=l;e.moveTo(r,o),e.lineTo(i,l),e.lineTo(a,s),e.lineTo(Br*r-Hr*o,Hr*r+Br*o),e.lineTo(Br*i-Hr*l,Hr*i+Br*l),e.lineTo(Br*a-Hr*s,Hr*a+Br*s),e.lineTo(Br*r+Hr*o,Br*o-Hr*r),e.lineTo(Br*i+Hr*l,Br*l-Hr*i),e.lineTo(Br*a+Hr*s,Br*s-Hr*a),e.closePath()},"draw")};function jr(){var e=Cr(Tr),t=Cr(64),n=null;function r(){var r;if(n||(n=r=xr()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return x(r,"o"),Zn(r,"symbol"),r.type=function(t){return arguments.length?(e="function"==typeof t?t:Cr(t),r):e},r.size=function(e){return arguments.length?(t="function"==typeof e?e:Cr(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r}x(jr,"xt"),Zn(jr,"d3Symbol");var $r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vr=/* @__PURE__ */Zn(function(e){return e},"d3_identity"),Gr=/* @__PURE__ */Zn(function(e){for(var t=[],n=0,r=e.length;n<r;n++)t[n]=e[r-n-1];return t},"d3_reverse"),qr=/* @__PURE__ */Zn(function(e,t){e.each(function(){var e,n=E(this),r=n.text().split(/\s+/).reverse(),o=[];n.attr("y");for(var i=parseFloat(n.attr("dy"))||0,l=n.text(null).append("tspan").attr("x",0).attr("dy",i+"em");e=r.pop();)o.push(e),l.text(o.join(" ")),l.node().getComputedTextLength()>t&&o.length>1&&(o.pop(),l.text(o.join(" ")),o=[e],l=n.append("tspan").attr("x",0).attr("dy",1.2+i+"em").text(e))})},"d3_textWrapping"),Yr=/* @__PURE__ */Zn(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n=arguments[2],r=arguments[3],o=arguments[4];if("object"===(void 0===t?"undefined":$r(t))){if(0===t.length)return e;for(var i=t.length;i<e.length;i++)t.push(e[i]);return t}if("function"==typeof t){for(var l=[],a=e.length,s=0;s<a;s++)l.push(t({i:s,genLength:a,generatedLabels:e,domain:n,range:r,labelDelimiter:o}));return l}return e},"d3_mergeLabels"),Xr=/* @__PURE__ */Zn(function(e,t,n){var r=[];if(t.length>1)r=t;else for(var o=e.domain(),i=(o[o.length-1]-o[0])/(t-1),l=0;l<t;l++)r.push(o[0]+l*i);var a=r.map(n);return{data:r,labels:a,feature:/* @__PURE__ */Zn(function(t){return e(t)},"feature")}},"d3_linearLegend"),Kr=/* @__PURE__ */Zn(function(e,t,n){var r=e.range().map(function(r){var o=e.invertExtent(r);return t(o[0])+" "+n+" "+t(o[1])});return{data:e.range(),labels:r,feature:Vr}},"d3_quantLegend"),Qr=/* @__PURE__ */Zn(function(e){return{data:e.domain(),labels:e.domain(),feature:/* @__PURE__ */Zn(function(t){return e(t)},"feature")}},"d3_ordinalLegend"),Jr=/* @__PURE__ */Zn(function(e,t,n){e.call("cellover",n,t)},"d3_cellOver"),Zr=/* @__PURE__ */Zn(function(e,t,n){e.call("cellout",n,t)},"d3_cellOut"),eo=/* @__PURE__ */Zn(function(e,t,n){e.call("cellclick",n,t)},"d3_cellClick"),to={d3_drawShapes:/* @__PURE__ */Zn(function(e,t,n,r,o,i){"rect"===e?t.attr("height",n).attr("width",r):"circle"===e?t.attr("r",o):"line"===e?t.attr("x1",0).attr("x2",r).attr("y1",0).attr("y2",0):"path"===e&&t.attr("d",i)},"d3_drawShapes"),d3_addText:/* @__PURE__ */Zn(function(e,t,n,r,o){t.append("text").attr("class",r+"label");var i=e.selectAll("g."+r+"cell text."+r+"label").data(n).text(Vr);return o&&e.selectAll("g."+r+"cell text."+r+"label").call(qr,o),i},"d3_addText"),d3_calcType:/* @__PURE__ */Zn(function(e,t,n,r,o,i){var l=e.invertExtent?Kr(e,o,i):e.ticks?Xr(e,n,o):Qr(e),a=e.range&&e.range()||e.domain();return l.labels=Yr(l.labels,r,e.domain(),a,i),t&&(l.labels=Gr(l.labels),l.data=Gr(l.data)),l},"d3_calcType"),d3_filterCells:/* @__PURE__ */Zn(function(e,t){var n=e.data.map(function(t,n){return{data:t,label:e.labels[n]}}).filter(t),r=n.map(function(e){return e.data}),o=n.map(function(e){return e.label});return e.data=e.data.filter(function(e){return-1!==r.indexOf(e)}),e.labels=e.labels.filter(function(e){return-1!==o.indexOf(e)}),e},"d3_filterCells"),d3_placement:/* @__PURE__ */Zn(function(e,t,n,r,o,i){t.attr("transform",n),r.attr("transform",o),"horizontal"===e&&r.style("text-anchor",i)},"d3_placement"),d3_addEvents:/* @__PURE__ */Zn(function(e,t){e.on("mouseover.legend",function(e){Jr(t,e,this)}).on("mouseout.legend",function(e){Zr(t,e,this)}).on("click.legend",function(e){eo(t,e,this)})},"d3_addEvents"),d3_title:/* @__PURE__ */Zn(function(e,t,n,r){if(""!==t){e.selectAll("text."+n+"legendTitle").data([t]).enter().append("text").attr("class",n+"legendTitle"),e.selectAll("text."+n+"legendTitle").text(t),r&&e.selectAll("text."+n+"legendTitle").call(qr,r);var o=e.select("."+n+"legendCells"),i=e.select("."+n+"legendTitle").nodes().map(function(e){return e.getBBox().height})[0],l=-o.nodes().map(function(e){return e.getBBox().x})[0];o.attr("transform","translate("+l+","+i+")")}},"d3_title"),d3_defaultLocale:{format:S,formatPrefix:q},d3_defaultFormatSpecifier:".01f",d3_defaultDelimiter:"to"};function no(){var e=V(),t="rect",n=15,r=15,o=10,i=2,l=[5],a=void 0,s=[],u="",c=!1,d="",h=to.d3_defaultLocale,p=to.d3_defaultFormatSpecifier,f=10,g="middle",m=to.d3_defaultDelimiter,y=void 0,b="vertical",v=!1,w=void 0,_=void 0,C=G("cellover","cellout","cellclick");function S(x){var S=to.d3_calcType(e,v,l,s,h.format(p),m);x.selectAll("g").data([e]).enter().append("g").attr("class",u+"legendCells"),a&&to.d3_filterCells(S,a);var k=x.select("."+u+"legendCells").selectAll("."+u+"cell").data(S.data),T=k.enter().append("g").attr("class",u+"cell");T.append(t).attr("class",u+"swatch");var P=x.selectAll("g."+u+"cell "+t+"."+u+"swatch").data(S.data);to.d3_addEvents(T,C),k.exit().transition().style("opacity",0).remove(),P.exit().transition().style("opacity",0).remove(),P=P.merge(P),to.d3_drawShapes(t,P,r,n,o,w);var E=to.d3_addText(x,T,S.labels,u,y);k=T.merge(k);var z=E.nodes().map(function(e){return e.getBBox()}),I=P.nodes().map(function(e){return e.getBBox()});c?P.attr("class",function(e){return u+"swatch "+S.feature(e)}):"line"==t?P.style("stroke",S.feature):P.style("fill",S.feature);var R,A=void 0,D=void 0,F="start"==g?0:"middle"==g?.5:1;"vertical"===b?(R=z.map(function(e,t){return Math.max(e.height,I[t].height)}),A=/* @__PURE__ */Zn(function(e,t){return"translate(0, "+(K(R.slice(0,t))+t*i)+")"},"cellTrans"),D=/* @__PURE__ */Zn(function(e,t){return"translate( "+(I[t].width+I[t].x+f)+", "+(I[t].y+I[t].height/2+5)+")"},"textTrans")):"horizontal"===b&&(A=/* @__PURE__ */Zn(function(e,t){return"translate("+t*(I[t].width+i)+",0)"},"cellTrans"),D=/* @__PURE__ */Zn(function(e,t){return"translate("+(I[t].width*F+I[t].x)+",\n "+(I[t].height+I[t].y+f+8)+")"},"textTrans")),to.d3_placement(b,k,A,E,D,g),to.d3_title(x,d,u,_),k.transition().style("opacity",1)}return x(S,"B"),Zn(S,"legend"),S.scale=function(t){return arguments.length?(e=t,S):e},S.cells=function(e){return arguments.length?((e.length>1||e>=2)&&(l=e),S):l},S.cellFilter=function(e){return arguments.length?(a=e,S):a},S.shape=function(e,n){return arguments.length?(("rect"==e||"circle"==e||"line"==e||"path"==e&&"string"==typeof n)&&(t=e,w=n),S):t},S.shapeWidth=function(e){return arguments.length?(n=+e,S):n},S.shapeHeight=function(e){return arguments.length?(r=+e,S):r},S.shapeRadius=function(e){return arguments.length?(o=+e,S):o},S.shapePadding=function(e){return arguments.length?(i=+e,S):i},S.labels=function(e){return arguments.length?(s=e,S):s},S.labelAlign=function(e){return arguments.length?("start"!=e&&"end"!=e&&"middle"!=e||(g=e),S):g},S.locale=function(e){return arguments.length?(h=Y(e),S):h},S.labelFormat=function(e){return arguments.length?(p=X(e),S):S.locale().format(p)},S.labelOffset=function(e){return arguments.length?(f=+e,S):f},S.labelDelimiter=function(e){return arguments.length?(m=e,S):m},S.labelWrap=function(e){return arguments.length?(y=e,S):y},S.useClass=function(e){return arguments.length?(!0!==e&&!1!==e||(c=e),S):c},S.orient=function(e){return arguments.length?("horizontal"!=(e=e.toLowerCase())&&"vertical"!=e||(b=e),S):b},S.ascending=function(e){return arguments.length?(v=!!e,S):v},S.classPrefix=function(e){return arguments.length?(u=e,S):u},S.title=function(e){return arguments.length?(d=e,S):d},S.titleWidth=function(e){return arguments.length?(_=e,S):_},S.textWrap=function(e){return arguments.length?(textWrap=e,S):textWrap},S.on=function(){var e=C.on.apply(C,arguments);return e===C?S:e},S}x(no,"Ft"),Zn(no,"color");const ro=(x(c=class extends F{_owner;_targetWidget;_targetWidgetMonitor;_legendOrdinal;_disabled=[];_symbolTypeMap={circle:Tr,cross:Pr,diamond:Ir,square:Lr,star:Fr,triangle:Mr,wye:Ur};constructor(e){super(),this._owner=e,this._drawStartPos="origin";const t=this;this._legendOrdinal=no().shape("path",jr().type(Tr).size(150)()).shapePadding(10).shapeRadius(10).on("cellclick",function(e){t.onClick(e,this)}).on("cellover",e=>{t.onOver(e,this)}).on("cellout",e=>{t.onOut(e,this)})}isDisabled(e){return void 0!==e&&("string"==typeof e?0===e.indexOf("__")||this._disabled.indexOf(e)>=0:e instanceof L.Field?0===e.id().indexOf("__")||this._disabled.indexOf(e.id())>=0:this._disabled.indexOf(e)>=0)}filteredFields(){switch(this.dataFamily()){case"2D":return this.fields();case"ND":return this.fields().filter(e=>!this.isDisabled(e))}return this.fields()}filteredColumns(){switch(this.dataFamily()){case"2D":return this.columns();case"ND":return this.columns().filter(e=>!this.isDisabled(e))}return this.columns()}filteredData(){switch(this.dataFamily()){case"2D":return this.data().filter(e=>!this.isDisabled(e[0]));case"ND":const e={};let t=!1;return this.columns().forEach((n,r)=>{const o=this.isDisabled(n);e[r]=o,o&&(t=!0)}),t?this.data().map(t=>t.filter((t,n)=>!e[n])):this.data()}return this.data()}isRainbow(){const e=this.getWidget();return e&&e._palette&&"rainbow"===e._palette.type()}targetWidget(e){if(!arguments.length)return this._targetWidget;if(this._targetWidget=e,this._targetWidgetMonitor&&(this._targetWidgetMonitor.remove(),delete this._targetWidgetMonitor),this._targetWidget){const e=this;this._targetWidgetMonitor=this._targetWidget.monitor(function(t,n,r,o){switch(t){case"chart":case"columns":case"data":case"paletteID":e.lazyRender()}})}return this}getWidget(){return this._targetWidget&&"composite_MultiChart"===this._targetWidget.classID()?this._targetWidget.chart():this._targetWidget}getPalette(){const e=this.getWidget();if(e&&e._palette)switch(e._palette.type()){case"ordinal":return O.ordinal(e._palette.id());case"rainbow":return O.rainbow(e._palette.id())}return O.ordinal("default")}getPaletteType(){return this.getPalette().type()}fillColorFunc(){const e=this.getWidget();if(e&&e.fillColor)return e._palette&&e.paletteID&&e._palette.name!==e.paletteID()&&(e._palette=e._palette.switch(e.paletteID())),(t,n,r)=>e.fillColor(t,n,r);const t=O.ordinal(e&&e.paletteID&&e.paletteID()||"default");return(e,n,r)=>t(n)}fillColor(e,t,n){return this.fillColorFunc()(e,t,n)}_g;enter(e,t){super.enter(e,t),this._g=t.append("g").attr("class","legendOrdinal")}calcMetaData(){let e=[],t=0,n=0;const r=this.columns().length;if(this._targetWidget){const o=this.columns();switch(this.getPaletteType()){case"ordinal":const i=this.fillColorFunc();let l=0;switch(this.dataFamily()){case"2D":e=this.data().map(function(e,o){l=this.data()[o].slice(1,r).reduce((e,t)=>e+t,0);const a=this.isDisabled(e[0]);a||(t+=l);const s=e[0]+(!a&&this.showSeriesTotal()?` (${l})`:""),u=this.textSize(s);return n<u.width&&(n=u.width),[i(e,e[0],!1),e[0],s]},this);break;case"ND":e=this.columns().filter(e=>0!==e.indexOf("__")).filter(function(e,t){return t>0}).map(function(e,r){l=this.data().reduce((e,t)=>e+t[r+1],0);const a=this.isDisabled(o[r+1]),s=e+(!a&&this.showSeriesTotal()?` (${l})`:"");a||(t+=l);const u=this.textSize(s);return n<u.width&&(n=u.width),[i(void 0,e,!1),e,s]},this);break;default:e=this.columns().map(function(e){return[i(void 0,e,!1),e]},this)}break;case"rainbow":const a=this.getPalette(),s=S(this.rainbowFormat()),u=this.getWidget(),c=this.rainbowBins(),d=u._dataMinWeight,h=u._dataMaxWeight,p=(h-d)/(c-1);e.push([a(d,d,h),s(d)]);for(let t=1;t<c-1;++t){let n=p*t;Math.floor(n)>parseInt(e[0][1])&&(n=Math.floor(n)),e.push([a(n,d,h),s(n)])}e.push([a(h,d,h),s(h)])}}return{dataArr:e,total:t,maxLabelWidth:n}}update(e,t){super.update(e,t);const{dataArr:n,maxLabelWidth:r,total:o}=this.calcMetaData(),i=this.shapeRadius(),l=this.radiusToSymbolSize(i);let a=this.itemPadding();"horizontal"===this.orientation()&&(a+=r-2*i);const s=M().domain(n.map(e=>e[1])).range(n.map(e=>e[0]));this._legendOrdinal.shape("path",jr().type(this._symbolTypeMap[this.symbolType()]).size(l)()).orient(this.orientation()).title(this.title()).labelWrap(this.labelMaxWidth()).labelAlign(this.labelAlign()).shapePadding(a).scale(s).labels(e=>n[e.i][2]),this._g.call(this._legendOrdinal),this.updateDisabled(t,n);const u=this._g.select(".legendCells").node().getBBox();let c=Math.abs(u.x),d=Math.abs(u.y)+1;"horizontal"===this.orientation()?("start"===this.labelAlign()?c+=1:"end"===this.labelAlign()&&(c-=1),this.width()>u.width&&(c+=(this.width()-u.width)/2)):"vertical"===this.orientation()&&(c+=1,this._containerSize.height>u.height)&&(d+=(this.height()-u.height)/2),this._g.attr("transform",`translate(${c}, ${d})`),this.pos({x:0,y:0}),this._legendOrdinal.labelOffset(this.itemPadding());const h=this._g.selectAll(".legendTotal").data(n.length&&this.showLegendTotal()?[o]:[]),p=`Total: ${o}`,f=-c,g=u.height+this.itemPadding()+1;this.enableOverflowScroll(!1),this.enableOverflow(!0),h.enter().append("text").classed("legendTotal",!0).merge(h).attr("transform",`translate(${f}, ${g})`).text(p),h.exit().remove()}updateDisabled(e,t){e.style("cursor","pointer").selectAll("path.swatch").filter((e,n)=>n<t.length).style("stroke",(e,n)=>t[n][0]).style("fill",(e,n)=>this._disabled.indexOf(e)<0?t[n][0]:"white")}postUpdate(e,t){let n;this._boundingBox&&(n=this._boundingBox.width,this._boundingBox.width=this._size.width),super.postUpdate(e,t),void 0!==n&&(this._boundingBox.width=n),this._parentRelativeDiv.style("overflow","hidden")}exit(e,t){super.exit(e,t)}radiusToSymbolSize(e){const t=Math.pow(e,2)*Math.PI;switch(this.symbolType()){case"star":return.45*t;case"triangle":return.65*t;case"cross":case"diamond":case"wye":return.75*t;case"circle":return t;case"square":return 1.3*t}}onClick(e,t){if("ordinal"===this.getPaletteType())switch(this.dataFamily()){case"2D":case"ND":const t=this._disabled.indexOf(e);t<0?this._disabled.push(e):this._disabled.splice(t,1),this._owner.refreshColumns(),this._owner.refreshData(),this._owner.render()}}onOver(e,t){if(J(this._owner)&&"ordinal"===this.getPaletteType())switch(this.dataFamily()){case"2D":case"ND":this._disabled.indexOf(e)<0&&this._owner.highlightColumn(e)}}onOut(e,t){if(J(this._owner)&&"ordinal"===this.getPaletteType())switch(this.dataFamily()){case"2D":case"ND":this._owner.highlightColumn()}}onDblClick(e,t){}onMouseOver(e,t){}_containerSize;resize(e){let t;if(this.fitToContent()){this._containerSize=e;const n=this.getBBox();e.width>n.width&&(n.width=e.width),e.height>n.height&&(n.height=e.height),t=super.resize.apply(this,[{...n}])}else t=super.resize.apply(this,arguments);return t}},"_Legend"),c);Zn(ro,"Legend");let oo=ro;oo.prototype._class+=" layout_Legend",oo.prototype.publish("title","","string","Title"),oo.prototype.publish("symbolType","circle","set","Shape of each legend item",["circle","cross","diamond","square","star","triangle","wye"]),oo.prototype.publish("labelMaxWidth",null,"number","Max Label Width (pixels)",null,{optional:!0}),oo.prototype.publish("orientation","vertical","set","Orientation of Legend rows",["vertical","horizontal"],{tags:["Private"]}),oo.prototype.publish("dataFamily","ND","set","Type of data",["1D","2D","ND","map","graph","any"],{tags:["Private"]}),oo.prototype.publish("rainbowFormat",",","string","Rainbow number formatting",null,{tags:["Private"],optional:!0,disable:/* @__PURE__ */Zn(e=>!e.isRainbow(),"disable")}),oo.prototype.publish("rainbowBins",8,"number","Number of rainbow bins",null,{tags:["Private"],disable:/* @__PURE__ */Zn(e=>!e.isRainbow(),"disable")}),oo.prototype.publish("showSeriesTotal",!1,"boolean","Show value next to series"),oo.prototype.publish("showLegendTotal",!1,"boolean","Show a total of the series values under the legend",null),oo.prototype.publish("itemPadding",8,"number","Padding between legend items (pixels)"),oo.prototype.publish("shapeRadius",7,"number","Radius of legend shape (pixels)"),oo.prototype.publish("fitToContent",!0,"boolean","If true, resize will simply reapply the bounding box dimensions"),oo.prototype.publish("labelAlign","start","set","Horizontal alignment of legend item label (for horizontal orientation only)",["start","middle","end"],{optional:!0,disable:/* @__PURE__ */Zn(e=>"vertical"===e.orientation(),"disable")});const io=(x(d=class extends C{_widget;_relativeTarget;_fade;_modal;_modalHeader;_modalBody;_modalHeaderAnnotations;_modalHeaderCloseButton;_close;constructor(){super(),this._tag="div"}closeModal(){this.visible(!1)}getRelativeTarget(){let e;return this.relativeTargetId()&&(e=document.getElementById(this.relativeTargetId()),e)?e:!e&&(e=this.locateAncestor("layout_Grid"),e&&e.element)?e.element().node():document.body}setModalSize(){null!==this.fixedHeight()&&null!==this.fixedWidth()?this._modal.style("height",this.fixedHeight()).style("width",this.fixedWidth()).style("min-height",null).style("min-width",null).style("max-height",null).style("max-width",null):(this.minHeight()||this.minWidth())&&this._modal.style("min-height",this.minHeight()).style("min-width",this.minWidth()).style("max-height",this.maxHeight()).style("max-width",this.maxWidth());const e=this._modal.node().getBoundingClientRect(),t=this._modalHeader.node().getBoundingClientRect();return this._modalBody.style("height",e.height-t.height+"px").style("width",e.width),e}setFadePosition(e){this._fade.style("top",e.top+"px").style("left",e.left+"px").style("width",e.width+"px").style("height",e.height+"px")}setModalPosition(e){const t=this.setModalSize();if(null!==this.fixedTop()&&null!==this.fixedLeft())this._modal.style("top",`calc(${this.fixedTop()} + ${e.top}px)`).style("left",`calc(${this.fixedLeft()} + ${e.left}px)`);else if(null!==this.fixedHeight()&&null!==this.fixedWidth())this._modal.style("top",e.top+e.height/2-t.height/2+"px").style("left",e.left+e.width/2-t.width/2+"px");else if(this.minHeight()||this.minWidth()){const t=this._modal.node().getBoundingClientRect();this._modal.style("top",e.top+e.height/2-t.height/2+"px").style("left",e.left+e.width/2-t.width/2+"px")}}resize(e){return super.resize(),this._modal&&this.setModalSize(),this}resizeBodySync(e,t){const n=this._modalHeader.node().getBoundingClientRect();return this._modal.style("width",e+"px").style("height",t+n.height+"px").style("min-width",e+"px").style("min-height",t+n.height+"px"),this._modalHeader.style("width",e+"px"),this._modalBody.style("width",e+"px").style("height",t+"px"),this.minWidth(e+"px").minHeight(t+n.height+"px").resize({height:t+n.height,width:e})}enter(e,t){super.enter(e,t),this._fade=t.append("div").classed("layout_Modal-fade",!0).classed("layout_Modal-fadeClickable",this.enableClickFadeToClose()).classed("layout_Modal-fade-hidden",!this.showFade());const n=2*this.titleFontSize();this._modal=t.append("div").classed("layout_Modal-content",!0),this._modalHeader=this._modal.append("div").classed("layout_Modal-header",!0).style("color",this.titleFontColor()).style("font-size",this.titleFontSize()+"px").style("height",n+"px"),this._modalBody=this._modal.append("div").classed("layout_Modal-body",!0).style("height",`calc( 100% - ${n}px )`).style("overflow-x",this.overflowX()).style("overflow-y",this.overflowY()),this._modalHeader.append("div").classed("layout_Modal-title",!0).style("line-height",this.titleFontSize()+"px").style("top",this.titleFontSize()/2+"px").style("left",this.titleFontSize()/2+"px").text(this.formattedTitle()),this._modalHeaderAnnotations=this._modalHeader.append("div").classed("layout_Modal-annotations",!0),this._modalHeaderCloseButton=this._modalHeaderAnnotations.append("div").classed("layout_Modal-closeButton",!0).html('<i class="fa fa-close"></i>'),this._modalHeaderAnnotations.style("line-height",this.titleFontSize()+"px").style("right",this.titleFontSize()/2+"px").style("top",this.titleFontSize()/2+"px"),this._modalHeaderCloseButton.on("click",()=>{this.closeModal()}),this._fade.on("click",e=>{this.enableClickFadeToClose()&&this.closeModal()})}update(e,t){super.update(e,t),t.style("display",this.show()?null:"none"),this._fade.classed("layout_Modal-fade-hidden",!this.showFade()),this._relativeTarget=this.getRelativeTarget(),this.setModalSize();const n=this._relativeTarget.getBoundingClientRect();this.setFadePosition(n),this.setModalPosition(n),this.show()?(this._widget.target()||this._widget.target(this._modalBody.node()),this._widget.resize().render()):this._widget.target(null).render()}exit(e,t){this._widget&&this._widget.target(null),super.exit(e,t)}formattedTitle(){const e=this.title_exists()?this.title().trim():"";return e.length>0&&"("===e.slice(0,1)&&")"===e.slice(-1)?e.slice(1,-1):this.title()}},"_Modal"),d);Zn(io,"Modal");let lo=io;lo.prototype._class+=" layout_Modal",lo.prototype.publish("title",null,"string","title"),lo.prototype.publish("widget",null,"widget","widget"),lo.prototype.publish("titleFontSize",18,"number","titleFontSize (in pixels)"),lo.prototype.publish("titleFontColor","#ffffff","html-color","titleFontColor"),lo.prototype.publish("relativeTargetId",null,"string","relativeTargetId"),lo.prototype.publish("show",!0,"boolean","show"),lo.prototype.publish("showFade",!0,"boolean","showFade"),lo.prototype.publish("enableClickFadeToClose",!0,"boolean","enableClickFadeToClose"),lo.prototype.publish("minWidth","400px","string","minWidth"),lo.prototype.publish("minHeight","400px","string","minHeight"),lo.prototype.publish("maxWidth","800px","string","maxWidth"),lo.prototype.publish("maxHeight","800px","string","maxHeight"),lo.prototype.publish("fixedWidth",null,"string","fixedWidth"),lo.prototype.publish("fixedHeight",null,"string","fixedHeight"),lo.prototype.publish("fixedTop",null,"string","fixedTop"),lo.prototype.publish("fixedLeft",null,"string","fixedLeft"),lo.prototype.publish("overflowX","hidden","string","overflowX"),lo.prototype.publish("overflowY","scroll","string","overflowY");const ao=(x(h=class extends fr{_legend=new oo(this).enableOverflow(!0);_progressBar=new B;_autoScale=!1;_resolutions={tiny:{width:100,height:100},small:{width:300,height:300}};_modal=new lo;_highlight;_scale;_orig_size;_toggleInfo=(new H).faChar("fa-info-circle").tooltip(".Description").selected(!1).on("enabled",()=>""!==this.description()).on("click",()=>{if(this._toggleInfo.selected()){this._modal.title(this.title()).widget((new N).text(this.description())).show(!0).render();const e=this._modal._close;this._modal._close=()=>{this._toggleInfo.selected(!1).render(),this._modal._close=e}}}).on("mouseMove",()=>{}).on("mouseOut",()=>{});_toggleData=(new H).faChar("fa-table").tooltip("Data").on("click",()=>{this.dataVisible(this._toggleData.selected()),this.render()});_buttonDownload=(new W).faChar("fa-download").tooltip("Download").on("click",()=>{this.downloadCSV()});_buttonDownloadImage=(new W).faChar("fa-image").tooltip("Download Image").on("click",()=>{this.downloadPNG()});_toggleLegend=(new H).faChar("fa-list-ul").tooltip("Legend").selected(!1).on("click",()=>{const e=this._toggleLegend.selected();"bottom"===this.legendPosition()?this.showBottom(e):"right"===this.legendPosition()&&this.showRight(e),this.legendVisible(e),this.render()});_spacer=new U;_titleBar=(new j).buttons([this._toggleData,this._buttonDownload,this._buttonDownloadImage,this._spacer,this._toggleLegend]);_carousel=new mr;_table=new Qn;_widget;_hideLegendToggleList=["dgrid_Table","dgrid2_Table"];constructor(){super(),this._tag="div"}fields(e){return arguments.length?(super.fields(e),this._legend.fields(e),this.refreshFields(),this):super.fields()}refreshFields(){return this._widget.fields(this._legend.filteredFields()),this._table.fields(this._legend.filteredFields()),this}columns(e,t){return arguments.length?(super.columns(e,t),this._legend.columns(e,t),this.refreshColumns(),this):super.columns()}refreshColumns(){return this._widget.columns(this._legend.filteredColumns()),this._table.columns(this._legend.filteredColumns()),this}data(e){return arguments.length?(super.data(e),this._legend.data(e),this.refreshData(),this):super.data()}refreshData(){return this._widget.data(this._legend.filteredData()),this._table.data(this._legend.filteredData()),this}highlight(e){return arguments.length?(this._highlight=e,this):this._highlight}startProgress(){this._progressBar.start()}finishProgress(){this._progressBar.finish()}buttons(e){return arguments.length?(this._titleBar.buttons(e),this):this._titleBar.buttons()}downloadCSV(){const e=this.downloadTitle()?this.downloadTitle():this.title()?this.title():"data",t=this.downloadTimestampSuffix()?"_"+I.timestamp():"";return I.downloadString("CSV",this._widget.export("CSV"),e+t),this}downloadPNG(){const e=this.widget();return e instanceof F&&(this.legendVisible()?e.downloadPNG(this.title(),void 0,this._legend):e.downloadPNG(this.title())),this}highlightColumn(e){if(e){const t=`series-${this.cssTag(e)}`;this._centerWA.element().selectAll(".series").each(function(){const e=E(this),n=e.classed(t);e.classed("highlight",n).classed("lowlight",!n)})}else this._centerWA.element().selectAll(".series").classed("highlight",!1).classed("lowlight",!1);return this}getResponsiveMode(){return this.enableAutoscaling()?this._autoScale?this.size().width<=this._resolutions.tiny.width||this.size().height<=this._resolutions.tiny.height?"tiny":this.size().width<=this._resolutions.small.width||this.size().height<=this._resolutions.small.height?"small":"regular":"regular":"none"}setOrigSize(){this._orig_size=JSON.parse(JSON.stringify(this.size()))}enter(e,t){super.enter(e,t),this._modal.target(this.target()).relativeTargetId(this.id()),this.top(this._titleBar),this.center(this._carousel),this._legend.targetWidget(this._widget).orientation("vertical").title("").visible(!1),this._progressBar.enter(e,t),this.setOrigSize()}preUpdateTiny(e){e.selectAll("div.body,div.title-text,div.icon-bar").style("display","none")}preUpdateSmall(e){const t=this._orig_size.width/this._resolutions.small.width,n=this._orig_size.height/this._resolutions.small.height;this._scale=Math.min(t,n);const r=this._scale===t;this.size({width:r?this._resolutions.small.width:this._orig_size.width*(1/this._scale),height:r?this._orig_size.height*(1/this._scale):this._resolutions.small.height}),e.select("div.title-icon").style("position","static"),e.selectAll("lhs").style("display","none"),e.selectAll("div.body,div.title-text,div.icon-bar").style("display",""),e.selectAll("div.data-count").style("visibility","hidden"),e.style("transform",`scale(${this._scale})`)}preUpdateRegular(e){e.selectAll("div.body,div.title-text,div.icon-bar").style("display",""),e.selectAll("div.data-count").style("visibility","hidden"),e.select("div.title-icon").style("position","static"),e.style("transform","translate(0px,0px) scale(1)")}_prevdataVisible;_prevlegendVisible;_prevLegendPosition;_prevChartDataFamily;_prevChart;_prevButtons;update(e,t){super.update(e,t)}preUpdate(e,t){switch(super.preUpdate(e,t),this._prevLegendPosition!==this.legendPosition()&&(null!==this._legend.target()&&this._legend.target(null),void 0!==this._prevLegendPosition?this.swap(this._prevLegendPosition,this.legendPosition()):this[this.legendPosition()](this._legend),"right"===this.legendPosition()?(this.rightOverflowX("hidden"),this.rightOverflowY("auto"),this.bottomOverflowX("visible"),this.bottomOverflowY("visible")):(this.rightOverflowX("visible"),this.rightOverflowY("visible"),this.bottomOverflowX("auto"),this.bottomOverflowY("hidden")),this._prevLegendPosition=this.legendPosition()),this._prevdataVisible!==this.dataVisible()&&(this._prevdataVisible=this.dataVisible(),this._toggleData.selected(this._prevdataVisible),this._legend.visible(this._prevlegendVisible&&!this._prevdataVisible),this._carousel.active(this._prevdataVisible?1:0)),this._prevlegendVisible!==this.legendVisible()&&(this._prevlegendVisible=this.legendVisible(),this._toggleLegend.selected(this._prevlegendVisible),this._legend.visible(this._prevlegendVisible&&!this._prevdataVisible)),this._legend.orientation("bottom"===this.legendPosition()?"horizontal":"vertical"),this.showLeft(!this.left()),this.getResponsiveMode()){case"tiny":this.preUpdateTiny(t);break;case"small":this.preUpdateSmall(t);break;case"regular":this.preUpdateRegular(t)}const n="composite_MultiChart"===this._widget.classID()?this._widget.chart():this._widget;if(this._legend.dataFamily(n._dataFamily||"any"),this._prevChartDataFamily!==this._legend.dataFamily()&&(this._prevChartDataFamily=this._legend.dataFamily(),"any"===this._prevChartDataFamily)&&(this._toggleLegend.selected(!1),this._legend.visible(!1)),t.style("box-shadow",this.highlight()?`inset 0px 0px 0px ${this.highlightSize()}px ${this.highlightColor()}`:"none"),-1!==this._hideLegendToggleList.indexOf(n.classID())?(this._spacer.visible(!1),this._toggleLegend.visible(!1)):(this._spacer.visible(!0),this._toggleLegend.visible(!0)),this._prevChart!==n){this._prevChart=n;const e=n?n._titleBar||n._iconBar:void 0;if(e&&e instanceof $){this._prevButtons=this._prevButtons||[...this.buttons()];const t=[...e.buttons(),new U,...this._prevButtons];e.buttons([]).render(),this.buttons(t)}else this._prevButtons&&this.buttons(this._prevButtons)}const r=[];this.dataButtonVisible()||r.push(this._toggleData),this.downloadButtonVisible()||r.push(this._buttonDownload),this.downloadImageButtonVisible()||r.push(this._buttonDownloadImage),this.legendButtonVisible()||r.push(this._toggleLegend),this._buttonDownloadImage.enabled(this.widget()instanceof F),this._titleBar.hiddenButtons(r).visible(this.titleVisible()),this.topOverlay(this.titleOverlay()||!this.titleVisible())}postUpdate(e,t){switch(super.postUpdate(e,t),this.getResponsiveMode()){case"tiny":this.postUpdateTiny(t);break;case"small":this.postUpdateSmall(t);break;case"regular":this.postUpdateRegular(t)}}postUpdateTiny(e){e.selectAll("div.body,div.title-text,div.icon-bar").style("display","none"),e.selectAll("div.data-count").style("visibility","visible").style("font-size",this.titleIconFontSize()/3+"px").style("line-height",this.titleIconFontSize()/3+"px").style("left",this.titleIconFontSize()+"px").text(this.data().length),e.style("transform","translate(0px,0px) scale(1)");const t=e.selectAll("div.title-icon"),n=t.node(),r=e.node().parentElement.getBoundingClientRect();if(n){const n=t.node().getBoundingClientRect(),o=r.height/2;t.style("position","absolute").style("left",`calc(50% - ${n.width/2}px)`).style("top",o-n.height/2+"px"),e.selectAll("div.data-count").style("position","absolute").style("left",`calc(50% + ${n.width/2}px)`).style("top",o-n.height/2+"px")}}postUpdateSmall(e){e.selectAll("lhs").style("display","none"),e.selectAll("div.title-icon").style("position","static"),e.selectAll("div.body,div.title-text,div.icon-bar").style("display",""),e.selectAll("div.data-count").style("visibility","hidden");const t=e.node().getBoundingClientRect(),n=e.node().parentElement.getBoundingClientRect();e.style("transform",`translate(${n.x-t.x}px, ${n.y-t.y}px) scale(${this._scale})`)}postUpdateRegular(e){e.selectAll("div.title-icon").style("position","static"),e.selectAll("div.body,div.title-text,div.icon-bar").style("display",""),e.selectAll("div.data-count").style("visibility","hidden")}exit(e,t){this._progressBar.exit(e,t),this.right(null),this._legend.target(null),this.center(null),this._carousel.target(null),this.top(null),this._titleBar.target(null),this._modal.target(null),delete this._prevChart,delete this._prevButtons,delete this._prevChartDataFamily,delete this._prevPos,delete this._prevdataVisible,delete this._prevlegendVisible,super.exit(e,t)}click(e,t,n){}dblclick(e,t,n){}vertex_click(e,t,n,r){r&&r.vertex}vertex_dblclick(e,t,n,r){r&&r.vertex}edge_click(e,t,n,r){r&&r.edge}edge_dblclick(e,t,n,r){r&&r.edge}},"_ChartPanel"),h);Zn(ao,"ChartPanel");let so=ao;so.prototype._class+=" layout_ChartPanel",so.prototype.publishReset(),so.prototype.publishProxy("title","_titleBar"),so.prototype.publish("titleVisible",!0,"boolean"),so.prototype.publish("titleOverlay",!1,"boolean"),so.prototype.publishProxy("titleIcon","_titleBar"),so.prototype.publishProxy("titleIconFont","_titleBar"),so.prototype.publishProxy("titleFont","_titleBar"),so.prototype.publishProxy("titleIconFontSize","_titleBar"),so.prototype.publishProxy("titleFontSize","_titleBar"),so.prototype.publishProxy("description","_titleBar"),so.prototype.publishProxy("descriptionFont","_titleBar"),so.prototype.publishProxy("descriptionFontSize","_titleBar"),so.prototype.publish("dataVisible",!1,"boolean","Show data table"),so.prototype.publish("dataButtonVisible",!0,"boolean","Show data table button"),so.prototype.publish("downloadButtonVisible",!0,"boolean","Show data download button"),so.prototype.publish("downloadImageButtonVisible",!1,"boolean","Show image download button"),so.prototype.publish("downloadTitle","","string","File name when downloaded"),so.prototype.publish("downloadTimestampSuffix",!0,"boolean","Use timestamp as file name suffix"),so.prototype.publish("legendVisible",!1,"boolean","Show legend"),so.prototype.publish("legendButtonVisible",!0,"boolean","Show legend button"),so.prototype.publish("legendPosition","right","set","Position of legend",["right","bottom"]),so.prototype.publishProxy("legend_labelMaxWidth","_legend","labelMaxWidth"),so.prototype.publishProxy("legend_showSeriesTotal","_legend","showSeriesTotal"),so.prototype.publishProxy("legend_showLegendTotal","_legend","showLegendTotal"),so.prototype.publishProxy("legend_itemPadding","_legend","itemPadding"),so.prototype.publishProxy("legend_shapeRadius","_legend","shapeRadius"),so.prototype.publishProxy("legend_symbolType","_legend","symbolType"),so.prototype.publishProxy("legend_labelAlign","_legend","labelAlign"),so.prototype.publish("widget",null,"widget","Widget",void 0,{render:!1}),so.prototype.publish("enableAutoscaling",!1,"boolean"),so.prototype.publish("highlightSize",4,"number"),so.prototype.publish("highlightColor","#e67e22","html-color"),so.prototype.publishProxy("progress_halfLife","_progressBar","halfLife"),so.prototype.publishProxy("progress_decay","_progressBar","decay"),so.prototype.publishProxy("progress_size","_progressBar","size"),so.prototype.publishProxy("progress_color","_progressBar","color"),so.prototype.publishProxy("progress_blurBar","_progressBar","blurBar"),so.prototype.publishProxy("progress_blurSize","_progressBar","blurSize"),so.prototype.publishProxy("progress_blurColor","_progressBar","blurColor"),so.prototype.publishProxy("progress_blurOpacity","_progressBar","blurOpacity"),so.prototype.widget=function(e){if(!arguments.length)return this._widget;this._carousel.widgets([e,this._table]),this._widget=e,this._widget.fields(this._legend.filteredFields()).data(this._legend.filteredData());const t=this,n=this._widget;return n.click=function(){t.click.apply(t,arguments)},n.dblclick=function(){t.dblclick.apply(t,arguments)},n.vertex_click=function(){t.vertex_click.apply(t,arguments)},n.vertex_dblclick=function(){t.vertex_dblclick.apply(t,arguments)},n.edge_click=function(){t.edge_click.apply(t,arguments)},n.edge_dblclick=function(){t.edge_dblclick.apply(t,arguments)},this};const uo=(x(p=class extends C{constructor(){super()}enter(e,t){super.enter(e,t),E(e.parentNode).style("height","100%").style("width","100%")}update(e,t){super.update(e,t);const n=this,r=[];this.updateFlexParent(t);const o=t.selectAll(".FlexGrid-list-item").data(this.widgets(),e=>e.id());o.enter().append("div").classed("FlexGrid-list-item",!0).each(function(e){e.target(this)}).merge(o).style("min-height",this.itemMinHeight()+"px").style("min-width",this.itemMinWidth()+"px").style("flex-basis",(e,t)=>{const n=this.widgetsFlexBasis()[t];return void 0!==n?n:this.flexBasis()}).style("flex-grow",(e,t)=>{const n=this.widgetsFlexGrow()[t];return void 0!==n?n:this.flexGrow()}).style("border-width",this.borderWidth()+"px").style("border-color",this.itemBorderColor()).each(function(){this.firstChild.style.display="none"}).each(function(){const e=this.getBoundingClientRect();r.push([e.width,e.height])}).each(function(e,t){this.firstChild.style.display="block",e.resize({width:r[t][0]-2*n.borderWidth(),height:r[t][1]-2*n.borderWidth()})}),o.exit().remove()}exit(e,t){super.exit(e,t)}updateFlexParent(e){e.style("height","100%").style("flex-direction","horizontal"===this.orientation()?"row":"column").style("flex-wrap",this.flexWrap()).style("align-items",this.alignItems()).style("align-content",this.alignContent()).style("overflow-x",()=>this.forceXScroll()||"horizontal"===this.orientation()&&"nowrap"===this.flexWrap()&&!this.disableScroll()?"scroll":"hidden").style("overflow-y",()=>this.forceYScroll()||"vertical"===this.orientation()&&"nowrap"===this.flexWrap()&&!this.disableScroll()?"scroll":"hidden")}},"_FlexGrid"),p);Zn(uo,"FlexGrid");let co=uo;function ho(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}x(ho,"Vt"),co.prototype._class+=" layout_FlexGrid",co.prototype.publish("itemBorderColor","transparent","html-color","Color of list item borders"),co.prototype.publish("borderWidth",0,"number","Width of list item borders (pixels)"),co.prototype.publish("orientation","horizontal","set","Controls the flex-direction of the list items",["horizontal","vertical"]),co.prototype.publish("flexWrap","wrap","set","Controls the line wrap when overflow occurs",["nowrap","wrap","wrap-reverse"]),co.prototype.publish("disableScroll",!1,"boolean","If false, scrollbar will show (when flexWrap is set to 'nowrap')",null,{disable:/* @__PURE__ */Zn(e=>"nowrap"!==e.flexWrap(),"disable")}),co.prototype.publish("forceXScroll",!1,"boolean","If true, horzontal scrollbar will show"),co.prototype.publish("forceYScroll",!1,"boolean","If true, vertical scrollbar will show"),co.prototype.publish("itemMinHeight",64,"number","Minimum height of a list item (pixels)"),co.prototype.publish("itemMinWidth",64,"number","Minimum width of a list item (pixels)"),co.prototype.publish("alignItems","stretch","set","Controls normal alignment of items",["flex-start","center","flex-end","stretch"]),co.prototype.publish("alignContent","stretch","set","Controls normal alignment of item rows",["flex-start","center","flex-end","stretch","space-between","space-around"]),co.prototype.publish("flexGrow",1,"number","Default flex-grow style for all list items"),co.prototype.publish("flexBasis","10%","string","Default flex-basis style for all list items"),co.prototype.publish("widgetsFlexGrow",[],"array","Array of flex-grow values keyed on the widgets array"),co.prototype.publish("widgetsFlexBasis",[],"array","Array of flex-basis values keyed on the widgets array"),co.prototype.publish("widgets",[],"widgetArray","Array of widgets to be rendered as list items"),Zn(ho,"getDefaultExportFromCjs");var po,fo={exports:{}};function go(){return po?fo.exports:(po=1,fo.exports=function(){var e=/* @__PURE__ */Zn(function(e,t){for(var n in this._options=t,this.defaults)this._options.hasOwnProperty(n)||(this._options[n]=this.defaults[n]);this.items=e,this._adjustSizeOfItems(),this.generateGrid()},"GridList");e.cloneItems=function(e,t){var n,r;for(void 0===t&&(t=[]),n=0;n<e.length;n++)for(r in t[n]||(t[n]={}),e[n])t[n][r]=e[n][r];return t},e.prototype={defaults:{lanes:5,direction:"horizontal"},toString:/* @__PURE__ */Zn(function(){var e,t,n,r=this.grid.length,o="\n #|",i="\n --";for(t=0;t<r;t++)o+=" "+this._padNumber(t," "),i+="---";for(o+=i,t=0;t<this._options.lanes;t++)for(o+="\n"+this._padNumber(t," ")+"|",n=0;n<r;n++)o+=" ",o+=(e=this.grid[n][t])?this._padNumber(this.items.indexOf(e),"0"):"--";return o+"\n"},"toString"),generateGrid:/* @__PURE__ */Zn(function(){var e;for(this._resetGrid(),e=0;e<this.items.length;e++)this._markItemPositionToGrid(this.items[e])},"generateGrid"),resizeGrid:/* @__PURE__ */Zn(function(e){var t=0;this._options.lanes=e,this._adjustSizeOfItems(),this._sortItemsByPosition(),this._resetGrid();for(var n=0;n<this.items.length;n++){var r=this.items[n],o=this._getItemPosition(r);this._updateItemPosition(r,this.findPositionForItem(r,{x:t,y:0})),t=Math.max(t,o.x)}this._pullItemsToLeft()},"resizeGrid"),findPositionForItem:/* @__PURE__ */Zn(function(e,t,n){var r,o,i;for(r=t.x;r<this.grid.length;r++)if(void 0!==n){if(i=[r,n],this._itemFitsAtPosition(e,i))return i}else for(o=t.y;o<this._options.lanes;o++)if(i=[r,o],this._itemFitsAtPosition(e,i))return i;var l=this.grid.length,a=0;return void 0!==n&&this._itemFitsAtPosition(e,[l,n])&&(a=n),[l,a]},"findPositionForItem"),moveItemToPosition:/* @__PURE__ */Zn(function(e,t){var n=this._getItemPosition({x:t[0],y:t[1],w:e.w,h:e.h});this._updateItemPosition(e,[n.x,n.y]),this._resolveCollisions(e)},"moveItemToPosition"),resizeItem:/* @__PURE__ */Zn(function(e,t){var n=t.w||e.w,r=t.h||e.h;this._updateItemSize(e,n,r),this._resolveCollisions(e),this._pullItemsToLeft()},"resizeItem"),getChangedItems:/* @__PURE__ */Zn(function(e,t){for(var n=[],r=0;r<e.length;r++){var o=this._getItemByAttribute(t,e[r][t]);o.x===e[r].x&&o.y===e[r].y&&o.w===e[r].w&&o.h===e[r].h||n.push(o)}return n},"getChangedItems"),_sortItemsByPosition:/* @__PURE__ */Zn(function(){this.items.sort(function(e,t){var n=this._getItemPosition(e),r=this._getItemPosition(t);return n.x!=r.x?n.x-r.x:n.y!=r.y?n.y-r.y:0}.bind(this))},"_sortItemsByPosition"),_adjustSizeOfItems:/* @__PURE__ */Zn(function(){for(var e=0;e<this.items.length;e++){var t=this.items[e];void 0===t.autoSize&&(t.autoSize=0===t.w||0===t.h),t.autoSize&&("horizontal"===this._options.direction?t.h=this._options.lanes:t.w=this._options.lanes)}},"_adjustSizeOfItems"),_resetGrid:/* @__PURE__ */Zn(function(){this.grid=[]},"_resetGrid"),_itemFitsAtPosition:/* @__PURE__ */Zn(function(e,t){var n,r,o=this._getItemPosition(e);if(t[0]<0||t[1]<0)return!1;if(t[1]+o.h>this._options.lanes)return!1;for(n=t[0];n<t[0]+o.w;n++){var i=this.grid[n];if(i)for(r=t[1];r<t[1]+o.h;r++)if(i[r]&&i[r]!==e)return!1}return!0},"_itemFitsAtPosition"),_updateItemPosition:/* @__PURE__ */Zn(function(e,t){null!==e.x&&null!==e.y&&this._deleteItemPositionFromGrid(e),this._setItemPosition(e,t),this._markItemPositionToGrid(e)},"_updateItemPosition"),_updateItemSize:/* @__PURE__ */Zn(function(e,t,n){null!==e.x&&null!==e.y&&this._deleteItemPositionFromGrid(e),e.w=t,e.h=n,this._markItemPositionToGrid(e)},"_updateItemSize"),_markItemPositionToGrid:/* @__PURE__ */Zn(function(e){var t,n,r=this._getItemPosition(e);for(this._ensureColumns(r.x+r.w),t=r.x;t<r.x+r.w;t++)for(n=r.y;n<r.y+r.h;n++)this.grid[t][n]=e},"_markItemPositionToGrid"),_deleteItemPositionFromGrid:/* @__PURE__ */Zn(function(e){var t,n,r=this._getItemPosition(e);for(t=r.x;t<r.x+r.w;t++)if(this.grid[t])for(n=r.y;n<r.y+r.h;n++)this.grid[t][n]==e&&(this.grid[t][n]=null)},"_deleteItemPositionFromGrid"),_ensureColumns:/* @__PURE__ */Zn(function(e){var n;for(n=0;n<e;n++)this.grid[n]||this.grid.push(new t(this._options.lanes))},"_ensureColumns"),_getItemsCollidingWithItem:/* @__PURE__ */Zn(function(e){for(var t=[],n=0;n<this.items.length;n++)e!=this.items[n]&&this._itemsAreColliding(e,this.items[n])&&t.push(n);return t},"_getItemsCollidingWithItem"),_itemsAreColliding:/* @__PURE__ */Zn(function(e,t){var n=this._getItemPosition(e),r=this._getItemPosition(t);return!(r.x>=n.x+n.w||r.x+r.w<=n.x||r.y>=n.y+n.h||r.y+r.h<=n.y)},"_itemsAreColliding"),_resolveCollisions:/* @__PURE__ */Zn(function(e){this._tryToResolveCollisionsLocally(e)||this._pullItemsToLeft(e),this._pullItemsToLeft()},"_resolveCollisions"),_tryToResolveCollisionsLocally:/* @__PURE__ */Zn(function(t){var n=this._getItemsCollidingWithItem(t);if(!n.length)return!0;var r,o,i,l,a=new e([],this._options);e.cloneItems(this.items,a.items),a.generateGrid();for(var s=0;s<n.length;s++){var u=a.items[n[s]],c=this._getItemPosition(u),d=this._getItemPosition(t);if(r=[d.x-c.w,c.y],o=[d.x+d.w,c.y],i=[c.x,d.y-c.h],l=[c.x,d.y+d.h],a._itemFitsAtPosition(u,r))a._updateItemPosition(u,r);else if(a._itemFitsAtPosition(u,i))a._updateItemPosition(u,i);else if(a._itemFitsAtPosition(u,l))a._updateItemPosition(u,l);else{if(!a._itemFitsAtPosition(u,o))return!1;a._updateItemPosition(u,o)}}return e.cloneItems(a.items,this.items),this.generateGrid(),!0},"_tryToResolveCollisionsLocally"),_pullItemsToLeft:/* @__PURE__ */Zn(function(e){if(this._sortItemsByPosition(),this._resetGrid(),e){var t=this._getItemPosition(e);this._updateItemPosition(e,[t.x,t.y])}for(var n=0;n<this.items.length;n++){var r=this.items[n],o=this._getItemPosition(r);if(!e||r!=e){var i=this._findLeftMostPositionForItem(r),l=this.findPositionForItem(r,{x:i,y:0},o.y);this._updateItemPosition(r,l)}}},"_pullItemsToLeft"),_findLeftMostPositionForItem:/* @__PURE__ */Zn(function(e){for(var t=0,n=this._getItemPosition(e),r=0;r<this.grid.length;r++)for(var o=n.y;o<n.y+n.h;o++){var i=this.grid[r][o];if(i){var l=this._getItemPosition(i);this.items.indexOf(i)<this.items.indexOf(e)&&(t=l.x+l.w)}}return t},"_findLeftMostPositionForItem"),_getItemByAttribute:/* @__PURE__ */Zn(function(e,t){for(var n=0;n<this.items.length;n++)if(this.items[n][e]===t)return this.items[n];return null},"_getItemByAttribute"),_padNumber:/* @__PURE__ */Zn(function(e,t){return e>=10?e:t+e},"_padNumber"),_getItemPosition:/* @__PURE__ */Zn(function(e){return"horizontal"===this._options.direction?e:{x:e.y,y:e.x,w:e.h,h:e.w}},"_getItemPosition"),_setItemPosition:/* @__PURE__ */Zn(function(e,t){"horizontal"===this._options.direction?(e.x=t[0],e.y=t[1]):(e.x=t[1],e.y=t[0])},"_setItemPosition")};var t=/* @__PURE__ */Zn(function(e){for(var t=0;t<e;t++)this.push(null)},"GridCol");return t.prototype=[],e}())}x(go,"Ut"),Zn(go,"requireGridList");var mo=go();const yo=/* @__PURE__ */ho(mo),bo=/* @__PURE__ */er({__proto__:null,default:yo},[mo]),vo=bo&&yo||bo,wo=(x(f=class extends C{divItems;gridList;items;itemsMap;origItems;cellWidth;cellHeight;dragItem;dragItemPos;_d3Drag;_d3DragResize;_selectionBag;_scrollBarWidth;constructor(){super(),this._tag="div",this._selectionBag=new I.Selection(this),this.content([])}getDimensions(){const e={width:0,height:0};return this.content().forEach(function(t){e.width<t.gridCol()+t.gridColSpan()&&(e.width=t.gridCol()+t.gridColSpan()),e.height<t.gridRow()+t.gridRowSpan()&&(e.height=t.gridRow()+t.gridRowSpan())},this),e}clearContent(e){this.content(this.content().filter(function(t){if(!e)return t.target(null),!1;let n=t;for(;n;){if(e===n)return t.target(null),!1;n=n.widget?n.widget():null}return!0}))}setContent(e,t,n,r,o,i){if(o=o||1,i=i||1,r=r||"",this.content(this.content().filter(function(n){return n.gridRow()!==e||n.gridCol()!==t||(n.target(null),!1)})),n){const l=(new sr).gridRow(e).gridCol(t).widget(n).title(r).gridRowSpan(o).gridColSpan(i);this.content().push(l)}return this}sortedContent(){return this.content().sort(function(e,t){return e.gridRow()===t.gridRow()?e.gridCol()-t.gridCol():e.gridRow()-t.gridRow()})}getCell(e,t){let n=null;return this.content().some(function(r){return e>=r.gridRow()&&e<r.gridRow()+r.gridRowSpan()&&t>=r.gridCol()&&t<r.gridCol()+r.gridColSpan()&&(n=r,!0)}),n}getWidgetCell(e){let t=null;return this.content().some(function(n){return n.widget().id()===e&&(t=n,!0)}),t}getContent(e){let t=null;return this.content().some(function(n){return n.widget().id()===e&&(t=n.widget(),!0)}),t}cellToGridItem(e){return{x:e.gridCol(),y:e.gridRow(),w:e.gridColSpan(),h:e.gridRowSpan(),id:e.id(),cell:e}}gridItemToCell(e){e.cell.gridCol(e.x).gridRow(e.y).gridColSpan(e.w).gridRowSpan(e.h)}resetItemsPos(){this.origItems.forEach(function(e){const t=this.itemsMap[e.id];t.x=e.x,t.y=e.y},this)}initGridList(){this.itemsMap={},this.items=this.content().map(function(e){const t=this.cellToGridItem(e);return this.itemsMap[t.id]=t,t},this),this.origItems=this.content().map(this.cellToGridItem),this.gridList=new vo(this.items,{direction:this.snapping(),lanes:"horizontal"===this.snapping()?this.snappingRows():this.snappingColumns()})}killGridList(){this.gridList=null,delete this.items,delete this.itemsMap}enter(e,t){super.enter(e,t),this._scrollBarWidth=A.getScrollbarWidth();const n=this;this._d3Drag=D().subject(function(e){const t=n.cellToGridItem(e);return{x:t.x*n.cellWidth,y:t.y*n.cellHeight}}).on("start",function(e){if(!n.designMode())return;R().sourceEvent.stopPropagation(),n.initGridList();const r=n.itemsMap[e.id()];n.dragItem=t.append("div").attr("class","dragging").style("transform",function(){return"translate("+r.x*n.cellWidth+"px, "+r.y*n.cellHeight+"px)"}).style("width",function(){return r.w*n.cellWidth-n.gutter()+"px"}).style("height",function(){return r.h*n.cellHeight-n.gutter()+"px"}),n.selectionBagClick(e)}).on("drag",function(e){if(!n.designMode())return;const t=R();t.sourceEvent.stopPropagation();const r=n.itemsMap[e.id()];t.x<0&&(t.x=0),t.x+r.w*n.cellWidth>n.snappingColumns()*n.cellWidth&&(t.x=n.snappingColumns()*n.cellWidth-r.w*n.cellWidth),t.y<0&&(t.y=0),t.y+r.h*n.cellWidth>n.snappingRows()*n.cellWidth&&(t.y=n.snappingRows()*n.cellWidth-r.h*n.cellWidth);const o=[Math.max(0,Math.floor((t.x+n.cellWidth/2)/n.cellWidth)),Math.max(0,Math.floor((t.y+n.cellHeight/2)/n.cellHeight))];r.x===o[0]&&r.y===o[1]||("none"!==n.snapping()?(n.resetItemsPos(),n.gridList.moveItemToPosition(r,o)):(r.x=o[0],r.y=o[1]),e.gridCol()===r.x&&e.gridRow()===r.y||(n.items.forEach(n.gridItemToCell),n.updateGrid(!1,100))),n.dragItem.style("transform",function(){return"translate("+t.x+"px, "+t.y+"px)"}).style("width",function(){return r.w*n.cellWidth+"px"}).style("height",function(){return r.h*n.cellHeight+"px"})}).on("end",function(){n.designMode()&&(R().sourceEvent.stopPropagation(),n.dragItem.remove(),n.dragItem=null,n.killGridList())}),this._d3DragResize=D().subject(function(e){const t=n.cellToGridItem(e);return{x:(t.x+t.w-1)*n.cellWidth,y:(t.y+t.h-1)*n.cellHeight}}).on("start",function(e){if(!n.designMode())return;R().sourceEvent.stopPropagation(),n.initGridList();const r=n.itemsMap[e.id()];n.dragItem=t.append("div").attr("class","resizing").style("transform",function(){return"translate("+r.x*n.cellWidth+"px, "+r.y*n.cellHeight+"px)"}).style("width",function(){return r.w*n.cellWidth-n.gutter()+"px"}).style("height",function(){return r.h*n.cellHeight-n.gutter()+"px"}),n.dragItemPos={x:r.x,y:r.y}}).on("drag",function(e){if(!n.designMode())return;const t=R();t.sourceEvent.stopPropagation();const r=n.itemsMap[e.id()],o=[Math.max(0,Math.round(t.x/n.cellWidth)),Math.max(0,Math.round(t.y/n.cellHeight))],i={w:Math.max(1,o[0]-r.x+1),h:Math.max(1,o[1]-r.y+1)};r.w===i.w&&r.h===i.h||("none"!==n.snapping()?(n.resetItemsPos(),n.gridList.resizeItem(r,i)):(r.w=i.w,r.h=i.h),e.gridColSpan()===r.w&&e.gridRowSpan()===r.h||(n.items.forEach(n.gridItemToCell),n.updateGrid(r.id,100))),n.dragItem.style("width",function(){return(1-r.x)*n.cellWidth+t.x-n.gutter()+"px"}).style("height",function(){return(1-r.y)*n.cellHeight+t.y-n.gutter()+"px"})}).on("end",function(){n.designMode()&&(R().sourceEvent.stopPropagation(),n.dragItem.remove(),n.dragItem=null,n.killGridList())})}updateGrid(e,t=0,n=!1){t=t||0;const r=this;this.divItems.classed("draggable",this.designMode()).transition().duration(t).style("left",function(e){return e.gridCol()*r.cellWidth+r.gutter()/2+"px"}).style("top",function(e){return e.gridRow()*r.cellHeight+r.gutter()/2+"px"}).style("width",function(e){return e.gridColSpan()*r.cellWidth-r.gutter()+"px"}).style("height",function(e){return e.gridRowSpan()*r.cellHeight-r.gutter()+"px"}).on("end",function(t){t.surfaceShadow_default(r.surfaceShadow()).surfacePadding_default(r.surfacePadding()).surfaceBorderWidth_default(r.surfaceBorderWidth()).surfaceBackgroundColor_default(r.surfaceBackgroundColor()),!0!==e&&e!==t.id()||t.resize().lazyRender()})}update(e,t){super.update(e,t),this._placeholderElement.style("overflow-x","width"===this.fitTo()?"hidden":null),this._placeholderElement.style("overflow-y","width"===this.fitTo()?"scroll":null);const n=this.getDimensions(),r=this.width()-("width"===this.fitTo()?this._scrollBarWidth:0);if(this.cellWidth=r/n.width,this.cellHeight="all"===this.fitTo()?this.height()/n.height:this.cellWidth,this.designMode()){const e=Math.min(this.width()/this.snappingColumns(),this.height()/this.snappingRows()),t=Math.floor(e);this.cellWidth=t,this.cellHeight=this.cellWidth}const o=this,i=t.selectAll("#"+this.id()+" > .ddCell").data(this.content(),function(e){return e.id()});this.divItems=i.enter().append("div").attr("class","ddCell").each(function(e){e.target(this),e.__grid_watch=e.monitor(function(t,n,r){!o._renderCount||"snapping"!==t&&0!==t.indexOf("grid")||n===r||o.gridList||(o.initGridList(),"none"!==o.snapping()&&o.gridList.resizeGrid("horizontal"===o.snapping()?o.snappingRows():o.snappingColumns()),o.items.forEach(o.gridItemToCell),o.updateGrid(e.id(),100),o.killGridList())}),E(this).append("div").attr("class","resizeHandle").call(o._d3DragResize).append("div").attr("class","resizeHandleDisplay")}).merge(i),this.divItems.each(function(e){const t=E(this);o.designMode()?t.call(o._d3Drag):t.on("mousedown.drag",null).on("touchstart.drag",null)}),this.divItems.select(".resizeHandle").style("display",this.designMode()?null:"none"),this.updateGrid(!0),i.exit().each(function(e){e.target(null),e.__grid_watch&&e.__grid_watch.remove()}).remove();const l=t.selectAll("#"+this.id()+" > .laneBackground").data(this.designMode()?[""]:[]);l.enter().insert("div",":first-child").attr("class","laneBackground").style("left","1px").style("top","1px").on("click",function(){o.selectionBagClear()}).merge(l).style("width",this.snappingColumns()*this.cellWidth+"px").style("height",this.snappingRows()*this.cellHeight+"px"),l.exit().each(function(){o.selectionBagClear()}).remove();const a=t.selectAll("#"+this.id()+" > .lane").data(this.designMode()?[""]:[]);a.enter().append("div").attr("class","lane").style("left","1px").style("top","1px"),a.style("display",this.showLanes()?null:"none").style("width",this.snappingColumns()*this.cellWidth+"px").style("height",this.snappingRows()*this.cellHeight+"px").style("background-image","linear-gradient(to right, grey 1px, transparent 1px), linear-gradient(to bottom, grey 1px, transparent 1px)").style("background-size",this.cellWidth+"px "+this.cellHeight+"px"),a.exit().remove()}exit(e,t){this.content().forEach(e=>e.target(null)),super.exit(e,t)}_createSelectionObject(e){return{_id:e._id,element:/* @__PURE__ */Zn(()=>e._element,"element"),widget:e}}selection(e){return arguments.length?(this._selectionBag.set(e.map(function(e){return this._createSelectionObject(e)},this)),this):this._selectionBag.get().map(function(e){return e._id})}selectionBagClear(){this._selectionBag.isEmpty()||(this._selectionBag.clear(),this.postSelectionChange())}selectionBagClick(e){if(null!==e){const t=this._createSelectionObject(e);if(R().sourceEvent.ctrlKey)this._selectionBag.isSelected(t)?(this._selectionBag.remove(t),this.postSelectionChange()):(this._selectionBag.append(t),this.postSelectionChange());else{const e=this._selectionBag.get();1===e.length&&e[0]._id===t._id?this.selectionBagClear():this._selectionBag.set([t]),this.postSelectionChange()}}}postSelectionChange(){}applyLayout(e){this.divItems.each((t,n)=>{if(e[n]){const[r,o,i,l]=e[n];t.gridCol(r).gridRow(o).gridColSpan(i).gridRowSpan(l)}}),this.updateGrid(!0)}vizActivation(e){}},"_Grid"),f);Zn(wo,"Grid");let _o=wo;_o.prototype._class+=" layout_Grid",_o.prototype.publish("designMode",!1,"boolean","Design Mode",null,{tags:["Basic"]}),_o.prototype.publish("showLanes",!0,"boolean","Show snapping lanes when in design mode",null,{tags:["Basic"],disable:/* @__PURE__ */Zn(e=>!e.designMode(),"disable")}),_o.prototype.publish("fitTo","all","set","Sizing Strategy",["all","width"],{tags:["Basic"]}),_o.prototype.publish("snapping","vertical","set","Snapping Strategy",["vertical","horizontal","none"]),_o.prototype.publish("snappingColumns",12,"number","Snapping Columns"),_o.prototype.publish("snappingRows",16,"number","Snapping Rows"),_o.prototype.publish("gutter",6,"number","Gap Between Widgets",null,{tags:["Basic"]}),_o.prototype.publish("surfaceShadow",!0,"boolean","3D Shadow"),_o.prototype.publish("surfacePadding",null,"string","Cell Padding (px)",null,{tags:["Intermediate"]}),_o.prototype.publish("surfaceBorderWidth",1,"number","Width (px) of Cell Border",null,{tags:["Intermediate"]}),_o.prototype.publish("surfaceBackgroundColor",null,"html-color","Surface Background Color",null,{tags:["Advanced"]}),_o.prototype.publish("content",[],"widgetArray","widgets",null,{tags:["Basic"],render:!1});const xo=(x(g=class extends co{constructor(){super(),this.orientation_default("horizontal"),this.flexWrap_default("nowrap")}},"_HorizontalList"),g);Zn(xo,"HorizontalList"),xo.prototype._class+=" layout_HorizontalList";const Co=(x(m=class extends C{_contentContainer;_widgetPlacements;_widgetRatios;constructor(){super(),this._tag="div",this._widgetPlacements=[],this._widgetRatios=[]}addLayer(e,t="default",n=1,r=1){const o=this.widgets();return o.push(e||(new N).text("No widget defined for layer.")),this.widgets(o),this._widgetPlacements.push(t),this._widgetRatios.push([n,r]),this}enter(e,t){super.enter(e,t),this._contentContainer=t.append("div").attr("class","container")}update(e,t){super.update(e,t);const n=this;t.style("padding",this.surfacePadding()+"px");const r=this._contentContainer.selectAll(".content.id"+this.id()).data(this.widgets(),function(e){return e.id()});r.enter().append("div").attr("class","content id"+this.id()).each(function(e,t){e.target(this)}).merge(r).each(function(e,t){const r={width:n.clientWidth(),height:n.clientHeight()},o=n.widgetSize(t,r),i=n.widgetPosition(t,r,o);this.style.top=i.y+"px",this.style.left=i.x+"px",e.resize(o).render()}),r.exit().each(function(e,t){e.target(null)}).remove(),r.order()}widgetSize(e,t){return this._widgetPlacements[e],{width:t.width*this._widgetRatios[e][0],height:t.height*this._widgetRatios[e][1]}}widgetPosition(e,t,n){switch(this._widgetPlacements[e]){default:return{x:0,y:0};case"top":return{x:t.width/2-n.width/2,y:0};case"bottom":return{x:t.width/2-n.width/2,y:t.height-n.height};case"left":return{x:0,y:t.height/2-n.height/2};case"right":return{x:t.width-n.width,y:t.height/2-n.height/2};case"center":return{x:t.width/2-n.width/2,y:t.height/2-n.height/2}}}},"_Layered"),m);Zn(Co,"Layered");let So=Co;So.prototype._class+=" layout_Layered",So.prototype.publish("surfacePadding",0,"number","Padding"),So.prototype.publish("widgets",[],"widgetArray","widgets",null,{tags:["Private"]});const ko=(x(y=class extends C{_surfaceButtons;_originalPosition;constructor(){super(),this._tag="div",this._surfaceButtons=[]}updateState(e){e=e||!this.popupState(),this.popupState(e).render()}enter(e,t){super.enter(e,t),this.widget().target(e),this._originalPosition=this.position()}update(e,t){super.update(e,t),t.style("visibility",this.popupState()?null:"hidden").style("opacity",this.popupState()?null:0).style("width",this.shrinkWrap()?this.widget().width()+"px":this._size.width+"px").style("height",this.shrinkWrap()?this.widget().height()+"px":this._size.height+"px"),0===this.widget().size().height&&this.widget().resize(this.size())}postUpdate(e,t){let n,r;switch(this.centerPopup()){case"container":this._placeholderElement&&(n=parseInt(this._placeholderElement.style("width"))/2-this.widget().width()/2,r=parseInt(this._placeholderElement.style("height"))/2-this.widget().height()/2),this.position("absolute");break;case"window":n=window.innerWidth/2-this.widget().width()/2,r=window.innerHeight/2-this.widget().height()/2,this.position("fixed");break;default:n=0,r=0,this.position(this._originalPosition)}this.pos({x:n,y:r}),super.postUpdate(e,t),t.style("position",this.position()).style("left",this.left()+"px").style("right",this.right()+"px").style("top",this.top()+"px").style("bottom",this.bottom()+"px")}exit(e,t){this.widget()&&this.widget().target(null),super.exit(e,t)}click(e){}},"_Popup"),y);Zn(ko,"Popup");let To=ko;To.prototype._class+=" layout_Popup",To.prototype.publish("popupState",!1,"boolean","State of the popup, visible (true) or hidden (false)",null,{}),To.prototype.publish("shrinkWrap",!1,"boolean","The popup parent container either shrinks to the size of its contents (true) or expands to fit thge popup's parentDiv (false)",null,{}),To.prototype.publish("centerPopup","none","set","Center the widget in its container element (target) or in the window",["none","container","window"],{}),To.prototype.publish("top",null,"number","Top position property of popup",null,{}),To.prototype.publish("bottom",null,"number","Bottom position property of popup",null,{}),To.prototype.publish("left",null,"number","Left position property of popup",null,{}),To.prototype.publish("right",null,"number","Right position property of popup",null,{}),To.prototype.publish("position","relative","set","Value of the 'position' property",["absolute","relative","fixed","static","initial","inherit"],{tags:["Private"]}),To.prototype.publish("widget",null,"widget","Widget",null,{tags:["Private"]});const Po=(x(b=class extends C{_tabContainer;_contentContainer;constructor(){super(),this._tag="div"}clearTabs(){return this.labels([]),this.widgets([]),this}addTab(e,t,n,r){const o=e.size();0===o.width&&0===o.height&&e.size({width:"100%",height:"100%"});const i=this.labels(),l=this.widgets();n&&this.activeTabIdx(this.widgets().length),i.push(t);const a=(new lr).widget(e||(new N).text("No widget defined for tab"));return l.push(a),this.labels(i),this.widgets(l),r&&r(a),this}widgetSize(e){const t=this.clientWidth();let n=this.clientHeight();const r=this._tabContainer.node().getBoundingClientRect();return void 0!==r.height&&(n-=r.height),{width:t,height:n}}enter(e,t){super.enter(e,t),this._tabContainer=t.append("div"),this._contentContainer=t.append("div")}update(e,t){super.update(e,t);const n=this;t.style("padding",this.surfacePadding_exists()?this.surfacePadding()+"px":null);const r=this._tabContainer.selectAll(".tab-button.id"+this.id()).data(this.showTabs()?this.labels():[],function(e){return e});r.enter().append("span").attr("class","tab-button id"+this.id()).style("cursor","pointer").on("click",function(e,t){n.click(n.widgets()[t].widget(),e,t),n.activeTabIdx(t).render()}).merge(r).classed("active",function(e,t){return n.activeTabIdx()===t}).text(function(e){return e}),r.exit().remove();const o=this._contentContainer.selectAll(".tab-content.id"+this.id()).data(this.widgets(),function(e){return e.id()});o.enter().append("div").attr("class","tab-content id"+this.id()).each(function(e,t){e.target(this)}).merge(o).classed("active",function(e,t){return n.activeTabIdx()===t}).style("display",function(e,t){return n.activeTabIdx()===t?"block":"none"}).each(function(e,t){if(e.visible(n.activeTabIdx()===t),n.activeTabIdx()===t){const t=n.widgetSize(E(this));e.surfaceBorderWidth(n.showTabs()?null:0).surfacePadding(n.showTabs()?null:0).resize(t)}}),o.exit().each(function(e,t){e.target(null)}).remove(),"bottom"===this.tabLocation()?(this._tabContainer.attr("class","on_bottom").style("top",this._contentContainer.node().offsetHeight+this.surfacePadding()+"px").style("position","absolute"),this._contentContainer.style("top",this.surfacePadding_exists()?this.surfacePadding()+"px":null).style("position","absolute")):(this._tabContainer.attr("class","on_top").style("top",null).style("position","relative"),this._contentContainer.style("top",this._tabContainer.node().offsetHeight+this.surfacePadding()+"px").style("position","absolute"))}click(e,t,n){}},"_Tabbed"),b);Zn(Po,"Tabbed");let Eo=Po;Eo.prototype._class+=" layout_Tabbed",Eo.prototype.publish("showTabs",!0,"boolean","Show Tabs",null,{}),Eo.prototype.publish("surfacePadding",4,"number","Padding"),Eo.prototype.publish("activeTabIdx",0,"number","Index of active tab",null,{}),Eo.prototype.publish("labels",[],"array","Array of tab labels sharing an index with ",null,{tags:["Private"]}),Eo.prototype.publish("tabLocation","top","set","Position the tabs at the bottom of the widget",["top","bottom"],{tags:["Private"]}),Eo.prototype.publish("widgets",[],"widgetArray","widgets",null,{tags:["Private"]});const zo=(x(v=class extends C{constructor(){super(),this._tag="div"}enter(e,t){super.enter(e,t)}update(e,t){super.update(e,t);const n=this;t.attr("title",n.title()).style("background-color",this.backgroundColor());const r=t.selectAll("div.toolbar-title").data(this.title()?[this.title()]:[]);r.enter().append("div").classed("toolbar-title",!0).append("span"),r.selectAll("div.toolbar-title > span").style("font-size",this.fontSize_exists()?this.fontSize()+"px":null).style("color",this.fontColor_exists()?this.fontColor():null).style("font-family",this.fontFamily_exists()?this.fontFamily():null).style("font-weight",this.fontBold_exists()?this.fontBold()?"bold":"normal":null).style("background-color",this.backgroundColor_exists()?this.backgroundColor():null).text(n.title()),r.exit().remove();const o=t.selectAll("div.toolbar-child").data(null!==this.widgets()?this.widgets():[],function(e){return e.id()});o.enter().insert("div","div.toolbar-title").each(function(e,t){const r=n.widgetClasses()[t]?n.widgetClasses()[t]+" toolbar-child":"toolbar-child";E(this).classed(r,!0),e.target(this)}),o.exit().each(function(e){e.target(null)}).remove(),o.order()}render(e){const t=this;return super.render(function(n){const r=t.element().node().getBoundingClientRect();let o=r.left+r.width;t.element().selectAll("div.toolbar-child").each(function(e,t){const n=this.getBoundingClientRect();o>n.left&&(o=n.left)}),t.element().select(".toolbar-title").style("width",o-r.left-4+"px"),e&&e(n)})}exit(e,t){this.widgets().forEach(function(e){e.target(null)}),super.exit(e,t)}},"_Toolbar"),v);Zn(zo,"Toolbar");let Io=zo;Io.prototype._class+=" layout_Toolbar",Io.prototype.publish("title","","string","Title",null,{tags:["Intermediate"]}),Io.prototype.publish("fontSize",null,"number","Title Font Size (px)",null,{tags:["Advanced"],optional:!0}),Io.prototype.publish("fontColor",null,"html-color","Title Font Color",null,{tags:["Advanced"],optional:!0}),Io.prototype.publish("fontFamily",null,"string","Title Font Family",null,{tags:["Advanced"],optional:!0}),Io.prototype.publish("fontBold",!0,"boolean","Enable Bold Title Font",null,{tags:["Advanced"],optional:!0}),Io.prototype.publish("backgroundColor",null,"html-color","Background Color",null,{tags:["Intermediate"],optional:!0}),Io.prototype.publish("responsive",!0,"boolean","Adapts to pixel width",null,{tags:["Basic"]}),Io.prototype.publish("widgets",[],"widgetArray","Child widgets of the toolbar",null,{tags:["Basic"]}),Io.prototype.publish("widgetClasses",[],"array","Array of Html Element classes to be assigned to the child widgets (shares index with widgets param)",null,{tags:["Basic"]});const Ro=(x(w=class extends co{constructor(){super(),this.orientation_default("vertical"),this.flexWrap_default("nowrap")}},"_VerticalList"),w);function Ao(e){return new Promise(function(t,n){const r=I.parseClassID(e);require&&require([r.package],function(e){let n=null;e&&e[r.widgetID]&&(n=e[r.widgetID]),t(r.memberWidgetID?n.prototype?n.prototype[r.memberWidgetID]:n[r.memberWidgetID]:n)})})}function Do(e){return Promise.all(e.map(Ao))}Zn(Ro,"VerticalList"),Ro.prototype._class+=" layout_VerticalList",function(){try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.layout_AbsoluteSurface{pointer-events:none!important}.layout_AbsoluteSurface>.placeholder{position:relative;overflow:hidden;pointer-events:all}.layout_Accordion>ul{position:relative}.layout_Accordion.open>span{font-style:italic}.layout_Accordion.closed>ul{height:0px;overflow:hidden}.layout_Accordion.open>ul{display:block}.layout_Accordion>.collapsible-icon,.layout_Accordion>.collapsible-title{cursor:pointer;box-sizing:border-box}.layout_Accordion>.collapsible-title{display:block;width:100%}.layout_Accordion>.collapsible-title{font-size:13px;color:#fff;padding:4px 8px;height:26px;-webkit-box-shadow:inset 0px -1px 1px 0px rgba(0,0,0,.2);-moz-box-shadow:inset 0px -1px 1px 0px rgba(0,0,0,.2);box-shadow:inset 0 -1px 1px #0003}.layout_Accordion li{background-color:#fff}.layout_Accordion>ul,.layout_Accordion>.collapsible-title{background-color:#333}.layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion>.collapsible-title{background-color:#555}.layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#777}.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#999}.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#bbb}.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#ccc}.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#ddd}.layout_Accordion>ul,.layout_Accordion>span{padding-left:0}.layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion>span{padding-left:12px}.layout_Accordion>.collapsible-title:before{padding:4px 8px;position:absolute;left:0;top:0}.layout_Accordion>.collapsible-icon{position:absolute;top:0;right:0;width:24px;height:24px;color:#fff}.layout_Surface{box-sizing:border-box;margin:0;border:1px solid #e5e5e5;overflow:hidden;height:100%;width:100%}.layout_Surface.shadow2{box-shadow:0 2px 2px #00000024,0 3px 1px -2px #0003,0 1px 5px #0000001f}.layout_Surface>h3{margin:0;padding:2px;background-color:#e5e5e5}.layout_Surface .html-button-container{position:absolute;right:0;top:3px}.layout_Surface>div{padding:8px}.layout_Surface .html-button-container .surface-button{margin-right:5px}.layout_Surface .html-button-container .surface-button i{opacity:.8}.layout_Surface .html-button-container .surface-button:hover{opacity:1}.layout_Surface .html-button-container .surface-button:active{opacity:.5}div[draggable=true].hideDragCellContent.content-icon:before{content:"";font-family:FontAwesome;position:absolute;top:calc(50% - 74px);left:calc(50% - 56px);font-size:100px}div[draggable=true].hideDragCellContent.content-icon-Line:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Pie:before{top:calc(50% - 72px);left:calc(50% - 45px);content:""}div[draggable=true].hideDragCellContent.content-icon-Area:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Gauge:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Table:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Form:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Grid:before,div[draggable=true].hideDragCellContent.content-icon-Graph:before,div[draggable=true].hideDragCellContent.content-icon-Border:before,div[draggable=true].hideDragCellContent.content-icon-Tabbed:before,div[draggable=true].hideDragCellContent.content-icon-Accordion:before,div[draggable=true].hideDragCellContent.content-icon-MultiChart:before,div[draggable=true].hideDragCellContent.content-icon-MultiChartSurface:before{content:""}div[draggable=true].hideDragCellContent.content-icon-ChoroplethStates:before,div[draggable=true].hideDragCellContent.content-icon-ChoroplethStatesHeat:before,div[draggable=true].hideDragCellContent.content-icon-ChoroplethCounties:before,div[draggable=true].hideDragCellContent.content-icon-ChoroplethCountries:before,div[draggable=true].hideDragCellContent.content-icon-GMap:before,div[draggable=true].hideDragCellContent.content-icon-GMapHeat:before,div[draggable=true].hideDragCellContent.content-icon-GMapGraph:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Text:before,div[draggable=true].hideDragCellContent.content-icon-TextBox:before,div[draggable=true].hideDragCellContent.content-icon-FAChar:before{content:""}.layout_Cell .update-indicator{box-sizing:border-box;position:absolute;top:0;left:0;padding:0;z-index:1000;border-width:0px;border-style:solid;pointer-events:none}.layout_Border{width:100%;height:100%}.layout_Border>.border-content{width:100%;height:100%;position:relative}.layout_Border>.borderHandle{width:6px;height:6px;background-color:#444;opacity:.3;position:absolute;visibility:hidden}.layout_Border.design-mode>.borderHandle{visibility:visible}.layout_Border>.borderHandle:hover{background-color:#666}.layout_Border>.borderHandle.borderHandleDisabled{display:none}.layout_Border>.borderHandle_top,.layout_Border>.borderHandle_bottom{cursor:ns-resize}.layout_Border>.borderHandle_left,.layout_Border>.borderHandle_right{cursor:ew-resize}.layout_Border .cell{border-radius:5px;border:1px solid #e5e5e5;display:inline-block;overflow:hidden}.layout_Border .cell h2{margin:0;padding-top:4px;-webkit-margin:0px;text-align:center}.layout_Border .layout_BorderCell.over{border:2px dashed #000}.layout_Border .dragItem{z-index:-1;opacity:.33}.layout_Border .notDragItem{z-index:-1;opacity:1}.layout_Border div[draggable=true]{opacity:.75;cursor:default}.layout_Border div[draggable=true] .dragHandle{opacity:1}.layout_Border div[draggable=true] .dragHandle_n,.layout_Border div[draggable=true] .dragHandle_e,.layout_Border div[draggable=true] .dragHandle_s,.layout_Border div[draggable=true] .dragHandle_w{background-color:#aaa}.layout_Border div[draggable=true] .dragHandle_nw,.layout_Border div[draggable=true] .dragHandle_ne,.layout_Border div[draggable=true] .dragHandle_se,.layout_Border div[draggable=true] .dragHandle_sw{background-color:#333}.layout_Border div[draggable=true] .dragHandle_nw{cursor:nw-resize}.layout_Border div[draggable=true] .dragHandle_n{cursor:n-resize}.layout_Border div[draggable=true] .dragHandle_ne{cursor:ne-resize}.layout_Border div[draggable=true] .dragHandle_e{cursor:e-resize}.layout_Border div[draggable=true] .dragHandle_se{cursor:se-resize}.layout_Border div[draggable=true] .dragHandle_s{cursor:s-resize}.layout_Border div[draggable=true] .dragHandle_sw{cursor:sw-resize}.layout_Border div[draggable=true] .dragHandle_w{cursor:w-resize}.layout_Border div[draggable=false]>div>.dragHandle{display:none}.layout_Border .grid-drop-target{position:fixed;box-sizing:border-box;border:2px dashed #7f8c8d;border-radius:0;background:repeating-linear-gradient(-45deg,#0000,#0000 4px,#6464641a 4px 8px)}.layout_Border .grid-drop-target.drop-target-over{border:2px dashed #179BD7;background:repeating-linear-gradient(-45deg,#0000,#0000 6px,#119bd71a 6px 12px)}.layout_Border2{display:flex;flex-direction:column}.layout_Border2>.body{margin:0;padding:0;display:flex;flex-flow:row}.layout_Border2>.body>.center{flex:1}.layout_Border2>.header{display:block}.layout_Border2>.footer{display:block}.layout_Carousel>div{position:relative;overflow:hidden}.layout_Carousel>div>.carouselItem{position:absolute}.layout_Modal-header{background-color:#3f51b5;overflow:hidden}.layout_Modal-body{background-color:#fff;overflow-y:scroll;overflow-x:hidden}.layout_Modal-title,.layout_Modal-annotations{position:absolute}.layout_Modal-closeButton{cursor:pointer}.layout_Modal-closeButton:hover{opacity:.7}.layout_Modal-closeButton:active{opacity:.5}.layout_Modal-fade{position:fixed;background-color:#000;opacity:.5;z-index:10000}.layout_Modal-content{position:fixed;background-color:#fff;z-index:10100}.layout_Modal-fade-hidden{display:none}.layout_Modal-fadeClickable{cursor:pointer}.layout_ChartPanel .series.highlight{stroke-width:2px;opacity:1}.layout_ChartPanel .series.lowlight{opacity:.3!important}.layout_FlexGrid{display:flex}.FlexGrid-list-item{overflow:hidden;border-style:solid;flex-grow:1}.layout_Grid>.ddCell{position:absolute}.layout_Grid>.laneBackground{position:absolute;border-style:solid;border-width:1px;background:#f5f5f5}.layout_Grid>.lane{position:absolute;border-style:none;opacity:.25;border-radius:0;pointer-events:none}.layout_Grid>.ddCell.draggable{border-style:solid;border-width:1px;background-color:#f8f8ff;border-radius:0;cursor:move}.layout_Grid>.ddCell.draggable>.resizeHandle{bottom:0;right:0;width:8px;height:8px;border-style:none;position:absolute;cursor:nwse-resize}.layout_Grid>.ddCell.draggable .resizeHandleDisplay{bottom:2px;right:2px;width:4px;height:4px;border-style:solid;border-left-width:0px;border-top-width:0px;border-right-width:2px;border-bottom-width:2px;border-color:#a9a9a9;background-color:none;position:absolute}.layout_Grid>.ddCell.draggable .resizeHandleDisplay:hover{border-color:orange}.layout_Grid>.dragging{border-style:solid;border-width:1px;border-color:gray;border-radius:0;position:absolute;background:repeating-linear-gradient(-45deg,#0000,#0000 4px,#6464641a 4px 8px)}.layout_Grid>.resizing{border-style:solid;border-width:1px;border-color:gray;background-color:orange;border-radius:0;position:absolute;opacity:.3;background:repeating-linear-gradient(-45deg,#0000,#0000 4px,orange 4px 8px)}.layout_Grid>.ddCell.draggable .common_Widget.selected{border-style:solid;border-width:1px;border-color:red;background-color:gray;border-radius:0;position:absolute;background:repeating-linear-gradient(-45deg,#0000,#0000 4px,#6400001a 4px 8px)}.layout_Grid #drag-me:before{content:"#" attr(id);font-weight:700}.layout_Layered{pointer-events:none}.layout_Layered>.container>.content{position:absolute}.layout_Layered>.container>.content>div>.common_Widget,.layout_Layered>.container>.content>div>svg>.common_Widget{pointer-events:all}.layout_Tabbed .tab-button{position:relative;top:1px;display:inline-block;border-left:1px solid #ddd;border-top:1px solid #ddd;border-right:1px solid #ddd;background-color:transparent;margin-right:4px;padding:2px 2px 4px;background-color:#ccc}.layout_Tabbed .tab-button.active{background-color:#fff;z-index:999}.layout_Tabbed .on_bottom .tab-button{border-bottom:1px solid #ddd;border-top:none;top:-1px}.layout_Toolbar{height:100%;background-color:#ddd;white-space:nowrap;overflow:hidden}.layout_Toolbar .toolbar-title{display:inline-block;position:relative;top:50%;transform:translateY(-50%);-ms-transform:translateY(-50%);margin-left:4px;font-weight:700;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.layout_Toolbar .toolbar-child{position:relative;top:50%;transform:translateY(-50%);-ms-transform:translateY(-50%);float:right;margin-left:4px;margin-right:4px;line-height:16px}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}(),x(Ao,"requireWidget"),x(Do,"requireWidgets");const Fo=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,requireWidget:Ao,requireWidgets:Do},Symbol.toStringTag,{value:"Module"})),Lo=class _MultiChart extends C{_allCharts={};_chartTypeDefaults;_chartTypeProperties;_chartMonitor;_switchingTo;constructor(){super(),Z.call(this),ee.call(this),this._tag="div",this._allCharts={},this._allChartTypes.forEach(function(e){const t=JSON.parse(JSON.stringify(e));t.widget=null,this._allCharts[e.id]=t,this._allCharts[e.display]=t,this._allCharts[e.widgetClass]=t},this),this._chartTypeDefaults={},this._chartTypeProperties={}}fields(e){const t=super.fields.apply(this,arguments);if(this.chart()){if(!arguments.length)return this.chart().fields();this.chart().fields(e)}return t}columns(e,t){const n=C.prototype.columns.apply(this,arguments);if(this.chart()){if(!arguments.length)return this.chart().columns();this.chart().columns(e,t)}return n}data(e){const t=C.prototype.data.apply(this,arguments);if(this.chart()){if(!arguments.length)return this.chart().data();this.chart().data(e)}return t}hasOverlay(){return this.chart()&&this.chart().hasOverlay()}visible(e){return arguments.length?(this.chart()&&this.chart().visible(e),this):this.chart()&&this.chart().visible()}chartTypeDefaults(e){return arguments.length?(this._chartTypeDefaults=e,this):this._chartTypeDefaults}chartTypeProperties(e){return arguments.length?(this._chartTypeProperties=e,this):this._chartTypeProperties}getChartDataFamily(){return this._allCharts[this.chartType()].family}requireContent(e,t){const n=I.parseClassID(this._allCharts[e].widgetClass);switch(n.package){case"@hpcc-js/chart":import("@hpcc-js/chart").then(e=>{t(new e[n.widgetID])});break;case"@hpcc-js/dgrid":import("@hpcc-js/dgrid").then(e=>{t(new e[n.widgetID])});break;default:Ao(this._allCharts[e].widgetClass).then(function(e){t(new e)})}}switchChart(e){if(this._switchingTo===this.chartType())return void(e&&e(this));this._switchingTo&&console.warn("Attempting switch to: "+this.chartType()+", before previous switch is complete ("+this._switchingTo+")"),this._switchingTo=this.chartType();const t=this.chart(),n=this;this.requireContent(this.chartType(),function(r){if(r!==t){const e=n.size();r.fields(n.fields()).data(n.data()).size(e),n.chart(r),t&&t.size({width:1,height:1}).render()}delete n._switchingTo,e&&e(this)})}update(e,t){super.update(e,t);const n=t.selectAll(".multiChart").data(this.chart()?[this.chart()]:[],function(e){return e._id});n.enter().append("div").attr("class","multiChart").each(function(e){e.target(this)});const r=this.chart();if(r){for(const e in this._chartTypeDefaults)if(r[e+"_default"])try{r[e+"_default"](this._chartTypeDefaults[e])}catch(i){console.warn("Exception Setting Default: "+e)}else console.warn("Unknown Default: "+e);this._chartTypeDefaults={};for(const e in this._chartTypeProperties)if(r[e])try{r[e](this._chartTypeProperties[e])}catch(i){console.warn("Exception Setting Property: "+e)}else console.warn("Unknown Property: "+e);this._chartTypeProperties={}}const o=this;n.each(function(e){e.resize(o.size())}),n.exit().transition().each(function(e){e.target(null)}).remove()}exit(e,t){this._chartMonitor&&(this._chartMonitor.remove(),delete this._chartMonitor),this.chart()&&this.chart().target(null),super.exit(e,t)}render(e){if(this.chartType()&&(!this.chart()||this.chart().classID()!==this._allCharts[this.chartType()].widgetClass)){const e=this,t=arguments;return this.switchChart(function(){C.prototype.render.apply(e,t)}),this}return C.prototype.render.apply(this,arguments)}};x(Lo,"MultiChart");let Oo=Lo;Oo.prototype._class+=" composite_MultiChart",Oo.prototype.implements(Z.prototype),Oo.prototype.implements(ee.prototype),Oo.prototype._otherChartTypes=[{id:"FORM",display:"Form",widgetClass:"form_FieldForm"}].map(function(e){return e.family="other",e}),Oo.prototype._graphChartTypes=[{id:"GRAPH",display:"Graph",widgetClass:"graph_Graph"},{id:"ADJACENCY_GRAPH",display:"Graph",widgetClass:"graph_AdjacencyGraph"},{id:"GRAPHC",display:"GraphC",widgetClass:"graph_GraphC"}].map(function(e){return e.family="GRAPH",e}),Oo.prototype._1DChartTypes=[].map(function(e){return e.family="1D",e}),Oo.prototype._2DChartTypes=[{id:"SUMMARY",display:"Summary",widgetClass:"chart_Summary"},{id:"BUBBLE",display:"Bubble",widgetClass:"chart_Bubble"},{id:"PIE",display:"Pie",widgetClass:"chart_Pie"},{id:"WORD_CLOUD",display:"Word Cloud",widgetClass:"other_WordCloud"}].map(function(e){return e.family="2D",e}),Oo.prototype._NDChartTypes=[{id:"COLUMN",display:"Column",widgetClass:"chart_Column"},{id:"BAR",display:"Bar",widgetClass:"chart_Bar"},{id:"LINE",display:"Line",widgetClass:"chart_Line"},{id:"AREA",display:"Area",widgetClass:"chart_Area"},{id:"STEP",display:"Step",widgetClass:"chart_Step"},{id:"SCATTER",display:"Scatter",widgetClass:"chart_Scatter"},{id:"HEXBIN",display:"Hex Bin",widgetClass:"chart_HexBin"}].map(function(e){return e.family="ND",e}),Oo.prototype._mapChartTypes=[{id:"CHORO_USSTATES",display:"US State Choropleth",widgetClass:"map_ChoroplethStates"},{id:"CHORO_USCOUNTIES",display:"US County Choropleth",widgetClass:"map_ChoroplethCounties"},{id:"CHORO_COUNTRIES",display:"Country Choropleth",widgetClass:"map_ChoroplethCountries"},{id:"GMAP_CHORO_USCOUNTIES",display:"Google Map US County Choropleth",widgetClass:"map_GMapCounties"},{id:"GOOGLE_MAP",display:"Google Map",widgetClass:"map_GMapLayered"},{id:"OPENSTREET",display:"Open Street Map",widgetClass:"map_OpenStreet"}].map(function(e){return e.family="map",e}),Oo.prototype._anyChartTypes=[{id:"TABLE",display:"Table",widgetClass:"dgrid_Table"},{id:"TABLE_LEGACY",display:"Table (legacy)",widgetClass:"other_Table"},{id:"TABLE_NESTED",display:"Nested Table",widgetClass:"other_NestedTable"},{id:"TABLE_CALENDAR",display:"Table driven Calendar Heat Map",widgetClass:"other_CalendarHeatMap"},{id:"TABLE_BULLET",display:"Table driven bullet chart",widgetClass:"chart_Bullet"},{id:"TABLE_SELECT",display:"Table driven select",widgetClass:"other_Select"},{id:"TABLE_AUTOCOMPLETE",display:"Table driven auto complete",widgetClass:"other_AutoCompleteText"},{id:"TABLE_OPPORTUNITY",display:"Table driven opportunity widget",widgetClass:"graph_Opportunity"},{id:"TABLE_TREE",display:"Table driven tree",widgetClass:"tree_Dendrogram"},{id:"TABLE_TREEMAP",display:"Table driven Treemap",widgetClass:"tree_Treemap"},{id:"TABLE_SANKEY",display:"Table driven Sankey",widgetClass:"graph_Sankey"},{id:"TABLE_GMAP_PIN",display:"Table driven Google Map (pins)",widgetClass:"map_GMapPin"},{id:"TABLE_GMAP_PINLINE",display:"Table driven Google Map (pins/lines)",widgetClass:"map_GMapPinLine"},{id:"TABLE_XML_TREE",display:"Table driven XML Tree",widgetClass:"tree_Indented"}].map(function(e){return e.family="any",e}),Oo.prototype._allChartTypes=Oo.prototype._otherChartTypes.concat(Oo.prototype._graphChartTypes.concat(Oo.prototype._1DChartTypes.concat(Oo.prototype._2DChartTypes.concat(Oo.prototype._NDChartTypes.concat(Oo.prototype._mapChartTypes.concat(Oo.prototype._anyChartTypes)))))),Oo.prototype._allMap=Q(Oo.prototype._allChartTypes,function(e){return e.family}),Oo.prototype._allFamilies=Oo.prototype._allMap.keys(),Oo.prototype._allChartTypesMap={},Oo.prototype._allChartTypesByClass={},Oo.prototype._allChartTypes.forEach(function(e){e.widgetPath=I.widgetPath(e.widgetClass),Oo.prototype._allChartTypesMap[e.id]=e,Oo.prototype._allChartTypesByClass[e.widgetClass]=e}),Oo.prototype.publishReset(),Oo.prototype.publish("hideRowOnLegendClick",!1,"boolean","Enable/Disable hiding row on legend clicks",null,{tags:["Basic"]}),Oo.prototype.publish("chartType","BUBBLE","set","Chart Type",Oo.prototype._allChartTypes.map(function(e){return e.id}),{tags:["Basic"]}),Oo.prototype.publish("chart",null,"widget","Chart",null,{tags:["Basic"]});const Mo=Oo.prototype.chart;Oo.prototype.chart=function(e){const t=Mo.apply(this,arguments);if(arguments.length){const t=this;this._allChartTypesByClass[e.classID()]?this.chartType(this._allChartTypesByClass[e.classID()].id):console.warn("Unknown Class ID: "+e.classID()),e.click=function(e,n,r){t.click.apply(t,arguments)},e.dblclick=function(e,n,r){t.dblclick.apply(t,arguments)},e.vertex_click=function(e,n,r,o){t.vertex_click.apply(t,arguments)},e.vertex_dblclick=function(e,n,r,o){t.vertex_dblclick.apply(t,arguments)},e.edge_click=function(e,n,r,o){t.edge_click.apply(t,arguments)},e.edge_dblclick=function(e,n,r,o){t.edge_dblclick.apply(t,arguments)},this._chartMonitor&&(this._chartMonitor.remove(),delete this._chartMonitor),this._chartMonitor=e.monitor(function(n,r,o){t.broadcast(n,r,o,e)})}return t};const Bo=class _Summary extends C{constructor(){super()}enter(e,t){super.enter(e,t),t.append("p")}update(e,t){super.update(e,t),t.select("p").text(this.text())}};x(Bo,"Summary"),Bo.prototype.publish("text","","string");const Ho=class _MultiChartPanel extends so{constructor(){super(),this.widget((new Oo).chartType("COLUMN"))}multiChart(){return this._widget}chartType(e){return arguments.length?(this._widget.chartType(e),this):this._widget.chartType()}chart(e){return arguments.length?(this._widget.chart(e),this):this._widget.chart()}chartTypeDefaults(e){return arguments.length?(this._widget.chartTypeDefaults(e),this):this._widget.chartTypeDefaults()}chartTypeProperties(e){return arguments.length?(this._widget.chartTypeProperties(e),this):this._widget.chartTypeProperties()}update(e,t){super.update(e,t),this._widget instanceof Oo&&this._legend.dataFamily(this._widget.getChartDataFamily()),super.update(e,t)}};x(Ho,"MultiChartPanel");let No=Ho;No.prototype._class+=" composite_MultiChartPanel";const Wo=class _Dermatology extends cr{_toolbar;_propEditor;_showProperties;_propsButton;_prevWidget;constructor(){super(),this._toolbar=(new Io).title("Dermatology"),this._propEditor=(new ie).show_settings(!0)}showProperties(e){if(!arguments.length)return this._showProperties;this._showProperties=e,this.rightPercentage(0).rightSize(this._showProperties?360:0).setContent("right",this._showProperties?this._propEditor:null);const t=this.widget();return t&&t.designMode&&t.designMode(this._showProperties),this}toggleProperties(){return this.showProperties(!this.showProperties())}enter(e,t){super.enter(e,t),this.topPercentage(0).topSize(0).setContent("top",this._toolbar),this.getCell("top").surfaceShadow(!0);const n=this;this._propsButton=(new te).id(this.id()+"_props").value("Properties").on("click",function(){n.toggleProperties().render()}),this._toolbar.widgets([this._propsButton])}update(e,t){this.topPercentage(0).topSize(this.showToolbar()?32:0),super.update(e,t);const n=this.widget();t.style("background-color",n&&n.surfaceShadow?null:"white")}render(e){const t=this.widget();return t!==this._prevWidget&&(t&&t.surfaceShadow&&t.surfaceBackgroundColor_default("white"),this.setContent("center",t),this._propEditor.widget(t),this._prevWidget=t),super.render(e)}showToolbar;showToolbar_exists;widget;widget_exists};x(Wo,"Dermatology");let Uo=Wo;Uo.prototype._class+=" composite_Dermatology",Uo.prototype.publish("showToolbar",!0,"boolean","Show Toolbar"),Uo.prototype.publish("widget",null,"widget","Widget");const jo=class _MegaChart extends cr{_chart=new Oo;_toolbar=new Io;_valueTitle=new N;_domainTitle=new N;_legend=new le;_csvButton;_infoButton;_maximizeButton;_legendButton;_chartTypeSelect;_prevLegendPosition;_prevShowToolbar;_1DChartTypes;_2DChartTypes;_NDChartTypes;_anyChartTypes;_allChartTypes;_contentClasses;_dataCount;constructor(){super(),this._tag="div";const e=this;this._chart.click=function(){e.click.apply(e,arguments)},this._chart.dblclick=function(){e.dblclick.apply(e,arguments)},this._chart.vertex_click=function(){e.vertex_click.apply(e,arguments)},this._chart.vertex_dblclick=function(){e.vertex_dblclick.apply(e,arguments)},this._chart.edge_click=function(){e.edge_click.apply(e,arguments)},this._chart.edge_dblclick=function(){e.edge_dblclick.apply(e,arguments)}}toolbarWidgets(e){return arguments.length?(this._toolbar.widgets(e),this):this._toolbar.widgets()}chartTypeDefaults(e){return arguments.length?(this._chart.chartTypeDefaults(e),this):this._chart.chartTypeDefaults()}chartTypeProperties(e){return arguments.length?(this._chart.chartTypeProperties(e),this):this._chart.chartTypeProperties()}fields(e){return arguments.length?(this._chart.fields(e),this):this._chart.fields()}columns(e,t){return arguments.length?(this._chart.columns(e,t),this):this._chart.columns()}data(e){return arguments.length?(this._chart.data(e),this):this._chart.data()}downloadCSV(){return I.downloadString("CSV",this._chart.export("CSV")),this}enter(e,t){super.enter(e,t);const n=this;this.topShrinkWrap(!1).topPercentage(0).topSize(30),this._dataCount=(new ae).classed({"composite_MegaChart-dataCount":!0}).id(this.id()+"_dataCount").html('<span class="MegaChart-dataCount-label">Count:</span>&nbsp;<span class="MegaChart-dataCount-value">'+(this.data()?this.data().length:"0")+"</span>").overflowX("visible").overflowY("visible"),this._csvButton=(new ne).classed({"composite_MegaChart-CSV":!0}).id(this.id()+"_csv").value("CSV"),this._csvButton.click=function(e){n.downloadCSV()},this._infoButton=(new ne).classed({"composite_MegaChart-Info":!0}).id(this.id()+"_info").value(this.infoIcon()),this._maximizeButton=(new ne).classed({"composite_MegaChart-Maximize":!0}).id(this.id()+"_maximize").value(""),this._maximizeButton.click=function(e){const t=n.target();let r;const o=E(t).classed("__hpccisMaximized"),i=n.locateAncestor("layout_Grid");r=i?i.element().node():document.body;const l=E(n.target());if(o){const r=t.parentElement.getBoundingClientRect(),o=parseInt(getComputedStyle(t,null).getPropertyValue("padding-top").replace("px","")),i=parseInt(getComputedStyle(t,null).getPropertyValue("padding-left").replace("px","")),a=parseInt(getComputedStyle(t,null).getPropertyValue("padding-right").replace("px","")),s=parseInt(getComputedStyle(t,null).getPropertyValue("padding-bottom").replace("px",""));n.contentDiv.style("opacity",0).transition(100),l.transition().style("top",r.top+"px").style("left",r.left+"px").style("width",r.width-i-a+"px").style("height",r.height-o-s+"px").each("end",function(){l.style("position",t.__old_position),l.style("z-index",t.__old_zindex),l.style("background-color",t.__old_backgroundColor),l.style("box-shadow",t.__old_boxshadow),n.resize({width:r.width-i-a,height:r.height-o-s}).render(function(){n.contentDiv.transition().style("opacity",1)}),e.value("").render()})}else{t.__old_position=t.style.position,t.__old_zindex=t.style.zIndex,t.__old_boxshadow=t.style.boxShadow,t.__old_backgroundColor=n.element().style("background-color");const o=E(r).datum(),i=o.target(),a=o?i.getBoundingClientRect():r.getBoundingClientRect(),s=parseInt(getComputedStyle(i,null).getPropertyValue("padding-top").replace("px","")),u=parseInt(getComputedStyle(i,null).getPropertyValue("padding-left").replace("px","")),c=parseInt(getComputedStyle(i,null).getPropertyValue("padding-right").replace("px","")),d=parseInt(getComputedStyle(i,null).getPropertyValue("padding-bottom").replace("px",""));n.contentDiv.style("opacity",0).transition(100),l.style("position","fixed").style("z-index",999999).style("box-shadow","0 8px 8px 0 rgba(0,0,0,.14),0 12px 4px -8px rgba(0,0,0,.2),0 4px 20px 0 rgba(0,0,0,.12)").style("background-color",t.__old_backgroundColor).transition().style("top",a.top+s+"px").style("left",a.left+u+"px").style("width",a.width-u-c+"px").style("height",a.height-s-d+"px").each("end",function(){l.style("background-color",n.maximizedBackgroundColor()),n.resize({width:a.width-u-c,height:a.height-s-d}).render(function(){n.contentDiv.transition().style("opacity",1)}),e.value("").render()})}E(t).classed("__hpccisMaximized",!o)},this._legendButton=(new re).classed({"composite_MegaChart-legend":!0}).id(this.id()+"_legend").type("checkbox").inlineLabel("Legend: "),this._legendButton.click=function(e){n.render()},this._chartTypeSelect=(new oe).classed({"composite_MegaChart-chartType":!0}).id(this.id()+"_chartType").selectOptions(this._allChartTypes.map(function(e){return[e.id,e.display]})).value(this.chartType()),this._chartTypeSelect.change=function(e){n.chartType(e.value()).render()},this.setContent("center",this._chart),this._legend.targetWidget(this._chart).orientation(-1!==["top","bottom"].indexOf(this.legendPosition())?"horizontal":"vertical").fixedSize(!0),this._prevLegendPosition=this.legendPosition(),this.valueAxisTitle()&&this.setContent("left",this._valueTitle.rotation(-90)).leftShrinkWrap(!0),this.domainAxisTitle()&&this.setContent("bottom",this._domainTitle).bottomShrinkWrap(!0),"none"!==this.legendPosition()&&this.setContent(this.legendPosition(),this._legend)[this.legendPosition()+"ShrinkWrap"](!0)}update(e,t){function n(e,t,n){if(n&&-1===e.indexOf(t))e.push(t);else if(!n){const n=e.indexOf(t);n>=0&&e.splice(n,1)}}x(n,"showHideButton"),this._chart&&"function"==typeof this._chart.hideRowOnLegendClick&&this._chart.hideRowOnLegendClick(this.hideRowOnLegendClick()),this._dataCount.html('<span class="MegaChart-dataCount-label">Count:</span>&nbsp;<span class="MegaChart-dataCount-value">'+(this.data()?this.data().length:"0")+"</span>"),this._chartTypeSelect.value(this.chartType());const r=this.toolbarWidgets();n(r,this._csvButton,this.showCSV()),n(r,this._maximizeButton,this.showMaximize()),n(r,this._legendButton,this.toolbarShowLegend()),n(r,this._chartTypeSelect,this.showChartSelect()),n(r,this._infoButton,this.showInfoButton()),n(r,this._dataCount,this.showCount()),this.toolbarWidgets(r),this._prevShowToolbar!==this.showToolbar()&&(this.setContent("top",this.showToolbar()?this._toolbar:null),this._prevShowToolbar=this.showToolbar()),this._toolbar.fontSize(this.titleFontSize()).fontColor(this.titleFontColor()).fontFamily(this.titleFontFamily()).fontBold(this.titleFontBold()).backgroundColor(this.titleBackgroundColor()),this._chart.data(this.data()),this._chart.chartType()!==this.chartType()&&this._chart.chartType(this.chartType());let o=this.legendPosition();this.toolbarShowLegend()&&!this._legendButton.checked()&&(o="none"),this._prevLegendPosition!==o&&("none"!==this._prevLegendPosition&&this.clearContent(this._prevLegendPosition),this._prevLegendPosition=o,"none"!==o&&(this._legend=(new le).targetWidget(this.getContent("center").fixedSize(!0)),this.setContent(o,this._legend),this._legend.orientation(-1!==["top","bottom"].indexOf(o)?"horizontal":"vertical"))),this._contentClasses=this.getContentClasses(),this.valueAxisTitle()&&"common_Text"!==this._contentClasses.left&&"left"!==o&&this.setContent("left",this._valueTitle.rotation(-90)),this.domainAxisTitle()&&"common_Text"!==this._contentClasses.bottom&&"bottom"!==o&&this.setContent("bottom",this._domainTitle).bottomShrinkWrap(!0),this._legend.dataFamily(this._chart.getChartDataFamily()),super.update(e,t)}exit(e,t){super.exit(e,t)}getContentClasses(){const e={},t=this.getContent("top"),n=this.getContent("right"),r=this.getContent("bottom"),o=this.getContent("left");return e.top=null!==t?t.classID():void 0,e.right=null!==n?n.classID():void 0,e.bottom=null!==r?r.classID():void 0,e.left=null!==o?o.classID():void 0,e}serializeState(){const e={title:this.title(),data:this.data()},t=this.chart();return t&&t.serializeState&&(e.chart=t.serializeState(),delete e.chart.data),e}deserializeState(e){if(e){this.title(e.title).data(e.data);const t=this.chart();t&&e.chart&&t.serializeState&&t.deserializeState(e.chart)}return this}click(e,t,n){}dblclick(e,t,n){}vertex_click(e,t,n,r){r&&r.vertex}vertex_dblclick(e,t,n,r){r&&r.vertex}edge_click(e,t,n,r){r&&r.edge}edge_dblclick(e,t,n,r){r&&r.edge}hideRowOnLegendClick;hideRowOnLegendClick_exists;showToolbar;showToolbar_exists;titleFontSize;titleFontSize_exists;titleFontColor;titleFontColor_exists;titleFontFamily;titleFontFamily_exists;titleFontBold;titleFontBold_exists;titleBackgroundColor;titleBackgroundColor_exists;maximizedBackgroundColor;maximizedBackgroundColor_exists;showChartSelect;showChartSelect_exists;showCSV;showCSV_exists;showCount;showCount_exists;showMaximize;showMaximize_exists;toolbarShowLegend;toolbarShowLegend_exists;showInfoButton;showInfoButton_exists;infoIcon;infoIcon_exists;legendPosition;legendPosition_exists;title;title_exists;domainAxisTitle;domainAxisTitle_exists;valueAxisTitle;valueAxisTitle_exists;chartType;chartType_exists;chart;chart_exists};x(jo,"MegaChart");let $o=jo;function Vo(e,t){if(t=t&&"1.14.2-dev"!==t?t:"1.18.0",!e.__version)return e;const n=I.parseVersionString(e.__version),r=I.parseVersionString(t);if(1===n.major&&14===n.minor){console.info("Upgrading old persist from "+e.__version+" to "+t);let n=JSON.stringify(e);n=n.split('"'+e.__version).join('"'+t);const o=JSON.parse(n);return o.__properties&&o.__properties.content&&o.__properties.content.forEach(function(e){JSON.stringify(e).split("graph_Graph").length>1&&r.minor>=16&&(e.__properties.widget.__id=e.__properties.widget.__properties.widget.__id,e.__properties.widget.__class="composite_MegaChart",e.__properties.widget.__properties.showCSV=!1,e.__properties.widget.__properties.chartType="GRAPH",e.__properties.widget.__properties.chart=e.__properties.widget.__properties.widget,delete e.__properties.widget.__properties.chart.__id,delete e.__properties.widget.__properties.widget),void 0===e.__properties.fields&&(e.__properties.fields=[])}),o}return e}function Go(e,t){const n=[];return se.widgetPropertyWalker(e,null,(e,r)=>{if(e[r.id+"_reset"](),void 0!==t.__properties[r.id])switch(r.type){case"widget":const o=r.id;n.push(Yo(t.__properties[r.id]).then(t=>(t._owner=e,e[o](t),t)));break;case"widgetArray":case"propertyArray":const i=r.id,l=t.__properties[r.id];if(l.length){const t=[];for(const n of l)t.push(Yo(n).then(t=>(t._owner=e,t)));n.push(Promise.all(t).then(t=>{e[i](t)}))}break;default:e[r.id](t.__properties[r.id])}}),Promise.all(n).then(n=>{if(t.__data)for(const r in t.__data)if(t.__data.HasOwnProperty(r))if("data"===r)e.data(t.__data[r]);else console.warn("Unexpected __data item: "+r),e[r](t.__data[r]);return t.__state&&(e.deserializeState?e.deserializeState(t.__state):t.__state.data&&e.data&&e.data(t.__state.data)),e})}function qo(e,t){"string"==typeof t&&(t=JSON.parse(t)),t.__id&&0!==t.__id.indexOf(e._idSeed)&&e._id!==t.__id&&console.warn("Deserialize: IDs do not match - "+e._id),Go(e,t)}function Yo(e){return"string"==typeof e&&(e=JSON.parse(e)),Ao((e=Vo(e,A.version())).__class).then(t=>{const n=new t;return e.__id&&0!==e.__id.indexOf(n._idSeed)&&0!==e.__id.indexOf("_pe")&&(n._id=e.__id),Go(n,e)}).catch(function(e){console.error("Persist.create: ***exception***"),console.error(e)})}function Xo(e){Yo(se.serializeToObject(e,void 0,!0,!0))}$o.prototype._class+=" composite_MegaChart",$o.prototype._1DChartTypes=Oo.prototype._1DChartTypes,$o.prototype._2DChartTypes=Oo.prototype._2DChartTypes,$o.prototype._NDChartTypes=Oo.prototype._NDChartTypes,$o.prototype._anyChartTypes=Oo.prototype._anyChartTypes,$o.prototype._allChartTypes=Oo.prototype._allChartTypes,$o.prototype.publishReset(),$o.prototype.publish("hideRowOnLegendClick",!1,"boolean","Enable/Disable hiding row on legend clicks",null,{tags:["Basic"]}),$o.prototype.publish("showToolbar",!0,"boolean","Enable/Disable Toolbar widget",null,{tags:["Basic"]}),$o.prototype.publishProxy("title","_toolbar","title"),$o.prototype.publish("ddlParamsFormat","","string","DDL Param Format '{fname}, {lname}'",null,{tags:["Advanced"],optional:!0}),$o.prototype.publish("titleFontSize",null,"number","Title Font Size (px)",null,{tags:["Advanced"],optional:!0}),$o.prototype.publish("titleFontColor",null,"html-color","Title Font Color",null,{tags:["Advanced"],optional:!0}),$o.prototype.publish("titleFontFamily",null,"string","Title Font Family",null,{tags:["Advanced"],optional:!0}),$o.prototype.publish("titleFontBold",!0,"boolean","Enable Bold Title Font",null,{tags:["Advanced"],optional:!0}),$o.prototype.publish("titleBackgroundColor",null,"html-color","Background Color",null,{tags:["Intermediate"],optional:!0}),$o.prototype.publish("maximizedBackgroundColor","#FFFFFF","html-color","Background Color while maximized",null,{tags:["Intermediate"],optional:!0}),$o.prototype.publish("showChartSelect",!0,"boolean","Show/Hide the chartType dropdown in the toolbar",null,{tags:["Basic"]}),$o.prototype.publish("showCSV",!0,"boolean","Show/Hide CSV button",null,{tags:["Basic"]}),$o.prototype.publish("showCount",!1,"boolean","Show/Hide Data Count",null,{tags:["Basic"]}),$o.prototype.publish("showMaximize",!1,"boolean","Show/Hide Maximize button",null,{tags:["Basic"]}),$o.prototype.publish("toolbarShowLegend",!1,"boolean","Show/Hide Legend button",null,{tags:["Basic"]}),$o.prototype.publish("showInfoButton",!1,"boolean","Show/Hide Info button in toolbar",null,{tags:["Basic"]}),$o.prototype.publish("infoIcon","","string","Help Icon",null,{tags:["Basic"]}),$o.prototype.publish("legendPosition","none","set","Position of the Legend widget",["none","top","right","bottom","left"],{tags:["Basic"]}),$o.prototype.publishProxy("legendFormat","_legend","rainbowFormat"),$o.prototype.publishProxy("legendBins","_legend","rainbowBins"),$o.prototype.publishProxy("domainAxisTitle","_domainTitle","text"),$o.prototype.publishProxy("valueAxisTitle","_valueTitle","text"),$o.prototype.publishProxy("chartType","_chart","chartType"),$o.prototype.publishProxy("chart","_chart","chart"),x(Vo,"retrofit_114_serialization"),x(Go,"deserializeFromObject"),x(qo,"deserialize"),x(Yo,"create"),x(Xo,"clone");const Ko=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,clone:Xo,create:Yo,deserialize:qo,deserializeFromObject:Go,retrofit_114_serialization:Vo},Symbol.toStringTag,{value:"Module"}));export{de as BUILD_VERSION,Uo as Dermatology,$o as MegaChart,Oo as MultiChart,No as MultiChartPanel,ue as PKG_NAME,ce as PKG_VERSION,Ko as Persist,Fo as Utility};
7
7
  //# sourceMappingURL=index.js.map
8
8
  !function(){"use strict";try{if("undefined"!=typeof document){var o=document.createElement("style");o.appendChild(document.createTextNode(".composite_ChartPanel>.body{margin:0;padding:0;display:flex;flex-flow:row}.composite_ChartPanel>.body>article{flex:3 1 60%;order:2}.composite_ChartPanel>.body>nav{flex:1 6 20%;order:1}.composite_ChartPanel>.body>aside{margin-left:4px;flex:1 6 20%;order:3}header,footer{display:block}.composite_Dermatology{background-color:#f8f8ff}.composite_Dermatology .common_Icon{background-color:red;opacity:.75}.composite_Dermatology .common_Icon .common_Shape{fill:#fff;stroke:#a9a9a9;cursor:pointer}.composite_Dermatology .common_Icon.show .common_Shape{fill:#d3d3d3}.composite_Dermatology .common_Icon .common_FAChar .common_Text{fill:#a9a9a9;cursor:pointer}.composite_Dermatology .other_PropertyEditor{font-family:sans-serif;font-size:11px}.composite_Dermatology .other_PropertyEditor input{font-family:sans-serif;font-size:11px;border:0px}.composite_Dermatology .other_PropertyEditor .property-label{height:unset}.composite_MegaChart-Info,.composite_MegaChart-Info *,.composite_MegaChart-Maximize,.composite_MegaChart-Maximize *{font-family:FontAwesome}")),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();