@hpcc-js/composite 3.5.6 → 3.5.8

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.
@@ -1,3 +1,3 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@hpcc-js/common"),require("@hpcc-js/api"),require("@hpcc-js/form"),require("@hpcc-js/other")):"function"==typeof define&&define.amd?define(["exports","@hpcc-js/common","@hpcc-js/api","@hpcc-js/form","@hpcc-js/other"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["@hpcc-js/composite"]={},e["@hpcc-js/common"],e["@hpcc-js/api"],e["@hpcc-js/form"],e["@hpcc-js/other"])}(this,function(e,t,n,r,o){"use strict";var i,l,a,s,u,c,d,h,p,f,g,m,y,b,v,w,_,x,C,S,k,T=Object.defineProperty,P=(e,t)=>T(e,"name",{value:t,configurable:!0});var E=Object.defineProperty,z=P((e,t)=>E(e,"name",{value:t,configurable:!0}),"t$1");function I(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}P(I,"s"),z(I,"getDefaultExportFromCjs");var R,A,D={exports:{}},F={};function L(){if(R)return F;R=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),l=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),d=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}P(p,"g"),z(p,"getIteratorFn");var f={isMounted:z(function(){return!1},"isMounted"),enqueueForceUpdate:z(function(){},"enqueueForceUpdate"),enqueueReplaceState:z(function(){},"enqueueReplaceState"),enqueueSetState:z(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}P(y,"w"),P(b,"S"),P(v,"k"),z(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")},z(b,"ComponentDummy"),b.prototype=y.prototype,z(v,"PureComponent");var w=v.prototype=new b;w.constructor=v,g(w,y.prototype),w.isPureReactComponent=!0;var _=Array.isArray;function x(){}P(x,"E"),z(x,"noop");var C={H:null,A:null,T:null,S:null},S=Object.prototype.hasOwnProperty;function k(t,n,r){var o=r.ref;return{$$typeof:e,type:t,key:n,ref:void 0!==o?o:null,props:r}}function T(e,t){return k(e.type,t,e.props)}function E(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}function I(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}P(k,"P"),P(T,"T"),P(E,"z"),P(I,"_"),z(k,"ReactElement"),z(T,"cloneAndReplaceKey"),z(E,"isValidElement"),z(I,"escape");var A=/\/+/g;function D(e,t){return"object"==typeof e&&null!==e&&null!=e.key?I(""+e.key):t.toString(36)}function L(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(x,x):(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 M(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 M((s=n._init)(n._payload),r,o,i,l)}}if(s)return l=l(n),s=""===i?"."+D(n,0):i,_(l)?(o="",null!=s&&(o=s.replace(A,"$&/")+"/"),M(l,r,o,"",function(e){return e})):null!=l&&(E(l)&&(l=T(l,o+(null==l.key||n&&n.key===l.key?"":(""+l.key).replace(A,"$&/")+"/")+s)),r.push(l)),1;s=0;var u=""===i?".":i+":";if(_(n))for(var d=0;d<n.length;d++)s+=M(i=n[d],r,o,a=u+D(i,d),l);else if("function"==typeof(d=p(n)))for(n=d.call(n),d=0;!(i=n.next()).done;)s+=M(i=i.value,r,o,a=u+D(i,d++),l);else if("object"===a){if("function"==typeof n.then)return M(L(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 O(e,t,n){if(null==e)return e;var r=[],o=0;return M(e,r,"","",function(e){return t.call(n,e,o++)}),r}function B(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}P(D,"F"),P(L,"D"),P(M,"L"),P(O,"O"),P(B,"A"),z(D,"getElementKey"),z(L,"resolveThenable"),z(M,"mapIntoArray"),z(O,"mapChildren"),z(B,"lazyInitializer");var H="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)},N={map:O,forEach:z(function(e,t,n){O(e,function(){t.apply(this,arguments)},n)},"forEach"),count:z(function(e){var t=0;return O(e,function(){t++}),t},"count"),toArray:z(function(e){return O(e,function(e){return e})||[]},"toArray"),only:z(function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e},"only")};return F.Activity=d,F.Children=N,F.Component=y,F.Fragment=n,F.Profiler=o,F.PureComponent=v,F.StrictMode=r,F.Suspense=s,F.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,F.__COMPILER_RUNTIME={__proto__:null,c:z(function(e){return C.H.useMemoCache(e)},"c")},F.cache=function(e){return function(){return e.apply(null,arguments)}},F.cacheSignal=function(){return null},F.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)!S.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 k(e.type,o,r)},F.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},F.createElement=function(e,t,n){var r,o={},i=null;if(null!=t)for(r in void 0!==t.key&&(i=""+t.key),t)S.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 k(e,i,o)},F.createRef=function(){return{current:null}},F.forwardRef=function(e){return{$$typeof:a,render:e}},F.isValidElement=E,F.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:B}},F.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},F.startTransition=function(e){var t=C.T,n={};C.T=n;try{var r=e(),o=C.S;null!==o&&o(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(x,H)}catch(i){H(i)}finally{null!==t&&null!==n.types&&(t.types=n.types),C.T=t}},F.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},F.use=function(e){return C.H.use(e)},F.useActionState=function(e,t,n){return C.H.useActionState(e,t,n)},F.useCallback=function(e,t){return C.H.useCallback(e,t)},F.useContext=function(e){return C.H.useContext(e)},F.useDebugValue=function(){},F.useDeferredValue=function(e,t){return C.H.useDeferredValue(e,t)},F.useEffect=function(e,t){return C.H.useEffect(e,t)},F.useEffectEvent=function(e){return C.H.useEffectEvent(e)},F.useId=function(){return C.H.useId()},F.useImperativeHandle=function(e,t,n){return C.H.useImperativeHandle(e,t,n)},F.useInsertionEffect=function(e,t){return C.H.useInsertionEffect(e,t)},F.useLayoutEffect=function(e,t){return C.H.useLayoutEffect(e,t)},F.useMemo=function(e,t){return C.H.useMemo(e,t)},F.useOptimistic=function(e,t){return C.H.useOptimistic(e,t)},F.useReducer=function(e,t,n){return C.H.useReducer(e,t,n)},F.useRef=function(e){return C.H.useRef(e)},F.useState=function(e){return C.H.useState(e)},F.useSyncExternalStore=function(e,t,n){return C.H.useSyncExternalStore(e,t,n)},F.useTransition=function(){return C.H.useTransition()},F.version="19.2.4",F}function M(){return A||(A=1,D.exports=L()),D.exports}P(L,"m"),P(M,"h"),z(L,"requireReact_production"),z(M,"requireReact");var O=M();const B=I(O);var H,N,W={exports:{}},U={},j={exports:{}},$={};function V(){return H||(H=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(P(t,"n"),P(n,"r"),P(r,"l"),P(o,"o"),z(t,"push"),z(n,"peek"),z(r,"pop"),z(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,C||(C=!0,x());else{var t=n(u);null!==t&&D(_,t.startTime-e)}}P(w,"S"),P(_,"k"),z(w,"advanceTimers"),z(_,"handleTimeout");var x,C=!1,S=-1,k=5,T=-1;function E(){return!(!m&&e.unstable_now()-T<k)}function I(){if(m=!1,C){var t=e.unstable_now();T=t;var o=!0;try{e:{f=!1,g&&(g=!1,b(S),S=-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&&D(_,c.startTime-t),o=!1}}break e}finally{d=null,h=i,p=!1}o=void 0}}finally{o?x():C=!1}}}if(P(E,"P"),P(I,"T"),z(E,"shouldYieldToHost"),z(I,"performWorkUntilDeadline"),"function"==typeof v)x=z(function(){v(I)},"schedulePerformWorkUntilDeadline");else if("undefined"!=typeof MessageChannel){var R=new MessageChannel,A=R.port2;R.port1.onmessage=I,x=z(function(){A.postMessage(null)},"schedulePerformWorkUntilDeadline")}else x=z(function(){y(I,0)},"schedulePerformWorkUntilDeadline");function D(t,n){S=y(function(){t(e.unstable_now())},n)}P(D,"N"),z(D,"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"):k=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(S),S=-1):g=!0,D(_,i-l))):(r.sortIndex=a,t(s,r),f||p||(f=!0,C||(C=!0,x()))),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}}}}($)),$}function G(){return N||(N=1,j.exports=V()),j.exports}P(V,"x"),P(G,"E$1"),z(V,"requireScheduler_production"),z(G,"requireScheduler");var q,Y,X,K,Q={exports:{}},J={};function Z(){if(q)return J;q=1;var e=M();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(){}P(t,"n"),P(n,"r"),z(t,"formatProdErrorMessage"),z(n,"noop");var r={d:{f:n,r:z(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=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}}P(i,"a"),z(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 P(a,"u"),z(a,"getCrossOriginStringAs"),J.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,J.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)},J.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()}},J.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))},J.prefetchDNS=function(e){"string"==typeof e&&r.d.D(e)},J.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})}},J.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)},J.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})}},J.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)},J.requestFormReset=function(e){r.d.r(e)},J.unstable_batchedUpdates=function(e,t){return e(t)},J.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},J.useFormStatus=function(){return l.H.useHostTransitionStatus()},J.version="19.2.4",J}function ee(){if(Y)return Q.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 P(e,"e"),Y=1,z(e,"checkDCE"),e(),Q.exports=Z(),Q.exports}function te(){if(X)return U;X=1;var e=G(),t=M(),n=ee();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}P(r,"l"),P(o,"o"),P(i,"a"),P(l,"i"),P(a,"u"),P(s,"s"),P(u,"c"),P(c,"d"),z(r,"formatProdErrorMessage"),z(o,"isValidContainer"),z(i,"getNearestMountedFiber"),z(l,"getSuspenseInstanceFromFiber"),z(a,"getActivityInstanceFromFiber"),z(s,"assertIsMounted"),z(u,"findCurrentFiberUsingSlowPath"),z(c,"findCurrentHostFiberImpl");var d=Object.assign,h=Symbol.for("react.element"),p=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),v=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),T=Symbol.for("react.memo_cache_sentinel"),E=Symbol.iterator;function I(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=E&&e[E]||e["@@iterator"])?e:null}P(I,"D"),z(I,"getIteratorFn");var R=Symbol.for("react.client.reference");function A(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===R?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 x:return"SuspenseList";case k: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 C:return null!==(t=e.displayName||null)?t:A(e.type)||"Memo";case S:t=e._payload,e=e._init;try{return A(e(t))}catch(n){}}return null}P(A,"O"),z(A,"getComponentNameFromType");var D=Array.isArray,F=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O={pending:!1,data:null,method:null,action:null},B=[],H=-1;function N(e){return{current:e}}function W(e){0>H||(e.current=B[H],B[H]=null,H--)}function j(e,t){H++,B[H]=e.current,e.current=t}P(N,"$"),P(W,"V"),P(j,"B"),z(N,"createCursor"),z(W,"pop"),z(j,"push");var $,V,q=N(null),Y=N(null),K=N(null),Q=N(null);function J(e,t){switch(j(K,t),j(Y,e),j(q,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}}W(q),j(q,e)}function Z(){W(q),W(Y),W(K)}function te(e){null!==e.memoizedState&&j(Q,e);var t=q.current,n=Vd(t,e.type);t!==n&&(j(Y,e),j(q,n))}function ne(e){Y.current===e&&(W(q),W(Y)),Q.current===e&&(W(Q),ep._currentValue=O)}function re(e){if(void 0===$)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);$=t&&t[1]||"",V=-1<n.stack.indexOf("\n at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+$+e+V}P(J,"J"),P(Z,"Z"),P(te,"ee"),P(ne,"te"),P(re,"ne"),z(J,"pushHostContainer"),z(Z,"popHostContainer"),z(te,"pushHostContext"),z(ne,"popHostContext"),z(re,"describeBuiltInComponentFrame");var oe=!1;function ie(e,t){if(!e||oe)return"";oe=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:z(function(){try{if(t){var n=z(function(){throw Error()},"Fake");if(Object.defineProperty(n.prototype,"props",{set:z(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{oe=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?re(n):""}function le(e,t){switch(e.tag){case 26:case 27:case 5:return re(e.type);case 16:return re("Lazy");case 13:return e.child!==t&&null!==t?re("Suspense Fallback"):re("Suspense");case 19:return re("SuspenseList");case 0:case 15:return ie(e.type,!1);case 11:return ie(e.type.render,!1);case 1:return ie(e.type,!0);case 31:return re("Activity");default:return""}}function ae(e){try{var t="",n=null;do{t+=le(e,n),n=e,e=e.return}while(e);return t}catch(r){return"\nError generating stack: "+r.message+"\n"+r.stack}}P(ie,"le"),P(le,"oe"),P(ae,"ae"),z(ie,"describeNativeComponentFrame"),z(le,"describeFiber"),z(ae,"getStackByFiberInDevAndProd");var se=Object.prototype.hasOwnProperty,ue=e.unstable_scheduleCallback,ce=e.unstable_cancelCallback,de=e.unstable_shouldYield,he=e.unstable_requestPaint,pe=e.unstable_now,fe=e.unstable_getCurrentPriorityLevel,ge=e.unstable_ImmediatePriority,me=e.unstable_UserBlockingPriority,ye=e.unstable_NormalPriority,be=e.unstable_LowPriority,ve=e.unstable_IdlePriority,we=e.log,_e=e.unstable_setDisableYieldValue,xe=null,Ce=null;function Se(e){if("function"==typeof we&&_e(e),Ce&&"function"==typeof Ce.setStrictMode)try{Ce.setStrictMode(xe,e)}catch(t){}}P(Se,"Ce"),z(Se,"setIsStrictModeForDevtools");var ke=Math.clz32?Math.clz32:Ee,Te=Math.log,Pe=Math.LN2;function Ee(e){return 0==(e>>>=0)?32:31-(Te(e)/Pe|0)|0}P(Ee,"Ie"),z(Ee,"clz32Fallback");var ze=256,Ie=262144,Re=4194304;function Ae(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 De(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=Ae(r):0!==(l&=a)?o=Ae(l):n||0!==(n=a&~e)&&(o=Ae(n)):0!==(a=r&~i)?o=Ae(a):0!==l?o=Ae(l):n||0!==(n=r&~e)&&(o=Ae(n)),0===o?0:0!==t&&t!==o&&0===(t&i)&&((i=o&-o)>=(n=t&-t)||32===i&&4194048&n)?t:o}function Fe(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Le(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 Me(){var e=Re;return!(62914560&(Re<<=1))&&(Re=4194304),e}function Oe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Be(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-ke(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-ke(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-ke(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=L.p;return 0!==e?e:void 0===(e=window.event)?32:mp(e.type)}function Ge(e,t){var n=L.p;try{return L.p=e,t()}finally{L.p=n}}P(Ae,"_e"),P(De,"Ne"),P(Fe,"Fe"),P(Le,"De"),P(Me,"Le"),P(Oe,"Oe"),P(Be,"Ae"),P(He,"Me"),P(Ne,"He"),P(We,"Ue"),P(Ue,"je"),P(je,"We"),P($e,"$e"),P(Ve,"Ve"),P(Ge,"Be"),z(Ae,"getHighestPriorityLanes"),z(De,"getNextLanes"),z(Fe,"checkIfRootIsPrerendering"),z(Le,"computeExpirationTime"),z(Me,"claimNextRetryLane"),z(Oe,"createLaneMap"),z(Be,"markRootUpdated$1"),z(He,"markRootFinished"),z(Ne,"markSpawnedDeferredLane"),z(We,"markRootEntangled"),z(Ue,"getBumpedLaneForHydration"),z(je,"getBumpedLaneForHydrationByLane"),z($e,"lanesToEventPriority"),z(Ve,"resolveUpdatePriority"),z(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:new Map,hoistableScripts:new Map}),t}function at(e){e[tt]=!0}P(nt,"tt"),P(rt,"nt"),P(ot,"rt"),P(it,"lt"),P(lt,"ot"),P(at,"at"),z(nt,"detachDeletedInstance"),z(rt,"getClosestInstanceFromNode"),z(ot,"getInstanceFromNode"),z(it,"getNodeFromInstance"),z(lt,"getResourcesFromRoot"),z(at,"markNodeAsHoistable");var st=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])}P(ct,"st"),P(dt,"ct"),z(ct,"registerTwoPhaseEvent"),z(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!!se.call(ft,e)||!se.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:z(function(){return o.call(this)},"get"),set:z(function(e){n=""+e,i.call(this,e)},"set")}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:z(function(){return n},"getValue"),setValue:z(function(e){n=""+e},"setValue"),stopTracking:z(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}}P(gt,"mt"),P(mt,"ht"),P(yt,"gt"),P(bt,"yt"),P(vt,"vt"),P(wt,"bt"),P(_t,"wt"),P(xt,"St"),P(Ct,"kt"),P(St,"Ct"),z(gt,"isAttributeNameSafe"),z(mt,"setValueForAttribute"),z(yt,"setValueForKnownAttribute"),z(bt,"setValueForNamespacedAttribute"),z(vt,"getToStringValue"),z(wt,"isCheckable"),z(_t,"trackValueOnNode"),z(xt,"track"),z(Ct,"updateValueIfChanged"),z(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(D(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}P(Tt,"Et"),P(Pt,"Rt"),P(Et,"It"),P(zt,"Pt"),P(It,"Tt"),P(Rt,"zt"),P(At,"_t"),P(Dt,"Nt"),z(Tt,"escapeSelectorAttributeValueInsideDoubleQuotes"),z(Pt,"updateInput"),z(Et,"initInput"),z(zt,"setDefaultValue"),z(It,"updateOptions"),z(Rt,"updateTextarea"),z(At,"initTextarea"),z(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 Mt(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 Ot(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}}P(Lt,"Dt"),P(Mt,"Lt"),P(Ot,"Ot"),z(Lt,"setValueForStyle"),z(Mt,"setValueForStyles"),z(Ot,"isCustomElement");var Bt=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(){}P(Nt,"Ht"),P(Wt,"Ut"),z(Nt,"sanitizeURL"),z(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}P(jt,"Wt"),z(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)}}}P(Gt,"Bt"),z(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}P(Yt,"Kt"),P(Xt,"Qt"),z(Yt,"batchedUpdates$1"),z(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:z(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 P(t,"n"),z(t,"SyntheticBaseEvent"),d(t.prototype,{preventDefault:z(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:z(function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},"stopPropagation"),persist:z(function(){},"persist"),isPersistent:on}),t}P(nn,"tn"),P(rn,"nn"),P(on,"rn"),P(ln,"ln"),P(an,"on"),z(nn,"getData"),z(rn,"getEventCharCode"),z(on,"functionThatReturnsTrue"),z(ln,"functionThatReturnsFalse"),z(an,"createSyntheticEvent");var sn,un,cn,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:z(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:z(function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},"relatedTarget"),movementX:z(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:z(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:z(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}P(kn,"xn"),P(Tn,"En"),z(kn,"modifierStateGetter"),z(Tn,"getEventModifierState");var Pn=an(d({},pn,{key:z(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:z(function(e){return"keypress"===e.type?rn(e):0},"charCode"),keyCode:z(function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},"keyCode"),which:z(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:z(function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},"deltaX"),deltaY:z(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 Mn=Kt&&"TextEvent"in window&&!Ln,On=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}P(Nn,"Hn"),P(Wn,"Un"),z(Nn,"isFallbackCompositionEnd"),z(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 On&&"ko"!==t.locale?null:t.data}}P(jn,"Wn"),P($n,"$n"),z(jn,"getNativeBeforeInputChars"),z($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}))}P(Gn,"Bn"),P(qn,"qn"),z(Gn,"isTextInputElement"),z(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}P(Kn,"Gn"),P(Qn,"Yn"),P(Jn,"Xn"),z(Kn,"runEventInBatch"),z(Qn,"getInstIfValueChanged"),z(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}P(rr,"nr"),P(or,"rr"),P(ir,"lr"),P(lr,"or"),P(ar,"ar"),P(sr,"ir"),P(ur,"ur"),z(rr,"stopWatchingForValueChange"),z(or,"handlePropertyChange"),z(ir,"handleEventsForInputEventPolyfill"),z(lr,"getTargetInstForInputEventPolyfill"),z(ar,"getTargetInstForClickEvent"),z(sr,"getTargetInstForInputOrChangeEvent"),z(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(!se.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)}P(dr,"cr"),P(hr,"dr"),P(pr,"fr"),P(fr,"pr"),P(gr,"mr"),P(mr,"hr"),z(dr,"shallowEqual"),z(hr,"getLeafNode"),z(pr,"getNodeForCharacterOffset"),z(fr,"containsNode"),z(gr,"getActiveElementDeep"),z(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}P(xr,"Sr"),P(Cr,"kr"),z(xr,"constructSelectEvent"),z(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}P(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),z(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=new Map,Mr="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 Or(e,t){Lr.set(e,t),ct(t,[e])}P(Or,"Or"),Mr.push("scrollEnd"),z(Or,"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-ke(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}P(Ur,"jr"),P(jr,"Wr"),P($r,"$r"),P(Vr,"Vr"),P(Gr,"Br"),P(qr,"qr"),z(Ur,"finishQueueingConcurrentUpdates"),z(jr,"enqueueUpdate$1"),z($r,"enqueueConcurrentHookUpdate"),z(Vr,"enqueueConcurrentRenderForLane"),z(Gr,"markUpdateLaneFromFiberToRoot"),z(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,q.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case k:return(e=Kr(31,n,t,i)).elementType=k,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 x:return(e=Kr(19,n,t,i)).elementType=x,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 C:a=14;break e;case S: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}P(Xr,"Qr"),P(Kr,"Gr"),P(Qr,"Yr"),P(Jr,"Xr"),P(Zr,"Jr"),P(eo,"Zr"),P(to,"el"),P(no,"tl"),P(ro,"nl"),P(oo,"rl"),z(Xr,"FiberNode"),z(Kr,"createFiberImplClass"),z(Qr,"shouldConstruct"),z(Jr,"createWorkInProgress"),z(Zr,"resetWorkInProgress"),z(eo,"createFiberFromTypeAndProps"),z(to,"createFiberFromFragment"),z(no,"createFiberFromText"),z(ro,"createFiberFromDehydratedFragment"),z(oo,"createFiberFromPortal");var io=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:ae(t)},io.set(e,t),t)}return{value:e,source:t,stack:ae(t)}}P(lo,"ol"),z(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-ke(r)-1;r&=~(1<<o),n+=1;var i=32-ke(t)+o;if(30<i){var l=o-o%5;i=(r&(1<<l)-1).toString(32),r>>=l,o-=l,go=1<<32-ke(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}P(yo,"hl"),P(bo,"gl"),P(vo,"yl"),P(wo,"vl"),P(_o,"bl"),z(yo,"pushTreeFork"),z(bo,"pushTreeId"),z(vo,"pushMaterializedTreeId"),z(wo,"popTreeContext"),z(_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)}P(Eo,"Rl"),P(zo,"Il"),P(Io,"Pl"),P(Ro,"Tl"),P(Ao,"zl"),P(Do,"_l"),P(Fo,"Nl"),z(Eo,"throwOnHydrationMismatch"),z(zo,"prepareToHydrateHostInstance"),z(Io,"popToNextHostParent"),z(Ro,"popHydrationState"),z(Ao,"resetHydrationState"),z(Do,"upgradeHydrationErrorsToRecoverable"),z(Fo,"queueHydrationError");var Lo=N(null),Mo=null,Oo=null;function Bo(e,t,n){j(Lo,t._currentValue),t._currentValue=n}function Ho(e){e._currentValue=Lo.current,W(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===Q.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){Mo=e,Oo=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Vo(e){return qo(Mo,e)}function Go(e,t){return null===Mo&&$o(e),qo(e,t)}function qo(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===Oo){if(null===e)throw Error(r(308));Oo=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Oo=Oo.next=t;return n}P(Bo,"Ol"),P(Ho,"Al"),P(No,"Ml"),P(Wo,"Hl"),P(Uo,"Ul"),P(jo,"jl"),P($o,"Wl"),P(Vo,"$l"),P(Go,"Vl"),P(qo,"Bl"),z(Bo,"pushProvider"),z(Ho,"popProvider"),z(No,"scheduleContextWorkOnParentPath"),z(Wo,"propagateContextChanges"),z(Uo,"propagateParentContextChanges"),z(jo,"checkIfContextChanged"),z($o,"prepareToReadContext"),z(Vo,"readContext"),z(Go,"readContextDuringReconciliation"),z(qo,"readContextForConsumer");var Yo="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:z(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:new Map,refCount:0}}function Zo(e){e.refCount--,0===e.refCount&&Xo(Ko,function(){e.controller.abort()})}P(Jo,"Yl"),P(Zo,"Xl"),z(Jo,"createCache"),z(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:z(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:z(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}P(oi,"no"),P(ii,"ro"),P(li,"lo"),z(oi,"entangleAsyncAction"),z(ii,"pingEngtangledActionScope"),z(li,"chainThenableValue");var ai=F.S;F.S=function(e,t){ec=pe(),"object"==typeof t&&null!==t&&"function"==typeof t.then&&oi(0,t),null!==ai&&ai(e,t)};var si=N(null);function ui(){var e=si.current;return null!==e?e:Lu.pooledCache}function ci(e,t){j(si,null===t?si.current:t.pool)}function di(){var e=ui();return null===e?null:{parent:Qo._currentValue,pool:e}}P(ui,"io"),P(ci,"uo"),P(di,"so"),z(ui,"peekCacheFromPool"),z(ci,"pushTransition"),z(di,"getSuspendedCache");var hi=Error(r(460)),pi=Error(r(474)),fi=Error(r(542)),gi={then:z(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}}P(mi,"ho"),P(yi,"go"),P(bi,"yo"),z(mi,"isThenableResolved"),z(yi,"trackUsedThenable"),z(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))}P(wi,"bo"),P(_i,"wo"),z(wi,"getSuspendedThenable"),z(_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=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===S&&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 S:return h(e,t=bi(t),n)}if(D(t)||I(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 S:return m(e,t,n=bi(n),r)}if(D(n)||I(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 S:return y(e,t,n,r=bi(r),o)}if(D(r)||I(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===S&&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 S:return _(e,o,l=bi(l),s)}if(D(l))return b(e,o,l,s);if(I(l)){if("function"!=typeof(u=I(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 P(t,"n"),P(n,"r"),P(o,"o"),P(i,"a"),P(l,"i"),P(a,"u"),P(s,"s"),P(u,"c"),P(c,"d"),P(d,"f"),P(h,"p"),P(m,"h"),P(y,"v"),P(b,"b"),P(w,"w"),P(_,"S"),z(t,"deleteChild"),z(n,"deleteRemainingChildren"),z(o,"mapRemainingChildren"),z(i,"useFiber"),z(l,"placeChild"),z(a,"placeSingleChild"),z(s,"updateTextNode"),z(u,"updateElement"),z(c,"updatePortal"),z(d,"updateFragment"),z(h,"createChild"),z(m,"updateSlot"),z(y,"updateFromMap"),z(b,"reconcileChildrenArray"),z(w,"reconcileChildrenIterator"),z(_,"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}}}P(Si,"Co"),P(ki,"xo"),P(Ti,"Eo"),P(Pi,"Ro"),z(Si,"unwrapThenable"),z(ki,"coerceRef"),z(Ti,"throwOnInvalidObjectTypeImpl"),z(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 Mi(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}P(Ri,"zo"),P(Ai,"_o"),P(Di,"No"),P(Fi,"Fo"),P(Li,"Do"),P(Mi,"Lo"),z(Ri,"initializeUpdateQueue"),z(Ai,"cloneUpdateQueue"),z(Di,"createUpdate"),z(Fi,"enqueueUpdate"),z(Li,"entangleTransitions"),z(Mi,"enqueueCapturedUpdate");var Oi=!1;function Bi(){if(Oi&&null!==ri)throw ri}function Hi(e,t,n,r){Oi=!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?(Ou&p)===p:(r&p)===p){0!==p&&p===ni&&(Oi=!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)}P(Bi,"Ao"),P(Hi,"Mo"),P(Ni,"Ho"),P(Wi,"Uo"),z(Bi,"suspendIfUpdateReadFromEntangledAsyncAction"),z(Hi,"processUpdateQueue"),z(Ni,"callCallback"),z(Wi,"commitCallbacks");var Ui=N(null),ji=N(0);function $i(e,t){j(ji,e=ju),j(Ui,t),ju=e|t.baseLanes}function Vi(){j(ji,ju),j(Ui,Ui.current)}function Gi(){ju=ji.current,W(Ui),W(ji)}P($i,"$o"),P(Vi,"Vo"),P(Gi,"Bo"),z($i,"pushHiddenContext"),z(Vi,"reuseHiddenContextOnStack"),z(Gi,"popHiddenContext");var qi=N(null),Yi=null;function Xi(e){var t=e.alternate;j(el,1&el.current),j(qi,e),null===Yi&&(null===t||null!==Ui.current||null!==t.memoizedState)&&(Yi=e)}function Ki(e){j(el,el.current),j(qi,e),null===Yi&&(Yi=e)}function Qi(e){22===e.tag?(j(el,el.current),j(qi,e),null===Yi&&(Yi=e)):Ji()}function Ji(){j(el,el.current),j(qi,qi.current)}function Zi(e){W(qi),Yi===e&&(Yi=null),W(el)}P(Xi,"Qo"),P(Ki,"Go"),P(Qi,"Yo"),P(Ji,"Xo"),P(Zi,"Jo"),z(Xi,"pushPrimaryTreeSuspenseHandler"),z(Ki,"pushDehydratedActivitySuspenseHandler"),z(Qi,"pushOffscreenSuspenseHandler"),z(Ji,"reuseSuspenseHandlerOnStack"),z(Zi,"popSuspenseHandler");var el=N(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}P(tl,"ea"),z(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,F.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){F.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)}F.H=Fa,l=t(n,o)}while(al);return l}function bl(){var e=F.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,F.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]=T;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?(Ou&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,Ml(t)&&Ol(e)}function Ll(e,t,n){return n(function(){Ml(t)&&Ol(e)})}function Ml(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!cr(e,n)}catch(r){return!0}}function Ol(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){Se(!0);try{n()}finally{Se(!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:z(function(e){l.listeners.push(e)},"then")};null!==F.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=F.T,l={};F.T=l;try{var a=n(o,r),s=F.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),F.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){Se(!0);try{e()}finally{Se(!1)}}return n.memoizedState=[r,t],r}function pa(e,t,n){return void 0===n||1073741824&nl&&!(261930&Ou)?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&Ou)?(e=fc(),rl.lanes|=e,Vu|=e,t):(Ka=!0,e.memoizedState=n)}function ga(e,t,n,r,o){var i=L.p;L.p=0!==i&&8>i?i:8;var l=F.T,a={};F.T=a,Pa(e,!1,t,n);try{var s=o(),u=F.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:z(function(){},"then"),status:"rejected",reason:c},pc())}finally{L.p=i,null!==l&&null!==a.types&&(l.types=a.types),F.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,O,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:O,baseState:O,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:El,lastRenderedState:O},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)}}P(pl,"fa"),P(fl,"pa"),P(gl,"ma"),P(ml,"ha"),P(yl,"ga"),P(bl,"ya"),P(vl,"va"),P(wl,"ba"),P(_l,"wa"),P(xl,"Sa"),P(Cl,"ka"),P(Sl,"Ca"),P(kl,"xa"),P(Tl,"Ea"),P(Pl,"Ra"),P(El,"Ia"),P(zl,"Pa"),P(Il,"Ta"),P(Rl,"za"),P(Al,"_a"),P(Dl,"Na"),P(Fl,"Fa"),P(Ll,"Da"),P(Ml,"La"),P(Ol,"Oa"),P(Bl,"Aa"),P(Hl,"Ma"),P(Nl,"Ha"),P(Wl,"Ua"),P(Ul,"ja"),P(jl,"Wa"),P($l,"$a"),P(Vl,"Va"),P(Gl,"Ba"),P(ql,"qa"),P(Yl,"Ka"),P(Xl,"Qa"),P(Kl,"Ga"),P(Ql,"Ya"),P(Jl,"Xa"),P(Zl,"Ja"),P(ea,"Za"),P(ta,"ei"),P(na,"ti"),P(ra,"ni"),P(oa,"ri"),P(ia,"li"),P(la,"oi"),P(aa,"ai"),P(sa,"ii"),P(ua,"ui"),P(ca,"si"),P(da,"ci"),P(ha,"di"),P(pa,"fi"),P(fa,"pi"),P(ga,"mi"),P(ma,"hi"),P(ya,"gi"),P(ba,"yi"),P(va,"vi"),P(wa,"bi"),P(_a,"wi"),P(xa,"Si"),P(Ca,"ki"),P(Sa,"Ci"),P(ka,"xi"),P(Ta,"Ei"),P(Pa,"Ri"),P(Ea,"Ii"),P(za,"Pi"),P(Ia,"Ti"),z(pl,"throwInvalidHookError"),z(fl,"areHookInputsEqual"),z(gl,"renderWithHooks"),z(ml,"finishRenderingHooks"),z(yl,"renderWithHooksAgain"),z(bl,"TransitionAwareHostComponent"),z(vl,"checkDidRenderIdHook"),z(wl,"bailoutHooks"),z(_l,"resetHooksOnUnwind"),z(xl,"mountWorkInProgressHook"),z(Cl,"updateWorkInProgressHook"),z(Sl,"createFunctionComponentUpdateQueue"),z(kl,"useThenable"),z(Tl,"use"),z(Pl,"useMemoCache"),z(El,"basicStateReducer"),z(zl,"updateReducer"),z(Il,"updateReducerImpl"),z(Rl,"rerenderReducer"),z(Al,"updateSyncExternalStore"),z(Dl,"pushStoreConsistencyCheck"),z(Fl,"updateStoreInstance"),z(Ll,"subscribeToStore"),z(Ml,"checkIfSnapshotChanged"),z(Ol,"forceStoreRerender"),z(Bl,"mountStateImpl"),z(Hl,"updateOptimisticImpl"),z(Nl,"dispatchActionState"),z(Wl,"runActionStateAction"),z(Ul,"handleActionReturnValue"),z(jl,"onActionSuccess"),z($l,"onActionError"),z(Vl,"notifyActionListeners"),z(Gl,"actionStateReducer"),z(ql,"mountActionState"),z(Yl,"updateActionState"),z(Xl,"updateActionStateImpl"),z(Kl,"actionStateActionEffect"),z(Ql,"rerenderActionState"),z(Jl,"pushSimpleEffect"),z(Zl,"updateRef"),z(ea,"mountEffectImpl"),z(ta,"updateEffectImpl"),z(na,"mountEffect"),z(ra,"updateEffect"),z(oa,"useEffectEventImpl"),z(ia,"updateEvent"),z(la,"updateInsertionEffect"),z(aa,"updateLayoutEffect"),z(sa,"imperativeHandleEffect"),z(ua,"updateImperativeHandle"),z(ca,"mountDebugValue"),z(da,"updateCallback"),z(ha,"updateMemo"),z(pa,"mountDeferredValueImpl"),z(fa,"updateDeferredValueImpl"),z(ga,"startTransition"),z(ma,"noop"),z(ya,"startHostTransition"),z(ba,"ensureFormComponentIsStateful"),z(va,"requestFormReset$1"),z(wa,"useHostTransitionStatus"),z(_a,"updateId"),z(xa,"updateRefresh"),z(Ca,"refreshCache"),z(Sa,"dispatchReducerAction"),z(ka,"dispatchSetState"),z(Ta,"dispatchSetStateInternal"),z(Pa,"dispatchOptimisticSetState"),z(Ea,"isRenderPhaseUpdate"),z(za,"enqueueRenderPhaseUpdate"),z(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:z(function(e,t){return xl().memoizedState=[e,void 0===t?null:t],e},"useCallback"),useContext:Vo,useEffect:na,useImperativeHandle:z(function(e,t,n){n=null!=n?n.concat([e]):null,ea(4194308,4,sa.bind(null,t,e),n)},"useImperativeHandle"),useLayoutEffect:z(function(e,t){return ea(4194308,4,e,t)},"useLayoutEffect"),useInsertionEffect:z(function(e,t){ea(4,2,e,t)},"useInsertionEffect"),useMemo:z(function(e,t){var n=xl();t=void 0===t?null:t;var r=e();if(sl){Se(!0);try{e()}finally{Se(!1)}}return n.memoizedState=[r,t],r},"useMemo"),useReducer:z(function(e,t,n){var r=xl();if(void 0!==n){var o=n(t);if(sl){Se(!0);try{n(t)}finally{Se(!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:z(function(e){return e={current:e},xl().memoizedState=e},"useRef"),useState:z(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:z(function(e,t){return pa(xl(),e,t)},"useDeferredValue"),useTransition:z(function(){var e=Bl(!1);return e=ga.bind(null,rl,e.queue,!0,!1),xl().memoizedState=e,[!1,e]},"useTransition"),useSyncExternalStore:z(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&Ou||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:z(function(){var e=xl(),t=Lu.identifierPrefix;if(So){var n=mo;t="_"+t+"R_"+(n=(go&~(1<<32-ke(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:z(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:z(function(){return xl().memoizedState=Ca.bind(null,rl)},"useCacheRefresh"),useEffectEvent:z(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:z(function(){return zl(El)},"useState"),useDebugValue:ca,useDeferredValue:z(function(e,t){return fa(Cl(),ol.memoizedState,e,t)},"useDeferredValue"),useTransition:z(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:z(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:z(function(){return Rl(El)},"useState"),useDebugValue:ca,useDeferredValue:z(function(e,t){var n=Cl();return null===ol?pa(n,e,t):fa(n,ol.memoizedState,e,t)},"useDeferredValue"),useTransition:z(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:z(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)}P(La,"Di"),Fa.useEffectEvent=ia,z(La,"applyDerivedStateFromProps");var Ma={enqueueSetState:z(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:z(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:z(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 Oa(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&&Ma.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=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=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:new Set([o])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=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),Mi(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,Mi(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),Mi(n,i),!1}n=n.return}while(null!==n);return!1}P(Oa,"Oi"),P(Ba,"Ai"),P(Ha,"Mi"),P(Na,"Hi"),P(Wa,"Ui"),P(Ua,"ji"),P(ja,"Wi"),P($a,"$i"),P(Va,"Vi"),P(Ga,"Bi"),P(qa,"qi"),P(Ya,"Ki"),z(Oa,"checkShouldComponentUpdate"),z(Ba,"callComponentWillReceiveProps"),z(Ha,"resolveClassComponentProps"),z(Na,"defaultOnUncaughtError"),z(Wa,"defaultOnCaughtError"),z(Ua,"defaultOnRecoverableError"),z(ja,"logUncaughtError"),z($a,"logCaughtError"),z(Va,"createRootErrorUpdate"),z(Ga,"createClassErrorUpdate"),z(qa,"initializeClassErrorUpdate"),z(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=Ma,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&&Ma.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||Oa(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||Oa(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}P(Qa,"Yi"),P(Ja,"Xi"),P(Za,"Ji"),P(es,"Zi"),P(ts,"eu"),P(ns,"tu"),P(rs,"nu"),P(os,"ru"),P(is,"lu"),P(ls,"ou"),P(as,"au"),P(ss,"iu"),P(us,"uu"),P(cs,"su"),P(ds,"cu"),z(Qa,"reconcileChildren"),z(Ja,"updateForwardRef"),z(Za,"updateMemoComponent"),z(es,"updateSimpleMemoComponent"),z(ts,"updateOffscreenComponent"),z(ns,"bailoutOffscreenComponent"),z(rs,"deferHiddenOffscreenComponent"),z(os,"mountActivityChildren"),z(is,"retryActivityComponentWithoutHydrating"),z(ls,"updateActivityComponent"),z(as,"markRef"),z(ss,"updateFunctionComponent"),z(us,"replayFunctionComponent"),z(cs,"updateClassComponent"),z(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,j(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:J(t,t.stateNode.containerInfo),Bo(0,Qo,e.memoizedState.cache),Ao();break;case 27:case 5:te(t);break;case 4:J(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),j(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===C){t.tag=14,t=Za(null,t,e,o,n);break e}}throw t=A(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(J(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(K.current).createElement(n))[Ye]=t,o[Xe]=e,Od(o,n,e),at(o),t.stateNode=o):t.memoizedState=Rh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return te(t),null===e&&So&&(o=t.stateNode=fh(t.type,t.pendingProps,K.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)),te(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 J(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?Me():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),Z(),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(ne(t),n=K.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=q.current,Ro(t)?zo(t):(e=fh(i,o,n),t.stateNode=e,Ts(t))}return Rs(t),null;case 5:if(ne(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=q.current,Ro(t))zo(t);else{var a=jd(K.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(Od(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=K.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 Z(),null===e&&Sd(t.stateNode.containerInfo),Rs(t),null;case 10:return Ho(t.type),Rs(t),null;case 19:if(W(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 j(el,1&el.current|2),So&&yo(t,o.treeForkCount),t.child}e=e.sibling}null!==o.tail&&pe()>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*pe()-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=pe(),e.sibling=null,n=el.current,j(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&&W(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),Z(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return ne(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 W(el),null;case 4:return Z(),null;case 10:return Ho(t.type),null;case 22:case 23:return Zi(t),Gi(),null!==e&&W(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),Z();break;case 26:case 27:case 5:ne(t);break;case 4:Z();break;case 31:null!==t.memoizedState&&Zi(t);break;case 13:Zi(t);break;case 19:W(el);break;case 10:Ho(t.type);break;case 22:case 23:Zi(t),Gi(),null!==e&&W(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 Ms(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 Os(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]);Od(t,r,n),t[Ye]=e,t[Xe]=n}catch(i){Vc(e,e.return,i)}}P(ps,"fu"),P(fs,"pu"),P(gs,"mu"),P(ms,"hu"),P(ys,"gu"),P(bs,"yu"),P(vs,"vu"),P(ws,"bu"),P(_s,"wu"),P(xs,"Su"),P(Cs,"ku"),P(Ss,"Cu"),P(ks,"xu"),P(Ts,"Eu"),P(Ps,"Ru"),P(Es,"Iu"),P(zs,"Pu"),P(Is,"Tu"),P(Rs,"zu"),P(As,"_u"),P(Ds,"Nu"),P(Fs,"Fu"),P(Ls,"Du"),P(Ms,"Lu"),P(Os,"Ou"),P(Bs,"Au"),P(Hs,"Mu"),P(Ns,"Hu"),P(Ws,"Uu"),P(Us,"ju"),P(js,"Wu"),P($s,"$u"),P(Vs,"Vu"),P(Gs,"Bu"),P(qs,"qu"),z(ps,"mountSuspenseOffscreenState"),z(fs,"getRemainingWorkInPrimaryTree"),z(gs,"updateSuspenseComponent"),z(ms,"mountSuspensePrimaryChildren"),z(ys,"mountWorkInProgressOffscreenFiber"),z(bs,"retrySuspenseComponentWithoutHydrating"),z(vs,"scheduleSuspenseWorkOnFiber"),z(ws,"initSuspenseListRenderState"),z(_s,"updateSuspenseListComponent"),z(xs,"bailoutOnAlreadyFinishedWork"),z(Cs,"checkScheduledUpdateOrContext"),z(Ss,"attemptEarlyBailoutIfNoScheduledUpdate"),z(ks,"beginWork"),z(Ts,"markUpdate"),z(Ps,"preloadInstanceAndSuspendIfNeeded"),z(Es,"preloadResourceAndSuspendIfNeeded"),z(zs,"scheduleRetryEffect"),z(Is,"cutOffTailIfNeeded"),z(Rs,"bubbleProperties"),z(As,"completeWork"),z(Ds,"unwindWork"),z(Fs,"unwindInterruptedWork"),z(Ls,"commitHookEffectListMount"),z(Ms,"commitHookEffectListUnmount"),z(Os,"commitClassCallbacks"),z(Bs,"safelyCallComponentWillUnmount"),z(Hs,"safelyAttachRef"),z(Ns,"safelyDetachRef"),z(Ws,"commitHostMount"),z(Us,"commitHostUpdate"),z(js,"isHostParent"),z($s,"getHostSibling"),z(Vs,"insertOrAppendPlacementNodeIntoContainer"),z(Gs,"insertOrAppendPlacementNode"),z(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&&Os(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}P(Zs,"Ju"),P(eu,"Zu"),P(tu,"es"),z(Zs,"commitBeforeMutationEffects"),z(eu,"commitLayoutEffectOnFiber"),z(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(Ce&&"function"==typeof Ce.onCommitFiberUnmount)try{Ce.onCommitFiberUnmount(xe,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:Ms(2,n,t),Xs||Ms(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}P(ou,"rs"),P(iu,"ls"),P(lu,"os"),P(au,"as"),P(su,"is"),P(uu,"us"),P(cu,"ss"),z(ou,"recursivelyTraverseDeletionEffects"),z(iu,"commitDeletionEffectsOnFiber"),z(lu,"commitActivityHydrationCallbacks"),z(au,"commitSuspenseHydrationCallbacks"),z(su,"getRetryCache"),z(uu,"attachSuspenseRetryListeners"),z(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&&(Ms(3,e,e.return),Ls(3,e),Ms(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"))),Od(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}Od(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}Od(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=pe()),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:Ms(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&&Os(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}}P(hu,"ds"),P(pu,"fs"),P(fu,"ps"),P(gu,"ms"),P(mu,"hs"),P(yu,"gs"),P(bu,"ys"),P(vu,"vs"),P(wu,"bs"),P(_u,"ws"),P(xu,"Ss"),P(Cu,"ks"),z(hu,"commitMutationEffectsOnFiber"),z(pu,"commitReconciliationEffects"),z(fu,"recursivelyResetForms"),z(gu,"recursivelyTraverseLayoutEffects"),z(mu,"recursivelyTraverseDisappearLayoutEffects"),z(yu,"recursivelyTraverseReappearLayoutEffects"),z(bu,"commitOffscreenPassiveMountEffects"),z(vu,"commitCachePassiveMountEffect"),z(wu,"recursivelyTraversePassiveMountEffects"),z(_u,"commitPassiveMountOnFiber"),z(xu,"recursivelyTraverseReconnectPassiveEffects"),z(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&&Ms(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:Ms(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:Ms(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}}}P(ku,"xs"),P(Tu,"Es"),P(Pu,"Rs"),P(Eu,"Is"),P(zu,"Ps"),P(Iu,"Ts"),P(Ru,"zs"),z(ku,"recursivelyAccumulateSuspenseyCommit"),z(Tu,"accumulateSuspenseyCommitOnFiber"),z(Pu,"detachAlternateSiblings"),z(Eu,"recursivelyTraversePassiveUnmountEffects"),z(zu,"commitPassiveUnmountOnFiber"),z(Iu,"recursivelyTraverseDisconnectPassiveEffects"),z(Ru,"commitPassiveUnmountEffectsInsideOfDeletedTree_begin");var Au={getCacheForType:z(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:z(function(){return Vo(Qo).controller.signal},"cacheSignal")},Du="function"==typeof WeakMap?WeakMap:Map,Fu=0,Lu=null,Mu=null,Ou=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!==Ou?Ou&-Ou:null!==F.T?hd():Ve()}function fc(){if(0===Yu)if(536870912&Ou&&!So)Yu=536870912;else{var e=Ie;!(3932160&(Ie<<=1))&&(Ie=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,Ou,Yu,!1)),Be(e,n),2&Fu&&e===Lu||(e===Lu&&(!(2&Fu)&&(Gu|=n),4===$u&&vc(e,Ou,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)||Fe(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-pe())){if(vc(o,t,Yu,!Nu),0!==De(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-pe():(4194048&i)===i?ec-pe():0;if(null!==(f=Xh(d,f)))return ac=i,e.cancelPendingCommit=f(Oc.bind(null,e,t,i,n,r,o,l,a,s,c,d,null,h,p)),void vc(e,i,l,!u)}Oc(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-ke(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!==Mu){if(0===Bu)var e=Mu.return;else Oo=Mo=null,_l(e=Mu),xi=null,Ci=0,e=Mu;for(;null!==e;)Fs(e.alternate,e),e=e.return;Mu=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,Mu=n=Jr(e.current,null),Ou=t,Bu=0,Hu=null,Nu=!1,Wu=Fe(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-ke(r),i=1<<o;t|=e[o],r&=~i}return ju=t,Ur(),n}function Cc(e,t){rl=null,F.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===Mu&&($u=1,ja(e,lo(t,e.current)))}function Sc(){var e=qi.current;return null===e||((4194048&Ou)===Ou?null===Yi:!!((62914560&Ou)===Ou||536870912&Ou)&&e===Yi)}function kc(){var e=F.H;return F.H=Ra,null===e?Ra:e}function Tc(){var e=F.A;return F.A=Au,e}function Pc(){$u=4,Nu||(4194048&Ou)!==Ou&&null!==qi.current||(Wu=!0),!(134217727&Vu)&&!(134217727&Gu)||null===Lu||vc(Lu,Ou,Yu,!1)}function Ec(e,t,n){var r=Fu;Fu|=2;var o=kc(),i=Tc();Lu===e&&Ou===t||(nc=null,xc(e,t)),t=!1;var l=$u;e:for(;;)try{if(0!==Bu&&null!==Mu){var a=Mu,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++,Oo=Mo=null,Fu=r,F.H=o,F.A=i,null===Mu&&(Lu=null,Ou=0,Ur()),l}function zc(){for(;null!==Mu;)Ac(Mu)}function Ic(e,t){var n=Fu;Fu|=2;var o=kc(),i=Tc();Lu!==e||Ou!==t?(nc=null,tc=pe()+500,xc(e,t)):Wu=Fe(e,t);e:for(;;)try{if(0!==Bu&&null!==Mu){t=Mu;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=z(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(Mu.tag){case 26:a=Mu.memoizedState;case 5:case 27:var s=Mu;if(a?Gh(a):s.stateNode.complete){Bu=0,Hu=null;var u=s.sibling;if(null!==u)Mu=u;else{var c=s.return;null!==c?(Mu=c,Lc(c)):Mu=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 Oo=Mo=null,F.H=o,F.A=i,Fu=n,null!==Mu?0:(Lu=null,Ou=0,Ur(),$u)}function Rc(){for(;null!==Mu&&!de();)Ac(Mu)}function Ac(e){var t=ks(e.alternate,e,ju);e.memoizedProps=e.pendingProps,null===t?Lc(e):Mu=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,Ou);break;case 11:t=us(n,t,t.pendingProps,t.type.render,t.ref,Ou);break;case 5:_l(t);default:Fs(n,t),t=ks(n,t=Mu=Zr(t,ju),ju)}e.memoizedProps=e.pendingProps,null===t?Lc(e):Mu=t}function Fc(e,t,n,r){Oo=Mo=null,_l(t),xi=null,Ci=0;var o=t.return;try{if(Ya(e,o,t,n,Ou))return $u=1,ja(e,lo(n,e.current)),void(Mu=null)}catch(i){if(null!==o)throw Mu=o,i;return $u=1,ja(e,lo(n,e.current)),void(Mu=null)}32768&t.flags?(So||1===r?e=!0:Wu||536870912&Ou?e=!1:(Nu=e=!0,(2===r||9===r||3===r||6===r)&&null!==(r=qi.current)&&13===r.tag&&(r.flags|=16384)),Mc(t,e)):Lc(t)}function Lc(e){var t=e;do{if(32768&t.flags)return void Mc(t,Nu);e=t.return;var n=As(t.alternate,t,ju);if(null!==n)return void(Mu=n);if(null!==(t=t.sibling))return void(Mu=t);Mu=t=e}while(null!==t);0===$u&&($u=5)}function Mc(e,t){do{var n=Ds(e.alternate,e);if(null!==n)return n.flags&=32767,void(Mu=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(Mu=e);Mu=e=n}while(null!==e);$u=6,Mu=null}function Oc(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&&(Mu=Lu=null,Ou=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(ye,function(){return jc(),null})):(e.callbackNode=null,e.callbackPriority=0),o=!!(13878&t.flags),13878&t.subtreeFlags||o){o=F.T,F.T=null,i=L.p,L.p=2,a=Fu,Fu|=4;try{Zs(e,t)}finally{Fu=a,L.p=i,F.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=F.T,F.T=null;var r=L.p;L.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,L.p=r,F.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=F.T,F.T=null;var r=L.p;L.p=2;var o=Fu;Fu|=4;try{eu(e,t.alternate,t)}finally{Fu=o,L.p=r,F.T=n}}oc=3}}function Nc(){if(4===oc||3===oc){oc=0,he();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,Ce&&"function"==typeof Ce.onCommitFiberRoot)try{Ce.onCommitFiberRoot(xe,t,void 0,!(128&~t.current.flags))}catch(s){}if(null!==r){t=F.T,o=L.p,L.p=2,F.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{F.T=t,L.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=F.T,i=L.p;try{L.p=32>n?32:n,F.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),Ce&&"function"==typeof Ce.onPostCommitFiberRoot)try{Ce.onPostCommitFiberRoot(xe,l)}catch(u){}return!0}finally{L.p=i,F.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))&&(Be(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),Be(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=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=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&&(Ou&n)===n&&(4===$u||3===$u&&(62914560&Ou)===Ou&&300>pe()-Zu?!(2&Fu)&&xc(e,0):qu|=n,Xu===Ou&&(Xu=0)),od(e)}function Yc(e,t){0===t&&(t=Me()),null!==(e=Vr(e,t))&&(Be(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 ue(e,t)}P(pc,"fc"),P(fc,"pc"),P(gc,"mc"),P(mc,"hc"),P(yc,"gc"),P(bc,"yc"),P(vc,"vc"),P(wc,"bc"),P(_c,"wc"),P(xc,"Sc"),P(Cc,"kc"),P(Sc,"Cc"),P(kc,"xc"),P(Tc,"Ec"),P(Pc,"Rc"),P(Ec,"Ic"),P(zc,"Pc"),P(Ic,"Tc"),P(Rc,"zc"),P(Ac,"_c"),P(Dc,"Nc"),P(Fc,"Fc"),P(Lc,"Dc"),P(Mc,"Lc"),P(Oc,"Oc"),P(Bc,"Ac"),P(Hc,"Mc"),P(Nc,"Hc"),P(Wc,"Uc"),P(Uc,"jc"),P(jc,"Wc"),P($c,"$c"),P(Vc,"Vc"),P(Gc,"Bc"),P(qc,"qc"),P(Yc,"Kc"),P(Xc,"Qc"),P(Kc,"Gc"),P(Qc,"Yc"),z(pc,"requestUpdateLane"),z(fc,"requestDeferredLane"),z(gc,"scheduleUpdateOnFiber"),z(mc,"performWorkOnRoot"),z(yc,"commitRootWhenReady"),z(bc,"isRenderConsistentWithExternalStores"),z(vc,"markRootSuspended"),z(wc,"flushSyncWork$1"),z(_c,"resetWorkInProgressStack"),z(xc,"prepareFreshStack"),z(Cc,"handleThrow"),z(Sc,"shouldRemainOnPreviousScreen"),z(kc,"pushDispatcher"),z(Tc,"pushAsyncDispatcher"),z(Pc,"renderDidSuspendDelayIfPossible"),z(Ec,"renderRootSync"),z(zc,"workLoopSync"),z(Ic,"renderRootConcurrent"),z(Rc,"workLoopConcurrentByScheduler"),z(Ac,"performUnitOfWork"),z(Dc,"replaySuspendedUnitOfWork"),z(Fc,"throwAndUnwindWorkLoop"),z(Lc,"completeUnitOfWork"),z(Mc,"unwindUnitOfWork"),z(Oc,"commitRoot"),z(Bc,"flushMutationEffects"),z(Hc,"flushLayoutEffects"),z(Nc,"flushSpawnedWork"),z(Wc,"releaseRootPooledCache"),z(Uc,"flushPendingEffects"),z(jc,"flushPassiveEffects"),z($c,"captureCommitPhaseErrorOnRoot"),z(Vc,"captureCommitPhaseError"),z(Gc,"attachPingListener"),z(qc,"pingSuspendedRoot"),z(Yc,"retryTimedOutBoundary"),z(Xc,"retryDehydratedSuspenseBoundary"),z(Kc,"resolveRetryWakeable"),z(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-ke(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=Ou,!(3&(i=De(r,r===Lu?i:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||Fe(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=pe(),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-ke(i),a=1<<l,s=o[l];-1===s?0!==(a&n)&&0===(a&r)||(o[l]=Le(a,t)):s<=t&&(e.expiredLanes|=a),i&=~a}if(n=Ou,n=De(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&&ce(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||Fe(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&ce(r),$e(n)){case 2:case 8:n=me;break;case 32:default:n=ye;break;case 268435456:n=ve}return r=ud.bind(null,e),n=ue(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&ce(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=Ou;return 0===(r=De(e,e===Lu?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(mc(e,r,t),sd(e,pe()),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?ue(ge,ld):ad()})}function hd(){if(0===rd){var e=ni;0===e&&(e=ze,!(261888&(ze<<=1))&&(ze=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:z(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}]})}}P(od,"rd"),P(id,"ld"),P(ld,"od"),P(ad,"ad"),P(sd,"id"),P(ud,"ud"),P(cd,"sd"),P(dd,"cd"),P(hd,"dd"),P(pd,"fd"),P(fd,"pd"),P(gd,"md"),z(od,"ensureRootIsScheduled"),z(id,"flushSyncWorkAcrossRoots_impl"),z(ld,"processRootScheduleInImmediateTask"),z(ad,"processRootScheduleInMicrotask"),z(sd,"scheduleTaskForRootDuringMicrotask"),z(ud,"performWorkOnRootViaSchedulerTask"),z(cd,"performSyncWorkOnRoot"),z(dd,"scheduleImmediateRootScheduleTask"),z(hd,"requestTransitionLane"),z(pd,"coerceFormActionProp"),z(fd,"createFormDataWithSubmitter"),z(gd,"extractEvents$1");for(var md=0;md<Mr.length;md++){var yd=Mr[md];Or(yd.toLowerCase(),"on"+(yd[0].toUpperCase()+yd.slice(1)))}Or(Er,"onAnimationEnd"),Or(zr,"onAnimationIteration"),Or(Ir,"onAnimationStart"),Or("dblclick","onDoubleClick"),Or("focusin","onFocus"),Or("focusout","onBlur"),Or(Rr,"onTransitionRun"),Or(Ar,"onTransitionStart"),Or(Dr,"onTransitionCancel"),Or(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]=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)}P(wd,"bd"),P(_d,"wd"),P(xd,"Sd"),z(wd,"processDispatchQueue"),z(_d,"listenToNonDelegatedEvent"),z(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&&Ot(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");_&&(On&&"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=Mn?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})}P(Sd,"Cd"),P(kd,"xd"),P(Td,"Ed"),P(Pd,"Rd"),P(Ed,"Id"),P(zd,"Pd"),P(Id,"Td"),z(Sd,"listenToAllSupportedEvents"),z(kd,"addTrappedEventListener"),z(Td,"dispatchEventForPluginEventSystem"),z(Pd,"createDispatchListener"),z(Ed,"accumulateTwoPhaseListeners"),z(zd,"getParent"),z(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":Mt(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 Md(e,t,n,o,i,l){switch(n){case"style":Mt(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 Od(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(Ot(t)){for(d in n)n.hasOwnProperty(d)&&void 0!==(i=n[d])&&Md(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(Ot(t)){for(var y in n)p=n[y],n.hasOwnProperty(y)&&void 0!==p&&!o.hasOwnProperty(y)&&Md(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||Md(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}P(Dd,"Nd"),P(Fd,"Fd"),P(Ld,"Dd"),P(Md,"Ld"),P(Od,"Od"),P(Bd,"Ad"),P(Hd,"Md"),P(Nd,"Hd"),z(Dd,"normalizeMarkupForTextOrAttribute"),z(Fd,"checkForUnmatchedText"),z(Ld,"setProp"),z(Md,"setPropOnCustomElement"),z(Od,"setInitialProperties"),z(Bd,"updateProperties"),z(Hd,"isLikelyStaticResource"),z(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}P(jd,"Wd"),P($d,"$d"),P(Vd,"Vd"),P(Gd,"Bd"),z(jd,"getOwnerDocumentFromRootContainer"),z($d,"getOwnHostContext"),z(Vd,"getChildHostContextProd"),z(Gd,"shouldSetTextContent");var qd=null;function Yd(){var e=window.event;return e&&"popstate"===e.type?e!==qd&&(qd=e,!0):(qd=null,!1)}P(Yd,"Kd"),z(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=z(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}P(Zd,"Jd"),P(eh,"Zd"),P(th,"ef"),P(nh,"tf"),P(rh,"nf"),P(oh,"rf"),P(ih,"lf"),P(lh,"of"),P(ah,"af"),P(sh,"uf"),P(uh,"sf"),P(ch,"cf"),z(Zd,"handleErrorInNextTick"),z(eh,"isSingletonScope"),z(th,"clearHydrationBoundary"),z(nh,"hideOrUnhideDehydratedBoundary"),z(rh,"clearContainerSparingly"),z(oh,"canHydrateInstance"),z(ih,"canHydrateTextInstance"),z(lh,"canHydrateHydrationBoundary"),z(ah,"isSuspenseInstancePending"),z(sh,"isSuspenseInstanceFallback"),z(uh,"registerSuspenseInstanceRetry"),z(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)}P(hh,"ff"),P(ph,"pf"),P(fh,"mf"),P(gh,"hf"),z(hh,"getNextHydratableInstanceAfterHydrationBoundary"),z(ph,"getParentHydrationBoundary"),z(fh,"resolveSingletonInstance"),z(gh,"releaseSingletonInstance");var mh=new Map,yh=new Set;function bh(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}P(bh,"vf"),z(bh,"getHoistableRoot");var vh=L.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)}P(wh,"wf"),P(_h,"Sf"),L.d={f:wh,r:_h,D:Sh,C:kh,L:Th,m:Ph,X:zh,S:Eh,M:Ih},z(wh,"flushSyncWork"),z(_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)&&(Od(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=Mh(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(Oh(i))||(Od(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=Mh(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(Oh(i)))return}Od(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),Od(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=Mh(e),i=r.get(o);i||((i=n.querySelector(Oh(o)))||(e=d({src:e,async:!0},t),(t=mh.get(o))&&Wh(e,t),at(i=n.createElement("script")),Od(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=Mh(e),i=r.get(o);i||((i=n.querySelector(Oh(o)))||(e=d({src:e,async:!0,type:"module"},t),(t=mh.get(o))&&Wh(e,t),at(i=n.createElement("script")),Od(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=K.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=Mh(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}),Od(t,"link",n),at(t),e.head.appendChild(t))}function Mh(e){return'[src="'+Tt(e)+'"]'}function Oh(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")),Od(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}),Od(l,"link",o),t.state.loading|=4,Hh(l,n.precedence,e),t.instance=l;case"script":return l=Mh(n.src),(i=e.querySelector(Oh(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")),Od(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)}P(Ch,"Cf"),P(Sh,"xf"),P(kh,"Ef"),P(Th,"Rf"),P(Ph,"If"),P(Eh,"Pf"),P(zh,"Tf"),P(Ih,"zf"),P(Rh,"_f"),P(Ah,"Nf"),P(Dh,"Ff"),P(Fh,"Df"),P(Lh,"Lf"),P(Mh,"Of"),P(Oh,"Af"),P(Bh,"Mf"),P(Hh,"Hf"),P(Nh,"Uf"),P(Wh,"jf"),z(Ch,"preconnectAs"),z(Sh,"prefetchDNS"),z(kh,"preconnect"),z(Th,"preload"),z(Ph,"preloadModule"),z(Eh,"preinitStyle"),z(zh,"preinitScript"),z(Ih,"preinitModuleScript"),z(Rh,"getResource"),z(Ah,"getStyleKey"),z(Dh,"getStylesheetSelectorFromKey"),z(Fh,"stylesheetPropsFromRawProps"),z(Lh,"preloadStylesheet"),z(Mh,"getScriptKey"),z(Oh,"getScriptSelectorFromKey"),z(Bh,"acquireResource"),z(Hh,"insertStylesheet"),z(Nh,"adoptPreloadPropsForStylesheet"),z(Wh,"adoptPreloadPropsForScript");var Uh=null;function jh(e,t,n){if(null===Uh){var r=new Map,o=Uh=new Map;o.set(n,r)}else(r=(o=Uh).get(n))||(r=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}),Od(i,"link",r),n.instance=i}null===e.stylesheets&&(e.stylesheets=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))}}P(jh,"$f"),P($h,"Vf"),P(Vh,"Bf"),P(Gh,"qf"),P(qh,"Kf"),z(jh,"getHydratableHoistableCache"),z($h,"mountHoistable"),z(Vh,"isHostHoistableType"),z(Gh,"preloadResource"),z(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()}}P(Xh,"Gf"),P(Kh,"Yf"),z(Xh,"waitForCommitToBeReady"),z(Kh,"onUnsuspend");var Qh=null;function Jh(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,Qh=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=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}}P(Jh,"Jf"),P(Zh,"Zf"),z(Jh,"insertSuspendedStylesheets"),z(Zh,"insertStylesheetIntoRoot");var ep={$$typeof:v,Provider:null,Consumer:null,_currentValue:O,_currentValue2:O,_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=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)}}P(tp,"tp"),P(np,"np"),P(rp,"rp"),P(op,"lp"),P(ip,"op"),P(lp,"ap"),P(ap,"ip"),P(sp,"up"),z(tp,"FiberRootNode"),z(np,"createFiberRoot"),z(rp,"getContextForSubtree"),z(op,"updateContainerImpl"),z(ip,"markRetryLaneImpl"),z(lp,"markRetryLaneIfNotHydrated"),z(ap,"attemptContinuousHydration"),z(sp,"attemptHydrationAtCurrentPriority");var up=!0;function cp(e,t,n,r){var o=F.T;F.T=null;var i=L.p;try{L.p=2,hp(e,t,n,r)}finally{L.p=i,F.T=o}}function dp(e,t,n,r){var o=F.T;F.T=null;var i=L.p;try{L.p=8,hp(e,t,n,r)}finally{L.p=i,F.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=Ae(i.pendingLanes);if(0!==l){var a=i;for(a.pendingLanes|=2,a.entangledLanes|=2;l;){var s=1<<31-ke(l);a.entanglements[1]|=s,l&=~s}od(i),!(6&Fu)&&(tc=pe()+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))}P(cp,"cp"),P(dp,"dp"),P(hp,"fp"),P(pp,"pp"),z(cp,"dispatchDiscreteEvent"),z(dp,"dispatchContinuousEvent"),z(hp,"dispatchEvent"),z(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(fe()){case ge:return 2;case me:return 8;case ye:case be:return 32;case ve:return 268435456;default:return 32}default:return 32}}P(gp,"hp"),P(mp,"gp"),z(gp,"findInstanceBlockingTarget"),z(mp,"getEventPriority");var yp=!1,bp=null,vp=null,wp=null,_p=new Map,xp=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)))}P(kp,"Ep"),P(Tp,"Rp"),P(Pp,"Ip"),P(Ep,"Pp"),P(zp,"Tp"),P(Ip,"zp"),P(Rp,"_p"),P(Ap,"Np"),z(kp,"clearIfContinuousEvent"),z(Tp,"accumulateOrCreateContinuousQueuedReplayableEvent"),z(Pp,"queueIfContinuousEvent"),z(Ep,"attemptExplicitHydrationTarget"),z(zp,"attemptReplayContinuousQueuedEvent"),z(Ip,"attemptReplayContinuousQueuedEventInMap"),z(Rp,"replayUnblockedEvents"),z(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)}P(t,"n"),z(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 Mp(){function e(e){e.canIntercept&&"react-transition"===e.info&&e.intercept({handler:z(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(P(e,"e"),P(t,"n"),P(n,"r"),z(e,"handleNavigate"),z(t,"handleNavigateComplete"),z(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 Op(e){this._internalRoot=e}function Bp(e){this._internalRoot=e}P(Fp,"Dp"),P(Lp,"Lp"),P(Mp,"Op"),P(Op,"Ap"),P(Bp,"Mp"),z(Fp,"scheduleReplayQueueIfNeeded"),z(Lp,"retryIfBlockedOn"),z(Mp,"defaultOnDefaultTransitionIndicator"),z(Op,"ReactDOMRoot"),Bp.prototype.render=Op.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=Op.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}},z(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"));L.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:F,reconcilerVersion:"19.2.4"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Wp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wp.isDisabled&&Wp.supportsFiber)try{xe=Wp.inject(Np),Ce=Wp}catch(jp){}}return U.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,Mp),e[Ke]=t.current,Sd(e),new Op(t)},U.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,Mp)).context=rp(null),n=t.current,(l=Di(i=je(i=pc()))).callback=null,Fi(n,l,i),n=i,t.current.lanes=n,Be(t,n),od(t),e[Ke]=t.current,Sd(e),new Bp(t)},U.version="19.2.4",U}function ne(){if(K)return W.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 P(e,"e"),K=1,z(e,"checkDCE"),e(),W.exports=te(),W.exports}P(Z,"N$1"),P(ee,"F$1"),P(te,"D$1"),P(ne,"L$1"),z(Z,"requireReactDom_production"),z(ee,"requireReactDom"),z(te,"requireReactDomClient_production"),z(ne,"requireClient");var re,oe,ie=ne(),le={exports:{}},ae={};function se(){if(re)return ae;re=1;var e=Symbol.for("react.transitional.element"),t=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 P(n,"r"),z(n,"jsxProd"),ae.Fragment=t,ae.jsx=n,ae.jsxs=n,ae}function ue(){return oe||(oe=1,le.exports=se()),le.exports}P(se,"j$1"),P(ue,"W"),z(se,"requireReactJsxRuntime_production"),z(ue,"requireJsxRuntime");var ce=ue(),de=ee();function he(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 pe(e){e.stopPropagation()}function fe(e,t="instant"){e?.scrollIntoView({inline:"nearest",block:"nearest",behavior:t})}function ge(e){let t=!1;const n={...e,preventGridDefault(){t=!0},isGridDefaultPrevented:P(()=>t,"isGridDefaultPrevented")};return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),n}P(he,"B"),P(pe,"q$1"),P(fe,"K$1"),P(ge,"Q$1"),z(he,"getColSpan"),z(pe,"stopPropagation"),z(fe,"scrollIntoView"),z(ge,"createCellEvent");const me=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 ye(e){return(e.ctrlKey||e.metaKey)&&"Control"!==e.key}function be(e,t){return(!ye(e)||86===e.keyCode&&!t)&&!me.has(e.key)}function ve({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 we(e){const t="rtl"===e;return{leftKey:t?"ArrowRight":"ArrowLeft",rightKey:t?"ArrowLeft":"ArrowRight"}}function _e(e){return e.map(({key:e,idx:t,minWidth:n,maxWidth:r})=>ce.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 xe({selectedPosition:e,columns:t,rows:n}){return Ce(t[e.idx],n[e.rowIdx])}function Ce(e,t){return null!=e.renderEditCell&&!1!==("function"==typeof e.editable?e.editable(t):e.editable)}function Se({rows:e,topSummaryRows:t,bottomSummaryRows:n,rowIdx:r,mainHeaderRowIdx:o,lastFrozenColumnIndex:i,column:l}){const a=t?.length??0;return r===o?he(l,i,{type:"HEADER"}):t&&r>o&&r<=a+o?he(l,i,{type:"SUMMARY",row:t[r+a]}):r>=0&&r<e.length?he(l,i,{type:"ROW",row:e[r]}):n?he(l,i,{type:"SUMMARY",row:n[r-e.length]}):void 0}function ke({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=z(e=>{for(const t of o){const n=t.idx;if(n>m)break;const r=Se({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=z(e=>e.level+u,"getParentRowIdx"),_=z(()=>{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 Te({maxColIdx:e,minRowIdx:t,maxRowIdx:n,selectedPosition:{rowIdx:r,idx:o},shiftKey:i}){return i?0===o&&r===t:o===e&&r===n}P(ye,"Y$1"),z(ye,"isCtrlKeyHeldDown"),P(be,"X$1"),P(ve,"J$1"),P(we,"Z$1"),z(be,"isDefaultCellInput"),z(ve,"onEditorNavigation"),z(we,"getLeftRightKey"),P(_e,"ee$1"),P(xe,"te$1"),P(Ce,"ne$1"),P(Se,"re$1"),P(ke,"le$1"),P(Te,"oe$1"),z(_e,"renderMeasuringCells"),z(xe,"isSelectedCellEditable"),z(Ce,"isCellEditableUtil"),z(Se,"getSelectedCellColSpan"),z(ke,"getNextSelectedCellPosition"),z(Te,"canExitGrid");const Pe="rdg-cell rdg-7-0-0-beta-58-85c48527",Ee="rdg-cell-frozen rdg-7-0-0-beta-58-17a9a6d4";function ze(e){return{"--rdg-grid-row-start":e}}function Ie(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 Re(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 Ae(...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 De(e,...t){return Ae(Pe,{[Ee]:e.frozen},...t)}P(ze,"ue"),P(Ie,"se$1"),P(Re,"ce"),P(Ae,"de$1"),P(De,"fe"),z(ze,"getRowStyle"),z(Ie,"getHeaderCellStyle"),z(Re,"getCellStyle"),z(Ae,"classnames"),z(De,"getCellClassname");const{min:Fe,max:Le,floor:Me,sign:Oe,abs:Be}=Math;function He(e){if("function"!=typeof e)throw new Error("Please specify the rowKeyGetter prop to use selection")}function Ne(e,{minWidth:t,maxWidth:n}){return e=Le(e,t),"number"==typeof n&&n>=t?Fe(e,n):e}function We(e,t){return void 0===e.parent?t:e.level-e.parent.level}function Ue({onChange:e,indeterminate:t,...n}){function r(t){e(t.target.checked,t.nativeEvent.shiftKey)}return P(r,"l"),z(r,"handleChange"),ce.jsx("input",{ref:z(e=>{e&&(e.indeterminate=!0===t)},"ref"),type:"checkbox",className:"rdg-checkbox-input rdg-7-0-0-beta-58-3b807ead",onChange:r,...n})}function je(e){try{return e.row[e.column.key]}catch{return null}}P(He,"ve"),P(Ne,"be"),P(We,"we"),z(He,"assertIsValidKeyGetter"),z(Ne,"clampColumnWidth"),z(We,"getHeaderCellRowSpan"),P(Ue,"Se"),P(je,"ke"),z(Ue,"renderCheckbox"),z(je,"renderValue");const $e=O.createContext(void 0);function Ve(){return O.useContext($e)}function Ge({value:e,tabIndex:t,indeterminate:n,disabled:r,onChange:o,"aria-label":i,"aria-labelledby":l}){return(0,Ve().renderCheckbox)({"aria-label":i,"aria-labelledby":l,tabIndex:t,indeterminate:n,disabled:r,checked:e,onChange:o})}P(Ve,"xe"),P(Ge,"Ee"),z(Ve,"useDefaultRenderers"),z(Ge,"SelectCellFormatter");const qe=O.createContext(void 0),Ye=O.createContext(void 0);function Xe(){const e=O.useContext(qe),t=O.useContext(Ye);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}}P(Xe,"Pe"),z(Xe,"useRowSelection");const Ke=O.createContext(void 0),Qe=O.createContext(void 0);function Je(){const e=O.useContext(Ke),t=O.useContext(Qe);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}}P(Je,"_e"),z(Je,"useHeaderRowSelection");const Ze="rdg-select-column";function et(e){const{isIndeterminate:t,isRowSelected:n,onRowSelectionChange:r}=Je();return ce.jsx(Ge,{"aria-label":"Select All",tabIndex:e.tabIndex,indeterminate:t,value:n,onChange:z(e=>{r({checked:!t&&e})},"onChange")})}function tt(e){const{isRowSelectionDisabled:t,isRowSelected:n,onRowSelectionChange:r}=Xe();return ce.jsx(Ge,{"aria-label":"Select",tabIndex:e.tabIndex,disabled:t,value:n,onChange:z((t,n)=>{r({row:e.row,checked:t,isShiftClick:n})},"onChange")})}function nt(e){const{isRowSelected:t,onRowSelectionChange:n}=Xe();return ce.jsx(Ge,{"aria-label":"Select Group",tabIndex:e.tabIndex,value:t,onChange:z(t=>{n({row:e.row,checked:t,isShiftClick:!1})},"onChange")})}P(et,"Fe"),P(tt,"De"),P(nt,"Le"),z(et,"HeaderRenderer"),z(tt,"SelectFormatter"),z(nt,"SelectGroupFormatter");const rt={key:Ze,name:"",width:35,minWidth:35,maxWidth:35,resizable:!1,sortable:!1,frozen:!0,renderHeaderCell:P(e=>ce.jsx(et,{...e}),"renderHeaderCell"),renderCell:P(e=>ce.jsx(tt,{...e}),"renderCell"),renderGroupCell:P(e=>ce.jsx(nt,{...e}),"renderGroupCell")};function ot({column:e,sortDirection:t,priority:n}){return e.sortable?ce.jsx(it,{sortDirection:t,priority:n,children:e.name}):e.name}function it({sortDirection:e,priority:t,children:n}){const r=Ve().renderSortStatus;return ce.jsxs("span",{className:"rdg-7-0-0-beta-58-56a248e4",children:[ce.jsx("span",{className:"rdg-header-sort-name rdg-7-0-0-beta-58-7fad8c83",children:n}),ce.jsx("span",{children:r({sortDirection:e,priority:t})})]})}function lt({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??je,c=t?.renderHeaderCell??ot,d=t?.sortable??!1,h=t?.resizable??!1,p=t?.draggable??!1,{columns:f,colSpanColumns:g,lastFrozenColumnIndex:m,headerRowsCount:y}=O.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)}}P(o,"o"),o(e,1),z(o,"collectColumns"),r.sort(({key:e,frozen:t},{key:n,frozen:r})=>e===Ze?-1:n===Ze?1:t?r?0:-1:r?1:0);const i=[];return r.forEach((e,t)=>{e.idx=t,at(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:_}=O.useMemo(()=>{const e=new Map;let t=0,r=0;const o=[];for(const l of f){let r=n(l);r="number"==typeof r?Ne(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]),[x,C]=O.useMemo(()=>{if(!i)return[0,f.length-1];const e=o+w,t=o+r,n=f.length-1,l=Fe(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[Le(l,a-1),Fe(n,s+1)]},[_,f,m,o,w,r,i]);return{columns:f,colSpanColumns:g,colOverscanStartIdx:x,colOverscanEndIdx:C,templateColumns:b,layoutCssVars:v,headerRowsCount:y,lastFrozenColumnIndex:m,totalFrozenColumnWidth:w}}function at(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,at(r,t,n-1)}}function st(e,t,n,r,o,i,l,a,s){const[u,c]=O.useState(null),[d,h]=O.useState(null),[p,f]=O.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=ut(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=ut(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(de.flushSync(()=>{if(g){const e=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:ut(r,o);void 0!==l&&l!==t&&a(e,l)}}return P(w,"k"),P(_,"C"),O.useLayoutEffect(w),z(w,"updateMeasuredAndResizedWidths"),z(_,"handleColumnResize"),{gridTemplateColumns:v,handleColumnResize:_}}function ut(e,t){const n=`[data-measuring-cell-key="${CSS.escape(t)}"]`;return e.current?.querySelector(n)?.getBoundingClientRect().width}function ct(){const e=O.useRef(null),[t,n]=O.useState(1),[r,o]=O.useState(1),[i,l]=O.useState(0);return O.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;de.flushSync(()=>{n(r.inlineSize),o(r.blockSize),l(a-i)})});return p.observe(e.current),()=>{p.disconnect()}},[]),[e,t,r,i]}function dt(e){const t=O.useRef(e);O.useLayoutEffect(()=>{t.current=e});const n=O.useCallback((...e)=>{t.current(...e)},[]);return e?n:e}function ht(e){const[t,n]=O.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 P(r,"l"),t&&!e&&n(!1),z(r,"onFocus"),{tabIndex:e&&!t?0:-1,childTabIndex:e?0:-1,onFocus:e?r:void 0}}function pt({columns:e,colSpanColumns:t,rows:n,topSummaryRows:r,bottomSummaryRows:o,colOverscanStartIdx:i,colOverscanEndIdx:l,lastFrozenColumnIndex:a,rowOverscanStartIdx:s,rowOverscanEndIdx:u}){const c=O.useMemo(()=>{if(0===i)return 0;let e=i;const l=z((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,he(i,a,{type:"HEADER"})))break;for(let e=s;e<=u;e++){const r=n[e];if(l(t,he(i,a,{type:"ROW",row:r})))break}if(null!=r)for(const e of r)if(l(t,he(i,a,{type:"SUMMARY",row:e})))break;if(null!=o)for(const e of o)if(l(t,he(i,a,{type:"SUMMARY",row:e})))break}return e},[s,u,n,r,o,i,a,t]);return O.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 ft({rows:e,rowHeight:t,clientHeight:n,scrollTop:r,enableVirtualization:o}){const{totalRowHeight:i,gridTemplateRows:l,getRowTop:a,getRowHeight:s,findRowIdx:u}=O.useMemo(()=>{if("number"==typeof t)return{totalRowHeight:t*e.length,gridTemplateRows:` repeat(${e.length}, ${t}px)`,getRowTop:z(e=>e*t,"getRowTop"),getRowHeight:z(()=>t,"getRowHeight"),findRowIdx:z(e=>Me(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=z(t=>Le(0,Fe(e.length-1,t)),"validateRowIdx");return{totalRowHeight:n,gridTemplateRows:r,getRowTop:z(e=>l[a(e)].top,"getRowTop"),getRowHeight:z(e=>l[a(e)].height,"getRowHeight"),findRowIdx(e){let t=0,n=l.length-1;for(;t<=n;){const r=t+Me((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=Le(0,o-t),d=Fe(e.length-1,i+t)}return{rowOverscanStartIdx:c,rowOverscanEndIdx:d,totalRowHeight:i,gridTemplateRows:l,getRowTop:a,getRowHeight:s,findRowIdx:u}}P(ot,"Ae"),P(it,"Me"),z(ot,"renderHeaderCell"),z(it,"SortableHeaderCell"),P(lt,"He"),P(at,"Ue"),P(st,"je"),P(ut,"We"),P(ct,"$e"),P(dt,"Ve"),P(ht,"Be"),P(pt,"qe"),P(ft,"Ke"),z(lt,"useCalculatedColumns"),z(at,"updateColumnParent"),z(st,"useColumnWidths"),z(ut,"measureColumnWidth"),z(ct,"useGridDimensions"),z(dt,"useLatestFunc"),z(ht,"useRovingTabIndex"),z(pt,"useViewportColumns"),z(ft,"useViewportRows");const gt="rdg-cell-dragged-over rdg-7-0-0-beta-58-35ccb4c8";function mt({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:_}=ht(n),{cellClass:x}=e;l=De(e,{[gt]:r},"function"==typeof x?x(o):x,l);const C=Ce(e,o);function S(t){m({rowIdx:i,idx:e.idx},{enableEditor:t})}function k(t,n){let r=!1;if(n){const l=ge(t);n({rowIdx:i,row:o,column:e,selectCell:S},l),r=l.isGridDefaultPrevented()}return r}function T(e){a?.(e),k(e,s)||S()}function E(e){u?.(e),k(e,c)}function I(e){d?.(e),k(e,h)||S(!0)}function R(e){p?.(e),k(e,f)}function A(t){g(e,t)}return P(S,"E"),P(k,"R"),P(T,"I"),P(E,"P"),P(I,"T"),P(R,"z"),P(A,"_"),z(S,"selectCellWrapper"),z(k,"handleMouseEvent"),z(T,"handleMouseDown"),z(E,"handleClick"),z(I,"handleDoubleClick"),z(R,"handleContextMenu"),z(A,"handleRowChange"),ce.jsx("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":n,"aria-readonly":!C||void 0,tabIndex:v,className:l,style:{...Re(e,t),...y},onClick:E,onMouseDown:T,onDoubleClick:I,onContextMenu:R,onFocus:_,...b,children:e.renderCell({column:e,row:o,rowIdx:i,isCellEditable:C,tabIndex:w,onRowChange:A})})}P(mt,"Ge"),z(mt,"Cell");const yt=O.memo(mt);function bt(e,t){return ce.jsx(yt,{...t},e)}P(bt,"Xe"),z(bt,"defaultRenderCell");const vt="object"==typeof scheduler&&"function"==typeof scheduler.postTask;function wt({column:e,colSpan:t,row:n,rowIdx:r,onRowChange:o,closeEditor:i,onKeyDown:l,navigate:a}){const s=O.useRef(void 0),u=O.useRef(void 0),c=O.useRef(void 0),d=e.editorOptions?.commitOnOutsideClick??!0,h=O.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=ge(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):ve(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)}P(p,"m"),P(f,"h"),P(g,"y"),P(m,"v"),O.useLayoutEffect(()=>{if(d)return z(e,"onWindowCaptureMouseDown"),z(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,vt){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()}P(e,"e"),P(t,"n")},[d]),z(p,"cancelTask"),z(f,"handleKeyDown"),z(g,"onClose"),z(m,"onEditorRowChange");const{cellClass:y}=e,b=De(e,"rdg-editor-container",!e.editorOptions?.displayCellContent&&"rdg-7-0-0-beta-58-46f9ea88","function"==typeof y?y(n):y);return ce.jsx("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":!0,className:b,style:Re(e,t),onKeyDown:f,onMouseDownCapture:p,children:null!=e.renderEditCell&&ce.jsxs(ce.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 _t({column:e,rowIdx:t,isCellSelected:n,selectCell:r}){const{tabIndex:o,onFocus:i}=ht(n),{colSpan:l}=e,a=We(e,t),s=e.idx+1;function u(){r({idx:e.idx,rowIdx:t})}return P(u,"c"),z(u,"onMouseDown"),ce.jsx("div",{role:"columnheader","aria-colindex":s,"aria-colspan":l,"aria-rowspan":a,"aria-selected":n,tabIndex:o,className:Ae(Pe,e.headerCellClass),style:{...Ie(e,t,a),gridColumnStart:s,gridColumnEnd:s+l},onFocus:i,onMouseDown:u,children:e.name})}P(wt,"Ze"),P(_t,"et$1"),z(wt,"EditCell"),z(_t,"GroupedColumnHeaderCell");const xt="rdg-7-0-0-beta-58-2a7e240d",Ct="rdg-cell-resizable rdg-7-0-0-beta-58-1893dc0f",St="rdg-cell-draggable",kt="rdg-cell-dragging rdg-7-0-0-beta-58-3e1a4ad4",Tt="rdg-cell-drag-over rdg-7-0-0-beta-58-51abd8b8";function Pt({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]=O.useState(!1),m=O.useRef(null),y=h===e.key,b=We(e,n),{tabIndex:v,childTabIndex:w,onFocus:_}=ht(c||r),x=a?.findIndex(t=>t.columnKey===e.key),C=void 0!==x&&x>-1?a[x]:void 0,S=C?.direction,k=void 0!==C&&a.length>1?x+1:void 0,T=S&&!k?"ASC"===S?"ascending":"descending":void 0,{sortable:E,resizable:I,draggable:R}=e,A=De(e,e.headerCellClass,{[xt]:E,[Ct]:I,[St]:R,[kt]:y,[Tt]:f});function D(t){if(null==s)return;const{sortDescendingFirst:n}=e;if(void 0===C){const r={columnKey:e.key,direction:n?"DESC":"ASC"};s(a&&t?[...a,r]:[r])}else{let r;if((!0===n&&"DESC"===S||!0!==n&&"ASC"===S)&&(r={columnKey:e.key,direction:"ASC"===S?"DESC":"ASC"}),t){const e=[...a];r?e[x]=r:e.splice(x,1),s(e)}else s(r?[r]:[])}}function F(e){_?.(e),c&&u({idx:0,rowIdx:n})}function L(){u({idx:e.idx,rowIdx:n})}function M(e){E&&D(e.ctrlKey||e.metaKey)}function B(t){const{key:n}=t;if(!E||" "!==n&&"Enter"!==n){if(I&&ye(t)&&("ArrowLeft"===n||"ArrowRight"===n)){t.stopPropagation();const{width:r}=t.currentTarget.getBoundingClientRect(),{leftKey:i}=we(d),l=Ne(r+(n===i?-10:10),e);l!==r&&o(e,l)}}else t.preventDefault(),D(t.ctrlKey||t.metaKey)}function H(t){de.flushSync(()=>{p(e.key)}),t.dataTransfer.setDragImage(m.current,0,0),t.dataTransfer.dropEffect="move"}function N(){p(void 0)}function W(e){e.preventDefault(),e.dataTransfer.dropEffect="move"}function U(t){g(!1),t.preventDefault(),l?.(h,e.key)}function j(e){zt(e)&&g(!0)}function $(e){zt(e)&&g(!1)}let V,G;P(D,"F"),P(F,"D"),P(L,"L"),P(M,"O"),P(B,"A"),P(H,"M"),P(N,"H"),P(W,"U"),P(U,"j"),P(j,"W"),P($,"B"),z(D,"onSort"),z(F,"handleFocus"),z(L,"onMouseDown"),z(M,"onClick"),z(B,"onKeyDown"),z(H,"onDragStart"),z(N,"onDragEnd"),z(W,"onDragOver"),z(U,"onDrop"),z(j,"onDragEnter"),z($,"onDragLeave"),R&&(V={draggable:!0,onDragStart:H,onDragEnd:N},void 0!==h&&h!==e.key&&(G={onDragOver:W,onDragEnter:j,onDragLeave:$,onDrop:U}));const q={...Ie(e,n,b),...Re(e,t)},Y=e.renderHeaderCell({column:e,sortDirection:S,priority:k,tabIndex:w});return ce.jsxs(ce.Fragment,{children:[y&&ce.jsx("div",{ref:m,style:q,className:De(e,e.headerCellClass,"rdg-7-0-0-beta-58-c8d7aa64"),children:Y}),ce.jsxs("div",{role:"columnheader","aria-colindex":e.idx+1,"aria-colspan":t,"aria-rowspan":b,"aria-selected":r,"aria-sort":T,tabIndex:v,className:A,style:q,onMouseDown:L,onFocus:F,onClick:M,onKeyDown:B,...V,...G,children:[Y,I&&ce.jsx(Et,{direction:d,column:e,onColumnResize:o,onColumnResizeEnd:i})]})]})}function Et({direction:e,column:t,onColumnResize:n,onColumnResizeEnd:r}){const o=O.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=Ne(u,t),l>0&&u!==l&&n(t,u)}function s(){r(),o.current=void 0}function u(){n(t,"max-content")}return P(l,"i"),P(a,"u"),P(s,"s"),P(u,"c"),z(l,"onPointerDown"),z(a,"onPointerMove"),z(s,"onLostPointerCapture"),z(u,"onDoubleClick"),ce.jsx("div",{"aria-hidden":!0,className:"rdg-resize-handle rdg-7-0-0-beta-58-4e60db91",onClick:pe,onPointerDown:l,onPointerMove:a,onLostPointerCapture:s,onDoubleClick:u})}function zt(e){const t=e.relatedTarget;return!e.currentTarget.contains(t)}P(Pt,"at$1"),P(Et,"it$1"),P(zt,"ut$1"),z(Pt,"HeaderCell"),z(Et,"ResizeHandle"),z(zt,"isEventPertinent");const It="rdg-row rdg-7-0-0-beta-58-3c083f1b",Rt="rdg-7-0-0-beta-58-3fe773c3",At="rdg-row-selected",Dt="rdg-7-0-0-beta-58-97ce3fde",Ft="rdg-bottom-summary-row",Lt="rdg-header-row rdg-7-0-0-beta-58-0dbd5994";function Mt({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]=O.useState(),g=[];for(let m=0;m<n.length;m++){const e=n[m],y=he(e,s,{type:"HEADER"});void 0!==y&&(m+=y-1),g.push(ce.jsx(Pt,{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 ce.jsx("div",{role:"row","aria-rowindex":t,className:Ae(Lt,{[At]:-1===u},e),children:g})}P(Mt,"ht$1"),z(Mt,"HeaderRow");var Ot=O.memo(Mt);function Bt({rowIdx:e,level:t,columns:n,selectedCellIdx:r,selectCell:o}){const i=[],l=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(ce.jsx(_t,{column:n,rowIdx:e,isCellSelected:r===t,selectCell:o},t))}}}return ce.jsx("div",{role:"row","aria-rowindex":e,className:Lt,children:i})}P(Bt,"yt$1"),z(Bt,"GroupedColumnHeaderRow");var Ht=O.memo(Bt);function Nt({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=Ve().renderCell,_=dt((e,n)=>{m(e,t,n)});e=Ae(It,"rdg-row-"+(t%2==0?"even":"odd"),{[At]:-1===r},g?.(s,t),e);const x=[];for(let C=0;C<u.length;C++){const e=u[C],{idx:n}=e,o=he(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 ce.jsx(qe,{value:O.useMemo(()=>({isRowSelected:i,isRowSelectionDisabled:o}),[o,i]),children:ce.jsx("div",{role:"row",className:e,style:{...ze(n),...b},...v,children:x})})}P(Nt,"bt$1"),z(Nt,"Row");const Wt=O.memo(Nt);function Ut(e,t){return ce.jsx(Wt,{...t},e)}function jt({scrollToPosition:{idx:e,rowIdx:t},gridRef:n,setScrollToCellPosition:r}){const o=O.useRef(null);return O.useLayoutEffect(()=>{fe(o.current,"auto")}),O.useLayoutEffect(()=>{function e(){r(null)}P(e,"e"),z(e,"removeScrollToCell");const t=new IntersectionObserver(e,{root:n.current,threshold:1});return t.observe(o.current),()=>{t.disconnect()}},[n,r]),ce.jsx("div",{ref:o,style:{gridColumn:void 0===e?"1/-1":e+1,gridRow:void 0===t?"1/-1":t+2}})}function $t({sortDirection:e,priority:t}){return ce.jsxs(ce.Fragment,{children:[Vt({sortDirection:e}),Gt({priority:t})]})}function Vt({sortDirection:e}){return void 0===e?null:ce.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:ce.jsx("path",{d:"ASC"===e?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})})}function Gt({priority:e}){return e}P(Ut,"St$1"),P(jt,"kt$1"),z(Ut,"defaultRenderRow"),z(jt,"ScrollToCell"),P($t,"Ct$1"),P(Vt,"xt$1"),P(Gt,"Et$1"),z($t,"renderSortStatus"),z(Vt,"renderSortIcon"),z(Gt,"renderSortPriority");const qt="rdg-viewport-dragging rdg-7-0-0-beta-58-e9b0e1c9",Yt="rdg-7-0-0-beta-58-e9f55541";function Xt({column:e,colSpan:t,row:n,rowIdx:r,isCellSelected:o,selectCell:i}){const{tabIndex:l,childTabIndex:a,onFocus:s}=ht(o),{summaryCellClass:u}=e,c=De(e,"rdg-7-0-0-beta-58-d907aa87","function"==typeof u?u(n):u);function d(){i({rowIdx:r,idx:e.idx})}return P(d,"f"),z(d,"onMouseDown"),ce.jsx("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":o,tabIndex:l,className:c,style:Re(e,t),onMouseDown:d,onFocus:s,children:e.renderSummaryCell?.({column:e,row:n,tabIndex:a})})}P(Xt,"Pt$1"),z(Xt,"SummaryCell");var Kt=O.memo(Xt);function Qt({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=he(t,l,{type:"SUMMARY",row:n});void 0!==o&&(h+=o-1);const i=a===t.idx;d.push(ce.jsx(Kt,{column:t,colSpan:o,row:n,rowIdx:e,isCellSelected:i,selectCell:u},t.key))}return ce.jsx("div",{role:"row","aria-rowindex":c,className:Ae(It,"rdg-row-"+(e%2==0?"even":"odd"),"rdg-summary-row rdg-7-0-0-beta-58-0b90c82c",{[At]:-1===a,"rdg-top-summary-row rdg-7-0-0-beta-58-d0520eab":s,[Ft]:!s}),style:{...ze(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})}P(Qt,"zt$1"),z(Qt,"SummaryRow");var Jt=O.memo(Qt);function Zt(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:x,onCellKeyDown:C,onSelectedCellChange:S,onScroll:k,onColumnResize:T,onColumnsReorder:E,onFill:I,onCellCopy:R,onCellPaste:A,enableVirtualization:D,renderers:F,className:L,style:M,rowClass:B,headerRowClass:H,direction:N,role:W,"aria-label":U,"aria-labelledby":j,"aria-description":$,"aria-describedby":V,"aria-rowcount":G,"data-testid":q,"data-cy":Y}=e,X=Ve(),K=W??"grid",Q=s??35,J=u??("number"==typeof Q?Q:35),Z=c??("number"==typeof Q?Q:35),ee=F?.renderRow??X?.renderRow??Ut,te=F?.renderCell??X?.renderCell??bt,ne=F?.renderSortStatus??X?.renderSortStatus??$t,re=F?.renderCheckbox??X?.renderCheckbox??Ue,oe=F?.noRowsFallback??X?.noRowsFallback,ie=D??!0,le=N??"ltr",[ae,se]=O.useState(0),[ue,pe]=O.useState(0),[me,ve]=O.useState(()=>d??new Map),[Ce,Se]=O.useState(!1),[Pe,Ee]=O.useState(!1),[ze,Ie]=O.useState(void 0),[De,Fe]=O.useState(null),[Le,Me]=O.useState(!1),[Ne,We]=O.useState(-1),je=null!=d&&null!=h&&!Ce,Ge=je?d:me,qe=je?e=>{ve(e),h(e)}:ve,Xe=O.useCallback(e=>Ge.get(e.key)?.width??e.width,[Ge]),[Je,Ze,et,tt]=ct(),{columns:nt,colSpanColumns:rt,lastFrozenColumnIndex:ot,headerRowsCount:it,colOverscanStartIdx:at,colOverscanEndIdx:ut,templateColumns:ht,layoutCssVars:gt,totalFrozenColumnWidth:mt}=lt({rawColumns:n,defaultColumnOptions:b,getColumnWidth:Xe,scrollLeft:ue,viewportWidth:Ze,enableVirtualization:ie}),yt=o?.length??0,vt=i?.length??0,_t=yt+vt,xt=it+yt,Ct=it-1,St=-xt,kt=St+Ct,Tt=r.length+vt-1,[Pt,Et]=O.useState(()=>({idx:-1,rowIdx:St-1,mode:"SELECT"})),zt=O.useRef(null),It="treegrid"===K,At=it*J,Ft=_t*Z,Lt=et-At-Ft,Mt=null!=p&&null!=g,{leftKey:Bt,rightKey:Nt}=we(le),Wt=G??it+r.length+_t,Vt=O.useMemo(()=>({renderCheckbox:re,renderSortStatus:ne,renderCell:te}),[re,ne,te]),Gt=O.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:Xt,rowOverscanEndIdx:Kt,totalRowHeight:Qt,gridTemplateRows:Zt,getRowTop:nn,getRowHeight:rn,findRowIdx:on}=ft({rows:r,rowHeight:Q,clientHeight:Lt,scrollTop:ae,enableVirtualization:ie}),ln=pt({columns:nt,colSpanColumns:rt,colOverscanStartIdx:at,colOverscanEndIdx:ut,lastFrozenColumnIndex:ot,rowOverscanStartIdx:Xt,rowOverscanEndIdx:Kt,rows:r,topSummaryRows:o,bottomSummaryRows:i}),{gridTemplateColumns:an,handleColumnResize:sn}=st(nt,ln,ht,Je,Ze,Ge,qe,T,Se),un=It?-1:0,cn=nt.length-1,dn=Gn(Pt),hn=Yn(Pt),pn=J+Qt+Ft+tt,fn=dt(sn),gn=dt(On),mn=dt(E),yn=dt(y),bn=dt(v),vn=dt(w),wn=dt(_),_n=dt(x),xn=dt(En),Cn=dt(zn),Sn=dt(An),kn=dt(Kn),Tn=dt(Qn),Pn=O.useCallback((e=!0)=>{const t=en(Je.current);null!==t&&(e&&fe(t),t.focus({preventScroll:!0}))},[Je]);function En(e){if(!g)return;He(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 zn(e){if(!g)return;He(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(We(s),n?i.add(a):i.delete(a),o&&-1!==Ne&&Ne!==s&&Ne<r.length){const e=Oe(s-Ne);for(let t=Ne+e;t!==s;t+=e){const e=r[t];!0!==f?.(e)&&(n?i.add(l(e)):i.delete(l(e)))}}g(i)}function In(e){const{idx:t,rowIdx:n,mode:o}=Pt;if("EDIT"===o)return;if(C&&Vn(n)){const o=r[n],i=ge(e);if(C({mode:"SELECT",row:o,column:nt[t],rowIdx:n,selectCell:Kn},i),i.isGridDefaultPrevented())return}if(!(e.target instanceof Element))return;const i=null!==e.target.closest(".rdg-cell"),l=It&&e.target===zt.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:Mn(e)}}function Rn(e){const{scrollTop:t,scrollLeft:n}=e.currentTarget;de.flushSync(()=>{se(t),pe(Be(n))}),k?.(e)}function An(e,t,n){"function"==typeof a&&n!==r[t]&&a(r.with(t,n),{indexes:[t],column:e})}function Dn(){"EDIT"===Pt.mode&&An(nt[Pt.idx],Pt.rowIdx,Pt.row)}function Fn(e){if(!hn)return;const{idx:t,rowIdx:n}=Pt;R?.({row:r[n],column:nt[t]},e)}function Ln(e){if(!A||!a||!Xn(Pt))return;const{idx:t,rowIdx:n}=Pt,o=nt[t];An(o,n,A({row:r[n],column:o},e))}function Mn(e){if(!hn)return;const t=r[Pt.rowIdx],{key:n,shiftKey:o}=e;if(Mt&&o&&" "===n){He(l);const n=l(t);return zn({row:t,checked:!p.has(n),isShiftClick:!1}),void e.preventDefault()}Xn(Pt)&&be(e,null!=A)&&Et(({idx:e,rowIdx:n})=>({idx:e,rowIdx:n,mode:"EDIT",row:t,originalRow:t}))}function On(){Ce&&(h?.(Ge),Se(!1))}function Bn(e){e.preventDefault(),"mouse"===e.pointerType&&1!==e.buttons||(Ee(!0),e.currentTarget.setPointerCapture(e.pointerId))}function Hn(e){const t=Je.current,n=on(ae-(At+yt*Z)+e.clientY-t.getBoundingClientRect().top);Ie(n);const r=xt+n+1;fe(t.querySelector(`:scope > [aria-rowindex="${r}"] > [aria-colindex="${Pt.idx+1}"]`))}function Nn(){if(Ee(!1),void 0===ze)return;const{rowIdx:e}=Pt,[t,n]=e<ze?[e+1,ze+1]:[ze,e];jn(t,n),Ie(void 0)}function Wn(){Pn(!1)}function Un(e){e.stopPropagation(),jn(Pt.rowIdx+1,r.length)}function jn(e,t){if(null==a)return;const{rowIdx:n,idx:o}=Pt,i=nt[o],l=r[n],s=[...r],u=[];for(let a=e;a<t;a++)if(Xn({rowIdx:a,idx:o})){const e=I({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>=un&&e<=cn}function Vn(e){return e>=0&&e<r.length}function Gn({idx:e,rowIdx:t}){return t>=St&&t<=Tt&&$n(e)}function qn({idx:e,rowIdx:t}){return Vn(t)&&e>=0&&e<=cn}function Yn({idx:e,rowIdx:t}){return Vn(t)&&$n(e)}function Xn(e){return qn(e)&&xe({columns:nt,rows:r,selectedPosition:e})}function Kn(e,t){if(!Gn(e))return;Dn();const n=tn(Pt,e);if(t?.enableEditor&&Xn(e)){const t=r[e.rowIdx];Et({...e,mode:"EDIT",row:t,originalRow:t})}else n?fe(en(Je.current)):(Me(!0===t?.shouldFocusCell),Et({...e,mode:"SELECT"}));S&&!n&&S({rowIdx:e.rowIdx,row:Vn(e.rowIdx)?r[e.rowIdx]:void 0,column:nt[e.idx]})}function Qn({idx:e,rowIdx:t}){Kn({rowIdx:St+t-1,idx:e})}function Jn(e,t,n){const{idx:o,rowIdx:i}=Pt,l=dn&&-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 Nt:return{idx:o+1,rowIdx:i};case"Tab":return{idx:o+(n?-1:1),rowIdx:i};case"Home":return l?{idx:o,rowIdx:St}:{idx:0,rowIdx:t?St:i};case"End":return l?{idx:o,rowIdx:Tt}:{idx:cn,rowIdx:t?Tt:i};case"PageUp":{if(Pt.rowIdx===St)return Pt;const e=nn(i)+rn(i)-Lt;return{idx:o,rowIdx:e>0?on(e):0}}case"PageDown":{if(Pt.rowIdx>=r.length)return Pt;const e=nn(i)+Lt;return{idx:o,rowIdx:e<Qt?on(e):r.length-1}}default:return Pt}}function Zn(e){const{key:t,shiftKey:n}=e;let l="NONE";if("Tab"===t){if(Te({shiftKey:n,maxColIdx:cn,minRowIdx:St,maxRowIdx:Tt,selectedPosition:Pt}))return void Dn();l="CHANGE_ROW"}e.preventDefault();const a=Jn(t,ye(e),n);tn(Pt,a)||Kn(ke({moveUp:"ArrowUp"===t,moveNext:t===Nt||"Tab"===t&&!n,columns:nt,colSpanColumns:rt,rows:r,topSummaryRows:o,bottomSummaryRows:i,minRowIdx:St,mainHeaderRowIdx:kt,maxRowIdx:Tt,lastFrozenColumnIndex:ot,cellNavigationMode:l,currentPosition:Pt,nextPosition:a,isCellWithinBounds:Gn}),{shouldFocusCell:!0})}function er(e){if(void 0===ze)return;const{rowIdx:t}=Pt;return(t<ze?t<e&&e<=ze:t>e&&e>=ze)?Pt.idx:void 0}function tr(){if(null==I||"EDIT"===Pt.mode||!Yn(Pt))return;const{idx:e,rowIdx:t}=Pt,n=nt[e];if(null==n.renderEditCell||!1===n.editable)return;const o=t===Tt,i=Xe(n),l=n.colSpan?.({type:"ROW",row:r[t]})??1,{insetInlineStart:a,...s}=Re(n,l),u="calc(var(--rdg-drag-handle-size) * -0.5 + 1px)",c=n.idx+l-1===cn;return ce.jsx("div",{style:{...s,gridRowStart:xt+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:Ae("rdg-cell-drag-handle rdg-7-0-0-beta-58-bfba19bc",n.frozen&&"rdg-7-0-0-beta-58-7abddb3e"),onPointerDown:Bn,onPointerMove:Pe?Hn:void 0,onLostPointerCapture:Pe?Nn:void 0,onClick:Wn,onDoubleClick:Un})}function nr(e){if(!Yn(Pt)||Pt.rowIdx!==e||"SELECT"===Pt.mode)return;const{idx:t,row:n}=Pt,o=nt[t],i=he(o,ot,{type:"ROW",row:n}),l=o.editorOptions?.closeOnExternalRowChange??!0,a=z(e=>{Me(e),Et(({idx:e,rowIdx:t})=>({idx:e,rowIdx:t,mode:"SELECT"}))},"closeEditor"),s=z((e,t,n)=>{t?de.flushSync(()=>{An(o,Pt.rowIdx,e),a(n)}):Et(t=>({...t,row:e}))},"onRowChange");return l&&r[Pt.rowIdx]!==Pt.originalRow&&a(!1),ce.jsx(wt,{column:o,colSpan:i,row:n,rowIdx:e,onRowChange:s,closeEditor:a,onKeyDown:C,navigate:Zn},o.key)}function rr(e){const t=-1===Pt.idx?void 0:nt[Pt.idx];return void 0===t||Pt.rowIdx!==e||ln.includes(t)?ln:Pt.idx>ut?[...ln,t]:[...ln.slice(0,ot+1),t,...ln.slice(ot+1)]}function or(){const e=[],{idx:t,rowIdx:n}=Pt,o=hn&&n>Kt?Kt+1:Kt;for(let i=hn&&n<Xt?Xt-1:Xt;i<=o;i++){const o=i===Xt-1||i===Kt+1,a=o?n:i;let s=ln;const u=-1===t?void 0:nt[t];void 0!==u&&(s=o?[u]:rr(a));const c=r[a],d=xt+a+1;let h=a,g=!1;"function"==typeof l&&(h=l(c),g=p?.has(h)??!1),e.push(ee(h,{"aria-rowindex":xt+a+1,"aria-selected":Mt?g:void 0,rowIdx:a,row:c,viewportColumns:s,isRowSelectionDisabled:f?.(c)??!1,isRowSelected:g,onCellMouseDown:bn,onCellClick:vn,onCellDoubleClick:wn,onCellContextMenu:_n,rowClass:B,gridRowStart:d,selectedCellIdx:n===a?t:void 0,draggedOverCellIdx:er(a),lastFrozenColumnIndex:ot,onRowChange:Sn,selectCell:kn,selectedCellEditor:nr(a)}))}return e}P(En,"In"),P(zn,"Pn"),P(In,"Tn"),P(Rn,"zn"),P(An,"_n"),P(Dn,"Nn"),P(Fn,"Fn"),P(Ln,"Dn"),P(Mn,"Ln"),P(On,"On"),P(Bn,"An"),P(Hn,"Mn"),P(Nn,"Hn"),P(Wn,"Un"),P(Un,"jn"),P(jn,"Wn"),P($n,"$n"),P(Vn,"Vn"),P(Gn,"Bn"),P(qn,"qn"),P(Yn,"Kn"),P(Xn,"Qn"),P(Kn,"Gn"),P(Qn,"Yn"),P(Jn,"Xn"),P(Zn,"Jn"),P(er,"Zn"),P(tr,"er"),P(nr,"tr"),P(rr,"nr"),P(or,"rr"),O.useLayoutEffect(()=>{Le&&(null!==zt.current&&-1===Pt.idx?(zt.current.focus({preventScroll:!0}),fe(zt.current)):Pn(),Me(!1))},[Le,Pn,Pt.idx]),O.useImperativeHandle(t,()=>({element:Je.current,scrollToCell({idx:e,rowIdx:t}){const n=void 0!==e&&e>ot&&e<nt.length?e:void 0,r=void 0!==t&&Vn(t)?t:void 0;void 0===n&&void 0===r||Fe({idx:n,rowIdx:r})},selectCell:Kn})),z(En,"selectHeaderRow"),z(zn,"selectRow"),z(In,"handleKeyDown"),z(Rn,"handleScroll"),z(An,"updateRow"),z(Dn,"commitEditorChanges"),z(Fn,"handleCellCopy"),z(Ln,"handleCellPaste"),z(Mn,"handleCellInput"),z(On,"handleColumnResizeEnd"),z(Bn,"handleDragHandlePointerDown"),z(Hn,"handleDragHandlePointerMove"),z(Nn,"handleDragHandleLostPointerCapture"),z(Wn,"handleDragHandleClick"),z(Un,"handleDragHandleDoubleClick"),z(jn,"updateRows"),z($n,"isColIdxWithinSelectionBounds"),z(Vn,"isRowIdxWithinViewportBounds"),z(Gn,"isCellWithinSelectionBounds"),z(qn,"isCellWithinEditBounds"),z(Yn,"isCellWithinViewportBounds"),z(Xn,"isCellEditable"),z(Kn,"selectCell"),z(Qn,"selectHeaderCell"),z(Jn,"getNextPosition"),z(Zn,"navigate"),z(er,"getDraggedOverCellIdx"),z(tr,"getDragHandle"),z(nr,"getCellEditor"),z(rr,"getRowViewportColumns"),z(or,"getViewportRows"),(Pt.idx>cn||Pt.rowIdx>Tt)&&(Et({idx:-1,rowIdx:St-1,mode:"SELECT"}),Ie(void 0)),je&&me!==d&&ve(d);let ir=`repeat(${it}, ${J}px)`;yt>0&&(ir+=` repeat(${yt}, ${Z}px)`),r.length>0&&(ir+=Zt),vt>0&&(ir+=` repeat(${vt}, ${Z}px)`);const lr=-1===Pt.idx&&Pt.rowIdx!==St-1;return ce.jsxs("div",{role:K,"aria-label":U,"aria-labelledby":j,"aria-description":$,"aria-describedby":V,"aria-multiselectable":!!Mt||void 0,"aria-colcount":nt.length,"aria-rowcount":Wt,tabIndex:-1,className:Ae("rdg rdg-7-0-0-beta-58-ccd2e5d9",{[qt]:Pe},L),style:{...M,scrollPaddingInlineStart:Pt.idx>ot||void 0!==De?.idx?`${mt}px`:void 0,scrollPaddingBlock:Vn(Pt.rowIdx)||void 0!==De?.rowIdx?`${At+yt*Z}px ${vt*Z}px`:void 0,gridTemplateColumns:an,gridTemplateRows:ir,"--rdg-header-row-height":`${J}px`,"--rdg-scroll-height":`${pn}px`,...gt},dir:le,ref:Je,onScroll:Rn,onKeyDown:In,onCopy:Fn,onPaste:Ln,"data-testid":q,"data-cy":Y,children:[ce.jsxs($e,{value:Vt,children:[ce.jsx(Qe,{value:xn,children:ce.jsxs(Ke,{value:Gt,children:[Array.from({length:Ct},(e,t)=>ce.jsx(Ht,{rowIdx:t+1,level:-Ct+t,columns:rr(St+t),selectedCellIdx:Pt.rowIdx===St+t?Pt.idx:void 0,selectCell:Tn},t)),ce.jsx(Ot,{headerRowClass:H,rowIdx:it,columns:rr(kt),onColumnResize:fn,onColumnResizeEnd:gn,onColumnsReorder:mn,sortColumns:m,onSortColumnsChange:yn,lastFrozenColumnIndex:ot,selectedCellIdx:Pt.rowIdx===kt?Pt.idx:void 0,selectCell:Tn,shouldFocusGrid:!dn,direction:le})]})}),0===r.length&&oe?oe:ce.jsxs(ce.Fragment,{children:[o?.map((e,t)=>{const n=it+1+t,r=kt+1+t,o=Pt.rowIdx===r,i=At+Z*t;return ce.jsx(Jt,{"aria-rowindex":n,rowIdx:r,gridRowStart:n,row:e,top:i,bottom:void 0,viewportColumns:rr(r),lastFrozenColumnIndex:ot,selectedCellIdx:o?Pt.idx:void 0,isTop:!0,selectCell:kn},t)}),ce.jsx(Ye,{value:Cn,children:or()}),i?.map((e,t)=>{const n=xt+r.length+t+1,o=r.length+t,l=Pt.rowIdx===o,a=Lt>Qt?et-Z*(i.length-t):void 0,s=void 0===a?Z*(i.length-1-t):void 0;return ce.jsx(Jt,{"aria-rowindex":Wt-vt+t+1,rowIdx:o,gridRowStart:n,row:e,top:a,bottom:s,viewportColumns:rr(o),lastFrozenColumnIndex:ot,selectedCellIdx:l?Pt.idx:void 0,isTop:!1,selectCell:kn},t)})]})]}),tr(),_e(ln),It&&ce.jsx("div",{ref:zt,tabIndex:lr?0:-1,className:Ae("rdg-7-0-0-beta-58-dbb8b3c5",{[Yt]:!Vn(Pt.rowIdx),[Rt]:lr,[Dt]:lr&&-1!==ot}),style:{gridRowStart:Pt.rowIdx+xt+1}}),null!==De&&ce.jsx(jt,{scrollToPosition:De,setScrollToCellPosition:Fe,gridRef:Je})]})}function en(e){return e.querySelector(':scope > [role="row"] > [tabindex="0"]')}function tn(e,t){return e.idx===t.idx&&e.rowIdx===t.rowIdx}function nn({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}=ht(o);function p(){u(e)}P(p,"m"),z(p,"toggleGroup");const f=s&&a===i.idx;return ce.jsx("div",{role:"gridcell","aria-colindex":i.idx+1,"aria-selected":o,tabIndex:c,className:De(i),style:{...Re(i),cursor:f?"pointer":"default"},onMouseDown:z(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)}P(Zt,"Nt$1"),P(en,"Ft$1"),P(tn,"Dt$1"),P(nn,"Lt$1"),z(Zt,"DataGrid"),z(en,"getCellToScroll"),z(tn,"isSamePosition"),z(nn,"GroupCell");var rn=O.memo(nn);function on({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===Ze?t.level+1:t.level;function p(){l({rowIdx:n,idx:-1},{shouldFocusCell:!0})}return P(p,"m"),z(p,"handleSelectGroup"),ce.jsx(qe,{value:O.useMemo(()=>({isRowSelectionDisabled:!1,isRowSelected:i}),[i]),children:ce.jsx("div",{role:"row","aria-level":t.level+1,"aria-setsize":t.setSize,"aria-posinset":t.posInSet+1,"aria-expanded":t.isExpanded,className:Ae(It,"rdg-group-row rdg-7-0-0-beta-58-e74a2be3","rdg-row-"+(n%2==0?"even":"odd"),-1===o&&At,e),onMouseDown:p,style:ze(a),...d,children:r.map(e=>ce.jsx(rn,{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))})})}P(on,"At$1"),z(on,"GroupedRow"),O.memo(on);const ln=(i=class extends O.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=z(()=>{this.setState({hasError:!1,error:null})},"handleReset");render(){return this.state.hasError?this.props.fallback?this.props.fallback:ce.jsx("div",{className:"min-h-[200px] flex items-center justify-center p-8 bg-red-50 rounded-lg border border-red-100",children:ce.jsxs("div",{className:"text-center",children:[ce.jsx("h2",{className:"text-xl font-semibold text-red-700 mb-2",children:"Something went wrong"}),ce.jsx("p",{className:"text-red-600",children:this.state.error?.message}),ce.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}},P(i,"_ErrorBoundary"),i);z(ln,"ErrorBoundary");let an=ln;function sn(e){return[B.useMemo(()=>e.columns(),[e,e.dataChecksum()]),B.useMemo(()=>e.data(),[e,e.dataChecksum()])]}function un(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)}P(sn,"Ut$1"),P(un,"jt$1"),z(sn,"useData"),z(un,"copyAndSort");const cn=z(({message:e})=>ce.jsx("div",{style:{textAlign:"center",gridColumn:"1/-1"},children:e}),"EmptyRowsRenderer"),dn=z(({table:e,sort:n})=>{const[r,o]=sn(e),i=e.multiSelect(),l=e.columnTypes(),a=e.columnPatterns(),s=e.columnFormats(),[u,c]=O.useState([]),[d,h]=O.useState(),[p,f]=O.useState([]),[g,m]=O.useState(new Set);O.useEffect(()=>{c([...i?[rt]:[],...r.map(e=>{let n,r,o;switch(l[e]??"string"){case"time":r=void 0!==a[e]?t.timeParse(a[e]):void 0,o=void 0!==s[e]?t.timeFormat(s[e]):void 0;break;case"number":n=z(e=>ce.jsx("div",{style:{textAlign:"right"},children:e.row[e.column.key]}),"formatter");default:o=void 0!==s[e]?t.format(s[e]):void 0}return{key:e,name:e,resizable:!0,sortable:!0,minWidth:80,renderCell:n,__hpcc_pattern:r,__hpcc_format:o}})])},[s,a,l,r,i]);const y=O.useCallback(e=>{const t=e.slice(-1)[0],n=void 0!==t,r="DESC"===t?.direction;h(t),f(un(p,n?t.columnKey:"key",!!n&&r))},[p]),b=O.useCallback(e=>e.key,[]),v=O.useCallback(e=>{m(e)},[]),w=O.useCallback((t,n)=>{e.onRowClickCallback(t,n.key)},[e]);return O.useEffect(()=>{let e=o.map((e,t)=>{const n={key:t};return u.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});n?.attribute&&(e=un(e,n.attribute,n.descending)),f(e)},[u,o,n]),ce.jsx(an,{fallback:ce.jsx("div",{children:"Error loading table"}),children:ce.jsx(Zt,{columns:u,headerRowHeight:24,rows:p,rowKeyGetter:b,rowHeight:20,renderers:{noRowsFallback:ce.jsx(cn,{message:e.noDataMessage()})},className:e.darkMode()?"rdg-dark":"rdg-light",sortColumns:d?[d]:[],onSortColumnsChange:y,selectedRows:g,onSelectedRowsChange:i?v:void 0,onCellClick:i?void 0:(e,t)=>w(e.row,e.column),style:{height:"100%"}})})},"ReactTable"),hn=(l=class extends t.HTMLWidget{_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=ie.createRoot(this._div.node(),{identifierPrefix:this.id()}),this._component=O.createElement(dn,{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){}},P(l,"_Table"),l);z(hn,"Table");let pn=hn;pn.prototype._class+=" dgrid2_Table",pn.prototype.publish("noDataMessage","...empty...","string","No Data Message"),pn.prototype.publish("darkMode",!1,"boolean","Dark Mode"),pn.prototype.publish("multiSelect",!1,"boolean","Multiple Selection"),pn.prototype.publish("columnTypes",{},"object",'Column Types ("boolean" | "number" | "string" | "time"'),pn.prototype.publish("columnPatterns",{},"object","Column Patterns"),pn.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 fn=Object.defineProperty,gn=P((e,t)=>fn(e,"name",{value:t,configurable:!0}),"e");function mn(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:gn(()=>r[t],"get")})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}P(mn,"I"),gn(mn,"_mergeNamespaces");const yn=(a=class extends t.HTMLWidget{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)}},P(a,"_AbsoluteSurface"),a);gn(yn,"AbsoluteSurface");let bn=yn;bn.prototype._class+=" layout_AbsoluteSurface",bn.prototype.publish("units","percent","set","Units",["pixels","percent"]),bn.prototype.publish("widgetX",0,"number","Widget XPos"),bn.prototype.publish("widgetY",0,"number","Widget YPos"),bn.prototype.publish("widgetWidth","100","string","Widget Width, omit for full"),bn.prototype.publish("widgetHeight","100","string","Widget Height, omit for full"),bn.prototype.publish("widget",null,"widget","Widget",null,{tags:["Private"]}),bn.prototype.publish("opacity",1,"number","Opacity");const vn=(s=class extends t.HTMLWidget{_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,n){super.enter(e,n);const r=this;this._isClosed=this.defaultCollapsed(),n.classed(this._isClosed?"closed":"open",!0),this.titleSpan=n.append("span").classed("collapsible-title",!0),this.iconDiv=n.append("div").classed("collapsible-icon",!0),this.ul=n.append("ul"),this.icon=(new t.FAChar).size({height:24,width:24}).target(this.iconDiv.node()),this.iconDiv.on("click",function(){r.collapseClick(n),r.render()}),this.titleSpan.on("click",function(){r.collapseClick(n),r.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)}},P(s,"_Accordion"),s);gn(vn,"Accordion");let wn=vn;wn.prototype._class+=" layout_Accordion",wn.prototype.publish("content",[],"widgetArray","Array of widgets",null,{tags:["Basic"]}),wn.prototype.publish("title","","string","Title of collapsible section",null,{tags:["Private"]}),wn.prototype.publish("openIcon","","string","Icon to display when list is open",null,{tags:["Private"]}),wn.prototype.publish("closedIcon","","string","Icon to display when list is closed",null,{tags:["Private"]}),wn.prototype.publish("titleFontColor","#FFFFFF","html-color","Title font color",null,{tags:["Private"]}),wn.prototype.publish("titleBackgroundColor","#333333","html-color","Title background color",null,{tags:["Private"]}),wn.prototype.publish("defaultCollapsed",!1,"boolean","Collapsed by default if true",null,{tags:["Private"]});const _n=(u=class extends t.HTMLWidget{_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,n){super.update(e,n);const r=this;n.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 o=n.selectAll(".surfaceTitle").data(this.title()?[this.title()]:[]);o.enter().insert("h3","div").attr("class","surfaceTitle").merge(o).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),o.exit().remove();const i=n.select(".surfaceTitle").append("div").attr("class","html-button-container").selectAll(".surface-button").data(this.buttonAnnotations());i.enter().append("button").classed("surface-button",!0).each(function(e,n){const o=r._surfaceButtons[n]=t.select(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?o.style("background","transparent").style("border","none").on("click",function(e){r.click(e)}).append("i").attr("class","fa").text(function(){return e.label}):o.text(function(){return e.label}).on("click",function(e){r.click(e)})}),i.exit().each(function(e,n){const o=t.select(this);delete r._surfaceButtons[n],o.remove()});const l=n.selectAll("#"+this._id+" > .surfaceWidget").data(this.widget()?[this.widget()]:[],function(e){return e._id});l.enter().append("div").attr("class","surfaceWidget").each(function(e){t.select(r.element().node().parentElement).classed("content-icon content-icon-"+e.classID().split("_")[1],!0),e.target(this)}).merge(l).style("padding",this.surfacePadding_exists()?this.surfacePadding()+"px":null).each(function(e){const o=r.widgetSize(n.select("h3"),t.select(this));o.width<0&&(o.width=0),o.height<0&&(o.height=0),e.resize({width:o.width,height:o.height})}),l.exit().each(function(e){e.target(null)}).remove()}exit(e,t){this.widget()&&this.widget().target(null),super.exit(e,t)}click(e){}},P(u,"_Surface"),u);gn(_n,"Surface");let xn=_n;xn.prototype._class+=" layout_Surface",xn.prototype.publish("title","","string","Title",null,{tags:["Intermediate"]}),xn.prototype.publish("altText",null,"string","Alt text",null,{optional:!0}),xn.prototype.publish("surfaceTitlePadding",null,"number","Title Padding (px)",null,{tags:["Advanced"],disable:gn(e=>!e.title(),"disable")}),xn.prototype.publish("surfaceTitleFontSize",null,"number","Title Font Size (px)",null,{tags:["Advanced"],disable:gn(e=>!e.title(),"disable")}),xn.prototype.publish("surfaceTitleFontColor",null,"html-color","Title Font Color",null,{tags:["Advanced"],disable:gn(e=>!e.title(),"disable")}),xn.prototype.publish("surfaceTitleFontFamily",null,"string","Title Font Family",null,{tags:["Advanced"],disable:gn(e=>!e.title(),"disable")}),xn.prototype.publish("surfaceTitleFontBold",!0,"boolean","Enable Bold Title Font",null,{tags:["Advanced"],disable:gn(e=>!e.title(),"disable")}),xn.prototype.publish("surfaceTitleBackgroundColor",null,"html-color","Title Background Color",null,{tags:["Advanced"],disable:gn(e=>!e.title(),"disable")}),xn.prototype.publish("surfaceTitleAlignment","center","set","Title Alignment",["left","right","center"],{tags:["Basic"],disable:gn(e=>!e.title(),"disable")}),xn.prototype.publish("surfaceShadow",!1,"boolean","3D Shadow"),xn.prototype.publish("surfacePadding",null,"string","Surface Padding (px)",null,{tags:["Intermediate"]}),xn.prototype.publish("surfaceBackgroundColor",null,"html-color","Surface Background Color",null,{tags:["Advanced"]}),xn.prototype.publish("surfaceBorderWidth",null,"number","Surface Border Width (px)",null,{tags:["Advanced"]}),xn.prototype.publish("surfaceBorderColor",null,"html-color","Surface Border Color",null,{tags:["Advanced"]}),xn.prototype.publish("surfaceBorderRadius",null,"number","Surface Border Radius (px)",null,{tags:["Advanced"]}),xn.prototype.publish("buttonAnnotations",[],"array","Button Array",null,{tags:["Private"]}),xn.prototype.publish("widget",null,"widget","Widget",null,{tags:["Basic"]});const Cn=(c=class extends xn{_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(),n=this.indicatorOpacity(),r=this.indicatorBorderColor(),o=this.indicatorGlowColor();for(let i=0;i<e.length;i++){const l=t.select("#"+e[i]),a=l.datum();l&&a&&l.append("div").attr("class","update-indicator").style("width",a.width()+"px").style("height",a.height()+"px").style("opacity",n).style("border-color",r).style("-webkit-box-shadow","inset 0px 0px 30px 0px "+o).style("-moz-box-shadow","inset 0px 0px 30px 0px "+o).style("box-shadow","inset 0px 0px 30px 0px "+o)}}onMouseLeave(){const e=this.indicateTheseIds();for(let n=0;n<e.length;n++)t.selectAll("#"+e[n]+" > div.update-indicator").remove()}},P(c,"_Cell"),c);gn(Cn,"Cell");let Sn=Cn;Sn.prototype._class+=" layout_Cell",Sn.prototype.publish("gridRow",0,"number","Grid Row Position",null,{tags:["Private"]}),Sn.prototype.publish("gridCol",0,"number","Grid Column Position",null,{tags:["Private"]}),Sn.prototype.publish("gridRowSpan",1,"number","Grid Row Span",null,{tags:["Private"]}),Sn.prototype.publish("gridColSpan",1,"number","Grid Column Span",null,{tags:["Private"]}),Sn.prototype.publish("indicatorGlowColor","#EEEE11","html-color","Glow color of update-indicator",null,{tags:["Basic"]}),Sn.prototype.publish("indicatorBorderColor","#F48A00","html-color","Border color of update-indicator",null,{tags:["Basic"]}),Sn.prototype.publish("indicatorOpacity",.8,"number","Opacity of update-indicator",null,{tags:["Basic"]});const kn=(d=class extends t.HTMLWidget{_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=t.Utility.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 n=this.sectionTypes().indexOf(e);n>=0&&(this._watch&&this.content()[n]&&delete this._watch[this.content()[n].id()],this.content()[n].target(null),t.select("#"+this.id()+" > div.borderHandle_"+e).classed("borderHandleDisabled",!0),this.content().splice(n,1),this.sectionTypes().splice(n,1))}else this.content().forEach(function(e){return e.target(null),!1}),t.select("#"+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 Sn).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 n=t.d3Event();n.sourceEvent.stopPropagation();const r=this;this._dragCell=e,this._dragCellStartSize=this[e+"Size"](),this[e+"ShrinkWrap"]()&&(this[e+"Percentage"](0),this[e+"ShrinkWrap"](!1));const o=t.select("#"+r.id()+" > div.borderHandle_"+e);r._handleTop=parseFloat(o.style("top").split("px")[0]),r._handleLeft=parseFloat(o.style("left").split("px")[0]),this._dragPrevX=n.sourceEvent.clientX,this._dragPrevY=n.sourceEvent.clientY}dragTick(e){const n=this,r=t.d3Event(),o=this._dragPrevX-r.sourceEvent.clientX,i=this._dragPrevY-r.sourceEvent.clientY;switch(e){case"top":case"bottom":l(e,i);break;case"right":case"left":l(e,o)}function l(e,r){if(0===r)return;const o=t.selectAll("#"+n.id()+" > div.borderHandle"),i=t.select("#"+n.id()+" > div.borderHandle_"+e);i.classed("borderHandle_top")?(i.style("top",n._handleTop-r+"px"),n._cellSizes.topHeight=n._handleTop-r,n._cellSizes.leftHeight=n._cellSizes.height,n._cellSizes.leftHeight-=n._cellSizes.topHeight,n._cellSizes.leftHeight-=n._cellSizes.bottomHeight,n._cellSizes.rightHeight=n._cellSizes.leftHeight):i.classed("borderHandle_right")?(i.style("left",n._handleLeft-r+"px"),n._cellSizes.rightWidth=n._cellSizes.width-n._handleLeft+r):i.classed("borderHandle_bottom")?(i.style("top",n._handleTop-r+"px"),n._cellSizes.bottomHeight=n._cellSizes.height-n._handleTop+r,n._cellSizes.leftHeight=n._cellSizes.height,n._cellSizes.leftHeight-=n._cellSizes.bottomHeight,n._cellSizes.leftHeight-=n._cellSizes.topHeight,n._cellSizes.rightHeight=n._cellSizes.leftHeight):i.classed("borderHandle_left")&&(i.style("left",n._handleLeft-r+"px"),n._cellSizes.leftWidth=n._handleLeft-r),o.each(function(){const e=t.select(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"))})}P(l,"a"),gn(l,"_moveHandles")}dragEnd(e){if(e){const n=t.d3Event(),r=this._dragPrevX-n.sourceEvent.clientX,o=this._dragPrevY-n.sourceEvent.clientY;switch(e){case"top":0!==o&&(this.topPercentage(0),this.topSize(0===this.topSize()?this.getContent("top").getBBox().height-o:this.topSize()-o));break;case"right":0!==r&&(this.rightPercentage(0),this.rightSize(0===this.rightSize()?this.getContent("right").getBBox().width+r:this.rightSize()+r));break;case"bottom":0!==o&&(this.bottomPercentage(0),this.bottomSize(0===this.bottomSize()?this.getContent("bottom").getBBox().height+o:this.bottomSize()+o));break;case"left":0!==r&&(this.leftPercentage(0),this.leftSize(0===this.leftSize()?this.getContent("left").getBBox().width-r:this.leftSize()-r))}this._dragPrevX=n.sourceEvent.clientX,this._dragPrevY=n.sourceEvent.clientY}this.render()}size(e){const n=t.HTMLWidget.prototype.size.apply(this,arguments);return arguments.length&&this.contentDiv&&this.contentDiv.style("width",this._size.width+"px").style("height",this._size.height+"px"),n}enter(e,n){super.enter(e,n);const r=this;n.style("position","relative"),this.contentDiv=n.append("div").classed("border-content",!0),this._scrollBarWidth=t.Platform.getScrollbarWidth(),this._borderHandles=["top","left","right","bottom"],n.selectAll("div.borderHandle").data(this._borderHandles).enter().append("div").classed("borderHandle",!0).each(function(e){t.select(this).classed("borderHandle_"+e,!0).classed("borderHandleDisabled",null===r.getContent(e))})}update(e,n){super.update(e,n),this._sectionTypeArr=this.sectionTypes();const r=this;n.classed("design-mode",this.designMode()),this.setLayoutOffsets();const o=this.contentDiv.selectAll(".cell_"+this._id).data(this.content(),function(e){return e._id}),i=o.enter().append("div").classed("cell_"+this._id,!0).style("position","absolute").each(function(e,n){t.select(this).classed("border-cell border-cell-"+r._sectionTypeArr[n],!0),e.target(this),t.select("#"+r.id()+" > div.borderHandle_"+r._sectionTypeArr[n]).classed("borderHandleDisabled",!1)}).merge(o);i.each(function(e,t){const n=r.sectionTypes()[t];void 0!==r[n+"ShrinkWrap"]&&r[n+"ShrinkWrap"]()?(e.render(),r._shrinkWrapBoxes[n]=e.widget().getBBox(!0)):delete r._shrinkWrapBoxes[n]});const l=t.drag().on("start",function(e,t){r.dragStart.call(r,e,t)}).on("drag",function(e,t){r.dragTick.call(r,e,t)}).on("end",function(e,t){r.dragEnd.call(r,e,t)});this.designMode()?n.selectAll("#"+this.id()+" > div.borderHandle").call(l):n.selectAll("#"+this.id()+" > div.borderHandle").on(".drag",null);const a=this.borderLayoutObject();this.content().forEach(function(e,t){e._fixedLeft=a[this.sectionTypes()[t]].left,e._fixedTop=a[this.sectionTypes()[t]].top,e._fixedWidth=a[this.sectionTypes()[t]].width,e._fixedHeight=a[this.sectionTypes()[t]].height,e._dragHandles=[]},this),i.style("left",function(e){return e._fixedLeft+"px"}).style("top",function(e){return e._fixedTop+"px"}).style("width",function(e){return e._fixedWidth-r.gutter()+"px"}).style("height",function(e){return e._fixedHeight-r.gutter()+"px"}).each(function(e){e._placeholderElement.attr("draggable",r.designMode()).selectAll(".dragHandle").attr("draggable",r.designMode()),e.surfacePadding(r.surfacePadding()).resize()}),o.exit().each(function(e){e.target(null)}).remove(),this.getCellSizes(),n.selectAll("#"+this.id()+" > div.borderHandle").each(function(){const e=t.select(this);e.classed("borderHandle_top")?(e.style("width",r._cellSizes.width+"px"),e.style("top",r._cellSizes.topHeight-3+"px")):e.classed("borderHandle_right")?(e.style("left",r._cellSizes.width-r._cellSizes.rightWidth+"px"),e.style("top",r._cellSizes.topHeight+3+"px"),e.style("height",r._cellSizes.rightHeight+"px")):e.classed("borderHandle_bottom")?(e.style("width",r._cellSizes.width+"px"),e.style("top",r._cellSizes.height-r._cellSizes.bottomHeight-3+"px")):e.classed("borderHandle_left")&&(e.style("left",r._cellSizes.leftWidth+"px"),e.style("height",r._cellSizes.leftHeight+"px"),e.style("top",r._cellSizes.topHeight+3+"px"))})}getCellSizes(){const e=this;e._cellSizes={};const n=this.element().node().getBoundingClientRect();e._cellSizes.width=n.width,e._cellSizes.height=n.height,this.element().selectAll("#"+this.id()+" > div > div.border-cell").each(function(){const n=t.select(this);if("function"==typeof n.node){const t=n.node().getBoundingClientRect();n.classed("border-cell-top")?e._cellSizes.topHeight=t.height:n.classed("border-cell-left")?(e._cellSizes.leftWidth=t.width,e._cellSizes.leftHeight=t.height):n.classed("border-cell-right")?(e._cellSizes.rightWidth=t.width,e._cellSizes.rightHeight=t.height):n.classed("border-cell-bottom")&&(e._cellSizes.bottomHeight=t.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)}},P(d,"_Border"),d);gn(kn,"Border");let Tn=kn;Tn.prototype._class+=" layout_Border",Tn.prototype.publish("designMode",!1,"boolean","Design Mode",null,{tags:["Basic"]}),Tn.prototype.publish("content",[],"widgetArray","widgets",null,{tags:["Intermediate"]}),Tn.prototype.publish("gutter",0,"number","Gap Between Widgets",null,{tags:["Basic"]}),Tn.prototype.publish("topShrinkWrap",!1,"boolean","'Top' Cell shrinks to fit content",null,{tags:["Intermediate"]}),Tn.prototype.publish("leftShrinkWrap",!1,"boolean","'Left' Cell shrinks to fit content",null,{tags:["Intermediate"]}),Tn.prototype.publish("rightShrinkWrap",!1,"boolean","'Right' Cell shrinks to fit content",null,{tags:["Intermediate"]}),Tn.prototype.publish("bottomShrinkWrap",!1,"boolean","'Bottom' Cell shrinks to fit content",null,{tags:["Intermediate"]}),Tn.prototype.publish("topSize",0,"number","Height of the 'Top' Cell (px)",null,{tags:["Private"]}),Tn.prototype.publish("leftSize",0,"number","Width of the 'Left' Cell (px)",null,{tags:["Private"]}),Tn.prototype.publish("rightSize",0,"number","Width of the 'Right' Cell (px)",null,{tags:["Private"]}),Tn.prototype.publish("bottomSize",0,"number","Height of the 'Bottom' Cell (px)",null,{tags:["Private"]}),Tn.prototype.publish("topPercentage",20,"number","Percentage (of parent) Height of the 'Top' Cell",null,{tags:["Private"]}),Tn.prototype.publish("leftPercentage",20,"number","Percentage (of parent) Width of the 'Left' Cell",null,{tags:["Private"]}),Tn.prototype.publish("rightPercentage",20,"number","Percentage (of parent) Width of the 'Right' Cell",null,{tags:["Private"]}),Tn.prototype.publish("bottomPercentage",20,"number","Percentage (of parent) Height of the 'Bottom' Cell",null,{tags:["Private"]}),Tn.prototype.publish("surfacePadding",0,"number","Cell Padding (px)",null,{tags:["Intermediate"]}),Tn.prototype.publish("sectionTypes",[],"array","Section Types sharing an index with 'content' - Used to determine position/size.",null,{tags:["Private"]});const Pn=(h=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,n,r){let o=this.overflowX();this.overlay()||"visible"!==o||(o=null);let i=this.overflowY();return this.overlay()||"visible"!==i||(i=null),this._div.style("height",this.overlay()?"0px":null).style("overflow-x",o).style("overflow-y",i),this._widget?this._widget.renderPromise().then(o=>{if(e&&this._widget.visible()){const e=this._widget.getBBox();return e.width+=8,void 0!==n&&e.height>n&&(e.width+=t.Platform.getScrollbarWidth()),void 0!==r&&e.width>r&&(e.height+=t.Platform.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)}},P(h,"_WidgetDiv"),h);gn(Pn,"WidgetDiv");let En=Pn;const zn=(p=class extends t.HTMLWidget{_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 En(n),this._centerWA=new En(r),this._leftWA=new En(o),this._rightWA=new En(i),this._bottomWA=new En(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)})}},P(p,"_Border2"),p);gn(zn,"Border2");let In=zn;In.prototype._class+=" layout_Border2",In.prototype.publish("showTop",!0,"boolean","If true, top widget adapter will display"),In.prototype.publish("showRight",!0,"boolean","If true, right widget adapter will display"),In.prototype.publish("showBottom",!0,"boolean","If true, bottom widget adapter will display"),In.prototype.publish("showLeft",!0,"boolean","If true, left widget adapter will display"),In.prototype.publish("topOverflowX","visible","set","Sets the overflow-x css style for the top widget adapter",["hidden","scroll","visible","auto"]),In.prototype.publish("rightOverflowX","visible","set","Sets the overflow-x css style for the right widget adapter",["hidden","scroll","visible","auto"]),In.prototype.publish("bottomOverflowX","visible","set","Sets the overflow-x css style for the bottom widget adapter",["hidden","scroll","visible","auto"]),In.prototype.publish("leftOverflowX","visible","set","Sets the overflow-x css style for the left widget adapter",["hidden","scroll","visible","auto"]),In.prototype.publish("centerOverflowX","visible","set","Sets the overflow-x css style for the center widget adapter",["hidden","scroll","visible","auto"]),In.prototype.publish("topOverflowY","visible","set","Sets the overflow-y css style for the top widget adapter",["hidden","scroll","visible","auto"]),In.prototype.publish("rightOverflowY","visible","set","Sets the overflow-y css style for the right widget adapter",["hidden","scroll","visible","auto"]),In.prototype.publish("bottomOverflowY","visible","set","Sets the overflow-y css style for the bottom widget adapter",["hidden","scroll","visible","auto"]),In.prototype.publish("leftOverflowY","visible","set","Sets the overflow-y css style for the left widget adapter",["hidden","scroll","visible","auto"]),In.prototype.publish("centerOverflowY","visible","set","Sets the overflow-y css style for the center widget adapter",["hidden","scroll","visible","auto"]),In.prototype.publish("top",null,"widget","Top Widget",void 0,{render:!1}),In.prototype.publish("topOverlay",!1,"boolean","Overlay Top Widget"),In.prototype.publish("left",null,"widget","Left Widget",void 0,{render:!1}),In.prototype.publish("center",null,"widget","Center Widget",void 0,{render:!1}),In.prototype.publish("right",null,"widget","Right Widget",void 0,{render:!1}),In.prototype.publish("bottom",null,"widget","Bottom Widget",void 0,{render:!1}),In.prototype.publish("bottomHeight",null,"number","Bottom Fixed Height",void 0,{optional:!0});const Rn=(f=class extends t.HTMLWidget{_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,n){super.update(e,n);const r=this.active(),o=this.width();this._root.style("width",`${o}px`).style("height",`${this.height()}px`);const i=this._root.selectAll(`#${this.id()}_root > .carouselItem`).data(this.widgets(),e=>e.id()),l=i.enter().append("div").attr("class","carouselItem").each(function(e){e.target(this)}).merge(i).style("left",(e,t)=>(t-this._prevActive)*o+"px").style("width",`${o}px`);this._prevActive!==r&&(l.style("display",(e,t)=>t===this._prevActive||t===r?null:"none").transition().duration(this.transitionDuration()).style("left",(e,t)=>(t-r)*o+"px").on("end",function(e,n){t.select(this).style("display",()=>n===r?null:"none")}),this._prevActive=r),i.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)})}})}},P(f,"_Carousel"),f);gn(Rn,"Carousel");let An=Rn;An.prototype._class+=" layout_Carousel",An.prototype.publish("widgets",[],"widgetArray","Widgets",null,{render:!1}),An.prototype.publish("active",0,"number","Active widget"),An.prototype.publish("transitionDuration",500,"number","Transition duration");var Dn=Math.PI,Fn=2*Dn,Ln=1e-6,Mn=Fn-Ln;function On(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Bn(){return new On}function Hn(e){return gn(function(){return e},"constant")}P(On,"tt"),P(Bn,"et"),P(Hn,"it"),gn(On,"Path"),gn(Bn,"path"),On.prototype=Bn.prototype={constructor:On,moveTo:gn(function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},"moveTo"),closePath:gn(function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},"closePath"),lineTo:gn(function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},"lineTo"),quadraticCurveTo:gn(function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},"quadraticCurveTo"),bezierCurveTo:gn(function(e,t,n,r,o,i){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+i)},"bezierCurveTo"),arcTo:gn(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>Ln)if(Math.abs(c*a-s*u)>Ln&&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((Dn-Math.acos((f+d-g)/(2*m*y)))/2),v=b/y,w=b/m;Math.abs(v-1)>Ln&&(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:gn(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)>Ln||Math.abs(this._y1-u)>Ln)&&(this._+="L"+s+","+u),n&&(d<0&&(d=d%Fn+Fn),d>Mn?this._+="A"+n+","+n+",0,1,"+c+","+(e-l)+","+(t-a)+"A"+n+","+n+",0,1,"+c+","+(this._x1=s)+","+(this._y1=u):d>Ln&&(this._+="A"+n+","+n+",0,"+ +(d>=Dn)+","+c+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},"arc"),rect:gn(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:gn(function(){return this._},"toString")},gn(Hn,"constant");var Nn=Math.PI,Wn=2*Nn;const Un={draw:gn(function(e,t){var n=Math.sqrt(t/Nn);e.moveTo(n,0),e.arc(0,0,n,0,Wn)},"draw")},jn={draw:gn(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 $n=Math.sqrt(1/3),Vn=2*$n;const Gn={draw:gn(function(e,t){var n=Math.sqrt(t/Vn),r=n*$n;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()},"draw")};var qn=Math.sin(Nn/10)/Math.sin(7*Nn/10),Yn=Math.sin(Wn/10)*qn,Xn=-Math.cos(Wn/10)*qn;const Kn={draw:gn(function(e,t){var n=Math.sqrt(.8908130915292852*t),r=Yn*n,o=Xn*n;e.moveTo(0,-n),e.lineTo(r,o);for(var i=1;i<5;++i){var l=Wn*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")},Qn={draw:gn(function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)},"draw")};var Jn=Math.sqrt(3);const Zn={draw:gn(function(e,t){var n=-Math.sqrt(t/(3*Jn));e.moveTo(0,2*n),e.lineTo(-Jn*n,-n),e.lineTo(Jn*n,-n),e.closePath()},"draw")};var er=-.5,tr=Math.sqrt(3)/2,nr=1/Math.sqrt(12),rr=3*(nr/2+1);const or={draw:gn(function(e,t){var n=Math.sqrt(t/rr),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(er*r-tr*o,tr*r+er*o),e.lineTo(er*i-tr*l,tr*i+er*l),e.lineTo(er*a-tr*s,tr*a+er*s),e.lineTo(er*r+tr*o,er*o-tr*r),e.lineTo(er*i+tr*l,er*l-tr*i),e.lineTo(er*a+tr*s,er*s-tr*a),e.closePath()},"draw")};function ir(){var e=Hn(Un),t=Hn(64),n=null;function r(){var r;if(n||(n=r=Bn()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return P(r,"o"),gn(r,"symbol"),r.type=function(t){return arguments.length?(e="function"==typeof t?t:Hn(t),r):e},r.size=function(e){return arguments.length?(t="function"==typeof e?e:Hn(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r}P(ir,"xt"),gn(ir,"d3Symbol");var lr="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},ar=gn(function(e){return e},"d3_identity"),sr=gn(function(e){for(var t=[],n=0,r=e.length;n<r;n++)t[n]=e[r-n-1];return t},"d3_reverse"),ur=gn(function(e,n){e.each(function(){var e,r=t.select(this),o=r.text().split(/\s+/).reverse(),i=[];r.attr("y");for(var l=parseFloat(r.attr("dy"))||0,a=r.text(null).append("tspan").attr("x",0).attr("dy",l+"em");e=o.pop();)i.push(e),a.text(i.join(" ")),a.node().getComputedTextLength()>n&&i.length>1&&(i.pop(),a.text(i.join(" ")),i=[e],a=r.append("tspan").attr("x",0).attr("dy",1.2+l+"em").text(e))})},"d3_textWrapping"),cr=gn(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":lr(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"),dr=gn(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:gn(function(t){return e(t)},"feature")}},"d3_linearLegend"),hr=gn(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:ar}},"d3_quantLegend"),pr=gn(function(e){return{data:e.domain(),labels:e.domain(),feature:gn(function(t){return e(t)},"feature")}},"d3_ordinalLegend"),fr=gn(function(e,t,n){e.call("cellover",n,t)},"d3_cellOver"),gr=gn(function(e,t,n){e.call("cellout",n,t)},"d3_cellOut"),mr=gn(function(e,t,n){e.call("cellclick",n,t)},"d3_cellClick"),yr={d3_drawShapes:gn(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:gn(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(ar);return o&&e.selectAll("g."+r+"cell text."+r+"label").call(ur,o),i},"d3_addText"),d3_calcType:gn(function(e,t,n,r,o,i){var l=e.invertExtent?hr(e,o,i):e.ticks?dr(e,n,o):pr(e),a=e.range&&e.range()||e.domain();return l.labels=cr(l.labels,r,e.domain(),a,i),t&&(l.labels=sr(l.labels),l.data=sr(l.data)),l},"d3_calcType"),d3_filterCells:gn(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:gn(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:gn(function(e,t){e.on("mouseover.legend",function(e){fr(t,e,this)}).on("mouseout.legend",function(e){gr(t,e,this)}).on("click.legend",function(e){mr(t,e,this)})},"d3_addEvents"),d3_title:gn(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(ur,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:t.format,formatPrefix:t.formatPrefix},d3_defaultFormatSpecifier:".01f",d3_defaultDelimiter:"to"};function br(){var e=t.scaleLinear(),n="rect",r=15,o=15,i=10,l=2,a=[5],s=void 0,u=[],c="",d=!1,h="",p=yr.d3_defaultLocale,f=yr.d3_defaultFormatSpecifier,g=10,m="middle",y=yr.d3_defaultDelimiter,b=void 0,v="vertical",w=!1,_=void 0,x=void 0,C=t.dispatch("cellover","cellout","cellclick");function S(S){var k=yr.d3_calcType(e,w,a,u,p.format(f),y);S.selectAll("g").data([e]).enter().append("g").attr("class",c+"legendCells"),s&&yr.d3_filterCells(k,s);var T=S.select("."+c+"legendCells").selectAll("."+c+"cell").data(k.data),P=T.enter().append("g").attr("class",c+"cell");P.append(n).attr("class",c+"swatch");var E=S.selectAll("g."+c+"cell "+n+"."+c+"swatch").data(k.data);yr.d3_addEvents(P,C),T.exit().transition().style("opacity",0).remove(),E.exit().transition().style("opacity",0).remove(),E=E.merge(E),yr.d3_drawShapes(n,E,o,r,i,_);var z=yr.d3_addText(S,P,k.labels,c,b);T=P.merge(T);var I=z.nodes().map(function(e){return e.getBBox()}),R=E.nodes().map(function(e){return e.getBBox()});d?E.attr("class",function(e){return c+"swatch "+k.feature(e)}):"line"==n?E.style("stroke",k.feature):E.style("fill",k.feature);var A,D=void 0,F=void 0,L="start"==m?0:"middle"==m?.5:1;"vertical"===v?(A=I.map(function(e,t){return Math.max(e.height,R[t].height)}),D=gn(function(e,n){return"translate(0, "+(t.sum(A.slice(0,n))+n*l)+")"},"cellTrans"),F=gn(function(e,t){return"translate( "+(R[t].width+R[t].x+g)+", "+(R[t].y+R[t].height/2+5)+")"},"textTrans")):"horizontal"===v&&(D=gn(function(e,t){return"translate("+t*(R[t].width+l)+",0)"},"cellTrans"),F=gn(function(e,t){return"translate("+(R[t].width*L+R[t].x)+",\n "+(R[t].height+R[t].y+g+8)+")"},"textTrans")),yr.d3_placement(v,T,D,z,F,m),yr.d3_title(S,h,c,x),T.transition().style("opacity",1)}return P(S,"B"),gn(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)&&(a=e),S):a},S.cellFilter=function(e){return arguments.length?(s=e,S):s},S.shape=function(e,t){return arguments.length?(("rect"==e||"circle"==e||"line"==e||"path"==e&&"string"==typeof t)&&(n=e,_=t),S):n},S.shapeWidth=function(e){return arguments.length?(r=+e,S):r},S.shapeHeight=function(e){return arguments.length?(o=+e,S):o},S.shapeRadius=function(e){return arguments.length?(i=+e,S):i},S.shapePadding=function(e){return arguments.length?(l=+e,S):l},S.labels=function(e){return arguments.length?(u=e,S):u},S.labelAlign=function(e){return arguments.length?("start"!=e&&"end"!=e&&"middle"!=e||(m=e),S):m},S.locale=function(e){return arguments.length?(p=t.formatLocale(e),S):p},S.labelFormat=function(e){return arguments.length?(f=t.formatSpecifier(e),S):S.locale().format(f)},S.labelOffset=function(e){return arguments.length?(g=+e,S):g},S.labelDelimiter=function(e){return arguments.length?(y=e,S):y},S.labelWrap=function(e){return arguments.length?(b=e,S):b},S.useClass=function(e){return arguments.length?(!0!==e&&!1!==e||(d=e),S):d},S.orient=function(e){return arguments.length?("horizontal"!=(e=e.toLowerCase())&&"vertical"!=e||(v=e),S):v},S.ascending=function(e){return arguments.length?(w=!!e,S):w},S.classPrefix=function(e){return arguments.length?(c=e,S):c},S.title=function(e){return arguments.length?(h=e,S):h},S.titleWidth=function(e){return arguments.length?(x=e,S):x},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}P(br,"Ft"),gn(br,"color");const vr=(g=class extends t.SVGWidget{_owner;_targetWidget;_targetWidgetMonitor;_legendOrdinal;_disabled=[];_symbolTypeMap={circle:Un,cross:jn,diamond:Gn,square:Qn,star:Kn,triangle:Zn,wye:or};constructor(e){super(),this._owner=e,this._drawStartPos="origin";const t=this;this._legendOrdinal=br().shape("path",ir().type(Un).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 t.Database.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 t.Palette.ordinal(e._palette.id());case"rainbow":return t.Palette.rainbow(e._palette.id())}return t.Palette.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 n=t.Palette.ordinal(e&&e.paletteID&&e.paletteID()||"default");return(e,t,r)=>n(t)}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=[],n=0,r=0;const o=this.columns().length;if(this._targetWidget){const i=this.columns();switch(this.getPaletteType()){case"ordinal":const l=this.fillColorFunc();let a=0;switch(this.dataFamily()){case"2D":e=this.data().map(function(e,t){a=this.data()[t].slice(1,o).reduce((e,t)=>e+t,0);const i=this.isDisabled(e[0]);i||(n+=a);const s=e[0]+(!i&&this.showSeriesTotal()?` (${a})`:""),u=this.textSize(s);return r<u.width&&(r=u.width),[l(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,t){a=this.data().reduce((e,n)=>e+n[t+1],0);const o=this.isDisabled(i[t+1]),s=e+(!o&&this.showSeriesTotal()?` (${a})`:"");o||(n+=a);const u=this.textSize(s);return r<u.width&&(r=u.width),[l(void 0,e,!1),e,s]},this);break;default:e=this.columns().map(function(e){return[l(void 0,e,!1),e]},this)}break;case"rainbow":const s=this.getPalette(),u=t.format(this.rainbowFormat()),c=this.getWidget(),d=this.rainbowBins(),h=c._dataMinWeight,p=c._dataMaxWeight,f=(p-h)/(d-1);e.push([s(h,h,p),u(h)]);for(let t=1;t<d-1;++t){let n=f*t;Math.floor(n)>parseInt(e[0][1])&&(n=Math.floor(n)),e.push([s(n,h,p),u(n)])}e.push([s(p,h,p),u(p)])}}return{dataArr:e,total:n,maxLabelWidth:r}}update(e,n){super.update(e,n);const{dataArr:r,maxLabelWidth:o,total:i}=this.calcMetaData(),l=this.shapeRadius(),a=this.radiusToSymbolSize(l);let s=this.itemPadding();"horizontal"===this.orientation()&&(s+=o-2*l);const u=t.scaleOrdinal().domain(r.map(e=>e[1])).range(r.map(e=>e[0]));this._legendOrdinal.shape("path",ir().type(this._symbolTypeMap[this.symbolType()]).size(a)()).orient(this.orientation()).title(this.title()).labelWrap(this.labelMaxWidth()).labelAlign(this.labelAlign()).shapePadding(s).scale(u).labels(e=>r[e.i][2]),this._g.call(this._legendOrdinal),this.updateDisabled(n,r);const c=this._g.select(".legendCells").node().getBBox();let d=Math.abs(c.x),h=Math.abs(c.y)+1;"horizontal"===this.orientation()?("start"===this.labelAlign()?d+=1:"end"===this.labelAlign()&&(d-=1),this.width()>c.width&&(d+=(this.width()-c.width)/2)):"vertical"===this.orientation()&&(d+=1,this._containerSize.height>c.height)&&(h+=(this.height()-c.height)/2),this._g.attr("transform",`translate(${d}, ${h})`),this.pos({x:0,y:0}),this._legendOrdinal.labelOffset(this.itemPadding());const p=this._g.selectAll(".legendTotal").data(r.length&&this.showLegendTotal()?[i]:[]),f=`Total: ${i}`,g=-d,m=c.height+this.itemPadding()+1;this.enableOverflowScroll(!1),this.enableOverflow(!0),p.enter().append("text").classed("legendTotal",!0).merge(p).attr("transform",`translate(${g}, ${m})`).text(f),p.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(n.instanceOfIHighlight(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(n.instanceOfIHighlight(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}},P(g,"_Legend"),g);gn(vr,"Legend");let wr=vr;wr.prototype._class+=" layout_Legend",wr.prototype.publish("title","","string","Title"),wr.prototype.publish("symbolType","circle","set","Shape of each legend item",["circle","cross","diamond","square","star","triangle","wye"]),wr.prototype.publish("labelMaxWidth",null,"number","Max Label Width (pixels)",null,{optional:!0}),wr.prototype.publish("orientation","vertical","set","Orientation of Legend rows",["vertical","horizontal"],{tags:["Private"]}),wr.prototype.publish("dataFamily","ND","set","Type of data",["1D","2D","ND","map","graph","any"],{tags:["Private"]}),wr.prototype.publish("rainbowFormat",",","string","Rainbow number formatting",null,{tags:["Private"],optional:!0,disable:gn(e=>!e.isRainbow(),"disable")}),wr.prototype.publish("rainbowBins",8,"number","Number of rainbow bins",null,{tags:["Private"],disable:gn(e=>!e.isRainbow(),"disable")}),wr.prototype.publish("showSeriesTotal",!1,"boolean","Show value next to series"),wr.prototype.publish("showLegendTotal",!1,"boolean","Show a total of the series values under the legend",null),wr.prototype.publish("itemPadding",8,"number","Padding between legend items (pixels)"),wr.prototype.publish("shapeRadius",7,"number","Radius of legend shape (pixels)"),wr.prototype.publish("fitToContent",!0,"boolean","If true, resize will simply reapply the bounding box dimensions"),wr.prototype.publish("labelAlign","start","set","Horizontal alignment of legend item label (for horizontal orientation only)",["start","middle","end"],{optional:!0,disable:gn(e=>"vertical"===e.orientation(),"disable")});const _r=(m=class extends t.HTMLWidget{_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()}},P(m,"_Modal"),m);gn(_r,"Modal");let xr=_r;xr.prototype._class+=" layout_Modal",xr.prototype.publish("title",null,"string","title"),xr.prototype.publish("widget",null,"widget","widget"),xr.prototype.publish("titleFontSize",18,"number","titleFontSize (in pixels)"),xr.prototype.publish("titleFontColor","#ffffff","html-color","titleFontColor"),xr.prototype.publish("relativeTargetId",null,"string","relativeTargetId"),xr.prototype.publish("show",!0,"boolean","show"),xr.prototype.publish("showFade",!0,"boolean","showFade"),xr.prototype.publish("enableClickFadeToClose",!0,"boolean","enableClickFadeToClose"),xr.prototype.publish("minWidth","400px","string","minWidth"),xr.prototype.publish("minHeight","400px","string","minHeight"),xr.prototype.publish("maxWidth","800px","string","maxWidth"),xr.prototype.publish("maxHeight","800px","string","maxHeight"),xr.prototype.publish("fixedWidth",null,"string","fixedWidth"),xr.prototype.publish("fixedHeight",null,"string","fixedHeight"),xr.prototype.publish("fixedTop",null,"string","fixedTop"),xr.prototype.publish("fixedLeft",null,"string","fixedLeft"),xr.prototype.publish("overflowX","hidden","string","overflowX"),xr.prototype.publish("overflowY","scroll","string","overflowY");const Cr=(y=class extends In{_legend=new wr(this).enableOverflow(!0);_progressBar=new t.ProgressBar;_autoScale=!1;_resolutions={tiny:{width:100,height:100},small:{width:300,height:300}};_modal=new xr;_highlight;_scale;_orig_size;_toggleInfo=(new t.ToggleButton).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 t.Text).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 t.ToggleButton).faChar("fa-table").tooltip("Data").on("click",()=>{this.dataVisible(this._toggleData.selected()),this.render()});_buttonDownload=(new t.Button).faChar("fa-download").tooltip("Download").on("click",()=>{this.downloadCSV()});_buttonDownloadImage=(new t.Button).faChar("fa-image").tooltip("Download Image").on("click",()=>{this.downloadPNG()});_toggleLegend=(new t.ToggleButton).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 t.Spacer;_titleBar=(new t.TitleBar).buttons([this._toggleData,this._buttonDownload,this._buttonDownloadImage,this._spacer,this._toggleLegend]);_carousel=new An;_table=new pn;_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",n=this.downloadTimestampSuffix()?"_"+t.Utility.timestamp():"";return t.Utility.downloadString("CSV",this._widget.export("CSV"),e+n),this}downloadPNG(){const e=this.widget();return e instanceof t.SVGWidget&&(this.legendVisible()?e.downloadPNG(this.title(),void 0,this._legend):e.downloadPNG(this.title())),this}highlightColumn(e){if(e){const n=`series-${this.cssTag(e)}`;this._centerWA.element().selectAll(".series").each(function(){const e=t.select(this),r=e.classed(n);e.classed("highlight",r).classed("lowlight",!r)})}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,n){switch(super.preUpdate(e,n),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(n);break;case"small":this.preUpdateSmall(n);break;case"regular":this.preUpdateRegular(n)}const r="composite_MultiChart"===this._widget.classID()?this._widget.chart():this._widget;if(this._legend.dataFamily(r._dataFamily||"any"),this._prevChartDataFamily!==this._legend.dataFamily()&&(this._prevChartDataFamily=this._legend.dataFamily(),"any"===this._prevChartDataFamily)&&(this._toggleLegend.selected(!1),this._legend.visible(!1)),n.style("box-shadow",this.highlight()?`inset 0px 0px 0px ${this.highlightSize()}px ${this.highlightColor()}`:"none"),-1!==this._hideLegendToggleList.indexOf(r.classID())?(this._spacer.visible(!1),this._toggleLegend.visible(!1)):(this._spacer.visible(!0),this._toggleLegend.visible(!0)),this._prevChart!==r){this._prevChart=r;const e=r?r._titleBar||r._iconBar:void 0;if(e&&e instanceof t.IconBar){this._prevButtons=this._prevButtons||[...this.buttons()];const n=[...e.buttons(),new t.Spacer,...this._prevButtons];e.buttons([]).render(),this.buttons(n)}else this._prevButtons&&this.buttons(this._prevButtons)}const o=[];this.dataButtonVisible()||o.push(this._toggleData),this.downloadButtonVisible()||o.push(this._buttonDownload),this.downloadImageButtonVisible()||o.push(this._buttonDownloadImage),this.legendButtonVisible()||o.push(this._toggleLegend),this._buttonDownloadImage.enabled(this.widget()instanceof t.SVGWidget),this._titleBar.hiddenButtons(o).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}},P(y,"_ChartPanel"),y);gn(Cr,"ChartPanel");let Sr=Cr;Sr.prototype._class+=" layout_ChartPanel",Sr.prototype.publishReset(),Sr.prototype.publishProxy("title","_titleBar"),Sr.prototype.publish("titleVisible",!0,"boolean"),Sr.prototype.publish("titleOverlay",!1,"boolean"),Sr.prototype.publishProxy("titleIcon","_titleBar"),Sr.prototype.publishProxy("titleIconFont","_titleBar"),Sr.prototype.publishProxy("titleFont","_titleBar"),Sr.prototype.publishProxy("titleIconFontSize","_titleBar"),Sr.prototype.publishProxy("titleFontSize","_titleBar"),Sr.prototype.publishProxy("description","_titleBar"),Sr.prototype.publishProxy("descriptionFont","_titleBar"),Sr.prototype.publishProxy("descriptionFontSize","_titleBar"),Sr.prototype.publish("dataVisible",!1,"boolean","Show data table"),Sr.prototype.publish("dataButtonVisible",!0,"boolean","Show data table button"),Sr.prototype.publish("downloadButtonVisible",!0,"boolean","Show data download button"),Sr.prototype.publish("downloadImageButtonVisible",!1,"boolean","Show image download button"),Sr.prototype.publish("downloadTitle","","string","File name when downloaded"),Sr.prototype.publish("downloadTimestampSuffix",!0,"boolean","Use timestamp as file name suffix"),Sr.prototype.publish("legendVisible",!1,"boolean","Show legend"),Sr.prototype.publish("legendButtonVisible",!0,"boolean","Show legend button"),Sr.prototype.publish("legendPosition","right","set","Position of legend",["right","bottom"]),Sr.prototype.publishProxy("legend_labelMaxWidth","_legend","labelMaxWidth"),Sr.prototype.publishProxy("legend_showSeriesTotal","_legend","showSeriesTotal"),Sr.prototype.publishProxy("legend_showLegendTotal","_legend","showLegendTotal"),Sr.prototype.publishProxy("legend_itemPadding","_legend","itemPadding"),Sr.prototype.publishProxy("legend_shapeRadius","_legend","shapeRadius"),Sr.prototype.publishProxy("legend_symbolType","_legend","symbolType"),Sr.prototype.publishProxy("legend_labelAlign","_legend","labelAlign"),Sr.prototype.publish("widget",null,"widget","Widget",void 0,{render:!1}),Sr.prototype.publish("enableAutoscaling",!1,"boolean"),Sr.prototype.publish("highlightSize",4,"number"),Sr.prototype.publish("highlightColor","#e67e22","html-color"),Sr.prototype.publishProxy("progress_halfLife","_progressBar","halfLife"),Sr.prototype.publishProxy("progress_decay","_progressBar","decay"),Sr.prototype.publishProxy("progress_size","_progressBar","size"),Sr.prototype.publishProxy("progress_color","_progressBar","color"),Sr.prototype.publishProxy("progress_blurBar","_progressBar","blurBar"),Sr.prototype.publishProxy("progress_blurSize","_progressBar","blurSize"),Sr.prototype.publishProxy("progress_blurColor","_progressBar","blurColor"),Sr.prototype.publishProxy("progress_blurOpacity","_progressBar","blurOpacity"),Sr.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 kr=(b=class extends t.HTMLWidget{constructor(){super()}enter(e,n){super.enter(e,n),t.select(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")}},P(b,"_FlexGrid"),b);gn(kr,"FlexGrid");let Tr=kr;function Pr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}P(Pr,"Vt"),Tr.prototype._class+=" layout_FlexGrid",Tr.prototype.publish("itemBorderColor","transparent","html-color","Color of list item borders"),Tr.prototype.publish("borderWidth",0,"number","Width of list item borders (pixels)"),Tr.prototype.publish("orientation","horizontal","set","Controls the flex-direction of the list items",["horizontal","vertical"]),Tr.prototype.publish("flexWrap","wrap","set","Controls the line wrap when overflow occurs",["nowrap","wrap","wrap-reverse"]),Tr.prototype.publish("disableScroll",!1,"boolean","If false, scrollbar will show (when flexWrap is set to 'nowrap')",null,{disable:gn(e=>"nowrap"!==e.flexWrap(),"disable")}),Tr.prototype.publish("forceXScroll",!1,"boolean","If true, horzontal scrollbar will show"),Tr.prototype.publish("forceYScroll",!1,"boolean","If true, vertical scrollbar will show"),Tr.prototype.publish("itemMinHeight",64,"number","Minimum height of a list item (pixels)"),Tr.prototype.publish("itemMinWidth",64,"number","Minimum width of a list item (pixels)"),Tr.prototype.publish("alignItems","stretch","set","Controls normal alignment of items",["flex-start","center","flex-end","stretch"]),Tr.prototype.publish("alignContent","stretch","set","Controls normal alignment of item rows",["flex-start","center","flex-end","stretch","space-between","space-around"]),Tr.prototype.publish("flexGrow",1,"number","Default flex-grow style for all list items"),Tr.prototype.publish("flexBasis","10%","string","Default flex-basis style for all list items"),Tr.prototype.publish("widgetsFlexGrow",[],"array","Array of flex-grow values keyed on the widgets array"),Tr.prototype.publish("widgetsFlexBasis",[],"array","Array of flex-basis values keyed on the widgets array"),Tr.prototype.publish("widgets",[],"widgetArray","Array of widgets to be rendered as list items"),gn(Pr,"getDefaultExportFromCjs");var Er,zr={exports:{}};function Ir(){return Er?zr.exports:(Er=1,zr.exports=function(){var e=gn(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:gn(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:gn(function(){var e;for(this._resetGrid(),e=0;e<this.items.length;e++)this._markItemPositionToGrid(this.items[e])},"generateGrid"),resizeGrid:gn(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:gn(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:gn(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:gn(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:gn(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:gn(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:gn(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:gn(function(){this.grid=[]},"_resetGrid"),_itemFitsAtPosition:gn(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:gn(function(e,t){null!==e.x&&null!==e.y&&this._deleteItemPositionFromGrid(e),this._setItemPosition(e,t),this._markItemPositionToGrid(e)},"_updateItemPosition"),_updateItemSize:gn(function(e,t,n){null!==e.x&&null!==e.y&&this._deleteItemPositionFromGrid(e),e.w=t,e.h=n,this._markItemPositionToGrid(e)},"_updateItemSize"),_markItemPositionToGrid:gn(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:gn(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:gn(function(e){var n;for(n=0;n<e;n++)this.grid[n]||this.grid.push(new t(this._options.lanes))},"_ensureColumns"),_getItemsCollidingWithItem:gn(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:gn(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:gn(function(e){this._tryToResolveCollisionsLocally(e)||this._pullItemsToLeft(e),this._pullItemsToLeft()},"_resolveCollisions"),_tryToResolveCollisionsLocally:gn(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:gn(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:gn(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:gn(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:gn(function(e,t){return e>=10?e:t+e},"_padNumber"),_getItemPosition:gn(function(e){return"horizontal"===this._options.direction?e:{x:e.y,y:e.x,w:e.h,h:e.w}},"_getItemPosition"),_setItemPosition:gn(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=gn(function(e){for(var t=0;t<e;t++)this.push(null)},"GridCol");return t.prototype=[],e}())}P(Ir,"Ut"),gn(Ir,"requireGridList");var Rr=Ir();const Ar=Pr(Rr),Dr=mn({__proto__:null,default:Ar},[Rr]),Fr=Dr&&Ar||Dr,Lr=(v=class extends t.HTMLWidget{divItems;gridList;items;itemsMap;origItems;cellWidth;cellHeight;dragItem;dragItemPos;_d3Drag;_d3DragResize;_selectionBag;_scrollBarWidth;constructor(){super(),this._tag="div",this._selectionBag=new t.Utility.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 Sn).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 Fr(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,n){super.enter(e,n),this._scrollBarWidth=t.Platform.getScrollbarWidth();const r=this;this._d3Drag=t.drag().subject(function(e){const t=r.cellToGridItem(e);return{x:t.x*r.cellWidth,y:t.y*r.cellHeight}}).on("start",function(e){if(!r.designMode())return;t.d3Event().sourceEvent.stopPropagation(),r.initGridList();const o=r.itemsMap[e.id()];r.dragItem=n.append("div").attr("class","dragging").style("transform",function(){return"translate("+o.x*r.cellWidth+"px, "+o.y*r.cellHeight+"px)"}).style("width",function(){return o.w*r.cellWidth-r.gutter()+"px"}).style("height",function(){return o.h*r.cellHeight-r.gutter()+"px"}),r.selectionBagClick(e)}).on("drag",function(e){if(!r.designMode())return;const n=t.d3Event();n.sourceEvent.stopPropagation();const o=r.itemsMap[e.id()];n.x<0&&(n.x=0),n.x+o.w*r.cellWidth>r.snappingColumns()*r.cellWidth&&(n.x=r.snappingColumns()*r.cellWidth-o.w*r.cellWidth),n.y<0&&(n.y=0),n.y+o.h*r.cellWidth>r.snappingRows()*r.cellWidth&&(n.y=r.snappingRows()*r.cellWidth-o.h*r.cellWidth);const i=[Math.max(0,Math.floor((n.x+r.cellWidth/2)/r.cellWidth)),Math.max(0,Math.floor((n.y+r.cellHeight/2)/r.cellHeight))];o.x===i[0]&&o.y===i[1]||("none"!==r.snapping()?(r.resetItemsPos(),r.gridList.moveItemToPosition(o,i)):(o.x=i[0],o.y=i[1]),e.gridCol()===o.x&&e.gridRow()===o.y||(r.items.forEach(r.gridItemToCell),r.updateGrid(!1,100))),r.dragItem.style("transform",function(){return"translate("+n.x+"px, "+n.y+"px)"}).style("width",function(){return o.w*r.cellWidth+"px"}).style("height",function(){return o.h*r.cellHeight+"px"})}).on("end",function(){r.designMode()&&(t.d3Event().sourceEvent.stopPropagation(),r.dragItem.remove(),r.dragItem=null,r.killGridList())}),this._d3DragResize=t.drag().subject(function(e){const t=r.cellToGridItem(e);return{x:(t.x+t.w-1)*r.cellWidth,y:(t.y+t.h-1)*r.cellHeight}}).on("start",function(e){if(!r.designMode())return;t.d3Event().sourceEvent.stopPropagation(),r.initGridList();const o=r.itemsMap[e.id()];r.dragItem=n.append("div").attr("class","resizing").style("transform",function(){return"translate("+o.x*r.cellWidth+"px, "+o.y*r.cellHeight+"px)"}).style("width",function(){return o.w*r.cellWidth-r.gutter()+"px"}).style("height",function(){return o.h*r.cellHeight-r.gutter()+"px"}),r.dragItemPos={x:o.x,y:o.y}}).on("drag",function(e){if(!r.designMode())return;const n=t.d3Event();n.sourceEvent.stopPropagation();const o=r.itemsMap[e.id()],i=[Math.max(0,Math.round(n.x/r.cellWidth)),Math.max(0,Math.round(n.y/r.cellHeight))],l={w:Math.max(1,i[0]-o.x+1),h:Math.max(1,i[1]-o.y+1)};o.w===l.w&&o.h===l.h||("none"!==r.snapping()?(r.resetItemsPos(),r.gridList.resizeItem(o,l)):(o.w=l.w,o.h=l.h),e.gridColSpan()===o.w&&e.gridRowSpan()===o.h||(r.items.forEach(r.gridItemToCell),r.updateGrid(o.id,100))),r.dragItem.style("width",function(){return(1-o.x)*r.cellWidth+n.x-r.gutter()+"px"}).style("height",function(){return(1-o.y)*r.cellHeight+n.y-r.gutter()+"px"})}).on("end",function(){r.designMode()&&(t.d3Event().sourceEvent.stopPropagation(),r.dragItem.remove(),r.dragItem=null,r.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,n){super.update(e,n),this._placeholderElement.style("overflow-x","width"===this.fitTo()?"hidden":null),this._placeholderElement.style("overflow-y","width"===this.fitTo()?"scroll":null);const r=this.getDimensions(),o=this.width()-("width"===this.fitTo()?this._scrollBarWidth:0);if(this.cellWidth=o/r.width,this.cellHeight="all"===this.fitTo()?this.height()/r.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 i=this,l=n.selectAll("#"+this.id()+" > .ddCell").data(this.content(),function(e){return e.id()});this.divItems=l.enter().append("div").attr("class","ddCell").each(function(e){e.target(this),e.__grid_watch=e.monitor(function(t,n,r){!i._renderCount||"snapping"!==t&&0!==t.indexOf("grid")||n===r||i.gridList||(i.initGridList(),"none"!==i.snapping()&&i.gridList.resizeGrid("horizontal"===i.snapping()?i.snappingRows():i.snappingColumns()),i.items.forEach(i.gridItemToCell),i.updateGrid(e.id(),100),i.killGridList())}),t.select(this).append("div").attr("class","resizeHandle").call(i._d3DragResize).append("div").attr("class","resizeHandleDisplay")}).merge(l),this.divItems.each(function(e){const n=t.select(this);i.designMode()?n.call(i._d3Drag):n.on("mousedown.drag",null).on("touchstart.drag",null)}),this.divItems.select(".resizeHandle").style("display",this.designMode()?null:"none"),this.updateGrid(!0),l.exit().each(function(e){e.target(null),e.__grid_watch&&e.__grid_watch.remove()}).remove();const a=n.selectAll("#"+this.id()+" > .laneBackground").data(this.designMode()?[""]:[]);a.enter().insert("div",":first-child").attr("class","laneBackground").style("left","1px").style("top","1px").on("click",function(){i.selectionBagClear()}).merge(a).style("width",this.snappingColumns()*this.cellWidth+"px").style("height",this.snappingRows()*this.cellHeight+"px"),a.exit().each(function(){i.selectionBagClear()}).remove();const s=n.selectAll("#"+this.id()+" > .lane").data(this.designMode()?[""]:[]);s.enter().append("div").attr("class","lane").style("left","1px").style("top","1px"),s.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"),s.exit().remove()}exit(e,t){this.content().forEach(e=>e.target(null)),super.exit(e,t)}_createSelectionObject(e){return{_id:e._id,element:gn(()=>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 n=this._createSelectionObject(e);if(t.d3Event().sourceEvent.ctrlKey)this._selectionBag.isSelected(n)?(this._selectionBag.remove(n),this.postSelectionChange()):(this._selectionBag.append(n),this.postSelectionChange());else{const e=this._selectionBag.get();1===e.length&&e[0]._id===n._id?this.selectionBagClear():this._selectionBag.set([n]),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){}},P(v,"_Grid"),v);gn(Lr,"Grid");let Mr=Lr;Mr.prototype._class+=" layout_Grid",Mr.prototype.publish("designMode",!1,"boolean","Design Mode",null,{tags:["Basic"]}),Mr.prototype.publish("showLanes",!0,"boolean","Show snapping lanes when in design mode",null,{tags:["Basic"],disable:gn(e=>!e.designMode(),"disable")}),Mr.prototype.publish("fitTo","all","set","Sizing Strategy",["all","width"],{tags:["Basic"]}),Mr.prototype.publish("snapping","vertical","set","Snapping Strategy",["vertical","horizontal","none"]),Mr.prototype.publish("snappingColumns",12,"number","Snapping Columns"),Mr.prototype.publish("snappingRows",16,"number","Snapping Rows"),Mr.prototype.publish("gutter",6,"number","Gap Between Widgets",null,{tags:["Basic"]}),Mr.prototype.publish("surfaceShadow",!0,"boolean","3D Shadow"),Mr.prototype.publish("surfacePadding",null,"string","Cell Padding (px)",null,{tags:["Intermediate"]}),Mr.prototype.publish("surfaceBorderWidth",1,"number","Width (px) of Cell Border",null,{tags:["Intermediate"]}),Mr.prototype.publish("surfaceBackgroundColor",null,"html-color","Surface Background Color",null,{tags:["Advanced"]}),Mr.prototype.publish("content",[],"widgetArray","widgets",null,{tags:["Basic"],render:!1});const Or=(P(w=class extends Tr{constructor(){super(),this.orientation_default("horizontal"),this.flexWrap_default("nowrap")}},"_HorizontalList"),w);gn(Or,"HorizontalList"),Or.prototype._class+=" layout_HorizontalList";const Br=(_=class extends t.HTMLWidget{_contentContainer;_widgetPlacements;_widgetRatios;constructor(){super(),this._tag="div",this._widgetPlacements=[],this._widgetRatios=[]}addLayer(e,n="default",r=1,o=1){const i=this.widgets();return i.push(e||(new t.Text).text("No widget defined for layer.")),this.widgets(i),this._widgetPlacements.push(n),this._widgetRatios.push([r,o]),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}}}},P(_,"_Layered"),_);gn(Br,"Layered");let Hr=Br;Hr.prototype._class+=" layout_Layered",Hr.prototype.publish("surfacePadding",0,"number","Padding"),Hr.prototype.publish("widgets",[],"widgetArray","widgets",null,{tags:["Private"]});const Nr=(x=class extends t.HTMLWidget{_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){}},P(x,"_Popup"),x);gn(Nr,"Popup");let Wr=Nr;Wr.prototype._class+=" layout_Popup",Wr.prototype.publish("popupState",!1,"boolean","State of the popup, visible (true) or hidden (false)",null,{}),Wr.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,{}),Wr.prototype.publish("centerPopup","none","set","Center the widget in its container element (target) or in the window",["none","container","window"],{}),Wr.prototype.publish("top",null,"number","Top position property of popup",null,{}),Wr.prototype.publish("bottom",null,"number","Bottom position property of popup",null,{}),Wr.prototype.publish("left",null,"number","Left position property of popup",null,{}),Wr.prototype.publish("right",null,"number","Right position property of popup",null,{}),Wr.prototype.publish("position","relative","set","Value of the 'position' property",["absolute","relative","fixed","static","initial","inherit"],{tags:["Private"]}),Wr.prototype.publish("widget",null,"widget","Widget",null,{tags:["Private"]});const Ur=(C=class extends t.HTMLWidget{_tabContainer;_contentContainer;constructor(){super(),this._tag="div"}clearTabs(){return this.labels([]),this.widgets([]),this}addTab(e,n,r,o){const i=e.size();0===i.width&&0===i.height&&e.size({width:"100%",height:"100%"});const l=this.labels(),a=this.widgets();r&&this.activeTabIdx(this.widgets().length),l.push(n);const s=(new xn).widget(e||(new t.Text).text("No widget defined for tab"));return a.push(s),this.labels(l),this.widgets(a),o&&o(s),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,n){super.update(e,n);const r=this;n.style("padding",this.surfacePadding_exists()?this.surfacePadding()+"px":null);const o=this._tabContainer.selectAll(".tab-button.id"+this.id()).data(this.showTabs()?this.labels():[],function(e){return e});o.enter().append("span").attr("class","tab-button id"+this.id()).style("cursor","pointer").on("click",function(e,t){r.click(r.widgets()[t].widget(),e,t),r.activeTabIdx(t).render()}).merge(o).classed("active",function(e,t){return r.activeTabIdx()===t}).text(function(e){return e}),o.exit().remove();const i=this._contentContainer.selectAll(".tab-content.id"+this.id()).data(this.widgets(),function(e){return e.id()});i.enter().append("div").attr("class","tab-content id"+this.id()).each(function(e,t){e.target(this)}).merge(i).classed("active",function(e,t){return r.activeTabIdx()===t}).style("display",function(e,t){return r.activeTabIdx()===t?"block":"none"}).each(function(e,n){if(e.visible(r.activeTabIdx()===n),r.activeTabIdx()===n){const n=r.widgetSize(t.select(this));e.surfaceBorderWidth(r.showTabs()?null:0).surfacePadding(r.showTabs()?null:0).resize(n)}}),i.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){}},P(C,"_Tabbed"),C);gn(Ur,"Tabbed");let jr=Ur;jr.prototype._class+=" layout_Tabbed",jr.prototype.publish("showTabs",!0,"boolean","Show Tabs",null,{}),jr.prototype.publish("surfacePadding",4,"number","Padding"),jr.prototype.publish("activeTabIdx",0,"number","Index of active tab",null,{}),jr.prototype.publish("labels",[],"array","Array of tab labels sharing an index with ",null,{tags:["Private"]}),jr.prototype.publish("tabLocation","top","set","Position the tabs at the bottom of the widget",["top","bottom"],{tags:["Private"]}),jr.prototype.publish("widgets",[],"widgetArray","widgets",null,{tags:["Private"]});const $r=(S=class extends t.HTMLWidget{constructor(){super(),this._tag="div"}enter(e,t){super.enter(e,t)}update(e,n){super.update(e,n);const r=this;n.attr("title",r.title()).style("background-color",this.backgroundColor());const o=n.selectAll("div.toolbar-title").data(this.title()?[this.title()]:[]);o.enter().append("div").classed("toolbar-title",!0).append("span"),o.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(r.title()),o.exit().remove();const i=n.selectAll("div.toolbar-child").data(null!==this.widgets()?this.widgets():[],function(e){return e.id()});i.enter().insert("div","div.toolbar-title").each(function(e,n){const o=r.widgetClasses()[n]?r.widgetClasses()[n]+" toolbar-child":"toolbar-child";t.select(this).classed(o,!0),e.target(this)}),i.exit().each(function(e){e.target(null)}).remove(),i.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)}},P(S,"_Toolbar"),S);gn($r,"Toolbar");let Vr=$r;Vr.prototype._class+=" layout_Toolbar",Vr.prototype.publish("title","","string","Title",null,{tags:["Intermediate"]}),Vr.prototype.publish("fontSize",null,"number","Title Font Size (px)",null,{tags:["Advanced"],optional:!0}),Vr.prototype.publish("fontColor",null,"html-color","Title Font Color",null,{tags:["Advanced"],optional:!0}),Vr.prototype.publish("fontFamily",null,"string","Title Font Family",null,{tags:["Advanced"],optional:!0}),Vr.prototype.publish("fontBold",!0,"boolean","Enable Bold Title Font",null,{tags:["Advanced"],optional:!0}),Vr.prototype.publish("backgroundColor",null,"html-color","Background Color",null,{tags:["Intermediate"],optional:!0}),Vr.prototype.publish("responsive",!0,"boolean","Adapts to pixel width",null,{tags:["Basic"]}),Vr.prototype.publish("widgets",[],"widgetArray","Child widgets of the toolbar",null,{tags:["Basic"]}),Vr.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 Gr=(P(k=class extends Tr{constructor(){super(),this.orientation_default("vertical"),this.flexWrap_default("nowrap")}},"_VerticalList"),k);function qr(e){return new Promise(function(n,r){const o=t.Utility.parseClassID(e);require&&require([o.package],function(e){let t=null;e&&e[o.widgetID]&&(t=e[o.widgetID]),n(o.memberWidgetID?t.prototype?t.prototype[o.memberWidgetID]:t[o.memberWidgetID]:t)})})}function Yr(e){return Promise.all(e.map(qr))}gn(Gr,"VerticalList"),Gr.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)}}(),P(qr,"requireWidget"),P(Yr,"requireWidgets");const Xr=Object.freeze(Object.defineProperty({__proto__:null,requireWidget:qr,requireWidgets:Yr},Symbol.toStringTag,{value:"Module"})),Kr=class _MultiChart extends t.HTMLWidget{_allCharts={};_chartTypeDefaults;_chartTypeProperties;_chartMonitor;_switchingTo;constructor(){super(),n.INDChart.call(this),n.IGraph.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,n){const r=t.HTMLWidget.prototype.columns.apply(this,arguments);if(this.chart()){if(!arguments.length)return this.chart().columns();this.chart().columns(e,n)}return r}data(e){const n=t.HTMLWidget.prototype.data.apply(this,arguments);if(this.chart()){if(!arguments.length)return this.chart().data();this.chart().data(e)}return n}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,n){const r=t.Utility.parseClassID(this._allCharts[e].widgetClass);switch(r.package){case"@hpcc-js/chart":import("@hpcc-js/chart").then(e=>{n(new e[r.widgetID])});break;case"@hpcc-js/dgrid":import("@hpcc-js/dgrid").then(e=>{n(new e[r.widgetID])});break;default:qr(this._allCharts[e].widgetClass).then(function(e){n(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,n=arguments;return this.switchChart(function(){t.HTMLWidget.prototype.render.apply(e,n)}),this}return t.HTMLWidget.prototype.render.apply(this,arguments)}};P(Kr,"MultiChart");let Qr=Kr;Qr.prototype._class+=" composite_MultiChart",Qr.prototype.implements(n.INDChart.prototype),Qr.prototype.implements(n.IGraph.prototype),Qr.prototype._otherChartTypes=[{id:"FORM",display:"Form",widgetClass:"form_FieldForm"}].map(function(e){return e.family="other",e}),Qr.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}),Qr.prototype._1DChartTypes=[].map(function(e){return e.family="1D",e}),Qr.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}),Qr.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}),Qr.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}),Qr.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}),Qr.prototype._allChartTypes=Qr.prototype._otherChartTypes.concat(Qr.prototype._graphChartTypes.concat(Qr.prototype._1DChartTypes.concat(Qr.prototype._2DChartTypes.concat(Qr.prototype._NDChartTypes.concat(Qr.prototype._mapChartTypes.concat(Qr.prototype._anyChartTypes)))))),Qr.prototype._allMap=t.map(Qr.prototype._allChartTypes,function(e){return e.family}),Qr.prototype._allFamilies=Qr.prototype._allMap.keys(),Qr.prototype._allChartTypesMap={},Qr.prototype._allChartTypesByClass={},Qr.prototype._allChartTypes.forEach(function(e){e.widgetPath=t.Utility.widgetPath(e.widgetClass),Qr.prototype._allChartTypesMap[e.id]=e,Qr.prototype._allChartTypesByClass[e.widgetClass]=e}),Qr.prototype.publishReset(),Qr.prototype.publish("hideRowOnLegendClick",!1,"boolean","Enable/Disable hiding row on legend clicks",null,{tags:["Basic"]}),Qr.prototype.publish("chartType","BUBBLE","set","Chart Type",Qr.prototype._allChartTypes.map(function(e){return e.id}),{tags:["Basic"]}),Qr.prototype.publish("chart",null,"widget","Chart",null,{tags:["Basic"]});const Jr=Qr.prototype.chart;Qr.prototype.chart=function(e){const t=Jr.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 Zr=class _Summary extends t.HTMLWidget{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())}};P(Zr,"Summary"),Zr.prototype.publish("text","","string");const eo=class _MultiChartPanel extends Sr{constructor(){super(),this.widget((new Qr).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 Qr&&this._legend.dataFamily(this._widget.getChartDataFamily()),super.update(e,t)}};P(eo,"MultiChartPanel");let to=eo;to.prototype._class+=" composite_MultiChartPanel";const no=class _Dermatology extends Tn{_toolbar;_propEditor;_showProperties;_propsButton;_prevWidget;constructor(){super(),this._toolbar=(new Vr).title("Dermatology"),this._propEditor=(new o.PropertyEditor).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 r.OnOff).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};P(no,"Dermatology");let ro=no;ro.prototype._class+=" composite_Dermatology",ro.prototype.publish("showToolbar",!0,"boolean","Show Toolbar"),ro.prototype.publish("widget",null,"widget","Widget");const oo=class _MegaChart extends Tn{_chart=new Qr;_toolbar=new Vr;_valueTitle=new t.Text;_domainTitle=new t.Text;_legend=new o.Legend;_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 t.Utility.downloadString("CSV",this._chart.export("CSV")),this}enter(e,n){super.enter(e,n);const i=this;this.topShrinkWrap(!1).topPercentage(0).topSize(30),this._dataCount=(new o.Html).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 r.Button).classed({"composite_MegaChart-CSV":!0}).id(this.id()+"_csv").value("CSV"),this._csvButton.click=function(e){i.downloadCSV()},this._infoButton=(new r.Button).classed({"composite_MegaChart-Info":!0}).id(this.id()+"_info").value(this.infoIcon()),this._maximizeButton=(new r.Button).classed({"composite_MegaChart-Maximize":!0}).id(this.id()+"_maximize").value(""),this._maximizeButton.click=function(e){const n=i.target();let r=n;const o=t.select(n).classed("__hpccisMaximized"),l=i.locateAncestor("layout_Grid");r=l?l.element().node():document.body;const a=t.select(i.target());if(o){const t=n.parentElement.getBoundingClientRect(),r=parseInt(getComputedStyle(n,null).getPropertyValue("padding-top").replace("px","")),o=parseInt(getComputedStyle(n,null).getPropertyValue("padding-left").replace("px","")),l=parseInt(getComputedStyle(n,null).getPropertyValue("padding-right").replace("px","")),s=parseInt(getComputedStyle(n,null).getPropertyValue("padding-bottom").replace("px",""));i.contentDiv.style("opacity",0).transition(100),a.transition().style("top",t.top+"px").style("left",t.left+"px").style("width",t.width-o-l+"px").style("height",t.height-r-s+"px").each("end",function(){a.style("position",n.__old_position),a.style("z-index",n.__old_zindex),a.style("background-color",n.__old_backgroundColor),a.style("box-shadow",n.__old_boxshadow),i.resize({width:t.width-o-l,height:t.height-r-s}).render(function(){i.contentDiv.transition().style("opacity",1)}),e.value("").render()})}else{n.__old_position=n.style.position,n.__old_zindex=n.style.zIndex,n.__old_boxshadow=n.style.boxShadow,n.__old_backgroundColor=i.element().style("background-color");const o=t.select(r).datum(),l=o.target(),s=o?l.getBoundingClientRect():r.getBoundingClientRect(),u=parseInt(getComputedStyle(l,null).getPropertyValue("padding-top").replace("px","")),c=parseInt(getComputedStyle(l,null).getPropertyValue("padding-left").replace("px","")),d=parseInt(getComputedStyle(l,null).getPropertyValue("padding-right").replace("px","")),h=parseInt(getComputedStyle(l,null).getPropertyValue("padding-bottom").replace("px",""));i.contentDiv.style("opacity",0).transition(100),a.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",n.__old_backgroundColor).transition().style("top",s.top+u+"px").style("left",s.left+c+"px").style("width",s.width-c-d+"px").style("height",s.height-u-h+"px").each("end",function(){a.style("background-color",i.maximizedBackgroundColor()),i.resize({width:s.width-c-d,height:s.height-u-h}).render(function(){i.contentDiv.transition().style("opacity",1)}),e.value("").render()})}t.select(n).classed("__hpccisMaximized",!o)},this._legendButton=(new r.Input).classed({"composite_MegaChart-legend":!0}).id(this.id()+"_legend").type("checkbox").inlineLabel("Legend: "),this._legendButton.click=function(e){i.render()},this._chartTypeSelect=(new r.Select).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){i.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)}}P(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 i=this.legendPosition();this.toolbarShowLegend()&&!this._legendButton.checked()&&(i="none"),this._prevLegendPosition!==i&&("none"!==this._prevLegendPosition&&this.clearContent(this._prevLegendPosition),this._prevLegendPosition=i,"none"!==i&&(this._legend=(new o.Legend).targetWidget(this.getContent("center").fixedSize(!0)),this.setContent(i,this._legend),this._legend.orientation(-1!==["top","bottom"].indexOf(i)?"horizontal":"vertical"))),this._contentClasses=this.getContentClasses(),this.valueAxisTitle()&&"common_Text"!==this._contentClasses.left&&"left"!==i&&this.setContent("left",this._valueTitle.rotation(-90)),this.domainAxisTitle()&&"common_Text"!==this._contentClasses.bottom&&"bottom"!==i&&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};P(oo,"MegaChart");let io=oo;function lo(e,n){if(n=n&&"1.14.2-dev"!==n?n:"1.18.0",!e.__version)return e;const r=t.Utility.parseVersionString(e.__version),o=t.Utility.parseVersionString(n);if(1===r.major&&14===r.minor){console.info("Upgrading old persist from "+e.__version+" to "+n);let t=JSON.stringify(e);t=t.split('"'+e.__version).join('"'+n);const r=JSON.parse(t);return r.__properties&&r.__properties.content&&r.__properties.content.forEach(function(e){JSON.stringify(e).split("graph_Graph").length>1&&o.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=[])}),r}return e}function ao(e,t){const n=[];return o.Persist.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(uo(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(uo(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 so(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),ao(e,t)}function uo(e){return"string"==typeof e&&(e=JSON.parse(e)),qr((e=lo(e,t.Platform.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),ao(n,e)}).catch(function(e){console.error("Persist.create: ***exception***"),console.error(e)})}function co(e){uo(o.Persist.serializeToObject(e,void 0,!0,!0))}io.prototype._class+=" composite_MegaChart",io.prototype._1DChartTypes=Qr.prototype._1DChartTypes,io.prototype._2DChartTypes=Qr.prototype._2DChartTypes,io.prototype._NDChartTypes=Qr.prototype._NDChartTypes,io.prototype._anyChartTypes=Qr.prototype._anyChartTypes,io.prototype._allChartTypes=Qr.prototype._allChartTypes,io.prototype.publishReset(),io.prototype.publish("hideRowOnLegendClick",!1,"boolean","Enable/Disable hiding row on legend clicks",null,{tags:["Basic"]}),io.prototype.publish("showToolbar",!0,"boolean","Enable/Disable Toolbar widget",null,{tags:["Basic"]}),io.prototype.publishProxy("title","_toolbar","title"),io.prototype.publish("ddlParamsFormat","","string","DDL Param Format '{fname}, {lname}'",null,{tags:["Advanced"],optional:!0}),io.prototype.publish("titleFontSize",null,"number","Title Font Size (px)",null,{tags:["Advanced"],optional:!0}),io.prototype.publish("titleFontColor",null,"html-color","Title Font Color",null,{tags:["Advanced"],optional:!0}),io.prototype.publish("titleFontFamily",null,"string","Title Font Family",null,{tags:["Advanced"],optional:!0}),io.prototype.publish("titleFontBold",!0,"boolean","Enable Bold Title Font",null,{tags:["Advanced"],optional:!0}),io.prototype.publish("titleBackgroundColor",null,"html-color","Background Color",null,{tags:["Intermediate"],optional:!0}),io.prototype.publish("maximizedBackgroundColor","#FFFFFF","html-color","Background Color while maximized",null,{tags:["Intermediate"],optional:!0}),io.prototype.publish("showChartSelect",!0,"boolean","Show/Hide the chartType dropdown in the toolbar",null,{tags:["Basic"]}),io.prototype.publish("showCSV",!0,"boolean","Show/Hide CSV button",null,{tags:["Basic"]}),io.prototype.publish("showCount",!1,"boolean","Show/Hide Data Count",null,{tags:["Basic"]}),io.prototype.publish("showMaximize",!1,"boolean","Show/Hide Maximize button",null,{tags:["Basic"]}),io.prototype.publish("toolbarShowLegend",!1,"boolean","Show/Hide Legend button",null,{tags:["Basic"]}),io.prototype.publish("showInfoButton",!1,"boolean","Show/Hide Info button in toolbar",null,{tags:["Basic"]}),io.prototype.publish("infoIcon","","string","Help Icon",null,{tags:["Basic"]}),io.prototype.publish("legendPosition","none","set","Position of the Legend widget",["none","top","right","bottom","left"],{tags:["Basic"]}),io.prototype.publishProxy("legendFormat","_legend","rainbowFormat"),io.prototype.publishProxy("legendBins","_legend","rainbowBins"),io.prototype.publishProxy("domainAxisTitle","_domainTitle","text"),io.prototype.publishProxy("valueAxisTitle","_valueTitle","text"),io.prototype.publishProxy("chartType","_chart","chartType"),io.prototype.publishProxy("chart","_chart","chart"),P(lo,"retrofit_114_serialization"),P(ao,"deserializeFromObject"),P(so,"deserialize"),P(uo,"create"),P(co,"clone");const ho=Object.freeze(Object.defineProperty({__proto__:null,clone:co,create:uo,deserialize:so,deserializeFromObject:ao,retrofit_114_serialization:lo},Symbol.toStringTag,{value:"Module"}));e.BUILD_VERSION="3.21.5",e.Dermatology=ro,e.MegaChart=io,e.MultiChart=Qr,e.MultiChartPanel=to,e.PKG_NAME="@hpcc-js/composite",e.PKG_VERSION="3.5.6",e.Persist=ho,e.Utility=Xr,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@hpcc-js/common"),require("@hpcc-js/api"),require("@hpcc-js/form"),require("@hpcc-js/other")):"function"==typeof define&&define.amd?define(["exports","@hpcc-js/common","@hpcc-js/api","@hpcc-js/form","@hpcc-js/other"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["@hpcc-js/composite"]={},e["@hpcc-js/common"],e["@hpcc-js/api"],e["@hpcc-js/form"],e["@hpcc-js/other"])}(this,function(e,t,n,r,o){"use strict";var i,l,a,s,u,c,d,h,p,f,g,m,y,b,v,w,_,x,C,S,k,T=Object.defineProperty,P=(e,t)=>T(e,"name",{value:t,configurable:!0});var E=Object.defineProperty,z=P((e,t)=>E(e,"name",{value:t,configurable:!0}),"t$1");function I(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}P(I,"s"),z(I,"getDefaultExportFromCjs");var R,A,D={exports:{}},F={};function L(){if(R)return F;R=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),l=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),d=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}P(p,"g"),z(p,"getIteratorFn");var f={isMounted:z(function(){return!1},"isMounted"),enqueueForceUpdate:z(function(){},"enqueueForceUpdate"),enqueueReplaceState:z(function(){},"enqueueReplaceState"),enqueueSetState:z(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}P(y,"w"),P(b,"S"),P(v,"k"),z(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")},z(b,"ComponentDummy"),b.prototype=y.prototype,z(v,"PureComponent");var w=v.prototype=new b;w.constructor=v,g(w,y.prototype),w.isPureReactComponent=!0;var _=Array.isArray;function x(){}P(x,"E"),z(x,"noop");var C={H:null,A:null,T:null,S:null},S=Object.prototype.hasOwnProperty;function k(t,n,r){var o=r.ref;return{$$typeof:e,type:t,key:n,ref:void 0!==o?o:null,props:r}}function T(e,t){return k(e.type,t,e.props)}function E(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}function I(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}P(k,"P"),P(T,"T"),P(E,"z"),P(I,"_"),z(k,"ReactElement"),z(T,"cloneAndReplaceKey"),z(E,"isValidElement"),z(I,"escape");var A=/\/+/g;function D(e,t){return"object"==typeof e&&null!==e&&null!=e.key?I(""+e.key):t.toString(36)}function L(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(x,x):(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 M(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 M((s=n._init)(n._payload),r,o,i,l)}}if(s)return l=l(n),s=""===i?"."+D(n,0):i,_(l)?(o="",null!=s&&(o=s.replace(A,"$&/")+"/"),M(l,r,o,"",function(e){return e})):null!=l&&(E(l)&&(l=T(l,o+(null==l.key||n&&n.key===l.key?"":(""+l.key).replace(A,"$&/")+"/")+s)),r.push(l)),1;s=0;var u=""===i?".":i+":";if(_(n))for(var d=0;d<n.length;d++)s+=M(i=n[d],r,o,a=u+D(i,d),l);else if("function"==typeof(d=p(n)))for(n=d.call(n),d=0;!(i=n.next()).done;)s+=M(i=i.value,r,o,a=u+D(i,d++),l);else if("object"===a){if("function"==typeof n.then)return M(L(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 O(e,t,n){if(null==e)return e;var r=[],o=0;return M(e,r,"","",function(e){return t.call(n,e,o++)}),r}function B(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}P(D,"F"),P(L,"D"),P(M,"L"),P(O,"O"),P(B,"A"),z(D,"getElementKey"),z(L,"resolveThenable"),z(M,"mapIntoArray"),z(O,"mapChildren"),z(B,"lazyInitializer");var H="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)},N={map:O,forEach:z(function(e,t,n){O(e,function(){t.apply(this,arguments)},n)},"forEach"),count:z(function(e){var t=0;return O(e,function(){t++}),t},"count"),toArray:z(function(e){return O(e,function(e){return e})||[]},"toArray"),only:z(function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e},"only")};return F.Activity=d,F.Children=N,F.Component=y,F.Fragment=n,F.Profiler=o,F.PureComponent=v,F.StrictMode=r,F.Suspense=s,F.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,F.__COMPILER_RUNTIME={__proto__:null,c:z(function(e){return C.H.useMemoCache(e)},"c")},F.cache=function(e){return function(){return e.apply(null,arguments)}},F.cacheSignal=function(){return null},F.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)!S.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 k(e.type,o,r)},F.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},F.createElement=function(e,t,n){var r,o={},i=null;if(null!=t)for(r in void 0!==t.key&&(i=""+t.key),t)S.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 k(e,i,o)},F.createRef=function(){return{current:null}},F.forwardRef=function(e){return{$$typeof:a,render:e}},F.isValidElement=E,F.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:B}},F.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},F.startTransition=function(e){var t=C.T,n={};C.T=n;try{var r=e(),o=C.S;null!==o&&o(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(x,H)}catch(i){H(i)}finally{null!==t&&null!==n.types&&(t.types=n.types),C.T=t}},F.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},F.use=function(e){return C.H.use(e)},F.useActionState=function(e,t,n){return C.H.useActionState(e,t,n)},F.useCallback=function(e,t){return C.H.useCallback(e,t)},F.useContext=function(e){return C.H.useContext(e)},F.useDebugValue=function(){},F.useDeferredValue=function(e,t){return C.H.useDeferredValue(e,t)},F.useEffect=function(e,t){return C.H.useEffect(e,t)},F.useEffectEvent=function(e){return C.H.useEffectEvent(e)},F.useId=function(){return C.H.useId()},F.useImperativeHandle=function(e,t,n){return C.H.useImperativeHandle(e,t,n)},F.useInsertionEffect=function(e,t){return C.H.useInsertionEffect(e,t)},F.useLayoutEffect=function(e,t){return C.H.useLayoutEffect(e,t)},F.useMemo=function(e,t){return C.H.useMemo(e,t)},F.useOptimistic=function(e,t){return C.H.useOptimistic(e,t)},F.useReducer=function(e,t,n){return C.H.useReducer(e,t,n)},F.useRef=function(e){return C.H.useRef(e)},F.useState=function(e){return C.H.useState(e)},F.useSyncExternalStore=function(e,t,n){return C.H.useSyncExternalStore(e,t,n)},F.useTransition=function(){return C.H.useTransition()},F.version="19.2.5",F}function M(){return A||(A=1,D.exports=L()),D.exports}P(L,"m"),P(M,"h"),z(L,"requireReact_production"),z(M,"requireReact");var O=M();const B=I(O);var H,N,W={exports:{}},U={},j={exports:{}},$={};function V(){return H||(H=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(P(t,"n"),P(n,"r"),P(r,"l"),P(o,"o"),z(t,"push"),z(n,"peek"),z(r,"pop"),z(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,C||(C=!0,x());else{var t=n(u);null!==t&&D(_,t.startTime-e)}}P(w,"S"),P(_,"k"),z(w,"advanceTimers"),z(_,"handleTimeout");var x,C=!1,S=-1,k=5,T=-1;function E(){return!(!m&&e.unstable_now()-T<k)}function I(){if(m=!1,C){var t=e.unstable_now();T=t;var o=!0;try{e:{f=!1,g&&(g=!1,b(S),S=-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&&D(_,c.startTime-t),o=!1}}break e}finally{d=null,h=i,p=!1}o=void 0}}finally{o?x():C=!1}}}if(P(E,"P"),P(I,"T"),z(E,"shouldYieldToHost"),z(I,"performWorkUntilDeadline"),"function"==typeof v)x=z(function(){v(I)},"schedulePerformWorkUntilDeadline");else if("undefined"!=typeof MessageChannel){var R=new MessageChannel,A=R.port2;R.port1.onmessage=I,x=z(function(){A.postMessage(null)},"schedulePerformWorkUntilDeadline")}else x=z(function(){y(I,0)},"schedulePerformWorkUntilDeadline");function D(t,n){S=y(function(){t(e.unstable_now())},n)}P(D,"N"),z(D,"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"):k=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(S),S=-1):g=!0,D(_,i-l))):(r.sortIndex=a,t(s,r),f||p||(f=!0,C||(C=!0,x()))),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}}}}($)),$}function G(){return N||(N=1,j.exports=V()),j.exports}P(V,"x"),P(G,"E$1"),z(V,"requireScheduler_production"),z(G,"requireScheduler");var q,Y,X,K,Q={exports:{}},J={};function Z(){if(q)return J;q=1;var e=M();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(){}P(t,"n"),P(n,"r"),z(t,"formatProdErrorMessage"),z(n,"noop");var r={d:{f:n,r:z(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=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}}P(i,"a"),z(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 P(a,"u"),z(a,"getCrossOriginStringAs"),J.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,J.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)},J.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()}},J.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))},J.prefetchDNS=function(e){"string"==typeof e&&r.d.D(e)},J.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})}},J.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)},J.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})}},J.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)},J.requestFormReset=function(e){r.d.r(e)},J.unstable_batchedUpdates=function(e,t){return e(t)},J.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},J.useFormStatus=function(){return l.H.useHostTransitionStatus()},J.version="19.2.5",J}function ee(){if(Y)return Q.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 P(e,"e"),Y=1,z(e,"checkDCE"),e(),Q.exports=Z(),Q.exports}function te(){if(X)return U;X=1;var e=G(),t=M(),n=ee();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}P(r,"l"),P(o,"o"),P(i,"a"),P(l,"i"),P(a,"u"),P(s,"s"),P(u,"c"),P(c,"d"),z(r,"formatProdErrorMessage"),z(o,"isValidContainer"),z(i,"getNearestMountedFiber"),z(l,"getSuspenseInstanceFromFiber"),z(a,"getActivityInstanceFromFiber"),z(s,"assertIsMounted"),z(u,"findCurrentFiberUsingSlowPath"),z(c,"findCurrentHostFiberImpl");var d=Object.assign,h=Symbol.for("react.element"),p=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),v=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),T=Symbol.for("react.memo_cache_sentinel"),E=Symbol.iterator;function I(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=E&&e[E]||e["@@iterator"])?e:null}P(I,"D"),z(I,"getIteratorFn");var R=Symbol.for("react.client.reference");function A(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===R?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 x:return"SuspenseList";case k: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 C:return null!==(t=e.displayName||null)?t:A(e.type)||"Memo";case S:t=e._payload,e=e._init;try{return A(e(t))}catch(n){}}return null}P(A,"O"),z(A,"getComponentNameFromType");var D=Array.isArray,F=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O={pending:!1,data:null,method:null,action:null},B=[],H=-1;function N(e){return{current:e}}function W(e){0>H||(e.current=B[H],B[H]=null,H--)}function j(e,t){H++,B[H]=e.current,e.current=t}P(N,"$"),P(W,"V"),P(j,"B"),z(N,"createCursor"),z(W,"pop"),z(j,"push");var $,V,q=N(null),Y=N(null),K=N(null),Q=N(null);function J(e,t){switch(j(K,t),j(Y,e),j(q,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}}W(q),j(q,e)}function Z(){W(q),W(Y),W(K)}function te(e){null!==e.memoizedState&&j(Q,e);var t=q.current,n=Vd(t,e.type);t!==n&&(j(Y,e),j(q,n))}function ne(e){Y.current===e&&(W(q),W(Y)),Q.current===e&&(W(Q),ep._currentValue=O)}function re(e){if(void 0===$)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);$=t&&t[1]||"",V=-1<n.stack.indexOf("\n at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+$+e+V}P(J,"J"),P(Z,"Z"),P(te,"ee"),P(ne,"te"),P(re,"ne"),z(J,"pushHostContainer"),z(Z,"popHostContainer"),z(te,"pushHostContext"),z(ne,"popHostContext"),z(re,"describeBuiltInComponentFrame");var oe=!1;function ie(e,t){if(!e||oe)return"";oe=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:z(function(){try{if(t){var n=z(function(){throw Error()},"Fake");if(Object.defineProperty(n.prototype,"props",{set:z(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{oe=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?re(n):""}function le(e,t){switch(e.tag){case 26:case 27:case 5:return re(e.type);case 16:return re("Lazy");case 13:return e.child!==t&&null!==t?re("Suspense Fallback"):re("Suspense");case 19:return re("SuspenseList");case 0:case 15:return ie(e.type,!1);case 11:return ie(e.type.render,!1);case 1:return ie(e.type,!0);case 31:return re("Activity");default:return""}}function ae(e){try{var t="",n=null;do{t+=le(e,n),n=e,e=e.return}while(e);return t}catch(r){return"\nError generating stack: "+r.message+"\n"+r.stack}}P(ie,"le"),P(le,"oe"),P(ae,"ae"),z(ie,"describeNativeComponentFrame"),z(le,"describeFiber"),z(ae,"getStackByFiberInDevAndProd");var se=Object.prototype.hasOwnProperty,ue=e.unstable_scheduleCallback,ce=e.unstable_cancelCallback,de=e.unstable_shouldYield,he=e.unstable_requestPaint,pe=e.unstable_now,fe=e.unstable_getCurrentPriorityLevel,ge=e.unstable_ImmediatePriority,me=e.unstable_UserBlockingPriority,ye=e.unstable_NormalPriority,be=e.unstable_LowPriority,ve=e.unstable_IdlePriority,we=e.log,_e=e.unstable_setDisableYieldValue,xe=null,Ce=null;function Se(e){if("function"==typeof we&&_e(e),Ce&&"function"==typeof Ce.setStrictMode)try{Ce.setStrictMode(xe,e)}catch(t){}}P(Se,"Ce"),z(Se,"setIsStrictModeForDevtools");var ke=Math.clz32?Math.clz32:Ee,Te=Math.log,Pe=Math.LN2;function Ee(e){return 0==(e>>>=0)?32:31-(Te(e)/Pe|0)|0}P(Ee,"Ie"),z(Ee,"clz32Fallback");var ze=256,Ie=262144,Re=4194304;function Ae(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 De(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=Ae(r):0!==(l&=a)?o=Ae(l):n||0!==(n=a&~e)&&(o=Ae(n)):0!==(a=r&~i)?o=Ae(a):0!==l?o=Ae(l):n||0!==(n=r&~e)&&(o=Ae(n)),0===o?0:0!==t&&t!==o&&0===(t&i)&&((i=o&-o)>=(n=t&-t)||32===i&&4194048&n)?t:o}function Fe(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Le(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 Me(){var e=Re;return!(62914560&(Re<<=1))&&(Re=4194304),e}function Oe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Be(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-ke(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-ke(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-ke(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=L.p;return 0!==e?e:void 0===(e=window.event)?32:mp(e.type)}function Ge(e,t){var n=L.p;try{return L.p=e,t()}finally{L.p=n}}P(Ae,"_e"),P(De,"Ne"),P(Fe,"Fe"),P(Le,"De"),P(Me,"Le"),P(Oe,"Oe"),P(Be,"Ae"),P(He,"Me"),P(Ne,"He"),P(We,"Ue"),P(Ue,"je"),P(je,"We"),P($e,"$e"),P(Ve,"Ve"),P(Ge,"Be"),z(Ae,"getHighestPriorityLanes"),z(De,"getNextLanes"),z(Fe,"checkIfRootIsPrerendering"),z(Le,"computeExpirationTime"),z(Me,"claimNextRetryLane"),z(Oe,"createLaneMap"),z(Be,"markRootUpdated$1"),z(He,"markRootFinished"),z(Ne,"markSpawnedDeferredLane"),z(We,"markRootEntangled"),z(Ue,"getBumpedLaneForHydration"),z(je,"getBumpedLaneForHydrationByLane"),z($e,"lanesToEventPriority"),z(Ve,"resolveUpdatePriority"),z(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:new Map,hoistableScripts:new Map}),t}function at(e){e[tt]=!0}P(nt,"tt"),P(rt,"nt"),P(ot,"rt"),P(it,"lt"),P(lt,"ot"),P(at,"at"),z(nt,"detachDeletedInstance"),z(rt,"getClosestInstanceFromNode"),z(ot,"getInstanceFromNode"),z(it,"getNodeFromInstance"),z(lt,"getResourcesFromRoot"),z(at,"markNodeAsHoistable");var st=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])}P(ct,"st"),P(dt,"ct"),z(ct,"registerTwoPhaseEvent"),z(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!!se.call(ft,e)||!se.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:z(function(){return o.call(this)},"get"),set:z(function(e){n=""+e,i.call(this,e)},"set")}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:z(function(){return n},"getValue"),setValue:z(function(e){n=""+e},"setValue"),stopTracking:z(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}}P(gt,"mt"),P(mt,"ht"),P(yt,"gt"),P(bt,"yt"),P(vt,"vt"),P(wt,"bt"),P(_t,"wt"),P(xt,"St"),P(Ct,"kt"),P(St,"Ct"),z(gt,"isAttributeNameSafe"),z(mt,"setValueForAttribute"),z(yt,"setValueForKnownAttribute"),z(bt,"setValueForNamespacedAttribute"),z(vt,"getToStringValue"),z(wt,"isCheckable"),z(_t,"trackValueOnNode"),z(xt,"track"),z(Ct,"updateValueIfChanged"),z(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(D(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}P(Tt,"Et"),P(Pt,"Rt"),P(Et,"It"),P(zt,"Pt"),P(It,"Tt"),P(Rt,"zt"),P(At,"_t"),P(Dt,"Nt"),z(Tt,"escapeSelectorAttributeValueInsideDoubleQuotes"),z(Pt,"updateInput"),z(Et,"initInput"),z(zt,"setDefaultValue"),z(It,"updateOptions"),z(Rt,"updateTextarea"),z(At,"initTextarea"),z(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 Mt(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 Ot(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}}P(Lt,"Dt"),P(Mt,"Lt"),P(Ot,"Ot"),z(Lt,"setValueForStyle"),z(Mt,"setValueForStyles"),z(Ot,"isCustomElement");var Bt=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(){}P(Nt,"Ht"),P(Wt,"Ut"),z(Nt,"sanitizeURL"),z(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}P(jt,"Wt"),z(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)}}}P(Gt,"Bt"),z(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}P(Yt,"Kt"),P(Xt,"Qt"),z(Yt,"batchedUpdates$1"),z(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:z(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 P(t,"n"),z(t,"SyntheticBaseEvent"),d(t.prototype,{preventDefault:z(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:z(function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},"stopPropagation"),persist:z(function(){},"persist"),isPersistent:on}),t}P(nn,"tn"),P(rn,"nn"),P(on,"rn"),P(ln,"ln"),P(an,"on"),z(nn,"getData"),z(rn,"getEventCharCode"),z(on,"functionThatReturnsTrue"),z(ln,"functionThatReturnsFalse"),z(an,"createSyntheticEvent");var sn,un,cn,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:z(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:z(function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},"relatedTarget"),movementX:z(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:z(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:z(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}P(kn,"xn"),P(Tn,"En"),z(kn,"modifierStateGetter"),z(Tn,"getEventModifierState");var Pn=an(d({},pn,{key:z(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:z(function(e){return"keypress"===e.type?rn(e):0},"charCode"),keyCode:z(function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},"keyCode"),which:z(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:z(function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},"deltaX"),deltaY:z(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 Mn=Kt&&"TextEvent"in window&&!Ln,On=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}P(Nn,"Hn"),P(Wn,"Un"),z(Nn,"isFallbackCompositionEnd"),z(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 On&&"ko"!==t.locale?null:t.data}}P(jn,"Wn"),P($n,"$n"),z(jn,"getNativeBeforeInputChars"),z($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}))}P(Gn,"Bn"),P(qn,"qn"),z(Gn,"isTextInputElement"),z(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}P(Kn,"Gn"),P(Qn,"Yn"),P(Jn,"Xn"),z(Kn,"runEventInBatch"),z(Qn,"getInstIfValueChanged"),z(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}P(rr,"nr"),P(or,"rr"),P(ir,"lr"),P(lr,"or"),P(ar,"ar"),P(sr,"ir"),P(ur,"ur"),z(rr,"stopWatchingForValueChange"),z(or,"handlePropertyChange"),z(ir,"handleEventsForInputEventPolyfill"),z(lr,"getTargetInstForInputEventPolyfill"),z(ar,"getTargetInstForClickEvent"),z(sr,"getTargetInstForInputOrChangeEvent"),z(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(!se.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)}P(dr,"cr"),P(hr,"dr"),P(pr,"fr"),P(fr,"pr"),P(gr,"mr"),P(mr,"hr"),z(dr,"shallowEqual"),z(hr,"getLeafNode"),z(pr,"getNodeForCharacterOffset"),z(fr,"containsNode"),z(gr,"getActiveElementDeep"),z(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}P(xr,"Sr"),P(Cr,"kr"),z(xr,"constructSelectEvent"),z(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}P(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),z(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=new Map,Mr="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 Or(e,t){Lr.set(e,t),ct(t,[e])}P(Or,"Or"),Mr.push("scrollEnd"),z(Or,"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-ke(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}P(Ur,"jr"),P(jr,"Wr"),P($r,"$r"),P(Vr,"Vr"),P(Gr,"Br"),P(qr,"qr"),z(Ur,"finishQueueingConcurrentUpdates"),z(jr,"enqueueUpdate$1"),z($r,"enqueueConcurrentHookUpdate"),z(Vr,"enqueueConcurrentRenderForLane"),z(Gr,"markUpdateLaneFromFiberToRoot"),z(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,q.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case k:return(e=Kr(31,n,t,i)).elementType=k,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 x:return(e=Kr(19,n,t,i)).elementType=x,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 C:a=14;break e;case S: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}P(Xr,"Qr"),P(Kr,"Gr"),P(Qr,"Yr"),P(Jr,"Xr"),P(Zr,"Jr"),P(eo,"Zr"),P(to,"el"),P(no,"tl"),P(ro,"nl"),P(oo,"rl"),z(Xr,"FiberNode"),z(Kr,"createFiberImplClass"),z(Qr,"shouldConstruct"),z(Jr,"createWorkInProgress"),z(Zr,"resetWorkInProgress"),z(eo,"createFiberFromTypeAndProps"),z(to,"createFiberFromFragment"),z(no,"createFiberFromText"),z(ro,"createFiberFromDehydratedFragment"),z(oo,"createFiberFromPortal");var io=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:ae(t)},io.set(e,t),t)}return{value:e,source:t,stack:ae(t)}}P(lo,"ol"),z(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-ke(r)-1;r&=~(1<<o),n+=1;var i=32-ke(t)+o;if(30<i){var l=o-o%5;i=(r&(1<<l)-1).toString(32),r>>=l,o-=l,go=1<<32-ke(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}P(yo,"hl"),P(bo,"gl"),P(vo,"yl"),P(wo,"vl"),P(_o,"bl"),z(yo,"pushTreeFork"),z(bo,"pushTreeId"),z(vo,"pushMaterializedTreeId"),z(wo,"popTreeContext"),z(_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)}P(Eo,"Rl"),P(zo,"Il"),P(Io,"Pl"),P(Ro,"Tl"),P(Ao,"zl"),P(Do,"_l"),P(Fo,"Nl"),z(Eo,"throwOnHydrationMismatch"),z(zo,"prepareToHydrateHostInstance"),z(Io,"popToNextHostParent"),z(Ro,"popHydrationState"),z(Ao,"resetHydrationState"),z(Do,"upgradeHydrationErrorsToRecoverable"),z(Fo,"queueHydrationError");var Lo=N(null),Mo=null,Oo=null;function Bo(e,t,n){j(Lo,t._currentValue),t._currentValue=n}function Ho(e){e._currentValue=Lo.current,W(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===Q.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){Mo=e,Oo=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Vo(e){return qo(Mo,e)}function Go(e,t){return null===Mo&&$o(e),qo(e,t)}function qo(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===Oo){if(null===e)throw Error(r(308));Oo=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Oo=Oo.next=t;return n}P(Bo,"Ol"),P(Ho,"Al"),P(No,"Ml"),P(Wo,"Hl"),P(Uo,"Ul"),P(jo,"jl"),P($o,"Wl"),P(Vo,"$l"),P(Go,"Vl"),P(qo,"Bl"),z(Bo,"pushProvider"),z(Ho,"popProvider"),z(No,"scheduleContextWorkOnParentPath"),z(Wo,"propagateContextChanges"),z(Uo,"propagateParentContextChanges"),z(jo,"checkIfContextChanged"),z($o,"prepareToReadContext"),z(Vo,"readContext"),z(Go,"readContextDuringReconciliation"),z(qo,"readContextForConsumer");var Yo="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:z(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:new Map,refCount:0}}function Zo(e){e.refCount--,0===e.refCount&&Xo(Ko,function(){e.controller.abort()})}P(Jo,"Yl"),P(Zo,"Xl"),z(Jo,"createCache"),z(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:z(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:z(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}P(oi,"no"),P(ii,"ro"),P(li,"lo"),z(oi,"entangleAsyncAction"),z(ii,"pingEngtangledActionScope"),z(li,"chainThenableValue");var ai=F.S;F.S=function(e,t){ec=pe(),"object"==typeof t&&null!==t&&"function"==typeof t.then&&oi(0,t),null!==ai&&ai(e,t)};var si=N(null);function ui(){var e=si.current;return null!==e?e:Lu.pooledCache}function ci(e,t){j(si,null===t?si.current:t.pool)}function di(){var e=ui();return null===e?null:{parent:Qo._currentValue,pool:e}}P(ui,"io"),P(ci,"uo"),P(di,"so"),z(ui,"peekCacheFromPool"),z(ci,"pushTransition"),z(di,"getSuspendedCache");var hi=Error(r(460)),pi=Error(r(474)),fi=Error(r(542)),gi={then:z(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}}P(mi,"ho"),P(yi,"go"),P(bi,"yo"),z(mi,"isThenableResolved"),z(yi,"trackUsedThenable"),z(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))}P(wi,"bo"),P(_i,"wo"),z(wi,"getSuspendedThenable"),z(_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=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===S&&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 S:return h(e,t=bi(t),n)}if(D(t)||I(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 S:return m(e,t,n=bi(n),r)}if(D(n)||I(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 S:return y(e,t,n,r=bi(r),o)}if(D(r)||I(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===S&&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 S:return _(e,o,l=bi(l),s)}if(D(l))return b(e,o,l,s);if(I(l)){if("function"!=typeof(u=I(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 P(t,"n"),P(n,"r"),P(o,"o"),P(i,"a"),P(l,"i"),P(a,"u"),P(s,"s"),P(u,"c"),P(c,"d"),P(d,"f"),P(h,"p"),P(m,"h"),P(y,"v"),P(b,"b"),P(w,"w"),P(_,"S"),z(t,"deleteChild"),z(n,"deleteRemainingChildren"),z(o,"mapRemainingChildren"),z(i,"useFiber"),z(l,"placeChild"),z(a,"placeSingleChild"),z(s,"updateTextNode"),z(u,"updateElement"),z(c,"updatePortal"),z(d,"updateFragment"),z(h,"createChild"),z(m,"updateSlot"),z(y,"updateFromMap"),z(b,"reconcileChildrenArray"),z(w,"reconcileChildrenIterator"),z(_,"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}}}P(Si,"Co"),P(ki,"xo"),P(Ti,"Eo"),P(Pi,"Ro"),z(Si,"unwrapThenable"),z(ki,"coerceRef"),z(Ti,"throwOnInvalidObjectTypeImpl"),z(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 Mi(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}P(Ri,"zo"),P(Ai,"_o"),P(Di,"No"),P(Fi,"Fo"),P(Li,"Do"),P(Mi,"Lo"),z(Ri,"initializeUpdateQueue"),z(Ai,"cloneUpdateQueue"),z(Di,"createUpdate"),z(Fi,"enqueueUpdate"),z(Li,"entangleTransitions"),z(Mi,"enqueueCapturedUpdate");var Oi=!1;function Bi(){if(Oi&&null!==ri)throw ri}function Hi(e,t,n,r){Oi=!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?(Ou&p)===p:(r&p)===p){0!==p&&p===ni&&(Oi=!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)}P(Bi,"Ao"),P(Hi,"Mo"),P(Ni,"Ho"),P(Wi,"Uo"),z(Bi,"suspendIfUpdateReadFromEntangledAsyncAction"),z(Hi,"processUpdateQueue"),z(Ni,"callCallback"),z(Wi,"commitCallbacks");var Ui=N(null),ji=N(0);function $i(e,t){j(ji,e=ju),j(Ui,t),ju=e|t.baseLanes}function Vi(){j(ji,ju),j(Ui,Ui.current)}function Gi(){ju=ji.current,W(Ui),W(ji)}P($i,"$o"),P(Vi,"Vo"),P(Gi,"Bo"),z($i,"pushHiddenContext"),z(Vi,"reuseHiddenContextOnStack"),z(Gi,"popHiddenContext");var qi=N(null),Yi=null;function Xi(e){var t=e.alternate;j(el,1&el.current),j(qi,e),null===Yi&&(null===t||null!==Ui.current||null!==t.memoizedState)&&(Yi=e)}function Ki(e){j(el,el.current),j(qi,e),null===Yi&&(Yi=e)}function Qi(e){22===e.tag?(j(el,el.current),j(qi,e),null===Yi&&(Yi=e)):Ji()}function Ji(){j(el,el.current),j(qi,qi.current)}function Zi(e){W(qi),Yi===e&&(Yi=null),W(el)}P(Xi,"Qo"),P(Ki,"Go"),P(Qi,"Yo"),P(Ji,"Xo"),P(Zi,"Jo"),z(Xi,"pushPrimaryTreeSuspenseHandler"),z(Ki,"pushDehydratedActivitySuspenseHandler"),z(Qi,"pushOffscreenSuspenseHandler"),z(Ji,"reuseSuspenseHandlerOnStack"),z(Zi,"popSuspenseHandler");var el=N(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}P(tl,"ea"),z(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,F.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){F.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)}F.H=Fa,l=t(n,o)}while(al);return l}function bl(){var e=F.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,F.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]=T;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?(Ou&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,Ml(t)&&Ol(e)}function Ll(e,t,n){return n(function(){Ml(t)&&Ol(e)})}function Ml(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!cr(e,n)}catch(r){return!0}}function Ol(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){Se(!0);try{n()}finally{Se(!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:z(function(e){l.listeners.push(e)},"then")};null!==F.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=F.T,l={};F.T=l;try{var a=n(o,r),s=F.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),F.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){Se(!0);try{e()}finally{Se(!1)}}return n.memoizedState=[r,t],r}function pa(e,t,n){return void 0===n||1073741824&nl&&!(261930&Ou)?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&Ou)?(e=fc(),rl.lanes|=e,Vu|=e,t):(Ka=!0,e.memoizedState=n)}function ga(e,t,n,r,o){var i=L.p;L.p=0!==i&&8>i?i:8;var l=F.T,a={};F.T=a,Pa(e,!1,t,n);try{var s=o(),u=F.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:z(function(){},"then"),status:"rejected",reason:c},pc())}finally{L.p=i,null!==l&&null!==a.types&&(l.types=a.types),F.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,O,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:O,baseState:O,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:El,lastRenderedState:O},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)}}P(pl,"fa"),P(fl,"pa"),P(gl,"ma"),P(ml,"ha"),P(yl,"ga"),P(bl,"ya"),P(vl,"va"),P(wl,"ba"),P(_l,"wa"),P(xl,"Sa"),P(Cl,"ka"),P(Sl,"Ca"),P(kl,"xa"),P(Tl,"Ea"),P(Pl,"Ra"),P(El,"Ia"),P(zl,"Pa"),P(Il,"Ta"),P(Rl,"za"),P(Al,"_a"),P(Dl,"Na"),P(Fl,"Fa"),P(Ll,"Da"),P(Ml,"La"),P(Ol,"Oa"),P(Bl,"Aa"),P(Hl,"Ma"),P(Nl,"Ha"),P(Wl,"Ua"),P(Ul,"ja"),P(jl,"Wa"),P($l,"$a"),P(Vl,"Va"),P(Gl,"Ba"),P(ql,"qa"),P(Yl,"Ka"),P(Xl,"Qa"),P(Kl,"Ga"),P(Ql,"Ya"),P(Jl,"Xa"),P(Zl,"Ja"),P(ea,"Za"),P(ta,"ei"),P(na,"ti"),P(ra,"ni"),P(oa,"ri"),P(ia,"li"),P(la,"oi"),P(aa,"ai"),P(sa,"ii"),P(ua,"ui"),P(ca,"si"),P(da,"ci"),P(ha,"di"),P(pa,"fi"),P(fa,"pi"),P(ga,"mi"),P(ma,"hi"),P(ya,"gi"),P(ba,"yi"),P(va,"vi"),P(wa,"bi"),P(_a,"wi"),P(xa,"Si"),P(Ca,"ki"),P(Sa,"Ci"),P(ka,"xi"),P(Ta,"Ei"),P(Pa,"Ri"),P(Ea,"Ii"),P(za,"Pi"),P(Ia,"Ti"),z(pl,"throwInvalidHookError"),z(fl,"areHookInputsEqual"),z(gl,"renderWithHooks"),z(ml,"finishRenderingHooks"),z(yl,"renderWithHooksAgain"),z(bl,"TransitionAwareHostComponent"),z(vl,"checkDidRenderIdHook"),z(wl,"bailoutHooks"),z(_l,"resetHooksOnUnwind"),z(xl,"mountWorkInProgressHook"),z(Cl,"updateWorkInProgressHook"),z(Sl,"createFunctionComponentUpdateQueue"),z(kl,"useThenable"),z(Tl,"use"),z(Pl,"useMemoCache"),z(El,"basicStateReducer"),z(zl,"updateReducer"),z(Il,"updateReducerImpl"),z(Rl,"rerenderReducer"),z(Al,"updateSyncExternalStore"),z(Dl,"pushStoreConsistencyCheck"),z(Fl,"updateStoreInstance"),z(Ll,"subscribeToStore"),z(Ml,"checkIfSnapshotChanged"),z(Ol,"forceStoreRerender"),z(Bl,"mountStateImpl"),z(Hl,"updateOptimisticImpl"),z(Nl,"dispatchActionState"),z(Wl,"runActionStateAction"),z(Ul,"handleActionReturnValue"),z(jl,"onActionSuccess"),z($l,"onActionError"),z(Vl,"notifyActionListeners"),z(Gl,"actionStateReducer"),z(ql,"mountActionState"),z(Yl,"updateActionState"),z(Xl,"updateActionStateImpl"),z(Kl,"actionStateActionEffect"),z(Ql,"rerenderActionState"),z(Jl,"pushSimpleEffect"),z(Zl,"updateRef"),z(ea,"mountEffectImpl"),z(ta,"updateEffectImpl"),z(na,"mountEffect"),z(ra,"updateEffect"),z(oa,"useEffectEventImpl"),z(ia,"updateEvent"),z(la,"updateInsertionEffect"),z(aa,"updateLayoutEffect"),z(sa,"imperativeHandleEffect"),z(ua,"updateImperativeHandle"),z(ca,"mountDebugValue"),z(da,"updateCallback"),z(ha,"updateMemo"),z(pa,"mountDeferredValueImpl"),z(fa,"updateDeferredValueImpl"),z(ga,"startTransition"),z(ma,"noop"),z(ya,"startHostTransition"),z(ba,"ensureFormComponentIsStateful"),z(va,"requestFormReset$1"),z(wa,"useHostTransitionStatus"),z(_a,"updateId"),z(xa,"updateRefresh"),z(Ca,"refreshCache"),z(Sa,"dispatchReducerAction"),z(ka,"dispatchSetState"),z(Ta,"dispatchSetStateInternal"),z(Pa,"dispatchOptimisticSetState"),z(Ea,"isRenderPhaseUpdate"),z(za,"enqueueRenderPhaseUpdate"),z(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:z(function(e,t){return xl().memoizedState=[e,void 0===t?null:t],e},"useCallback"),useContext:Vo,useEffect:na,useImperativeHandle:z(function(e,t,n){n=null!=n?n.concat([e]):null,ea(4194308,4,sa.bind(null,t,e),n)},"useImperativeHandle"),useLayoutEffect:z(function(e,t){return ea(4194308,4,e,t)},"useLayoutEffect"),useInsertionEffect:z(function(e,t){ea(4,2,e,t)},"useInsertionEffect"),useMemo:z(function(e,t){var n=xl();t=void 0===t?null:t;var r=e();if(sl){Se(!0);try{e()}finally{Se(!1)}}return n.memoizedState=[r,t],r},"useMemo"),useReducer:z(function(e,t,n){var r=xl();if(void 0!==n){var o=n(t);if(sl){Se(!0);try{n(t)}finally{Se(!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:z(function(e){return e={current:e},xl().memoizedState=e},"useRef"),useState:z(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:z(function(e,t){return pa(xl(),e,t)},"useDeferredValue"),useTransition:z(function(){var e=Bl(!1);return e=ga.bind(null,rl,e.queue,!0,!1),xl().memoizedState=e,[!1,e]},"useTransition"),useSyncExternalStore:z(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&Ou||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:z(function(){var e=xl(),t=Lu.identifierPrefix;if(So){var n=mo;t="_"+t+"R_"+(n=(go&~(1<<32-ke(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:z(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:z(function(){return xl().memoizedState=Ca.bind(null,rl)},"useCacheRefresh"),useEffectEvent:z(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:z(function(){return zl(El)},"useState"),useDebugValue:ca,useDeferredValue:z(function(e,t){return fa(Cl(),ol.memoizedState,e,t)},"useDeferredValue"),useTransition:z(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:z(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:z(function(){return Rl(El)},"useState"),useDebugValue:ca,useDeferredValue:z(function(e,t){var n=Cl();return null===ol?pa(n,e,t):fa(n,ol.memoizedState,e,t)},"useDeferredValue"),useTransition:z(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:z(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)}P(La,"Di"),Fa.useEffectEvent=ia,z(La,"applyDerivedStateFromProps");var Ma={enqueueSetState:z(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:z(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:z(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 Oa(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&&Ma.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=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=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:new Set([o])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=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),Mi(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,Mi(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),Mi(n,i),!1}n=n.return}while(null!==n);return!1}P(Oa,"Oi"),P(Ba,"Ai"),P(Ha,"Mi"),P(Na,"Hi"),P(Wa,"Ui"),P(Ua,"ji"),P(ja,"Wi"),P($a,"$i"),P(Va,"Vi"),P(Ga,"Bi"),P(qa,"qi"),P(Ya,"Ki"),z(Oa,"checkShouldComponentUpdate"),z(Ba,"callComponentWillReceiveProps"),z(Ha,"resolveClassComponentProps"),z(Na,"defaultOnUncaughtError"),z(Wa,"defaultOnCaughtError"),z(Ua,"defaultOnRecoverableError"),z(ja,"logUncaughtError"),z($a,"logCaughtError"),z(Va,"createRootErrorUpdate"),z(Ga,"createClassErrorUpdate"),z(qa,"initializeClassErrorUpdate"),z(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=Ma,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&&Ma.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||Oa(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||Oa(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}P(Qa,"Yi"),P(Ja,"Xi"),P(Za,"Ji"),P(es,"Zi"),P(ts,"eu"),P(ns,"tu"),P(rs,"nu"),P(os,"ru"),P(is,"lu"),P(ls,"ou"),P(as,"au"),P(ss,"iu"),P(us,"uu"),P(cs,"su"),P(ds,"cu"),z(Qa,"reconcileChildren"),z(Ja,"updateForwardRef"),z(Za,"updateMemoComponent"),z(es,"updateSimpleMemoComponent"),z(ts,"updateOffscreenComponent"),z(ns,"bailoutOffscreenComponent"),z(rs,"deferHiddenOffscreenComponent"),z(os,"mountActivityChildren"),z(is,"retryActivityComponentWithoutHydrating"),z(ls,"updateActivityComponent"),z(as,"markRef"),z(ss,"updateFunctionComponent"),z(us,"replayFunctionComponent"),z(cs,"updateClassComponent"),z(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,j(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:J(t,t.stateNode.containerInfo),Bo(0,Qo,e.memoizedState.cache),Ao();break;case 27:case 5:te(t);break;case 4:J(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),j(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===C){t.tag=14,t=Za(null,t,e,o,n);break e}}throw t=A(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(J(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(K.current).createElement(n))[Ye]=t,o[Xe]=e,Od(o,n,e),at(o),t.stateNode=o):t.memoizedState=Rh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return te(t),null===e&&So&&(o=t.stateNode=fh(t.type,t.pendingProps,K.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)),te(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 J(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?Me():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),Z(),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(ne(t),n=K.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=q.current,Ro(t)?zo(t):(e=fh(i,o,n),t.stateNode=e,Ts(t))}return Rs(t),null;case 5:if(ne(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=q.current,Ro(t))zo(t);else{var a=jd(K.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(Od(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=K.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 Z(),null===e&&Sd(t.stateNode.containerInfo),Rs(t),null;case 10:return Ho(t.type),Rs(t),null;case 19:if(W(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 j(el,1&el.current|2),So&&yo(t,o.treeForkCount),t.child}e=e.sibling}null!==o.tail&&pe()>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*pe()-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=pe(),e.sibling=null,n=el.current,j(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&&W(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),Z(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return ne(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 W(el),null;case 4:return Z(),null;case 10:return Ho(t.type),null;case 22:case 23:return Zi(t),Gi(),null!==e&&W(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),Z();break;case 26:case 27:case 5:ne(t);break;case 4:Z();break;case 31:null!==t.memoizedState&&Zi(t);break;case 13:Zi(t);break;case 19:W(el);break;case 10:Ho(t.type);break;case 22:case 23:Zi(t),Gi(),null!==e&&W(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 Ms(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 Os(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]);Od(t,r,n),t[Ye]=e,t[Xe]=n}catch(i){Vc(e,e.return,i)}}P(ps,"fu"),P(fs,"pu"),P(gs,"mu"),P(ms,"hu"),P(ys,"gu"),P(bs,"yu"),P(vs,"vu"),P(ws,"bu"),P(_s,"wu"),P(xs,"Su"),P(Cs,"ku"),P(Ss,"Cu"),P(ks,"xu"),P(Ts,"Eu"),P(Ps,"Ru"),P(Es,"Iu"),P(zs,"Pu"),P(Is,"Tu"),P(Rs,"zu"),P(As,"_u"),P(Ds,"Nu"),P(Fs,"Fu"),P(Ls,"Du"),P(Ms,"Lu"),P(Os,"Ou"),P(Bs,"Au"),P(Hs,"Mu"),P(Ns,"Hu"),P(Ws,"Uu"),P(Us,"ju"),P(js,"Wu"),P($s,"$u"),P(Vs,"Vu"),P(Gs,"Bu"),P(qs,"qu"),z(ps,"mountSuspenseOffscreenState"),z(fs,"getRemainingWorkInPrimaryTree"),z(gs,"updateSuspenseComponent"),z(ms,"mountSuspensePrimaryChildren"),z(ys,"mountWorkInProgressOffscreenFiber"),z(bs,"retrySuspenseComponentWithoutHydrating"),z(vs,"scheduleSuspenseWorkOnFiber"),z(ws,"initSuspenseListRenderState"),z(_s,"updateSuspenseListComponent"),z(xs,"bailoutOnAlreadyFinishedWork"),z(Cs,"checkScheduledUpdateOrContext"),z(Ss,"attemptEarlyBailoutIfNoScheduledUpdate"),z(ks,"beginWork"),z(Ts,"markUpdate"),z(Ps,"preloadInstanceAndSuspendIfNeeded"),z(Es,"preloadResourceAndSuspendIfNeeded"),z(zs,"scheduleRetryEffect"),z(Is,"cutOffTailIfNeeded"),z(Rs,"bubbleProperties"),z(As,"completeWork"),z(Ds,"unwindWork"),z(Fs,"unwindInterruptedWork"),z(Ls,"commitHookEffectListMount"),z(Ms,"commitHookEffectListUnmount"),z(Os,"commitClassCallbacks"),z(Bs,"safelyCallComponentWillUnmount"),z(Hs,"safelyAttachRef"),z(Ns,"safelyDetachRef"),z(Ws,"commitHostMount"),z(Us,"commitHostUpdate"),z(js,"isHostParent"),z($s,"getHostSibling"),z(Vs,"insertOrAppendPlacementNodeIntoContainer"),z(Gs,"insertOrAppendPlacementNode"),z(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&&Os(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}P(Zs,"Ju"),P(eu,"Zu"),P(tu,"es"),z(Zs,"commitBeforeMutationEffects"),z(eu,"commitLayoutEffectOnFiber"),z(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(Ce&&"function"==typeof Ce.onCommitFiberUnmount)try{Ce.onCommitFiberUnmount(xe,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:Ms(2,n,t),Xs||Ms(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}P(ou,"rs"),P(iu,"ls"),P(lu,"os"),P(au,"as"),P(su,"is"),P(uu,"us"),P(cu,"ss"),z(ou,"recursivelyTraverseDeletionEffects"),z(iu,"commitDeletionEffectsOnFiber"),z(lu,"commitActivityHydrationCallbacks"),z(au,"commitSuspenseHydrationCallbacks"),z(su,"getRetryCache"),z(uu,"attachSuspenseRetryListeners"),z(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&&(Ms(3,e,e.return),Ls(3,e),Ms(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"))),Od(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}Od(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}Od(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=pe()),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:Ms(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&&Os(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}}P(hu,"ds"),P(pu,"fs"),P(fu,"ps"),P(gu,"ms"),P(mu,"hs"),P(yu,"gs"),P(bu,"ys"),P(vu,"vs"),P(wu,"bs"),P(_u,"ws"),P(xu,"Ss"),P(Cu,"ks"),z(hu,"commitMutationEffectsOnFiber"),z(pu,"commitReconciliationEffects"),z(fu,"recursivelyResetForms"),z(gu,"recursivelyTraverseLayoutEffects"),z(mu,"recursivelyTraverseDisappearLayoutEffects"),z(yu,"recursivelyTraverseReappearLayoutEffects"),z(bu,"commitOffscreenPassiveMountEffects"),z(vu,"commitCachePassiveMountEffect"),z(wu,"recursivelyTraversePassiveMountEffects"),z(_u,"commitPassiveMountOnFiber"),z(xu,"recursivelyTraverseReconnectPassiveEffects"),z(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&&Ms(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:Ms(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:Ms(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}}}P(ku,"xs"),P(Tu,"Es"),P(Pu,"Rs"),P(Eu,"Is"),P(zu,"Ps"),P(Iu,"Ts"),P(Ru,"zs"),z(ku,"recursivelyAccumulateSuspenseyCommit"),z(Tu,"accumulateSuspenseyCommitOnFiber"),z(Pu,"detachAlternateSiblings"),z(Eu,"recursivelyTraversePassiveUnmountEffects"),z(zu,"commitPassiveUnmountOnFiber"),z(Iu,"recursivelyTraverseDisconnectPassiveEffects"),z(Ru,"commitPassiveUnmountEffectsInsideOfDeletedTree_begin");var Au={getCacheForType:z(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:z(function(){return Vo(Qo).controller.signal},"cacheSignal")},Du="function"==typeof WeakMap?WeakMap:Map,Fu=0,Lu=null,Mu=null,Ou=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!==Ou?Ou&-Ou:null!==F.T?hd():Ve()}function fc(){if(0===Yu)if(536870912&Ou&&!So)Yu=536870912;else{var e=Ie;!(3932160&(Ie<<=1))&&(Ie=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,Ou,Yu,!1)),Be(e,n),2&Fu&&e===Lu||(e===Lu&&(!(2&Fu)&&(Gu|=n),4===$u&&vc(e,Ou,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)||Fe(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-pe())){if(vc(o,t,Yu,!Nu),0!==De(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-pe():(4194048&i)===i?ec-pe():0;if(null!==(f=Xh(d,f)))return ac=i,e.cancelPendingCommit=f(Oc.bind(null,e,t,i,n,r,o,l,a,s,c,d,null,h,p)),void vc(e,i,l,!u)}Oc(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-ke(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!==Mu){if(0===Bu)var e=Mu.return;else Oo=Mo=null,_l(e=Mu),xi=null,Ci=0,e=Mu;for(;null!==e;)Fs(e.alternate,e),e=e.return;Mu=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,Mu=n=Jr(e.current,null),Ou=t,Bu=0,Hu=null,Nu=!1,Wu=Fe(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-ke(r),i=1<<o;t|=e[o],r&=~i}return ju=t,Ur(),n}function Cc(e,t){rl=null,F.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===Mu&&($u=1,ja(e,lo(t,e.current)))}function Sc(){var e=qi.current;return null===e||((4194048&Ou)===Ou?null===Yi:!!((62914560&Ou)===Ou||536870912&Ou)&&e===Yi)}function kc(){var e=F.H;return F.H=Ra,null===e?Ra:e}function Tc(){var e=F.A;return F.A=Au,e}function Pc(){$u=4,Nu||(4194048&Ou)!==Ou&&null!==qi.current||(Wu=!0),!(134217727&Vu)&&!(134217727&Gu)||null===Lu||vc(Lu,Ou,Yu,!1)}function Ec(e,t,n){var r=Fu;Fu|=2;var o=kc(),i=Tc();Lu===e&&Ou===t||(nc=null,xc(e,t)),t=!1;var l=$u;e:for(;;)try{if(0!==Bu&&null!==Mu){var a=Mu,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++,Oo=Mo=null,Fu=r,F.H=o,F.A=i,null===Mu&&(Lu=null,Ou=0,Ur()),l}function zc(){for(;null!==Mu;)Ac(Mu)}function Ic(e,t){var n=Fu;Fu|=2;var o=kc(),i=Tc();Lu!==e||Ou!==t?(nc=null,tc=pe()+500,xc(e,t)):Wu=Fe(e,t);e:for(;;)try{if(0!==Bu&&null!==Mu){t=Mu;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=z(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(Mu.tag){case 26:a=Mu.memoizedState;case 5:case 27:var s=Mu;if(a?Gh(a):s.stateNode.complete){Bu=0,Hu=null;var u=s.sibling;if(null!==u)Mu=u;else{var c=s.return;null!==c?(Mu=c,Lc(c)):Mu=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 Oo=Mo=null,F.H=o,F.A=i,Fu=n,null!==Mu?0:(Lu=null,Ou=0,Ur(),$u)}function Rc(){for(;null!==Mu&&!de();)Ac(Mu)}function Ac(e){var t=ks(e.alternate,e,ju);e.memoizedProps=e.pendingProps,null===t?Lc(e):Mu=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,Ou);break;case 11:t=us(n,t,t.pendingProps,t.type.render,t.ref,Ou);break;case 5:_l(t);default:Fs(n,t),t=ks(n,t=Mu=Zr(t,ju),ju)}e.memoizedProps=e.pendingProps,null===t?Lc(e):Mu=t}function Fc(e,t,n,r){Oo=Mo=null,_l(t),xi=null,Ci=0;var o=t.return;try{if(Ya(e,o,t,n,Ou))return $u=1,ja(e,lo(n,e.current)),void(Mu=null)}catch(i){if(null!==o)throw Mu=o,i;return $u=1,ja(e,lo(n,e.current)),void(Mu=null)}32768&t.flags?(So||1===r?e=!0:Wu||536870912&Ou?e=!1:(Nu=e=!0,(2===r||9===r||3===r||6===r)&&null!==(r=qi.current)&&13===r.tag&&(r.flags|=16384)),Mc(t,e)):Lc(t)}function Lc(e){var t=e;do{if(32768&t.flags)return void Mc(t,Nu);e=t.return;var n=As(t.alternate,t,ju);if(null!==n)return void(Mu=n);if(null!==(t=t.sibling))return void(Mu=t);Mu=t=e}while(null!==t);0===$u&&($u=5)}function Mc(e,t){do{var n=Ds(e.alternate,e);if(null!==n)return n.flags&=32767,void(Mu=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(Mu=e);Mu=e=n}while(null!==e);$u=6,Mu=null}function Oc(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&&(Mu=Lu=null,Ou=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(ye,function(){return jc(),null})):(e.callbackNode=null,e.callbackPriority=0),o=!!(13878&t.flags),13878&t.subtreeFlags||o){o=F.T,F.T=null,i=L.p,L.p=2,a=Fu,Fu|=4;try{Zs(e,t)}finally{Fu=a,L.p=i,F.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=F.T,F.T=null;var r=L.p;L.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,L.p=r,F.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=F.T,F.T=null;var r=L.p;L.p=2;var o=Fu;Fu|=4;try{eu(e,t.alternate,t)}finally{Fu=o,L.p=r,F.T=n}}oc=3}}function Nc(){if(4===oc||3===oc){oc=0,he();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,Ce&&"function"==typeof Ce.onCommitFiberRoot)try{Ce.onCommitFiberRoot(xe,t,void 0,!(128&~t.current.flags))}catch(s){}if(null!==r){t=F.T,o=L.p,L.p=2,F.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{F.T=t,L.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=F.T,i=L.p;try{L.p=32>n?32:n,F.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),Ce&&"function"==typeof Ce.onPostCommitFiberRoot)try{Ce.onPostCommitFiberRoot(xe,l)}catch(u){}return!0}finally{L.p=i,F.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))&&(Be(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),Be(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=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=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&&(Ou&n)===n&&(4===$u||3===$u&&(62914560&Ou)===Ou&&300>pe()-Zu?!(2&Fu)&&xc(e,0):qu|=n,Xu===Ou&&(Xu=0)),od(e)}function Yc(e,t){0===t&&(t=Me()),null!==(e=Vr(e,t))&&(Be(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 ue(e,t)}P(pc,"fc"),P(fc,"pc"),P(gc,"mc"),P(mc,"hc"),P(yc,"gc"),P(bc,"yc"),P(vc,"vc"),P(wc,"bc"),P(_c,"wc"),P(xc,"Sc"),P(Cc,"kc"),P(Sc,"Cc"),P(kc,"xc"),P(Tc,"Ec"),P(Pc,"Rc"),P(Ec,"Ic"),P(zc,"Pc"),P(Ic,"Tc"),P(Rc,"zc"),P(Ac,"_c"),P(Dc,"Nc"),P(Fc,"Fc"),P(Lc,"Dc"),P(Mc,"Lc"),P(Oc,"Oc"),P(Bc,"Ac"),P(Hc,"Mc"),P(Nc,"Hc"),P(Wc,"Uc"),P(Uc,"jc"),P(jc,"Wc"),P($c,"$c"),P(Vc,"Vc"),P(Gc,"Bc"),P(qc,"qc"),P(Yc,"Kc"),P(Xc,"Qc"),P(Kc,"Gc"),P(Qc,"Yc"),z(pc,"requestUpdateLane"),z(fc,"requestDeferredLane"),z(gc,"scheduleUpdateOnFiber"),z(mc,"performWorkOnRoot"),z(yc,"commitRootWhenReady"),z(bc,"isRenderConsistentWithExternalStores"),z(vc,"markRootSuspended"),z(wc,"flushSyncWork$1"),z(_c,"resetWorkInProgressStack"),z(xc,"prepareFreshStack"),z(Cc,"handleThrow"),z(Sc,"shouldRemainOnPreviousScreen"),z(kc,"pushDispatcher"),z(Tc,"pushAsyncDispatcher"),z(Pc,"renderDidSuspendDelayIfPossible"),z(Ec,"renderRootSync"),z(zc,"workLoopSync"),z(Ic,"renderRootConcurrent"),z(Rc,"workLoopConcurrentByScheduler"),z(Ac,"performUnitOfWork"),z(Dc,"replaySuspendedUnitOfWork"),z(Fc,"throwAndUnwindWorkLoop"),z(Lc,"completeUnitOfWork"),z(Mc,"unwindUnitOfWork"),z(Oc,"commitRoot"),z(Bc,"flushMutationEffects"),z(Hc,"flushLayoutEffects"),z(Nc,"flushSpawnedWork"),z(Wc,"releaseRootPooledCache"),z(Uc,"flushPendingEffects"),z(jc,"flushPassiveEffects"),z($c,"captureCommitPhaseErrorOnRoot"),z(Vc,"captureCommitPhaseError"),z(Gc,"attachPingListener"),z(qc,"pingSuspendedRoot"),z(Yc,"retryTimedOutBoundary"),z(Xc,"retryDehydratedSuspenseBoundary"),z(Kc,"resolveRetryWakeable"),z(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-ke(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=Ou,!(3&(i=De(r,r===Lu?i:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||Fe(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=pe(),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-ke(i),a=1<<l,s=o[l];-1===s?0!==(a&n)&&0===(a&r)||(o[l]=Le(a,t)):s<=t&&(e.expiredLanes|=a),i&=~a}if(n=Ou,n=De(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&&ce(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||Fe(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&ce(r),$e(n)){case 2:case 8:n=me;break;case 32:default:n=ye;break;case 268435456:n=ve}return r=ud.bind(null,e),n=ue(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&ce(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=Ou;return 0===(r=De(e,e===Lu?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(mc(e,r,t),sd(e,pe()),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?ue(ge,ld):ad()})}function hd(){if(0===rd){var e=ni;0===e&&(e=ze,!(261888&(ze<<=1))&&(ze=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:z(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}]})}}P(od,"rd"),P(id,"ld"),P(ld,"od"),P(ad,"ad"),P(sd,"id"),P(ud,"ud"),P(cd,"sd"),P(dd,"cd"),P(hd,"dd"),P(pd,"fd"),P(fd,"pd"),P(gd,"md"),z(od,"ensureRootIsScheduled"),z(id,"flushSyncWorkAcrossRoots_impl"),z(ld,"processRootScheduleInImmediateTask"),z(ad,"processRootScheduleInMicrotask"),z(sd,"scheduleTaskForRootDuringMicrotask"),z(ud,"performWorkOnRootViaSchedulerTask"),z(cd,"performSyncWorkOnRoot"),z(dd,"scheduleImmediateRootScheduleTask"),z(hd,"requestTransitionLane"),z(pd,"coerceFormActionProp"),z(fd,"createFormDataWithSubmitter"),z(gd,"extractEvents$1");for(var md=0;md<Mr.length;md++){var yd=Mr[md];Or(yd.toLowerCase(),"on"+(yd[0].toUpperCase()+yd.slice(1)))}Or(Er,"onAnimationEnd"),Or(zr,"onAnimationIteration"),Or(Ir,"onAnimationStart"),Or("dblclick","onDoubleClick"),Or("focusin","onFocus"),Or("focusout","onBlur"),Or(Rr,"onTransitionRun"),Or(Ar,"onTransitionStart"),Or(Dr,"onTransitionCancel"),Or(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]=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)}P(wd,"bd"),P(_d,"wd"),P(xd,"Sd"),z(wd,"processDispatchQueue"),z(_d,"listenToNonDelegatedEvent"),z(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&&Ot(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");_&&(On&&"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=Mn?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})}P(Sd,"Cd"),P(kd,"xd"),P(Td,"Ed"),P(Pd,"Rd"),P(Ed,"Id"),P(zd,"Pd"),P(Id,"Td"),z(Sd,"listenToAllSupportedEvents"),z(kd,"addTrappedEventListener"),z(Td,"dispatchEventForPluginEventSystem"),z(Pd,"createDispatchListener"),z(Ed,"accumulateTwoPhaseListeners"),z(zd,"getParent"),z(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":Mt(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 Md(e,t,n,o,i,l){switch(n){case"style":Mt(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 Od(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(Ot(t)){for(d in n)n.hasOwnProperty(d)&&void 0!==(i=n[d])&&Md(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(Ot(t)){for(var y in n)p=n[y],n.hasOwnProperty(y)&&void 0!==p&&!o.hasOwnProperty(y)&&Md(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||Md(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}P(Dd,"Nd"),P(Fd,"Fd"),P(Ld,"Dd"),P(Md,"Ld"),P(Od,"Od"),P(Bd,"Ad"),P(Hd,"Md"),P(Nd,"Hd"),z(Dd,"normalizeMarkupForTextOrAttribute"),z(Fd,"checkForUnmatchedText"),z(Ld,"setProp"),z(Md,"setPropOnCustomElement"),z(Od,"setInitialProperties"),z(Bd,"updateProperties"),z(Hd,"isLikelyStaticResource"),z(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}P(jd,"Wd"),P($d,"$d"),P(Vd,"Vd"),P(Gd,"Bd"),z(jd,"getOwnerDocumentFromRootContainer"),z($d,"getOwnHostContext"),z(Vd,"getChildHostContextProd"),z(Gd,"shouldSetTextContent");var qd=null;function Yd(){var e=window.event;return e&&"popstate"===e.type?e!==qd&&(qd=e,!0):(qd=null,!1)}P(Yd,"Kd"),z(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=z(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}P(Zd,"Jd"),P(eh,"Zd"),P(th,"ef"),P(nh,"tf"),P(rh,"nf"),P(oh,"rf"),P(ih,"lf"),P(lh,"of"),P(ah,"af"),P(sh,"uf"),P(uh,"sf"),P(ch,"cf"),z(Zd,"handleErrorInNextTick"),z(eh,"isSingletonScope"),z(th,"clearHydrationBoundary"),z(nh,"hideOrUnhideDehydratedBoundary"),z(rh,"clearContainerSparingly"),z(oh,"canHydrateInstance"),z(ih,"canHydrateTextInstance"),z(lh,"canHydrateHydrationBoundary"),z(ah,"isSuspenseInstancePending"),z(sh,"isSuspenseInstanceFallback"),z(uh,"registerSuspenseInstanceRetry"),z(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)}P(hh,"ff"),P(ph,"pf"),P(fh,"mf"),P(gh,"hf"),z(hh,"getNextHydratableInstanceAfterHydrationBoundary"),z(ph,"getParentHydrationBoundary"),z(fh,"resolveSingletonInstance"),z(gh,"releaseSingletonInstance");var mh=new Map,yh=new Set;function bh(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}P(bh,"vf"),z(bh,"getHoistableRoot");var vh=L.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)}P(wh,"wf"),P(_h,"Sf"),L.d={f:wh,r:_h,D:Sh,C:kh,L:Th,m:Ph,X:zh,S:Eh,M:Ih},z(wh,"flushSyncWork"),z(_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)&&(Od(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=Mh(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(Oh(i))||(Od(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=Mh(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(Oh(i)))return}Od(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),Od(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=Mh(e),i=r.get(o);i||((i=n.querySelector(Oh(o)))||(e=d({src:e,async:!0},t),(t=mh.get(o))&&Wh(e,t),at(i=n.createElement("script")),Od(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=Mh(e),i=r.get(o);i||((i=n.querySelector(Oh(o)))||(e=d({src:e,async:!0,type:"module"},t),(t=mh.get(o))&&Wh(e,t),at(i=n.createElement("script")),Od(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=K.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=Mh(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}),Od(t,"link",n),at(t),e.head.appendChild(t))}function Mh(e){return'[src="'+Tt(e)+'"]'}function Oh(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")),Od(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}),Od(l,"link",o),t.state.loading|=4,Hh(l,n.precedence,e),t.instance=l;case"script":return l=Mh(n.src),(i=e.querySelector(Oh(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")),Od(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)}P(Ch,"Cf"),P(Sh,"xf"),P(kh,"Ef"),P(Th,"Rf"),P(Ph,"If"),P(Eh,"Pf"),P(zh,"Tf"),P(Ih,"zf"),P(Rh,"_f"),P(Ah,"Nf"),P(Dh,"Ff"),P(Fh,"Df"),P(Lh,"Lf"),P(Mh,"Of"),P(Oh,"Af"),P(Bh,"Mf"),P(Hh,"Hf"),P(Nh,"Uf"),P(Wh,"jf"),z(Ch,"preconnectAs"),z(Sh,"prefetchDNS"),z(kh,"preconnect"),z(Th,"preload"),z(Ph,"preloadModule"),z(Eh,"preinitStyle"),z(zh,"preinitScript"),z(Ih,"preinitModuleScript"),z(Rh,"getResource"),z(Ah,"getStyleKey"),z(Dh,"getStylesheetSelectorFromKey"),z(Fh,"stylesheetPropsFromRawProps"),z(Lh,"preloadStylesheet"),z(Mh,"getScriptKey"),z(Oh,"getScriptSelectorFromKey"),z(Bh,"acquireResource"),z(Hh,"insertStylesheet"),z(Nh,"adoptPreloadPropsForStylesheet"),z(Wh,"adoptPreloadPropsForScript");var Uh=null;function jh(e,t,n){if(null===Uh){var r=new Map,o=Uh=new Map;o.set(n,r)}else(r=(o=Uh).get(n))||(r=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}),Od(i,"link",r),n.instance=i}null===e.stylesheets&&(e.stylesheets=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))}}P(jh,"$f"),P($h,"Vf"),P(Vh,"Bf"),P(Gh,"qf"),P(qh,"Kf"),z(jh,"getHydratableHoistableCache"),z($h,"mountHoistable"),z(Vh,"isHostHoistableType"),z(Gh,"preloadResource"),z(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()}}P(Xh,"Gf"),P(Kh,"Yf"),z(Xh,"waitForCommitToBeReady"),z(Kh,"onUnsuspend");var Qh=null;function Jh(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,Qh=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=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}}P(Jh,"Jf"),P(Zh,"Zf"),z(Jh,"insertSuspendedStylesheets"),z(Zh,"insertStylesheetIntoRoot");var ep={$$typeof:v,Provider:null,Consumer:null,_currentValue:O,_currentValue2:O,_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=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)}}P(tp,"tp"),P(np,"np"),P(rp,"rp"),P(op,"lp"),P(ip,"op"),P(lp,"ap"),P(ap,"ip"),P(sp,"up"),z(tp,"FiberRootNode"),z(np,"createFiberRoot"),z(rp,"getContextForSubtree"),z(op,"updateContainerImpl"),z(ip,"markRetryLaneImpl"),z(lp,"markRetryLaneIfNotHydrated"),z(ap,"attemptContinuousHydration"),z(sp,"attemptHydrationAtCurrentPriority");var up=!0;function cp(e,t,n,r){var o=F.T;F.T=null;var i=L.p;try{L.p=2,hp(e,t,n,r)}finally{L.p=i,F.T=o}}function dp(e,t,n,r){var o=F.T;F.T=null;var i=L.p;try{L.p=8,hp(e,t,n,r)}finally{L.p=i,F.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=Ae(i.pendingLanes);if(0!==l){var a=i;for(a.pendingLanes|=2,a.entangledLanes|=2;l;){var s=1<<31-ke(l);a.entanglements[1]|=s,l&=~s}od(i),!(6&Fu)&&(tc=pe()+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))}P(cp,"cp"),P(dp,"dp"),P(hp,"fp"),P(pp,"pp"),z(cp,"dispatchDiscreteEvent"),z(dp,"dispatchContinuousEvent"),z(hp,"dispatchEvent"),z(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(fe()){case ge:return 2;case me:return 8;case ye:case be:return 32;case ve:return 268435456;default:return 32}default:return 32}}P(gp,"hp"),P(mp,"gp"),z(gp,"findInstanceBlockingTarget"),z(mp,"getEventPriority");var yp=!1,bp=null,vp=null,wp=null,_p=new Map,xp=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)))}P(kp,"Ep"),P(Tp,"Rp"),P(Pp,"Ip"),P(Ep,"Pp"),P(zp,"Tp"),P(Ip,"zp"),P(Rp,"_p"),P(Ap,"Np"),z(kp,"clearIfContinuousEvent"),z(Tp,"accumulateOrCreateContinuousQueuedReplayableEvent"),z(Pp,"queueIfContinuousEvent"),z(Ep,"attemptExplicitHydrationTarget"),z(zp,"attemptReplayContinuousQueuedEvent"),z(Ip,"attemptReplayContinuousQueuedEventInMap"),z(Rp,"replayUnblockedEvents"),z(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)}P(t,"n"),z(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 Mp(){function e(e){e.canIntercept&&"react-transition"===e.info&&e.intercept({handler:z(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(P(e,"e"),P(t,"n"),P(n,"r"),z(e,"handleNavigate"),z(t,"handleNavigateComplete"),z(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 Op(e){this._internalRoot=e}function Bp(e){this._internalRoot=e}P(Fp,"Dp"),P(Lp,"Lp"),P(Mp,"Op"),P(Op,"Ap"),P(Bp,"Mp"),z(Fp,"scheduleReplayQueueIfNeeded"),z(Lp,"retryIfBlockedOn"),z(Mp,"defaultOnDefaultTransitionIndicator"),z(Op,"ReactDOMRoot"),Bp.prototype.render=Op.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=Op.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}},z(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.5"!==Hp)throw Error(r(527,Hp,"19.2.5"));L.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.5",rendererPackageName:"react-dom",currentDispatcherRef:F,reconcilerVersion:"19.2.5"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Wp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wp.isDisabled&&Wp.supportsFiber)try{xe=Wp.inject(Np),Ce=Wp}catch(jp){}}return U.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,Mp),e[Ke]=t.current,Sd(e),new Op(t)},U.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,Mp)).context=rp(null),n=t.current,(l=Di(i=je(i=pc()))).callback=null,Fi(n,l,i),n=i,t.current.lanes=n,Be(t,n),od(t),e[Ke]=t.current,Sd(e),new Bp(t)},U.version="19.2.5",U}function ne(){if(K)return W.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 P(e,"e"),K=1,z(e,"checkDCE"),e(),W.exports=te(),W.exports}P(Z,"N$1"),P(ee,"F$1"),P(te,"D$1"),P(ne,"L$1"),z(Z,"requireReactDom_production"),z(ee,"requireReactDom"),z(te,"requireReactDomClient_production"),z(ne,"requireClient");var re,oe,ie=ne(),le={exports:{}},ae={};function se(){if(re)return ae;re=1;var e=Symbol.for("react.transitional.element"),t=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 P(n,"r"),z(n,"jsxProd"),ae.Fragment=t,ae.jsx=n,ae.jsxs=n,ae}function ue(){return oe||(oe=1,le.exports=se()),le.exports}P(se,"j$1"),P(ue,"W"),z(se,"requireReactJsxRuntime_production"),z(ue,"requireJsxRuntime");var ce=ue(),de=ee();function he(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 pe(e){e.stopPropagation()}function fe(e,t="instant"){e?.scrollIntoView({inline:"nearest",block:"nearest",behavior:t})}function ge(e){let t=!1;const n={...e,preventGridDefault(){t=!0},isGridDefaultPrevented:P(()=>t,"isGridDefaultPrevented")};return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),n}P(he,"B"),P(pe,"q$1"),P(fe,"K$1"),P(ge,"Q$1"),z(he,"getColSpan"),z(pe,"stopPropagation"),z(fe,"scrollIntoView"),z(ge,"createCellEvent");const me=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 ye(e){return(e.ctrlKey||e.metaKey)&&"Control"!==e.key}function be(e,t){return(!ye(e)||86===e.keyCode&&!t)&&!me.has(e.key)}function ve({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 we(e){const t="rtl"===e;return{leftKey:t?"ArrowRight":"ArrowLeft",rightKey:t?"ArrowLeft":"ArrowRight"}}function _e(e){return e.map(({key:e,idx:t,minWidth:n,maxWidth:r})=>ce.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 xe({selectedPosition:e,columns:t,rows:n}){return Ce(t[e.idx],n[e.rowIdx])}function Ce(e,t){return null!=e.renderEditCell&&!1!==("function"==typeof e.editable?e.editable(t):e.editable)}function Se({rows:e,topSummaryRows:t,bottomSummaryRows:n,rowIdx:r,mainHeaderRowIdx:o,lastFrozenColumnIndex:i,column:l}){const a=t?.length??0;return r===o?he(l,i,{type:"HEADER"}):t&&r>o&&r<=a+o?he(l,i,{type:"SUMMARY",row:t[r+a]}):r>=0&&r<e.length?he(l,i,{type:"ROW",row:e[r]}):n?he(l,i,{type:"SUMMARY",row:n[r-e.length]}):void 0}function ke({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=z(e=>{for(const t of o){const n=t.idx;if(n>m)break;const r=Se({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=z(e=>e.level+u,"getParentRowIdx"),_=z(()=>{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 Te({maxColIdx:e,minRowIdx:t,maxRowIdx:n,selectedPosition:{rowIdx:r,idx:o},shiftKey:i}){return i?0===o&&r===t:o===e&&r===n}P(ye,"Y$1"),z(ye,"isCtrlKeyHeldDown"),P(be,"X$1"),P(ve,"J$1"),P(we,"Z$1"),z(be,"isDefaultCellInput"),z(ve,"onEditorNavigation"),z(we,"getLeftRightKey"),P(_e,"ee$1"),P(xe,"te$1"),P(Ce,"ne$1"),P(Se,"re$1"),P(ke,"le$1"),P(Te,"oe$1"),z(_e,"renderMeasuringCells"),z(xe,"isSelectedCellEditable"),z(Ce,"isCellEditableUtil"),z(Se,"getSelectedCellColSpan"),z(ke,"getNextSelectedCellPosition"),z(Te,"canExitGrid");const Pe="rdg-cell rdg-7-0-0-beta-58-85c48527",Ee="rdg-cell-frozen rdg-7-0-0-beta-58-17a9a6d4";function ze(e){return{"--rdg-grid-row-start":e}}function Ie(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 Re(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 Ae(...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 De(e,...t){return Ae(Pe,{[Ee]:e.frozen},...t)}P(ze,"ue"),P(Ie,"se$1"),P(Re,"ce"),P(Ae,"de$1"),P(De,"fe"),z(ze,"getRowStyle"),z(Ie,"getHeaderCellStyle"),z(Re,"getCellStyle"),z(Ae,"classnames"),z(De,"getCellClassname");const{min:Fe,max:Le,floor:Me,sign:Oe,abs:Be}=Math;function He(e){if("function"!=typeof e)throw new Error("Please specify the rowKeyGetter prop to use selection")}function Ne(e,{minWidth:t,maxWidth:n}){return e=Le(e,t),"number"==typeof n&&n>=t?Fe(e,n):e}function We(e,t){return void 0===e.parent?t:e.level-e.parent.level}function Ue({onChange:e,indeterminate:t,...n}){function r(t){e(t.target.checked,t.nativeEvent.shiftKey)}return P(r,"l"),z(r,"handleChange"),ce.jsx("input",{ref:z(e=>{e&&(e.indeterminate=!0===t)},"ref"),type:"checkbox",className:"rdg-checkbox-input rdg-7-0-0-beta-58-3b807ead",onChange:r,...n})}function je(e){try{return e.row[e.column.key]}catch{return null}}P(He,"ve"),P(Ne,"be"),P(We,"we"),z(He,"assertIsValidKeyGetter"),z(Ne,"clampColumnWidth"),z(We,"getHeaderCellRowSpan"),P(Ue,"Se"),P(je,"ke"),z(Ue,"renderCheckbox"),z(je,"renderValue");const $e=O.createContext(void 0);function Ve(){return O.useContext($e)}function Ge({value:e,tabIndex:t,indeterminate:n,disabled:r,onChange:o,"aria-label":i,"aria-labelledby":l}){return(0,Ve().renderCheckbox)({"aria-label":i,"aria-labelledby":l,tabIndex:t,indeterminate:n,disabled:r,checked:e,onChange:o})}P(Ve,"xe"),P(Ge,"Ee"),z(Ve,"useDefaultRenderers"),z(Ge,"SelectCellFormatter");const qe=O.createContext(void 0),Ye=O.createContext(void 0);function Xe(){const e=O.useContext(qe),t=O.useContext(Ye);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}}P(Xe,"Pe"),z(Xe,"useRowSelection");const Ke=O.createContext(void 0),Qe=O.createContext(void 0);function Je(){const e=O.useContext(Ke),t=O.useContext(Qe);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}}P(Je,"_e"),z(Je,"useHeaderRowSelection");const Ze="rdg-select-column";function et(e){const{isIndeterminate:t,isRowSelected:n,onRowSelectionChange:r}=Je();return ce.jsx(Ge,{"aria-label":"Select All",tabIndex:e.tabIndex,indeterminate:t,value:n,onChange:z(e=>{r({checked:!t&&e})},"onChange")})}function tt(e){const{isRowSelectionDisabled:t,isRowSelected:n,onRowSelectionChange:r}=Xe();return ce.jsx(Ge,{"aria-label":"Select",tabIndex:e.tabIndex,disabled:t,value:n,onChange:z((t,n)=>{r({row:e.row,checked:t,isShiftClick:n})},"onChange")})}function nt(e){const{isRowSelected:t,onRowSelectionChange:n}=Xe();return ce.jsx(Ge,{"aria-label":"Select Group",tabIndex:e.tabIndex,value:t,onChange:z(t=>{n({row:e.row,checked:t,isShiftClick:!1})},"onChange")})}P(et,"Fe"),P(tt,"De"),P(nt,"Le"),z(et,"HeaderRenderer"),z(tt,"SelectFormatter"),z(nt,"SelectGroupFormatter");const rt={key:Ze,name:"",width:35,minWidth:35,maxWidth:35,resizable:!1,sortable:!1,frozen:!0,renderHeaderCell:P(e=>ce.jsx(et,{...e}),"renderHeaderCell"),renderCell:P(e=>ce.jsx(tt,{...e}),"renderCell"),renderGroupCell:P(e=>ce.jsx(nt,{...e}),"renderGroupCell")};function ot({column:e,sortDirection:t,priority:n}){return e.sortable?ce.jsx(it,{sortDirection:t,priority:n,children:e.name}):e.name}function it({sortDirection:e,priority:t,children:n}){const r=Ve().renderSortStatus;return ce.jsxs("span",{className:"rdg-7-0-0-beta-58-56a248e4",children:[ce.jsx("span",{className:"rdg-header-sort-name rdg-7-0-0-beta-58-7fad8c83",children:n}),ce.jsx("span",{children:r({sortDirection:e,priority:t})})]})}function lt({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??je,c=t?.renderHeaderCell??ot,d=t?.sortable??!1,h=t?.resizable??!1,p=t?.draggable??!1,{columns:f,colSpanColumns:g,lastFrozenColumnIndex:m,headerRowsCount:y}=O.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)}}P(o,"o"),o(e,1),z(o,"collectColumns"),r.sort(({key:e,frozen:t},{key:n,frozen:r})=>e===Ze?-1:n===Ze?1:t?r?0:-1:r?1:0);const i=[];return r.forEach((e,t)=>{e.idx=t,at(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:_}=O.useMemo(()=>{const e=new Map;let t=0,r=0;const o=[];for(const l of f){let r=n(l);r="number"==typeof r?Ne(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]),[x,C]=O.useMemo(()=>{if(!i)return[0,f.length-1];const e=o+w,t=o+r,n=f.length-1,l=Fe(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[Le(l,a-1),Fe(n,s+1)]},[_,f,m,o,w,r,i]);return{columns:f,colSpanColumns:g,colOverscanStartIdx:x,colOverscanEndIdx:C,templateColumns:b,layoutCssVars:v,headerRowsCount:y,lastFrozenColumnIndex:m,totalFrozenColumnWidth:w}}function at(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,at(r,t,n-1)}}function st(e,t,n,r,o,i,l,a,s){const[u,c]=O.useState(null),[d,h]=O.useState(null),[p,f]=O.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=ut(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=ut(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(de.flushSync(()=>{if(g){const e=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:ut(r,o);void 0!==l&&l!==t&&a(e,l)}}return P(w,"k"),P(_,"C"),O.useLayoutEffect(w),z(w,"updateMeasuredAndResizedWidths"),z(_,"handleColumnResize"),{gridTemplateColumns:v,handleColumnResize:_}}function ut(e,t){const n=`[data-measuring-cell-key="${CSS.escape(t)}"]`;return e.current?.querySelector(n)?.getBoundingClientRect().width}function ct(){const e=O.useRef(null),[t,n]=O.useState(1),[r,o]=O.useState(1),[i,l]=O.useState(0);return O.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;de.flushSync(()=>{n(r.inlineSize),o(r.blockSize),l(a-i)})});return p.observe(e.current),()=>{p.disconnect()}},[]),[e,t,r,i]}function dt(e){const t=O.useRef(e);O.useLayoutEffect(()=>{t.current=e});const n=O.useCallback((...e)=>{t.current(...e)},[]);return e?n:e}function ht(e){const[t,n]=O.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 P(r,"l"),t&&!e&&n(!1),z(r,"onFocus"),{tabIndex:e&&!t?0:-1,childTabIndex:e?0:-1,onFocus:e?r:void 0}}function pt({columns:e,colSpanColumns:t,rows:n,topSummaryRows:r,bottomSummaryRows:o,colOverscanStartIdx:i,colOverscanEndIdx:l,lastFrozenColumnIndex:a,rowOverscanStartIdx:s,rowOverscanEndIdx:u}){const c=O.useMemo(()=>{if(0===i)return 0;let e=i;const l=z((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,he(i,a,{type:"HEADER"})))break;for(let e=s;e<=u;e++){const r=n[e];if(l(t,he(i,a,{type:"ROW",row:r})))break}if(null!=r)for(const e of r)if(l(t,he(i,a,{type:"SUMMARY",row:e})))break;if(null!=o)for(const e of o)if(l(t,he(i,a,{type:"SUMMARY",row:e})))break}return e},[s,u,n,r,o,i,a,t]);return O.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 ft({rows:e,rowHeight:t,clientHeight:n,scrollTop:r,enableVirtualization:o}){const{totalRowHeight:i,gridTemplateRows:l,getRowTop:a,getRowHeight:s,findRowIdx:u}=O.useMemo(()=>{if("number"==typeof t)return{totalRowHeight:t*e.length,gridTemplateRows:` repeat(${e.length}, ${t}px)`,getRowTop:z(e=>e*t,"getRowTop"),getRowHeight:z(()=>t,"getRowHeight"),findRowIdx:z(e=>Me(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=z(t=>Le(0,Fe(e.length-1,t)),"validateRowIdx");return{totalRowHeight:n,gridTemplateRows:r,getRowTop:z(e=>l[a(e)].top,"getRowTop"),getRowHeight:z(e=>l[a(e)].height,"getRowHeight"),findRowIdx(e){let t=0,n=l.length-1;for(;t<=n;){const r=t+Me((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=Le(0,o-t),d=Fe(e.length-1,i+t)}return{rowOverscanStartIdx:c,rowOverscanEndIdx:d,totalRowHeight:i,gridTemplateRows:l,getRowTop:a,getRowHeight:s,findRowIdx:u}}P(ot,"Ae"),P(it,"Me"),z(ot,"renderHeaderCell"),z(it,"SortableHeaderCell"),P(lt,"He"),P(at,"Ue"),P(st,"je"),P(ut,"We"),P(ct,"$e"),P(dt,"Ve"),P(ht,"Be"),P(pt,"qe"),P(ft,"Ke"),z(lt,"useCalculatedColumns"),z(at,"updateColumnParent"),z(st,"useColumnWidths"),z(ut,"measureColumnWidth"),z(ct,"useGridDimensions"),z(dt,"useLatestFunc"),z(ht,"useRovingTabIndex"),z(pt,"useViewportColumns"),z(ft,"useViewportRows");const gt="rdg-cell-dragged-over rdg-7-0-0-beta-58-35ccb4c8";function mt({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:_}=ht(n),{cellClass:x}=e;l=De(e,{[gt]:r},"function"==typeof x?x(o):x,l);const C=Ce(e,o);function S(t){m({rowIdx:i,idx:e.idx},{enableEditor:t})}function k(t,n){let r=!1;if(n){const l=ge(t);n({rowIdx:i,row:o,column:e,selectCell:S},l),r=l.isGridDefaultPrevented()}return r}function T(e){a?.(e),k(e,s)||S()}function E(e){u?.(e),k(e,c)}function I(e){d?.(e),k(e,h)||S(!0)}function R(e){p?.(e),k(e,f)}function A(t){g(e,t)}return P(S,"E"),P(k,"R"),P(T,"I"),P(E,"P"),P(I,"T"),P(R,"z"),P(A,"_"),z(S,"selectCellWrapper"),z(k,"handleMouseEvent"),z(T,"handleMouseDown"),z(E,"handleClick"),z(I,"handleDoubleClick"),z(R,"handleContextMenu"),z(A,"handleRowChange"),ce.jsx("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":n,"aria-readonly":!C||void 0,tabIndex:v,className:l,style:{...Re(e,t),...y},onClick:E,onMouseDown:T,onDoubleClick:I,onContextMenu:R,onFocus:_,...b,children:e.renderCell({column:e,row:o,rowIdx:i,isCellEditable:C,tabIndex:w,onRowChange:A})})}P(mt,"Ge"),z(mt,"Cell");const yt=O.memo(mt);function bt(e,t){return ce.jsx(yt,{...t},e)}P(bt,"Xe"),z(bt,"defaultRenderCell");const vt="object"==typeof scheduler&&"function"==typeof scheduler.postTask;function wt({column:e,colSpan:t,row:n,rowIdx:r,onRowChange:o,closeEditor:i,onKeyDown:l,navigate:a}){const s=O.useRef(void 0),u=O.useRef(void 0),c=O.useRef(void 0),d=e.editorOptions?.commitOnOutsideClick??!0,h=O.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=ge(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):ve(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)}P(p,"m"),P(f,"h"),P(g,"y"),P(m,"v"),O.useLayoutEffect(()=>{if(d)return z(e,"onWindowCaptureMouseDown"),z(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,vt){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()}P(e,"e"),P(t,"n")},[d]),z(p,"cancelTask"),z(f,"handleKeyDown"),z(g,"onClose"),z(m,"onEditorRowChange");const{cellClass:y}=e,b=De(e,"rdg-editor-container",!e.editorOptions?.displayCellContent&&"rdg-7-0-0-beta-58-46f9ea88","function"==typeof y?y(n):y);return ce.jsx("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":!0,className:b,style:Re(e,t),onKeyDown:f,onMouseDownCapture:p,children:null!=e.renderEditCell&&ce.jsxs(ce.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 _t({column:e,rowIdx:t,isCellSelected:n,selectCell:r}){const{tabIndex:o,onFocus:i}=ht(n),{colSpan:l}=e,a=We(e,t),s=e.idx+1;function u(){r({idx:e.idx,rowIdx:t})}return P(u,"c"),z(u,"onMouseDown"),ce.jsx("div",{role:"columnheader","aria-colindex":s,"aria-colspan":l,"aria-rowspan":a,"aria-selected":n,tabIndex:o,className:Ae(Pe,e.headerCellClass),style:{...Ie(e,t,a),gridColumnStart:s,gridColumnEnd:s+l},onFocus:i,onMouseDown:u,children:e.name})}P(wt,"Ze"),P(_t,"et$1"),z(wt,"EditCell"),z(_t,"GroupedColumnHeaderCell");const xt="rdg-7-0-0-beta-58-2a7e240d",Ct="rdg-cell-resizable rdg-7-0-0-beta-58-1893dc0f",St="rdg-cell-draggable",kt="rdg-cell-dragging rdg-7-0-0-beta-58-3e1a4ad4",Tt="rdg-cell-drag-over rdg-7-0-0-beta-58-51abd8b8";function Pt({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]=O.useState(!1),m=O.useRef(null),y=h===e.key,b=We(e,n),{tabIndex:v,childTabIndex:w,onFocus:_}=ht(c||r),x=a?.findIndex(t=>t.columnKey===e.key),C=void 0!==x&&x>-1?a[x]:void 0,S=C?.direction,k=void 0!==C&&a.length>1?x+1:void 0,T=S&&!k?"ASC"===S?"ascending":"descending":void 0,{sortable:E,resizable:I,draggable:R}=e,A=De(e,e.headerCellClass,{[xt]:E,[Ct]:I,[St]:R,[kt]:y,[Tt]:f});function D(t){if(null==s)return;const{sortDescendingFirst:n}=e;if(void 0===C){const r={columnKey:e.key,direction:n?"DESC":"ASC"};s(a&&t?[...a,r]:[r])}else{let r;if((!0===n&&"DESC"===S||!0!==n&&"ASC"===S)&&(r={columnKey:e.key,direction:"ASC"===S?"DESC":"ASC"}),t){const e=[...a];r?e[x]=r:e.splice(x,1),s(e)}else s(r?[r]:[])}}function F(e){_?.(e),c&&u({idx:0,rowIdx:n})}function L(){u({idx:e.idx,rowIdx:n})}function M(e){E&&D(e.ctrlKey||e.metaKey)}function B(t){const{key:n}=t;if(!E||" "!==n&&"Enter"!==n){if(I&&ye(t)&&("ArrowLeft"===n||"ArrowRight"===n)){t.stopPropagation();const{width:r}=t.currentTarget.getBoundingClientRect(),{leftKey:i}=we(d),l=Ne(r+(n===i?-10:10),e);l!==r&&o(e,l)}}else t.preventDefault(),D(t.ctrlKey||t.metaKey)}function H(t){de.flushSync(()=>{p(e.key)}),t.dataTransfer.setDragImage(m.current,0,0),t.dataTransfer.dropEffect="move"}function N(){p(void 0)}function W(e){e.preventDefault(),e.dataTransfer.dropEffect="move"}function U(t){g(!1),t.preventDefault(),l?.(h,e.key)}function j(e){zt(e)&&g(!0)}function $(e){zt(e)&&g(!1)}let V,G;P(D,"F"),P(F,"D"),P(L,"L"),P(M,"O"),P(B,"A"),P(H,"M"),P(N,"H"),P(W,"U"),P(U,"j"),P(j,"W"),P($,"B"),z(D,"onSort"),z(F,"handleFocus"),z(L,"onMouseDown"),z(M,"onClick"),z(B,"onKeyDown"),z(H,"onDragStart"),z(N,"onDragEnd"),z(W,"onDragOver"),z(U,"onDrop"),z(j,"onDragEnter"),z($,"onDragLeave"),R&&(V={draggable:!0,onDragStart:H,onDragEnd:N},void 0!==h&&h!==e.key&&(G={onDragOver:W,onDragEnter:j,onDragLeave:$,onDrop:U}));const q={...Ie(e,n,b),...Re(e,t)},Y=e.renderHeaderCell({column:e,sortDirection:S,priority:k,tabIndex:w});return ce.jsxs(ce.Fragment,{children:[y&&ce.jsx("div",{ref:m,style:q,className:De(e,e.headerCellClass,"rdg-7-0-0-beta-58-c8d7aa64"),children:Y}),ce.jsxs("div",{role:"columnheader","aria-colindex":e.idx+1,"aria-colspan":t,"aria-rowspan":b,"aria-selected":r,"aria-sort":T,tabIndex:v,className:A,style:q,onMouseDown:L,onFocus:F,onClick:M,onKeyDown:B,...V,...G,children:[Y,I&&ce.jsx(Et,{direction:d,column:e,onColumnResize:o,onColumnResizeEnd:i})]})]})}function Et({direction:e,column:t,onColumnResize:n,onColumnResizeEnd:r}){const o=O.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=Ne(u,t),l>0&&u!==l&&n(t,u)}function s(){r(),o.current=void 0}function u(){n(t,"max-content")}return P(l,"i"),P(a,"u"),P(s,"s"),P(u,"c"),z(l,"onPointerDown"),z(a,"onPointerMove"),z(s,"onLostPointerCapture"),z(u,"onDoubleClick"),ce.jsx("div",{"aria-hidden":!0,className:"rdg-resize-handle rdg-7-0-0-beta-58-4e60db91",onClick:pe,onPointerDown:l,onPointerMove:a,onLostPointerCapture:s,onDoubleClick:u})}function zt(e){const t=e.relatedTarget;return!e.currentTarget.contains(t)}P(Pt,"at$1"),P(Et,"it$1"),P(zt,"ut$1"),z(Pt,"HeaderCell"),z(Et,"ResizeHandle"),z(zt,"isEventPertinent");const It="rdg-row rdg-7-0-0-beta-58-3c083f1b",Rt="rdg-7-0-0-beta-58-3fe773c3",At="rdg-row-selected",Dt="rdg-7-0-0-beta-58-97ce3fde",Ft="rdg-bottom-summary-row",Lt="rdg-header-row rdg-7-0-0-beta-58-0dbd5994";function Mt({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]=O.useState(),g=[];for(let m=0;m<n.length;m++){const e=n[m],y=he(e,s,{type:"HEADER"});void 0!==y&&(m+=y-1),g.push(ce.jsx(Pt,{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 ce.jsx("div",{role:"row","aria-rowindex":t,className:Ae(Lt,{[At]:-1===u},e),children:g})}P(Mt,"ht$1"),z(Mt,"HeaderRow");var Ot=O.memo(Mt);function Bt({rowIdx:e,level:t,columns:n,selectedCellIdx:r,selectCell:o}){const i=[],l=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(ce.jsx(_t,{column:n,rowIdx:e,isCellSelected:r===t,selectCell:o},t))}}}return ce.jsx("div",{role:"row","aria-rowindex":e,className:Lt,children:i})}P(Bt,"yt$1"),z(Bt,"GroupedColumnHeaderRow");var Ht=O.memo(Bt);function Nt({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=Ve().renderCell,_=dt((e,n)=>{m(e,t,n)});e=Ae(It,"rdg-row-"+(t%2==0?"even":"odd"),{[At]:-1===r},g?.(s,t),e);const x=[];for(let C=0;C<u.length;C++){const e=u[C],{idx:n}=e,o=he(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 ce.jsx(qe,{value:O.useMemo(()=>({isRowSelected:i,isRowSelectionDisabled:o}),[o,i]),children:ce.jsx("div",{role:"row",className:e,style:{...ze(n),...b},...v,children:x})})}P(Nt,"bt$1"),z(Nt,"Row");const Wt=O.memo(Nt);function Ut(e,t){return ce.jsx(Wt,{...t},e)}function jt({scrollToPosition:{idx:e,rowIdx:t},gridRef:n,setScrollToCellPosition:r}){const o=O.useRef(null);return O.useLayoutEffect(()=>{fe(o.current,"auto")}),O.useLayoutEffect(()=>{function e(){r(null)}P(e,"e"),z(e,"removeScrollToCell");const t=new IntersectionObserver(e,{root:n.current,threshold:1});return t.observe(o.current),()=>{t.disconnect()}},[n,r]),ce.jsx("div",{ref:o,style:{gridColumn:void 0===e?"1/-1":e+1,gridRow:void 0===t?"1/-1":t+2}})}function $t({sortDirection:e,priority:t}){return ce.jsxs(ce.Fragment,{children:[Vt({sortDirection:e}),Gt({priority:t})]})}function Vt({sortDirection:e}){return void 0===e?null:ce.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:ce.jsx("path",{d:"ASC"===e?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})})}function Gt({priority:e}){return e}P(Ut,"St$1"),P(jt,"kt$1"),z(Ut,"defaultRenderRow"),z(jt,"ScrollToCell"),P($t,"Ct$1"),P(Vt,"xt$1"),P(Gt,"Et$1"),z($t,"renderSortStatus"),z(Vt,"renderSortIcon"),z(Gt,"renderSortPriority");const qt="rdg-viewport-dragging rdg-7-0-0-beta-58-e9b0e1c9",Yt="rdg-7-0-0-beta-58-e9f55541";function Xt({column:e,colSpan:t,row:n,rowIdx:r,isCellSelected:o,selectCell:i}){const{tabIndex:l,childTabIndex:a,onFocus:s}=ht(o),{summaryCellClass:u}=e,c=De(e,"rdg-7-0-0-beta-58-d907aa87","function"==typeof u?u(n):u);function d(){i({rowIdx:r,idx:e.idx})}return P(d,"f"),z(d,"onMouseDown"),ce.jsx("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":o,tabIndex:l,className:c,style:Re(e,t),onMouseDown:d,onFocus:s,children:e.renderSummaryCell?.({column:e,row:n,tabIndex:a})})}P(Xt,"Pt$1"),z(Xt,"SummaryCell");var Kt=O.memo(Xt);function Qt({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=he(t,l,{type:"SUMMARY",row:n});void 0!==o&&(h+=o-1);const i=a===t.idx;d.push(ce.jsx(Kt,{column:t,colSpan:o,row:n,rowIdx:e,isCellSelected:i,selectCell:u},t.key))}return ce.jsx("div",{role:"row","aria-rowindex":c,className:Ae(It,"rdg-row-"+(e%2==0?"even":"odd"),"rdg-summary-row rdg-7-0-0-beta-58-0b90c82c",{[At]:-1===a,"rdg-top-summary-row rdg-7-0-0-beta-58-d0520eab":s,[Ft]:!s}),style:{...ze(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})}P(Qt,"zt$1"),z(Qt,"SummaryRow");var Jt=O.memo(Qt);function Zt(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:x,onCellKeyDown:C,onSelectedCellChange:S,onScroll:k,onColumnResize:T,onColumnsReorder:E,onFill:I,onCellCopy:R,onCellPaste:A,enableVirtualization:D,renderers:F,className:L,style:M,rowClass:B,headerRowClass:H,direction:N,role:W,"aria-label":U,"aria-labelledby":j,"aria-description":$,"aria-describedby":V,"aria-rowcount":G,"data-testid":q,"data-cy":Y}=e,X=Ve(),K=W??"grid",Q=s??35,J=u??("number"==typeof Q?Q:35),Z=c??("number"==typeof Q?Q:35),ee=F?.renderRow??X?.renderRow??Ut,te=F?.renderCell??X?.renderCell??bt,ne=F?.renderSortStatus??X?.renderSortStatus??$t,re=F?.renderCheckbox??X?.renderCheckbox??Ue,oe=F?.noRowsFallback??X?.noRowsFallback,ie=D??!0,le=N??"ltr",[ae,se]=O.useState(0),[ue,pe]=O.useState(0),[me,ve]=O.useState(()=>d??new Map),[Ce,Se]=O.useState(!1),[Pe,Ee]=O.useState(!1),[ze,Ie]=O.useState(void 0),[De,Fe]=O.useState(null),[Le,Me]=O.useState(!1),[Ne,We]=O.useState(-1),je=null!=d&&null!=h&&!Ce,Ge=je?d:me,qe=je?e=>{ve(e),h(e)}:ve,Xe=O.useCallback(e=>Ge.get(e.key)?.width??e.width,[Ge]),[Je,Ze,et,tt]=ct(),{columns:nt,colSpanColumns:rt,lastFrozenColumnIndex:ot,headerRowsCount:it,colOverscanStartIdx:at,colOverscanEndIdx:ut,templateColumns:ht,layoutCssVars:gt,totalFrozenColumnWidth:mt}=lt({rawColumns:n,defaultColumnOptions:b,getColumnWidth:Xe,scrollLeft:ue,viewportWidth:Ze,enableVirtualization:ie}),yt=o?.length??0,vt=i?.length??0,_t=yt+vt,xt=it+yt,Ct=it-1,St=-xt,kt=St+Ct,Tt=r.length+vt-1,[Pt,Et]=O.useState(()=>({idx:-1,rowIdx:St-1,mode:"SELECT"})),zt=O.useRef(null),It="treegrid"===K,At=it*J,Ft=_t*Z,Lt=et-At-Ft,Mt=null!=p&&null!=g,{leftKey:Bt,rightKey:Nt}=we(le),Wt=G??it+r.length+_t,Vt=O.useMemo(()=>({renderCheckbox:re,renderSortStatus:ne,renderCell:te}),[re,ne,te]),Gt=O.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:Xt,rowOverscanEndIdx:Kt,totalRowHeight:Qt,gridTemplateRows:Zt,getRowTop:nn,getRowHeight:rn,findRowIdx:on}=ft({rows:r,rowHeight:Q,clientHeight:Lt,scrollTop:ae,enableVirtualization:ie}),ln=pt({columns:nt,colSpanColumns:rt,colOverscanStartIdx:at,colOverscanEndIdx:ut,lastFrozenColumnIndex:ot,rowOverscanStartIdx:Xt,rowOverscanEndIdx:Kt,rows:r,topSummaryRows:o,bottomSummaryRows:i}),{gridTemplateColumns:an,handleColumnResize:sn}=st(nt,ln,ht,Je,Ze,Ge,qe,T,Se),un=It?-1:0,cn=nt.length-1,dn=Gn(Pt),hn=Yn(Pt),pn=J+Qt+Ft+tt,fn=dt(sn),gn=dt(On),mn=dt(E),yn=dt(y),bn=dt(v),vn=dt(w),wn=dt(_),_n=dt(x),xn=dt(En),Cn=dt(zn),Sn=dt(An),kn=dt(Kn),Tn=dt(Qn),Pn=O.useCallback((e=!0)=>{const t=en(Je.current);null!==t&&(e&&fe(t),t.focus({preventScroll:!0}))},[Je]);function En(e){if(!g)return;He(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 zn(e){if(!g)return;He(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(We(s),n?i.add(a):i.delete(a),o&&-1!==Ne&&Ne!==s&&Ne<r.length){const e=Oe(s-Ne);for(let t=Ne+e;t!==s;t+=e){const e=r[t];!0!==f?.(e)&&(n?i.add(l(e)):i.delete(l(e)))}}g(i)}function In(e){const{idx:t,rowIdx:n,mode:o}=Pt;if("EDIT"===o)return;if(C&&Vn(n)){const o=r[n],i=ge(e);if(C({mode:"SELECT",row:o,column:nt[t],rowIdx:n,selectCell:Kn},i),i.isGridDefaultPrevented())return}if(!(e.target instanceof Element))return;const i=null!==e.target.closest(".rdg-cell"),l=It&&e.target===zt.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:Mn(e)}}function Rn(e){const{scrollTop:t,scrollLeft:n}=e.currentTarget;de.flushSync(()=>{se(t),pe(Be(n))}),k?.(e)}function An(e,t,n){"function"==typeof a&&n!==r[t]&&a(r.with(t,n),{indexes:[t],column:e})}function Dn(){"EDIT"===Pt.mode&&An(nt[Pt.idx],Pt.rowIdx,Pt.row)}function Fn(e){if(!hn)return;const{idx:t,rowIdx:n}=Pt;R?.({row:r[n],column:nt[t]},e)}function Ln(e){if(!A||!a||!Xn(Pt))return;const{idx:t,rowIdx:n}=Pt,o=nt[t];An(o,n,A({row:r[n],column:o},e))}function Mn(e){if(!hn)return;const t=r[Pt.rowIdx],{key:n,shiftKey:o}=e;if(Mt&&o&&" "===n){He(l);const n=l(t);return zn({row:t,checked:!p.has(n),isShiftClick:!1}),void e.preventDefault()}Xn(Pt)&&be(e,null!=A)&&Et(({idx:e,rowIdx:n})=>({idx:e,rowIdx:n,mode:"EDIT",row:t,originalRow:t}))}function On(){Ce&&(h?.(Ge),Se(!1))}function Bn(e){e.preventDefault(),"mouse"===e.pointerType&&1!==e.buttons||(Ee(!0),e.currentTarget.setPointerCapture(e.pointerId))}function Hn(e){const t=Je.current,n=on(ae-(At+yt*Z)+e.clientY-t.getBoundingClientRect().top);Ie(n);const r=xt+n+1;fe(t.querySelector(`:scope > [aria-rowindex="${r}"] > [aria-colindex="${Pt.idx+1}"]`))}function Nn(){if(Ee(!1),void 0===ze)return;const{rowIdx:e}=Pt,[t,n]=e<ze?[e+1,ze+1]:[ze,e];jn(t,n),Ie(void 0)}function Wn(){Pn(!1)}function Un(e){e.stopPropagation(),jn(Pt.rowIdx+1,r.length)}function jn(e,t){if(null==a)return;const{rowIdx:n,idx:o}=Pt,i=nt[o],l=r[n],s=[...r],u=[];for(let a=e;a<t;a++)if(Xn({rowIdx:a,idx:o})){const e=I({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>=un&&e<=cn}function Vn(e){return e>=0&&e<r.length}function Gn({idx:e,rowIdx:t}){return t>=St&&t<=Tt&&$n(e)}function qn({idx:e,rowIdx:t}){return Vn(t)&&e>=0&&e<=cn}function Yn({idx:e,rowIdx:t}){return Vn(t)&&$n(e)}function Xn(e){return qn(e)&&xe({columns:nt,rows:r,selectedPosition:e})}function Kn(e,t){if(!Gn(e))return;Dn();const n=tn(Pt,e);if(t?.enableEditor&&Xn(e)){const t=r[e.rowIdx];Et({...e,mode:"EDIT",row:t,originalRow:t})}else n?fe(en(Je.current)):(Me(!0===t?.shouldFocusCell),Et({...e,mode:"SELECT"}));S&&!n&&S({rowIdx:e.rowIdx,row:Vn(e.rowIdx)?r[e.rowIdx]:void 0,column:nt[e.idx]})}function Qn({idx:e,rowIdx:t}){Kn({rowIdx:St+t-1,idx:e})}function Jn(e,t,n){const{idx:o,rowIdx:i}=Pt,l=dn&&-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 Nt:return{idx:o+1,rowIdx:i};case"Tab":return{idx:o+(n?-1:1),rowIdx:i};case"Home":return l?{idx:o,rowIdx:St}:{idx:0,rowIdx:t?St:i};case"End":return l?{idx:o,rowIdx:Tt}:{idx:cn,rowIdx:t?Tt:i};case"PageUp":{if(Pt.rowIdx===St)return Pt;const e=nn(i)+rn(i)-Lt;return{idx:o,rowIdx:e>0?on(e):0}}case"PageDown":{if(Pt.rowIdx>=r.length)return Pt;const e=nn(i)+Lt;return{idx:o,rowIdx:e<Qt?on(e):r.length-1}}default:return Pt}}function Zn(e){const{key:t,shiftKey:n}=e;let l="NONE";if("Tab"===t){if(Te({shiftKey:n,maxColIdx:cn,minRowIdx:St,maxRowIdx:Tt,selectedPosition:Pt}))return void Dn();l="CHANGE_ROW"}e.preventDefault();const a=Jn(t,ye(e),n);tn(Pt,a)||Kn(ke({moveUp:"ArrowUp"===t,moveNext:t===Nt||"Tab"===t&&!n,columns:nt,colSpanColumns:rt,rows:r,topSummaryRows:o,bottomSummaryRows:i,minRowIdx:St,mainHeaderRowIdx:kt,maxRowIdx:Tt,lastFrozenColumnIndex:ot,cellNavigationMode:l,currentPosition:Pt,nextPosition:a,isCellWithinBounds:Gn}),{shouldFocusCell:!0})}function er(e){if(void 0===ze)return;const{rowIdx:t}=Pt;return(t<ze?t<e&&e<=ze:t>e&&e>=ze)?Pt.idx:void 0}function tr(){if(null==I||"EDIT"===Pt.mode||!Yn(Pt))return;const{idx:e,rowIdx:t}=Pt,n=nt[e];if(null==n.renderEditCell||!1===n.editable)return;const o=t===Tt,i=Xe(n),l=n.colSpan?.({type:"ROW",row:r[t]})??1,{insetInlineStart:a,...s}=Re(n,l),u="calc(var(--rdg-drag-handle-size) * -0.5 + 1px)",c=n.idx+l-1===cn;return ce.jsx("div",{style:{...s,gridRowStart:xt+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:Ae("rdg-cell-drag-handle rdg-7-0-0-beta-58-bfba19bc",n.frozen&&"rdg-7-0-0-beta-58-7abddb3e"),onPointerDown:Bn,onPointerMove:Pe?Hn:void 0,onLostPointerCapture:Pe?Nn:void 0,onClick:Wn,onDoubleClick:Un})}function nr(e){if(!Yn(Pt)||Pt.rowIdx!==e||"SELECT"===Pt.mode)return;const{idx:t,row:n}=Pt,o=nt[t],i=he(o,ot,{type:"ROW",row:n}),l=o.editorOptions?.closeOnExternalRowChange??!0,a=z(e=>{Me(e),Et(({idx:e,rowIdx:t})=>({idx:e,rowIdx:t,mode:"SELECT"}))},"closeEditor"),s=z((e,t,n)=>{t?de.flushSync(()=>{An(o,Pt.rowIdx,e),a(n)}):Et(t=>({...t,row:e}))},"onRowChange");return l&&r[Pt.rowIdx]!==Pt.originalRow&&a(!1),ce.jsx(wt,{column:o,colSpan:i,row:n,rowIdx:e,onRowChange:s,closeEditor:a,onKeyDown:C,navigate:Zn},o.key)}function rr(e){const t=-1===Pt.idx?void 0:nt[Pt.idx];return void 0===t||Pt.rowIdx!==e||ln.includes(t)?ln:Pt.idx>ut?[...ln,t]:[...ln.slice(0,ot+1),t,...ln.slice(ot+1)]}function or(){const e=[],{idx:t,rowIdx:n}=Pt,o=hn&&n>Kt?Kt+1:Kt;for(let i=hn&&n<Xt?Xt-1:Xt;i<=o;i++){const o=i===Xt-1||i===Kt+1,a=o?n:i;let s=ln;const u=-1===t?void 0:nt[t];void 0!==u&&(s=o?[u]:rr(a));const c=r[a],d=xt+a+1;let h=a,g=!1;"function"==typeof l&&(h=l(c),g=p?.has(h)??!1),e.push(ee(h,{"aria-rowindex":xt+a+1,"aria-selected":Mt?g:void 0,rowIdx:a,row:c,viewportColumns:s,isRowSelectionDisabled:f?.(c)??!1,isRowSelected:g,onCellMouseDown:bn,onCellClick:vn,onCellDoubleClick:wn,onCellContextMenu:_n,rowClass:B,gridRowStart:d,selectedCellIdx:n===a?t:void 0,draggedOverCellIdx:er(a),lastFrozenColumnIndex:ot,onRowChange:Sn,selectCell:kn,selectedCellEditor:nr(a)}))}return e}P(En,"In"),P(zn,"Pn"),P(In,"Tn"),P(Rn,"zn"),P(An,"_n"),P(Dn,"Nn"),P(Fn,"Fn"),P(Ln,"Dn"),P(Mn,"Ln"),P(On,"On"),P(Bn,"An"),P(Hn,"Mn"),P(Nn,"Hn"),P(Wn,"Un"),P(Un,"jn"),P(jn,"Wn"),P($n,"$n"),P(Vn,"Vn"),P(Gn,"Bn"),P(qn,"qn"),P(Yn,"Kn"),P(Xn,"Qn"),P(Kn,"Gn"),P(Qn,"Yn"),P(Jn,"Xn"),P(Zn,"Jn"),P(er,"Zn"),P(tr,"er"),P(nr,"tr"),P(rr,"nr"),P(or,"rr"),O.useLayoutEffect(()=>{Le&&(null!==zt.current&&-1===Pt.idx?(zt.current.focus({preventScroll:!0}),fe(zt.current)):Pn(),Me(!1))},[Le,Pn,Pt.idx]),O.useImperativeHandle(t,()=>({element:Je.current,scrollToCell({idx:e,rowIdx:t}){const n=void 0!==e&&e>ot&&e<nt.length?e:void 0,r=void 0!==t&&Vn(t)?t:void 0;void 0===n&&void 0===r||Fe({idx:n,rowIdx:r})},selectCell:Kn})),z(En,"selectHeaderRow"),z(zn,"selectRow"),z(In,"handleKeyDown"),z(Rn,"handleScroll"),z(An,"updateRow"),z(Dn,"commitEditorChanges"),z(Fn,"handleCellCopy"),z(Ln,"handleCellPaste"),z(Mn,"handleCellInput"),z(On,"handleColumnResizeEnd"),z(Bn,"handleDragHandlePointerDown"),z(Hn,"handleDragHandlePointerMove"),z(Nn,"handleDragHandleLostPointerCapture"),z(Wn,"handleDragHandleClick"),z(Un,"handleDragHandleDoubleClick"),z(jn,"updateRows"),z($n,"isColIdxWithinSelectionBounds"),z(Vn,"isRowIdxWithinViewportBounds"),z(Gn,"isCellWithinSelectionBounds"),z(qn,"isCellWithinEditBounds"),z(Yn,"isCellWithinViewportBounds"),z(Xn,"isCellEditable"),z(Kn,"selectCell"),z(Qn,"selectHeaderCell"),z(Jn,"getNextPosition"),z(Zn,"navigate"),z(er,"getDraggedOverCellIdx"),z(tr,"getDragHandle"),z(nr,"getCellEditor"),z(rr,"getRowViewportColumns"),z(or,"getViewportRows"),(Pt.idx>cn||Pt.rowIdx>Tt)&&(Et({idx:-1,rowIdx:St-1,mode:"SELECT"}),Ie(void 0)),je&&me!==d&&ve(d);let ir=`repeat(${it}, ${J}px)`;yt>0&&(ir+=` repeat(${yt}, ${Z}px)`),r.length>0&&(ir+=Zt),vt>0&&(ir+=` repeat(${vt}, ${Z}px)`);const lr=-1===Pt.idx&&Pt.rowIdx!==St-1;return ce.jsxs("div",{role:K,"aria-label":U,"aria-labelledby":j,"aria-description":$,"aria-describedby":V,"aria-multiselectable":!!Mt||void 0,"aria-colcount":nt.length,"aria-rowcount":Wt,tabIndex:-1,className:Ae("rdg rdg-7-0-0-beta-58-ccd2e5d9",{[qt]:Pe},L),style:{...M,scrollPaddingInlineStart:Pt.idx>ot||void 0!==De?.idx?`${mt}px`:void 0,scrollPaddingBlock:Vn(Pt.rowIdx)||void 0!==De?.rowIdx?`${At+yt*Z}px ${vt*Z}px`:void 0,gridTemplateColumns:an,gridTemplateRows:ir,"--rdg-header-row-height":`${J}px`,"--rdg-scroll-height":`${pn}px`,...gt},dir:le,ref:Je,onScroll:Rn,onKeyDown:In,onCopy:Fn,onPaste:Ln,"data-testid":q,"data-cy":Y,children:[ce.jsxs($e,{value:Vt,children:[ce.jsx(Qe,{value:xn,children:ce.jsxs(Ke,{value:Gt,children:[Array.from({length:Ct},(e,t)=>ce.jsx(Ht,{rowIdx:t+1,level:-Ct+t,columns:rr(St+t),selectedCellIdx:Pt.rowIdx===St+t?Pt.idx:void 0,selectCell:Tn},t)),ce.jsx(Ot,{headerRowClass:H,rowIdx:it,columns:rr(kt),onColumnResize:fn,onColumnResizeEnd:gn,onColumnsReorder:mn,sortColumns:m,onSortColumnsChange:yn,lastFrozenColumnIndex:ot,selectedCellIdx:Pt.rowIdx===kt?Pt.idx:void 0,selectCell:Tn,shouldFocusGrid:!dn,direction:le})]})}),0===r.length&&oe?oe:ce.jsxs(ce.Fragment,{children:[o?.map((e,t)=>{const n=it+1+t,r=kt+1+t,o=Pt.rowIdx===r,i=At+Z*t;return ce.jsx(Jt,{"aria-rowindex":n,rowIdx:r,gridRowStart:n,row:e,top:i,bottom:void 0,viewportColumns:rr(r),lastFrozenColumnIndex:ot,selectedCellIdx:o?Pt.idx:void 0,isTop:!0,selectCell:kn},t)}),ce.jsx(Ye,{value:Cn,children:or()}),i?.map((e,t)=>{const n=xt+r.length+t+1,o=r.length+t,l=Pt.rowIdx===o,a=Lt>Qt?et-Z*(i.length-t):void 0,s=void 0===a?Z*(i.length-1-t):void 0;return ce.jsx(Jt,{"aria-rowindex":Wt-vt+t+1,rowIdx:o,gridRowStart:n,row:e,top:a,bottom:s,viewportColumns:rr(o),lastFrozenColumnIndex:ot,selectedCellIdx:l?Pt.idx:void 0,isTop:!1,selectCell:kn},t)})]})]}),tr(),_e(ln),It&&ce.jsx("div",{ref:zt,tabIndex:lr?0:-1,className:Ae("rdg-7-0-0-beta-58-dbb8b3c5",{[Yt]:!Vn(Pt.rowIdx),[Rt]:lr,[Dt]:lr&&-1!==ot}),style:{gridRowStart:Pt.rowIdx+xt+1}}),null!==De&&ce.jsx(jt,{scrollToPosition:De,setScrollToCellPosition:Fe,gridRef:Je})]})}function en(e){return e.querySelector(':scope > [role="row"] > [tabindex="0"]')}function tn(e,t){return e.idx===t.idx&&e.rowIdx===t.rowIdx}function nn({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}=ht(o);function p(){u(e)}P(p,"m"),z(p,"toggleGroup");const f=s&&a===i.idx;return ce.jsx("div",{role:"gridcell","aria-colindex":i.idx+1,"aria-selected":o,tabIndex:c,className:De(i),style:{...Re(i),cursor:f?"pointer":"default"},onMouseDown:z(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)}P(Zt,"Nt$1"),P(en,"Ft$1"),P(tn,"Dt$1"),P(nn,"Lt$1"),z(Zt,"DataGrid"),z(en,"getCellToScroll"),z(tn,"isSamePosition"),z(nn,"GroupCell");var rn=O.memo(nn);function on({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===Ze?t.level+1:t.level;function p(){l({rowIdx:n,idx:-1},{shouldFocusCell:!0})}return P(p,"m"),z(p,"handleSelectGroup"),ce.jsx(qe,{value:O.useMemo(()=>({isRowSelectionDisabled:!1,isRowSelected:i}),[i]),children:ce.jsx("div",{role:"row","aria-level":t.level+1,"aria-setsize":t.setSize,"aria-posinset":t.posInSet+1,"aria-expanded":t.isExpanded,className:Ae(It,"rdg-group-row rdg-7-0-0-beta-58-e74a2be3","rdg-row-"+(n%2==0?"even":"odd"),-1===o&&At,e),onMouseDown:p,style:ze(a),...d,children:r.map(e=>ce.jsx(rn,{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))})})}P(on,"At$1"),z(on,"GroupedRow"),O.memo(on);const ln=(i=class extends O.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=z(()=>{this.setState({hasError:!1,error:null})},"handleReset");render(){return this.state.hasError?this.props.fallback?this.props.fallback:ce.jsx("div",{className:"min-h-[200px] flex items-center justify-center p-8 bg-red-50 rounded-lg border border-red-100",children:ce.jsxs("div",{className:"text-center",children:[ce.jsx("h2",{className:"text-xl font-semibold text-red-700 mb-2",children:"Something went wrong"}),ce.jsx("p",{className:"text-red-600",children:this.state.error?.message}),ce.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}},P(i,"_ErrorBoundary"),i);z(ln,"ErrorBoundary");let an=ln;function sn(e){return[B.useMemo(()=>e.columns(),[e,e.dataChecksum()]),B.useMemo(()=>e.data(),[e,e.dataChecksum()])]}function un(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)}P(sn,"Ut$1"),P(un,"jt$1"),z(sn,"useData"),z(un,"copyAndSort");const cn=z(({message:e})=>ce.jsx("div",{style:{textAlign:"center",gridColumn:"1/-1"},children:e}),"EmptyRowsRenderer"),dn=z(({table:e,sort:n})=>{const[r,o]=sn(e),i=e.multiSelect(),l=e.columnTypes(),a=e.columnPatterns(),s=e.columnFormats(),[u,c]=O.useState([]),[d,h]=O.useState(),[p,f]=O.useState([]),[g,m]=O.useState(new Set);O.useEffect(()=>{c([...i?[rt]:[],...r.map(e=>{let n,r,o;switch(l[e]??"string"){case"time":r=void 0!==a[e]?t.timeParse(a[e]):void 0,o=void 0!==s[e]?t.timeFormat(s[e]):void 0;break;case"number":n=z(e=>ce.jsx("div",{style:{textAlign:"right"},children:e.row[e.column.key]}),"formatter");default:o=void 0!==s[e]?t.format(s[e]):void 0}return{key:e,name:e,resizable:!0,sortable:!0,minWidth:80,renderCell:n,__hpcc_pattern:r,__hpcc_format:o}})])},[s,a,l,r,i]);const y=O.useCallback(e=>{const t=e.slice(-1)[0],n=void 0!==t,r="DESC"===t?.direction;h(t),f(un(p,n?t.columnKey:"key",!!n&&r))},[p]),b=O.useCallback(e=>e.key,[]),v=O.useCallback(e=>{m(e)},[]),w=O.useCallback((t,n)=>{e.onRowClickCallback(t,n.key)},[e]);return O.useEffect(()=>{let e=o.map((e,t)=>{const n={key:t};return u.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});n?.attribute&&(e=un(e,n.attribute,n.descending)),f(e)},[u,o,n]),ce.jsx(an,{fallback:ce.jsx("div",{children:"Error loading table"}),children:ce.jsx(Zt,{columns:u,headerRowHeight:24,rows:p,rowKeyGetter:b,rowHeight:20,renderers:{noRowsFallback:ce.jsx(cn,{message:e.noDataMessage()})},className:e.darkMode()?"rdg-dark":"rdg-light",sortColumns:d?[d]:[],onSortColumnsChange:y,selectedRows:g,onSelectedRowsChange:i?v:void 0,onCellClick:i?void 0:(e,t)=>w(e.row,e.column),style:{height:"100%"}})})},"ReactTable"),hn=(l=class extends t.HTMLWidget{_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=ie.createRoot(this._div.node(),{identifierPrefix:this.id()}),this._component=O.createElement(dn,{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){}},P(l,"_Table"),l);z(hn,"Table");let pn=hn;pn.prototype._class+=" dgrid2_Table",pn.prototype.publish("noDataMessage","...empty...","string","No Data Message"),pn.prototype.publish("darkMode",!1,"boolean","Dark Mode"),pn.prototype.publish("multiSelect",!1,"boolean","Multiple Selection"),pn.prototype.publish("columnTypes",{},"object",'Column Types ("boolean" | "number" | "string" | "time"'),pn.prototype.publish("columnPatterns",{},"object","Column Patterns"),pn.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 fn=Object.defineProperty,gn=P((e,t)=>fn(e,"name",{value:t,configurable:!0}),"e");function mn(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:gn(()=>r[t],"get")})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}P(mn,"I"),gn(mn,"_mergeNamespaces");const yn=(a=class extends t.HTMLWidget{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)}},P(a,"_AbsoluteSurface"),a);gn(yn,"AbsoluteSurface");let bn=yn;bn.prototype._class+=" layout_AbsoluteSurface",bn.prototype.publish("units","percent","set","Units",["pixels","percent"]),bn.prototype.publish("widgetX",0,"number","Widget XPos"),bn.prototype.publish("widgetY",0,"number","Widget YPos"),bn.prototype.publish("widgetWidth","100","string","Widget Width, omit for full"),bn.prototype.publish("widgetHeight","100","string","Widget Height, omit for full"),bn.prototype.publish("widget",null,"widget","Widget",null,{tags:["Private"]}),bn.prototype.publish("opacity",1,"number","Opacity");const vn=(s=class extends t.HTMLWidget{_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,n){super.enter(e,n);const r=this;this._isClosed=this.defaultCollapsed(),n.classed(this._isClosed?"closed":"open",!0),this.titleSpan=n.append("span").classed("collapsible-title",!0),this.iconDiv=n.append("div").classed("collapsible-icon",!0),this.ul=n.append("ul"),this.icon=(new t.FAChar).size({height:24,width:24}).target(this.iconDiv.node()),this.iconDiv.on("click",function(){r.collapseClick(n),r.render()}),this.titleSpan.on("click",function(){r.collapseClick(n),r.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)}},P(s,"_Accordion"),s);gn(vn,"Accordion");let wn=vn;wn.prototype._class+=" layout_Accordion",wn.prototype.publish("content",[],"widgetArray","Array of widgets",null,{tags:["Basic"]}),wn.prototype.publish("title","","string","Title of collapsible section",null,{tags:["Private"]}),wn.prototype.publish("openIcon","","string","Icon to display when list is open",null,{tags:["Private"]}),wn.prototype.publish("closedIcon","","string","Icon to display when list is closed",null,{tags:["Private"]}),wn.prototype.publish("titleFontColor","#FFFFFF","html-color","Title font color",null,{tags:["Private"]}),wn.prototype.publish("titleBackgroundColor","#333333","html-color","Title background color",null,{tags:["Private"]}),wn.prototype.publish("defaultCollapsed",!1,"boolean","Collapsed by default if true",null,{tags:["Private"]});const _n=(u=class extends t.HTMLWidget{_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,n){super.update(e,n);const r=this;n.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 o=n.selectAll(".surfaceTitle").data(this.title()?[this.title()]:[]);o.enter().insert("h3","div").attr("class","surfaceTitle").merge(o).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),o.exit().remove();const i=n.select(".surfaceTitle").append("div").attr("class","html-button-container").selectAll(".surface-button").data(this.buttonAnnotations());i.enter().append("button").classed("surface-button",!0).each(function(e,n){const o=r._surfaceButtons[n]=t.select(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?o.style("background","transparent").style("border","none").on("click",function(e){r.click(e)}).append("i").attr("class","fa").text(function(){return e.label}):o.text(function(){return e.label}).on("click",function(e){r.click(e)})}),i.exit().each(function(e,n){const o=t.select(this);delete r._surfaceButtons[n],o.remove()});const l=n.selectAll("#"+this._id+" > .surfaceWidget").data(this.widget()?[this.widget()]:[],function(e){return e._id});l.enter().append("div").attr("class","surfaceWidget").each(function(e){t.select(r.element().node().parentElement).classed("content-icon content-icon-"+e.classID().split("_")[1],!0),e.target(this)}).merge(l).style("padding",this.surfacePadding_exists()?this.surfacePadding()+"px":null).each(function(e){const o=r.widgetSize(n.select("h3"),t.select(this));o.width<0&&(o.width=0),o.height<0&&(o.height=0),e.resize({width:o.width,height:o.height})}),l.exit().each(function(e){e.target(null)}).remove()}exit(e,t){this.widget()&&this.widget().target(null),super.exit(e,t)}click(e){}},P(u,"_Surface"),u);gn(_n,"Surface");let xn=_n;xn.prototype._class+=" layout_Surface",xn.prototype.publish("title","","string","Title",null,{tags:["Intermediate"]}),xn.prototype.publish("altText",null,"string","Alt text",null,{optional:!0}),xn.prototype.publish("surfaceTitlePadding",null,"number","Title Padding (px)",null,{tags:["Advanced"],disable:gn(e=>!e.title(),"disable")}),xn.prototype.publish("surfaceTitleFontSize",null,"number","Title Font Size (px)",null,{tags:["Advanced"],disable:gn(e=>!e.title(),"disable")}),xn.prototype.publish("surfaceTitleFontColor",null,"html-color","Title Font Color",null,{tags:["Advanced"],disable:gn(e=>!e.title(),"disable")}),xn.prototype.publish("surfaceTitleFontFamily",null,"string","Title Font Family",null,{tags:["Advanced"],disable:gn(e=>!e.title(),"disable")}),xn.prototype.publish("surfaceTitleFontBold",!0,"boolean","Enable Bold Title Font",null,{tags:["Advanced"],disable:gn(e=>!e.title(),"disable")}),xn.prototype.publish("surfaceTitleBackgroundColor",null,"html-color","Title Background Color",null,{tags:["Advanced"],disable:gn(e=>!e.title(),"disable")}),xn.prototype.publish("surfaceTitleAlignment","center","set","Title Alignment",["left","right","center"],{tags:["Basic"],disable:gn(e=>!e.title(),"disable")}),xn.prototype.publish("surfaceShadow",!1,"boolean","3D Shadow"),xn.prototype.publish("surfacePadding",null,"string","Surface Padding (px)",null,{tags:["Intermediate"]}),xn.prototype.publish("surfaceBackgroundColor",null,"html-color","Surface Background Color",null,{tags:["Advanced"]}),xn.prototype.publish("surfaceBorderWidth",null,"number","Surface Border Width (px)",null,{tags:["Advanced"]}),xn.prototype.publish("surfaceBorderColor",null,"html-color","Surface Border Color",null,{tags:["Advanced"]}),xn.prototype.publish("surfaceBorderRadius",null,"number","Surface Border Radius (px)",null,{tags:["Advanced"]}),xn.prototype.publish("buttonAnnotations",[],"array","Button Array",null,{tags:["Private"]}),xn.prototype.publish("widget",null,"widget","Widget",null,{tags:["Basic"]});const Cn=(c=class extends xn{_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(),n=this.indicatorOpacity(),r=this.indicatorBorderColor(),o=this.indicatorGlowColor();for(let i=0;i<e.length;i++){const l=t.select("#"+e[i]),a=l.datum();l&&a&&l.append("div").attr("class","update-indicator").style("width",a.width()+"px").style("height",a.height()+"px").style("opacity",n).style("border-color",r).style("-webkit-box-shadow","inset 0px 0px 30px 0px "+o).style("-moz-box-shadow","inset 0px 0px 30px 0px "+o).style("box-shadow","inset 0px 0px 30px 0px "+o)}}onMouseLeave(){const e=this.indicateTheseIds();for(let n=0;n<e.length;n++)t.selectAll("#"+e[n]+" > div.update-indicator").remove()}},P(c,"_Cell"),c);gn(Cn,"Cell");let Sn=Cn;Sn.prototype._class+=" layout_Cell",Sn.prototype.publish("gridRow",0,"number","Grid Row Position",null,{tags:["Private"]}),Sn.prototype.publish("gridCol",0,"number","Grid Column Position",null,{tags:["Private"]}),Sn.prototype.publish("gridRowSpan",1,"number","Grid Row Span",null,{tags:["Private"]}),Sn.prototype.publish("gridColSpan",1,"number","Grid Column Span",null,{tags:["Private"]}),Sn.prototype.publish("indicatorGlowColor","#EEEE11","html-color","Glow color of update-indicator",null,{tags:["Basic"]}),Sn.prototype.publish("indicatorBorderColor","#F48A00","html-color","Border color of update-indicator",null,{tags:["Basic"]}),Sn.prototype.publish("indicatorOpacity",.8,"number","Opacity of update-indicator",null,{tags:["Basic"]});const kn=(d=class extends t.HTMLWidget{_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=t.Utility.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 n=this.sectionTypes().indexOf(e);n>=0&&(this._watch&&this.content()[n]&&delete this._watch[this.content()[n].id()],this.content()[n].target(null),t.select("#"+this.id()+" > div.borderHandle_"+e).classed("borderHandleDisabled",!0),this.content().splice(n,1),this.sectionTypes().splice(n,1))}else this.content().forEach(function(e){return e.target(null),!1}),t.select("#"+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 Sn).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 n=t.d3Event();n.sourceEvent.stopPropagation();const r=this;this._dragCell=e,this._dragCellStartSize=this[e+"Size"](),this[e+"ShrinkWrap"]()&&(this[e+"Percentage"](0),this[e+"ShrinkWrap"](!1));const o=t.select("#"+r.id()+" > div.borderHandle_"+e);r._handleTop=parseFloat(o.style("top").split("px")[0]),r._handleLeft=parseFloat(o.style("left").split("px")[0]),this._dragPrevX=n.sourceEvent.clientX,this._dragPrevY=n.sourceEvent.clientY}dragTick(e){const n=this,r=t.d3Event(),o=this._dragPrevX-r.sourceEvent.clientX,i=this._dragPrevY-r.sourceEvent.clientY;switch(e){case"top":case"bottom":l(e,i);break;case"right":case"left":l(e,o)}function l(e,r){if(0===r)return;const o=t.selectAll("#"+n.id()+" > div.borderHandle"),i=t.select("#"+n.id()+" > div.borderHandle_"+e);i.classed("borderHandle_top")?(i.style("top",n._handleTop-r+"px"),n._cellSizes.topHeight=n._handleTop-r,n._cellSizes.leftHeight=n._cellSizes.height,n._cellSizes.leftHeight-=n._cellSizes.topHeight,n._cellSizes.leftHeight-=n._cellSizes.bottomHeight,n._cellSizes.rightHeight=n._cellSizes.leftHeight):i.classed("borderHandle_right")?(i.style("left",n._handleLeft-r+"px"),n._cellSizes.rightWidth=n._cellSizes.width-n._handleLeft+r):i.classed("borderHandle_bottom")?(i.style("top",n._handleTop-r+"px"),n._cellSizes.bottomHeight=n._cellSizes.height-n._handleTop+r,n._cellSizes.leftHeight=n._cellSizes.height,n._cellSizes.leftHeight-=n._cellSizes.bottomHeight,n._cellSizes.leftHeight-=n._cellSizes.topHeight,n._cellSizes.rightHeight=n._cellSizes.leftHeight):i.classed("borderHandle_left")&&(i.style("left",n._handleLeft-r+"px"),n._cellSizes.leftWidth=n._handleLeft-r),o.each(function(){const e=t.select(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"))})}P(l,"a"),gn(l,"_moveHandles")}dragEnd(e){if(e){const n=t.d3Event(),r=this._dragPrevX-n.sourceEvent.clientX,o=this._dragPrevY-n.sourceEvent.clientY;switch(e){case"top":0!==o&&(this.topPercentage(0),this.topSize(0===this.topSize()?this.getContent("top").getBBox().height-o:this.topSize()-o));break;case"right":0!==r&&(this.rightPercentage(0),this.rightSize(0===this.rightSize()?this.getContent("right").getBBox().width+r:this.rightSize()+r));break;case"bottom":0!==o&&(this.bottomPercentage(0),this.bottomSize(0===this.bottomSize()?this.getContent("bottom").getBBox().height+o:this.bottomSize()+o));break;case"left":0!==r&&(this.leftPercentage(0),this.leftSize(0===this.leftSize()?this.getContent("left").getBBox().width-r:this.leftSize()-r))}this._dragPrevX=n.sourceEvent.clientX,this._dragPrevY=n.sourceEvent.clientY}this.render()}size(e){const n=t.HTMLWidget.prototype.size.apply(this,arguments);return arguments.length&&this.contentDiv&&this.contentDiv.style("width",this._size.width+"px").style("height",this._size.height+"px"),n}enter(e,n){super.enter(e,n);const r=this;n.style("position","relative"),this.contentDiv=n.append("div").classed("border-content",!0),this._scrollBarWidth=t.Platform.getScrollbarWidth(),this._borderHandles=["top","left","right","bottom"],n.selectAll("div.borderHandle").data(this._borderHandles).enter().append("div").classed("borderHandle",!0).each(function(e){t.select(this).classed("borderHandle_"+e,!0).classed("borderHandleDisabled",null===r.getContent(e))})}update(e,n){super.update(e,n),this._sectionTypeArr=this.sectionTypes();const r=this;n.classed("design-mode",this.designMode()),this.setLayoutOffsets();const o=this.contentDiv.selectAll(".cell_"+this._id).data(this.content(),function(e){return e._id}),i=o.enter().append("div").classed("cell_"+this._id,!0).style("position","absolute").each(function(e,n){t.select(this).classed("border-cell border-cell-"+r._sectionTypeArr[n],!0),e.target(this),t.select("#"+r.id()+" > div.borderHandle_"+r._sectionTypeArr[n]).classed("borderHandleDisabled",!1)}).merge(o);i.each(function(e,t){const n=r.sectionTypes()[t];void 0!==r[n+"ShrinkWrap"]&&r[n+"ShrinkWrap"]()?(e.render(),r._shrinkWrapBoxes[n]=e.widget().getBBox(!0)):delete r._shrinkWrapBoxes[n]});const l=t.drag().on("start",function(e,t){r.dragStart.call(r,e,t)}).on("drag",function(e,t){r.dragTick.call(r,e,t)}).on("end",function(e,t){r.dragEnd.call(r,e,t)});this.designMode()?n.selectAll("#"+this.id()+" > div.borderHandle").call(l):n.selectAll("#"+this.id()+" > div.borderHandle").on(".drag",null);const a=this.borderLayoutObject();this.content().forEach(function(e,t){e._fixedLeft=a[this.sectionTypes()[t]].left,e._fixedTop=a[this.sectionTypes()[t]].top,e._fixedWidth=a[this.sectionTypes()[t]].width,e._fixedHeight=a[this.sectionTypes()[t]].height,e._dragHandles=[]},this),i.style("left",function(e){return e._fixedLeft+"px"}).style("top",function(e){return e._fixedTop+"px"}).style("width",function(e){return e._fixedWidth-r.gutter()+"px"}).style("height",function(e){return e._fixedHeight-r.gutter()+"px"}).each(function(e){e._placeholderElement.attr("draggable",r.designMode()).selectAll(".dragHandle").attr("draggable",r.designMode()),e.surfacePadding(r.surfacePadding()).resize()}),o.exit().each(function(e){e.target(null)}).remove(),this.getCellSizes(),n.selectAll("#"+this.id()+" > div.borderHandle").each(function(){const e=t.select(this);e.classed("borderHandle_top")?(e.style("width",r._cellSizes.width+"px"),e.style("top",r._cellSizes.topHeight-3+"px")):e.classed("borderHandle_right")?(e.style("left",r._cellSizes.width-r._cellSizes.rightWidth+"px"),e.style("top",r._cellSizes.topHeight+3+"px"),e.style("height",r._cellSizes.rightHeight+"px")):e.classed("borderHandle_bottom")?(e.style("width",r._cellSizes.width+"px"),e.style("top",r._cellSizes.height-r._cellSizes.bottomHeight-3+"px")):e.classed("borderHandle_left")&&(e.style("left",r._cellSizes.leftWidth+"px"),e.style("height",r._cellSizes.leftHeight+"px"),e.style("top",r._cellSizes.topHeight+3+"px"))})}getCellSizes(){const e=this;e._cellSizes={};const n=this.element().node().getBoundingClientRect();e._cellSizes.width=n.width,e._cellSizes.height=n.height,this.element().selectAll("#"+this.id()+" > div > div.border-cell").each(function(){const n=t.select(this);if("function"==typeof n.node){const t=n.node().getBoundingClientRect();n.classed("border-cell-top")?e._cellSizes.topHeight=t.height:n.classed("border-cell-left")?(e._cellSizes.leftWidth=t.width,e._cellSizes.leftHeight=t.height):n.classed("border-cell-right")?(e._cellSizes.rightWidth=t.width,e._cellSizes.rightHeight=t.height):n.classed("border-cell-bottom")&&(e._cellSizes.bottomHeight=t.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)}},P(d,"_Border"),d);gn(kn,"Border");let Tn=kn;Tn.prototype._class+=" layout_Border",Tn.prototype.publish("designMode",!1,"boolean","Design Mode",null,{tags:["Basic"]}),Tn.prototype.publish("content",[],"widgetArray","widgets",null,{tags:["Intermediate"]}),Tn.prototype.publish("gutter",0,"number","Gap Between Widgets",null,{tags:["Basic"]}),Tn.prototype.publish("topShrinkWrap",!1,"boolean","'Top' Cell shrinks to fit content",null,{tags:["Intermediate"]}),Tn.prototype.publish("leftShrinkWrap",!1,"boolean","'Left' Cell shrinks to fit content",null,{tags:["Intermediate"]}),Tn.prototype.publish("rightShrinkWrap",!1,"boolean","'Right' Cell shrinks to fit content",null,{tags:["Intermediate"]}),Tn.prototype.publish("bottomShrinkWrap",!1,"boolean","'Bottom' Cell shrinks to fit content",null,{tags:["Intermediate"]}),Tn.prototype.publish("topSize",0,"number","Height of the 'Top' Cell (px)",null,{tags:["Private"]}),Tn.prototype.publish("leftSize",0,"number","Width of the 'Left' Cell (px)",null,{tags:["Private"]}),Tn.prototype.publish("rightSize",0,"number","Width of the 'Right' Cell (px)",null,{tags:["Private"]}),Tn.prototype.publish("bottomSize",0,"number","Height of the 'Bottom' Cell (px)",null,{tags:["Private"]}),Tn.prototype.publish("topPercentage",20,"number","Percentage (of parent) Height of the 'Top' Cell",null,{tags:["Private"]}),Tn.prototype.publish("leftPercentage",20,"number","Percentage (of parent) Width of the 'Left' Cell",null,{tags:["Private"]}),Tn.prototype.publish("rightPercentage",20,"number","Percentage (of parent) Width of the 'Right' Cell",null,{tags:["Private"]}),Tn.prototype.publish("bottomPercentage",20,"number","Percentage (of parent) Height of the 'Bottom' Cell",null,{tags:["Private"]}),Tn.prototype.publish("surfacePadding",0,"number","Cell Padding (px)",null,{tags:["Intermediate"]}),Tn.prototype.publish("sectionTypes",[],"array","Section Types sharing an index with 'content' - Used to determine position/size.",null,{tags:["Private"]});const Pn=(h=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,n,r){let o=this.overflowX();this.overlay()||"visible"!==o||(o=null);let i=this.overflowY();return this.overlay()||"visible"!==i||(i=null),this._div.style("height",this.overlay()?"0px":null).style("overflow-x",o).style("overflow-y",i),this._widget?this._widget.renderPromise().then(o=>{if(e&&this._widget.visible()){const e=this._widget.getBBox();return e.width+=8,void 0!==n&&e.height>n&&(e.width+=t.Platform.getScrollbarWidth()),void 0!==r&&e.width>r&&(e.height+=t.Platform.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)}},P(h,"_WidgetDiv"),h);gn(Pn,"WidgetDiv");let En=Pn;const zn=(p=class extends t.HTMLWidget{_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 En(n),this._centerWA=new En(r),this._leftWA=new En(o),this._rightWA=new En(i),this._bottomWA=new En(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)})}},P(p,"_Border2"),p);gn(zn,"Border2");let In=zn;In.prototype._class+=" layout_Border2",In.prototype.publish("showTop",!0,"boolean","If true, top widget adapter will display"),In.prototype.publish("showRight",!0,"boolean","If true, right widget adapter will display"),In.prototype.publish("showBottom",!0,"boolean","If true, bottom widget adapter will display"),In.prototype.publish("showLeft",!0,"boolean","If true, left widget adapter will display"),In.prototype.publish("topOverflowX","visible","set","Sets the overflow-x css style for the top widget adapter",["hidden","scroll","visible","auto"]),In.prototype.publish("rightOverflowX","visible","set","Sets the overflow-x css style for the right widget adapter",["hidden","scroll","visible","auto"]),In.prototype.publish("bottomOverflowX","visible","set","Sets the overflow-x css style for the bottom widget adapter",["hidden","scroll","visible","auto"]),In.prototype.publish("leftOverflowX","visible","set","Sets the overflow-x css style for the left widget adapter",["hidden","scroll","visible","auto"]),In.prototype.publish("centerOverflowX","visible","set","Sets the overflow-x css style for the center widget adapter",["hidden","scroll","visible","auto"]),In.prototype.publish("topOverflowY","visible","set","Sets the overflow-y css style for the top widget adapter",["hidden","scroll","visible","auto"]),In.prototype.publish("rightOverflowY","visible","set","Sets the overflow-y css style for the right widget adapter",["hidden","scroll","visible","auto"]),In.prototype.publish("bottomOverflowY","visible","set","Sets the overflow-y css style for the bottom widget adapter",["hidden","scroll","visible","auto"]),In.prototype.publish("leftOverflowY","visible","set","Sets the overflow-y css style for the left widget adapter",["hidden","scroll","visible","auto"]),In.prototype.publish("centerOverflowY","visible","set","Sets the overflow-y css style for the center widget adapter",["hidden","scroll","visible","auto"]),In.prototype.publish("top",null,"widget","Top Widget",void 0,{render:!1}),In.prototype.publish("topOverlay",!1,"boolean","Overlay Top Widget"),In.prototype.publish("left",null,"widget","Left Widget",void 0,{render:!1}),In.prototype.publish("center",null,"widget","Center Widget",void 0,{render:!1}),In.prototype.publish("right",null,"widget","Right Widget",void 0,{render:!1}),In.prototype.publish("bottom",null,"widget","Bottom Widget",void 0,{render:!1}),In.prototype.publish("bottomHeight",null,"number","Bottom Fixed Height",void 0,{optional:!0});const Rn=(f=class extends t.HTMLWidget{_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,n){super.update(e,n);const r=this.active(),o=this.width();this._root.style("width",`${o}px`).style("height",`${this.height()}px`);const i=this._root.selectAll(`#${this.id()}_root > .carouselItem`).data(this.widgets(),e=>e.id()),l=i.enter().append("div").attr("class","carouselItem").each(function(e){e.target(this)}).merge(i).style("left",(e,t)=>(t-this._prevActive)*o+"px").style("width",`${o}px`);this._prevActive!==r&&(l.style("display",(e,t)=>t===this._prevActive||t===r?null:"none").transition().duration(this.transitionDuration()).style("left",(e,t)=>(t-r)*o+"px").on("end",function(e,n){t.select(this).style("display",()=>n===r?null:"none")}),this._prevActive=r),i.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)})}})}},P(f,"_Carousel"),f);gn(Rn,"Carousel");let An=Rn;An.prototype._class+=" layout_Carousel",An.prototype.publish("widgets",[],"widgetArray","Widgets",null,{render:!1}),An.prototype.publish("active",0,"number","Active widget"),An.prototype.publish("transitionDuration",500,"number","Transition duration");var Dn=Math.PI,Fn=2*Dn,Ln=1e-6,Mn=Fn-Ln;function On(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Bn(){return new On}function Hn(e){return gn(function(){return e},"constant")}P(On,"tt"),P(Bn,"et"),P(Hn,"it"),gn(On,"Path"),gn(Bn,"path"),On.prototype=Bn.prototype={constructor:On,moveTo:gn(function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},"moveTo"),closePath:gn(function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},"closePath"),lineTo:gn(function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},"lineTo"),quadraticCurveTo:gn(function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},"quadraticCurveTo"),bezierCurveTo:gn(function(e,t,n,r,o,i){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+i)},"bezierCurveTo"),arcTo:gn(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>Ln)if(Math.abs(c*a-s*u)>Ln&&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((Dn-Math.acos((f+d-g)/(2*m*y)))/2),v=b/y,w=b/m;Math.abs(v-1)>Ln&&(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:gn(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)>Ln||Math.abs(this._y1-u)>Ln)&&(this._+="L"+s+","+u),n&&(d<0&&(d=d%Fn+Fn),d>Mn?this._+="A"+n+","+n+",0,1,"+c+","+(e-l)+","+(t-a)+"A"+n+","+n+",0,1,"+c+","+(this._x1=s)+","+(this._y1=u):d>Ln&&(this._+="A"+n+","+n+",0,"+ +(d>=Dn)+","+c+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},"arc"),rect:gn(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:gn(function(){return this._},"toString")},gn(Hn,"constant");var Nn=Math.PI,Wn=2*Nn;const Un={draw:gn(function(e,t){var n=Math.sqrt(t/Nn);e.moveTo(n,0),e.arc(0,0,n,0,Wn)},"draw")},jn={draw:gn(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 $n=Math.sqrt(1/3),Vn=2*$n;const Gn={draw:gn(function(e,t){var n=Math.sqrt(t/Vn),r=n*$n;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()},"draw")};var qn=Math.sin(Nn/10)/Math.sin(7*Nn/10),Yn=Math.sin(Wn/10)*qn,Xn=-Math.cos(Wn/10)*qn;const Kn={draw:gn(function(e,t){var n=Math.sqrt(.8908130915292852*t),r=Yn*n,o=Xn*n;e.moveTo(0,-n),e.lineTo(r,o);for(var i=1;i<5;++i){var l=Wn*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")},Qn={draw:gn(function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)},"draw")};var Jn=Math.sqrt(3);const Zn={draw:gn(function(e,t){var n=-Math.sqrt(t/(3*Jn));e.moveTo(0,2*n),e.lineTo(-Jn*n,-n),e.lineTo(Jn*n,-n),e.closePath()},"draw")};var er=-.5,tr=Math.sqrt(3)/2,nr=1/Math.sqrt(12),rr=3*(nr/2+1);const or={draw:gn(function(e,t){var n=Math.sqrt(t/rr),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(er*r-tr*o,tr*r+er*o),e.lineTo(er*i-tr*l,tr*i+er*l),e.lineTo(er*a-tr*s,tr*a+er*s),e.lineTo(er*r+tr*o,er*o-tr*r),e.lineTo(er*i+tr*l,er*l-tr*i),e.lineTo(er*a+tr*s,er*s-tr*a),e.closePath()},"draw")};function ir(){var e=Hn(Un),t=Hn(64),n=null;function r(){var r;if(n||(n=r=Bn()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return P(r,"o"),gn(r,"symbol"),r.type=function(t){return arguments.length?(e="function"==typeof t?t:Hn(t),r):e},r.size=function(e){return arguments.length?(t="function"==typeof e?e:Hn(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r}P(ir,"xt"),gn(ir,"d3Symbol");var lr="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},ar=gn(function(e){return e},"d3_identity"),sr=gn(function(e){for(var t=[],n=0,r=e.length;n<r;n++)t[n]=e[r-n-1];return t},"d3_reverse"),ur=gn(function(e,n){e.each(function(){var e,r=t.select(this),o=r.text().split(/\s+/).reverse(),i=[];r.attr("y");for(var l=parseFloat(r.attr("dy"))||0,a=r.text(null).append("tspan").attr("x",0).attr("dy",l+"em");e=o.pop();)i.push(e),a.text(i.join(" ")),a.node().getComputedTextLength()>n&&i.length>1&&(i.pop(),a.text(i.join(" ")),i=[e],a=r.append("tspan").attr("x",0).attr("dy",1.2+l+"em").text(e))})},"d3_textWrapping"),cr=gn(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":lr(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"),dr=gn(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:gn(function(t){return e(t)},"feature")}},"d3_linearLegend"),hr=gn(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:ar}},"d3_quantLegend"),pr=gn(function(e){return{data:e.domain(),labels:e.domain(),feature:gn(function(t){return e(t)},"feature")}},"d3_ordinalLegend"),fr=gn(function(e,t,n){e.call("cellover",n,t)},"d3_cellOver"),gr=gn(function(e,t,n){e.call("cellout",n,t)},"d3_cellOut"),mr=gn(function(e,t,n){e.call("cellclick",n,t)},"d3_cellClick"),yr={d3_drawShapes:gn(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:gn(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(ar);return o&&e.selectAll("g."+r+"cell text."+r+"label").call(ur,o),i},"d3_addText"),d3_calcType:gn(function(e,t,n,r,o,i){var l=e.invertExtent?hr(e,o,i):e.ticks?dr(e,n,o):pr(e),a=e.range&&e.range()||e.domain();return l.labels=cr(l.labels,r,e.domain(),a,i),t&&(l.labels=sr(l.labels),l.data=sr(l.data)),l},"d3_calcType"),d3_filterCells:gn(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:gn(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:gn(function(e,t){e.on("mouseover.legend",function(e){fr(t,e,this)}).on("mouseout.legend",function(e){gr(t,e,this)}).on("click.legend",function(e){mr(t,e,this)})},"d3_addEvents"),d3_title:gn(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(ur,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:t.format,formatPrefix:t.formatPrefix},d3_defaultFormatSpecifier:".01f",d3_defaultDelimiter:"to"};function br(){var e=t.scaleLinear(),n="rect",r=15,o=15,i=10,l=2,a=[5],s=void 0,u=[],c="",d=!1,h="",p=yr.d3_defaultLocale,f=yr.d3_defaultFormatSpecifier,g=10,m="middle",y=yr.d3_defaultDelimiter,b=void 0,v="vertical",w=!1,_=void 0,x=void 0,C=t.dispatch("cellover","cellout","cellclick");function S(S){var k=yr.d3_calcType(e,w,a,u,p.format(f),y);S.selectAll("g").data([e]).enter().append("g").attr("class",c+"legendCells"),s&&yr.d3_filterCells(k,s);var T=S.select("."+c+"legendCells").selectAll("."+c+"cell").data(k.data),P=T.enter().append("g").attr("class",c+"cell");P.append(n).attr("class",c+"swatch");var E=S.selectAll("g."+c+"cell "+n+"."+c+"swatch").data(k.data);yr.d3_addEvents(P,C),T.exit().transition().style("opacity",0).remove(),E.exit().transition().style("opacity",0).remove(),E=E.merge(E),yr.d3_drawShapes(n,E,o,r,i,_);var z=yr.d3_addText(S,P,k.labels,c,b);T=P.merge(T);var I=z.nodes().map(function(e){return e.getBBox()}),R=E.nodes().map(function(e){return e.getBBox()});d?E.attr("class",function(e){return c+"swatch "+k.feature(e)}):"line"==n?E.style("stroke",k.feature):E.style("fill",k.feature);var A,D=void 0,F=void 0,L="start"==m?0:"middle"==m?.5:1;"vertical"===v?(A=I.map(function(e,t){return Math.max(e.height,R[t].height)}),D=gn(function(e,n){return"translate(0, "+(t.sum(A.slice(0,n))+n*l)+")"},"cellTrans"),F=gn(function(e,t){return"translate( "+(R[t].width+R[t].x+g)+", "+(R[t].y+R[t].height/2+5)+")"},"textTrans")):"horizontal"===v&&(D=gn(function(e,t){return"translate("+t*(R[t].width+l)+",0)"},"cellTrans"),F=gn(function(e,t){return"translate("+(R[t].width*L+R[t].x)+",\n "+(R[t].height+R[t].y+g+8)+")"},"textTrans")),yr.d3_placement(v,T,D,z,F,m),yr.d3_title(S,h,c,x),T.transition().style("opacity",1)}return P(S,"B"),gn(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)&&(a=e),S):a},S.cellFilter=function(e){return arguments.length?(s=e,S):s},S.shape=function(e,t){return arguments.length?(("rect"==e||"circle"==e||"line"==e||"path"==e&&"string"==typeof t)&&(n=e,_=t),S):n},S.shapeWidth=function(e){return arguments.length?(r=+e,S):r},S.shapeHeight=function(e){return arguments.length?(o=+e,S):o},S.shapeRadius=function(e){return arguments.length?(i=+e,S):i},S.shapePadding=function(e){return arguments.length?(l=+e,S):l},S.labels=function(e){return arguments.length?(u=e,S):u},S.labelAlign=function(e){return arguments.length?("start"!=e&&"end"!=e&&"middle"!=e||(m=e),S):m},S.locale=function(e){return arguments.length?(p=t.formatLocale(e),S):p},S.labelFormat=function(e){return arguments.length?(f=t.formatSpecifier(e),S):S.locale().format(f)},S.labelOffset=function(e){return arguments.length?(g=+e,S):g},S.labelDelimiter=function(e){return arguments.length?(y=e,S):y},S.labelWrap=function(e){return arguments.length?(b=e,S):b},S.useClass=function(e){return arguments.length?(!0!==e&&!1!==e||(d=e),S):d},S.orient=function(e){return arguments.length?("horizontal"!=(e=e.toLowerCase())&&"vertical"!=e||(v=e),S):v},S.ascending=function(e){return arguments.length?(w=!!e,S):w},S.classPrefix=function(e){return arguments.length?(c=e,S):c},S.title=function(e){return arguments.length?(h=e,S):h},S.titleWidth=function(e){return arguments.length?(x=e,S):x},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}P(br,"Ft"),gn(br,"color");const vr=(g=class extends t.SVGWidget{_owner;_targetWidget;_targetWidgetMonitor;_legendOrdinal;_disabled=[];_symbolTypeMap={circle:Un,cross:jn,diamond:Gn,square:Qn,star:Kn,triangle:Zn,wye:or};constructor(e){super(),this._owner=e,this._drawStartPos="origin";const t=this;this._legendOrdinal=br().shape("path",ir().type(Un).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 t.Database.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 t.Palette.ordinal(e._palette.id());case"rainbow":return t.Palette.rainbow(e._palette.id())}return t.Palette.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 n=t.Palette.ordinal(e&&e.paletteID&&e.paletteID()||"default");return(e,t,r)=>n(t)}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=[],n=0,r=0;const o=this.columns().length;if(this._targetWidget){const i=this.columns();switch(this.getPaletteType()){case"ordinal":const l=this.fillColorFunc();let a=0;switch(this.dataFamily()){case"2D":e=this.data().map(function(e,t){a=this.data()[t].slice(1,o).reduce((e,t)=>e+t,0);const i=this.isDisabled(e[0]);i||(n+=a);const s=e[0]+(!i&&this.showSeriesTotal()?` (${a})`:""),u=this.textSize(s);return r<u.width&&(r=u.width),[l(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,t){a=this.data().reduce((e,n)=>e+n[t+1],0);const o=this.isDisabled(i[t+1]),s=e+(!o&&this.showSeriesTotal()?` (${a})`:"");o||(n+=a);const u=this.textSize(s);return r<u.width&&(r=u.width),[l(void 0,e,!1),e,s]},this);break;default:e=this.columns().map(function(e){return[l(void 0,e,!1),e]},this)}break;case"rainbow":const s=this.getPalette(),u=t.format(this.rainbowFormat()),c=this.getWidget(),d=this.rainbowBins(),h=c._dataMinWeight,p=c._dataMaxWeight,f=(p-h)/(d-1);e.push([s(h,h,p),u(h)]);for(let t=1;t<d-1;++t){let n=f*t;Math.floor(n)>parseInt(e[0][1])&&(n=Math.floor(n)),e.push([s(n,h,p),u(n)])}e.push([s(p,h,p),u(p)])}}return{dataArr:e,total:n,maxLabelWidth:r}}update(e,n){super.update(e,n);const{dataArr:r,maxLabelWidth:o,total:i}=this.calcMetaData(),l=this.shapeRadius(),a=this.radiusToSymbolSize(l);let s=this.itemPadding();"horizontal"===this.orientation()&&(s+=o-2*l);const u=t.scaleOrdinal().domain(r.map(e=>e[1])).range(r.map(e=>e[0]));this._legendOrdinal.shape("path",ir().type(this._symbolTypeMap[this.symbolType()]).size(a)()).orient(this.orientation()).title(this.title()).labelWrap(this.labelMaxWidth()).labelAlign(this.labelAlign()).shapePadding(s).scale(u).labels(e=>r[e.i][2]),this._g.call(this._legendOrdinal),this.updateDisabled(n,r);const c=this._g.select(".legendCells").node().getBBox();let d=Math.abs(c.x),h=Math.abs(c.y)+1;"horizontal"===this.orientation()?("start"===this.labelAlign()?d+=1:"end"===this.labelAlign()&&(d-=1),this.width()>c.width&&(d+=(this.width()-c.width)/2)):"vertical"===this.orientation()&&(d+=1,this._containerSize.height>c.height)&&(h+=(this.height()-c.height)/2),this._g.attr("transform",`translate(${d}, ${h})`),this.pos({x:0,y:0}),this._legendOrdinal.labelOffset(this.itemPadding());const p=this._g.selectAll(".legendTotal").data(r.length&&this.showLegendTotal()?[i]:[]),f=`Total: ${i}`,g=-d,m=c.height+this.itemPadding()+1;this.enableOverflowScroll(!1),this.enableOverflow(!0),p.enter().append("text").classed("legendTotal",!0).merge(p).attr("transform",`translate(${g}, ${m})`).text(f),p.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(n.instanceOfIHighlight(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(n.instanceOfIHighlight(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}},P(g,"_Legend"),g);gn(vr,"Legend");let wr=vr;wr.prototype._class+=" layout_Legend",wr.prototype.publish("title","","string","Title"),wr.prototype.publish("symbolType","circle","set","Shape of each legend item",["circle","cross","diamond","square","star","triangle","wye"]),wr.prototype.publish("labelMaxWidth",null,"number","Max Label Width (pixels)",null,{optional:!0}),wr.prototype.publish("orientation","vertical","set","Orientation of Legend rows",["vertical","horizontal"],{tags:["Private"]}),wr.prototype.publish("dataFamily","ND","set","Type of data",["1D","2D","ND","map","graph","any"],{tags:["Private"]}),wr.prototype.publish("rainbowFormat",",","string","Rainbow number formatting",null,{tags:["Private"],optional:!0,disable:gn(e=>!e.isRainbow(),"disable")}),wr.prototype.publish("rainbowBins",8,"number","Number of rainbow bins",null,{tags:["Private"],disable:gn(e=>!e.isRainbow(),"disable")}),wr.prototype.publish("showSeriesTotal",!1,"boolean","Show value next to series"),wr.prototype.publish("showLegendTotal",!1,"boolean","Show a total of the series values under the legend",null),wr.prototype.publish("itemPadding",8,"number","Padding between legend items (pixels)"),wr.prototype.publish("shapeRadius",7,"number","Radius of legend shape (pixels)"),wr.prototype.publish("fitToContent",!0,"boolean","If true, resize will simply reapply the bounding box dimensions"),wr.prototype.publish("labelAlign","start","set","Horizontal alignment of legend item label (for horizontal orientation only)",["start","middle","end"],{optional:!0,disable:gn(e=>"vertical"===e.orientation(),"disable")});const _r=(m=class extends t.HTMLWidget{_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()}},P(m,"_Modal"),m);gn(_r,"Modal");let xr=_r;xr.prototype._class+=" layout_Modal",xr.prototype.publish("title",null,"string","title"),xr.prototype.publish("widget",null,"widget","widget"),xr.prototype.publish("titleFontSize",18,"number","titleFontSize (in pixels)"),xr.prototype.publish("titleFontColor","#ffffff","html-color","titleFontColor"),xr.prototype.publish("relativeTargetId",null,"string","relativeTargetId"),xr.prototype.publish("show",!0,"boolean","show"),xr.prototype.publish("showFade",!0,"boolean","showFade"),xr.prototype.publish("enableClickFadeToClose",!0,"boolean","enableClickFadeToClose"),xr.prototype.publish("minWidth","400px","string","minWidth"),xr.prototype.publish("minHeight","400px","string","minHeight"),xr.prototype.publish("maxWidth","800px","string","maxWidth"),xr.prototype.publish("maxHeight","800px","string","maxHeight"),xr.prototype.publish("fixedWidth",null,"string","fixedWidth"),xr.prototype.publish("fixedHeight",null,"string","fixedHeight"),xr.prototype.publish("fixedTop",null,"string","fixedTop"),xr.prototype.publish("fixedLeft",null,"string","fixedLeft"),xr.prototype.publish("overflowX","hidden","string","overflowX"),xr.prototype.publish("overflowY","scroll","string","overflowY");const Cr=(y=class extends In{_legend=new wr(this).enableOverflow(!0);_progressBar=new t.ProgressBar;_autoScale=!1;_resolutions={tiny:{width:100,height:100},small:{width:300,height:300}};_modal=new xr;_highlight;_scale;_orig_size;_toggleInfo=(new t.ToggleButton).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 t.Text).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 t.ToggleButton).faChar("fa-table").tooltip("Data").on("click",()=>{this.dataVisible(this._toggleData.selected()),this.render()});_buttonDownload=(new t.Button).faChar("fa-download").tooltip("Download").on("click",()=>{this.downloadCSV()});_buttonDownloadImage=(new t.Button).faChar("fa-image").tooltip("Download Image").on("click",()=>{this.downloadPNG()});_toggleLegend=(new t.ToggleButton).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 t.Spacer;_titleBar=(new t.TitleBar).buttons([this._toggleData,this._buttonDownload,this._buttonDownloadImage,this._spacer,this._toggleLegend]);_carousel=new An;_table=new pn;_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",n=this.downloadTimestampSuffix()?"_"+t.Utility.timestamp():"";return t.Utility.downloadString("CSV",this._widget.export("CSV"),e+n),this}downloadPNG(){const e=this.widget();return e instanceof t.SVGWidget&&(this.legendVisible()?e.downloadPNG(this.title(),void 0,this._legend):e.downloadPNG(this.title())),this}highlightColumn(e){if(e){const n=`series-${this.cssTag(e)}`;this._centerWA.element().selectAll(".series").each(function(){const e=t.select(this),r=e.classed(n);e.classed("highlight",r).classed("lowlight",!r)})}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,n){switch(super.preUpdate(e,n),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(n);break;case"small":this.preUpdateSmall(n);break;case"regular":this.preUpdateRegular(n)}const r="composite_MultiChart"===this._widget.classID()?this._widget.chart():this._widget;if(this._legend.dataFamily(r._dataFamily||"any"),this._prevChartDataFamily!==this._legend.dataFamily()&&(this._prevChartDataFamily=this._legend.dataFamily(),"any"===this._prevChartDataFamily)&&(this._toggleLegend.selected(!1),this._legend.visible(!1)),n.style("box-shadow",this.highlight()?`inset 0px 0px 0px ${this.highlightSize()}px ${this.highlightColor()}`:"none"),-1!==this._hideLegendToggleList.indexOf(r.classID())?(this._spacer.visible(!1),this._toggleLegend.visible(!1)):(this._spacer.visible(!0),this._toggleLegend.visible(!0)),this._prevChart!==r){this._prevChart=r;const e=r?r._titleBar||r._iconBar:void 0;if(e&&e instanceof t.IconBar){this._prevButtons=this._prevButtons||[...this.buttons()];const n=[...e.buttons(),new t.Spacer,...this._prevButtons];e.buttons([]).render(),this.buttons(n)}else this._prevButtons&&this.buttons(this._prevButtons)}const o=[];this.dataButtonVisible()||o.push(this._toggleData),this.downloadButtonVisible()||o.push(this._buttonDownload),this.downloadImageButtonVisible()||o.push(this._buttonDownloadImage),this.legendButtonVisible()||o.push(this._toggleLegend),this._buttonDownloadImage.enabled(this.widget()instanceof t.SVGWidget),this._titleBar.hiddenButtons(o).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}},P(y,"_ChartPanel"),y);gn(Cr,"ChartPanel");let Sr=Cr;Sr.prototype._class+=" layout_ChartPanel",Sr.prototype.publishReset(),Sr.prototype.publishProxy("title","_titleBar"),Sr.prototype.publish("titleVisible",!0,"boolean"),Sr.prototype.publish("titleOverlay",!1,"boolean"),Sr.prototype.publishProxy("titleIcon","_titleBar"),Sr.prototype.publishProxy("titleIconFont","_titleBar"),Sr.prototype.publishProxy("titleFont","_titleBar"),Sr.prototype.publishProxy("titleIconFontSize","_titleBar"),Sr.prototype.publishProxy("titleFontSize","_titleBar"),Sr.prototype.publishProxy("description","_titleBar"),Sr.prototype.publishProxy("descriptionFont","_titleBar"),Sr.prototype.publishProxy("descriptionFontSize","_titleBar"),Sr.prototype.publish("dataVisible",!1,"boolean","Show data table"),Sr.prototype.publish("dataButtonVisible",!0,"boolean","Show data table button"),Sr.prototype.publish("downloadButtonVisible",!0,"boolean","Show data download button"),Sr.prototype.publish("downloadImageButtonVisible",!1,"boolean","Show image download button"),Sr.prototype.publish("downloadTitle","","string","File name when downloaded"),Sr.prototype.publish("downloadTimestampSuffix",!0,"boolean","Use timestamp as file name suffix"),Sr.prototype.publish("legendVisible",!1,"boolean","Show legend"),Sr.prototype.publish("legendButtonVisible",!0,"boolean","Show legend button"),Sr.prototype.publish("legendPosition","right","set","Position of legend",["right","bottom"]),Sr.prototype.publishProxy("legend_labelMaxWidth","_legend","labelMaxWidth"),Sr.prototype.publishProxy("legend_showSeriesTotal","_legend","showSeriesTotal"),Sr.prototype.publishProxy("legend_showLegendTotal","_legend","showLegendTotal"),Sr.prototype.publishProxy("legend_itemPadding","_legend","itemPadding"),Sr.prototype.publishProxy("legend_shapeRadius","_legend","shapeRadius"),Sr.prototype.publishProxy("legend_symbolType","_legend","symbolType"),Sr.prototype.publishProxy("legend_labelAlign","_legend","labelAlign"),Sr.prototype.publish("widget",null,"widget","Widget",void 0,{render:!1}),Sr.prototype.publish("enableAutoscaling",!1,"boolean"),Sr.prototype.publish("highlightSize",4,"number"),Sr.prototype.publish("highlightColor","#e67e22","html-color"),Sr.prototype.publishProxy("progress_halfLife","_progressBar","halfLife"),Sr.prototype.publishProxy("progress_decay","_progressBar","decay"),Sr.prototype.publishProxy("progress_size","_progressBar","size"),Sr.prototype.publishProxy("progress_color","_progressBar","color"),Sr.prototype.publishProxy("progress_blurBar","_progressBar","blurBar"),Sr.prototype.publishProxy("progress_blurSize","_progressBar","blurSize"),Sr.prototype.publishProxy("progress_blurColor","_progressBar","blurColor"),Sr.prototype.publishProxy("progress_blurOpacity","_progressBar","blurOpacity"),Sr.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 kr=(b=class extends t.HTMLWidget{constructor(){super()}enter(e,n){super.enter(e,n),t.select(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")}},P(b,"_FlexGrid"),b);gn(kr,"FlexGrid");let Tr=kr;function Pr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}P(Pr,"Vt"),Tr.prototype._class+=" layout_FlexGrid",Tr.prototype.publish("itemBorderColor","transparent","html-color","Color of list item borders"),Tr.prototype.publish("borderWidth",0,"number","Width of list item borders (pixels)"),Tr.prototype.publish("orientation","horizontal","set","Controls the flex-direction of the list items",["horizontal","vertical"]),Tr.prototype.publish("flexWrap","wrap","set","Controls the line wrap when overflow occurs",["nowrap","wrap","wrap-reverse"]),Tr.prototype.publish("disableScroll",!1,"boolean","If false, scrollbar will show (when flexWrap is set to 'nowrap')",null,{disable:gn(e=>"nowrap"!==e.flexWrap(),"disable")}),Tr.prototype.publish("forceXScroll",!1,"boolean","If true, horzontal scrollbar will show"),Tr.prototype.publish("forceYScroll",!1,"boolean","If true, vertical scrollbar will show"),Tr.prototype.publish("itemMinHeight",64,"number","Minimum height of a list item (pixels)"),Tr.prototype.publish("itemMinWidth",64,"number","Minimum width of a list item (pixels)"),Tr.prototype.publish("alignItems","stretch","set","Controls normal alignment of items",["flex-start","center","flex-end","stretch"]),Tr.prototype.publish("alignContent","stretch","set","Controls normal alignment of item rows",["flex-start","center","flex-end","stretch","space-between","space-around"]),Tr.prototype.publish("flexGrow",1,"number","Default flex-grow style for all list items"),Tr.prototype.publish("flexBasis","10%","string","Default flex-basis style for all list items"),Tr.prototype.publish("widgetsFlexGrow",[],"array","Array of flex-grow values keyed on the widgets array"),Tr.prototype.publish("widgetsFlexBasis",[],"array","Array of flex-basis values keyed on the widgets array"),Tr.prototype.publish("widgets",[],"widgetArray","Array of widgets to be rendered as list items"),gn(Pr,"getDefaultExportFromCjs");var Er,zr={exports:{}};function Ir(){return Er?zr.exports:(Er=1,zr.exports=function(){var e=gn(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:gn(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:gn(function(){var e;for(this._resetGrid(),e=0;e<this.items.length;e++)this._markItemPositionToGrid(this.items[e])},"generateGrid"),resizeGrid:gn(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:gn(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:gn(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:gn(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:gn(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:gn(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:gn(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:gn(function(){this.grid=[]},"_resetGrid"),_itemFitsAtPosition:gn(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:gn(function(e,t){null!==e.x&&null!==e.y&&this._deleteItemPositionFromGrid(e),this._setItemPosition(e,t),this._markItemPositionToGrid(e)},"_updateItemPosition"),_updateItemSize:gn(function(e,t,n){null!==e.x&&null!==e.y&&this._deleteItemPositionFromGrid(e),e.w=t,e.h=n,this._markItemPositionToGrid(e)},"_updateItemSize"),_markItemPositionToGrid:gn(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:gn(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:gn(function(e){var n;for(n=0;n<e;n++)this.grid[n]||this.grid.push(new t(this._options.lanes))},"_ensureColumns"),_getItemsCollidingWithItem:gn(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:gn(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:gn(function(e){this._tryToResolveCollisionsLocally(e)||this._pullItemsToLeft(e),this._pullItemsToLeft()},"_resolveCollisions"),_tryToResolveCollisionsLocally:gn(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:gn(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:gn(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:gn(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:gn(function(e,t){return e>=10?e:t+e},"_padNumber"),_getItemPosition:gn(function(e){return"horizontal"===this._options.direction?e:{x:e.y,y:e.x,w:e.h,h:e.w}},"_getItemPosition"),_setItemPosition:gn(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=gn(function(e){for(var t=0;t<e;t++)this.push(null)},"GridCol");return t.prototype=[],e}())}P(Ir,"Ut"),gn(Ir,"requireGridList");var Rr=Ir();const Ar=Pr(Rr),Dr=mn({__proto__:null,default:Ar},[Rr]),Fr=Dr&&Ar||Dr,Lr=(v=class extends t.HTMLWidget{divItems;gridList;items;itemsMap;origItems;cellWidth;cellHeight;dragItem;dragItemPos;_d3Drag;_d3DragResize;_selectionBag;_scrollBarWidth;constructor(){super(),this._tag="div",this._selectionBag=new t.Utility.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 Sn).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 Fr(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,n){super.enter(e,n),this._scrollBarWidth=t.Platform.getScrollbarWidth();const r=this;this._d3Drag=t.drag().subject(function(e){const t=r.cellToGridItem(e);return{x:t.x*r.cellWidth,y:t.y*r.cellHeight}}).on("start",function(e){if(!r.designMode())return;t.d3Event().sourceEvent.stopPropagation(),r.initGridList();const o=r.itemsMap[e.id()];r.dragItem=n.append("div").attr("class","dragging").style("transform",function(){return"translate("+o.x*r.cellWidth+"px, "+o.y*r.cellHeight+"px)"}).style("width",function(){return o.w*r.cellWidth-r.gutter()+"px"}).style("height",function(){return o.h*r.cellHeight-r.gutter()+"px"}),r.selectionBagClick(e)}).on("drag",function(e){if(!r.designMode())return;const n=t.d3Event();n.sourceEvent.stopPropagation();const o=r.itemsMap[e.id()];n.x<0&&(n.x=0),n.x+o.w*r.cellWidth>r.snappingColumns()*r.cellWidth&&(n.x=r.snappingColumns()*r.cellWidth-o.w*r.cellWidth),n.y<0&&(n.y=0),n.y+o.h*r.cellWidth>r.snappingRows()*r.cellWidth&&(n.y=r.snappingRows()*r.cellWidth-o.h*r.cellWidth);const i=[Math.max(0,Math.floor((n.x+r.cellWidth/2)/r.cellWidth)),Math.max(0,Math.floor((n.y+r.cellHeight/2)/r.cellHeight))];o.x===i[0]&&o.y===i[1]||("none"!==r.snapping()?(r.resetItemsPos(),r.gridList.moveItemToPosition(o,i)):(o.x=i[0],o.y=i[1]),e.gridCol()===o.x&&e.gridRow()===o.y||(r.items.forEach(r.gridItemToCell),r.updateGrid(!1,100))),r.dragItem.style("transform",function(){return"translate("+n.x+"px, "+n.y+"px)"}).style("width",function(){return o.w*r.cellWidth+"px"}).style("height",function(){return o.h*r.cellHeight+"px"})}).on("end",function(){r.designMode()&&(t.d3Event().sourceEvent.stopPropagation(),r.dragItem.remove(),r.dragItem=null,r.killGridList())}),this._d3DragResize=t.drag().subject(function(e){const t=r.cellToGridItem(e);return{x:(t.x+t.w-1)*r.cellWidth,y:(t.y+t.h-1)*r.cellHeight}}).on("start",function(e){if(!r.designMode())return;t.d3Event().sourceEvent.stopPropagation(),r.initGridList();const o=r.itemsMap[e.id()];r.dragItem=n.append("div").attr("class","resizing").style("transform",function(){return"translate("+o.x*r.cellWidth+"px, "+o.y*r.cellHeight+"px)"}).style("width",function(){return o.w*r.cellWidth-r.gutter()+"px"}).style("height",function(){return o.h*r.cellHeight-r.gutter()+"px"}),r.dragItemPos={x:o.x,y:o.y}}).on("drag",function(e){if(!r.designMode())return;const n=t.d3Event();n.sourceEvent.stopPropagation();const o=r.itemsMap[e.id()],i=[Math.max(0,Math.round(n.x/r.cellWidth)),Math.max(0,Math.round(n.y/r.cellHeight))],l={w:Math.max(1,i[0]-o.x+1),h:Math.max(1,i[1]-o.y+1)};o.w===l.w&&o.h===l.h||("none"!==r.snapping()?(r.resetItemsPos(),r.gridList.resizeItem(o,l)):(o.w=l.w,o.h=l.h),e.gridColSpan()===o.w&&e.gridRowSpan()===o.h||(r.items.forEach(r.gridItemToCell),r.updateGrid(o.id,100))),r.dragItem.style("width",function(){return(1-o.x)*r.cellWidth+n.x-r.gutter()+"px"}).style("height",function(){return(1-o.y)*r.cellHeight+n.y-r.gutter()+"px"})}).on("end",function(){r.designMode()&&(t.d3Event().sourceEvent.stopPropagation(),r.dragItem.remove(),r.dragItem=null,r.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,n){super.update(e,n),this._placeholderElement.style("overflow-x","width"===this.fitTo()?"hidden":null),this._placeholderElement.style("overflow-y","width"===this.fitTo()?"scroll":null);const r=this.getDimensions(),o=this.width()-("width"===this.fitTo()?this._scrollBarWidth:0);if(this.cellWidth=o/r.width,this.cellHeight="all"===this.fitTo()?this.height()/r.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 i=this,l=n.selectAll("#"+this.id()+" > .ddCell").data(this.content(),function(e){return e.id()});this.divItems=l.enter().append("div").attr("class","ddCell").each(function(e){e.target(this),e.__grid_watch=e.monitor(function(t,n,r){!i._renderCount||"snapping"!==t&&0!==t.indexOf("grid")||n===r||i.gridList||(i.initGridList(),"none"!==i.snapping()&&i.gridList.resizeGrid("horizontal"===i.snapping()?i.snappingRows():i.snappingColumns()),i.items.forEach(i.gridItemToCell),i.updateGrid(e.id(),100),i.killGridList())}),t.select(this).append("div").attr("class","resizeHandle").call(i._d3DragResize).append("div").attr("class","resizeHandleDisplay")}).merge(l),this.divItems.each(function(e){const n=t.select(this);i.designMode()?n.call(i._d3Drag):n.on("mousedown.drag",null).on("touchstart.drag",null)}),this.divItems.select(".resizeHandle").style("display",this.designMode()?null:"none"),this.updateGrid(!0),l.exit().each(function(e){e.target(null),e.__grid_watch&&e.__grid_watch.remove()}).remove();const a=n.selectAll("#"+this.id()+" > .laneBackground").data(this.designMode()?[""]:[]);a.enter().insert("div",":first-child").attr("class","laneBackground").style("left","1px").style("top","1px").on("click",function(){i.selectionBagClear()}).merge(a).style("width",this.snappingColumns()*this.cellWidth+"px").style("height",this.snappingRows()*this.cellHeight+"px"),a.exit().each(function(){i.selectionBagClear()}).remove();const s=n.selectAll("#"+this.id()+" > .lane").data(this.designMode()?[""]:[]);s.enter().append("div").attr("class","lane").style("left","1px").style("top","1px"),s.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"),s.exit().remove()}exit(e,t){this.content().forEach(e=>e.target(null)),super.exit(e,t)}_createSelectionObject(e){return{_id:e._id,element:gn(()=>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 n=this._createSelectionObject(e);if(t.d3Event().sourceEvent.ctrlKey)this._selectionBag.isSelected(n)?(this._selectionBag.remove(n),this.postSelectionChange()):(this._selectionBag.append(n),this.postSelectionChange());else{const e=this._selectionBag.get();1===e.length&&e[0]._id===n._id?this.selectionBagClear():this._selectionBag.set([n]),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){}},P(v,"_Grid"),v);gn(Lr,"Grid");let Mr=Lr;Mr.prototype._class+=" layout_Grid",Mr.prototype.publish("designMode",!1,"boolean","Design Mode",null,{tags:["Basic"]}),Mr.prototype.publish("showLanes",!0,"boolean","Show snapping lanes when in design mode",null,{tags:["Basic"],disable:gn(e=>!e.designMode(),"disable")}),Mr.prototype.publish("fitTo","all","set","Sizing Strategy",["all","width"],{tags:["Basic"]}),Mr.prototype.publish("snapping","vertical","set","Snapping Strategy",["vertical","horizontal","none"]),Mr.prototype.publish("snappingColumns",12,"number","Snapping Columns"),Mr.prototype.publish("snappingRows",16,"number","Snapping Rows"),Mr.prototype.publish("gutter",6,"number","Gap Between Widgets",null,{tags:["Basic"]}),Mr.prototype.publish("surfaceShadow",!0,"boolean","3D Shadow"),Mr.prototype.publish("surfacePadding",null,"string","Cell Padding (px)",null,{tags:["Intermediate"]}),Mr.prototype.publish("surfaceBorderWidth",1,"number","Width (px) of Cell Border",null,{tags:["Intermediate"]}),Mr.prototype.publish("surfaceBackgroundColor",null,"html-color","Surface Background Color",null,{tags:["Advanced"]}),Mr.prototype.publish("content",[],"widgetArray","widgets",null,{tags:["Basic"],render:!1});const Or=(P(w=class extends Tr{constructor(){super(),this.orientation_default("horizontal"),this.flexWrap_default("nowrap")}},"_HorizontalList"),w);gn(Or,"HorizontalList"),Or.prototype._class+=" layout_HorizontalList";const Br=(_=class extends t.HTMLWidget{_contentContainer;_widgetPlacements;_widgetRatios;constructor(){super(),this._tag="div",this._widgetPlacements=[],this._widgetRatios=[]}addLayer(e,n="default",r=1,o=1){const i=this.widgets();return i.push(e||(new t.Text).text("No widget defined for layer.")),this.widgets(i),this._widgetPlacements.push(n),this._widgetRatios.push([r,o]),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}}}},P(_,"_Layered"),_);gn(Br,"Layered");let Hr=Br;Hr.prototype._class+=" layout_Layered",Hr.prototype.publish("surfacePadding",0,"number","Padding"),Hr.prototype.publish("widgets",[],"widgetArray","widgets",null,{tags:["Private"]});const Nr=(x=class extends t.HTMLWidget{_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){}},P(x,"_Popup"),x);gn(Nr,"Popup");let Wr=Nr;Wr.prototype._class+=" layout_Popup",Wr.prototype.publish("popupState",!1,"boolean","State of the popup, visible (true) or hidden (false)",null,{}),Wr.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,{}),Wr.prototype.publish("centerPopup","none","set","Center the widget in its container element (target) or in the window",["none","container","window"],{}),Wr.prototype.publish("top",null,"number","Top position property of popup",null,{}),Wr.prototype.publish("bottom",null,"number","Bottom position property of popup",null,{}),Wr.prototype.publish("left",null,"number","Left position property of popup",null,{}),Wr.prototype.publish("right",null,"number","Right position property of popup",null,{}),Wr.prototype.publish("position","relative","set","Value of the 'position' property",["absolute","relative","fixed","static","initial","inherit"],{tags:["Private"]}),Wr.prototype.publish("widget",null,"widget","Widget",null,{tags:["Private"]});const Ur=(C=class extends t.HTMLWidget{_tabContainer;_contentContainer;constructor(){super(),this._tag="div"}clearTabs(){return this.labels([]),this.widgets([]),this}addTab(e,n,r,o){const i=e.size();0===i.width&&0===i.height&&e.size({width:"100%",height:"100%"});const l=this.labels(),a=this.widgets();r&&this.activeTabIdx(this.widgets().length),l.push(n);const s=(new xn).widget(e||(new t.Text).text("No widget defined for tab"));return a.push(s),this.labels(l),this.widgets(a),o&&o(s),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,n){super.update(e,n);const r=this;n.style("padding",this.surfacePadding_exists()?this.surfacePadding()+"px":null);const o=this._tabContainer.selectAll(".tab-button.id"+this.id()).data(this.showTabs()?this.labels():[],function(e){return e});o.enter().append("span").attr("class","tab-button id"+this.id()).style("cursor","pointer").on("click",function(e,t){r.click(r.widgets()[t].widget(),e,t),r.activeTabIdx(t).render()}).merge(o).classed("active",function(e,t){return r.activeTabIdx()===t}).text(function(e){return e}),o.exit().remove();const i=this._contentContainer.selectAll(".tab-content.id"+this.id()).data(this.widgets(),function(e){return e.id()});i.enter().append("div").attr("class","tab-content id"+this.id()).each(function(e,t){e.target(this)}).merge(i).classed("active",function(e,t){return r.activeTabIdx()===t}).style("display",function(e,t){return r.activeTabIdx()===t?"block":"none"}).each(function(e,n){if(e.visible(r.activeTabIdx()===n),r.activeTabIdx()===n){const n=r.widgetSize(t.select(this));e.surfaceBorderWidth(r.showTabs()?null:0).surfacePadding(r.showTabs()?null:0).resize(n)}}),i.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){}},P(C,"_Tabbed"),C);gn(Ur,"Tabbed");let jr=Ur;jr.prototype._class+=" layout_Tabbed",jr.prototype.publish("showTabs",!0,"boolean","Show Tabs",null,{}),jr.prototype.publish("surfacePadding",4,"number","Padding"),jr.prototype.publish("activeTabIdx",0,"number","Index of active tab",null,{}),jr.prototype.publish("labels",[],"array","Array of tab labels sharing an index with ",null,{tags:["Private"]}),jr.prototype.publish("tabLocation","top","set","Position the tabs at the bottom of the widget",["top","bottom"],{tags:["Private"]}),jr.prototype.publish("widgets",[],"widgetArray","widgets",null,{tags:["Private"]});const $r=(S=class extends t.HTMLWidget{constructor(){super(),this._tag="div"}enter(e,t){super.enter(e,t)}update(e,n){super.update(e,n);const r=this;n.attr("title",r.title()).style("background-color",this.backgroundColor());const o=n.selectAll("div.toolbar-title").data(this.title()?[this.title()]:[]);o.enter().append("div").classed("toolbar-title",!0).append("span"),o.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(r.title()),o.exit().remove();const i=n.selectAll("div.toolbar-child").data(null!==this.widgets()?this.widgets():[],function(e){return e.id()});i.enter().insert("div","div.toolbar-title").each(function(e,n){const o=r.widgetClasses()[n]?r.widgetClasses()[n]+" toolbar-child":"toolbar-child";t.select(this).classed(o,!0),e.target(this)}),i.exit().each(function(e){e.target(null)}).remove(),i.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)}},P(S,"_Toolbar"),S);gn($r,"Toolbar");let Vr=$r;Vr.prototype._class+=" layout_Toolbar",Vr.prototype.publish("title","","string","Title",null,{tags:["Intermediate"]}),Vr.prototype.publish("fontSize",null,"number","Title Font Size (px)",null,{tags:["Advanced"],optional:!0}),Vr.prototype.publish("fontColor",null,"html-color","Title Font Color",null,{tags:["Advanced"],optional:!0}),Vr.prototype.publish("fontFamily",null,"string","Title Font Family",null,{tags:["Advanced"],optional:!0}),Vr.prototype.publish("fontBold",!0,"boolean","Enable Bold Title Font",null,{tags:["Advanced"],optional:!0}),Vr.prototype.publish("backgroundColor",null,"html-color","Background Color",null,{tags:["Intermediate"],optional:!0}),Vr.prototype.publish("responsive",!0,"boolean","Adapts to pixel width",null,{tags:["Basic"]}),Vr.prototype.publish("widgets",[],"widgetArray","Child widgets of the toolbar",null,{tags:["Basic"]}),Vr.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 Gr=(P(k=class extends Tr{constructor(){super(),this.orientation_default("vertical"),this.flexWrap_default("nowrap")}},"_VerticalList"),k);function qr(e){return new Promise(function(n,r){const o=t.Utility.parseClassID(e);require&&require([o.package],function(e){let t=null;e&&e[o.widgetID]&&(t=e[o.widgetID]),n(o.memberWidgetID?t.prototype?t.prototype[o.memberWidgetID]:t[o.memberWidgetID]:t)})})}function Yr(e){return Promise.all(e.map(qr))}gn(Gr,"VerticalList"),Gr.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)}}(),P(qr,"requireWidget"),P(Yr,"requireWidgets");const Xr=Object.freeze(Object.defineProperty({__proto__:null,requireWidget:qr,requireWidgets:Yr},Symbol.toStringTag,{value:"Module"})),Kr=class _MultiChart extends t.HTMLWidget{_allCharts={};_chartTypeDefaults;_chartTypeProperties;_chartMonitor;_switchingTo;constructor(){super(),n.INDChart.call(this),n.IGraph.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,n){const r=t.HTMLWidget.prototype.columns.apply(this,arguments);if(this.chart()){if(!arguments.length)return this.chart().columns();this.chart().columns(e,n)}return r}data(e){const n=t.HTMLWidget.prototype.data.apply(this,arguments);if(this.chart()){if(!arguments.length)return this.chart().data();this.chart().data(e)}return n}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,n){const r=t.Utility.parseClassID(this._allCharts[e].widgetClass);switch(r.package){case"@hpcc-js/chart":import("@hpcc-js/chart").then(e=>{n(new e[r.widgetID])});break;case"@hpcc-js/dgrid":import("@hpcc-js/dgrid").then(e=>{n(new e[r.widgetID])});break;default:qr(this._allCharts[e].widgetClass).then(function(e){n(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,n=arguments;return this.switchChart(function(){t.HTMLWidget.prototype.render.apply(e,n)}),this}return t.HTMLWidget.prototype.render.apply(this,arguments)}};P(Kr,"MultiChart");let Qr=Kr;Qr.prototype._class+=" composite_MultiChart",Qr.prototype.implements(n.INDChart.prototype),Qr.prototype.implements(n.IGraph.prototype),Qr.prototype._otherChartTypes=[{id:"FORM",display:"Form",widgetClass:"form_FieldForm"}].map(function(e){return e.family="other",e}),Qr.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}),Qr.prototype._1DChartTypes=[].map(function(e){return e.family="1D",e}),Qr.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}),Qr.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}),Qr.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}),Qr.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}),Qr.prototype._allChartTypes=Qr.prototype._otherChartTypes.concat(Qr.prototype._graphChartTypes.concat(Qr.prototype._1DChartTypes.concat(Qr.prototype._2DChartTypes.concat(Qr.prototype._NDChartTypes.concat(Qr.prototype._mapChartTypes.concat(Qr.prototype._anyChartTypes)))))),Qr.prototype._allMap=t.map(Qr.prototype._allChartTypes,function(e){return e.family}),Qr.prototype._allFamilies=Qr.prototype._allMap.keys(),Qr.prototype._allChartTypesMap={},Qr.prototype._allChartTypesByClass={},Qr.prototype._allChartTypes.forEach(function(e){e.widgetPath=t.Utility.widgetPath(e.widgetClass),Qr.prototype._allChartTypesMap[e.id]=e,Qr.prototype._allChartTypesByClass[e.widgetClass]=e}),Qr.prototype.publishReset(),Qr.prototype.publish("hideRowOnLegendClick",!1,"boolean","Enable/Disable hiding row on legend clicks",null,{tags:["Basic"]}),Qr.prototype.publish("chartType","BUBBLE","set","Chart Type",Qr.prototype._allChartTypes.map(function(e){return e.id}),{tags:["Basic"]}),Qr.prototype.publish("chart",null,"widget","Chart",null,{tags:["Basic"]});const Jr=Qr.prototype.chart;Qr.prototype.chart=function(e){const t=Jr.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 Zr=class _Summary extends t.HTMLWidget{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())}};P(Zr,"Summary"),Zr.prototype.publish("text","","string");const eo=class _MultiChartPanel extends Sr{constructor(){super(),this.widget((new Qr).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 Qr&&this._legend.dataFamily(this._widget.getChartDataFamily()),super.update(e,t)}};P(eo,"MultiChartPanel");let to=eo;to.prototype._class+=" composite_MultiChartPanel";const no=class _Dermatology extends Tn{_toolbar;_propEditor;_showProperties;_propsButton;_prevWidget;constructor(){super(),this._toolbar=(new Vr).title("Dermatology"),this._propEditor=(new o.PropertyEditor).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 r.OnOff).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};P(no,"Dermatology");let ro=no;ro.prototype._class+=" composite_Dermatology",ro.prototype.publish("showToolbar",!0,"boolean","Show Toolbar"),ro.prototype.publish("widget",null,"widget","Widget");const oo=class _MegaChart extends Tn{_chart=new Qr;_toolbar=new Vr;_valueTitle=new t.Text;_domainTitle=new t.Text;_legend=new o.Legend;_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 t.Utility.downloadString("CSV",this._chart.export("CSV")),this}enter(e,n){super.enter(e,n);const i=this;this.topShrinkWrap(!1).topPercentage(0).topSize(30),this._dataCount=(new o.Html).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 r.Button).classed({"composite_MegaChart-CSV":!0}).id(this.id()+"_csv").value("CSV"),this._csvButton.click=function(e){i.downloadCSV()},this._infoButton=(new r.Button).classed({"composite_MegaChart-Info":!0}).id(this.id()+"_info").value(this.infoIcon()),this._maximizeButton=(new r.Button).classed({"composite_MegaChart-Maximize":!0}).id(this.id()+"_maximize").value(""),this._maximizeButton.click=function(e){const n=i.target();let r;const o=t.select(n).classed("__hpccisMaximized"),l=i.locateAncestor("layout_Grid");r=l?l.element().node():document.body;const a=t.select(i.target());if(o){const t=n.parentElement.getBoundingClientRect(),r=parseInt(getComputedStyle(n,null).getPropertyValue("padding-top").replace("px","")),o=parseInt(getComputedStyle(n,null).getPropertyValue("padding-left").replace("px","")),l=parseInt(getComputedStyle(n,null).getPropertyValue("padding-right").replace("px","")),s=parseInt(getComputedStyle(n,null).getPropertyValue("padding-bottom").replace("px",""));i.contentDiv.style("opacity",0).transition(100),a.transition().style("top",t.top+"px").style("left",t.left+"px").style("width",t.width-o-l+"px").style("height",t.height-r-s+"px").each("end",function(){a.style("position",n.__old_position),a.style("z-index",n.__old_zindex),a.style("background-color",n.__old_backgroundColor),a.style("box-shadow",n.__old_boxshadow),i.resize({width:t.width-o-l,height:t.height-r-s}).render(function(){i.contentDiv.transition().style("opacity",1)}),e.value("").render()})}else{n.__old_position=n.style.position,n.__old_zindex=n.style.zIndex,n.__old_boxshadow=n.style.boxShadow,n.__old_backgroundColor=i.element().style("background-color");const o=t.select(r).datum(),l=o.target(),s=o?l.getBoundingClientRect():r.getBoundingClientRect(),u=parseInt(getComputedStyle(l,null).getPropertyValue("padding-top").replace("px","")),c=parseInt(getComputedStyle(l,null).getPropertyValue("padding-left").replace("px","")),d=parseInt(getComputedStyle(l,null).getPropertyValue("padding-right").replace("px","")),h=parseInt(getComputedStyle(l,null).getPropertyValue("padding-bottom").replace("px",""));i.contentDiv.style("opacity",0).transition(100),a.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",n.__old_backgroundColor).transition().style("top",s.top+u+"px").style("left",s.left+c+"px").style("width",s.width-c-d+"px").style("height",s.height-u-h+"px").each("end",function(){a.style("background-color",i.maximizedBackgroundColor()),i.resize({width:s.width-c-d,height:s.height-u-h}).render(function(){i.contentDiv.transition().style("opacity",1)}),e.value("").render()})}t.select(n).classed("__hpccisMaximized",!o)},this._legendButton=(new r.Input).classed({"composite_MegaChart-legend":!0}).id(this.id()+"_legend").type("checkbox").inlineLabel("Legend: "),this._legendButton.click=function(e){i.render()},this._chartTypeSelect=(new r.Select).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){i.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)}}P(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 i=this.legendPosition();this.toolbarShowLegend()&&!this._legendButton.checked()&&(i="none"),this._prevLegendPosition!==i&&("none"!==this._prevLegendPosition&&this.clearContent(this._prevLegendPosition),this._prevLegendPosition=i,"none"!==i&&(this._legend=(new o.Legend).targetWidget(this.getContent("center").fixedSize(!0)),this.setContent(i,this._legend),this._legend.orientation(-1!==["top","bottom"].indexOf(i)?"horizontal":"vertical"))),this._contentClasses=this.getContentClasses(),this.valueAxisTitle()&&"common_Text"!==this._contentClasses.left&&"left"!==i&&this.setContent("left",this._valueTitle.rotation(-90)),this.domainAxisTitle()&&"common_Text"!==this._contentClasses.bottom&&"bottom"!==i&&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};P(oo,"MegaChart");let io=oo;function lo(e,n){if(n=n&&"1.14.2-dev"!==n?n:"1.18.0",!e.__version)return e;const r=t.Utility.parseVersionString(e.__version),o=t.Utility.parseVersionString(n);if(1===r.major&&14===r.minor){console.info("Upgrading old persist from "+e.__version+" to "+n);let t=JSON.stringify(e);t=t.split('"'+e.__version).join('"'+n);const r=JSON.parse(t);return r.__properties&&r.__properties.content&&r.__properties.content.forEach(function(e){JSON.stringify(e).split("graph_Graph").length>1&&o.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=[])}),r}return e}function ao(e,t){const n=[];return o.Persist.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(uo(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(uo(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 so(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),ao(e,t)}function uo(e){return"string"==typeof e&&(e=JSON.parse(e)),qr((e=lo(e,t.Platform.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),ao(n,e)}).catch(function(e){console.error("Persist.create: ***exception***"),console.error(e)})}function co(e){uo(o.Persist.serializeToObject(e,void 0,!0,!0))}io.prototype._class+=" composite_MegaChart",io.prototype._1DChartTypes=Qr.prototype._1DChartTypes,io.prototype._2DChartTypes=Qr.prototype._2DChartTypes,io.prototype._NDChartTypes=Qr.prototype._NDChartTypes,io.prototype._anyChartTypes=Qr.prototype._anyChartTypes,io.prototype._allChartTypes=Qr.prototype._allChartTypes,io.prototype.publishReset(),io.prototype.publish("hideRowOnLegendClick",!1,"boolean","Enable/Disable hiding row on legend clicks",null,{tags:["Basic"]}),io.prototype.publish("showToolbar",!0,"boolean","Enable/Disable Toolbar widget",null,{tags:["Basic"]}),io.prototype.publishProxy("title","_toolbar","title"),io.prototype.publish("ddlParamsFormat","","string","DDL Param Format '{fname}, {lname}'",null,{tags:["Advanced"],optional:!0}),io.prototype.publish("titleFontSize",null,"number","Title Font Size (px)",null,{tags:["Advanced"],optional:!0}),io.prototype.publish("titleFontColor",null,"html-color","Title Font Color",null,{tags:["Advanced"],optional:!0}),io.prototype.publish("titleFontFamily",null,"string","Title Font Family",null,{tags:["Advanced"],optional:!0}),io.prototype.publish("titleFontBold",!0,"boolean","Enable Bold Title Font",null,{tags:["Advanced"],optional:!0}),io.prototype.publish("titleBackgroundColor",null,"html-color","Background Color",null,{tags:["Intermediate"],optional:!0}),io.prototype.publish("maximizedBackgroundColor","#FFFFFF","html-color","Background Color while maximized",null,{tags:["Intermediate"],optional:!0}),io.prototype.publish("showChartSelect",!0,"boolean","Show/Hide the chartType dropdown in the toolbar",null,{tags:["Basic"]}),io.prototype.publish("showCSV",!0,"boolean","Show/Hide CSV button",null,{tags:["Basic"]}),io.prototype.publish("showCount",!1,"boolean","Show/Hide Data Count",null,{tags:["Basic"]}),io.prototype.publish("showMaximize",!1,"boolean","Show/Hide Maximize button",null,{tags:["Basic"]}),io.prototype.publish("toolbarShowLegend",!1,"boolean","Show/Hide Legend button",null,{tags:["Basic"]}),io.prototype.publish("showInfoButton",!1,"boolean","Show/Hide Info button in toolbar",null,{tags:["Basic"]}),io.prototype.publish("infoIcon","","string","Help Icon",null,{tags:["Basic"]}),io.prototype.publish("legendPosition","none","set","Position of the Legend widget",["none","top","right","bottom","left"],{tags:["Basic"]}),io.prototype.publishProxy("legendFormat","_legend","rainbowFormat"),io.prototype.publishProxy("legendBins","_legend","rainbowBins"),io.prototype.publishProxy("domainAxisTitle","_domainTitle","text"),io.prototype.publishProxy("valueAxisTitle","_valueTitle","text"),io.prototype.publishProxy("chartType","_chart","chartType"),io.prototype.publishProxy("chart","_chart","chart"),P(lo,"retrofit_114_serialization"),P(ao,"deserializeFromObject"),P(so,"deserialize"),P(uo,"create"),P(co,"clone");const ho=Object.freeze(Object.defineProperty({__proto__:null,clone:co,create:uo,deserialize:so,deserializeFromObject:ao,retrofit_114_serialization:lo},Symbol.toStringTag,{value:"Module"}));e.BUILD_VERSION="3.22.1",e.Dermatology=ro,e.MegaChart=io,e.MultiChart=Qr,e.MultiChartPanel=to,e.PKG_NAME="@hpcc-js/composite",e.PKG_VERSION="3.5.8",e.Persist=ho,e.Utility=Xr,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
2
2
  //# sourceMappingURL=index.umd.cjs.map
3
3
  !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)}}();